1const skyTheme=!0;!function(l,e){"function"==typeof define&&define.amd?define(["jquery"],e):e(l.jQuery)}(this,function(l){"use strict";function e(e){if(o.webkit&&!e)return{height:0,width:0};if(!o.data.outer){var s={border:"none","box-sizing":"content-box",height:"200px",margin:"0",padding:"0",width:"200px"};o.data.inner=l("<div>").css(l.extend({},s)),o.data.outer=l("<div>").css(l.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},s)).append(o.data.inner).appendTo("body")}return o.data.outer.scrollLeft(1e3).scrollTop(1e3),{height:Math.ceil(o.data.outer.offset().top-o.data.inner.offset().top||0),width:Math.ceil(o.data.outer.offset().left-o.data.inner.offset().left||0)}}function s(l){var e=l.originalEvent;return(!e.axis||e.axis!==e.HORIZONTAL_AXIS)&&!e.wheelDeltaX}var o={data:{index:0,name:"scrollbar"},macosx:/mac/i.test(navigator.platform),mobile:/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.userAgent),overlay:null,scroll:null,scrolls:[],webkit:/webkit/i.test(navigator.userAgent)&&!/edge\/\d+/i.test(navigator.userAgent)};o.scrolls.add=function(l){this.remove(l).push(l)},o.scrolls.remove=function(e){for(;l.inArray(e,this)>=0;)this.splice(l.inArray(e,this),1);return this};var r={autoScrollSize:!0,autoUpdate:!0,debug:!1,disableBodyScroll:!1,duration:200,ignoreMobile:!1,ignoreOverlay:!1,scrollStep:30,showArrows:!1,stepScrolling:!0,scrollx:null,scrolly:null,onDestroy:null,onInit:null,onScroll:null,onUpdate:null},i=function(s){var i;o.scroll||(o.overlay=!((i=e(!0)).height||i.width),o.scroll=e(),a(),l(window).resize(function(){var l=!1;if(o.scroll&&(o.scroll.height||o.scroll.width)){var s=e();(s.height!==o.scroll.height||s.width!==o.scroll.width)&&(o.scroll=s,l=!0)}a(l)})),this.container=s,this.namespace=".scrollbar_"+o.data.index++,this.options=l.extend({},r,window.jQueryScrollbarOptions||{}),this.scrollTo=null,this.scrollx={},this.scrolly={},s.data(o.data.name,this),o.scrolls.add(this)};i.prototype={destroy:function(){if(this.wrapper){this.container.removeData(o.data.name),o.scrolls.remove(this);var e=this.container.scrollLeft(),s=this.container.scrollTop();this.container.insertBefore(this.wrapper).css({height:"",margin:"","max-height":""}).removeClass("scroll-content scroll-scrollx_visible scroll-scrolly_visible").off(this.namespace).scrollLeft(e).scrollTop(s),this.scrollx.scroll.removeClass("scroll-scrollx_visible").find("div").andSelf().off(this.namespace),this.scrolly.scroll.removeClass("scroll-scrolly_visible").find("div").andSelf().off(this.namespace),this.wrapper.remove(),l(document).add("body").off(this.namespace),l.isFunction(this.options.onDestroy)&&this.options.onDestroy.apply(this,[this.container])}},init:function(e){var r=this,i=this.container,t=this.containerWrapper||i,n=this.namespace,c=l.extend(this.options,e||{}),a={x:this.scrollx,y:this.scrolly},d=this.wrapper,h={scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop()};if(o.mobile&&c.ignoreMobile||o.overlay&&c.ignoreOverlay)return!1;if(d)navigator.userAgent.toLowerCase().indexOf("firefox")>-1?t.css({height:"auto","margin-bottom":"-0px","margin-right":"-0px","max-height":""}):t.css({height:"auto","margin-bottom":-1*o.scroll.height+"px","margin-right":-1*o.scroll.width+"px","max-height":""});else{if(this.wrapper=d=l("<div>").addClass("scroll-wrapper").addClass(i.attr("class")).css("position","absolute"==i.css("position")?"absolute":"relative").insertBefore(i).append(i),i.is("textarea")&&(this.containerWrapper=t=l("<div>").insertBefore(i).append(i),d.addClass("scroll-textarea")),t.addClass("scroll-content").css({height:"auto","margin-bottom":navigator.userAgent.toLowerCase().indexOf("firefox")>-1?"-0px":-1*o.scroll.height+"px","margin-right":navigator.userAgent.toLowerCase().indexOf("firefox")>-1?"-0px":-1*o.scroll.height+"px","max-height":""}),i.on("scroll"+n,function(e){l.isFunction(c.onScroll)&&c.onScroll.call(r,{maxScroll:a.y.maxScrollOffset,scroll:i.scrollTop(),size:a.y.size,visible:a.y.visible},{maxScroll:a.x.maxScrollOffset,scroll:i.scrollLeft(),size:a.x.size,visible:a.x.visible}
1),a.x.isVisible&&a.x.scroll.bar.css("left",i.scrollLeft()*a.x.kx+"px"),a.y.isVisible&&a.y.scroll.bar.css("top",i.scrollTop()*a.y.kx+"px")}),d.on("scroll"+n,function(){d.scrollTop(0).scrollLeft(0)}),c.disableBodyScroll){var f=function(l){s(l)?a.y.isVisible&&a.y.mousewheel(l):a.x.isVisible&&a.x.mousewheel(l)};d.on("MozMousePixelScroll"+n,f),d.on("mousewheel"+n,f),o.mobile&&d.on("touchstart"+n,function(e){var s=e.originalEvent.touches&&e.originalEvent.touches[0]||e,o={pageX:s.pageX,pageY:s.pageY},r={left:i.scrollLeft(),top:i.scrollTop()};l(document).on("touchmove"+n,function(l){var e=l.originalEvent.targetTouches&&l.originalEvent.targetTouches[0]||l;i.scrollLeft(r.left+o.pageX-e.pageX),i.scrollTop(r.top+o.pageY-e.pageY),l.preventDefault()}),l(document).on("touchend"+n,function(){l(document).off(n)})})}l.isFunction(c.onInit)&&c.onInit.apply(this,[i])}l.each(a,function(e,o){var t=null,d=1,h="x"===e?"scrollLeft":"scrollTop",f=c.scrollStep,p=function(){var l=i[h]();i[h](l+f),1==d&&l+f>=u&&(l=i[h]()),-1==d&&u>=l+f&&(l=i[h]()),i[h]()==l&&t&&t()},u=0;o.scroll||(o.scroll=r._getScroll(c["scroll"+e]).addClass("scroll-"+e),c.showArrows&&o.scroll.addClass("scroll-element_arrows_visible"),o.mousewheel=function(l){if(!o.isVisible||"x"===e&&s(l))return!0;if("y"===e&&!s(l))return a.x.mousewheel(l),!0;var t=-1*l.originalEvent.wheelDelta||l.originalEvent.detail,n=o.size-o.visible-o.offset;return(t>0&&n>u||0>t&&u>0)&&(0>(u+=t)&&(u=0),u>n&&(u=n),r.scrollTo=r.scrollTo||{},r.scrollTo[h]=u,setTimeout(function(){r.scrollTo&&(i.stop().animate(r.scrollTo,240,"linear",function(){u=i[h]()}),r.scrollTo=null)},1)),l.preventDefault(),!1},o.scroll.on("MozMousePixelScroll"+n,o.mousewheel).on("mousewheel"+n,o.mousewheel).on("mouseenter"+n,function(){u=i[h]()}),o.scroll.find(".scroll-arrow, .scroll-element_track").on("mousedown"+n,function(s){if(1!=s.which)return!0;d=1;var n={eventOffset:s["x"===e?"pageX":"pageY"],maxScrollValue:o.size-o.visible-o.offset,scrollbarOffset:o.scroll.bar.offset()["x"===e?"left":"top"],scrollbarSize:o.scroll.bar["x"===e?"outerWidth":"outerHeight"]()},a=0,v=0;return l(this).hasClass("scroll-arrow")?(d=l(this).hasClass("scroll-arrow_more")?1:-1,f=c.scrollStep*d,u=d>0?n.maxScrollValue:0):(d=n.eventOffset>n.scrollbarOffset+n.scrollbarSize?1:n.eventOffset<n.scrollbarOffset?-1:0,f=Math.round(.75*o.visible)*d,u=n.eventOffset-n.scrollbarOffset-(c.stepScrolling?1==d?n.scrollbarSize:0:Math.round(n.scrollbarSize/2)),u=i[h]()+u/o.kx),r.scrollTo=r.scrollTo||{},r.scrollTo[h]=c.stepScrolling?i[h]()+f:u,c.stepScrolling&&(t=function(){u=i[h](),clearInterval(v),clearTimeout(a),a=0,v=0},a=setTimeout(function(){v=setInterval(p,40)},c.duration+100)),setTimeout(function(){r.scrollTo&&(i.animate(r.scrollTo,c.duration),r.scrollTo=null)},1),r._handleMouseDown(t,s)}),o.scroll.bar.on("mousedown"+n,function(s){if(1!=s.which)return!0;var t=s["x"===e?"pageX":"pageY"],c=i[h]();return o.scroll.addClass("scroll-draggable"),l(document).on("mousemove"+n,function(l){var s=parseInt((l["x"===e?"pageX":"pageY"]-t)/o.kx,10);i[h](c+s)}),r._handleMouseDown(function(){o.scroll.removeClass("scroll-draggable"),u=i[h]()},s)}))}),l.each(a,function(l,e){var s="scroll-scroll"+l+"_visible",o="x"==l?a.y:a.x;e.scroll.removeClass(s),o.scroll.removeClass(s),t.removeClass(s)}),l.each(a,function(e,s){l.extend(s,"x"==e?{offset:parseInt(i.css("left"),10)||0,size:i.prop("scrollWidth"),visible:d.width()}:{offset:parseInt(i.css("top"),10)||0,size:i.prop("scrollHeight"),visible:d.height()})}),this._updateScroll("x",this.scrollx),this._updateScroll("y",this.scrolly),l.isFunction(c.onUpdate)&&c.onUpdate.apply(this,[i]),l.each(a,function(l,e){var s="x"===l?"left":"top",o="x"===l?"outerWidth":"outerHeight",r=parseInt(i.css(s),10)||0,t=e.size,n=e.visible+r,a=e.scroll.size[o]()+(parseInt(e.scroll.size.css(s),10)||0);c.autoScrollSize&&(e.scrollbarSize=parseInt(a*n/t,10),e.scroll.bar.css("x"===l?"width":"height",e.scrollbarSize+"px")),e.scrollbarSize=e.scroll.bar[o](),e.kx=(a-e.scrollbarSize)/(t-n)||1,e.maxScrollOffset=t-n}),i.scrollLeft(h.scrollLeft).scrollTop(h.scrollTop).trigger("scroll")},_getScroll:function(e){var s={advanced:'<div class="scroll-element">
1<div class="scroll-element_corner"></div><div class="scroll-arrow scroll-arrow_less"></div><div class="scroll-arrow scroll-arrow_more"></div><div class="scroll-element_outer"><div class="scroll-element_size"></div><div class="scroll-element_inner-wrapper"><div class="scroll-element_inner scroll-element_track"><div class="scroll-element_inner-bottom"></div></div></div><div class="scroll-bar"><div class="scroll-bar_body"><div class="scroll-bar_body-inner"></div></div><div class="scroll-bar_bottom"></div><div class="scroll-bar_center"></div></div></div></div>',simple:'<div class="scroll-element"><div class="scroll-element_outer"><div class="scroll-element_size"></div><div class="scroll-element_track"></div><div class="scroll-bar"></div></div></div>'};return s[e]&&(e=s[e]),e||(e=s.simple),e="string"==typeof e?l(e).appendTo(this.wrapper):l(e),l.extend(e,{bar:e.find(".scroll-bar"),size:e.find(".scroll-element_size"),track:e.find(".scroll-element_track")}),e},_handleMouseDown:function(e,s){var o=this.namespace;return l(document).on("blur"+o,function(){l(document).add("body").off(o),e&&e()}),l(document).on("dragstart"+o,function(l){return l.preventDefault(),!1}),l(document).on("mouseup"+o,function(){l(document).add("body").off(o),e&&e()}),l("body").on("selectstart"+o,function(l){return l.preventDefault(),!1}),s&&s.preventDefault(),!1},_updateScroll:function(e,s){var r=this.container,i=this.containerWrapper||r,t="scroll-scroll"+e+"_visible",n="x"===e?this.scrolly:this.scrollx,c=parseInt(this.container.css("x"===e?"left":"top"),10)||0,a=this.wrapper,d=s.size,h=s.visible+c;s.isVisible=d-h>1,s.isVisible?(s.scroll.addClass(t),n.scroll.addClass(t),i.addClass(t)):(s.scroll.removeClass(t),n.scroll.removeClass(t),i.removeClass(t)),"y"===e&&(r.is("textarea")||h>d?i.css({height:h+o.scroll.height+"px","max-height":"none"}):i.css({"max-height":h+(navigator.userAgent.toLowerCase().indexOf("firefox")>-1?0:o.scroll.height)+"px"})),(s.size!=r.prop("scrollWidth")||n.size!=r.prop("scrollHeight")||s.visible!=a.width()||n.visible!=a.height()||s.offset!=(parseInt(r.css("left"),10)||0)||n.offset!=(parseInt(r.css("top"),10)||0))&&(l.extend(this.scrollx,{offset:parseInt(r.css("left"),10)||0,size:r.prop("scrollWidth"),visible:a.width()}),l.extend(this.scrolly,{offset:parseInt(r.css("top"),10)||0,size:this.container.prop("scrollHeight"),visible:a.height()}),this._updateScroll("x"===e?"y":"x",n))}};var t,n,c=i;l.fn.scrollbar=function(e,s){return"string"!=typeof e&&(s=e,e="init"),void 0===s&&(s=[]),l.isArray(s)||(s=[s]),this.not("body, .scroll-wrapper").each(function(){var r=l(this),i=r.data(o.data.name);(i||"init"===e)&&(i||(i=new c(r)),i[e]&&i[e].apply(i,s))}),this},l.fn.scrollbar.options=r;var a=(t=0,n=0,function(l){var e,s,r,i,c,d,h;for(e=0;e<o.scrolls.length;e++)s=(i=o.scrolls[e]).container,r=i.options,c=i.wrapper,d=i.scrollx,h=i.scrolly,(l||r.autoUpdate&&c&&c.is(":visible")&&(s.prop("scrollWidth")!=d.size||s.prop("scrollHeight")!=h.size||c.width()!=d.visible||c.height()!=h.visible))&&(i.init(),r.debug&&(window.console&&console.log({scrollHeight:s.prop("scrollHeight")+":"+i.scrolly.size,scrollWidth:s.prop("scrollWidth")+":"+i.scrollx.size,visibleHeight:c.height()+":"+i.scrolly.visible,visibleWidth:c.width()+":"+i.scrollx.visible},!0),n++));clearTimeout(t),t=setTimeout(a,300)});window.angular&&function(l){l.module("jQueryScrollbar",[]).provider("jQueryScrollbar",function(){var e=r;return{setOptions:function(s){l.extend(e,s)},$get:function(){return{options:l.copy(e)}}}}).directive("jqueryScrollbar",["jQueryScrollbar","$parse",function(l,e){return{restrict:"AC",link:function(s,o,r){var i=e(r.jqueryScrollbar)(s);o.scrollbar(i||l.options).on("$destroy",function(){o.scrollbar("destroy")})}}}])}(window.angular)});"function"!=typeof Object.create&&(Object.create=function(o){function e(){}return e.prototype=o,new e}),function(o,e,i,t){var n={init:function(e,i){var t=this;if(t.elem=i,t.$elem=o(i),t.options=o.extend({},o.fn.ezPlus.options,t.responsiveConfig(e||{})),t.imageSrc=t.$elem.data(t.options.attrImageZoomSrc)?t.$elem.data(t.options.attrImageZoomSrc):t.$elem.attr("src"),t.options.enabled){var n;t.options.tint&&(t.options.lensColour="transparent",t.options.lensOpacity="1"),"inner"===t.options.zoomType&&(t.options.showLens=!1),"lens"===t.options.zoomType&&(t.options.zoomWindowWidth=0),-1===t.options.zoomId&&(t.options.zoomId=(n=(new Date).getTime(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(o){var e=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"===o?e:3&e|8).toString(16)}))),t.$elem.parent().removeAttr("title").removeAttr("alt"),t.zoomImage=t.imageSrc,t.refresh(1);var s=t.options.galleryEvent+".ezpspace";s+=t.options.touchEnabled?" touchend.ezpspace":"",t.$galleries=o(t.options.gallery?"#"+t.options.gallery:t.options.gallerySelector),t.$galleries.on(s,t.options.galleryItem,function(e){if(t.options.galleryActiveClass&&(o(t.options.galleryItem,t.$galleries).removeClass(t.o
1ptions.galleryActiveClass),o(this).addClass(t.options.galleryActiveClass)),"A"===this.tagName&&e.preventDefault(),o(this).data(t.options.attrImageZoomSrc)?t.zoomImagePre=o(this).data(t.options.attrImageZoomSrc):t.zoomImagePre=o(this).data("image"),t.swaptheimage(o(this).data("image"),t.zoomImagePre),"A"===this.tagName)return!1})}},refresh:function(o){var e=this;setTimeout(function(){e.fetch(e.imageSrc,e.$elem,e.options.minZoomLevel)},o||e.options.refresh)},fetch:function(o,e,i){var t=this,n=new Image;n.onload=function(){n.width/e.width()<=i?t.largeWidth=e.width()*i:t.largeWidth=n.width,n.height/e.height()<=i?t.largeHeight=e.height()*i:t.largeHeight=n.height,t.startZoom(),t.currentImage=t.imageSrc,t.options.onZoomedImageLoaded(t.$elem)},t.setImageSource(n,o)},setImageSource:function(o,e){o.src=e},startZoom:function(){var e,i=this;if(i.nzWidth=i.$elem.width(),i.nzHeight=i.$elem.height(),i.isWindowActive=!1,i.isLensActive=!1,i.isTintActive=!1,i.overWindow=!1,i.options.imageCrossfade){var t=o('<div class="zoomWrapper"/>').css({height:i.nzHeight,width:i.nzWidth});i.zoomWrap=i.$elem.wrap(t),i.$elem.css({position:"absolute"})}i.zoomLock=1,i.scrollingLock=!1,i.changeBgSize=!1,i.currentZoomLevel=i.options.zoomLevel,i.updateOffset(i),i.widthRatio=i.largeWidth/i.currentZoomLevel/i.nzWidth,i.heightRatio=i.largeHeight/i.currentZoomLevel/i.nzHeight,"window"===i.options.zoomType&&(i.zoomWindowStyle={display:"none",position:"absolute",height:i.options.zoomWindowHeight,width:i.options.zoomWindowWidth,border:i.options.borderSize+"px solid "+i.options.borderColour,backgroundSize:i.largeWidth/i.currentZoomLevel+"px "+i.largeHeight/i.currentZoomLevel+"px",backgroundPosition:"0px 0px",backgroundRepeat:"no-repeat",backgroundColor:""+i.options.zoomWindowBgColour,overflow:"hidden",zIndex:100}),"inner"===i.options.zoomType&&(i.zoomWindowStyle=(e=i.$elem.css("border-left-width"),{display:"none",position:"absolute",height:i.nzHeight,width:i.nzWidth,marginTop:e,marginLeft:e,border:i.options.borderSize+"px solid "+i.options.borderColour,backgroundPosition:"0px 0px",backgroundRepeat:"no-repeat",cursor:i.options.cursor,overflow:"hidden",zIndex:i.options.zIndex})),"window"===i.options.zoomType&&(i.lensStyle=(i.nzHeight<i.options.zoomWindowHeight/i.heightRatio?i.lensHeight=i.nzHeight:i.lensHeight=i.options.zoomWindowHeight/i.heightRatio,i.largeWidth<i.options.zoomWindowWidth?i.lensWidth=i.nzWidth:i.lensWidth=i.options.zoomWindowWidth/i.widthRatio,{display:"none",position:"absolute",height:i.lensHeight,width:i.lensWidth,border:i.options.lensBorderSize+"px solid "+i.options.lensBorderColour,backgroundPosition:"0px 0px",backgroundRepeat:"no-repeat",backgroundColor:i.options.lensColour,opacity:i.options.lensOpacity,cursor:i.options.cursor,zIndex:999,overflow:"hidden"})),i.tintStyle={display:"block",position:"absolute",height:i.nzHeight,width:i.nzWidth,backgroundColor:i.options.tintColour,opacity:0},i.lensRound={},"lens"===i.options.zoomType&&(i.lensStyle={display:"none",position:"absolute",float:"left",height:i.options.lensSize,width:i.options.lensSize,border:i.options.borderSize+"px solid "+i.options.borderColour,backgroundPosition:"0px 0px",backgroundRepeat:"no-repeat",backgroundColor:i.options.lensColour,cursor:i.options.cursor}),"round"===i.options.lensShape&&(i.lensRound={borderRadius:i.options.lensSize/2+i.options.borderSize}),i.zoomContainer=o('<div class="'+i.options.container+'" uuid="'+i.options.zoomId+'"/>'),i.zoomContainer.css({position:"absolute",top:i.nzOffset.top,left:i.nzOffset.left,height:i.nzHeight,width:i.nzWidth,zIndex:i.options.zIndex}),i.$elem.attr("id")&&i.zoomContainer.attr("id",i.$elem.attr("id")+"-"+i.options.container),o(i.options.zoomContainerAppendTo).append(i.zoomContainer),i.options.containLensZoom&&"lens"===i.options.zoomType&&i.zoomContainer.css("overflow","hidden"),"inner"!==i.options.zoomType&&(i.zoomLens=o('<div class="zoomLens"/>').css(o.extend({},i.lensStyle,i.lensRound)).appendTo(i.zoomContainer).click(function(){i.$elem.trigger("click")}),i.options.tint&&(i.tintContainer=o('<div class="tintContainer"/>'),i.zoomTint=o('<div class="zoomTint"/>').css(i.tintStyle),i.zoomLens.wrap(i.tintContainer),i.zoomTintcss=i.zoomLens.after(i.zoomTint),i.zoomTintImage=o('<img src="'+i.$elem.attr("src")+'">').css({position:"absolute",top:0,left:0,height:i.nzHeight,width:i.nzWidth,maxWidth:"none"}).appendTo(i.zoomLens).click(function(){i.$elem.trigger("click")})));var n=isNaN(i.options.zoomWindowPosition)?"body":i.zoomContainer;function s(o){i.lastX===o.clientX&&i.lastY===o.clientY||(i.setPosition(o),i.currentLoc=o),i.lastX=o.clientX,i.lastY=o.clientY}i.zoomWindow=o('<div class="zoomWindow"/>').css(o.extend({zIndex:999,top:i.windowOffsetTop,left:i.windowOffsetLeft},i.zoomWindowStyle)).appendTo(n).click(function(){i.$elem.trigger("click")}),i.zoomWindowContainer=o('<div class="zoomWindowContainer" />').css({width:i.options.zoomWindowWidth}),i.zoomWindow.wrap(i.zoomWindowContainer),"lens"===i.options.zoomType&&(i.zoomContainer.css("display","none"),i.zoomLens.css({backgroundImage:'url("'+i.imageSrc+'")'})),"window"===i.options.zoomType&&i.zoomWindow.css({backgroundImage:'url("'+i.imageSrc+'")'}),"inner"===i.options.zoomType&&i.zoomWindow.css({backgroundImage:'url("'+i.imageSrc+'")'}),i.options.touchEnabled&&(i.$elem.on("touchmove.ezpspace",function(o){o.preventDefault();var e=o.originalEvent.touches[0]||o.originalEvent.changedTouches[0];i.setPosition(e)}),i.zoomContainer.on("touchmove.ezpspace",function(o){i.setElements("show"),o.preventDefault();var e=o.originalEvent.touches[0]||o.originalEvent.changedTouches[0];i.setPosition(e)}),i.zoomContainer.on("touchend.ezpspace",function(o){i.showHideWindow("hide"),i.options.showLens&&i.showHideLens("hide"),i.options.tint&&"inner"!==i.options.zoomType&&i.showHideTint("hide")}),i.$elem.on("touchend.ezpspace",function(o){i.showHideWindow("hide"),i.options.showLens&&i.showHideLens("hide"),i.options.tint&&"inner"!==i.options.zoomType&&i.showHideTint("hide")}),i.options.showLens&&(i.zoomLens.on("touchmove.ezpspace",function(o){o.preventDefault();var e=o.originalEvent.touches[0]||o.originalEvent.changedTouches[0];i.setPosition(e)}),i.zoomLens.on("touchend.ezpspace",function(o){i.showHideWindow("hide"),i.options.showLens&&i.showHideLens("hide"),i.options.tint&&"inner"!==i.options.zoomType&&i.showHideTint("hide")}))),i.$elem.on("mousemove.ezpspace",function(o){!1===i.overWindow&&i.setElements("show"),i.lastX===o.clientX&&i.lastY===o.clientY||(i.setPosition(o),i.currentLoc=o),i.lastX=o.clientX,i.lastY=o.clientY}),i.zoomContainer.on("click.ezpspace touchstart.ezpspace",i.options.onImageClick),i.zoomContainer.on("mousemove.ezpspace",function(o){!1===i.overWindow&&i.setElements("show"),s(o)});var a=null;"inner"!==i.options.zoomType&&(a=i.zoomLens),i.options.tint&&"inner"!==i.options.zoomType&&(a=i.zoomTint),"inner"===i.options.zoomType&&(a=i.zoomWindow),a&&a.on("mousemove.ezpspace",s
1),i.zoomContainer.add(i.$elem).mouseenter(function(){!1===i.overWindow&&i.setElements("show")}).mouseleave(function(){i.scrollLock||(i.setElements("hide"),i.options.onDestroy(i.$elem))}),"inner"!==i.options.zoomType&&i.zoomWindow.mouseenter(function(){i.overWindow=!0,i.setElements("hide")}).mouseleave(function(){i.overWindow=!1}),i.options.minZoomLevel?i.minZoomLevel=i.options.minZoomLevel:i.minZoomLevel=2*i.options.scrollZoomIncrement,i.options.scrollZoom&&i.zoomContainer.add(i.$elem).on("wheel DOMMouseScroll MozMousePixelScroll",function(e){i.scrollLock=!0,clearTimeout(o.data(this,"timer")),o.data(this,"timer",setTimeout(function(){i.scrollLock=!1},250));var t,n=e.originalEvent.deltaY||-1*e.originalEvent.detail;return e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),0!==n&&(n/120>0?(t=parseFloat(i.currentZoomLevel)-i.options.scrollZoomIncrement)>=parseFloat(i.minZoomLevel)&&i.changeZoomLevel(t):(i.fullheight||i.fullwidth)&&i.options.mantainZoomAspectRatio||(t=parseFloat(i.currentZoomLevel)+i.options.scrollZoomIncrement,i.options.maxZoomLevel?t<=i.options.maxZoomLevel&&i.changeZoomLevel(t):i.changeZoomLevel(t)),!1)})},destroy:function(){var e=this;e.$elem.off(".ezpspace"),e.$galleries.off(".ezpspace"),o(e.zoomContainer).remove(),e.options.loadingIcon&&e.spinner&&e.spinner.length&&(e.spinner.remove(),delete e.spinner)},getIdentifier:function(){return this.options.zoomId},setElements:function(o){var e=this;if(!e.options.zoomEnabled)return!1;"show"===o&&e.isWindowSet&&("inner"===e.options.zoomType&&e.showHideWindow("show"),"window"===e.options.zoomType&&e.showHideWindow("show"),e.options.showLens&&(e.showHideZoomContainer("show"),e.showHideLens("show")),e.options.tint&&"inner"!==e.options.zoomType&&e.showHideTint("show")),"hide"===o&&("window"===e.options.zoomType&&e.showHideWindow("hide"),e.options.tint||e.showHideWindow("hide"),e.options.showLens&&(e.showHideZoomContainer("hide"),e.showHideLens("hide")),e.options.tint&&e.showHideTint("hide"))},setPosition:function(o){var e=this;if(!e.options.zoomEnabled||void 0===o)return!1;(e.nzHeight=e.$elem.height(),e.nzWidth=e.$elem.width(),e.updateOffset(e),e.options.tint&&"inner"!==e.options.zoomType&&e.zoomTint.css({top:0,left:0}),e.options.responsive&&!e.options.scrollZoom)&&(e.options.showLens&&(e.nzHeight<e.options.zoomWindowWidth/e.widthRatio?e.lensHeight=e.nzHeight:e.lensHeight=e.options.zoomWindowHeight/e.heightRatio,e.largeWidth<e.options.zoomWindowWidth?e.lensWidth=e.nzWidth:e.lensWidth=e.options.zoomWindowWidth/e.widthRatio,e.widthRatio=e.largeWidth/e.nzWidth,e.heightRatio=e.largeHeight/e.nzHeight,"lens"!==e.options.zoomType&&(e.nzHeight<e.options.zoomWindowWidth/e.widthRatio?e.lensHeight=e.nzHeight:e.lensHeight=e.options.zoomWindowHeight/e.heightRatio,e.nzWidth<e.options.zoomWindowHeight/e.heightRatio?e.lensWidth=e.nzWidth:e.lensWidth=e.options.zoomWindowWidth/e.widthRatio,e.zoomLens.css({width:e.lensWidth,height:e.lensHeight}),e.options.tint&&e.zoomTintImage.css({width:e.nzWidth,height:e.nzHeight})),"lens"===e.options.zoomType&&e.zoomLens.css({width:e.options.lensSize,height:e.options.lensSize})));if(e.zoomContainer.css({top:e.nzOffset.top,left:e.nzOffset.left,width:e.nzWidth,height:e.nzHeight}
1),e.mouseLeft=parseInt(o.pageX-e.nzOffset.left),e.mouseTop=parseInt(o.pageY-e.nzOffset.top),"window"===e.options.zoomType){var i=e.zoomLens.height()/2,t=e.zoomLens.width()/2;e.Etoppos=e.mouseTop<0+i,e.Eboppos=e.mouseTop>e.nzHeight-i-2*e.options.lensBorderSize,e.Eloppos=e.mouseLeft<0+t,e.Eroppos=e.mouseLeft>e.nzWidth-t-2*e.options.lensBorderSize}"inner"===e.options.zoomType&&(e.Etoppos=e.mouseTop<e.nzHeight/2/e.heightRatio,e.Eboppos=e.mouseTop>e.nzHeight-e.nzHeight/2/e.heightRatio,e.Eloppos=e.mouseLeft<0+e.nzWidth/2/e.widthRatio,e.Eroppos=e.mouseLeft>e.nzWidth-e.nzWidth/2/e.widthRatio-2*e.options.lensBorderSize),e.mouseLeft<0||e.mouseTop<0||e.mouseLeft>e.nzWidth||e.mouseTop>e.nzHeight?e.setElements("hide"):(e.options.showLens&&(e.lensLeftPos=Math.floor(e.mouseLeft-e.zoomLens.width()/2),e.lensTopPos=Math.floor(e.mouseTop-e.zoomLens.height()/2)),e.Etoppos&&(e.lensTopPos=0),e.Eloppos&&(e.windowLeftPos=0,e.lensLeftPos=0,e.tintpos=0),"window"===e.options.zoomType&&(e.Eboppos&&(e.lensTopPos=Math.max(e.nzHeight-e.zoomLens.height()-2*e.options.lensBorderSize,0)),e.Eroppos&&(e.lensLeftPos=e.nzWidth-e.zoomLens.width()-2*e.options.lensBorderSize)),"inner"===e.options.zoomType&&(e.Eboppos&&(e.lensTopPos=Math.max(e.nzHeight-2*e.options.lensBorderSize,0)),e.Eroppos&&(e.lensLeftPos=e.nzWidth-e.nzWidth-2*e.options.lensBorderSize)),"lens"===e.options.zoomType&&(e.windowLeftPos=-1*((o.pageX-e.nzOffset.left)*e.widthRatio-e.zoomLens.width()/2),e.windowTopPos=-1*((o.pageY-e.nzOffset.top)*e.heightRatio-e.zoomLens.height()/2),e.zoomLens.css({backgroundPosition:e.windowLeftPos+"px "+e.windowTopPos+"px"}),e.changeBgSize&&(e.nzHeight>e.nzWidth?("lens"===e.options.zoomType&&e.zoomLens.css({backgroundSize:e.largeWidth/e.newvalueheight+"px "+e.largeHeight/e.newvalueheight+"px"}),e.zoomWindow.css({backgroundSize:e.largeWidth/e.newvalueheight+"px "+e.largeHeight/e.newvalueheight+"px"})):("lens"===e.options.zoomType&&e.zoomLens.css({backgroundSize:e.largeWidth/e.newvaluewidth+"px "+e.largeHeight/e.newvaluewidth+"px"}),e.zoomWindow.css({backgroundSize:e.largeWidth/e.newvaluewidth+"px "+e.largeHeight/e.newvaluewidth+"px"})),e.changeBgSize=!1),e.setWindowPosition(o)),e.options.tint&&"inner"!==e.options.zoomType&&e.setTintPosition(o),"window"===e.options.zoomType&&e.setWindowPosition(o),"inner"===e.options.zoomType&&e.setWindowPosition(o),e.options.showLens&&(e.fullwidth&&"lens"!==e.options.zoomType&&(e.lensLeftPos=0),e.zoomLens.css({left:e.lensLeftPos,top:e.lensTopPos})))},showHideZoomContainer:function(o){"show"===o&&this.zoomContainer&&this.zoomContainer.show(),"hide"===o&&this.zoomContainer&&this.zoomContainer.hide()},showHideWindow:function(o){var e=this;"show"===o&&!e.isWindowActive&&e.zoomWindow&&(e.options.onShow(e),e.options.zoomWindowFadeIn?e.zoomWindow.stop(!0,!0,!1).fadeIn(e.options.zoomWindowFadeIn):e.zoomWindow.show(),e.isWindowActive=!0),"hide"===o&&e.isWindowActive&&(e.options.zoomWindowFadeOut?e.zoomWindow.stop(!0,!0).fadeOut(e.options.zoomWindowFadeOut,function(){e.loop&&(clearInterval(e.loop),e.loop=!1)}):e.zoomWindow.hide(),e.options.onHide(e),e.isWindowActive=!1)},showHideLens:function(o){var e=this;"show"===o&&(e.isLensActive||(e.zoomLens&&(e.options.lensFadeIn?e.zoomLens.stop(!0,!0,!1).fadeIn(e.options.lensFadeIn):e.zoomLens.show()),e.isLensActive=!0)),"hide"===o&&e.isLensActive&&(e.zoomLens&&(e.options.lensFadeOut?e.zoomLens.stop(!0,!0).fadeOut(e.options.lensFadeOut):e.zoomLens.hide()),e.isLensActive=!1)},showHideTint:function(o){var e=this;"show"===o&&!e.isTintActive&&e.zoomTint&&(e.options.zoomTintFadeIn?e.zoomTint.css("opacity",e.options.tintOpacity).animate().stop(!0,!0).fadeIn("slow"):(e.zoomTint.css("opacity",e.options.tintOpacity).animate(),e.zoomTint.show()),e.isTintActive=!0),"hide"===o&&e.isTintActive&&(e.options.zoomTintFadeOut?e.zoomTint.stop(!0,!0).fadeOut(e.options.zoomTintFadeOut):e.zoomTint.hide(),e.isTintActive=!1)},setLensPosition:function(o){},setWindowPosition:function(e){var i=this;if(isNaN(i.options.zoomWindowPosition))i.externalContainer=o(i.options.zoomWindowPosition),i.externalContainer.length||(i.externalContainer=o("#"+i.options.zoomWindowPosition)),i.externalContainerWidth=i.externalContainer.width(),i.externalContainerHeight=i.externalContainer.height(),i.externalContainerOffset=i.externalContainer.offset(),i.windowOffsetTop=i.externalContainerOffset.top,i.windowOffsetLeft=i.externalContainerOffset.left;else switch(i.options.zoomWindowPosition){case 1:i.windowOffsetTop=i.options.zoomWindowOffsetY,i.windowOffsetLeft=+i.nzWidth;break;case 2:i.options.zoomWindowHeight>i.nzHeight?(i.windowOffsetTop=-1*(i.options.zoomWindowHeight/2-i.nzHeight/2),i.windowOffsetLeft=i.nzWidth):o.noop();break;case 3:i.windowOffsetTop=i.nzHeight-i.zoomWindow.height()-2*i.options.borderSize,i.windowOffsetLeft=i.nzWidth;break;case 4:i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=i.nzWidth;break;case 5:i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=i.nzWidth-i.zoomWindow.width()-2*i.options.borderSize;break;case 6:i.options.zoomWindowHeight>i.nzHeight?(i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=-1*(i.options.zoomWindowWidth/2-i.nzWidth/2+2*i.options.borderSize)):o.noop();break;case 7:i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=0;break;case 8:i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 9:i.windowOffsetTop=i.nzHeight-i.zoomWindow.height()-2*i.options.borderSize,i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 10:i.options.zoomWindowHeight>i.nzHeight?(i.windowOffsetTop=-1*(i.options.zoomWindowHeight/2-i.nzHeight/2),i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize)):o.noop();break;case 11:i.windowOffsetTop=i.options.zoomWindowOffsetY,i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 12:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 13:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=0;break;case 14:i.options.zoomWindowHeight>i.nzHeight?(i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=-1*(i.options.zoomWindowWidth/2-i.nzWidth/2+2*i.options.borderSize)):o.noop();break;case 15:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=i.nzWidth-i.zoomWindow.width()-2*i.options.borderSize;break;case 16:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=i.nzWidth;break;default:i.windowOffsetTop=i.options.zoomWindowOffsetY,i.windowOffsetLeft=i.nzWidth}if(i.isWindowSet=!0,i.windowOffsetTop=i.windowOffsetTop+i.options.zoomWindowOffsetY,i.windowOffsetLeft=i.windowOffsetLeft+i.options.zoomWindowOffsetX,i.zoomWindow.css({top:i.windowOffsetTop,left:i.windowOffsetLeft}),"inner"===i.options.zoomType&&i.zoomWindow.css({top:0,left:0}),i.windowLeftPos=-1*((e.pageX-i.nzOffset.left)*i.widthRatio-i.zoomWindow.width()/2),i.windowTopPos=-1*((e.pageY-i.nzOff
1set.top)*i.heightRatio-i.zoomWindow.height()/2),i.Etoppos&&(i.windowTopPos=0),i.Eloppos&&(i.windowLeftPos=0),i.Eboppos&&(i.windowTopPos=-1*(i.largeHeight/i.currentZoomLevel-i.zoomWindow.height())),i.Eroppos&&(i.windowLeftPos=-1*(i.largeWidth/i.currentZoomLevel-i.zoomWindow.width())),i.fullheight&&(i.windowTopPos=0),i.fullwidth&&(i.windowLeftPos=0),"window"===i.options.zoomType||"inner"===i.options.zoomType)if(1===i.zoomLock&&(i.widthRatio<=1&&(i.windowLeftPos=0),i.heightRatio<=1&&(i.windowTopPos=0)),"window"===i.options.zoomType&&(i.largeHeight<i.options.zoomWindowHeight&&(i.windowTopPos=0),i.largeWidth<i.options.zoomWindowWidth&&(i.windowLeftPos=0)),i.options.easing){i.xp||(i.xp=0),i.yp||(i.yp=0);var t=16,n=parseInt(i.options.easing);"number"==typeof n&&isFinite(n)&&Math.floor(n)===n&&(t=n),i.loop||(i.loop=setInterval(function(){if(i.xp+=(i.windowLeftPos-i.xp)/i.options.easingAmount,i.yp+=(i.windowTopPos-i.yp)/i.options.easingAmount,i.scrollingLock)clearInterval(i.loop),i.xp=i.windowLeftPos,i.yp=i.windowTopPos,i.xp=-1*((e.pageX-i.nzOffset.left)*i.widthRatio-i.zoomWindow.width()/2),i.yp=-1*((e.pageY-i.nzOffset.top)*i.heightRatio-i.zoomWindow.height()/2),i.changeBgSize&&(i.nzHeight>i.nzWidth?("lens"===i.options.zoomType&&i.zoomLens.css({backgroundSize:i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({backgroundSize:i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})):("lens"!==i.options.zoomType&&i.zoomLens.css({backgroundSize:i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({backgroundSize:i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"})),i.changeBgSize=!1),i.zoomWindow.css({backgroundPosition:i.windowLeftPos+"px "+i.windowTopPos+"px"}),i.scrollingLock=!1,i.loop=!1;else if(Math.round(Math.abs(i.xp-i.windowLeftPos)+Math.abs(i.yp-i.windowTopPos))<1){clearInterval(i.loop),o=i.zoomWindowStyle.width>i.elem.naturalWidth?i.xp+i.zoomWindowStyle.width/2-i.elem.naturalWidth/2:i.windowLeftPos,t=i.zoomWindowStyle.height>i.elem.naturalHeight?i.yp+i.zoomWindowStyle.height/2-i.elem.naturalHeight/2:i.windowTopPos,i.zoomWindow.css({backgroundPosition:o+"px "+t+"px"}),i.loop=!1}else{var o,t;i.changeBgSize&&(i.nzHeight>i.nzWidth?("lens"===i.options.zoomType&&i.zoomLens.css({backgroundSize:i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({backgroundSize:i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})):("lens"!==i.options.zoomType&&i.zoomLens.css({backgroundSize:i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"}),i.zoomWindow.css({backgroundSize:i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"})),i.changeBgSize=!1),o=i.zoomWindowStyle.width>i.elem.naturalWidth?i.xp+i.zoomWindowStyle.width/2-i.elem.naturalWidth/2:i.xp,t=i.zoomWindowStyle.height>i.elem.naturalHeight?i.yp+i.zoomWindowStyle.height/2-i.elem.naturalHeight/2:i.yp,i.zoomWindow.css({backgroundPosition:o+"px "+t+"px"})}},t))}else i.changeBgSize&&(i.nzHeight>i.nzWidth?("lens"===i.options.zoomType&&i.zoomLens.css({backgroundSize:i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({backgroundSize:i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})):("lens"===i.options.zoomType&&i.zoomLens.css({backgroundSize:i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"}),i.largeHeight/i.newvaluewidth<i.options.zoomWindowHeight?i.zoomWindow.css({backgroundSize:i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"}):i.zoomWindow.css({backgroundSize:i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})),i.changeBgSize=!1),i.zoomWindow.css({backgroundPosition:i.windowLeftPos+"px "+i.windowTopPos+"px"})},setTintPosition:function(o){var e=this,i=e.zoomLens.width(),t=e.zoomLens.height();e.updateOffset(e),e.tintpos=-1*(o.pageX-e.nzOffset.left-i/2),e.tintposy=-1*(o.pageY-e.nzOffset.top-t/2),e.Etoppos&&(e.tintposy=0),e.Eloppos&&(e.tintpos=0),e.Eboppos&&(e.tintposy=-1*(e.nzHeight-t-2*e.options.lensBorderSize)),e.Eroppos&&(e.tintpos=-1*(e.nzWidth-i-2*e.options.lensBorderSize)),e.o
1ptions.tint&&(e.fullheight&&(e.tintposy=0),e.fullwidth&&(e.tintpos=0),e.zoomTintImage.css({left:e.tintpos,top:e.tintposy}))},swaptheimage:function(e,i){var t=this,n=new Image;if(t.options.loadingIcon&&!t.spinner){var s={background:'url("'+t.options.loadingIcon+'")no-repeat',height:t.nzHeight,width:t.nzWidth,zIndex:2e3,position:"absolute",backgroundPosition:"center center"};"inner"===t.options.zoomType&&s.setProperty("top",0),t.spinner=o('<div class="ezp-spinner"></div>').css(s),t.$elem.after(t.spinner)}else t.spinner&&t.spinner.show();t.options.onImageSwap(t.$elem),n.onload=function(){t.largeWidth=n.width,t.largeHeight=n.height,t.zoomImage=i,t.zoomWindow.css({backgroundSize:t.largeWidth+"px "+t.largeHeight+"px"}),t.swapAction(e,i)},t.setImageSource(n,i)},swapAction:function(e,i){var t=this,n=t.$elem.width(),s=t.$elem.height(),a=new Image;if(a.onload=function(){t.nzHeight=a.height,t.nzWidth=a.width,t.options.onImageSwapComplete(t.$elem),t.doneCallback()},t.setImageSource(a,e),t.currentZoomLevel=t.options.zoomLevel,t.options.maxZoomLevel=!1,"lens"===t.options.zoomType&&t.zoomLens.css("background-image",'url("'+i+'")'),"window"===t.options.zoomType&&t.zoomWindow.css("background-image",'url("'+i+'")'),"inner"===t.options.zoomType&&t.zoomWindow.css("background-image",'url("'+i+'")'),t.currentImage=i,t.options.imageCrossfade){var h=t.$elem,d=h.clone();if(t.$elem.attr("src",e),t.$elem.after(d),d.stop(!0).fadeOut(t.options.imageCrossfade,function(){o(this).remove()}),t.$elem.width("auto").removeAttr("width"),t.$elem.height("auto").removeAttr("height"),h.fadeIn(t.options.imageCrossfade),t.options.tint&&"inner"!==t.options.zoomType){var p=t.zoomTintImage,r=p.clone();t.zoomTintImage.attr("src",i),t.zoomTintImage.after(r),r.stop(!0).fadeOut(t.options.imageCrossfade,function(){o(this).remove()}),p.fadeIn(t.options.imageCrossfade),t.zoomTint.css({height:s,width:n})}t.zoomContainer.css({height:s,width:n}),"inner"===t.options.zoomType&&(t.options.constrainType||(t.zoomWrap.parent().css({height:s,width:n}),t.zoomWindow.css({height:s,width:n}))),t.options.imageCrossfade&&t.zoomWrap.css({height:s,width:n})}else t.$elem.attr("src",e),t.options.tint&&(t.zoomTintImage.attr("src",i),t.zoomTintImage.attr("height",s),t.zoomTintImage.css("height",s),t.zoomTint.css("height",s)),t.zoomContainer.css({height:s,width:n}),t.options.imageCrossfade&&t.zoomWrap.css({height:s,width:n});if(t.options.constrainType){if("height"===t.options.constrainType){var l={height:t.options.constrainSize,width:"auto"};t.zoomContainer.css(l),t.options.imageCrossfade?(t.zoomWrap.css(l),t.constwidth=t.zoomWrap.width()):(t.$elem.css(l),t.constwidth=n);var m={height:t.options.constrainSize,width:t.constwidth};"inner"===t.options.zoomType&&(t.zoomWrap.parent().css(m),t.zoomWindow.css(m)),t.options.tint&&(t.tintContainer.css(m),t.zoomTint.css(m),t.zoomTintImage.css(m))}if("width"===t.options.constrainType){var w={height:"auto",width:t.options.constrainSize};t.zoomContainer.css(w),t.options.imageCrossfade?(t.zoomWrap.css(w),t.constheight=t.zoomWrap.height()):(t.$elem.css(w),t.constheight=s);var z={height:t.constheight,width:t.options.constrainSize};"inner"===t.options.zoomType&&(t.zoomWrap.parent().css(z),t.zoomWindow.css(z)),t.options.tint&&(t.tintContainer.css(z),t.zoomTint.css(z),t.zoomTintImage.css(z))}}},doneCallback:function(){var o=this;o.options.loadingIcon&&o.spinner&&o.spinner.length&&o.spinner.hide(),o.updateOffset(o),o.nzWidth=o.$elem.width(),o.nzHeight=o.$elem.height(),o.currentZoomLevel=o.options.zoomLevel,o.widthRatio=o.largeWidth/o.nzWidth,o.heightRatio=o.largeHeight/o.nzHeight,"window"===o.options.zoomType&&(o.nzHeight<o.options.zoomWindowHeight/o.heightRatio?o.lensHeight=o.nzHeight:o.lensHeight=o.options.zoomWindowHeight/o.heightRatio,o.nzWidth<o.options.zoomWindowWidth?o.lensWidth=o.nzWidth:o.lensWidth=o.options.zoomWindowWidth/o.widthRatio,o.zoomLens&&o.zoomLens.css({width:o.lensWidth,height:o.lensHeight}))},getCurrentImage:function(){return this.zoomImage},getGalleryList:function(){var e=this;return e.gallerylist=[],e.options.gallery?o("#"+e.options.gallery+" a").each(function(){var i="";o(this).data(e.options.attrImageZoomSrc)?i=o(this).data(e.options.attrImageZoomSrc):o(this).data("image")&&(i=o(this).data("image")),i===e.zoomImage?e.gallerylist.unshift({href:""+i,title:o(this).find("img").attr("title")}):e.gallerylist.push({href:""+i,title:o(this).find("img").attr("title")})}):e.gallerylist.push({href:""+e.zoomImage,title:o(this).find("img").attr("title")}),e.gallerylist},changeZoomLevel:function(o){var e=this;e.scrollingLock=!0,e.newvalue=parseFloat(o).toFixed(2);var i=e.newvalue,t=e.largeHeight/(e.options.zoomWindowHeight/e.nzHeight*e.nzHeight),n=e.largeWidth/(e.options.zoomWindowWidth/e.nzWidth*e.nzWidth);
1"inner"!==e.options.zoomType&&(t<=i?(e.heightRatio=e.largeHeight/t/e.nzHeight,e.newvalueheight=t,e.fullheight=!0):(e.heightRatio=e.largeHeight/i/e.nzHeight,e.newvalueheight=i,e.fullheight=!1),n<=i?(e.widthRatio=e.largeWidth/n/e.nzWidth,e.newvaluewidth=n,e.fullwidth=!0):(e.widthRatio=e.largeWidth/i/e.nzWidth,e.newvaluewidth=i,e.fullwidth=!1),"lens"===e.options.zoomType&&(t<=i?(e.fullwidth=!0,e.newvaluewidth=t):(e.widthRatio=e.largeWidth/i/e.nzWidth,e.newvaluewidth=i,e.fullwidth=!1))),"inner"===e.options.zoomType&&(i>(t=parseFloat(e.largeHeight/e.nzHeight).toFixed(2))&&(i=t),i>(n=parseFloat(e.largeWidth/e.nzWidth).toFixed(2))&&(i=n),t<=i?(e.heightRatio=e.largeHeight/i/e.nzHeight,e.newvalueheight=i>t?t:i,e.fullheight=!0):(e.heightRatio=e.largeHeight/i/e.nzHeight,e.newvalueheight=i>t?t:i,e.fullheight=!1),n<=i?(e.widthRatio=e.largeWidth/i/e.nzWidth,e.newvaluewidth=i>n?n:i,e.fullwidth=!0):(e.widthRatio=e.largeWidth/i/e.nzWidth,e.newvaluewidth=i,e.fullwidth=!1));var s=!1;"inner"===e.options.zoomType&&(e.nzWidth>=e.nzHeight&&(e.newvaluewidth<=n?s=!0:(s=!1,e.fullheight=!0,e.fullwidth=!0)),e.nzHeight>e.nzWidth&&(e.newvaluewidth<=n?s=!0:(s=!1,e.fullheight=!0,e.fullwidth=!0))),"inner"!==e.options.zoomType&&(s=!0),s&&(e.zoomLock=0,e.changeZoom=!0,e.options.zoomWindowHeight/e.heightRatio<=e.nzHeight&&(e.currentZoomLevel=e.newvalueheight,"lens"!==e.options.zoomType&&"inner"!==e.options.zoomType&&(e.changeBgSize=!0,e.zoomLens.css({height:e.options.zoomWindowHeight/e.heightRatio})),"lens"!==e.options.zoomType&&"inner"!==e.options.zoomType||(e.changeBgSize=!0)),e.options.zoomWindowWidth/e.widthRatio<=e.nzWidth&&("inner"!==e.options.zoomType&&e.newvaluewidth>e.newvalueheight&&(e.currentZoomLevel=e.newvaluewidth),"lens"!==e.options.zoomType&&"inner"!==e.options.zoomType&&(e.changeBgSize=!0,e.zoomLens.css({width:e.options.zoomWindowWidth/e.widthRatio})),"lens"!==e.options.zoomType&&"inner"!==e.options.zoomType||(e.changeBgSize=!0)),"inner"===e.options.zoomType&&(e.changeBgSize=!0,e.nzWidth>e.nzHeight?e.currentZoomLevel=e.newvaluewidth:e.nzHeight>=e.nzWidth&&(e.currentZoomLevel=e.newvaluewidth))),e.setPosition(e.currentLoc)},closeAll:function(){var o=this;o.zoomWindow&&o.zoomWindow.hide(),o.zoomLens&&o.zoomLens.hide(),o.zoomTint&&o.zoomTint.hide()},updateOffset:function(e){if("body"!==e.options.zoomContainerAppendTo){e.nzOffset=e.$elem.offset();var i=o(e.options.zoomContainerAppendTo).offset();e.nzOffset.top=e.$elem.offset().top-i.top,e.nzOffset.left=e.$elem.offset().left-i.left}else e.nzOffset=e.$elem.offset()},changeState:function(o){"enable"===o&&(this.options.zoomEnabled=!0),"disable"===o&&(this.options.zoomEnabled=!1)},responsiveConfig:function(e){return e.respond&&e.respond.length>0?o.extend({},e,this.configByScreenWidth(e)):e},configByScreenWidth:function(i){var t=o(e).width(),n=o.grep(i.respond,function(o){var e=o.range.split("-");return t>=e[0]&&t<=e[1]});return n.length>0?n[0]:i}};o.fn.ezPlus=function(e){return this.each(function(){var i=Object.create(n);i.init(e,this),o.data(this,"ezPlus",i)})},o.fn.ezPlus.options={container:"ZoomContainer",attrImageZoomSrc:"zoom-image",borderColour:"#888",borderSize:4,constrainSize:!1,constrainType:!1,containLensZoom:!1,cursor:"inherit",debug:!1,easing:!1,easingAmount:12,enabled:!0,gallery:!1,galleryActiveClass:"zoomGalleryActive",gallerySelector:!1,galleryItem:"a",galleryEvent:"click",imageCrossfade:!1,lensBorderColour:"#000",lensBorderSize:1,lensColour:"white",lensFadeIn:!1,lensFadeOut:!1,lensOpacity:.4,lensShape:"square",lensSize:200,lenszoom:!1,loadingIcon:!1,mantainZoomAspectRatio:!1,maxZoomLevel:!1,minZoomLevel:1.01,onComplete:o.noop,onDestroy:o.noop,onImageClick:o.noop,onImageSwap:o.noop,onImageSwapComplete:o.noop,onShow:o.noop,onHide:o.noop,onZoomedImageLoaded:o.noop,preloading:1,respond:[],responsive:!0,scrollZoom:!1,scrollZoomIncrement:.1,showLens:!0,tint:!1,tintColour:"#333",tintOpacity:.4,touchEnabled:!0,zoomActivation:"hover",zoomContainerAppendTo:"body",zoomId:-1,zoomLevel:1,zoomTintFadeIn:!1,zoomTintFadeOut:!1,zoomType:"window",zoomWindowAlwaysShow:!1,zoomWindowBgColour:"#fff",zoomWindowFadeIn:!1,zoomWindowFadeOut:!1,zoomWindowHeight:400,zoomWindowOffsetX:0,zoomWindowOffsetY:0,zoomWindowPosition:1,zoomWindowWidth:400,zoomEnabled:!0,zIndex:999}}(window.jQuery,window,document);(function($){var _init=$.fn.elevateZoom;$.fn.elevateZoom=function(options){var $elements=_init.call(this,options);$elements.each(function(){var ez=$(this).data('elevateZoom');if(!ez)return;if(ez.zoomWindow){var $zoom=$(ez.zoomWindow);var origFadeIn=$zoom.fadeIn;$zoom.fadeIn=function(duration){if($zoom.length){return origFadeIn.call($zoom,duration||0)}};var origFadeOut=$zoom.fadeOut;$zoom.fadeOut=function(duration){if($zoom.length){return origFadeOut.call($zoom,duration||0)}};var origStop=$zoom.stop;$zoom.stop=function(clearQueue,jumpToEnd){if($zoom.length&&origStop){return origStop.call($zoom,clearQueue,jumpToEnd)}}}});return $elements}})(jQuery);!function(a){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/=",c=function(a){a=a.toString(),a=a.replace(/\x0d\x0a/g,"\n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);d<128?b+=String.fromCharCode(d):d>127&&d<2048?(b+=String.fromCharCode(d>>6|192),b+=String.fromCharCode(63&d|128)):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128),b+=String.fromCharCode(63&d|128))}return b},d=function(a){for(var b="",c=0,d=c1=c2=0;c<a.length;)d=a.charCodeAt(c),d<128?(b+=String.fromCharCode(d),c++):d>191&&d<224?(c2=a.charCodeAt(c+1),b+=String.fromCharCode((31&d)<<6|63&c2),c+=2):(c2=a.charCodeAt(c+1),c3=a.charCodeAt(c+2),b+=String.fromCharCode((15&d)<<12|(63&c2)<<6|63&c3),c+=3);return b};a.extend({base64Encode:function(a){var e,f,g,h,i,j,k,d="",l=0;for(a=c(a);l<a.length;)e=a.charCodeAt(l++),f=a.charCodeAt(l++),g=a.charCodeAt(l++),h=e>>2,i=(3&e)<<4|f>>4,j=(15&f)<<2|g>>6,k=63&g,isNaN(f)?j=k=64:isNaN(g)&&(k=64),d=d+b.charAt(h)+b.charAt(i)+b.charAt(j)+b.charAt(k);return d},base64Decode:function(a){var e,f,g,h,i,j,k,c="",l=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");l<a.length;)h=b.indexOf(a.charAt(l++)),i=b.indexOf(a.charAt(l++)),j=b.indexOf(a.charAt(l++)),k=b.indexOf(a.charAt(l++)),e=h<<2|i>>4,f=(15&i)<<4|j>>2,g=(3&j)<<6|k,c+=String.fromCharCode(e),64!=j&&(c+=String.fromCharCode(f)),64!=k&&(c+=String.fromCharCode(g));return c=d(c)}})}(jQuery);"function"!=typeof Object.create&&(Object.create=function(t){function o(){}return o.prototype=t,new o}),function(t,o,i,s){"use strict";var n={_positionClasses:["bottom-left","bottom-right","top-right","top-left","bottom-center","top-center","mid-center"],_defaultIcons:["success","error","info","warning"],init:function(o,i){this.prepareOptions(o,t.toast.options),this.process()},prepareOptions:function(o,i){var s={};"string"==typeof o||o instanceof Array?s.text=o:s=o,this.options=t.extend({},i,s)},process:function(){this.setup(),this.addToDom(),this.position(),this.bindToast(),this.animate()},setup:function(){var o="";if(this._toastEl=this._toastEl||t("<div></div>",{class:"jq-toast-single"}),o+='<span class="jq-toast-loader"></span>',this.options.allowToastClose&&(o+='<span class="close-jq-toast-single">×</span>'),this.options.text instanceof Array){this.options.heading&&(o+='<h2 class="jq-toast-heading">'+this.options.heading+"</h2>"),o+='<ul class="jq-toast-ul">';for(var i=0;i<this.options.text.length;i++)o+='<li class="jq-toast-li" id="jq-toast-item-'+i+'">'+this.options.text[i]+"</li>";o+="</ul>"}else this.options.heading&&(o+='<h2 class="jq-toast-heading">'+this.options.heading+"</h2>"),o+=this.options.text;this._toastEl.html(o),!1!==this.options.bgColor&&this._toastEl.css("background-color",this.options.bgColor),!1!==this.options.textColor&&this._toastEl.css("color",this.options.textColor),this.options.textAlign&&this._toastEl.css("text-align",this.options.textAlign),!1!==this.options.icon&&(this._toastEl.addClass("jq-has-icon"),-1!==t.inArray(this.options.icon,this._defaultIcons)&&this._toastEl.addClass("jq-icon-"+this.options.icon)),!1!==this.options.class&&this._toastEl.addClass(this.options.class)},position:function(){"string"==typeof this.options.position&&-1!==t.inArray(this.options.position,this._positionClasses)?"bottom-center"===this.options.position?this._container.css({left:t(o).outerWidth()/2-this._container.outerWidth()/2,bottom:20}):"top-center"===this.options.position?this._container.css({left:t(o).outerWidth()/2-this._container.outerWidth()/2,top:20}):"mid-center"===this.options.position?this._container.css({left:t(o).outerWidth()/2-this._container.outerWidth()/2,top:t(o).outerHeight()/2-this._container.outerHeight()/2}):this._container.addClass(this.options.position):"object"==typeof this.options.position?this._container.css({top:this.options.position.top?this.options.position.top:"auto",bottom:this.options.position.bottom?this.options.position.bottom:"auto",left:this.options.position.left?this.options.position.left:"auto",right:this.options.position.right?this.options.position.right:"auto"}):this._container.addClass("bottom-left")},bindToast:function(){var t=this;this._toastEl.on("afterShown",function(){t.processLoader()}),this._toastEl.find(".close-jq-toast-single").on("click",function(o){o.preventDefault(),"fade"===t.options.showHideTransition?(t._toastEl.trigger("beforeHide"),t._toastEl.fadeOut(function(){t._toastEl.trigger("afterHidden")})):"slide"===t.options.showHideTransition?(t._toastEl.trigger("beforeHide"),t._toastEl.slideUp(function(){t._toastEl.trigger("afterHidden")})):(t._toastEl.trigger("beforeHide"),t._toastEl.hide(function(){t._toastEl.trigger("afterHidden")}))}),"function"==typeof this.options.beforeShow&&this._toastEl.on("beforeShow",function(){t.options.beforeShow(t._toastEl)}),"function"==typeof this.options.afterShown&&this._toastEl.on("afterShown",function(){t.options.afterShown(t._toastEl)}),"function"==typeof this.options.beforeHide&&this._toastEl.on("beforeHide",function(){t.options.beforeHide(t._toastEl)}),"function"==typeof this.options.afterHidden&&this._toastEl.on("afterHidden",function(){t.options.afterHidden(t._toastEl)}),"function"==typeof this.options.onClick&&this._toastEl.on("click",function(){t.options.onClick(t._toastEl)})},addToDom:function(){var o=t(".jq-toast-wrap");if(0===o.length?(o=t("<div></div>",{class:"jq-toast-wrap",role:"alert","aria-live":"polite"}),t("body").append(o)):this.options.stack&&!isNaN(parseInt(this.options.stack,
110))||o.empty(),o.find(".jq-toast-single:hidden").remove(),o.append(this._toastEl),this.options.stack&&!isNaN(parseInt(this.options.stack),10)){var i=o.find(".jq-toast-single").length-this.options.stack;i>0&&t(".jq-toast-wrap").find(".jq-toast-single").slice(0,i).remove()}this._container=o},canAutoHide:function(){return!1!==this.options.hideAfter&&!isNaN(parseInt(this.options.hideAfter,10))},processLoader:function(){if(!this.canAutoHide()||!1===this.options.loader)return!1;var t=this._toastEl.find(".jq-toast-loader"),o=(this.options.hideAfter-400)/1e3+"s",i=this.options.loaderBg,s=t.attr("style")||"";s=s.substring(0,s.indexOf("-webkit-transition")),s+="-webkit-transition: width "+o+" ease-in; -o-transition: width "+o+" ease-in; transition: width "+o+" ease-in; background-color: "+i+";",t.attr("style",s).addClass("jq-toast-loaded")},animate:function(){t=this;if(this._toastEl.hide(),this._toastEl.trigger("beforeShow"),"fade"===this.options.showHideTransition.toLowerCase()?this._toastEl.fadeIn(function(){t._toastEl.trigger("afterShown")}):"slide"===this.options.showHideTransition.toLowerCase()?this._toastEl.slideDown(function(){t._toastEl.trigger("afterShown")}):this._toastEl.show(function(){t._toastEl.trigger("afterShown")}),this.canAutoHide()){var t=this;o.setTimeout(function(){"fade"===t.options.showHideTransition.toLowerCase()?(t._toastEl.trigger("beforeHide"),t._toastEl.fadeOut(function(){t._toastEl.trigger("afterHidden")})):"slide"===t.options.showHideTransition.toLowerCase()?(t._toastEl.trigger("beforeHide"),t._toastEl.slideUp(function(){t._toastEl.trigger("afterHidden")})):(t._toastEl.trigger("beforeHide"),t._toastEl.hide(function(){t._toastEl.trigger("afterHidden")}))},this.options.hideAfter)}},reset:function(o){"all"===o?t(".jq-toast-wrap").remove():this._toastEl.remove()},update:function(t){this.prepareOptions(t,this.options),this.setup(),this.bindToast()},close:function(){this._toastEl.find(".close-jq-toast-single").click()}};t.toast=function(t){var o=Object.create(n);return o.init(t,this),{reset:function(t){o.reset(t)},update:function(t){o.update(t)},close:function(){o.close()}}},t.toast.options={text:"",heading:"",showHideTransition:"fade",allowToastClose:!0,hideAfter:3e3,loader:!0,loaderBg:"#9EC600",stack:5,position:"bottom-left",bgColor:!1,textColor:!1,textAlign:"left",icon:!1,beforeShow:function(){},afterShown:function(){},beforeHide:function(){},afterHidden:function(){},onClick:function(){}}}(jQuery,window,document);"use strict";!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,(function(e){function t(e){return{width:(e=e.getBoundingClientRect()).width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function n(e){return null==e?window:"[object Window]"!==e.toString()?(e=e.ownerDocument)&&e.defaultView||window:e}function o(e){return{scrollLeft:(e=n(e)).pageXOffset,scrollTop:e.pageYOffset}}function r(e){return e instanceof n(e).Element||e instanceof Element}function i(e){return e instanceof n(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof n(e).ShadowRoot||e instanceof ShadowRoot)}function s(e){return e?(e.nodeName||"").toLowerCase():null}function f(e){return((r(e)?e.ownerDocument:e.document)||window.document).documentElement}function p(e){return t(f(e)).left+o(e).scrollLeft}function c(e){return n(e).getComputedStyle(e)}function l(e){return e=c(e),/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function u(e,r,a){void 0===a&&(a=!1);var c=f(r);e=t(e);var u=i(r),d={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(u||!u&&!a)&&(("body"!==s(r)||l(c))&&(d=r!==n(r)&&i(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:o(r)),i(r)?((m=t(r)).x+=r.clientLeft,m.y+=r.clientTop):c&&(m.x=p(c))),{x:e.left+d.scrollLeft-m.x,y:e.top+d.scrollTop-m.y,width:e.width,height:e.height}}function d(e){var n=t(e),o=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(n.width-o)&&(o=n.width),1>=Math.abs(n.height-r)&&(r=n.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function m(e){return"html"===s(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||f(e)}function h(e){return 0<=["html","body","#document"].indexOf(s(e))?e.ownerDocument.body:i(e)&&l(e)?e:h(m(e))}function v(e,t){var o;void 0===t&&(t=[]);var r=h(e);return e=r===(null==(o=e.ownerDocument)?void 0:o.body),o=n(r),r=e?[o].concat(o.visualVie
vendor: 15,977 bytes, line 1
1wport||[],l(r)?r:[]):r,t=t.concat(r),e?t:t.concat(v(m(r)))}function g(e){return i(e)&&"fixed"!==c(e).position?e.offsetParent:null}function y(e){for(var t=n(e),o=g(e);o&&0<=["table","td","th"].indexOf(s(o))&&"static"===c(o).position;)o=g(o);if(o&&("html"===s(o)||"body"===s(o)&&"static"===c(o).position))return t;if(!o)e:{if(o=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),-1===navigator.userAgent.indexOf("Trident")||!i(e)||"fixed"!==c(e).position)for(e=m(e);i(e)&&0>["html","body"].indexOf(s(e));){var r=c(e);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||o&&"filter"===r.willChange||o&&r.filter&&"none"!==r.filter){o=e;break e}e=e.parentNode}o=null}return o||t}function b(e){function t(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){o.has(e)||(e=n.get(e))&&t(e)})),r.push(e)}var n=new Map,o=new Set,r=[];return e.forEach((function(e){n.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||t(e)})),r}function w(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function x(e){return e.split("-")[0]}function O(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a(n))do{if(t&&e.isSameNode(t))return!0;t=t.parentNode||t.host}while(t);return!1}function j(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function E(e,r){if("viewport"===r){r=n(e);var a=f(e);r=r.visualViewport;var s=a.clientWidth;a=a.clientHeight;var l=0,u=0;r&&(s=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,u=r.offsetTop)),e=j(e={width:s,height:a,x:l+p(e),y:u})}else i(r)?((e=t(r)).top+=r.clientTop,e.left+=r.clientLeft,e.bottom=e.top+r.clientHeight,e.right=e.left+r.clientWidth,e.width=r.clientWidth,e.height=r.clientHeight,e.x=e.left,e.y=e.top):(u=f(e),e=f(u),s=o(u),r=null==(a=u.ownerDocument)?void 0:a.body,a=_(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=_(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),u=-s.scrollLeft+p(u),s=-s.scrollTop,"rtl"===c(r||e).direction&&(u+=_(e.clientWidth,r?r.clientWidth:0)-a),e=j({width:a,height:l,x:u,y:s}));return e}function D(e,t,n){return t="clippingParents"===t?function(e){var t=v(m(e)),n=0<=["absolute","fixed"].indexOf(c(e).position)&&i(e)?y(e):e;return r(n)?t.filter((function(e){return r(e)&&O(e,n)&&"body"!==s(e)})):[]}(e):[].concat(t),(n=(n=[].concat(t,[n])).reduce((function(t,n){return n=E(e,n),t.top=_(n.top,t.top),t.right=U(n.right,t.right),t.bottom=U(n.bottom,t.bottom),t.left=_(n.left,t.left),t}),E(e,n[0]))).width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}function L(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}function P(e){var t=e.reference,n=e.element,o=(e=e.placement)?x(e):null;e=e?e.split("-")[1]:null;var r=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2;switch(o){case"top":r={x:r,y:t.y-n.height};break;case"bottom":r={x:r,y:t.y+t.height};break;case"right":r={x:t.x+t.width,y:i};break;case"left":r={x:t.x-n.width,y:i};break;default:r={x:t.x,y:t.y}}if(null!=(o=o?L(o):null))switch(i="y"===o?"height":"width",e){case"start":r[o]-=t[i]/2-n[i]/2;break;case"end":r[o]+=t[i]/2-n[i]/2}return r}function M(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function k(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function A(e,n){void 0===n&&(n={});var o=n;n=void 0===(n=o.placement)?e.placement:n;var i=o.boundary,a=void 0===i?"clippingParents":i,s=void 0===(i=o.rootBoundary)?"viewport":i;i=void 0===(i=o.elementContext)?"popper":i;var p=o.altBoundary,c=void 0!==p&&p;o=M("number"!=typeof(o=void 0===(o=o.padding)?0:o)?o:k(o,C));var l=e.elements.reference;p=e.rects.popper,a=D(r(c=e.elements[c?"popper"===i?"reference":"popper":i])?c:c.contextElement||f(e.elements.popper),a,s),c=P({reference:s=t(l),element:p,strategy:"absolute",placement:n}),p=j(Object.assign({},p,c)),s="popper"===i?p:s;var u={top:a.top-s.top+o.top,bottom:s.bottom-a.bottom+o.bottom,left:a.left-s.left+o.left,right:s.right-a.right+o.right};if(e=e.modifiersData.offset,"popper"===i&&e){var d=e[n];Object.keys(u).forEach((function(e){var t=0<=["right","bottom"].indexOf(e)?1:-1,n=0<=["top","bottom"].indexOf(e)?"y":"x";u[e]+=d[n]*t}))}return u}function W(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function B(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,o=void 0===(e=e.defaultOptions)?F:e;return function(e,t,i){function a(){f.forEach((function(e){return e()})),f=[]}void 0===i&&(i=o);var s={placement:"bottom",orderedModifiers:[],options:Object.assign({},F,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},f=[],p=!1,c={state:s,setOptions:function(i){return a(),s.options=Object.assign({},o,s.options,i),s.scrollParents={reference:r(e)?v(e):e.contextElement?v(e.contextElement):[],popper:v(t)},i=function(e){var t=b(e);return I.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,s.options.modifiers))),s.orderedModifiers=i.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options;n=void 0===n?{}:n,"function"==typeof(e=e.effect)&&(t=e({state:s,name:t,instance:c,options:n}),f.push(t||function(){}))})),c.update()},forceUpdate:function(){if(!p){var e=s.elements,t=e.reference;if(W(t,e=e.popper))for(s.rects={reference:u(t,y(e),"fixed"===s.options.strategy),popper:d(e)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)})),t=0;t<s.orderedModifiers.length;t++)if(!0===s.reset)s.reset=!1,t=-1;else{var n=s.orderedModifiers[t];e=n.fn;var o=n.options;o=void 0===o?{}:o,n=n.name,"function"==typeof e&&(s=e({state:s,options:o,name:n,instance:c})||s)}}},update:w((function(){return new Promise((function(e){c.forceUpdate(),e(s)}))})),destroy:function(){a(),p=!0}};return W(e,t)?(c.setOptions(i).then((function(e){!p&&i.onFirstUpdate&&i.onFirstUpdate(e)})),c):c}}function T(e){var t,o=e.popper,r=e.popperRect,i=e.placement,a=e.offsets,s=e.position,p=e.gpuAcceleration,l=e.adaptive;if(!0===(e=e.roundOffsets)){e=a.y;var u=window.devicePixelRatio||1;e={x:z(z(a.x*u)/u)||0,y:z(z(e*u)/u)||0}}else e="function"==typeof e?e(a):a;e=void 0===(e=(u=e).x)?0:e,u=void 0===(u=u.y)?0:u;var d=a.hasOwnProperty("x");a=a.hasOwnProperty("y");var m,h="left",v="top",g=window;if(l){var b=y(o),w="clientHeight",x="clientWidth";b===n(o)&&("static"!==c(b=f(o)).position&&(w="scrollHeight",x="scrollWidth")),"top"===i&&(v="bottom",u-=b[w]-r.height,u*=p?1:-1),"left"===i&&(h="right",e-=b[x]-r.width,e*=p?1:-1)}return o=Object.assign({position:s},l&&J),p?Object.assign({},o,((m={})[v]=a?"0":"",m[h]=d?"0":"",m.transform=2>(g.devicePixelRatio||1)?"translate("+e+"px, "+u+"px)":"translate3d("+e+"px, "+u+"px, 0)",m)):Object.assign({},o,((t={})[v]=a?u+"px":"",t[h]=d?e+"px":"",t.transform="",t))}function H(e){return e.replace(/left|right|bottom|top/g,(function(e){return $[e]}))}function R(e){return e.replace(/start|end/g,(function(e){return ee[e]}))}function S(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function q(e){return["top","right","bottom","left"].some((function(t){return 0<=e[t]}))}var C=["top","bottom","right","left"],N=C.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),V=[].concat(C,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),I="beforeRead read afterRead beforeMain main afterMain beforeWrite write afterWrite".split(" "),_=Math.max,U=Math.min,z=Math.round,F={placement:"bottom",modifiers:[],strategy:"absolute"},X={passive:!0},Y={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,r=(e=e.options).scroll,i=void 0===r||r,a=void 0===(e=e.resize)||e,s=n(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach((function(e){e.addEventListener("scroll",o.update,X)})),a&&s.addEventListener("resize",o.update,X),function(){i&&f.forEach((function(e){e.removeEventListener("scroll",o.update,X)})),a&&s.removeEventListener("resize",o.update,X)}},data:{}},G={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=P({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},J={top:"auto",right:"auto",bottom:"auto",left:"auto"},K={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options;e=void 0===(e=n.gpuAcceleration)||e;var o=n.adaptive;o=void 0===o||o,n=void 0===(n=n.roundOffsets)||n,e={placement:x(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:e},null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,T(Object.assign({},e,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:n})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,T(Object.assign({},e,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:n})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Q={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];i(r)&&s(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],r=t.attributes[e]||{};e=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{}),i(o)&&s(o)&&(Object.assign(o.style,e),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]},Z={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,o=void 0===(e=e.options.offset)?[0,0]:e,r=(e=V.reduce((function(e,n){var r=t.rects,i=x(n),a=0<=["left","top"].indexOf(i)?-1:1,s="function"==typeof o?o(Object.assign({},r,{placement:n})):o;return r=(r=s[0])||0,s=((s=s[1])||0)*a,i=0<=["left","right"].indexOf(i)?{x:s,y:r}:{x:r,y:s},e[n]=i,e}),{}))[t.placement],i=r.x;r=r.y,null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=r),t.modifiersData[n]=e}},$={left:"right",right:"left",bottom:"top",top:"bottom"},ee={start:"end",end:"start"},te={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options;if(e=e.name,!t.modifiersData[e]._skip){var o=n.mainAxis;o=void 0===o||o;var r=n.altAxis;r=void 0===r||r;var i=n.fallbackPlacements,a=n.padding,s=n.boundary,f=n.rootBoundary,p=n.altBoundary,c=n.flipVariations,l=void 0===c||c,u=n.allowedAutoPlacements;c=x(n=t.options.placement),i=i||(c!==n&&l?function(e){if("auto"===x(e))return[];var t=H(e);return[R(e),t,R(t)]}(n):[H(n)]);var d=[n].concat(i).reduce((function(e,n){return e.concat("auto"===x(n)?function(e,t){void 0===t&&(t={});var n=t.boundary,o=t.rootBoundary,r=t.padding,i=t.flipVariations,a=t.allowedAutoPlacements,s=void 0===a?V:a,f=t.placement.split("-")[1];0===(i=(t=f?i?N:N.filter((function(e){return e.split("-")[1]===f})):C).filter((function(e){return 0<=s.indexOf(e)}))).length&&(i=t);var p=i.reduce((function(t,i){return t[i]=A(e,{placement:i,boundary:n,rootBoundary:o,padding:r})[x(i)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:s,rootBoundary:f,padding:a,flipVariations:l,allowedAutoPlacements:u}):n)}),[]);n=t.rects.reference,i=t.rects.popper;var m=new Map;c=!0;for(var h=d[0],v=0;v<d.length;v++){var g=d[v],y=x(g),b="start"===g.split("-")[1],w=0<=["top","bottom"].indexOf(y),O=w?"width":"height",j=A(t,{placement:g,boundary:s,rootBoundary:f,altBoundary:p,padding:a});if(b=w?b?"right":"left":b?"bottom":"top",n[O]>i[O]&&(b=H(b)),O=H(b),w=[],o&&w.push(0>=j[y]),r&&w.push(0>=j[b],0>=j[O]),w.every((function(e){return e}))){h=g,c=!1;break}m.set(g,w)}if(c)for(o=function(e){var t=d.find((function(t){if(t=m.get(t))return t.slice(0,e).every((function(e){return e}))}));if(t)return h=t,"break"},r=l?3:1;0<r&&"break"!==o(r);r--);t.placement!==h&&(t.modifiersData[e]._skip=!0,t.placement=h,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ne={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options;e=e.name;var o=n.mainAxis,r=void 0===o||o,i=void 0!==(o=n.altAxis)&&o;o=void 0===(o=n.tether)||o;var a=n.tetherOffset,s=void 0===a?0:a,f=A(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary});n=x(t.placement);var p=t.placement.split("-")[1],c=!p,l=L(n);n="x"===l?"y":"x",a=t.modifiersData.popperOffsets;var u=t.rects.reference,m=t.rects.popper,h="function"==typeof s?s(Object.assign({},t.rects,{placement:t.placement})):s;if(s={x:0,y:0},a){if(r||i){var v="y"===l?"top":"left",g="y"===l?"bottom":"right",b="y"===l?"height":"width",w=a[l],O=a[l]+f[v],j=a[l]-f[g],E=o?-m[b]/2:0,D="start"===p?u[b]:m[b];p="start"===p?-m[b]:-u[b],m=t.elements.arrow,m=o&&m?d(m):{width:0,height:0};var P=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0};v=P[v],g=P[g],m=_(0,U(u[b],m[b])),D=c?u[b]/2-E-m-v-h:D-m-v-h,u=c?-u[b]/2+E+m+g+h:p+m+g+h,c=t.elements.arrow&&y(t.elements.arrow),h=t.modifiersData.offset?t.modifiersData.offset[t.placement][l]:0,c=a[l]+D-h-(c?"y"===l?c.clientTop||0:c.clientLeft||0:0),u=a[l]+u-h,r&&(r=o?U(O,c):O,j=o?_(j,u):j,r=_(r,U(w,j)),a[l]=r,s[l]=r-w),i&&(r=(i=a[n])+f["x"===l?"top":"left"],f=i-f["x"===l?"bottom":"right"],r=o?U(r,c):r,o=o?_(f,u):f,o=_(r,U(i,o)),a[n]=o,s[n]=o-i)}t.modifiersData[e]=s}},requiresIfExists:["offset"]},oe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=x(n.placement);if(e=L(s),s=0<=["left","right"].indexOf(s)?"height":"width",i&&a){r=M("number"!=typeof(r="function"==typeof(r=r.padding)?r(Object.assign({},n.rects,{placement:n.placement})):r)?r:k(r,C));var f=d(i),p="y"===e?"top":"left",c="y"===e?"bottom":"right",l=n.rects.reference[s]+n.rects.reference[e]-a[e]-n.rects.popper[s];a=a[e]-n.rects.reference[e],a=(i=(i=y(i))?"y"===e?i.clientHeight||0:i.clientWidth||0:0)/2-f[s]/2+(l/2-a/2),s=_(r[p],U(a,i-f[s]-r[c])),n.modifiersData[o]=((t={})[e]=s,t.centerOffset=s-a,t)}},effect:function(e){var t=e.state;if(null!=(e=void 0===(e=e.options.element)?"[data-popper-arrow]":e)){if("string"==typeof e&&!(e=t.elements.popper.querySelector(e)))return;O(t.elements.popper,e)&&(t.elements.arrow=e)}},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},re={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state;e=e.name;var n=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,i=A(t,{elementContext:"reference"}),a=A(t,{altBoundary:!0});n=S(i,n),o=S(a,o,r),r=q(n),a=q(o),t.modifiersData[e]={referenceClippingOffsets:n,popperEscapeOffsets:o,isReferenceHidden:r,hasPopperEscaped:a},t.attributes.popper=Object.assign({}
1,t.attributes.popper,{"data-popper-reference-hidden":r,"data-popper-escaped":a})}},ie=B({defaultModifiers:[Y,G,K,Q]}),ae=[Y,G,K,Q,Z,te,ne,oe,re],se=B({defaultModifiers:ae});e.applyStyles=Q,e.arrow=oe,e.computeStyles=K,e.createPopper=se,e.createPopperLite=ie,e.defaultModifiers=ae,e.detectOverflow=A,e.eventListeners=Y,e.flip=te,e.hide=re,e.offset=Z,e.popperGenerator=B,e.popperOffsets=G,e.preventOverflow=ne,Object.defineProperty(e,"__esModule",{value:!0})}));
vendor: 54,377 bytes, line 1
1!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper)}(this,(function(t){"use strict";function e(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(s){if("default"!==s){var i=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:function(){return t[s]}})}})),e.default=t,Object.freeze(e)}var s=e(t);const i={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const s=[];let i=t.parentNode;for(;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)i.matches(e)&&s.push(i),i=i.parentNode;return s},prev(t,e){let s=t.previousElementSibling;for(;s;){if(s.matches(e))return[s];s=s.previousElementSibling}return[]},next(t,e){let s=t.nextElementSibling;for(;s;){if(s.matches(e))return[s];s=s.nextElementSibling}return[]}},n=t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},o=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let s=t.getAttribute("href");if(!s||!s.includes("#")&&!s.startsWith("."))return null;s.includes("#")&&!s.startsWith("#")&&(s="#"+s.split("#")[1]),e=s&&"#"!==s?s.trim():null}return e},r=t=>{const e=o(t);return e&&document.querySelector(e)?e:null},a=t=>{const e=o(t);return e?document.querySelector(e):null},l=t=>{t.dispatchEvent(new Event("transitionend"))},c=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),h=t=>c(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?i.findOne(t):null,d=(t,e,s)=>{Object.keys(s).forEach(i=>{const n=s[i],o=e[i],r=o&&c(o)?"element":null==(a=o)?""+a:{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase();var a;if(!new RegExp(n).test(r))throw new TypeError(`${t.toUpperCase()}: Option "${i}" provided type "${r}" but expected type "${n}".`)})},u=t=>!(!c(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),g=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),p=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?p(t.parentNode):null},f=()=>{},m=t=>t.offsetHeight,_=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},b=[],v=()=>"rtl"===document.documentElement.dir,y=t=>{var e;e=()=>{const e=_();if(e){const s=t.NAME,i=e.fn[s];e.fn[s]=t.jQueryInterface,e.fn[s].Constructor=t,e.fn[s].noConflict=()=>(e.fn[s]=i,t.jQueryInterface)}},"loading"===document.readyState?(b.length||document.addEventListener("DOMContentLoaded",()=>{b.forEach(t=>t())}),b.push(e)):e()},w=t=>{"function"==typeof t&&t()},E=(t,e,s=!0)=>{if(!s)return void w(t);const i=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:s}=window.getComputedStyle(t);const i=Number.parseFloat(e),n=Number.parseFloat(s);return i||n?(e=e.split(",")[0],s=s.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(s))):0})(e)+5;let n=!1;const o=({target:s})=>{s===e&&(n=!0,e.removeEventListener("transitionend",o),w(t))};e.addEventListener("transitionend",o),setTimeout(()=>{n||l(e)},i)},A=(t,e,s,i)=>{let n=t.indexOf(e);if(-1===n)return t[!s&&i?t.length-1:0];const o=t.length;return n+=s?1:-1,i&&(n=(n+o)%o),t[Math.max(0,Math.min(n,o-1))]},T=/[^.]*(?=\..*)\.|.*/,C=/\..*/,k=/::\d+$/,L={};let O=1;const D={mouseenter:"mouseover",mouseleave:"mouseout"},I=/^(mouseenter|mouseleave)/i,N=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function S(t,e){return e&&`${e}::${O++}`||t.uidEvent||O++}function x(t){const e=S(t);return t.uidEvent=e,L[e]=L[e]||{},L[e]}function M(t,e,s=null){const i=Object.keys(t);for(let n=0,o=i.length;n<o;n++){const o=t[i[n]];if(o.originalHandler===e&&o.delegationSelector===s)return o}return null}function P(t,e,s){const i="string"==typeof e,n=i?s:e;let o=R(t);return N.has(o)||(o=t),[i,n,o]}function j(t,e,s,i,n){if("string"!=typeof e||!t)return;if(s||(s=i,i=null),I.test(e)){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};i?i=t(i):s=t(s)}const[o,r,a]=P(e,s,i),l=x(t),c=l[a]||(l[a]={}),h=M(c,r,o?s:null);if(h)return void(h.oneOff=h.oneOff&&n);const d=S(r,e.replace(T,"")),u=o?function(t,e,s){return function i(n){const o=t.querySelectorAll(e);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return n.delegateTarget=r,i.oneOff&&B.off(t,n.type,e,s),s.apply(r,[n]);return null}}(t,s,i):function(t,e){return function s(i){return i.delegateTarget=t,s.oneOff&&B.off(t,i.type,e),e.apply(t,[i])}}(t,s);u.delegationSelector=o?s:null,u.originalHandler=r,u.oneOff=n,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function H(t,e,s,i,n){const o=M(e[s],i,n);o&&(t.removeEventListener(s,o,Boolean(n)),delete e[s][o.uidEvent])}function R(t){return t=t.replace(C,""),D[t]||t}const B={on(t,e,s,i){j(t,e,s,i,!1)},one(t,e,s,i){j(t,e,s,i,!0)},off(t,e,s,i){if("string"!=typeof e||!t)return;const[n,o,r]=P(e,s,i),a=r!==e,l=x(t),c=e.startsWith(".");if(void 0!==o){if(!l||!l[r])return;return void H(t,l,r,o,n?s:null)}c&&Object.keys(l).forEach(s=>{!function(t,e,s,i){const n=e[s]||{};Object.keys(n).forEach(o=>{if(o.includes(i)){const i=n[o];H(t,e,s,i.originalHandler,i.delegationSelector)}})}(t,l,s,e.slice(1))});const h=l[r]||{};Object.keys(h).forEach(s=>{const i=s.replace(k,"");if(!a||e.includes(i)){const e=h[s];H(t,l,r,e.originalHandler,e.delegationSelector)}})},trigger(t,e,s){if("string"!=typeof e||!t)return null;const i=_(),n=R(e),o=e!==n,r=N.has(n);let a,l=!0,c=!0,h=!1,d=null;return o&&i&&(a=i.Event(e,s),i(t).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),h=a.isDefaultPrevented()),r?(d=document.createEvent("HTMLEvents"),d.initEvent(n,l,!0)):d=new CustomEvent(e,{bubbles:l,cancelable:!0}),void 0!==s&&Object.keys(s).forEach(t=>{Object.defineProperty(d,t,{get:()=>s[t]})}),h&&d.preventDefault(),c&&t.dispatchEvent(d),d.defaultPrevented&&void 0!==a&&a.preventDefault(),d}},$=new Map;var W={set(t,e,s){$.has(t)||$.set(t,new Map);const i=$.get(t);i.has(e)||0===i.size?i.set(e,s):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(t,e)=>$.has(t)&&$.get(t).get(e)||null,remove(t,e){if(!$.has(t))return;const s=$.get(t);s.delete(e),0===s.size&&$.delete(t)}};class q{constructor(t){(t=h(t))&&(this._element=t,W.set(this._element,this.constructor.DATA_KEY,this))}dispose(){W.remove(this._element,this.constructor.DATA_KEY),B.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(t=>{this[t]=null})}_queueCallback(t,e,s=!0){E(t,e,s)}static getInstance(t){return W.get(t,this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.0.2"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return"bs."+this.NAME}static get EVENT_KEY(){return"."+this.DATA_KEY}}class z extends q{static get NAME(){return"alert"}close(t){const e=t?this._getRootElement(t):this._element,s=this._triggerCloseEvent(e);null===s||s.defaultPrevented||this._removeElement(e)}_getRootElement(t){return a(t)||t.closest(".alert")}_triggerCloseEvent(t){return B.trigger(t,"close.bs.alert")}_removeElement(t){t.classList.remove("show");const e=t.classList.contains("fade");this._queueCallback(()=>this._destroyElement(t),t,e)}_destroyElement(t){t.remove(),B.trigger(t,"closed.bs.alert")}static jQueryInterface(t){return this.each((function(){const e=z.getOrCreateInstance(this);"close"===t&&e[t](this)}))}static handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}B.on(document,"click.bs.alert.data-api",'[data-bs-dismiss="alert"]',z.handleDismiss(new z)),y(z);class F extends q{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=F.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}function U(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function K(t){return t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}B.on(document,"click.bs.button.data-api",'[data-bs-toggle="button"]',t=>{t.preventDefault();const e=t.target.closest('[data-bs-toggle="button"]');F.getOrCreateInstance(e).toggle()}),y(F);const V={setDataAttribute(t,e,s){t.setAttribute("data-bs-"+K(e),s)},removeDataAttribute(t,e){t.removeAttribute("data-bs-"+K(e))},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter(t=>t.startsWith("bs")).forEach(s=>{let i=s.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=U(t.dataset[s])}),e},getDataAttribute:(t,e)=>U(t.getAttribute("data-bs-"+K(e))),offset(t){const e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},Q={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},X={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Y="next",G="prev",Z="left",J="right",tt={ArrowLeft:J,ArrowRight:Z};class et extends q{constructor(t,e){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._indicatorsElement=i.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return Q}static get NAME(){return"carousel"}next(){this._slide(Y)}nextWhenVisible(){!document.hidden&&u(this._element)&&this.next()}prev(){this._slide(G)}pause(t){t||(this._isPaused=!0),i.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(l(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=i.findOne(".active.carousel-item",this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void B.one(this._element,"slid.bs.carousel",()=>this.to(t));if(e===t)return this.pause(),void this.cycle();const s=t>e?Y:G;this._slide(s,this._items[t])}_getConfig(t){return t={...Q,...V.getDataAttributes(this._element),..."object"==typeof t?t:{}},d("carousel",t,X),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?J:Z)}_addEventListeners(){this._config.keyboard&&B.on(this._element,"keydown.bs.carousel",t=>this._keydown(t)),"hover"===this._config.pause&&(B.on(this._element,"mouseenter.bs.carousel",t=>this.pause(t)),B.on(this._element,"mouseleave.bs.carousel",t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=t=>{!this._pointerEvent||"pen"!==t.pointerType&&"touch"!==t.pointerType?this._pointerEvent||(this.touchStartX=t.touches[0].clientX):this.touchStartX=t.clientX},e=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},s=t=>{!this._pointerEvent||"pen"!==t.pointerType&&"touch"!==t.pointerType||(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(t=>this.cycle(t),500+this._config.interval))};i.find(".carousel-item img",this._element).forEach(t=>{B.on(t,"dragstart.bs.carousel",t=>t.preventDefault())}),this._pointerEvent?(B.on(this._element,"pointerdown.bs.carousel",e=>t(e)),B.on(this._element,"pointerup.bs.carousel",t=>s(t)),this._element.classList.add("pointer-event")):(B.on(this._element,"touchstart.bs.carousel",e=>t(e)),B.on(this._element,"touchmove.bs.carousel",t=>e(t)),B.on(this._element,"touchend.bs.carousel",t=>s(t)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=tt[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?i.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){const s=t===Y;return A(this._items,e,s,this._config.wrap)}_triggerSlideEvent(t,e){const s=this._getItemIndex(t),n=this._getItemIndex(i.findOne(".active.carousel-item",this._element));return B.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:n,to:s})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=i.findOne(".active",this._indicatorsElement);e.classList.remove("active"),e.removeAttribute("aria-current");const s=i.find("[data-bs-target]",this._indicatorsElement);for(let e=0;e<s.length;e++)if(Number.parseInt(s[e].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){s[e].classList.add("active"),s[e].setAttribute("aria-current","true");break}}}_updateInterval(){const t=this._activeElement||i.findOne(".active.carousel-item",this._element);if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,e){const s=this._directionToOrder(t),n=i.findOne(".active.carousel-item",this._element),o=this._getItemIndex(n),r=e||this._getItemByOrder(s,n),a=this._getItemIndex(r),l=Boolean(this._interval),c=s===Y,h=c?"carousel-item-start":"carousel-item-end",d=c?"carousel-item-next":"carousel-item-prev",u=this._orderToDirection(s);if(r&&r.classList.contains("active"))return void(this._isSliding=!1);if(this._isSliding)return;if(this._triggerSlideEvent(r,u).defaultPrevented)return;if(!n||!r)return;this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(r),this._activeElement=r;const g=()=>{B.trigger(this._element,"slid.bs.carousel",{relatedTarget:r,direction:u,from:o,to:a})};if(this._element.classList.contains("slide")){r.classList.add(d),m(r),n.classList.add(h),r.classList.add(h);const t=()=>{r.classList.remove(h,d),r.classList.add("active"),n.classList.remove("active",d,h),this._isSliding=!1,setTimeout(g,0)};this._queueCallback(t,n,!0)}else n.classList.remove("active"),r.classList.add("active"),this._isSliding=!1,g();l&&this.cycle()}_directionToOrder(t){return[J,Z].includes(t)?v()?t===Z?G:Y:t===Z?Y:G:t}_orderToDirection(t){return[Y,G].includes(t)?v()?t===G?Z:J:t===G?J:Z:t}static carouselInterface(t,e){const s=et.getOrCreateInstance(t,e);let{_config:i}=s;"object"==typeof e&&(i={...i,...e});const n="string"==typeof e?e:i.slide;if("number"==typeof e)s.to(e);else if("string"==typeof n){if(void 0===s[n])throw new TypeError(`No method named "${n}"`);s[n]()}else i.interval&&i.ride&&(s.pause(),s.cycle())}static jQueryInterface(t){return this.each((function(){et.carouselInterface(this,t)}))}static dataApiClickHandler(t){const e=a(this);if(!e||!e.classList.contains("carousel"))return;const s={...V.getDataAttributes(e),...V.getDataAttributes(this)},i=this.getAttribute("data-bs-slide-to");i&&(s.interval=!1),et.carouselInterface(e,s),i&&et.getInstance(e).to(i),t.preventDefault()}}B.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",et.dataApiClickHandler),B.on(window,"load.bs.carousel.data-api",()=>{const t=i.find('[data-bs-ride="carousel"]');for(let e=0,s=t.length;e<s;e++)et.carouselInterface(t[e],et.getInstance(t[e]))}),y(et);const st={toggle:!0,parent:""},it={toggle:"boolean",parent:"(string|element)"};class nt extends q{constructor(t,e){super(t),this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=i.find(`[data-bs-toggle="collapse"][href="#${this._element.id}"],[data-bs-toggle="collapse"][data-bs-target="#${this._element.id}"]`);const s=i.find('[data-bs-toggle="collapse"]');for(let t=0,e=s.length;t<e;t++){const e=s[t],n=r(e),o=i.find(n).filter(t=>t===this._element);null!==n&&o.length&&(this._selector=n,this._triggerArray.push(e))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get Default(){return st}static get NAME(){return"collapse"}toggle(){this._element.classList.contains("show")?this.hide():this.show()}show(){if(this._isTransitioning||this._element.classList.contains("show"))return;let t,e;this._parent&&(t=i.find(".show, .collapsing",this._parent).filter(t=>"string"==typeof this._config.parent?t.getAttribute("data-bs-parent")===this._config.parent:t.classList.contains("collapse")),0===t.length&&(t=null));const s=i.findOne(this._selector);if(t){const i=t.find(t=>s!==t);if(e=i?nt.getInstance(i):null,e&&e._isTransitioning)return}if(B.trigger(this._element,"show.bs.collapse").defaultPrevented)return;t&&t.forEach(t=>{s!==t&&nt.collapseInterface(t,"hide"),e||W.set(t,"bs.collapse",null)});const n=this._getDimension();this._element.classList.remove("collapse"),this._element.classList.add("collapsing"),this._element.style[n]=0,this._triggerArray.length&&this._triggerArray.forEach(t=>{t.classList.remove("collapsed"),t.setAttribute("aria-expanded",!0)}),this.setTransitioning(!0);const o="scroll"+(n[0].toUpperCase()+n.slice(1));this._queueCallback(()=>{this._element.classList.remove("collapsing"),this._element.classList.add("collapse","show"),this._element.style[n]="",this.setTransitioning(!1),B.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[n]=this._element[o]+"px"}hide(){if(this._isTransitioning||!this._element.classList.contains("show"))return;if(B.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=this._element.getBoundingClientRect()[t]+"px",m(this._element),this._element.classList.add("collapsing"),this._element.classList.remove("collapse","show");const e=this._triggerArray.length;if(e>0)for(let t=0;t<e;t++){const e=this._triggerArray[t],s=a(e);s&&!s.classList.contains("show")&&(e.classList.add("collapsed"),e.setAttribute("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[t]="",this._queueCallback(()=>{this.setTransitioning(!1),this._element.classList.remove("collapsing"),this._element.classList.add("collapse"),B.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}setTransitioning(t){this._isTransitioning=t}_getConfig(t){return(t={...st,...t}).toggle=Boolean(t.toggle),d("collapse",t,it),t}_getDimension(){return this._element.classList.contains("width")?"width":"height"}_getParent(){let{parent:t}=this._config;t=h(t);const e=`[data-bs-toggle="collapse"][data-bs-parent="${t}"]`;return i.find(e,t).forEach(t=>{const e=a(t);this._addAriaAndCollapsedClass(e,[t])}),t}_addAriaAndCollapsedClass(t,e){if(!t||!e.length)return;const s=t.classList.contains("show");e.forEach(t=>{s?t.classList.remove("collapsed"):t.classList.add("collapsed"),t.setAttribute("aria-expanded",s)})}static collapseInterface(t,e){let s=nt.getInstance(t);const i={...st,...V.getDataAttributes(t),..."object"==typeof e&&e?e:{}};if(!s&&i.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(i.toggle=!1),s||(s=new nt(t,i)),"string"==typeof e){if(void 0===s[e])throw new TypeError(`No method named "${e}"`);s[e]()}}static jQueryInterface(t){return this.each((function(){nt.collapseInterface(this,t)}))}}B.on(document,"click.bs.collapse.data-api",'[data-bs-toggle="collapse"]',(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=V.getDataAttributes(this),s=r(this);i.find(s).forEach(t=>{const s=nt.getInstance(t);let i;s?(null===s._parent&&"string"==typeof e.parent&&(s._config.parent=e.parent,s._parent=s._getParent()),i="toggle"):i=e,nt.collapseInterface(t,i)})})),y(nt);const ot=new RegExp("ArrowUp|ArrowDown|Escape"),rt=v()?"top-end":"top-start",at=v()?"top-start":"top-end",lt=v()?"bottom-end":"bottom-start",ct=v()?"bottom-start":"bottom-end",ht=v()?"left-start":"right-start",dt=v()?"right-start":"left-start",ut={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},gt={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class pt extends q{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get Default(){return ut}static get DefaultType(){return gt}static get NAME(){return"dropdown"}toggle(){g(this._element)||(this._element.classList.contains("show")?this.hide():this.show())}show(){if(g(this._element)||this._menu.classList.contains("show"))return;const t=pt.getParentFromElement(this._element),e={relatedTarget:this._element};if(!B.trigger(this._element,"show.bs.dropdown",e).defaultPrevented){if(this._inNavbar)V.setDataAttribute(this._menu,"popper","none");else{if(void 0===s)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:c(this._config.reference)?e=h(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const i=this._getPopperConfig(),n=i.modifiers.find(t=>"applyStyles"===t.name&&!1===t.enabled);this._popper=s.createPopper(e,this._menu,i),n&&V.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).forEach(t=>B.on(t,"mouseover",f)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle("show"),this._element.classList.toggle("show"),B.trigger(this._element,"shown.bs.dropdown",e)}}hide(){if(g(this._element)||!this._menu.classList.contains("show"))return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_addEventListeners(){B.on(this._element,"click.bs.dropdown",t=>{t.preventDefault(),this.toggle()})}_completeHide(t){B.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>B.off(t,"mouseover",f)),this._popper&&this._popper.destroy(),this._menu.classList.remove("show"),this._element.classList.remove("show"),this._element.setAttribute("aria-expanded","false"),V.removeDataAttribute(this._menu,"popper"),B.trigger(this._element,"hidden.bs.dropdown",t))}_getConfig(t){if(t={...this.constructor.Default,...V.getDataAttributes(this._element),...t},d("dropdown",t,this.constructor.DefaultType),"object"==typeof t.reference&&!c(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError("dropdown".toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.');return t}_getMenuElement(){return i.next(this._element,".dropdown-menu")[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains("dropend"))return ht;if(t.classList.contains("dropstart"))return dt;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?at:rt:e?ct:lt}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const s=i.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(u);s.length&&A(s,e,"ArrowDown"===t,!s.includes(e)).focus()}static dropdownInterface(t,e){const s=pt.getOrCreateInstance(t,e);if("string"==typeof e){if(void 0===s[e])throw new TypeError(`No method named "${e}"`);s[e]()}}static jQueryInterface(t){return this.each((function(){pt.dropdownInterface(this,t)}))}static clearMenus(t){if(t&&(2===t.button||"keyup"===t.type&&"Tab"!==t.key))return;const e=i.find('[data-bs-toggle="dropdown"]');for(let s=0,i=e.length;s<i;s++){const i=pt.getInstance(e[s]);if(!i||!1===i._config.autoClose)continue;if(!i._element.classList.contains("show"))continue;const n={relatedTarget:i._element};if(t){const e=t.composedPath(),s=e.includes(i._menu);if(e.includes(i._element)||"inside"===i._config.autoClose&&!s||"outside"===i._config.autoClose&&s)continue;if(i._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;"click"===t.type&&(n.clickEvent=t)}i._completeHide(n)}}static getParentFromElement(t){return a(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?"Space"===t.key||"Escape"!==t.key&&("ArrowDown"!==t.key&&"ArrowUp"!==t.key||t.target.closest(".dropdown-menu")):!ot.test(t.key))return;const e=this.classList.contains("show");if(!e&&"Escape"===t.key)return;if(t.preventDefault(),t.stopPropagation(),g(this))return;const s=()=>this.matches('[data-bs-toggle="dropdown"]')?this:i.prev(this,'[data-bs-toggle="dropdown"]')[0];return"Escape"===t.key?(s().focus(),void pt.clearMenus()):"ArrowUp"===t.key||"ArrowDown"===t.key?(e||s().click(),void pt.getInstance(s())._selectMenuItem(t)):void(e&&"Space"!==t.key||pt.clearMenus())}}B.on(document,"keydown.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',pt.dataApiKeydownHandler),B.on(document,"keydown.bs.dropdown.data-api",".dropdown-menu",pt.dataApiKeydownHandler),B.on(document,"click.bs.dropdown.data-api",pt.clearMenus),B.on(document,"keyup.bs.dropdown.data-api",pt.clearMenus),B.on(document,"click.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',(function(t){t.preventDefault(),pt.dropdownInterface(this)})),y(pt);class ft{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",e=>e+t),this._setElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight",e=>e+t),this._setElementAttributes(".sticky-top","marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,s){const i=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+i)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t)[e];t.style[e]=s(Number.parseFloat(n))+"px"})}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight"),this._resetElementAttributes(".sticky-top","marginRight")}_saveInitialAttribute(t,e){const s=t.style[e];s&&V.setDataAttribute(t,e,s)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const s=V.getDataAttribute(t,e);void 0===s?t.style.removeProperty(e):(V.removeDataAttribute(t,e),t.style[e]=s)})}_applyManipulationCallback(t,e){c(t)?e(t):i.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const mt={isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},_t={isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"};class bt{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&m(this._getElement()),this._getElement().classList.add("show"),this._emulateAnimation(()=>{w(t)})):w(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),w(t)})):w(t)}_getElement(){if(!this._element){const t=document.createElement("div");t.className="modal-backdrop",this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_getConfig(t){return(t={...mt,..."object"==typeof t?t:{}}).rootElement=h(t.rootElement),d("backdrop",t,_t),t}_append(){this._isAppended||(this._config.rootElement.appendChild(this._getElement()),B.on(this._getElement(),"mousedown.bs.backdrop",()=>{w(this._config.clickCallback)}),this._isAppended=!0)}dispose(){this._isAppended&&(B.off(this._element,"mousedown.bs.backdrop"),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){E(t,this._getElement(),this._config.isAnimated)}}const vt={backdrop:!0,keyboard:!0,focus:!0},yt={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"};class wt extends q{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=i.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new ft}static get Default(){return vt}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||B.trigger(this._element,"show.bs.modal",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add("modal-open"),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),B.on(this._element,"click.dismiss.bs.modal",'[data-bs-dismiss="modal"]',t=>this.hide(t)),B.on(this._dialog,"mousedown.dismiss.bs.modal",()=>{B.one(this._element,"mouseup.dismiss.bs.modal",t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(t){if(t&&["A","AREA"].includes(t.target.tagName)&&t.preventDefault(),!this._isShown||this._isTransitioning)return;if(B.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),B.off(document,"focusin.bs.modal"),this._element.classList.remove("show"),B.off(this._element,"click.dismiss.bs.modal"),B.off(this._dialog,"mousedown.dismiss.bs.modal"),this._queueCallback(()=>this._hideModal(),this._element,e)}dispose(){[window,this._dialog].forEach(t=>B.off(t,".bs.modal")),this._backdrop.dispose(),super.dispose(),B.off(document,"focusin.bs.modal")}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new bt({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_getConfig(t){return t={...vt,...V.getDataAttributes(this._element),..."object"==typeof t?t:{}},d("modal",t,yt),t}_showElement(t){const e=this._isAnimated(),s=i.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,s&&(s.scrollTop=0),e&&m(this._element),this._element.classList.add("show"),this._config.focus&&this._enforceFocus(),this._queueCallback(()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,B.trigger(this._element,"shown.bs.modal",{relatedTarget:t})},this._dialog,e)}_enforceFocus(){B.off(document,"focusin.bs.modal"),B.on(document,"focusin.bs.modal",t=>{document===t.target||this._element===t.target||this._element.contains(t.target)||this._element.focus()})}_setEscapeEvent(){this._isShown?B.on(this._element,"keydown.dismiss.bs.modal",t=>{this._config.keyboard&&"Escape"===t.key?(t.preventDefault(),this.hide()):this._config.keyboard||"Escape"!==t.key||this._triggerBackdropTransition()}):B.off(this._element,"keydown.dismiss.bs.modal")}_setResizeEvent(){this._isShown?B.on(window,"resize.bs.modal",()=>this._adjustDialog()):B.off(window,"resize.bs.modal")}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove("modal-open"),this._resetAdjustments(),this._scrollBar.reset(),B.trigger(this._element,"hidden.bs.modal")})}_showBackdrop(t){B.on(this._element,"click.dismiss.bs.modal",t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())}),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(B.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:t,scrollHeight:e,style:s}=this._element,i=e>document.documentElement.clientHeight;!i&&"hidden"===s.overflowY||t.contains("modal-static")||(i||(s.overflowY="hidden"),t.add("modal-static"),this._queueCallback(()=>{t.remove("modal-static"),i||this._queueCallback(()=>{s.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),s=e>0;(!s&&t&&!v()||s&&!t&&v())&&(this._element.style.paddingLeft=e+"px"),(s&&!t&&!v()||!s&&t&&v())&&(this._element.style.paddingRight=e+"px")}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const s=wt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===s[t])throw new TypeError(`No method named "${t}"`);s[t](e)}}))}}B.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=a(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),B.one(e,"show.bs.modal",t=>{t.defaultPrevented||B.one(e,"hidden.bs.modal",()=>{u(this)&&this.focus()})}),wt.getOrCreateInstance(e).toggle(this)})),y(wt);const Et={backdrop:!0,keyboard:!0,scroll:!1},At={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"};class Tt extends q{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._addEventListeners()}static get NAME(){return"offcanvas"}static get Default(){return Et}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||B.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||((new ft).hide(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add("show"),this._queueCallback(()=>{B.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(B.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(B.off(document,"focusin.bs.offcanvas"),this._element.blur(),this._isShown=!1,this._element.classList.remove("show"),this._backdrop.hide(),this._queueCallback(()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new ft).reset(),B.trigger(this._element,"hidden.bs.offcanvas")},this._element,!0)))}dispose(){this._backdrop.dispose(),super.dispose(),B.off(document,"focusin.bs.offcanvas")}_getConfig(t){return t={...Et,...V.getDataAttributes(this._element),..."object"==typeof t?t:{}},d("offcanvas",t,At),t}_initializeBackDrop(){return new bt({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_enforceFocusOnElement(t){B.off(document,"focusin.bs.offcanvas"),B.on(document,"focusin.bs.offcanvas",e=>{document===e.target||t===e.target||t.contains(e.target)||t.focus()}),t.focus()}_addEventListeners(){B.on(this._element,"click.dismiss.bs.offcanvas",'[data-bs-dismiss="offcanvas"]',()=>this.hide()),B.on(this._element,"keydown.dismiss.bs.offcanvas",t=>{this._config.keyboard&&"Escape"===t.key&&this.hide()})}static jQueryInterface(t){return this.each((function(){const e=Tt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}B.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=a(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),g(this))return;B.one(e,"hidden.bs.offcanvas",()=>{u(this)&&this.focus()});const s=i.findOne(".offcanvas.show");s&&s!==e&&Tt.getInstance(s).hide(),Tt.getOrCreateInstance(e).toggle(this)})),B.on(window,"load.bs.offcanvas.data-api",()=>i.find(".offcanvas.show").forEach(t=>Tt.getOrCreateInstance(t).show())),y(Tt);const Ct=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),kt=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Lt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Ot=(t,e)=>{const s=t.nodeName.toLowerCase();if(e.includes(s))return!Ct.has(s)||Boolean(kt.test(t.nodeValue)||Lt.test(t.nodeValue));const i=e.filter(t=>t instanceof RegExp);for(let t=0,e=i.length;t<e;t++)if(i[t].test(s))return!0;return!1};function Dt(t,e,s){if(!t.length)return t;if(s&&"function"==typeof s)return s(t);const i=(new window.DOMParser).parseFromString(t,"text/html"),n=Object.keys(e),o=[].concat(...i.body.querySelectorAll("*"));for(let t=0,s=o.length;t<s;t++){const s=o[t],i=s.nodeName.toLowerCase();if(!n.includes(i)){s.remove();continue}const r=[].concat(...s.attributes),a=[].concat(e["*"]||[],e[i]||[]);r.forEach(t=>{Ot(t,a)||s.removeAttribute(t.nodeName)})}return i.body.innerHTML}const It=new RegExp("(^|\\s)bs-tooltip\\S+","g"),Nt=new Set(["sanitize","allowList","sanitizeFn"]),St={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},xt={AUTO:"auto",TOP:"top",RIGHT:v()?"left":"right",BOTTOM:"bottom",LEFT:v()?"right":"left"},Mt={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},Pt={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"};class jt extends q{constructor(t,e){if(void 0===s)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return Mt}static get NAME(){return"tooltip"}static get Event(){return Pt}static get DefaultType(){return St}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains("show"))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),B.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const t=B.trigger(this._element,this.constructor.Event.SHOW),e=p(this._element),i=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!i)return;const o=this.getTipElement(),r=n(this.constructor.NAME);o.setAttribute("id",r),this._element.setAttribute("aria-describedby",r),this.setContent(),this._config.animation&&o.classList.add("fade");const a="function"==typeof this._config.placement?this._config.placement.call(this,o,this._element):this._config.placement,l=this._getAttachment(a);this._addAttachmentClass(l);const{container:c}=this._config;W.set(o,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(c.appendChild(o),B.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=s.createPopper(this._element,o,this._getPopperConfig(l)),o.classList.add("show");const h="function"==typeof this._config.customClass?this._config.customClass():this._config.customClass;h&&o.classList.add(...h.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>{B.on(t,"mouseover",f)});const d=this.tip.classList.contains("fade");this._queueCallback(()=>{const t=this._hoverState;this._hoverState=null,B.trigger(this._element,this.constructor.Event.SHOWN),"out"===t&&this._leave(null,this)},this.tip,d)}hide(){if(!this._popper)return;const t=this.getTipElement();if(B.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove("show"),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>B.off(t,"mouseover",f)),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const e=this.tip.classList.contains("fade");this._queueCallback(()=>{this._isWithActiveTrigger()||("show"!==this._hoverState&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),B.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))},this.tip,e),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");return t.innerHTML=this._config.template,this.tip=t.children[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(i.findOne(".tooltip-inner",t),this.getTitle()),t.classList.remove("fade","show")}setElementContent(t,e){if(null!==t)return c(e)?(e=h(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=Dt(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){let t=this._element.getAttribute("data-bs-original-title");return t||(t="function"==typeof this._config.title?this._config.title.call(this._element):this._config.title),t}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){const s=this.constructor.DATA_KEY;return(e=e||W.get(t.delegateTarget,s))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),W.set(t.delegateTarget,s,e)),e}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add("bs-tooltip-"+this.updateAttachment(t))}_getAttachment(t){return xt[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(t=>{if("click"===t)B.on(this._element,this.constructor.Event.CLICK,this._config.selector,t=>this.toggle(t));else if("manual"!==t){const e="hover"===t?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,s="hover"===t?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;B.on(this._element,e,this._config.selector,t=>this._enter(t)),B.on(this._element,s,this._config.selector,t=>this._leave(t))}}),this._hideModalHandler=()=>{this._element&&this.hide()},B.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),e.getTipElement().classList.contains("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e._config.delay&&e._config.delay.show?e._timeout=setTimeout(()=>{"show"===e._hoverState&&e.show()},e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e._config.delay&&e._config.delay.hide?e._timeout=setTimeout(()=>{"out"===e._hoverState&&e.hide()},e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=V.getDataAttributes(this._element);return Object.keys(e).forEach(t=>{Nt.has(t)&&delete e[t]}),(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:h(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),d("tooltip",t,this.constructor.DefaultType),t.sanitize&&(t.template=Dt(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};if(this._config)for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(It);null!==e&&e.length>0&&e.map(t=>t.trim()).forEach(e=>t.classList.remove(e))}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}static jQueryInterface(t){return this.each((function(){const e=jt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}y(jt);const Ht=new RegExp("(^|\\s)bs-popover\\S+","g"),Rt={...jt.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},Bt={...jt.DefaultType,content:"(string|element|function)"},$t={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class Wt extends jt{static get Default(){return Rt}static get NAME(){return"popover"}static get Event(){return $t}static get DefaultType(){return Bt}isWithContent(){return this.getTitle()||this._getContent()}getTipElement(){return this.tip||(this.tip=super.getTipElement(),this.getTitle()||i.findOne(".popover-header",this.tip).remove(),this._getContent()||i.findOne(".popover-body",this.tip).remove()),this.tip}setContent(){const t=this.getTipElement();this.setElementContent(i.findOne(".popover-header",t),this.getTitle());let e=this._getContent();"function"==typeof e&&(e=e.call(this._element)),this.setElementContent(i.findOne(".popover-body",t),e),t.classList.remove("fade","show")}_addAttachmentClass(t){this.getTipElement().classList.add("bs-popover-"+this.updateAttachment(t))}_getContent(){return this._element.getAttribute("data-bs-content")||this._config.content}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(Ht);null!==e&&e.length>0&&e.map(t=>t.trim()).forEach(e=>t.classList.remove(e))}static jQueryInterface(t){return this.each((function(){const e=Wt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}y(Wt);const qt={offset:10,method:"auto",target:""},zt={offset:"number",method:"string",target:"(string|element)"};class Ft extends q{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._selector=`${this._config.target} .nav-link, ${this._config.target} .list-group-item, ${this._config.target} .dropdown-item`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,B.on(this._scrollElement,"scroll.bs.scrollspy",()=>this._process()),this.refresh(),this._process()}static get Default(){return qt}static get NAME(){return"scrollspy"}refresh(){const t=this._scrollElement===this._scrollElement.window?"offset":"position",e="auto"===this._config.method?t:this._config.method,s="position"===e?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),i.find(this._selector).map(t=>{const n=r(t),o=n?i.findOne(n):null;if(o){const t=o.getBoundingClientRect();if(t.width||t.height)return[V[e](o).top+s,n]}return null}).filter(t=>t).sort((t,e)=>t[0]-e[0]).forEach(t=>{this._offsets.push(t[0]),this._targets.push(t[1])})}dispose(){B.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(t){if("string"!=typeof(t={...qt,...V.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}}).target&&c(t.target)){let{id:e}=t.target;e||(e=n("scrollspy"),t.target.id=e),t.target="#"+e}return d("scrollspy",t,zt),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),s=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=s){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;)this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}_activate(t){this._activeTarget=t,this._clear();const e=this._selector.split(",").map(e=>`${e}[data-bs-target="${t}"],${e}[href="${t}"]`),s=i.findOne(e.join(","));s.classList.contains("dropdown-item")?(i.findOne(".dropdown-toggle",s.closest(".dropdown")).classList.add("active"),s.classList.add("active")):(s.classList.add("active"),i.parents(s,".nav,
1.list-group").forEach(t=>{i.prev(t,".nav-link,.list-group-item").forEach(t=>t.classList.add("active")),i.prev(t,".nav-item").forEach(t=>{i.children(t,".nav-link").forEach(t=>t.classList.add("active"))})})),B.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:t})}_clear(){i.find(this._selector).filter(t=>
vendor: 4,924 bytes, line 1
1t.classList.contains("active")).forEach(t=>t.classList.remove("active"))}static jQueryInterface(t){return this.each((function(){const e=Ft.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}B.on(window,"load.bs.scrollspy.data-api",()=>{i.find('[data-bs-spy="scroll"]').forEach(t=>new Ft(t))}),y(Ft);class Ut extends q{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains("active"))return;let t;const e=a(this._element),s=this._element.closest(".nav,.list-group");if(s){const e="UL"===s.nodeName||"OL"===s.nodeName?":scope>li>.active":".active";t=i.find(e,s),t=t[t.length-1]}const n=t?B.trigger(t,"hide.bs.tab",{relatedTarget:this._element}):null;if(B.trigger(this._element,"show.bs.tab",{relatedTarget:t}).defaultPrevented||null!==n&&n.defaultPrevented)return;this._activate(this._element,s);const o=()=>{B.trigger(t,"hidden.bs.tab",{relatedTarget:this._element}),B.trigger(this._element,"shown.bs.tab",{relatedTarget:t})};e?this._activate(e,e.parentNode,o):o()}_activate(t,e,s){const n=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?i.children(e,".active"):i.find(":scope>li>.active",e))[0],o=s&&n&&n.classList.contains("fade"),r=()=>this._transitionComplete(t,n,s);n&&o?(n.classList.remove("show"),this._queueCallback(r,t,!0)):r()}_transitionComplete(t,e,s){if(e){e.classList.remove("active");const t=i.findOne(":scope>.dropdown-menu.active",e.parentNode);t&&t.classList.remove("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),m(t),t.classList.contains("fade")&&t.classList.add("show");let n=t.parentNode;if(n&&"LI"===n.nodeName&&(n=n.parentNode),n&&n.classList.contains("dropdown-menu")){const e=t.closest(".dropdown");e&&i.find(".dropdown-toggle",e).forEach(t=>t.classList.add("active")),t.setAttribute("aria-expanded",!0)}s&&s()}static jQueryInterface(t){return this.each((function(){const e=Ut.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}B.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),g(this)||Ut.getOrCreateInstance(this).show()})),y(Ut);const Kt={animation:"boolean",autohide:"boolean",delay:"number"},Vt={animation:!0,autohide:!0,delay:5e3};class Qt extends q{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Kt}static get Default(){return Vt}static get NAME(){return"toast"}show(){B.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),m(this._element),this._element.classList.add("showing"),this._queueCallback(()=>{this._element.classList.remove("showing"),this._element.classList.add("show"),B.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this._element.classList.contains("show")&&(B.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.remove("show"),this._queueCallback(()=>{this._element.classList.add("hide"),B.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),super.dispose()}_getConfig(t){return t={...Vt,...V.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},d("toast",t,this.constructor.DefaultType),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const s=t.relatedTarget;this._element===s||this._element.contains(s)||this._maybeScheduleHide()}_setListeners(){B.on(this._element,"click.dismiss.bs.toast",'[data-bs-dismiss="toast"]',()=>this.hide()),B.on(this._element,"mouseover.bs.toast",t=>this._onInteraction(t,!0)),B.on(this._element,"mouseout.bs.toast",t=>this._onInteraction(t,!1)),B.on(this._element,"focusin.bs.toast",t=>this._onInteraction(t,!0)),B.on(this._element,"focusout.bs.toast",t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=Qt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
1amed "${t}"`);e[t](this)}}))}}return y(Qt),{Alert:z,Button:F,Carousel:et,Collapse:nt,Dropdown:pt,Modal:wt,Offcanvas:Tt,Popover:Wt,ScrollSpy:Ft,Tab:Ut,Toast:Qt,Tooltip:jt}})); 2;!function(t){window.orientation;var e=function(t,e){this.id=i++,this.init(t,e)};e.prototype={constructor:e,init:function(e,i){var s,n,r,o,d,h,u;if(!i.pickTime&&!i.pickDate)throw new Error("Must choose at least one picker");if(this.options=i,this.$element=t(e),this.language=i.language in a?i.language:"en",this.pickDate=i.pickDate,this.pickTime=i.pickTime,this.isInput=this.$element.is("input"),this.component=!1,(this.$element.find(".input-append")||this.$element.find(".input-prepend"))&&(this.component=this.$element.find(".add-on")),this.format=i.format,this.format||(this.isInput?this.format=this.$element.data("format"):this.format=this.$element.find("input").data("format"),this.format||(this.format="MM/dd/yyyy")),this._compileFormat(),this.component&&(s=this.component.find("i")),this.pickTime&&(s&&s.length&&(this.timeIcon=s.data("time-icon")),this.timeIcon||(this.timeIcon="icon-time"),s.addClass(this.timeIcon)),this.pickDate&&(s&&s.length&&(this.dateIcon=s.data("date-icon")),this.dateIcon||(this.dateIcon="icon-calendar"),s.removeClass(this.timeIcon),s.addClass(this.dateIcon)),this.widget=t((n=this.timeIcon,r=i.pickDate,o=i.pickTime,d=i.pick12HourFormat,h=i.pickSeconds,u=i.collapse,r&&o?'<div class="bootstrap-datetimepicker-widget dropdown-menu" data-type="datetime"><ul><li'+(u?' class="collapse in"':"")+'><div class="datepicker">'+l.template+'</div></li><li class="picker-switch accordion-toggle"><a><i class="'+n+'"></i></a></li><li'+(u?' class="collapse"':"")+'><div class="timepicker">'+p.getTemplate(d,h)+"</div></li></ul></div>":o?'<div class="bootstrap-datetimepicker-widget dropdown-menu" data-type="time"><div class="timepicker">'+p.getTemplate(d,h)+"</div></div>":'<div class="bootstrap-datetimepicker-widget dropdown-menu" data-type="date"><div class="datepicker">'+l.template+"</div></div>")).appendTo("body"),this.minViewMode=i.minViewMode||this.$element.data("date-minviewmode")||0,"string"==typeof this.minViewMode)switch(this.minViewMode){case"months":this.minViewMode=1;break;case"years":this.minViewMode=2;break;default:this.minViewMode=0}if(this.viewMode=i.viewMode||this.$element.data("date-viewmode")||0,"string"==typeof this.viewMode)switch(this.viewMode){case"months":this.viewMode=1;break;case"years":this.viewMode=2;break;default:this.viewMode=0}this.startViewMode=this.viewMode,this.weekStart=i.weekStart||this.$element.data("date-weekstart")||0,this.weekEnd=0===this.weekStart?6:this.weekStart-1,this.setStartDate(i.startDate||this.$element.data("date-startdate")),this.setEndDate(i.endDate||this.$element.data("date-enddate")),this.fillDow(),this.fillMonths(),this.fillHours(),this.fillMinutes(),this.fillSeconds(),this.update(),this.showMode(),this._attachDatePickerEvents()},show:function(t){this.widget.show(),this.height=this.component?this.component.outerHeight():this.$element.outerHeight(),this.place(),this.$element.trigger({type:"show",date:this._date}),this._attachDatePickerGlobalEvents(),t&&(t.stopPropagation(),t.preventDefault())},disable:function(){this.$element.find("input").prop("disabled",!0),this._detachDatePickerEvents()},enable:function(){this.$element.find("input").prop("disabled",!1),this._attachDatePickerEvents()},hide:function(){for(var t=this.widget.find(".collapse"),e=0;e<t.length;e++){var i=t.eq(e).data("collapse");if(i&&i.transitioning)return}this.widget.hide(),this.viewMode=this.startViewMode,this.showMode(),this.set(),this.$element.trigger({type:"hide",date:this._date}),this._detachDatePickerGlobalEvents()},set:function(){var t="";if(this._unset||(t=this.formatDate(this._date)),this.isInput)this.$element.val(t),this._resetMaskPos(this.$element);else{if(this.component){var e=this.$element.find("input");e.val(t),this._resetMaskPos(e)}this.$element.data("date",t)}},setValue:function(t){this._unset=!t,"string"==typeof t?this._date=this.parseDate(t):t&&(this._date=new Date(t)),this.set(),this.viewDate=c(this._date.getUTCFullYear(),this._date.getUTCMonth(),1,0,0,0,0),this.fillDate(),this.fillTime()},getDate:function(){return this._unset?null:new Date(this._date.valueOf())},setDate:function(t){t?this.setValue(t.valueOf()):this.setValue(null)},setStartDate:function(t){t instanceof Date?this.startDate=t:"string"==typeof t?(this.startDate=new c(t),this.startDate.getUTCFullYear()||(this.startDate=-1/0)):this.startDate=-1/0,this.viewDate&&this.update()},setEndDate:function(t){t instanceof Date?this.endDate=t:"string"==typeof t?(this.endDate=new c(t),this.endDate.getUTCFullYear()||(this.endDate=1/0)):this.endDate=1/0,this.viewDate&&this.update()},getLocalDate:function(){if(this._unset)return null;var t=this._date;return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())}
2,setLocalDate:function(t){t?this.setValue(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())):this.setValue(null)},place:function(){var e="absolute",i=this.component?this.component.offset():this.$element.offset();this.width=this.component?this.component.outerWidth():this.$element.outerWidth(),i.top=i.top+this.height;var a=t(window);null!=this.options.width&&this.widget.width(this.options.width),"left"==this.options.orientation&&(this.widget.addClass("left-oriented"),i.left=i.left-this.widget.width()+20),this._isInFixed()&&(e="fixed",i.top-=a.scrollTop(),i.left-=a.scrollLeft()),a.width(),i.left,this.widget.outerWidth(),this.widget.css({position:e,top:i.top,left:i.left+this.widget.width()+20>$(window).width()?i.left+($(window).width()-(i.left+this.widget.width()+20)):i.left,right:i.right})},notifyChange:function(){this.$element.trigger({type:"changeDate",date:this.getDate(),localDate:this.getLocalDate()})},update:function(t){var e=t;if(!e&&((e=this.isInput?this.$element.val():this.$element.find("input").val())&&(this._date=this.parseDate(e)),!this._date)){var i=new Date;this._date=c(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds())}this.viewDate=c(this._date.getUTCFullYear(),this._date.getUTCMonth(),1,0,0,0,0),this.fillDate(),this.fillTime()},fillDow:function(){for(var e=this.weekStart,i=t("<tr>");e<this.weekStart+7;)i.append('<th class="dow">'+a[this.language].daysMin[e++%7]+"</th>");this.widget.find(".datepicker-days thead").append(i)},fillMonths:function(){for(var t="",e=0;e<12;)t+='<span class="month">'+a[this.language].monthsShort[e++]+"</span>";this.widget.find(".datepicker-months td").append(t)},fillDate:function(){var e=this.viewDate.getUTCFullYear(),i=this.viewDate.getUTCMonth(),s=c(this._date.getUTCFullYear(),this._date.getUTCMonth(),this._date.getUTCDate(),0,0,0,0),n="object"==typeof this.startDate?this.startDate.getUTCFullYear():-1/0,r="object"==typeof this.startDate?this.startDate.getUTCMonth():-1,o="object"==typeof this.endDate?this.endDate.getUTCFullYear():1/0,d="object"==typeof this.endDate?this.endDate.getUTCMonth():12;this.widget.find(".datepicker-days").find(".disabled").removeClass("disabled"),this.widget.find(".datepicker-months").find(".disabled").removeClass("disabled"),this.widget.find(".datepicker-years").find(".disabled").removeClass("disabled"),this.widget.find(".datepicker-days th:eq(1)").text(a[this.language].months[i]+" "+e);var h=c(e,i-1,28,0,0,0,0),u=l.getDaysInMonth(h.getUTCFullYear(),h.getUTCMonth());h.setUTCDate(u),h.setUTCDate(u-(h.getUTCDay()-this.weekStart+7)%7),(e==n&&i<=r||e<n)&&this.widget.find(".datepicker-days th:eq(0)").addClass("disabled"),(e==o&&i>=d||e>o)&&this.widget.find(".datepicker-days th:eq(2)").addClass("disabled");var p=new Date(h.valueOf());p.setUTCDate(p.getUTCDate()+42),p=p.valueOf();for(var m,g,f=[];h.valueOf()<p;)h.getUTCDay()===this.weekStart&&(m=t("<tr>"),f.push(m)),g="",h.getUTCFullYear()<e||h.getUTCFullYear()==e&&h.getUTCMonth()<i?g+=" old":(h.getUTCFullYear()>e||h.getUTCFullYear()==e&&h.getUTCMonth()>i)&&(g+=" new"),h.valueOf()===s.valueOf()&&(g+=" active"),h.valueOf()+864e5<=this.startDate&&(g+=" disabled"),h.valueOf()>this.endDate&&(g+=" disabled"),m.append('<td class="day'+g+'">'+h.getUTCDate()+"</td>"),h.setUTCDate(h.getUTCDate()+1);this.widget.find(".datepicker-days tbody").empty().append(f);var S=this._date.getUTCFullYear(),k=this.widget.find(".datepicker-months").find("th:eq(1)").text(e).end().find("span").removeClass("active");S===e&&k.eq(this._date.getUTCMonth()).addClass("active"),S-1<n&&this.widget.find(".datepicker-months th:eq(0)").addClass("disabled"),S+1>o&&this.widget.find(".datepicker-months th:eq(2)").addClass("disabled");for(var M=0;M<12;M++)e==n&&r>M||e<n?t(k[M]).addClass("disabled"):(e==o&&d<M||e>o)&&t(k[M]).addClass("disabled");f="",e=10*parseInt(e/10,10);var v=this.widget.find(".datepicker-years").find("th:eq(1)").text(e+"-"+(e+9)).end().find("td");for(this.widget.find(".datepicker-years").find("th").removeClass("disabled"),n>e&&this.widget.find(".datepicker-years").find("th:eq(0)").addClass("disabled"),o<e+9&&this.widget.find(".datepicker-years").find("th:eq(2)").addClass("disabled"),e-=1,M=-1;M<11;M++)f+='<span class="year'+(-1===M||10===M?" old":"")+(S===e?" active":"")+(e<n||e>o?" disabled":"")+'">'+e+"</span>",e+=1;v.html(f)},fillHours:function(){var t=this.widget.find(".timepicker .timepicker-hours table");t.parent().hide();var e="";if(this.options.pick12HourFormat)for(var i=1,a=0;a<3;a+=1){e+="<tr>";for(var s=0;s<4;s+=1)e+='<td class="hour">'+u(i.toString(),2,"0")+"</td>",i++;e+="</tr>"}else for(i=0,a=0;a<6;a+=1){for(e+="<tr>",s=0;s<4;s+=1)e+='<td class="hour">'+u(i.toString(),2,"0")+"</td>",i++;e+="</tr>"}t.html(e)},fillMinutes:function(){var t=this.widget.find(".timepicker .timepicker-minutes table");t.parent().hide();for(var e="",i=0,a=0;a<5;a++){e+="<tr>";for(var s=0;s<4;s+=1)e+='<td class="minute">'+u(i.toString(),2,"0")+"</td>",i+=3;e+="</tr>"}t.html(e)},fillSeconds:function(){var t=this.widget.find(".timepicker .timepicker-seconds table");t.parent().hide();for(var e="",i=0,a=0;a<5;a++){e+="<tr>";for(var s=0;s<4;s+=1)e+='<td class="second">'+u(i.toString(),2,"0")+"</td>",i+=3;e+="</tr>"}t.html(e)},fillTime:function(){if(this._date){var t=this.widget.find(".timepicker span[data-time-component]"),e=(t.closest("table"),this.options.pick12HourFormat),i=this._date.getUTCHours(),a="AM";e&&(i>=12&&(a="PM"),0===i?i=12:12!=i&&(i%=12),this.widget.find(".timepicker [data-action=togglePeriod]").text(a)),i=u(i.toString(),2,"0");var s=u(this._date.getUTCMinutes().toString(),2,"0"),n=u(this._date.getUTCSeconds().toString(),2,"0");t.filter("[data-time-component=hours]").text(i),t.filter("[data-time-component=minutes]").text(s),t.filter("[data-time-component=seconds]").text(n)}},click:function(e){e.stopPropagation(),e.preventDefault(),this._unset=!1;var i=t(e.target).closest("span, td, th");if(1===i.length&&!i.is(".disabled"))switch(i[0].nodeName.toLowerCase()){case"th":switch(i[0].className){case"switch":this.showMode(1);break;case"prev":case"next":var a=this.viewDate,s=l.modes[this.viewMode].navFnc,n=l.modes[this.viewMode].navStep;"prev"===i[0].className&&(n*=-1),a["set"+s](a["get"+s]()+n),this.fillDate(),this.set()}break;case"span":if(i.is(".month")){var r=i.parent().find("span").index(i);this.viewDate.setUTCMonth(r)}else{var o=parseInt(i.text(),10)||0;this.viewDate.setUTCFullYear(o)}0!==this.viewMode&&(this._date=c(this.viewDate.getUTCFullYear(),this.viewDate.getUTCMonth(),this.viewDate.getUTCDate(),this._date.getUTCHours(),this._date.getUTCMinutes(),this._date.getUTCSeconds(),this._date.getUTCMilliseconds()),this.notifyChange()),this.showMode(-1),this.fillDate(),this.set();break;case"td":if(i.is(".day")){var d=parseInt(i.text(),10)||1;r=this.viewDate.getUTCMonth(),o=this.viewDate.getUTCFullYear(),i.is(".old")?0===r?(r=11,o-=1):r-=1:i.is(".new")&&(11==r?(r=0,o+=1):r+=1),this._date=c(o,r,d,this._date.getUTCHours(),this._date.getUTCMinutes(),this._date.getUTCSeconds(),this._date.getUTCMilliseconds()),this.viewDate=c(o,r,Math.min(28,d),0,0,0,0),this.fillDate(),this.set(),this.notifyChange()}}},actions:{incrementHours:function(t){this._date.setUTCHours(this._date.getUTCHours()+1)},incrementMinutes:function(t){this._date.setUTCMinutes(this._date.getUTCMinutes()+1)},incrementSeconds:function(t){this._date.setUTCSeconds(this._date.getUTCSeconds()+1)},decrementHours:function(t){this._date.setUTCHours(this._date.getUTCHours()-1)},decrementMinutes:function(t){this._date.setUTCMinutes(this._date.getUTCMinutes()-1)},decrementSeconds:function(t){this._date.setUTCSeconds(this._date.getUTCSeconds()-1)},togglePeriod:function(t){var e=this._date.getUTCHours();e>=12?e-=12:e+=12,this._date.setUTCHours(e)},showPicker:function(){this.widget.find(".timepicker > div:not(.timepicker-picker)").hide(),this.widget.find(".timepicker .timepicker-picker").show()},showHours:function(){this.widget.find(".timepicker .timepicker-picker").hide(),this.widget.find(".timepicker .timepicker-hours").show()},showMinutes:function(){this.widget.find(".timepicker .timepicker-picker").hide(),this.widget.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){this.widget.find(".timepicker .timepicker-picker").hide(),this.widget.find(".timepicker .timepicker-seconds").show()},selectHour:function(e){var i=t(e.target),a=parseInt(i.text(),10);this.options.pick12HourFormat&&(this._date.getUTCHours()>=12?12!=a&&(a=(a+12)%24):12===a?a=0:a%=12),this._date.setUTCHours(a),this.actions.showPicker.call(this)},selectMinute:function(e){var i=t(e.target),a=parseInt(i.text(),10);this._date.setUTCMinutes(a),this.actions.showPicker.call(this)},selectSecond:function(e){var i=t(e.target),a=parseInt(i.text(),10);this._date.setUTCSeconds(a),this.actions.showPicker.call(this)}},doAction:function(e){e.stopPropagation(),e.preventDefault(),this._date||(this._date=c(1970,0,0,0,0,0,0));var i=t(e.currentTarget).data("action"),a=this.actions[i].apply(this,arguments);return this.set(),this.fillTime(),this.notifyChange(),a},stopEvent:function(t){t.stopPropagation(),t.preventDefault()},keydown:function(e){var i=this,a=e.which,s=t(e.target);8!=a&&46!=a||setTimeout(function(){i._resetMaskPos(s)})},keypress:function(e){var i=e.which;if(8!=i&&46!=i){var a=t(e.target),s=String.fromCharCode(i),n=a.val()||"";n+=s;var r=this._mask[this._maskPos];if(!r)return!1;if(r.end==n.length){if(!r.pattern.test(n.slice(r.start))){for(n=n.slice(0,n.length-1);(r=this._mask[this._maskPos])&&r.character;)n+=r.character,this._maskPos++;return n+=s,r.end!=n.length?(a.val(n),!1):r.pattern.test(n.slice(r.start))?(a.val(n),this._maskPos++,!1):(a.val(n.slice(0,r.start)),!1)}this._maskPos++}}},change:function(e){var i=t(e.target),a=i.val();this._formatPattern.test(a)?(this.update(),this.setValue(this._date.getTime()),this.notifyChange(),this.set()):a&&a.trim()?(this.setValue(this._date.getTime()),this._date?this.set():i.val("")):this._date&&(this.setValue(null),this.notifyChange(),this._unset=!0),this._resetMaskPos(i)},showMode:function(t){t&&(this.viewMode=Math.max(this.minViewMode,Math.min(2,this.viewMode+t))),this.widget.find(".datepicker > div").hide().filter(".datepicker-"+l.modes[this.viewMode].clsName).show()},destroy:function(){this._detachDatePickerEvents(),this._detachDatePickerGlobalEvents(),this.widget.remove(),this.$element.removeData("datetimepicker"),this.component.removeData("datetimepicker")},formatDate:function(t){return this.format.replace(d,function(e){var i,a,n,r=e.length;if("ms"===e&&(r=1),"Hours12"===(a=s[e].property))0===(n=t.getUTCHours())?n=12:12!==n&&(n%=12);else{if("Period12"===a)return t.getUTCHours()>=12?"PM":"AM";n=t[i="get"+a]()}return"getUTCMonth"===i&&(n+=1),"getUTCYear"===i&&(n=n+1900-2e3),u(n.toString(),r,"0")}
2)},parseDate:function(t){var e,i,a,s,n={};if(!(e=this._formatPattern.exec(t)))return null;for(i=1;i<e.length;i++)(a=this._propertiesByIndex[i])&&(s=e[i],/^\d+$/.test(s)&&(s=parseInt(s,10)),n[a]=s);return this._finishParsingDate(n)},_resetMaskPos:function(t){for(var e=t.val(),i=0;i<this._mask.length;i++){if(this._mask[i].end>e.length){this._maskPos=i;break}if(this._mask[i].end===e.length){this._maskPos=i+1;break}}},_finishParsingDate:function(t){var e,i,a,s,n,r,o;return e=t.UTCFullYear,t.UTCYear&&(e=2e3+t.UTCYear),e||(e=1970),i=t.UTCMonth?t.UTCMonth-1:0,a=t.UTCDate||1,s=t.UTCHours||0,n=t.UTCMinutes||0,r=t.UTCSeconds||0,o=t.UTCMilliseconds||0,t.Hours12&&(s=t.Hours12),t.Period12&&(/pm/i.test(t.Period12)?12!=s&&(s=(s+12)%24):s%=12),c(e,i,a,s,n,r,o)},_compileFormat:function(){for(var t,e,i=[],a=[],n=this.format,r={},d=0,u=0;t=o.exec(n);)(e=t[0])in s?(r[++d]=s[e].property,i.push("\\s*"+s[e].getPattern(this)+"\\s*"),a.push({pattern:new RegExp(s[e].getPattern(this)),property:s[e].property,start:u,end:u+=e.length})):(i.push(h(e)),a.push({pattern:new RegExp(h(e)),character:e,start:u,end:++u})),n=n.slice(e.length);this._mask=a,this._maskPos=0,this._formatPattern=new RegExp("^\\s*"+i.join("")+"\\s*$"),this._propertiesByIndex=r},_attachDatePickerEvents:function(){var e=this;this.widget.on("click",".datepicker *",t.proxy(this.click,this)),this.widget.on("click","[data-action]",t.proxy(this.doAction,this)),this.widget.on("mousedown",t.proxy(this.stopEvent,this)),this.pickDate&&this.pickTime&&this.widget.on("click.togglePicker",".accordion-toggle",function(i){i.stopPropagation();var a=t(this),s=a.closest("ul"),n=s.find(".collapse.in"),r=s.find(".collapse:not(.in)");if(n&&n.length){var o=n.data("collapse");if(o&&o.transitioning)return;n.collapse("hide"),r.collapse("show"),a.find("i").toggleClass(e.timeIcon+" "+e.dateIcon),e.$element.find(".add-on i").toggleClass(e.timeIcon+" "+e.dateIcon)}}),this.isInput?(this.$element.on({focus:t.proxy(this.show,this),change:t.proxy(this.change,this)}),this.options.maskInput&&this.$element.on({keydown:t.proxy(this.keydown,this),keypress:t.proxy(this.keypress,this)})):(this.$element.on({change:t.proxy(this.change,this)},"input"),this.options.maskInput&&this.$element.on({keydown:t.proxy(this.keydown,this),keypress:t.proxy(this.keypress,this)},"input"),this.component?this.component.on("click",t.proxy(this.show,this)):this.$element.on("click",t.proxy(this.show,this)))},_attachDatePickerGlobalEvents:function(){t(window).on("resize.datetimepicker"+this.id,t.proxy(this.place,this)),this.isInput||t(document).on("mousedown.datetimepicker"+this.id,t.proxy(this.hide,this))},_detachDatePickerEvents:function(){this.widget.off("click",".datepicker *",this.click),this.widget.off("click","[data-action]"),this.widget.off("mousedown",this.stopEvent),this.pickDate&&this.pickTime&&this.widget.off("click.togglePicker"),this.isInput?(this.$element.off({focus:this.show,change:this.change}),this.options.maskInput&&this.$element.off({keydown:this.keydown,keypress:this.keypress})):(this.$element.off({change:this.change},"input"),this.options.maskInput&&this.$element.off({keydown:this.keydown,keypress:this.keypress},"input"),this.component?this.component.off("click",this.show):this.$element.off("click",this.show))},_detachDatePickerGlobalEvents:function(){t(window).off("resize.datetimepicker"+this.id),this.isInput||t(document).off("mousedown.datetimepicker"+this.id)},_isInFixed:function(){if(this.$element){for(var e=this.$element.parents(),i=!1,a=0;a<e.length;a++)if("fixed"==t(e[a]).css("position")){i=!0;break}return i}return!1}},t.fn.datetimepicker=function(i,a){return this.each(function(){var s=t(this),n=s.data("datetimepicker"),r="object"==typeof i&&i;n||s.data("datetimepicker",n=new e(this,t.extend({},t.fn.datetimepicker.defaults,r))),"string"==typeof i&&n[i](a)})},t.fn.datetimepicker.defaults={maskInput:!1,pickDate:!0,pickTime:!0,pick12HourFormat:!1,pickSeconds:!0,startDate:-1/0,endDate:1/0,collapse:!0},t.fn.datetimepicker.Constructor=e;var i=0,a=t.fn.datetimepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2ay","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},bg:{days:["ÐеделÑ","Ðонеделник","ÐÑоÑник","СÑÑда","ЧеÑвÑÑÑÑк","ÐеÑÑк","СÑбоÑа","ÐеделÑ"],daysShort:["Ðед","Ðон","ÐÑо","СÑÑ","ЧеÑ","ÐеÑ","СÑб","Ðед"],daysMin:["Ð","Ð","Ð","С","Ч","Ð","С","Ð"],months:["ЯнÑаÑи","ФевÑÑаÑи","ÐаÑÑ","ÐпÑил","Ðай","Юни","Юли","ÐвгÑÑÑ","СепÑемвÑи","ÐкÑомвÑи","ÐоемвÑи","ÐекемвÑи"],monthsShort:["Ян","Фев","ÐаÑ","ÐпÑ","Ðай","Юни","Юли","Ðвг","Сеп","ÐкÑ","Ðое","Ðек"]},cs:{days:["NedÄle","PondÄlÃ","Ãterý","StÅeda","Ätvrtek","Pátek","Sobota","NedÄle"],daysShort:["Ne","Po","Ãt","St","Ät","Pá","So","Ne"],daysMin:["N","P","Ã","St","Ä","P","So","N"],months:["Leden","Ãnor","BÅezen","Duben","KvÄten","Äerven","Äervenec","Srpen","ZáÅÃ","ÅÃjen","Listopad","Prosinec"],monthsShort:["Led","Ãno","BÅe","Dub","KvÄ","Äer","Änc","Srp","ZáÅ","ÅÃj","Lis","Pro"]},da:{days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør","Søn"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø","Sø"],months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"]},de:{days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"],daysShort:["Son","Mon","Die","Mit","Don","Fre","Sam","Son"],daysMin:["So","Mo","Di","Mi","Do","Fr","Sa","So"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]},es:{days:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"],daysShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb","Dom"],daysMin:["Do","Lu","Ma","Mi","Ju","Vi","Sa","Do"],months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthsShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"]},fi:{days:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai","sunnuntai"],daysShort:["sun","maa","tii","kes","tor","per","lau","sun"],daysMin:["su","ma","ti","ke","to","pe","la","su"],months:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],monthsShort:["tam","hel","maa","huh","tou","kes","hei","elo","syy","lok","mar","jou"]},fo:{days:["Sunnudagur","Mánadagur","Týsdagur","Mikudagur","Hósdagur","FrÃggjadagur","Leygardagur","Sunnudagur"],daysShort:["Sun","Mán","Týs","Mik","Hós","FrÃ","Ley","Sun"],daysMin:["Su","Má","Tý","Mi","Hó","Fr","Le","Su"],months:["Januar","Februar","Mars","AprÃl","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"]},fr:{days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche"],daysShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam","Dim"],daysMin:["D","L","Ma","Me","J","V","S","D"],months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthsShort:["Jan","Fev","Mar","Avr","Mai","Jui","Jul","Aou","Sep","Oct","Nov","Dec"]},hr:{days:["Nedjelja","Ponedjelja","Utorak","Srijeda","Äetrtak","Petak","Subota","Nedjelja"],daysShort:["Ned","Pon","Uto","Srr","Äet","Pet","Sub","Ned"],daysMin:["Ne","Po","Ut","Sr","Äe","Pe","Su","Ne"],months:["SijeÄanj","VeljaÄa","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],monthsShort:["Sije","Velj","Ožu","Tra","Svi","Lip","Jul","Kol","Ruj","Lis","Stu","Pro"]},hu:{days:["Vasárnap","HétfÅ","Kedd","Szerda","Csütörtök","Péntek","Szombat","Vasárnap"],daysShort:["Vas","Hét","Ked","Sze","Csü","Pén","Szo","Vas"],daysMin:["V","H","K","Sze","Cs","P","Szo","V"],months:["Január","Február","Március","Ãprilis","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthsShort:["Jan","Feb","Már","Ãpr","Máj","Jún","Júl","Aug","Sze","Okt","Nov","Dec"]},id:{days:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu","Minggu"],daysShort:["Mgu","Sen","Sel","Rab","Kam","Jum","Sab","Mgu"],daysMin:["Mg","Sn","Sl","Ra","Ka","Ju","Sa","Mg"],months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Ags","Sep","Okt","Nov","Des"]},is:{days:["Sunnudagur","Mánudagur","Ãriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur","Sunnudagur"],daysShort:["Sun","Mán","Ãri","Mið","Fim","Fös","Lau","Sun"],daysMin:["Su","Má","Ãr","Mi","Fi","Fö","La","Su"],months:["Janúar","Febrúar","Mars","AprÃl","MaÃ","JúnÃ","JúlÃ","Ãgúst","September","Október","Nóvember","Desember"],monthsShort:["Jan","Feb","Mar","Apr","MaÃ","Jún","Júl","Ãgú","Sep","Okt","Nóv","Des"]},it:{days:["Domenica","Lunedi","Martedi","Mercoledi","Giovedi","Venerdi","Sabato","Domenica"],daysShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab","Dom"],daysMin:["Do","Lu","Ma","Me","Gi","Ve","Sa","Do"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthsShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"]},ja:{days:["æ¥æ","ææ","ç«æ","æ°´æ","æ¨æ","éæ","åæ","æ¥æ"],daysShort:["æ¥","æ","ç«","æ°´","æ¨","é","å","æ¥"],daysMin:["æ¥","æ","ç«","æ°´","æ¨","é","å","æ¥"],months:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ"],monthsShort:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ"]},kr:{days:["ì¼ìì¼","ììì¼","íìì¼","ììì¼","목ìì¼","ê¸ìì¼","í ìì¼","ì¼ìì¼"],daysShort:["ì¼","ì","í","ì","목","ê¸","í ","ì¼"],daysMin:["ì¼","ì","í","ì","목","ê¸","í ","ì¼"],months:["1
2ì","2ì","3ì","4ì","5ì","6ì","7ì","8ì","9ì","10ì","11ì","12ì"],monthsShort:["1ì","2ì","3ì","4ì","5ì","6ì","7ì","8ì","9ì","10ì","11ì","12ì"]},lt:{days:["Sekmadienis","Pirmadienis","Antradienis","TreÄiadienis","Ketvirtadienis","Penktadienis","Å eÅ¡tadienis","Sekmadienis"],daysShort:["S","Pr","A","T","K","Pn","Å ","S"],daysMin:["Sk","Pr","An","Tr","Ke","Pn","Å t","Sk"],months:["Sausis","Vasaris","Kovas","Balandis","GegužÄ","Birželis","Liepa","RugpjÅ«tis","RugsÄjis","Spalis","Lapkritis","Gruodis"],monthsShort:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugp","Rugs","Spa","Lap","Gru"]},lv:{days:["SvÄtdiena","Pirmdiena","Otrdiena","TreÅ¡diena","Ceturtdiena","Piektdiena","Sestdiena","SvÄtdiena"],daysShort:["Sv","P","O","T","C","Pk","S","Sv"],daysMin:["Sv","Pr","Ot","Tr","Ce","Pk","St","Sv"],months:["JanvÄris","FebruÄris","Marts","AprÄ«lis","Maijs","JÅ«nijs","JÅ«lijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],monthsShort:["Jan","Feb","Mar","Apr","Mai","JÅ«n","JÅ«l","Aug","Sep","Okt","Nov","Dec."]},ms:{days:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu","Ahad"],daysShort:["Aha","Isn","Sel","Rab","Kha","Jum","Sab","Aha"],daysMin:["Ah","Is","Se","Ra","Kh","Ju","Sa","Ah"],months:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"],monthsShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"]},nb:{days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør","Søn"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø","Sø"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"]},nl:{days:["Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag","Zondag"],daysShort:["Zo","Ma","Di","Wo","Do","Vr","Za","Zo"],daysMin:["Zo","Ma","Di","Wo","Do","Vr","Za","Zo"],months:["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"]},pl:{days:["Niedziela","PoniedziaÅek","Wtorek","Åroda","Czwartek","PiÄ
tek","Sobota","Niedziela"],daysShort:["Nie","Pn","Wt","År","Czw","Pt","So","Nie"],daysMin:["N","Pn","Wt","År","Cz","Pt","So","N"],months:["StyczeÅ","Luty","Marzec","KwiecieÅ","Maj","Czerwiec","Lipiec","SierpieÅ","WrzesieÅ","Październik","Listopad","GrudzieÅ"],monthsShort:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"]},pt:{days:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado","Domingo"],daysShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb","Dom"],daysMin:["Do","Se","Te","Qu","Qu","Se","Sa","Do"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]},ro:{days:["DuminicÄ","Luni","MarÅ£i","Miercuri","Joi","Vineri","SâmbÄtÄ","DuminicÄ"],daysShort:["Dum","Lun","Mar","Mie","Joi","Vin","Sâm","Dum"],daysMin:["Du","Lu","Ma","Mi","Jo","Vi","Sâ","Du"],months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],monthsShort:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Nov","Dec"]},rs:{days:["ÐедеÑа","ÐонедеÑак","УÑоÑак","СÑеда","ЧеÑвÑÑак","ÐеÑак","СÑбоÑа","ÐедеÑа"],daysShort:["Ðед","Ðон","УÑо","СÑе","ЧеÑ","ÐеÑ","СÑб","Ðед"],daysMin:["Ð","Ðо","У","СÑ","Ч","Ðе","СÑ","Ð"],months:["ÐанÑаÑ","ФебÑÑаÑ","ÐаÑÑ","ÐпÑил","ÐаÑ","ÐÑн","ÐÑл","ÐвгÑÑÑ","СепÑембаÑ","ÐкÑобаÑ","ÐовембаÑ","ÐеÑембаÑ"],monthsShort:["Ðан","Феб","ÐаÑ","ÐпÑ","ÐаÑ","ÐÑн","ÐÑл","Ðвг","Сеп","ÐкÑ","Ðов","ÐеÑ"]},ru:{days:["ÐоÑкÑеÑенÑе","ÐонеделÑник","ÐÑоÑник","СÑеда","ЧеÑвеÑг","ÐÑÑниÑа","СÑббоÑа","ÐоÑкÑеÑенÑе"],daysShort:["ÐÑк","Ðнд","ÐÑÑ","СÑд","ЧÑв","ÐÑн","СÑб","ÐÑк"],daysMin:["ÐÑ","Ðн","ÐÑ","СÑ","ЧÑ","ÐÑ","Сб","ÐÑ"],months:["ЯнваÑÑ","ФевÑалÑ","ÐаÑÑ","ÐпÑелÑ","Ðай","ÐÑнÑ","ÐÑлÑ","ÐвгÑÑÑ","СенÑÑбÑÑ","ÐкÑÑбÑÑ","ÐоÑбÑÑ","ÐекабÑÑ"],monthsShort:["Янв","Фев","ÐаÑ","ÐпÑ","Ðай","ÐÑн","ÐÑл","Ðвг","Сен","ÐкÑ","ÐоÑ","Ðек"]},sk:{days:["Nedeľa","Pondelok","Utorok","Streda","Å tvrtok","Piatok","Sobota","Nedeľa"],daysShort:["Ne","Po","Ut","St","Å t","Pi","So","Ne"],daysMin:["Ne","Po","Ut","St","Å t","Pi","So","Ne"],months:["Január","Február","Marec","AprÃl","Máj","Jún","Júl","August","September","Október","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"]},sl:{days:["Nedelja","Ponedeljek","Torek","Sreda","Äetrtek","Petek","Sobota","Nedelja"],daysShort:["Ned","Pon","Tor","Sre","Äet","Pet","Sob","Ned"],daysMin:["Ne","Po","To","Sr","Äe","Pe","S
2o","Ne"],months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"]},sv:{days:["Söndag","MÃ¥ndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag","Söndag"],daysShort:["Sön","MÃ¥n","Tis","Ons","Tor","Fre","Lör","Sön"],daysMin:["Sö","MÃ¥","Ti","On","To","Fr","Lö","Sö"],months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"]},th:{days:["à¸à¸²à¸à¸´à¸à¸¢à¹","à¸à¸±à¸à¸à¸£à¹","à¸à¸±à¸à¸à¸²à¸£","à¸à¸¸à¸","à¸à¸¤à¸«à¸±à¸ª","ศุà¸à¸£à¹","à¹à¸ªà¸²à¸£à¹","à¸à¸²à¸à¸´à¸à¸¢à¹"],daysShort:["à¸à¸²","à¸","à¸","à¸","à¸à¸¤","ศ","ส","à¸à¸²"],daysMin:["à¸à¸²","à¸","à¸","à¸","à¸à¸¤","ศ","ส","à¸à¸²"],months:["มà¸à¸£à¸²à¸à¸¡","à¸à¸¸à¸¡à¸ าà¸à¸±à¸à¸à¹","มีà¸à¸²à¸à¸¡","à¹à¸¡à¸©à¸²à¸¢à¸","à¸à¸¤à¸©à¸ าà¸à¸¡","มิà¸à¸¸à¸à¸²à¸¢à¸","à¸à¸£à¸à¸à¸²à¸à¸¡","สิà¸à¸«à¸²à¸à¸¡","à¸à¸±à¸à¸¢à¸²à¸¢à¸","à¸à¸¸à¸¥à¸²à¸à¸¡","à¸à¸¤à¸¨à¸à¸´à¸à¸²à¸¢à¸","à¸à¸±à¸à¸§à¸²à¸à¸¡"],monthsShort:["ม.à¸.","à¸.à¸.","มี.à¸.","à¹à¸¡.ย.","à¸.à¸.","มิ.ย.","à¸.à¸.","ส.à¸.","à¸.ย.","à¸.à¸.","à¸.ย.","à¸.à¸."]},tr:{days:["Pazar","Pazartesi","Salı","ÃarÅamba","PerÅembe","Cuma","Cumartesi","Pazar"],daysShort:["Pz","Pzt","Sal","ÃrÅ","PrÅ","Cu","Cts","Pz"],daysMin:["Pz","Pzt","Sa","Ãr","Pr","Cu","Ct","Pz"],months:["Ocak","Åubat","Mart","Nisan","Mayıs","Haziran","Temmuz","AÄustos","Eylül","Ekim","Kasım","Aralık"],monthsShort:["Oca","Åub","Mar","Nis","May","Haz","Tem","AÄu","Eyl","Eki","Kas","Ara"]},uk:{days:["ÐедÑлÑ","ÐонедÑлок","ÐÑвÑоÑок","СеÑеда","ЧеÑвеÑ","Ð'ÑÑниÑÑ","СÑбоÑа","ÐедÑлÑ"],daysShort:["Ðед","Ðнд","ÐÑÑ","СÑд","ЧÑв","ÐÑн","СÑб","Ðед"],daysMin:["Ðд","Ðн","ÐÑ","СÑ","ЧÑ","ÐÑ","Сб","Ðд"],months:["СÑÑенÑ","ÐÑÑий","ÐеÑезенÑ","ÐвÑÑенÑ","ТÑавенÑ","ЧеÑвенÑ","ÐипенÑ","СеÑпенÑ","ÐеÑеÑенÑ","ÐовÑенÑ","ÐиÑÑопад","ÐÑÑденÑ"],monthsShort:["СÑÑ","ÐÑÑ","ÐеÑ","ÐвÑ","ТÑа","ЧеÑ","Ðип","СеÑ","ÐеÑ","Ðов","ÐиÑ","ÐÑÑ"]}},s={dd:{property:"UTCDate",getPattern:function(){return"(0?[1-9]|[1-2][0-9]|3[0-1])\\b"}},MM:{property:"UTCMonth",getPattern:function(){return"(0?[1-9]|1[0-2])\\b"}},yy:{property:"UTCYear",getPattern:function(){return"(\\d{2})\\b"}},yyyy:{property:"UTCFullYear",getPattern:function(){return"(\\d{4})\\b"}},hh:{property:"UTCHours",getPattern:function(){return"(0?[0-9]|1[0-9]|2[0-3])\\b"}},mm:{property:"UTCMinutes",getPattern:function(){return"(0?[0-9]|[1-5][0-9])\\b"}},ss:{property:"UTCSeconds",getPattern:function(){return"(0?[0-9]|[1-5][0-9])\\b"}},ms:{property:"UTCMilliseconds",getPattern:function(){return"([0-9]{1,3})\\b"}},HH:{property:"Hours12",getPattern:function(){return"(0?[1-9]|1[0-2])\\b"}},PP:{property:"Period12",getPattern:function(){return"(AM|PM|am|pm|Am|aM|Pm|pM)\\b"}}},n=[];for(var r in s)n.push(r);n[n.length-1]+="\\b",n.push(".");var o=new RegExp(n.join("\\b|"));n.pop();var d=new RegExp(n.join("\\b|"),"g");function h(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function u(t,e,i){return e<t.length?t:Array(e-t.length+1).join(i||" ")+t}function c(){return new Date(Date.UTC.apply(Date,arguments))}var l={modes:[{clsName:"days",navFnc:"UTCMonth",navStep:1},{clsName:"months",navFnc:"UTCFullYear",navStep:1},{clsName:"years",navFnc:"UTCFullYear",navStep:10}],isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,l.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},headTemplate:'<thead><tr><th class="prev">‹</th><th colspan="5" class="switch"></th><th class="next">›</th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>'};l.template='<div class="datepicker-days"><table class="table-condensed">'+l.headTemplate+'<tbody></tbody></table></div><div class="datepicker-months"><table class="table-condensed">'+l.headTemplate+l.contTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+l.headTemplate+l.contTemplate+"</table></div>";var p={hourTemplate:'<span data-action="showHours" data-time-component="hours" class="timepicker-hour"></span>',minuteTemplate:'<span data-action="showMinutes" data-time-component="minutes" class="timepicker-minute"></span>',secondTemplate:'<span data-action="showSeconds" data-time-component="seconds" class="timepicker-second"></span>',getTemplate:function(t,e){return'<div class="timepicker-picker"><table class="table-condensed"'+(t?' data-hour-format="12"':"")+'><tr><td><a href="#" class="btn" data-action="incrementHours"><i class="icon-chevron-up"></i></a></td><td class="separator"></td><td><a href="#" class="btn" data-action="incrementMinutes"><i class="icon-chevron-up"></i></a></td>'+(e?'<td class="separator"></td><td><a href="#" class="btn" data-action="incrementSeconds"><i class="icon-chevron-up"></i></a></td>':"")+(t?'<td class="separator"></td>':"")+"</tr><tr><td>"+p.hourTemplate+'</td> <td class="separator">:</td><td>'+p.minuteTemplate+"</td> "+(e?'<td class="separator">:</td><td>'+p.secondTemplate+"</td>":"")+(t?'<td class="separator"></td><td><button type="button" class="btn btn-primary" data-action="togglePeriod"></button></td>':"")+'</tr><tr><td><a href="#" class="btn" data-action="decrementHours"><i class="icon-chevron-down"></i></a></td><td class="separator"></td><td><a href="#" class="btn" data-action="decrementMinutes"><i class="icon-chevron-down"></i></a></td>'+(e?'<td class="separator"></td><td><a href="#" class="btn" data-action="decrementSeconds"><i class="icon-chevron-down"></i></a></td>':"")+(t?'<td class="separator"></td>':"")+'</tr></table></div><div class="timepicker-hours" data-action="selectHour"><table class="table-condensed"></table></div><div class="timepicker-minutes" data-action="selectMinute"><table class="table-condensed"></table></div>'+(e?'<div class="timepicker-seconds" data-action="selectSecond"><table class="table-condensed"></table></div>':"")}}}(window.jQuery);!function(a,b){"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?module.exports=b():a.LazyLoad=b()}(this,function(){function a(){q||(m={elements_selector:"img",container:window,threshold:300,throttle:50,data_src:"original",data_srcset:"original-set",class_loading:"loading",class_loaded:"loaded",skip_invisible:!0,show_while_loading:!0,callback_load:null,callback_set:null,callback_processed:null,placeholder:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},n=!!window.addEventListener,o=!!window.attachEvent,p=!!document.body.classList,q=!0)}function b(a,b,c){return n?void a.addEventListener(b,c):void(o&&(a.attachEvent("on"+b,function(a){return function(){c.call(a,window.event)}}(a)),a=null))}function c(a,b,c){return n?void a.removeEventListener(b,c):void(o&&a.detachEvent("on"+b,c))}function d(a,b,c){function d(){return window.innerWidth||l.documentElement.clientWidth||document.body.clientWidth}function e(){return window.innerHeight||l.documentElement.clientHeight||document.body.clientHeight}function f(a){return a.getBoundingClientRect().top+m-l.documentElement.clientTop}
2function g(a){return a.getBoundingClientRect().left+n-l.documentElement.clientLeft}function h(){var d;return d=b===window?e()+m:f(b)+b.offsetHeight,d<=f(a)-c}function i(){var e;return e=b===window?d()+window.pageXOffset:g(b)+d(),e<=g(a)-c}function j(){var d;return d=b===window?m:f(b),d>=f(a)+c+a.offsetHeight}function k(){var d;return d=b===window?n:g(b),d>=g(a)+c+a.offsetWidth}var l,m,n;return l=a.ownerDocument,m=window.pageYOffset||l.body.scrollTop,n=window.pageXOffset||l.body.scrollLeft,!(h()||j()||i()||k())}function e(){var a=new Date;return a.getTime()}function f(a,b){var c,d={};for(c in a)a.hasOwnProperty(c)&&(d[c]=a[c]);for(c in b)b.hasOwnProperty(c)&&(d[c]=b[c]);return d}function g(a){try{return Array.prototype.slice.call(a)}catch(e){var b,c=[],d=a.length;for(b=0;b<d;b++)c.push(a[b]);return c}}function h(a,b){return p?void a.classList.add(b):void(a.className+=(a.className?" ":"")+b)}function i(a,b){return p?void a.classList.remove(b):void(a.className=a.className.replace(new RegExp("(^|\\s+)"+b+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,""))}function j(a,b,c,d){var e=b.getAttribute("data-"+d),f=b.getAttribute("data-"+c),g=a.tagName;return"IMG"===g?(e&&a.setAttribute("src",e),void(f&&a.setAttribute("srcset",f))):"IFRAME"===g?void(e&&a.setAttribute("src",e)):void(a.style.backgroundImage="url("+e+")")}function k(a,b){return function(){return a.apply(b,arguments)}}function l(c){a(),this._settings=f(m,c),this._queryOriginNode=this._settings.container===window?document:this._settings.container,this._previousLoopTime=0,this._loopTimeout=null,this._handleScrollFn=k(this.handleScroll,this),b(window,"resize",this._handleScrollFn),this.update()}var m,n,o,p,q=!1;return l.prototype._showOnLoad=function(a){function d(){null!==f&&(f.callback_load&&f.callback_load(a),j(a,a,f.data_srcset,f.data_src),f.callback_set&&f.callback_set(a),i(a,f.class_loading),h(a,f.class_loaded),c(e,"load",d))}var e,f=this._settings;a.getAttribute("src")||a.setAttribute("src",f.placeholder),e=document.createElement("img"),b(e,"load",d),h(a,f.class_loading),j(e,a,f.data_srcset,f.data_src)},l.prototype._showOnAppear=function(a){function d(){null!==e&&(e.callback_load&&e.callback_load(a),i(a,e.class_loading),h(a,e.class_loaded),c(a,"load",d))}var e=this._settings;"IMG"!==a.tagName&&"IFRAME"!==a.tagName||(b(a,"load",d),h(a,e.class_loading)),j(a,a,e.data_srcset,e.data_src),e.callback_set&&e.callback_set(a)},l.prototype._loopThroughElements=function(){var a,b,c=this._settings,e=this._elements,f=e?e.length:0,g=[];for(a=0;a<f;a++)b=e[a],c.skip_invisible&&null===b.offsetParent||d(b,c.container,c.threshold)&&(c.show_while_loading?this._showOnAppear(b):this._showOnLoad(b),g.push(a),b.wasProcessed=!0);for(;g.length>0;)e.splice(g.pop(),1),c.callback_processed&&c.callback_processed(e.length);0===f&&this._stopScrollHandler()},l.prototype._purgeElements=function(){var a,b,c=this._elements,d=c.length,e=[];for(a=0;a<d;a++)b=c[a],b.wasProcessed&&e.push(a);for(;e.length>0;)c.splice(e.pop(),1)},l.prototype._startScrollHandler=function(){this._isHandlingScroll||(this._isHandlingScroll=!0,b(this._settings.container,"scroll",this._handleScrollFn))},l.prototype._stopScrollHandler=function(){this._isHandlingScroll&&(this._isHandlingScroll=!1,c(this._settings.container,"scroll",this._handleScrollFn))},l.prototype.handleScroll=function(){var a,b,c;this._settings&&(b=e(),c=this._settings.throttle,0!==c?(a=c-(b-this._previousLoopTime),a<=0||a>c?(this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._previousLoopTime=b,this._loopThroughElements()):this._loopTimeout||(this._loopTimeout=setTimeout(k(function(){this._previousLoopTime=e(),this._loopTimeout=null,this._loopThroughElements()},this),a))):this._loopThroughElements())},l.prototype.update=function(){this._elements=g(this._queryOriginNode.querySelectorAll(this._settings.elements_selector)),this._purgeElements(),this._loopThroughElements(),this._startScrollHandler()},l.prototype.destroy=function(){c(window,"resize",this._handleScrollFn),this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._stopScrollHandler(),this._elements=null,this._queryOriginNode=null,this._settings=null},l});(function($){if(!$.fn.andSelf){$.fn.andSelf=$.fn.addBack||function(selector){return this.add(this.prevObject.filter(selector||"*"))}} 3if(!$.camelCase){$.camelCase=function(string){return string.replace(/-([a-z])/g,function(_,letter){return letter.toUpperCase()})}} 4if(!$.isNumeric){$.isNumeric=function(value){return !Array.isArray(value)&&value!==""&&value!==null&&isFinite(value)}} 5if(!$.isArray){$.isArray=Array.isArray} 6if(!$.isFunction){$.isFunction=function(obj){return typeof obj==="function"}}})(jQuery);!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this.drag=a.extend({},m),this.state=a.extend({},n),this.e=a.extend({},o),this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._invalidated={},this._pipe=[],a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a[0].toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Pipe,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}function f(a){if(a.touches!==d)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(a.touches===d){if(a.pageX!==d)return{x:a.pageX,y:a.pageY};if(a.pageX===d)return{x:a.clientX,y:a.clientY}}}
6function g(a){var b,d,e=c.createElement("div"),f=a;for(b in f)if(d=f[b],"undefined"!=typeof e.style[d])return e=null,[d,b];return[!1]}function h(){return g(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function i(){return g(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function j(){return g(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function k(){return"ontouchstart"in b||!!navigator.msMaxTouchPoints}function l(){return b.navigator.msPointerEnabled}var m,n,o;m={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},n={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},o={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null},e.Defaults={items:3,loop:!1,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Plugins={},e.Pipe=[{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var a=this._clones,b=this.$stage.children(".cloned");(b.length!==a.length||!this.settings.loop&&a.length>0)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){var a,b,c=this._clones,d=this._items,e=this.settings.loop?c.length-Math.max(2*this.settings.items,4):0;for(a=0,b=Math.abs(e/2);b>a;a++)e>0?(this.$stage.children().eq(d.length+c.length-1).remove(),c.pop(),this.$stage.children().eq(0).remove(),c.pop()):(c.push(c.length/2),this.$stage.append(d[c[c.length-1]].clone().addClass("cloned")),c.push(d.length-1-(c.length-1)/2),this.$stage.prepend(d[c[c.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var a,b,c,d=this.settings.rtl?1:-1,e=(this.width()/this.settings.items).toFixed(3),f=0;for(this._coordinates=[],b=0,c=this._clones.length+this._items.length;c>b;b++)a=this._mergers[this.relative(b)],a=this.settings.mergeFit&&Math.min(a,this.settings.items)||a,f+=(this.settings.autoWidth?this._items[this.relative(b)].width()+this.settings.margin:e*a)*d,this._coordinates.push(f)}},{filter:["width","items","settings"],run:function(){var b,c,d=(this.width()/this.settings.items).toFixed(3),e={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(e),e={width:this.settings.autoWidth?"auto":d-this.settings.margin},e[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&a.grep(this._mergers,function(a){return a>1}).length>0)for(b=0,c=this._coordinates.length;c>b;b++)e.width=Math.abs(this._coordinates[b])-Math.abs(this._coordinates[b-1]||0)-this.settings.margin,this.$stage.children().eq(b).css(e);else this.$stage.children().css(e)}},{filter:["width","items","settings"],run:function(a){a.current&&this.reset(this.$stage.children().index(a.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;d>c;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],e.prototype.initialize=function(){if(this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&this.state.imagesLoaded!==!0){var b,c,e;if(b=this.$element.find("img"),c=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,e=this.$element.children(c).width(),b.length&&0>=e)return this.preloadAutoWidthImages(b),!1}this.$element.addClass("owl-loading"),this.$stage=a("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('<div class="owl-stage-outer">'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){b>=a&&a>
6d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),delete e.responsive,e.responsiveClass&&this.$element.attr("class",function(a,b){return b.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+d)):e=a.extend({},this.options),(null===this.settings||this._breakpoint!==d)&&(this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},e.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length<this.settings.items&&(this.settings.loop=!1),this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.settings.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};c>b;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={}},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){if(0===this._items.length)return!1;(new Date).getTime();this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=b.orientation,this.watchVisibility(),this.trigger("refreshed")},e.prototype.eventsCall=function(){this.e._onDragStart=a.proxy(function(a){this.onDragStart(a)},this),this.e._onDragMove=a.proxy(function(a){this.onDragMove(a)},this),this.e._onDragEnd=a.proxy(function(a){this.onDragEnd(a)},this),this.e._onResize=a.proxy(function(a){this.onResize(a)},this),this.e._transitionEnd=a.proxy(function(a){this.transitionEnd(a)},this),this.e._preventClick=a.proxy(function(a){this.preventClick(a)},this)},e.prototype.onThrottledResize=function(){if(this.e!=null){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)}},e.prototype.onResize=function(){return this._items.length?this._width===this.$element.width()?!1:this.trigger("resize").isDefaultPrevented()?!1:(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized")):!1},e.prototype.eventsRouter=function(a){var b=a.type;"mousedown"===b||"touchstart"===b?this.onDragStart(a):"mousemove"===b||"touchmove"===b?this.onDragMove(a):"mouseup"===b||"touchend"===b?this.onDragEnd(a):"touchcancel"===b&&this.onDragEnd(a)},e.prototype.internalEvents=function(){var c=(k(),l());this.settings.mouseDrag?(this.$stage.on("mousedown",a.proxy(function(a){this.eventsRouter(a)},this)),this.$stage.on("dragstart",function(){return!1}),this.$stage.get(0).onselectstart=function(){return!1}):this.$element.addClass("owl-text-select-on"),this.settings.touchDrag&&!c&&this.$stage.on("touchstart touchcancel",a.proxy(function(a){this.eventsRouter(a)},this)),this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1),this.settings.responsive!==!1&&this.on(b,"resize",a.proxy(this.onThrottledResize,this))},e.prototype.onDragStart=function(d){var e,g,h,i;if(e=d.originalEvent||d||b.event,3===e.which||this.state.isTouch)return!1;if("mousedown"===e.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,g=f(e).x,h=f(e).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)i=this.getTransformProperty(),this.drag.offsetX=i,this.animate(i),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1,!1;this.drag.startX=g-this.drag.offsetX,this.drag.startY=h-this.drag.offsetY,this.drag.start=g-this.drag.startX,this.drag.targetEl=e.target||e.srcElement,this.drag.updatedX=this.drag.start,("IMG"===this.drag.targetEl.tagName||"A"===this.drag.targetEl.tagName)&&(this.drag.targetEl.draggable=!1),a(c).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",a.proxy(function(a){this.eventsRouter(a)},this))},e.prototype.onDragMove=function(a){var c,e,g,h,i,j;this.state.isTouch&&(this.state.isScrolling||(c=a.originalEvent||a||b.event,e=f(c).x,g=f(c).y,this.drag.currentX=e-this.drag.startX,this.drag.currentY=g-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":this.drag.distance>0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(h=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),i=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),j=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,h+j),i+j)),(this.drag.distance>8||this.drag.distance<-8)&&(c.preventDefault!==d?c.preventDefault():c.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===!1&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))},e.prototype.onDragEnd=function(b){var d,e,f;if(this.state.isTouch){if("mouseup"===b.type&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&this.state.inMotion!==!0)return this.state.inMotion=!1,!1;this.drag.endTime=(new Date).getTime(),d=this.drag.endTime-this.drag.startTime,e=Math.abs(this.drag.distance),(e>3||d>300)&&this.removeClick(this.drag.targetEl),f=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(f),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(f)||this.transitionEnd(),this.drag.distance=0,a(c).off(".owl.dragEvents")}},e.prototype.removeClick=function(c){this.drag.targetEl=c,a(c).on("click.preventClick",this.e._preventClick),b.setTimeout(function(){a(c).off("click.preventClick")},300)},e.prototype.preventClick=function(b){b.preventDefault?b.preventDefault():b.returnValue=!1,b.stopPropagation&&b.stopPropagation(),a(b.target).off("click.preventClick")},e.prototype.getTransformProperty=function(){var a,c;return a=b.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform"),a=a.replace(/matrix(3d)?\(|\)/g,"").split(","),c=16===a.length,c!==!0?a[4]:a[12]},e.prototype.closest=function(b){var c=-1,d=30,e=this.width(),f=this.coordinates();return this.settings.freeDrag||a.each(f,a.proxy(function(a,g){return b>g-d&&g+d>b?c=a:this.op(b,"<",g)&&this.op(b,">",f[a+1]||g-e)&&(c="left"===this.state.direction?a+1:a),-1===c},this)),this.settings.loop||(this.op(b,">",f[this.minimum()])?c=b=this.minimum():this.op(b,"<",f[this.maximum()])&&(c=b=this.maximum())),c},e.prototype.animate=function(b){this.trigger("translate"),this.state.inMotion=this.speed()>0,this.support3d?this.$stage.css({transform:"translate3d("+b+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:b+"px"}):this.$stage.animate({left:b},this.speed()/1e3,this.settings.fallbackEasing,a.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))}
6,e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(a){this._invalidated[a]=!0},e.prototype.reset=function(a){a=this.normalize(a),a!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(b,c){var e=c?this._items.length:this._items.length+this._clones.length;return!a.isNumeric(b)||1>e?d:b=this._clones.length?(b%e+e)%e:Math.max(this.minimum(c),Math.min(this.maximum(c),b))},e.prototype.relative=function(a){return a=this.normalize(a),a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=0,f=this.settings;if(a)return this._items.length-1;if(!f.loop&&f.center)b=this._items.length-1;else if(f.loop||f.center)if(f.loop||f.center)b=this._items.length+f.items;else{if(!f.autoWidth&&!f.merge)throw"Can not detect maximum absolute position.";for(revert=f.rtl?1:-1,c=this.$stage.width()-this.$element.width();(d=this.coordinates(e))&&!(d*revert>=c);)b=++e}else b=this._items.length-f.items;return b},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2===0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c=null;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[b-1]||0))/2*(this.settings.rtl?-1:1)):c=this._coordinates[b-1]||0,c)},e.prototype.duration=function(a,b,c){return Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(c,d){if(this.settings.loop){var e=c-this.relative(this.current()),f=this.current(),g=this.current(),h=this.current()+e,i=0>g-h?!0:!1,j=this._clones.length+this._items.length;h<this.settings.items&&i===!1?(f=g+this._items.length,this.reset(f)):h>=j-this.settings.items&&i===!0&&(f=g-this._items.length,this.reset(f)),b.clearTimeout(this.e._goToLoop),this.e._goToLoop=b.setTimeout(a.proxy(function(){this.speed(this.duration(this.current(),f+e,d)),this.current(f+e),this.update()},this),30)}else this.speed(this.duration(this.current(),c,d)),this.current(c),this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.transitionEnd=function(a){return a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0))?!1:(this.state.inMotion=!1,void this.trigger("translated"))},e.prototype.viewport=function(){var d;if(this.options.responsiveBaseElement!==b)d=a(this.options.responsiveBaseElement).width();else if(b.innerWidth)d=b.innerWidth;else{if(!c.documentElement||!c.documentElement.clientWidth)throw"Can not detect viewport width.";d=c.documentElement.clientWidth}return d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(a.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(a,b){b=b===d?this._items.length:this.normalize(b,!0),this.trigger("add",{content:a,position:b}),0===this._items.length||b===this._items.length?(this.$stage.append(a),this._items.push(a),this._mergers.push(1*a.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[b].before(a),this._items.splice(b,0,a),this._mergers.splice(b,0,1*a.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:a,position:b})},e.prototype.remove=function(a){a=this.normalize(a,!0),a!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.addTriggerableEvents=function(){var b=a.proxy(function(b,c){return a.proxy(function(a){a.relatedTarget!==this&&(this.suppress([c]),b.apply(this,[].slice.call(arguments,1
6)),this.release([c]))},this)},this);a.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},a.proxy(function(a,c){this.$element.on(a+".owl.carousel",b(c,a+".owl.carousel"))},this))},e.prototype.watchVisibility=function(){function c(a){return a.offsetWidth>0&&a.offsetHeight>0}function d(){c(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),b.clearInterval(this.e._checkVisibile))}c(this.$element.get(0))||(this.$element.addClass("owl-hidden"),b.clearInterval(this.e._checkVisibile),this.e._checkVisibile=b.setInterval(a.proxy(d,this),500))},e.prototype.preloadAutoWidthImages=function(b){var c,d,e,f;c=0,d=this,b.each(function(g,h){e=a(h),f=new Image,f.onload=function(){c++,e.attr("src",f.src),e.css("opacity",1),c>=b.length&&(d.state.imagesLoaded=!0,d.initialize())},f.src=e.attr("src")||e.attr("data-src")||e.attr("data-src-retina")})},e.prototype.destroy=function(){this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),this.settings.responsive!==!1&&a(b).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd);for(var d in this._plugins)this._plugins[d].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),a(c).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:c>a;case">":return d?c>a:a>c;case">=":return d?c>=a:a>=c;case"<=":return d?a>=c:c>=a}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d){var e={item:{count:this._items.length,index:this.current()}},f=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),g=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},e,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(g)}),this.$element.trigger(g),this.settings&&"function"==typeof this.settings[f]&&this.settings[f].apply(this,g)),g},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.browserSupport=function(){if(this.support3d=j(),this.support3d){this.transformVendor=i();var a=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"];this.transitionEndVendor=a[h()],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=b.orientation},a.fn.owlCarousel=function(b){return this.each(function(){a(this).data("owlCarousel")||a(this).data("owlCarousel",new e(this,b))})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b){var c=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type))for(var c=this._core.settings,d=c.center&&Math.ceil(c.items/2)||c.items,e=c.center&&-1*d||0,f=(b.property&&b.property.value||this._core.current())+e,g=this._core.clones().length,h=a.proxy(function(a,b){this.load(b)},this);e++<d;)this.load(g/2+this._core.relative(f)),g&&a.each(this._core.clones(this._core.relative(f++)),h)},this)},this._core.options=a.extend({},c.Defaults,this._core.options),this._core.$element.on(this._handlers)};c.Defaults={lazyLoad:!1},c.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(".owl-lazy");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":"url("+g+")",opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},c.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=c}(window.Zepto||window.jQuery,window,document),function(a){var b=function(c){this._core=c,this._handlers={"initialized.owl.carousel":
6a.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){this._core.settings.autoHeight&&"position"==a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=a.extend({},b.Defaults,this._core.options),this._core.$element.on(this._handlers)};b.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},b.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},b.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=b}(window.Zepto||window.jQuery,window,document),function(a,b,c){var d=function(b){this._core=b,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":a.proxy(function(a){this._core.settings.video&&!this.isInFullScreen()&&a.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":a.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))},this)},this._core.options=a.extend({},d.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};d.Defaults={video:!1,videoHeight:!1,videoWidth:!1},d.prototype.fetch=function(a,b){var c=a.attr("data-vimeo-id")?"vimeo":"youtube",d=a.attr("data-vimeo-id")||a.attr("data-youtube-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else{if(!(d[3].indexOf("vimeo")>-1))throw new Error("Video URL not supported.");c="vimeo"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},d.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?'style="width:'+c.width+"px;height:"+c.height+'px;"':"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(a){e='<div class="owl-video-play-icon"></div>',d=k.lazyLoad?'<div class="owl-video-tn '+j+'" '+i+'="'+a+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+a+')"></div>',b.after(d),b.after(e)};return b.wrap('<div class="owl-video-wrapper"'+g+"></div>"),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length?(l(h.attr(i)),h.remove(),!1):void("youtube"===c.type?(f="http://img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type&&a.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}))},d.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},d.prototype.play=function(b){this._core.trigger("play",null,"video"),this._playing&&this.stop();var c,d,e=a(b.target||b.srcElement),f=e.closest("."+this._core.settings.itemClass),g=this._videos[f.attr("data-video")],h=g.width||"100%",i=g.height||this._core.$stage.height();"youtube"===g.type?c='<iframe width="'+h+'" height="'+i+'" src="http://www.youtube.com/embed/'+g.id+"?autoplay=1&v="+g.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===g.type&&(c='<iframe src="http://player.vimeo.com/video/'+g.id+'?autoplay=1" width="'+h+'" height="'+i+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),f.addClass("owl-video-playing"),this._playing=f,d=a('<div style="height:'+i+"px; width:"+h+'px" class="owl-video-frame">'+c+"</div>"),e.after(d)},d.prototype.isInFullScreen=function(){var d=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return d&&a(d).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),d&&this._fullscreen&&this._playing?!1:this._fullscreen?(this._fullscreen=!1,!1):this._playing&&this._core.state.orientation!==b.orientation?(this._core.state.orientation=b.orientation,!1):!0},d.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=d}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":
6a.proxy(function(a){"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){this.swapping="translated"==a.type},this),"translate.owl.carousel":a.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",c)),f&&e.addClass("animated owl-animated-in").addClass(f).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",c))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c){var d=function(b){this.core=b,this.core.options=a.extend({},d.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":a.proxy(function(){this.autoplay()},this),"play.owl.autoplay":a.proxy(function(a,b,c){this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};d.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},d.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(b.clearInterval(this.interval),this.interval=b.setInterval(a.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):b.clearInterval(this.interval)},d.prototype.play=function(){return c.hidden===!0||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:this.core.settings.autoplay===!1?void b.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},d.prototype.stop=function(){b.clearInterval(this.interval)},d.prototype.pause=function(){b.clearInterval(this.interval)},d.prototype.destroy=function(){var a,c;b.clearInterval(this.interval);for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=d}(window.Zepto||window.jQuery,window,document),function(a){"use strict";var b=function(c){this._core=c,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){this._core.settings.dotsData&&this._templates.push(a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":a.proxy(function(b){this._core.settings.dotsData&&this._templates.splice(b.position,0,a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":a.proxy(function(a){this._core.settings.dotsData&&this._templates.splice(a.position,1)}
6,this),"change.owl.carousel":a.proxy(function(a){if("position"==a.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var b=this._core.current(),c=this._core.maximum(),d=this._core.minimum();a.data=a.property.value>c?b>=c?d:c:a.property.value<d?c:a.property.value}},this),"changed.owl.carousel":a.proxy(function(a){"position"==a.property.name&&this.draw()},this),"refreshed.owl.carousel":a.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0),this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation")},this)},this._core.options=a.extend({},b.Defaults,this._core.options),this.$element.on(this._handlers)};b.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-control
6s"},b.prototype.initialize=function(){var b,c,d=this._core.settings;d.dotsData||(this._templates=[a("<div>").addClass(d.dotClass).append(a("<span>")).prop("outerHTML")]),d.navContainer&&d.dotsContainer||(this._controls.$container=a("<div>").addClass(d.controlsClass).appendTo(this.$element)),this._controls.$indicators=d.dotsContainer?a(d.dotsContainer):a("<div>").hide().addClass(d.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",a.proxy(function(b){var c=a(b.target).parent().is(this._controls.$indicators)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(c,d.dotsSpeed)},this)),b=d.navContainer?a(d.navContainer):a("<div>").addClass(d.navContainerClass).prependTo(this._controls.$container),this._controls.$next=a("<"+d.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(d.navClass[0]).html(d.navText[0]).hide().prependTo(b).on("click",a.proxy(function(){this.prev(d.navSpeed)},this)),this._controls.$next.addClass(d.navClass[1]).html(d.navText[1]).hide().appendTo(b).on("click",a.proxy(function(){this.next(d.navSpeed)},this));for(c in this._overrides)this._core[c]=a.proxy(this[c],this)},b.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},b.prototype.update=function(){var a,b,c,d=this._core.settings,e=this._core.clones().length/2,f=e+this._core.items().length,g=d.center||d.autoWidth||d.dotData?1:d.dotsEach||d.items;if("page"!==d.slideBy&&(d.slideBy=Math.min(d.slideBy,d.items)),d.dots||"page"==d.slideBy)for(this._pages=[],a=e,b=0,c=0;f>a;a++)(b>=g||0===b)&&(this._pages.push({start:a-e,end:a-e+g-1}),b=0,++c),b+=this._core.mergers(this._core.relative(a))},b.prototype.draw=function(){var b,c,d="",e=this._core.settings,f=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!e.nav||e.loop||e.navRewind||(this._controls.$previous.toggleClass("disabled",0>=f),this._controls.$next.toggleClass("disabled",f>=this._core.maximum())),this._controls.$previous.toggle(e.nav),this._controls.$next.toggle(e.nav),e.dots){if(b=this._pages.length-this._controls.$indicators.children().length,e.dotData&&0!==b){for(c=0;c<this._controls.$indicators.children().length;c++)d+=this._templates[this._core.relative(c)];this._controls.$indicators.html(d)}else b>0?(d=new Array(b+1).join(this._templates[0]),this._controls.$indicators.append(d)):0>b&&this._controls.$indicators.children().slice(b).remove();this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(a.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(e.dots)},b.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotData?1:c.dotsEach||c.items)}},b.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,function(a){return a.start<=b&&a.end>=b}).pop()},b.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},b.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},b.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},b.prototype.to=function(b,c,d){var e;d?a.proxy(this._overrides.to,this._core)(b,c):(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c))},a.fn.owlCarousel.Constructor.Plugins.Navigation=b}(window.Zepto||window.jQuery,window,document),function(a,b){"use strict";var c=function(d){this._core=d,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":
6a.proxy(function(){"URLHash"==this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){var c=a(b.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[c]=b.content},this)},this._core.options=a.extend({},c.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(){var a=b.location.hash.substring(1),c=this._core.$stage.children(),d=this._hashes[a]&&c.index(this._hashes[a])||0;return a?void this._core.to(d,!1,!0):!1},this))};c.Defaults={URLhashListener:!1},c.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=c}(window.Zepto||window.jQuery,window,document);;const getSliderSection=selector=>{const $el=$(selector);return $el.length?$el:null};const mainOwlCarouselSlider={init:(sliderElementClass)=>{const sliderSection=getSliderSection(sliderElementClass);if(!sliderSection)return;const slideSpeed=200;let changeSource=!1;let stopSliderCarouselTriggerChanged=!1;let stopNamesCarouselTriggerChanged=!1;let disabledClickNamesCarousel=!1;let autoplayInterval=null;let forwardDirectionCarousel=!0;const startInterval=()=>{if(sliderCarousel.data('timeout')===0){return} 7clearInterval(autoplayInterval);autoplayInterval=setInterval(()=>{stopSliderCarouselTriggerChanged=!0;stopNamesCarouselTriggerChanged=!0;changeSource='autoplay';sliderCarousel.owlCarousel().trigger('next.owl.carousel',[slideSpeed]);namesCarousel.owlCarousel().trigger('next.owl.carousel',[slideSpeed])},parseInt(sliderCarousel.data('timeout')))} 8const stopInterval=()=>{if(sliderCarousel.data('timeout')===0){return} 9clearInterval(autoplayInterval)} 10const sliderCarousel=sliderSection.find('.carousel.slider-carousel');const sliderCarouselNavStyle=sliderCarousel.data('slide-navigation-style');const setFocusedCarousel=(value,event)=>{const $controls=sliderCarousel.find('.owl-controls .owl-prev, .owl-controls .owl-next');$controls.css('opacity',value?0.7:0)};const namesCarousel=sliderSection.find('.carousel-slider-names');sliderSection.on('mouseover touchstart focusin',(e)=>{setFocusedCarousel(!0,e);stopInterval()}).on('mouseout focusout',(e)=>{setFocusedCarousel(!1,e);startInterval()}).on('keyup',(e)=>{setFocusedCarousel(!0,e);stopInterval()});startInterval();const sliderCarouselDots=sliderSection.find('.carousel-custom-dots');const sliderCarouselOptions={loop:sliderCarousel.children().length>1,margin:0,nav:sliderCarousel.children().length>1,dots:!!sliderCarouselNavStyle,dotsContainer:sliderCarouselDots[0],autoplay:!1,autoplayHoverPause:!0,navText:[`<button type="button" aria-label="${L['SLIDER_PREVIOUS_SLIDE']}" tabindex="0" class="bg-transparent border-0 icon-arrow_left_32 element-black"></button>`,`<button aria-label="${L['SLIDER_NEXT_SLIDE']}" type="button" tabindex="0" class="bg-transparent border-0 icon-arrow_right_32 element-black"></button>`],center:!0,lazyLoad:!0,items:1,responsive:{0:{items:1}}};const namesCarouselOptions={loop:namesCarousel.children().length>1,lazyLoad:!0,lazyContent:!0,autoplay:!1,touchDrag:!0,mouseDrag:!0,items:1,navText:[`<button type="button" aria-label="${L['SLIDER_PREVIOUS_SLIDE']}" tabindex="0" class="bg-transparent border-0 icon-arrow_left_32 element-black"></button>`,`<button aria-label="${L['SLIDER_NEXT_SLIDE']}" type="button" tabindex="0" class="bg-transparent border-0 icon-arrow_right_32 element-black"></button>`],responsive:{0:{autoWidth:!1,nav:namesCarousel.children().length>1,center:!1},768:{autoWidth:!0,center:!0}}} 11sliderCarousel.owlCarousel(sliderCarouselOptions);namesCarousel.owlCarousel(namesCarouselOptions);const namesCarouselClick=()=>{namesCarousel.trigger('refresh.owl.carousel');namesCarousel.find('.owl-nav-item.owl-dot:not(.active.center)').off('click');namesCarousel.find('.owl-nav-item.owl-dot:not(.active.center)').on('click',function(e){if(disabledClickNamesCarousel){return} 12stopNamesCarouselTriggerChanged=!0;stopSliderCarouselTriggerChanged=!0;const $owlStage=$(this).closest('.owl-stage');const $siblings=$owlStage.find('.owl-nav-item.owl-dot');const $activeCenterElement=$owlStage.find('.active.center');const $children=$owlStage.children();const clickedIndex=$siblings.index($(this));const activeCenterIndex=$children.index($activeCenterElement);const direction=clickedIndex>activeCenterIndex?'left':'right';
12const index=parseInt($(this).attr('data-slider-position'))-1;const count=Math.max.apply(null,$owlStage.find('[data-slider-position]').map(function(){return parseInt($(this).attr('data-slider-position'))}).get());if(direction!=='right'&&index===0){sliderCarousel.owlCarousel().trigger('next.owl.carousel',[slideSpeed]);namesCarousel.owlCarousel().trigger('next.owl.carousel',[slideSpeed])}else if(direction==='right'&&((index+1)===count)){sliderCarousel.owlCarousel().trigger('prev.owl.carousel',[slideSpeed]);namesCarousel.owlCarousel().trigger('prev.owl.carousel',[slideSpeed])}else{sliderCarousel.owlCarousel().trigger('to.owl.carousel',[index,slideSpeed]);namesCarousel.owlCarousel().trigger('to.owl.carousel',[index,slideSpeed])}})} 13window.addEventListener('resize',()=>{namesCarouselClick()});namesCarouselClick();const updateActiveItems=(focusOnItem=!1)=>{const selector='.owl-item .item a[aria-roledescription], .owl-item .item span[aria-roledescription]';const $allItems=sliderCarousel.find(selector);$allItems.each(function(){$(this).attr('inert','').removeAttr('tabindex')});const $activeItems=sliderCarousel.find('.owl-item.active.center .item a[aria-roledescription], .owl-item.active.center .item span[aria-roledescription]');$activeItems.attr('tabindex',0).removeAttr('inert');if(focusOnItem&&$activeItems.length){$activeItems.first().focus()}};const handleSliderNavigation=function(event){const $btn=$(event.currentTarget);const isNext=$btn.closest('.owl-next').length>0;const isPrev=$btn.closest('.owl-prev').length>0;stopNamesCarouselTriggerChanged=!0;stopSliderCarouselTriggerChanged=!1;if(event.key===' '||event.key==='Enter'||event.type==='click'){event.preventDefault();event.stopPropagation() 14forwardDirectionCarousel=isPrev;changeSource='button';if(forwardDirectionCarousel){sliderCarousel.owlCarousel().trigger('prev.owl.carousel',[slideSpeed])}else{sliderCarousel.owlCarousel().trigger('next.owl.carousel',[slideSpeed])} 15setTimeout(()=>{const $activeItems=sliderCarousel.find('.owl-item.active.center .item a[aria-roledescription], .owl-item.active.center .item span[aria-roledescription]');alertScreenReader($activeItems.attr('aria-label'),'polite')},slideSpeed)} 16if((isNext&&event.key==='Tab'&&!event.shiftKey)||(isPrev&&event.key==='Tab'&&event.shiftKey)){setFocusedCarousel(!1,event);startInterval()}} 17sliderCarousel.find('.owl-next button, .owl-prev button').on('keydown click',handleSliderNavigation);namesCarousel.find('.owl-next button, .owl-prev button').on('keydown click',handleSliderNavigation);sliderCarouselDots.find('.owl-nav-item.owl-dot').click(function(){stopNamesCarouselTriggerChanged=!0;stopSliderCarouselTriggerChanged=!0;sliderCarousel.owlCarousel().trigger('to.owl.carousel',[$(this).index(),slideSpeed]);namesCarousel.owlCarousel().trigger('to.owl.carousel',[$(this).index(),slideSpeed])});sliderCarousel.on('changed.owl.carousel',function(event){setTimeout(()=>{updateActiveItems(changeSource==='drag');changeSource=!1},slideSpeed);if(stopSliderCarouselTriggerChanged){return} 18let direction;if(event.relatedTarget?.state?.direction){direction=event.relatedTarget.state.direction}else{direction=forwardDirectionCarousel?'right':'left'} 19if(direction!=='right'&&event.page.index===0){namesCarousel.owlCarousel().trigger('next.owl.carousel',[slideSpeed])}else if(direction==='right'&&((event.page.index+1)===event.page.count)){namesCarousel.owlCarousel().trigger('prev.owl.carousel',[slideSpeed])}else{namesCarousel.owlCarousel().trigger('to.owl.carousel',[event.page.index,slideSpeed])} 20event.relatedTarget.state.direction=!1});setTimeout(()=>{updateActiveItems(!1)},slideSpeed);namesCarousel.on('dragged.owl.carousel',function(event){stopNamesCarouselTriggerChanged=!1;stopSliderCarouselTriggerChanged=!0;disabledClickNamesCarousel=Math.abs(event.relatedTarget.drag.offsetX-event.relatedTarget.drag.updatedX)>=30});sliderCarousel.on('dragged.owl.carousel',function(event){stopNamesCarouselTriggerChanged=!0;stopSliderCarouselTriggerChanged=!1;changeSource='drag'});namesCarousel.on('changed.owl.carousel',function(event){if(stopNamesCarouselTriggerChanged){return} 21const direction=event.relatedTarget.state.direction;if(direction!=='right'&&event.page.index===0){sliderCarousel.owlCarousel().trigger('next.owl.carousel',[slideSpeed])}else if(direction==='right'&&((event.page.index+1)===event.page.count)){sliderCarousel.owlCarousel().trigger('prev.owl.carousel',[slideSpeed])}else{sliderCarousel.owlCarousel().trigger('to.owl.carousel',[event.page.index,slideSpeed])} 22event.relatedTarget.state.direction=!1});setTimeout(()=>{mainOwlCarouselSlider.displayNavigation(sliderElementClass)});window.addEventListener('resize',()=>{mainOwlCarouselSlider.displayNavigation(sliderElementClass)})},displayNavigation:(sliderElementClass)=>{const sliderSection=getSliderSection(sliderElementClass);const sliderCarousel=sliderSection.find('.carousel.slider-carousel');const sliderCarouselNavStyle=sliderCarousel.data('slide-navigation-style');const $dots=sliderSection.find('.carousel-custom-dots');const $owlDot=$dots.find('.owl-nav-item.owl-dot');const $names=sliderSection.find('.carousel-slider-names');const dotsWidth=$dots.width();const childrenWidth=$dots.children().toArray().reduce((sum,el)=>sum+$(el).outerWidth(!0),0);const isOverflow=childrenWidth>dotsWidth||window.innerWidth<768;const justifyContent=isOverflow?'flex-start':$dots.children('span.owl-nav-item').length<=2?'center':'space-between';if(sliderCarouselNavStyle>1){$owlDot.removeAttr('aria-hidden');$owlDot.find('span.name').each(function(){const $span=$(this);
22const $button=$('<button>',{html:$span.html(),class:$span.attr('class')});$.each(this.attributes,function(){$button.attr(this.name,this.value)});$button.attr({role:'tab',tabindex:'0'});$span.replaceWith($button)});return} 23$dots.css('justify-content',justifyContent);$dots.css('height',isOverflow?'0':'50px');$dots.attr('aria-hidden',isOverflow?'true':'false');$names.css('height',isOverflow?'auto':'0');$names.attr('aria-hidden',isOverflow?'false':'true')}} 24const galleryImagesSlider={init:(sliderElementClass)=>{const sliderSection=getSliderSection(sliderElementClass);if(!sliderSection)return;const galleryImagesSection=sliderSection.find('.gallery-images');const horizontalGalleryImagesSection=sliderSection.find('.horizontal-gallery-images');const getItemsCount=()=>galleryImagesSection.find('.owl-item').length;const getCurrentIndex=()=>galleryImagesSection.find('.owl-item.active').index();const setCurrentIndex=(index)=>horizontalGalleryImagesSection.find('.owl-item').eq(index).addClass('current');let horizontalCarousel;let horizontalStage;let horizontalStageOuter;const isHiddenHorizontalGalleryNav=()=>horizontalCarousel?(Math.ceil(horizontalStage.outerWidth())<=Math.ceil(horizontalStageOuter.outerWidth())):!1 25galleryImagesSection.on('initialized.owl.carousel',function(event){const prevButton=galleryImagesSection.find('.owl-prev');const nextButton=galleryImagesSection.find('.owl-next');const currentIndex=0;const itemsCount=galleryImagesSection.find('.owl-item').length;if(!event.namespace){return} 26galleryImagesSection.velocity({opacity:1},{duration:200});currentIndex===0?prevButton.addClass('hidden'):prevButton.removeClass('hidden');currentIndex+1>=itemsCount?nextButton.addClass('hidden'):nextButton.removeClass('hidden')}).owlCarousel({startPosition:0,touchDrag:!0,mouseDrag:!0,dots:!1,nav:!0,margin:5,navText:[`<i role="button" tabindex="0" aria-label="${L['SCROLL_LEFT']}" class="icon-arrow_left_32"></i>`,`<i role="button" tabindex="0" aria-label="${L['SCROLL_RIGHT']}" class="icon-arrow_right_32"></i>`],items:1}).on('changed.owl.carousel',function(event){const currentIndex=event.item.index;horizontalGalleryImagesSection.find('.owl-item').removeClass('current').eq(currentIndex).addClass('current');const prevHorizontalButton=horizontalGalleryImagesSection.find('.owl-prev');const prevMainButton=galleryImagesSection.find('.owl-prev');const nextHorizontalButton=horizontalGalleryImagesSection.find('.owl-next');const nextMainButton=galleryImagesSection.find('.owl-next');const itemsCount=getItemsCount();if(currentIndex===0){prevHorizontalButton.addClass('hidden');prevMainButton.addClass('hidden')}else{if(!isHiddenHorizontalGalleryNav()){prevHorizontalButton.removeClass('hidden')} 27prevMainButton.removeClass('hidden')} 28if((currentIndex+1)>=itemsCount){nextHorizontalButton.addClass('hidden');nextMainButton.addClass('hidden')}else{if(!isHiddenHorizontalGalleryNav()){nextHorizontalButton.removeClass('hidden')} 29nextMainButton.removeClass('hidden')} 30horizontalGalleryImagesSection.trigger('to.owl.carousel',[currentIndex,200,!0])}).on('keydown','.owl-prev',function(e){if(e.type==='keydown'&&(e.key==='Enter'||e.key===' ')){e.preventDefault();galleryImagesSection.trigger('to.owl.carousel',[getCurrentIndex()-1,0,!0]);if(getCurrentIndex()===0){galleryImagesSection.find('.owl-next i').focus()}}else if(e.type==='keydown'&&e.key==='Tab'&&!e.shiftKey){e.preventDefault();horizontalGalleryImagesSection.find('.owl-item.active.current button').focus()}}).on('keydown','.owl-next',function(e){if(e.type==='keydown'&&(e.key==='Enter'||e.key===' ')){e.preventDefault();galleryImagesSection.trigger('to.owl.carousel',[getCurrentIndex()+1,0,!0]);if((getItemsCount()-1)===getCurrentIndex()){galleryImagesSection.find('.owl-prev i').focus()}}else if(e.type==='keydown'&&e.key==='Tab'&&!e.shiftKey){e.preventDefault();horizontalGalleryImagesSection.find('.owl-item.active.current button').focus()}});horizontalGalleryImagesSection.on('initialized.owl.carousel refreshed.owl.carousel',function(event){if(!event.namespace){return} 31setCurrentIndex(0);horizontalCarousel=$(event.target);horizontalStage=horizontalCarousel.find('.owl-stage');horizontalStageOuter=horizontalCarousel.find('.owl-stage-outer');const prevButton=horizontalCarousel.find('.owl-prev');const nextButton=horizontalCarousel.find('.owl-next');const horizontalStageImage=horizontalStage.find('.owl-item img');prevButton.outerHeight(horizontalStageImage.outerHeight());nextButton.outerHeight(horizontalStageImage.outerHeight());if(isHiddenHorizontalGalleryNav()){prevButton.addClass('hidden');nextButton.addClass('hidden')}else{const currentIndex=getCurrentIndex();const itemsCount=getItemsCount();currentIndex===0?prevButton.addClass('hidden'):prevButton.removeClass('hidden');currentIndex+1>=itemsCount?nextButton.addClass('hidden'):nextButton.removeClass('hidden')} 32if(event.type==='initialized'){horizontalGalleryImagesSection.velocity({opacity:1},{duration:200});horizontalStage.width(horizontalStage.width()+1)}}).owlCarousel({startPosition:0,touchDrag:!0,mouseDrag:!0,dots:!1,nav:!0,navText:[`<i role="button" aria-label="${L['SCROLL_LEFT']}" class="icon-arrow_left_32"></i>`,`<i role="button" aria-label="${L['SCROLL_RIGHT']}
32" class="icon-arrow_right_32"></i>`],responsive:{0:{items:5,margin:10},470:{items:6,margin:10},555:{items:7,margin:10},768:{items:6,margin:10},1110:{items:7,margin:10}}}).on('click','.owl-item',function(e){galleryImagesSection.trigger('to.owl.carousel',[$(this).index(),200,!0])}).on('click','.owl-next',function(e){galleryImagesSection.trigger('to.owl.carousel',[getCurrentIndex()+1,200,!0])}).on('click','.owl-prev',function(e){galleryImagesSection.trigger('to.owl.carousel',[getCurrentIndex()-1,200,!0])}).on('keyup','button',function(e){if(e.key==='Tab'){galleryImagesSection.trigger('to.owl.carousel',[$(this).attr('data-start-index')-1,200,!0])}})}};!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(t){(e=t&&t.fn&&t.fn.select2&&t.fn.select2.amd?t.fn.select2.amd:e)&&e.requirejs||(e?n=e:e={},g={},m={},y={},v={},s=Object.prototype.hasOwnProperty,i=[].slice,_=/\.js$/,h=function(e,t){var n,s,i=c(e),o=i[0],t=t[1];return e=i[1],o&&(n=x(o=l(o,t))),o?e=n&&n.normalize?n.normalize(e,(s=t,function(e){return l(e,s)}
vendor: 14,061 bytes, line 32
32)):l(e,t):(o=(i=c(e=l(e,t)))[0],e=i[1],o&&(n=x(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},f={require:function(e){return w(e)},exports:function(e){var t=g[e];return void 0!==t?t:g[e]={}},module:function(e){return{id:e,uri:"",exports:g[e],config:(t=e,function(){return y&&y.config&&y.config[t]||{}})};var t}},o=function(e,t,n,s){var i,o,r,a,l,c=[],u=typeof n,d=A(s=s||e);if("undefined"==u||"function"==u){for(t=!t.length&&n.length?["require","exports","module"]:t,a=0;a<t.length;a+=1)if("require"===(o=(r=h(t[a],d)).f))c[a]=f.require(e);else if("exports"===o)c[a]=f.exports(e),l=!0;else if("module"===o)i=c[a]=f.module(e);else if(b(g,o)||b(m,o)||b(v,o))c[a]=x(o);else{if(!r.p)throw new Error(e+" missing "+o);r.p.load(r.n,w(s,!0),function(t){return function(e){g[t]=e}}(o),{}),c[a]=g[o]}u=n?n.apply(g[e],c):void 0,e&&(i&&i.exports!==p&&i.exports!==g[e]?g[e]=i.exports:u===p&&l||(g[e]=u))}else e&&(g[e]=n)},a=n=r=function(e,t,n,s,i){if("string"==typeof e)return f[e]?f[e](t):x(h(e,A(t)).f);if(!e.splice){if((y=e).deps&&r(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=p}return t=t||function(){},"function"==typeof n&&(n=s,s=i),s?o(p,e,t,n):setTimeout(function(){o(p,e,t,n)},4),r},r.config=function(e){return r(e)},a._defined=g,(u=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),b(g,e)||b(m,e)||(m[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=a,e.require=n,e.define=u),e.define("almond",function(){}),e.define("jquery",[],function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(o){var s={};function c(e){var t,n=e.prototype,s=[];for(t in n)"function"==typeof n[t]&&"constructor"!==t&&s.push(t);return s}s.Extend=function(e,t){var n,s={}.hasOwnProperty;function i(){this.constructor=e}for(n in t)s.call(t,n)&&(e[n]=t[n]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},s.Decorate=function(s,i){var e=c(i),t=c(s);function o(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=s.prototype.constructor;0<t&&(e.call(arguments,s.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}i.displayName=s.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var r=t[n];o.prototype[r]=s.prototype[r]}for(var a=0;a<e.length;a++){var l=e[a];o.prototype[l]=function(e){var t=function(){},n=(e in o.prototype&&(t=o.prototype[e]),i.prototype[e]);return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}(l)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},0===(n=null==n?[]:n).length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,s=e.length;n<s;n++)e[n].apply(this,t)},s.Observable=e,s.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},s.bind=function(e,t){return function(){e.apply(t,arguments)}},s._convertData=function(e){for(var t in e){var n=t.split("-"),s=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in s||(s[o]={}),i==n.length-1&&(s[o]=e[t]),s=s[o]}delete e[t]}}return e},s.hasScroll=function(e,t){var n=o(t),s=t.style.overflowX,i=t.style.overflowY;return(s!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===s||"scroll"===i||n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth)},s.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},s.__cache={};var n=0;return s.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(t=e.id?"select2-data-"+e.id:"select2-data-"+(++n).toString()+"-"+s.generateChars(4),e.setAttribute("data-select2-id",t)),t},s.StoreData=function(e,t,n){e=s.GetUniqueElementId(e);s.__cache[e]||(s.__cache[e]={}),s.__cache[e][t]=n},s.GetData=function(e,t){var n=s.GetUniqueElementId(e);return t?s.__cache[n]&&null!=s.__cache[n][t]?s.__cache[n][t]:o(e).data(t):s.__cache[n]},s.RemoveData=function(e){var t=s.GetUniqueElementId(e);null!=s.__cache[t]&&delete s.__cache[t],e.removeAttribute("data-select2-id")},s.copyNonInternalCssClasses=function(e,t){var n=(n=e.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0===e.indexOf("select2-")}),t=(t=t.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0!==e.indexOf("select2-")}),n=n.concat(t);e.setAttribute("class",n.join(" "))},s}),e.define("select2/results",["jquery","./utils"],function(u,d){function s(e,t,n){this.$element=e,this.data=n,this.options=t,s.__super__.constructor.call(this)}return d.Extend(s,d.Observable),s.prototype.render=function(){var e=u('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},s.prototype.clear=function(){this.$results.empty()},s.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup"),n=(this.clear(),this.hideLoading(),u('<li role="alert" aria-live="assertive" class="select2-results__option"></li>')),s=this.options.get("translations").get(e.message);n.append(t(s(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},s.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},s.prototype.append=function(e){this.hideLoading();var t=[];if(null==e.results||0===e.results.length)0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"});else{e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var s=e.results[n],s=this.option(s);t.push(s)}this.$results.append(t)}},s.prototype.position=function(e,t){t.find(".select2-results").append(e)},s.prototype.sort=function(e){return this.options.get("sorter")(e)},s.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");(0<t.length?t:e).first().trigger("mouseenter"),this.ensureHighlightVisible()},s.prototype.setClasses=function(){var t=this;this.data.current(function(e){var s=e.map(function(e){return e.id.toString()});t.$results.find(".select2-results__option--selectable").each(function(){var e=u(this),t=d.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<s.indexOf(n)?(this.classList.add("select2-results__option--selected"),e.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),e.attr("aria-selected","false"))})})},s.prototype.showLoading=function(e){this.hideLoading();e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},e=this.option(e);e.className+=" loading-results",this.$results.prepend(e)},s.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},s.prototype.option=function(e){var t,n=document.createElement("li"),s=(n.classList.add("select2-results__option"),n.classList.add("select2-results__option--selectable"),{role:"option"}),i=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(t in(null!=e.element&&i.call(e.element,":disabled")||null==e.element&&e.disabled)&&(s["aria-disabled"]="true",n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--disabled")),null==e.id&&n.classList.remove("select2-results__option--selectable"),null!=e._resultId&&(n.id=e._resultId),e.title&&(n.title=e.title),e.children&&(s.role="group",s["aria-label"]=e.text,n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--group")),s)n.setAttribute(t,s[t]);if(e.children){for(var i=u(n),o=document.createElement("strong"),r=(o.className="select2-results__group",this.template(e,o),[]),a=0;a<e.children.length;a++){var l=e.children[a],l=this.option(l);r.push(l)}var c=u("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});c.append(r),i.append(o),i.append(c)}else this.template(e,n);return d.StoreData(n,"data",e),n},s.prototype.bind=function(t,e){var i=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){i.clear(),i.append(e.data),t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("results:append",function(e){i.append(e.data),t.isOpen()&&i.setClasses()}),t.on("query",function(e){i.hideMessages(),i.showLoading(e)}),t.on("select",function(){t.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect"))&&i.highlightFirstItem()}),t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect"))&&i.highlightFirstItem()}),t.on("open",function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()}),t.on("close",function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e,t=i.getHighlightedResults();0!==t.length&&(e=d.GetData(t[0],"data"),t.hasClass("select2-results__option--selected")?i.trigger("close",{}):i.trigger("select",{data:e}))}),t.on("results:previous",function(){var e,t=i.getHighlightedResults(),n=i.$results.find(".select2-results__option--selectable"),s=n.index(t);s<=0||(s=s-1,0===t.length&&(s=0),(t=n.eq(s)).trigger("mouseenter"),n=i.$results.offset().top,t=t.offset().top,e=i.$results.scrollTop()+(t-n),0===s?i.$results.scrollTop(0):t-n<0&&i.$results.scrollTop(e))}),t.on("results:next",function(){var e,t,n=i.getHighlightedResults(),s=i.$results.find(".select2-results__option--selectable"),n=s.index(n)+1;n>=s.length||((s=s.eq(n)).trigger("mouseenter"),e=i.$results.offset().top+i.$results.outerHeight(!1),s=s.offset().top+s.outerHeight(!1),t=i.$results.scrollTop()+s-e,0===n?i.$results.scrollTop(0):e<s&&i.$results.scrollTop(t))}),t.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),t.on("results:message",function(e){i.displayMessage(e)}),u.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,t=0<e.deltaY&&t-e.deltaY<=0,n=e.deltaY<0&&n<=i.$results.height();t?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):n&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(e){var t=u(this),n=d.GetData(this,"data");t.hasClass("select2-results__option--selected")?i.options.get("multiple")?i.trigger("unselect",{originalEvent:e,data:n}):i.trigger("close",{originalEvent:e,data:n}):i.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(e){var t=d.GetData(this,"data");i.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),i.trigger("results:focus",{data:t,element:u(this)})})},s.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},s.prototype.destroy=function(){this.$results.remove()},s.prototype.ensureHighlightVisible=function(){var e,t,n,s,i=this.getHighlightedResults();0!==i.length&&(e=this.$results.find(".select2-results__option--selectable").index(i),t=this.$results.offset().top,s=i.offset().top,n=this.$results.scrollTop()+(s-t),s=s-t,n-=2*i.outerHeight(!1),e<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(n))},s.prototype.template=function(e,t){var n=this.options.get("templateResult"),s=this.options.get("escapeMarkup"),n=n(e,t);null==n?t.style.display="none":"string"==typeof n?t.innerHTML=s(n):u(t).append(n)},s}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,s,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return s.Extend(o,s.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=s.GetData(this.$element[0],"old-tabindex")?this._tabindex=s.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,s=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",s),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","fal
32se"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&s.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,s){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this,s=(i.__super__.bind.apply(this,arguments),t.id+"-container");this.$selection.find(".select2-selection__rendered").attr("id",s).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",s),this.$selection.attr("aria-controls",s),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){var t,n;0===e.length?this.clear():(e=e[0],t=this.$selection.find(".select2-selection__rendered"),n=this.display(e,t),t.empty().append(n),(n=e.title||e.text)?t.attr("title",n):t.removeAttr("title"))},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,c){function o(e,t){o.__super__.constructor.apply(this,arguments)}return c.Extend(o,e),o.prototype.render=function(){var e=o.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},o.prototype.bind=function(e,t){var n=this,s=(o.__super__.bind.apply(this,arguments),e.id+"-container");this.$selection.find(".select2-selection__rendered").attr("id",s),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){var t;n.isDisabled()||(t=i(this).parent(),t=c.GetData(t[0],"data"),n.trigger("unselect",{originalEvent:e,data:t}))}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){n.isDisabled()||e.stopPropagation()})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">×</span></button><span class="select2-selection__choice__display"></span></li>')},o.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",s=0;s<e.length;s++){var i=e[s],o=this.selectionContainer(),r=this.display(i,o),a=n+c.generateChars(4)+"-",r=(i.id?a+=i.id:a+=c.generateChars(4),o.find(".select2-selection__choice__display").append(r).attr("id",a),i.title||i.text),r=(r&&o.attr("title",r),this.options.get("translations").get("removeItem")),l=o.find(".select2-selection__choice__remove");l.attr("title",r()),l.attr("aria-label",r()),l.attr("aria-describedby",a),c.StoreData(o[0],"data",i),t.push(o)}this.$selection.find(".select2-selection__rendered").append(t)}},o}),e.define("select2/selection/placeholder",[],function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer(),t=(n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice"),t.title||t.text||n.text());return this.$selection.find(".select2-selection__rendered").attr("title",t),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},e}
vendor: 9,981 bytes, line 32
32),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,s,a){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){s._handleClear(e)}),t.on("keypress",function(e){s._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var s=a.GetData(n[0],"data"),i=this.$element.val(),o=(this.$element.val(this.placeholder.id),{data:s});if(this.trigger("clear",o),o.prevented)this.$element.val(i);else{for(var r=0;r<s.length;r++)if(o={data:s[r]},this.trigger("unselect",o),o.prevented)return void this.$element.val(i);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=s.DELETE&&t.which!=s.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){var n,s;e.call(this,t),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),0<this.$selection.find(".select2-selection__placeholder").length||0===t.length||(e=this.$selection.find(".select2-selection__rendered").attr("id"),n=this.options.get("translations").get("removeAllItems"),(s=i('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">×</span></button>')).attr("title",n()),s.attr("aria-label",n()),s.attr("aria-describedby",e),a.StoreData(s[0],"data",t),this.$selection.prepend(s),this.$selection[0].classList.add("select2-selection--clearable"))},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(s,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=this.options.get("translations").get("search"),n=s('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>'),n=(this.$searchContainer=n,this.$search=n.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",t()),e.call(this));return this._transferTabIndex(),n.append(this.$searchContainer),n},e.prototype.bind=function(e,t,n){var s=this,i=t.id+"-results",o=t.id+"-container",e=(e.call(this,t,n),s.$search.attr("aria-describedby",o),t.on("open",function(){s.$search.attr("aria-controls",i),s.$search.trigger("focus")}),t.on("close",function(){s.$search.val(""),s.resizeSearch(),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")}),t.on("enable",function(){s.$search.prop("disabled",!1),s._transferTabIndex()}),t.on("disable",function(){s.$search.prop("disabled",!0)}),t.on("focus",function(e){s.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){s.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){s._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){var t;e.stopPropagation(),s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===s.$search.val()&&0<(t=s.$selection.find(".select2-selection__choice").last()).length&&(t=a.GetData(t[0],"data"),s.searchRemoveChoice(t),e.preventDefault())}),this.$selection.on("click",".select2-search--inline",function(e){s.$search.val()&&e.stopPropagation()}),document.documentMode),r=e&&e<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){r?s.$selection.off("input.search input.searchcheck"):s.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){var t;r&&"input"===e.type?s.$selection.off("input.search input.searchcheck"):(t=e.which)!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&s.handleSearch(e)})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},e}),e.define("select2/selection/selectionCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var e=e.call(this),t=this.options.get("selectionCssClass")||"";return-1!==t.indexOf(":all:")&&(t=t.replace(":all:",""),n.copyNonInternalCssClasses(e[0],this.$element[0])),e.addClass(t),e},e}),e.define("select2/selection/eventRelay",["jquery"],function(r){function e(){}return e.prototype.bind=function(e,t,n){var s=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){var n;-1!==i.indexOf(e)&&(n=r.Event("select2:"+e,{params:t=t||{}}),s.$element.trigger(n),-1!==o.indexOf(e))&&(t.prevented=n.isDefaultPrevented())})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function s(e){this.dict=e||{}}return s.prototype.all=function(){return this.dict},s.prototype.get=function(e){return this.dict[e]},s.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},s._cache={},s.loadPath=function(e){var t;return e in s._cache||(t=n(e),s._cache[e]=t),new s(s._cache[e])},s}),e.define("select2/diacritics",[],function(){return{"â¶":"A","A":"A","Ã":"A","Ã":"A","Ã":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ä":"A","Ä":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ç ":"A","Ã":"A","Ç":"A","Ả":"A","Ã
":"A","Ǻ":"A","Ç":"A","È":"A","È":"A","Ạ":"A","Ậ":"A","Ặ":"A","á¸":"A","Ä":"A","Ⱥ":"A","Ɐ":"A","ê²":"AA","Ã":"AE","Ǽ":"AE","Ç¢":"AE","ê´":"AO","ê¶":"AU","ê¸":"AV","êº":"AV","ê¼":"AY","â·":"B","ï¼¢":"B","á¸":"B","á¸":"B","á¸":"B","É":"B","Æ":"B","Æ":"B","â¸":"C","ï¼£":"C","Ä":"C","Ä":"C","Ä":"C","Ä":"C","Ã":"C","á¸":"C","Æ":"C","È»":"C","ê¾":"C","â¹":"D","D":"D","á¸":"D","Ä":"D","á¸":"D","á¸":"D","á¸":"D","á¸":"D","Ä":"D","Æ":"D","Æ":"D","Æ":"D","ê¹":"D","DZ":"DZ","Ç":"DZ","Dz":"Dz","Ç
":"Dz","âº":"E","ï¼¥":"E","Ã":"E","Ã":"E","Ã":"E","á»":"E","Ế":"E","á»":"E","á»":"E","Ẽ":"E","Ä":"E","á¸":"E","á¸":"E","Ä":"E","Ä":"E","Ã":"E","Ẻ":"E","Ä":"E","È":"E","È":"E","Ẹ":"E","á»":"E","Ȩ":"E","á¸":"E","Ä":"E","á¸":"E","á¸":"E","Æ":"E","Æ":"E","â»":"F","F":"F","á¸":"F","Æ":"F","ê»":"F","â¼":"G","ï¼§":"G","Ç´":"G","Ä":"G","Ḡ":"G","Ä":"G","Ä ":"G","Ǧ":"G","Ä¢":"G","Ǥ":"G","Æ":"G","ê ":"G","ê½":"G","ê¾":"G","â½":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","È":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","â±§":"H","â±µ":"H","ê":"H","â¾":"I","I":"I","Ã":"I","Ã":"I","Ã":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ã":"I","Ḯ":"I","á»":"I","Ç":"I","È":"I","È":"I","á»":"I","Ä®":"I","Ḭ":"I","Æ":"I","â¿":"J","J":"J","Ä´":"J","É":"J","â":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Æ":"K","Ⱪ":"K","ê":"K","ê":"K","ê":"K","ê¢":"K","â":"L","L":"L","Ä¿":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ä»":"L","Ḽ":"L","Ḻ":"L","Å":"L","Ƚ":"L","â±¢":"L","â± ":"L","ê":"L","ê":"L","ê":"L","Ç":"LJ","Ç":"Lj","â":"M","ï¼":"M","Ḿ":"M","á¹":"M","á¹":"M","â±®":"M","Æ":"M","â":"N","ï¼®":"N","Ǹ":"N","Å":"N","Ã":"N","á¹":"N","Å":"N","á¹":"N","Å
":"N","á¹":"N","á¹":"N","È ":"N","Æ":"N","ê":"N","ê¤":"N","Ç":"NJ","Ç":"Nj","â":"O","O":"O","Ã":"O","Ã":"O","Ã":"O","á»":"O","á»":"O","á»":"O","á»":"O","Ã":"O","á¹":"O","Ȭ":"O","á¹":"O","Å":"O","á¹":"O","á¹":"O","Å":"O","È®":"O","Ȱ":"O","Ã":"O","Ȫ":"O","á»":"O","Å":"O","Ç":"O","È":"O","È":"O","Æ ":"O","á»":"O","á»":"O","á» ":"O","á»":"O","Ợ":"O","á»":"O","á»":"O","Ǫ":"O","Ǭ":"O","Ã":"O","Ǿ":"O","Æ":"O","Æ":"O","ê":"O","ê":"O","Å":"OE","Æ¢":"OI","ê":"OO","È¢":"OU","â
":"P","ï¼°":"P","á¹":"P","á¹":"P","Ƥ":"P","â±£":"P","ê":"P","ê":"P","ê":"P","â":"Q","ï¼±":"Q","ê":"Q","ê":"Q","É":"Q","â":"R","ï¼²":"R","Å":"R","á¹":"R","Å":"R","È":"R","È":"R","á¹":"R","á¹":"R","Å":"R","á¹":"R","É":"R","Ɽ":"R","ê":"R","ê¦":"R","ê":"R","â":"S","ï¼³":"S","áº":"S","Å":"S","Ṥ":"S","Å":"S","á¹ ":"S","Å ":"S","Ṧ":"S","á¹¢":"S","Ṩ":"S","È":"S","Å":"S","â±¾":"S","ê¨":"S","ê":"S","â":"T","ï¼´":"T","Ṫ":"T","Ť":"T","Ṭ":"T","È":"T","Å¢":"T","á¹°":"T","á¹®":"T","Ŧ":"T","Ƭ":"T","Æ®":"T","Ⱦ":"T","ê":"T","ê¨":"TZ","â":"U","ï¼µ":"U","Ã":"U","Ã":"U","Ã":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ã":"U","Ç":"U","Ç":"U","Ç":"U","Ç":"U","Ủ":"U","Å®":"U","Ű":"U","Ç":"U","È":"U","È":"U","Ư":"U","Ừ":"U","Ứ":"U","á»®":"U","Ử":"U","á»°":"U","Ụ":"U","á¹²":"U","Ų":"U","á¹¶":"U","á¹´":"U","É":"U","â":"V","ï¼¶":"V","á¹¼":"V","á¹¾":"V","Ʋ":"
32V","ê":"V","É
":"V","ê ":"VY","â":"W","ï¼·":"W","áº":"W","áº":"W","Å´":"W","áº":"W","áº":"W","áº":"W","â±²":"W","â":"X","X":"X","áº":"X","áº":"X","â":"Y","ï¼¹":"Y","Ỳ":"Y","Ã":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","áº":"Y","Ÿ":"Y","á»¶":"Y","á»´":"Y","Ƴ":"Y","É":"Y","Ỿ":"Y","â":"Z","Z":"Z","Ź":"Z","áº":"Z","Å»":"Z","Ž":"Z","áº":"Z","áº":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","ê¢":"Z","â":"a","ï½":"a","áº":"a","à ":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","Ä":"a","Ä":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","Ç¡":"a","ä":"a","Ç":"a","ả":"a","Ã¥":"a","Ç»":"a","Ç":"a","È":"a","È":"a","ạ":"a","áº":"a","ặ":"a","á¸":"a","Ä
":"a","â±¥":"a","É":"a","ê³":"aa","æ":"ae","ǽ":"ae","Ç£":"ae","êµ":"ao","ê·":"au","ê¹":"av","ê»":"av","ê½":"ay","â":"b","ï½":"b","á¸":"b","á¸
":"b","á¸":"b","Æ":"b","Æ":"b","É":"b","â":"c","ï½":"c","Ä":"c","Ä":"c","Ä":"c","Ä":"c","ç":"c","á¸":"c","Æ":"c","ȼ":"c","ê¿":"c","â":"c","â":"d","ï½":"d","á¸":"d","Ä":"d","á¸":"d","á¸":"d","á¸":"d","á¸":"d","Ä":"d","Æ":"d","É":"d","É":"d","êº":"d","dz":"dz","Ç":"dz","â":"e","ï½
":"e","è":"e","é":"e","ê":"e","á»":"e","ế":"e","á»
":"e","á»":"e","ẽ":"e","Ä":"e","á¸":"e","á¸":"e","Ä":"e","Ä":"e","ë":"e","ẻ":"e","Ä":"e","È
":"e","È":"e","ẹ":"e","á»":"e","È©":"e","á¸":"e","Ä":"e","á¸":"e","á¸":"e","É":"e","É":"e","Ç":"e","â":"f","ï½":"f","á¸":"f","Æ":"f","ê¼":"f","â":"g","ï½":"g","ǵ":"g","Ä":"g","ḡ":"g","Ä":"g","Ä¡":"g","ǧ":"g","Ä£":"g","Ç¥":"g","É ":"g","ê¡":"g","áµ¹":"g","ê¿":"g","â":"h","ï½":"h","Ä¥":"h","ḣ":"h","ḧ":"h","È":"h","ḥ":"h","ḩ":"h","ḫ":"h","áº":"h","ħ":"h","ⱨ":"h","â±¶":"h","É¥":"h","Æ":"hv","â":"i","ï½":"i","ì":"i","Ã":"i","î":"i","Ä©":"i","Ä«":"i","Ä":"i","ï":"i","ḯ":"i","á»":"i","Ç":"i","È":"i","È":"i","á»":"i","į":"i","á¸":"i","ɨ":"i","ı":"i","â":"j","ï½":"j","ĵ":"j","ǰ":"j","É":"j","â":"k","ï½":"k","ḱ":"k","Ç©":"k","ḳ":"k","Ä·":"k","ḵ":"k","Æ":"k","ⱪ":"k","ê":"k","ê":"k","ê
":"k","ê£":"k","â":"l","ï½":"l","Å":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","Å¿":"l","Å":"l","Æ":"l","É«":"l","ⱡ":"l","ê":"l","ê":"l","ê":"l","Ç":"lj","â":"m","ï½":"m","ḿ":"m","á¹":"m","á¹":"m","ɱ":"m","ɯ":"m","â":"n","ï½":"n","ǹ":"n","Å":"n","ñ":"n","á¹
":"n","Å":"n","á¹":"n","Å":"n","á¹":"n","á¹":"n","Æ":"n","ɲ":"n","Å":"n","ê":"n","ê¥":"n","Ç":"nj","â":"o","ï½":"o","ò":"o","ó":"o","ô":"o","á»":"o","á»":"o","á»":"o","á»":"o","õ":"o","á¹":"o","È":"o","á¹":"o","Å":"o","á¹":"o","á¹":"o","Å":"o","ȯ":"o","ȱ":"o","ö":"o","È«":"o","á»":"o","Å":"o","Ç":"o","È":"o","È":"o","Æ¡":"o","á»":"o","á»":"o","ỡ":"o","á»":"o","ợ":"o","á»":"o","á»":"o","Ç«":"o","Ç":"o","ø":"o","Ç¿":"o","É":"o","ê":"o","ê":"o","ɵ":"o","Å":"oe","Æ£":"oi","È£":"ou","ê":"oo","â":"p","ï½":"p","á¹":"p","á¹":"p","Æ¥":"p","áµ½":"p","ê":"p","ê":"p","ê":"p","â ":"q","ï½":"q","É":"q","ê":"q","ê":"q","â¡":"r","ï½":"r","Å":"r","á¹":"r","Å":"r","È":"r","È":"r","á¹":"r","á¹":"r","Å":"r","á¹":"r","É":"r","ɽ":"r","ê":"r","ê§":"r","ê":"r","â¢":"s","ï½":"s","Ã":"s","Å":"s","á¹¥":"s","Å":"s","ṡ":"s","Å¡":"s","á¹§":"s","á¹£":"s","ṩ":"s","È":"s","Å":"s","È¿":"s","ê©":"s","ê
":"s","áº":"s","â£":"t","ï½":"t","ṫ":"t","áº":"t","Å¥":"t","á¹":"t","È":"t","Å£":"t","á¹±":"t","ṯ":"t","ŧ":"t","Æ":"t","Ê":"t","ⱦ":"t","ê":"t","ê©":"tz","â¤":"u","ï½":"u","ù":"u","ú":"u","û":"u","Å©":"u","á¹¹":"u","Å«":"u","á¹»":"u","Å":"u","ü":"u","Ç":"u","Ç":"u","Ç":"u","Ç":"u","á»§":"u","ů":"u","ű":"u","Ç":"u","È":"u","È":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","á»":"u","á»±":"u","ụ":"u","á¹³":"u","ų":"u","á¹·":"u","á¹µ":"u","Ê":"u","â¥":"v","ï½":"v","á¹½":"v","ṿ":"v","Ê":"v","ê":"v","Ê":"v","ê¡":"vy","â¦":"w","ï½":"w","áº":"w","áº":"w","ŵ":"w","áº":"w","áº
":"w","áº":"w","áº":"w","â±³":"w","â§":"x","ï½":"x","áº":"x","áº":"x","â¨":"y","ï½":"y","ỳ":"y","ý":"y","Å·":"y","ỹ":"y","ȳ":"y","áº":"y","ÿ":"y","á»·":"y","áº":"y","ỵ":"y","Æ´":"y","É":"y","ỿ":"y","â©":"z","ï½":"z","ź":"z","áº":"z","ż":"z","ž":"z","áº":"z","áº":"z","ƶ":"z","È¥":"z","É":"z","ⱬ":"z","ê£":"z","Î":"Î","Î":"Î","Î":"Î","Î":"Î","Ϊ":"Î","Î":"Î","Î":"Î¥","Ϋ":"Î¥","Î":"Ω","ά":"α","Î":"ε","ή":"η","ί":"ι","Ï":"ι","Î":"ι","Ï":"ο","Ï":"Ï
","Ï":"Ï
","ΰ":"Ï
","Ï":"Ï","Ï":"Ï","â":"'"}}),e.define("select2/data/base",["../utils"],function(n){function s(e,t){s.__super__.constructor.call(this)}return n.Extend(s,n.Observable),s.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},s.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},s.prototype.bind=function(e,t){},s.prototype.destroy=function(){},s.prototype.generateResultId=function(e,t){e=e.id+"-result-";return e+=n.generateChars(4),null!=t.id?e+="-"+t.id.toString():e+="-"+n.generateChars(4),e},s}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(l(e))}))},n.prototype.select=function(i){var e,o=this;i.selected=!0,null!=i.element&&"option"===i.element.tagName.toLowerCase()?(i.element.selected=!0,this.$element.trigger("input").trigger("change")):this.$element.prop("multiple")?this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var s=i[n].id;-1===t.indexOf(s)&&t.push(s)}o.$element.val(t),o.$element.trigger("input").trigger("change")}):(e=i.id,this.$element.val(e),this.$element.trigger("input").trigger("change"))},n.prototype.unselect=function(i){var o=this;this.$element.prop("multiple")&&(i.selected=!1,null!=i.element&&"option"===i.element.tagName.toLowerCase()?(i.element.selected=!1,this.$element.trigger("input").trigger("change")):this.current(function(e){for(var t=[],n=0;n<e.length;n++){var s=e[n].id;s!==i.id&&-1===t.indexOf(s)&&t.push(s)}o.$element.val(t),o.$element.trigger("input").trigger("change")}))},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(t,e){var n=[],s=this;this.$element.children().each(function(){var e;"option"!==this.tagName.toLowerCase()&&"optgroup"!==this.tagName.toLowerCase()||(e=l(this),e=s.item(e),null!==(e=s.matches(t,e))&&n.push(e))}),e({results:n})},n.prototype.addOptions=function(e){this.$element.append(e)},n.prototype.option=function(e){e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var t,e=this._normalizeItem(e);return e.element=t,a.StoreData(t,"data",e),l(t)},n.prototype.item=function(e){var t={};if(null==(t=a.GetData(e[0],"data"))){var n=e[0];if("option"===n.tagName.toLowerCase())t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===n.tagName.toLowerCase()){for(var t={text:e.prop("label"),children:[],title:e.prop("title")},s=e.children("option"),i=[],o=0;o<s.length;o++){var r=l(s[o]),r=this.item(r);i.push(r)}t.children=i}(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t)}return t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,t,c){function s(e,t){this._dataToConvert=t.get("data")||[],s.__super__.constructor.call(this,e,t)}return t.Extend(s,e),s.prototype.bind=function(e,t){s.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},s.prototype.select=function(n){var e;0===this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()}).length&&(e=this.option(n),this.addOptions(e)),s.__super__.select.call(this,n)},s.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),s=n.map(function(){return t.item(c(this)).id}).get(),i=[];for(var o=0;o<e.length;o++){var r,a,l=this._normalizeItem(e[o]);0<=s.indexOf(l.id)?(r=n.filter(function(e){return function(){return c(this).val()==e.id}}(l)),a=this.item(r),a=c.extend(!0,{},l,a),a=this.option(a),r.replaceWith(a)):(r=this.option(l),l.children&&(a=this.convertToOptions(l.children),r.append(a)),i.push(r))}return i},s}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){return o.extend({},{data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){e=o.ajax(e);return e.then(t),e.fail(n),e}},e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(t,n){var s=this,i=(null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null),o.extend({type:"GET"},this.ajaxOptions));function e(){var e=i.transport(i,function(e){e=s.processResults(e,t);s.options.get("debug")&&window.console&&console.error&&(e&&e.results&&Array.isArray(e.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),n(e)},function(){e&&"status"in e&&(0===e.status||"0"===e.status)||s.trigger("results:message",{message:"errorLoading"})});s._request=e}"function"==typeof i.url&&(i.url=i.url.call(this.$element,t)),"function"==typeof i.data&&(i.data=i.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(t){function e(e,t,n){var s=n.get("tags"),i=n.get("createTag"),i=(void 0!==i&&(this.createTag=i),n.get("insertTag"));if(void 0!==i&&(this.insertTag=i),e.call(this,t,n),Array.isArray(s))for(var o=0;o<s.length;o++){var r=s[o],r=this._normalizeItem(r),r=this.option(r);this.$element.append(r)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null==c.term||null!=c.page?e.call(this,c,u):e.call(this,c,function e(t,n){for(var s=t.results,i=0;i<s.length;i++){var o=s[i],r=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||r)return!n&&(t.data=s,void u(t))}if(n)return!0;var a,l=d.createTag(c);null!=l&&((a=d.option(l)).attr("data-select2-tag","true"),d.addOptions([a]),d.insertTag(s,l)),t.results=s,u(t)})},e.prototype.createTag=function(e,t){return null==t.term||""===(t=t.term.trim())?null:{
vendor: 8,518 bytes, line 32
32id:t,text:t}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||t(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(c){function e(e,t,n){var s=n.get("tokenizer");void 0!==s&&(this.tokenizer=s),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var s=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t=s._normalizeItem(e);s.$element.find("option").filter(function(){return c(this).val()===t.id}).length||((e=s.option(t)).attr("data-select2-tag",!0),s._removeOldTags(),s.addOptions([e])),s.trigger("select",{data:t})});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.trigger("focus")),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,s){for(var i=n.get("tokenSeparators")||[],o=t.term,r=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};r<o.length;){var l=o[r];-1===i.indexOf(l)?r++:(l=o.substr(0,r),null==(l=a(c.extend({},t,{term:l})))?r++:(s(l),o=o.substr(r+1)||"",r=0))}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("select",function(){s._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var s=this;this._checkIfMaximumSelected(function(){e.call(s,t,n)})},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current(function(e){e=null!=e?e.length:0;0<n.maximumSelectionLength&&e>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery"],function(o){function e(){}return e.prototype.render=function(e){var e=e.call(this),t=this.options.get("translations").get("search"),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",t()),e.prepend(n),e},e.prototype.bind=function(e,t,n){var s=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){s.handleSearch(e)}),t.on("open",function(){s.$search.attr("tabindex",0),s.$search.attr("aria-controls",i),s.$search.trigger("focus"),window.setTimeout(function(){s.$search.trigger("focus")},0)}),t.on("close",function(){s.$search.attr("tabindex",-1),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.val(""),s.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||s.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(s.showSearch(e)?s.$searchContainer[0].classList.remove("select2-search--hide"):s.$searchContainer[0].classList.add("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")})},e.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},e.prototype.showSearch=function(e,t){return!0},e}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,s){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,s)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),s=t.length-1;0<=s;s--){var i=t[s];this.placeholder.id===i.id&&n.splice(s,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,s){this.lastParams={},e.call(this,t,n,s),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("query",function(e){s.lastParams=e,s.loading=!0}),t.on("query:append",function(e){s.lastParams=e,s.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&(e=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=e+50)&&this.loadMore()},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(u,r){function e(e,t,n){this.$dropdownParent=u(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("open",function(){s._showDropdown(),s._attachPositioningHandler(t),s._bindContainerResultHandlers(t)}),t.on("close",function(){s._hideDropdown(),s._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=u("<span></span>"),e=e.call(this);return t.append(e),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){var n;this._containerResultsHandlersBound||(n=this,t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0)},e.prototype._attachPositioningHandler=function(e,t){var n=this,s="scroll.
32select2."+t.id,i="resize.select2."+t.id,t="orientationchange.select2."+t.id,o=this.$container.parents().filter(r.hasScroll);o.each(function(){r.StoreData(this,"select2-scroll-position",{x:u(this).scrollLeft(),y:u(this).scrollTop()})}),o.on(s,function(e){var t=r.GetData(this,"select2-scroll-position");u(this).scrollTop(t.y)}),u(window).on(s+" "+i+" "+t,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,s="resize.select2."+t.id,t="orientationchange.select2."+t.id;this.$container.parents().filter(r.hasScroll).off(n),u(window).off(n+" "+s+" "+t)},e.prototype._positionDropdown=function(){var e=u(window),t=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),s=null,i=this.$container.offset(),o=(i.bottom=i.top+this.$container.outerHeight(!1),{height:this.$container.outerHeight(!1)});o.top=i.top,o.bottom=i.top+o.height;var r=this.$dropdown.outerHeight(!1),a=e.scrollTop(),e=e.scrollTop()+e.height(),a=a<i.top-r,e=e>i.bottom+r,i={left:i.left,top:o.bottom},l=this.$dropdownParent,c=("static"===l.css("position")&&(l=l.offsetParent()),{top:0,left:0});(u.contains(document.body,l[0])||l[0].isConnected)&&(c=l.offset()),i.top-=c.top,i.left-=c.left,t||n||(s="below"),e||!a||t?!a&&e&&t&&(s="below"):s="below",("above"==s||t&&"below"!==s)&&(i.top=o.top-c.top-r),null!=s&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+s),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+s)),this.$dropdownContainer.css(i)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,s){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,s)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,s=0;s<t.length;s++){var i=t[s];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(n){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("close",function(e){s._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){t=t.originalSelect2Event;if("select"===t._type||"unselect"===t._type)return}var t=this.getHighlightedResults();t.length<1||null!=(t=n.GetData(t[0],"data")).element&&t.element.selected||null==t.element&&t.selected||this.trigger("select",{data:t})},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("select",function(e){s._selectTriggered(e)}),t.on("unselect",function(e){s._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/dropdown/dropdownCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var e=e.call(this),t=this.options.get("dropdownCssClass")||"";return-1!==t.indexOf(":all:")&&(t=t.replace(":all:",""),n.copyNonInternalCssClasses(e[0],this.$element[0])),e.addClass(t),e},e}),e.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(s){function e(){}return e.prototype.highlightFirstItem=function(e){var t=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(0<t.length){var t=t.first(),n=s.GetData(t[0],"data").element;if(n&&n.getAttribute&&"true"===n.getAttribute("data-select2-tag"))return void t.trigger("mouseenter")}e.call(this)},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var e=e.input.length-e.maximum,t="Please delete "+e+" character";return 1!=e&&(t+="s"),t},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more resultsâ¦"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searchingâ¦"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}}),e.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function(l,o,r,a,c,u,d,p,h,f,g,t,m,y,v,_,b,$,w,x,A,D,S,E,O,C,L,T,q,I,e){function n(){this.reset()}return n.prototype.apply=function(e){null==(e=l.extend(!0,{},this.defaults,e)).dataAdapter&&(null!=e.ajax?e.dataAdapter=v:null!=e.data?e.dataAdapter=y:e.dataAdapter=m,0<e.minimumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,$)),0<e.maximumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,w)),0<e.maximumSelectionLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,x)),e.tags&&(e.dataAdapter=f.Decorate(e.dataAdapter,_)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=f.Decorate(e.dataAdapter,b))),null==e.resultsAdapter&&(e.resultsAdapter=o,null!=e.ajax&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,E)),null!=e.placeholder&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,S)),e.selectOnClose&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,L)),e.tags)&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,I)),null==e.dropdownAdapter&&(e.multiple?e.dropdownAdapter=A:(t=f.Decorate(A,D),e.dropdownAdapter=t),0!==e.minimumResultsForSearch&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,C)),e.closeOnSelect&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,T)),null!=e.dropdownCssClass&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,q)),e.dropdownAdapter=f.Decorate(e.dropdownAdapter,O)),null==e.selectionAdapter&&(e.multiple?e.selectionAdapter=a:e.selectionAdapter=r,
vendor: 11,135 bytes, line 32
32null!=e.placeholder&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,c)),e.allowClear&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,u)),e.multiple&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,d)),null!=e.selectionCssClass&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,p)),e.selectionAdapter=f.Decorate(e.selectionAdapter,h)),e.language=this._resolveLanguage(e.language),e.language.push("en");for(var t,n=[],s=0;s<e.language.length;s++){var i=e.language[s];-1===n.indexOf(i)&&n.push(i)}return e.language=n,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:f.escapeMarkup,language:{},matcher:function e(t,n){if(null==t.term||""===t.term.trim())return n;if(n.children&&0<n.children.length){for(var s=l.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&s.children.splice(i,1);return 0<s.children.length?s:e(t,s)}var o=a(n.text).toUpperCase(),r=a(t.term).toUpperCase();return-1<o.indexOf(r)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,s=this.defaults.language,i=t.prop("lang"),t=t.closest("[lang]").prop("lang"),i=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(s),this._resolveLanguage(t));return e.language=i,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(l.isEmptyObject(e))return[];if(l.isPlainObject(e))return[e];for(var t,n=Array.isArray(e)?e:[e],s=[],i=0;i<n.length;i++)s.push(n[i]),"string"==typeof n[i]&&0<n[i].indexOf("-")&&(t=n[i].split("-")[0],s.push(t));return s},n.prototype._processTranslations=function(e,t){for(var n=new g,s=0;s<e.length;s++){var i=new g,o=e[s];if("string"==typeof o)try{i=g.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,i=g.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else i=l.isPlainObject(o)?new g(o):o;n.extend(i)}return n},n.prototype.set=function(e,t){var n={},e=(n[l.camelCase(e)]=t,f._convertData(n));l.extend(!0,this.defaults,e)},new n}),e.define("select2/options",["jquery","./defaults","./utils"],function(c,n,u){function e(e,t){this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=n.applyFromElement(this.options,t)),this.options=n.apply(this.options)}return e.prototype.fromElement=function(e){var t=["select2"],n=(null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.autocomplete&&e.prop("autocomplete")&&(this.options.autocomplete=e.prop("autocomplete")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),u.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),u.StoreData(e[0],"data",u.GetData(e[0],"select2Tags")),u.StoreData(e[0],"tags",!0)),u.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",u.GetData(e[0],"ajaxUrl")),u.StoreData(e[0],"ajax-Url",u.GetData(e[0],"ajaxUrl"))),{});function s(e,t){return t.toUpperCase()}for(var i=0;i<e[0].attributes.length;i++){var o=e[0].attributes[i].name,r="data-";o.substr(0,r.length)==r&&(o=o.substring(r.length),r=u.GetData(e[0],o),n[o.replace(/-([a-z])/g,s)]=r)}c.fn.jquery&&"1."==c.fn.jquery.substr(0,2)&&e[0].dataset&&(n=c.extend(!0,{},e[0].dataset,n));var a,l=c.extend(!0,{},u.GetData(e[0]),n);for(a in l=u._convertData(l))-1<t.indexOf(a)||(c.isPlainObject(this.options[a])?c.extend(this.options[a],l[a]):this.options[a]=l[a]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(t,i,o,s){function r(e,t){null!=o.GetData(e[0],"select2")&&o.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),this.options=new i(t=t||{},e),r.__super__.constructor.call(this);var t=e.attr("tabindex")||0,t=(o.StoreData(e[0],"old-tabindex",t),e.attr("tabindex","-1"),this.options.get("dataAdapter")),t=(this.dataAdapter=new t(e,this.options),this.render()),n=(this._placeContainer(t),this.options.get("selectionAdapter")),n=(this.selection=new n(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,t),this.options.get("dropdownAdapter")),n=(this.dropdown=new n(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,t),this.options.get("resultsAdapter")),s=(this.results=new n(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown),this);this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){s.trigger("selection:update",{data:e})}),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),o.StoreData(e[0],"select2",this),e.data("select2",this)}return o.Extend(r,o.Observable),r.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+o.generateChars(2):o.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t)return null!=(s=this._resolveWidth(e,"style"))?s:this._resolveWidth(e,"element");if("element"==t)return(s=e.outerWidth(!1))<=0?"auto":s+"px";if("style"!=t)return"computedstyle"==t?window.getComputedStyle(e[0]).width:t;var s=e.attr("style");if("string"==typeof s)for(var i=s.split(";"),o=0,r=i.length;o<r;o+=1){var a=i[o].replace(/\s/g,"").match(n);if(null!==a&&1<=a.length)return a[1]}return null},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=o.bind(this._syncAttributes,this),this._syncS=o.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(e){t._syncA(),t._syncS(e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},r.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerSelectionEvents=function(){var n=this,s=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===s.indexOf(e)&&n.trigger(e,t)})},r.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container[0].classList.add("select2-container--open")}),this.on("close",function(){n.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){n.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){n.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){n.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===s.ESC||t===s.UP&&e.altKey?(n.close(e),e.preventDefault()):t===s.ENTER||t===s.TAB?(n.trigger("results:select",{}),e.preventDefault()):t===s.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===s.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===s.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===s.ENTER||t===s.SPACE||t===s.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&0<e.addedNodes.length){for(var n=0;n<e.addedNodes.length;n++)if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&0<e.removedNodes.length)return!0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)})}return!1},r.prototype._syncSubtree=function(e){var e=this._isChangeMutation(e),t=this;e&&this.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})},r.prototype.trigger=function(e,t){var n=r.__super__.trigger,s={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in s){var i={prevented:!1,name:e,args:t};if(n.call(this,s[e],i),i.prevented)return void(t.prevented=!0)}n.call(this,e,t)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},r.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")}
vendor: 5,439 bytes, lines 32-34
32,r.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');e=!(e=null!=e&&0!==e.length?e:[!0])[0];this.$element.prop("disabled",e)},r.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},r.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();e=e[0];Array.isArray(e)&&(e=e.map(function(e){return e.toString()})),this.$element.val(e).trigger("input").trigger("change")},r.prototype.destroy=function(){o.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",o.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),o.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),o.StoreData(e[0],"element",this.$element),e},r}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,o,t,r){var a;return null==i.fn.select2&&(a=["open","close","destroy"],i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;var n,s;if("string"==typeof t)return s=Array.prototype.slice.call(arguments,1),this.each(function(){var e=r.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,s)}),-1<a.indexOf(t)?this:n;throw new Error("Invalid arguments for Select2: "+t)}),null==i.fn.select2.defaults&&(i.fn.select2.defaults=t),o});var e,n,p,o,r,h,f,g,m,y,v,s,i,_,a={define:e.define,require:e.require};function b(e,t){return s.call(e,t)}function l(e,t){var n,s,i,o,r,a,l,c,u,d,p=t&&t.split("/"),h=y.map,f=h&&h["*"]||{};if(e){for(t=(e=e.split("/")).length-1,y.nodeIdCompat&&_.test(e[t])&&(e[t]=e[t].replace(_,"")),"."===e[0].charAt(0)&&p&&(e=p.slice(0,p.length-1).concat(e)),c=0;c<e.length;c++)"."===(d=e[c])?(e.splice(c,1),--c):".."!==d||0===c||1===c&&".."===e[2]||".."===e[c-1]||0<c&&(e.splice(c-1,2),c-=2);e=e.join("/")}if((p||f)&&h){for(c=(n=e.split("/")).length;0<c;--c){if(s=n.slice(0,c).join("/"),p)for(u=p.length;0<u;--u)if(i=(i=h[p.slice(0,u).join("/")])&&i[s]){o=i,r=c;break}if(o)break;!a&&f&&f[s]&&(a=f[s],l=c)}!o&&a&&(o=a,r=l),o&&(n.splice(0,r,o),e=n.join("/"))}return e}function w(t,n){return function(){var e=i.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),r.apply(p,e.concat([t,n]))}}function x(e){var t;if(b(m,e)&&(t=m[e],delete m[e],v[e]=!0,o.apply(p,t)),b(g,e)||b(v,e))return g[e];throw new Error("No "+e)}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function A(e){return e?c(e):[]}var u=a.require("jquery.select2");return t.fn.select2.amd=a,u});$.fn.select2.amd.require('select2/selection/allowClear').prototype.update=function(originalUpdate,selectedItems){const self=this;selectedItems=selectedItems||[];if(typeof originalUpdate==='function'){originalUpdate.call(this,selectedItems)} 33if(!self.$selection||!self.$selection.length)return;self.$selection.find(".select2-selection__rendered").attr('title','');self.$selection.find(".select2-selection__rendered").attr('aria-hidden','true');self.$selection.find(".select2-selection__clear").remove();self.$selection[0].classList.remove("select2-selection--clearable");const placeholderExists=self.$selection.find(".select2-selection__placeholder").length>0;if(!placeholderExists&&selectedItems.length>0){const renderedEl=self.$selection.find(".select2-selection__rendered");const renderedId=renderedEl.length?renderedEl.attr("id"):"";const removeAllText=self.options.get("translations").get("removeAllItems");const $btnAppend=$(`<button type="button" class="d-none select2-selection__clear" tabindex="-1" aria-hidden="true"><span aria-hidden="true">×</span></button>`);const $btn=$(` 34 <button type="button" tabindex="0" class="select2-selection__clear d-flex border-0 bg-transparent p-0">
35 <span aria-hidden="true" class="icon-close_circle_24 icon-18 cursor-pointer"> 36 <span class="path1"></span> 37 <span class="path2"></span> 38 </span> 39 </button> 40 `);if(removeAllText){$btnAppend.removeAttr('title');$btnAppend.removeAttr('aria-label')} 41if(renderedId){$btnAppend.attr("aria-describedby",renderedId)} 42$btnAppend.data("data",selectedItems);self.$selection.on("click",".select2-selection__clear",function(e){self._handleClear(e)}) 43$btn.on("click keydown",function(e){if(e.type==="click"||e.key==="Enter"||e.key===" "){e.preventDefault();$btnAppend.trigger("click");$btn.remove()}});$btn.attr("aria-label",L.SELECT_CLEAR);self.$selection.after($btn);self.$selection.append($btnAppend);self.$selection[0].classList.add("select2-selection--clearable");self.$element.on('change.select2',function(){if(!$(this).val()){$btn.remove()}})}};!function(a){"function"==typeof define&&define.amd?define([],a):"object"==typeof exports?module.exports=a():window.noUiSlider=a()}(function(){"use strict";function a(a){return a.filter(function(a){return this[a]?!1:this[a]=!0},{})}function b(a,b){return Math.round(a/b)*b}function c(a){var b=a.getBoundingClientRect(),c=a.ownerDocument,d=c.documentElement,e=l();return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(e.x=0),{top:b.top+e.y-d.clientTop,left:b.left+e.x-d.clientLeft}}function d(a){return"number"==typeof a&&!isNaN(a)&&isFinite(a)}function e(a,b,c){i(a,b),setTimeout(function(){j(a,b)},c)}function f(a){return Math.max(Math.min(a,100),0)}function g(a){return Array.isArray(a)?a:[a]}function h(a){var b=a.split(".");return b.length>1?b[1].length:0}function i(a,b){a.classList?a.classList.add(b):a.className+=" "+b}function j(a,b){a.classList?a.classList.remove(b):a.className=a.className.replace(new RegExp("(^|\\b)"+b.split(" ").join("|")+"(\\b|$)","gi")," ")}function k(a,b){return a.classList?a.classList.contains(b):new RegExp("\\b"+b+"\\b").test(a.className)}function l(){var a=void 0!==window.pageXOffset,b="CSS1Compat"===(document.compatMode||""),c=a?window.pageXOffset:b?document.documentElement.scrollLeft:document.body.scrollLeft,d=a?window.pageYOffset:b?document.documentElement.scrollTop:document.body.scrollTop;return{x:c,y:d}}function m(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function n(a,b){return 100/(b-a)}function o(a,b){return 100*b/(a[1]-a[0])}function p(a,b){return o(a,a[0]<0?b+Math.abs(a[0]):b-a[0])}function q(a,b){return b*(a[1]-a[0])/100+a[0]}function r(a,b){for(var c=1;a>=b[c];)c+=1;return c}function s(a,b,c){if(c>=a.slice(-1)[0])return 100;var d,e,f,g,h=r(c,a);return d=a[h-1],e=a[h],f=b[h-1],g=b[h],f+p([d,e],c)/n(f,g)}function t(a,b,c){if(c>=100)return a.slice(-1)[0];var d,e,f,g,h=r(c,b);return d=a[h-1],e=a[h],f=b[h-1],g=b[h],q([d,e],(c-f)*n(f,g))}function u(a,c,d,e){if(100===e)return e;var f,g,h=r(e,a);return d?(f=a[h-1],g=a[h],e-f>(g-f)/2?g:f):c[h-1]?a[h-1]+b(e-a[h-1],c[h-1]):e}function v(a,b,c){var e;if("number"==typeof b&&(b=[b]),"[object Array]"!==Object.prototype.toString.call(b))throw new Error("noUiSlider: 'range' contains invalid value.");if(e="min"===a?0:"max"===a?100:parseFloat(a),!d(e)||!d(b[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");c.xPct.push(e),c.xVal.push(b[0]),e?c.xSteps.push(isNaN(b[1])?!1:b[1]):isNaN(b[1])||(c.xSteps[0]=b[1])}function w(a,b,c){return b?void(c.xSteps[a]=o([c.xVal[a],c.xVal[a+1]],b)/n(c.xPct[a],c.xPct[a+1])):!0}function x(a,b,c,d){this.xPct=[],this.xVal=[],this.xSteps=[d||!1],this.xNumSteps=[!1],this.snap=b,this.direction=c;var e,f=[];for(e in a)a.hasOwnProperty(e)&&f.push([a[e],e]);for(f.length&&"object"==typeof f[0][0]?f.sort(function(a,b){return a[0][0]-b[0][0]}):f.sort(function(a,b){return a[0]-b[0]}),e=0;e<f.length;e++)v(f[e][1],f[e][0],this);for(this.xNumSteps=this.xSteps.slice(0),e=0;e<this.xNumSteps.length;e++)w(e,this.xNumSteps[e],this)}function y(a,b){if(!d(b))throw new Error("noUiSlider: 'step' is not numeric.");a.singleStep=b}function z(a,b){if("object"!=typeof b||Array.isArray(b))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===b.min||void 0===b.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");if(b.min===b.max)throw new Error("noUiSlider: 'range' 'min' and 'max' cannot be equal.");a.spectrum=new x(b,a.snap,a.dir,a.singleStep)}function A(a,b){if(b=g(b),!Array.isArray(b)||!b.length||b.length>2)throw new Error("noUiSlider: 'start' option is incorrect.");a.handles=b.length,a.start=b}function B(a,b){if(a.snap=b,"boolean"!=typeof b)throw new Error("noUiSlider: 'snap' option must be a boolean.")}function C(a,b){if(a.animate=b,"boolean"!=typeof b)throw new Error("noUiSlider: 'animate' option must be a boolean.")}function D(a,b){if(a.animationDuration=b,"number"!=typeof b)throw new Error("noUiSlider: 'animationDuration' option must be a number.")}function E(a,b){if("lower"===b&&1===a.handles)a.connect=1;else if("upper"===b&&1===a.handles)a.connect=2;else if(b===!0&&2===a.handles)a.connect=3;else{if(b!==!1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");a.connect=0}}function F(a,b){switch(b){case"horizontal":a.ort=0;break;case"vertical":a.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invali
43d.")}}function G(a,b){if(!d(b))throw new Error("noUiSlider: 'margin' option must be numeric.");if(0!==b&&(a.margin=a.spectrum.getMargin(b),!a.margin))throw new Error("noUiSlider: 'margin' option is only supported on linear sliders.")}function H(a,b){if(!d(b))throw new Error("noUiSlider: 'limit' option must be numeric.");if(a.limit=a.spectrum.getMargin(b),!a.limit)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders.")}function I(a,b){switch(b){case"ltr":a.dir=0;break;case"rtl":a.dir=1,a.connect=[0,2,1,3][a.connect];break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function J(a,b){if("string"!=typeof b)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var c=b.indexOf("tap")>=0,d=b.indexOf("drag")>=0,e=b.indexOf("fixed")>=0,f=b.indexOf("snap")>=0,g=b.indexOf("hover")>=0;if(d&&!a.connect)throw new Error("noUiSlider: 'drag' behaviour must be used with 'connect': true.");a.events={tap:c||f,drag:d,fixed:e,snap:f,hover:g}}function K(a,b){var c;if(b!==!1)if(b===!0)for(a.tooltips=[],c=0;c<a.handles;c++)a.tooltips.push(!0);else{if(a.tooltips=g(b),a.tooltips.length!==a.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");a.tooltips.forEach(function(a){if("boolean"!=typeof a&&("object"!=typeof a||"function"!=typeof a.to))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")})}}function L(a,b){if(a.format=b,"function"==typeof b.to&&"function"==typeof b.from)return!0;throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.")}function M(a,b){if(void 0!==b&&"string"!=typeof b&&b!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");a.cssPrefix=b}function N(a,b){if(void 0!==b&&"object"!=typeof b)throw new Error("noUiSlider: 'cssClasses' must be an object.");if("string"==typeof a.cssPrefix){a.cssClasses={};for(var c in b)b.hasOwnProperty(c)&&(a.cssClasses[c]=a.cssPrefix+b[c])}else a.cssClasses=b}function O(a){var b,c={margin:0,limit:0,animate:!0,animationDuration:300,format:R};b={step:{r:!1,t:y},start:{r:!0,t:A},connect:{r:!0,t:E},direction:{r:!0,t:I},snap:{r:!1,t:B},animate:{r:!1,t:C},animationDuration:{r:!1,t:D},range:{r:!0,t:z},orientation:{r:!1,t:F},margin:{r:!1,t:G},limit:{r:!1,t:H},behaviour:{r:!0,t:J},format:{r:!1,t:L},tooltips:{r:!1,t:K},cssPrefix:{r:!1,t:M},cssClasses:{r:!1,t:N}};var d={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",stacking:"stacking",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"}};return Object.keys(b).forEach(function(e){if(void 0===a[e]&&void 0===d[e]){if(b[e].r)throw new Error("noUiSlider: '"+e+"' is required.");return!0}b[e].t(c,void 0===a[e]?d[e]:a[e])}),c.pips=a.pips,c.style=c.ort?"top":"left",c}function P(b,d,n){function o(a,b,c){var d=a+b[0],e=a+b[1];return c?(0>d&&(e+=Math.abs(d)),e>100&&(d-=e-100),[f(d),f(e)]):[d,e]}function p(a,b){a.preventDefault();var c,d,e=0===a.type.indexOf("touch"),f=0===a.type.indexOf("mouse"),g=0===a.type.indexOf("pointer"),h=a;return 0===a.type.indexOf("MSPointer")&&(g=!0),e&&(c=a.changedTouches[0].pageX,d=a.changedTouches[0].pageY),b=b||l(),(f||g)&&(c=a.clientX+b.x,d=a.clientY+b.y),h.pageOffset=b,h.points=[c,d],h.cursor=f||g,h}function q(a,b){var c=document.createElement("div"),e=document.createElement("div"),f=[d.cssClasses.handleLower,d.cssClasses.handleUpper];return a&&f.reverse(),i(e,d.cssClasses.handle),i(e,f[b]),i(c,d.cssClasse
43s.origin),c.appendChild(e),c}function r(a,b,c){switch(a){case 1:i(b,d.cssClasses.connect),i(c[0],d.cssClasses.background);break;case 3:i(c[1],d.cssClasses.background);case 2:i(c[0],d.cssClasses.connect);case 0:i(b,d.cssClasses.background)}}function s(a,b,c){var d,e=[];for(d=0;a>d;d+=1)e.push(c.appendChild(q(b,d)));return e}function t(a,b,c){i(c,d.cssClasses.target),0===a?i(c,d.cssClasses.ltr):i(c,d.cssClasses.rtl),0===b?i(c,d.cssClasses.horizontal):i(c,d.cssClasses.vertical);var e=document.createElement("div");return i(e,d.cssClasses.base),c.appendChild(e),e}function u(a,b){if(!d.tooltips[b])return!1;var c=document.createElement("div");return c.className=d.cssClasses.tooltip,a.firstChild.appendChild(c)}function v(){d.dir&&d.tooltips.reverse();var a=W.map(u);d.dir&&(a.reverse(),d.tooltips.reverse()),S("update",function(b,c,e){a[c]&&(a[c].innerHTML=d.tooltips[c]===!0?b[c]:d.tooltips[c].to(e[c]))})}function w(a,b,c){if("range"===a||"steps"===a)return _.xVal;if("count"===a){var d,e=100/(b-1),f=0;for(b=[];(d=f++*e)<=100;)b.push(d);a="positions"}return"positions"===a?b.map(function(a){return _.fromStepping(c?_.getStep(a):a)}):"values"===a?c?b.map(function(a){return _.fromStepping(_.getStep(_.toStepping(a)))}):b:void 0}function x(b,c,d){function e(a,b){return(a+b).toFixed(7)/1}var f=_.direction,g={},h=_.xVal[0],i=_.xVal[_.xVal.length-1],j=!1,k=!1,l=0;return _.direction=0,d=a(d.slice().sort(function(a,b){return a-b})),d[0]!==h&&(d.unshift(h),j=!0),d[d.length-1]!==i&&(d.push(i),k=!0),d.forEach(function(a,f){var h,i,m,n,o,p,q,r,s,t,u=a,v=d[f+1];if("steps"===c&&(h=_.xNumSteps[f]),h||(h=v-u),u!==!1&&void 0!==v)for(i=u;v>=i;i=e(i,h)){for(n=_.toStepping(i),o=n-l,r=o/b,s=Math.round(r),t=o/s,m=1;s>=m;m+=1)p=l+m*t,g[p.toFixed(5)]=["x",0];q=d.indexOf(i)>-1?1:"steps"===c?2:0,!f&&j&&(q=0),i===v&&k||(g[n.toFixed(5)]=[i,q]),l=n}}),_.direction=f,g}
43function y(a,b,c){function e(a,b){var c=b===d.cssClasses.value,e=c?m:n,f=c?k:l;return b+" "+e[d.ort]+" "+f[a]}function f(a,b,c){return'class="'+e(c[1],b)+'" style="'+d.style+": "+a+'%"'}function g(a,e){_.direction&&(a=100-a),e[1]=e[1]&&b?b(e[0],e[1]):e[1],j+="<div "+f(a,d.cssClasses.marker,e)+"></div>",e[1]&&(j+="<div "+f(a,d.cssClasses.value,e)+">"+c.to(e[0])+"</div>")}var h=document.createElement("div"),j="",k=[d.cssClasses.valueNormal,d.cssClasses.valueLarge,d.cssClasses.valueSub],l=[d.cssClasses.markerNormal,d.cssClasses.markerLarge,d.cssClasses.markerSub],m=[d.cssClasses.valueHorizontal,d.cssClasses.valueVertical],n=[d.cssClasses.markerHorizontal,d.cssClasses.markerVertical];return i(h,d.cssClasses.pips),i(h,0===d.ort?d.cssClasses.pipsHorizontal:d.cssClasses.pipsVertical),Object.keys(a).forEach(function(b){g(b,a[b])}),h.innerHTML=j,h}function z(a){var b=a.mode,c=a.density||1,d=a.filter||!1,e=a.values||!1,f=a.stepped||!1,g=w(b,e,f),h=x(c,b,g),i=a.format||{to:Math.round};return Z.appendChild(y(h,d,i))}function A(){var a=V.getBoundingClientRect(),b="offset"+["Width","Height"][d.ort];return 0===d.ort?a.width||V[b]:a.height||V[b]}function B(a,b,c){var e;for(e=0;e<d.handles;e++)if(-1===$[e])return;void 0!==b&&1!==d.handles&&(b=Math.abs(b-d.dir)),Object.keys(ba).forEach(function(d){var e=d.split(".")[0];a===e&&ba[d].forEach(function(a){a.call(X,g(P()),b,g(C(Array.prototype.slice.call(aa))),c||!1,$)})})}function C(a){return 1===a.length?a[0]:d.dir?a.reverse():a}function D(a,b,c,e){var f=function(b){return Z.hasAttribute("disabled")?!1:k(Z,d.cssClasses.tap)?!1:(b=p(b,e.pageOffset),a===Y.start&&void 0!==b.buttons&&b.buttons>1?!1:e.hover&&b.buttons?!1:(b.calcPoint=b.points[d.ort],void c(b,e)))},g=[];return a.split(" ").forEach(function(a){b.addEventListener(a,f,!1),g.push([a,f])}),g}function E(a,b){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===a.buttons&&0!==b.buttonsProperty)return F(a,b);var c,d,e=b.handles||W,f=!1,g=100*(a.calcPoint-b.start)/b.baseSize,h=e[0]===W[0]?0:1;if(c=o(g,b.positions,e.length>1),f=L(e[0],c[h],1===e.length),e.length>1){if(f=L(e[1],c[h?0:1],!1)||f)for(d=0;d<b.handles.length;d++)B("slide",d)}else f&&B("slide",h)}function F(a,b){var c=V.querySelector("."+d.cssClasses.active),e=b.handles[0]===W[0]?0:1;null!==c&&j(c,d.cssClasses.active),a.cursor&&(document.body.style.cursor="",document.body.removeEventListener("selectstart",document.body.noUiListener));var f=document.documentElement;f.noUiListeners.forEach(function(a){f.removeEventListener(a[0],a[1])}),j(Z,d.cssClasses.drag),B("set",e),B("change",e),void 0!==b.handleNumber&&B("end",b.handleNumber)}function G(a,b){"mouseout"===a.type&&"HTML"===a.target.nodeName&&null===a.relatedTarget&&F(a,b)}function H(a,b){var c=document.documentElement;if(1===b.handles.length){if(b.handles[0].hasAttribute("disabled"))return!1;i(b.handles[0].children[0],d.cssClasses.active)}a.preventDefault(),a.stopPropagation();var e=D(Y.move,c,E,{start:a.calcPoint,baseSize:A(),pageOffset:a.pageOffset,handles:b.handles,handleNumber:b.handleNumber,buttonsProperty:a.buttons,positions:[$[0],$[W.length-1]]}),f=D(Y.end,c,F,{handles:b.handles,handleNumber:b.handleNumber}),g=D("mouseout",c,G,{handles:b.handles,handleNumber:b.handleNumber});if(c.noUiListeners=e.concat(f,g),a.cursor){document.body.style.cursor=getComputedStyle(a.target).cursor,W.length>1&&i(Z,d.cssClasses.drag);var h=function(){return!1};document.body.noUiListener=h,document.body.addEventListener("selectstart",h,!1)}void 0!==b.handleNumber&&B("start",b.handleNumber)}function I(a){var b,f,g=a.calcPoint,h=0;return a.stopPropagation(),W.forEach(function(a){h+=c(a)[d.style]}),b=h/2>g||1===W.length?0:1,W[b].hasAttribute("disabled")&&(b=b?0:1),g-=c(V)[d.style],f=100*g/A(),d.events.snap||e(Z,d.cssClasses.tap,d.animationDuration),W[b].hasAttribute("disabled")?!1:(L(W[b],f),B("slide",b,!0),B("set",b,!0),B("change",b,!0),void(d.events.snap&&H(a,{handles:[W[b]]})))}function J(a){var b=a.calcPoint-c(V)[d.style],e=_.getStep(100*b/A()),f=_.fromStepping(e);Object.keys(ba).forEach(function(a){"hover"===a.split(".")[0]&&ba[a].forEach(function(a){a.call(X,f)})})}function K(a){if(a.fixed||W.forEach(function(a,b){D(Y.start,a.children[0],H,{handles:[a],handleNumber:b})}),a.tap&&D(Y.start,V,I,{handles:W}),a.hover&&D(Y.move,V,J,{hover:!0}
43),a.drag){var b=[V.querySelector("."+d.cssClasses.connect)];i(b[0],d.cssClasses.draggable),a.fixed&&b.push(W[b[0]===W[0]?1:0].children[0]),b.forEach(function(a){D(Y.start,a,H,{handles:W})})}}function L(a,b,c){var e=a!==W[0]?1:0,g=$[0]+d.margin,h=$[1]-d.margin,k=$[0]+d.limit,l=$[1]-d.limit;return W.length>1&&(b=e?Math.max(b,g):Math.min(b,h)),c!==!1&&d.limit&&W.length>1&&(b=e?Math.min(b,k):Math.max(b,l)),b=_.getStep(b),b=f(b),b===$[e]?!1:(window.requestAnimationFrame?window.requestAnimationFrame(function(){a.style[d.style]=b+"%"}):a.style[d.style]=b+"%",a.previousSibling||(j(a,d.cssClasses.stacking),b>50&&i(a,d.cssClasses.stacking)),$[e]=b,aa[e]=_.fromStepping(b),B("update",e),!0)}function M(a,b){var c,e,f;for(d.limit&&(a+=1),c=0;a>c;c+=1)e=c%2,f=b[e],null!==f&&f!==!1&&("number"==typeof f&&(f=String(f)),f=d.format.from(f),(f===!1||isNaN(f)||L(W[e],_.toStepping(f),c===3-d.dir)===!1)&&B("update",e))}function N(a,b){var c,f,h=g(a);for(b=void 0===b?!0:!!b,d.dir&&d.handles>1&&h.reverse(),d.animate&&-1!==$[0]&&e(Z,d.cssClasses.tap,d.animationDuration),c=W.length>1?3:1,1===h.length&&(c=1),M(c,h),f=0;f<W.length;f++)null!==h[f]&&b&&B("set",f)}function P(){var a,b=[];for(a=0;a<d.handles;a+=1)b[a]=d.format.to(aa[a]);return C(b)}function Q(){for(var a in d.cssClasses)d.cssClasses.hasOwnProperty(a)&&j(Z,d.cssClasses[a]);for(;Z.firstChild;)Z.removeChild(Z.firstChild);delete Z.noUiSlider}function R(){var a=$.map(function(a,b){var c=_.getApplicableStep(a),d=h(String(c[2])),e=aa[b],f=100===a?null:c[2],g=Number((e-c[2]).toFixed(d)),i=0===a?null:g>=c[1]?c[2]:c[0]||!1;return[i,f]});return C(a)}function S(a,b){ba[a]=ba[a]||[],ba[a].push(b),"update"===a.split(".")[0]&&W.forEach(function(a,b){B("update",b)})}function T(a){var b=a&&a.split(".")[0],c=b&&a.substring(b.length);Object.keys(ba).forEach(function(a){var d=a.split(".")[0],e=a.substring(d.length);b&&b!==d||c&&c!==e||delete ba[a]})}function U(a,b){var c=P(),e=O({start:[0,0],margin:a.margin,limit:a.limit,step:void 0===a.step?d.singleStep:a.step,range:a.range,animate:a.animate,snap:void 0===a.snap?d.snap:a.snap});["margin","limit","range","animate"].forEach(function(b){void 0!==a[b]&&(d[b]=a[b])}),e.spectrum.direction=_.direction,_=e.spectrum,$=[-1,-1],N(a.start||c,b)}var V,W,X,Y=m(),Z=b,$=[-1,-1],_=d.spectrum,aa=[],ba={};if(Z.noUiSlider)throw new Error("Slider was already initialized.");return V=t(d.dir,d.ort,Z),W=s(d.handles,d.dir,V),r(d.connect,Z,W),d.pips&&z(d.pips),d.tooltips&&v(),X={destroy:Q,steps:R,on:S,off:T,get:P,set:N,updateOptions:U,options:n,target:Z,pips:z},K(d.events),X}function Q(a,b){if(!a.nodeName)throw new Error("noUiSlider.create requires a single element.");var c=O(b,a),d=P(a,c,b);return d.set(c.start),a.noUiSlider=d,d}x.prototype.getMargin=function(a){return 2===this.xPct.length?o(this.xVal,a):!1},x.prototype.toStepping=function(a){return a=s(this.xVal,this.xPct,a),this.direction&&(a=100-a),a},x.prototype.fromStepping=function(a){return this.direction&&(a=100-a),t(this.xVal,this.xPct,a)},x.prototype.getStep=function(a){return this.direction&&(a=100-a),a=u(this.xPct,this.xSteps,this.snap,a),this.direction&&(a=100-a),a},x.prototype.getApplicableStep=function(a){var b=r(a,this.xPct),c=100===a?2:1;return[this.xNumSteps[b-2],this.xVal[b-c],this.xNumSteps[b-c]]},x.prototype.convert=function(a){return this.getStep(this.toStepping(a))};var R={to:function(a){return void 0!==a&&a.toFixed(2)},from:Number};return{create:Q}});!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Sweetalert2=t()}(this,function(){"use strict";function e(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function t(t,n){return t.get(e(t,n))}function n(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}const o={},i=e=>new Promise(t=>{if(!e)return t();const n=window.scrollX,i=window.scrollY;o.restoreFocusTimeout=setTimeout(()=>{o.previousActiveElement instanceof HTMLElement?(o.previousActiveElement.focus(),o.previousActiveElement=null):document.body&&document.body.focus(),t()},100),window.scrollTo(n,i)}),s="swal2-",r=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","to
43p-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((e,t)=>(e[t]=s+t,e),{}),a=["success","warning","info","question","error"].reduce((e,t)=>(e[t]=s+t,e),{}),l="SweetAlert2:",c=e=>e.charAt(0).toUpperCase()+e.slice(1),u=e=>{console.warn(`${l} ${"object"==typeof e?e.join(" "):e}`)},d=e=>{console.error(`${l} ${e}`)},p=[],m=(e,t=null)=>{var n;n=`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`,p.includes(n)||(p.push(n),u(n))},h=e=>"function"==typeof e?e():e,g=e=>e&&"function"==typeof e.toPromise,f=e=>g(e)?e.toPromise():Promise.resolve(e),b=e=>e&&Promise.resolve(e)===e,y=()=>document.body.querySelector(`.${r.container}`),v=e=>{const t=y();return t?t.querySelector(e):null},w=e=>v(`.${e}`),C=()=>w(r.popup),A=()=>w(r.icon),E=()=>w(r.title),k=()=>w(r["html-container"]),B=()=>w(r.image),$=()=>w(r["progress-steps"]),L=()=>w(r["validation-message"]),P=()=>v(`.${r.actions} .${r.confirm}`),x=()=>v(`.${r.actions} .${r.cancel}`),T=()=>v(`.${r.actions} .${r.deny}`),S=()=>v(`.${r.loader}`),O=()=>w(r.actions),M=()=>w(r.footer),j=()=>w(r["timer-progress-bar"]),H=()=>w(r.close),I=()=>{const e=C();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((e,t)=>{const n=parseInt(e.getAttribute("tabindex")||"0"),o=parseInt(t.getAttribute("tabindex")||"0");return n>o?1:n<o?-1:0}),o=e.querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n'),i=Array.from(o).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(n.concat(i))].filter(e=>ee(e))},D=()=>N(document.body,r.shown)&&!N(document.body,r["toast-shown"])&&!N(document.body,r["no-backdrop"]),V=()=>{const e=C();return!!e&&N(e,r.toast)},q=(e,t)=>{if(e.textContent="",t){const n=(new DOMParser).parseFromString(t,"text/html"),o=n.querySelector("head");o&&Array.from(o.childNodes).forEach(t=>{e.appendChild(t)});const i=n.querySelector("body");i&&Array.from(i.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},N=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let t=0;t<n.length;t++)if(!e.classList.contains(n[t]))return!1;return!0},_=(e,t,n)=>{if(((e,t)=>{Array.from(e.classList).forEach(n=>{Object.values(r).includes(n)||Object.values(a).includes(n)||Object.values(t.showClass||{}).includes(n)||e.classList.remove(n)})})(e,t),!t.customClass)return;const o=t.customClass[n];o&&("string"==typeof o||o.forEach?z(e,o):u(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof o}"`))},R=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${r.popup} > .${r[t]}`);case"checkbox":return e.querySelector(`.${r.popup} > .${r.checkbox} input`);case"radio":return e.querySelector(`.${r.popup} > .${r.radio} input:checked`)||e.querySelector(`.${r.popup} > .${r.radio} input:first-child`);case"range":return e.querySelector(`.${r.popup} > .${r.range} input`);default:return e.querySelector(`.${r.popup} > .${r.input}`)}},F=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},U=(e,t,n)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(t=>{Array.isArray(e)?e.forEach(e=>{n?e.classList.add(t):e.classList.remove(t)}):n?e.classList.add(t):e.classList.remove(t)}))},z=(e,t)=>{U(e,t,!0)},W=(e,t)=>{U(e,t,!1)},K=(e,t)=>{const n=Array.from(e.children);for(let e=0;e<n.length;e++){const o=n[e];if(o instanceof HTMLElement&&N(o,t))return o}}
vendor: 40,556 bytes, line 43
43,Y=(e,t,n)=>{n===`${parseInt(`${n}`)}`&&(n=parseInt(n)),n||0===parseInt(`${n}`)?e.style.setProperty(t,"number"==typeof n?`${n}px`:n):e.style.removeProperty(t)},X=(e,t="flex")=>{e&&(e.style.display=t)},Z=e=>{e&&(e.style.display="none")},J=(e,t="block")=>{e&&new MutationObserver(()=>{Q(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},G=(e,t,n,o)=>{const i=e.querySelector(t);i&&i.style.setProperty(n,o)},Q=(e,t,n="flex")=>{t?X(e,n):Z(e)},ee=e=>Boolean(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),te=e=>Boolean(e.scrollHeight>e.clientHeight),ne=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},oe=(e,t=!1)=>{const n=j();n&&ee(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"},10))},ie=`\n <div aria-labelledby="${r.title}" aria-describedby="${r["html-container"]}" class="${r.popup}" tabindex="-1">\n <button type="button" class="${r.close}"></button>\n <ul class="${r["progress-steps"]}"></ul>\n <div class="${r.icon}"></div>\n <img class="${r.image}" />\n <h2 class="${r.title}" id="${r.title}"></h2>\n <div class="${r["html-container"]}" id="${r["html-container"]}"></div>\n <input class="${r.input}" id="${r.input}" />\n <input type="file" class="${r.file}" />\n <div class="${r.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${r.select}" id="${r.select}"></select>\n <div class="${r.radio}"></div>\n <label class="${r.checkbox}">\n <input type="checkbox" id="${r.checkbox}" />\n <span class="${r.label}"></span>\n </label>\n <textarea class="${r.textarea}" id="${r.textarea}"></textarea>\n <div class="${r["validation-message"]}" id="${r["validation-message"]}"></div>\n <div class="${r.actions}">\n <div class="${r.loader}"></div>\n <button type="button" class="${r.confirm}"></button>\n <button type="button" class="${r.deny}"></button>\n <button type="button" class="${r.cancel}"></button>\n </div>\n <div class="${r.footer}"></div>\n <div class="${r["timer-progress-bar-container"]}">\n <div class="${r["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),se=()=>{o.currentInstance&&o.currentInstance.resetValidationMessage()},re=e=>{const t=(()=>{const e=y();return!!e&&(e.remove(),W([document.documentElement,document.body],[r["no-backdrop"],r["toast-shown"],r["has-column"]]),!0)})();if("undefined"==typeof window||"undefined"==typeof document)return void d("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=r.container,t&&z(n,r["no-transition"]),q(n,ie),n.dataset.swal2Theme=e.theme;const i=(e=>{if("string"==typeof e){const t=document.querySelector(e);if(!t)throw new Error(`Target element "${e}" not found`);return t}return e})(e.target||"body");i.appendChild(n),e.topLayer&&(n.setAttribute("popover",""),n.showPopover()),(e=>{const t=C();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&(z(y(),r.rtl),o.isRTL=!0)})(i),(()=>{const e=C();if(!e)return;const t=K(e,r.input),n=K(e,r.file),o=e.querySelector(`.${r.range} input`),i=e.querySelector(`.${r.range} output`),s=K(e,r.select),a=e.querySelector(`.${r.checkbox} input`),l=K(e,r.textarea);t&&(t.oninput=se),n&&(n.onchange=se),s&&(s.onchange=se),a&&(a.onchange=se),l&&(l.oninput=se),o&&i&&(o.oninput=()=>{se(),i.value=o.value},o.onchange=()=>{se(),i.value=o.value})})()},ae=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?le(e,t):e&&q(t,e)},le=(e,t)=>{"jquery"in e?ce(t,e):q(t,e.toString())},ce=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},ue=(e,t)=>{const n=O(),o=S();n&&o&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?X(n):Z(n),_(n,t,"actions"),function(e,t,n){const o=P(),i=T(),s=x();if(!o||!i||!s)return;pe(o,"confirm",n),pe(i,"deny",n),pe(s,"cancel",n),function(e,t,n,o){if(!o.buttonsStyling)return void W([e,t,n],r.styled);z([e,t,n],r.styled),o.confirmButtonColor&&e.style.setProperty("--swal2-confirm-button-background-color",o.confirmButtonColor);o.denyButtonColor&&t.style.setProperty("--swal2-deny-button-background-color",o.denyButtonColor);o.cancelButtonColor&&n.style.setProperty("--swal2-cancel-button-background-color",o.cancelButtonColor);de(e),de(t),de(n)}(o,i,s,n),n.reverseButtons&&(n.toast?(e.insertBefore(s,o),e.insertBefore(i,o)):(e.insertBefore(s,t),e.insertBefore(i,t),e.insertBefore(o,t)))}(n,o,t),q(o,t.loaderHtml||""),_(o,t,"loader"))};function de(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const n=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function pe(e,t,n){const o=c(t);Q(e,n[`show${o}Button`],"inline-block"),q(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=r[t],_(e,n,`${t}Button`)}const me=(e,t)=>{const n=y();n&&(!function(e,t){"string"==typeof t?e.style.background=t:t||z([document.documentElement,document.body],r["no-backdrop"])}(n,t.backdrop),function(e,t){if(!t)return;t in r?z(e,r[t]):(u('The "position" parameter is not valid, defaulting to "center"'),z(e,r.center))}(n,t.position),function(e,t){if(!t)return;z(e,r[`grow-${t}`])}(n,t.grow),_(n,t,"container"))};var he={innerParams:new WeakMap,domCache:new WeakMap};const ge=["input","file","range","select","radio","checkbox","textarea"],fe=e=>{if(!e.input)return;if(!Ee[e.input])return void d(`Unexpected type of input! Expected ${Object.keys(Ee).join(" | ")}, got "${e.input}"`);const t=Ce(e.input);if(!t)return;const n=Ee[e.input](t,e);X(t),e.inputAutoFocus&&setTimeout(()=>{F(n)})},be=(e,t)=>{const n=C();if(!n)return;const o=R(n,e);if(o){(e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}})(o);for(const e in t)o.setAttribute(e,t[e])}},ye=e=>{if(!e.input)return;const t=Ce(e.input);t&&_(t,e,"input")},ve=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},we=(e,t,n)=>{if(n.inputLabel){const o=document.createElement("label"),i=r["input-label"];o.setAttribute("for",e.id),o.className=i,"object"==typeof n.customClass&&z(o,n.customClass.inputLabel),o.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",o)}},Ce=e=>{const t=C();if(t)return K(t,r[e]||r.input)},Ae=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:b(t)||u(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Ee={};Ee.text=Ee.email=Ee.password=Ee.number=Ee.tel=Ee.url=Ee.search=Ee.date=Ee["datetime-local"]=Ee.time=Ee.week=Ee.month=(e,t)=>{const n=e;return Ae(n,t.inputValue),we(n,n,t),ve(n,t),n.type=t.input,n},Ee.file=(e,t)=>{const n=e;return we(n,n,t),ve(n,t),n},Ee.range=(e,t)=>{const n=e,o=n.querySelector("input"),i=n.querySelector("output");return o&&(Ae(o,t.inputValue),o.type=t.input,we(o,e,t)),i&&Ae(i,t.inputValue),e},Ee.select=(e,t)=>{const n=e;if(n.textContent="",t.inputPlaceholder){const e=document.createElement("option");q(e,t.inputPlaceholder),e.value="",e.disabled=!0,e.selected=!0,n.appendChild(e)}return we(n,n,t),n},Ee.radio=e=>(e.textContent="",e),Ee.checkbox=(e,t)=>{const n=C();if(!n)throw new Error("Popup not found");const o=R(n,"checkbox");if(!o)throw new Error("Checkbox input not found");o.value="1",o.checked=Boolean(t.inputValue);const i=e.querySelector("span");if(i){const e=t.inputPlaceholder||t.inputLabel;e&&q(i,e)}return o},Ee.textarea=(e,t)=>{const n=e;Ae(n,t.inputValue),ve(n,t),we(n,n,t);return setTimeout(()=>{if("MutationObserver"in window){const e=C();if(!e)return;const o=parseInt(window.getComputedStyle(e).width);new MutationObserver(()=>{if(!document.body.contains(n))return;const e=n.offsetWidth+(i=n,parseInt(window.getComputedStyle(i).marginLeft)+parseInt(window.getComputedStyle(i).marginRight));var i;const s=C();s&&(e>o?s.style.width=`${e}px`:Y(s,"width",t.width))}).observe(n,{attributes:!0,attributeFilter:["style"]})}}),n};const ke=(e,t)=>{const n=k();n&&(J(n),_(n,t,"htmlContainer"),t.html?(ae(t.html,n),X(n,"block")):t.text?(n.textContent=t.text,X(n,"block")):Z(n),((e,t)=>{const n=C();if(!n)return;const o=he.innerParams.get(e),i=!o||t.input!==o.input;ge.forEach(e=>{const o=K(n,r[e]);o&&(be(e,t.inputAttributes),o.className=r[e],i&&Z(o))}),t.input&&(i&&fe(t),ye(t))})(e,t))},Be=(e,t)=>{for(const[n,o]of Object.entries(a))t.icon!==n&&W(e,o);z(e,t.icon&&a[t.icon]),Pe(e,t),$e(),_(e,t,"icon")},$e=()=>{const e=C();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<n.length;e++)n[e].style.backgroundColor=t},Le=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,o="";if(t.iconHtml)o=xe(t.iconHtml);else if("success"===t.icon)o=(e=>`\n ${e.animation?'<div class="swal2-success-circular-line-left"></div>':""}\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div>\n ${e.animation?'<div class="swal2-success-fix"></div>':""}\n ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}\n`)(t),n=n.replace(/ style=".*?"/g,"");else if("error"===t.icon)o='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n';else if(t.icon){o=xe({question:"?",warning:"!",info:"i"}[t.icon])}n.trim()!==o.trim()&&q(e,o)},Pe=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])G(e,n,"background-color",t.iconColor);G(e,".swal2-success-ring","border-color",t.iconColor)}},xe=e=>`<div class="${r["icon-content"]}">${e}</div>`;let Te=!1,Se=0,Oe=0,Me=0,je=0;const He=e=>{const t=C();if(!t)return;const n=A();if(e.target===t||n&&n.contains(e.target)){Te=!0;const n=Ve(e);Se=n.clientX,Oe=n.clientY,Me=parseInt(t.style.insetInlineStart)||0,je=parseInt(t.style.insetBlockStart)||0,z(t,"swal2-dragging")}},Ie=e=>{const t=C();if(t&&Te){let{clientX:n,clientY:i}=Ve(e);const s=n-Se;t.style.insetInlineStart=`${Me+(o.isRTL?-s:s)}px`,t.style.insetBlockStart=`${je+(i-Oe)}px`}},De=()=>{const e=C();Te=!1,W(e,"swal2-dragging")},Ve=e=>{let t=0,n=0;return e.type.startsWith("mouse")?(t=e.clientX,n=e.clientY):e.type.startsWith("touch")&&(t=e.touches[0].clientX,n=e.touches[0].clientY),{clientX:t,clientY:n}},qe=(e,t)=>{const n=y(),o=C();if(n&&o){if(t.toast){Y(n,"width",t.width),o.style.width="100%";const e=S();e&&o.insertBefore(e,A())}else Y(o,"width",t.width);Y(o,"padding",t.padding),t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background),Z(L()),Ne(o,t),t.draggable&&!t.toast?(z(o,r.draggable),(e=>{e.addEventListener("mousedown",He),document.body.addEventListener("mousemove",Ie),e.addEventListener("mouseup",De),e.addEventListener("touchstart",He),document.body.addEventListener("touchmove",Ie),e.addEventListener("touchend",De)})(o)):(W(o,r.draggable),(e=>{e.removeEventListener("mousedown",He),document.body.removeEventListener("mousemove",Ie),e.removeEventListener("mouseup",De),e.removeEventListener("touchstart",He),document.body.removeEventListener("touchmove",Ie),e.removeEventListener("touchend",De)})(o))}},Ne=(e,t)=>{const n=t.showClass||{};e.className=`${r.popup} ${ee(e)?n.popup:""}`,t.toast?(z([document.documentElement,document.body],r["toast-shown"]),z(e,r.toast)):z(e,r.modal),_(e,t,"popup"),"string"==typeof t.customClass&&z(e,t.customClass),t.icon&&z(e,r[`icon-${t.icon}`])},_e=e=>{const t=document.createElement("li");return z(t,r["progress-step"]),q(t,e),t},Re=e=>{const t=document.createElement("li");return z(t,r["progress-step-line"]),e.progressStepsDistance&&Y(t,"width",e.progressStepsDistance),t},Fe=(e,t)=>{var n;qe(0,t),me(0,t),((e,t)=>{const n=$();if(!n)return;const{progressSteps:o,currentProgressStep:i}=t;o&&0!==o.length&&void 0!==i?(X(n),n.textContent="",i>=o.length&&u("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach((e,s)=>{const a=_e(e);if(n.appendChild(a),s===i&&z(a,r["active-progress-step"]),s!==o.length-1){const e=Re(t);n.appendChild(e)}})):Z(n)})(0,t),((e,t)=>{const n=he.innerParams.get(e),o=A();if(!o)return;if(n&&t.icon===n.icon)return Le(o,t),void Be(o,t);if(!t.icon&&!t.iconHtml)return void Z(o);if(t.icon&&-1===Object.keys(a).indexOf(t.icon))return d(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void Z(o);X(o),Le(o,t),Be(o,t),z(o,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",$e)})(e,t),((e,t)=>{const n=B();n&&(t.imageUrl?(X(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),Y(n,"width",t.imageWidth),Y(n,"height",t.imageHeight),n.className=r.image,_(n,t,"image")):Z(n))})(0,t),((e,t)=>{const n=E();n&&(J(n),Q(n,Boolean(t.title||t.titleText),"block"),t.title&&ae(t.title,n),t.titleText&&(n.innerText=t.titleText),_(n,t,"title"))})(0,t),((e,t)=>{const n=H();n&&(q(n,t.closeButtonHtml||""),_(n,t,"closeButton"),Q(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))})(0,t),ke(e,t),ue(0,t),((e,t)=>{const n=M();n&&(J(n),Q(n,Boolean(t.footer),"block"),t.footer&&ae(t.footer,n),_(n,t,"footer"))})(0,t);const i=C();"function"==typeof t.didRender&&i&&t.didRender(i),null===(n=o.eventEmitter)||void 0===n||n.emit("didRender",i)},Ue=()=>{var e;return null===(e=P())||void 0===e?void 0:e.click()},ze=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),We=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){const t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},Ke=(e,t)=>{var n;const o=I();if(o.length)return-2===(e+=t)&&(e=o.length-1),e===o.length?e=0:-1===e&&(e=o.length-1),void o[e].focus();null===(n=C())||void 0===n||n.focus()},Ye=["ArrowRight","ArrowDown"],Xe=["ArrowLeft","ArrowUp"],Ze=(e,t,n)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Je(t,e):"Tab"===t.key?Ge(t):[...Ye,...Xe].includes(t.key)?Qe(t.key):"Escape"===t.key&&et(t,e,n)))},Je=(e,t)=>{if(!h(t.allowEnterKey))return;const n=C();if(!n||!t.input)return;const o=R(n,t.input);if(e.target&&o&&e.target instanceof HTMLElement&&e.target.outerHTML===o.outerHTML){if(["textarea","file"].includes(t.input))return;Ue(),e.preventDefault()}},Ge=e=>{const t=e.target,n=I();let o=-1;for(let e=0;e<n.length;e++)if(t===n[e]){o=e;break}e.shiftKey?Ke(o,-1):Ke(o,1),e.stopPropagation(),e.preventDefault()},Qe=e=>{const t=O(),n=P(),o=T(),i=x();if(!(t&&n&&o&&i))return;const s=[n,o,i];if(document.activeElement instanceof HTMLElement&&!s.includes(document.activeElement))return;const r=Ye.includes(e)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;if(a){for(let e=0;e<t.children.length;e++){if(a=a[r],!a)return;if(a instanceof HTMLButtonElement&&ee(a))break}a instanceof HTMLButtonElement&&a.focus()}},et=(e,t,n)=>{e.preventDefault(),h(t.allowEscapeKey)&&n(ze.esc)};var tt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const nt=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},ot="undefined"!=typeof window&&Boolean(window.GestureEvent),it=()=>{const e=y();if(!e)return;let t;e.ontouchstart=e=>{t=st(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},st=e=>{const t=e.target,n=y(),o=k();return!(!n||!o)&&(!rt(e)&&!at(e)&&(t===n||!(te(n)||!(t instanceof HTMLElement)||((e,t)=>{let n=e;for(;n&&n!==t;){if(te(n))return!0;n=n.parentElement}return!1})(t,o)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||te(o)&&o.contains(t))))},rt=e=>Boolean(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),at=e=>e.touches&&e.touches.length>1;let lt=null;const ct=e=>{null===lt&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(lt=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${lt+(()=>{const e=document.createElement("div");e.className=r["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)};function ut(e,t,n,s){V()?yt(e,s):(i(n).then(()=>yt(e,s)),We(o)),ot?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),D()&&(null!==lt&&(document.body.style.paddingRight=`${lt}px`,lt=null),(()=>{if(N(document.body,r.iosfix)){const e=parseInt(document.body.style.top,10);W(document.body,r.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),nt()),W([document.documentElement,document.body],[r.shown,r["height-auto"],r["no-backdrop"],r["toast-shown"]])}function dt(e){e=gt(e);const t=tt.swalPromiseResolve.get(this),n=pt(this);this.isAwaitingPromise?e.isDismissed||(ht(this),t(e)):n&&t(e)}const pt=e=>{const t=C();if(!t)return!1;const n=he.innerParams.get(e);if(!n||N(t,n.hideClass.popup))return!1;W(t,n.showClass.popup),z(t,n.hideClass.popup);const o=y();return W(o,n.showClass.backdrop),z(o,n.hideClass.backdrop),ft(e,t,n),!0};function mt(e){const t=tt.swalPromiseReject.get(this);ht(this),t&&t(e)}const ht=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,he.innerParams.get(e)||e._destroy())},gt=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),ft=(e,t,n)=>{var i;const s=y(),r=ne(t);"function"==typeof n.willClose&&n.willClose(t),null===(i=o.eventEmitter)||void 0===i||i.emit("willClose",t),r&&s?bt(e,t,s,Boolean(n.returnFocus),n.didClose):s&&ut(e,s,Boolean(n.returnFocus),n.didClose)},bt=(e,t,n,i,s)=>{o.swalCloseEventFinishedCallback=ut.bind(null,e,n,i,s);const r=function(e){var n;e.target===t&&(null===(n=o.swalCloseEventFinishedCallback)||void 0===n||n.call(o),delete o.swalCloseEventFinishedCallback,t.removeEventListener("animationend",r),t.removeEventListener("transitionend",r))};t.addEventListener("animationend",r),t.addEventListener("transitionend",r)},yt=(e,t)=>{setTimeout(()=>{var n;"function"==typeof t&&t.bind(e.params)(),null===(n=o.eventEmitter)||void 0===n||n.emit("didClose"),e._destroy&&e._destroy()})},vt=e=>{let t=C();if(t||new Qn,t=C(),!t)return;const n=S();V()?Z(A()):wt(t,e),X(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},wt=(e,t)=>{const n=O(),o=S();n&&o&&(!t&&ee(P())&&(t=P()),X(n),t&&(Z(t),o.setAttribute("data-button-to-replace",t.className),n.insertBefore(o,t)),z([e,n],r.loading))},Ct=e=>e.checked?1:0,At=e=>e.checked?e.value:null,Et=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,kt=(e,t)=>{const n=C();if(!n)return;const o=e=>{"select"===t.input?function(e,t,n){const o=K(e,r.select);if(!o)return;const i=(e,t,o)=>{const i=document.createElement("option");i.value=o,q(i,t),i.selected=Lt(o,n.inputValue),e.appendChild(i)};t.forEach(e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,o.appendChild(e),n.forEach(t=>i(e,t[1],t[0]))}else i(o,n,t)}),o.focus()}(n,$t(e),t):"radio"===t.input&&function(e,t,n){const o=K(e,r.radio);if(!o)return;t.forEach(e=>{const t=e[0],i=e[1],s=document.createElement("input"),a=document.createElement("label");s.type="radio",s.name=r.radio,s.value=t,Lt(t,n.inputValue)&&(s.checked=!0);const l=document.createElement("span");q(l,i),l.className=r.label,a.appendChild(s),a.appendChild(l),o.appendChild(a)});const i=o.querySelectorAll("input");i.length&&i[0].focus()}(n,$t(e),t)};g(t.inputOptions)||b(t.inputOptions)?(vt(P()),f(t.inputOptions).then(t=>{e.hideLoading(),o(t)})):"object"==typeof t.inputOptions?o(t.inputOptions):d("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},Bt=(e,t)=>{const n=e.getInput();n&&(Z(n),f(t.inputValue).then(o=>{n.value="number"===t.input?`${parseFloat(o)||0}`:`${o}`,X(n),n.focus(),e.hideLoading()}).catch(t=>{d(`Error in inputValue promise: ${t}`),n.value="",X(n),n.focus(),e.hideLoading()}))};const $t=e=>{const t=[];return e instanceof Map?e.forEach((e,n)=>{let o=e;"object"==typeof o&&(o=$t(o)),t.push([n,o])}):Object.keys(e).forEach(n=>{let o=e[n];"object"==typeof o&&(o=$t(o)),t.push([n,o])}),t},Lt=(e,t)=>Boolean(t)&&null!=t&&t.toString()===e.toString(),Pt=(e,t)=>{const n=he.innerParams.get(e);if(!n.input)return void d(`The "input" parameter is needed to be set when using returnInputValueOn${c(t)}`);const o=e.getInput(),i=((e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Ct(n);case"radio":return At(n);case"file":return Et(n);default:return t.inputAutoTrim?n.value.trim():n.value}})(e,n);n.inputValidator?xt(e,i,t):o&&!o.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||o.validationMessage)):"deny"===t?Tt(e,i):Mt(e,i)},xt=(e,t,n)=>{const o=he.innerParams.get(e);e.disableInput();Promise.resolve().then(()=>f(o.inputValidator(t,o.validationMessage))).then(o=>{e.enableButtons(),e.enableInput(),o?e.showValidationMessage(o):"deny"===n?Tt(e,t):Mt(e,t)})},Tt=(e,t)=>{const n=he.innerParams.get(e);if(n.showLoaderOnDeny&&vt(T()),n.preDeny){e.isAwaitingPromise=!0;Promise.resolve().then(()=>f(n.preDeny(t,n.validationMessage))).then(n=>{!1===n?(e.hideLoading(),ht(e)):e.close({isDenied:!0,value:void 0===n?t:n})}).catch(t=>Ot(e,t))}else e.close({isDenied:!0,value:t})},St=(e,t)=>{e.close({isConfirmed:!0,value:t})},Ot=(e,t)=>{e.rejectPromise(t)},Mt=(e,t)=>{const n=he.innerParams.get(e);if(n.showLoaderOnConfirm&&vt(),n.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;Promise.resolve().then(()=>f(n.preConfirm(t,n.validationMessage))).then(n=>{ee(L())||!1===n?(e.hideLoading(),ht(e)):St(e,void 0===n?t:n)}).catch(t=>Ot(e,t))}else St(e,t)};function jt(){const e=he.innerParams.get(this);if(!e)return;const t=he.domCache.get(this);Z(t.loader),V()?e.icon&&X(A()):Ht(t),W([t.popup,t.actions],r.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Ht=e=>{const t=e.loader.getAttribute("data-button-to-replace"),n=t?e.popup.getElementsByClassName(t):[];n.length?X(n[0],"inline-block"):ee(P())||ee(T())||ee(x())||Z(e.actions)};function It(){const e=he.innerParams.get(this),t=he.domCache.get(this);return t?R(t.popup,e.input):null}function Dt(e,t,n){const o=he.domCache.get(e);t.forEach(e=>{o[e].disabled=n})}function Vt(e,t){const n=C();if(n&&e)if("radio"===e.type){const e=n.querySelectorAll(`[name="${r.radio}"]`);for(let n=0;n<e.length;n++)e[n].disabled=t}else e.disabled=t}function qt(){Dt(this,["confirmButton","denyButton","cancelButton"],!1)}function Nt(){Dt(this,["confirmButton","denyButton","cancelButton"],!0)}function _t(){Vt(this.getInput(),!1)}function Rt(){Vt(this.getInput(),!0)}function Ft(e){const t=he.domCache.get(this),n=he.innerParams.get(this);q(t.validationMessage,e),t.validationMessage.className=r["validation-message"],n.customClass&&n.customClass.validationMessage&&z(t.validationMessage,n.customClass.validationMessage),X(t.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid","true"),o.setAttribute("aria-describedby",r["validation-message"]),F(o),z(o,r.inputerror))}function Ut(){const e=he.domCache.get(this);e.validationMessage&&Z(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),W(t,r.inputerror))}const zt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},Wt=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],Kt={allowEnterKey:void 0},Yt=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Xt=e=>Object.prototype.hasOwnProperty.call(zt,e),Zt=e=>-1!==Wt.indexOf(e),Jt=e=>Kt[e],Gt=e=>{Xt(e)||u(`Unknown parameter "${e}"`)},Qt=e=>{Yt.includes(e)&&u(`The parameter "${e}" is incompatible with toasts`)},en=e=>{const t=Jt(e);t&&m(e,t)},tn=e=>{!1===e.backdrop&&e.allowOutsideClick&&u('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&u(`Invalid theme "${e.theme}"`);for(const t in e)Gt(t),e.toast&&Qt(t),en(t)};function nn(e){const t=y(),n=C(),o=he.innerParams.get(this);if(!n||N(n,o.hideClass.popup))return void u("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const i=on(e),s=Object.assign({},o,i);tn(s),t&&(t.dataset.swal2Theme=s.theme),Fe(this,s),he.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const on=e=>{const t={};return Object.keys(e).forEach(n=>{if(Zt(n)){const o=e;t[n]=o[n]}else u(`Invalid parameter to update: ${n}`)}),t};function sn(){var e;const t=he.domCache.get(this),n=he.innerParams.get(this);n?(t.popup&&o.swalCloseEventFinishedCallback&&(o.swalCloseEventFinishedCallback(),delete o.swalCloseEventFinishedCallback),"function"==typeof n.didDestroy&&n.didDestroy(),null===(e=o.eventEmitter)||void 0===e||e.emit("didDestroy"),rn(this)):an(this)}const rn=e=>{an(e),delete e.params,delete o.keydownHandler,delete o.keydownTarget,delete o.currentInstance},an=e=>{e.isAwaitingPromise?(ln(he,e),e.isAwaitingPromise=!0):(ln(tt,e),ln(he,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},ln=(e,t)=>{for(const n in e)e[n].delete(t)};var cn=Object.freeze({__proto__:null,_destroy:sn,close:dt,closeModal:dt,closePopup:dt,closeToast:dt,disableButtons:Nt,disableInput:Rt,disableLoading:jt,enableButtons:qt,enableInput:_t,getInput:It,handleAwaitingPromise:ht,hideLoading:jt,rejectPromise:mt,resetValidationMessage:Ut,showValidationMessage:Ft,update:nn});const un=(e,t,n)=>{t.popup.onclick=()=>{e&&(dn(e)||e.timer||e.input)||n(ze.close)}},dn=e=>Boolean(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let pn=!1;const mn=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(pn=!0)}}},hn=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(pn=!0)}}},gn=(e,t,n)=>{t.container.onclick=o=>{pn?pn=!1:o.target===t.container&&h(e.allowOutsideClick)&&n(ze.backdrop)}},fn=e=>e instanceof Element||(e=>"object"==typeof e&&null!==e&&"jquery"in e)(e);const bn=()=>{if(o.timeout)return(()=>{const e=j();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${n}%`})(),o.timeout.stop()},yn=()=>{if(o.timeout){const e=o.timeout.start();return oe(e),e}};let vn=!1;const wn={};const Cn=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in wn){const n=t.getAttribute&&t.getAttribute(e);if(n)return void wn[e].fire({template:n})}};o.eventEmitter=new class{constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const n=this._getHandlersByEventName(e);n.includes(t)||n.push(t)}once(e,t){const n=(...o)=>{this.removeListener(e,n),t.apply(this,o)};this.on(e,n)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(e){console.error(e)}})}removeListener(e,t){const n=this._getHandlersByEventName(e),o=n.indexOf(t);o>-1&&n.splice(o,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}};var An=Object.freeze({__proto__:null,argsToParams:e=>{const t={};return"object"!=typeof e[0]||fn(e[0])?["title","html","icon"].forEach((n,o)=>{const i=e[o];"string"==typeof i||fn(i)?t[n]=i:void 0!==i&&d(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)}):Object.assign(t,e[0]),t},bindClickHandler:function(e="data-swal-template"){wn[e]=this,vn||(document.body.addEventListener("click",Cn),vn=!0)},clickCancel:()=>{var e;return null===(e=x())||void 0===e?void 0:e.click()},clickConfirm:Ue,clickDeny:()=>{var e;return null===(e=T())||void 0===e?void 0:e.click()},enableLoading:vt,fire:function(...e){return new this(...e)},getActions:O,getCancelButton:x,getCloseButton:H,getConfirmButton:P,getContainer:y,getDenyButton:T,getFocusableElements:I,getFooter:M,getHtmlContainer:k,getIcon:A,getIconContent:()=>w(r["icon-content"]),getImage:B,getInputLabel:()=>w(r["input-label"]),getLoader:S,getPopup:C,getProgressSteps:$,getTimerLeft:()=>o.timeout&&o.timeout.getTimerLeft(),getTimerProgressBar:j,getTitle:E,getValidationMessage:L,increaseTimer:e=>{if(o.timeout){const t=o.timeout.increase(e);return oe(t,!0),t}},isDeprecatedParameter:Jt,isLoading:()=>{const e=C();return!!e&&e.hasAttribute("data-loading")},isTimerRunning:()=>Boolean(o.timeout&&o.timeout.isRunning()),isUpdatableParameter:Zt,isValidParameter:Xt,isVisible:()=>ee(C()),mixin:function(e){return class extends(this){_main(t,n){return super._main(t,Object.assign({},e,n))}}},off:(e,t)=>{o.eventEmitter&&(e?t?o.eventEmitter.removeListener(e,t):o.eventEmitter.removeAllListeners(e):o.eventEmitter.reset())},on:(e,t)=>{o.eventEmitter&&o.eventEmitter.on(e,t)},once:(e,t)=>{o.eventEmitter&&o.eventEmitter.once(e,t)},resumeTimer:yn,showLoading:vt,stopTimer:bn,toggleTimer:()=>{const e=o.timeout;return e&&(e.running?bn():yn())}});class En{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const kn=["swal-title","swal-html","swal-footer"],Bn=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(e=>{Mn(e,["name","value"]);const n=e.getAttribute("name"),o=e.getAttribute("value");n&&o&&(t[n]=n in zt&&"boolean"==typeof zt[n]?"false"!==o:n in zt&&"object"==typeof zt[n]?JSON.parse(o):o)}),t},$n=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(e=>{const n=e.getAttribute("name"),o=e.getAttribute("value");n&&o&&(t[n]=new Function(`return ${o}`)())}),t},Ln=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(e=>{Mn(e,["type","color","aria-label"]);const n=e.getAttribute("type");if(n&&["confirm","cancel","deny"].includes(n)){if(t[`${n}ButtonText`]=e.innerHTML,t[`show${c(n)}Button`]=!0,e.hasAttribute("color")){const o=e.getAttribute("color");null!==o&&(t[`${n}ButtonColor`]=o)}if(e.hasAttribute("aria-label")){const o=e.getAttribute("aria-label");null!==o&&(t[`${n}ButtonAriaLabel`]=o)}}}),t},Pn=e=>{const t={},n=e.querySelector("swal-image");return n&&(Mn(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},xn=e=>{const t={},n=e.querySelector("swal-icon");return n&&(Mn(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Tn=e=>{const t={},n=e.querySelector("swal-input");n&&(Mn(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const o=Array.from(e.querySelectorAll("swal-input-option"));return o.length&&(t.inputOptions={},o.forEach(e=>{Mn(e,["value"]);const n=e.getAttribute("value");if(!n)return;const o=e.innerHTML;t.inputOptions[n]=o})),t},Sn=(e,t)=>{const n={};for(const o in t){const i=t[o],s=e.querySelector(i);s&&(Mn(s,[]),n[i.replace(/^swal-/,"")]=s.innerHTML.trim())}return n},On=e=>{const t=kn.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{const n=e.tagName.toLowerCase();t.includes(n)||u(`Unrecognized element <${n}>`)})},Mn=(e,t)=>{Array.from(e.attributes).forEach(n=>{-1===t.indexOf(n.name)&&u([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,""+(t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element.")])})},jn=e=>{var t,n;const i=y(),s=C();if(!i||!s)return;"function"==typeof e.willOpen&&e.willOpen(s),null===(t=o.eventEmitter)||void 0===t||t.emit("willOpen",s);const r=window.getComputedStyle(document.body).overflowY;if(Vn(i,s,e),setTimeout(()=>{In(i,s)},10),D()&&(Dn(i,void 0!==e.scrollbarPadding&&e.scrollbarPadding,r),(()=>{const e=y();Array.from(document.body.children).forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})})()),V()||o.previousActiveElement||(o.previousActiveElement=document.activeElement),"function"==typeof e.didOpen){const t=e.didOpen;setTimeout(()=>t(s))}null===(n=o.eventEmitter)||void 0===n||n.emit("didOpen",s)},Hn=e=>{const t=C();if(!t||e.target!==t)return;const n=y();n&&(t.removeEventListener("animationend",Hn),t.removeEventListener("transitionend",Hn),n.style.overflowY="auto",W(n,r["no-transition"]))},In=(e,t)=>{ne(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",Hn),t.addEventListener("transitionend",Hn)):e.style.overflowY="auto"},Dn=(e,t,n)=>{(()=>{if(ot&&!N(document.body,r.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",z(document.body,r.iosfix),it()}})(),t&&"hidden"!==n&&ct(n),setTimeout(()=>{e.scrollTop=0})},Vn=(e,t,n)=>{var o;null!==(o=n.showClass)&&void 0!==o&&o.backdrop&&z(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),X(t,"grid"),setTimeout(()=>{var e;null!==(e=n.showClass)&&void 0!==e&&e.popup&&z(t,n.showClass.popup),t.style.removeProperty("opacity")},10)):X(t,"grid"),z([document.documentElement,document.body],r.shown),n.heightAuto&&n.backdrop&&!n.toast&&z([document.documentElement,document.body],r["height-auto"])};var qn=(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),Nn=(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL");function _n(e){!function(e){e.inputValidator||("email"===e.input&&(e.inputValidator=qn),"url"===e.input&&(e.inputValidator=Nn))}(e),e.showLoaderOnConfirm&&!e.preConfirm&&u("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(u('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),re(e)}let Rn;var Fn=new WeakMap;class Un{constructor(...t){if(n(this,Fn,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),"undefined"==typeof window)return;Rn=this;const o=Object.freeze(this.constructor.argsToParams(t));var i,s,r;this.params=o,this.isAwaitingPromise=!1,i=Fn,s=this,r=this._main(Rn.params),i.set(e(i,s),r)}_main(e,t={}){if(tn(Object.assign({},t,e)),o.currentInstance){const e=tt.swalPromiseResolve.get(o.currentInstance),{isAwaitingPromise:t}=o.currentInstance;o.currentInstance._destroy(),t||e({isDismissed:!0}),D()&&nt()}o.currentInstance=Rn;const n=Wn(e,t);_n(n),Object.freeze(n),o.timeout&&(o.timeout.stop(),delete o.timeout),clearTimeout(o.restoreFocusTimeout);const i=Kn(Rn);return Fe(Rn,n),he.innerParams.set(Rn,n),zn(Rn,i,n)}then(e){return t(Fn,this).then(e)}finally(e){return t(Fn,this).finally(e)}}const zn=(e,t,n)=>new Promise((i,s)=>{const r=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};tt.swalPromiseResolve.set(e,i),tt.swalPromiseReject.set(e,s),t.confirmButton.onclick=()=>{(e=>{const t=he.innerParams.get(e);e.disableButtons(),t.input?Pt(e,"confirm"):Mt(e,!0)})(e)},t.denyButton.onclick=()=>{(e=>{const t=he.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Pt(e,"deny"):Tt(e,!1)})(e)},t.cancelButton.onclick=()=>{((e,t)=>
43{e.disableButtons(),t(ze.cancel)})(e,r)},t.closeButton.onclick=()=>{r(ze.close)},((e,t,n)=>{e.toast?un(e,t,n):(mn(t),hn(t),gn(e,t,n))})(n,t,r),((e,t,n)=>{if(We(e),!t.toast){const o=e=>Ze(t,e,n);e.keydownHandler=o;const i=t.keydownListenerCapture?window:C();if(i){e.keydownTarget=i,e.keydownListenerCapture=t.keydownListenerCapture;const n=o;e.keydownTarget.addEventListener("keydown",n,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}})(o,n,r),((e,t)=>{"select"===t.input||"radio"===t.input?kt(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(g(t.inputValue)||b(t.inputValue))&&(vt(P()),Bt(e,t))})(e,n),jn(n),Yn(o,n,r),Xn(t,n),setTimeout(()=>{t.container.scrollTop=0})}),Wn=(e,t)=>{const n=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return On(n),Object.assign(Bn(n),$n(n),Ln(n),Pn(n),xn(n),Tn(n),Sn(n,kn))})(e),o=Object.assign({},zt,t,n,e);return o.showClass=Object.assign({},zt.showClass,o.showClass),o.hideClass=Object.assign({},zt.hideClass,o.hideClass),!1===o.animation&&(o.showClass={backdrop:"swal2-noanimation"},o.hideClass={}),o},Kn=e=>{const t={popup:C(),container:y(),actions:O(),confirmButton:P(),denyButton:T(),cancelButton:x(),loader:S(),closeButton:H(),validationMessage:L(),progressSteps:$()};return he.domCache.set(e,t),t},Yn=(e,t,n)=>{const o=j();Z(o),t.timer&&(e.timeout=new En(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&o&&(X(o),_(o,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&oe(t.timer)})))},Xn=(e,t)=>{if(!t.toast)return h(t.allowEnterKey)?void(Zn(e)||Jn(e,t)||Ke(-1,1)):(m("allowEnterKey"),void Gn())},Zn=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const e of t)if(e instanceof HTMLElement&&ee(e))return e.focus(),!0;return!1},Jn=(e,t)=>t.focusDeny&&ee(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ee(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!ee(e.confirmButton))&&(e.confirmButton.focus(),!0),Gn=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};Un.prototype.disableButtons=Nt,Un.prototype.enableButtons=qt,Un.prototype.getInput=It,Un.prototype.disableInput=Rt,Un.prototype.enableInput=_t,Un.prototype.hideLoading=jt,Un.prototype.disableLoading=jt,Un.prototype.showValidationMessage=Ft,Un.prototype.resetValidationMessage=Ut,Un.prototype.close=dt,Un.prototype.closePopup=dt,Un.prototype.closeModal=dt,Un.prototype.closeToast=dt,Un.prototype.rejectPromise=mt,Un.prototype.update=nn,Un.prototype._destroy=sn,Object.assign(Un,An),Object.keys(cn).forEach(e=>{Un[e]=function(...t){if(Rn&&Rn[e])return Rn[e](...t)}}),Un.DismissReason=ze,Un.version="11.26.18";const Qn=Un;return Qn.default=Qn,Qn}),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2);!function(t,n,i,e){t=t||{};var o=Array.prototype.forEach?function(t,n,i){Array.prototype.forEach.call(t,n,i)}:function(t,n,i){for(var e=0,o=t.length;e<o;e++)e in t&&n.call(i,t[e],e,t)},s=Array.prototype.indexOf?function(t,n,i){return Array.prototype.indexOf.call(t,n,i)}:function(t,n,i){for(var e=i||0,o=t.length;e<o;e++)if(e in t&&t[e]===n)return e;return-1},r=Array.prototype.map?function(t,n,i){return Array.prototype.map.call(t,n,i)}:function(t,n,i){for(var e=t.length,o=new Array(e),s=0;s<e;s++)s in t&&(o[s]=n.call(i,t[s],s,t));return o},u=Array.prototype.filter?function(t,n,i){return Array.prototype.filter.call(t,n,i)}:function(t,n,i){for(var e,o=[],s=0,r=t.length;s<r;s++)e=t[s],s in t&&n.call(i,e,s,t)&&o.push(e);return o},a={};function h(t,n,i){if(t.addEventListener)t.addEventListener(n,i,!1);else if(t.attachEvent){var e=t.attachEvent("on"+n,i);a[e]={name:n,callback:i}}}function c(t,n,i){if(t.removeEventListener)t.removeEventListener(n,i,!1);else if(t.detachEvent)for(var e in a)a[e].name===n&&a[e].callback===i&&(t.detachEvent(e),delete a[e])}function m(t,n){var i,e=t.prototype,o=n.prototype;for(var s in o)e[s]=o[s];
43function r(t){var n=Array.prototype.slice.call(arguments,1);if(o[t])return o[t].apply(this,n)}e._super?(i=e._super,e._super=function(){i.call(this,arguments),r.call(this,arguments)}):e._super=r}function f(){this.onEvents={},this.onceEvents={}}function l(t){this._super("constructor"),this.id=t,this.lastPoint=null}function p(t){this._super("constructor"),this.fingers=t?r(t,function(t){return new l(t)}):[]}function d(t,n){return r(t,function(t){return{id:t.identifier,x:t.pageX,y:t.pageY,time:n}})}function v(t,n){return[{id:n,x:t.pageX,y:t.pageY,time:t.timeStamp}]}function y(t,n,i){for(var e in void 0===i&&(i=n,n=!1),"function"==typeof i&&(i={any:i}),H)if(e in i){var o=H[e](t,i[e]);for(var s in"function"==typeof o&&(o={any:o}),o)i[s]=s in i?function(t,n){return function(){t.call(this,arguments),n.call(this,arguments)}}(i[s],o[s]):o[s]}this.running=!1,this.elem=t,this.handleMouse=!!n,this.settings=i||{},this.mainHand=new p,this.multiHand=null,this.mouseID=null,this.start()}function g(t,n,i){return new y(t,n,i)}f.prototype.on=function(t,n){if(n){var i;if(t in this.onEvents){if(-1!=(i=s(this.onEvents[t],n)))return}else this.onEvents[t]=[];if(t in this.onceEvents)-1!=(i=s(this.onceEvents[t],n))&&this.onceEvents.splice(i,1);this.onEvents[t].push(n)}},f.prototype.once=function(t,n){if(n){var i;if(t in this.onceEvents){if(-1!=(i=s(this.onceEvents[t],n)))return}else this.onceEvents[t]=[];if(t in this.onEvents)-1!=(i=s(this.onEvents[t],n))&&this.onEvents.splice(i,1);this.onceEvents[t].push(n)}},f.prototype.off=function(t,n){if(n){var i;if(t in this.onEvents)if(-1!=(i=s(this.onEvents[t],n)))return void this.onEvents.splice(i,1);if(t in this.onceEvents)if(-1!=(i=s(this.onceEvents[t],n)))return void this.onceEvents.splice(i,1)}},f.prototype.trigger=function(t){for(var n,i=Array.prototype.slice.call(arguments,1),e=(this.onEvents[t]||[]).concat(this.onceEvents[t]||[]);n=e.shift();)n.apply(this,i)},m(l,f),m(p,f),p.prototype.get=function(t){var n;return o(this.fingers,function(i){i.id==t&&(n=i)}),n},y.prototype.start=function(){this.running||(this.running=!0,h(this.elem,"touchstart",this.touchstart()),h(this.elem,"touchmove",this.touchmove()),h(this.elem,"touchcancel",this.touchend()),h(this.elem,"touchend",this.touchend()),this.handleMouse&&(h(this.elem,"mousedown",this.mousedown()),h(this.elem,"mouseup",this.mouseup()),h(this.elem,"mouseout",this.mouseup()),h(this.elem,"mousemove",this.mousemove())))},y.prototype.stop=function(){this.running&&(this.running=!1,c(this.elem,"touchstart",this.touchstart()),c(this.elem,"touchmove",this.touchmove()),c(this.elem,"touchend",this.touchend()),c(this.elem,"touchcancel",this.touchend()),c(this.elem,"mousedown",this.mousedown()),c(this.elem,"mouseup",this.mouseup()),c(this.elem,"mouseout",this.mouseup()),c(this.elem,"mousemove",this.mousemove()))},y.prototype.touchstart=function(){if(!this._touchstart){var t=this;this._touchstart=function(n){var i=d(n.touches,n.timeStamp),e=d(n.changedTouches,n.timeStamp);t.mainHandStart(e),t.multiHandStart(e,i)}}return this._touchstart},y.prototype.touchmove=function(){if(!this._touchmove){var t=this;this._touchmove=function(n){var i=d(n.touches,n.timeStamp),e=d(n.changedTouches,n.timeStamp);t.mainHandMove(e),t.multiHandMove(e,i)}}return this._touchmove},y.prototype.touchend=function(){if(!this._touchend){var t=this;this._touchend=function(n){var i=d(n.touches,n.timeStamp),e=d(n.changedTouches,n.timeStamp);t.mainHandEnd(e),t.multiHandEnd(e,i)}}return this._touchend},y.prototype.mousedown=function(){if(!this._mousedown){var t=this;this._mousedown=function(n){var i;t.mouseID&&(i=v(n,t.mouseID),t.mainHandEnd(i),t.multiHandEnd(i,i),t.mouseID=null),t.mouseID=Math.random()+"",i=v(n,t.mouseID),t.mainHandStart(i),t.multiHandStart(i,i)}}return this._mousedown},y.prototype.mouseup=function(){if(!this._mouseup){var t=this;this._mouseup=function(n){if("mouseout"===n.type)for(var i=n.relatedTarget||n.toElement;i;){if(i===t.elem)return;i=i.parentNode}var e;t.mouseID&&(e=v(n,t.mouseID),t.mainHandEnd(e),t.multiHandEnd(e,e),t.mouseID=null)}}return this._mouseup},y.prototype.mousemove=function(){if(!this._mousemove){var t=this;this._mousemove=function(n){var i;t.mouseID&&(i=v(n,t.mouseID),t.mainHandMove(i),t.multiHandMove(i,i))}}return this._mousemove},y.prototype.mainHandStart=function(t){var n=this,i=[];o(t,function(t){var e=new l(t.id);
43e.lastPoint=t,i.push([e,t]),n.mainHand.fingers.push(e)}),o(i,function(t){n.settings.any&&n.settings.any.call(n,n.mainHand,t[0]),t[0].trigger("start",t[1])}),n.mainHand.trigger("start",t)},y.prototype.mainHandMove=function(t){var n=this,i=[];o(t,function(t){var e=n.mainHand.get(t.id);e&&(e.lastPoint=t,i.push([e,t]))}),o(i,function(t){t[0].trigger("move",t[1])}),n.mainHand.trigger("move",t)},y.prototype.mainHandEnd=function(t){var n=this,i=[];o(t,function(t){var e,o=n.mainHand.get(t.id);o&&(o.lastPoint=t,i.push([o,t]),e=s(n.mainHand.fingers,o),n.mainHand.fingers.splice(e,1))}),o(i,function(t){t[0].trigger("end",t[1])}),n.mainHand.trigger("end",t)},y.prototype.multiHandStart=function(t,n){this.multiHandDestroy(),this.multiHandRestart(n)},y.prototype.multiHandMove=function(t,n){var i=this,e=[];o(t,function(t){var n=i.multiHand.get(t.id);n&&(n.lastPoint=t,e.push([n,t]))}),o(e,function(t){t[0].trigger("move",t[1])}),i.multiHand.trigger("move",t)},y.prototype.multiHandEnd=function(t,n){this.multiHandDestroy();var i=u(n,function(n){var i=!0;return o(t,function(t){t.id==n.id&&(i=!1)}),i});this.multiHandRestart(i)},y.prototype.multiHandRestart=function(t){var n=this;if(0!=t.length){n.multiHand=new p;var i=[];o(t,function(t){var e=new l(t.id);e.lastPoint=t,i.push([e,t]),n.multiHand.fingers.push(e)});var e=n.settings[{1:"one",2:"two",3:"three",4:"four",5:"five"}[n.multiHand.fingers.length]];e&&e.apply(n,[n.multiHand].concat(n.multiHand.fingers)),o(i,function(t){t[0].trigger("start",t[1])}),n.multiHand.trigger("start",t)}},y.prototype.multiHandDestroy=function(){if(this.multiHand){var t=[];o(this.multiHand.fingers,function(n){var i=n.lastPoint;t.push(i),n.trigger("end",i)}),this.multiHand.trigger("end",t),this.multiHand=null}};var H={};g.plugin=function(t,n){if(t in H)throw"Touchy: "+t+" plugin already defined";H[t]=n};var E=function(t){t.preventDefault()};g.stopWindowBounce=function(){h(t,"touchmove",E)},g.startWindowBounce=function(){c(t,"touchmove",E)},t.Touchy=g,i&&i.extend(i.fn,{touchy:function(){var n=Array.prototype.slice.call(arguments);return this.forEach(function(i){var e=n.slice();e.unshift(this),g.apply(t,e)}),this}}),e&&(e.fn.touchy=function(){var n=Array.prototype.slice.call(arguments);this.each(function(){var i=n.slice();i.unshift(this),g.apply(t,i)})})}(window,document,window.Zepto,window.jQuery);!function(a){"use strict";function b(a){var b=a.length,d=c.type(a);return"function"!==d&&!c.isWindow(a)&&(!(1!==a.nodeType||!b)||("array"===d||0===b||"number"==typeof b&&b>0&&b-1 in a))}if(!a.jQuery){var c=function(a,b){return new c.fn.init(a,b)};c.isWindow=function(a){return a&&a===a.window},c.type=function(a){return a?"object"==typeof a||"function"==typeof a?e[g.call(a)]||"object":typeof a:a+""},c.isArray=Array.isArray||function(a){return"array"===c.type(a)},c.isPlainObject=function(a){var b;if(!a||"object"!==c.type(a)||a.nodeType||c.isWindow(a))return!1;try{if(a.constructor&&!f.call(a,"constructor")&&!f.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(d){return!1}for(b in a);return void 0===b||f.call(a,b)},c.each=function(a,c,d){var e,f=0,g=a.length,h=b(a);if(d){if(h)for(;f<g&&(e=c.apply(a[f],d),e!==!1);f++);else for(f in a)if(e=c.apply(a[f],d),e===!1)break}else if(h)for(;f<g&&(e=c.call(a[f],f,a[f]),e!==!1);f++);else for(f in a)if(e=c.call(a[f],f,a[f]),e===!1)break;return a},c.data=function(a,b,e){if(void 0===e){var f=a[c.expando],g=f&&d[f];if(void 0===b)return g;if(g&&b in g)return g[b]}else if(void 0!==b){var h=a[c.expando]||(a[c.expando]=++c.uuid);return d[h]=d[h]||{},d[h][b]=e,e}},c.removeData=function(a,b){var e=a[c.expando],f=e&&d[e];f&&(b?c.each(b,function(a,b){delete f[b]}):delete d[e])},c.extend=function(){var a,b,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;for("boolean"==typeof h&&(k=h,h=arguments[i]||{},i++),"object"!=typeof h&&"function"!==c.type(h)&&(h={}),i===j&&(h=this,i--);i<j;i++)if(f=arguments[i])for(e in f)a=h[e],d=f[e],h!==d&&(k&&d&&(c.isPlainObject(d)||(b=c.isArray(d)))?(b?(b=!1,g=a&&c.isArray(a)?a:[]):g=a&&c.isPlainObject(a)?a:{},h[e]=c.extend(k,g,d)):void 0!==d&&(h[e]=d));return h},c.queue=function(a,d,e){function f(a,c){var d=c||[];return a&&(b(Object(a))?!function(a,b){for(var c=+b.length,d=0,e=a.length;d<c;)a[e++]=b[d++];if(c!==c)for(;void 0!==b[d];)a[e++]=b[d++];return a.length=e,a}(d,"string"==typeof a?[a]:a):[].push.call(d,a)),d}if(a){d=(d||"fx")+"queue";var g=c.data(a,d);return e?(!g||c.isArray(e)?g=c.data(a,d,f(e)):g.push(e),g):g||[]}},c.dequeue=function(a,b){c.each(a.nodeType?[a]:a,function(a,d){b=b||"fx";var e=c.queue(d,b),f=e.shift();"inprogress"===f&&(f=e.shift()),f&&("fx"===b&&e.unshift("inprogress"),f.call(d,function(){c.dequeue(d,b)}))})}
43,c.fn=c.prototype={init:function(a){if(a.nodeType)return this[0]=a,this;throw new Error("Not a DOM node.")},offset:function(){var b=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:b.top+(a.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:b.left+(a.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function a(a){for(var b=a.offsetParent||document;b&&"html"!==b.nodeType.toLowerCase&&"static"===b.style.position;)b=b.offsetParent;return b||document}var b=this[0],d=a(b),e=this.offset(),f=/^(?:body|html)$/i.test(d.nodeName)?{top:0,left:0}:c(d).offset();return e.top-=parseFloat(b.style.marginTop)||0,e.left-=parseFloat(b.style.marginLeft)||0,d.style&&(f.top+=parseFloat(d.style.borderTopWidth)||0,f.left+=parseFloat(d.style.borderLeftWidth)||0),{top:e.top-f.top,left:e.left-f.left}}};var d={};c.expando="velocity"+(new Date).getTime(),c.uuid=0;for(var e={},f=e.hasOwnProperty,g=e.toString,h="Boolean Number String Function Array Date RegExp Object Error".split(" "),i=0;i<h.length;i++)e["[object "+h[i]+"]"]=h[i].toLowerCase();c.fn.init.prototype=c.fn,a.Velocity={Utilities:c}}}(window),function(a){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a():"function"==typeof define&&define.amd?define(a):a()}(function(){"use strict";return function(a,b,c,d){function e(a){for(var b=-1,c=a?a.length:0,d=[];++b<c;){var e=a[b];e&&d.push(e)}return d}function f(a){return p.isWrapped(a)?a=[].slice.call(a):p.isNode(a)&&(a=[a]),a}function g(a){var b=m.data(a,"velocity");return null===b?d:b}function h(a){return function(b){return Math.round(b*a)*(1/a)}}function i(a,c,d,e){function f(a,b){return 1-3*b+3*a}function g(a,b){return 3*b-6*a}function h(a){return 3*a}function i(a,b,c){return((f(b,c)*a+g(b,c))*a+h(b))*a}function j(a,b,c){return 3*f(b,c)*a*a+2*g(b,c)*a+h(b)}function k(b,c){for(var e=0;e<p;++e){var f=j(c,a,d);if(0===f)return c;var g=i(c,a,d)-b;c-=g/f}return c}function l(){for(var b=0;b<t;++b)x[b]=i(b*u,a,d)}function m(b,c,e){var f,g,h=0;do g=c+(e-c)/2,f=i(g,a,d)-b,f>0?e=g:c=g;while(Math.abs(f)>r&&++h<s);return g}function n(b){for(var c=0,e=1,f=t-1;e!==f&&x[e]<=b;++e)c+=u;--e;var g=(b-x[e])/(x[e+1]-x[e]),h=c+g*u,i=j(h,a,d);return i>=q?k(b,h):0===i?h:m(b,c,c+u)}function o(){y=!0,a===c&&d===e||l()}var p=4,q=.001,r=1e-7,s=10,t=11,u=1/(t-1),v="Float32Array"in b;if(4!==arguments.length)return!1;for(var w=0;w<4;++w)if("number"!=typeof arguments[w]||isNaN(arguments[w])||!isFinite(arguments[w]))return!1;a=Math.min(a,1),d=Math.min(d,1),a=Math.max(a,0),d=Math.max(d,0);var x=v?new Float32Array(t):new Array(t),y=!1,z=function(b){return y||o(),a===c&&d===e?b:0===b?0:1===b?1:i(n(b),c,e)};z.getControlPoints=function(){return[{x:a,y:c},{x:d,y:e}]};var A="generateBezier("+[a,c,d,e]+")";return z.toString=function(){return A},z}function j(a,b){var c=a;return p.isString(a)?t.Easings[a]||(c=!1):c=p.isArray(a)&&1===a.length?h.apply(null,a):p.isArray(a)&&2===a.length?u.apply(null,a.concat([b])):!(!p.isArray(a)||4!==a.length)&&i.apply(null,a),c===!1&&(c=t.Easings[t.defaults.easing]?t.defaults.easing:s),c}function k(a){if(a){var b=(new Date).getTime(),c=t.State.calls.length;c>1e4&&(t.State.calls=e(t.State.calls),c=t.State.calls.length);for(var f=0;f<c;f++)if(t.State.calls[f]){var h=t.State.calls[f],i=h[0],j=h[2],n=h[3],o=!!n,q=null;n||(n=t.State.calls[f][3]=b-16);for(var r=Math.min((b-n)/j.duration,1),s=0,u=i.length;s<u;s++){var w=i[s],y=w.element;if(g(y)){var z=!1;if(j.display!==d&&null!==j.display&&"none"!==j.display){if("flex"===j.display){var A=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];m.each(A,function(a,b){v.setPropertyValue(y,"display",b)})}v.setPropertyValue(y,"display",j.display)}j.visibility!==d&&"hidden"!==j.visibility&&v.setPropertyValue(y,"visibility",j.visibility);for(var B in w)if("element"!==B){var C,D=w[B],E=p.isString(D.easing)?t.Easings[D.easing]:D.easing;if(1===r)C=D.endValue;else{var F=D.endValue-D.startValue;if(C=D.startValue+F*E(r,j,F),!o&&C===D.currentValue)continue}if(D.currentValue=C,"tween"===B)q=C;else{var G;if(v.Hooks.registered[B]){G=v.Hooks.getRoot(B);var H=g(y).rootPropertyValueCache[G];H&&(D.rootPropertyValue=H)}var I=v.setPropertyValue(y,B,D.currentValue+(0===parseFloat(C)?"":D.unitType),D.rootPropertyValue,D.scrollData);v.Hooks.registered[B]&&(v.Normalizations.registered[G]?g(y).rootPropertyValueCache[G]=v.Normalizations.registered[G]("extract",null,I[1]):g(y).rootPropertyValueCache[G]=I[1]),"transform"===I[0]&&(z=!0)}}j.mobileHA&&g(y).transformCache.translate3d===d&&(g(y).transformCache.translate3d="(0px, 0px, 0px)",z=!0),z&&v.flushTransformCache(y)}}j.display!==d&&"none"!==j.display&&(t.State.calls[f][2].display=!1),j.visibility!==d&&"hidden"
43!==j.visibility&&(t.State.calls[f][2].visibility=!1),j.progress&&j.progress.call(h[1],h[1],r,Math.max(0,n+j.duration-b),n,q),1===r&&l(f)}}t.State.isTicking&&x(k)}function l(a,b){if(!t.State.calls[a])return!1;for(var c=t.State.calls[a][0],e=t.State.calls[a][1],f=t.State.calls[a][2],h=t.State.calls[a][4],i=!1,j=0,k=c.length;j<k;j++){var l=c[j].element;b||f.loop||("none"===f.display&&v.setPropertyValue(l,"display",f.display),"hidden"===f.visibility&&v.setPropertyValue(l,"visibility",f.visibility));var n=g(l);if(f.loop!==!0&&(m.queue(l)[1]===d||!/\.velocityQueueEntryFlag/i.test(m.queue(l)[1]))&&n){n.isAnimating=!1,n.rootPropertyValueCache={};var o=!1;m.each(v.Lists.transforms3D,function(a,b){var c=/^scale/.test(b)?1:0,e=n.transformCache[b];n.transformCache[b]!==d&&new RegExp("^\\("+c+"[^.]").test(e)&&(o=!0,delete n.transformCache[b])}),f.mobileHA&&(o=!0,delete n.transformCache.translate3d),o&&v.flushTransformCache(l),v.Values.removeClass(l,"velocity-animating")}if(!b&&f.complete&&!f.loop&&j===k-1)try{f.complete.call(e,e)}catch(p){setTimeout(function(){throw p},1)}h&&f.loop!==!0&&h(e),n&&f.loop===!0&&!b&&(m.each(n.tweensContainer,function(a,b){if(/^rotate/.test(a)&&(parseFloat(b.startValue)-parseFloat(b.endValue))%360===0){var c=b.startValue;b.startValue=b.endValue,b.endValue=c}/^backgroundPosition/.test(a)&&100===parseFloat(b.endValue)&&"%"===b.unitType&&(b.endValue=0,b.startValue=100)}),t(l,"reverse",{loop:!0,delay:f.delay})),f.queue!==!1&&m.dequeue(l,f.queue)}t.State.calls[a]=!1;for(var q=0,r=t.State.calls.length;q<r;q++)if(t.State.calls[q]!==!1){i=!0;break}i===!1&&(t.State.isTicking=!1,delete t.State.calls,t.State.calls=[])}var m,n=function(){if(c.documentMode)return c.documentMode;for(var a=7;a>4;a--){var b=c.createElement("div");if(b.innerHTML="<!--[if IE "+a+"]><span></span><![endif]-->",b.getElementsByTagName("span").length)return b=null,a}return d}(),o=function(){var a=0;return b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||function(b){var c,d=(new Date).getTime();return c=Math.max(0,16-(d-a)),a=d+c,setTimeout(function(){b(d+c)},c)}}(),p={isString:function(a){return"string"==typeof a},isArray:Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},isFunction:function(a){return"[object Function]"===Object.prototype.toString.call(a)},isNode:function(a){return a&&a.nodeType},isNodeList:function(a){return"object"==typeof a&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(a))&&a.length!==d&&(0===a.length||"object"==typeof a[0]&&a[0].nodeType>0)},isWrapped:function(a){return a&&(a.jquery||b.Zepto&&b.Zepto.zepto.isZ(a))},isSVG:function(a){return b.SVGElement&&a instanceof b.SVGElement},isEmptyObject:function(a){for(var b in a)return!1;return!0}},q=!1;if(a.fn&&a.fn.jquery?(m=a,q=!0):m=b.Velocity.Utilities,n<=8&&!q)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(n<=7)return void(jQuery.fn.velocity=jQuery.fn.animate);var r=400,s="swing",t={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:b.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:c.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:m,Redirects:{},Easings:{},Promise:b.Promise,defaults:{queue:"",duration:r,easing:s,begin:d,complete:d,progress:d,display:d,visibility:d,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(a){m.data(a,"velocity",{isSVG:p.isSVG(a),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:3,patch:0},debug:!1};b.pageYOffset!==d?(t.State.scrollAnchor=b,t.State.scrollPropertyLeft="pageXOffset",t.State.scrollPropertyTop="pageYOffset"):(t.State.scrollAnchor=c.documentElement||c.body.parentNode||c.body,t.State.scrollPropertyLeft="scrollLeft",t.State.scrollPropertyTop="scrollTop");var u=function(){function a(a){return-a.tension*a.x-a.friction*a.v}function b(b,c,d){var e={x:b.x+d.dx*c,v:b.v+d.dv*c,tension:b.tension,friction:b.friction};return{dx:e.v,dv:a(e)}}function c(c,d){var e={dx:c.v,dv:a(c)},f=b(c,.5*d,e),g=b(c,.5*d,f),h=b(c,d,g),i=1/6*(e.dx+2*(f.dx+g.dx)+h.dx),j=1/6*(e.dv+2*(f.dv+g.dv)+h.dv);return c.x=c.x+i*d,c.v=c.v+j*d,c}return function d(a,b,e){var f,g,h,i={x:-1,v:0,tension:null,friction:null},j=[0],k=0,l=1e-4,m=.016;for(a=parseFloat(a)||500,b=parseFloat(b)||20,e=e||null,i.tension=a,i.friction=b,f=null!==e,f?(k=d(a,b),g=k/e*m):g=m;;)if(h=c(h||i,g),j.push(1+h.x),k+=16,!(Math.abs(h.x)>l&&Math.abs(h.v)>l))break;return f?function(a){return j[a*(j.length-1)|0]}:k}}();
vendor: 5,320 bytes, line 43
43t.Easings={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},spring:function(a){return 1-Math.cos(4.5*a*Math.PI)*Math.exp(6*-a)}},m.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(a,b){t.Easings[b[0]]=i.apply(null,b[1])});var v=t.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var a=0;a<v.Lists.colors.length;a++){var b="color"===v.Lists.colors[a]?"0 0 0 1":"255 255 255 1";v.Hooks.templates[v.Lists.colors[a]]=["Red Green Blue Alpha",b]}var c,d,e;if(n)for(c in v.Hooks.templates){d=v.Hooks.templates[c],e=d[0].split(" ");var f=d[1].match(v.RegEx.valueSplit);"Color"===e[0]&&(e.push(e.shift()),f.push(f.shift()),v.Hooks.templates[c]=[e.join(" "),f.join(" ")])}for(c in v.Hooks.templates){d=v.Hooks.templates[c],e=d[0].split(" ");for(var g in e){var h=c+e[g],i=g;v.Hooks.registered[h]=[c,i]}}},getRoot:function(a){var b=v.Hooks.registered[a];return b?b[0]:a},cleanRootPropertyValue:function(a,b){return v.RegEx.valueUnwrap.test(b)&&(b=b.match(v.RegEx.valueUnwrap)[1]),v.Values.isCSSNullValue(b)&&(b=v.Hooks.templates[a][1]),b},extractValue:function(a,b){var c=v.Hooks.registered[a];if(c){var d=c[0],e=c[1];return b=v.Hooks.cleanRootPropertyValue(d,b),b.toString().match(v.RegEx.valueSplit)[e]}return b},injectValue:function(a,b,c){var d=v.Hooks.registered[a];if(d){var e,f,g=d[0],h=d[1];return c=v.Hooks.cleanRootPropertyValue(g,c),e=c.toString().match(v.RegEx.valueSplit),e[h]=b,f=e.join(" ")}return c}},Normalizations:{registered:{clip:function(a,b,c){switch(a){case"name":return"clip";case"extract":var d;return v.RegEx.wrappedValueAlreadyExtracted.test(c)?d=c:(d=c.toString().match(v.RegEx.valueUnwrap),d=d?d[1].replace(/,(\s+)?/g," "):c),d;case"inject":return"rect("+c+")"}},blur:function(a,b,c){switch(a){case"name":return t.State.isFirefox?"filter":"-webkit-filter";case"extract":var d=parseFloat(c);if(!d&&0!==d){var e=c.toString().match(/blur\(([0-9]+[A-z]+)\)/i);d=e?e[1]:0}return d;case"inject":return parseFloat(c)?"blur("+c+")":"none"}},opacity:function(a,b,c){if(n<=8)switch(a){case"name":return"filter";case"extract":var d=c.toString().match(/alpha\(opacity=(.*)\)/i);return c=d?d[1]/100:1;case"inject":return b.style.zoom=1,parseFloat(c)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(c),10)+")"}else switch(a){case"name":return"opacity";case"extract":return c;case"inject":return c}}},register:function(){n&&!(n>9)||t.State.isGingerbread||(v.Lists.transformsBase=v.Lists.transformsBase.concat(v.Lists.transforms3D));for(var a=0;a<v.Lists.transformsBase.length;a++)!function(){var b=v.Lists.transformsBase[a];v.Normalizations.registered[b]=function(a,c,e){switch(a){case"name":return"transform";case"extract":return g(c)===d||g(c).transformCache[b]===d?/^scale/i.test(b)?1:0:g(c).transformCache[b].replace(/[()]/g,"");case"inject":var f=!1;switch(b.substr(0,b.length-1)){case"translate":f=!/(%|px|em|rem|vw|vh|\d)$/i.test(e);break;case"scal":case"scale":t.State.isAndroid&&g(c).transformCache[b]===d&&e<1&&(e=1),f=!/(\d)$/i.test(e);break;case"skew":f=!/(deg|\d)$/i.test(e);break;case"rotate":f=!/(deg|\d)$/i.test(e)}return f||(g(c).transformCache[b]="("+e+")"),g(c).transformCache[b]}}}();for(var b=0;b<v.Lists.colors.length;b++)!function(){var a=v.Lists.colors[b];v.Normalizations.registered[a]=function(b,c,e){switch(b){case"name":return a;case"extract":var f;if(v.RegEx.wrappedValueAlreadyExtracted.test(e))f=e;else{var g,h={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(e)?g=h[e]!==d?h[e]:h.black:v.RegEx.isHex.test(e)?g="rgb("+v.Values.hexToRgb(e).join(" ")+")":/^rgba?\(/i.test(e)||(g=h.black),f=(g||e).toString().match(v.RegEx.valueUnwrap
vendor: 4,718 bytes, line 43
43)[1].replace(/,(\s+)?/g," ")}return(!n||n>8)&&3===f.split(" ").length&&(f+=" 1"),f;case"inject":return n<=8?4===e.split(" ").length&&(e=e.split(/\s+/).slice(0,3).join(" ")):3===e.split(" ").length&&(e+=" 1"),(n<=8?"rgb":"rgba")+"("+e.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(a){return a.replace(/-(\w)/g,function(a,b){return b.toUpperCase()})},SVGAttribute:function(a){var b="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(n||t.State.isAndroid&&!t.State.isChrome)&&(b+="|transform"),new RegExp("^("+b+")$","i").test(a)},prefixCheck:function(a){if(t.State.prefixMatches[a])return[t.State.prefixMatches[a],!0];for(var b=["","Webkit","Moz","ms","O"],c=0,d=b.length;c<d;c++){var e;if(e=0===c?a:b[c]+a.replace(/^\w/,function(a){return a.toUpperCase()}),p.isString(t.State.prefixElement.style[e]))return t.State.prefixMatches[a]=e,[e,!0]}return[a,!1]}},Values:{hexToRgb:function(a){var b,c=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,d=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return a=a.replace(c,function(a,b,c,d){return b+b+c+c+d+d}),b=d.exec(a),b?[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]:[0,0,0]},isCSSNullValue:function(a){return!a||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(a)},getUnitType:function(a){return/^(rotate|skew)/i.test(a)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(a)?"":"px"},getDisplayType:function(a){var b=a&&a.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(b)?"inline":/^(li)$/i.test(b)?"list-item":/^(tr)$/i.test(b)?"table-row":/^(table)$/i.test(b)?"table":/^(tbody)$/i.test(b)?"table-row-group":"block"},addClass:function(a,b){a.classList?a.classList.add(b):a.className+=(a.className.length?" ":"")+b},removeClass:function(a,b){a.classList?a.classList.remove(b):a.className=a.className.toString().replace(new RegExp("(^|\\s)"+b.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(a,c,e,f){function h(a,c){var e=0;if(n<=8)e=m.css(a,c);else{var i=!1;/^(width|height)$/.test(c)&&0===v.getPropertyValue(a,"display")&&(i=!0,v.setPropertyValue(a,"display",v.Values.getDisplayType(a)));var j=function(){i&&v.setPropertyValue(a,"display","none")};if(!f){if("height"===c&&"border-box"!==v.getPropertyValue(a,"boxSizing").toString().toLowerCase()){var k=a.offsetHeight-(parseFloat(v.getPropertyValue(a,"borderTopWidth"))||0)-(parseFloat(v.getPropertyValue(a,"borderBottomWidth"))||0)-(parseFloat(v.getPropertyValue(a,"paddingTop"))||0)-(parseFloat(v.getPropertyValue(a,"paddingBottom"))||0);return j(),k}if("width"===c&&"border-box"!==v.getPropertyValue(a,"boxSizing").toString().toLowerCase()){var l=a.offsetWidth-(parseFloat(v.getPropertyValue(a,"borderLeftWidth"))||0)-(parseFloat(v.getPropertyValue(a,"borderRightWidth"))||0)-(parseFloat(v.getPropertyValue(a,"paddingLeft"))||0)-(parseFloat(v.getPropertyValue(a,"paddingRight"))||0);return j(),l}}var o;o=g(a)===d?b.getComputedStyle(a,null):g(a).computedStyle?g(a).computedStyle:g(a).computedStyle=b.getComputedStyle(a,null),"borderColor"===c&&(c="borderTopColor"),e=9===n&&"filter"===c?o.getPropertyValue(c):o[c],""!==e&&null!==e||(e=a.style[c]),j()}if("auto"===e&&/^(top|right|bottom|left)$/i.test(c)){var p=h(a,"position");("fixed"===p||"absolute"===p&&/top|left/i.test(c))&&(e=m(a).position()[c]+"px")}return e}var i;if(v.Hooks.registered[c]){var j=c,k=v.Hooks.getRoot(j);e===d&&(e=v.getPropertyValue(a,v.Names.prefixCheck(k)[0])),v.Normalizations.registered[k]&&(e=v.Normalizations.registered[k]("extract",a,e)),i=v.Hooks.extractValue(j,e)}else if(v.Normalizations.registered[c]){var l,o;l=v.Normalizations.registered[c]("name",a),"transform"!==l&&(o=h(a,v.Names.prefixCheck(l)[0]),v.Values.isCSSNullValue(o)&&v.Hooks.templates[c]&&(o=v.Hooks.templates[c][1])),i=v.Normalizations.registered[c]("extract",a,o)}if(!/^[\d-]/.test(i)){var p=g(a);if(p&&p.isSVG&&v.Names.SVGAttribute(c))if(/^(height|width)$/i.test(c))try{i=a.getBBox()[c]}catch(q){i=0}else i=a.getAttribute(c);else i=h(a,v.Names.prefixCheck(c)[0])}return v.Values.isCSSNullValue(i)&&(i=0),t.debug>=2&&console.log("Get "+c+": "+i),i},setPropertyValue:function(a,c,d,e,f){var h=c;if("scroll"===c)f.container?f.container["scroll"+f.direction]=d:"Left"===f.direction?b.scrollTo(d,f.alternateValue):b.scrollTo(f.alternateValue,d);else if(v.Normalizations.registered[c]&&"transform"===v.Normalizations.registered[c]("name",a))v.Normalizations.registered[c]("inject",a,d),h="transform",d=g(a).transformCache[c];else{if(v.Hooks.registered[c]){var i=c,j=v.Hooks.getRoot(c);
43e=e||v.getPropertyValue(a,j),d=v.Hooks.injectValue(i,d,e),c=j}if(v.Normalizations.registered[c]&&(d=v.Normalizations.registered[c]("inject",a,d),c=v.Normalizations.registered[c]("name",a)),h=v.Names.prefixCheck(c)[0],n<=8)try{a.style[h]=d}catch(k){t.debug&&console.log("Browser does not support ["+d+"] for ["+h+"]")}else{var l=g(a);l&&l.isSVG&&v.Names.SVGAttribute(c)?a.setAttribute(c,d):a.style[h]=d}t.debug>=2&&console.log("Set "+c+" ("+h+"): "+d)}return[h,d]},flushTransformCache:function(a){var b="",c=g(a);if((n||t.State.isAndroid&&!t.State.isChrome)&&c&&c.isSVG){var d=function(b){return parseFloat(v.getPropertyValue(a,b))},e={translate:[d("translateX"),d("translateY")],skewX:[d("skewX")],skewY:[d("skewY")],scale:1!==d("scale")?[d("scale"),d("scale")]:[d("scaleX"),d("scaleY")],rotate:[d("rotateZ"),0,0]};m.each(g(a).transformCache,function(a){/^translate/i.test(a)?a="translate":/^scale/i.test(a)?a="scale":/^rotate/i.test(a)&&(a="rotate"),e[a]&&(b+=a+"("+e[a].join(" ")+") ",delete e[a])})}else{var f,h;m.each(g(a).transformCache,function(c){return f=g(a).transformCache[c],"transformPerspective"===c?(h=f,!0):(9===n&&"rotateZ"===c&&(c="rotate"),void(b+=c+f+" "))}),h&&(b="perspective"+h+" "+b)}v.setPropertyValue(a,"transform",b)}};v.Hooks.register(),v.Normalizations.register(),t.hook=function(a,b,c){var e;return a=f(a),m.each(a,function(a,f){if(g(f)===d&&t.init(f),c===d)e===d&&(e=t.CSS.getPropertyValue(f,b));else{var h=t.CSS.setPropertyValue(f,b,c);"transform"===h[0]&&t.CSS.flushTransformCache(f),e=h}}),e};var w=function(){function a(){return i?C.promise||null:n}function e(a,e){function f(f){var n,o;if(i.begin&&0===z)try{i.begin.call(q,q)}catch(r){setTimeout(function(){throw r},1)}if("scroll"===D){var w,x,A,B=/^x$/i.test(i.axis)?"Left":"Top",E=parseFloat(i.offset)||0;i.container?p.isWrapped(i.container)||p.isNode(i.container)?(i.container=i.container[0]||i.container,w=i.container["scroll"+B],A=w+m(a).position()[B.toLowerCase()]+E):i.container=null:(w=t.State.scrollAnchor[t.State["scrollProperty"+B]],x=t.State.scrollAnchor[t.State["scrollProperty"+("Left"===B?"Top":"Left")]],A=m(a).offset()[B.toLowerCase()]+E),l={scroll:{rootPropertyValue:!1,startValue:w,currentValue:w,endValue:A,unitType:"",easing:i.easing,scrollData:{container:i.container,direction:B,alternateValue:x}},element:a},t.debug&&console.log("tweensContainer (scroll): ",l.scroll,a)}else if("reverse"===D){if(n=g(a),!n)return;if(!n.tweensContainer)return void m.dequeue(a,i.queue);"none"===n.opts.display&&(n.opts.display="auto"),"hidden"===n.opts.visibility&&(n.opts.visibility="visible"),n.opts.loop=!1,n.opts.begin=null,n.opts.complete=null,u.easing||delete i.easing,u.duration||delete i.duration,i=m.extend({},n.opts,i),o=m.extend(!0,{},n?n.tweensContainer:null);for(var F in o)if("element"!==F){var G=o[F].startValue;o[F].startValue=o[F].currentValue=o[F].endValue,o[F].endValue=G,p.isEmptyObject(u)||(o[F].easing=i.easing),t.debug&&console.log("reverse tweensContainer ("+F+"): "+JSON.stringify(o[F]),a)}l=o}else if("start"===D){n=g(a),n&&n.tweensContainer&&n.isAnimating===!0&&(o=n.tweensContainer);var H=function(b,c){var f,g,h;return p.isArray(b)?(f=b[0],!p.isArray(b[1])&&/^[\d-]/.test(b[1])||p.isFunction(b[1])||v.RegEx.isHex.test(b[1])?h=b[1]:(p.isString(b[1])&&!v.RegEx.isHex.test(b[1])||p.isArray(b[1]))&&(g=c?b[1]:j(b[1],i.duration),b[2]!==d&&(h=b[2]))):f=b,c||(g=g||i.easing),p.isFunction(f)&&(f=f.call(a,e,y)),p.isFunction(h)&&(h=h.call(a,e,y)),[f||0,g,h]};m.each(s,function(a,b){if(RegExp("^"+v.Lists.colors.join("$|^")+"$").test(v.Names.camelCase(a))){var c=H(b,!0),e=c[0],f=c[1],g=c[2];if(v.RegEx.isHex.test(e)){for(var h=["Red","Green","Blue"],i=v.Values.hexToRgb(e),j=g?v.Values.hexToRgb(g):d,k=0;k<h.length;k++){var l=[i[k]];f&&l.push(f),j!==d&&l.push(j[k]),s[v.Names.camelCase(a)+h[k]]=l}delete s[a]}}});for(var K in s){var L=H(s[K]),M=L[0],N=L[1],O=L[2];K=v.Names.camelCase(K);var P=v.Hooks.getRoot(K),Q=!1;if(n&&n.isSVG||"tween"===P||v.Names.prefixCheck(P)[1]!==!1||v.Normalizations.registered[P]!==d){(i.display!==d&&null!==i.display&&"none"!==i.display||i.visibility!==d&&"hidden"
vendor: 5,105 bytes, line 43
43!==i.visibility)&&/opacity|filter/.test(K)&&!O&&0!==M&&(O=0),i._cacheValues&&o&&o[K]?(O===d&&(O=o[K].endValue+o[K].unitType),Q=n.rootPropertyValueCache[P]):v.Hooks.registered[K]?O===d?(Q=v.getPropertyValue(a,P),O=v.getPropertyValue(a,K,Q)):Q=v.Hooks.templates[P][1]:O===d&&(O=v.getPropertyValue(a,K));var R,S,T,U=!1,V=function(a,b){var c,d;return d=(b||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(a){return c=a,""}),c||(c=v.Values.getUnitType(a)),[d,c]};R=V(K,O),O=R[0],T=R[1],R=V(K,M),M=R[0].replace(/^([+-\/*])=/,function(a,b){return U=b,""}),S=R[1],O=parseFloat(O)||0,M=parseFloat(M)||0,"%"===S&&(/^(fontSize|lineHeight)$/.test(K)?(M/=100,S="em"):/^scale/.test(K)?(M/=100,S=""):/(Red|Green|Blue)$/i.test(K)&&(M=M/100*255,S=""));var W=function(){var d={myParent:a.parentNode||c.body,position:v.getPropertyValue(a,"position"),fontSize:v.getPropertyValue(a,"fontSize")},e=d.position===I.lastPosition&&d.myParent===I.lastParent,f=d.fontSize===I.lastFontSize;I.lastParent=d.myParent,I.lastPosition=d.position,I.lastFontSize=d.fontSize;var g=100,h={};if(f&&e)h.emToPx=I.lastEmToPx,h.percentToPxWidth=I.lastPercentToPxWidth,h.percentToPxHeight=I.lastPercentToPxHeight;else{var i=n&&n.isSVG?c.createElementNS("http://www.w3.org/2000/svg","rect"):c.createElement("div");t.init(i),d.myParent.appendChild(i),m.each(["overflow","overflowX","overflowY"],function(a,b){t.CSS.setPropertyValue(i,b,"hidden")}),t.CSS.setPropertyValue(i,"position",d.position),t.CSS.setPropertyValue(i,"fontSize",d.fontSize),t.CSS.setPropertyValue(i,"boxSizing","content-box"),m.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(a,b){t.CSS.setPropertyValue(i,b,g+"%")}),t.CSS.setPropertyValue(i,"paddingLeft",g+"em"),h.percentToPxWidth=I.lastPercentToPxWidth=(parseFloat(v.getPropertyValue(i,"width",null,!0))||1)/g,h.percentToPxHeight=I.lastPercentToPxHeight=(parseFloat(v.getPropertyValue(i,"height",null,!0))||1)/g,h.emToPx=I.lastEmToPx=(parseFloat(v.getPropertyValue(i,"paddingLeft"))||1)/g,d.myParent.removeChild(i)}return null===I.remToPx&&(I.remToPx=parseFloat(v.getPropertyValue(c.body,"fontSize"))||16),null===I.vwToPx&&(I.vwToPx=parseFloat(b.innerWidth)/100,I.vhToPx=parseFloat(b.innerHeight)/100),h.remToPx=I.remToPx,h.vwToPx=I.vwToPx,h.vhToPx=I.vhToPx,t.debug>=1&&console.log("Unit ratios: "+JSON.stringify(h),a),h};if(/[\/*]/.test(U))S=T;else if(T!==S&&0!==O)if(0===M)S=T;else{h=h||W();var X=/margin|padding|left|right|width|text|word|letter/i.test(K)||/X$/.test(K)||"x"===K?"x":"y";switch(T){case"%":O*="x"===X?h.percentToPxWidth:h.percentToPxHeight;break;case"px":break;default:O*=h[T+"ToPx"]}switch(S){case"%":O*=1/("x"===X?h.percentToPxWidth:h.percentToPxHeight);break;case"px":break;default:O*=1/h[S+"ToPx"]}}switch(U){case"+":M=O+M;break;case"-":M=O-M;break;case"*":M=O*M;break;case"/":M=O/M}l[K]={rootPropertyValue:Q,startValue:O,currentValue:O,endValue:M,unitType:S,easing:N},t.debug&&console.log("tweensContainer ("+K+"): "+JSON.stringify(l[K]),a)}else t.debug&&console.log("Skipping ["+P+"] due to a lack of browser support.")}l.element=a}l.element&&(v.Values.addClass(a,"velocity-animating"),J.push(l),n=g(a),n&&(""===i.queue&&(n.tweensContainer=l,n.opts=i),n.isAnimating=!0),z===y-1?(t.State.calls.push([J,q,i,null,C.resolver]),t.State.isTicking===!1&&(t.State.isTicking=!0,k())):z++)}var h,i=m.extend({},t.defaults,u),l={};switch(g(a)===d&&t.init(a),parseFloat(i.delay)&&i.queue!==!1&&m.queue(a,i.queue,function(b){t.velocityQueueEntryFlag=!0,g(a).delayTimer={setTimeout:setTimeout(b,parseFloat(i.delay)),next:b}}),i.duration.toString().toLowerCase()){case"fast":i.duration=200;break;case"normal":i.duration=r;break;case"slow":i.duration=600;break;default:i.duration=parseFloat(i.duration)||1}t.mock!==!1&&(t.mock===!0?i.duration=i.delay=1:(i.duration*=parseFloat(t.mock)||1,i.delay*=parseFloat(t.mock)||1)),i.easing=j(i.easing,i.duration),i.begin&&!p.isFunction(i.begin)&&(i.begin=null),i.progress&&!p.isFunction(i.progress)&&(i.progress=null),i.complete&&!p.isFunction(i.complete)&&(i.complete=null),i.display!==d&&null!==i.display&&(i.display=i.display.toString().toLowerCase(),"auto"===i.display&&(i.display=t.CSS.Values.getDisplayType(a))),i.visibility!==d&&null!==i.visibility&&(i.visibility=i.visibility.toString().toLowerCase()),i.mobileHA=i.mobileHA&&t.State.isMobile&&!t.State.isGingerbread,i.queue===!1?i.delay?setTimeout(f,i.delay):f():m.queue(a,i.queue,function(a,b){return b===!0?(C.promise&&C.resolver(q),!0):(t.velocityQueueEntryFlag=!0,void f(a))}),""!==i.queue&&"fx"!==i.queue||"inprogress"===m.queue(a)[0]||m.dequeue(a)}var h,i,n,o,q,s,u,x=arguments[0]&&(arguments[0].p||m.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||p.isString(arguments[0].properties));if(p.isWrapped(this)?(i=!1,o=0,q=this,n=this):(i=!0,o=1,q=x?arguments[0].elements||arguments[0].e:arguments[0]),q=f(q)){x?(s=arguments[0].properties||arguments[0].p,u=arguments[0].options||arguments[0].o):(s=arguments[o],u=arguments[o+1]);var y=q.length,z=0;if(!/^(stop|finish|finishAll)$/i.test(s)&&!m.isPlainObject(u)){var A=o+1;u={};for(var B=A;B<arguments.length;
43B++)p.isArray(arguments[B])||!/^(fast|normal|slow)$/i.test(arguments[B])&&!/^\d/.test(arguments[B])?p.isString(arguments[B])||p.isArray(arguments[B])?u.easing=arguments[B]:p.isFunction(arguments[B])&&(u.complete=arguments[B]):u.duration=arguments[B]}var C={promise:null,resolver:null,rejecter:null};i&&t.Promise&&(C.promise=new t.Promise(function(a,b){C.resolver=a,C.rejecter=b}));var D;switch(s){case"scroll":D="scroll";break;case"reverse":D="reverse";break;case"finish":case"finishAll":case"stop":m.each(q,function(a,b){g(b)&&g(b).delayTimer&&(clearTimeout(g(b).delayTimer.setTimeout),g(b).delayTimer.next&&g(b).delayTimer.next(),delete g(b).delayTimer),"finishAll"!==s||u!==!0&&!p.isString(u)||(m.each(m.queue(b,p.isString(u)?u:""),function(a,b){p.isFunction(b)&&b()}),m.queue(b,p.isString(u)?u:"",[]))});var E=[];return m.each(t.State.calls,function(a,b){b&&m.each(b[1],function(c,e){var f=u===d?"":u;return f!==!0&&b[2].queue!==f&&(u!==d||b[2].queue!==!1)||void m.each(q,function(c,d){if(d===e)if((u===!0||p.isString(u))&&(m.each(m.queue(d,p.isString(u)?u:""),function(a,b){p.isFunction(b)&&b(null,!0)}),m.queue(d,p.isString(u)?u:"",[])),"stop"===s){var h=g(d);h&&h.tweensContainer&&f!==!1&&m.each(h.tweensContainer,function(a,b){b.endValue=b.currentValue}),E.push(a)}else"finish"!==s&&"finishAll"!==s||(b[2].duration=1)})})}),"stop"===s&&(m.each(E,function(a,b){l(b,!0)}),C.promise&&C.resolver(q)),a();default:if(!m.isPlainObject(s)||p.isEmptyObject(s)){if(p.isString(s)&&t.Redirects[s]){h=m.extend({},u);var F=h.duration,G=h.delay||0;return h.backwards===!0&&(q=m.extend(!0,[],q).reverse()),m.each(q,function(a,b){parseFloat(h.stagger)?h.delay=G+parseFloat(h.stagger)*a:p.isFunction(h.stagger)&&(h.delay=G+h.stagger.call(b,a,y)),h.drag&&(h.duration=parseFloat(F)||(/^(callout|transition)/.test(s)?1e3:r),h.duration=Math.max(h.duration*(h.backwards?1-a/y:(a+1)/y),.75*h.duration,200)),t.Redirects[s].call(b,b,h||{},a,y,q,C.promise?C:d)}),a()}var H="Velocity: First argument ("+s+") was not a property map, a known action, or a registered redirect. Aborting.";return C.promise?C.rejecter(new Error(H)):console.log(H),a()}D="start"}var I={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},J=[];m.each(q,function(a,b){p.isNode(b)&&e(b,a)}),h=m.extend({},t.defaults,u),h.loop=parseInt(h.loop,10);var K=2*h.loop-1;if(h.loop)for(var L=0;L<K;L++){var M={delay:h.delay,progress:h.progress};L===K-1&&(M.display=h.display,M.visibility=h.visibility,M.complete=h.complete),w(q,"reverse",M)}return a()}};t=m.extend(w,t),t.animate=w;var x=b.requestAnimationFrame||o;return t.State.isMobile||c.hidden===d||c.addEventListener("visibilitychange",function(){c.hidden?(x=function(a){return setTimeout(function(){a(!0)},16)},k()):x=b.requestAnimationFrame||o}),a.Velocity=t,a!==b&&(a.fn.velocity=w,a.fn.velocity.defaults=t.defaults),m.each(["Down","Up"],function(a,b){t.Redirects["slide"+b]=function(a,c,e,f,g,h){var i=m.extend({},c),j=i.begin,k=i.complete,l={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},n={};i.display===d&&(i.display="Down"===b?"inline"===t.CSS.Values.getDisplayType(a)?"inline-block":"block":"none"),i.begin=function(){j&&j.call(g,g);for(var c in l){n[c]=a.style[c];var d=t.CSS.getPropertyValue(a,c);l[c]="Down"===b?[d,0]:[0,d]}n.overflow=a.style.overflow,a.style.overflow="hidden"},i.complete=function(){for(var b in n)a.style[b]=n[b];k&&k.call(g,g),h&&h.resolver(g)},t(a,l,i)}}),m.each(["In","Out"],function(a,b){t.Redirects["fade"+b]=function(a,c,e,f,g,h){var i=m.extend({},c),j=i.complete,k={opacity:"In"===b?1:0};e!==f-1?i.complete=i.begin=null:i.complete=function(){j&&j.call(g,g),h&&h.resolver(g)},i.display===d&&(i.display="In"===b?"auto":"none"),t(this,k,i)}}),t}(window.jQuery||window.Zepto||window,window,document)});(function(global){"use strict";var DP=20,RM=1,MAX_DP=1e6,MAX_POWER=1e6,E_NEG=-7,E_POS=21,P={},isValid=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Big;function bigFactory(){function Big(n){var x=this;if(!(x instanceof Big)){return n===void 0?bigFactory():new Big(n)}if(n instanceof Big){x.s=n.s;x.e=n.e;
43x.c=n.c.slice()}else{parse(x,n)}x.constructor=Big}Big.prototype=P;Big.DP=DP;Big.RM=RM;Big.E_NEG=E_NEG;Big.E_POS=E_POS;return Big}function format(x,dp,toE){var Big=x.constructor,i=dp-(x=new Big(x)).e,c=x.c;if(c.length>++dp){rnd(x,i,Big.RM)}if(!c[0]){++i}else if(toE){i=dp}else{c=x.c;i=x.e+i+1}for(;c.length<i;c.push(0)){}i=x.e;return toE===1||toE&&(dp<=i||i<=Big.E_NEG)?(x.s<0&&c[0]?"-":"")+(c.length>1?c[0]+"."+c.join("").slice(1):c[0])+(i<0?"e":"e+")+i:x.toString()}function parse(x,n){var e,i,nL;if(n===0&&1/n<0){n="-0"}else if(!isValid.test(n+="")){throwErr(NaN)}x.s=n.charAt(0)=="-"?(n=n.slice(1),-1):1;if((e=n.indexOf("."))>-1){n=n.replace(".","")}if((i=n.search(/e/i))>0){if(e<0){e=i}e+=+n.slice(i+1);n=n.substring(0,i)}else if(e<0){e=n.length}for(i=0;n.charAt(i)=="0";i++){}if(i==(nL=n.length)){x.c=[x.e=0]}else{for(;n.charAt(--nL)=="0";){}x.e=e-i-1;x.c=[];for(e=0;i<=nL;x.c[e++]=+n.charAt(i++)){}}return x}function rnd(x,dp,rm,more){var u,xc=x.c,i=x.e+dp+1;if(rm===1){more=xc[i]>=5}else if(rm===2){more=xc[i]>5||xc[i]==5&&(more||i<0||xc[i+1]!==u||xc[i-1]&1)}else if(rm===3){more=more||xc[i]!==u||i<0}else{more=!1;if(rm!==0){throwErr("!Big.RM!")}}if(i<1||!xc[0]){if(more){x.e=-dp;x.c=[1]}else{x.c=[x.e=0]}}else{xc.length=i--;if(more){for(;++xc[i]>9;){xc[i]=0;if(!i--){++x.e;xc.unshift(1)}}}for(i=xc.length;!xc[--i];xc.pop()){}}return x}function throwErr(message){var err=new Error(message);err.name="BigError";throw err}P.abs=function(){var x=new this.constructor(this);x.s=1;return x};P.cmp=function(y){var xNeg,x=this,xc=x.c,yc=(y=new x.constructor(y)).c,i=x.s,j=y.s,k=x.e,l=y.e;if(!xc[0]||!yc[0]){return!xc[0]?!yc[0]?0:-j:i}if(i!=j){return i}xNeg=i<0;if(k!=l){return k>l^xNeg?1:-1}i=-1;j=(k=xc.length)<(l=yc.length)?k:l;for(;++i<j;){if(xc[i]!=yc[i]){return xc[i]>yc[i]^xNeg?1:-1}}return k==l?0:k>l^xNeg?1:-1};P.div=function(y){var x=this,Big=x.constructor,dvd=x.c,dvs=(y=new Big(y)).c,s=x.s==y.s?1:-1,dp=Big.DP;if(dp!==~~dp||dp<0||dp>MAX_DP){throwErr("!Big.DP!")}if(!dvd[0]||!dvs[0]){if(dvd[0]==dvs[0]){throwErr(NaN)}if(!dvs[0]){throwErr(s/0)}return new Big(s*0)}var dvsL,dvsT,next,cmp,remI,u,dvsZ=dvs.slice(),dvdI=dvsL=dvs.length,dvdL=dvd.length,rem=dvd.slice(0,dvsL),remL=rem.length,q=y,qc=q.c=[],qi=0,digits=dp+(q.e=x.e-y.e)+1;q.s=s;s=digits<0?0:digits;dvsZ.unshift(0);for(;remL++<dvsL;rem.push(0)){}do{for(next=0;next<10;next++){if(dvsL!=(remL=rem.length)){cmp=dvsL>remL?1:-1}else{for(remI=-1,cmp=0;++remI<dvsL;){if(dvs[remI]!=rem[remI]){cmp=dvs[remI]>rem[remI]?1:-1;break}}}if(cmp<0){for(dvsT=remL==dvsL?dvs:dvsZ;remL;){if(rem[--remL]<dvsT[remL]){remI=remL;for(;remI&&!rem[--remI];rem[remI]=9){}--rem[remI];rem[remL]+=10}rem[remL]-=dvsT[remL]}for(;!rem[0];rem.shift()){}}else{break}}qc[qi++]=cmp?next:++next;if(rem[0]&&cmp){rem[remL]=dvd[dvdI]||0}else{rem=[dvd[dvdI]]}}while((dvdI++<dvdL||rem[0]!==u)&&s--);if(!qc[0]&&qi!=1){qc.shift();q.e--}if(qi>digits){rnd(q,dp,Big.RM,rem[0]!==u)}return q};P.eq=function(y){return!this.cmp(y)};P.gt=function(y){return this.cmp(y)>0};P.gte=function(y){return this.cmp(y)>-1};P.lt=function(y){return this.cmp(y)<0};P.lte=function(y){return this.cmp(y)<1};P.sub=P.minus=function(y){var i,j,t,xLTy,x=this,Big=x.constructor,a=x.s,b=(y=new Big(y)).s;if(a!=b){y.s=-b;return x.plus(y)}var xc=x.c.slice(),xe=x.e,yc=y.c,ye=y.e;if(!xc[0]||!yc[0]){return yc[0]?(y.s=-b,y):new Big(xc[0]?x:0)}if(a=xe-ye){if(xLTy=a<0){a=-a;t=xc}else{ye=xe;t=yc}
43t.reverse();for(b=a;b--;t.push(0)){}t.reverse()}else{j=((xLTy=xc.length<yc.length)?xc:yc).length;for(a=b=0;b<j;b++){if(xc[b]!=yc[b]){xLTy=xc[b]<yc[b];break}}}if(xLTy){t=xc;xc=yc;yc=t;y.s=-y.s}if((b=(j=yc.length)-(i=xc.length))>0){for(;b--;xc[i++]=0){}}for(b=i;j>a;){if(xc[--j]<yc[j]){for(i=j;i&&!xc[--i];xc[i]=9){}--xc[i];xc[j]+=10}xc[j]-=yc[j]}for(;xc[--b]===0;xc.pop()){}for(;xc[0]===0;){xc.shift();--ye}if(!xc[0]){y.s=1;xc=[ye=0]}y.c=xc;y.e=ye;return y};P.mod=function(y){var yGTx,x=this,Big=x.constructor,a=x.s,b=(y=new Big(y)).s;if(!y.c[0]){throwErr(NaN)}x.s=y.s=1;yGTx=y.cmp(x)==1;x.s=a;y.s=b;if(yGTx){return new Big(x)}a=Big.DP;b=Big.RM;Big.DP=Big.RM=0;x=x.div(y);Big.DP=a;Big.RM=b;return this.minus(x.times(y))};P.add=P.plus=function(y){var t,x=this,Big=x.constructor,a=x.s,b=(y=new Big(y)).s;if(a!=b){y.s=-b;return x.minus(y)}var xe=x.e,xc=x.c,ye=y.e,yc=y.c;if(!xc[0]||!yc[0]){return yc[0]?y:new Big(xc[0]?x:a*0)}xc=xc.slice();if(a=xe-ye){if(a>0){ye=xe;t=yc}else{a=-a;t=xc}t.reverse();for(;a--;t.push(0)){}t.reverse()}if(xc.length-yc.length<0){t=yc;yc=xc;xc=t}a=yc.length;for(b=0;a;){b=(xc[--a]=xc[a]+yc[a]+b)/10|0;xc[a]%=10}if(b){xc.unshift(b);++ye}for(a=xc.length;xc[--a]===0;xc.pop()){}y.c=xc;y.e=ye;return y};P.pow=function(n){var x=this,one=new x.constructor(1),y=one,isNeg=n<0;if(n!==~~n||n<-MAX_POWER||n>MAX_POWER){throwErr("!pow!")}n=isNeg?-n:n;while(!0){if(n&1){y=y.times(x)}n>>=1;if(!n){break}x=x.times(x)}return isNeg?one.div(y):y};P.round=function(dp,rm){var x=this,Big=x.constructor;if(dp==null){dp=0}else if(dp!==~~dp||dp<0||dp>MAX_DP){throwErr("!round!")}rnd(x=new Big(x),dp,rm==null?Big.RM:rm);return x};P.sqrt=function(){var estimate,r,approx,x=this,Big=x.constructor,xc=x.c,i=x.s,e=x.e,half=new Big("0.5");if(!xc[0]){return new Big(x)}if(i<0){throwErr(NaN)}i=Math.sqrt(x.toString());if(i===0||i===1/0){estimate=xc.join("");if(!(estimate.length+e&1)){estimate+="0"}r=new Big(Math.sqrt(estimate).toString());r.e=((e+1)/2|0)-(e<0||e&1)}else{r=new Big(i.toString())}i=r.e+(Big.DP+=4);do{approx=r;r=half.times(approx.plus(x.div(approx)))}while(approx.c.slice(0,i).join("")!==r.c.slice(0,i).join(""));rnd(r,Big.DP-=4,Big.RM);return r};P.mul=P.times=function(y){var c,x=this,Big=x.constructor,xc=x.c,yc=(y=new Big(y)).c,a=xc.length,b=yc.length,i=x.e,j=y.e;y.s=x.s==y.s?1:-1;if(!xc[0]||!yc[0]){return new Big(y.s*0)}y.e=i+j;if(a<b){c=xc;xc=yc;yc=c;j=a;a=b;b=j}for(c=new Array(j=a+b);j--;c[j]=0){}for(i=b;i--;){b=0;for(j=a+i;j>i;){b=c[j]+yc[i]*xc[j-i-1]+b;c[j--]=b%10;b=b/10|0}c[j]=(c[j]+b)%10}if(b){++y.e}if(!c[0]){c.shift()}for(i=c.length;!c[--i];c.pop()){}y.c=c;return y};P.toString=P.valueOf=P.toJSON=function(){var x=this,Big=x.constructor,e=x.e,str=x.c.join(""),strL=str.length;if(e<=Big.E_NEG||e>=Big.E_POS){str=str.charAt(0)+(strL>1?"."+str.slice(1):"")+(e<0?"e":"e+")+e}else if(e<0){for(;++e;str="0"+str){}str="0."+str}else if(e>0){if(++e>strL){for(e-=strL;e--;str+="0"){}}else if(e<strL){str=str.slice(0,e)+"."+str.slice(e)}}else if(strL>1){str=str.charAt(0)+"."+str.slice(1)}return x.s<0&&x.c[0]?"-"+str:str};P.toExponential=function(dp){if(dp==null){dp=this.c.length-1}else if(dp!==~~dp||dp<0||dp>MAX_DP){throwErr("!toExp!")}return format(this,dp,1)};P.toFixed=function(dp){var str,x=this,Big=x.constructor,neg=Big.E_NEG,pos=Big.E_POS;Big.E_NEG=-(Big.E_POS=1/0);if(dp==null){str=x.toString()}else if(dp===~~dp&&dp>=0&&dp<=MAX_DP){str=format(x,x.e+dp);if(x.s<0&&x.c[0]&&str.indexOf("-")<0){str="-"+str}}Big.E_NEG=neg;Big.E_POS=pos;if(!str){throwErr("!toFix!")}return str};P.toPrecision=function(sd){if(sd==null){return this.toString()}else if(sd!==~~sd||sd<1||sd>MAX_DP){throwErr("!toPre!")}return format(this,sd-1,2)};Big=bigFactory();if(typeof define==="function"&&define.amd){define(function(){return Big})}else if(typeof module!=="undefined"&&module.exports){module.exports=Big}else{global.Big=Big}})(this);(function(p,z){function q(a){return!!(""===a||a&&a.charCodeAt&&a.substr)}function m(a){return u?u(a):"[object Array]"===v.call(a)}function r(a){return"[object Object]"===v.call(a)}function s(a,b){var d,a=a||{},b=b||{};for(d in b)b.hasOwnProperty(d)&&null==a[d]&&(a[d]=b[d]);return a}function j(a,b,d){var c=[],e,h;if(!a)return c;if(w&&a.map===w)return a.map(b,d);for(e=0,h=a.length;e<h;e++)c[e]=b.call(d,a[e],e,a);return c}
43function n(a,b){a=Math.round(Math.abs(a));return isNaN(a)?b:a}function x(a){var b=c.settings.currency.format;"function"===typeof a&&(a=a());return q(a)&&a.match("%v")?{pos:a,neg:a.replace("-","").replace("%v","-%v"),zero:a}:!a||!a.pos||!a.pos.match("%v")?!q(b)?b:c.settings.currency.format={pos:b,neg:b.replace("%v","-%v"),zero:b}:a}var c={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},w=Array.prototype.map,u=Array.isArray,v=Object.prototype.toString,o=c.unformat=c.parse=function(a,b){if(m(a))return j(a,function(a){return o(a,b)});a=a||0;if("number"===typeof a)return a;var b=b||".",c=RegExp("[^0-9-"+b+"]",["g"]),c=parseFloat((""+a).replace(/\((.*)\)/,"-$1").replace(c,"").replace(b,"."));return!isNaN(c)?c:0},y=c.toFixed=function(a,b){var b=n(b,c.settings.number.precision),d=Math.pow(10,b);return(Math.round(c.unformat(a)*d)/d).toFixed(b)},t=c.formatNumber=c.format=function(a,b,d,i){if(m(a))return j(a,function(a){return t(a,b,d,i)});var a=o(a),e=s(r(b)?b:{precision:b,thousand:d,decimal:i},c.settings.number),h=n(e.precision),f=0>a?"-":"",g=parseInt(y(Math.abs(a||0),h),10)+"",l=3<g.length?g.length%3:0;return f+(l?g.substr(0,l)+e.thousand:"")+g.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+e.thousand)+(h?e.decimal+y(Math.abs(a),h).split(".")[1]:"")},A=c.formatMoney=function(a,b,d,i,e,h){if(m(a))return j(a,function(a){return A(a,b,d,i,e,h)});var a=o(a),f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format);return(0<a?g.pos:0>a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal))};c.formatColumn=function(a,b,d,i,e,h){if(!a)return[];var f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format),l=g.pos.indexOf("%s")<g.pos.indexOf("%v")?!0:!1,k=0,a=j(a,function(a){if(m(a))return c.formatColumn(a,f);a=o(a);a=(0<a?g.pos:0>a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal));if(a.length>k)k=a.length;return a});return j(a,function(a){return q(a)&&a.length<k?l?a.replace(f.symbol,f.symbol+Array(k-a.length+1).join(" ")):Array(k-a.length+1).join(" ")+a:a})};if("undefined"!==typeof exports){if("undefined"!==typeof module&&module.exports)exports=module.exports=c;exports.accounting=c}else"function"===typeof define&&define.amd?define([],function(){return c}):(c.noConflict=function(a){return function(){p.accounting=a;c.noConflict=z;return c}}(p.accounting),p.accounting=c)})(this);(function(g,j){var b=function(a){return new i(a)};b.version="0.1.3";var c=g.fxSetup||{rates:{},base:""};b.rates=c.rates;b.base=c.base;b.settings={from:c.from||b.base,to:c.to||b.base};var h=b.convert=function(a,e){if("object"===typeof a&&a.length){for(var d=0;d<a.length;d++)a[d]=h(a[d],e);return a}e=e||{};if(!e.from)e.from=b.settings.from;if(!e.to)e.to=b.settings.to;var d=e.to,c=e.from,f=b.rates;f[b.base]=1;if(!f[d]||!f[c])throw"fx error";d=c===b.base?f[d]:d===b.base?1/f[c]:f[d]*(1/f[c]);return a*d},i=function(a){"string"===typeof a?(this._v=parseFloat(a.replace(/[^0-9-.]/g,"")),this._fx=a.replace(/([^A-Za-z])/g,"")):this._v=a},c=b.prototype=i.prototype;c.convert=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this._v);return h.apply(b,a)};c.from=function(a){a=b(h(this._v,{from:a,to:b.base}));a._fx=b.base;return a};c.to=function(a){return h(this._v,{from:this._fx?this._fx:b.settings.from,to:a})};if("undefined"!==typeof exports){if("undefined"!==typeof module&&module.exports)exports=module.exports=b;exports.fx=fx}else"function"===typeof define&&define.amd?define([],function(){return b}):(b.noConflict=function(a){return function(){g.fx=a;b.noConflict=j;return b}}(g.fx),g.fx=b)})(this);var module,countdown=function(v){function A(a,b){var c=a.getTime();a.setMonth(a.getMonth()+b);return Math.round((a.getTime()-c)/864E5)}function w(a){var b=a.getTime(),c=new Date(b);c.setMonth(a.getMonth()+1);return Math.round((c.getTime()-b)/864E5)}function x(a,b){b=b instanceof Date||null!==b&&isFinite(b)?new Date(+b):new Date;if(!a)return b;var c=+a.value||0;if(c)return b.setTime(b.getTime()+c),b;(c=+a.milliseconds||0)&&b.setMilliseconds(b.getMilliseconds()+c);(c=+a.seconds||0)&&b.setSeconds(b.getSeconds()+c);(c=+a.minutes||0)&&b.setMinutes(b.getMinutes()+c);(c=+a.hours||0)&&b.setHours(b.getHours()+c);(c=+a.weeks||0)&&(c*=7);(c+=+a.days||0)&&b.setDate(b.getDate()+c);(c=+a.months||0)&&b.setMonth(b.getMonth()+c);(c=+a.millennia||0)&&(c*=10);(c+=+a.centuries||0)&&(c*=10);(c+=+a.decades||0)&&(c*=10);(c+=+a.years||0)&&b.setFullYear(b.getFullYear()+c);return b}function D(a,b){return y(a)+(1===a?p[b]:q[b])}function n(){}function k(a,b,c,e,l,d){0<=a[c]&&(b+=a[c],delete a[c]);b/=l;if(1>=b+1)return 0;if(0<=a[e]){a[e]=+(a[e]+b).toFixed(d);switch(e){case "seconds":if(60!==a.seconds||isNaN(a.minutes))break;a.minutes++;a.seconds=0;case "minutes":if(60!==a.minutes||isNaN(a.hours))break;a.hours++;a.minutes=0;case "hours":if(24!==a.hours||isNaN(a.days))break;a.days++;a.hours=0;case "days":if(7!==a.days||isNaN(a.weeks))break;a.weeks++;a.days=0;case "weeks":if(a.weeks!==w(a.refMonth)/7||isNaN(a.months))break;a.months++;a.weeks=0;case "months":if(12!==a.months||isNaN(a.years))break;a.years++;a.months=0;case "years":if(10!==a.years||isNaN(a.decades))break;a.decades++;a.years=0;case "decades":if(10!==a.decades||isNaN(a.centuries))break;a.centuries++;a.decades=0;case "centuries":if(10!==a.centuries||isNaN(a.millennia))break;a.millennia++;a.centuries=0}return 0}return b}function B(a,b,c,e,l,d){var f=new Date;a.start=b=b||f;a.end=c=c||f;a.units=e;a.value=c.getTime()-b.getTime();0>a.value&&(f=c,c=b,b=f);a.refMonth=new Date(b.getFullYear(),b.getMonth(),15,12,0,0);try{a.millennia=0;a.centuries=0;a.decades=0;a.years=c.getFullYear()-b.getFullYear();a.months=c.getMonth()-b.getMonth();a.weeks=0;a.days=c.getDate()-b.getDate();a.hours=c.getHours()-b.getHours();a.minutes=c.getMinutes()-b.getMinutes();a.seconds=c.getSeconds()-b.getSeconds();a.milliseconds=c.getMilliseconds()-b.getMilliseconds();var g;0>a.milliseconds?(g=s(-a.milliseconds/1E3),a.seconds-=g,a.milliseconds+=1E3*g):1E3<=a.milliseconds&&(a.seconds+=m(a.milliseconds/1E3),a.milliseconds%=1E3);0>a.seconds?(g=s(-a.seconds/60),a.minutes-=g,a.seconds+=60*g):60<=a.seconds&&(a.minutes+=m(a.seconds/60),a.seconds%=60);0>a.minutes?(g=s(-a.minutes/60),a.hours-=g,a.minutes+=60*g):60<=a.minutes&&(a.hours+=m(a.minutes/60),a.minutes%=60);0>a.hours?(g=s(-a.hours/24),a.days-=g,a.hours+=24*g):24<=a.hours&&(a.days+=m(a.hours/24),a.hours%=24);for(;0>a.days;)a.months--,a.days+=A(a.refMonth,1);7<=a.days&&(a.weeks+=m(a.days/7),a.days%=7);0>a.months?(g=s(-a.months/12),a.years-=g,a.months+=12*g):12<=a.months&&(a.years+=m(a.months/12),a.months%=12);10<=a.years&&(a.decades+=m(a.years/10),a.years%=10,10<=a.decades&&(a.centuries+=m(a.decades/10),a.decades%=10,10<=a.centuries&&(a.millennia+=m(a.centuries/10),a.centuries%=10)));b=0;!(e&1024)||b>=l?(a.centuries+=10*a.millennia,delete a.millennia):a.millennia&&b++;!(e&512)||b>=l?(a.decades+=10*a.centuries,delete a.centuries):a.centuries&&b++;!(e&256)||b>=l?(a.years+=10*a.decades,delete a.decades):a.decades&&b++;!(e&128)||b>=l?(a.months+=12*a.years,delete a.years):a.years&&b++;!(e&64)||b>=l?(a.months&&(a.days+=A(a.refMonth,a.months)),delete a.months,7<=a.days&&(a.weeks+=m(a.days/7),a.days%=7)):a.months&&b++;!(e&32)||b>=l?(a.days+=7*a.weeks,delete a.weeks):a.weeks&&b++;!(e&16)||b>=l?(a.hours+=24*a.days,delete a.days):a.days&&b++;!(e&8)||b>=l?(a.minutes+=60*a.hours,delete a.hours):a.hours&&b++;!(e&4)||b>=l?(a.seconds+=60*a.minutes,delete a.minutes):a.minutes&&b++;!(e&2)||b>=l?(a.milliseconds+=1E3*a.seconds,delete a.seconds):a.seconds&&b++;if(!(e&1)||b>=l){var h=k(a,0,"milliseconds","seconds",1E3,d);if(h&&(h=k(a,h,"seconds","minutes",60,d))&&(h=k(a,h,"minutes","hours",60,d))&&(h=k(a,h,"hours","days",24,d))&&(h=k(a,h,"days","weeks",7,d))&&(h=k(a,h,"weeks","months",w(a.refMonth)/7,d))){e=h;var n,p=a.refMonth,q=p.getTime(),r=new Date(q);r.setFullYear(p.getFullYear()+1);n=Math.round((r.getTime()-q)/864E5);if(h=k(a,e,"months","years",n/w(a.refMonth),d))if(h=k(a,h,"years","decades",10,d))if(h=k(a,h,"decades","centuries",10,d))if(h=k(a,h,"centuries","millennia",10,d))throw Error("Fractional unit overflow")}}}finally{delete a.refMonth}return a} 44function d(a,b,c,e,d){var f;c=+c||222;e=0<e?e:NaN;d=0<d?20>d?Math.round(d):20:0;var k=null;"function"===typeof a?(f=a,a=null):a instanceof Date||(null!==a&&isFinite(a)?a=new Date(+a):("object"===typeof k&&(k=a),a=null));var g=null;"function"===typeof b?(f=b,b=null):b instanceof Date||(null!==b&&isFinite(b)?b=new Date(+b):("object"===typeof b&&(g=b),b=null));k&&(a=x(k,b));g&&(b=x(g,a));if(!a&&!b)return new n;if(!f)return B(new n,a,b,c,e,d);var k=c&1?1E3/30:c&2?1E3:c&4?6E4:c&8?36E5:c&16?864E5:6048E5,h,g=function(){f(B(new n,a,b,c,e,d),h)};g();return h=setInterval(g,k)}var s=Math.ceil,m=Math.floor,p,q,r,t,u,f,y,z;n.prototype.toString=function(a){var b=z(this),c=b.length;if(!c)return a?""+a:u;if(1===c)return b[0];a=r+b.pop();return b.join(t)+a};n.prototype.toHTML=function(a,b){a=a||"span";var c=z(this),e=c.length;if(!e)return(b=b||u)?"\x3c"+a+"\x3e"+b+"\x3c/"+a+"\x3e":b;for(var d=0;d<e;d++)c[d]="\x3c"+a+"\x3e"+c[d]+"\x3c/"+a+"\x3e";if(1===e)return c[0];e=r+c.pop();return c.join(t)+e};n.prototype.addTo=function(a){return x(this,a)};z=function(a){var b=[],c=a.millennia;c&&b.push(f(c,10));(c=a.centuries)&&b.push(f(c,9));(c=a.decades)&&b.push(f(c,8));(c=a.years)&&b.push(f(c,7));(c=a.months)&&b.push(f(c,6));(c=a.weeks)&&b.push(f(c,5));(c=a.days)&&b.push(f(c,4));(c=a.hours)&&b.push(f(c,3));(c=a.minutes)&&b.push(f(c,2));(c=a.seconds)&&b.push(f(c,1));(c=a.milliseconds)&&b.push(f(c,0));return b};d.MILLISECONDS=1;d.SECONDS=2;d.MINUTES=4;d.HOURS=8;d.DAYS=16;d.WEEKS=32;d.MONTHS=64;d.YEARS=128;d.DECADES=256;d.CENTURIES=512;d.MILLENNIA=1024;d.DEFAULTS=222;d.ALL=2047;
44var E=d.setFormat=function(a){if(a){if("singular"in a||"plural"in a){var b=a.singular||[];b.split&&(b=b.split("|"));var c=a.plural||[];c.split&&(c=c.split("|"));for(var d=0;10>=d;d++)p[d]=b[d]||p[d],q[d]=c[d]||q[d]}"string"===typeof a.last&&(r=a.last);"string"===typeof a.delim&&(t=a.delim);"string"===typeof a.empty&&(u=a.empty);"function"===typeof a.formatNumber&&(y=a.formatNumber);"function"===typeof a.formatter&&(f=a.formatter)}},C=d.resetFormat=function(){p=" millisecond; second; minute; hour; day; week; month; year; decade; century; millennium".split(";");q=" milliseconds; seconds; minutes; hours; days; weeks; months; years; decades; centuries; millennia".split(";");r=" and ";t=", ";u="";y=function(a){return a};f=D};d.setLabels=function(a,b,c,d,f,k,m){E({singular:a,plural:b,last:c,delim:d,empty:f,formatNumber:k,formatter:m})};d.resetLabels=C;C();v&&v.exports?v.exports=d:"function"===typeof window.define&&"undefined"!==typeof window.define.amd&&window.define("countdown",[],function(){return d});return d}(module);
vendor: 25,668 bytes, line 44
44!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t=t||self).tippy=e(t.Popper)}(this,(function(t){"use strict";var e="undefined"!=typeof window&&"undefined"!=typeof document,n=!!e&&!!window.msCrypto,r={passive:!0,capture:!0},o=function(){return document.body};function i(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function a(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function s(t,e){return"function"==typeof t?t.apply(void 0,e):t}function u(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout((function(){t(r)}),e)};var n}function p(t,e){var n=Object.assign({},t);return e.forEach((function(t){delete n[t]})),n}function c(t){return[].concat(t)}function f(t,e){-1===t.indexOf(e)&&t.push(e)}function l(t){return t.split("-")[0]}function d(t){return[].slice.call(t)}function v(t){return Object.keys(t).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})}function m(){return document.createElement("div")}function g(t){return["Element","Fragment"].some((function(e){return a(t,e)}))}function h(t){return a(t,"MouseEvent")}function b(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function y(t){return g(t)?[t]:function(t){return a(t,"NodeList")}(t)?d(t):Array.isArray(t)?t:d(document.querySelectorAll(t))}function w(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function x(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function E(t){var e,n=c(t)[0];return null!=n&&null!=(e=n.ownerDocument)&&e.body?n.ownerDocument:document}function O(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[r](e,n)}))}function C(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var T={isTouch:!1},A=0;function L(){T.isTouch||(T.isTouch=!0,window.performance&&document.addEventListener("mousemove",D))}function D(){var t=performance.now();t-A<20&&(T.isTouch=!1,document.removeEventListener("mousemove",D)),A=t}function k(){var t=document.activeElement;if(b(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var R=Object.assign({appendTo:o,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),P=Object.keys(R);function j(t){var e=(t.plugins||[]).reduce((function(e,n){var r,o=n.name,i=n.defaultValue;o&&(e[o]=void 0!==t[o]?t[o]:null!=(r=R[o])?r:i);return e}),{});return Object.assign({},t,e)}function M(t,e){var n=Object.assign({},e,{content:s(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(j(Object.assign({},R,{plugins:e}))):P).reduce((function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(t){e[n]=r}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},R.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function V(t,e){t.innerHTML=e}function I(t){var e=m();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",g(t)?e.appendChild(t):V(e,t)),e}function S(t,e){g(e.content)?(V(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?V(t,e.content):t.textContent=e.content)}function B(t){var e=t.firstElementChild,n=d(e.children);return{box:e,content:n.find((function(t){return t.classList.contains("tippy-content")})),arrow:n.find((function(t){return t.classList.contains("tippy-arrow")||t.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(t){return t.classList.contains("tippy-backdrop")}))}}function N(t){var e=m(),n=m();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=m();function o(n,r){var o=B(e),i=o.box,a=o.content,s=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||S(a,t.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(I(r.arrow))):i.appendChild(I(r.arrow)):s&&i.removeChild(s)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),S(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props),{popper:e,onUpdate:o}}N.$$tippy=!0;var H=1,U=[],_=[];function z(e,a){var p,g,b,y,A,L,D,k,P=M(e,Object.assign({},R,j(v(a)))),V=!1,I=!1,S=!1,N=!1,z=[],F=u(wt,P.interactiveDebounce),W=H++,X=(k=P.plugins).filter((function(t,e){return k.indexOf(t)===e})),Y={id:W,reference:e,popper:m(),popperInstance:null,props:P,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:X,clearDelayTimeouts:function(){clearTimeout(p),clearTimeout(g),cancelAnimationFrame(b)},setProps:function(t){if(Y.state.isDestroyed)return;at("onBeforeUpdate",[Y,t]),bt();var n=Y.props,r=M(e,Object.assign({},n,v(t),{ignoreAttributes:!0}));Y.props=r,ht(),n.interactiveDebounce!==r.interactiveDebounce&&(pt(),F=u(wt,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?c(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");ut(),it(),J&&J(n,r);Y.popperInstance&&(Ct(),At().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));at("onAfterUpdate",[Y,t])},setContent:function(t){Y.setProps({content:t})},show:function(){var t=Y.state.isVisible,e=Y.state.isDestroyed,n=!Y.state.isEnabled,r=T.isTouch&&!Y.props.touch,a=i(Y.props.duration,0,R.duration);if(t||e||n||r)return;if(et().hasAttribute("disabled"))return;if(at("onShow",[Y],!1),!1===Y.props.onShow(Y))return;Y.state.isVisible=!0,tt()&&($.style.visibility="visible");it(),dt(),Y.state.isMounted||($.style.transition="none");if(tt()){var u=rt(),p=u.box,c=u.content;w([p,c],0)}L=function(){var t;if(Y.state.isVisible&&!N){if(N=!0,$.offsetHeight,$.style.transition=Y.props.moveTransition,tt()&&Y.props.animation){var e=rt(),n=e.box,r=e.content;w([n,r],a),x([n,r],"visible")}st(),ut(),f(_,Y),null==(t=Y.popperInstance)||t.forceUpdate(),at("onMount",[Y]),Y.props.animation&&tt()&&function(t,e){mt(t,e)}(a,(function(){Y.state.isShown=!0,at("onShown",[Y])}))}},function(){var t,e=Y.props.appendTo,n=et();t=Y.props.interactive&&e===o||"parent"===e?n.parentNode:s(e,[n]);t.contains($)||t.appendChild($);Y.state.isMounted=!0,Ct()}()},hide:function(){var t=!Y.state.isVisible,e=Y.state.isDestroyed,n=!Y.state.isEnabled,r=i(Y.props.duration,1,R.duration);if(t||e||n)return;if(at("onHide",[Y],!1),!1===Y.props.onHide(Y))return;Y.state.isVisible=!1,Y.state.isShown=!1,N=!1,V=!1,tt()&&($.style.visibility="hidden");if(pt(),vt(),it(!0),tt()){var o=rt(),a=o.box,s=o.content;Y.props.animation&&(w([a,s],r),x([a,s],"hidden"))}st(),ut(),Y.props.animation?tt()&&function(t,e){mt(t,(function(){!Y.state.isVisible&&$.parentNode&&$.parentNode.contains($)&&e()}))}(r,Y.unmount):Y.unmount()},hideWithInteractivity:function(t){nt().addEventListener("mousemove",F),f(U,F),F(t)},enable:function(){Y.state.isEnabled=!0},disable:function(){Y.hide(),Y.state.isEnabled=!1},unmount:function(){Y.state.isVisible&&Y.hide();if(!Y.state.isMounted)return;Tt(),At().forEach((function(t){t._tippy.unmount()})),$.parentNode&&$.parentNode.removeChild($);_=_.filter((function(t){return t!==Y})),Y.state.isMounted=!1,at("onHidden",[Y])},destroy:function(){if(Y.state.isDestroyed)return;Y.clearDelayTimeouts(),Y.unmount(),bt(),delete e._tippy,Y.state.isDestroyed=!0,at("onDestroy",[Y])}};if(!P.render)return Y;var q=P.render(Y),$=q.popper,J=q.onUpdate;$.setAttribute("data-tippy-root",""),$.id="tippy-"+Y.id,Y.popper=$,e._tippy=Y,$._tippy=Y;var G=X.map((function(t){return t.fn(Y)})),K=e.hasAttribute("aria-expanded");return ht(),ut(),it(),at("onCreate",[Y]),P.showOnCreate&&Lt(),$.addEventListener("mouseenter",(function(){Y.props.interactive&&Y.state.isVisible&&Y.clearDelayTimeouts()})),$.addEventListener("mouseleave",(function(){Y.props.interactive&&Y.props.trigger.indexOf("mouseenter")>=0&&nt().addEventListener("mousemove",F)})),Y;function Q(){var t=Y.props.touch;return Array.isArray(t)?t:[t,0]}function Z(){return"hold"===Q()[0]}function tt(){var t;return!(null==(t=Y.props.render)||!t.$$tippy)}function et(){return D||e}function nt(){var t=et().parentNode;return t?E(t):document}function rt(){return B($)}function ot(t){return Y.state.isMounted&&!Y.state.isVisible||T.isTouch||y&&"focus"===y.type?0:i(Y.props.delay,t?0:1,R.delay)}function it(t){void 0===t&&(t=!1),$.style.pointerEvents=Y.props.interactive&&!t?"":"none",$.style.zIndex=""+Y.props.zIndex}function at(t,e,n){var r;(void 0===n&&(n=!0),G.forEach((function(n){n[t]&&n[t].apply(n,e)})),n)&&(r=Y.props)[t].apply(r,e)}function st(){var t=Y.props.aria;if(t.content){var n="aria-"+t.content,r=$.id;c(Y.props.triggerTarget||e).forEach((function(t){var e=t.getAttribute(n);if(Y.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var o=e&&e.replace(r,"").trim();o?t.setAttribute(n,o):t.removeAttribute(n)}}))}}function ut(){!K&&Y.props.aria.expanded&&c(Y.props.triggerTarget||e).forEach((function(t){Y.props.interactive?t.setAttribute("aria-expanded",Y.state.isVisible&&t===et()?"true":"false"):t.removeAttribute("aria-expanded")}))}function pt(){nt().removeEventListener("mousemove",F),U=U.filter((function(t){return t!==F}))}function ct(t){if(!T.isTouch||!S&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!Y.props.interactive||!C($,n)){if(c(Y.props.triggerTarget||e).some((function(t){return C(t,n)}))){if(T.isTouch)return;if(Y.state.isVisible&&Y.props.trigger.indexOf("click")>=0)return}else at("onClickOutside",[Y,t]);!0===Y.props.hideOnClick&&(Y.clearDelayTimeouts(),Y.hide(),I=!0,setTimeout((function(){I=!1})),Y.state.isMounted||vt())}}}function ft(){S=!0}function lt(){S=!1}function dt(){var t=nt();t.addEventListener("mousedown",ct,!0),t.addEventListener("touchend",ct,r),t.addEventListener("touchstart",lt,r),t.addEventListener("touchmove",ft,r)}function vt(){var t=nt();t.removeEventListener("mousedown",ct,!0),t.removeEventListener("touchend",ct,r),t.removeEventListener("touchstart",lt,r),t.removeEventListener("touchmove",ft,r)}function mt(t,e){var n=rt().box;function r(t){t.target===n&&(O(n,"remove",r),e())}if(0===t)return e();O(n,"remove",A),O(n,"add",r),A=r}function gt(t,n,r){void 0===r&&(r=!1),c(Y.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),z.push({node:e,eventType:t,handler:n,options:r})}))}function ht(){var t;Z()&&(gt("touchstart",yt,{passive:!0}),gt("touchend",xt,{passive:!0})),(t=Y.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(gt(t,yt),t){case"mouseenter":gt("mouseleave",xt);break;case"focus":gt(n?"focusout":"blur",Et);break;case"focusin":gt("focusout",Et)}}))}function bt(){z.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,o=t.options;e.removeEventListener(n,r,o)})),z=[]}function yt(t){var e,n=!1;if(Y.state.isEnabled&&!Ot(t)&&!I){var r="focus"===(null==(e=y)?void 0:e.type);y=t,D=t.currentTarget,ut(),!Y.state.isVisible&&h(t)&&U.forEach((function(e){return e(t)})),"click"===t.type&&(Y.props.trigger.indexOf("mouseenter")<0||V)&&!1!==Y.props.hideOnClick&&Y.state.isVisible?n=!0:Lt(t),"click"===t.type&&(V=!n),n&&!r&&Dt(t)}}function wt(t){var e=t.target,n=et().contains(e)||$.contains(e);"mousemove"===t.type&&n||function(t,e){var n=e.clientX,r=e.clientY;return t.every((function(t){var e=t.popperRect,o=t.popperState,i=t.props.interactiveBorder,a=l(o.placement),s=o.modifiersData.offset;if(!s)return!0;var u="bottom"===a?s.top.y:0,p="top"===a?s.bottom.y:0,c="right"===a?s.left.x:0,f="left"===a?s.right.x:0,d=e.top-r+u>i,v=r-e.bottom-p>i,m=e.left-n+c>i,g=n-e.right-f>i;return d||v||m||g}))}(At().concat($).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:P}:null})).filter(Boolean),t)&&(pt(),Dt(t))}function xt(t){Ot(t)||Y.props.trigger.indexOf("click")>=0&&V||(Y.props.interactive?Y.hideWithInteractivity(t):Dt(t))}function Et(t){Y.props.trigger.indexOf("focusin")<0&&t.target!==et()||Y.props.interactive&&t.relatedTarget&&$.contains(t.relatedTarget)||Dt(t)}function Ot(t){return!!T.isTouch&&Z()!==t.type.indexOf("touch")>=0}function Ct(){Tt();var n=Y.props,r=n.popperOptions,o=n.placement,i=n.offset,a=n.getReferenceClientRect,s=n.moveTransition,u=tt()?B($).arrow:null,p=a?{getBoundingClientRect:a,contextElement:a.contextElement||et()}:e,c=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(tt()){var n=rt().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];tt()&&u&&c.push({name:"arrow",options:{element:u,padding:3}}),c.push.apply(c,(null==r?void 0:r.modifiers)||[]),Y.popperInstance=t.createPopper(p,$,Object.assign({},r,{placement:o,onFirstUpdate:L,modifiers:c}))}function Tt(){Y.popperInstance&&(Y.popperInstance.destroy(),Y.popperInstance=null)}function At(){return d($.querySelectorAll("[data-tippy-root]"))}function Lt(t){Y.clearDelayTimeouts(),t&&at("onTrigger",[Y,t]),dt();var e=ot(!0),n=Q(),r=n[0],o=n[1];T.isTouch&&"hold"===r&&o&&(e=o),e?p=setTimeout((function(){Y.show()}),e):Y.show()}function Dt(t){if(Y.clearDelayTimeouts(),at("onUntrigger",[Y,t]),Y.state.isVisible){if(!(Y.props.trigger.indexOf("mouseenter")>=0&&Y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&V)){var e=ot(!1);e?g=setTimeout((function(){Y.state.isVisible&&Y.hide()}),e):b=requestAnimationFrame((function(){Y.hide()}))}}else vt()}}function F(t,e){void 0===e&&(e={});var n=R.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",L,r),window.addEventListener("blur",k);var o=Object.assign({},e,{plugins:n}),i=y(t).reduce((function(t,e){var n=e&&z(e,o);return n&&t.push(n),t}),[]);return g(t)?i[0]:i}F.defaultProps=R,F.setDefaultProps=function(t){Object.keys(t).forEach((function(e){R[e]=t[e]}))},F.currentInput=T;var W=Object.assign({},t.applyStyles,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}}),X={mouseover:"mouseenter",focusin:"focus",click:"click"};var Y={name:"animateFill",defaultValue:!1,fn:function(t){var e;if(null==(e=t.props.render)||!e.$$tippy)return{};var n=B(t.popper),r=n.box,o=n.content,i=t.props.animateFill?function(){var t=m();return t.className="tippy-backdrop",x([t],"hidden"),t}():null;return{onCreate:function(){i&&(r.insertBefore(i,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(i){var t=r.style.transitionDuration,e=Number(t.replace("ms",""));o.style.transitionDelay=Math.round(e/10)+"ms",i.style.transitionDuration=t,x([i],"visible")}},onShow:function(){i&&(i.style.transitionDuration="0ms")},onHide:function(){i&&x([i],"hidden")}}}};var q={clientX:0,clientY:0},$=[];function J(t){var e=t.clientX,n=t.clientY;q={clientX:e,clientY:n}}var G={name:"followCursor",defaultValue:!1,fn:function(t){var e=t.reference,n=E(t.props.triggerTarget||e),r=!1,o=!1,i=!0,a=t.props;function s(){return"initial"===t.props.followCursor&&t.state.isVisible}function u(){n.addEventListener("mousemove",f)}function p(){n.removeEventListener("mousemove",f)}function c(){r=!0,t.setProps({getReferenceClientRect:null}),r=!1}function f(n){var r=!n.target||e.contains(n.target),o=t.props.followCursor,i=n.clientX,a=n.clientY,s=e.getBoundingClientRect(),u=i-s.left,p=a-s.top;!r&&t.props.interactive||t.setProps({getReferenceClientRect:function(){var t=e.getBoundingClientRect(),n=i,r=a;"initial"===o&&(n=t.left+u,r=t.top+p);var s="horizontal"===o?t.top:r,c="vertical"===o?t.right:n,f="horizontal"===o?t.bottom:r,l="vertical"===o?t.left:n;return{width:c-l,height:f-s,top:s,right:c,bottom:f,left:l}}})}function l(){t.props.followCursor&&($.push({instance:t,doc:n}),function(t){t.addEventListener("mousemove",J)}(n))}function d(){0===($=$.filter((function(e){return e.instance!==t}))).filter((function(t){return t.doc===n})).length&&function(t){t.removeEventListener("mousemove",J)}(n)}return{onCreate:l,onDestroy:d,onBeforeUpdate:function(){a=t.props},onAfterUpdate:function(e,n){var i=n.followCursor;r||void 0!==i&&a.followCursor!==i&&(d(),i?(l(),!t.state.isMounted||o||s()||u()):(p(),c()))},onMount:function(){t.props.followCursor&&!o&&(i&&(f(q),i=!1),s()||u())},onTrigger:function(t,e){h(e)&&(q={clientX:e.clientX,clientY:e.clientY}),o="focus"===e.type},onHidden:function(){t.props.followCursor&&(c(),p(),i=!0)}}}};var K={name:"inlinePositioning",defaultValue:!1,fn:function(t){var e,n=t.reference;var r=-1,o=!1,i=[],a={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(o){var a=o.state;t.props.inlinePositioning&&(-1!==i.indexOf(a.placement)&&(i=[]),e!==a.placement&&-1===i.indexOf(a.placement)&&(i.push(a.placement),t.setProps({getReferenceClientRect:function(){return function(t){return function(t,e,n,r){if(n.length<2||null===t)return e;if(2===n.length&&r>=0&&n[0].left>n[1].right)return n[r]||e;switch(t){case"top":case"bottom":var o=n[0],i=n[n.length-1],a="top"===t,s=o.top,u=i.bottom,p=a?o.left:i.left,c=a?o.right:i.right;return{top:s,bottom:u,left:p,right:c,width:c-p,height:u-s};case"left":case"right":var f=Math.min.apply(Math,n.map((function(t){return t.left}))),l=Math.max.apply(Math,n.map((function(t){return t.right}))),d=n.filter((function(e){return"left"===t?e.left===f:e.right===l})),v=d[0].top,m=d[d.length-1].bottom;return{top:v,bottom:m,left:f,right:l,width:l-f,height:m-v};default:return e}}(l(t),n.getBoundingClientRect(),d(n.getClientRects()),r)}(a.placement)}})),e=a.placement)}};function s(){var e;o||(e=function(t,e){var n;return{popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat(((null==(n=t.popperOptions)?void 0:n.modifiers)||[]).filter((function(t){return t.name!==e.name})),[e])})}}(t.props,a),o=!0,t.setProps(e),o=!1)}return{onCreate:s,onAfterUpdate:s,onTrigger:function(e,n){if(h(n)){var o=d(t.reference.getClientRects()),i=o.find((function(t){return t.left-2<=n.clientX&&t.right+2>=n.clientX&&t.top-2<=n.clientY&&t.bottom+2>=n.clientY})),a=o.indexOf(i);r=a>-1?a:r}},onHidden:function(){r=-1}}}};var Q={name:"sticky",defaultValue:!1,fn:function(t){var e=t.reference,n=t.popper;function r(e){return!0===t.props.sticky||t.props.sticky===e}var o=null,i=null;function a(){var s=r("reference")?(t.popperInstance?t.popperInstance.state.elements.reference:e).getBoundingClientRect():null,u=r("popper")?n.getBoundingClientRect():null;(s&&Z(o,s)||u&&Z(i,u))&&t.popperInstance&&t.popperInstance.update(),o=s,i=u,t.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){t.props.sticky&&a()}}}};function Z(t,e){return!t||!e||(t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left)}return e&&function(t){var e=document.createElement("style");e.textContent=t,e.setAttribute("data-tippy-stylesheet","");var n=document.head,r=document.querySelector("head>style,head>link");r?n.insertBefore(e,r):n.appendChild(e)}('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}'),F.setDefaultProps({plugins:[Y,G,K,Q],render:N}),F.createSingleton=function(t,e){var n;void 0===e&&(e={});var r,o=t,i=[],a=[],s=e.overrides,u=[],f=!1;function l(){a=o.map((function(t){return c(t.props.triggerTarget||t.reference)})).reduce((function(t,e){return t.concat(e)}),[])}function d(){i=o.map((function(t){return t.reference}))}function v(t){o.forEach((function(e){t?e.enable():e.disable()}))}function g(t){return o.map((function(e){var n=e.setProps;return e.setProps=function(o){n(o),e.reference===r&&t.setProps(o)},function(){e.setProps=n}}))}function h(t,e){var n=a.indexOf(e);if(e!==r){r=e;var u=(s||[]).concat("content").reduce((function(t,e){return t[e]=o[n].props[e],t}),{});t.setProps(Object.assign({},u,{getReferenceClientRect:"function"==typeof u.getReferenceClientRect?u.getReferenceClientRect:function(){var t;return null==(t=i[n])?void 0:t.getBoundingClientRect()}}))}}v(!1),d(),l();var b={fn:function(){return{onDestroy:function(){v(!0)},onHidden:function(){r=null},onClickOutside:function(t){t.props.showOnCreate&&!f&&(f=!0,r=null)},onShow:function(t){t.props.showOnCreate&&!f&&(f=!0,h(t,i[0]))},onTrigger:function(t,e){h(t,e.currentTarget)}}}},y=F(m(),Object.assign({},p(e,["overrides"]),{plugins:[b].concat(e.plugins||[]),triggerTarget:a,popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],[W])})})),w=y.show;y.show=function(t){if(w(),!r&&null==t)return h(y,i[0]);if(!r||null!=t){if("number"==typeof t)return i[t]&&h(y,i[t]);if(o.indexOf(t)>=0){var e=t.reference;return h(y,e)}return i.indexOf(t)>=0?h(y,t):void 0}},y.showNext=function(){var t=i[0];if(!r)return y.show(0);var e=i.indexOf(r);y.show(i[e+1]||t)},y.showPrevious=function(){var t=i[i.length-1];if(!r)return y.show(t);var e=i.indexOf(r),n=i[e-1]||t;y.show(n)};var x=y.setProps;return y.setProps=function(t){s=t.overrides||s,x(t)},y.setInstances=function(t){v(!0),u.forEach((function(t){return t()})),o=t,v(!1),d(),l(),u=g(y),y.setProps({triggerTarget:a})},u=g(y),y},F.delegate=function(t,e){var n=[],o=[],i=!1,a=e.target,s=p(e,["target"]),u=Object.assign({},s,{trigger:"manual",touch:!1}),f=Object.assign({touch:R.touch},s,{showOnCreate:!0}),l=F(t,u);function d(t){if(t.target&&!i){var n=t.target.closest(a);if(n){var r=n.getAttribute("data-tippy-trigger")||e.trigger||R.trigger;if(!n._tippy&&!("touchstart"===t.type&&"boolean"==typeof f.touch||"touchstart"!==t.type&&r.indexOf(X[t.type])<0)){var s=F(n,f);s&&(o=o.concat(s))}}}}function v(t,e,r,o){void 0===o&&(o=!1),t.addEventListener(e,r,o),n.push({node:t,eventType:e,handler:r,options:o})}return c(l).forEach((function(t){var e=t.destroy,a=t.enable,s=t.disable;t.destroy=function(t){void 0===t&&(t=!0),t&&o.forEach((function(t){t.destroy()})),o=[],n.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,o=t.options;e.removeEventListener(n,r,o)})),n=[],e()},t.enable=function(){a(),o.forEach((function(t){return t.enable()})),i=!1},t.disable=function(){s(),o.forEach((function(t){return t.disable()})),i=!0},function(t){var e=t.reference;v(e,"touchstart",d,r),v(e,"mouseover",d),v(e,"focusin",d),v(e,"click",d)}(t)})),l},F.hideAll=function(t){var e=void 0===t?{}:t,n=e.exclude,r=e.duration;_.forEach((function(t){var e=!1;if(n&&(e=b(n)?t.reference===n:t.popper===n.popper),!e){var o=t.props.duration;t.setProps({duration:r}),t.hide(),t.state.isDestroyed||t.setProps({duration:o})}}))},F.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',F}));
45;const fetchGtagField = (fieldName, callback) => { 46 const ga4Id = document 47 .querySelector('body') 48 .getAttribute('data-ga4-id'); 49 50 if (ga4Id && typeof gtag !== 'undefined') { 51 try { 52 gtag('get', ga4Id, fieldName, (value) => { 53 if (value) { 54 callback(value); 55 } 56 }); 57 } catch (e) { 58 } 59 } 60}; 61 62const mapProductToGoogleItem = (product) => { 63 const item = { 64 item_id: product.item_id.toString() || undefined, 65 item_name: product.item_name || undefined, 66 price: Number(product.price) || undefined, 67 quantity: Number(product.quantity) || undefined, 68 item_brand: product.item_brand || undefined, 69 item_category: product.item_category || undefined, 70 item_variant: product.item_variant?.join('|') || undefined, 71 index: product.index != null ? product.index : undefined, 72 }; 73 74 return item; 75}; 76 77const Analytics = { 78 trackLogin(method) { 79 gtag('event', 'login', { method }); 80 }, 81
82 trackSignUp(method) { 83 gtag('event', 'sign_up', { method }); 84 }, 85 86 trackSelectItem(items) { 87 gtag('event', 'select_item', { 88 items: items 89 }); 90 }, 91 92 trackAddToCart(eventData, items) { 93 gtag('event', 'add_to_cart', { 94 currency: eventData.currency, 95 value: eventData.value, 96 items: items 97 }); 98 }, 99 100 trackRemoveFromCart(eventData, items) { 101 gtag('event', 'remove_from_cart', { 102 currency: eventData.currency, 103 value: eventData.value, 104 items: items 105 }); 106 }, 107 108 trackAddShippingInfo(shippingData, items) { 109 gtag('event', 'add_shipping_info', { 110 currency: shippingData.currency, 111 value: shippingData.value, 112 coupon: shippingData.coupon || undefined, 113 shipping_tier: shippingData.shipping_tier || undefined, 114 items: items 115 }); 116 }, 117 118 trackAddPaymentInfo(paymentData, items) { 119 gtag('event', 'add_payment_info', { 120 currency: paymentData.currency, 121 value: paymentData.value, 122 coupon: paymentData.coupon || undefined, 123 payment_type: paymentData.payment_type || undefined, 124 items: items 125 }); 126 }, 127 128 updateConsent(categories) { 129 const hasMarketing = categories.includes('marketing'); 130 const hasAnalytics = categories.includes('analytics'); 131 132 gtag('consent', 'update', { 133 ad_storage: hasMarketing ? 'granted' : 'denied', 134 analytics_storage: hasAnalytics ? 'granted' : 'denied', 135 ad_user_data: hasMarketing ? 'granted' : 'denied', 136 ad_personalization: hasMarketing ? 'granted' : 'denied', 137 functionality_storage: 'granted', 138 security_storage: 'granted' 139 }); 140 141 window.uetq && window.uetq.push('consent', 'update', { 142 'ad_storage': hasMarketing ? 'granted' : 'denied' 143 }); 144 } 145}; 146 147;const fbEvent = (eventType, eventId, itemOptions) => { 148 149 if (typeof fbq !== "function" || !eventId || !itemOptions) { 150 return; 151 } 152 switch (eventType) { 153 case 'add_to_cart': 154 const eventOptions = { 155 PageView: { 156 params: {}, 157 eventID: eventId 158 }, 159 AddToCart: { 160 params: { 161 content_name: itemOptions.product.name, 162 ...itemOptions.product.categories[0] && {content_category: itemOptions.product.categories[0].name}, 163 value: itemOptions.unitPriceSummary.final.gross, 164 currency: itemOptions.unitPriceSummary.final.currency, 165 content_ids: [itemOptions.product.id], 166 content_type: "product", 167 }, 168 eventID: eventId 169 } 170 }; 171 172 for (let key of Object.keys(eventOptions)) { 173 fbq('track', key, eventOptions[key].params, {eventID: eventOptions[key].eventID}); 174 } 175 return; 176 default: 177 return; 178 } 179}; 180;const edroneEvent = (eventType, eventOptions) => { 181 if (!window._edrone || !_edrone.hasOwnProperty('app_id') || !_edrone.app_id || !eventOptions) { 182 return; 183 } 184 _edrone['action_type'] = eventType; 185 for (let key of Object.keys(eventOptions)) { 186 _edrone[key] = eventOptions[key]; 187 } 188 if (typeof _edrone.init !== 'function') { 189 return; 190 } 191 _edrone.init(); 192} 193;const addError = function (element, content = L['ERROR_UNEXPECTED_ERROR']) { 194 const createContentWithErrorIcon = (content) => { 195 return `<i class="fa fa-exclamation-circle" aria-hidden="!0"></i> ${content}`; 196 } 197 198 if (element.hasClass('ss-error-container') || element.parent().hasClass('ss-error-container')) { 199 return; 200 } 201 202 const uniqueErrorId = 'id-' + Date.now() + '-' + Math.floor(Math.random() * 1000); 203 element.attr('aria-describedby', `error-${uniqueErrorId}`); 204 205 206 if (element.attr('data-valid-box') !== 'undefined') { 207 element.removeAttr('aria-describedby'); 208 element.find('input[type="checkbox"], input[type="radio"]').first().attr('aria-describedby', `error-${uniqueErrorId}`); 209 } 210 if (element.attr('data-valid') === 'rateContainer') { 211 element.attr('aria-labelledby', `error-${uniqueErrorId}`); 212 } 213 214 const attr = element.attr('type') || element.attr('data-type'); 215 switch (attr) { 216 case 'date': 217 case 'datetime-local': 218 case 'text-parameter-box': 219 if (content) { 220 element.parent().after(`<span id="error-${uniqueErrorId}" role="alert" class="ss-error">${createContentWithErrorIcon(content)}</span>`); 221 } 222 element.parent().addClass('ss-error-container'); 223 break; 224 case 'rate-container': 225 const legendEl = element.find('legend').first(); 226 const legendText = legendEl.length ? legendEl.text().trim() : ''; 227 if (content) { 228 element.after(`<span id="error-${uniqueErrorId}" role="alert" aria-label="${legendText}:${content}" class="ss-error">${createContentWithErrorIcon(content)}</span>`); 229 } 230 element.addClass('ss-error-container'); 231 break; 232 case 'all-parameters-button': 233 if (content) { 234 element.removeAttr('aria-describedby'); 235 element.parent().attr('aria-describedby', `error-${uniqueErrorId}`); 236 element.parent().after(`<span id="error-${uniqueErrorId}" role="alert" class="ss-error">${createContentWithErrorIcon(content)}</span>`); 237 } 238 element.parent().addClass('ss-error-container'); 239 break; 240 241 default: 242 if (element.attr('data-select2-id')) { 243 element.next('.select2-container').addClass('ss-error-container'); 244 if (content) { 245 element.next('.select2-container').after(`<span id="error-${uniqueErrorId}" role="alert" class="ss-error">${createContentWithErrorIcon(content)}</span>`); 246 } 247 } else if (element.hasClass('ui-select-container') && element.hasClass('select2')) { 248 element.find('.select2-choice').addClass('ss-error-container'); 249 if (content) { 250 element.after(`<span id="error-${uniqueErrorId}" role="alert" class="ss-error">${createContentWithErrorIcon(content)}</span>`); 251 } 252 } else { 253 if (content) { 254 element.after(`<span id="error-${uniqueErrorId}" role="alert" class="ss-error">${createContentWithErrorIcon(content)}</span>`); 255 } 256 element.addClass('ss-error-container'); 257 } 258 break; 259 } 260} 261
262const clearErrorState = ($containers) => { 263 $containers 264 .removeClass('ss-error-container') 265 .removeAttr('aria-describedby aria-labelledby') 266 .find('[aria-describedby]') 267 .removeAttr('aria-describedby'); 268}; 269 270const removeError = ($element) => { 271 const $container = $element.hasClass('ss-error-container') 272 ? $element 273 : $element.nextAll('.ss-error-container').first(); 274 275 if (!$container.length) return; 276 277 clearErrorState($container); 278 const $error = $container.nextAll('.ss-error').first(); 279 if ($error.length) $error.remove(); 280 alertScreenReader(); 281}; 282 283const removeAllErrors = ($formElement) => { 284 const $root = $formElement && $formElement.length ? $formElement : $(document); 285 const $containers = $root.find('.ss-error-container'); 286 clearErrorState($containers); 287 $root.find('.ss-error').remove(); 288}; 289;const initAdminActivityTracker = (source) => { 290 const PING_INTERVAL = 70 * 1000; 291 let intervalId = null; 292 293 const sendPing = () => { 294 if (typeof navigator !== 'undefined' && 'sendBeacon' in navigator) { 295 const data = new URLSearchParams(); 296 data.append('source', source); 297 navigator.sendBeacon('/me/last-activity?json=1', data); 298 } 299 }; 300 301 const handleVisibilityChange = () => { 302 if (intervalId) clearInterval(intervalId); 303 intervalId = null; 304 305 sendPing(); 306 307 if (document.visibilityState === 'visible') { 308 intervalId = setInterval(() => { 309 sendPing(); 310 }, PING_INTERVAL); 311 } 312 }; 313 314 handleVisibilityChange(); 315 316 document.addEventListener('visibilitychange', handleVisibilityChange); 317}; 318;document.documentElement.className += (('ontouchstart' in document.documentElement) ? 'touch' : 'no-touch'); 319 320var addEvent = function(object,type,callback){ 321 if(object == null || typeof(object) == 'undefined') return; 322 if(object.addEventListener){ 323 object.addEventListener(type,callback,false); 324 }else if(object.attachEvent){ 325 object.attachEvent('on' + type,callback); 326 }else{ 327 object['on' + type] = callback; 328 } 329}; 330 331if(skyTheme){
332 if (navigator.userAgent.search("Firefox") >= 0) { 333 $('body').addClass('firefox'); 334 } 335} 336 337if (document.body?.dataset?.isAdminLogged) { 338 initAdminActivityTracker('front-shop'); 339} 340 341 342headerTopBarFormatter = function () { 343 var header = document.getElementById('header'), 344 topBar = document.querySelector('.top_bar') 345 if(header == null || topBar == null){ 346 return false; 347 } 348 var data = { 349 topBarInnerWrapper: header.querySelector('.top_bar_inner_wrapper'), 350 topBarRight: header.querySelector('.top_bar_item.right'), 351 hamburger: header.querySelector('.menu[data-action="inline"] li.hamburger'), 352 infoblock: header.querySelector('.infoblock_header ') 353 } 354 /* If right part of top bar wraps to the second line, then add class which centers it */ 355 function manageTopBarItemsCentering(data){ 356 if( data.topBarRight.offsetTop > 0){ 357 data.topBarInnerWrapper.classList.add('top_bar_center_items') 358 }else{ 359 data.topBarInnerWrapper.classList.remove('top_bar_center_items') 360 } 361 if (data.infoblock && data.topBarRight.offsetTop - data.infoblock.offsetHeight <= 0) { 362 data.topBarInnerWrapper.classList.remove('top_bar_center_items') 363 } 364 }; 365 manageTopBarItemsCentering(data); 366} 367 368var headerMenuFormatter = function(minWidth,ignoredClass){ 369 var header = document.getElementById('header'), 370 menu = header != null ? header.querySelector('.menu[data-action="inline"]') : null; 371 372 if(header == null || menu == null || window.innerWidth < minWidth){ 373 return false; 374 } 375 376 if(menu.classList.contains('menu-calculate')){ 377 menu.classList.remove('menu-calculate'); 378 } 379 380 var data = { 381 elements: { 382 menu: menu, 383 stickyMenu: header.querySelector('.sticky-header_content__menu[data-action="inline"]'), 384 hamburger: header.querySelector('.menu[data-action="inline"] li.hamburger'), 385 stickyHamburger: header.querySelector('.sticky-header_content__menu[data-action="inline"] li.hamburger'), 386 // All links elements 387 links: header.querySelectorAll('.menu[data-action="inline"] > ul > li' + ['hamburger'].concat(typeof ignoredClass !== 'undefined' ? ignoredClass : undefined).filter(function(className){ 388 return className; 389 }).map(function(className){ 390 return ':not(.' + className + ')'; 391 }).join('')), 392 //Sticky links elements 393 stickyLinks: header.querySelectorAll('.sticky-header_content__menu[data-action="inline"] > ul > li' + ['hamburger'].concat(typeof ignoredClass !== 'undefined' ? ignoredClass : undefined).filter(function(className){ 394 return className; 395 }).map(function(className){ 396 return ':not(.' + className + ')'; 397 }).join('')), 398 // Elements that must be show eq. search icon, expect hamburger element 399 ignored: typeof ignoredClass !== 'undefined' ? header.querySelectorAll(ignoredClass.map(function(className){ 400 return '.menu[data-action="inline"] > ul > li.' + className; 401 }).join(',')) : [] 402 }, 403 calculated: { 404 menuWidth: 0, 405 stickyMenuWidth: 0, 406 linksWidth: 0, 407 linksWidthCount: 0, 408 stickyLinksWidth: 0, 409 stickyLinksWidthCount: 0, 410 ignoredWidth: 0, 411 hamburgerWidth: 0, 412 stickyHamburgerWidth: 0, 413 } 414 }, 415 calculateWidth = function(key,element){ 416 var width = element.getBoundingClientRect().width; 417 if(typeof element.dataset.saveWidth === 'undefined'){ 418 element.dataset.saveWidth = width; 419 } 420 data.calculated[key] = Big(data.calculated[key]).plus(element.dataset.saveWidth); 421 }; 422 423 [].forEach.call(data.elements.links,calculateWidth.bind(this,'linksWidth')); 424 [].forEach.call(data.elements.stickyLinks,calculateWidth.bind(this,'stickyLinksWidth')); 425 [].forEach.call(data.elements.ignored,calculateWidth.bind(this,'ignoredWidth')); 426 427 data.calculated.menuWidth = data.elements.menu.getBoundingClientRect().width; 428 data.calculated.hamburgerWidth = data.elements.hamburger.getBoundingClientRect().width; 429 data.elements.hamburger.querySelector('.hambureger-elements').innerHTML = ''; 430 431 if(data.elements.stickyMenu){ 432 data.calculated.stickyMenuWidth = data.elements.stickyMenu.getBoundingClientRect().width; 433 data.calculated.stickyHamburgerWidth = data.elements.stickyHamburger.getBoundingClientRect().width; 434 data.elements.stickyHamburger.querySelector('.hambureger-elements').innerHTML = ''; 435 } 436 437 if(Big(data.calculated.linksWidth).plus(data.calculated.ignoredWidth) > data.calculated.menuWidth){ 438 // Show hamburger, hide redundant links 439 if(data.elements.hamburger.classList.contains('hidden')){ 440 data.elements.hamburger.classList.remove('hidden'); 441 } 442 data.calculated.linksWidthCount = Big(data.calculated.ignoredWidth).plus(data.calculated.hamburgerWidth); 443 444 [].forEach.call(data.elements.links,function(element,index){ 445 data.calculated.linksWidthCount = Big(data.calculated.linksWidthCount).plus(element.dataset.saveWidth); 446 447 if(data.calculated.linksWidthCount > data.calculated.menuWidth){ 448 element.style.display = 'none'; 449 450 var cloneElement = data.elements.hamburger.querySelector('.hambureger-elements').appendChild(element.cloneNode(true)); 451 cloneElement.style.display = ''; 452 453 delete cloneElement.dataset.saveWidth; 454 }else{ 455 element.style.display = ''; 456 } 457 }); 458 }else{ 459 // Hide hamburger, show all links 460 [].forEach.call(data.elements.links,function(element,index){ 461 element.style.display = ''; 462 }); 463 [].forEach.call(data.elements.stickyLinks,function(element,index){ 464 element.style.display = ''; 465 }); 466 if(!data.elements.hamburger.classList.contains('hidden') || !data.elements.stickyHamburger.classList.contains('hidden')){ 467 data.elements.hamburger.classList.add('hidden'); 468 data.elements.stickyHamburger.classList.add('hidden'); 469 } 470 } 471 if(Big(data.calculated.stickyLinksWidth).plus(data.calculated.hamburgerWidth) > data.calculated.stickyMenuWidth) { 472 if (data.elements.stickyHamburger.classList.contains('hidden')){ 473 data.elements.stickyHamburger.classList.remove('hidden') 474 } 475 data.calculated.stickyLinksWidthCount = data.calculated.stickyHamburgerWidth; 476 477 [].forEach.call(data.elements.stickyLinks,function(element,index){ 478 479 data.calculated.stickyLinksWidthCount = Big(data.calculated.stickyLinksWidthCount).plus(element.dataset.saveWidth); 480 481 if(data.calculated.stickyLinksWidthCount.plus(data.calculated.hamburgerWidth) > data.calculated.stickyMenuWidth){ 482 element.style.display = 'none'; 483 484 var cloneElement = data.elements.stickyHamburger.querySelector('.hambureger-elements').appendChild(element.cloneNode(true)); 485 cloneElement.style.display = ''; 486 487 delete cloneElement.dataset.saveWidth; 488 }else{ 489 element.style.display = ''; 490 } 491 }); 492 } 493}; 494 495$.fn.transition = function(type,duration,complete){ 496 var self = $(this), 497 velocity = $(document).velocity, 498 callback = false;
499 500 if(typeof duration === 'undefined'){ 501 duration = 100; 502 } 503 504 if(typeof complete !== 'undefined'){ 505 callback = true; 506 } 507 508 if(typeof velocity !== 'undefined'){ 509 if(callback){ 510 self.velocity(type,{ 511 duration: duration, 512 complete: complete.bind(self) 513 }); 514 }else{ 515 self.velocity(type,{ 516 duration: duration 517 }); 518 } 519 }else{ 520 if(callback){ 521 self[type](duration,complete.bind(self)); 522 }else{ 523 self[type](duration); 524 } 525 } 526}; 527 528var initializeSelect2 = function(element,params){ 529 if(typeof element === 'undefined'){ 530 element = $('.select-field-select2:not([data-initialize="!1"])'); 531 } 532 533 var defaultParams = { 534 closeOnSelect: true, 535 dropdownParent: null, 536 selectLang: L['SELECT'], 537 selectCallback: void 0, 538 selectCustomTheme: !!element.data('select-custom-theme'), 539 selectAdditionalTheme: element.data('select-theme'), 540 } 541 if(typeof params !== 'undefined'){ 542 Object.keys(params).forEach(function(key){ 543 defaultParams[key] = params[key]; 544 }); 545 546 params = defaultParams; 547 }else{ 548 params = defaultParams; 549 } 550 551 const additionalDropdownClasses = `select-field-select2-dropdown ${defaultParams.selectCustomTheme && 'additional-select-theme'} ${!!defaultParams.selectAdditionalTheme && defaultParams.selectAdditionalTheme}` 552 553 let disabledSelectClose; 554 let openSelect = null; 555 556 if(skyTheme){ 557 $(document).on('keydown', 'button.select2-set-params', function (e) { 558 if(e.key === 'Tab' && !e.shiftKey || e.key === 'Escape'){ 559 disabledSelectClose = false; 560 element.select2('close'); 561 } 562 }); 563 $(document).on('click', function(e) { 564 if (!openSelect) return; 565 if ($(e.target).closest('.select-field-select2').length || $(e.target).closest('.select2-container').length || $(e.target).closest('.select2-dropdown').length) { 566 return; 567 } 568 disabledSelectClose = false; 569 openSelect.select2('close'); 570 }); 571 $(document).on('keydown click', '.select2-results', function (e) { 572 const $items = $('.select2-results').find('ul li.select2-results__option'); 573 if((e.target === $items.first()[0] && e.key === 'Tab' && e.shiftKey) || e.key === 'Escape'){ 574 disabledSelectClose = false; 575 element.select2('close'); 576 } else if(e.target === $items.last()[0] && e.key === 'Tab' && !e.shiftKey){ 577 $('.select2-results').siblings('button.select2-set-params').focus(); 578 } else { 579 disabledSelectClose = true; 580 } 581 }); 582 } 583 584 element.select2({ 585 placeholder: true, 586 width: '100%', 587 theme: 'bootstrap', 588 closeOnSelect: params.closeOnSelect, 589 dropdownCssClass: skyTheme ? additionalDropdownClasses : 'select-field-select2-dropdown', 590 minimumResultsForSearch: Infinity, 591 dropdownParent: params.dropdownParent, 592 language: { 593 noResults: function(){ 594 return '<div class="select-field-select2-no-results"></div>'; 595 }, 596 removeAllItems: function(event) { 597 return ''; 598 }, 599 removeItem: function() { 600 return L['PRODUCT_CLEAR_PARAMETER']; 601 } 602 }, 603 escapeMarkup: function(markup){ 604 return markup; 605 } 606 }).on('select2:open',function(e){ 607 openSelect = $(e.target); 608 const self = $(this); 609 if(skyTheme && self.parent().hasClass('select2-fieldset')){ 610 self.parent().find('.select2-legend').css({'z-index': 12}); 611 } 612 }).on('select2:open',function(){ 613 const self = $(this); 614 $('.select2-search').find('input[type="search"]').prop('focus',false); 615 $('.select2-results > ul').scrollbar(); 616 if (!skyTheme || !params.closeOnSelect && $('.select2-results').next('.select2-set-params').length <= 0) { 617 const templateParams = !skyTheme? `<div class="select2-set-params"> 618 <span>${params.selectLang}</span>, 619 </div>`: `<button class="select2-set-params border-0 bg-transparent p-0 w-100">
620 <span>${params.selectLang}</span> 621 </button>` 622 $('.select2-results').after($([ 623 templateParams].join('')).on('click',function(){ 624 if(typeof params.selectCallback === 'undefined'){ 625 element.select2('close'); 626 }else{ 627 params.selectCallback({ 628 select: element, 629 select2: self 630 }); 631 } 632 })); 633 } 634 }).on('select2:closing',function(e){ 635 if(skyTheme){ 636 if(disabledSelectClose){ 637 e.preventDefault(); 638 disabledSelectClose = false; 639 } 640 } 641 642 const self = $(this); 643 $('.select2-results > ul').scrollbar('destroy'); 644 if(skyTheme && self.parent().hasClass('select2-fieldset')){ 645 self.parent().find('.select2-legend').css({'z-index': 11}); 646 } 647 }).on('select2:select',function(e){ 648 $(this).children('option[value="' + $(this).val() + '"]').trigger('click'); 649 }).next().addClass('select-field-select2-container') 650 .on('select2:close', function(e){ 651 if (openSelect && openSelect.is(e.target)) { 652 openSelect = null; 653 } 654 }); 655} 656 657var escapeAttributeValue = function (text) { 658 return text 659 .replace(/"/g,'\u0022').replace(/'/g,'\u0027')};var nettoToBrutto=function(value,tax){tax=isNaN(parseFloat(tax))?0:tax;return(Big(value).times(Big(Big(100).plus(tax)).div(100))).toFixed(2)} 660var bruttoToNetto=function(value,tax){tax=isNaN(tax)?0:tax;return(Big(value).minus(Big(Big(value).times(Big(tax).div(100))).div(Big(Big(100).plus(tax)).div(100)))).toFixed(2)} 661var stringPricesFormatter=function(value){var body=$('body'),symbol=body.attr('data-used').split('|')[1];value=String(value).replace(/[^0-9., \-]/g,'');if(symbol=='£'||symbol=='$'){symbol=symbol+value}else{symbol=value+String.fromCharCode(160)+symbol} 662return symbol};var pricesFormatterData={};var pricesFormatter=function(selectors,update){var selector,data=$('body'),priceType=data.attr('data-hurt-price-type');if(priceType=='netto'||priceType=='netto_brutto'){priceType=L.NET}else if(priceType=='brutto'){priceType=L.GROSS} 663if(typeof selectors==='undefined'||selectors=='*'){selector=$('.core_priceFormat')}else if(typeof selectors==='object'){selector=selectors.find('.core_priceFormat')} 664if(typeof update!=='undefined'&&update===!0||Object.keys(pricesFormatterData).length==0){var dataRates={};data.attr('data-rates').split(',').forEach(function(c){var name=c.split(':')[0].replace(/'/g,''),rate=parseFloat(c.split(':')[1])!==1?Big(1).div(parseFloat(c.split(':')[1])).toFixed(4):1;dataRates[name]=rate});pricesFormatterData={money:{base:data.attr('data-base'),used:data.attr('data-used').split('|')[0],rates:dataRates},accounting:{symbol:data.attr('data-used').split('|')[1],format:data.attr('data-used').split('|')[1]=='£'||data.attr('data-used').split('|')[1]=='$'?'%s%v':'%v'+String.fromCharCode(160)+'%s',decimal:data.attr('data-decimal'),thousand:data.attr('data-thousand')==' '?String.fromCharCode(160):data.attr('data-thousand'),precision:2}};fx.base=pricesFormatterData.money.base;fx.rates=pricesFormatterData.money.rates;accounting.settings.currency=pricesFormatterData.accounting} 665const getCurrencyRegex=(currency,removeFromFront=!0)=>{const escaped=currency.replace(/[-/\\^$*+?.()|[\]{}]/g,'\\$&');return removeFromFront?new RegExp('^\\s*'+escaped):new RegExp(escaped+'\\s*$')} 666var priceTypeFormatter=function(price,element){var attr=element.attr('data-price-type');if(typeof attr!=='undefined'&&typeof attr.split('|')[1]!=='undefined'&&attr.split('|')[1]=='show_type'){if(priceType.toLowerCase()==L.NET.toLowerCase()&&attr.split('|')[0]=='brutto'){if(!skyTheme){price=price+String.fromCharCode(160)+L.GROSS+String.fromCharCode(160)}else{price=price+' '+L.GROSS+String.fromCharCode(160)}}else{if(!skyTheme){price=price+String.fromCharCode(160)+priceType+String.fromCharCode(160)}else{price=price+' '+priceType+String.fromCharCode(160)}}} 667return price.trim()} 668selector.each(function(){var self=$(this),priceValue,price;if(typeof data.attr('data-hurt-price-text')!=='undefined'&&data.attr('data-hurt-price-text')&&self.hasClass('core_quickCartTotalPrice')){self.text(data.attr('data-hurt-price-text').substring(0,20));return} 669if(typeof data.attr('data-hurt-price-text')!=='undefined'&&data.attr('data-hurt-price-text')){self.text(data.attr('data-hurt-price-text'));return} 670if(self.data('price')===data.attr('data-hurt-price-text')){priceValue=parseFloat(self.data('price'))}else if(!isNaN(self.data('price'))){if(typeof self.attr('data-price-type')!=='undefined'&&(self.attr('data-price-type').split('|')[0]=='netto'||self.attr('data-price-type').split('|')[0]=='netto_brutto')){priceValue=bruttoToNetto(parseFloat(self.data('price')),self.data('tax'))}else{priceValue=parseFloat(self.data('price'))} 671if(typeof self.attr('data-currency')!=='undefined'){price=accounting.formatMoney(priceValue,{symbol:self.data('currency'),format:['£','$'].includes(self.data('currency'))?'%s%v':'%v'+String.fromCharCode(160)+'%s'})}else{price=accounting.formatMoney(fx.convert(priceValue,{from:pricesFormatterData.money.base,to:pricesFormatterData.money.used}
671))}} 672if(isNaN(priceValue)){var config=accounting.settings.currency;if(typeof self.attr('data-tax')!=='undefined'&&data.attr('data-hurt-price-text')!=''){price=data.attr('data-hurt-price-text')}else{if(data.attr('data-used').split('|')[1]=='£'||data.attr('data-used').split('|')[1]=='$'){price=config.symbol+'-,--'}else{price='-,--'+String.fromCharCode(160)}}} 673if(price&&data.attr('data-decimal-hide')==1){const CURRENCY_SYMBOLS_FRONT=['£','$'];const ZERO_DECIMALS='00';const config=accounting.settings.currency,currency=self.data('currency')??data.attr('data-used').split('|')[1],decimals=price.replace(getCurrencyRegex(currency,CURRENCY_SYMBOLS_FRONT.includes(currency)),'').trim().split(/,|\./).pop().split(String.fromCharCode(160))[0];if(decimals===ZERO_DECIMALS){let based=price.replace(getCurrencyRegex(currency,CURRENCY_SYMBOLS_FRONT.includes(currency)),'').split(config.decimal);based.pop();based.join(config.thousand);self.text(priceTypeFormatter(CURRENCY_SYMBOLS_FRONT.includes(currency)?currency+based:based+String.fromCharCode(160)+currency,self))}else{self.text(priceTypeFormatter(price,self))}}else{if(price){self.text(priceTypeFormatter(price,self))}else if(data.attr('data-hurt-price-text')){self.text(priceTypeFormatter(data.attr('data-hurt-price-text'),self))}}})};pricesFormatter();const phonesFormatter=function(){const phoneElements=document.querySelectorAll('.core_phoneFormat');phoneElements.forEach(function(element){const dataPhone=element.getAttribute('data-phone-number');const textPhone=element.textContent;const rawPhoneNumber=dataPhone||textPhone;if(rawPhoneNumber){const cleanedPhoneNumber=rawPhoneNumber.replace(/\s+/g,'');const newHref='tel:'+cleanedPhoneNumber;element.setAttribute('href',newHref)} 674const currentHref=element.getAttribute('href');if(currentHref){const cleanedHref=currentHref.replace(/\s+/g,'');element.setAttribute('href',cleanedHref)}})};phonesFormatter();var carousels={};$(document).on('ready mousewheel DOMMouseScroll scroll touchmove',function(e){var scrollTop=this.documentElement.scrollTop||this.body.scrollTop,toTop=$('#to-top');if(scrollTop>500&&!toTop.hasClass('show')){toTop.addClass('show')}else if(scrollTop<=500&&toTop.hasClass('show')){toTop.removeClass('show')}});$(document).on(' mousewheel DOMMouseScroll touchmove',function(e){if(document.activeElement.tagName==='INPUT'){setTimeout(()=>{$(document.activeElement).eq(0).blur()},0)}});$('#to-top').on('click',function(){var toTop=$(this),scrollTop=$('html,body');scrollTop.animate({scrollTop:0},'slow',function(){toTop.removeClass('show')})});$(document).on('click','[data-select-currency]',function(e){e.preventDefault();cookies.create('currency',$(this).data('select-currency').split('|')[0],365*24*60*60*1000);location.reload()});$('#header').on('focus','.input-field[name="q"]',function(){var self=$(this);if(self.parents('li.search').length>0&&!self.parents('li.search').hasClass('click')){self.parents('li.search').addClass('click clicked');self.one('blur',function(){var self=$(this);if(self.parents('li.search').length>0){self.parents('li.search').removeClass('click clicked')}})}});var specialCharacterNameToReplace=function(prodName){let stringToEncode=prodName;if(prodName.includes('$&')){stringToEncode=stringToEncode.replace(/\$\&/g,'$&')}else if(prodName.includes('$&')){stringToEncode=stringToEncode.replace(/\$\&/g,'$&')} 675return stringToEncode} 676var orderRenderStarInput=function(validStar){if(validStar){$('.core_personalOrderShipment').find('.required').css({display:'inline-block'})} 677else{$('.core_personalOrderShipment').find('.required').css({display:'none'})}} 678var renderLimitedOrderOptions=function(selectOptions,isRequired){var limitedGhostInputs={limitedCity:'.userCity',limitedPostalCode:'.userPostalCode',limitedStreets:'.userStreets',} 679var renderOptions=function(adressArray){var template='' 680adressArray.forEach(function(adressOption){template+='<option> '+adressOption+' </option> '});return template} 681var renderOrderFormInputs=function(select,array,selectName){if(array.length===1&&selectName!=='user_street'){var selectErrorContainerHeight 682select.children().eq(1).replaceWith('<select id='+selectName+' name='+selectName+' data-valid="required" aria-required="true" data-storage="attr(name)|ac_"></select>') 683select.children().eq(1).html(renderOptions(array)) 684select.children().eq(1).select2({theme:'bootstrap',width:'100%',minimumResultsForSearch:-1,selectionCssClass:'select-primary select-primary-blank',dropdownCssClass:"select-primary-dropdown select-primary-dropdown-blank",placeholder:skyTheme?L.SELECT_FROM_LIST:('-- '+L.SELECT+'--'),allowClear:!0}
684).on('select2:open',function(){$('.select2-results > ul').scrollbar()}).on('select2:closing',function(){$('.select2-results > ul').scrollbar('destroy')});selectErrorContainerHeight=$('.order').find($('.select2-container')).innerHeight()+'px' 685select.find($('select[name='+selectName+']')).attr('style','left: 0; width: calc(100% - 30px) !important; height: calc('+selectErrorContainerHeight+' + 2px) !important; min-height: 36px')} 686if(array.length>1&&selectName!=='user_street'){var selectErrorContainerHeight 687select.children().eq(1).replaceWith('<select id="'+selectName+'" name="'+selectName+'" data-valid="required" aria-required="true" data-storage="attr(name)|ac_">'+'<option></option>'+renderOptions(array)+'</select>') 688select.children().eq(1).select2({theme:'bootstrap',width:'100%',placeholder:skyTheme?L.SELECT_FROM_LIST:('-- '+L.SELECT+'--'),minimumResultsForSearch:array.length>1?1:-1,selectionCssClass:'select-primary select-primary-blank',dropdownCssClass:"select-primary-dropdown select-primary-dropdown-blank",allowClear:!0}).on('select2:open',function(){$('.select2-results > ul').scrollbar()}).on('select2:closing',function(){$('.select2-results > ul').scrollbar('destroy')});selectErrorContainerHeight=$('.order').find($('.select2-container')).innerHeight()+'px' 689select.find($('select[name='+selectName+']')).attr('style','left: 0; width: calc(100% - 30px) !important; height: calc('+selectErrorContainerHeight+' + 2px) !important; min-height: 36px ')} 690if(selectName==='user_street'){var selectErrorContainerHeight 691select.children().eq(0).css({display:'none'});let streetTemplate;let houseTemplate;if(skyTheme){streetTemplate=` 692 <div style="width: calc(60% - 5px)"> 693 <label for="limited_street" class="sky-f-small-medium mb-1"><span>${L['STREET']}</span> <span aria-hidden="true" class="required">*</span></label> 694 <select id="limited_street" name="limited_street" data-valid="required" data-storage="attr(name)|ac_"> 695 <option></option> 696 ${renderOptions(array)} 697 </select> 698 </div> 699 `}else{streetTemplate='<div style="width: 60%; display: inline-block">'+'<span class="order-title-section"> '+L.STREET+' <span class="required">*</span> </span>'+'<select name="limited_street" data-valid="required" data-storage="attr(name)|ac_">'+'<option></option>'+renderOptions(array)+'</select>'+'</div>'} 700select.children().eq(1).replaceWith(streetTemplate) 701if(array.length===1){select.find('select[name="limited_street"]').html(renderOptions(array))} 702select.find('select[name="limited_street"]').select2({theme:'bootstrap',selectionCssClass:'select-primary select-primary-blank',dropdownCssClass:"select-primary-dropdown select-primary-dropdown-blank",width:'100%',placeholder:skyTheme?L.SELECT_FROM_LIST:('-- '+L.SELECT+'--'),minimumResultsForSearch:array.length>1?1:-1,allowClear:!0}).on('select2:open',function(){$('.select2-results > ul').scrollbar()}).on('select2:closing',function(){$('.select2-results > ul').scrollbar('destroy')});if(skyTheme){houseTemplate=` 703 <div style="width: calc(40% - 5px)"> 704 <label for="limited_house" class="sky-f-small-medium mb-1"><span>${L['STREET_ADDRESS_NR']}</span> <span aria-hidden="true" class="required">*</span></label> 705 <input id="limited_house" class="input-field form-control-lg form-control" name="limited_house" data-valid="required|minlength:1"> 706 <input style="display: none" class="input-field" name="${selectName}" data-storage="attr(name)|ac_" > 707 </div> 708 `}else{houseTemplate=` 709 <div style="width: 30%; float: right"> 710 <span class="order-title-section">${L['STREET_ADDRESS_NR']}<span class="required">*</span> </span> 711 <input class="input-field form-control-lg" name="limited_house" data-valid="required|minlength:1"> 712 <input style="display: none" class="input-field" name="${selectName}" data-storage="attr(name)|ac_" > 713 </div>`} 714select.append(houseTemplate) 715select.find('input[name="limited_house"]').on('change',function(){select.find('input[name="user_street"]').val(select.find('select[name="limited_street"]').val()+' '+select.find('input[name="limited_house"]').val())}) 716selectErrorContainerHeight=$('.order').find($('.select2-container')).innerHeight()+'px' 717select.find($('select[name="limited_street"]')).attr('style','left: 0; width: 55% !important; height: calc('+selectErrorContainerHeight+' + 3px) !important; min-height: 36px ')} 718$('select[data-valid="required"]').each(function(){$(this).attr('aria-required',!0);const $selection=$(this).next('.select2').find('.select2-selection') 719const selectId=$(this).attr('id');const $label=$('label[for="'+selectId+'"]');if(!$label.attr('id')){$label.attr('id','label_'+selectId)} 720$selection.attr('aria-required',!0);$selection.attr('aria-labelledby','label_'+selectId)})} 721var defaultRender=function(defaultSelect,inputName,cookiesVal,validRule,postCode){var spanTitle=defaultSelect.children().eq(0).html() 722var clientProfileCredentials=defaultSelect.children().eq(1).val() 723const additionalFormClasses=skyTheme?'form-control form-control-lg':'';let labelTemplate;if(skyTheme){labelTemplate='<label for="'+inputName+'" class="sky-f-small-medium mb-1"><span>'+spanTitle+'</span></label>'}else{labelTemplate='<span class="order-title-section">'+spanTitle+'</span>'} 724if(isRequired){if(postCode){defaultSelect.html(labelTemplate+'<input data-valid-parent-postcode='+postCode+' class="input-field '+additionalFormClasses+'" type="text" data-valid-parent-required="shipmentRequired" type="text" data-valid-parent-required="shipmentRequired" name='+inputName+' id='+inputName+' aria-required="true" data-valid='+validRule+' data-storage="attr(name)|ac_">')}else{defaultSelect.html(labelTemplate+'<input class="input-field '+additionalFormClasses+'" type="text" data-valid-parent-required="shipmentRequired" type="text" data-valid-parent-required="shipmentRequired" name='+inputName+' id='+inputName+' aria-required="true" data-valid='+validRule+' data-storage="attr(name)|ac_" >')}}else{defaultSelect.html(labelTemplate+'<input class="input-field '+additionalFormClasses+'" type="text" data-valid-parent-required="shipmentRequired" type="text" data-valid-parent-required="shipmentRequired" name='+inputName+' data-storage="attr(name)|ac_" >')}
725if(cookies.read(cookiesVal)){defaultSelect.find($('input[name='+inputName+']')).val(decodeURIComponent(cookies.read(cookiesVal)))}else{defaultSelect.find($('input[name='+inputName+']')).val(clientProfileCredentials)}};if(selectOptions.cities&&selectOptions.cities.length>0){var self=$(limitedGhostInputs.limitedCity) 726defaultRender(self,'user_city','ac_user_city','required|minlength:3') 727renderOrderFormInputs(self,selectOptions.cities,'user_city')}else{var self=$(limitedGhostInputs.limitedCity) 728defaultRender(self,'user_city','ac_user_city','required|minlength:3|ASCII')} 729if(selectOptions.postal_codes&&selectOptions.postal_codes.length>0){var self=$(limitedGhostInputs.limitedPostalCode) 730defaultRender(self,'user_code','ac_user_code','required|postcode','.user_country') 731renderOrderFormInputs(self,selectOptions.postal_codes,'user_code')}else{var self=$(limitedGhostInputs.limitedPostalCode) 732defaultRender(self,'user_code','ac_user_code','required|postcode','.user_country')} 733if(selectOptions.streets&&selectOptions.streets.length>0){var self=$(limitedGhostInputs.limitedStreets) 734if(skyTheme){self.css({'flex-direction':'row','justify-content':'space-between'})} 735defaultRender(self,'user_street','ac_user_street','required|streetAddressNr|ASCII') 736renderOrderFormInputs(self,selectOptions.streets,'user_street')}else{var self=$(limitedGhostInputs.limitedStreets);if(skyTheme){self.css({'flex-direction':'column','justify-content':'unset'})} 737defaultRender(self,'user_street','ac_user_street','required|streetAddressNr|ASCII')}} 738const orderRenderProductsList=function(elements,products){elements.productTable.children(':not(.product-list-item-template)').remove();const template=elements.productTable.html();const staticTemplateVariables={price:'price',id:'id',amount:'amount',hash:'hash',tax:'tax',image_url:'image',image_tag:'imgTag',name:'name',options_string:'optionsString',options_details:'optionsDetails',formatted_price:'formattedPrice',};const priceType=elements.body.data('hurt-price-type');let items=[];SkyShop.cart.products={};products.forEach(function(product){let item=template;product.image+='_125.jpg';if(product.name.includes('$&','&','$&')){const stringToEncode=specialCharacterNameToReplace(product.name) 739product.name=stringToEncode} 740product.imgTag=`<img src="${product.image}" alt="${product.name}"/>`;product.optionsString=product.options.map(option=>`${option.valueId}:${option.valueId}`).join(',');product.optionsDetails=product.options.map(option=>{if(option.name.includes('$&','&','$&')){const stringToEncode=specialCharacterNameToReplace(option.name) 741option.name=stringToEncode} 742if(option.value.includes('$&','&','$&')){const stringToEncode=specialCharacterNameToReplace(option.value) 743option.value=stringToEncode} 744if(option.isText){return skyTheme?`<div><span>${option.name}:</span> <span>${option.value}</span></div>`:`<br>${option.name}: <span style="word-break: break-word">${option.value}</span>`} 745return skyTheme?`<div><span>${option.name}:</span> <span>${option.value}</span></div>`:`${option.name}: <span>${option.value}</span>`}).join(' ');product.formattedPrice=`<span class="core_priceFormat" data-price="${product.price}" data-tax="${product.tax}" data-price-type="${priceType}|show_type"></span>`;if(['netto','netto_brutto'].includes(priceType)){product.formattedPrice+=`<br /><span class="core_priceFormat" data-price="${product.price}" data-tax="${product.tax}" data-price-type="brutto|show_type"></span>`} 746for(let key in staticTemplateVariables){if(key==='name'){if(product[staticTemplateVariables[key]].includes('$&','&','$&')){var stringToEncode=specialCharacterNameToReplace(product[staticTemplateVariables[key]]) 747item=item.replace(new RegExp(`{{:${key}:}}`,'g'),stringToEncode)}else{item=item.replace(new RegExp(`{{:${key}:}}`,'g'),product[staticTemplateVariables[key]])}} 748item=item.replace(new RegExp(`{{:${key}:}}`,'g'),product[staticTemplateVariables[key]]);} 749item=$(item).removeClass('product-list-item-template hidden');const producerName=product?.producerName??'';const categoryName=product?.categoryName??'';if(product.hash){SkyShop.cart.products[product.hash]={id:product.id,name:product.name,price:product.price,amount:product.amount,producerName:producerName,categoryName:categoryName,options:Object.fromEntries(product.options.map(option=>[option.valueId,option.valueId]))}} 750items.push(item)});elements.productTable.append(items)};var orderRenderLoyaltyPoints=function(elements,pointsForOrder){if(!elements.loyaltyPointsForOrder){return} 751elements.loyaltyPointsForOrder[pointsForOrder?'removeClass':'addClass']('hidden');elements.loyaltyPointsForOrderCounter.text(pointsForOrder)};var orderRenderCalculations=function(calculations,isInitialCalculation){if(SkyShop.order.calculations&&SkyShop.order.calculations.gratisId&&!calculations.gratisId){Swal.fire({width:550,title:L.INFORMATION,html:L.GRATIS_REMOVED,customClass:{confirmButton:'btn',...popups.customClass},...(skyTheme?popups.ariaConfiguration:{})})} 752if(!isInitialCalculation){const hasPaymentChanged=SkyShop.order.prevPaymentId!==SkyShop.order.paymentId;const hasShipmentChanged=SkyShop.order.prevShipmentSelected!==SkyShop.order.shipmentSelected;if(hasPaymentChanged||hasShipmentChanged){const items=calculations.products?.map((product,index)=>{const selectOptions=(product.options||[]).sort((a,b)=>a.valueId-b.valueId).map(option=>option.isText?L.TEXT_PARAMETER:option.value);const itemVariant=selectOptions.length?selectOptions:undefined;return mapProductToGoogleItem({item_id:product.id,item_name:product.name,price:product.priceInOrderCurrency,quantity:product.amount,item_brand:product.producerName,item_category:product.categoryName,item_variant:itemVariant,index:index+1,})});const eventData={currency:calculations.orderCurrency,value:calculations.orderProductsPricesSum,coupon:calculations.coupon};if(hasPaymentChanged){Analytics.trackAddPaymentInfo({...eventData,payment_type:calculations.payment?.name},items);SkyShop.order.prevPaymentId=SkyShop.order.paymentId} 753if(hasShipmentChanged){Analytics.trackAddShippingInfo({...eventData,shipping_tier:calculations.shipment?.name},items);SkyShop.order.prevShipmentSelected=SkyShop.order.shipmentSelected}}} 754SkyShop.order.calculations=calculations;var orderPreview=$('.order .order-preview');var orderInner={body:$('body'),priceItemsNet:orderPreview.find('.core_orderPriceNetItems'),priceItems:orderPreview.find('.core_orderPriceItems'),priceShipment:orderPreview.find('.core_orderPriceShipment'),priceOverhead:orderPreview.find('.core_orderPriceOverhead'),priceIsOverhead:orderPreview.find('.core_orderIsPriceOverhead'),priceTotal:orderPreview.find('.core_orderPriceTotal'),wdtInfo:orderPreview.find('#core_wdtInfo'),productTable:orderPreview.find('.core_storeCartProducts tbody'),loyaltyPointsForOrder:orderPreview.find('.points-for-order'),loyaltyPointsForOrderCounter:orderPreview.find('.points-for-order .points-count')};orderRenderProductsList(orderInner,calculations.products);orderRenderLoyaltyPoints(orderInner,calculations.pointsForOrder);orderInner.priceTotal.data('price',calculations.orderPriceTotal);orderInner.priceShipment.data('price',calculations.orderPriceShipment||0);orderInner.priceItems.data('price',calculations.orderProductsPricesSum) 755orderInner.priceItemsNet.data('price',calculations.orderProductsPricesSumNet) 756if(calculations.orderPaymentOverhead!==null){orderInner.priceOverhead.data('price',calculations.orderPaymentOverhead);orderInner.priceIsOverhead.removeClass('hidden')}else{orderInner.priceOverhead.data('price',0);orderInner.priceIsOverhead.addClass('hidden')} 757if(calculations.isWdt==!0){orderInner.wdtInfo.removeClass('hidden')}else{orderInner.wdtInfo.addClass('hidden')} 758pricesFormatter(orderPreview)};var orderCalculate=function(){if(!SkyShop.order.paymentId||!SkyShop.order.shipmentSelected)return 759if(SkyShop.core.orderCalculationAjax&&SkyShop.core.orderCalculationAjax.readyState!==4){SkyShop.core.orderCalculationAjax.abort()} 760SkyShop.order.wdt=$('.order input#param-rules-wdt').prop("checked") 761var request=$.ajax({type:'GET',url:'/order/',data:{json:1,recalculate:1,c:SkyShop.order.userCountry,pay_id:SkyShop.order.paymentId,prev_pay_id:SkyShop.order.prevPaymentId,shipment:SkyShop.order.shipmentSelected,prev_shipment:SkyShop.order.prevShipmentSelected,wdt:SkyShop.order.wdt?1:0,gratis:SkyShop.order.calculations&&SkyShop.order.calculations.gratisId||''},dataType:'json'});request.done((response)=>orderRenderCalculations(response));SkyShop.core.orderCalculationAjax=request};const AC_SHIPMENT_COOKIE='ac_shipment';const AC_SHIPMENT_COOKIE_TTL=60*24*60*60*1000;const AC_SHIPMENT_MAX_LENGTH=10;const getShipmentData=()=>{const rawData=cookies.read(AC_SHIPMENT_COOKIE);if(!rawData)return[];try{const parsedData=JSON.parse(decodeURIComponent(rawData));return Array.isArray(parsedData)?parsedData:[]}catch{return[]}};const setShipmentData=(data)=>
761{cookies.create(AC_SHIPMENT_COOKIE,encodeURIComponent(JSON.stringify(data)),AC_SHIPMENT_COOKIE_TTL)};const saveDeliverySelection=(deliveryHash,updates={})=>{const data=getShipmentData();const existingIndex=data.findIndex(selection=>selection.deliveryHash===deliveryHash);let selection;if(existingIndex>-1){selection={...data[existingIndex],...updates};data.splice(existingIndex,1)}else{selection={deliveryHash,pickupCity:null,pickupId:null,...updates}} 762data.push(selection);if(data.length>AC_SHIPMENT_MAX_LENGTH){data.splice(0,data.length-AC_SHIPMENT_MAX_LENGTH)} 763setShipmentData(data)};const findDeliveryByHash=(deliveryHash)=>{return getShipmentData().find(entry=>entry.deliveryHash===deliveryHash)||null};const getLastShipment=()=>{const data=getShipmentData();return data.length>0?data[data.length-1]:null};var orderRenderDeliveries=function(methods){var order=$('.order');var data={methods:function(methods){const lastShipment=getLastShipment();const shipmentValue=lastShipment?lastShipment.deliveryHash:null;var sortedMethods={},selectedMethod=shipmentValue!=null&&Object.keys(methods).indexOf(shipmentValue)>-1?shipmentValue:null;Object.keys(methods).forEach(function(key){var method=methods[key];if(typeof sortedMethods[method.order]!=='undefined'){method.order=Math.floor(Math.random()*(1000-100+1)+100).toString()} 764sortedMethods[method.order]=method;sortedMethods[method.order].uniqueId=key});return{sorted:sortedMethods,selected:selectedMethod}}};var elements={payments:order.find('tr.core_getOrderShipments'),deliveries:order.find('#order-deliverys-methods'),empty:order.find('#order-deliverys-methods-empty'),error:order.find('#order-deliverys-methods-error'),methods:{container:order.find('#order-deliverys-methods').children('tbody'),all:order.find('#order-deliverys-methods').children('tbody').children('tr').not('[class*="pattern"]'),pattern:order.find('#order-deliverys-methods').children('tbody').children('.delivery-method-pattern'),patternMore:order.find('#order-deliverys-methods').children('tbody').children('.delivery-method-more-pattern')}};var manage={methods:{render:function(method,selected,i){var isSelected=(selected!=null&&selected==method.uniqueId)||(selected==null&&i==0);var deliveryTemplate=elements.methods.pattern[0].outerHTML;deliveryTemplate=deliveryTemplate.replace(/{{:id:}}/g,method.uniqueId);if(method.name.includes('$&','&','$&')){var stringToEncode=specialCharacterNameToReplace(method.name) 765deliveryTemplate=deliveryTemplate.replace(/{{:name:}}/g,stringToEncode)}else{deliveryTemplate=deliveryTemplate.replace(/{{:name:}}/g,method.name)} 766deliveryTemplate=deliveryTemplate.replace(/{{:description:}}/g,method.desc);deliveryTemplate=deliveryTemplate.replace(/{{:cost:}}/g,SkyShop.order.wdt?method.price_net:method.price);if(method.personal=='yes'){deliveryTemplate=deliveryTemplate.replace(/{{:shipment_type:}}/g,'personal')}else{deliveryTemplate=deliveryTemplate.replace(/{{:shipment_type:}}/g,'delivery')} 767const isPayPo=Number(SkyShop?.order?.paymentId)===26;if(method.require_address=='yes'||isPayPo){deliveryTemplate=deliveryTemplate.replace(/{{:require_address:}}/g,'shipmentRequired')}else{deliveryTemplate=deliveryTemplate.replace(/{{:require_address:}}/g,'')} 768deliveryTemplate=deliveryTemplate.replace(/{{:ic-path:}}/g,`<img class="payment-ico" src="${method.iconPath}" alt="">`);deliveryTemplate=$(deliveryTemplate) 769deliveryTemplate.removeClass('delivery-method-pattern').css('display','none').removeClass('hidden');deliveryTemplate.not('.delivery-method-pattern').attr('data-cy','orderDelivery') 770if(isSelected){SkyShop.order.shipmentSelected=method.uniqueId;deliveryTemplate.addClass('active');deliveryTemplate.attr('data-auto-selected',!0);deliveryTemplate.find('input[name="shipment"]').prop('checked',!0)} 771if(method['function']!='none'){deliveryTemplate.addClass('core_getOrderShipmentsSpecial');deliveryTemplate.attr('data-key',method.uniqueId);deliveryTemplate=$().add(deliveryTemplate).add($(elements.methods.patternMore[0].outerHTML).removeClass('delivery-method-more-pattern').css('display',isSelected?'table-row':'none').css('opacity',isSelected?1:0).addClass(isSelected?'open':'').removeClass('hidden')).add('<tr class="tr-separator"></tr>')}else{deliveryTemplate=$().add(deliveryTemplate).add('<tr class="tr-separator"></tr>')} 772return deliveryTemplate}},error:{render:function(){elements.error.text(methods.user_error);elements.error.data('deliveryError',1) 773skyTheme&&elements.error.removeClass('d-none')}}};if(typeof methods.user_error==='undefined'){removeError(elements.empty);removeError(elements.error);elements.error.data('deliveryError',0) 774$().add(elements.error).add(elements.empty).transition('fadeOut',200);methods=data.methods(methods);setTimeout(function(){elements.methods.all=order.find('#order-deliverys-methods').children('tbody').children('tr').not('[class*="pattern"]');elements.methods.all.remove();
774Object.keys(methods.sorted).forEach(function(key,i){elements.methods.container.append(manage.methods.render(methods.sorted[key],methods.selected,i))});elements.methods.all=order.find('#order-deliverys-methods').children('tbody').children('tr').not('[class*="pattern"]');elements.methods.all.each(function(){if($(this).data('auto-selected')===!0){$(this).trigger('click',{updateCookie:!1})}});pricesFormatter(elements.methods.all);$().add(elements.deliveries).add(elements.methods.all.not('.more')).transition('fadeIn',200)},180)}else{removeError(elements.empty);$().add(elements.deliveries).add(elements.empty).transition('fadeOut',200);setTimeout(function(){manage.error.render();elements.error.transition('fadeIn',200)},180)} 775$(elements.payments).each((i,el)=>{$(el).data('loading',!1).removeClass('loading-order-shipment').find('.shipment-loader').remove()}) 776$(elements.deliveries).show() 777$(elements.empty).find('.shipment-loader').remove()};const popupsAddClasses=(el,...cls)=>el&&el.classList.add(...cls);const popupsSetupErrorIcon=(popup)=>{const icon=popup.querySelector('.swal2-error');if(!icon)return;icon.style.display='block';popupsAddClasses(icon,'animate-error-icon');popupsAddClasses(icon.querySelector('.swal2-x-mark'),'animate-x-mark');popupsAddClasses(icon.querySelector('.swal2-x-mark-line-left'),'line','left');popupsAddClasses(icon.querySelector('.swal2-x-mark-line-right'),'line','right')};const popupsSetupSuccessIcon=(popup)=>{const icon=popup.querySelector('.swal2-success');if(!icon)return;icon.style.display='block';popupsAddClasses(icon,'animate');popupsAddClasses(icon.querySelector('.swal2-success-line-tip'),'line','tip','animate-success-tip');popupsAddClasses(icon.querySelector('.swal2-success-line-long'),'line','long','animate-success-long');popupsAddClasses(icon.querySelector('.swal2-success-ring'),'placeholder');popupsAddClasses(icon.querySelector('.swal2-success-fix'),'fix')};var popups={customClass:{htmlContainer:'swal2-content'},ariaConfiguration:{focusConfirm:!1,focusCancel:!1,focusDeny:!1,backdrop:!1,didOpen:(popup)=>{const popupConfig=[{className:'swal-shop-newsletter-popup',getBtn:p=>p.querySelector('.newsletter-button')},{className:'swal-shop-ask-about-product-popup',getBtn:p=>p.querySelector('.core_askQuestion')},{className:'swal-product-rate-popup',getBtn:p=>p.querySelector('.core_addOpinion')},{className:'delivery-price-info',action:p=>$(p.querySelector('.delivery_info-popup ul')).scrollbar()}];popup.setAttribute('role','alertdialog');popup.removeAttribute('aria-live');setTimeout(()=>{let btn=null;for(const cfg of popupConfig){if(popup.classList.contains(cfg.className)){if(cfg.getBtn)btn=cfg.getBtn(popup);if(cfg.action)cfg.action(popup);break}} 778if(!btn){btn=popup.querySelector('.swal2-confirm')} 779btn?.focus()},300)}},addToCart:function(callback){Swal.fire({width:650,customClass:{popup:skyTheme?'swal-shop-action-popup product-added':'swal-shop-action-popup',confirmButton:'btn',cancelButton:'btn',...popups.customClass},confirmButtonText:L.CONTINUE_SHOPPING,showCancelButton:!0,cancelButtonText:L.MAKE_ORDER,title:skyTheme?`<i class="icon-added_to_basket"><i class="path1"></i><i class="path2"></i><i class="path3"></i></i>${L['PRODUCT_ADDED']}`:L.PRODUCT_ADDED,icon:'success',html:L.PRODUCT_ADDED_E_AMOUNT,...(skyTheme?popups.ariaConfiguration:{didOpen:(popup)=>{popupsSetupSuccessIcon(popup)}})}).then((result)=>{if(result.isConfirmed){if(callback){callback()}}else{const link=document.createElement('a');link.href='/cart/';document.body.appendChild(link);link.click()}});$('.swal-shop-action-popup').find('.btn').blur()},actionAlert:function(title,content,type,callback,popupCallback){Swal.fire({width:550,title:title,html:content,icon:type,showConfirmButton:!0,confirmButtonText:'OK',customClass:{popup:'swal-shop-action-popup',confirmButton:'btn',...popups.customClass},willClose:popupCallback?popupCallback:undefined,...(skyTheme?popups.ariaConfiguration:{didOpen:(popup)=>{popupsSetupErrorIcon(popup);popupsSetupSuccessIcon(popup)}})}).then((result)=>{if(result.isConfirmed){if(callback){callback()}}})},yesNo:function(title,content,type,callbackYes,callbackNo){Swal.fire({width:550,customClass:{popup:'swal-shop-action-popup',confirmButton:'btn',cancelButton:'btn',...popups.customClass},confirmButtonText:L.YES,showCancelButton:!0,cancelButtonText:L.NO,title:title,icon:type,html:content,...(skyTheme?popups.ariaConfiguration:{})}).then(function(result){if(result.isConfirmed){if(callbackYes)callbackYes()}
779else if(result.isDismissed){if(callbackNo)callbackNo()}})},newsletter:function(content,callback){if(window.innerWidth>=800){const csrfToken=document.querySelector('input[name="csrf_token"]')?document.querySelector('input[name="csrf_token"]').value:'';const cfTurnstileSiteKey=document.querySelector('.cf-turnstile')?document.querySelector('.cf-turnstile').getAttribute('data-sitekey'):'';const cfTurnstileHtml=cfTurnstileSiteKey?`<div class="cf-turnstile" data-sitekey="${cfTurnstileSiteKey}"></div>`:'';const oldTemplate=` 780 <div class="container-fluid" style="background-image:url('/${S["UPLOAD_PATH"]}/newsletter-popup.jpg');background-size:cover;"> 781 <div class="row"> 782 <div class="col-xs-12"> 783 <div> 784 ${content} 785 <form class="newsletter-form core_addEmailToNewsletterPopup" data-valid-box> 786 <div class="row"> 787 <div class="col-xxs col-xs-7 col-md-8"> 788 <input type="text" name="email" value="" placeholder="${L['INPUT_EMAIL']}" class="newsletter-input" data-valid="required|email" /> 789 </div> 790 <div class="col-xxs col-xs-5 col-md-4"> 791 <input type="submit" value="${L['ADD_ADDRESS']}" class="btn newsletter-button core_addEmailToNewsletterPopup" /> 792 <input type="hidden" value="1" class="pro-tecting-_-Input" name="is_js"> 793 <input type="hidden" name="csrf_token" value="${csrfToken}" /> 794 </div> 795 </div> 796 </form> 797 </div> 798 <i class="close-shape"></i> 799 </div> 800 </div> 801 </div> 802 `;const newTemplate=` 803 <div class="col-6 swal2-newsletter-background" style="background-image:url('/${S['UPLOAD_PATH']}/newsletter-popup-flex.jpg');background-size:cover;"></div> 804 <div class="col-6 swal2-newsletter-content"> 805 ${content} 806 <div> 807 <form class="newsletter-form core_formChange core_addEmailToNewsletterPopup" > 808 <div class="w-100" data-valid-box> 809 <label for="email" class="sr-only">${L['EMAIL']}</label> 810 <input id="email" type="text" name="email" value="" placeholder="${L['INPUT_EMAIL']}" class="newsletter-input w-100" data-valid="required|email" /> 811 </div> 812 <div class="w-100"> 813 <input type="submit" value="${L['ADD_ADDRESS']}" class="btn btn-primary btn-small newsletter-button core_addEmailToNewsletterPopup w-100" /> 814 <input type="hidden" value="1" class="pro-tecting-_-Input" name="is_js"> 815 <input type="hidden" name="csrf_token" value="${csrfToken}" /> 816 </div> 817 ${cfTurnstileHtml} 818 </form> 819 </div> 820 </div> 821 <i class="close-shape icon-close_24 icon-24"></i> 822 `;Swal.fire({width:skyTheme?722:800,customClass:{popup:'swal-shop-newsletter-popup',confirmButton:'btn',...popups.customClass},confirmButtonText:'OK',title:'Newsletter',icon:'info',html:skyTheme?[newTemplate].join(''):[oldTemplate].join(''),willClose:callback?callback:null,...(skyTheme?popups.ariaConfiguration:{})});if(skyTheme&&typeof turnstile!=='undefined'&&cfTurnstileSiteKey){const turnstileContainer=document.querySelector('.swal-shop-newsletter-popup .cf-turnstile');if(turnstileContainer){turnstile.render(turnstileContainer,{sitekey:cfTurnstileSiteKey})}} 823$(document).on('click','.swal-shop-newsletter-popup .close-shape',function(){$('.swal-shop-newsletter-popup').find('.swal2-confirm').trigger('click')})}},askAboutProduct:function(productId,csrfToken=''){const cfTurnstileSiteKey=document.querySelector('.cf-turnstile')?document.querySelector('.cf-turnstile').getAttribute('data-sitekey'):'';const cfTurnstileHtml=cfTurnstileSiteKey?`<div class="cf-turnstile" data-sitekey="${cfTurnstileSiteKey}"></div>`:'';Swal.fire({width:800,customClass:{popup:'swal-shop-ask-about-product-popup',confirmButton:'btn',...popups.customClass},confirmButtonText:skyTheme?`<i role="button" aria-label="${L['CLOSE_POPUP']}" class="icon-close_28"></i>`:'OK',title:L.ASQ_QUESTION,html:skyTheme?`<form method="POST" class="add-product-question-form"> 824 <div class="d-flex flex-column add-product-question-form-wrapper"> 825 <div> 826 <label for="username_popup" class="sky-f-body-medium">${L['SIGNATURE']} <span aria-hidden="true" class="required">*</span></label> 827 <input id="username_popup" class="form-control" type="text" value="${S['USER'].name}" name="username" aria-required="true" data-valid="required" /> 828 </div> 829 830 <div> 831 <label for="email_popup" class="sky-f-body-medium">${ L['EMAIL']} <span aria-hidden="true" class="required">*</span></label> 832 <input id="email_popup" class="form-control" type="text" value="${S['USER'].email}" name="email" aria-required="true" data-valid="required|email" /> 833 </div> 834 <div> 835 <label for="text_popup" class="sky-f-body-medium">${L['ASQ_QUESTION']} <span aria-hidden="true" class="required">*</span></label> 836 <textarea id="text_popup" class="form-control" rows="4" name="text" data-valid="required" aria-required="true"></textarea> 837 <input type="hidden" value="1" class="pro-tecting-_-Input" name="is_js"/> 838 <input type="hidden" name="csrf_token" value="${csrfToken}"/> 839 </div> 840 ${cfTurnstileHtml} 841 <button class="btn btn-primary core_askQuestion" data-product-id="${productId}">${L['SEND']}</button> 842 </div> 843 </form>`:['<i class="close-shape"></i>','<section class="product-opinions">','<form method="POST">','<table class="product-add-opinion">','<tbody>','<tr>','<td>','<span class="parameter-name">'+L.SIGNATURE+'</span>','</td>','<td>','<input class="input-field" type="text" value="'+S.USER.name+'" placeholder="" name="username" data-valid="required" />','</td>','</tr>','<tr>','<td>','<span class="parameter-name">'+L.EMAIL+'</span>','</td>','<td>','<input class="input-field" type="text" value="'+S.USER.email+'" placeholder="" name="email" data-valid="required|email" />','</td>','</tr>','<tr>','<td>','<span class="parameter-name">'+L.ASQ_QUESTION+'</span>','</td>','<td>','<textarea class="textarea-field" rows="4" name="text" data-valid="required"></textarea>','<input type="hidden" value="1" class="pro-tecting-_-Input" name="is_js"/>','<input type="hidden" name="csrf_token" value="'+csrfToken+'"/>','</td>','</tr>','</tbody>','</table>','<div class="col-xs-12">','<button class="btn btn-primary btn-lg btn-opinion-add core_askQuestion" data-product-id="'+productId+'">'+L.SEND+'</button>','</div>','</form>','</section>'].join(''),...(skyTheme?popups.ariaConfiguration:{})});if(skyTheme&&typeof turnstile!=='undefined'&&cfTurnstileSiteKey){const turnstileContainer=document.querySelector('.swal-shop-ask-about-product-popup .cf-turnstile');if(turnstileContainer){turnstile.render(turnstileContainer,{sitekey:cfTurnstileSiteKey})}} 844$(document).on('click','.swal-shop-ask-about-product-popup .close-shape',function(){$('.
844swal-shop-ask-about-product-popup').find('.swal2-confirm').trigger('click')})},emailRegisteredAlready:function(title,content,type,confirmButtonText,callback){if(!confirmButtonText){confirmButtonText=`<a href="/login/">${window.L.LOGIN2}</a>`}else{confirmButtonText=`<a href="javascript:void(0);">${confirmButtonText}</a>`} 845SkyShop.popupFire.queue=!0;Swal.fire({width:550,customClass:{popup:'swal-shop-action-popup',confirmButton:'btn already-registered',...popups.customClass},confirmButtonText:confirmButtonText,title:title,icon:type||undefined,html:content,willClose:()=>{if(SkyShop.popupFire.queue){SkyShop.popupFire.queue=!1;fireNewsletterPopup()}},...(skyTheme?popups.ariaConfiguration:{})}).then((result)=>{if(result.isConfirmed){if(callback){callback()}}})},showDeliveryPopupPriceInfo:function(title,content){if(content.length>1){content=content.slice(0,-1)} 846Swal.fire({width:500,customClass:{popup:'delivery-price-info',confirmButton:'close_delivery_popup',...popups.customClass},title:title,confirmButtonText:`<i role="button" aria-label="${L['CLOSE_POPUP']}" class="icon-close_28"></i>`,html:content,...(skyTheme?popups.ariaConfiguration:{didOpen:()=>{$('.delivery_info-popup ul').scrollbar()}})})},addNewProductRate:function(html){Swal.fire({width:800,customClass:{popup:'swal-product-rate-popup',confirmButton:'btn',...popups.customClass},title:L.RATE,confirmButtonText:`<i role="button" aria-label="${L['CLOSE_POPUP']}" class="icon-close_28"></i>`,html:html,...(skyTheme?popups.ariaConfiguration:{})});const resetStarsValue=(self)=>{const parent=self.parents('.rate-field');const input=parent.find('.rate-value');const placeholder=parent.find('.stars-placeholder');placeholder.css('width',!input.val()?'0%':((parseInt(input.val())*10/parent.find('.icon-star_fill_no_16').length)*10)+'%')} 847const displayStarsValue=(self,setInputValue=!1)=>{const parent=self.parents('.rate-field');const placeholder=parent.find('.stars-placeholder');const value=((self.data('value')*10/parent.find('.icon-star_fill_yes_16').length)*10)+'%';placeholder.css('width',value);if(setInputValue){const input=parent.find('.rate-value');input.val(self.data('value')).trigger('change')}} 848const productRatePopupElement=$('.swal-product-rate-popup');productRatePopupElement.find('.close-shape').on('click',()=>{productRatePopupElement.find('.swal2-confirm').trigger('click')});const starsElements=skyTheme?productRatePopupElement.find('button.star'):productRatePopupElement.find('.icon-star_fill_yes_16');productRatePopupElement.find(starsElements).on('mouseenter',function(){displayStarsValue($(this))}).on('click',function(){displayStarsValue($(this),!0)});productRatePopupElement.find('.product-rate-container').find('.stars').on('mouseleave',function(){resetStarsValue($(this))})}};var cookies={create:function(name,value,ms){var expires='';if(ms){var date=new Date();date.setTime(date.getTime()+ms);expires='; expires='+date.toUTCString()} 849document.cookie=name+'='+value+expires+'; path=/; SameSite=Lax'},read:function(name){var nameEQ=name+'=';var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1,c.length)} 850if(c.indexOf(nameEQ)==0){return c.substring(nameEQ.length,c.length)}} 851return null},erase:function(name){cookies.create(name,'',-1)}};$('.cookies').each(function(){var clone=$(this).clone();$(this).remove();$('body > .fixed-elements').append($(clone));$('.cookies').removeClass('hidden')});var slidersResize=function(sliders){sliders.each(function(){var self=$(this),carousel=self.find('.carousel').eq(0);var data={maxWidth:self.data('max-width'),maxHeight:self.data('max-height'),currentWidth:carousel.width()};if(data.currentWidth<data.maxWidth){data.maxHeight=Big(Big(data.currentWidth).div(data.maxWidth)).times(data.maxHeight)} 852$().add(carousel).add(carousel.find('.item')).css('height',data.maxHeight)})} 853if(!skyTheme){window.addEventListener('resize',function(event){recalculateErrors()})} 854$('#header').find('.menu, .sticky-header_content__menu').find('li.click').children('a').on('click',function(e){e.preventDefault();var self=$(this),click=self.parent(),menu=click.parents('.menu').eq(0),stickyMenu=click.parents('.sticky-header_content__menu').eq(0),dropdown=click.children('.dropdown'),outside=$(window);if(!click.hasClass('clicked')){if(menu.find('li.clicked').length>0){outside.off('click.menuClose');menu.find('li.clicked').removeClass('clicked')}else if(stickyMenu.find('li.clicked').length>0){outside.off('click.menuClose');stickyMenu.find('li.clicked').removeClass('clicked')} 855outside.on('click.menuClose',function(e){if(!$(e.target).closest(click).length){outside.off('click.menuClose');click.removeClass('clicked')}});click.addClass('clicked')}else{outside.off('click.menuClose');click.removeClass('clicked')}});$('#footer').find('.section-title').not('.center').on('click keydown',function(e){if(e.type!=='click'&&e.key!=='Enter'){return} 856const self=$(this);const menu=self.next();if(window.innerWidth<=767){if(self.hasClass('open')){self.removeClass('open');self.attr('aria-expanded',!1);menu.find('a').attr('tabindex','-1');menu.slideUp(200)}else{self.addClass('open');self.attr('aria-expanded',!0);menu.find('a').attr('tabindex','0');menu.slideDown(200)}}});const initFooterSectionTitleAttributes=()=>{$('#footer .section-title').not('.center').each(function(){const self=$(this);const menu=self.next();const menuId=menu.attr('id');if(window.innerWidth>767){self.removeClass('open');self.attr('role','button');self.removeAttr('aria-expanded');self.removeAttr('tabindex');self.removeAttr('aria-controls')}else{self.attr('role','button');self.attr('tabindex',0);
856self.attr('aria-expanded',self.hasClass('open')?'true':'false');if(menuId){self.attr('aria-controls',menuId)}}})} 857$(window).on('resize',initFooterSectionTitleAttributes);$(window).on('load',initFooterSectionTitleAttributes);const facebookLoginAuthByResponse=facebookResponse=>{if(facebookResponse.status!=='connected'){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,L.LOGIN_SERVICE_NO_VALIDATE,'error');return} 858const accessToken=facebookResponse.authResponse.accessToken||null;if(!accessToken){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,L.LOGIN_SERVICE_NO_VALIDATE,'error');return} 859$.post('/login/service/facebook',{accessToken:accessToken},(response)=>{if(response.success===!0){Analytics.trackLogin('facebook');window.location='/'}else{popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,L.LOGIN_SERVICE_NO_VALIDATE,'error')}})};function facebookLoginAction(){FB.login(facebookResponse=>facebookLoginAuthByResponse(facebookResponse),{scope:'public_profile,email',})} 860var loginFacebook=function(){FB.getLoginStatus(function(response){FB.getLoginStatus(facebookResponse=>facebookLoginAuthByResponse(facebookResponse))})};window.onbeforeunload=function(e){if(typeof gapi!=='undefined'&&gapi&&gapi.auth2){gapi.auth2.getAuthInstance().signOut()}};const loginGoogle=async function(googleUser){const accessToken=googleUser?.access_token||null;if(!accessToken){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,L.LOGIN_SERVICE_NO_VALIDATE,'error')} 861let data=new FormData();data.append("accessToken",accessToken);const response=await fetch('/login/service/google',{method:"POST",body:data});const jsonResponse=await response.json();if(jsonResponse.success){Analytics.trackLogin('google');window.location='/';return} 862if(jsonResponse.error_msg_show===!0){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,jsonResponse.error_msg,'error');return} 863const email=jsonResponse?.auth_data?.email||null;if(!email){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,L.LOGIN_SERVICE_NO_VALIDATE,'error');return}};const renderGoogleButton=()=>{const googleBtn=document.getElementById("google-auth-btn")||null;const clientId=googleBtn?.getAttribute('google-client-id')||null;if(typeof google==='undefined'||!googleBtn||!clientId){return} 864const client=google.accounts.oauth2.initTokenClient({client_id:clientId,scope:'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email',callback:loginGoogle});googleBtn.addEventListener('click',()=>client.requestAccessToken())} 865window.addEventListener("load",renderGoogleButton);var createSwipePanelCount=0;var createSwipePanel=function(direction,additionalClass,callback,callbackClose){var fixedElements=$('body').children('.fixed-elements');swipePanel=fixedElements.find('.swipe-panel'),swipePanelContent=swipePanel.children('.swipe-panel-content'),swipePanelCloseArea=swipePanel.children('.swipe-panel-close-area');swipePanel.data('direction',direction);swipePanel.addClass('open');swipePanelContent.attr('class','swipe-panel-content');swipePanelContent.empty();swipePanelContent.addClass(additionalClass);swipePanelContent.addClass(direction);swipePanelCloseArea.addClass(direction);if(createSwipePanelCount===0){createSwipePanelCount++ 866const waitDistance=30;const durationMax=200;let swipePanelContentWidth=swipePanelContent.width();let distance={start:null,current:0};const closePanel=duration=>{let direction=swipePanel.data('direction');if(typeof $(document).velocity!=='undefined'){swipePanelContent.velocity({[direction]:-swipePanelContentWidth},{duration:duration||200,complete:function(){swipePanelContent.attr('style','');swipePanelContent.attr('class','swipe-panel-content');swipePanel.removeClass('open');if(skyTheme){$('body').css('overflowY','auto')} 867swipePanelCloseArea.attr('class','swipe-panel-close-area');if(typeof callbackClose!=='undefined')callbackClose(swipePanelContent)}})}else{swipePanelContent.animate({[direction]:-swipePanelContentWidth},duration,function(){swipePanelContent.attr('style','');swipePanelContent.attr('class','swipe-panel-content');swipePanel.removeClass('open');if(skyTheme){$('body').css('overflowY','auto')} 868swipePanelCloseArea.attr('class','swipe-panel-close-area');if(typeof callbackClose!=='undefined')callbackClose(swipePanelContent)})}} 869const touchStart=event=>{event.stopPropagation();distance.start=event.touches[0].clientX;swipePanel[0].addEventListener('touchcancel',(event)=>{});swipePanel[0].addEventListener('touchmove',touchMove);swipePanel[0].addEventListener('touchend',touchEnd)} 870const touchMove=event=>{let direction=swipePanel.data('direction');const moveDistance=distance.start-event.touches[0].clientX;distance.current=direction==='left'?moveDistance:-moveDistance;if(distance.current>waitDistance)swipePanelContent.css(direction,'-'+parseInt(distance.current-waitDistance)+'px')} 871const touchEnd=event=>{let direction=swipePanel.data('direction');event.stopPropagation();if(distance.current>50||event.target.classList.contains('swipe-panel-close-area')){event.preventDefault();
871let duration=-((distance.current/swipePanelContentWidth)*durationMax-durationMax);closePanel(duration)}else if(distance.current>0&&distance.current<50){if(typeof $(document).velocity!=='undefined'){swipePanelContent.velocity({[direction]:0})}else{swipePanelContent.animate({[direction]:0})}} 872distance.current=0} 873swipePanel[0].addEventListener('touchstart',touchStart);swipePanelCloseArea[0].addEventListener('click',closePanel)} 874setTimeout(function(){swipePanelContent.addClass(direction);setTimeout(function(){swipePanelContent.addClass('open');if(skyTheme){$('body').css('overflowY','hidden')} 875callback(swipePanelContent);swipePanelContent.children().find($('.scrollbar-inner')).scrollbar()},100)},100)};$('#mobile-open-menu').on('click',function(){var currents=[],categories,template={container:['<div class="mobile-categories">','<ul>','{{:categories:}}','</ul>','</div>'].join(''),list:['<li data-id="{{:id:}}">','<a href="#{{:url:}}">{{:name:}}</a>','<i class="fa fa-angle-right open-subtree"></i>','</li>'].join('')},getCategoriesElements=$('#header').find('.menu').children(),getCategories=function(element){return element.children().filter(function(){if($(this).hasClass('search')||$(this).hasClass('hamburger')){return !1} 876return !0}).map(function(){var list=$(this).children('a'),item={id:Math.random().toString(16).slice(2),name:list[0].innerText,url:typeof list.attr('href')!=='undefined'?list.attr('href'):'#'};if($(this).hasClass('vertical-menu')){if($('#header').find('.header-bottom').find('.vertical-menu-content').children('ul').children('li').length>0){item.children=[];$('#header').find('.header-bottom').find('.vertical-menu-content').children('ul').children('li').each(function(){var itemLevel1={id:Math.random().toString(16).slice(2),name:$(this).children('a')[0].innerText,url:typeof $(this).children('a').attr('href')!=='undefined'?$(this).children('a').attr('href'):'#'} 877if($(this).children('.sub-categories').length>0){itemLevel1.children=[];$(this).children('.sub-categories').children().children().children().each(function(){var itemLevel2={id:Math.random().toString(16).slice(2),name:$(this).children('.cat-title').children('a')[0].innerText,url:typeof $(this).children('.cat-title').children('a').attr('href')!=='undefined'?$(this).children('.cat-title').children('a').attr('href'):'#'} 878if($(this).children('ul').length>0){itemLevel2.children=[];$(this).children('ul').children('li').each(function(){var itemLevel3={id:Math.random().toString(16).slice(2),name:$(this).children('a')[0].innerText,url:typeof $(this).children('a').attr('href')!=='undefined'?$(this).children('a').attr('href'):'#'} 879itemLevel2.children.push(itemLevel3)})} 880itemLevel1.children.push(itemLevel2)})} 881item.children.push(itemLevel1)})}}else{if($(this).children('.dropdown').length>0){item.children=[];if($(this).hasClass('single-category')){$(this).children('.dropdown').find('ul').eq(0).children().each(function(){var itemLevel1={id:Math.random().toString(16).slice(2),name:$(this).children('a')[0].innerText,url:$(this).children('a').attr('href')} 882item.children.push(itemLevel1)})} 883if($(this).hasClass('full-width')){$(this).children('.dropdown').find('.cat-title').each(function(){var itemLevel1={id:Math.random().toString(16).slice(2),name:$(this).children('a')[0].innerText,url:$(this).children('a').attr('href')} 884if($(this).next().length>0){itemLevel1.children=[];$(this).next().children().each(function(){var itemLevel2={id:Math.random().toString(16).slice(2),name:$(this).children('a')[0].innerText,url:$(this).children('a').attr('href')} 885itemLevel1.children.push(itemLevel2)})} 886item.children.push(itemLevel1)})}}} 887return item}).get()},renderMobileCategories=function(list,first){var renderList='',renderContainer=template.container,cloneList=JSON.parse(JSON.stringify(list));if(typeof first!=='undefined'&&first===!0){cloneList.unshift('back');renderContainer=$(renderContainer);renderContainer.addClass('fade-in');renderContainer=renderContainer.prop('outerHTML')} 888cloneList.forEach(function(item){var render=template.list;if(item=='back'){render=render.replace(/{{:id:}}/g,item.id);render=render.replace(/{{:name:}}/g,L.BACK_BTN_LABEL);render=render.replace(/#{{:url:}}/g,'#');render=$(render);render.addClass('close-subtree');render.removeAttr('data-id');render.find('i').attr('class','fa fa-angle-left')}else{render=render.replace(/{{:id:}}/g,item.id);render=render.replace(/{{:name:}}/g,item.name);render=render.replace(/#{{:url:}}/g,item.url);render=$(render);if(typeof item.children==='undefined'){render.find('i').remove()}} 889render=render.prop('outerHTML');renderList+=render});return $(renderContainer.replace(/{{:categories:}}/g,renderList))};categories=getCategories(getCategoriesElements);createSwipePanel('left','categories',function(content){content.append(renderMobileCategories(categories));
889content.on('click.mobileCategoriesOpen','.open-subtree',function(e){e.preventDefault();var self=$(this),id=self.parents('li').eq(0).data('id'),current=categories,currentRender;currents.push(id);currents.forEach(function(single){current.forEach(function(item){if(item.id==single){current=item.children}})});currentRender=renderMobileCategories(current,!0) 890content.append(currentRender);setTimeout(function(){currentRender.removeClass('fade-in')},100)});content.on('click.mobileCategoriesClose','.close-subtree',function(e){e.preventDefault();var self=$(this),subTree=content.find('.mobile-categories').last();currents.pop();subTree.addClass('fade-in');setTimeout(function(){subTree.remove()},100)})},function(content){content.off('click.mobileCategoriesOpen click.mobileCategoriesClose')})});$('#mobile-open-flex-cart > a').on('click',function(){const cartPathName="/cart/";const currentPathName=window.location.pathname;const isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);if(currentPathName!==cartPathName&&(isMobile||window.innerWidth<768)){createSwipePanel('right','quick-cart',function(content){let cart;cart=$('.dropdown-quick-cart .header_cart').first().clone();content.append(cart)})}else if(currentPathName!==cartPathName){window.location=cartPathName}});$('#mobile-open-search').on('click',function(){var self=$(this),body=$('body > main'),mobileSearch=body.find('section.mobile-search').find('input[type="text"]'),mobileSearchLength=mobileSearch.val().length,$quickSearch=$('.core_quickSearchAjaxHints');body.css({transition:'.3s ease-in-out'}) 891if(self.hasClass('active')){self.removeClass('active');body.removeClass('mobile-search-show');mobileSearch.trigger('blur');$quickSearch.addClass('hidden')}else{self.addClass('active');body.addClass('mobile-search-show');mobileSearch.trigger('focus');if(mobileSearchLength>=3){$quickSearch.removeClass('hidden')}else{$quickSearch.addClass('hidden')}}});$('#mobile-open-contact').on('click',function(){var self=$(this),patterns={sections:{contact:['<span class="section">'+L.CONTACT+'</span>','<div class="icons">{{:icons:}}</div>'],socials:['<span class="section">'+L.YOU_ARE_US_ON+'</span>','<div class="icons d-flex flex-wrap">{{:icons:}}</div>']},elements:{contact:['<a href="{{:url:}}" {{:target:}}>','<i class="fa fa-{{:icon:}}"></i> <span class="value">{{:value:}}</span>','</a>','<br />'],social:['<a href="{{:url:}}" {{:target:}}>','<i class="fa fa-{{:icon:}}"></i>','</a>'],socialCustom:['<a class="social-custom" href="{{:url:}}" {{:target:}}>','<img src="{{:img:}}" alt="{{:alt:}}">','</a>']}},elements={contact:[],socials:[],socialsCustom:[]};$(self.prevAll('[data-type]').get().reverse()).each(function(){const self=$(this),type=self.data('type'),url=self.find('a').attr('href'),icon=self.find('i').length?self.find('i').attr('class').split('fa-')[1].split(' ')[0]:null;img=self.find('img').attr('src');alt=self.find('img').attr('alt');let pattern;if(typeof type.split('social-sm_')[1]==='undefined'){pattern=patterns.elements.contact.join('');pattern=pattern.replace(/{{:url:}}/g,url);pattern=pattern.replace(/{{:icon:}}/g,icon);pattern=pattern.replace(/{{:value:}}/g,url.split(':')[1]);pattern=pattern.replace(/{{:target:}}/g,'');elements.contact.push(pattern)} 892else{if(icon){pattern=patterns.elements.social.join('');pattern=pattern.replace(/{{:url:}}/g,url);pattern=pattern.replace(/{{:icon:}}/g,icon);pattern=pattern.replace(/{{:target:}}/g,'target="_blank"');elements.socials.push(pattern)}else{pattern=patterns.elements.socialCustom.join('');pattern=pattern.replace(/{{:url:}}/g,url);pattern=pattern.replace(/{{:img:}}/g,img);pattern=pattern.replace(/{{:alt:}}/g,alt);elements.socials.push(pattern)}}});patterns.sections.contact=patterns.sections.contact.join('');patterns.sections.socials=patterns.sections.socials.join('');patterns.sections.contact=patterns.sections.contact.replace(/{{:icons:}}/g,elements.contact.join(''));patterns.sections.socials=patterns.sections.socials.replace(/{{:icons:}}/g,elements.socials.join(''));createSwipePanel('left','mobile-contact',function(content){content.append($([patterns.sections.contact,patterns.sections.socials].join('')))})});$('section.mobile-search').find('.close-shape').on('click',function(){var button=$('#mobile-open-search');body=$('body > main'),$quickSearch=$('.core_quickSearchAjaxHints');button.removeClass('active');body.removeClass('mobile-search-show');$quickSearch.addClass('hidden')});$(window).on('load.slidersResize resize.slidersResize',function(){var sliders=$('section.slider');if(sliders.length>0){slidersResize(sliders)}else{$(this).off('load.slidersResize resize.slidersResize')}});$(document).on('DOMContentLoaded',function(){var sliders=$('section.slider');if(sliders.length>0){slidersResize(sliders)} 893$('.scrollbar-inner').scrollbar();$('.scrollbar-inner').on('mouseenter',function(){$(this).on('mousewheel DOMMouseScroll',function(e){var delta=e.originalEvent.wheelDelta||-e.originalEvent.detail;this.scrollTop+=(delta<0?1:-1)*50;e.preventDefault()})}).on('mouseleave',function(){$(this).off('mousewheel DOMMouseScroll')});if(typeof infoBlockBase64Code!=='undefined'&&decodeURIComponent(cookie
893s.read('infoblock_close_code'))!==infoBlockBase64Code){infoBlockHeaderInit()}});$('.datetime-field[data-type="date"]').datetimepicker({language:S.LANG,orientation:'right',pickTime:!1,pickSeconds:!1,weekStart:1,startDate:new Date(),endDate:new Date(new Date().getFullYear()+1,new Date().getMonth(),new Date().getDate())});$('.datetime-field[data-type="datetime"]').datetimepicker({language:S.LANG,orientation:'right',pickTime:!0,pickSeconds:!1,weekStart:1,startDate:new Date(),endDate:new Date(new Date().getFullYear()+1,new Date().getMonth(),new Date().getDate())});$('.datetime-field').on('click','.add-on-input',function(){$(this).parent().find('.add-on').trigger('click')});$('.rate-field.choice').find('.stars').find('.fa-star-o').on('mouseenter',function(){var self=$(this),parent=self.parents('.rate-field'),placeholder=parent.find('.stars-placeholder'),value=((self.data('value')*10/parent.find('.fa-star-o').length)*10)+'%';placeholder.css('width',value)}).on('click',function(){var self=$(this),parent=self.parents('.rate-field'),input=parent.find('.rate-value'),placeholder=parent.find('.stars-placeholder'),value=((self.data('value')*10/parent.find('.fa-star-o').length)*10)+'%';placeholder.css('width',value);input.val(self.data('value'))});$('.rate-field.choice').find('.stars').on('mouseleave',function(e){var self=$(this),parent=self.parents('.rate-field'),input=parent.find('.rate-value'),placeholder=parent.find('.stars-placeholder');if(input.val()==''){placeholder.css('width','0%')}else{var value=((parseInt(input.val())*10/parent.find('.fa-star-o').length)*10)+'%';placeholder.css('width',value)}});function scrollToRate(){if(!skyTheme){$('html, body').animate({scrollTop:$("#product-tabs").offset().top-50},'slow',function(){if($('#product-tabs [data-rel-tab=comments]').length===0){$("#product-tabs [data-tab=description]").addClass('active');$("#product-tabs [data-tab=description]").css("opacity","1");$("#product-tabs [data-tab=description]").removeClass("tab-hidden")}else if(!$('#product-tabs [data-rel-tab=comments]').hasClass("active")){$("#product-tabs [data-rel-tab]").removeClass("active") 894$("#product-tabs [data-rel-tab=comments]").addClass('active');$("#product-tabs .tab").addClass('tab-hidden');$("#product-tabs .tab").css("opacity","0");$("#product-tabs [data-tab=comments]").css("opacity","1");$("#product-tabs [data-tab=comments]").removeClass("tab-hidden")}})}else{$('html, body').animate({scrollTop:$("#product-tabs").offset().top-150},'slow',function(){$('#productTab .nav-item button').removeClass('active');$('#productTab .nav-item #product_rate_tab').trigger('click');setTimeout(()=>$('.core_addNewProductRate').focus(),200)})}} 895$('#average-product-rating-link').on('click keydown',function(e){if(e.type==='click'||e.key==='Enter'||e.key===' '){scrollToRate()}});$('.heading ul.nav li, .heading-tabs li').on('click keydown',function(e){if(!$(this).hasClass('active')&&(e.type==='click'||e.key==='Enter')){var self=$(this),active=self.closest('ul.heading-tabs, .heading ul.nav').find('li.active'),index=$(this).attr('data-rel-tab')?$(this).attr('data-rel-tab'):parseInt(self.index()+1),indexAdittionalRel=self.closest('.owl-item').length?parseInt(self.parent('.owl-item').index()+1):null,group=self.parents().filter('.row, .container-fluid, .container-wrapper'),current=group.find('.tab').not('.tab-hidden'),currentHeight=current.outerHeight(!0),tab=group.find('[data-tab="'+(indexAdittionalRel??index)+'"]'),tabHeight=tab.outerHeight(!0),wasSlider=current.hasClass('carousel'),isSlider=tab.hasClass('carousel'),isSliderName;active.removeClass('active');self.addClass('active');if(skyTheme){active.find('span[role="button"]').attr('aria-pressed',!1);self.find('span[role="button"]').attr('aria-pressed',!0)} 896tab.height(currentHeight);current.animate({opacity:0}
896,0,function(){current.addClass('tab-hidden');tab.css('opacity',0);if(wasSlider){current.trigger('stop.owl.autoplay');current.trigger('destroy.owl.carousel').removeClass('owl-carousel owl-loaded');current.find('.owl-stage-outer').children().unwrap()} 897tab.removeClass('tab-hidden');if(isSlider){isSliderName=tab.data('carousel-name');carousels[isSliderName]()} 898setTimeout(function(){if(typeof $(document).velocity!=='undefined'){tab.velocity({opacity:1},50,function(){tab.attr('style',function(i,style){return style.replace(/height[^;]+;?/g,'')})})}else{tab.animate({opacity:1},50,function(){tab.attr('style',function(i,style){return style.replace(/height[^;]+;?/g,'')})})}},0)})}});$('.categories.slides').find('a').on('click',function(e){e.preventDefault();var self=$(this),childs=$(this).next();if(childs.hasClass('active')){self.removeClass('revert');childs.removeClass('active');childs.slideUp(200)}else{self.addClass('revert');childs.addClass('active');childs.slideDown(200)}});$('.categories.dropdowns ul > li a.rolldown').on('click keydown',function(e){if(e.type==='click'||e.key==='Enter'||e.key===' '){e.preventDefault();const $self=$(this);const $child=$self.next();if($child.hasClass('active')){$self.removeClass('revert');$child.removeClass('active');if(skyTheme){$self.attr('aria-expanded',!1)} 899$child.slideUp(200)}else{$self.addClass('revert');$child.addClass('active');if(skyTheme){$self.attr('aria-expanded',!0)} 900$child.slideDown(200)}}});const setCategoriesAriaLevelsAndExpanded=($ul,level)=>{$ul.children('li').each(function(){const $li=$(this);const hasChildUl=$li.children('ul').length>0;const $a=$li.children('a');$a.attr('aria-level',level);if(hasChildUl){if($a.hasClass('revert')){$a.attr('aria-expanded',!0)}else{$a.attr('aria-expanded',!1)}} 901const $subTree=$li.children('ul[role="group"]');if($subTree.length){setCategoriesAriaLevelsAndExpanded($subTree,level+1)}})} 902if(skyTheme){$('.categories.dropdowns > ul').each(function(){setCategoriesAriaLevelsAndExpanded($(this),1)})} 903function isResponsiveImageChecker(){var blogContainer=$('.post-content').innerWidth();blogImage=$('.post-content').find('img');for(var i=0;i<blogImage.length;i++){blogImageWidth=blogImage[i].offsetWidth;if(blogImageWidth>blogContainer){$(blogImage[i]).addClass('responsive-image')}}} 904isResponsiveImageChecker();initializeSelect2();function addSpamProtectionToForms(){var formHandlersArray=['.newsletter-form','.popupContent form','.newsletter form','.contentSidebar form','.product-opinions form','.core_addTicket','.core_sendPhone','.core_addOpinion','.core_askQuestion','.core_addEmailToNewsletter','.order form','.contact-form','.add-ticket-form'];if(skyTheme){formHandlersArray.push('.unsubscribe-newsletter')} 905var isJs='is_js-true';var protectingInput='<input type="hidden" value="1" class="pro-tecting-_-Input" name="'+isJs.split('-')[0]+'"/>';for(formHandler of formHandlersArray){var form=$(document).find($(formHandler));if(form[0]&&!form.find('.pro-tecting-_-Input').length){form.append(protectingInput)}}} 906addSpamProtectionToForms();function jsHash(hash){this.key='js_hash';this.oldValue=cookies.read(this.key);if(hash&&(!this.oldValue||this.oldValue!==hash)){cookies.create(this.key,hash,60*60*24*1000)}} 907jsHash($('body').data('js-hash'));$('#order-login-btn').on('click keydown',function(e){if(e.type==='click'||e.key==='Enter'||e.key===' '){e.preventDefault() 908if(!$('input[name="order-email"]').val()||!$('input[name="order-password"]').val()){formValidator($('.order_login'));e.stopPropagation()}else{var orderLoginCsrfToken=$('#order-login-csrf').val()||'';$.ajax({type:'POST',url:'/login?json=1',data:{email:$.base64Encode($('input[name="order-email"]').val()),password:$.base64Encode($('input[name="order-password"]').val()),csrf_token:orderLoginCsrfToken,},success:function(response){if(typeof response==='string'){response=JSON.parse(response)} 909if(response.status==='LOGGED IN'){Analytics.trackLogin('email');if(skyTheme){showSuccessToast(L.USER_LOGGED_IN)}else{popups.actionAlert(L.INFORMATION,L.LOGIN_SUCCESS,'success')} 910$('.order-password-remeber').remove() 911$('.order_login').find('[name="order-email"]').attr('disabled','disabled') 912$('.order_login').find('[name="order-password"]').attr('disabled','disabled') 913$('#order-login-btn').attr('disabled','disabled').off('click') 914$('#order-login-btn').css({marginTop:'34px'}) 915$('[data-not-logged]').each(function(){$(this).removeClass('hidden')}) 916if($('.order').find($('div[data-not-logged]').find('input.ss-error')).length>0){removeError($('.order').find($('div[data-not-logged]')).find('.ss-error'))} 917$('#order-login-btn').data('loginValidated','true') 918removeError($('#order-login-btn').parent().find('.ss-error')) 919$('[data-profile-option="register"]').addClass('hidden') 920$('[data-profile-option="no_register"]').addClass('hidden') 921$('[data-profile-option="have_registered"]').addClass('hidden') 922$('[data-show-when-not-logged="true"]').addClass('hidden') 923$('input[name="user_firstname"]').val(response.user_firstname??'');$('input[name="user_lastname"]').val(response.user_lastname??'');$('input[name="user_city"]').val(response.user_city??'');$('input[name="user_code"]').val(response.user_code??'');$('input[name="user_street"]').val(response.user_street??'');$('input[name="user_phone"]').val(response.user_phone??'');$('input[name="user_bill_company"]').val(response.user_bill_company??'');$('input[name="user_bill_city"]').val(response.user_bill_city??'');$('input[name="user_bill_code"]').val(response.user_bill_code??'');$('input[name="user_bill_street"]').val(response.user_bill_street??'');$('input[name="user_bill_vat"]').val(response.user_bill_vat??'');if(response.user_bill_country){$('select[name="user_bill_country"]').select2('open').val(response.user_bill_country).trigger('change').select2('close')} 924if(skyTheme){$('.contact-data-options').remove();$('.sky-order-step').each(function(index){const existingClass=$(this).attr('class').split(' ').find(className=>className.match(/^sky-order-step-/));if(existingClass){$(this).removeClass(existingClass)} 925$(this).addClass('sky-order-step-'+(index+1))})} 926if(response.new_csrf_token){$('#order-login-csrf').val(response.new_csrf_token);$('input[name="csrf_token"]').val(response.new_csrf_token)}}else{popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,response.user_error,'error')} 927if(response.new_csrf_token){$('#order-login-csrf').val(response.new_csrf_token);$('input[name="csrf_token"]').val(response.new_csrf_token)} 928skyTheme&&orderStepIndex()}})}}});$(document).ready(function(){if(window.location.href.includes('#scr')){scrollToRate()}})
929$(document).ready(function(){var subProductsWrapper=$('.sub-products-wrapper') 930var subProduct=$('.sub-product') 931if($('.mod-product-card-1').find(subProductsWrapper).length){if(subProductsWrapper.find(subProduct).length>=3) 932switch(subProductsWrapper.find(subProduct).length){case 3:$('.sub-products-container').addClass('three-col-container') 933subProductsWrapper.find(subProduct).addClass('three-col') 934break;case 4:$('.sub-products-container').addClass('four-col-container') 935subProductsWrapper.find(subProduct).addClass('four-col') 936break;case 5:$('.sub-products-container').addClass('five-col-container') 937subProductsWrapper.find(subProduct).addClass('five-col') 938break;default:$('.sub-products-container').addClass('six-col-container') 939subProductsWrapper.find(subProduct).addClass('six-col') 940$('.sub-products-container').on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel',function(event){if(!event.namespace){return} 941var carousel=event.relatedTarget,element=event.target,current=carousel.current();$('.owl-next',element).toggleClass('disabled',current===carousel.maximum()||carousel.maximum()===-1);$('.owl-prev',element).toggleClass('disabled',current===carousel.minimum())}).owlCarousel({loop:!0,margin:30,nav:!0,dots:!1,autoplayHoverPause:!0,navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'],responsive:{0:{items:1},450:{items:2},768:{items:3},930:{items:4},1060:{items:6}}}) 942break}}else if($('.mod-product-card-2').find($('.sub-products-wrapper')).length){if(subProductsWrapper.find(subProduct).length>=3){switch(subProductsWrapper.find('.sub-product').length){default:$('.sub-products-container').addClass('card-mod2') 943subProductsWrapper.find(subProduct).addClass('four-col-mod2') 944$('.sub-products-container').on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel',function(event){if(!event.namespace){return} 945var carousel=event.relatedTarget,element=event.target,current=carousel.current();$('.owl-next',element).toggleClass('disabled',current===carousel.maximum()||carousel.maximum()===-1);$('.owl-prev',element).toggleClass('disabled',current===carousel.minimum())}).owlCarousel({loop:!0,margin:30,nav:!0,dots:!1,autoplayHoverPause:!0,navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'],responsive:{0:{items:1},450:{items:2},768:{items:3},930:{items:3},1060:{items:3}}}) 946break}}} 947function subProductsCarousel(){var checkWidth=$(window).width();var subProductsWrapper=$('.sub-products-container') 948if(subProductsWrapper.hasClass('three-col-container')||subProductsWrapper.hasClass('four-col-container')||subProductsWrapper.hasClass('five-col-container')&&!subProductsWrapper.hasClass('six-col-container')&&!subProductsWrapper.hasClass('second-mod')){if(checkWidth>992){if(subProductsWrapper.data('owlCarousel')!==undefined){subProductsWrapper.data('owlCarousel').destroy();subProductsWrapper.removeClass('owl-carousel owl-theme owl-loaded');subProductsWrapper.find('.owl-stage-outer').children().unwrap();subProductsWrapper.removeData()}}else if(checkWidth<992){if(subProductsWrapper.data('owlCarousel')!==undefined){subProductsWrapper.data('owlCarousel').destroy();subProductsWrapper.removeClass('owl-carousel owl-theme owl-loaded');subProductsWrapper.find('.owl-stage-outer').children().unwrap();subProductsWrapper.removeData();subProductsWrapper.addClass('owl-carousel owl-theme owl-loaded');subProductsWrapper.owlCarousel({touchDrag:!0,mouseDrag:!0,autoplay:!1,loop:!0,nav:!0,dots:!1,navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'],margin:30,responsive:{0:{items:1},450:{items:2},768:{items:3},}})}else{subProductsWrapper.owlCarousel({touchDrag:!0,mouseDrag:!0,loop:!0,nav:!0,dots:!1,navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'],margin:30,responsive:{0:{items:1},450:{items:2},768:{items:3},}})}}}} 949subProductsCarousel() 950$(window).resize(subProductsCarousel)});$(document).ready(function(){const mobileSearchInput=document.querySelector('.clearbox input');const mobileSearchClearButton=document.querySelector('.clearbox .clearbox_button');if(mobileSearchInput&&mobileSearchClearButton){const toggleClearButton=()=>mobileSearchClearButton.style.display=mobileSearchInput.value.length>0?'block':'none';['input','focus'].forEach(event=>mobileSearchInput.addEventListener(event,toggleClearButton,!1));mobileSearchClearButton.onclick=()=>{mobileSearchInput.value='';mobileSearchInput.focus()}}});const throttle=(callback,timeInterval)=>{let inThrottle;return(e)=>{if(!inThrottle)inThrottle=setTimeout(()=>(callback(e),inThrottle=undefined),timeInterval)}} 951const initSmartMenu=(menuElement)=>
951{let mousePositions=[];let activeMenuItem;let lastDelayLocation;let dropdownPosition;let delayTime=350;let timeout;const throttleTime=100;const menu=menuElement.querySelector('.smart-menu > ul');if(menu.length===0){return} 952let menuItems=menu.querySelectorAll(':scope > li:not(.click)');if(menu.classList.contains('menu-hambureger')||menu.classList.contains('hambureger-elements'))menuItems=menu.querySelectorAll(':scope > li');const onMouseMove=e=>{mousePositions.push({x:e.pageX,y:e.pageY});mousePositions.length>3&&mousePositions.shift()} 953const setDropdownPosition=dropdown=>{const dropdownRect=dropdown.getBoundingClientRect();const menuRect=menu.getBoundingClientRect();if(menuRect.bottom<=dropdownRect.top)return 'bottom';if(menuRect.top>=dropdownRect.bottom)return 'top';if(menuRect.right<=dropdownRect.left)return 'right';if(menuRect.left>=dropdownRect.right)return 'left'} 954const onMenuItemEnter=e=>{const dropdown=e.target.querySelector('.dropdown');if(timeout)clearTimeout(timeout);if(dropdown)dropdownPosition=setDropdownPosition(dropdown);possiblyActivate(e.target)} 955const onMenuLeave=()=>{if(timeout)clearTimeout(timeout);let leaveTimeout;leaveTimeout=setTimeout(()=>{if(activeMenuItem&&activeMenuItem.querySelector('.dropdown--is-open')){activeMenuItem.querySelector('.dropdown').classList.remove('dropdown--is-open');activeMenuItem=null}},150) 956menu.onmouseenter=()=>clearTimeout(leaveTimeout)} 957const activateMenuItem=element=>{if(element===activeMenuItem)return 958let dropdown;if(activeMenuItem){dropdown=activeMenuItem.querySelector('.dropdown');if(dropdown){dropdown.classList.remove('dropdown--is-open')} 959activeMenuItem=null} 960activeMenuItem=element;dropdown=activeMenuItem.querySelector('.dropdown');if(dropdown){dropdown.classList.add('dropdown--is-open')}} 961const possiblyActivate=element=>{const delay=getActivationDelay();if(delay){timeout=setTimeout(function(){possiblyActivate(element)},delay)}else{activateMenuItem(element)}} 962const getActivationDelay=()=>{let prevLocation=mousePositions[0];const location=mousePositions[mousePositions.length-1];const menuRect=menu.getBoundingClientRect();const menuOffset={topLeft:{x:menuRect.left,y:window.scrollY+menuRect.top-100},topRight:{x:menuRect.right,y:window.scrollY+menuRect.top+100},bottomRight:{x:menuRect.right,y:window.scrollY+menuRect.bottom},bottomLeft:{x:menuRect.left,y:window.scrollY+menuRect.bottom}} 963if(!activeMenuItem||!location)return 0 964if(!prevLocation)prevLocation=location;if(lastDelayLocation&&location.x===lastDelayLocation.x&&location.y===lastDelayLocation.y)return 0 965const slope=(a,b)=>(b.y-a.y)/(b.x-a.x);let decreasingCorner;let increasingCorner;if(dropdownPosition==='right'){decreasingCorner=menuOffset.topRight;increasingCorner=menuOffset.bottomRight}else if(dropdownPosition==='left'){decreasingCorner=menuOffset.bottomLeft;increasingCorner=menuOffset.topLeft}else if(dropdownPosition==='bottom'){decreasingCorner=menuOffset.bottomLeft;increasingCorner=menuOffset.bottomRight}else{decreasingCorner=menuOffset.topLeft;increasingCorner=menuOffset.topRight} 966const decreasingSlope=slope(location,decreasingCorner);const increasingSlope=slope(location,increasingCorner);const prevDecreasingSlope=slope(prevLocation,decreasingCorner);const prevIncreasingSlope=slope(prevLocation,increasingCorner);if(decreasingSlope<prevDecreasingSlope&&increasingSlope>prevIncreasingSlope){lastDelayLocation=location;return delayTime} 967lastDelayLocation=null;return 0} 968menu.onmouseleave=onMenuLeave;menu.onmousemove=throttle(onMouseMove,throttleTime);menuItems.forEach(element=>element.addEventListener('mouseenter',onMenuItemEnter,!1))} 969$(document).ready(function(){document.querySelectorAll('.smart-menu').forEach(menu=>initSmartMenu(menu));fireNewsletterPopup()});$('#togglePassword').on('click',function(){const password=document.querySelector('#password');const type=password.getAttribute("type")==="password"?"text":"password";password.setAttribute("type",type);this.classList.toggle('icon-eye_open')});const hasInvalidASCII=(string)=>{let invalidCharFound=!1 970for(let i=0;i<string.length;i++){const charValue=string.charCodeAt(i) 971if(charValue>
97110000){invalidCharFound=!0 972break}} 973return invalidCharFound} 974const debounce=(func,delay=200)=>{let timeoutId;return function(...args){clearTimeout(timeoutId);timeoutId=setTimeout(()=>{func.apply(this,args)},delay)}} 975const currentWebBrowser=((agent)=>{switch(!0){case agent.includes('edg'):return 'edge';case agent.includes('chrome'):return 'chrome';default:return 'other-browser'}})(window.navigator.userAgent.toLowerCase());document.body.classList.add(currentWebBrowser);if(skyTheme){$(window).on("load",function(){function fixSelect2Labels(root=document){$(root).find('select').each(function(){const $select=$(this);if(!$select.data('select2'))return;const $label=$('label[for="'+$select.attr('id')+'"]');const $select2=$select.next('.select2');if($label.length&&$select2.length){if(!$label.attr('id')){$label.attr('id','label-'+$select.attr('id'))} 976$select2.find('.select2-selection').attr('aria-labelledby',$label.attr('id'));$select2.find('textarea.select2-search__field').attr('aria-label',L.SELECT+':')}})} 977fixSelect2Labels();const observer=new MutationObserver(mutations=>{mutations.forEach(mutation=>{mutation.addedNodes.forEach(node=>{if(node.nodeType===1){if(node.matches&&(node.matches('select')||node.matches('textarea.select2-search__field'))){fixSelect2Labels(node)}else if(node.querySelectorAll){const fields=node.querySelectorAll('select, textarea.select2-search__field');if(fields.length)fixSelect2Labels(node)}}})})});observer.observe(document.body,{childList:!0,subtree:!0});tippy.delegate('body',{target:'[data-tippy-content]',allowHTML:!0,interactive:!0,theme:'sky-tippy',placement:'top-end',offset:[10,10]});document.addEventListener('click',function(e){if(e.target.closest('button[data-tippy-content]')){e.preventDefault();e.stopPropagation()}})});$(function(){$("figure.product-tile").each(function(){const $tile=$(this);$tile.addClass("product-tile-loaded");$tile.on("mouseenter focusin",function(e){if(!e.relatedTarget)return;$tile.addClass("product-tile-hover")});$tile.on("mouseleave focusout",function(){$tile.removeClass("product-tile-hover")})})})} 978if(skyTheme){$(document).on('click','.rwd-heading-products-list-filters',function(){let categoriesCloseElement;let swipePanelCloseAreaElement;const self=$(this),sectionClass=self.parents('section.products_lists_pages').eq(0).attr('class'),panelType=self.data('panel'),panel=self.next().clone();switch(panelType){case 'parameters':createSwipePanel('left',panelType,function(content){panel.find('[id*="param-filter-"],[for*="param-filter-"]').each(function(){var element=$(this),currentAttr;if(element.prop('tagName')=='LABEL'){currentAttr=element.attr('for');element.attr('for',currentAttr+'-mobile')} 979if(element.prop('tagName')=='INPUT'){currentAttr=element.attr('id');element.attr('id',currentAttr+'-mobile')}});panel.on('click','[id*="param-filter-"]',function(){var element=$(this),currentAttr=element.attr('id').split('-mobile')[0],realElement=self.next().find('[id="'+currentAttr+'"]');realElement.trigger('click')});content.append($('<div class="'+sectionClass+'"></div>').html(panel));$('.parameters_clear_all').on('click',function(){$(this).parents('aside.column-left').find('.resetFilters').trigger('click')});$('.parameters_filter_submit').on('click',function(){$(this).parents('aside.column-left').find('.showFilters').trigger('click')});
979function closeSwipeButtonFocus($target){$target.closest('.swipe-panel').find('.swipe-close-button').focus()} 980$('.swipe-panel-content.parameters').on('keydown',function(event){const $target=$(event.target);const $swipeClose=$('.swipe-panel .swipe-panel-close-area');if($target.closest('.swipe-panel').find('.parameters').length){if(event.key==='Escape'){closeSwipeButtonFocus($target)} 981if(event.key==='Enter'&&$target.closest('.swipe-close-button').length){$swipeClose.click();setTimeout(()=>document.querySelector('.rwd-heading-products-list-filters[data-panel="parameters"]').focus(),100)} 982if(event.key==='Tab'){const $parentContainer=$target.closest('.swipe-panel').find('.parameters');setTimeout(()=>{const isInside=$parentContainer.get(0).contains(document.activeElement);if(!isInside){closeSwipeButtonFocus($target)}},0)}}});setTimeout(()=>{const parameters=document.querySelector('.swipe-panel .parameters');if(!parameters)return;const focusEl=parameters.querySelector('.form-control');if(focusEl)focusEl.focus()},0)},function(content){panel.find('[id*="param-filter-"]').off('click')});break;case 'categories':var currents=[],categories,template={container:['<div class="mobile-categories">','<div class="category_title">'+L.CATEGORIES+'</div>','<button aria-label="'+L.CLOSE_POPUP+'" class="categories-close swipe-close-button icon-close_24 icon-600 bg-transparent border-0 p-0"></button>','<div class="ul">','{{:categories:}}','</div>','</div>'].join(''),list:['<a class="li" href="#{{:url:}}" data-id="{{:id:}}">','<span class="a">{{:name:}}</span>','<i class="icon-arrow_right_16 open-subtree"></i>','</a>'].join('')},getCategoriesElements=panel.find('.categories.dropdowns').children('ul'),getCategories=function(element){return element.children().map(function(){var list=$(this).children('a'),children=$(this).children('ul'),item={id:Math.random().toString(16).slice(2),name:list.attr('title'),url:list.attr('href')};if(children.length>0){item.children=getCategories(children)} 983return item}).get()},renderMobileCategories=function(list,first){var renderList='',renderContainer=template.container,cloneList=JSON.parse(JSON.stringify(list));if(typeof first!=='undefined'&&first===!0){cloneList.unshift('back');renderContainer=$(renderContainer);renderContainer.addClass('fade-in');renderContainer=renderContainer.prop('outerHTML')} 984cloneList.forEach(function(item){var render=template.list;if(item==='back'){render=render.replace(/{{:id:}}/g,item.id);render=render.replace(/{{:name:}}/g,'Powrót');render=render.replace(/#{{:url:}}/g,'#');render=$(render);render.addClass('close-subtree');render.removeAttr('data-id');render.attr('tabindex',-1);render.find('span.a').attr('tabindex',0);render.find('i').attr('class','fa fa-angle-left');render.find('i').attr('tabindex',0);render.find('span.a').before(render.find('i'))}else{render=render.replace(/{{:id:}}/g,item.id);render=render.replace(/{{:name:}}/g,item.name);render=render.replace(/#{{:url:}}/g,item.url);render=$(render);if(typeof item.children==='undefined'){render.find('i').remove();render.find('span.a').addClass('text-decoration-underline')}} 985render=render.prop('outerHTML');renderList+=render});return $(renderContainer.replace(/{{:categories:}}/g,renderList))};categories=getCategories(getCategoriesElements);let clone;let escHandler;let enterHandler;let tabHandler;const focusElement=(element='div.mobile-categories:last-child .close-subtree span.a')=>{if($(element).length<1){element='div.mobile-categories:last-child button.swipe-close-button'} 986setTimeout(()=>{const categoriesScroll=document.querySelector('.swipe-panel .categories');if(!categoriesScroll)return;const focusEl=categoriesScroll.querySelector(element);if(focusEl)focusEl.focus()},0)} 987createSwipePanel('left','categories product-list-rwd-categories',function(content){clone=renderMobileCategories(categories).get(0).closest('.mobile-categories').cloneNode(!0);content.append(clone);swipePanelCloseAreaElement=document.querySelector('.swipe-panel .swipe-panel-close-area');escHandler=(event)=>{categoriesCloseElement=event.target.closest('.mobile-categories').querySelector('.categories-close');if(event.key==='Escape'&&event.target.closest('.swipe-panel .product-list-rwd-categories')){if(categoriesCloseElement)categoriesCloseElement.focus()}};enterHandler=(event)=>{if(event.key==='Enter'&&event.target.closest('.categories-close')){if(swipePanelCloseAreaElement){swipePanelCloseAreaElement.click();setTimeout(()=>document.querySelector('.rwd-heading-products-list-filters[data-panel="categories"]').focus(),100)}}};tabHandler=(event)=>{if(event.key==='Tab'){const current=event.target;const parentContainer=current.closest('.mobile-categories');setTimeout(()=>{const next=document.activeElement;const isInside=parentContainer?.contains(next);if(!isInside){if(event.shiftKey){focusElement('div.mobile-categories:last-child div.ul a.li:last-child')}else{focusElement('div.mobile-categories:last-child .categories-close')}}},0)}};clone.addEventListener('keydown',escHandler);clone.addEventListener('keydown',enterHandler);clone.addEventListener('keydown',tabHandler);focusElement();
987content.on('click.mobileCategoriesOpen','a.li',function(e){const $currentTarget=$(e.currentTarget);const isSubTree=$currentTarget.find('i')?.hasClass('open-subtree');if(isSubTree){e.preventDefault();const id=$currentTarget.data('id');const href=$currentTarget.attr('href');const name=$currentTarget.find('span.a').text();let current=categories;let currentRender;currents.push(id);currents.forEach(function(single){current.forEach(function(item){if(item.id===single){current=item.children}})});currentRender=renderMobileCategories(current,!0);content.append(currentRender);currentRender.removeClass('fade-in');currentRender.find('.close-subtree span.a').text(name) 988if(href&&href!=='#'){currentRender.find('.close-subtree span.a').addClass('text-decoration-underline')} 989currentRender.find('.close-subtree').attr('href',href);focusElement();currentRender[0].addEventListener('keydown',escHandler);currentRender[0].addEventListener('keydown',enterHandler);currentRender[0].addEventListener('keydown',tabHandler);currentRender.on('click keydown','.close-subtree span',function(e){if(e.key==='Enter'||e.type==='click'){e.preventDefault();const parentLink=$(this).parent('a');if(parentLink.length&&parentLink.attr('href')){window.location.href=parentLink.attr('href')}}});currentRender.on('click keydown','.close-subtree i',function(e){if(e.key==='Enter'||e.type==='click'){e.preventDefault();content.find('.mobile-categories').last().remove();currents.pop();focusElement()}})}})},function(content){content.off('click.mobileCategoriesOpen click.mobileCategoriesClose');if(clone){clone.removeEventListener('keydown',escHandler);clone.removeEventListener('keydown',enterHandler)}});break}})} 990$("img.logo-image").each(function(){const $img=$(this);const src=$img.attr("src");if(!src.toLowerCase().endsWith(".svg"))return;fetch(src).then(resp=>resp.text()).then(svgText=>{const parser=new DOMParser();const svgDoc=parser.parseFromString(svgText,"image/svg+xml");const svgEl=svgDoc.querySelector("svg");if(!svgEl)return;const hasWidth=svgEl.hasAttribute("width");const hasHeight=svgEl.hasAttribute("height");if(hasWidth&&hasHeight)return;const h=$img[0].naturalHeight||90;let maxHeight=$img.data("max-height")||90;let height=h;if(height>maxHeight){height=maxHeight} 991$img.css("height",height+"px")})});$(document).on('click','.product-tile',function(e){if(e.target.closest('button, a[href="#"]'))return;const selectWhitelist=['.products_lists_pages','.products_slider','.products_list','.product-of-the-day','.product_of_the_day','.products-list','.products-slider','.products-list-page'];const product=this.closest('.product-tile');const isProperTile=selectWhitelist.some(selector=>product.closest(selector));if(!isProperTile)return;const name=product.querySelector(skyTheme?'a.product-name':'.product-name a')?.textContent.trim();const id=product.querySelector('[data-product-id]').dataset.productId;const item=mapProductToGoogleItem({item_id:id,item_name:name,});Analytics.trackSelectItem([item])});$(document).on('click','.core_quickSearchAjaxHints tr',function(){const product=this;const item=mapProductToGoogleItem({item_id:product.dataset.id,item_name:product.dataset.name,});Analytics.trackSelectItem([item])});Number.prototype.pad=function(size){var s=String(this);while(s.length<(size||2)){s='0'+s} 992return s};var formValidator=function(scope,selfTest){removeAllErrors(scope);var testRules=function(valid,rules){var messages=[];
992rules.forEach(function(rule){var ruleName=rule.split(':')[0],ruleValue=rule.split(':')[1],validNode=valid[0],message;const nodeId=$(validNode).attr('id');const nodeLabel=$('label[for="'+nodeId+'"]').clone().find('span[aria-hidden="true"]').remove().end().text().trim();switch(ruleName){case 'required':if(skyTheme&&nodeId&&nodeLabel&&L.ERROR_REQUIRED_FIELD_WITH_LABEL){message=L.ERROR_REQUIRED_FIELD_WITH_LABEL.split('[LABEL]').join(nodeLabel)}else{message=L.ERROR_REQUIRED_FIELD} 993if(validNode.nodeName=='INPUT'&&(validNode.type=='checkbox'||validNode.type=='radio')){if(valid.prop('checked')==!1){messages.push(message)}} 994if(validNode.nodeName=='INPUT'&&(validNode.type!='checkbox'&&validNode.type!='radio')){if(valid.val()===''){messages.push(message)}} 995if(validNode.nodeName=='SELECT'||validNode.nodeName=='TEXTAREA'){if(valid.val()===''||valid.val()===null){messages.push(message)}} 996break;case 'equal':message=L.WRONG_PASSWORD_NOT_SAME;if(valid.parents('form').eq(0).find('[name="'+ruleValue+'"]').val()!=valid.val()){messages.push(message)} 997break;case 'email':message=L.ERROR_EMAIL_IS_INVALID;if(valid.val()!==''&&new RegExp(/^[a-z0-9&\'\.\-_\+]+@[a-z0-9\-]+\.([a-z0-9\-]+\.)*?[a-z]+$/i).test(valid.val().replace(/\s/g,''))==!1){messages.push(message)} 998break;case 'postcode':var inputCountry=$(valid.data('valid-parent-postcode'));message=L.ERROR_POSTCODE_IS_INVALID;if(new RegExp(/^\d{2}-\d{3}$/).test(valid.val().replace(/\s/g,''))==!1&&inputCountry.length>0&&inputCountry.children("optgroup").children("option:selected").val()=='PL'){messages.push(message)} 999break;case 'streetAddressNr':message=L.ERROR_STREET_ADDRESS_NR_IS_INVALID;if(new RegExp(/\d/).test(valid.val().replace(/\s/g,''))==!1){messages.push(message)} 1000break;case 'phone':message=L.ERROR_PHONE_IS_INVALID;var number=valid.val().split('-').join('').split(' ').join(''),error=0,count=0;number.split('').forEach(function(test,i){if(i==0&&test=='+'){}else if(!((parseInt(test)^0)===parseInt(test))){error++}else{count++}});if(error==0&&count==0){}else if(error>0||count<9||count>=14){messages.push(message)}else{valid.val(number)} 1001break;case 'taxNumber':let val=(valid.val()||'').trim();if(val===''){break} 1002val=val.split('-').join('').split(' ').join('');const conditionField=valid.data('condition-field');const conditionValue=valid.data('condition-value');if(conditionField&&$(conditionField).val()!==conditionValue){valid.val(val);break} 1003message=L.ERROR_TAX_NUMBER_IS_INVALID;const onlyNumbers=val.replace(/[^0-9]+/g,'');if(onlyNumbers.length===10){valid.val(val)}else{messages.push(message)} 1004break;case 'minlength':if(skyTheme&&nodeId&&nodeLabel){message=L.ERROR_MIN_CHAR_WITH_LABEL.split('[LABEL]').join(nodeLabel).split('[CHARS]').join(ruleValue)}else{message=L.ERROR_MIN_CHAR.split('[CHARS]').join(ruleValue)} 1005if(validNode.nodeName=='INPUT'||validNode.nodeName=='TEXTAREA'){if(valid.val().length<ruleValue){messages.push(message)}} 1006break;case 'maxlength':if(skyTheme&&nodeId&&nodeLabel){message=L.ERROR_MAX_CHAR_WITH_LABEL.split('[LABEL]').join(nodeLabel).split('[CHARS]').join(ruleValue)}else{message=L.ERROR_MAX_CHAR.split('[CHARS]').join(ruleValue)} 1007if(validNode.nodeName=='INPUT'||validNode.nodeName=='TEXTAREA'){if(valid.val().length>ruleValue){messages.push(message)}} 1008break;case 'orderPayment':if(valid.find('input[name="payment"]:checked').length==0){messages.push(L.ERROR_SELECT_PAYMENT_METHOD)} 1009if($('#order-deliverys-methods-error').data('deliveryError')===1){messages.push(L.ERROR_SELECT_PAYMENT_METHOD)} 1010break;case 'orderPaymentBank':if(valid.parents('.more').hasClass('open')){if(valid.val()==''){messages.push(L.ERROR_SELECT_BANK)}} 1011break;case 'orderDeliveryError':if($('#order-deliverys-methods-error').data('deliveryError')===1){messages.push(L.ERROR_SELECT_PAYMENT_METHOD)} 1012break;case 'orderShipment':if(valid.parents('.order-sections').eq(0).find('#order-deliverys-methods').find('input[name="shipment"]:checked').length==0&&valid.parents('.order-sections').eq(0).find('#order-deliverys-methods-empty').css('display')!=='none'){messages.push(L.ERROR_SELECT_DELIVERY_METHOD)} 1013break;case 'orderShipmentSelect':if(valid.parents('.more').hasClass('open')){if(!valid.val()){if(typeof valid.data('key')!=='undefined'){messages.push(L.ERROR_SELECT_DELIVERY_CITY)} 1014if(typeof valid.data('streets')!=='undefined'){messages.push(L.ERROR_SELECT_DELIVERY_STREET)}}} 1015break;case 'register-options':if(valid.find('input[name="preview"]:checked').length==0){messages.push(L.ERROR_SELECT_REGISTER_METHOD)} 1016break;case 'login-option':if(valid.data('loginValidated')===!1){messages.push(L.LOGIN_REQUIRE)} 1017break;case 'ASCII':message=L.INVALID_ASCII_CHARACTERS;hasInvalidASCII(valid.val())&&messages.push(message);break;case 'rateContainer':if(skyTheme){message=L.ERROR_REQUIRED_RATE_FIELD}else{message=L.ERROR_REQUIRED_FIELD} 1018const form=valid.parents('form').eq(0);const hasEmptyField=['quality','usability','price'].some(field=>form.find(`[name="${field}"]`).val()==='');
1018if(hasEmptyField){messages.push(message)} 1019break}});return messages};var errors=[],errorAdd=function(element,messages){errors.push({element:typeof element.data('[data-valid-box]')==='undefined'&&element.parents('[data-valid-box]').length==0?element:element.parents('[data-valid-box]').eq(0),messages:messages})},valids=typeof selfTest!=='undefined'&&selfTest===!0?scope:scope.find('[data-valid]');valids.each(function(){var valid=$(this),rules=valid.data('valid').split('|'),test=testRules(valid,rules),parents=valid.data('valid-parent-required'),parent,parentElement,parentMode,startTest=!0,i;if(typeof parents==='string'){parents=parents.split(',');for(i in parents){parentMode=0;parent=parents[i];if(parent[0]==='!'){parent=parent.slice(1);parentMode=1} 1020parentElement=$('input[data-valid-parent="'+parent+'"]:checked');if(parentElement.length===parentMode){startTest=!1}}} 1021if(startTest&&test.length>0){errorAdd(valid,test)}});errors.forEach(function(error){addError(error.element,error.messages.join('. '))});if(typeof errors[0]!=='undefined'){errors[0].element[0].scrollIntoView()} 1022return errors.length>0?!1:!0};const AC_COOKIE_NAME='ac_data';const AC_COOKIE_TTL=60*24*60*60*1000;const getAcData=()=>{const rawData=cookies.read(AC_COOKIE_NAME);if(!rawData)return{};try{return JSON.parse(decodeURIComponent(rawData))}catch{return{}}};const setAcData=(data)=>cookies.create(AC_COOKIE_NAME,encodeURIComponent(JSON.stringify(data)),AC_COOKIE_TTL);const getStorageKey=(el)=>{const rule=el.dataset.storage;if(!rule)return null;let key=rule.split('|')[0];if(key.startsWith('attr(')){key=el.getAttribute(key.slice(5,-1));if(!key)return null} 1023return key};const getElementValue=(element)=>{if(element.tagName==='INPUT'&&(element.type==='checkbox'||element.type==='radio')){return element.checked?element.value:null} 1024return element.value!==''?element.value:null};const setElementValue=(element,value)=>{switch(element.tagName){case 'INPUT':if(element.type==='checkbox'||element.type==='radio'){if(!element.checked)setTimeout(()=>element.click(),0)}else{element.value=value} 1025break;case 'SELECT':element.value=value;element.dispatchEvent(new Event('change',{bubbles:!0}));break;case 'TEXTAREA':element.value=value;break}};const formStorage=(scope,isSelf)=>{const elements=isSelf?[scope]:scope.querySelectorAll('[data-storage]');const acData=getAcData();elements.forEach(element=>{const key=getStorageKey(element);if(!key)return;const value=getElementValue(element);if(value==null){delete acData[key]}else{acData[key]=value.length>256?value.substring(0,256):value}});setAcData(acData)};const formStorageLoad=(()=>{const acData=getAcData();document.querySelectorAll('[data-storage]').forEach(element=>{const key=getStorageKey(element);if(!key)return;const value=acData[key];if(value!=null){setElementValue(element,value)}})})();$(document).on('click blur','[data-storage]',function(e){const element=this;if(e.type==='click'&&element.tagName==='INPUT'&&(element.type==='checkbox'||element.type==='radio')){formStorage(element,!0)} 1026if(e.type==='focusout'&&(element.tagName==='INPUT'||element.tagName==='SELECT'||element.tagName==='TEXTAREA')){formStorage(element,!0)}});$(document).on('input','[data-live-valid]',function(){const $input=$(this);const conditionField=$input.data('condition-field');const conditionValue=$input.data('condition-value');if(conditionField&&$(conditionField).val()!==conditionValue){return} 1027const rawRules=$input.data('live-valid').split('|');const startValue=$input.val();let cleanedValue=startValue;rawRules.forEach(function(ruleString){const parts=ruleString.split(':');const ruleName=parts[0];const ruleValue=parts[1];switch(ruleName){case 'taxNumber':cleanedValue=cleanedValue.replace(/[^0-9]/g,'');break;case 'validPolishTaxNumber':const taxNumberField=$input.data('tax-number-field');if(startValue==='PL'&&$(taxNumberField).val()!==''){let valToClean=$(taxNumberField).val();valToClean=$(taxNumberField).val().replace(/[^0-9]/g,'');valToClean=valToClean.substring(0,10);$(taxNumberField).val(valToClean)}else{removeError($(taxNumberField))} 1028break;case 'maxlength':if(ruleValue){cleanedValue=cleanedValue.substring(0,parseInt(ruleValue))} 1029break;default:break}});if(startValue!==cleanedValue){$input.val(cleanedValue)}});let getSpecialFunctionMethods=async function(specialFunction,cod,country,pointType){let methods=[];let pointTypeParam='';if(pointType){pointTypeParam=`&point_type=${pointType}`} 1030if(skyTheme){disableOrderButton(!0)} 1031try{await $.ajax({method:'GET',url:`/order/?json=1&action=loadSpecialFunctionCities&country=${country}${pointTypeParam}&function=${specialFunction}&cod=`+(cod==='yes'?1:0),}).done(function(data){if(Array.isArray(data)){methods=data}else if(typeof data==='object'){methods=Object.keys(data).map((key)=>data[key])} 1032$('.shipment-loader').removeClass('loading');$('.delivery-method-select').show();if(skyTheme){disableOrderButton(!1)}})}catch(error){if(skyTheme){disableOrderButton(!1)} 1033Swal.fire({width:1000,title:L.ERROR_UNEXPECTED_ERROR,html:'<div><div class="row" style="padding: 40px;">'+L.ERROR_CRITICAL_MESSAGE+'</div></div>',confirmButtonText:'OK',buttonsStyling:!1,customClass:{confirmButton:'btn',...popups.customClass},...(skyTheme?popups.ariaConfiguration:{})})} 1034return methods};let loadFunctionMethods=async function(specialFunction,cod,country,pointType){if(!SkyShop.shipment.specialFunctionMethods.hasOwnProperty(specialFunction)){SkyShop.shipment.specialFunctionMethods[specialFunction]={}} 1035if(!SkyShop.shipment.specialFunctionMethods[specialFunction].hasOwnProperty(cod)){SkyShop.shipment.specialFunctionMethods[specialFunction][cod]={}} 1036SkyShop.shipment.specialFunctionMethods[specialFunction][cod][country]=await getSpecialFunctionMethods(specialFunction,cod,country,pointType)};let hasLoadedFunctionMethods=(specialFunction,cod,country,container)=>{if(SkyShop.shipment.specialFunctionMethods.hasOwnProperty(specialFunction)&&SkyShop.shipment.specialFunctionMethods[specialFunction].hasOwnProperty(cod)&&country.length&&SkyShop.shipment.specialFunctionMethods[specialFunction][cod].hasOwnProperty(country)&&SkyShop.shipment.specialFunctionMethods[specialFunction][cod][country].length>0){return !0}else{$('.delivery-method-select').hide() 1037$(container).children().append('<div class="shipment-loader loading "><div class="loader"></div></div>')}} 1038let loadShipmentMethods=async function(key,container){let shipment=SkyShop.order.shipments[key];const pointType=shipment.sh_points_type??'';let specialFunction=shipment['function'];let cod=shipment.pay_delivery;let country=SkyShop.order.userCountry;let hasShipmentSpecialFunction=()=>(shipment.hasOwnProperty('function')&&shipment.function!=='none');if(!hasShipmentSpecialFunction()){return} 1039if(!hasLoadedFunctionMethods(specialFunction,cod,country,container)){await loadFunctionMethods(specialFunction,cod,country,pointType)}else if(skyTheme){disableOrderButton(!1)} 1040shipment.methods=SkyShop.shipment.specialFunctionMethods[specialFunction][cod][country]} 1041var orderShipments=function(key){var shipment=SkyShop.order.shipments[key];var trans={city:L.USER_CITY,street:L.USER_STREET2};var type='default',additionalOrderOption=null;var data={cities:{},};const uniqueSelectId='id-'+Date.now()+'-'+Math.floor(Math.random()*1000);var template={render:['<div class="delivery-method-select">','<label for="order-country-city-'+uniqueSelectId+'" class="order-title-section">{{:city:}}</label>','<div class="delivery-method-select-wrapper" data-cy="orderDeliverySelectCity" data-valid-box>','<select id="order-country-city-'+uniqueSelectId+'" class="order-country core_orderShipmentSelect" data-select-theme="product-parameters-select-theme" data-key="{{:key:}}" data-type="{{:type:}}" data-valid="orderShipmentSelect">','{{:options_city:}}','</select>','</div>','<label for="order-country-street-'+uniqueSelectId+'" class="order-title-section">{{:street:}}</label>','<div class="shipment-loader loading hidden" ><div class="loader"></div></div>','<div class="delivery-method-select-wrapper" data-cy="orderDeliverySelectStreet" data-valid-box>','<select id="order-country-street-'+uniqueSelectId+'" class="order-country core_orderShipmentSelectStreet " data-select-theme="product-parameters-select-theme" data-streets="{{:key:}}" data-valid="orderShipmentSelect">','{{:options_streets:}}','</select>','</div>','<div class="hidden">','<input type="hidden" name="shipment_method[{{:key:}}]" />','</div>','{{:additional_order_option:}}','</div>'].join(''),option:['<option value="{{:value:}}">{{:name:}}</option>'].join('')};var storeCountries=function(store){store.forEach(function(item){var city=$.base64Encode(item);if(typeof data.cities[city]==='undefined'){data.cities[city]=item}});SkyShop.order.shipmentsParsed[key]={cities:data.cities,streets:{}}};var setTrans=function(set){let transCase=[] 1042switch(set){case 'paczkomaty':transCase=['street|Paczkomat'] 1043break;default:transCase=['street|Punkt odbioru'];break};transCase.forEach(function(option){var optionKey=option.split('|');trans[optionKey[0]]=optionKey[1]})};if(typeof SkyShop.order.shipmentsParsed[key]==='undefined'){switch(shipment['function']){case 'paczkomaty':storeCountries(shipment.methods);break;
1043case 'paczka_w_ruchu':storeCountries(Object.keys(shipment.methods).map(function(key){return shipment.methods[key]}));break;case 'dhl_pop':storeCountries(Object.keys(shipment.methods).map(function(key){return shipment.methods[key]}));break;case 'gls_fast_parcel':storeCountries(Object.keys(shipment.methods).map(function(key){return shipment.methods[key]}));break;case 'dpd_pickup':storeCountries(Object.keys(shipment.methods).map(function(key){return shipment.methods[key]}));break;case 'odbior_w_punkcie':storeCountries(Object.keys(shipment.methods).map(function(key){return shipment.methods[key]}));break;case 'pocztex':storeCountries(Object.keys(shipment.methods).map(function(key){return shipment.methods[key]}));break};setTrans(shipment['function'])}else{switch(shipment['function']){case 'gls_fast_parcel':storeCountries(Object.keys(shipment.methods).map(function(key){return shipment.methods[key]}));break} 1044setTrans(shipment['function'])} 1045switch(shipment['function']){case 'paczkomaty':if(typeof SkyShop.inpostDisplayLinkToMap!=='undefined'&&SkyShop.inpostDisplayLinkToMap&&typeof SkyShop.inpostDisplayLinkToMapOnMobile!=='undefined'){let hideOnMobileClass=SkyShop.inpostDisplayLinkToMapOnMobile?'':'hidden-on-mobile';additionalOrderOption=[`<span class="order-title-section order-title-section-flex ${hideOnMobileClass}"> 1046 <a href="#" class="core_orderOpenMapPaczkomaty" data-unique-id="${shipment.uniqueId}" data-pay-delivery="${shipment.pay_delivery}"> 1047 ${L['SELECT_PARCEL_LOCKER_MAP']} 1048 </a> 1049 </span>`]} 1050break;case 'dhl_pop':if(typeof SkyShop.dhlPopDisplayLinkToMap!=='undefined'&&SkyShop.dhlPopDisplayLinkToMap){additionalOrderOption=['<span class="order-title-section hidden-on-mobile ">','<a href="#" class="core_orderOpenMapDhlPop">',L.SELECT_POINT_MAP,'</a>','</span>']} 1051break;case 'dpd_pickup':if(SkyShop.hasOwnProperty('dpdDisplayLinkToMap')&&SkyShop.dpdDisplayLinkToMap){let hideOnMobileClass=SkyShop.dpdDisplayLinkToMapOnMobile?'':'hidden-on-mobile';additionalOrderOption=[`<span class="order-title-section ${hideOnMobileClass}">`,'<a href="#" class="core_orderOpenMapDpdPickup">',L.SELECT_POINT_MAP,'</a>','</span>']} 1052break;case 'paczka_w_ruchu':if(SkyShop.hasOwnProperty('ruchDisplayLinkToMap')&&SkyShop.ruchDisplayLinkToMap){let hideOnMobileClass=SkyShop.ruchDisplayLinkToMapOnMobile?'':'hidden-on-mobile';additionalOrderOption=[`<span class="order-title-section ${hideOnMobileClass}">`,'<a href="#" class="core_orderOpenMapRuch">',L.SELECT_POINT_MAP,'</a>','</span>']} 1053break;case 'gls_fast_parcel':if(SkyShop.hasOwnProperty('glsDisplayLinkToMap')&&SkyShop.glsDisplayLinkToMap){additionalOrderOption=[`<span class="order-title-section">`,'<a href="#" class="core_orderOpenMapGls">',L.SELECT_POINT_MAP,'</a>','</span>']} 1054break;case 'pocztex':if(SkyShop.hasOwnProperty('pocztexDisplayLinkToMap')&&SkyShop.pocztexDisplayLinkToMap){let hideOnMobileClass=SkyShop.pocztexDisplayLinkToMapOnMobile?'':'hidden-on-mobile';additionalOrderOption=[`<span class="order-title-section ${hideOnMobileClass}"> 1055 <a href="#" class="core_orderOpenMapPocztex" 1056 data-type="${shipment.sh_points_type}" 1057 data-pay-delivery="${shipment.pay_delivery}" 1058 data-key="${shipment.uniqueId}"> 1059 ${L['SELECT_POINT_MAP']} 1060 </a> 1061 </span>`]} 1062break} 1063type=shipment['function'];template.render=template.render.replace(/{{:key:}}/g,key);template.render=template.render.replace(/{{:type:}}/g,type);template.render=template.render.replace(/{{:city:}}/g,trans.city);template.render=template.render.replace(/{{:street:}}/g,trans.street);if(additionalOrderOption==null){template.render=template.render.replace(/{{:additional_order_option:}}/g,'')}else{template.render=template.render.replace(/{{:additional_order_option:}}/g,additionalOrderOption.join(''))} 1064var cities=SkyShop.order.shipmentsParsed[key].cities;var renderOptions={cities:template.option};renderOptions.cities=renderOptions.cities.replace(/{{:value:}}/g,'');renderOptions.cities=renderOptions.cities.replace(/{{:name:}}/g,'');for(var itemCity in cities){var item={value:itemCity,name:cities[itemCity]} 1065var option=template.option;option=option.replace(/{{:value:}}/g,item.name);option=option.replace(/{{:name:}}/g,item.name);renderOptions.cities+=option} 1066template.render=template.render.replace(/{{:options_city:}}/g,renderOptions.cities);return $(template.render)};var getShipmentsData=function(key){return SkyShop.order.shipments[key]??[]} 1067var getDhlMapByPointType=function(pointType){if(pointType=='LU'){return 'https://parcelshop.dhl.pl/mapa?options_pickup_cod=N&show_on_map_parcelshop=T&show_on_map_parcelstation=N&show_on_map_pok=T'}else if(pointType=='AP'){return 'https://parcelshop.dhl.pl/mapa?options_pickup_cod=N&show_on_map_parcelshop=N&show_on_map_parcelstation=T&show_on_map_pok=N'} 1068return 'https://parcelshop.dhl.pl/mapa'} 1069var showHideStreetSelect=function(type){switch(type){case 'show':$('.shipment-loader').addClass('hidden');$('.core_orderShipmentSelectStreet').parent().removeClass('hidden');break;case 'hide':$('.shipment-loader').removeClass('hidden');$('.core_orderShipmentSelectStreet').parent().addClass('hidden');break}} 1070const disableOrderButton=function(disable=!1){$('.core_finishOrder').prop('disabled',disable)} 1071var orderShipmentsStreets=function(key,type,pickedCity,callback){const city=$.base64Encode(pickedCity);const data={streets:{}} 1072const chosenShipmentData=SkyShop.order.shipments[key]??{};const cod=(SkyShop.order.shipments[key]?.pay_delivery??'no')==='yes'?1:0;var storeStreets=function(streets,keyStreets,pickedCity){Object.entries(streets).forEac
1072h(function(item){var streetData={} 1073if(typeof data.streets[pickedCity]==='undefined'){data.streets[pickedCity]=[]} 1074keyStreets.forEach(function(option){var optionKey=option.split('|');streetData[optionKey[0]]=item[1][optionKey[1]]});data.streets[pickedCity].push(streetData)}) 1075SkyShop.order.shipmentsParsed[key].streets={...SkyShop.order.shipmentsParsed[key].streets,...data.streets} 1076renderStreetsOptions()} 1077var renderStreetsOptions=function(){var streets=SkyShop.order.shipmentsParsed[key].streets[city];var template={render:'',option:['<option value="{{:value:}}" data-options="{{:options:}}" >{{:name:}}</option>'].join('')};var renderOptions={streets:template.option};renderOptions.streets=renderOptions.streets.replace(/{{:value:}}/g,'');renderOptions.streets=renderOptions.streets.replace(/{{:options:}}/g,'');renderOptions.streets=renderOptions.streets.replace(/{{:name:}}/g,skyTheme?'':('-- '+L.SELECT+'--'));if(streets!==undefined){streets.sort(function(a,b){return a.name.toLowerCase().localeCompare(b.name.toLowerCase())})} 1078for(var itemStreet in streets){var item=SkyShop.order.shipmentsParsed[key].streets[city][itemStreet];var options=[];Object.keys(item).forEach(function(i){if(i!='id'||i!='number'){options.push(i);options.push(':');options.push(item[i]);options.push('|')}});options=options.join('');options=options.substring(0,options.length-1);var option=template.option;option=option.replace(/{{:value:}}/g,item.id);option=option.replace(/{{:options:}}/g,options);option=option.replace(/{{:name:}}/g,item.name);const savedDeliverySelection=findDeliveryByHash(key);const savedPickupId=savedDeliverySelection?savedDeliverySelection.pickupId:null;const isSelected=(savedPickupId!==null&&savedPickupId===item.id)||(item.id===SkyShop.order.shipmentStreetPickedFromMap);option=option.replace(/{{:selected:}}/g,isSelected?'selected':'');renderOptions.streets+=option} 1079showHideStreetSelect('show') 1080if(skyTheme){disableOrderButton(!1)} 1081template.render=renderOptions.streets;$('[data-streets="'+key+'"]').html(template.render);if(SkyShop.order.shipmentStreetPickedFromMap!==''&&SkyShop.order.shipmentStreetPickedFromMap!==null){$('select.core_orderShipmentSelectStreet').val(SkyShop.order.shipmentStreetPickedFromMap).trigger('select2:select').trigger('change')}else{const savedDeliverySelection=findDeliveryByHash(key);$('select.core_orderShipmentSelectStreet').val(savedDeliverySelection?savedDeliverySelection.pickupId:null).trigger('select2:select').trigger('change')} 1082$('[data-streets="'+key+'"]').select2({theme:'bootstrap',width:'100%',selectionCssClass:'select-primary select-primary-blank',dropdownCssClass:"select-primary-dropdown select-primary-dropdown-blank",placeholder:skyTheme?L.SELECT_FROM_LIST:('-- '+L.SELECT+'--'),allowClear:!0,language:{noResults:function(){return L.FIRST_SELECT_CITY}},escapeMarkup:function(markup){return markup},templateResult:function(result){if(result.id==''){return result.text} 1083var options={},option;if(typeof result.element!=='undefined'){option=result.element.getAttribute('data-options').split('|');option.forEach(function(i){i=i.split(':');options[i[0]]=i[1]})} 1084switch(type){case 'paczkomaty':return['<div class="order-shipment-item">','<div class="order-shipment-item-logo">','<img src="/inc/shipments/paczkomaty/inpost-logo.png" />','</div>','<div class="order-shipment-item-name">','<div class="order-shipment-item-name-wrapper">','<div>'+result.text+'</div>',typeof options.description!='undefined'&&options.description!=''?'<div><small>'+options.description+'</small></div>':'','</div>','</div>','</div>'].join('');break;case 'paczka_w_ruchu':return['<div class="order-shipment-item">','<div class="order-shipment-item-logo">','<img src="/inc/shipments/paczka_w_ruchu/kiosk.png" />','</div>','<div class="order-shipment-item-name">','<div class="order-shipment-item-name-wrapper">','<div>'+result.text+'</div>',typeof options.description!='undefined'&&options.description!=''?'<div><small>'+options.description+'</small></div>':'','</div>','</div>','</div>'].join('');break;case 'odbior_w_punkcie':return['<div class="order-shipment-item">','<div class="order-shipment-item-logo">','<img src="/inc/shipments/odbior_w_punkcie/punkt_pp.png" />','</div>','<div class="order-shipment-item-name">','<div class="order-shipment-item-name-wrapper">','<div>'+result.text+'</div>',typeof options.description!='undefined'&&options.description!=''?'<div><small>'+options.description+'</small></div>':'','</div>','</div>','</div>'].join('');break;default:return result.text;break}}}
1084).on('select2:open',function(){$('.select2-results > ul').scrollbar();$('.select2-container--open .select2-search__field').attr('placeholder',L.SEARCH)}).on('select2:closing',function(){$('.select2-results > ul').scrollbar('destroy')});$('[data-key= "'+key+'"]').eq(1).select2({theme:'bootstrap',width:'100%',selectionCssClass:'select-primary select-primary-blank',dropdownCssClass:"select-primary-dropdown select-primary-dropdown-blank",placeholder:skyTheme?L.SELECT_FROM_LIST:('-- '+L.SELECT+'--'),allowClear:!0,}) 1085$('[data-key= "'+key+'"]').eq(1).on("select2:unselecting",function(e){saveDeliverySelection(key,{pickupCity:null,pickupId:null});$('[data-streets="'+key+'"]').html(' ');$('[data-streets="'+key+'"]').val(' ').trigger('change')});if(typeof callback!=='undefined'){callback()}} 1086const pointType=chosenShipmentData.sh_points_type??'';let pointTypeParam='';if(pointType){pointTypeParam=`&point_type=${pointType}`} 1087if(SkyShop.order.shipmentsParsed[key].streets[$.base64Encode(pickedCity)]!==undefined&&SkyShop.order.shipmentsParsed[key].streets[$.base64Encode(pickedCity)].length>=1){renderStreetsOptions()} 1088else if(pickedCity===''||pickedCity===null){showHideStreetSelect('show') 1089if(skyTheme){disableOrderButton(!1)}} 1090else{if(pickedCity!==''&&pickedCity!==null){try{$.ajax({method:'GET',beforeSend:()=>{showHideStreetSelect('hide') 1091if(skyTheme){disableOrderButton(!0)}},url:`/order/?json=1&action=loadSpecialFunctionPointsByCity&function=${type}&cod=${cod}${pointTypeParam}&country=${SkyShop.order.userCountry}&city=${pickedCity}`,}).done(function(data){storeStreets(data,['name|name','description|description','id|id'],$.base64Encode(pickedCity));if(skyTheme){disableOrderButton(!1)}})}catch(error){if(skyTheme){disableOrderButton(!1)}}}}};var mapObj;var SUBMIT_TEXT;window.OrderService={proxyPath:'/proxy_public_api?endpoint=',get servicePath(){return this.proxyPath+'/sky2/api-public/orders'},get applicationLang(){return document.documentElement.getAttribute('lang')||''},get headers(){return{'Content-Type':'application/json','Accept':'application/json','lang':this.applicationLang}},async createReturnDraft(orderId){if(!orderId){throw new Error('Missing orderId parameter.')} 1092const response=await fetch(`${this.servicePath}/${orderId}/return/create-draft/`,{method:'POST',headers:this.headers});if(!response.ok){let errorMessage=`Server Error (status: ${response.status})`;try{const errorData=await response.json();if(errorData&&errorData.message){errorMessage=errorData.message}}catch(e){console.warn('Failed to parse error response as JSON.',e)} 1093throw new Error(errorMessage)} 1094const responseData=await response.json();return responseData.redirectUrl||null}};window.SkyShop={cart:{},order:{paymentId:null,shipments:{},shipmentsParsed:{},shipmentPrice:null,shipmentSelected:null,overheadValue:'0.00',userCountry:null,initialCalculations:null,wdt:null,calculations:null,freeDeliveryCoupon:null,shipmentStreetPickedFromMap:null,},card:{stocks:{pattern:{stocks:null,stocksSelected:{},stocksSelectedLast:{},stocksSelectedLastGroup:null},storable:{},allowStockRequest:!1,},counterError:null},core:{quickSearchAjax:null,orderCalculationAjax:null},shipment:{specialFunctionMethods:{},},product:{imgId:null},popupFire:{queue:!1,showPopup:!0},debug:function(callback){callback=callback||function(){};if($('body').attr('data-debug')=="true"){callback();return !0}else{return !1}}};$(document).find('.core_messageListShow').each(function(){var self=$(this);var data={messages:typeof self.data('messages-list')!=='undefined'?self.data('messages-list').split('>:<'):[],errors:typeof self.data('errors-list')!=='undefined'?self.data('errors-list').split('>:<'):[],contents:[],showPopupsRecurency:function(messages){if(messages.length==0){return} 1095const[rawTitle,rawContent,rawType,rawBtnText]=messages[0].split('|');const message={title:rawTitle.slice(1,-1),content:rawContent.slice(1,-1),type:rawType.slice(1,-1),btnText:rawBtnText?rawBtnText.slice(1,-1):''};messages.shift();if(messages){const currentUrl=window.location.href;if(currentUrl.includes('orders/key/')){popups.emailRegisteredAlready(message.title,message.content,message.type,L.ORDER_CONFIRM_ERROR_POPUP)}else{popups.emailRegisteredAlready(message.title,message.content,message.type,message.btnText,function(){data.showPopupsRecurency(messages)})}}}};data.contents=data.messages.concat(data.errors);data.showPopupsRecurency(data.contents)});$(document).on('click','.core_commonAlertShopClose',function(e){e.preventDefault();window.location='/login/'});$(document).on('click','.core_commonAlertConditionalAccess',function(e){e.preventDefault();var self=$(this);var data={type:self.data('type'),alert:self.parents('.skyshop-alert-shop-close').eq(0),isSweetAlert:$('.swal2-container').hasClass('fade in')};switch(data.type){case 'yes':data.alert.transition('fadeOut',200,function(){data.alert.remove();cookies.create('ca_yes',1,31536000000);if(!data.isSweetAlert){$('html,body').removeClass('prevent-scroll');$('html,body').removeClass('prevent-scroll-desktop')}});break;case 'no':window.history.back();break}});$(document).on('submit','.core_parseForm',function(e){const form=this;if(form.getAttribute('data-submitting')=='true'){e.preventDefault();return} 1096form.setAttribute('data-submitting','true');const isFormValid=formValidator($(form));if(!isFormValid){e.preventDefault();form.removeAttribute('data-submitting');focusFirstFormError();return} 1097formStorage(form)});function buildCartProductsOrder(cartRendered,newProductsResponse){$(document).find('.core_storeCartProducts').each(function(){var self=$(this);var data={serialize:self.find('tbody').find('tr[data-hash]'),isCart:self.parents('section.cart').length>0?!0:!1,isOrder:self.parents('section.order').length>0?!0:!1};
1097data.serialize.each(function(){var product=$(this),options={};if(data.isCart){if(Object.keys(SkyShop.cart.products).length==0){SkyShop.cart.products=self.data('products')}else{product.find('.core_parseOption').each(function(){var option=$(this);if(typeof option.data('required')!=='undefined'&&option.data('required')===!0){options[option.data('key')]=option.val()}else if((option.data('required')==='undefined'||option.data('required')===!1)&&option.val()!=''){options[option.data('key')]=option.val()}else if(option.find('input:checked').length>0){options[option.data('key')]=option.val()}});SkyShop.cart.products[product.data('hash')]={id:product.data('id'),amount:product.find('input[name*="amount_"]').val(),options:options} 1098if(cartRendered===!0){for(const key in SkyShop.cart.products){delete SkyShop.cart.products[key]} 1099for(const key in SkyShop.card.stocks.storable){delete SkyShop.card.stocks.storable[key]} 1100Object.keys(newProductsResponse.products).map((product,i)=>{SkyShop.cart.products[product]={id:newProductsResponse.products[product].id,amount:newProductsResponse.products[product].amount,options:newProductsOptions(Object.values(newProductsResponse.products[product].options).filter((item,i)=>{return item.type==='choose'||item.type==='text'?item:null})),optionsExternalValues:newProductsResponse.products[product].optionsExternalValues,prodImgId:newProductsResponse.products[product].prodImgId}})}}}})})} 1101buildCartProductsOrder() 1102function newProductsOptions(opt){var newSkyShopCartProducts={} 1103opt.map((item,i)=>{Object.values(item.values).map((jtem,i)=>{if(jtem.selected.length>0){return newSkyShopCartProducts[item.id]=jtem.id}else if(jtem.textValue){return newSkyShopCartProducts={...newSkyShopCartProducts,[item.id]:jtem.id}}})}) 1104return newSkyShopCartProducts} 1105$(document).on('click','.core_changeProductPhoto',function(){var self=$(this),productCard=$('.product-card'),image;var data={label:self.data('image-id')};if(productCard.length>0){image=productCard.find('.product-slideshow [data-id="'+data.label+'"]').length>0?productCard.find('.product-slideshow [data-id="'+data.label+'"]'):productCard.find('.product-card-horizontal-gallery-wrapper [data-id="'+data.label+'"]');if(image.length>0){SkyShop.product.imgId=data.label;image.trigger('click')}}});$(document).on('change','.core_changeSortType',function(){if(document.readyState=='complete'){var self=$(this);var data={url:self.find('option:checked').val(),name:self.find('option:checked').text()};window.location=data.url}});$(document).on('select2:closing','.core_chooseParametersMulti',function(){var self=$(this);var data={optionPattern:self.prev().find('.choosed-option-pattern')[0].outerHTML};self.prev().children('input:not(.choosed-option-pattern)').remove();self.find('option:checked').each(function(){var option=$(this),pattern=data.optionPattern;pattern=pattern.replace(/{{:name:}}/g,option.attr('name'));pattern=$(pattern);pattern.removeAttr('disabled');self.prev().append(pattern)})});$(document).on('select2:closing','.core_chooseSearchPrice',function(){var self=$(this),dropdown=$('.select2-results').find('.select2-results__options');var data={results:[{name:'from',value:(dropdown.find('input[name="from"]').val()==''&&dropdown.find('input[name="to"]').val()==''?0:dropdown.find('input[name="from"]').val())},{name:'to',value:(dropdown.find('input[name="to"]').val()==''&&dropdown.find('input[name="from"]').val()==''?524288:dropdown.find('input[name="to"]').val())}],optionPattern:self.prev().find('.choosed-option-pattern')[0].outerHTML} 1106self.prev().children('input:not(.choosed-option-pattern)').remove();data.results.forEach(function(option){var pattern=data.optionPattern;pattern=pattern.replace(/{{:name:}}/g,option.name);pattern=pattern.replace(/{{:value:}}/g,option.value);pattern=$(pattern);pattern.removeAttr('disabled');self.prev().append(pattern)})});if(skyTheme){$(document).on('keydown','.core_getOrderShipments',function(e){if(e.key==='Enter'||e.key===' '){e.preventDefault();$(this).click()}})} 1107$(document).on('click change','.core_getOrderShipments',function(e,eData){if(eData?.action==='stopPropagation'){e.stopPropagation();return} 1108const wdtCheckTriggerElements=['param-rules-wdt','user-bill-country','param-vat'];const currentTargetId=e.currentTarget.id;if(!wdtCheckTriggerElements.includes(currentTargetId)){e.preventDefault()} 1109eData=eData||{};var self=$(this),order=$('.order');const orderMethodAwaitStatus={paymentMethod:'tr.core_getOrderShipments',activePaymentMethod:'tr.core_getOrderShipments.active',deliveryMethodsTable:'#order-deliverys-methods',deliveryMethodsPlug:'#order-deliverys-methods-empty',deliveryMethodsError:'#order-deliverys-methods-error',methodLoaderStatus:'<div class="shipment-loader loading "><div class="loader"></div></div>'} 1110if(e.type==='click'){SkyShop.order.overheadValue=self.find('.pay-overhead').val();const tempPaymentId=SkyShop.order.paymentId;if(!skyTheme){SkyShop.order.paymentId=order.find('input[name="payment"]:checked').val();SkyShop.order.overheadValue=self.find('.pay-overhead').val();if(self.next().hasClass('more')){self.next().find('input[name="payment"]').prop('checked',!0);if(self.next().find('input[name="payment"]').val()!==''){SkyShop.order.paymentId=self.next().find('input[name="payment"]').val()}else{SkyShop.order.paymentId=self.next().find('[data-payment-banks]').data('payment-banks')}}}else{SkyShop.order.paymentId=order.find('.core_getPaymentMethod.active').first().data('payment-id')} 1111if(tempPaymentId!==SkyShop.order.paymentId){SkyShop.order.prevPaymentId=tempPaymentId} 1112const acData=getAcData();acData.payment=String(SkyShop.order.paymentId);setAcData(acData)} 1113const selectOrderPaymentMethodPending=()=>{$(orderMethodAwaitStatus.paymentMethod).each((i,el)=>$(el).data('loading',!0).addClass('loading-order-shipment'));$(orderMethodAwaitStatus.activePaymentMethod).append($(orderMethodAwaitStatus.methodLoaderStatus)) 1114$(orderMethodAwaitStatus.deliveryMethodsTable).hide() 1115$(orderMethodAwaitStatus.deliveryMethodsPlug).show().css({opacity:1}) 1116$(orderMethodAwaitStatus.deliveryMethodsPlug).append($(orderMethodAwaitStatus.methodLoaderStatus))} 1117var data={paymentId:SkyShop.order.paymentId,country:order.find('select[name="user_country"]').val(),shipment:order.data('shipment'),coupon:order.find('input[name="code_discount"]').val(),products:$.base64Encode(JSON.stringify(SkyShop.cart.products)),isValidate:!self.parents('.order-select-table').hasClass('ss-error')};if(typeof data.paymentId==='undefined'){return} 1118if(!data.isValidate){removeError(self.parents('.order-select-table'))}
1119var url='/order/?json=1&pay_id='+encodeURIComponent(data.paymentId)+'&c='+data.country+'&sel='+data.shipment+(data.coupon!==undefined?'&code_discount='+data.coupon:'')+'&wdt='+(SkyShop.order.wdt?'1':'0');orderCalculate();if(!skyTheme){$('.core_finishOrder').prop('disabled',!0).attr('title',L.NOT_SELECTED_DELIVERY_METHOD)} 1120if(!eData.initial){$.ajax({type:'POST',url:url,data:{products:data.products},dataType:'json',beforeSend:()=>{selectOrderPaymentMethodPending()},success:function(response){$('.core_finishOrder').prop('disabled',!1).attr('title','') 1121SkyShop.order.shipments=response;orderRenderDeliveries(response)}})}});SkyShop.order.initialCalculations=$('.order').data('calc');if(SkyShop.order.initialCalculations){orderRenderCalculations(JSON.parse(atob(SkyShop.order.initialCalculations)),!0)} 1122$(window).on('load',function(){$(document).find('.core_getOrderShipments').each(function(){var self=$(this);var data={paymentId:self.data('payment-id')};const paymentValue=getAcData().payment||null;if(paymentValue!=null&&paymentValue.split('_')[0]==data.paymentId){const selfElement=document.querySelector(`.core_getPaymentMethod[data-payment-id='${data.paymentId}']`) 1123if(selfElement&&skyTheme){selfElement.click()}else{self.children('td').eq(0).trigger('click')}}})});let quickSearchAjaxCurrentRequest=null;$(document).on('keyup paste','.core_quickSearchAjax',function(e){if([13,16,17,18,27,32,37,39,38,40].indexOf(e.which)>-1){return !1} 1124var self=$(this),results=$('.core_quickSearchAjaxHints');const ariaLiveQuickSearch=$('.aria-live-quick-search');var data={search:self.val(),productPerPage:self.attr("product-per-page"),searchLoading:results.find('.search-loading'),searchInformation:results.find('.search-information'),searchCount:results.find('.search-count'),resultPattern:results.find('.search-result-pattern')[0].outerHTML};var url='/search?action=quick_search&json=1';if(data.search.length>2){if(typeof SkyShop.core.quickSearchAjax==='number'){clearTimeout(SkyShop.core.quickSearchAjax)} 1125if(results.hasClass('hidden')){results.removeClass('hidden')} 1126data.searchLoading.removeClass('hidden');data.searchInformation.addClass('hidden');data.searchCount.addClass('hidden');if(skyTheme){results.find('tr').not('.search-result-pattern').remove();ariaLiveQuickSearch.find('span').remove()} 1127SkyShop.core.quickSearchAjax=setTimeout(function(){if(quickSearchAjaxCurrentRequest&&quickSearchAjaxCurrentRequest.readyState!==4){quickSearchAjaxCurrentRequest.abort()} 1128quickSearchAjaxCurrentRequest=$.post(url,{cat_search:data.search,products_per_page:data.productPerPage},function(response){if(typeof response==='string'){response=JSON.parse(response)} 1129results.find('tr').not('.search-result-pattern').remove();if(response.success==!0){var searchResults=Object.keys(response.data.list);if(searchResults.length>0){searchResults.forEach(function(id,index){var result=response.data.list[id];var resultTemplate=data.resultPattern;resultTemplate=resultTemplate.replace(/{{:id:}}/g,result.prod_id);resultTemplate=resultTemplate.replace(/{{:image:}}/g,result.prod_img_src);if(skyTheme){resultTemplate=resultTemplate.replace(/{{:position:}}/g,index+1);resultTemplate=resultTemplate.replace(/#{{:url:}}/g,result.prod_url);resultTemplate=resultTemplate.replace(/href="javascript:void\(0\)"\s+data-template-url=/g,'href=')}else{resultTemplate=resultTemplate.replace(/#{{:url:}}/g,result.prod_url)} 1130resultTemplate=resultTemplate.replace('src="/view/new/img/transparent.png"','');if(result.prod_name.includes('$&','&','$&')){var stringToEncode=specialCharacterNameToReplace(result.prod_name) 1131resultTemplate=resultTemplate.replace(/{{:name:}}/g,stringToEncode)}else{resultTemplate=resultTemplate.replace(/{{:name:}}/g,result.prod_name)} 1132const isDiscount=result.prod_oldprice==0||result.prod_oldprice<=result.prod_price;const isLowestPrice=skyTheme&&result.PRODUCT_LOWEST_PRICE.length>0;resultTemplate=resultTemplate.replace(/{{:is_discount:}}/g,(isDiscount||isLowestPrice)?'hidden':skyTheme?'sky-f-product-old-price-small':'');resultTemplate=resultTemplate.replace(/{{:price:}}/g,result.prod_oldprice==0?result.prod_price:result.prod_oldprice);resultTemplate=resultTemplate.replace(/{{:price_discount:}}/g,result.prod_price);resultTemplate=resultTemplate.replace(/data-src/g,'src');if(skyTheme){resultTemplate=resultTemplate.replace(/{{:lowest_price:}}/g,result.PRODUCT_LOWEST_PRICE);resultTemplate=resultTemplate.replace(/{{:lowest_currency_symbol:}}/g,result.PRODUCT_LOWEST_CURRENCY_SYMBOL);resultTemplate=resultTemplate.replace(/{{:is_lowest_price:}}/g,isLowestPrice?'':'hidden');resultTemplate=resultTemplate.replace(/{{:is_discount_color:}}/g,isLowestPrice?'sky-discount-text-color':'');resultTemplate=resultTemplate.replace(/{{:aria_price:}}/g,isDiscount?L.QUICK_SEARCH_ARIA_PRODUCT_PRICE:L.QUICK_SEARCH_ARIA_PRODUCT_PRICE_PROMOTION)} 1133resultTemplate=$(resultTemplate);resultTemplate.removeClass('search-result-pattern hidden');results.each(function(){var resultTemplateClone=resultTemplate.clone();$(this).find('tr').eq(-1).after(resultTemplateClone)})});pricesFormatter(results.find('tr').not('.search-result-pattern'));data.searchLoading.addClass('hidden');data.searchInformation.addClass('hidden');data.searchCount.removeClass('hidden');if(skyTheme){setTimeout(()=>{ariaLiveQuickSearch.html(`<span>${L['QUICK_SEARCH_ARIA_MATCHING_RESULTS_INFO']}: ${response.data.count}</span>`)},1000)} 1134data.searchCount.find('.count').text(response.data.count)}else{results.find('tr').not('.search-result-pattern').remove();data.searchLoading.addClass('hidden');data.searchInformation.removeClass('hidden');data.searchCount.addClass('hidden');data.searchInformation.find('.information').html(L.NO_PRODUCTS_IN_CATEGORY.replace(/"/g,'"'));if(skyTheme){ariaLiveQuickSearch.html(`<span>${L['NO_PRODUCTS_IN_CATEGORY'].replace(/"/g,'"')}</span>`)}}}else{results.find('tr').not('.search-result-pattern').remove();data.searchLoading.addClass('hidden');data.searchInformation.removeClass('hidden');data.searchCount.addClass('hidden');data.searchInformation.find('.information').text(L.ERROR_UNEXPECTED_ERROR)}})},300)}else{if(typeof SkyShop.core.quickSearchAjax==='number'){clearTimeout(SkyShop.core.quickSearchAjax)} 1135if(!results.hasClass('hidden')){results.addClass('hidden')} 1136results.find('tr').not('.search-result-pattern').remove();data.searchLoading.addClass('hidden');data.searchInformation.addClass('hidden');data.searchCount.addClass('hidden')}});if(!skyTheme){$(document).on('blur','.core_quickSearchAjax[data-ajax-blur="true"]',function(e){var self=$(this),results=$('.core_quickSearchAjaxHints');setTimeout(function(){if(!results.hasClass('hidden')){results.addClass('hidden')}},100)});$(document).on('focus','.core_quickSearchAjax[data-ajax-blur="true"]',function(e){var self=$(this),results=$('.core_quickSearchAjaxHints');var data={search:self.val()};if(results.hasClass('hidden')&&data.search.length>2){results.removeClass('hidden')}})} 1137$(document).on('focus','header .form-control, header .input-field ',function(e){const self=$(this);const data={search:self.val()};if(self[0]&&data.search.length){setTimeout(()=>{self[0].focus();self[0].setSelectionRange(self.val().length,self.val().length)},0)}}) 1138$(document).on('click','.core_getOrderShipmentsSpecial',async function(e){e.preventDefault();var self=$(this);var data={more:self.next(),key:self.data('key'),isSelected:!1};let finishOrderButtons=document.querySelectorAll('.core_finishOrder');if(finishOrderButtons)finishOrderButtons.forEach(button=>button.setAttribute('disabled',''));if(data.more.hasClass('more')){await loadShipmentMethods(data.key,data.more);data.more.children('td').html(orderShipments(data.key));const savedDeliverySelection=findDeliveryByHash(data.key);const acMethodsValue=savedDeliverySelection?savedDeliverySelection.pickupCity:null;data.isSelected=acMethodsValue!=null&&data.more.children('td').find('select').find('option[value="'+acMethodsValue+'"]').eq(0).length>0;if(data.isSelected){data.more.children('td').find('select.core_orderShipmentSelect').val(acMethodsValue)} 1139data.more.children('td').find('select').select2({theme:'bootstrap',width:'100%',selectionCssClass:'select-primary select-primary-blank',dropdownCssClass:"select-primary-dropdown select-primary-dropdown-blank",placeholder:skyTheme?L.SELECT_FROM_LIST:('-- '+L.SELECT+'--'),language:{noResults:function(){return L.FIRST_SELECT_CITY}},escapeMarkup:function(markup){return markup}}
1139).on('select2:open',function(){$('.select2-results > ul').scrollbar();$('.select2-container--open .select2-search__field').attr('placeholder',L.SEARCH)}).on('select2:closing',function(){$('.select2-results > ul').scrollbar('destroy')});if(data.isSelected){data.more.children('td').find('select.core_orderShipmentSelect').trigger('select2:select');data.more.children('td').find('select.core_orderShipmentSelectStreet').trigger('select2:select')}} 1140if(!skyTheme){finishOrderButtons.forEach(button=>button.removeAttribute('disabled'))}});$('.order select[name="user_country"]').on('change',function(e){SkyShop.order.userCountry=$(this).val()}).trigger('change',{initial:!0});if(skyTheme){$(document).on('keydown','.core_setOrderShipment',function(e){if(e.key==='Enter'||e.key===' '){$(this).trigger('click')}})} 1141$(document).on('click','.core_setOrderShipment',function(e,additionalData){e.preventDefault();var self=$(this),order=$('.order');var data={shipmentPrice:parseFloat(self.find('.cost').children('span').data('price')),shipmentSelected:self.find('input[name="shipment"]').val(),shipmentType:self.data('shipment-type'),shipmentTypeManipulateElements:order.find('.core_personalOrderShipment'),shipmentRequired:self.find('input[name="shipment"]').data('valid-parent'),updateCookie:typeof additionalData!=='undefined'&&typeof additionalData.updateCookie!=='undefined'?additionalData.updateCookie:!0};SkyShop.bug.pickDelivery(this);if(self.parents('.ss-error').eq(0).length>0){removeError(self.parents('.ss-error').eq(0))} 1142if(!skyTheme){recalculateErrors()} 1143if(data.shipmentType=='personal'&&data.shipmentRequired==''){data.shipmentTypeManipulateElements.addClass('hidden')}else{data.shipmentTypeManipulateElements.removeClass('hidden')} 1144SkyShop.order.shipmentPrice=data.shipmentPrice;if(data.shipmentSelected!==SkyShop.order.shipmentSelected){SkyShop.order.prevShipmentSelected=SkyShop.order.shipmentSelected} 1145SkyShop.order.shipmentSelected=data.shipmentSelected;if(data.updateCookie){saveDeliverySelection(data.shipmentSelected)} 1146orderRenderStarInput(data.shipmentRequired) 1147renderLimitedOrderOptions(SkyShop.order.shipments[SkyShop.order.shipmentSelected],data.shipmentRequired) 1148orderCalculate()});$(document).on('click keydown','.core_openOrderBankSelect',function(e){if(e.type==='keydown'&&e.key!=='Enter'&&e.key!==' '){return} 1149e.preventDefault();if(skyTheme){e.stopPropagation()} 1150var self=$(this);var banksList=null,banksCustomClass=[],banksListNew={},banksPayment=self.find('[data-payment-banks]'),banksPaymentId=banksPayment.data('payment-banks');switch(banksPaymentId){case 3:case 13:PlnPayTypeArray.forEach(function(channel){banksListNew[channel.type]={img:channel.img,name:channel.name,enable:channel.enable}});banksList=banksListNew;break;case 9:if(Array.isArray(tr_channels)){tr_channels.forEach(function(channel){banksListNew[channel[0]]={img:channel[3],name:channel[1]}});banksList=banksListNew}else{banksList={}} 1151break;case 10:banksList=JSON.parse(Payment[10]).available_channels;Object.keys(banksList).forEach(function(channel){banksListNew[channel]={img:banksList[channel].logo_file,name:banksList[channel].name}});banksList=banksListNew;break;case 11:banksList=JSON.parse(Payment[11]).available_channels;break;case 15:banksList=JSON.parse(Payment[15]).available_channels;Object.keys(banksList).forEach(function(channel){banksListNew[channel]={img:banksList[channel].logo_file,name:banksList[channel].name}});banksList=banksListNew;banksCustomClass=['banks-skypay'];break} 1152var data={banksList:banksList,banksClass:['common-banks-list','container-fluid'].concat(banksCustomClass).join(' '),bankPattern:self.next()[0].outerHTML,banksListHtml:'',bankLogos:{loaded:0,total:Object.keys(banksList).length}};var showBanksPopup=function(){Object.keys(data.banksList).forEach(function(key){var bank=data.banksList[key],bankElement=data.bankPattern,banksListPopup=$(document).find('.swal2-container').find('.row');bankElement=bankElement.replace(/{{:id:}}/g,key);bankElement=bankElement.replace(/{{:name:}}/g,bank.name);bankElement=bankElement.replace(/{{:logo:}}/g,bank.img);bankElement=bankElement.replace(/data-src/g,'src');bankElement=bankElement.replace(/bank-pattern/g,'');if(typeof bank.enable!=='boolean'||bank.enable){bankElement=bankElement.replace(/hidden/g,'')} 1153data.banksListHtml+=bankElement;banksListPopup.html(data.banksListHtml)})};
1153Swal.fire({width:1000,title:L.SELECT_BANK,html:'<div class="'+data.banksClass+'"><div class="row"><i class="fa fa-refresh fa-spin fa-3x fa-fw"></i></div></div>',showConfirmButton:!0,confirmButtonText:'',customClass:{popup:skyTheme?'banks-list-popup':'',confirmButton:'btn btn-hidden',...popups.customClass},...(skyTheme?popups.ariaConfiguration:{})});Object.keys(data.banksList).forEach(function(key){var bank=data.banksList[key],bankLogo=new Image();bankLogo.onload=function(){data.bankLogos.loaded++;if(data.bankLogos.loaded==data.bankLogos.total){showBanksPopup()}};bankLogo.onerror=function(e){data.bankLogos.loaded++;data.banksList[key].img='/view/new/img/ico/bank.png';if(data.bankLogos.loaded==data.bankLogos.total){showBanksPopup()}};bankLogo.src=bank.img})});$(document).on('select2:select','.core_orderShipmentSelect',function(e,additionalData){e.preventDefault();var self=$(this);var data={key:self.data('key'),type:self.data('type'),city:self.val(),streetsRendered:typeof additionalData!=='undefined'&&typeof additionalData.streetsRendered!=='undefined'?!0:!1};saveDeliverySelection(data.key,{pickupCity:data.city});orderShipmentsStreets(data.key,data.type,data.city,function(){if(data.streetsRendered){additionalData.streetsRendered()}})});$(document).on('select2:select','.core_orderShipmentSelectStreet',function(e){e.preventDefault();var self=$(this),more=self.parents('tr.more').eq(0);if(!self.parent().hasClass('hidden')){var data={key:self.data('streets'),value:self.val()};more.find('input[name*="shipment_method"]').val(data.value);saveDeliverySelection(data.key,{pickupId:data.value})}});SkyShop.bug={parse:{street:{},shipment:{},SelectStreet:{error:'null'},SelectShipment:{error:'null'},delivery:{error:'null'},counter:0},add:function(){var handler='#order-deliverys-methods .more.open .hidden';if($(handler+' .order_bug').length==0){$(handler).append('<input type="hidden" class="order_bug" name="order_bugs" value=\''+JSON.stringify(SkyShop.bug.parse)+'\'>')}else{$(handler+' .order_bug').val(JSON.stringify(SkyShop.bug.parse))}},pickDelivery:function(item){var h=$(item);var selects={} 1154var more=$('#order-deliverys-methods .more.open');if(h.hasClass('core_getOrderShipmentsSpecial')&&more.length>0){if(more.find('.core_orderShipmentSelect').length>0){selects.realShipment=more.find('.core_orderShipmentSelect').val()}else{selects.realShipment=!1} 1155if(more.find('.core_orderShipmentSelectStreet').length>0){selects.realStreet=more.find('.core_orderShipmentSelectStreet').val()}else{selects.realStreet=!1} 1156if(more.find('.core_orderShipmentSelectStreet + span .select2-selection__rendered').length>0){selects.fakeStreet=more.find('.core_orderShipmentSelectStreet + span .select2-selection__rendered').text()}else{selects.fakeStreet=!1} 1157if(more.find('.core_orderShipmentSelect + span .select2-selection__rendered').length>0){selects.fakeShipment=more.find('.core_orderShipmentSelect + span .select2-selection__rendered').text()}else{selects.fakeShipment=!1}}else{SkyShop.bug.parse.delivery.error='no special options'} 1158SkyShop.bug.parse.delivery={key:h.attr('data-key'),title:h.find('.method-title').text(),cost:h.find('.core_priceFormat').attr('data-price'),select:selects,counter:++SkyShop.bug.parse.counter} 1159SkyShop.bug.add()}} 1160$(document).on('select2:open',function(e){const $select=$(e.target);const $openSelect2=$('.select2-container--open');const moveFocus=($current,$select,direction)=>{let $target;if(direction==='prev'){$target=$current.prevAll('.select2-results__option').first()}else{$target=$current.nextAll('.select2-results__option').first()} 1161if($target.length){$target.focus()}else{$select.select2('close');setTimeout(()=>$select.focus(),10)}} 1162setTimeout(()=>{const $options=$openSelect2.find('.select2-results__option');$options.attr('tabindex','0');$openSelect2.find('.select2-results__option--highlighted').focus();$(document).off('keydown.select2_custom').on('keydown.select2_custom','.select2-results__option',function(ev){const $current=$(ev.target);let $next,$prev;if(ev.key==='Enter'||ev.key===' '){ev.preventDefault();$current.trigger('mouseup')} 1163else if(ev.key==='Escape'){ev.preventDefault();$select.select2('close');setTimeout(()=>$select.focus(),10)} 1164else if(ev.key==='Tab'){ev.preventDefault();moveFocus($current,$select,ev.shiftKey?'prev':'next')}})},50)});$(document).on('select2:select',function(e){var h=$(e.target);var tmp;var street='#order-deliverys-methods .core_orderShipmentSelectStreet';var fake=' + span .select2-selection__rendered';if(h.hasClass('core_orderShipmentSelectStreet')){if(e.params&&e.params.data){tmp=e.params.data;SkyShop.bug.parse.street={id:tmp.id,text:tmp.text,selected:tmp.selected,error:'',counter:++SkyShop.bug.parse.counter}}else{SkyShop.bug.parse.street.error='not changed'}}else if(h.hasClass('core_orderShipmentSelect')){if(e.params&&e.params.data){tmp=e.params.data;SkyShop.bug.parse.shipment={id:tmp.id,text:tmp.text,selected:tmp.selected,error:'',counter:++SkyShop.bug.parse.counter} 1165if($(street).length>0){SkyShop.bug.parse.SelectStreet={error:'',streets:$(street).attr('data-streets'),selected:$(street).val(),counter:SkyShop.bug.parse.counter}} 1166if($(street+fake).length>0){SkyShop.bug.parse.street={error:'shipment event',text:$(street+fake).text(),counter:SkyShop.bug.parse.counter}}}else{SkyShop.bug.parse.shipment.error='not changed'}}else{SkyShop.bug.parse.error='fake select wasnt picked'} 1167SkyShop.bug.add()});$(document).on('change','.core_orderShipmentSelect',function(e){var hStreet='#order-deliverys-methods .core_orderShipmentSelectStreet';SkyShop.bug.parse.SelectShipment={key:$(this).attr('data-key'),type:$(this).attr('data-type'),selected:$(this).val(),error:'',counter:SkyShop.bug.parse.counter+0.5} 1168if($(hStreet).length>0){SkyShop.bug.parse.SelectStreet={error:'',streets:$(hStreet).attr('data-streets'),selected:$(hStreet).val(),counter:SkyShop.bug.parse.counter+0.5}}else{SkyShop.bug.parse.SelectStreet={error:'real select not found'}} 1169SkyShop.bug.add()});$(document).on('change','.core_orderShipmentSelectStreet',function(e){
1169SkyShop.bug.parse.SelectStreet={streets:$(this).attr('data-streets'),selected:$(this).val(),error:'',counter:SkyShop.bug.parse.counter+0.6} 1170SkyShop.bug.add()}) 1171const toggleClassSwalScroll=(remove)=>{const $html=$('html');if(remove===!0){$html.removeClass('no-touch prevent-scroll prevent-scroll-desktop')}else{$html.addClass('no-touch prevent-scroll prevent-scroll-desktop')}};var onSelectedPoint=function(pointId){let self=$(this),order=$('.order'),orderDeliveries=order.find('#order-deliverys-methods'),orderDeliveriesOpen=orderDeliveries.find('.more.open'),orderDeliveriesCity=orderDeliveriesOpen.find('.core_orderShipmentSelect'),orderDeliveriesStreet=orderDeliveriesOpen.find('.core_orderShipmentSelectStreet');$.ajax({method:'GET',url:`/order/?json=1&action=getPickupPoint&function=dpd_pickup&pointId=${pointId}`,beforeSend:()=>{showHideStreetSelect('hide');if(skyTheme){disableOrderButton(!0)}}}).done(function(data){if(data!==undefined&&data!==null){orderDeliveriesCity.val(data.city).trigger('select2:select').trigger('change');SkyShop.order.shipmentStreetPickedFromMap=data.id;swal.close()}else{Swal.fire({width:1000,title:L.ERROR_UNEXPECTED_ERROR,html:'<div><div class="row" style="padding: 40px;">'+L.ERROR_CRITICAL_MESSAGE+'</div></div>',confirmButtonText:'OK',customClass:{confirmButton:'btn',...popups.customClass},...(skyTheme?popups.ariaConfiguration:{})})}})} 1172$(document).on('click','.core_orderOpenMapDpdPickup',function(e){e.preventDefault();let data=getShipmentsData($(document.getElementsByClassName('core_getOrderShipmentsSpecial active')).data('key'));let queryParams='';switch(data.sh_points_type){case 'AP':queryParams='&swip_box=1';break;case 'LU':queryParams='&points_with_services=1';break} 1173if(data.pay_delivery==='yes'){queryParams+='&direct_delivery_cod=1'} 1174Swal.fire({width:920,title:L.DPD_PICKUP_POINT_MAP,html:'<div id="dpd-map"></div>',showConfirmButton:!0,showCancelButton:!0,confirmButtonText:'',cancelButtonText:'',buttonsStyling:!1,customClass:{popup:'swal-dpd-pickup-popup',confirmButton:'close-shape',cancelButton:'hidden',...popups.customClass},allowOutsideClick:!0,allowEscapeKey:!0,didOpen:()=>{toggleClassSwalScroll();var dpdContainer=$('.swal-dpd-pickup-popup').find('#dpd-map'),dpdMapWidget=` 1175 <script id="dpd-widget" type="text/javascript"> 1176 function pointSelected(pointID){ 1177 onSelectedPoint(pointID); 1178 } 1179 </script> 1180 <script type="text/javascript" 1181 src="https://pudofinder.dpd.com.pl/source/dpd_widget.js?key=${SkyShop.dpdMapKey}${queryParams}"> 1182 </script> 1183 ` 1184dpdContainer.append(dpdMapWidget)}}).then(()=>{toggleClassSwalScroll(!0)})});$(document).on('click','.core_orderOpenMapGls',function(e){e.preventDefault();var onSelectedGlsPoint=function(selectedPoint){let self=$(this),order=$('.order'),orderDeliveries=order.find('#order-deliverys-methods'),orderDeliveriesOpen=orderDeliveries.find('.more.open'),orderDeliveriesCity=orderDeliveriesOpen.find('.core_orderShipmentSelect');orderDeliveriesCity.val(selectedPoint.selected.city).trigger('select2:select').trigger('change');SkyShop.order.shipmentStreetPickedFromMap=selectedPoint.selected.id 1185swal.close()} 1186Swal.fire({width:920,title:L.GLS_PICKUP_POINT_MAP,html:'<div id="gls_map" class="szybkapaczka_map" style="width:890px;height:600px"></div>',showConfirmButton:!0,showCancelButton:!0,confirmButtonText:'',cancelButtonText:'',buttonsStyling:!1,customClass:{popup:'swal-gls-pickup-popup',confirmButton:'close-shape',cancelButton:'hidden',...popups.customClass},allowOutsideClick:!0,allowEscapeKey:!0,didOpen:()=>{toggleClassSwalScroll();SzybkaPaczkaMap.init({lang:window.S.LANG.toUpperCase()!=="PL"?"EN":"PL",country_parcelshops:$('.user_country').val(),parcel_weight:'5',el:'gls_map'})}}).then(()=>{toggleClassSwalScroll(!0)});window.addEventListener('get_parcel_shop',function(e){onSelectedGlsPoint(e.target.ParcelShop)})}) 1187const onSelectedRuchPoint=(ruchPoint)=>{if(!ruchPoint){return} 1188let order=$('.order'),orderDeliveries=order.find('#order-deliverys-methods'),orderDeliveriesOpen=orderDeliveries.find('.more.open'),orderDeliveriesCity=orderDeliveriesOpen.find('.core_orderShipmentSelect');SkyShop.order.shipmentStreetPickedFromMap=ruchPoint.p;orderDeliveriesCity.val(ruchPoint.a_c).trigger('select2:select').trigger('change');swal.close()};$(document).on('click','.core_orderOpenMapRuch',function(e){const ruchIframe=()=>{const ruchWidget=new RuchWidget('ruch-map',{selectCb:onSelectedRuchPoint,readyCb:()=>{let showOnlyCodPoints=0;const selectedShipment=SkyShop?.order?.shipments?.[SkyShop.order.shipmentSelected]??{};if(selectedShipment?.pay_delivery==='yes'){showOnlyCodPoints=1} 1189ruchWidget.showWidget(showOnlyCodPoints,{'R':0,'P':0,'A':0,'U':0,},{})},sandbox:0,});ruchWidget.init()};Swal.fire({width:920,title:L.RUCH_PICKUP_POINT_MAP,html:'<div id="ruch-map-container"><div id="ruch-map"></div></div>',showConfirmButton:!0,showCancelButton:!0,confirmButtonText:'',cancelButtonText:'',buttonsStyling:!1,customClass:{popup:'swal-ruch-popup',confirmButton:'close-shape',cancelButton:'hidden',...popups.customClass},allowOutsideClick:!0,allowEscapeKey:!0,didOpen:()=>{toggleClassSwalScroll();ruchIframe()}}).then(()=>{toggleClassSwalScroll(!0)})}) 1190$(document).on('click','.core_orderOpenMapPaczkomaty',function(e){e.preventDefault();if(SkyShop.inpostGeowidgetToken){const payDelivery=$(this).data('pay-delivery')==='yes';const mapType=payDelivery?'parcelCollectPayment':'parcelCollect';const deliveryUniqueId=$(this).data('unique-id')||'';Swal.fire({width:skyTheme?1024:920,title:L.FIND_SELECT_PARCEL_LOCER,html:`<inpost-geowidget id="geowidget-${deliveryUniqueId}" token="${SkyShop.inpostGeowidgetToken}" language="pl" config="${mapType}"></inpost-geowidget>`,showConfirmButton:!0,showCancelButton:!0,confirmButtonText:'',cancelButtonText:'',buttonsStyling:!1,customClass:{popup:skyTheme?'swal-shop-geowidget-popup':'swal-shop-paczkomaty-popup',confirmButton:'close-shape',cancelButton:'hidden',...popups.customClass},allowOutsideClick:!0,allowEscapeKey:!0,didOpen:()=>{document.getElementById(`geowidget-${deliveryUniqueId}`).addEventListener('inpost.geowidget.init',(event)=>{const api=event.detail.api;
1190api.changePosition({longitude:21.022596,latitude:52.236552},13);api.addPointSelectedCallback((point)=>{const currentOrder=$('.order');const currentDeliveriesOpen=currentOrder.find('#order-deliverys-methods .more.open');const currentCity=currentDeliveriesOpen.find('.core_orderShipmentSelect');const currentStreet=currentDeliveriesOpen.find('.core_orderShipmentSelectStreet');const cityValue=point.address_details.city;const pointValue=point.name;const optionExists=currentCity.find('option').filter(function(){return this.value===cityValue}).length>0;if(optionExists){currentCity.val(cityValue).trigger('select2:select').trigger('change');if(currentStreet.val()!==pointValue){currentStreet.val(pointValue).trigger('select2:select').trigger('change');SkyShop.order.shipmentStreetPickedFromMap=pointValue}} 1191swal.close()})});toggleClassSwalScroll()}}).then(()=>{toggleClassSwalScroll(!0)});return} 1192var self=$(this),order=$('.order');window.easyPackAsyncInit=function(){easyPack.init({points:{types:['parcel_locker']},map:{clusterer:{zoomOnClick:!0,gridSize:140,maxZoom:16,minimumClusterSize:10},useGeolocation:!0,initialZoom:13,defaultLocation:[52.236552,21.022596],initialTypes:['parcel_locker']}});var map=easyPack.mapWidget('easypack-map',function(point){swal.close();var orderDeliveries=order.find('#order-deliverys-methods'),orderDeliveriesOpen=orderDeliveries.find('.more.open'),orderDeliveriesCity=orderDeliveriesOpen.find('.core_orderShipmentSelect'),orderDeliveriesStreet=orderDeliveriesOpen.find('.core_orderShipmentSelectStreet');orderDeliveriesCity.val(point.address_details.city).trigger('select2:select').trigger('change');if(orderDeliveriesStreet.val()!==point.name){orderDeliveriesStreet.val(point.name).trigger('select2:select').trigger('change');SkyShop.order.shipmentStreetPickedFromMap=point.name}});function geolocationSuccess(position){const zoom=14;const latitude=position.coords.latitude;const longitude=position.coords.longitude;map.mapController.setCenterFromArray([latitude,longitude]);map.mapController.setZoom(zoom)} 1193function geolocationError(){} 1194function setPositionByGeolocation(){if(navigator.geolocation){setTimeout(function(){navigator.geolocation.getCurrentPosition(geolocationSuccess,geolocationError)},1000)}} 1195setPositionByGeolocation()};Swal.fire({width:920,title:L.FIND_SELECT_PARCEL_LOCER,html:'<div id="easypack-map"></div><i class="close-shape"></i>',showConfirmButton:!0,showCancelButton:!0,confirmButtonText:'',cancelButtonText:'',buttonsStyling:!1,customClass:{popup:'swal-shop-paczkomaty-popup',confirmButton:'close-shape',cancelButton:'hidden',...popups.customClass},allowOutsideClick:!0,allowEscapeKey:!0,didOpen:()=>{toggleClassSwalScroll()}}).then(()=>{toggleClassSwalScroll(!0)});if(window.easyPackUserConfig){easyPack.asyncInit()}});$(document).on('click','.core_orderOpenMapDhlPop',function(e){e.preventDefault();var self=$(this),order=$('.order'),orderDeliveries=order.find('#order-deliverys-methods'),orderDeliveriesOpen=orderDeliveries.find('.more.open'),orderDeliveriesCity=orderDeliveriesOpen.find('.core_orderShipmentSelect');function listenMessage(msg){if(jQuery.type(msg.data)=='object'){var point=msg.data}else{var point=JSON.parse(msg.data)} 1196orderDeliveriesCity.val(point.city.toUpperCase()).trigger('select2:select').trigger('change');SkyShop.order.shipmentStreetPickedFromMap=point.sap;swal.close()} 1197if(window.addEventListener){window.addEventListener('message',listenMessage,!1)}else{window.attachEvent('onmessage',listenMessage)} 1198var data=getShipmentsData($(document.getElementsByClassName('core_getOrderShipmentsSpecial active')).data('key'));var map=getDhlMapByPointType(data.sh_points_type||null);Swal.fire({width:920,title:L.FIND_SELECT_POINT,html:'<div id="dhl-map"></div>'+'<i class="close-shape"></i>'+'<iframe id="dhl-pop-iframe" src="'+map+'" style="width: 100%; border: 0; min-height: 600px;"></iframe>',showConfirmButton:!1,showCloseButton:!1,customClass:{popup:'swal-shop-dhl-pop-popup',...popups.customClass},allowOutsideClick:!0,allowEscapeKey:!0,didOpen:()=>{toggleClassSwalScroll()}}).then(()=>{toggleClassSwalScroll(!0)})});$(document).on('click','.core_orderOpenMapPocztex',function(e){e.preventDefault();const pointType=$(this).data('type');const payDelivery=$(this).data('pay-delivery')==='yes';let order=$('.order');let orderDeliveries=order.find('#order-deliverys-methods');let orderDeliveriesOpen=orderDeliveries.find('.more.open');let orderDeliveriesCity=orderDeliveriesOpen.find('.core_orderShipmentSelect');let orderDeliveriesStreet=orderDeliveriesOpen.find('.core_orderShipmentSelectStreet');let mapType;switch(pointType){case 'LU':mapType='PUNKTY';break;case 'A':mapType='AUTOMATY';break;default:mapType=null} 1199PPWidgetApp.toggleMap({...(mapType&&{type:mapType}),...(orderDeliveriesCity&&orderDeliveriesCity.val()&&{address:orderDeliveriesCity.val()}),payOnPickup:payDelivery,callback:function(point){if(point){orderDeliveriesCity.val(point.city).trigger('select2:select').trigger('change');if(orderDeliveriesStreet.val()!==point.pni){orderDeliveriesStreet.val(point.pni).trigger('select2:select').trigger('change');SkyShop.order.shipmentStreetPickedFromMap=point.pni}}}})});$(document).on('click','.core_orderBankSelect',function(e){e.preventDefault();var self=$(this);var data={closeModal:self.parents('.swal2-modal').find('.swal2-confirm'),paymentId:self.data('payment'),bankId:self.data('id'),name:self.data('name'),logo:self.data('logo')};if(data.paymentId!==SkyShop.order.paymentId){SkyShop.order.prevPaymentId=SkyShop.order.paymentId} 1200SkyShop.order.paymentId=data.paymentId+'_'+data.bankId+'_'+data.name;const acData=getAcData();acData.payment=String(SkyShop.order.paymentId);setAcData(acData);var paymentContainer=$('.order').find('[data-payment-selected="'+data.paymentId+'"]');paymentContainer.parent().addClass('selected');paymentContainer.parent().find('input[name="payment"]').val(SkyShop.order.paymentId).prop('checked',!0);paymentContainer.find('.fa').addClass('hidden');paymentContainer.find('img').removeAttr('data-src').attr('src',data.logo);paymentContainer.find('.bank-name').text(data.name);if(skyTheme){if(paymentContainer.closest('.ss-error-container').eq(0).length>0){removeError(paymentContainer.parents('.ss-error-container').eq(0))}}else{if(paymentContainer.parents('.ss-error').eq(0).length>0){removeError(paymentContainer.parents('.ss-error').eq(0))}} 1201data.closeModal.trigger('click')});$(document).on('click','.core_copyDataToInvoice',function(e){e.preventDefault();var self=$(this),order=$('.order');var data={values:{country:order.find('[name="user_country"]').val(),companyName:(order.find('[name="user_company"]').val()==='')?order.find('[name="user_firstname"]').val()+' '+order.find('[name="user_lastname"]').val():order.find('[name="user_company"]').val(),city:order.find('[name="user_city"]').val(),postCode:order.find('[name="user_code"]').val(),street:order.find('[name="user_street"]').val(),tin:order.find('[name="user_receipt_vat"]').val()},updateForm:{country:order.find('[name="user_bill_country"]'),companyName:order.find('[name="user_bill_company"]'),city:order.find('[name="user_bill_city"]'),postCode:order.find('[name="user_bill_code"]'),street:order.find('[name="user_bill_street"]'),tin:order.find('[name="user_bill_vat"]:not(:disabled)'),}};Object.keys(data.updateForm).forEach(function(key){var element=data.updateForm[key];if(typeof data.values[key]!=='undefined'&&data.values[key]!=''){element.val(data.values[key])}});order.find('.order-country.user_bill_country').val(data.values.country).trigger('change',{action:'stopPropagation'});checkWdtShowCheckbox()});$(document).on('change','.core_orderFormChange',function(e){if(skyTheme){const $input=$(e.target);const{container,selfTest}=getErrorContainer($input);const inputContainer=container;if(!inputContainer?.length){return !1} 1202if(inputContainer.hasClass('ss-error-container')){if(formValidator(inputContainer,selfTest)){removeError(inputContainer)}} 1203if(inputContainer.next().hasClass('ss-error-container')){if(formValidator(inputContainer,selfTest)){removeError(inputContainer)}}}else{var self=$(this),input=$(e.target),inputContainer=!1,selfTest=!1;if(input.hasClass('ss-error')){inputContainer=input;selfTest=!0} 1204if(input.parents('.ss-error').eq(0).length>0){inputContainer=input.parents('.ss-error').eq(0)} 1205if(input.nextAll('.ss-error').eq(0).length>0){inputContainer=input.nextAll('.ss-error').eq(0)} 1206if(!inputContainer){return !1} 1207if(inputContainer.hasClass('ss-error')){if(formValidator(inputContainer,selfTest)){removeError(inputContainer)}}}});$(document).on('change','.core_cardParamsChange',function(e){var self=$(this),input=$(e.target),inputContainer,card=self.parents('.product-card');
1207if(!input.hasClass('core_cardParamsChange')){if(input.parent().hasClass('checkbox-field')){inputContainer=input.parents('.choose-field').eq(0)} 1208if(input.hasClass('select-field-select2')){inputContainer=input.nextAll('.select-field-select2-container').eq(0)} 1209if(input.hasClass('text-parameter-box')){inputContainer=input} 1210if(!input.hasClass('text-parameter-box')&&inputContainer.hasClass('ss-error')){removeError(inputContainer)} 1211if(!input.hasClass('text-parameter-box')&&inputContainer.parent().find('.ss-error-container').length){inputContainer.parent().find('.ss-error-container').each(function(){$(this).css({display:'none'})})}} 1212var data={additionals:self.find('input:checked[data-additional-price],option:selected[data-additional-price], span[data-additionals-valid="true"][data-additional-price]'),additionalsSum:0,additionalsSumNoDiscount:0,cardPriceSpecial:card.find('.core_cardPriceSpecial'),cardPriceDiscountPercent:card.find('.core_cardPriceDiscountPercent'),cardPriceDiscount:card.find('.core_cardPriceDiscount'),cardPriceBeforeDiscount:card.find('.core_cardPriceBeforeDiscount'),noPrice:$('body').attr('data-hurt-price-text'),singleParamsArray:['ean','barcode','symbol'],defaultSingleParams:{ean:$(document).find('[data-parameter-value="ean"]').data('parameterDefaultValue'),barcode:$(document).find('[data-parameter-value="barcode"]').data('parameterDefaultValue'),symbol:$(document).find('[data-parameter-value="symbol"]').data('parameterDefaultValue')},manageParameterRowVisibility:()=>
1212{if(!skyTheme){let productParametersRow=document.querySelector('.product-parameters-row');let productParameters=document.querySelector('.product-parameters-row .product-parameters') 1213var paramElementsAmount=$(productParameters).find('tr').length,paramHiddenElementsAmount=$(productParameters).find('tr.hidden').length;paramElementsAmount===paramHiddenElementsAmount?productParametersRow.classList.add('hidden'):productParametersRow.classList.remove('hidden')}},getFormData:()=>{let arr=[] 1214let selectInputs=self.find($('select')) 1215selectInputs.each((index)=>{let val=selectInputs[index].value;const name=selectInputs[index].getAttribute('data-key');if(val.length>=1)arr.push({name,value:val})}) 1216if(arr.length>=1){return arr.concat(self.serializeArray())}else{return self.serializeArray()}},prodId:self.closest('.product-informations').attr('data-id'),prodPriceFactorSelector:card.find('[data-unit-price-factor]'),prodPriceFactorCoeff:card.find('[data-unit-price-factor]').data('unit-price-factor')};data.additionals.each(function(){var param=$(this),additionalPrice=param.data('additional-price'),additionalPriceNoDiscount=param.data('additional-price-no-discount');data.additionalsSum=Big(data.additionalsSum).plus(additionalPrice);if(data.cardPriceBeforeDiscount.length>0){data.additionalsSumNoDiscount=Big(data.additionalsSumNoDiscount).plus(additionalPriceNoDiscount)}});data.additionalsSum=Big(data.cardPriceSpecial.data('price-default')!=data.noPrice?data.cardPriceSpecial.data('price-default'):0).plus(data.additionalsSum);if(data.cardPriceBeforeDiscount.length>0){data.additionalsSumNoDiscount=Big(data.cardPriceBeforeDiscount.data('price-default')!=data.noPrice?data.cardPriceBeforeDiscount.data('price-default'):0).plus(data.additionalsSumNoDiscount)} 1217data.cardPriceSpecial.data('price',data.additionalsSum);if(!!data.prodPriceFactorCoeff&&!!data.prodPriceFactorSelector.length){data.prodPriceFactorSelector.data('price',(data.additionalsSum/data.prodPriceFactorCoeff))} 1218data.cardPriceBeforeDiscount.data('price',data.additionalsSumNoDiscount);pricesFormatter(card);function manageParameterVisibility(element,params){params?element.classList.remove('hidden'):element.classList.add('hidden')} 1219function setSingleParams(array,params){let productParams={};params?productParams=params:productParams=data.defaultSingleParams;array.map(el=>{const currentElement=document.querySelector('[data-parameter-value="'+el+'"]') 1220const displayElement=currentElement.querySelector('[data-display-selector]') 1221if(currentElement.dataset.parameterDisplay>0){let defaultValue=currentElement.dataset.parameterDefaultValue 1222let selectedOptionsArray=data.getFormData();selectedOptionsArray.length>=1?displayElement.innerHTML=productParams[el]:displayElement.innerHTML=defaultValue 1223manageParameterVisibility(currentElement,productParams[el])}})} 1224function setAvailabilityParams(params){const selectors={text:document.querySelector('[data-parameter-value="availability_amount_text"]'),img:document.querySelector('[data-parameter-value="availability_img"]'),number:document.querySelector('[data-parameter-value="availability_amount_number"]'),unit:document.querySelector('[data-parameter-value="availability_unit"]'),} 1225const defaultValues={text:selectors.text?selectors.text.dataset.parameterDefaultValue:'',img:selectors.img?selectors.img.dataset.parameterDefaultValue:'',number:selectors.number?selectors.number.dataset.parameterDefaultValue:''} 1226const selectedOptionsArray=data.getFormData();const{text,number,unit,img}=selectors 1227if(selectedOptionsArray.length>=1){if(typeof params==='object'){if(text)text.innerHTML=params.name 1228if(params.img){if(img)img.classList.remove('hidden') 1229if(img)img.setAttribute('src',params.img)}else{if(img)img.removeAttribute('src') 1230if(img)img.classList.add('hidden')}}else{if(number)number.innerHTML=params}}else{if(defaultValues.text){if(text)text.classList.remove('hidden') 1231if(number)number.classList.add('hidden') 1232if(unit)unit.classList.add('hidden')}else{if(text)text.classList.add('hidden') 1233if(img)img.classList.add('hidden') 1234if(number)number.classList.remove('hidden') 1235if(unit)unit.classList.remove('hidden')} 1236if(text)text.innerHTML=defaultValues.text 1237if(img)img.innerHTML=defaultValues.img 1238if(number)number.innerHTML=defaultValues.number}}
1239const setMaxAmount=amount=>{const input=document.querySelector('.core_counterValue');if(input!==null){const inputValue=parseFloat(input.value);if($(input).data('productamountstatus')==='hide'||$(input).data('productamountstatus')==='deny'){input.setAttribute('data-max',amount);$(input).data('max',amount);if(amount<inputValue){$(input).val(amount)} 1240else if(amount>inputValue){$(document.querySelector('.counter-increase.core_counterValueChange')).attr('disabled',!1);$(input).val(inputValue===0?input.getAttribute('data-tick'):inputValue)}else{$(input).val(inputValue)}}else{const maxValue=524288;input.setAttribute('data-max',maxValue);$(input).data('max',maxValue);$(input).val(inputValue)}}};function updateStocks(res){let newParams=res.data;setMaxAmount(newParams.availabilityNumber) 1241setSingleParams(data.singleParamsArray,newParams);setAvailabilityParams(newParams.availability);data.manageParameterRowVisibility()} 1242function getParticularStocks(id,params){return $.ajax({method:'POST',url:'?json=1&action=getStockValuesByParams',data:{data:JSON.stringify({id:id,options:params})},dataType:'json',success:function(data){updateStocks(data)}})} 1243const isTextParameter=element=>element.hasClass('text-parameter-box') 1244if(window.SkyShop.card.allowStockRequest&&!isTextParameter(input)){let selectedOptionsArray=data.getFormData();let sortedOptions=[];if(selectedOptionsArray.length>0){sortedOptions=selectedOptionsArray.reduce((acc,item)=>{const productId=item.name.split('-').pop();const prevValue=acc?acc[productId]:acc;let nextValue;if(prevValue){nextValue=Array.isArray(prevValue)?[...prevValue,item.value]:[prevValue,item.value]}else{nextValue=[item.value]} 1245return{...acc,[productId]:nextValue}},undefined)} 1246getParticularStocks(data.prodId,sortedOptions)}else if(!window.SkyShop.card.allowStockRequest){window.SkyShop.card.allowStockRequest=!0;setSingleParams(data.singleParamsArray);data.manageParameterRowVisibility()}});const disableParams=(params,self)=>{Object.keys(params).forEach(id=>{Object.values(params[id]).forEach(value=>{const field=self.find('[data-key="'+value.group_id+'"]');if(value.count==0){if(field.hasClass('select-field-select2')){field.find('option[value="'+value.option_id+'"]').attr('disabled','disabled').attr('aria-disabled','true')}else{field.find('input[value="'+value.option_id+'"]').attr('aria-disabled',!0).parent().addClass('disable')}}else{if(field.hasClass('select-field-select2')&&field.find('option[selected="selected"]').length>0){field.find('option:not([selected="selected"])').each((index,option)=>{$(option).attr('disabled','disabled')})}}})})} 1247$(document).on('stockManage','.core_cardStocksManage',function(e,parameters){var product=$(this);product.each(function(){var self=$(this);if(typeof self.data('stocks')==='undefined'){return} 1248var data={isCart:self.parents('section.cart').length>0?!0:!1,maxAmount:0,stocks:null,hash:null,id:null};if(data.isCart){data.hash=product.parents('[data-hash]').eq(0).data('hash');data.id=product.parents('[data-id]').eq(0).data('id')}else{data.hash=product.parents('[data-id]').eq(0).data('id');data.id=product.parents('[data-id]').eq(0).data('id')} 1249if(typeof SkyShop.card.stocks.storable[data.hash]==='undefined'){SkyShop.card.stocks.storable[data.hash]=JSON.parse(JSON.stringify(SkyShop.card.stocks.pattern))} 1250data.stocks=SkyShop.card.stocks.storable[data.hash].stocks;var countParams={},emptyStocks=[];if(data.stocks==null){data.stocks=SkyShop.card.stocks.storable[data.hash].stocks=(data.isCart&&'stocks' in self.data('stocks'))?{[data.id]:self.data('stocks')}:self.data('stocks');
1250Object.entries(data.stocks).forEach(([productId,stocks])=>{countParams[productId]={} 1251stocks.stocks.forEach(stock=>{stock.items.forEach(item=>{if(typeof countParams[productId][item.option_id]==='undefined'){countParams[productId][item.option_id]={group_id:`${item.group_id}-${productId}`,option_id:item.option_id,count:0}} 1252if(stock.amount>0){countParams[productId][item.option_id].count++}})})}) 1253disableParams(countParams,self)} 1254var checkProductPermissionToBuy=function(element){var productAllowToBuy 1255if($(element).parents('[data-productallowtobuy="true"]').length){productAllowToBuy=!0}else if($(document).find(`[data-hash="${$(element).parents('[data-parent-hash]').data('parent-hash')}"`).data('productallowtobuy')==!0){productAllowToBuy=!0}else{productAllowToBuy=!1} 1256return productAllowToBuy} 1257var setParameter=function(element){data.maxAmount=0;if(!data.isCart){if(document.querySelector('.core_counterValue')){data.maxAmount=Number(document.querySelector('.core_counterValue').value)}} 1258var input=element.hasClass('select-field-select2')?element.find('option:checked'):element,stocksSelected=[],param={key:input[0].getAttribute('name').split('_').pop(),id:parseFloat(input[0].getAttribute('name').split('_').pop().split('-').shift()),option:parseFloat(input[0].value),productId:parseFloat(input[0].getAttribute('name').split('_').pop().split('-').pop())};if(data.stocks[param.productId].groups.indexOf(param.id)>-1){if(SkyShop.card.stocks.storable[data.hash].stocksSelectedLastGroup!=param.id){SkyShop.card.stocks.storable[data.hash].stocksSelectedLast=JSON.parse(JSON.stringify(SkyShop.card.stocks.storable[data.hash].stocksSelected))} 1259SkyShop.card.stocks.storable[data.hash].stocksSelectedLastGroup=param.id;SkyShop.card.stocks.storable[data.hash].stocksSelected[param.key]=param.option;data.stocks[param.productId].stocks.forEach(function(stock){var count=0,countLast=0,search=Object.keys(SkyShop.card.stocks.storable[data.hash].stocksSelected).length,searchLast=Object.keys(SkyShop.card.stocks.storable[data.hash].stocksSelectedLast).length;const countProductParams=Object.keys(SkyShop.card.stocks.storable[data.hash].stocksSelected).reduce((acc,key)=>{const id=key.split('-').pop() 1260return id==param.productId?[...acc,id]:acc},[]).length 1261if(stock.amount>0||checkProductPermissionToBuy(element)){stock.items.forEach(function(item){if(item.option_id==SkyShop.card.stocks.storable[data.hash].stocksSelected[`${item.group_id}-${param.productId}`]){count++}})} 1262if(count==countProductParams||countLast==searchLast&&countLast>0){stocksSelected.push(stock)}});data.stocks[param.productId].stocks[0].items.forEach(function(item){var field=self.find('[data-key="'+item.group_id+'-'+param.productId+'"]');if(field.hasClass('select-field-select2')){field.find('option').attr('disabled','disabled')}else{field.find('input[type="radio"]').attr('aria-disabled',!0).parent().addClass('disable')}});stocksSelected.forEach(function(item){if(item.amount>data.maxAmount&&data.isCart){data.maxAmount=item.amount} 1263item.items.forEach(function(option){var field=self.find('[data-key="'+option.group_id+'-'+param.productId+'"]');if(field.hasClass('select-field-select2')){field.find('option[value="'+option.option_id+'"]').removeAttr('disabled')}else{field.find('input[value="'+option.option_id+'"]').removeAttr('aria-disabled').parent().removeClass('disable')}})});const chooseFields=data.isCard?self.find(`.choose-field`):self.find(`.choose-field[data-key='${param.key}']`);chooseFields.each(function(){var choose=$(this),chooseDisabled=choose.find('.checkbox-field.disable'),chooseSelected=choose.find('input:checked'),chooseClear=choose.find('.selection-clear'),chooseSize='small';if(chooseSelected.length>0&&chooseClear.length==0&&SkyShop.card.stocks.storable[data.hash].stocks[param.productId].groups.indexOf(Number(choose.data('key').split('-').shift()))>-1){if(chooseDisabled.eq(0).hasClass('medium')){chooseSize='medium'} 1264if(chooseDisabled.eq(0).hasClass('big')){chooseSize='big'} 1265let selectionClear;if(skyTheme){selectionClear=`<li class="no-marker"><button aria-label="${L['CLEAR_PARAMETER']}" type="button" class="selection-clear d-flex border-0 bg-transparent p-0">
1266 <span class="icon-close_circle_24 icon-18 cursor-pointer"> 1267 <span class="path1"></span> 1268 <span class="path2"></span> 1269 </span> 1270 </button></li>`}else{selectionClear=`<div class="selection-clear ${chooseSize}"> 1271 × 1272 </div>`} 1273choose.append([selectionClear].join(''))}});self.find('.select-field-select2').each(function(){var select=$(this),selectOptions=select.data('select2')?.options.options,selectError=!1;if(select.nextAll('.ss-error').eq(0).length>0){selectError=!0;removeError(select.nextAll('.ss-error').eq(0))} 1274if(selectError){addError(select.next(),select.data('required-error'))} 1275if(selectOptions){if(skyTheme){select.select2('close')}else{select.select2('destroy').select2(selectOptions).next().addClass('select-field-select2-container')}}})} 1276else if(skyTheme){const $paramGroupContainer=self.find(`[data-key="${param.key}"]`);const $radioInputs=$paramGroupContainer.find(`input[name="option_${param.key}"]`);const $checkedRadioInput=$radioInputs.filter(`[value="${param.option}"]`);const hasClearButton=$paramGroupContainer.find('.selection-clear').length>0;if($checkedRadioInput.length&&!hasClearButton){$paramGroupContainer.append(`<li class="no-marker"> 1277 <button aria-label="${L['CLEAR_PARAMETER']}" type="button" class="selection-clear d-flex border-0 bg-transparent p-0"> 1278 <span class="icon-close_circle_24 icon-18 cursor-pointer"> 1279 <span class="path1"></span> 1280 <span class="path2"></span> 1281 </span> 1282 </button></li>`)} 1283$paramGroupContainer.select2('close')}};var clearParameter=function(element,type,event=null){var input=element.hasClass('choose-field')?element.find('input:checked'):element,stocksSelected=[],productAllowToBuy=!1;if(input.length!==1)return 1284var param={key:input[0].getAttribute('name').split('_').pop(),id:parseFloat(input[0].getAttribute('name').split('_').pop().split('-').shift()),option:parseFloat(input[0].value),productId:parseFloat(input[0].getAttribute('name').split('_').pop().split('-').pop())};if(data.stocks[param.productId].groups.indexOf(param.id)>-1){var inputAmount=data.isCart?self.parents('[data-hash]').eq(0).find('.product-count').find('.counter-field').find('input'):self.parents('.product-informations').eq(0).find('.product-add-to-cart').find('input');data.maxAmount=parseFloat(inputAmount.data('max'));if(type=='choose-field'){element.find('input:checked').prop('checked',!1);if(skyTheme){const $li=element.find('.selection-clear').parent('li');if($li.parent().hasClass('keep-together')){$li.parent().children('li').unwrap()} 1285$li.remove()}else{element.find('.selection-clear').remove()}} 1286SkyShop.card.stocks.storable[data.hash].stocksSelectedLastGroup=null;delete SkyShop.card.stocks.storable[data.hash].stocksSelected[param.key];const countProductParams=Object.keys(SkyShop.card.stocks.storable[data.hash].stocksSelected).reduce((acc,key)=>{const id=key.split('-').pop() 1287return id==param.productId?[...acc,id]:acc},[]).length 1288if(countProductParams==0||!checkProductPermissionToBuy(element)){data.stocks[param.productId].stocks[0].items.forEach(function(item){var field=$(document).find('[data-key="'+item.group_id+'-'+param.productId+'"]');if(field.hasClass('select-field-select2')){field.find('option').removeAttr('disabled')}else{field.find('input[type="radio"]').removeAttr('aria-disabled').parent().removeClass('disable')}});disableParams(countParams,self)}else{data.stocks[param.productId].stocks.forEach(function(stock){var count=0,countLast=0,search=Object.keys(SkyShop.card.stocks.storable[data.hash].stocksSelected).length,searchLast=Object.keys(SkyShop.card.stocks.storable[data.hash].stocksSelectedLast).length;const countProductParams=Object.keys(SkyShop.card.stocks.storable[data.hash].stocksSelected).reduce((acc,key)=>{const id=key.split('-').pop() 1289if(id==param.productId)return[...acc,id] 1290else return acc},[]).length 1291if(stock.amount>0){stock.items.forEach(function(item){if(item.option_id==SkyShop.card.stocks.storable[data.hash].stocksSelected[`${item.group_id}-${param.productId}`]){count++}})}
1292if(count==countProductParams||countLast==searchLast&&countLast>0){stocksSelected.push(stock)}});data.stocks[param.productId].stocks[0].items.forEach(function(item){var field=self.find('[data-key="'+item.group_id+'-'+param.productId+'"]');if(field.hasClass('select-field-select2')){field.find('option').attr('disabled','disabled')}else{field.find('input[type="radio"]').parent().addClass('disable')}});stocksSelected.forEach(function(item){if(item.amount>data.maxAmount){data.maxAmount=item.amount} 1293item.items.forEach(function(option){var field=self.find('[data-key="'+option.group_id+'-'+param.productId+'"]');if(field.hasClass('select-field-select2')){field.find('option[value="'+option.option_id+'"]').removeAttr('disabled')}else{field.find('input[value="'+option.option_id+'"]').parent().removeClass('disable')}})})} 1294setTimeout(function(){self.find('.select-field-select2').each(function(){var select=$(this),selectOptions=select.data('select2')?.options.options;if(selectOptions){select.select2('destroy').select2(selectOptions).next().addClass('select-field-select2-container')}})},0);inputAmount.data('max',data.maxAmount);if(parseFloat(inputAmount.val())>data.maxAmount){inputAmount.val(data.maxAmount)}}else if(skyTheme&&event){event.preventDefault();const $checkboxField=element.find('.checkbox-field');const $checkboxInput=$checkboxField.find('input');$checkboxField.removeClass('disable');$checkboxInput.removeAttr('aria-disabled').prop('checked',!1);if(skyTheme){const $li=element.find('.selection-clear').parent('li');if($li.parent().hasClass('keep-together')){$li.parent().children('li').unwrap()} 1295$li.remove()}else{element.find('.selection-clear').remove()}}};let suppressClick=!1;self.on('keydown','input[type="radio"], select.select-field-select2',function(event){const key=event.key;if(key===' '&&$(this).attr('aria-disabled')){event.preventDefault()} 1296if(key==='ArrowRight'||key==='ArrowLeft'||key==='ArrowUp'||key==='ArrowDown'){suppressClick=!0;setTimeout(()=>suppressClick=!1,0)}});self.on('click','input[type="radio"], select.select-field-select2',function(event){if(suppressClick){event.stopImmediatePropagation();event.preventDefault();return !1} 1297if($(this).attr('aria-disabled')){return} 1298setParameter($(this))});self.on('select2:unselecting','.select-field-select2',function(){$(this).data('unselecting',!0);clearParameter($(this).find($('option:enabled')),'select-field')}).on('select2:opening','.select-field-select2',function(e){if($(this).data('unselecting')){$(this).removeData('unselecting');e.preventDefault()}});self.on('click','.selection-clear',function(e){clearParameter($(this).parents('.choose-field'),'choose-field',e)});if(typeof parameters!=='undefined'){if(typeof parameters.build!=='undefined'){parameters.build(product)}}})});$(document).ready(function(){var stockManage=$(document).find('.core_cardStocksManage');if(stockManage.parents('section.product-card').eq(0).length>0){stockManage.trigger('stockManage')}});$(document).on('change focus blur keyup valueincrease valuedecrease','.core_counterValue',function(e){var self=$(this),counter=self.parents('.counter-field').eq(0);clearTimeout(SkyShop.card.counterError);removeError(counter);let increaseButton=counter[0].querySelector('.counter-increase');let decreaseButton=counter[0].querySelector('.counter-decrease');var data={value:self.val(),remember:self.data('remember'),min:self.data('real-min')?parseFloat(self.data('real-min')):parseFloat(self.data('min')),max:$(self).data('productamountstatus')!=='deny'&&$(self).data('productamountstatus')!=='hide'?self.data('max',524288):parseFloat(self.data('max')),tick:parseFloat(self.data('tick')),boxamount:parseFloat(self.data('boxamount')),boxrestrict:parseFloat(self.data('boxrestrict')),realMin:parseFloat(self.data('real-min')),rules:{onlyNaturalPositive:/^\d*[1-9]\d*$/,withDotOrComma:/^\d+(?:\.\d{0,4})?$/},isOnlyWholePackages:self.data('boxrestrict-whole'),isAllowDotOrComma:function(){if(self.data('boxrestrict-whole')==!1){if(self.data('min').toString().replace(',','.').split('.')[1]!='undefined'||self.data('data-boxrestrict').toString().replace(',','.').split('.')[1]!='undefined'){return !0} 1299else{return !1}}else{return !1}}(),setError:function(message){addError(counter,message);counter.prev().children('.ss-error-help-open').trigger('mouseenter');SkyShop.card.counterError=setTimeout(function(){removeError(counter)},1500)},getNearDiv:function(value,div){var q=(Big(value).div(div)|0),output1=Big(div).times(q),output2=(Big(value).times(div))>0?(Big(div).times((Big(q).plus(1)))):(Big(div).times((Big(q).minus(1))));if(Math.abs(Big(value).minus(output1))<Math.abs(Big(value).minus(output2))){if(output1<data.min){return data.min} 1300if(output1>data.max){return data.max} 1301return output1}else{if(output2<data.min){return data.min} 1302if(output2>data.max){return data.max} 1303return output2}}};let currentValue=Number(data.value) 1304if(currentValue===data.min){decreaseButton.setAttribute('disabled','')} 1305if(currentValue===data.max){increaseButton.setAttribute('disabled','')} 1306if(currentValue>data.min){decreaseButton.hasAttribute('disabled')?decreaseButton.removeAttribute('disabled'):null} 1307if(currentValue<data.max){increaseButton.hasAttribute('disabled')?increaseButton.removeAttribute('disabled'):null} 1308switch(e.type){case 'change':var value=data.value,rule=data.isAllowDotOrComma?data.rules.withDotOrComma:data.rules.onlyNaturalPositive,max=!isNaN(parseFloat(self.val()))?data.getNearDiv(parseFloat(self.val()),data.tick):null,tmp=0;max=max!==null?parseFloat(max):null;if(data.value.toString!==''){if(parseFloat(data.remember)<data.realMin){data.remember=data.realMin}else{data.remember=data.value};self.val(data.remember)} 1309if(value.indexOf(',')){value=data.value.replace(',','.')} 1310if(!rule.test(value)){value=data.remember}else{if(data.isOnlyWholePackages){value=Big(Math.floor(Big(value).div(data.boxrestrict))).times(data.boxrestrict);if(value<data.realMin){value=data.realMin}}else{value=data.getNearDiv(parseFloat(value),data.boxrestrict);if(value<data.realMin){value=data.realMin} 1311if(max!==null&&max>=data.max&&Big(max).div(data.tick).mod(1)!==0){while(Big(tmp).plus(data.tick)<=data.max){tmp=Big(tmp).plus(data.tick)} 1312value=tmp}}} 1313self.val(value);break;case 'focusin':self.data('remember',data.value);data.remember=data.value;self.select();break;case 'focusout':if(!self.val().replace(/^\s+/g,'').length){self.val(data.remember)} 1314break;
1314case 'valueincrease':var value=Big(parseFloat(data.value)).plus(typeof self.data('tick')!=='undefined'?data.tick:data.min);if(value<=data.max){self.val(value)}else{data.setError(L.MAXIMUM_QUANTITY_REACHED)} 1315break;case 'valuedecrease':var value=Big(parseFloat(data.value)).minus(typeof self.data('tick')!=='undefined'?data.tick:data.min);if(value>=data.min){self.val(value)}else{data.setError(L.MINIMUM_QUANTITY_REACHED)} 1316break;case 'keyup':var value=data.value.replace(',','.'),split=value.split(''),rule=data.isAllowDotOrComma?data.rules.withDotOrComma:data.rules.onlyNaturalPositive;if(!rule.test(value)){split.splice(-1,1);self.val(split.join(''))} 1317break}});$(document).on('click','.core_counterValueChange',function(e){if(skyTheme){e.preventDefault()} 1318var self=$(this);var data={type:'value'+self.data('type'),counter:self.parents('.counter-field').eq(0).find('.core_counterValue')};if(data.counter.length>0){data.counter.trigger(data.type).trigger('change')}});$(document).on('click','.core_counterValue',function(e){if(skyTheme){e.preventDefault()}}) 1319$(document).on('click','.core_setLanguage',function(e){e.preventDefault();var self=$(this);var data={}});var debounceTimeout 1320$(document).on('click','.core_removeParameter',function(e){e.preventDefault();var self=$(this);self.css({display:'none'}) 1321self.parents('label').trigger('click');if(self.parents('form').data('dynamic')===!0){clearTimeout(debounceTimeout) 1322debounceTimeout=setTimeout(function(){self.parents('form').submit()},1500)}});$('[data-dynamic="true"]').on('change',function(e){clearTimeout(debounceTimeout) 1323debounceTimeout=setTimeout(function(){$(e.currentTarget).trigger('submit')},1500)}) 1324var filterCheckedParameters=function(){if($('[id*="param-filter-"]').filter(':checked').length>0){$('.resetFilters').removeClass('hidden')}else{$('.resetFilters').addClass('hidden')}} 1325var clearFilterEvent=function(e){e.preventDefault();$('.core_removeParameter ').addClass('hidden');$('.core_clearSingleParameterFilter').removeClass('d-block').addClass('d-none');$('[id*="param-filter-"]').each(function(index,singleFilter){$(singleFilter).prop('checked',!1).removeAttr('checked')}) 1326const $filterForm=$('[data-dynamic]');if($filterForm.attr('data-dynamic')==='true'){debounceTimeout=setTimeout(function(){$filterForm.trigger('submit')},1500)}else{debounceTimeout=setTimeout(function(){$filterForm.trigger('submit')},1500)} 1327filterCheckedParameters()} 1328$('.resetFilters').on('click',clearFilterEvent) 1329const singleParameterClearFilterShowButton=()=>{if($('.filter-single-parameter').data('show-clear-params')===!0){$('.filter-single-parameter').each((i,item)=>{const clearElement=$(item).parents('.parameters-list-section').find('.parameter-filter-title > .icon-close_circle_24');clearElement.toggleClass('d-none',!$(item).find('input').filter(':checked').length);clearElement.toggleClass('d-block',$(item).find('input').filter(':checked').length>0)})}} 1330$('.left_filter_section.parameters').find($('.parameters')).find('form').on('change',(e)=>{singleParameterClearFilterShowButton()});const clearSingleParameterFilter=(element)=>{const $this=$(element.currentTarget) 1331$this.parents('.parameters-list-section').find('input').prop('checked',!1) 1332$this.removeClass('d-block').addClass('d-none') 1333if($('[data-dynamic]').attr('data-dynamic')==='true'){debounceTimeout=setTimeout(($this)=>{$this.parents('[data-dynamic]').eq(0).trigger('submit')},1500,$this);return} 1334$('[data-dynamic]').trigger('change')} 1335$(document).ready(function(){filterCheckedParameters();singleParameterClearFilterShowButton()});$('[data-dynamic]').on('change',(e)=>{filterCheckedParameters()}) 1336$('[data-panel="parameters"]').on('click',function(){$('.swipe-panel-content').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend',function(){filterCheckedParameters() 1337$('.resetFilters').each(function(index,item){$(item).on('click',clearFilterEvent)})})}) 1338$(document).on('click','.core_toggleSubProductsHide',(ev)=>{ev.preventDefault() 1339const parentHash=$(ev.target).closest('[data-hash]').data('hash');$(`[data-hash=${parentHash}]`).find('.product-set').toggleClass('open') 1340$(`[data-hash=${parentHash}]`).find('.core_toggleSubProducts').css({display:'block'}).text(L.SUB_PRODUCTS_SHOW_CART)});$(document).ready(function(){const clearButton=document.querySelector('.parameters .parameters__resetfilter')||document.querySelector('.top_parameters_filter_container .parameters__resetfilter');let selectFields;if(document.querySelectorAll('.parameters .select-field-select2.core_chooseParametersMulti').length>0){selectFields=document.querySelectorAll('.parameters .select-field-select2.core_chooseParametersMulti')}else{selectFields=document.querySelectorAll('.top_parameters_filter_container .select-field-select2.core_chooseParametersMulti')} 1341let form=document.querySelector('.parameters form#parameters-form')||document.querySelector('.top_parameters_filter_container form#parameters-form');if(!clearButton||!selectFields||!form)return 1342const hideClearButton=()=>!(clearButton.classList.contains('hidden'))&&clearButton.classList.add('hidden') 1343const showClearButton=()=>clearButton.classList.contains('hidden')&&clearButton.classList.remove('hidden') 1344const toggleClearButton=()=>{for(const select of selectFields){if(select.value==='1'){showClearButton() 1345break} 1346hideClearButton()}} 1347toggleClearButton() 1348clearButton.onclick=()=>{selectFields.forEach(select=>$(select).select2('open').val('').trigger('change').select2('close')) 1349hideClearButton() 1350$(form).trigger('submit')} 1351selectFields.forEach(field=>$(field).on('select2:select select2:unselect',()=>toggleClearButton()))}) 1352$(document).on('click','.core_addToStore',function(e){e.preventDefault();const store=skyTheme?$('button.core_openStore'):$('a[href="/category/c/store/"]');const storeAmount=store.find('span.core_storeAmount');var self=$(this);let icon=self.children('i');let label=self.children('span');if(self.parents('.product-tile').length>0)self.parents('.product-tile').addClass('product-hover');var data={productId:self.data('product-id')};var url='/cart/?json=1&store=1&p='+data.productId;$.getJSON(url,function(response){if(response.user_error){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,json.user_error,'error')}else{icon.addClass('fa-heart').removeClass('fa-heart-o');self.removeClass('core_addToStore').addClass('core_removeFromStore');
1352if(!skyTheme&&label[0])label[0].innerText=L.PRODUCT_IN_STORE;if(skyTheme&&self.parents().hasClass('product-store')||self.parents().hasClass('product-add-to-store')){icon=self.find('i') 1353icon.addClass('icon-favourite_fill').removeClass('icon-favourite_outline');self.removeClass('core_addToStore').addClass('core_removeFromStore');self.parent('.product-store').addClass('in-store');self.attr('aria-label',!!self.data('product-name')?`${L['REMOVE_PRODUCT_FROM_STORE']} ${self.data('product-name')}`:`${L['PRODUCT_INFORMATION_REMOVE_FROM_FAVOURITE']}`)} 1354popups.actionAlert(L.INFORMATION,L.PRODUCT_ADDED_TO_STORE,'success',function(){if(self.parents('.product-tile').length>0){self.parents('.product-tile').removeClass('product-hover')}});if(storeAmount.length){storeAmount.text(response?.amount_total);if(skyTheme){store.attr('aria-label',`${L['FAVORITE_PRODUCTS_COUNT']} ${response?.amount_total}`)}}else if(skyTheme){const badgeElement=$('<span class="translate-middle sky-badge badge-store-amount"></span>');const storeAmountElement=$(' <span class="sky-f-number-in-circle core_storeAmount">'+response?.amount_total+'</span>');badgeElement.append(storeAmountElement);store.append(badgeElement);store.attr('aria-label',`${L['FAVORITE_PRODUCTS_COUNT']} ${response?.amount_total}`)}else{store.find('span').text('('+response?.amount_total+')')}}}).fail(function(){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,L.PLEASE_TRY_AGAIN,'error')})});$(document).on('click','.core_removeFromStore',function(e){e.preventDefault();const store=skyTheme?$('button.core_openStore'):$('a[href="/category/c/store/"]');const storeAmount=store.find('span.core_storeAmount');var self=$(this);let icon=self.children('i');let label=self.children('span');var data={productId:self.data('product-id')};var url='/cart/?json=1&rem_store='+data.productId;$.getJSON(url,function(response){if(response.user_error){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,json.user_error,'error')}else{if(icon.hasClass('fa-heart')||self.find('i').hasClass('icon-favourite_fill')){self.parent('.product-store').removeClass('in-store');if(skyTheme){self.find('i').addClass('icon-favourite_outline').removeClass('icon-favourite_fill')}else{icon.addClass('fa-heart-o').removeClass('fa-heart')} 1355self.removeClass('core_removeFromStore').addClass('core_addToStore');if(skyTheme){self.attr('aria-label',!!self.data('product-name')?`${L['ADD_PRODUCT_TO_STORE']} ${self.data('product-name')}`:`${L['PRODUCT_INFORMATION_ADD_TO_FAVOURITE']}`)}else if(label[0]){label[0].innerText=L.ADD_TO_STORE}}else{self.parents('figure').eq(0).parent().remove()} 1356popups.actionAlert(L.INFORMATION,L.PRODUCT_REMOVED_FROM_STORE,'success');if(storeAmount.length){storeAmount.text(response?.amount_total);$('.core_itemCount').text(response?.amount_total);if(skyTheme){store.attr('aria-label',`${L['FAVORITE_PRODUCTS_COUNT']} ${response?.amount_total}`);if(!response?.amount_total){store.find('.sky-badge').remove()}}}else if(skyTheme){store.find('.sky-badge').remove();store.attr('aria-label',`${L['FAVORITE_PRODUCTS_COUNT']} ${response?.amount_total}`)}else{store.find('span').text('('+response?.amount_total+')')}}}).fail(function(){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,L.PLEASE_TRY_AGAIN,'error')})});$(document).on('click','.core_askQuestionOpenPopup',function(e){e.preventDefault();var self=$(this);var data={productId:self.data('product-id')};var csrfToken=$('input[name="csrf_token"]').first().val()||'';popups.askAboutProduct(data.productId,csrfToken)});$(document).on('click','.core_askQuestion',function(e){e.preventDefault();var self=$(this);var container=self.closest('form, .swal2-popup, .add-product-question-form-wrapper');var data={productId:self.data('product-id'),username:container.find('input[name="username"]').val(),email:container.find('input[name="email"]').val(),email_confirm:container.find('input[name="email_confirm"]').val(),text:container.find('textarea[name="text"]').val(),validate:formValidator(container),is_js:container.find('.pro-tecting-_-Input').val(),csrf_token:container.find('input[name="csrf_token"]').last().val()||''};var url='/productContact/?json=1&action=ask';if(data.validate){self.attr('disabled',!0);$.post(url,{prod_id:data.productId,email:data.email,email_confirm:data.email_confirm,sky_validate:1,body:L.SIGNATURE+': '+data.username+'<hr />'+data.text,is_js:data.is_js,csrf_token:data.csrf_token,'cf-turnstile-response':container.find('input[name="cf-turnstile-response"]').val()},function(response){if(typeof response==='string'){response=JSON.parse(response)} 1357if(response.msg){if(response.csrf_token){$('input[name="csrf_token"]').val(response.csrf_token).attr('value',response.csrf_token)} 1358popups.actionAlert(L.EMAIL_WAS_SENT,response.msg,'success');if(skyTheme){container.find('input[name="username"]').val('');container.find('input[name="email"]').val('');container.find('input[name="email_confirm"]').val('');container.find('textarea[name="text"]').val('')}}else if(response.error){if(response.csrf_token){$('input[name="csrf_token"]').val(response.csrf_token).attr('value',response.csrf_token)} 1359popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,response.error_msg,'error')}else{popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,L.ERROR_CRITICAL_MESSAGE,'error')} 1360self.attr('disabled',!1);if(typeof turnstile!=='undefined'){const turnstileWidget=container.find('.cf-turnstile')[0];if(turnstileWidget){turnstile.reset(turnstileWidget)}}})}else{focusFirstFormError()}});$(document).on('click','.core_sendPhone',function(e){e.preventDefault();var self=$(this);var data={productId:self.parent().find('input[name="phone_number_box"]').data('product-id'),number:self.parent().find('input[name="phone_number_box"]').val(),is_js:self.parent().find('.pro-tecting-_-Input').val(),'cf-turnstile-response':self.closest('.phone-number').find('input[name="cf-turnstile-response"]').val()};var url='/productContact/?json=1&action=phone';if(!isNaN(parseFloat(data.number.split(' ').join('')))&&data.number.match(/\d/g).length>6){$.post(url,{prod_id:data.productId,phone:data.number,is_js:data.is_js,'cf-turnstile-response':data['cf-turnstile-response']},function(response){if(typeof response==='string'){response=JSON.parse(response)} 1361if(response.msg){popups.actionAlert(L.NUMBER_WAS_SENT,response.msg,'success');if(!skyTheme){self.parents('.row').eq(0).transition('slideUp',200,function(){self.parents('.row').eq(0).remove()})}else{self.parent().removeClass('open').css('overflow','hidden');$('.core_sendPhoneAccordion').removeClass('open').attr('aria-expanded','false')}}else if(response.error){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,response.error_msg,'error')}else{popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,L.ERROR_CRITICAL_MESSAGE,'error')}})}else{popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,L.ERROR_PHONE_IS_INVALID,'error')}});$(document).on('click','.core_addOpinion',function(e){e.preventDefault();var self=$(this);var container=self.closest('form, .swal2-popup, .product-opinions, #add_rate_popup');var textVal=container.find('textarea[name="text"]').val()||'';var data={productId:self.attr('name'),username:container.find('input[name="username"]').val(),text:textVal.replace(/"/g,'\''),quality:container.find('input[name="quality"]').val(),usability:container.find('input[name="usability"]').val(),price:container.find('input[name="price"]').val(),validate:formValidator(container),is_js:container.find('.pro-tecting-_-Input').val(),csrf_token:container.find('input[name="csrf_token"]').last().val()||''};const skyThemeValidate=data.validate;const otherThemeValidate=!!(data.username&&data.quality&&data.usability&&data.price&&data.text);if((skyTheme&&!skyThemeValidate)||(!skyTheme&&!otherThemeValidate)){if(!skyTheme){popups.actionAlert(L.PRODUCT_WAS_NOT_EVALUATED,L.ADD_RATING_MUST_BE_COMPLETED_WITH_ALL_SIGNATURES,'error')}else{focusFirstFormError()}}else{self.attr('disabled',!0);const url='/productOpinion/?json=1&action=add';$.post(url,{ajax:1,prod_id:data.productId,quality:data.quality,usability:data.usability,price:data.price,username:data.username,text:data.text,is_js:data.is_js,csrf_token:data.csrf_token},function(response){if(typeof response==='string'){response=JSON.parse(response)} 1362if(response.user_error){if(response.csrf_token){$('input[name="csrf_token"]').val(response.csrf_token).attr('value',response.csrf_token)} 1363popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,response.user_error,'error')}else if(response.errors){if(response.csrf_token){$('input[name="csrf_token"]').val(response.csrf_token).attr('value',response.csrf_token)} 1364popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,response.errors[0],'error')}else{if(response.csrf_token){$('input[name="csrf_token"]').val(response.csrf_token).attr('value',response.csrf_token)} 1365popups.actionAlert(L.RATING_HAS_BEEN_ADDED,response.message,'success');container.transition('slideUp',1000);if(skyTheme&&$('#add_rate_popup').length){$('.core_addNewProductRate').remove()}} 1366self.attr('disabled',!1)})}});$(document).find('.core_loadCard').each(function(){var self=$(this);self.find('.core_cardParamsChange').trigger('change')});$(document).on('submit','.core_registerForm',function(e){e.preventDefault();var self=$(this);var data={validate:formValidator(self),name:'sky_validate',value:1};if(data.validate){self.append($('<input type="hidden" name="'+data.name+'" value="'+data.value+'" />'));self.removeClass('core_registerForm');setTimeout(function(){self.find('[type="submit"]').eq(0).trigger('click')},200)}else{focusFirstFormError()}});$(document).find('.core_registerDone').each(function(){var self=$(this);var data={message:self.data('message'),email:self.data('email')};data.message=data.message.split('[EMAIL]').join(data.email);popups.actionAlert(L.REGISTRATION_WAS_SUCCESSFUL,data.message,'success',function(){Analytics.trackSignUp('email');window.location='/'})});$(document).find('.core_popUpWindow').each(function(){var self=$(this);var data={message:self.data('popup-message'),delay:self.data('popup-delay')*1000};if(!self.hasClass('core_newsletterPopUpWindow')){setTimeout(function(){popups.actionAlert(L.INFORMATION,data.message,'info')},data.delay)}});const fireNewsletterPopup=()=>{$(document).find('.core_newsletterPopUpWindow').each(function(){if(SkyShop.popupFire.queue)return;var self=$(this);var data={message:self.data('newsletter-popup-message'),delay:self.data('newsletter-popup-delay')*1000,infoPopupmessage:self.data('popup-message'),infoPopupDelay:self.data('popup-delay')*1000};if(!self.hasClass('core_popUpWindow')){setTimeout(function(){popups.newsletter(data.message)},data.delay)}else{if(data.delay===data.infoPopupDelay){setTimeout(function(){popups.actionAlert(L.INFORMATION,data.infoPopupmessage,'info',function(){setTimeout(function(){popups.newsletter(data.message)},data.delay)})},data.infoPopupDelay)} 1367else if(data.delay<data.infoPopupDelay){setTimeout(function(){popups.newsletter(data.message,function(){setTimeout(function(){popups.actionAlert(L.INFORMATION,data.infoPopupmessage,'info')},data.infoPopupDelay)})},data.delay)} 1368else if(data.delay>data.infoPopupDelay){setTimeout(function(){popups.actionAlert(L.INFORMATION,data.infoPopupmessage,'info',null,function(){setTimeout(function(){popups.newsletter(data.message)},data.delay)})},data.infoPopupDelay)}}})} 1369$(document).find('.core_newsletterUnsubscribe').each(function(){var self=$(this);var url=window.location.href+'?json=1';popups.yesNo(L.RESIGN_WITH_NEWSLETTER,L.CONFIRM_REMOVE_NEWSLETTER,'info',function(){$.post(url,{remove_newsletter_yes:1},function(response){if(typeof response==='string'){response=JSON.parse(response)} 1370if(response.success==!1){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,L.PLEASE_TRY_AGAIN,'error')}else{popups.actionAlert(L.INFORMATION,L.PDF_THIRD_INFO,'success',function(){window.location='/'});setTimeout(function(){window.location='/'},5000)}})},function(){window.location='/'})});$(document).on('submit','.core_changeEmail',function(e){e.preventDefault();var self=$(this);var data={email:self.find('input[name="user_email"]').val(),password:self.find('input[name="user_password"]').val(),csrf_token:self.find('input[name="csrf_token"]').val(),validate:formValidator(self)};var url='/register/emailchange/1/?json=1';if(data.validate){$.ajax({type:'POST',url:url,data:{user_email:data.email,password:data.password,csrf_token:data.csrf_token},dataType:'json',success:function(response){if(response.success==!0){popups.actionAlert(L.EMAIL_WAS_SENT,response.msg,'success')}
1370else{if(response.csrf_token){self.find('input[name="csrf_token"]').val(response.csrf_token)} 1371if(typeof response.errors==='object'&&response.errors.length>0){response.errors.forEach(function(error){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,error,'error')})}}}})}else{focusFirstFormError()}});$(document).on('submit','.core_changePassword',function(e){e.preventDefault();var self=$(this);var data={email:self.find('input[name="email"]').val(),old_password:self.find('input[name="old_password"').val(),password:self.find('input[name="password"]').val(),csrf_token:self.find('input[name="csrf_token"]').val(),validate:formValidator(self)};var url='/passrecover/?json=1';if(data.validate){$.ajax({type:'POST',url:url,data:{email:data.email,old_password:data.old_password,password:data.password,csrf_token:data.csrf_token,submit:1},dataType:'json',success:function(response){if(response.success==!0){popups.actionAlert(L.INFORMATION,response.msg,'success',function(){if(skyTheme){location.reload()}})}else{if(response.csrf_token){self.find('input[name="csrf_token"]').val(response.csrf_token)} 1372if(typeof response.errors==='object'&&response.errors.length>0){response.errors.forEach(function(error){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,error,'error',function(){if(skyTheme){location.reload()}})})}}}})}});$(document).on('click','.core_finishChangePassword',function(e){e.preventDefault();if(e.originalEvent){$('.core_changePassword').trigger('submit')}});$(document).on('click','.core_addEmailToNewsletter',function(e){e.preventDefault();var self=$(this);var form=self.parents('form');var data={email:form.find('input[name="email"]').val(),is_js:form.find('.pro-tecting-_-Input').val(),csrf_token:form.find('input[name="csrf_token"]').val(),'cf-turnstile-response':form.find('[name="cf-turnstile-response"]').val()};var url='/register/?json=1';$.post(url,{email:data.email,is_js:data.is_js,csrf_token:data.csrf_token,'cf-turnstile-response':data['cf-turnstile-response']},function(response){if(typeof response==='string'){response=JSON.parse(response)} 1373if(response.csrf_token){$('[name="csrf_token"]').each(function(){$(this).val(response.csrf_token).attr('value',response.csrf_token)})} 1374var turnstileWidget=form.find('.cf-turnstile')[0];if(turnstileWidget&&window.turnstile){turnstile.reset(turnstileWidget)} 1375const alert=(()=>{if(response.code==='OK'){return[L.NEWSLETTER_THANK_HEADER,response.msg,'info']} 1376if(response.code==='WRONG_EMAIL'){return[L.INFORMATION,response.msg,'error']} 1377return[L.ERROR_UNEXPECTED_ERROR,response.user_error??response.errors.join(' '),'error',]})();popups.actionAlert(...alert)})});$(document).on('submit','.core_addEmailToNewsletterPopup',function(e){e.preventDefault();var self=$(this);var data={email:self.find('input[name="email"]').val(),validate:formValidator(self),is_js:self.find('input[name="is_js"]').val(),csrf_token:self.find('input[name="csrf_token"]').val(),'cf-turnstile-response':self.find('[name="cf-turnstile-response"]').val()};var url='/register/?json=1';if(data.validate){$.post(url,{email:data.email,is_js:data.is_js,csrf_token:data.csrf_token,'cf-turnstile-response':data['cf-turnstile-response']},function(response){if(typeof response==='string'){response=JSON.parse(response)} 1378if(response.csrf_token){$('[name="csrf_token"]').each(function(){$(this).val(response.csrf_token).attr('value',response.csrf_token)})} 1379var turnstileWidget=self.find('.cf-turnstile')[0];if(turnstileWidget&&window.turnstile){turnstile.reset(turnstileWidget)} 1380const alert=(()=>{if(response.code==='OK'){return[L.NEWSLETTER_THANK_HEADER,response.msg,'info']} 1381if(response.code==='WRONG_EMAIL'){return[L.INFORMATION,response.msg,'error']} 1382return[L.ERROR_UNEXPECTED_ERROR,response.user_error??response.errors.join(' '),'error',]})();popups.actionAlert(...alert)})}else{focusFirstFormError()}});$(document).on('click','.core_acceptCookies',function(e){e.preventDefault();var self=$(this);var data={cookiesElement:self.parents('.cookies'),accept:1};cookies.create('co_accept',data.accept,365*24*60*60*1000);data.cookiesElement.transition('slideUp',200,function(){data.cookiesElement.eq(0).remove()})});$(document).on('click','.core_showDiscountInfo',function(e){e.preventDefault();var self=$(this);var data={info:self.data('info')};popups.actionAlert(L.INFORMATION,data.info,'info')});$(document).on('click','.core_notifyAvailableProduct',function(e){var self=$(this);var formContainer=skyTheme?self.parents('.product-notify-available-product'):self.parents('.row');var data={value:self.prop('nodeName')=='INPUT'?self.val():self.prev().val(),productId:self.data('product-id'),success:self.data('success'),csrf_token:formContainer.find('input[name="csrf_token"]').val()};var url='/product/?json=1&action=available_notify';if(data.value=='1'){var typeEmail=self.parents('.product-notify-available-product').find('.product-notify-available-product-type-email');if(self.prop('checked')==!0){typeEmail.transition('slideDown',200)}else{typeEmail.transition('slideUp',200)}}else{$.ajax({type:'POST',url:url,data:{prod_id:data.productId,email:data.value,csrf_token:data.csrf_token},dataType:'json',success:function(response){if(response.csrf_token){$('[name="csrf_token"]').each(function(){$(this).val(response.csrf_token).attr('value',response.csrf_token)})} 1383if(response.success==!0){data.success=data.success.replace('[[EMAIL]]',' ('+data.value+')');popups.actionAlert(L.EMAIL_WAS_SAVE,data.success,'success');const parentClassToHidden=skyTheme?'.product-notify-available-product':'.row';
1383self.parents(parentClassToHidden).eq(0).transition('slideUp',200,function(){self.parents(parentClassToHidden).eq(0).addClass('hidden')})}else{if(response.message==='notification exists for this email'){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,L.NOTIFICATION_EXIST_FOR_EMAIL,'error')}else{popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,L.PLEASE_TRY_AGAIN,'error')}}}})}});$(document).on('click','.core_loginHurtTriggerLogin',function(e){e.preventDefault();var self=$(this),loginHurt=$('.login-hurt');loginHurt.find('form').eq(0).find('[type="submit"]').trigger('click')});$(document).on('click','.core_scbRaty',function(e){var self=$(this);var data={price:self.data('price'),scb:self.data('scb')};var url='https://wniosek.eraty.pl/symulator/oblicz/numerSklepu/'+data.scb+'/typProduktu/0/wartoscTowarow/'+data.price;window.open(url,'Policz_rate','width=630,height=500,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no')});var pragmagoSelector=document.getElementById('openPragmaPopUp');const openInNewWindow=(installments)=>{window.open(`${installments ? 'https://pragmago.pl/calculator/?raty=' + installments : 'https://pragmago.pl/calculator/'}`,"_blank","toolbar=false,scrollbars=yes,resizable=0,resizable=false,resizable=no,,top=50%,left=50%,width=899,height=600")};if($('#openPragmaPopUp').length){$('#openPragmaPopUp').on('click',(e)=>openInNewWindow(pragmagoSelector.dataset.numberInstalments))} 1384if($('#paypo_display_widget').length){let svgBg=skyTheme?'#F2F2F2':'#fff';window.addEventListener('DOMContentLoaded',function(){document.querySelector('#paypo_display_widget').insertAdjacentHTML('beforebegin','<svg class="paypo__open" viewBox="0 0 600 120" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M0 0h600v120H0z" fill='+svgBg+' /><path d="M235.13 11.72h4.06v96.56h-4.06z" fill="#f6e7f2" /><path d="M59.24 63.03v9.44h-9.52v-9.44z" fill="#a41781" /><path d="M59.2 50.22v9.52h-9.52v-9.52z" fill="#3db288" /><path d="M46.5 62.9v9.52h-9.52V62.9z" fill="#fbd05c" /><path d="M87.6 49.63a11.87 11.87 0 0 1-12.09 11.84h-5.18v10.85h-7.9V37.8H75.5a11.87 11.87 0 0 1 12.09 11.84zm-7.9 0a4.21 4.21 0 0 0-4.19-4.44h-5.18v8.88h5.18a4.22 4.22 0 0 0 4.19-4.44zM115.13 47v25.3h-7.6v-2.38A9.52 9.52 0 0 1 100 73c-6.63 0-12.1-5.82-12.1-13.37s5.46-13.36 12.1-13.36a9.55 9.55 0 0 1 7.55 3.09V47zm-7.6 12.66a6.03 6.03 0 1 0-12.06 0 6.03 6.03 0 1 0 12.06 0zM144 47l-8.6 24.4c-2.82 8-7.3 11.17-14.33 10.82v-7c3.52 0 5.18-1.1 6.28-4.17l-10-24h8.3l5.6 15.4 4.7-15.43zm28.1 2.63A11.87 11.87 0 0 1 160 61.47h-5.18v10.85H147V37.8h13a11.87 11.87 0 0 1 12.11 11.84zm-7.9 0a4.22 4.22 0 0 0-4.2-4.44h-5.18v8.88H160a4.23 4.23 0 0 0 4.22-4.44zM173.1 60a13.07 13.07 0 1 1 13.07 13 12.93 12.93 0 0 1-13.07-13zm18.74 0a5.67 5.67 0 1 0-5.67 5.82 5.52 5.52 0 0 0 5.67-5.82z" fill="#010101" /><path d="M366.08 79.6h100.65v28.68H366.08z" fill="#3db286" /><path d="M386.44 95.54l2.07-1.2a2.22 2.22 0 0 0 2.21 1.46c1.15 0 1.43-.45 1.43-.86 0-.65-.6-.9-2.18-1.34s-3.1-1.2-3.1-3.2a3.3 3.3 0 0 1 3.54-3.21 4.09 4.09 0 0 1 3.85 2.38l-2 1.2a1.84 1.84 0 0 0-1.82-1.22c-.75 0-1.13.37-1.13.8s.26.8 1.9 1.3 3.38 1 3.38 3.27c0 2-1.62 3.23-3.9 3.23a4.14 4.14 0 0 1-4.24-2.6zm17.34-1.37a3.77 3.77 0 0 1-3.59 4 2.81 2.81 0 0 1-2.24-.91v3.7h-2.26V90.4h2.3v.7a2.82 2.82 0 0 1 2.24-.92 3.77 3.77 0 0 1 3.54 3.97zm-2.25 0a1.79 1.79 0 1 0-1.79 1.83 1.72 1.72 0 0 0 1.79-1.83zm8.04-3.9v2.56a1.77 1.77 0 0 0-2.25 1.71v3.4h-2.26V90.4h2.26v1.34a2.25 2.25 0 0 1 2.25-1.49zm8.55.14v7.52h-2.26v-.7a2.83 2.83 0 0 1-2.24.91 4 4 0 0 1 0-7.94 2.83 2.83 0 0 1 2.24.92v-.7zm-2.26 3.76a1.79 1.79 0 1 0-1.79 1.83 1.71 1.71 0 0 0 1.79-1.83zm14.6-3.76l-2.4 7.52h-2.1l-1.2-4-1.2 4h-2.1L419 90.4h2.4l1.08 4 1.17-4h2.1l1.17 4 1.1-4zm8.32-3v10.53h-2.25v-.7a2.85 2.85 0 0 1-2.25.91 4 4 0 0 1 0-7.94 2.85 2.85 0 0 1 2.25.92V87.4zm-2.25 6.77a1.8 1.8 0 1 0-1.8 1.84 1.72 1.72 0 0 0 1.8-1.84zm9.7 1.66v2.1h-6v-1.5l2.78-3.9h-2.7v-2.1h5.72v1.5l-2.85 3.9zM444 89.5h-2.16l1.2-2.1h2.7z" fill="#fff" /><path d="M311.67 30.15l-5.9-8.53v8.53h-4.2V11.72h4.2v8l5.63-8h4.8l-6.2 9 6.48 9.45zM329.83 17v13.15h-3.95V28.9a4.52 4.52 0 0 1-3.77 1.61c-2.65 0-4.92-1.9-4.92-5.45V17h3.95v7.5a2.17 2.17 0 0 0 2.29 2.39c1.45 0 2.45-.84 2.45-2.7V17zm17.05 6.57c0 3.92-2.84 7-6.3 7a5 5 0 0 1-3.92
1384-1.61v6.5h-3.95V17h3.95v1.23a4.94 4.94 0 0 1 3.92-1.6c3.4-.01 6.3 3 6.3 6.94zm-3.95 0a3.13 3.13 0 1 0-6.26 0 3.13 3.13 0 1 0 6.26 0zm17.77-2.8v4.65c0 1.14 1 1.24 2.72 1.14v3.58c-5.16.52-6.66-1-6.66-4.72v-4.65h-2.1V17h2.1v-2.5l3.94-1.2V17h2.72v3.8zM372.06 27a3.45 3.45 0 0 0 2.53-1l3.16 1.8a6.69 6.69 0 0 1-5.75 2.71c-4.5 0-7.3-3-7.3-6.95a6.74 6.74 0 0 1 7-6.95 6.65 6.65 0 0 1 6.69 7 8.06 8.06 0 0 1-.16 1.58h-9.34a3 3 0 0 0 3.16 1.8zm2.43-4.8a3 3 0 0 0-5.66 0zm14.05-5.48v4.48c-1.63-.27-4 .4-4 3v5.95h-3.95V17h3.95v2.34a4 4 0 0 1 4-2.62zm14.96.28v13.15h-3.95V28.9a5 5 0 0 1-3.92 1.61c-3.45 0-6.3-3-6.3-6.95s2.84-6.95 6.3-6.95a4.94 4.94 0 0 1 3.92 1.6V17zm-3.95 6.58a3.14 3.14 0 1 0-6.27 0 3.14 3.14 0 1 0 6.27 0zm16.95 2.88v3.7H406v-2.63l5-6.85h-4.7V17h10v2.63l-5 6.84zm5.28 7.37h-3.16l1.05-7.76h4.2z" fill="#3db286" /><g fill="#1d1d1b"><path d="M443.3 26.2c0 3-2.63 4.32-5.47 4.32-2.63 0-4.63-1-5.66-3.14l3.42-1.95a2.16 2.16 0 0 0 2.24 1.57c.95 0 1.42-.3 1.42-.82 0-1.45-6.47-.68-6.47-5.24 0-2.86 2.42-4.3 5.15-4.3a5.76 5.76 0 0 1 5.14 2.81l-3.37 1.82a1.93 1.93 0 0 0-1.77-1.16c-.68 0-1.1.26-1.1.74 0 1.5 6.47.5 6.47 5.36zm16.27-2.63c0 3.92-2.84 7-6.3 7a4.92 4.92 0 0 1-3.92-1.61v6.5h-3.95V17h3.95v1.23a4.92 4.92 0 0 1 3.92-1.6c3.45-.01 6.3 3 6.3 6.94zm-3.95 0a3.13 3.13 0 1 0-6.26 0 3.13 3.13 0 1 0 6.26 0zm14.08-6.85v4.48c-1.63-.27-3.95.4-3.95 3v5.95h-3.95V17h3.95v2.34a4 4 0 0 1 3.95-2.62zm14.95.28v13.15h-3.95V28.9a5 5 0 0 1-3.92 1.61c-3.45 0-6.3-3-6.3-6.95s2.84-6.95 6.3-6.95a4.94 4.94 0 0 1 3.92 1.6V17zm-3.95 6.58a3.13 3.13 0 1 0-6.26 0 3.13 3.13 0 1 0 6.26 0zM506.23 17L502 30.15h-3.7l-2.1-7-2.1 7h-3.68L486.22 17h4.22l1.9 7 2.05-7h3.7l2.05 7 1.9-7zm14.55-5.28v18.43h-3.95V28.9a5 5 0 0 1-3.92 1.61c-3.45 0-6.3-3-6.3-6.95s2.84-6.95 6.3-6.95a4.94 4.94 0 0 1 3.92 1.6v-6.5zm-3.95 11.85a3.13 3.13 0 1 0-6.26 0 3.13 3.13 0 1 0 6.26 0zm16.97 2.9v3.7h-10.53v-2.63l5-6.85h-4.7V17h10v2.63l-5 6.84zm-3.85-11h-3.8l2.1-3.7H533zm-259.9 39.7c0 3.92-2.84 7-6.3 7a5 5 0 0 1-3.92-1.61V67h-4V48.57h4v1.23a4.94 4.94 0 0 1 3.92-1.6c3.45 0 6.3 3.03 6.3 6.95zm-3.95 0a3.13 3.13 0 1 0-3.11 3.21 3 3 0 0 0 3.11-3.21zm14.1-6.85v4.48c-1.63-.26-3.94.4-3.94 3v5.95h-3.95V48.57h3.95v2.34a4 4 0 0 1 3.94-2.61zm.8 6.85a7 7 0 1 1 7 7 6.9 6.9 0 0 1-7-7zm10 0a3 3 0 1 0-3 3.1 2.95 2.95 0 0 0 3-3.1z" /><use xlink:href="#B" /><path d="M326 48.57v13.16h-3.95V60.5a4.5 4.5 0 0 1-3.76 1.61c-2.66 0-4.92-1.9-4.92-5.45v-8.08h3.95v7.5a2.16 2.16 0 0 0 2.29 2.39c1.44 0 2.44-.84 2.44-2.7V48.6zm11.06 13.16l-4.2-5.82v5.82h-4V43.3h4v11l3.95-5.76h4.6l-4.8 6.58 4.92 6.58zm10.66-9.37V57c0 1.13 1 1.23 2.7 1.13v3.58c-5.16.52-6.66-1-6.66-4.7v-4.64h-2.1v-3.8h2.1v-2.5l4-1.2v3.7h2.7v3.8zm11.4-7.36a2.37 2.37 0 1 1 2.37 2.37 2.39 2.39 0 0 1-2.37-2.37zm.4 3.53h3.95v13.2h-3.95zM383.07 58v3.7h-10.53v-2.6l5-6.85h-4.74v-3.68h10v2.63l-5 6.84zm15.08-9.43v13.16h-3.95V60.5a5 5 0 0 1-3.92 1.61c-3.45 0-6.3-3-6.3-7s2.84-6.95 6.3-6.95a4.94 4.94 0 0 1 3.92 1.6v-1.18zm-3.95 6.58a3.14 3.14 0 1 0-3.13 3.21 3 3 0 0 0 3.13-3.21zm21 0c0 3.92-2.84 7-6.3 7a5 5 0 0 1-3.91-1.66V67h-4V48.57h4v1.23a4.94 4.94 0 0 1 3.92-1.6c3.44 0 6.28 3.03 6.28 6.95zm-3.95 0a3.13 3.13 0 1 0-3.13 3.21 3 3 0 0 0 3.13-3.21zm11.58-2.82l-1.32.9v8.5h-3.94v-5.8l-1.32.9v-3.76l1.32-.9V42.5h3.94v7l1.32-.9zM438 48.57v13.16h-4V60.5a4.92 4.92 0 0 1-3.92 1.61c-3.45 0-6.3-3-6.3-7s2.84-6.95 6.3-6.95a4.92 4.92 0 0 1 3.92 1.6v-1.18zm-4 6.58a3.13 3.13 0 1 0-3 3.21 3 3 0 0 0 3.09-3.21zm6.28 0a7 7 0 0 1 12.92-3.58l-3.45 2a2.72 2.72 0 0 0-2.55-1.48 3.06 3.06 0 0 0 0 6.11 2.69 2.69 0 0 0 2.55-1.47l3.45 2a6.73 6.73 0 0 1-5.95 3.4 6.82 6.82 0 0 1-6.97-6.98zm8.45-8.15l3-3.7H447l-2.06 3.7zm22.9 11v3.7H461.1v-2.6l5-6.85h-4.7v-3.68h10v2.63l-5 6.84zm15.08-9.43v13.16h-3.95V60.5a4.92 4.92 0 0 1-3.92 1.61c-3.45 0-6.3-3-6.3-7s2.84-6.95 6.3-6.95a4.92 4.92 0 0 1 3.92 1.6v-1.18zm-3.95 6.58a3.13 3.13 0 1 0-3.13 3.21 3 3 0 0 0 3.13-3.21zm25.65.8c0 4.05-3.15 6.16-6.7 6.16a6.6 6.6 0 0 1-6.45-4l3.64-2.1a2.65 2.65 0 0 0 2.81 2c1.74 0 2.5-.92 2.5-2.05s-.76-2.06-2.5-2.06h-.87l-1.6-2.4 3.34-4.24h-6.74v-4h11.85v3.42l-3.2 4.06a5.4 5.4 0 0 1 3.92 5.2zm1.6-3.42c0-5.7 2.74-9.6 7.5-9.6s7.5 3.9 7.5 9.6-2.73 9.58-7.5 9.58-7.5-3.9-7.5-9.58zm10.8 0c0-3.56-1.08-5.48-3.3-5.48s-3.3 1.96-3.3 5.48 1.08 5.48 3.3 5.48 3.3-1.93 3.3-5.48z" /><use xlink:href="#B" x="236.63" /><path d="M562.84 53.65v8.08h-4v-7.5a2.17 2.17 0 0 0-2.29-2.4c-1.45 0-2.45.84-2.45 2.7v7.2h-3.9V48.57h3.95v1.23a4.51 4.51 0 0 1 3.76-1.6c2.66 0 4.93 1.9 4.93 5.45zm2.3-8.65a2.37 2.37 0 1 1 2.37 2.37 2.39 2.39 0 0 1-2.37-2.37zm.4 3.53h3.94v13.2h-3.94zm6.57 11.07a2.51 2.51 0 1 1 2.5 2.5 2.52 2.52 0 0 1-2.5-2.5z" /></g><defs><path id="B" d="M310.67 43.3v18.43h-3.95V60.5a5 5 0 0 1-3.92 1.61c-3.45 0-6.3-3-6.3-7s2.84-6.95 6.3-6.95a4.94 4.94 0 0 1 3.92 1.6V43.3zm-3.95 11.85a3.13 3.13 0 1 0-3.13 3.21 3 3 0 0 0 3.13-3.21z" /></defs></svg>');document.querySelector('.paypo__open').addEventListener('click',function(){document.body.style.overflow='hidden',document.querySelector('.paypo__dialog').setAttribute('open',!0)}),document.querySelector('.paypo__dialog').addEventListener('click',function(){document.body.style.overflow='auto',document.querySelector('.paypo__dialog').removeAttribute('open')})})}
1385if($('#paypo_display_widget_dark').length){let svgBg='transparent';window.addEventListener('DOMContentLoaded',function(){document.querySelector('#paypo_display_widget_dark').insertAdjacentHTML('beforebegin',` 1386 <svg width="248" height="40" viewBox="0 0 248 40" fill="none" xmlns="http://www.w3.org/2000/svg"> 1387 <path d="M27.2031 26.2459V22.2091H23.0708V26.2459H27.2031Z" fill="#A70584"/> 1388 <path d="M27.1851 20.8022V16.7322H23.0527V20.8022H27.1851Z" fill="#36B587"/> 1389 <path d="M21.6753 26.229V22.1589H17.5429V26.229H21.6753Z" fill="#FAD05B"/> 1390 <path d="M39.5223 16.4771C39.5223 19.2827 37.2302 21.5409 34.2741 21.5409H32.0248V26.1821H28.5977V11.416H34.2741C37.2302 11.416 39.5223 13.6735 39.5223 16.4771ZM36.0951 16.4771C36.0951 15.4006 35.3238 14.5778 34.2741 14.5778H32.0248V18.3765H34.2741C35.3238 18.3765 36.0951 17.5557 36.0951 16.4771Z" fill="white"/> 1391 <path d="M51.4755 15.3477V26.1774H48.1772V25.1599C47.4513 25.9827 46.3741 26.4813 44.9002 26.4813C42.02 26.4813 39.6445 23.9904 39.6445 20.7629C39.6445 17.5354 42.02 15.0452 44.9002 15.0452C46.3741 15.0452 47.4485 15.5431 48.1772 16.3666V15.3491L51.4755 15.3477ZM48.1772 20.7622C48.1772 19.1383 47.0752 18.1201 45.56 18.1201C44.0448 18.1201 42.9428 19.1376 42.9428 20.7622C42.9428 22.3868 44.0448 23.4077 45.56 23.4077C47.0752 23.4077 48.1772 22.3868 48.1772 20.7622Z" fill="white"/> 1392 <path d="M64.0057 15.3477L60.2728 25.7798C59.0496 29.2 57.1046 30.5554 54.0487 30.4048V27.3929C55.577 27.3929 56.2981 26.9181 56.7789 25.6082L52.4351 15.3477H56.0385L58.4628 21.9276L60.5159 15.3477H64.0057Z" fill="white"/> 1393 <path d="M76.2184 16.4771C76.2184 19.2827 73.9256 21.5409 70.9696 21.5409H68.7202V26.1821H65.2931V11.416H70.9696C73.9235 11.416 76.2184 13.6735 76.2184 16.4771ZM72.7906 16.4771C72.7906 15.4006 72.0192 14.5778 70.9696 14.5778H68.7202V18.3765H70.9696C72.0192 18.3765 72.7906 17.5557 72.7906 16.4771Z" fill="white"/> 1394 <path d="M76.647 20.9101C76.647 17.7666 79.1746 15.3402 82.3235 15.3402C85.4723 15.3402 88.0006 17.7666 88.0006 20.9101C88.0006 24.0535 85.4723 26.4806 82.3235 26.4806C79.1746 26.4806 76.647 24.0542 76.647 20.9101ZM84.787 20.9101C84.787 19.4123 83.7161 18.4206 82.3235 18.4206C80.9309 18.4206 79.8599 19.4123 79.8599 20.9101C79.8599 22.4078 80.9309 23.4002 82.3235 23.4002C83.7161 23.4002 84.787 22.4085 84.787 20.9101Z" fill="white"/> 1395 <path fill-rule="evenodd" clip-rule="evenodd" d="M102.5 37L102.5 3L104.5 3L104.5 37H102.5Z" fill="#95E1BA"/> 1396 <path d="M116.564 4.2H118.622V14H116.564V4.2ZM122.108 4.2H124.488L120.428 8.792L124.698 14H122.262L118.034 8.848L122.108 4.2ZM127.063 11.48C127.063 11.9 127.147 12.2267 127.315 12.46C127.483 12.684 127.754 12.796 128.127 12.796C128.388 12.796 128.612 12.7447 128.799 12.642C128.995 12.53 129.144 12.376 129.247 12.18C129.359 11.984 129.415 11.7507 129.415 11.48V7.56H131.221V14H129.415V13.02C129.21 13.384 128.948 13.664 128.631 13.86C128.314 14.0467 127.926 14.14 127.469 14.14C126.704 14.14 126.13 13.9207 125.747 13.482C125.374 13.0433 125.187 12.4413 125.187 11.676V7.56H127.063V11.48ZM134.785 17.08H132.965V7.56H134.785V17.08ZM140.077 10.78C140.077 11.508 139.933 12.1287 139.643 12.642C139.354 13.1553 138.971 13.5427 138.495 13.804C138.029 14.0653 137.525 14.196 136.983 14.196C136.433 14.196 135.952 14.056 135.541 13.776C135.14 13.496 134.827 13.0993 134.603 12.586C134.389 12.0727 134.281 11.4707 134.281 10.78C134.281 10.08 134.389 9.478 134.603 8.974C134.827 8.46067 135.14 8.064 135.541 7.784C135.952 7.504 136.433 7.364 136.983 7.364C137.525 7.364 138.029 7.49467 138.495 7.756C138.971 8.01733 139.354 8.40467 139.643 8.918C139.933 9.422 140.077 10.0427 140.077 10.78ZM138.201 10.78C138.201 10.3973 138.122 10.0707 137.963 9.8C137.805 9.52933 137.59 9.324 137.319 9.184C137.058 9.044 136.769 8.974 136.451 8.974C136.181 8.974 135.915 9.044 135.653 9.184C135.401 9.31467 135.191 9.51533 135.023 9.786C134.865 10.0567 134.785 10.388 134.785 10.78C134.785 11.172 134.865 11.5033 135.023 11.774C135.191 12.0447 135.401 12.25 135.653 12.39C135.915 12.5207 136.181 12.586 136.451 12.586C136.769 12.586 137.058 12.516 137.319 12.376C137.59 12.236 137.805 12.0307 137.963 11.76C138.122 11.4893 138.201 11.1627 138.201 10.78ZM144.8 7.56H148.776V9.086H144.8V7.56ZM145.906 5.32H147.656V14H145.906V5.32ZM152.78 14.14C152.08 14.14 151.468 14 150.946 13.72C150.423 13.44 150.017 13.0527 149.728 12.558C149.448 12.054 149.308 11.4613 149.308 10.78C149.308 10.0893 149.448 9.49667 149.728 9.002C150.
1396017 8.498 150.423 8.11067 150.946 7.84C151.468 7.56 152.084 7.42 152.794 7.42C153.503 7.42 154.105 7.55067 154.6 7.812C155.104 8.064 155.486 8.43733 155.748 8.932C156.009 9.41733 156.14 10.0053 156.14 10.696C156.14 10.78 156.135 10.8687 156.126 10.962C156.126 11.0553 156.121 11.13 156.112 11.186H150.344V10.066H154.53L154.04 10.71C154.077 10.654 154.11 10.5793 154.138 10.486C154.175 10.3833 154.194 10.2993 154.194 10.234C154.194 9.91667 154.133 9.646 154.012 9.422C153.9 9.198 153.736 9.02067 153.522 8.89C153.307 8.75933 153.055 8.694 152.766 8.694C152.411 8.694 152.112 8.77333 151.87 8.932C151.636 9.08133 151.454 9.31 151.324 9.618C151.202 9.91667 151.137 10.29 151.128 10.738C151.128 11.1673 151.188 11.5313 151.31 11.83C151.44 12.1287 151.632 12.3573 151.884 12.516C152.136 12.6747 152.439 12.754 152.794 12.754C153.195 12.754 153.536 12.6793 153.816 12.53C154.105 12.3713 154.343 12.138 154.53 11.83L156.112 12.32C155.776 12.9267 155.328 13.384 154.768 13.692C154.217 13.9907 153.554 14.14 152.78 14.14ZM159.285 7.56V14H157.507V7.56H159.285ZM161.175 9.45C161.054 9.338 160.928 9.254 160.797 9.198C160.676 9.13267 160.522 9.1 160.335 9.1C160.111 9.1 159.92 9.16067 159.761 9.282C159.603 9.40333 159.481 9.576 159.397 9.8C159.323 10.0147 159.285 10.276 159.285 10.584L158.781 10.08C158.781 9.56667 158.879 9.114 159.075 8.722C159.271 8.32067 159.528 8.00333 159.845 7.77C160.163 7.52733 160.489 7.406 160.825 7.406C161.059 7.406 161.278 7.448 161.483 7.532C161.698 7.616 161.871 7.742 162.001 7.91L161.175 9.45ZM164.25 11.998C164.25 12.1847 164.297 12.348 164.39 12.488C164.484 12.6187 164.61 12.7213 164.768 12.796C164.936 12.8613 165.118 12.894 165.314 12.894C165.594 12.894 165.846 12.838 166.07 12.726C166.294 12.6047 166.476 12.4367 166.616 12.222C166.756 11.998 166.826 11.732 166.826 11.424L167.05 12.264C167.05 12.6747 166.934 13.02 166.7 13.3C166.476 13.58 166.182 13.79 165.818 13.93C165.464 14.07 165.09 14.14 164.698 14.14C164.297 14.14 163.924 14.0607 163.578 13.902C163.233 13.7433 162.953 13.5147 162.738 13.216C162.533 12.908 162.43 12.5347 162.43 12.096C162.43 11.4707 162.65 10.976 163.088 10.612C163.527 10.248 164.148 10.066 164.95 10.066C165.361 10.066 165.72 10.108 166.028 10.192C166.346 10.276 166.612 10.3787 166.826 10.5C167.041 10.6213 167.195 10.738 167.288 10.85V11.69C167.036 11.5033 166.752 11.3633 166.434 11.27C166.126 11.1767 165.8 11.13 165.454 11.13C165.174 11.13 164.946 11.1673 164.768 11.242C164.591 11.3073 164.46 11.4053 164.376 11.536C164.292 11.6573 164.25 11.8113 164.25 11.998ZM163.55 9.38L162.878 8.148C163.214 7.97067 163.625 7.80267 164.11 7.644C164.596 7.476 165.137 7.392 165.734 7.392C166.285 7.392 166.775 7.47133 167.204 7.63C167.634 7.78867 167.97 8.022 168.212 8.33C168.455 8.62867 168.576 8.99733 168.576 9.436V14H166.826V9.814C166.826 9.63667 166.798 9.48733 166.742 9.366C166.686 9.23533 166.598 9.128 166.476 9.044C166.364 8.96 166.229 8.89933 166.07 8.862C165.912 8.82467 165.734 8.806 165.538 8.806C165.24 8.806 164.955 8.83867 164.684 8.904C164.414 8.96933 164.18 9.04867 163.984 9.142C163.788 9.23533 163.644 9.31467 163.55 9.38ZM173.147 9.212H170.123V7.56H176.199L172.741 12.348H175.793V14H169.577L173.147 9.212ZM116.312 23.068C116.312 22.7693 116.419 22.5267 116.634 22.34C116.849 22.144 117.105 22.046 117.404 22.046C117.703 22.046 117.955 22.144 118.16 22.34C118.375 22.5267 118.482 22.7693 118.482 23.068C118.482 23.3573 118.375 23.6 118.16 23.796C117.955 23.992 117.703 24.09 117.404 24.09C117.105 24.09 116.849 23.992 116.634 23.796C116.419 23.6 116.312 23.3573 116.312 23.068ZM116.508 25.56H118.272V32H116.508V25.56ZM127.278 27.212H124.254V25.56H130.33L126.872 30.348H129.924V32H123.708L127.278 27.212ZM132.723 29.998C132.723 30.1847 132.77 30.348 132.863 30.488C132.956 30.6187 133.082 30.7213 133.241 30.796C133.409 30.8613 133.591 30.894 133.787 30.894C134.067 30.894 134.319 30.838 134.543 30.726C134.767 30.6047 134.949 30.4367 135.089 30.222C135.229 29.998 135.299 29.732 135.299 29.424L135.523 30.264C135.523 30.6747 135.406 31.02 135.173 31.3C134.949 31.58 134.655 31.79 134.291 31.93C133.936 32.07 133.563 32.14 133.171 32.14C132.77 32.14 132.396 32.0607 132.051 31.902C131.706 31.7433 131.426 31.5147 131.211 31.216C131.006 30.908 130.903 30.5347 130.903 30.096C130.903 29.4707 131.122 28.976 131.561 28.612C132 28.248 132.62 28.066 133.423 28.066C133.834 28.066 134.193 28.108 134.501 28.192C134.818 28.276 135.084 28.3787 135.299 28.5C135.514 28.6213 135.668 28.738 135.761 28.85V29.69C135.509 29.5033 135.224 29.3633 134.907 29.27C134.599 29.1767 134.272 29.13 133.927 29.13C133.647 29.13 133.418 29.1673 133.241 29.242C133.064 29.3073 132.933 29.4053 132.849 29.536C132.765 29.6573 132.723 29.8113 132.723 29.998ZM132.023 27.38L131.351 26.148C131.687 25.9707 132.098 25.8027 132.583 25.644C133.068 25.476 133.61 25.392 134.207 25.392C134.758 25.392 135.248 25.4713 135.677 25.63C136.106 25.7887 136.442 26.022 136.685 26.33C136.928 26.6287 137.049 26.9973 137.049 27.436V32H135.299V27.814C135.299 27.6367 135.271 27.4873 135.215 27.366C135.159 27.2353 135.07 27.128 134.949 27.044C134.837 26.96 134.702 26.8993 134.543 26.862C134.384 26.8247 134.207 26.806 134.011 26.806C133.712 26.806 133.428 26.8387 133.157 26.904C132.886 26.9693 132.653 27.0487 132.457 27.142C132.261 27.2353 132.116 27.3147 132.023 27.38ZM140.514 35.08H138.694V25.56H140.514V35.08ZM145.806 28.78C145.806 29.508 145.661 30.1287 145.372 30.642C145.083 31.1553 144.7 31.5427 144.224 31.804C143.757 32.0653 143.253 32.196 142.712 32.196C142.161 32.196 141.681 32.056 141.27 31.776C140.869 31.496 140.556 31.0993 140.332 30.586C140.11
13967 30.0727 140.01 29.4707 140.01 28.78C140.01 28.08 140.117 27.478 140.332 26.974C140.556 26.4607 140.869 26.064 141.27 25.784C141.681 25.504 142.161 25.364 142.712 25.364C143.253 25.364 143.757 25.4947 144.224 25.756C144.7 26.0173 145.083 26.4047 145.372 26.918C145.661 27.422 145.806 28.0427 145.806 28.78ZM143.93 28.78C143.93 28.3973 143.851 28.0707 143.692 27.8C143.533 27.5293 143.319 27.324 143.048 27.184C142.787 27.044 142.497 26.974 142.18 26.974C141.909 26.974 141.643 27.044 141.382 27.184C141.13 27.3147 140.92 27.5153 140.752 27.786C140.593 28.0567 140.514 28.388 140.514 28.78C140.514 29.172 140.593 29.5033 140.752 29.774C140.92 30.0447 141.13 30.25 141.382 30.39C141.643 30.5207 141.909 30.586 142.18 30.586C142.497 30.586 142.787 30.516 143.048 30.376C143.319 30.236 143.533 30.0307 143.692 29.76C143.851 29.4893 143.93 29.1627 143.93 28.78ZM146.206 27.534L145.758 26.596L150.028 23.824L150.49 24.776L146.206 27.534ZM147.158 21.08H148.978V32H147.158V21.08ZM152.055 29.998C152.055 30.1847 152.102 30.348 152.195 30.488C152.288 30.6187 152.414 30.7213 152.573 30.796C152.741 30.8613 152.923 30.894 153.119 30.894C153.399 30.894 153.651 30.838 153.875 30.726C154.099 30.6047 154.281 30.4367 154.421 30.222C154.561 29.998 154.631 29.732 154.631 29.424L154.855 30.264C154.855 30.6747 154.738 31.02 154.505 31.3C154.281 31.58 153.987 31.79 153.623 31.93C153.268 32.07 152.895 32.14 152.503 32.14C152.102 32.14 151.728 32.0607 151.383 31.902C151.038 31.7433 150.758 31.5147 150.543 31.216C150.338 30.908 150.235 30.5347 150.235 30.096C150.235 29.4707 150.454 28.976 150.893 28.612C151.332 28.248 151.952 28.066 152.755 28.066C153.166 28.066 153.525 28.108 153.833 28.192C154.15 28.276 154.416 28.3787 154.631 28.5C154.846 28.6213 155 28.738 155.093 28.85V29.69C154.841 29.5033 154.556 29.3633 154.239 29.27C153.931 29.1767 153.604 29.13 153.259 29.13C152.979 29.13 152.75 29.1673 152.573 29.242C152.396 29.3073 152.265 29.4053 152.181 29.536C152.097 29.6573 152.055 29.8113 152.055 29.998ZM151.355 27.38L150.683 26.148C151.019 25.9707 151.43 25.8027 151.915 25.644C152.4 25.476 152.942 25.392 153.539 25.392C154.09 25.392 154.58 25.4713 155.009 25.63C155.438 25.7887 155.774 26.022 156.017 26.33C156.26 26.6287 156.381 26.9973 156.381 27.436V32H154.631V27.814C154.631 27.6367 154.603 27.4873 154.547 27.366C154.491 27.2353 154.402 27.128 154.281 27.044C154.169 26.96 154.034 26.8993 153.875 26.862C153.716 26.8247 153.539 26.806 153.343 26.806C153.044 26.806 152.76 26.8387 152.489 26.904C152.218 26.9693 151.985 27.0487 151.789 27.142C151.593 27.2353 151.448 27.3147 151.355 27.38ZM159.44 28.78C159.44 29.1533 159.524 29.48 159.692 29.76C159.86 30.04 160.084 30.2593 160.364 30.418C160.653 30.5767 160.971 30.656 161.316 30.656C161.596 30.656 161.867 30.614 162.128 30.53C162.389 30.4367 162.623 30.3153 162.828 30.166C163.043 30.0073 163.206 29.8253 163.318 29.62V31.482C163.094 31.6873 162.8 31.8507 162.436 31.972C162.081 32.084 161.666 32.14 161.19 32.14C160.509 32.14 159.893 32 159.342 31.72C158.801 31.44 158.371 31.048 158.054 30.544C157.746 30.0307 157.592 29.4427 157.592 28.78C157.592 28.108 157.746 27.52 158.054 27.016C158.371 26.512 158.801 26.12 159.342 25.84C159.893 25.56 160.509 25.42 161.19 25.42C161.666 25.42 162.081 25.4807 162.436 25.602C162.8 25.714 163.094 25.868 163.318 26.064V27.926C163.206 27.7207 163.038 27.5433 162.814 27.394C162.599 27.2353 162.361 27.114 162.1 27.03C161.839 26.946 161.577 26.904 161.316 26.904C160.971 26.904 160.653 26.988 160.364 27.156C160.084 27.3147 159.86 27.534 159.692 27.814C159.524 28.094 159.44 28.416 159.44 28.78ZM163.01 22.48L160.49 24.58L159.468 24.034L161.568 21.794L163.01 22.48ZM171.999 27.212H168.975V25.56H175.051L171.593 30.348H174.645V32H168.429L171.999 27.212ZM177.444 29.998C177.444 30.1847 177.49 30.348 177.584 30.488C177.677 30.6187 177.803 30.7213 177.962 30.796C178.13 30.8613 178.312 30.894 178.508 30.894C178.788 30.894 179.04 30.838 179.264 30.726C179.488 30.6047 179.67 30.4367 179.81 30.222C179.95 29.998 180.02 29.732 180.02 29.424L180.244 30.264C180.244 30.6747 180.127 31.02 179.894 31.3C179.67 31.58 179.376 31.79 179.012 31.93C178.657 32.07 178.284 32.14 177.892 32.14C177.49 32.14 177.117 32.0607 176.772 31.902C176.426 31.7433 176.146 31.5147 175.932 31.216C175.726 30.908 175.624 30.5347 175.624 30.096C175.624 29.4707 175.843 28.976 176.282 28.612C176.72 28.248 177.341 28.066 178.144 28.066C178.554 28.066 178.914 28.108 179.222 28.192C179.539 28.276 179.805 28.3787 180.02 28.5C180.234 28.6213 180.388 28.738 180.482 28.85V29.69C180.23 29.5033 179.945 29.3633 179.628 29.27C179.32 29.1767 178.993 29.13 178.648 29.13C178.368 29.13 178.139 29.1673 177.962 29.242C177.784 29.3073 177.654 29.4053 177.57 29.536C177.486 29.6573 177.444 29.8113 177.444 29.998ZM176.744 27.38L176.072 26.148C176.408 25.9707 176.818 25.8027 177.304 25.644C177.789 25.476 178.33 25.392 178.928 25.392C179.478 25.392 179.968 25.4713 180.398 25.63C180.827 25.7887 181.163 26.022 181.406 26.33C181.648 26.6287 181.77 26.9973 181.77 27.436V32H180.02V27.814C180.02 27.6367 179.992 27.4873 179.936 27.366C179.88 27.2353 179.791 27.128 179.67 27.044C179.558 26.96 179.422 26.8993 179.264 26.862C179.105 26.8247 178.928 26.806 178.732 26.806C178.433 26.806 178.148 26.8387 177.878 26.904C177.607 26.9693 177.374 27.0487 177.178 27.142C176.982 27.2353 176.837 27.3147 176.744 27.38ZM190.51 27.226V26.26C190.799 26.26 191.056 26.2227 191.28 26.148C191.513 26.0733 191.709 25.9707 191.868 25.84C192.026 25.7 192.148 25.546 192.232 25.378C192.325 25.2007 192.372 25.0187 192.372 24.832C192.372 24.5987 192.325 24.3933 192.232 24.216C192.138 24.0387 192.003 23.9033 191.826 23.81C191.648 23.7167 191.42 23.67 191.14 23.67C190.748 23.67 190.416 23.7913 190.146 24.034C189.884 24.2673 189.754 24.566 189.754 24.93H187.892C187.892 24.37 188.027 23.8753
1396188.298 23.446C188.578 23.0073 188.96 22.662 189.446 22.41C189.931 22.158 190.496 22.032 191.14 22.032C191.821 22.032 192.4 22.1533 192.876 22.396C193.361 22.6387 193.73 22.9607 193.982 23.362C194.234 23.7633 194.36 24.2113 194.36 24.706C194.36 25.238 194.192 25.6953 193.856 26.078C193.52 26.4513 193.062 26.736 192.484 26.932C191.905 27.128 191.247 27.226 190.51 27.226ZM191.056 32.196C190.496 32.196 189.996 32.112 189.558 31.944C189.119 31.776 188.746 31.5473 188.438 31.258C188.13 30.9593 187.892 30.6233 187.724 30.25C187.556 29.8673 187.472 29.466 187.472 29.046H189.46C189.46 29.3633 189.534 29.634 189.684 29.858C189.833 30.082 190.034 30.2547 190.286 30.376C190.538 30.488 190.813 30.544 191.112 30.544C191.42 30.544 191.686 30.4927 191.91 30.39C192.143 30.278 192.325 30.1193 192.456 29.914C192.586 29.7087 192.652 29.452 192.652 29.144C192.652 28.92 192.605 28.7147 192.512 28.528C192.418 28.332 192.278 28.1687 192.092 28.038C191.914 27.9073 191.69 27.8093 191.42 27.744C191.158 27.6693 190.855 27.632 190.51 27.632V26.568C191.107 26.568 191.653 26.6193 192.148 26.722C192.652 26.8247 193.09 26.9927 193.464 27.226C193.837 27.45 194.126 27.7393 194.332 28.094C194.537 28.4393 194.64 28.8593 194.64 29.354C194.64 29.914 194.49 30.4087 194.192 30.838C193.902 31.2673 193.487 31.6033 192.946 31.846C192.414 32.0793 191.784 32.196 191.056 32.196ZM197.617 27.1C197.617 27.5947 197.664 28.0473 197.757 28.458C197.851 28.8593 197.986 29.2093 198.163 29.508C198.341 29.7973 198.551 30.0213 198.793 30.18C199.036 30.3387 199.307 30.418 199.605 30.418C199.913 30.418 200.189 30.3387 200.431 30.18C200.674 30.0213 200.884 29.7973 201.061 29.508C201.239 29.2093 201.374 28.8593 201.467 28.458C201.561 28.0473 201.607 27.5947 201.607 27.1C201.607 26.6053 201.561 26.1573 201.467 25.756C201.374 25.3453 201.239 24.9953 201.061 24.706C200.884 24.4073 200.674 24.1787 200.431 24.02C200.189 23.8613 199.913 23.782 199.605 23.782C199.307 23.782 199.036 23.8613 198.793 24.02C198.551 24.1787 198.341 24.4073 198.163 24.706C197.986 24.9953 197.851 25.3453 197.757 25.756C197.664 26.1573 197.617 26.6053 197.617 27.1ZM195.671 27.1C195.671 26.064 195.835 25.168 196.161 24.412C196.497 23.656 196.959 23.0727 197.547 22.662C198.145 22.242 198.831 22.032 199.605 22.032C200.408 22.032 201.103 22.242 201.691 22.662C202.279 23.0727 202.737 23.656 203.063 24.412C203.39 25.168 203.553 26.064 203.553 27.1C203.553 28.136 203.39 29.032 203.063 29.788C202.737 30.544 202.279 31.132 201.691 31.552C201.103 31.9627 200.408 32.168 199.605 32.168C198.831 32.168 198.145 31.9627 197.547 31.552C196.959 31.132 196.497 30.544 196.161 29.788C195.835 29.032 195.671 28.136 195.671 27.1ZM214.059 21.08H215.879V32H214.059V21.08ZM208.767 28.78C208.767 28.0613 208.911 27.4547 209.201 26.96C209.49 26.456 209.873 26.0733 210.349 25.812C210.825 25.5507 211.329 25.42 211.861 25.42C212.402 25.42 212.878 25.5553 213.289 25.826C213.709 26.0967 214.035 26.484 214.269 26.988C214.511 27.4827 214.633 28.08 214.633 28.78C214.633 29.4707 214.511 30.068 214.269 30.572C214.035 31.076 213.709 31.4633 213.289 31.734C212.878 32.0047 212.402 32.14 211.861 32.14C211.329 32.14 210.825 32.0093 210.349 31.748C209.873 31.4867 209.49 31.104 209.201 30.6C208.911 30.096 208.767 29.4893 208.767 28.78ZM210.643 28.78C210.643 29.1627 210.722 29.494 210.881 29.774C211.039 30.054 211.254 30.2687 211.525 30.418C211.795 30.5673 212.085 30.642 212.393 30.642C212.663 30.642 212.925 30.572 213.177 30.432C213.438 30.2827 213.648 30.068 213.807 29.788C213.975 29.508 214.059 29.172 214.059 28.78C214.059 28.388 213.975 28.052 213.807 27.772C213.648 27.492 213.438 27.282 213.177 27.142C212.925 26.9927 212.663 26.918 212.393 26.918C212.085 26.918 211.795 26.9927 211.525 27.142C211.254 27.2913 211.039 27.506 210.881 27.786C210.722 28.066 210.643 28.3973 210.643 28.78ZM221.781 28.08C221.781 27.6507 221.697 27.324 221.529 27.1C221.361 26.876 221.09 26.764 220.717 26.764C220.465 26.764 220.241 26.82 220.045 26.932C219.849 27.0347 219.699 27.184 219.597 27.38C219.494 27.576 219.443 27.8093 219.443 28.08V32H217.623V25.56H219.443V26.54C219.639 26.176 219.895 25.9007 220.213 25.714C220.539 25.518 220.931 25.42 221.389 25.42C222.154 25.42 222.723 25.6393 223.097 26.078C223.47 26.5073 223.657 27.1093 223.657 27.884V32H221.781V28.08ZM225.359 23.068C225.359 22.7693 225.466 22.5267 225.681 22.34C225.896 22.144 226.152 22.046 226.451 22.046C226.75 22.046 227.002 22.144 227.207 22.34C227.422 22.5267 227.529 22.7693 227.529 23.068C227.529 23.3573 227.422 23.6 227.207 23.796C227.002 23.992 226.75 24.09 226.451 24.09C226.152 24.09 225.896 23.992 225.681 23.796C225.466 23.6 225.359 23.3573 225.359 23.068ZM225.555 25.56H227.319V32H225.555V25.56ZM229.412 31.174C229.412 30.8567 229.519 30.5907 229.734 30.376C229.958 30.152 230.233 30.04 230.56 30.04C230.896 30.04 231.171 30.152 231.386 30.376C231.6 30.5907 231.708 30.8567 231.708 31.174C231.708 31.4727 231.6 31.734 231.386 31.958C231.171 32.182 230.896 32.294 230.56 32.294C230.233 32.294 229.958 32.182 229.734 31.958C229.519 31.734 229.412 31.4727 229.412 31.174Z" fill="white"/> 1397 </svg>`);document.querySelector('.paypo__open').addEventListener('click',function(){document.body.style.overflow='hidden',document.querySelector('.paypo__dialog').setAttribute('open',!0)}),document.querySelector('.paypo__dialog').addEventListener('click',function(){document.body.style.overflow='auto',document.querySelector('.paypo__dialog').removeAttribute('open')})})} 1398if($('#blik_place_pozniej_widget').length){let svgBg=skyTheme?'#F2F2F2':'#fff';window.addEventListener('DOMContentLoaded',function(){document.querySelector('#blik_place_pozniej_widget').insertAdjacentHTML('beforebegin',`<?xml version="1.0" encoding="UTF-8"?> 1399<svg style="max-width: 248px; height: 24px; fill="${svgBg}
1399" viewBox="0 0 248 24" xmlns="http://www.w3.org/2000/svg"> 1400<g clip-path="url(#f)"> 1401<path d="m50.249 4.7162c0.3922 0 0.7844 0.04938 1.0785 0.14815 0.2941 0.09876 0.5393 0.24691 0.7354 0.39506 0.196 0.14814 0.3431 0.39506 0.4412 0.59259 0.098 0.24691 0.147 0.49383 0.147 0.74074 0 0.2963-0.049 0.54321-0.147 0.79012-0.0981 0.24692-0.2452 0.44445-0.4412 0.64198-0.1961 0.19753-0.4413 0.29629-0.7354 0.39506s-0.6373 0.14815-1.0295 0.14815h-0.7354v1.9754h-1.3726v-5.8272h2.059zm0 2.9136c0.3431 0 0.5883-0.09877 0.7353-0.24692 0.1471-0.14815 0.2451-0.39506 0.2451-0.69136 0-0.14814 1e-4 -0.24691-0.049-0.34567-0.049-0.09877-0.098-0.19754-0.1961-0.2963-0.098-0.09877-0.1961-0.14815-0.2941-0.19753-0.1471-0.04938-0.2942-0.04938-0.4412-0.04938h-0.6864v1.8272h0.6864zm7.3045 1.8765v1.0864h-3.4807v-2.0246l-0.6863 0.34568v-0.93827c0-0.09877 0.049-0.19754 0.1471-0.19754l0.5392-0.29629v-2.7654h1.3727v2.1234l1.3236-0.64197v0.93827c0 0.14815-0.049 0.19753-0.1471 0.24691l-1.1765 0.5926v1.5309h2.108zm6.4711 1.0864h-1.0295c-0.098 0-0.1961-0.0493-0.2941-0.0987-0.0981-0.0494-0.1471-0.1482-0.1471-0.1976l-0.3432-1.037h-2.206l-0.3432 1.037c-0.049 0.0988-0.098 0.1482-0.1471 0.1976-0.049 0.0494-0.147 0.0987-0.2941 0.0987h-1.0295l2.2551-5.8765h1.3726l2.2061 5.8765zm-2.108-2.2222-0.5393-1.5802c-0.049-0.09877-0.098-0.19753-0.147-0.34568-0.0491-0.14815-0.0981-0.29629-0.1471-0.44444-0.049 0.14815-0.0981 0.29629-0.1471 0.44444s-0.098 0.24691-0.1471 0.34568l-0.5392 1.5802h1.6668zm6.9123 0.69136h0.0981c0.049 0 0.049 0.04938 0.098 0.04938l0.5393 0.54321c-0.2452 0.29629-0.5393 0.54323-0.8825 0.69133-0.3431 0.1482-0.7843 0.2469-1.2746 0.2469-0.4412 0-0.8334-0.0987-1.1765-0.2469-0.3432-0.1481-0.6373-0.3457-0.8825-0.64195-0.2451-0.24691-0.4412-0.59259-0.5392-0.93827-0.1471-0.34568-0.1961-0.74074-0.1961-1.1852 0-0.44444 0.049-0.8395 0.1961-1.1852s0.3431-0.69136 0.5883-0.93827c0.2451-0.24692 0.5392-0.49383 0.9314-0.64198 0.3432-0.14815 0.7354-0.19753 1.1766-0.19753 0.1961 0 0.4412 0 0.6373 0.04938 0.1961 0.04939 0.3922 0.09877 0.5392 0.14815 0.1471 0.04938 0.3432 0.14815 0.4412 0.24691 0.1471 0.09877 0.2452 0.19754 0.3922 0.2963l-0.4412 0.59259c-0.049 0.04939-0.049 0.04939-0.098 0.09877s-0.0981 0.04938-0.1471 0.04938-0.098 0-0.1471-0.04938c-0.049-0.04938-0.098-0.04938-0.147-0.09877-0.0491-0.04938-0.0981-0.04938-0.1471-0.09876s-0.1471-0.04938-0.1961-0.09877c-0.049-0.04938-0.1471-0.04938-0.2941-0.09876-0.0981 0-0.2452-0.04938-0.3922-0.04938-0.2451 0-0.4412 0.04938-0.5883 0.14814-0.1961 0.09877-0.3432 0.19754-0.4902 0.34568-0.1471 0.14815-0.2452 0.34568-0.2942 0.59259-0.049 0.24692-0.098 0.49383-0.098 0.79013s0.049 0.54321 0.098 0.79012c0.0981 0.24692 0.1961 0.44445 0.3432 0.59259 0.1471 0.14815 0.2941 0.2963 0.4902 0.34568 0.1961 0.09877 0.3922 0.14815 0.5883 0.14815h0.3432c0.098 0 0.1961-0.04938 0.2941-0.04938 0.0981-0.04938 0.1471-0.04938 0.2451-0.09877 0.0981-0.04938 0.1471-0.09876 0.2451-0.19753 0.0491-0.04938 0.0491-0.04938 0.0981-0.04938s0 0.09877 0.049 0.09877zm3.2846-3.2593v1.3333h1.8139v0.98765h-1.8139v1.3827h2.4021v1.0864h-0.3431c-0.0981 0.0494-0.1961 0.1482-0.2451 0.1976-0.0491 0.0987-0.0981 0.1975-0.0981 0.2963 0 0.0493 0 0.0987 0.049 0.1481 0.0491 0.0494 0.0981 0.0494 0.1471 0.0494h0.0981 0.098 0.049c0.049 0 0.0981 0.0494 0.0981 0.0988l0.1961 0.4444c-0.0981 0.0494-0.1961 0.0988-0.3432 0.1482-0.1471 0.0493-0.2941 0.0493-0.4412 0.0493-0.2942 0-0.4902-0.0493-0.6373-0.1481s-0.2451-0.2469-0.2451-0.4445c0-0.1481 0.049-0.2962 0.147-0.395 0.0981-0.0988 0.2452-0.2469 0.4413-0.3951h-2.6473v-5.9259h3.7258v1.037h-2.4512v0.04939z" fill="#000"/> 1402<path d="m49.955 14.494c0.3922 0 0.7844 0.0493 1.0785 0.1481s0.5393 0.2469 0.7353 0.3951c0.1961 0.1481 0.3432 0.395 0.4413 0.5926 0.098 0.1975 0.147 0.4938 0.147 0.7407 0 0.2963-0.049 0.5432-0.147 0.7901-0.0981 0.2469-0.2452 0.4445-0.4413 0.642-0.196 0.1975-0.4412 0.2963-0.7353 0.3951-0.2941 0.0987-0.6373 0.1481-1.0295 0.1481h-0.6863v1.9753h-1.3727v-5.8271h2.01zm0 2.8642c0.3431 0 0.5883-0.0988 0.7353-0.247 0.1471-0.1481 0.2451-0.395 0.2451-0.6913 0-0.1482 0-0.2469-0.049-0.3457s-0.098-0.1975-0.1961-0.2963c-0.098-0.0988-0.1961-0.1481-0.2941-0.1975-0.1471-0.0494-0.2942-0.0494-0.4412-0.0494h-0.6864v1.8765l0.6864-0.0493z" fill="url(#a)"/>
1403<path d="m59.073 17.408c0 0.4445-0.0491 0.8395-0.1961 1.1852-0.1471 0.3457-0.3432 0.6914-0.5883 0.9383s-0.5883 0.4938-0.9315 0.642c-0.3922 0.1481-0.7843 0.2469-1.2256 0.2469-0.4412 0-0.8824-0.0988-1.2255-0.2469-0.3922-0.1482-0.6864-0.3457-0.9315-0.642-0.2451-0.2469-0.4902-0.5926-0.6373-0.9383s-0.1961-0.7407-0.1961-1.1852c0-0.4444 0.049-0.8395 0.1961-1.1852 0.1471-0.3456 0.3432-0.6913 0.6373-0.9382 0.2451-0.2469 0.5883-0.4938 0.9315-0.642 0.3921-0.1481 0.7843-0.2469 1.2255-0.2469 0.4413 0 0.8825 0.0988 1.2256 0.2469 0.3922 0.1482 0.6864 0.3457 0.9315 0.642 0.2451 0.2469 0.4902 0.5926 0.5883 0.9382 0.147 0.3457 0.1961 0.7408 0.1961 1.1852zm-1.3727 0c0-0.2963-0.049-0.5432-0.0981-0.7901-0.098-0.2469-0.196-0.4444-0.3431-0.5926-0.1471-0.1481-0.2942-0.2963-0.4903-0.3457-0.196-0.0987-0.4412-0.1481-0.6863-0.1481s-0.4902 0.0494-0.6863 0.1481c-0.1961 0.0988-0.3922 0.1976-0.4902 0.3457-0.1471 0.1482-0.2452 0.3457-0.3432 0.5926-0.0981 0.2469-0.0981 0.4938-0.0981 0.7901s0.0491 0.5432 0.0981 0.7902c0.098 0.2469 0.1961 0.4444 0.3432 0.5925 0.147 0.1482 0.2941 0.2963 0.4902 0.3457 0.1961 0.0988 0.4412 0.1482 0.6863 0.1482s0.4903-0.0494 0.6863-0.1482c0.1961-0.0987 0.3922-0.1975 0.4903-0.3457 0.1471-0.1481 0.2451-0.3456 0.3431-0.5925 0.0491-0.247 0.0981-0.4939 0.0981-0.7902zm0.1961-4.5926-1.2746 1.1358c-0.049 0.0494-0.049 0.0494-0.0981 0.0494-0.049 0-0.049 0.0494-0.098 0.0494h-0.0981-0.098-0.8824l0.7353-1.0864c0.049-0.0494 0.049-0.0988 0.0981-0.0988 0.049-0.0494 0.049-0.0494 0.098-0.0494h0.1471 0.1471 1.3236z" fill="url(#a)"/> 1404<path d="m64.27 14.988c0 0.0494 0 0.1481-0.0491 0.1975-0.049 0.0494-0.049 0.1482-0.098 0.1975l-2.7453 3.9507h2.7943v1.037h-4.5102v-0.5432c0-0.0494 0-0.0988 0.0491-0.1975 0-0.0494 0.049-0.0988 0.098-0.1482l2.7453-3.9506h-2.6472v-1.037h4.3631v0.4938zm-0.3432-2.1729-1.2746 1.1358c-0.049 0.0494-0.049 0.0494-0.0981 0.0494-0.049 0-0.049 0.0494-0.098 0.0494h-0.0981-0.098-0.9315l0.7354-1.0864c0.049-0.0494 0.049-0.0988 0.098-0.0988 0.0491-0.0494 0.0491-0.0494 0.0981-0.0494h0.1471 0.147 1.3727z" fill="url(#a)"/> 1405<path d="m70.496 14.494v5.8765h-0.6863c-0.098 0-0.1961 0-0.2451-0.0494s-0.1471-0.0987-0.1961-0.1975l-2.7453-3.5062v0.2963 0.2963 3.1605h-1.1766v-5.8765h0.6864 0.147c0.049 0 0.0981 0 0.0981 0.0493 0.049 0 0.049 0.0494 0.098 0.0494 0.049 0.0494 0.049 0.0494 0.0981 0.0988l2.7453 3.5062c0-0.0988 0-0.1976-0.049-0.3457-0.0491-0.1482 0-0.1976 0-0.2963v-3.1111l1.2255 0.0494z" fill="url(#a)"/> 1406<path d="m73.388 20.321h-1.3726v-5.8271h1.3726v5.8271z" fill="url(#a)"/> 1407<path d="m76.232 15.531v1.3827h1.8139v0.9877h-1.8139v1.3827h2.4022v1.037h-3.7258v-5.8271h3.7258v1.037h-2.4022z" fill="url(#a)"/> 1408<path d="m82.262 18.198c0 0.3456-0.049 0.6419-0.098 0.8888-0.0981 0.247-0.1961 0.4939-0.3432 0.6914s-0.3922 0.3457-0.6373 0.4444c-0.2451 0.0988-0.5393 0.1482-0.8824 0.1482h-0.4412c-0.1471 0-0.2942-0.0494-0.4413-0.0988l0.0491-0.7901c0-0.0494 0.049-0.1481 0.098-0.1481s0.0981-0.0494 0.1961-0.0494h0.1471 0.2451c0.1471 0 0.2451 0 0.3432-0.0494 0.098-0.0494 0.1961-0.0988 0.2451-0.1975 0.049-0.0988 0.098-0.1976 0.147-0.3457 0.0491-0.1482 0.0491-0.2963 0.0491-0.4938v-3.7531h1.3726v3.7531h-0.049z" fill="url(#a)"/> 1409<g clip-path="url(#e)"> 1410<path d="M38.7723 2H2.4625C1.11054 2 0 3.1358 0 4.51852V19.4815C0 20.8642 1.11054 22 2.4625 22H38.7723C40.1243 22 41.2348 20.8642 41.2348 19.4815V4.51852C41.2831 3.1358 40.1726 2 38.7723 2Z" fill="#fff"/> 1411<path d="m38.772 21.753h-36.31c-1.2071 0-2.1728-0.9877-2.1728-2.2223v-15.012c0-1.2346 0.96569-2.2222 2.1728-2.2222h36.31c1.2071 0 2.1728 0.98766 2.1728 2.2222v14.963c0 1.2345-0.9657 2.2716-2.1728 2.2716z" fill="url(#c)"/> 1412<g filter="url(#d)"> 1413<path d="m16.121 7.1312c0-1.1888-0.9454-2.1399-2.1272-2.1399-1.1819 0-2.1273 0.95108-2.1273 2.1399s0.9454 2.1399 2.1273 2.1399c1.1818-0.04755 2.1272-0.99863 2.1272-2.1399z" fill="#fff"/> 1414<path d="m20.139 5.6571h-2.3636v13.41h2.3636v-13.41z" fill="#fff"/> 1415<path d="m24.583 10.317h-2.3636v8.7974h2.3636v-8.7974z" fill="#fff"/> 1416<path d="m11.677 10.222c-0.7563 0-1.4654 0.1902-2.1272 0.5231v-5.0883h-2.3636v9.0352c0 2.4728 1.9854 4.4701 4.4437 4.4701 2.4582 0 4.4436-1.9973 4.4436-4.4701 0.0473-2.4728-1.9382-4.47-4.3964-4.47zm0 6.6575c-1.1818 0-2.1272-0.9511-2.1272-2.1399 0-1.1889 0.94542-2.1399 2.1272-2.1399 1.1819 0 2.1273 0.951 2.1273 2.1399 0 1.1888-0.9454 2.1399-2.1273 2.1399z" fill="#fff"/> 1417<path d="m20.139 5.6571h-2.3636v13.41h2.3636v-13.41z" fill="#fff"/> 1418<path d="m24.583 10.317h-2.3636v8.7974h2.3636v-8.7974z" fill="#fff"/> 1419<path d="m11.677 10.222c-0.7563 0-1.4654 0.1902-2.1272 0.5231v-5.0883h-2.3636v9.0352c0 2.4728 1.9854 4.4701 4.4437 4.4701 2.4582 0 4.4436-1.9973 4.4436-4.4701 0.0473-2.4728-1.9382-4.47-4.3964-4.47zm0 6.6575c-1.1818 0-2.1272-0.9511-2.1272-2.1399 0-1.1889 0.94542-2.1399 2.1272-2.1399 1.1819 0 2.1273 0.951 2.1273 2.1399 0 1.1888-0.9454 2.1399-2.1273 2.1399z" fill="#fff"/> 1420<path d="m32.335 19.115h3.0254l-3.64-4.7554 3.3091-4.042h-2.7418l-3.2618 4.0896v-8.7499h-2.3636v13.458h2.3636v-4.7078l3.3091 4.7078z" fill="#fff"/> 1421<path d="m13.994 9.2712c1.1748 0 2.1272-0.95808 2.1272-2.1399s-0.9524-2.1399-2.1272-2.1399c-1.1749 0-2.1273 0.95808-2.1273 2.1399s0.9524 2.1399 2.1273 2.1399z" fill="url(#b)"/> 1422</g> 1423</g> 1424</g> 1425<path d="m100.3 17h-1.7516l-2.8882-4.2148-0.914 0.7426v3.4722h-1.5234v-9.2803h1.5234v4.437c0.1862-0.2285 0.3745-0.457 0.5649-0.6855 0.1905-0.2285 0.3809-0.457 0.5713-0.6856l2.6153-3.0659h1.7203l-3.466 4.0625 3.548 5.2178zm7.199-7.0269v7.0269h-1.175l-0.203-0.9458h-0.082c-0.148 0.2412-0.337 0.4422-0.565 0.603-0.229 0.1566-0.483 0.273-0.762 0.3491-0.279 0.0805-0.573 0.1207-0.882 0.1207-0.529 0-0.982-0.0889-1.359-0.2666-0.372-0.182-0.658-0.4613-0.857-0.8379-0.199-0.3767-0.298-0.8633-0.298-1.46v-4.5894h1.498v4.3101c0 0.5459 0.11 0.9543 0.33 1.2251 0.224 0.2708 0.571 0.4063 1.041 0.4063 0.453 0 0.813-0.0931 1.079-0.2793 0.267-0.1862 0.455-0.4613 0.565-0.8252 0.114-0.364 0.172-0.8104 0.172-1.3394v-3.4976h1.498zm5.744-0.1333c0.834 0 1.503 0.30466 2.006 0.91406 0.508 0.6094 0.762 1.515 0.762 2.7168 0 0.7956-0.119 1.4663-0.356 2.0122-0.232 0.5417-0.56 0.9522-0.984 1.2315-0.418 0.275-0.907 0.4126-1.466 0.4126-0.355 0-0.664-0.0466-0.927-0.1397-0.262-0.0931-0.486-0.2137-0.672-0.3618-0.187-0.1524-0.343-0.3174-0.47-0.4951h-0.089c0.021 0.1692 0.04 0.3576 0.057 0.5649 0.021 0.2031 0.032 0.3893 0.032 0.5586v2.8628h-1.498v-10.144h1.219l0.209 0.97116h0.07c0.131-0.1989 0.29-0.3829 0.476-0.5522 0.19-0.1693 0.419-0.3026 0.685-0.39991 0.271-0.10157 0.587-0.15235 0.946-0.15235zm-0.4 1.2188c-0.41 0-0.74 0.0825-0.99 0.2476-0.245 0.1608-0.425 0.4041-0.539 0.7299-0.11 0.3259-0.17 0.7342-0.178 1.2251v0.2095c0 0.5205 0.053 0.9627 0.159 1.3267 0.11 0.3597 0.289 0.6347 0.539 0.8252 0.254 0.1862 0.597 0.2793 1.028 0.2793 0.364 0 0.665-0.0995 0.902-0.2984 0.241-0.1989 0.421-0.4824 0.539-0.8506 0.119-0.3681 0.178-0.8019 0.178-1.3012 0-0.7575-0.135-1.3457-0.406-1.7647-0.267-0.4189-0.677-0.6284-1.232-0.6284zm10.887 4.8623c0.194 0 0.387-0.0169 0.577-0.0508 0.191-0.0381 0.364-0.0825 0.521-0.1333v1.1299c-0.165 0.0719-0.379 0.1333-0.641 0.1841-0.263 0.0508-0.536 0.0762-0.819 0.0762-0.398 0-0.756-0.0656-1.073-0.1968-0.317-0.1354-0.569-0.3661-0.755-0.6919-0.187-0.3259-0.28-0.7765-0.28-1.3521v-3.7768h-0.958v-0.6665l1.028-0.52688 0.489-1.5044h0.939v1.5615h2.013v1.1363h-2.013v3.7578c0 0.3555 0.089 0.6199 0.267 0.7934s0.413 0.2603 0.705 0.2603zm5.325-6.0811c0.627 0 1.164 0.12907 1.613 0.38726 0.448 0.2581 0.793 0.6241 1.034 1.0981s0.362 1.041 0.362 1.7012v0.7998h-4.691c0.017 0.6813 0.199 1.206 0.546 1.5742 0.351 0.3682 0.842 0.5522 1.473 0.5522 0.448 0 0.85-0.0423 1.206-0.1269 0.359-0.0889 0.73-0.218 1.111-0.3872v1.2124c-0.352 0.165-0.709 0.2856-1.073 0.3618s-0.8 0.1143-1.308 0.1143c-0.69 0-1.297-0.1333-1.822-0.3999-0.52-0.2709-0.928-0.6729-1.225-1.2061-0.292-0.5332-0.438-1.1955-0.438-1.9868 0-0.7871 0.134
1425-1.4557 0.4-2.0059 0.267-0.5501 0.641-0.9691 1.124-1.2568 0.482-0.28778 1.045-0.43166 1.688-0.43166zm0 1.1236c-0.469 0-0.85 0.1523-1.142 0.457-0.288 0.3047-0.457 0.7511-0.508 1.3394h3.199c-4e-3 -0.3513-0.063-0.6623-0.178-0.9331-0.11-0.2709-0.279-0.4825-0.507-0.6348-0.225-0.1523-0.512-0.2285-0.864-0.2285zm8.252-1.1236c0.119 0 0.248 0.00635 0.387 0.01905 0.14 0.01269 0.261 0.02962 0.362 0.05078l-0.139 1.3965c-0.089-0.0254-0.199-0.0445-0.33-0.0572-0.127-0.0127-0.242-0.019-0.343-0.019-0.267 0-0.521 0.0444-0.762 0.1333-0.241 0.0846-0.455 0.2158-0.641 0.3935-0.186 0.1735-0.332 0.3915-0.438 0.6538-0.106 0.2624-0.159 0.5671-0.159 0.9141v3.6753h-1.498v-7.0269h1.168l0.203 1.2378h0.07c0.14-0.2496 0.313-0.4782 0.521-0.6855 0.207-0.2074 0.444-0.3724 0.711-0.4951 0.27-0.12698 0.567-0.19046 0.888-0.19046zm4.805 0c0.889 0 1.56 0.19676 2.013 0.59036 0.457 0.3935 0.685 1.0071 0.685 1.8408v4.729h-1.06l-0.286-0.9966h-0.05c-0.199 0.2539-0.404 0.4634-0.616 0.6284-0.212 0.1651-0.457 0.2878-0.736 0.3682-0.275 0.0846-0.612 0.127-1.01 0.127-0.419 0-0.793-0.0762-1.123-0.2286-0.33-0.1565-0.591-0.3935-0.781-0.7109s-0.286-0.7194-0.286-1.2061c0-0.7236 0.269-1.2674 0.807-1.6313 0.541-0.3639 1.358-0.5649 2.45-0.603l1.218-0.0445v-0.3681c0-0.4867-0.114-0.8337-0.342-1.041-0.225-0.2074-0.542-0.3111-0.952-0.3111-0.352 0-0.692 0.0508-1.022 0.1524-0.33 0.1015-0.652 0.2264-0.965 0.3745l-0.483-1.0537c0.343-0.182 0.732-0.3301 1.168-0.4444 0.44-0.11423 0.897-0.17136 1.371-0.17136zm1.219 3.8023-0.908 0.0317c-0.744 0.0254-1.267 0.1524-1.567 0.3809-0.301 0.2285-0.451 0.5417-0.451 0.9394 0 0.347 0.104 0.601 0.311 0.7618 0.207 0.1565 0.48 0.2348 0.819 0.2348 0.516 0 0.943-0.146 1.282-0.438 0.343-0.2962 0.514-0.7299 0.514-1.3012v-0.6094zm8.271 3.3579h-5.338v-0.9204l3.548-4.9575h-3.332v-1.149h5.021v1.0157l-3.479 4.8623h3.58v1.1489zm3.022-1.5107 0.088 0.146c-0.076 0.3046-0.173 0.6326-0.291 0.9838-0.119 0.3513-0.248 0.7025-0.388 1.0538-0.139 0.3554-0.281 0.6897-0.425 1.0029h-1.092c0.089-0.3428 0.174-0.7025 0.254-1.0791 0.085-0.3724 0.161-0.7406 0.229-1.1045 0.072-0.3682 0.129-0.7025 0.171-1.0029h1.454zm10.118 1.5107h-5.339v-0.9204l3.549-4.9575h-3.333v-1.149h5.021v1.0157l-3.478 4.8623h3.58v1.1489zm4.272-7.1602c0.888 0 1.559 0.19676 2.012 0.59036 0.457 0.3935 0.686 1.0071 0.686 1.8408v4.729h-1.061l-0.285-0.9966h-0.051c-0.199 0.2539-0.404 0.4634-0.616 0.6284-0.211 0.1651-0.457 0.2878-0.736 0.3682-0.275 0.0846-0.612 0.127-1.009 0.127-0.419 0-0.794-0.0762-1.124-0.2286-0.33-0.1565-0.59-0.3935-0.781-0.7109-0.19-0.3174-0.285-0.7194-0.285-1.2061 0-0.7236 0.268-1.2674 0.806-1.6313 0.542-0.3639 1.358-0.5649 2.45-0.603l1.219-0.0445v-0.3681c0-0.4867-0.114-0.8337-0.343-1.041-0.224-0.2074-0.542-0.3111-0.952-0.3111-0.351 0-0.692 0.0508-1.022 0.1524-0.33 0.1015-0.652 0.2264-0.965 0.3745l-0.482-1.0537c0.342-0.182 0.732-0.3301 1.168-0.4444 0.44-0.11423 0.897-0.17136 1.371-0.17136zm1.219 3.8023-0.908 0.0317c-0.745 0.0254-1.268 0.1524-1.568 0.3809-0.301 0.2285-0.451 0.5417-0.451 0.9394 0 0.347 0.104 0.601 0.311 0.7618 0.208 0.1565 0.481 0.2348 0.819 0.2348 0.516 0 0.944-0.146 1.282-0.438 0.343-0.2962 0.515-0.7299 0.515-1.3012v-0.6094zm7.172-3.8023c0.834 0 1.503 0.30466 2.006 0.91406 0.508 0.6094 0.762 1.515 0.762 2.7168 0 0.7956-0.119 1.4663-0.356 2.0122-0.232 0.5417-0.56 0.9522-0.983 1.2315-0.419 0.275-0.908 0.4126-1.467 0.4126-0.355 0-0.664-0.0466-0.926-0.1397-0.263-0.0931-0.487-0.2137-0.673-0.3618-0.187-0.1524-0.343-0.3174-0.47-0.4951h-0.089c0.021 0.1692 0.04 0.3576 0.057 0.5649 0.021 0.2031 0.032 0.3893 0.032 0.5586v2.8628h-1.498v-10.144h1.219l0.209 0.97116h0.07c0.131-0.1989 0.29-0.3829 0.476-0.5522 0.19-0.1693 0.419-0.3026 0.686-0.39991 0.27-0.10157 0.586-0.15235 0.945-0.15235zm-0.4 1.2188c-0.41 0-0.74 0.0825-0.99 0.2476-0.245 0.1608-0.425 0.4041-0.539 0.7299-0.11 0.3259-0.17 0.7342-0.178 1.2251v0.2095c0 0.5205 0.053 0.9627 0.159 1.3267 0.11 0.3597 0.29 0.6347 0.539 0.8252 0.254 0.1862 0.597 0.2793 1.029 0.2793 0.363 0 0.664-0.0995 0.901-0.2984 0.241-0.1989 0.421-0.4824 0.539-0.8506 0.119-0.3681 0.178-0.8019 0.178-1.3012 0-0.7575-0.135-1.3457-0.406-1.7647-0.267-0.4189-0.677-0.6284-1.232-0.6284zm4.856 5.9414v-3.4087l-0.577 0.3555-0.572-0.9776 1.149-0.7236v-5.1226h1.498v4.1894l0.648-0.4316 0.59 0.9838-1.238 0.7935v4.3418h-1.498zm6.424-7.1602c0.889 0 1.56 0.19676 2.012 0.59036 0.457 0.3935 0.686 1.0071 0.686 1.8408v4.729h-1.06l-0.286-0.9966h-0.05c-0.199 0.2539-0.405 0.4634-0.616 0.6284-0.212 0.1651-0.457 0.2878-0.737 0.3682-0.275 0.0846-0.611 0.127-1.009 0.127-0.419 0-0.793-0.0762-1.123-0.2286-0.33-0.1565-0.591-0.3935-0.781-0.7109-0.191-0.3174-0.286-0.7194-0.286-1.2061 0-0.7236 0.269-1.2674 0.806-1.6313 0.542-0.3639 1.359-0.5649 2.451-0.603l1.218-0.0445v-0.3681c0-0.4867-0.114-0.8337-0.342-1.041-0.225-0.2074-0.542-0.3111-0.953-0.3111-0.351 0-0.691 0.0508-1.022 0.1524-0.33 0.1015-0.651 0.2264-0.964 0.3745l-0.483-1.0537c0.343-0.182 0.732-0.3301 1.168-0.4444 0.44-0.11423 0.897-0.17136 1.371-0.17136zm1.219 3.8023-0.908 0.0317c-0.745 0.0254-1.267 0.1524-1.568 0.3809-0.3 0.2285-0.45 0.5417-0.45 0.9394 0 0.347 0.103 0.601 0.311 0.7618 0.207 0.1565 0.48 0.2348 0.819 0.2348 0.516 0 0.943-0.146 1.282-0.438 0.343-0.2962 0.514-0.7299 0.514-1.3012v-0.6094zm6.398 3.4849c-0.664 0-1.239-0.1291-1.726-0.3873-0.487-0.2581-0.861-0.6538-1.124-1.187-0.262-0.5332-0.393-1.2103-0.393-2.0312 0-0.8548 0.144-1.5531 0.431-2.0947 0.288-0.5417 0.686-0.9416 1.194-1.1997 0.512-0.25819 1.098-0.38726 1.758-0.38726 0.419 0 0.798 0.04232 1.136 0.12696 0.343 0.0804 0.633 0.1798 0.87 0.2983l-0.444 1.1934c-0.259-0.1058-0.523-0.1947-0.794-0.2666s-0.531-0.1079-0.781-0.1079c-0.41 0-0.753 0.091-1.028 0.2729-0.271 0.182-0.474 0.4528-0.609 0.8125-0.131 0.3597-0.197 0.8062-0.197 1.3394 0 0.5163 0.068 0.9521 0.203 1.3076 0.135 0.3512 0.336 0.61
142578 0.603 0.7998 0.267 0.1777 0.595 0.2666 0.984 0.2666 0.385 0 0.73-0.0465 1.035-0.1396 0.304-0.0931 0.592-0.2137 0.863-0.3619v1.295c-0.267 0.1523-0.552 0.2645-0.857 0.3364-0.305 0.0762-0.679 0.1143-1.124 0.1143zm1.987-10.086v0.12695c-0.101 0.12272-0.239 0.27083-0.412 0.44434-0.174 0.16927-0.362 0.34912-0.565 0.53955-0.203 0.1862-0.404 0.36605-0.603 0.53955-0.199 0.16927-0.379 0.31315-0.54 0.43164h-0.996v-0.16504c0.139-0.16081 0.294-0.35335 0.463-0.57764 0.173-0.22428 0.343-0.45491 0.508-0.69189 0.169-0.23698 0.311-0.4528 0.425-0.64746h1.72zm8.627 2.7993c0.833 0 1.502 0.30466 2.006 0.91406 0.507 0.6094 0.761 1.515 0.761 2.7168 0 0.7956-0.118 1.4663-0.355 2.0122-0.233 0.5417-0.561 0.9522-0.984 1.2315-0.419 0.275-0.908 0.4126-1.466 0.4126-0.356 0-0.665-0.0466-0.927-0.1397s-0.487-0.2137-0.673-0.3618c-0.186-0.1524-0.343-0.3174-0.47-0.4951h-0.089c0.022 0.1692 0.041 0.3576 0.058 0.5649 0.021 0.2031 0.031 0.3893 0.031 0.5586v2.8628h-1.498v-10.144h1.219l0.209 0.97116h0.07c0.131-0.1989 0.29-0.3829 0.476-0.5522 0.191-0.1693 0.419-0.3026 0.686-0.39991 0.271-0.10157 0.586-0.15235 0.946-0.15235zm-0.4 1.2188c-0.411 0-0.741 0.0825-0.99 0.2476-0.246 0.1608-0.426 0.4041-0.54 0.7299-0.11 0.3259-0.169 0.7342-0.178 1.2251v0.2095c0 0.5205 0.053 0.9627 0.159 1.3267 0.11 0.3597 0.29 0.6347 0.54 0.8252 0.253 0.1862 0.596 0.2793 1.028 0.2793 0.364 0 0.664-0.0995 0.901-0.2984 0.241-0.1989 0.421-0.4824 0.54-0.8506 0.118-0.3681 0.178-0.8019 0.178-1.3012 0-0.7575-0.136-1.3457-0.407-1.7647-0.266-0.4189-0.677-0.6284-1.231-0.6284zm11.115 2.4121c0 0.584-0.077 1.1024-0.229 1.5552s-0.374 0.8358-0.666 1.1489c-0.292 0.3089-0.644 0.5459-1.054 0.7109-0.411 0.1608-0.874 0.2413-1.39 0.2413-0.483 0-0.925-0.0805-1.327-0.2413-0.402-0.165-0.751-0.402-1.047-0.7109-0.292-0.3131-0.519-0.6961-0.68-1.1489-0.16-0.4528-0.241-0.9712-0.241-1.5552 0-0.7744 0.134-1.4303 0.4-1.9678 0.271-0.5416 0.656-0.9542 1.155-1.2378 0.5-0.28349 1.094-0.42526 1.784-0.42526 0.648 0 1.219 0.14177 1.714 0.42526 0.495 0.2836 0.882 0.6962 1.162 1.2378 0.279 0.5417 0.419 1.1976 0.419 1.9678zm-5.098 0c0 0.512 0.062 0.95 0.184 1.314 0.127 0.3639 0.322 0.6432 0.584 0.8379 0.263 0.1904 0.601 0.2856 1.016 0.2856s0.753-0.0952 1.016-0.2856c0.262-0.1947 0.455-0.474 0.577-0.8379 0.123-0.364 0.184-0.802 0.184-1.314s-0.061-0.9458-0.184-1.3013c-0.122-0.3597-0.315-0.6326-0.577-0.8188-0.263-0.1904-0.603-0.2857-1.022-0.2857-0.618 0-1.069 0.2074-1.352 0.6221-0.284 0.4147-0.426 1.0093-0.426 1.7837zm3.955-6.4302v0.12695c-0.102 0.12272-0.239 0.27083-0.413 0.44434-0.173 0.16927-0.361 0.34912-0.565 0.53955-0.203 0.1862-0.404 0.36605-0.603 0.53955-0.198 0.16927-0.378 0.31315-0.539 0.43164h-0.997v-0.16504c0.14-0.16081 0.294-0.35335 0.464-0.57764 0.173-0.22428 0.342-0.45491 0.507-0.69189 0.17-0.23698 0.312-0.4528 0.426-0.64746h1.72zm7.56 9.9595h-5.338v-0.9204l3.548-4.9575h-3.333v-1.149h5.021v1.0157l-3.478 4.8623h3.58v1.1489zm-0.495-9.9595v0.12695c-0.102 0.12272-0.239 0.27083-0.413 0.44434-0.173 0.16927-0.361 0.34912-0.565 0.53955-0.203 0.1862-0.404 0.36605-0.603 0.53955-0.199 0.16927-0.378 0.31315-0.539 0.43164h-0.997v-0.16504c0.14-0.16081 0.294-0.35335 0.464-0.57764 0.173-0.22428 0.342-0.45491 0.507-0.69189 0.17-0.23698 0.311-0.4528 0.426-0.64746h1.72zm5.675 2.7993c0.791 0 1.407 0.20526 1.847 0.61576 0.444 0.4062 0.666 1.06 0.666 1.9614v4.583h-1.491v-4.3037c0-0.5459-0.112-0.9543-0.337-1.2251-0.224-0.2751-0.571-0.4126-1.041-0.4126-0.681 0-1.155 0.2095-1.422 0.6284-0.262 0.419-0.393 1.0262-0.393 1.8218v3.4912h-1.492v-7.0269h1.162l0.209 0.95216h0.083c0.152-0.2454 0.34-0.4465 0.565-0.603 0.228-0.1608 0.482-0.2814 0.761-0.36185 0.284-0.0804 0.578-0.12061 0.883-0.12061zm6.093 0.1333v7.0269h-1.491v-7.0269h1.491zm-0.736-2.6914c0.229 0 0.425 0.06136 0.59 0.18408 0.17 0.12272 0.254 0.33431 0.254 0.63477 0 0.29622-0.084 0.50781-0.254 0.63476-0.165 0.12272-0.361 0.18408-0.59 0.18408-0.237 0-0.438-0.06136-0.603-0.18408-0.161-0.12695-0.241-0.33854-0.241-0.63476 0-0.30046 0.08-0.51205 0.241-0.63477 0.165-0.12272 0.366-0.18408 0.603-0.18408zm5.675 2.5581c0.626 0 1.164 0.12907 1.612 0.38726 0.449 0.2581 0.794 0.6241 1.035 1.0981s0.362 1.041 0.362 1.7012v0.7998h-4.691c0.017 0.6813 0.199 1.206 0.546 1.5742 0.351 0.3682 0.842 0.5522 1.472 0.5522 0.449 0 0.851-0.0423 1.206-0.1269 0.36-0.0889 0.73-0.218 1.111-0.3872v1.2124c-0.351 0.165-0.709 0.2856-1.072 0.3618-0.364 0.0762-0.8 0.1143-1.308 0.1143-0.69 0-1.297-0.1333-1.822-0.3999-0.52-0.2709-0.929-0.6729-1.225-1.2061-0.292-0.5332-0.438-1.1955-0.438-1.9868 0-0.7871 0.133-1.4557 0.4-2.0059 0.267-0.5501 0.641-0.9691 1.123-1.2568 0.483-0.28778 1.046-0.43166 1.689-0.43166zm0 1.1236c-0.47 0-0.851 0.1523-1.143 0.457-0.287 0.3047-0.457 0.7511-0.507 1.3394h3.199c-4e-3 -0.3513-0.064-0.6623-0.178-0.9331-0.11-0.2709-0.279-0.4825-0.508-0.6348-0.224-0.1523-0.512-0.2285-0.863-0.2285zm3.986 9.1596c-0.22 0-0.429-0.0169-0.628-0.0507-0.199-0.0297-0.366-0.0656-0.502-0.1079v-1.1934c0.144 0.0423 0.284 0.0741 0.419 0.0952 0.136 0.0212 0.29 0.0317 0.464 0.0317 0.275 0 0.501-0.0761 0.679-0.2285 0.182-0.1523 0.273-0.4422 0.273-0.8696v-7.8267h1.492v7.96c0 0.4274-0.077 0.8062-0.229 1.1362-0.148 0.3301-0.385 0.5883-0.711 0.7745-0.321 0.1861-0.74 0.2792-1.257 0.2792zm0.616-12.022c0-0.30046 0.08-0.51205 0.241-0.63477 0.165-0.12272 0.366-0.18408 0.603-0.18408 0.229 0 0.426 0.06136 0.591 0.18408 0.169 0.12272 0.253 0.33431 0.253 0.63477 0 0.29622-0.084 0.50781-0.253 0.63476-0.165 0.12272-0.362 0.18408-0.591 0.18408-0.237 0-0.438-0.06136-0.603-0.18408-0.161-0.12695-0.241-0.33854-0.241-0.63476z" fill="#000"/> 1426<defs> 1427<filter id="d" x="6.1863" y="4.9913" width="30.174" height="16.171" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse">
1428<feFlood flood-opacity="0" result="BackgroundImageFix"/> 1429<feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/> 1430<feOffset dy="1"/> 1431<feGaussianBlur stdDeviation="0.5"/> 1432<feComposite in2="hardAlpha" operator="out"/> 1433<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0"/> 1434<feBlend in2="BackgroundImageFix" result="effect1_dropShadow_7_15673"/> 1435<feBlend in="SourceGraphic" in2="effect1_dropShadow_7_15673" result="shape"/> 1436</filter> 1437<linearGradient id="a" x1="47.941" x2="82.306" y1="16.62" y2="16.62" gradientUnits="userSpaceOnUse"> 1438<stop stop-color="#E43416" offset="0"/> 1439<stop stop-color="#E75396" offset="1"/> 1440</linearGradient> 1441<linearGradient id="c" x1="20.617" x2="20.617" y1="21.728" y2="2.3211" gradientUnits="userSpaceOnUse"> 1442<stop stop-color="#575756" offset="0"/> 1443<stop stop-color="#3E3E3C" offset=".3459"/> 1444<stop stop-color="#262624" offset=".7508"/> 1445<stop stop-color="#1D1D1B" offset="1"/> 1446</linearGradient> 1447<linearGradient id="b" x1="12.507" x2="15.534" y1="5.6361" y2="8.6444" gradientUnits="userSpaceOnUse"> 1448<stop stop-color="#E53212" offset="0"/> 1449<stop stop-color="#E95296" offset="1"/> 1450</linearGradient> 1451<clipPath id="f"> 1452<rect transform="translate(0 2)" width="84" height="20" fill="#fff"/> 1453</clipPath> 1454<clipPath id="e"> 1455<rect transform="translate(0 2)" width="41.236" height="20" fill="#fff"/> 1456</clipPath> 1457</defs> 1458</svg> 1459`)})} 1460if($('#blik_place_pozniej_widget_dark').length){let svgBg='transparent';window.addEventListener('DOMContentLoaded',function(){document.querySelector('#blik_place_pozniej_widget_dark').insertAdjacentHTML('beforebegin',`<?xml version="1.0" encoding="UTF-8"?> 1461<svg style="max-width: 248px; height: 24px; fill="${svgBg}" viewBox="0 0 248 24" xmlns="http://www.w3.org/2000/svg"> 1462<path d="M50.2492 4.7162C50.6414 4.7162 51.0336 4.76558 51.3277 4.86435C51.6218 4.96311 51.867 5.11126 52.0631 5.25941C52.2591 5.40755 52.4062 5.65447 52.5043 5.852C52.6023 6.09891 52.6513 6.34583 52.6513 6.59274C52.6513 6.88904 52.6023 7.13595 52.5043 7.38286C52.4062 7.62978 52.2591 7.82731 52.0631 8.02484C51.867 8.22237 51.6218 8.32113 51.3277 8.4199C51.0336 8.51867 50.6904 8.56805 50.2982 8.56805H49.5628V10.5434H48.1902V4.7162H50.2492ZM50.2492 7.62978C50.5923 7.62978 50.8375 7.53101 50.9845 7.38286C51.1316 7.23471 51.2296 6.9878 51.2296 6.6915C51.2296 6.54336 51.2296 6.44459 51.1806 6.34583C51.1316 6.24706 51.0826 6.14829 50.9845 6.04953C50.8865 5.95076 50.7884 5.90138 50.6904 5.852C50.5433 5.80262 50.3962 5.80262 50.2492 5.80262H49.5628V7.62978H50.2492ZM57.5537 9.50632V10.5927H54.073V8.56805L53.3867 8.91373V7.97546C53.3867 7.87669 53.4357 7.77792 53.5338 7.77792L54.073 7.48163V4.7162H55.4457V6.83965L56.7693 6.19768V7.13595C56.7693 7.2841 56.7203 7.33348 56.6222 7.38286L55.4457 7.97546V9.50632H57.5537ZM64.0248 10.5927H62.9953C62.8973 10.5927 62.7992 10.5434 62.7012 10.494C62.6031 10.4446 62.5541 10.3458 62.5541 10.2964L62.2109 9.25941H60.0049L59.6617 10.2964C59.6127 10.3952 59.5637 10.4446 59.5146 10.494C59.4656 10.5434 59.3676 10.5927 59.2205 10.5927H58.191L60.4461 4.7162H61.8187L64.0248 10.5927ZM61.9168 8.37052L61.3775 6.79027C61.3285 6.6915 61.2795 6.59274 61.2305 6.44459C61.1814 6.29644 61.1324 6.1483 61.0834 6.00015C61.0344 6.1483 60.9853 6.29644 60.9363 6.44459C60.8873 6.59274 60.8383 6.6915 60.7892 6.79027L60.25 8.37052H61.9168ZM68.8291 9.06188C68.8781 9.06188 68.8781 9.06188 68.9272 9.06188C68.9762 9.06188 68.9762 9.11126 69.0252 9.11126L69.5645 9.65447C69.3193 9.95076 69.0252 10.1977 68.682 10.3458C68.3389 10.494 67.8977 10.5927 67.4074 10.5927C66.9662 10.5927 66.574 10.494 66.2309 10.3458C65.8877 10.1977 65.5936 10.0001 65.3484 9.70385C65.1033 9.45694 64.9072 9.11126 64.8092 8.76558C64.6621 8.4199 64.6131 8.02484 64.6131 7.58039C64.6131 7.13595 64.6621 6.74089 64.8092 6.39521C64.9563 6.04953 65.1523 5.70385 65.3975 5.45694C65.6426 5.21002 65.9367 4.96311 66.3289 4.81496C66.6721 4.66681 67.0643 4.61743 67.5055 4.61743C67.7016 4.61743 67.9467 4.61743 68.1428 4.66681C68.3389 4.7162 68.535 4.76558 68.682 4.81496C68.8291 4.86434 69.0252 4.96311 69.1232 5.06187C69.2703 5.16064 69.3684 5.25941 69.5154 5.35817L69.0742 5.95076C69.0252 6.00015 69.0252 6.00015 68.9762 6.04953C68.9272 6.09891 68.8781 6.09891 68.8291 6.09891C68.7801 6.09891 68.7311 6.09891 68.682 6.04953C68.633 6.00015 68.584 6.00015 68.535 5.95076C68.4859 5.90138 68.4369 5.90138 68.3879 5.852C68.3389 5.80262 68.2408 5.80262 68.1918 5.75323C68.1428 5.70385 68.0447 5.70385 67.8977 5.65447C67.7996 5.65447 67.6525 5.60509 67.50
146255 5.60509C67.2604 5.60509 67.0643 5.65447 66.9172 5.75323C66.7211 5.852 66.574 5.95077 66.427 6.09891C66.2799 6.24706 66.1818 6.44459 66.1328 6.6915C66.0838 6.93842 66.0348 7.18533 66.0348 7.48163C66.0348 7.77793 66.0838 8.02484 66.1328 8.27175C66.2309 8.51867 66.3289 8.7162 66.476 8.86434C66.623 9.01249 66.7701 9.16064 66.9662 9.21002C67.1623 9.30879 67.3584 9.35817 67.5545 9.35817C67.6525 9.35817 67.7996 9.35817 67.8977 9.35817C67.9957 9.35817 68.0938 9.30879 68.1918 9.30879C68.2899 9.25941 68.3389 9.25941 68.4369 9.21002C68.535 9.16064 68.584 9.11126 68.682 9.01249C68.7311 8.96311 68.7311 8.96311 68.7801 8.96311C68.8291 8.96311 68.7801 9.06188 68.8291 9.06188ZM72.1137 5.80262V7.13595H73.9276V8.1236H72.1137V9.50632H74.5158V10.5927H74.1727C74.0746 10.6421 73.9766 10.7409 73.9276 10.7903C73.8785 10.889 73.8295 10.9878 73.8295 11.0866C73.8295 11.1359 73.8295 11.1853 73.8785 11.2347C73.9276 11.2841 73.9766 11.2841 74.0256 11.2841C74.0746 11.2841 74.0746 11.2841 74.1237 11.2841H74.1727H74.2217C74.2217 11.2841 74.2217 11.2841 74.2707 11.2841C74.3197 11.2841 74.3688 11.3335 74.3688 11.3829L74.5649 11.8273C74.4668 11.8767 74.3688 11.9261 74.2217 11.9755C74.0746 12.0248 73.9276 12.0248 73.7805 12.0248C73.4863 12.0248 73.2903 11.9755 73.1432 11.8767C72.9961 11.7779 72.8981 11.6298 72.8981 11.4322C72.8981 11.2841 72.9471 11.136 73.0451 11.0372C73.1432 10.9384 73.2903 10.7903 73.4863 10.6421H70.8391V4.7162H74.5649V5.75323H72.1137V5.80262Z" fill="white"/> 1463<path d="M49.955 14.494C50.3472 14.494 50.7394 14.5433 51.0335 14.6421C51.3276 14.7409 51.5728 14.889 51.7688 15.0372C51.9649 15.1853 52.112 15.4322 52.2101 15.6298C52.3081 15.8273 52.3571 16.1236 52.3571 16.3705C52.3571 16.6668 52.3081 16.9137 52.2101 17.1606C52.112 17.4075 51.9649 17.6051 51.7688 17.8026C51.5728 18.0001 51.3276 18.0989 51.0335 18.1977C50.7394 18.2964 50.3962 18.3458 50.004 18.3458H49.3177V20.3211H47.945V14.494H49.955ZM49.955 17.3582C50.2981 17.3582 50.5433 17.2594 50.6903 17.1112C50.8374 16.9631 50.9354 16.7162 50.9354 16.4199C50.9354 16.2717 50.9354 16.173 50.8864 16.0742C50.8374 15.9754 50.7884 15.8767 50.6903 15.7779C50.5923 15.6791 50.4942 15.6298 50.3962 15.5804C50.2491 15.531 50.102 15.531 49.955 15.531H49.2686V17.4075L49.955 17.3582Z" fill="url(#paint0_linear_39501_2197)"/> 1464<path d="M59.0734 17.4075C59.0734 17.852 59.0243 18.247 58.8773 18.5927C58.7302 18.9384 58.5341 19.2841 58.289 19.531C58.0439 19.7779 57.7007 20.0248 57.3575 20.173C56.9653 20.3211 56.5732 20.4199 56.1319 20.4199C55.6907 20.4199 55.2495 20.3211 54.9064 20.173C54.5142 20.0248 54.22 19.8273 53.9749 19.531C53.7298 19.2841 53.4847 18.9384 53.3376 18.5927C53.1905 18.247 53.1415 17.852 53.1415 17.4075C53.1415 16.9631 53.1905 16.568 53.3376 16.2223C53.4847 15.8767 53.6808 15.531 53.9749 15.2841C54.22 15.0372 54.5632 14.7903 54.9064 14.6421C55.2985 14.494 55.6907 14.3952 56.1319 14.3952C56.5732 14.3952 57.0144 14.494 57.3575 14.6421C57.7497 14.7903 58.0439 14.9878 58.289 15.2841C58.5341 15.531 58.7792 15.8767 58.8773 16.2223C59.0243 16.568 59.0734 16.9631 59.0734 17.4075ZM57.7007 17.4075C57.7007 17.1112 57.6517 16.8643 57.6026 16.6174C57.5046 16.3705 57.4066 16.173 57.2595 16.0248C57.1124 15.8767 56.9653 15.7285 56.7692 15.6791C56.5732 15.5804 56.328 15.531 56.0829 15.531C55.8378 15.531 55.5927 15.5804 55.3966 15.6791C55.2005 15.7779 55.0044 15.8767 54.9064 16.0248C54.7593 16.173 54.6612 16.3705 54.5632 16.6174C54.4651 16.8643 54.4651 17.1112 54.4651 17.4075C54.4651 17.7038 54.5142 17.9507 54.5632 18.1977C54.6612 18.4446 54.7593 18.6421 54.9064 18.7902C55.0534 18.9384 55.2005 19.0865 55.3966 19.1359C55.5927 19.2347 55.8378 19.2841 56.0829 19.2841C56.328 19.2841 56.5732 19.2347 56.7692 19.1359C56.9653 19.0372 57.1614 18.9384 57.2595 18.7902C57.4066 18.6421 57.5046 18.4446 57.6026 18.1977C57.6517 17.9507 57.7007 17.7038 57.7007 17.4075ZM57.8968 12.8149L56.6222 13.9507C56.5732 14.0001 56.5732 14.0001 56.5241 14.0001C56.4751 14.0001 56.4751 14.0495 56.4261 14.0495C56.3771 14.0495 56.3771 14.0495 56.328 14.0495C56.279 14.0495 56.23 14.0495 56.23 14.0495H55.3476L56.0829 12.9631C56.1319 12.9137 56.1319 12.8643 56.181 12.8643C56.23 12.8149 56.23 12.8149 56.279 12.8149C56.328 12.8149 56.3771 12.8149 56.4261 12.8149C56.4751 12.8149 56.5241 12.8149 56.5732 12.8149H57.8968Z" fill="url(#paint1_linear_39501_2197)"/> 1465<path d="M64.2699 14.9878C64.2699 15.0372 64.2699 15.1359 64.2208 15.1853C64.1718 15.2347 64.1718 15.3335 64.1228 15.3828L61.3775 19.3335H64.1718V20.3705H59.6616V19.8273C59.6616 19.7779 59.6616 19.7285 59.7107 19.6298C59.7107 19.5804 59.7597 19.531 59.8087 19.4816L62.554 15.531H59.9068V14.494H64.2699V14.9878ZM63.9267 12.8149L62.6521 13.9507C62.6031 14.0001 62.6031 14.0001 62.554 14.0001C62.505 14.0001 62.505 14.0495 62.456 14.0495C62.407 14.0495 62.407 14.0495 62.3579 14.0495C62.3089 14.0495 62.2599 14.0495 62.2599 14.0495H61.3284L62.0638 12.9631C62.1128 12.9137 62.1128 12.8643 62.1618 12.8643C62.2109 12.8149 62.2109 12.8149 62.2599 12.8149C62.3089 12.8149 62.3579 12.8149 62.407 12.8149C62.456 12.8149 62.505 12.8149 62.554 12.8149H63.9267Z" fill="url(#paint2_linear_39501_2197)"/> 1466<path d="M70.4958 14.494V20.3705H69.8095C69.7115 20.3705 69.6134 20.3705 69.5644 20.3211C69.5154 20.2717 69.4173 20.2224 69.3683 20.1236L66.623 16.6174C66.623 16.7162 66.623 16.8149 66.623 16.9137C66.623 17.0125 66.623 17.1112 66.623 17.21V20.3705H65.4464V14.494H66.1328C66.1818 14.494 66.2308 14.494 66.2798 14.494C66.3288 14.494 66.3779 14.494 66.3779 14.5433C66.4269 14.5433 66.4269 14.5927 66.4759 14.5927C66.5249 14.6421 66.5249 14.6421 66.574 14.6915L69.3193 18.1977C69.3193 18.0989 69.3193 18.0001 69.2703 17.852C69.2212 17.7038 69.2703 17.6544 69.2703 17.5557V14.4446L70.4958 14.494Z" fill="url(#paint3_linear_39501_2197)"/> 1467<path d="M73.3882 20.3211H72.0156V14.494H73.3882V20.3211Z" fill="url(#paint4_linear_39501_2197)"/> 1468<path d="M76.2316 15.531V16.9137H78.0455V17.9014H76.2316V19.2841H78.6338V20.3211H74.908V14.494H78.6338V15.531H76.2316Z" fill="url(#paint5_linear_39501_2197)"/> 1469<path d="M82.2615 18.1977C82.2615 18.5433 82.2125 18.8396 82.1635 19.0865C82.0654 19.3335 81.9674 19.5804 81.8203 19.7779C81.6732 19.9754 81.4281 20.1236 81.183 20.2223C80.9379 20.3211 80.6437 20.3705 80.3006 20.3705C80.1535 20.3705 80.0064 20.3705 79.8594 20.3705C79.7123 20.3705 79.5652 20.3211 79.4181 20.2717L79.4672 19.4816C79.4672 19.4322 79.5162 19.3335 79.5652 19.3335C79.6142 19.3335 79.6633 19.2841 79.7613 19.2841C79.8103 19.2841 79.8593 19.2841 79.9084 19.2841C79.9574 19.2841 80.0554 19.2841 80.1535 19.2841C80.3006 19.2841 80.3986 19.2841 80.4967 19.2347C80.5947 19.1853 80.6928 19.1359 80.7418 19.0372C80.7908 18.9384 80.8398 18.8396 80.8888 18.6915C80.9379 18.5433 80.9379 18.3952 80.9379 18.1977V14.4446H82.3105V18.1977H82.2615Z" fill="url(#paint6_linear_39501_2197)"/> 1470<g clip-path="url(#clip0_39501_2197)"> 1471<path d="M38.7723 2H2.4625C1.11054 2 0 3.1358 0 4.51852V19.4815C0 20.8642 1.11054 22 2.4625 22H38.7723C40.1243 22 41.2348 20.8642 41.2348 19.4815V4.51852C41.2831 3.1358 40.1726 2 38.7723 2Z" fill="white"/> 1472<path d="M38.7723 21.7531H2.46247C1.25536 21.7531 0.289673 20.7654 0.289673 19.5308V4.51849C0.289673 3.28392 1.25536 2.29626 2.46247 2.29626H38.7723C39.9794 2.29626 40.9451 3.28392 40.9451 4.51849V19.4815C40.9451 20.716 39.9794 21.7531 38.7723 21.7531Z" fill="url(#paint7_linear_39501_2197)"/>
1473<g filter="url(#filter0_d_39501_2197)"> 1474<path d="M16.1209 7.13113C16.1209 5.94229 15.1755 4.99121 13.9937 4.99121C12.8118 4.99121 11.8664 5.94229 11.8664 7.13113C11.8664 8.31997 12.8118 9.27105 13.9937 9.27105C15.1755 9.22349 16.1209 8.27242 16.1209 7.13113Z" fill="white"/> 1475<path d="M20.1391 5.6571H17.7755V19.0673H20.1391V5.6571Z" fill="white"/> 1476<path d="M24.5828 10.3174H22.2191V19.1148H24.5828V10.3174Z" fill="white"/> 1477<path d="M11.6773 10.2223C10.9209 10.2223 10.2119 10.4125 9.55004 10.7454V5.6571H7.1864V14.6923C7.1864 17.1651 9.17185 19.1624 11.63 19.1624C14.0882 19.1624 16.0737 17.1651 16.0737 14.6923C16.1209 12.2195 14.1355 10.2223 11.6773 10.2223ZM11.6773 16.8798C10.4955 16.8798 9.55004 15.9287 9.55004 14.7399C9.55004 13.551 10.4955 12.6 11.6773 12.6C12.8591 12.6 13.8046 13.551 13.8046 14.7399C13.8046 15.9287 12.8591 16.8798 11.6773 16.8798Z" fill="white"/> 1478<path d="M20.1391 5.6571H17.7755V19.0673H20.1391V5.6571Z" fill="white"/> 1479<path d="M24.5828 10.3174H22.2191V19.1148H24.5828V10.3174Z" fill="white"/> 1480<path d="M11.6773 10.2223C10.9209 10.2223 10.2119 10.4125 9.55004 10.7454V5.6571H7.1864V14.6923C7.1864 17.1651 9.17185 19.1624 11.63 19.1624C14.0882 19.1624 16.0737 17.1651 16.0737 14.6923C16.1209 12.2195 14.1355 10.2223 11.6773 10.2223ZM11.6773 16.8798C10.4955 16.8798 9.55004 15.9287 9.55004 14.7399C9.55004 13.551 10.4955 12.6 11.6773 12.6C12.8591 12.6 13.8046 13.551 13.8046 14.7399C13.8046 15.9287 12.8591 16.8798 11.6773 16.8798Z" fill="white"/> 1481<path d="M32.3354 19.1148H35.3609L31.7209 14.3594L35.03 10.3174H32.2882L29.0264 14.407V5.6571H26.6627V19.1148H29.0264V14.407L32.3354 19.1148Z" fill="white"/> 1482<path d="M13.9937 9.27105C15.1685 9.27105 16.1209 8.31297 16.1209 7.13113C16.1209 5.94928 15.1685 4.99121 13.9937 4.99121C12.8188 4.99121 11.8664 5.94928 11.8664 7.13113C11.8664 8.31297 12.8188 9.27105 13.9937 9.27105Z" fill="url(#paint8_linear_39501_2197)"/> 1483</g> 1484</g> 1485<path d="M100.296 17H98.5444L95.6562 12.7852L94.7422 13.5278V17H93.2188V7.71973H94.7422V12.1567C94.9284 11.9282 95.1167 11.6997 95.3071 11.4712C95.4976 11.2427 95.688 11.0142 95.8784 10.7856L98.4937 7.71973H100.214L96.748 11.7822L100.296 17ZM107.495 9.97314V17H106.32L106.117 16.0542H106.035C105.887 16.2954 105.698 16.4964 105.47 16.6572C105.241 16.8138 104.987 16.9302 104.708 17.0063C104.429 17.0868 104.135 17.127 103.826 17.127C103.297 17.127 102.844 17.0381 102.467 16.8604C102.095 16.6784 101.809 16.3991 101.61 16.0225C101.411 15.6458 101.312 15.1592 101.312 14.5625V9.97314H102.81V14.2832C102.81 14.8291 102.92 15.2375 103.14 15.5083C103.364 15.7791 103.711 15.9146 104.181 15.9146C104.634 15.9146 104.994 15.8215 105.26 15.6353C105.527 15.4491 105.715 15.174 105.825 14.8101C105.939 14.4461 105.997 13.9997 105.997 13.4707V9.97314H107.495ZM113.239 9.83984C114.073 9.83984 114.742 10.1445 115.245 10.7539C115.753 11.3633 116.007 12.2689 116.007 13.4707C116.007 14.2663 115.888 14.937 115.651 15.4829C115.419 16.0246 115.091 16.4351 114.667 16.7144C114.249 16.9894 113.76 17.127 113.201 17.127C112.846 17.127 112.537 17.0804 112.274 16.9873C112.012 16.8942 111.788 16.7736 111.602 16.6255C111.415 16.4731 111.259 16.3081 111.132 16.1304H111.043C111.064 16.2996 111.083 16.488 111.1 16.6953C111.121 16.8984 111.132 17.0846 111.132 17.2539V20.1167H109.634V9.97314H110.853L111.062 10.9443H111.132C111.263 10.7454 111.422 10.5614 111.608 10.3921C111.798 10.2228 112.027 10.0895 112.293 9.99219C112.564 9.89062 112.88 9.83984 113.239 9.83984ZM112.839 11.0586C112.429 11.0586 112.099 11.1411 111.849 11.3062C111.604 11.467 111.424 11.7103 111.31 12.0361C111.2 12.362 111.14 12.7703 111.132 13.2612V13.4707C111.132 13.9912 111.185 14.4334 111.291 14.7974C111.401 15.1571 111.58 15.4321 111.83 15.6226C112.084 15.8088 112.427 15.9019 112.858 15.9019C113.222 15.9019 113.523 15.8024 113.76 15.6035C114.001 15.4046 114.181 15.1211 114.299 14.7529C114.418 14.3848 114.477 13.951 114.477 13.4517C114.477 12.6942 114.342 12.106 114.071 11.687C113.804 11.2681 113.394 11.0586 112.839 11.0586ZM123.726 15.9209C123.92 15.9209 124.113 15.904 124.303 15.8701C124.494 15.832 124.667 15.7876 124.824 15.7368V16.8667C124.659 16.9386 124.445 17 124.183 17.0508C123.92 17.1016 123.647 17.127 123.364 17.127C122.966 17.127 122.608 17.0614 122.291 16.9302C121.974 16.7948 121.722 16.5641 121.536 16.2383C121.349 15.9124 121.256 15.4618 121.256 14.8862V11.1094H120.298V10.4429L121.326 9.91602L121.815 8.41162H122.754V9.97314H124.767V11.1094H122.754V14.8672C122.754 15.2227 122.843 15.4871 123.021 15.6606C123.199 15.8341 123.434 15.9209 123.726 15.9209ZM129.051 9.83984C129.678 9.83984 130.215 9.96891 130.664 10.2271C131.112 10.4852 131.457 10.8512 131.698 11.3252C131.939 11.7992 132.06 12.3662 132.06 13.0264V13.8262H127.369C127.386 14.5075 127.568 15.0322 127.915 15.4004C128.266 15.7686 128.757 15.9526 129.388 15.9526C129.836 15.9526 130.238 15.9103 130.594 15.8257C130.953 15.7368 131.324 15.6077 131.705 15.4385V16.6509C131.353 16.8159 130.996 16.9365 130.632 17.0127C130.268 17.0889 129.832 17.127 129.324 17.127C128.634 17.127 128.027 16.9937 127.502 16.7271C126.982 16.4562 126.574 16.0542 126.277 15.521C125.985 14.9878 125.839 14.3255 125.839 13.5342C125.839 12.7471 125.973 12.0785 12
14856.239 11.5283C126.506 10.9782 126.88 10.5592 127.363 10.2715C127.845 9.98372 128.408 9.83984 129.051 9.83984ZM129.051 10.9634C128.582 10.9634 128.201 11.1157 127.909 11.4204C127.621 11.7251 127.452 12.1715 127.401 12.7598H130.6C130.596 12.4085 130.537 12.0975 130.422 11.8267C130.312 11.5558 130.143 11.3442 129.915 11.1919C129.69 11.0396 129.403 10.9634 129.051 10.9634ZM137.303 9.83984C137.422 9.83984 137.551 9.84619 137.69 9.85889C137.83 9.87158 137.951 9.88851 138.052 9.90967L137.913 11.3062C137.824 11.2808 137.714 11.2617 137.583 11.249C137.456 11.2363 137.341 11.23 137.24 11.23C136.973 11.23 136.719 11.2744 136.478 11.3633C136.237 11.4479 136.023 11.5791 135.837 11.7568C135.651 11.9303 135.505 12.1483 135.399 12.4106C135.293 12.673 135.24 12.9777 135.24 13.3247V17H133.742V9.97314H134.91L135.113 11.2109H135.183C135.323 10.9613 135.496 10.7327 135.704 10.5254C135.911 10.318 136.148 10.153 136.415 10.0303C136.685 9.90332 136.982 9.83984 137.303 9.83984ZM142.108 9.83984C142.997 9.83984 143.668 10.0366 144.121 10.4302C144.578 10.8237 144.806 11.4373 144.806 12.271V17H143.746L143.46 16.0034H143.41C143.211 16.2573 143.006 16.4668 142.794 16.6318C142.582 16.7969 142.337 16.9196 142.058 17C141.783 17.0846 141.446 17.127 141.048 17.127C140.629 17.127 140.255 17.0508 139.925 16.8984C139.595 16.7419 139.334 16.5049 139.144 16.1875C138.954 15.8701 138.858 15.4681 138.858 14.9814C138.858 14.2578 139.127 13.714 139.665 13.3501C140.206 12.9862 141.023 12.7852 142.115 12.7471L143.333 12.7026V12.3345C143.333 11.8478 143.219 11.5008 142.991 11.2935C142.766 11.0861 142.449 10.9824 142.039 10.9824C141.687 10.9824 141.347 11.0332 141.017 11.1348C140.687 11.2363 140.365 11.3612 140.052 11.5093L139.569 10.4556C139.912 10.2736 140.301 10.1255 140.737 10.0112C141.177 9.89697 141.634 9.83984 142.108 9.83984ZM143.327 13.6421L142.419 13.6738C141.675 13.6992 141.152 13.8262 140.852 14.0547C140.551 14.2832 140.401 14.5964 140.401 14.9941C140.401 15.3411 140.505 15.5951 140.712 15.7559C140.919 15.9124 141.192 15.9907 141.531 15.9907C142.047 15.9907 142.474 15.8447 142.813 15.5527C143.156 15.2565 143.327 14.8228 143.327 14.2515V13.6421ZM151.598 17H146.26V16.0796L149.808 11.1221H146.476V9.97314H151.497V10.9888L148.018 15.8511H151.598V17ZM154.62 15.4893L154.708 15.6353C154.632 15.9399 154.535 16.2679 154.417 16.6191C154.298 16.9704 154.169 17.3216 154.029 17.6729C153.89 18.0283 153.748 18.3626 153.604 18.6758H152.512C152.601 18.333 152.686 17.9733 152.766 17.5967C152.851 17.2243 152.927 16.8561 152.995 16.4922C153.067 16.124 153.124 15.7897 153.166 15.4893H154.62ZM164.738 17H159.399V16.0796L162.948 11.1221H159.615V9.97314H164.636V10.9888L161.158 15.8511H164.738V17ZM169.01 9.83984C169.898 9.83984 170.569 10.0366 171.022 10.4302C171.479 10.8237 171.708 11.4373 171.708 12.271V17H170.647L170.362 16.0034H170.311C170.112 16.2573 169.907 16.4668 169.695 16.6318C169.484 16.7969 169.238 16.9196 168.959 17C168.684 17.0846 168.347 17.127 167.95 17.127C167.531 17.127 167.156 17.0508 166.826 16.8984C166.496 16.7419 166.236 16.5049 166.045 16.1875C165.855 15.8701 165.76 15.4681 165.76 14.9814C165.76 14.2578 166.028 13.714 166.566 13.3501C167.108 12.9862 167.924 12.7852 169.016 12.7471L170.235 12.7026V12.3345C170.235 11.8478 170.121 11.5008 169.892 11.2935C169.668 11.0861 169.35 10.9824 168.94 10.9824C168.589 10.9824 168.248 11.0332 167.918 11.1348C167.588 11.2363 167.266 11.3612 166.953 11.5093L166.471 10.4556C166.813 10.2736 167.203 10.1255 167.639 10.0112C168.079 9.89697 168.536 9.83984 169.01 9.83984ZM170.229 13.6421L169.321 13.6738C168.576 13.6992 168.053 13.8262 167.753 14.0547C167.452 14.2832 167.302 14.5964 167.302 14.9941C167.302 15.3411 167.406 15.5951 167.613 15.7559C167.821 15.9124 168.094 15.9907 168.432 15.9907C168.948 15.9907 169.376 15.8447 169.714 15.5527C170.057 15.2565 170.229 14.8228 170.229 14.2515V13.6421ZM177.401 9.83984C178.235 9.83984 178.904 10.1445 179.407 10.7539C179.915 11.3633 180.169 12.2689 180.169 13.4707C180.169 14.2663 180.05 14.937 179.813 15.4829C179.581 16.0246 179.253 16.4351 178.83 16.7144C178.411 16.9894 177.922 17.127 177.363 17.127C177.008 17.127 176.699 17.0804 176.437 16.9873C176.174 16.8942 175.95 16.7736 175.764 16.6255C175.577 16.4731 175.421 16.3081 175.294 16.1304H175.205C175.226 16.2996 175.245 16.488 175.262 16.6953C175.283 16.8984 175.294 17.0846 175.294 17.2539V20.1167H173.796V9.97314H175.015L175.224 10.9443H175.294C175.425 10.7454 175.584 10.5614 175.77 10.3921C175.96 10.2228 176.189 10.0895 176.456 9.99219C176.726 9.89062 177.042 9.83984 177.401 9.83984ZM177.001 11.0586C176.591 11.0586 176.261 11.1411 176.011 11.3062C175.766 11.467 175.586 11.7103 175.472 12.0361C175.362 12.362 175.302 12.7703 175.294 13.2612V13.4707C175.294 13.9912 175.347 14.4334 175.453 14.7974C175.563 15.1571 175.743 15.4321 175.992 15.6226C176.246 15.8088 176.589 15.9019 177.021 15.9019C177.384 15.9019 177.685 15.8024 177.922 15.6035C178.163 15.4046 178.343 15.1211 178.461 14.7529C178.58 14.3848 178.639 13.951 178.639 13.4517C178.639 12.6942 178.504 12.106 178.233 11.687C177.9
148566 11.2681 177.556 11.0586 177.001 11.0586ZM181.857 17V13.5913L181.28 13.9468L180.708 12.9692L181.857 12.2456V7.12305H183.355V11.3125L184.003 10.8809L184.593 11.8647L183.355 12.6582V17H181.857ZM188.281 9.83984C189.17 9.83984 189.841 10.0366 190.293 10.4302C190.75 10.8237 190.979 11.4373 190.979 12.271V17H189.919L189.633 16.0034H189.583C189.384 16.2573 189.178 16.4668 188.967 16.6318C188.755 16.7969 188.51 16.9196 188.23 17C187.955 17.0846 187.619 17.127 187.221 17.127C186.802 17.127 186.428 17.0508 186.098 16.8984C185.768 16.7419 185.507 16.5049 185.317 16.1875C185.126 15.8701 185.031 15.4681 185.031 14.9814C185.031 14.2578 185.3 13.714 185.837 13.3501C186.379 12.9862 187.196 12.7852 188.288 12.7471L189.506 12.7026V12.3345C189.506 11.8478 189.392 11.5008 189.164 11.2935C188.939 11.0861 188.622 10.9824 188.211 10.9824C187.86 10.9824 187.52 11.0332 187.189 11.1348C186.859 11.2363 186.538 11.3612 186.225 11.5093L185.742 10.4556C186.085 10.2736 186.474 10.1255 186.91 10.0112C187.35 9.89697 187.807 9.83984 188.281 9.83984ZM189.5 13.6421L188.592 13.6738C187.847 13.6992 187.325 13.8262 187.024 14.0547C186.724 14.2832 186.574 14.5964 186.574 14.9941C186.574 15.3411 186.677 15.5951 186.885 15.7559C187.092 15.9124 187.365 15.9907 187.704 15.9907C188.22 15.9907 188.647 15.8447 188.986 15.5527C189.329 15.2565 189.5 14.8228 189.5 14.2515V13.6421ZM195.898 17.127C195.234 17.127 194.659 16.9979 194.172 16.7397C193.685 16.4816 193.311 16.0859 193.048 15.5527C192.786 15.0195 192.655 14.3424 192.655 13.5215C192.655 12.6667 192.799 11.9684 193.086 11.4268C193.374 10.8851 193.772 10.4852 194.28 10.2271C194.792 9.96891 195.378 9.83984 196.038 9.83984C196.457 9.83984 196.836 9.88216 197.174 9.9668C197.517 10.0472 197.807 10.1466 198.044 10.2651L197.6 11.4585C197.341 11.3527 197.077 11.2638 196.806 11.1919C196.535 11.12 196.275 11.084 196.025 11.084C195.615 11.084 195.272 11.175 194.997 11.3569C194.726 11.5389 194.523 11.8097 194.388 12.1694C194.257 12.5291 194.191 12.9756 194.191 13.5088C194.191 14.0251 194.259 14.4609 194.394 14.8164C194.529 15.1676 194.73 15.4342 194.997 15.6162C195.264 15.7939 195.592 15.8828 195.981 15.8828C196.366 15.8828 196.711 15.8363 197.016 15.7432C197.32 15.6501 197.608 15.5295 197.879 15.3813V16.6763C197.612 16.8286 197.327 16.9408 197.022 17.0127C196.717 17.0889 196.343 17.127 195.898 17.127ZM197.885 7.04053V7.16748C197.784 7.2902 197.646 7.43831 197.473 7.61182C197.299 7.78109 197.111 7.96094 196.908 8.15137C196.705 8.33757 196.504 8.51742 196.305 8.69092C196.106 8.86019 195.926 9.00407 195.765 9.12256H194.769V8.95752C194.908 8.79671 195.063 8.60417 195.232 8.37988C195.405 8.1556 195.575 7.92497 195.74 7.68799C195.909 7.45101 196.051 7.23519 196.165 7.04053H197.885ZM206.512 9.83984C207.345 9.83984 208.014 10.1445 208.518 10.7539C209.025 11.3633 209.279 12.2689 209.279 13.4707C209.279 14.2663 209.161 14.937 208.924 15.4829C208.691 16.0246 208.363 16.4351 207.94 16.7144C207.521 16.9894 207.032 17.127 206.474 17.127C206.118 17.127 205.809 17.0804 205.547 16.9873C205.285 16.8942 205.06 16.7736 204.874 16.6255C204.688 16.4731 204.531 16.3081 204.404 16.1304H204.315C204.337 16.2996 204.356 16.488 204.373 16.6953C204.394 16.8984 204.404 17.0846 204.404 17.2539V20.1167H202.906V9.97314H204.125L204.334 10.9443H204.404C204.535 10.7454 204.694 10.5614 204.88 10.3921C205.071 10.2228 205.299 10.0895 205.566 9.99219C205.837 9.89062 206.152 9.83984 206.512 9.83984ZM206.112 11.0586C205.701 11.0586 205.371 11.1411 205.122 11.3062C204.876 11.467 204.696 11.7103 204.582 12.0361C204.472 12.362 204.413 12.7703 204.404 13.2612V13.4707C204.404 13.9912 204.457 14.4334 204.563 14.7974C204.673 15.1571 204.853 15.4321 205.103 15.6226C205.356 15.8088 205.699 15.9019 206.131 15.9019C206.495 15.9019 206.795 15.8024 207.032 15.6035C207.273 15.4046 207.453 15.1211 207.572 14.7529C207.69 14.3848 207.75 13.951 207.75 13.4517C207.75 12.6942 207.614 12.106 207.343 11.687C207.077 11.2681 206.666 11.0586 206.112 11.0586ZM217.227 13.4707C217.227 14.0547 217.15 14.5731 216.998 15.0259C216.846 15.4787 216.624 15.8617 216.332 16.1748C216.04 16.4837 215.688 16.7207 215.278 16.8857C214.867 17.0465 214.404 17.127 213.888 17.127C213.405 17.127 212.963 17.0465 212.561 16.8857C212.159 16.7207 211.81 16.4837 211.514 16.1748C211.222 15.8617 210.995 15.4787 210.834 15.0259C210.674 14.5731 210.593 14.0547 210.593 13.4707C210.593 12.6963 210.727 12.0404 210.993 11.5029C211.264 10.9613 211.649 10.5487 212.148 10.2651C212.648 9.98161 213.242 9.83984 213.932 9.83984C214.58 9.83984 215.151 9.98161 215.646 10.2651C216.141 10.5487 216.528 10.9613 216.808 11.5029C217.087 12.0446 217.227 12.7005 217.227 13.4707ZM212.129 13.4707C212.129 13.9827 212.191 14.4207 212.313 14.7847C212.44 15.1486 212.635 15.4279 212.897 15.6226C213.16 15.813 213.498 15.9082 213.913 15.9082C214.328 15.9082 214.666 15.813 214.929 15.6226C215.191 15.4279 215.384 15.1486 215.506 14.7847C215.629 14.4207 215.69 13.9827 215.69 13.4707C215.69 12.9587 215.629 12.5249 215.506 12.1694C215.384 11.8097 215.191 11.5368 214.929 11.3506C214.666 11.1602 214.326 11.0649 213.907 11.0649C213.289 11.
14850649 212.838 11.2723 212.555 11.687C212.271 12.1017 212.129 12.6963 212.129 13.4707ZM216.084 7.04053V7.16748C215.982 7.2902 215.845 7.43831 215.671 7.61182C215.498 7.78109 215.31 7.96094 215.106 8.15137C214.903 8.33757 214.702 8.51742 214.503 8.69092C214.305 8.86019 214.125 9.00407 213.964 9.12256H212.967V8.95752C213.107 8.79671 213.261 8.60417 213.431 8.37988C213.604 8.1556 213.773 7.92497 213.938 7.68799C214.108 7.45101 214.25 7.23519 214.364 7.04053H216.084ZM223.644 17H218.306V16.0796L221.854 11.1221H218.521V9.97314H223.542V10.9888L220.064 15.8511H223.644V17ZM223.149 7.04053V7.16748C223.047 7.2902 222.91 7.43831 222.736 7.61182C222.563 7.78109 222.375 7.96094 222.171 8.15137C221.968 8.33757 221.767 8.51742 221.568 8.69092C221.369 8.86019 221.19 9.00407 221.029 9.12256H220.032V8.95752C220.172 8.79671 220.326 8.60417 220.496 8.37988C220.669 8.1556 220.838 7.92497 221.003 7.68799C221.173 7.45101 221.314 7.23519 221.429 7.04053H223.149ZM228.824 9.83984C229.615 9.83984 230.231 10.0451 230.671 10.4556C231.115 10.8618 231.337 11.5156 231.337 12.417V17H229.846V12.6963C229.846 12.1504 229.734 11.742 229.509 11.4712C229.285 11.1961 228.938 11.0586 228.468 11.0586C227.787 11.0586 227.313 11.2681 227.046 11.687C226.784 12.106 226.653 12.7132 226.653 13.5088V17H225.161V9.97314H226.323L226.532 10.9253H226.615C226.767 10.6799 226.955 10.4788 227.18 10.3223C227.408 10.1615 227.662 10.0409 227.941 9.96045C228.225 9.88005 228.519 9.83984 228.824 9.83984ZM234.917 9.97314V17H233.426V9.97314H234.917ZM234.181 7.28174C234.41 7.28174 234.606 7.3431 234.771 7.46582C234.941 7.58854 235.025 7.80013 235.025 8.10059C235.025 8.39681 234.941 8.6084 234.771 8.73535C234.606 8.85807 234.41 8.91943 234.181 8.91943C233.944 8.91943 233.743 8.85807 233.578 8.73535C233.417 8.6084 233.337 8.39681 233.337 8.10059C233.337 7.80013 233.417 7.58854 233.578 7.46582C233.743 7.3431 233.944 7.28174 234.181 7.28174ZM239.856 9.83984C240.482 9.83984 241.02 9.96891 241.468 10.2271C241.917 10.4852 242.262 10.8512 242.503 11.3252C242.744 11.7992 242.865 12.3662 242.865 13.0264V13.8262H238.174C238.191 14.5075 238.373 15.0322 238.72 15.4004C239.071 15.7686 239.562 15.9526 240.192 15.9526C240.641 15.9526 241.043 15.9103 241.398 15.8257C241.758 15.7368 242.128 15.6077 242.509 15.4385V16.6509C242.158 16.8159 241.8 16.9365 241.437 17.0127C241.073 17.0889 240.637 17.127 240.129 17.127C239.439 17.127 238.832 16.9937 238.307 16.7271C237.787 16.4562 237.378 16.0542 237.082 15.521C236.79 14.9878 236.644 14.3255 236.644 13.5342C236.644 12.7471 236.777 12.0785 237.044 11.5283C237.311 10.9782 237.685 10.5592 238.167 10.2715C238.65 9.98372 239.213 9.83984 239.856 9.83984ZM239.856 10.9634C239.386 10.9634 239.005 11.1157 238.713 11.4204C238.426 11.7251 238.256 12.1715 238.206 12.7598H241.405C241.401 12.4085 241.341 12.0975 241.227 11.8267C241.117 11.5558 240.948 11.3442 240.719 11.1919C240.495 11.0396 240.207 10.9634 239.856 10.9634ZM243.842 20.123C243.622 20.123 243.413 20.1061 243.214 20.0723C243.015 20.0426 242.848 20.0067 242.712 19.9644V18.771C242.856 18.8133 242.996 18.8451 243.131 18.8662C243.267 18.8874 243.421 18.8979 243.595 18.8979C243.87 18.8979 244.096 18.8218 244.274 18.6694C244.456 18.5171 244.547 18.2272 244.547 17.7998V9.97314H246.039V17.9331C246.039 18.3605 245.962 18.7393 245.81 19.0693C245.662 19.3994 245.425 19.6576 245.099 19.8438C244.778 20.0299 244.359 20.123 243.842 20.123ZM244.458 8.10059C244.458 7.80013 244.538 7.58854 244.699 7.46582C244.864 7.3431 245.065 7.28174 245.302 7.28174C245.531 7.28174 245.728 7.3431 245.893 7.46582C246.062 7.58854 246.146 7.80013 246.146 8.10059C246.146 8.39681 246.062 8.6084 245.893 8.73535C245.728 8.85807 245.531 8.91943 245.302 8.91943C245.065 8.91943 244.864 8.85807 244.699 8.73535C244.538 8.6084 244.458 8.39681 244.458 8.10059Z" fill="white"/> 1486<defs> 1487<filter id="filter0_d_39501_2197" x="6.1864" y="4.99121" width="30.1745" height="16.1711" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> 1488<feFlood flood-opacity="0" result="BackgroundImageFix"/> 1489<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/> 1490<feOffset dy="1"/> 1491<feGaussianBlur stdDeviation="0.5"/> 1492<feComposite in2="hardAlpha" operator="out"/> 1493<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0"/>
1494<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_39501_2197"/> 1495<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_39501_2197" result="shape"/> 1496</filter> 1497<linearGradient id="paint0_linear_39501_2197" x1="47.9414" y1="16.62" x2="82.3057" y2="16.62" gradientUnits="userSpaceOnUse"> 1498<stop stop-color="#E43416"/> 1499<stop offset="1" stop-color="#E75396"/> 1500</linearGradient> 1501<linearGradient id="paint1_linear_39501_2197" x1="47.9414" y1="16.62" x2="82.3057" y2="16.62" gradientUnits="userSpaceOnUse"> 1502<stop stop-color="#E43416"/> 1503<stop offset="1" stop-color="#E75396"/> 1504</linearGradient> 1505<linearGradient id="paint2_linear_39501_2197" x1="47.9414" y1="16.62" x2="82.3057" y2="16.62" gradientUnits="userSpaceOnUse"> 1506<stop stop-color="#E43416"/> 1507<stop offset="1" stop-color="#E75396"/> 1508</linearGradient> 1509<linearGradient id="paint3_linear_39501_2197" x1="47.9414" y1="16.62" x2="82.3057" y2="16.62" gradientUnits="userSpaceOnUse"> 1510<stop stop-color="#E43416"/> 1511<stop offset="1" stop-color="#E75396"/> 1512</linearGradient> 1513<linearGradient id="paint4_linear_39501_2197" x1="47.9414" y1="16.62" x2="82.3057" y2="16.62" gradientUnits="userSpaceOnUse"> 1514<stop stop-color="#E43416"/> 1515<stop offset="1" stop-color="#E75396"/> 1516</linearGradient> 1517<linearGradient id="paint5_linear_39501_2197" x1="47.9414" y1="16.62" x2="82.3057" y2="16.62" gradientUnits="userSpaceOnUse"> 1518<stop stop-color="#E43416"/> 1519<stop offset="1" stop-color="#E75396"/> 1520</linearGradient> 1521<linearGradient id="paint6_linear_39501_2197" x1="47.9414" y1="16.62" x2="82.3057" y2="16.62" gradientUnits="userSpaceOnUse"> 1522<stop stop-color="#E43416"/> 1523<stop offset="1" stop-color="#E75396"/> 1524</linearGradient> 1525<linearGradient id="paint7_linear_39501_2197" x1="20.6174" y1="21.7285" x2="20.6174" y2="2.32111" gradientUnits="userSpaceOnUse"> 1526<stop stop-color="#575756"/> 1527<stop offset="0.3459" stop-color="#3E3E3C"/> 1528<stop offset="0.7508" stop-color="#262624"/> 1529<stop offset="1" stop-color="#1D1D1B"/> 1530</linearGradient> 1531<linearGradient id="paint8_linear_39501_2197" x1="12.5073" y1="5.63599" x2="15.5336" y2="8.64433" gradientUnits="userSpaceOnUse"> 1532<stop stop-color="#E53212"/> 1533<stop offset="1" stop-color="#E95296"/> 1534</linearGradient> 1535<clipPath id="clip0_39501_2197"> 1536<rect width="41.2364" height="20" fill="white" transform="translate(0 2)"/> 1537</clipPath> 1538</defs> 1539</svg> 1540`)})} 1541$(document).find('.core_countDownPromotion').each(function(){const self=$(this);const parseDataDate=function(time){return String(time).split(' ').map(function(item){return['<span>'+item+'</span>'].join('')})} 1542let counterShowCase=self.data('showcase')||self.data('showcasesecond')||0;let counterIndex=counterShowCase?1:0;const productShipmentCounter=self.parents('.product-shipment-counter').length>=1;const productPromotionCounter=self.parents('.product-promotion-counter').length>=1;const infoblockCounter=self.parents('.header_infoblock').length>=1||self.parents('.infoblock_header').length>=1;if(self.data('countergroup')==='tomorrow'){counterShowCase++} 1543const data={countdown:[self.data('countdown'),self.data('nextcountdown')],pattern:function(data){let daysCounterTemplate;if(!skyTheme){if(infoblockCounter){daysCounterTemplate=`<div><div>${data.days !== 'undefined' || data.days > 0 ? parseDataDate(data.days) : ''}</div> ${data.days !== 'undefined' || data.days > 0 ? L.DAYS : ''}</div>`}else{daysCounterTemplate=`<div>${data.days !== 'undefined' || data.days > 0 ? parseDataDate(data.days) : ''}</div><div>${productPromotionCounter ? '<small>':''}${data.days !== 'undefined' || data.days > 0 ? L.DAYS : ''}${productPromotionCounter ? '</small>':''}</div>`}}else{daysCounterTemplate=`<div>${data.days !== 'undefined' || data.days > 0 ? parseDataDate(data.days) : ''} ${!infoblockCounter ? ' <small>':' '}${data.days !== 'undefined' || data.days > 0 ? L.DAYS : ''}${!infoblockCounter ? '</small>':''}</div>`} 1544return ` 1545 ${!productShipmentCounter 1546 ? daysCounterTemplate 1547 : `<div class='${data.days === 'undefined' || data.days <= 0 ? 'hidden' : ''}'>${parseDataDate(data.days)}${productShipmentCounter?`<small>${L.DAYS.toLowerCase()}</small>`:''}</div>`} 1548 <div> ${parseDataDate(data.hours)} ${!infoblockCounter ? `<small>${L.HOURS.toLowerCase().slice(0,-3).concat('.')}</small>`:``}</div> 1549 <div> ${parseDataDate(data.minutes)} ${!infoblockCounter ? `<small>${L.MINUTES.toLowerCase().slice(0,-3).concat('.')}</small>`:``}</div> 1550 <div> ${parseDataDate(data.seconds)} ${!infoblockCounter ? `<small>${L.SECONDS.toLowerCase().slice(0,-4).concat('.')}</small>`:``}</div> 1551 `},append:function(html){self[0].innerHTML=html}};countdown.setLabels('|z|:|:|x||||||','|z|:|:|x||||||','','','');const setCountdownTimer=function(timer){return countdownTimer=countdown(Big(Date.now()).plus(timer[counterIndex]*1000),function(parse){data.append(data.pattern({days:parse.days,hours:(parse.hours).pad(),minutes:(parse.minutes).pad(),seconds:(parse.seconds).pad()}));switch(counterShowCase){case 1:self.parent('.product-shipment-counter').find('span').last().text(`${L.PRODUCT_SHIPMENT_COUNTER_TOMORROW}`) 1552break;case 2:self.parent('.product-shipment-counter').find('span').last().text(`${L.PRODUCT_SHIPMENT_COUNTER_AFTER_TOMORROW}`) 1553break;default:break} 1554if(parse.days==0&&parse.hours==0&&parse.minutes==0&&parse.seconds==0){window.clearInterval(countdownTimer) 1555counterIndex++ 1556counterShowCase++ 1557timer=[timer[0],(timer[1]-timer[0]-1)] 1558if(productShipmentCounter&&timer[counterIndex]>0&&timer[counterIndex]!==undefined&&timer[counterIndex]!==null){setTimeout(()=>{setCountdownTimer(timer)},1000)}}},countdown.DAYS|countdown.HOURS|countdown.MINUTES|countdown.SECONDS)} 1559if(data.countdown[0]>0){setCountdownTimer(data.countdown)}else if(productShipmentCounter&&data.countdown[0]<=0&&data.countdown[counterIndex]>0){setCountdownTimer(data.countdown)} 1560else{data.append(data.pattern({days:0,hours:(0).pad(),minutes:(0).pad(),seconds:(0).pad()}))}});let setSpacingToTableCell=function(tableElement){if(!tableElement.hasAttribute('cellSpacing')){return} 1561$(tableElement).css('border-spacing',tableElement.cellSpacing+'px');$(tableElement).css('border-collapse','separate')};let setPaddingToTableCell=function(tableElement){if(!tableElement.hasAttribute('cellPadding')){return} 1562$(tableElement).find('td').css('padding',tableElement.cellPadding+'px')};$(document).ready(function(){let tables=$('section.product-tabs .tab[data-tab="description"] .tab-content table');if(tables.length){tables.each(function(index,item){setPaddingToTableCell(item);setSpacingToTableCell(item)})}}) 1563$(document).ready(function(){var headerNav=$('#header').outerHeight() 1564if($('#sticky-header').find('.sticky-header_content__logo').height()>120){$('.sticky-header_content__logo img').css({maxWidth:'90px'})} 1565$('.sticky-header_content__menu_list').children().children().each(function(index,item){if($(item).prop('tagName')==='A'&&$(item).attr('href')==='#'){$(this).on('click',function(e){e.preventDefault()})}}) 1566$(document).on('scroll',function(){var windowTopPosition=$(window).scrollTop(),stickyHeader=$('#sticky-header'),nativeHeader=$('#header'),body=$('body > main'),infobarHeader=$('.infoblock_header');if(stickyHeader.data('sticky')==='yes'&&(windowTopPosition>headerNav)&&$(window).width()>768){stickyHeader.addClass('active') 1567nativeHeader.addClass('sticky-active') 1568body.css({paddingTop:headerNav}) 1569var additionalMarginTop=$('#header > #sticky-header').length===0?'0px':nativeHeader.css('margin-top')||'0px';infobarHeader.data('sticky-infoblock')===1?stickyHeader.css({top:parseInt(additionalMarginTop)+infobarHeader.outerHeight()}):stickyHeader.css({top:parseInt(additionalMarginTop)})}else if(infobarHeader.data('sticky-infoblock')===1){nativeHeader.addClass('sticky-active') 1570body.css({paddingTop:headerNav,transition:'none'})} 1571if(windowTopPosition<headerNav){stickyHeader.removeClass('active') 1572nativeHeader.removeClass('sticky-active') 1573body.css({paddingTop:0})}})}) 1574let instagramCarouselInited=!1;function renderInstagramCarousel(){const checkWidth=$(window).width();const instagramPost=$('.instagram-modul').find($('.instagram-modul-row'));if(!skyTheme){if(checkWidth>800){if(instagramPost.data('owlCarousel')!==undefined){instagramPost.data('owlCarousel').destroy();instagramPost.removeClass('owl-carousel owl-theme owl-loaded');instagramPost.find('.owl-stage-outer').children().unwrap();instagramPost.removeData();instagramCarouselInited=!1}}else{if(!instagramCarouselInited){instagramPost.owlCarousel({touchDrag:!0,mouseDrag:!0,autoplay:!0,loop:!0,autoplaySpeed:3000,autoplayTimeout:3000,responsive:{0:{items:1},450:{items:2},649:{items:3},}});instagramCarouselInited=!0}}}else{if(checkWidth>800){if(instagramPost.data('owlCarousel')!==undefined){instagramPost.data('owlCarousel').destroy();instagramPost.removeClass('owl-carousel owl-theme owl-loaded');instagramPost.find('.owl-stage-outer').children().unwrap();instagramPost.removeData();instagramCarouselInited=!1}} 1575else if(checkWidth<800){if(!instagramCarouselInited){instagramPost.owlCarousel({touchDrag:!0,mouseDrag:!0,autoplay:!0,loop:!0,stagePadding:24,margin:8,autoplaySpeed:3000,autoplayTimeout:3000,responsive:{0:{items:1},450:{items:2},649:{items:3},}});instagramCarouselInited=!0}}}} 1576const instagramPostPopup=(postPopup,item,event)=>{let instagramPostMediaTemplate='' 1577switch(postPopup.media_type){case 'VIDEO':instagramPostMediaTemplate=` 1578 ${postPopup.media_url !== undefined && postPopup.media_url !== null 1579 ? `<i class="fa fa-play" aria-hidden="true"></i><video><source src="${postPopup.media_url}" type="video/mp4"></video>` 1580 : `<img src="${postPopup.thumbnail_url}">` 1581 }` 1582break;case 'CAROUSEL_ALBUM':postPopup.children.data.length 1583postPopup.children.data.length!==0&&postPopup.children.data.map(item=>{instagramPostMediaTemplate+=` 1584 ${item.media_type === 'VIDEO' && item.media_url 1585 ? `<div class="instagram_video_wrapper"><i class="fa fa-play" aria-hidden="true"></i><video><source src="${item.media_url}" type="video/mp4"></video></div>` 1586 : `<img src="${item?.media_url || item?.thumbnail_url || postPopup.media_url}">` 1587 }`}) 1588break;case 'IMAGE':instagramPostMediaTemplate=`<img src="${postPopup.media_url}" alt="">` 1589break;default:instagramPostMediaTemplate=`<img src="${item?.media_url || item?.thumbnail_url || postPopup.media_url}">` 1590break} 1591const instagramPopup=` 1592 <div class="instagram_popup_container"> 1593 <div class="instagram_popup_overlay"> 1594 <div class="instagram_popup"> 1595 <div class="instagram_popup_img"> 1596 ${instagramPostMediaTemplate} 1597 </div> 1598 <div class="instagram_popup_info"> 1599 <div class="post_auth_name"> 1600 <img src=${postPopup.owner.profile_picture_url} alt="">
1601 <span>${postPopup.username}</span> 1602 </div> 1603 <div class="post_descr"> 1604 1605 ${postPopup.caption ? `<p>${postPopup.caption.length>400?postPopup.caption.substring(0,397)+'... <br> <span class="more_caption"> '+L.MORE+'</span>':postPopup.caption}</p>` : '' } 1606 1607 <div class="post_additional_info"> 1608 <span><img src="/view/new/img/ico_instagramm/ic-favorites-empty.svg" alt="likes">${postPopup.like_count}</span> 1609 <span><img src="/view/new/img/ico_instagramm/ic-comments-empty.svg" alt="comments">${postPopup.comments_count}</span> 1610 <span>${new Date(postPopup.timestamp).getDate() + ' ' + new Date(postPopup.timestamp).toLocaleString($('html').attr('lang'), { month: "long" })}</span> 1611 </div> 1612 </div> 1613 <div class="post_permalink"> 1614 <a href='${postPopup.permalink}'>Zobacz na Instagramie</a> 1615 </div> 1616 </div> 1617 <button class="instagram_popup_close"> 1618 <img src="/view/new/img/ico_instagramm/close.svg" alt=""> 1619 </button> 1620 </div> 1621 </div> 1622 </div> 1623 ` 1624$('.skyshop-container').append(instagramPopup) 1625if($('.instagram_popup_img').find('img').width()>=480&&$('.instagram_popup_img').find('img').width()<=490){$('.instagram_popup').css({maxWidth:'800px'}) 1626$('.instagram_popup_img').addClass('thin_carousel')} 1627if($('.instagram_popup_img').find('img').height()>=450&&$('.instagram_popup_img').find('img').width()>=600){$('.instagram_popup_img').addClass('square_carousel')} 1628setTimeout(function(){if($('.instagram_popup_img').find($('.instagram_video_wrapper')).height()>650){$('.instagram_popup').css({maxWidth:'800px'}) 1629$('.instagram_popup_img').addClass('thin_carousel')} 1630if($('.instagram_popup_img').find($('.instagram_video_wrapper')).height()<610&&$('.instagram_popup_img').find($('.instagram_video_wrapper')).height()>500&&$('.instagram_popup_img').find($('.instagram_video_wrapper')).width()>=600){$('.instagram_popup_img').addClass('square_carousel')}},500) 1631$('.more_caption').click(function(e){$(this).closest('.post_descr p').text(postPopup.caption);$('.post_descr p ').scrollbar()}) 1632if($(window).width()<600){$('.more_caption').remove() 1633$('.post_descr p').text(postPopup.caption)} 1634if($('html').hasClass('touch')){$('html').css({overflow:'hidden'})}else{$('body').css({overflow:'hidden'})} 1635$('.instagram_popup_container').click(function(e){if(e.target.className==='instagram_popup_overlay'){$('.instagram_popup_container').remove() 1636$('body').css({overflow:'auto'}) 1637if($('html').hasClass('touch')){$('html').css({overflow:'auto'})}}}) 1638$('.instagram_popup_close').on('click',function(e){$('.instagram_popup_container').remove() 1639$('body').css({overflow:'auto'}) 1640if($('html').hasClass('touch')){$('html').css({overflow:'auto'})}}) 1641$('.instagram_popup_img').find('video').on('click',function(){this.paused?(this.play(),$('.fa-play').addClass('hidden')):(this.pause(),$('.fa-play').removeClass('hidden'))}) 1642$('.fa-play').on('click',function(){$(this).parent().find('video').trigger('play') 1643$(this).addClass('hidden')}) 1644if(postPopup.media_type==="CAROUSEL_ALBUM"){$('.instagram_popup_img').addClass('instagram_carousel').owlCarousel({onTranslated:function(e){$('.instagram_popup_img').find('video').trigger('pause')},touchDrag:!1,mouseDrag:!1,dots:!1,items:1,nav:!0,navText:['<img src="/view/new/img/ico_instagramm/ic-arrow.png">','<img src="/view/new/img/ico_instagramm/ic-arrow.png">'],})}} 1645function renderInstagram(e,posts){Object.keys($('.instagram-modul').data()).forEach(function(key){switch(key){case 'imgdescr':$('.instagram-modul').find($('.inst_descr')).remove() 1646break;case 'likes':$('.instagram-modul').find($('.inst_likes')).remove() 1647break;case 'comments':$('.instagram-modul').find($('.inst_comments')).remove() 1648break;case 'imgdescr'&&'likes'&&'comments':$('.instagram-modul').find($('.instagram_info')).remove() 1649break}}) 1650$('.instagram-modul-col').addClass('hidden') 1651var lastPostIndex=posts.length 1652var maxPostsCount=$('.instagram_post').length 1653if(lastPostIndex>maxPostsCount){posts=posts.slice(0,maxPostsCount)}
1654posts.forEach(function(post,index){$('.instagram_post').find($('.instagram_info')).removeClass('hidden') 1655$('.instagram_post').find($('.search-loading')).addClass('hidden') 1656var template=$('.instagram_post')[index].outerHTML 1657template=template.replace(/{{:likes:}}/g,post.like_count) 1658template=template.replace(/{{:comments:}}/g,post.comments_count) 1659if(post.caption){template=template.replace(/{{:caption:}}/g,post.caption)}else{template=template.replace(/{{:caption:}}/g,'')} 1660switch(post.media_type){case "IMAGE":template=template.replace('/view/new/img/transparent.png',post.media_url) 1661template=template.replace(/{{:media_type:}}/g,'') 1662break;case "VIDEO":template=template.replace('/view/new/img/transparent.png',post.thumbnail_url) 1663template=template.replace('/view/new/img/transparent.png','/view/new/img/ico_instagramm/play.png') 1664break;case "CAROUSEL_ALBUM":template=template.replace('/view/new/img/transparent.png',post.media_url) 1665template=template.replace('/view/new/img/transparent.png','/view/new/img/ico_instagramm/copy.png') 1666break} 1667$('.instagram-modul-col').eq(index).html(template) 1668$('.instagram-modul-col').eq(index).removeClass('hidden') 1669$('.instagram-modul-col').eq(index).on('click',function(){instagramPostPopup(post,$(this),e)})}) 1670$('.instagram-modul-col.hidden').remove();renderInstagramCarousel()} 1671function loadInstagram(e){$.ajax({url:'/instagram?action=getIGMedia&json=1',success:function(response){if(response.success){renderInstagram(e,response.data)}else{$('.instagram-modul').remove()}}})} 1672document.addEventListener("DOMContentLoaded",function(){const instagramModul=document.querySelector(".instagram-modul");if(!instagramModul)return;var observer=new IntersectionObserver(function(entries,observer){if(entries[0].isIntersecting){observer.disconnect();loadInstagram();$(window).resize(renderInstagramCarousel)}},{rootMargin:"200px"});observer.observe(instagramModul)});$(document).on('click keydown','.core_accountOptions',function(e){if(skyTheme&&(e.type!=='click'&&(e.type!=='keydown'||(e.key!=='Enter'&&e.key!==' ')))){return} 1673e.preventDefault();var orderOptions=$('.order').find('[data-profile-option]') 1674if($('[data-not-logged]').length){$('[data-not-logged]').each(function(){$(this).removeClass('hidden')})} 1675if(skyTheme){removeError($(this).closest('#contact-date'));orderOptions.each(function(index,item){$(item).attr('aria-checked',$(item).hasClass('active'))})} 1676switch($(this).data('profile-option')){case 'no_register':[$('input[name="password"]'),$('input[name="password_retype"]')].forEach(function(item){$(item).parent().addClass('hidden') 1677$(item).data('valid','')}) 1678$('input[name="user_email"]').parent().removeClass('hidden') 1679$('input[name="user_email"]').data('valid','required|email') 1680$('.order_login').find('[name="order-email"]').data('valid','') 1681$('.order_login').find('[name="order-password"]').data('valid','') 1682$('.order_login').find('#order-login-btn').data('valid','') 1683break;case 'register':[$('input[name="user_email"]'),$('input[name="password"]'),$('input[name="password_retype"]')].forEach(function(item){$(item).parent().removeClass('hidden') 1684$('input[name="user_email"]').data('valid','required|email') 1685$('input[name="password"]').data('valid','required|minlength:8|maxlength:32|equal:password_retype') 1686$('input[name="password_retype"]').data('valid','required|minlength:8|maxlength:32|equal:password')}) 1687$('.order_login').find('[name="order-email"]').data('valid','') 1688$('.order_login').find('[name="order-password"]').data('valid','') 1689$('.order_login').find('#order-login-btn').data('valid','') 1690break;case 'have_registered':[$('input[name="user_email"]'),$('input[name="password"]'),$('input[name="password_retype"]')].forEach(function(item){$(item).parent().addClass('hidden') 1691$(item).data('valid','')}) 1692$('.order_login').find('[name="order-email"]').data('valid','required') 1693$('.order_login').find('[name="order-password"]').data('valid','required|maxlength:32') 1694$('.order_login').find('#order-login-btn').data('valid','login-option') 1695if($('[data-not-logged]').length){$('[data-not-logged]').each(function(){$(this).addClass('hidden')})} 1696break} 1697if(skyTheme){const errors=$('.order').find('[data-profile-option="have_registered"] .ss-error-container, div[data-not-logged] .ss-error-container');errors.each(function(index,element){removeError($(element))})}else{if($('.order').find('[data-profile-option="have_registered"]').hasClass('active')){removeError($('.order').find('[data-profile-option="have_registered"]').next().find('.ss-error'))} 1698if(orderOptions.parents('.ss-error').eq(0).length>0){removeError(orderOptions.parents('.ss-error').eq(0))} 1699if($('.order').find($('div[data-not-logged]').find('input.ss-error')).length>0){removeError($('.order').find($('div[data-not-logged]')).find('.ss-error'))}} 1700skyTheme&&orderStepIndex()}) 1701$(document).on('click keydown','.core_orderShowAllProducts',function(e){if(e.type==='click'||e.key==='Enter'||e.key===' '){e.preventDefault();var productParentId=$(this).closest('[data-product-id]').data('product-id') 1702if($(this).hasClass('hide-text')){$(this).text(L.SUB_PRODUCTS_SHOW_CART) 1703$('[data-parent-product-id="'+productParentId+'"]').css({display:'none'}) 1704$(this).removeClass('hide-text') 1705$(this).closest('[data-product-id]').removeClass('open')}else{$('[data-parent-product-id="'+productParentId+'"]').css({display:'table-row'}) 1706$(this).text(L.SUB_PRODUCTS_HIDE_CART) 1707$(this).closest('[data-product-id]').addClass('open') 1708$(this).addClass('hide-text') 1709if($(window).width()<=766){$('.order_sub_product:not(.sub_products_wrapper .order_sub_product)').css({display:'none'}) 1710$(this).parent().find('.sub_products_wrapper').removeClass('hidden')}}}}) 1711$(document).ready(function(){$('[data-product-id]:not([data-parent-product-id])').each(function(i,el){if($(el).hasClass('order_parent_product')){$('[data-parent-product-id='+$(this).data('product-id')+']').clone().appendTo($(el).find('.sub_products_wrapper')) 1712$('.sub_products_wrapper').find('.order_sub_product').addClass('rwd_sub_product')} 1713$(el).find('.sub_products_wrapper').children('.rwd_sub_product').each(function(i,ele){$(ele).find('.product-name').attr('data-translate',++i+'.')}) 1714$(el).attr('data-translate',L.PRODUCT+' #'+ ++i)})}) 1715$('.core_showMoreProductImg').on('click',function(e){e.preventDefault();const isHeaderSticky=$('#header-sticky').eq(0).hasClass('sticky') 1716$(this).text()===L.HIDE_PRODUCT_IMG?$('html, body').animate({scrollTop:isHeaderSticky?$('.product_card_full_width').offset().top-$('#header-sticky').height():$('.product_card_full_width').offset().top},{easing:'swing'},100):null 1717setTimeout(()=>{const productGallerySection=$('.product-gallery') 1718const hiddenGalleryImg=productGallerySection.find('.product-card-img.hidden-gallery-img');hiddenGalleryImg.toggleClass('shown-gallery-img')},150) 1719$(this).text($(this).text()===L.SHOW_PRODUCT_IMG?L.HIDE_PRODUCT_IMG:L.SHOW_PRODUCT_IMG)}) 1720$('.core_sendPhoneAccordion').on('click',function(e){e.preventDefault();$(this).toggleClass('open');const phoneAccordionContainer=$(this).parent().next();$(this).attr('aria-expanded',$(this).hasClass('open')?'true':'false');phoneAccordionContainer.toggleClass('open');setTimeout(()=>{phoneAccordionContainer.css('overflow',phoneAccordionContainer.hasClass('open')?'visible':'hidden');phoneAccordionContainer.find('button, input').attr('tabindex',phoneAccordionContainer.hasClass('open')?0:-1)},200)});$('.core_addNewProductRate').on('click',function(e,elementId){e.preventDefault();let html=document.getElementById('add_rate_popup').innerHTML;html=html.replace(/id="(rate_[^"]+)"/g,'id="$1_popup"').replace(/for="(rate_[^"]+)"/g,'for="$1_popup"');popups.addNewProductRate(html)});$('.core_showDeliveryInfo').on('click',function(e){e.preventDefault();popups.showDeliveryPopupPriceInfo(`${L.METHODS_PAYMENTS_OPTIONS}`,$('.delivery_info-popup'))});$('.core_showUnavailableProductInfo').on('click',(e)=>{e.preventDefault();popups.actionAlert(e.target.innerHTML,L.PRODUCT_CURRENTLY_UNAVAILABLE,'info')});const showMoreProductDescriptionHandler=(element)=>{const $this=$(element.currentTarget);const $span=$this.find('span');let isShowMore=$span.text().trim()===L.SHOW_MORE;$this.parent().toggleClass('less-description');$this.toggleClass('active') 1721$span.text(isShowMore?L.SHOW_LESS:L.SHOW_MORE);$this.find('i').toggleClass('less-arrow');if(!isShowMore){$('html, body').animate({scrollTop:$('.product-description-tab').offset().top},{easing:'swing'},100)}} 1722$('.core_orderDatePicker').on('click',function(e){e.preventDefault() 1723$(this).next().focus()}) 1724const orderStepIndex=()=>{$('[data-order-step-number]').not('.hidden').each((i,item)=>$(item).find('.sky-order-step').text(++i))} 1725detectUsingKeyboard=function(){let usingKeyboard=!1;const headerSticky=document.getElementById('header-sticky');function hideHeaderSticky(hide){if(headerSticky){if(hide){headerSticky.classList.add('hidden');headerSticky.setAttribute('aria-hidden','true');headerSticky.inert=!0}else{headerSticky.classList.remove('hidden');headerSticky.removeAttribute('aria-hidden');headerSticky.inert=!1}}} 1726function handleFirstTab(e){if(e.key==='Tab'){document.body.classList.add('user-is-tabbing');usingKeyboard=!0;hideHeaderSticky(!0) 1727window.removeEventListener('keydown',handleFirstTab,!0);window.addEventListener('pointermove',handlePointerMove,!0);window.addEventListener('touchstart',handleTouch,!0)}} 1728function revertToPointer(){if(usingKeyboard){document.body.classList.remove('user-is-tabbing');usingKeyboard=!1;hideHeaderSticky(!1);if(document.activeElement&&document.activeElement!==document.body){document.activeElement.blur()} 1729window.removeEventListener('pointermove',handlePointerMove,!0);window.removeEventListener('touchstart',handleTouch,!0);window.addEventListener('keydown',handleFirstTab,!0)}} 1730function handlePointerMove(e){if(Math.abs(e.movementX)>0||Math.abs(e.movementY)>0){revertToPointer()}} 1731function handleTouch(){revertToPointer()} 1732window.addEventListener('keydown',handleFirstTab,!0)};detectUsingKeyboard();document.addEventListener('DOMContentLoaded',()=>{const ariaLiveDelayMs=2000;
1732const attachAriaLiveOnce=(el,index=0)=>{if(!el||el.dataset.ariaLiveAttached==='true')return;el.dataset.ariaLiveAttached='true';const elementWithAriaLive=document.createElement('p');elementWithAriaLive.className='sr-only';elementWithAriaLive.setAttribute('aria-live','polite');el.insertAdjacentElement('afterend',elementWithAriaLive);setTimeout(()=>{elementWithAriaLive.textContent=el.textContent},(index+1)*ariaLiveDelayMs)};setTimeout(()=>{const elements=document.querySelectorAll('.core_addAriaLivePolite');elements.forEach((el,index)=>attachAriaLiveOnce(el,index))});const observer=new MutationObserver((mutations)=>{let idx=0;mutations.forEach((mutation)=>{mutation.addedNodes&&mutation.addedNodes.forEach((node)=>{if(!(node instanceof Element))return;if(node.matches&&(node.matches('.core_addAriaLivePolite'))){attachAriaLiveOnce(node,idx++)} 1733const descendants=node.querySelectorAll?node.querySelectorAll('.core_addAriaLivePolite'):[];descendants.forEach((el)=>attachAriaLiveOnce(el,idx++))})})});observer.observe(document.documentElement||document.body,{childList:!0,subtree:!0})});const alertScreenReader=(message,ariaLiveType='assertive')=>
1733{const liveRegion=document.getElementById('aria-live');liveRegion.setAttribute('aria-live',ariaLiveType);liveRegion.textContent=' ';setTimeout(()=>{liveRegion.textContent=message},100)} 1734const getErrorContainer=($input)=>{if($input.is('.ss-error-container')){return{container:$input,selfTest:!0}} 1735if(skyTheme&&$input.nextAll('.ss-error-container').first().is('.ss-error-container')){return{container:$input,selfTest:!0}} 1736const $container=$input.parents().slice(0,2).filter('.ss-error-container').eq(0);return{container:$container.length?$container:null,selfTest:!1}} 1737$('input[id^="param-rules-"], input[id^="param-additional-rules-"], input[id="privacy_policy"], input[id="param-vat"]').on('change',function(e){const inputId=$(this).attr('for');const $input=$('#'+inputId);alertScreenReader($input.prop('checked')?L.CHECKBOX_SELECTED:L.CHECKBOX_UNSELECTED)});const announceFormErrors=()=>{if(!skyTheme)return;const $errors=$('span[id^="error-id-"][role="alert"]');const errorMessages=[...new Set($errors.map(function(){return $(this).text().trim().toLowerCase()}).get().filter(msg=>msg.length>0))].join(', ');if(errorMessages.length){setTimeout(()=>{alertScreenReader(`${L['ERROR_ALL_ERRORS_IN_FORM']} ${errorMessages}`,'polite')},100)}};const focusFirstFormError=()=>{announceFormErrors();if(!skyTheme)return;const $error=$('.ss-error-container').first();if(!$error.length)return;const isTextField=$error.is('input:not([type="checkbox"]):not([type="radio"]), select, textarea');const hasValidBox=typeof $error.attr('data-valid-box')!=='undefined';const hasRateContainer=$error.attr('data-valid')==='rateContainer';const selectFieldSelect2Container=$error.is('.select-field-select2-container');const textParameterBoxWrapper=$error.is('.text-parameter-box-wrapper');const select2Choice=$error.is('.select2-choice');if(isTextField){$error.focus();return} 1738if(selectFieldSelect2Container){const selectionField=$error.find('.select2-selection');const $prev=$error.prev();const ariaDescribedby=$prev.attr('aria-describedby');if(ariaDescribedby){selectionField.attr('aria-describedby',ariaDescribedby);selectionField.attr('role','combobox')} 1739selectionField.focus();$error.addClass('select2-container--focus');return} 1740if(hasValidBox||textParameterBoxWrapper){const $focusable=$error.find('input[type="checkbox"], input[type="radio"], textarea').first();if($focusable.length){$focusable.focus();return}} 1741if(hasRateContainer){const $focusable=$error.find('input').filter(function(){return !$(this).val()}).first();if($focusable.length){$error.focus();return}} 1742if(select2Choice){const $focusable=$error.parents('.select2-container');if($focusable.hasClass('select2-container')){$focusable.focus();return}} 1743$error.focus()};const showSuccessToast=(message)=>{if(!skyTheme)return;const toastDurationSeconds=5;const toastDelayMilliseconds=50;$.toast({text:`<i aria-hidden="true" class="fa fa-check-circle"></i> ${message}`,icon:'success',position:'bottom-right',hideAfter:toastDurationSeconds*1000+toastDelayMilliseconds,allowToastClose:!1,showHideTransition:'fade',afterHidden:function(){$('.jq-toast-wrap').find('.jq-toast-single').remove()}});const $toastWrap=$('.jq-toast-wrap');setTimeout(()=>{$toastWrap.css({display:'block'});$toastWrap.find('.jq-toast-single').addClass('core_addAriaLivePolite toast-animate')},toastDelayMilliseconds)} 1744document.addEventListener("DOMContentLoaded",function(){function getCookie(name){const value=`; ${document.cookie}`;const parts=value.split(`; ${name}=`);if(parts.length===2)return parts.pop().split(';').shift();return null} 1745function removeCookie(cookieName){document.cookie=`${cookieName}=; path=/; max-age=0; SameSite=Lax`} 1746getCookie('loggedOutNow')&&(showSuccessToast(L.USER_LOGGED_OUT),removeCookie('loggedOutNow'));getCookie('loggedInNow')&&(showSuccessToast(L.USER_LOGGED_IN),removeCookie('loggedInNow'))}) 1747if(skyTheme){const skipLinks=document.querySelectorAll('.skip-link');const mediaQuery=window.matchMedia('(max-width: 767.9px)');function toggleSkipLinksState(e){const isMobile=e.matches;skipLinks.forEach(link=>{if(isMobile){link.setAttribute('aria-hidden','true');link.setAttribute('tabindex','-1')}else{link.removeAttribute('aria-hidden');link.removeAttribute('tabindex')}})} 1748toggleSkipLinksState(mediaQuery);mediaQuery.addEventListener('change',toggleSkipLinksState);skipLinks.forEach(link=>{link.addEventListener('click',function(e){handleSkipLink(e,this)});link.addEventListener('keydown',function(e){if(e.key===' '||e.code==='Space'){e.preventDefault();handleSkipLink(e,this)}})});function isVisibleOnDesktop(element){if(!element||element.closest('.hidden-on-desktop')){return !1} 1749let currentElement=element;while(currentElement&¤tElement!==document){const computedStyle=window.getComputedStyle(currentElement);if(computedStyle.display==='none'||computedStyle.visibility==='hidden'){return !1} 1750currentElement=currentElement.parentElement} 1751return !0} 1752function handleSkipLink(e,element){e?.preventDefault();const href=element.getAttribute('href');let targetElement;if(href==='#first-section'){targetElement=document.querySelector('body > main > section')}else if(href==='#first-search'){targetElement=document.getElementById('header_main_searchbar-input')||document.getElementById('header-search-button-desktop')}else if(href==='#after-section'){targetElement=element.closest('section')?.nextElementSibling}else if(href){try{targetElement=document.querySelector(href)}catch(err){}} 1753const interactiveSelector='a, button, input, select, textarea, [tabindex]:not
1753([tabindex="-1"])';function getFirstVisibleInteractive(parent){const elements=parent.querySelectorAll(interactiveSelector);for(const el of elements){if(isVisibleOnDesktop(el)){return el}} 1754return null} 1755while(targetElement?.tagName==='SECTION'&&(!isVisibleOnDesktop(targetElement)||!getFirstVisibleInteractive(targetElement))){targetElement=targetElement.nextElementSibling} 1756targetElement??=document.querySelector('body > main > footer');if(targetElement){let elementToFocus;if(targetElement.matches(interactiveSelector)&&isVisibleOnDesktop(targetElement)){elementToFocus=targetElement}else{elementToFocus=getFirstVisibleInteractive(targetElement)||targetElement} 1757const stickyHeader=document.querySelector('.header_infoblock.sticky');const headerOffset=stickyHeader?stickyHeader.offsetHeight:0;const elementRect=targetElement.getBoundingClientRect();const offsetPosition=elementRect.top+window.scrollY-headerOffset;window.scrollTo({top:offsetPosition,behavior:'smooth'});if(!elementToFocus.matches(interactiveSelector)){elementToFocus.setAttribute('tabindex','-1')} 1758setTimeout(()=>{elementToFocus.focus({preventScroll:!0});if(!elementToFocus.matches(interactiveSelector)){elementToFocus.addEventListener('blur',()=>{elementToFocus.removeAttribute('tabindex')},{once:!0})}},100)}}} 1759$(document).on('click','.core_returnOrder',async function(e){e.preventDefault();const $btn=$(this);const orderId=$btn.data('order-id');if(!orderId){return} 1760$btn.prop('disabled',!0);try{const redirectUrl=await window.OrderService.createReturnDraft(orderId);if(redirectUrl){window.location.href=redirectUrl}}catch(error){popups.actionAlert('',error.message||`${error}`,'error')}finally{$btn.prop('disabled',!1)}});(()=>{const form=document.getElementById('core_2faForm');if(!form)return;const VERIFY_URL='/login/2fa/?json=1';const RESEND_URL='/login/2fa/resend/?json=1';const RESEND_COOLDOWN_KEY='2fa_resend_until';const RESEND_COOLDOWN_SECONDS=30;const redirectTo=new URLSearchParams(window.location.search).get('redirect_to')||'';const digitInputs=form.querySelectorAll('.form-2fa__digit');const hiddenCodeInput=document.getElementById('2faCode');const submitButton=document.getElementById('2faSubmitButton');const resendButton=document.getElementById('2faResendButton');const resendTimer=resendButton.querySelector('.form-2fa__resend-timer');const errorBox=document.getElementById('2faErrorBox');const csrfCodeInput=document.getElementById('csrfCode');const showError=(text)=>{errorBox.textContent=text;errorBox.hidden=!1};const hideError=()=>{errorBox.textContent='';errorBox.hidden=!0};const redirectToUrl=(url,timeout=0)=>{if(timeout>0){setTimeout(()=>{window.location.href=url},timeout)}else{window.location.href=url}} 1761const syncHiddenCode=()=>{const code=Array.from(digitInputs).map(input=>input.value).join('');hiddenCodeInput.value=code;if(code.length===6){submitButton.click()}};const resetDigits=()=>{digitInputs.forEach(digit=>{digit.value=''});hiddenCodeInput.value='';digitInputs[0].focus()};const updateCsrfByResponse=(response)=>{csrfCodeInput.value=response.new_csrf_token||''};const getCsrfCode=()=>csrfCodeInput.value||'';digitInputs.forEach((input,index)=>{input.addEventListener('input',()=>{input.value=input.value.replace(/\D/g,'').slice(-1);syncHiddenCode();if(input.value&&index<digitInputs.length-1){digitInputs[index+1].focus()}});input.addEventListener('paste',(e)=>{e.preventDefault();const pastedText=(e.clipboardData||window.clipboardData).getData('text').replace(/\D/g,'').slice(0,6);pastedText.split('').forEach((character,position)=>{if(digitInputs[position])digitInputs[position].value=character});syncHiddenCode();digitInputs[Math.min(pastedText.length,digitInputs.length-1)].focus()});input.addEventListener('keydown',(e)=>{if(e.key==='Backspace'&&!input.value&&index>0){digitInputs[index-1].value='';digitInputs[index-1].focus();syncHiddenCode()}})});digitInputs[0].focus();const setLoading=(isLoading)=>{submitButton.classList.toggle('loading',isLoading);submitButton.disabled=isLoading};form.addEventListener('submit',async(e)=>{e.preventDefault();if(submitButton.disabled)return;hideError();setLoading(!0);try{const verifyUrl=redirectTo?`${VERIFY_URL}&redirect_to=${encodeURIComponent(redirectTo)}`:VERIFY_URL;const response=await fetch(verifyUrl,{method:'POST',body:new URLSearchParams({code:hiddenCodeInput.value,csrf:getCsrfCode(),})});const json=await response.json();if(json.success){window.location.href=json.redirectUrl||'/';return} 1762updateCsrfByResponse(json);showError(json.errorMessage||'NieprawidÅowy kod.');resetDigits();if(json.redirectUrl){redirectToUrl(json.redirectUrl,1000)}}catch{showError('WystÄ piÅ bÅÄ d. Spróbuj ponownie.')}finally{setLoading(!1)}});const startResendCooldown=()=>{const until=Date.now()+RESEND_COOLDOWN_SECONDS*1000;sessionStorage.setItem(RESEND_COOLDOWN_KEY,until);tickResendCooldown()};const tickResendCooldown=()=>{const until=parseInt(sessionStorage.getItem(RESEND_COOLDOWN_KEY),10);if(!until||Date.now()>
1762=until){sessionStorage.removeItem(RESEND_COOLDOWN_KEY);resendButton.classList.remove('form-2fa__resend-link--disabled');resendTimer.textContent='';return} 1763const remaining=Math.ceil((until-Date.now())/1000);resendButton.classList.add('form-2fa__resend-link--disabled');resendTimer.textContent=`${L['USER_2FA_RESEND_TIMER_PREFIX']} ${remaining}s`;setTimeout(tickResendCooldown,1000)};tickResendCooldown();resendButton.addEventListener('click',async(e)=>{e.preventDefault();if(resendButton.classList.contains('form-2fa__resend-link--disabled'))return;hideError();startResendCooldown();try{const response=await fetch(RESEND_URL,{method:'POST',body:new URLSearchParams({csrf:getCsrfCode()}),});const json=await response.json();updateCsrfByResponse(json);if(!json.success){showError(json.errorMessage||'Nie udaÅo siÄ wysÅaÄ kodu.');if(json.redirectUrl){redirectToUrl(json.redirectUrl,1000)}}}catch{showError('WystÄ piÅ bÅÄ d. Spróbuj ponownie.')}})})();$(document).on('change','.core_formChange',function(e){const $input=$(e.target);const{container,selfTest}=getErrorContainer($input);const inputContainer=container;if(!inputContainer){return !1} 1764if(inputContainer.hasClass('ss-error-container')){if(formValidator(inputContainer,selfTest)){removeError(inputContainer)}}});$(document).on('click','.core_ticketForm',function(e){e.preventDefault();const form=$(e.currentTarget).closest('form');if(!formValidator(form))return;if(!$('.ss-error-container').length){const url='/ticket/?json=1';const form=$(e.currentTarget).closest('form');const postData={title:form.find('input[name="title"]').val(),email:form.find('input[name="email"]').val(),text:form.find('textarea[name="text"]').val(),submit:'submit',is_js:form.find('.pro-tecting-_-Input').val(),csrf_token:form.find('input[name="csrf_token"]').val(),'cf-turnstile-response':form.find('input[name="cf-turnstile-response"]').val()} 1765if(form.find('input[name="order_id"]')?.val()){postData.order_id=form.find('input[name="order_id"]').val()} 1766$.post(url,postData,(response)=>{let decodedResponse;try{decodedResponse=(typeof response==='string')?JSON.parse(response):response}catch(e){popups.actionAlert(L.INFORMATION,L.ERROR_UNEXPECTED_ERROR,'error');return} 1767if(decodedResponse.error){popups.actionAlert(L.INFORMATION,decodedResponse.error,'error');return} 1768switch(decodedResponse?.type){case 'BOT_PROTECT':popups.actionAlert(L.INFORMATION,L.FORM_VALIDATION_FAILED_JS,'error');return;case 'CSRF_PROTECT':popups.actionAlert(L.INFORMATION,L.ERROR_NOT_UNIQUE,'error');return;default:window.location.href='/ticket/sended'}})}}) 1769$(document).on('click','.core_openStore',function(e){e.preventDefault();window.location='/category/c/store/'});$(document).on('click','.core_openProductRateUrl',function(e){e.preventDefault();const url=$(this).data('product-rate-url');window.location.href=url});$(function(){$('form.unsubscribe-newsletter').on('submit',function(e){e.preventDefault();const self=$(this);const data={email:self.eq(0).find('input[name="email"]').val(),validate:formValidator(self.eq(0)),is_js:self.find('.pro-tecting-_-Input').val(),csrf_token:self.find('input[name="csrf_token"]').val()} 1770if(data.validate){$.ajax({method:"POST",url:'/newsletter?json=1',dataType:'json',data:'email='+encodeURIComponent(data.email)+'&csrf_token='+encodeURIComponent(data.csrf_token),success:function(response){if(response.success){popups.actionAlert(L.UNSUBSCRIBE_NEWSLETTER,response.message,'success',function(){window.location.replace('/')})}else{if(response.csrf_token){self.find('input[name="csrf_token"]').val(response.csrf_token)} 1771popups.actionAlert(L.UNSUBSCRIBE_NEWSLETTER,response.message,'error')}},})}else{focusFirstFormError()}})});document.addEventListener('DOMContentLoaded',function(){const scrollbar=document.getElementById('scrollbar');const scrollbarInner=document.getElementById('scrollbar-inner');let isDragging=!1;let startClientY=0;let startScrollTop=0;let isScrolling;function updateScrollbar(){const{scrollTop,scrollHeight,clientHeight}=document.documentElement||document.body;const scrollbarHeight=(clientHeight/scrollHeight)*clientHeight;const scrollbarTop=(scrollTop/scrollHeight)*clientHeight;scrollbarInner.style.height=`${scrollbarHeight}px`;scrollbarInner.style.top=`${scrollbarTop}px`;$('body').css({userSelect:"none"}) 1772window.clearTimeout(isScrolling);isScrolling=setTimeout(function(){scrollbar.classList.contains('scrolling-active')&&scrollbar.classList.remove('scrolling-active') 1773$('body').css({userSelect:'auto'})},1500)} 1774scrollbar.addEventListener('mousedown',(event)=>{isDragging=!0;startClientY=event.clientY;startScrollTop=document.documentElement.scrollTop||document.body.scrollTop});document.addEventListener('mousemove',(event)=>{if(isDragging){const deltaY=event.clientY-startClientY;const percentageDelta=deltaY/scrollbar.clientHeight;
1774const newScrollTop=startScrollTop+percentageDelta*(document.documentElement.scrollHeight||document.body.scrollHeight);document.documentElement.scrollTop=newScrollTop;document.body.scrollTop=newScrollTop}});document.addEventListener('mouseup',()=>{isDragging=!1});document.addEventListener('scroll',()=>{scrollbar.classList.add('scrolling-active') 1775updateScrollbar()});updateScrollbar()});const $headerElement=$('header');const $infoBlockElement=$('#header_infoblock');function initInfoBlock(){this.createInfoBlockCookie=()=>{const infoBlockCountDown=$infoBlockElement.attr('data-countdown');cookies.create('infoblock_close_code',$infoBlockElement.attr('data-infoblock-hash'),infoBlockCountDown>0&&infoBlockCountDown*1000)} 1776this.setHeaderPaddingTop=(infoBlockHeight)=>{const $headerStickyElement=$('#header-sticky');const isInfoBlockSticky=!!parseInt($infoBlockElement.attr('data-sticky-infoblock'));if(isInfoBlockSticky){$headerElement.css('paddingTop',infoBlockHeight+'px');$infoBlockElement.addClass('sticky')} 1777if($headerStickyElement.length){$headerStickyElement.css('marginTop','0')}} 1778$infoBlockElement.find('[data-button="timer"]').last().replaceWith($infoBlockElement.find('[data-countdown]')).end().remove();this.setHeaderPaddingTop($infoBlockElement.outerHeight());$infoBlockElement.find('.close').on('click',()=>{this.createInfoBlockCookie();this.setHeaderPaddingTop(0);$infoBlockElement.remove()});$(window).on('resize',()=>this.setHeaderPaddingTop($infoBlockElement.outerHeight()))} 1779if($headerElement.length&&$infoBlockElement.length){initInfoBlock()};const headerUserMenu={elements:{userAccountButton:document.getElementById('header-user-account-button-desktop'),userAccountMenu:document.getElementById('header-user-account-menu-desktop'),cartButtonDesktop:document.getElementById('header-cart-button-desktop'),cartMenuDesktop:document.getElementById('header-cart-menu-desktop')},toggleDropdown(buttonEl,menuEl){const isExpanded=buttonEl.getAttribute('aria-expanded')==='true';buttonEl.setAttribute('aria-expanded',String(!isExpanded))},handleFocusOutDropdown(buttonEl,dropdownEl,event){const relatedTarget=event.relatedTarget;if(!dropdownEl.contains(relatedTarget)&&!buttonEl.contains(relatedTarget)){buttonEl.setAttribute('aria-expanded',!1)}},handleKeydown(buttonEl,dropdownEl,event){const isCartLocation=window.location.pathname.indexOf("/cart")>-1;if(event.key==='Enter'||event.key===' '||(event.type==='focusin'&&event.target.getAttribute('id')==='header-cart-button-desktop'&&!isCartLocation)){event.preventDefault();this.toggleDropdown(buttonEl,dropdownEl)}},setupDropdownListeners(buttonEl,menuEl){buttonEl?.addEventListener('focusin',this.handleKeydown.bind(this,buttonEl,menuEl));buttonEl?.addEventListener('keydown',this.handleKeydown.bind(this,buttonEl,menuEl));buttonEl?.addEventListener('focusout',this.handleFocusOutDropdown.bind(this,buttonEl,menuEl));menuEl?.addEventListener('focusout',this.handleFocusOutDropdown.bind(this,buttonEl,menuEl))},init(){const{userAccountButton,userAccountMenu,cartButtonDesktop,cartMenuDesktop}=this.elements;headerUserMenu.setupDropdownListeners(userAccountButton,userAccountMenu);headerUserMenu.setupDropdownListeners(cartButtonDesktop,cartMenuDesktop)}};headerUserMenu.init();const headerMainMenu={shadowTimeout:null,setShadowBody:function(isShadow=!1){const headerMainMenuElement=document.querySelector('.header_main_menu');const headerMainMenuElementSticky=document.querySelector('#header-sticky');const headerIsSticky=headerMainMenuElementSticky?.classList.contains('sticky') 1780let shadowHeader=document.querySelector('.shadow_header');const shadowHeaderWrapper=$('<div class="shadow_header"></div>');if(isShadow){headerMainMenuElement.classList.add('header-main-menu-shadow') 1781if(shadowHeader){shadowHeader.classList.remove('fade-out');return} 1782shadowHeaderWrapper.appendTo('.fixed-elements');shadowHeaderWrapper[0].style.setProperty('--shadowPosition',headerIsSticky?'absolute':'fixed')}else{if(shadowHeader){shadowHeader.classList.add('fade-out')} 1783$('.shadow_header.fade-out').on('transitionend animated',function(){if(shadowHeader?.classList.contains('fade-out')){headerMainMenuElement.classList.remove('header-main-menu-shadow');$('.shadow_header').remove()}})}},handlers:{shadowMouseEnter:function(event){let parentElement=event.target.parentElement;
1783if(parentElement&&parentElement.matches('.click.nav-item')){return} 1784if(headerMainMenu.shadowTimeout){clearTimeout(headerMainMenu.shadowTimeout);headerMainMenu.shadowTimeout=null} 1785headerMainMenu.setShadowBody(!0)},shadowMouseLeave:function(event){let parentElement=event.target.parentElement;while(parentElement&&!parentElement.matches('.click.nav-item')){parentElement=parentElement.parentElement} 1786if(parentElement&&parentElement.matches('.click.nav-item')){return} 1787headerMainMenu.shadowTimeout=setTimeout(()=>{headerMainMenu.setShadowBody(!1)},10)},click:function(event){if(event.type==='keydown'&&event.key!=='Enter'&&event.key!==' '){if(event.key==='Escape'){event.target.nextElementSibling.classList.remove('show')} 1788return} 1789event.preventDefault();event.stopPropagation();if(event.type==='keydown'&&event.key===' '){event.target.nextElementSibling.classList.toggle('show')} 1790if(event.type==='keydown'&&event.key===' '||(event.type==='click'&&event.buttons===1)){event.target.setAttribute('aria-expanded',event.target.nextElementSibling.classList.contains('show')?'true':'false');headerMainMenu.replaceEventListener(event.target.closest('.nav-item'),'focusout',headerMainMenu.handlers.onFocusOut);return} 1791let parentElementIsHamburgerMenu=!1 1792let parentElement=this.parentElement;while(parentElement!==null){if(parentElement.classList.contains('nav-item-hamburger-menu')){parentElementIsHamburgerMenu=!0;break} 1793parentElement=parentElement.parentElement} 1794if(!this.parentElement.classList.contains('click')&&!parentElementIsHamburgerMenu){headerMainMenu.linkLocationRedirect(event);return} 1795headerMainMenu.linkLocationRedirect(event);requestAnimationFrame(()=>{const parentClosestElement=event.target.closest('ul');Array.from(document.querySelectorAll('.header_main_menu_list .nestedDropdown.show')).filter(el=>el!==this).map(el=>{if(parentClosestElement.classList.contains('header_main_menu_list')||(!el.contains(event.target)&&!el.classList.contains('nav-hamburger-link'))){el.classList.remove('show');el.nextElementSibling.classList.remove('show')}});headerMainMenu.setShadowBody(this.classList.contains('show'))})},onFocusOut:function(event){const navItem=this;if(event.key==='Escape'||!navItem.contains(event.relatedTarget)){navItem.querySelector('.nestedDropdown').setAttribute('aria-expanded','false');navItem.querySelector('.dropdown-menu').classList.remove('show')}}},replaceEventListener:function(element,event,handler){element.removeEventListener(event,handler);element.addEventListener(event,handler)},linkLocationRedirect:function(event){const elementAttrHref=event.target.getAttribute('href')||event.target.closest('a')?.getAttribute('href');if(elementAttrHref&&elementAttrHref!=='#'){window.location.href=elementAttrHref}}} 1796const generateHeaderMenu=(nav,navList,isSticky=!1)=>{const generateTreeElement=(element,childrenHtml='> ul li')=>({text:element.find('> a').text().trim(),href:element.find('> a').attr('href')||'#',id:element.find('> ul').attr('id'),children:element.find(childrenHtml),});const elementHTMLGenerator={scrollbar:function(){const nestedDropdownMenus=document.querySelectorAll('.header_main_menu_list ul.dropdown-menu');nestedDropdownMenus.forEach((dropdownMenu)=>{const dropdownMenuPaddingHeight=parseFloat(getComputedStyle(dropdownMenu).paddingTop)+parseFloat(getComputedStyle(dropdownMenu).paddingBottom);const dropdownMenuScroll=$(dropdownMenu).find('.dropdown-menu-scroll');$(dropdownMenu).css({display:'block'});dropdownMenuScroll.scrollbar();if($(dropdownMenu).closest('.nav-item-hamburger-menu').length){let distanceFromWindowTopToDropdown=$(dropdownMenu).offset().top-$(window).scrollTop()+dropdownMenuPaddingHeight;dropdownMenuScroll.css({'max-height':$(window).height()-distanceFromWindowTopToDropdown})}})},link:function(text,href,notLastNested){const liClass=notLastNested?'nav-item dropdown':'nav-item';const linkClass=notLastNested?'text-decoration-children nestedDropdown nav-link dropdown-toggle d-flex align-items-center text-break sky-cursor-pointer':'text-decoration-children nav-link d-flex justify-content-start text-break sky-cursor-pointer';const textContent=notLastNested?`<span class="sky-f-small-bold me-1 child-decoration">${text}</span><span></span>`:`<span class="icon-arrow_right_16 icon-16 icon-600 me-1"></span><span class="sky-f-small-regular text-break child-decoration">${text}</span>`;return `<li class="${liClass}"> 1797 <a href="${href}" class="${linkClass}"> 1798 ${textContent} 1799 </a> 1800 </li>`},menuRow:function(element){const treeElement=generateTreeElement($(element),' > ul div.col');const tempContainer=document.createElement('div');tempContainer.innerHTML=treeElement.children.length?elementHTMLGenerator.dropdownRow(treeElement.text,treeElement.href,treeElement.id,treeElement.children,element.classList.contains('nav-item-categories')):elementHTMLGenerator.link(treeElement.text,treeElement.href,!0);return tempContainer.firstElementChild},dropdownRow:function(text,href,id,children=null,lastNested=!1){const generateChildrenHtml=(children,lastNested)=>{let childrenHtml='';
1800if(children&&children.length){if(!lastNested){childrenHtml+='<div class="dropdown-menu-scroll">'} 1801children.each(index=>{const treeElement=generateTreeElement($(children[index]));childrenHtml+=treeElement.children.length?elementHTMLGenerator.dropdownRow(treeElement.text,treeElement.href,treeElement.id,treeElement.children,!1):elementHTMLGenerator.link(treeElement.text,treeElement.href,lastNested)});if(!lastNested){childrenHtml+='</div>'}} 1802return childrenHtml} 1803const childrenHtml=generateChildrenHtml(children,lastNested);return `<li class="nav-item dropdown" style="display: flex;"> 1804 <a 1805 aria-haspopup="true" 1806 role="button" 1807 class="nestedDropdown text-decoration-children nav-link dropdown-toggle d-flex align-items-center text-nowrap sky-cursor-pointer" 1808 data-bs-toggle="dropdown" 1809 aria-controls="${id}" 1810 href="${(href !== 'http://' && href !== 'https://') ? href : '#'}"> 1811 <span class="sky-f-small-bold me-1 child-decoration">${text}</span> 1812 <span class="icon-arrow_down_16 icon-16 icon-600 text-decoration-none"></span> 1813 </a> 1814 <ul id="${id}" class="dropdown-menu position-absolute"> 1815 ${childrenHtml} 1816 </ul> 1817 </li>`}} 1818const navListGapStyle=parseFloat(getComputedStyle(navList).columnGap);let hamburgerElementWidth=0;Array.from(navList.children).forEach(child=>{if(child.classList.contains('nav-item-hamburger-menu')){child.style.display='flex';hamburgerElementWidth=document.querySelector('.nav-item-hamburger-menu').getBoundingClientRect().width} 1819child.style.display='none'}) 1820const hiddenList=navList.querySelector('.header_main_menu_hidden_list');if(hiddenList){hiddenList.innerHTML=""} 1821const navListMaxWidth=nav.offsetWidth;if(isSticky){nav.style.width=navListMaxWidth+'px'} 1822let navListCurrentWidth=0;const navListElements=Array.from(navList.children);for(let i=0;i<navListElements.length;i++){let lastNavItem=(i+1)===navListElements.length-1;const navListElement=navListElements[i];if(navListElement.classList.contains('nav-item-vertical-menu-index')&&window.innerWidth>=1200){navListElement.style.display='none'}else{navListElement.style.display='flex'} 1823if(navListElement.classList.contains('nav-item-with-vertical-menu')){const dropdownVerticalMenuElement=navListElement.querySelector('.dropdown-vertical-menu');dropdownVerticalMenuElement.style.minWidth=getComputedStyle(navListElement).width} 1824const navListElementWidth=navListElement.offsetWidth;if((navListElementWidth+navListCurrentWidth+(lastNavItem?0:hamburgerElementWidth))>navListMaxWidth){navListElement.style.display='none';break} 1825navListCurrentWidth+=navListElementWidth+navListGapStyle;if(lastNavItem){document.querySelector('.nav-item-hamburger-menu').style.display='none';break}} 1826for(let i=0;i<navListElements.length;i++){const navListElement=navListElements[i];const navListElementComputedStyle=getComputedStyle(navListElement);const headerMainMenuHiddenList=navList.querySelector('.header_main_menu_hidden_list');if(navListElementComputedStyle.display==='none'){if(navListElement.classList.contains('nav-item-hamburger-menu')&&$(navList.querySelector('.header_main_menu_hidden_list li')).length){navListElement.style.display='flex';headerMainMenuHiddenList.style.left=(-1*(headerMainMenuHiddenList.getBoundingClientRect().width-hamburgerElementWidth))+'px'}else if(!navListElement.classList.contains('nav-item-hamburger-menu')&&!navListElement.classList.contains('nav-item-vertical-menu-index')){let navListElementClone=navListElement.cloneNode(!0);navListElementClone.querySelector('a').classList.remove('nav-link-border');navListElementClone.style.display='flex';navListElementClone=elementHTMLGenerator.menuRow(navListElementClone);navList.querySelector('.header_main_menu_hidden_list').appendChild(navListElementClone)}}} 1827setTimeout(()=>{elementHTMLGenerator.scrollbar()},10)} 1828const initHeaderMainMenu=()=>{const nav=document.querySelector('.header_main_menu .header_main_menu_wrapper');if(!nav){return} 1829generateHeaderMenu(nav,nav.querySelector('.header_main_menu_list'));const nestedDropdownsLinks=document.querySelectorAll('.header_main_menu_list .nestedDropdown');document.addEventListener('click',(event)=>{if(!event.target.closest('.header_main_menu_list ul.dropdown-menu')&&!event.target.closest('.header_main_menu_hidden_list .dropdown-menu-scroll')){headerMainMenu.setShadowBody(!1)}});nestedDropdownsLinks.forEach((link)=>{headerMainMenu.replaceEventListener(link,'click',headerMainMenu.handlers.click);headerMainMenu.replaceEventListener(link,'keydown',headerMainMenu.handlers.click);const navItem=link.closest('.nav-item');
1829if(navItem){const isClick=navItem.classList.contains('click');if(isClick){headerMainMenu.replaceEventListener(navItem,'click',headerMainMenu.handlers.shadowMouseEnter)}else{headerMainMenu.replaceEventListener(navItem,'mouseenter',headerMainMenu.handlers.shadowMouseEnter);headerMainMenu.replaceEventListener(navItem,'mouseleave',headerMainMenu.handlers.shadowMouseLeave)}}})} 1830const updateStickyHeaderVisibility=(isResize=!1)=>{const header=document.querySelector('header.header');const stickyHeader=document.querySelector('#header-sticky');const infoBlock=document.querySelector('#header_infoblock');const isInfoBlockSticky=infoBlock?parseInt(infoBlock.getAttribute('data-sticky-infoblock')):null;const scrollY=window.scrollY;const mainSearchDropdown=document.querySelector('.header_with_searchbar .core_quickSearchAjaxHints');const navSticky=document.querySelector('#header-sticky')?.querySelector('.header_main_menu');const openDropdown=$('nav .header_main_menu .header_main_menu_list > li.nav-item:not(.nav-item-hamburger-menu):hover:not(.click) > .dropdown-menu');if(scrollY>header.offsetHeight&&!stickyHeader.classList.contains('sticky')){openDropdown.css({display:'none'});stickyHeader.style.marginTop=(isInfoBlockSticky?infoBlock.clientHeight:0)+'px';stickyHeader.classList.add('sticky');if(navSticky){if(mainSearchDropdown){mainSearchDropdown.classList.add('hidden')} 1831generateHeaderMenu(navSticky,navSticky.querySelector('.header_main_menu_list'),!0)}}else if(scrollY<=header.offsetHeight){const openClickDropdown=$('.header_main_menu .header_main_menu_list > li.nav-item.click > .dropdown-menu.show');if(openClickDropdown.length){headerMainMenu.setShadowBody(!0)} 1832openDropdown.css({display:'block'});stickyHeader.classList.remove('sticky')}else{openDropdown.css({display:'block'})} 1833if(navSticky&&isResize){if(mainSearchDropdown){mainSearchDropdown.classList.add('hidden')} 1834generateHeaderMenu(navSticky,navSticky.querySelector('.header_main_menu_list'),!0)}} 1835const debouncedInitHeaderMainMenu=debounce(initHeaderMainMenu,500);document.addEventListener("DOMContentLoaded",()=>{initHeaderMainMenu();if(document.querySelector('#header-sticky')?.querySelector('.header_main_menu')){window.addEventListener('scroll',()=>{updateStickyHeaderVisibility()})} 1836const debounceInitStickyHeaderMainMenu=debounce((resize=!1)=>updateStickyHeaderVisibility(resize),500);window.addEventListener('resize',()=>{Array.from(document.querySelectorAll('.header_main_menu_list .show')).map(el=>{el.classList.remove('show')});headerMainMenu.setShadowBody(!1);debouncedInitHeaderMainMenu();const stickyHeader=document.querySelector('#header-sticky');if(stickyHeader){stickyHeader.classList.remove('sticky');debounceInitStickyHeaderMainMenu(!0)}})});document.addEventListener('click',function(event){const mainSearchDropdown=document.querySelector('.header_with_searchbar .core_quickSearchAjaxHints');const panelSearchDropdown=document.querySelector('.header_searchbar_panel .core_quickSearchAjaxHints');const searchBars=document.querySelectorAll('.header_searchbar');let isInSearchBar=!1;searchBars.forEach(searchBar=>{if(searchBar.contains(event.target)){isInSearchBar=!0}});if(!isInSearchBar){if(mainSearchDropdown){mainSearchDropdown.classList.add('hidden')} 1837if(panelSearchDropdown){panelSearchDropdown.classList.add('hidden')}}});$(document).ready(function(){$('#header_main_searchbar').on('focusout',function(e){if(!this.contains(e.relatedTarget)){$('.core_quickSearchAjaxHints').addClass('hidden')}})});const setShadowMobileBody=(isShadow=!1)=>{const panelElement=document.querySelector('.header_searchbar_panel');if(isShadow){panelElement.classList.add('header_searchbar_panel-shadow');$('html').addClass('prevent-scroll prevent-scroll-desktop') 1838return} 1839panelElement.classList.remove('header_searchbar_panel-shadow')} 1840const clearQuickSearchInput=(closePanel=!1)=>{const searchBarPanelElement=document.querySelector(".header_searchbar_panel");if(closePanel&&searchBarPanelElement){searchBarPanelElement.classList.remove("open");setShadowMobileBody(!1)}} 1841document.addEventListener("DOMContentLoaded",function(){const openSearchButtons=document.querySelectorAll("#header-search-button-mobile, #header-search-button-desktop, #header-search-button-sticky");const closeSearchButton=document.querySelector("#header-panel-search-close-button");const searchBarElements=document.querySelectorAll('.header_searchbar');const searchBarPanelElement=document.querySelector(".header_searchbar_panel");const infoBlock=document.querySelector('#header_infoblock');const isInfoBlockSticky=infoBlock?parseInt(infoBlock.getAttribute('data-sticky-infoblock')):null;if(openSearchButtons.length){openSearchButtons.forEach(button=>{button.addEventListener("click",(event)=>{event.stopPropagation();$(searchBarPanelElement).css({'top':isInfoBlockSticky?infoBlock.clientHeight:0});searchBarPanelElement.classList.add("open");$('html').removeClass('prevent-scroll prevent-scroll-desktop');setShadowMobileBody(!0);$(searchBarPanelElement).find('input.form-control').focus()})})} 1842if(closeSearchButton){closeSearchButton.addEventListener("click",(event)=>{event.stopPropagation();searchBarPanelElement.classList.remove("open");$('html').removeClass('prevent-scroll prevent-scroll-desktop');setShadowMobileBody(!1)})} 1843document.addEventListener("click",(event)=>{if(!searchBarPanelElement?.classList.contains('open')||searchBarPanelElement.contains(event.target))return;for(const searchBarElement of searchBarElements){if(searchBarElement.contains(event.target)){return}} 1844$('html').removeClass('prevent-scroll prevent-scroll-desktop');clearQuickSearchInput(!0);});document.addEventListener('keydown',function(event){if(event.key==='Escape'||event.key==='Esc'||event.keyCode===27){$('html').removeClass('prevent-scroll prevent-scroll-desktop') 1845clearQuickSearchInput(!0)}})});document.addEventListener("DOMContentLoaded",()=>{const mobileOpenMenuElement=document.querySelector('#mobile-open-flex-menu');const mobileMenuElement=document.querySelector('#mobile-flex-menu');const mobileMenuCloseElement=document.querySelector('#mobile-flex-menu-close');if(!mobileMenuElement)return;const mobileMenuTitleContainer=mobileMenuElement.querySelector('.flex_menu_title .title');const mobileMenuCategoriesContainer=mobileMenuElement.querySelector('.categories-scroll');const mobileMenuBackButton=mobileMenuElement.querySelector('.flex_back_button');const focusFirstLink=()=>{setTimeout(()=>{$(mobileMenuCategoriesContainer).find('ul:first-child > li:first-child a').focus()},0)};const openSubmenu=(anchorElement,nextUlElement)=>{const title=anchorElement.cloneNode(!0);title.setAttribute('tabindex',anchorElement.getAttribute('role')==='button'&&!anchorElement.getAttribute('href')?-1:0);mobileMenuTitleContainer.insertBefore(title,mobileMenuTitleContainer.firstChild);mobileMenuCategoriesContainer.insertBefore(nextUlElement.cloneNode(!0),mobileMenuCategoriesContainer.firstChild);mobileMenuBackButton.style.opacity=mobileMenuCategoriesContainer.children.length>1?1:0;addClickableEvents();focusFirstLink()};const addClickableEvents=()=>{$(mobileMenuTitleContainer).parent().find('.flex_back_button').show();const anchorWithNextUl=mobileMenuElement.querySelectorAll('.categories-scroll.scroll-content > ul:first-child > li > a + ul');const anchorsWithoutNextUl=mobileMenuElement.querySelectorAll('.categories-scroll.scroll-content > ul:first-child > li > a:not(:has(+ ul))');anchorsWithoutNextUl.forEach(anchor=>{anchor._keydownHandler=(event)=>{if(event.key==='Tab'&&!event.shiftKey){const currentLi=event.target.closest('li');const parentUl=currentLi?.parentElement;if(parentUl&¤tLi){const listItems=Array.from(parentUl.querySelectorAll(':scope > li'));const isLastLi=listItems[listItems.length-1]===currentLi;if(isLastLi){event.preventDefault();$(event.target).focus()}}}};anchor.addEventListener('keydown',anchor._keydownHandler)}) 1846anchorWithNextUl.forEach(ul=>{const anchor=ul.previousElementSibling;anchor.removeEventListener('click',anchor._clickHandler);anchor.removeEventListener('keydown',anchor._keydownHandler);anchor._clickHandler=(event)=>{event.preventDefault();openSubmenu(anchor,ul)};anchor._keydownHandler=(event)=>{if(event.key==='Enter'){event.preventDefault();event.stopPropagation();openSubmenu(anchor,ul)}else if(event.key==='Tab'&&!event.shiftKey){const currentLi=event.target.closest('li');const parentUl=currentLi?.parentElement;if(parentUl&¤tLi){const listItems=Array.from(parentUl.querySelectorAll(':scope > li'));const isLastLi=listItems[listItems.length-1]===currentLi;if(isLastLi){event.preventDefault();$(event.target).focus()}}}};anchor.addEventListener('click',anchor._clickHandler);anchor.addEventListener('keydown',anchor._keydownHandler)})};mobileOpenMenuElement.addEventListener("click",()=>{createSwipePanel('left','categories',(content)=>{$(mobileMenuTitleContainer).parent().find('.flex_back_button').hide();$(mobileMenuTitleContainer).children().not('.logo').remove();content.append(mobileMenuElement);content.find('.logo a').focus()},()=>
1846{[...mobileMenuCategoriesContainer.children].reverse().forEach(child=>{if(child.tagName.toLowerCase()==='ul'&&!child.classList.contains('main-categories')){mobileMenuCategoriesContainer.removeChild(child)}})})});mobileMenuElement.addEventListener("keydown",(event)=>{if(event.key==='Escape'){mobileMenuCloseElement.focus()}else if(event.key==='Tab'&&event.shiftKey&&(event.target.classList.contains('header_mobile_menu_logo')||event.target.classList.contains('flex_back_button'))){event.preventDefault();$(event).focus()}});mobileMenuCloseElement.addEventListener("keydown",(event)=>{if(event.key==='Enter'){$('.swipe-panel-close-area').click();setTimeout(()=>mobileOpenMenuElement.focus(),100)}});mobileMenuBackButton.addEventListener('click',()=>{if(!parseInt(mobileMenuBackButton.style.opacity))return;mobileMenuTitleContainer.firstElementChild?.remove();mobileMenuCategoriesContainer.firstElementChild?.remove();if(mobileMenuCategoriesContainer.children.length<2){mobileMenuBackButton.style.opacity=0} 1847focusFirstLink()});addClickableEvents()});angular.module("SkyShopModule",["ngMaterial","ui.select","ngCookies","ngSanitize"]).config(function($interpolateProvider,$mdThemingProvider,uiSelectConfig){$interpolateProvider.startSymbol("[{[");$interpolateProvider.endSymbol("]}]");$mdThemingProvider.generateThemesOnDemand(!0);uiSelectConfig.dropdownPosition='below'});angular.module("SkyShopModule").service("ConfigurationService",function($q,UtilsService,ConfigurationOutput){const getConfiguration=()=>{const deferred=$q.defer();const bodySelector=angular.element(document.querySelector('body'));deferred.resolve(new ConfigurationOutput({couponCodesActive:UtilsService.parseStringToBoolean(bodySelector.attr('data-coupon-codes-active')),freeDeliveryInfoActive:UtilsService.parseStringToBoolean(bodySelector.attr('data-free-delivery-info-active')),generatePdfConfig:bodySelector.attr('data-generate-pdf-config'),hidePrice:UtilsService.parseStringToBoolean(bodySelector.attr('data-hide-price')),isUserLoggedIn:UtilsService.parseStringToBoolean(bodySelector.attr('data-is-user-logged-id')),loyaltyPointsActive:UtilsService.parseStringToBoolean(bodySelector.attr('data-loyalty-points-active'))}));return deferred.promise} 1848return{getConfiguration:getConfiguration}});angular.module("SkyShopModule").service("ErrorsService",function(ErrorResponse,ErrorType){const errorCodesWithoutPopup=[ErrorType.ERROR_PRODUCT_MISSING_REQUIRED_PARAMETERS,ErrorType.ERROR_CART_NOT_FOUND];const isErrorResponse=(data)=>{return data instanceof ErrorResponse};const responseErrorCatcher=(error)=>{const errorResponse=new ErrorResponse(error);switch(errorResponse.status){case 400:if(!errorCodesWithoutPopup.includes(errorResponse.errorCode)){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,errorResponse.errorMessage,"error")} 1849return errorResponse;case 404:return errorResponse;case 500:popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,errorResponse.statusText+(errorResponse.detail?' ('+errorResponse.detail+')':''),"error");return errorResponse;default:return errorResponse}};return{isErrorResponse:isErrorResponse,responseErrorCatcher:responseErrorCatcher}});angular.module("SkyShopModule").service("SharedService",function($cookies){let sharedData={};const setCartSelected=(data)=>{sharedData.cartSelected=data;$cookies.put('sky2_cart_id',data?.id,{path:'/',samesite:'lax'})};const getCartSelected=()=>{return sharedData.cartSelected};const getCartSelectedId=()=>{return sharedData.cartSelected?.id};const saveToSessionStorage=(key,value)=>{sessionStorage.setItem(key,JSON.stringify(value))} 1850const readFromSessionStorage=(key)=>JSON.parse(sessionStorage.getItem(key));return{setCartSelected:setCartSelected,getCartSelected:getCartSelected,getCartSelectedId:getCartSelectedId,saveToSessionStorage:saveToSessionStorage,readFromSessionStorage:readFromSessionStorage}});angular.module("SkyShopModule").service("UtilsService",function(){const isNumber=(value)=>{return typeof value==='number'};const parseIntOrNull=(value)=>isNumber(value)?parseInt(value):null;const parseFloatOrNull=(value)=>isNumber(value)?parseFloat(value):null;const parseStringToBoolean=(value)=>['1','yes'].includes(value);return{isNumber:isNumber,parseIntOrNull:parseIntOrNull,parseFloatOrNull:parseFloatOrNull,parseStringToBoolean:parseStringToBoolean}});
1850angular.module("SkyShopModule").component('clearParameterButton',{template:` 1851 <button data-ng-click="$ctrl.handleClear()" aria-label="${L['CLEAR_PARAMETER']}" type="button" class="d-flex border-0 bg-transparent p-0"> 1852 <span class="icon-close_circle_24 icon-18 cursor-pointer"> 1853 <span class="path1"></span> 1854 <span class="path2"></span> 1855 </span> 1856 </button> 1857 `,bindings:{productId:'<',paramId:'<',onClear:'&'},controller:function(){this.handleClear=()=>{this.onClear({productId:this.productId,paramId:this.paramId})}}});angular.module('SkyShopModule').component('productParameterLabel',{bindings:{param:'<',productId:'<'},controller:function(){const ctrl=this;ctrl.getSelectedLabel=function(){if(!ctrl.param||!ctrl.param.selectedValue)return '';if(ctrl.param.type==='TEXT'&&ctrl.param.values[0]&&ctrl.param.values[0].changePrice){return ctrl.param.values[0].changePriceDisplay} 1858if(ctrl.param.type==='CHOOSE'&&typeof ctrl.param.selectedValue==='object'&&ctrl.param.selectedValue.changePrice){return ctrl.param.selectedValue.changePriceDisplay} 1859if(ctrl.param.type==='CHOOSE'&&typeof ctrl.param.selectedValue==='number'&&ctrl.param.values&&ctrl.param.values.length>0){const matchedValue=ctrl.param.values.find(function(v){return String(v.id)===String(ctrl.param.selectedValue)});if(matchedValue&&matchedValue.changePrice){return matchedValue.changePriceDisplay}} 1860return ''}},template:` 1861 <label for="additional_parameter_[{[$ctrl.productId]}]_[{[$ctrl.param.id]}]-text" data-ng-if="$ctrl.param.type === 'TEXT'">[{[$ctrl.param.name]}]<span data-ng-if="$ctrl.param.required" aria-hidden="true" class="required ms-1">*</span></label> 1862 <span data-ng-if="$ctrl.param.type === 'CHOOSE'" class="d-block">[{[$ctrl.param.name]}]<span data-ng-if="$ctrl.param.required" aria-hidden="true" class="required ms-1">*</span> 1863 </span> 1864 <span class="price-style" data-ng-class="{'hidden': !$ctrl.getSelectedLabel()}" data-ng-if="$ctrl.param.selectedValue">[{[$ctrl.getSelectedLabel()]}]</span> 1865 <span data-ng-if="$ctrl.param.type === 'CHOOSE' && $ctrl.param.present !== 'default'" class="sr-only">${L['PARAMETER_RADIO_NAVIGATION_HINT']}</span> 1866 `});angular.module('SkyShopModule').component('productParameterText',{bindings:{param:'<',productId:'<',onUpdate:'&',onClear:'&',showErrors:'<'},controller:function(){var $ctrl=this;$ctrl.$onInit=function(){$ctrl.hasValuePreviously=!!$ctrl.param.selectedValue};$ctrl.handleChange=function(){var hasValueNow=!!$ctrl.param.selectedValue;if(hasValueNow!==$ctrl.hasValuePreviously){if(hasValueNow){$ctrl.onUpdate({productId:$ctrl.productId,paramId:$ctrl.param.id,valueId:$ctrl.param.values[0].id,paramIsStock:$ctrl.param.isStock})}else{$ctrl.onClear({productId:$ctrl.productId,paramId:$ctrl.param.id,paramIsStock:$ctrl.param.isStock})} 1867$ctrl.hasValuePreviously=hasValueNow}}},template:` 1868 <div class="text-parameter-box-wrapper" data-ng-class="{'ss-error-container': $ctrl.showErrors && $ctrl.param.required && !$ctrl.param.selectedValue}"> 1869 <textarea 1870 id="additional_parameter_[{[$ctrl.productId]}]_[{[$ctrl.param.id]}]-text" 1871 data-ng-attr-aria-describedby="[{[ ($ctrl.showErrors && $ctrl.param.required && !$ctrl.param.selectedValue) ? 'error_parameter_' + $ctrl.productId + '_' + $ctrl.param.id : undefined ]}]" 1872 data-ng-required="$ctrl.param.required" 1873 data-ng-attr-maxlength="[{[$ctrl.param.length]}]" 1874 data-ng-model="$ctrl.param.selectedValue" 1875 data-ng-trim="false" 1876 class="form-control text-parameter-box sky-rounded-4" 1877 data-ng-change="$ctrl.handleChange()"> 1878 </textarea> 1879 <span class="text-parameter-counter"> 1880 [{[$ctrl.param.selectedValue.length || 0]}] / [{[$ctrl.param.length]}] 1881 </span> 1882 </div> 1883 <span id="error_parameter_[{[$ctrl.productId]}]_[{[$ctrl.param.id]}]" class="ss-error mt-1" role="alert" 1884 data-ng-if="$ctrl.showErrors && $ctrl.param.required && !$ctrl.param.selectedValue"> 1885 <i class="fa fa-exclamation-circle" aria-hidden="true"></i> 1886 ${L['OPTION_REQUIRED_FILL']} [{[$ctrl.param.name]}] 1887 </span> 1888 `});angular.module('SkyShopModule').component('productParameterSelect',{bindings:{param:'<',productId:'<',onUpdate:'&',onClear:'&',onOpenClose:'&',showErrors:'<'}
1888,controller:function($element){'ngInject';var $ctrl=this;$ctrl.internalOnOpenClose=function(isOpen,$select){if(isOpen){const selectDropdown=$element.find('.select2-results');if(selectDropdown.length>0){selectDropdown.scrollbar()}} 1889$ctrl.onOpenClose({isOpen:isOpen,$select:$select})}},template:` 1890 <div class="product-parameters-directive"> 1891 <div class="ui-select2-wrapper"> 1892 <div class="product-options-wrapper w-100"> 1893 <ui-select 1894 id="additional_parameter_[{[$ctrl.productId]}]_[{[$ctrl.param.id]}]" 1895 data-ng-attr-aria-describedby="[{[ ($ctrl.showErrors && $ctrl.param.required && !$ctrl.param.selectedValue) ? 'error_parameter_' + $ctrl.productId + '_' + $ctrl.param.id : undefined ]}]" 1896 class="mb-0" 1897 data-ng-class="{'ss-error-container': $ctrl.showErrors && $ctrl.param.required && !$ctrl.param.selectedValue}" 1898 type="select2" 1899 theme="select2" 1900 data-ui-select-keyboard-patch="true" 1901 search-enabled="false" 1902 data-required-error-message="${L['OPTION_REQUIRED']} [{[$ctrl.param.name]}]" 1903 data-ng-required="$ctrl.param.required" 1904 data-ng-model="$ctrl.param.selectedValue" 1905 data-on-select="$ctrl.onUpdate({productId: $ctrl.productId, paramId: $ctrl.param.id, valueId: $item.id, paramIsStock: $ctrl.param.isStock})" 1906 data-uis-open-close="$ctrl.internalOnOpenClose(isOpen, $select)"> 1907 1908 <ui-select-match placeholder="${L['SELECT_PLACEHOLDER']}"> 1909 <span>[{[$select.selected.name]}]</span> 1910 <button type="button" 1911 aria-label="${L.CLEAR_PARAMETER}" 1912 data-ng-click="$ctrl.onClear({$event: $event, $select: $select, productId: $ctrl.productId, param: $ctrl.param, paramIsStock: $ctrl.param.isStock})" 1913 class="select2-selection__clear d-flex border-0 bg-transparent p-0" 1914 data-ng-attr-tabindex="[{[ $ctrl.param.selectedValue ? 0 : -1 ]}]"> 1915 <span aria-hidden="true" class="icon-close_circle_24 icon-18 cursor-pointer"> 1916 <span class="path1"></span> 1917 <span class="path2"></span> 1918 </span> 1919 </button> 1920 </ui-select-match> 1921 1922 <ui-select-choices data-repeat="value in ($ctrl.param.values | filter: $select.search) track by value.id" ui-disable-choice="!value.generallyPossible"> 1923 <span data-ng-class="{'impossible-option': !value.generallyPossible}"> 1924 [{[value.name]}] 1925 [{[value | priceFormat:'brutto':true]}] 1926 </span> 1927 </ui-select-choices> 1928 1929 </ui-select> 1930 <span id="error_parameter_[{[$ctrl.productId]}]_[{[$ctrl.param.id]}]" class="ss-error mt-1" role="alert" 1931 data-ng-if="$ctrl.showErrors && $ctrl.param.required && !$ctrl.param.selectedValue"> 1932 <i class="fa fa-exclamation-circle" aria-hidden="true"></i> 1933 ${L['OPTION_REQUIRED']} [{[$ctrl.param.name]}] 1934 </span> 1935 </div> 1936 </div> 1937 1938 </div> 1939 `});angular.module('SkyShopModule').component('productParameterRadioList',{bindings:{param:'<',productId:'<',onUpdate:'&',onClear:'&',isSelected:'&',isValueSelected:'&',showErrors:'<'},controller:function($element){const ctrl=this;ctrl.handleClick=function(event,value){if(!value.generallyPossible){event.preventDefault()}};ctrl.clearSelectedValue=function(){ctrl.param.selectedValue=null;ctrl.onClear({productId:ctrl.productId,paramId:ctrl.param.id,paramIsStock:ctrl.param.isStock})} 1940ctrl.getCacheNumber=function(){const $form=$element.closest('form.product-parameters');return $form.data('icons-cache-num')||''} 1941ctrl.onKeydown=function(event,currentIndex){if(event.keyCode>=37&&event.keyCode<=40){event.preventDefault();const radios=$element[0].querySelectorAll('input[type="radio"]');if(!radios.length)return;let nextIndex=currentIndex;const step=(event.keyCode===37||event.keyCode===38)?-1:1;let iterations=0;do{nextIndex+=step;if(nextIndex<0){nextIndex=radios.length-1}else if(nextIndex>=radios.length){nextIndex=0} 1942iterations++}while(radios[nextIndex].disabled&&iterations<radios.length);if(!radios[nextIndex].disabled){radios[nextIndex].focus()}}}},template:` 1943 <ul aria-labelledby="additional_parameter_[{[$ctrl.productId]}]_[{[$ctrl.param.id]}]" data-ng-class="{'ss-error-container': $ctrl.showErrors && $ctrl.param.required && !$ctrl.param.selectedValue}" class="checkbox-field choose-field mb-0" data-required-error-message="${L['OPTION_REQUIRED']} [{[$ctrl.param.name]}]"> 1944 <li data-ng-repeat="value in $ctrl.param.values" 1945 data-ng-class="{'disable': !value.generallyPossible, 'small': $ctrl.param.imgWidth === 20, 'medium': $ctrl.param.imgWidth === 50, 'big': $ctrl.param.imgWidth === 80, 'color': $ctrl.param.present === 'color' || $ctrl.param.present === 'img'}" 1946 class="checkbox-field round-checkbox checkbox-product-parameter"> 1947 <input id="product_parameter_[{[$ctrl.productId]}]_[{[$ctrl.param.id]}]_[{[value.id]}]" 1948 data-ng-attr-aria-describedby="[{[ ($ctrl.
1948showErrors && $ctrl.param.required && !$ctrl.param.selectedValue) ? 'error_parameter_' + $ctrl.productId + '_' + $ctrl.param.id : undefined ]}]" 1949 type="radio" 1950 data-ng-click="$ctrl.handleClick($event, value)" 1951 data-ng-model="$ctrl.param.selectedValue" 1952 data-ng-value="value.id" 1953 data-ng-required="$ctrl.param.required" 1954 data-ng-attr-name="product_parameter_[{[$ctrl.productId]}]_[{[$ctrl.param.id]}]" 1955 data-ng-checked="$ctrl.isValueSelected({productId: $ctrl.productId, paramId: $ctrl.param.id, valueId: value.id})" 1956 data-ng-change="$ctrl.onUpdate({productId: $ctrl.productId, paramId: $ctrl.param.id, valueId: value.id, paramIsStock: $ctrl.param.isStock})" 1957 data-ng-keydown="$ctrl.onKeydown($event, $index)"> 1958 1959 <div class="option"> 1960 <label for="product_parameter_[{[$ctrl.productId]}]_[{[$ctrl.param.id]}]_[{[value.id]}]"> 1961 1962 <span data-ng-if="$ctrl.param.present === 'button'" class="title"> 1963 <span>[{[ value.name ]}]</span> 1964 <span data-ng-if="!value.generallyPossible" class="sr-only">${L['PARAMETER_UNAVAILABLE']}</span> 1965 </span> 1966 1967 <div data-ng-if="$ctrl.param.present === 'color'" class="pick-color color-[{[value.color]}]" style="background:#[{[value.color]}];"></div> 1968 1969 <div data-ng-if="$ctrl.param.present === 'img'" class="pick-color" style="background:url('[{[value.image]}]?v=[{[$ctrl.getCacheNumber()]}]');"></div> 1970 1971 <span data-ng-if="$ctrl.param.present === 'color' || $ctrl.param.present === 'img'" class="title sr-only"> 1972 <span>[{[ value.name ]}]</span> 1973 <span data-ng-if="!value.generallyPossible" class="sr-only">${L['PARAMETER_UNAVAILABLE']}</span> 1974 </span> 1975 </label> 1976 </div> 1977 1978 <div data-ng-if="$ctrl.isSelected({productId: $ctrl.productId, paramId: $ctrl.param.id}) && $last" class="no-marker ms-2"> 1979 <clear-parameter-button 1980 data-product-id="$ctrl.productId" 1981 data-param-id="$ctrl.param.id" 1982 data-on-clear="$ctrl.clearSelectedValue()"> 1983 </clear-parameter-button> 1984 </div> 1985 </li> 1986 </ul> 1987 <span id="error_parameter_[{[$ctrl.productId]}]_[{[$ctrl.param.id]}]" class="ss-error mt-1" role="alert" 1988 data-ng-if="$ctrl.showErrors && $ctrl.param.required && !$ctrl.param.selectedValue"> 1989 <i class="fa fa-exclamation-circle" aria-hidden="true"></i> 1990 ${L['OPTION_REQUIRED']} [{[$ctrl.param.name]}] 1991 </span> 1992 `});angular.module("SkyShopModule").controller("CartCtrl",($q,$scope,$rootScope,$timeout,$cookies,EnumMapper,CartType,ConfigurationService,SharedService,CartService,ProductService,LoyaltyPointsService,ErrorsService,UtilsService,CartFreeDeliveryStatus,DiscountType,CartItemProductType,WarningType,CartItemType,$mdSidenav,ChangeItemQuantityOutput,PriceSummary,ErrorType)=>{let cartItemQuantityChangePromisesTimeout;$rootScope.cartItemQuantityChangePromises=[];const addErrorTimeout=100 1993const getVariantFromCartItem=(cartItem)=>{if(!cartItem.parameters?.length)return null;const choosableParams=$scope.data.choosableParametersLists?.[cartItem.id];const valueMap=new Map();if(choosableParams){choosableParams.forEach(paramList=>{(paramList.parameters||[]).forEach(param=>{(param.values||[]).forEach(val=>{valueMap.set(val.id,val.name)})})})} 1994const selectParams=cartItem.parameters.filter(parameter=>parameter.optionId!=null).sort((a,b)=>a.optionId-b.optionId).map(parameter=>parameter.externalValue?L.TEXT_PARAMETER:valueMap.get(parameter.optionId)).filter(Boolean);return selectParams.length?selectParams:null};$rootScope.$on("setCartAmount",(event,amount)=>{$scope.data.initCartAmount=!0;let roundedAmount=(Math.round(amount*10000)/10000).toString();if(roundedAmount.indexOf('.')!==-1){roundedAmount=roundedAmount.replace(/0+$/,'');roundedAmount=roundedAmount.replace(/\.$/,'')} 1995$scope.data.cartAmount=roundedAmount;SharedService.saveToSessionStorage('cartAmount',roundedAmount)});$rootScope.$on("setCartPriceSummary",(event,priceSummary)=>{$scope.data.cartPriceSummary=priceSummary;SharedService.saveToSessionStorage('cartPriceSummary',priceSummary)});const getCartIdCookie=()=>{return $cookies.get('sky2_cart_id')};if(!getCartIdCookie()){SharedService.saveToSessionStorage('cartAmount',0)}
1996$scope.data={configurationLoaded:!1,loggedIn:!1,codes:!1,loyaltyProgram:!1,cartType:null,cartSelected:null,hidePrice:!1,cartPriceSummary:new PriceSummary(PriceSummary.createEmptyPriceSummary()),initCartAmount:!1,cartAmount:0,cartSelectedClone:null,cartObtainableLoyaltyPoints:null,cartAvailableLoyaltyPoints:null,cartFreeDelivery:null,cartFreeDeliveryStatuses:CartFreeDeliveryStatus,cartItemProductTypes:CartItemProductType,warningTypes:WarningType,freebieList:[],errors:{},delayDebounce:500,cartCurrentDiscountCode:null,selectedFreebies:[],limitFreebiesInCart:1,freeDeliveryInfoActive:!1,choosableParametersLists:{},maxLoyaltyPointsQuantity:9223372036854775807};$rootScope.$broadcast("setCartAmount",angular.element(document.querySelector('body')).attr('data-cart-simple-info-quantity')??0);const showFooter=()=>{const cartElement=angular.element('section.cart');if(cartElement&&cartElement.length){let sibling=cartElement[0].nextElementSibling;while(sibling){sibling.style.setProperty('display','block','important');sibling.style.setProperty('opacity','1','important');sibling=sibling.nextElementSibling}}} 1997const cloneSelectedCart=()=>$scope.data.cartSelectedClone=angular.copy($scope.data.cartSelected);const isClassicCart=()=>$scope.data.cartType===CartType.CLASSIC_CART;const isQuickCart=()=>$scope.data.cartType===CartType.QUICK_CART;const handleResponse=(response,property,valueIfError)=>{if(ErrorsService.isErrorResponse(response)){$scope.data[property]=valueIfError;$scope.data.errors[property]=response}else{$scope.data[property]=response}};$scope.goToCart=()=>{window.location='/cart'};const updateCartAmount=()=>{let amount=0;($scope.data.cartSelected?.items.filter(item=>item.type!==CartItemType.GRATIS_PRODUCT)||[]).map((cartItem)=>{amount+=cartItem.quantity});$rootScope.$broadcast("setCartPriceSummary",$scope.data.cartSelected.priceSummary);$rootScope.$broadcast("setCartAmount",amount)};const updateFreebieList=()=>{$scope.data.selectedFreebies=$scope.data.cartSelected.items?.filter(item=>item.type==="GRATIS_PRODUCT")};const displayPopupWarning=()=>{const allowedPopupWarningTypes=[WarningType.INVALID_COUPON];const displayedPopupWarning=$scope.data.cartSelected.warnings.find(warning=>allowedPopupWarningTypes.includes(warning.type));if(displayedPopupWarning){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,displayedPopupWarning.message,'error')}} 1998const reloadData=(bulkCartData=null,reloadChoosableParameters=!1)=>{let cartIdCookie=getCartIdCookie();$scope.deleteCartItem=(itemId,itemType)=>{if(itemType==='GRATIS_PRODUCT'){const index=$scope.data.selectedFreebies.findIndex((freebie)=>freebie.id===itemId);$scope.data.selectedFreebies.splice(index,1)} 1999const itemIndex=$scope.data.cartSelected.items.findIndex((item)=>item.id===itemId);const itemToRemove=$scope.data.cartSelected.items.splice(itemIndex,1)[0];if($scope.data.cartSelected.items<1){$scope.$apply(function(){$scope.data.freebieList=[]})} 2000CartService.deleteCartItem($scope.data.cartSelected.id,itemId).then((response)=>{alertScreenReader(L.CART_PRODUCT_REMOVED,'polite');if(!ErrorsService.isErrorResponse(response)&&itemToRemove?.product){const item=mapProductToGoogleItem({item_id:itemToRemove.product.id,item_name:itemToRemove.product.name,price:itemToRemove.unitPriceSummary.final.gross,quantity:itemToRemove.quantity,item_brand:itemToRemove.product.producerName,item_category:itemToRemove.product.categories[0]?.name,item_variant:getVariantFromCartItem(itemToRemove),});Analytics.trackRemoveFromCart({currency:itemToRemove.priceSummary.final.currency,value:itemToRemove.priceSummary.final.gross},[item])} 2001checkReloadData(response)})};$scope.data.errors={};const cartId=$scope.data.cartSelected.id;if(window.location.href.includes('/cart')){if(skyTheme){removeAllErrors(angular.element('.cart-table'))}else{removeError(angular.element('.ss-error'))}} 2002$q.all([bulkCartData?null:CartService.bulkGetCart(cartId)]).then(([bulkCartResponse])=>{bulkCartData=bulkCartData??bulkCartResponse;if(ErrorsService.isErrorResponse(bulkCartData)){SharedService.setCartSelected();cartErrorPopup(bulkCartData,!cartIdCookie) 2003return} 2004if(bulkCartData.cart!=null){handleResponse(bulkCartData.cart,"cartSelected",null);$scope.data.cartCurrentDiscountCode=$scope.data.cartSelected?.discountCode?.name;if(reloadChoosableParameters){ProductService.getBulkChoosableParameters(bulkCartData.cart.items).then(choosableParametersLists=>{$scope.data.choosableParametersLists=choosableParametersLists;$timeout(()=>{validCartForm()},addErrorTimeout)})}else{$timeout(()=>{validCartForm()},addErrorTimeout)} 2005SharedService.setCartSelected($scope.data.cartSelected)} 2006updateCartAmount();updateFreebieList();cloneSelectedCart();if(bulkCartData.freeDelivery!=null){handleResponse(bulkCartData.freeDelivery,"cartFreeDelivery",null)} 2007if(bulkCartData.availableFreebies){handleResponse(bulkCartData.availableFreebies,"freebieList",[])} 2008if(bulkCartData.obtainableLoyaltyPoints!=null){handleResponse(bulkCartData.obtainableLoyaltyPoints,"cartObtainableLoyaltyPoints",null)} 2009if(bulkCartData.availableLoyaltyPoints!=null){handleResponse(bulkCartData.availableLoyaltyPoints,"cartAvailableLoyaltyPoints",null)} 2010displayPopupWarning();if(isClassicCart()){showFooter()}})};const checkReloadData=data=>{if(!ErrorsService.isErrorResponse(data)){reloadData(null)}else{$scope.data.cartSelected=$scope.data.cartSelectedClone;SharedService.setCartSelected($scope.data.cartSelected);cloneSelectedCart()}};const cartErrorPopup=(data,redirect)=>
2010{if(data.errorCode===ErrorType.ERROR_CART_NOT_FOUND){data.errorMessage=L.ERROR_TRY_AGAIN} 2011if(redirect&&window.location.href.includes('/cart')){window.location='/'}else if(redirect){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,data.errorMessage,'error',()=>{},()=>{getCart($scope.data.loggedIn)})}else if(!redirect&&window.location.href.includes('/cart')){getCart($scope.data.loggedIn);popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,data.errorMessage,'error',()=>{})}else{getCart($scope.data.loggedIn)}};const getCart=(alwaysGetCart=!1)=>{let cartIdCookie=getCartIdCookie();if(!alwaysGetCart&&isQuickCart()&&!cartIdCookie){return} 2012if(isClassicCart()){if(skyTheme){removeAllErrors(angular.element('.cart-table'))}else{removeError(angular.element('.ss-error'))}}(cartIdCookie?CartService.bulkGetCart(cartIdCookie):CartService.bulkGetLatest()).then(data=>{if(ErrorsService.isErrorResponse(data)){SharedService.setCartSelected();cartErrorPopup(data,!cartIdCookie) 2013return} 2014handleResponse(data.cart,"cartSelected",null);SharedService.setCartSelected($scope.data.cartSelected);$scope.data.cartCurrentDiscountCode=$scope.data.cartSelected.discountCode?.name;updateCartAmount();updateFreebieList();cloneSelectedCart();reloadData(data,window.location.href.includes('/cart'))})};$scope.isNumber=(value)=>{return typeof value==='number'};$scope.changeQuantityLoyaltyPoints=(quantity)=>{CartService.changeQuantityLoyaltyPoints($scope.data.cartSelected.id,quantity).then(checkReloadData)};$scope.reloadCartSelected=(response=null)=>{$timeout.cancel(cartItemQuantityChangePromisesTimeout);cartItemQuantityChangePromisesTimeout=$timeout(()=>{$q.all($rootScope.cartItemQuantityChangePromises.map(cartItemQuantityChange=>cartItemQuantityChange.type==='changeQuantityCartItem'?CartService.changeQuantityCartItem($scope.data.cartSelected.id,cartItemQuantityChange.params.productId,cartItemQuantityChange.params.quantity):CartService.changeQuantityLoyaltyPoints($scope.data.cartSelected.id,cartItemQuantityChange.params.quantity))).then(responses=>{$rootScope.cartItemQuantityChangePromises=[];const ignoredWarningsList=[WarningType.ADDED_ITEM,WarningType.NOT_ALL_REQUIRED_PARAMETER_SELECTED];(responses||[]).forEach(response=>{if(response instanceof ChangeItemQuantityOutput&&response.warnings.filter(warning=>!ignoredWarningsList.includes(warning.type)).length){let message='';
2014response.warnings.forEach(warning=>{message+=`<div>${warning.message}</div>`});popups.actionAlert(L.INFORMATION,message,'info')}});reloadData(null)})},$rootScope.cartItemQuantityChangePromises[$rootScope.cartItemQuantityChangePromises.length-1].params.delay)};$scope.changeParametersCartItem=(parameters,itemId)=>{CartService.changeParametersCartItem($scope.data.cartSelected.id,itemId,parameters).then(function(data){$scope.$broadcast('updateProductParametersDirective',{itemId:itemId,parameters:data.updatedCartItemParameter?.parameters,restoreParameters:ErrorsService.isErrorResponse(data)})}).then(checkReloadData)};$scope.deleteAllCartItems=()=>{CartService.deleteAllCartItems($scope.data.cartSelected.id).then(checkReloadData)};$scope.changeDiscountCodeCart=code=>{CartService.changeDiscountCodeCart($scope.data.cartSelected.id,code).then((response)=>{checkReloadData(response)})};$scope.cartFinalDiscountByDiscountCode=()=>{return $scope.data.cartSelected?.priceSummary?.discounts.find(discount=>discount.type===DiscountType.DISCOUNT_CODE)};$scope.cartFinalDiscountByDiscountGroup=()=>{return $scope.data.cartSelected?.priceSummary?.discounts.find(discount=>discount.type===DiscountType.DISCOUNT_GROUP)};$scope.cartFinalDiscountByFreeDelivery=()=>{return $scope.data.cartSelected?.discountCode?.type===DiscountType.FREE_DELIVERY};$scope.cartFinalDiscountByLoyaltyPoints=()=>{return $scope.data.cartSelected?.priceSummary?.discounts.find(discount=>discount.type===DiscountType.LOYALTY_POINTS)};const findWarningType=(type)=>$scope.data.cartSelected?.warnings?.find(warning=>warning.type===type);const filterWarningType=(type)=>$scope.data.cartSelected?.warnings?.filter(warning=>warning.type===type);const validCartForm=()=>{filterWarningType($scope.data.warningTypes.NOT_ALL_REQUIRED_PARAMETER_SELECTED).forEach(warning=>{const uiSelectElements=angular.element(document).find('[data-cart-id="'+warning.context.cartItemId+'"]');if(uiSelectElements.toArray().length){uiSelectElements.toArray().forEach(uiSelectElement=>{if(angular.element(uiSelectElement).hasClass('ng-empty')&&angular.element(uiSelectElement).attr('data-parameter-required')==='true'){addError(angular.element(uiSelectElement),warning.message)}})} 2015const uiMoreParametersButtonElement=angular.element(document.querySelector('[data-cart-id-parameters="'+warning.context.cartItemId+'"]'));if(uiMoreParametersButtonElement.length){addError(uiMoreParametersButtonElement,warning.message)} 2016const uiExpandParametersButtonElements=angular.element(document.querySelectorAll('[data-cart-id-expand-parameters="'+warning.context.cartItemId+'"]'));if(uiExpandParametersButtonElements.length){angular.forEach(uiExpandParametersButtonElements,uiExpandParametersButtonElement=>{addError(angular.element(uiExpandParametersButtonElement),warning.message)})}})};$scope.isWarning=(type)=>!!findWarningType(type);$scope.warningContext=(type)=>findWarningType(type).context;$scope.canOrder=()=>{const canBuy=$scope.data.cartSelected.canBuy;const minimumOrderPriceValid=!$scope.isWarning($scope.data.warningTypes.MINIMUM_ORDER_PRICE)||$scope.warningContext($scope.data.warningTypes.MINIMUM_ORDER_PRICE).minimumPrice<=$scope.data.cartSelected.priceSummary.final.net;const parametersValid=!$scope.isWarning($scope.data.warningTypes.NOT_ALL_REQUIRED_PARAMETER_SELECTED);return canBuy||(minimumOrderPriceValid&&!parametersValid)};$scope.order=()=>{if(skyTheme){removeAllErrors(angular.element('.cart-table'))}else{removeError(angular.element('.ss-error'))} 2017const parametersValid=!$scope.isWarning($scope.data.warningTypes.NOT_ALL_REQUIRED_PARAMETER_SELECTED);if(!parametersValid){validCartForm();
2017if(skyTheme){focusFirstFormError()}else{popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,L.OPT_REQIRED_INFO,'error')} 2018return} 2019angular.element('#orderForm').submit()};$scope.loadMobileCart=()=>{if(!getCartIdCookie()&&!$scope.isApiPending){getCart(!0)}} 2020$scope.focusProductInCart=(event)=>{const isCartLocation=window.location.pathname.indexOf("/cart")>-1;if(isCartLocation){event.preventDefault();const table=document.querySelector('table.cart-table');const cartEmpty=document.querySelector('.cart-empty');if(table){const productImgTd=table.querySelector('td.product-img');if(productImgTd){productImgTd.scrollIntoView({behavior:'smooth',block:'start'});productImgTd.querySelector('a').focus()}}else if(cartEmpty){cartEmpty.setAttribute('tabindex','-1');cartEmpty.scrollIntoView({behavior:'smooth',block:'start'});cartEmpty.focus()}}} 2021$scope.openProductPage=(product)=>{window.location=product.url} 2022$scope.openMobileCart=(event)=>{const isCartLocation=window.location.pathname.indexOf("/cart")>-1;if(isCartLocation||(event.type==='keydown'&&event.key!=='Enter')){return} 2023const isMobileMode=window.innerWidth<=768;const isOpenMobileCart=$mdSidenav("mobile-cart").isOpen();if(!isMobileMode){window.location='/cart'}else if(isMobileMode&&!isOpenMobileCart){event.preventDefault();event.stopPropagation();if(!getCartIdCookie()&&!$scope.isApiPending){getCart(!0)} 2024$mdSidenav("mobile-cart").toggle()}};$scope.closeMobileCart=event=>{if(event.type==='click'||event.key==='Enter'){event.preventDefault();$mdSidenav("mobile-cart").close()}else if(event.key==='Tab'&&event.shiftKey){event.preventDefault();$(event.target).focus()}} 2025$scope.executeOrder=event=>{const mobileCartParentEl=event.target.closest('[md-component-id="mobile-cart"]');if(event.type==='click'||event.key==='Enter'){event.preventDefault();$mdSidenav("mobile-cart").close();$scope.goToCart()}else if(mobileCartParentEl&&event.key==='Tab'&&!event.shiftKey){event.preventDefault();$(event.target).focus()}} 2026$scope.openFreebieUrl=(event,freebieUrl)=>{if($scope.isApiPending){return} 2027event.stopPropagation();window.open(freebieUrl)} 2028$scope.selectFreebie=async(freebieId)=>{if($scope.isApiPending){return} 2029const index=$scope.data.selectedFreebies.findIndex((item)=>item.product.id===freebieId);let cartItemElement=null;let cartItemRemoveElement=null;if($scope.data.selectedFreebies.length){cartItemElement=angular.element(document.querySelector('li[data-item-id="'+$scope.data.selectedFreebies[index>-1?index:0].id+'"]'));cartItemRemoveElement=cartItemElement.find('i[remove-list-item="true"]')} 2030$scope.deleteCartItem=async(itemId)=>{try{await CartService.deleteCartItem($scope.data.cartSelected.id,itemId);return !0}catch(_){}};if(index>-1){cartItemRemoveElement.triggerHandler('click');try{const id=$scope.data.selectedFreebies[index].id;$scope.data.selectedFreebies.splice(index,1);await $scope.deleteCartItem(id);checkReloadData()}catch(_){}}else{if($scope.isDisabledFreebieChanging()){cartItemRemoveElement.triggerHandler('click');try{const id=$scope.data.selectedFreebies[0].id;const deletedCartItem=await $scope.deleteCartItem(id);if(!ErrorsService.isErrorResponse(deletedCartItem)){await CartService.addFreebie($scope.data.cartSelected.id,freebieId)} 2031checkReloadData()}catch(_){}}else{CartService.addFreebie($scope.data.cartSelected.id,freebieId).then(checkReloadData)}}};$scope.isDisabledFreebieChanging=()=>{return $scope.data.selectedFreebies.length>=$scope.data.limitFreebiesInCart};$scope.isCheckedFreebie=freebieId=>{return $scope.data.selectedFreebies.length&&$scope.data.selectedFreebies.findIndex((item)=>item.product.id===freebieId)>-1};$scope.init=data=>{const{turnOffSales,type}=data;const isLocationCart=window.location.pathname.indexOf('/cart')>-1;const isTurnOffSales=turnOffSales!==undefined&&turnOffSales>0;$scope.data.cartType=EnumMapper.mapValueToEnum(type,CartType)??CartType.CLASSIC_CART;if(isLocationCart&&isQuickCart()||isTurnOffSales){return} 2032return ConfigurationService.getConfiguration().then(configurationData=>{$scope.data.loggedIn=configurationData.isUserLoggedIn;$scope.data.codes=configurationData.couponCodesActive;$scope.data.loyaltyProgram=configurationData.loyaltyPointsActive;$scope.data.freeDeliveryInfoActive=configurationData.freeDeliveryInfoActive;$scope.data.hidePrice=configurationData.hidePrice;$scope.data.pdf=['PRODUCT_AND_CART',"CART"].includes(configurationData.generatePdfConfig);if($scope.data.hidePrice){if(window.location.href.includes('/cart')){window.location='/login'} 2033$rootScope.$broadcast("setCartAmount",0);return} 2034$scope.data.configurationLoaded=!0;getCart($scope.data.loggedIn)})};$rootScope.$on("reloadQuickCart",(event)=>{getCart($scope.data.loggedIn)})});angular.module('SkyShopModule').service('CartService',function($q,$http,CartList,Cart,BulkCartOutput,CartItemInput,AddToCartOutput,CartItemQuantityInput,UpdateItemParameterOutput,ChangeItemQuantityOutput,CartItemParameter,CartItemParameterList,CartObtainableLoyaltyPoints,CartFreeDelivery,DiscountCodeInput,FreebieList,LoyaltyPointsInput,AddFreebieInput,ErrorsService){const proxyPath='/proxy_public_api?endpoint=';const servicePath=proxyPath+'/sky2/api-public/carts';const getCarts=()=>$http.get(`${servicePath}`).then(response=>new CartList(response.data)).catch(ErrorsService.responseErrorCatcher);const getLatest=()=>$http.get(`${servicePath}/latest`).then(response=>new Cart(response.data)).catch(ErrorsService.responseErrorCatcher);const bulkGetLatest=()=>$http.get(`${servicePath}/bulk/latest`).then(response=>new BulkCartOutput(response.data)).catch(ErrorsService.responseErrorCatcher);const getCart=(cartId)=>$http.get(`${servicePath}/${cartId}`).then(response=>new Cart(response.data)).catch(ErrorsService.responseErrorCatcher);const bulkGetCart=(cartId)=>$http.get(`${servicePath}/bulk/${cartId}`).then(response=>new BulkCartOutput(response.data)).catch(ErrorsService.responseErrorCatcher);const createCart=()=>$http.post(`${servicePath}`,null).then(response=>new Cart(response.data)).catch(ErrorsService.responseErrorCatcher);const addCartItem=(cartId,item)=>$http.post(`${servicePath}/${cartId}/items`,new CartItemInput(item)).then(response=>new AddToCartOutput(response.data)).catch(ErrorsService.responseErrorCatcher);
2034const deleteCartItem=(cartId,itemId)=>$http.delete(`${servicePath}/${cartId}/items/${itemId}`).then(response=>response.data).catch(ErrorsService.responseErrorCatcher);const deleteAllCartItems=(cartId)=>$http.delete(`${servicePath}/${cartId}/items`).then(response=>response.data).catch(ErrorsService.responseErrorCatcher);const changeQuantityCartItem=(cartId,itemId,quantity)=>$http.put(`${servicePath}/${cartId}/items/${itemId}/quantity`,new CartItemQuantityInput({quantity:quantity})).then(response=>new ChangeItemQuantityOutput(response.data)).catch(ErrorsService.responseErrorCatcher);const changeParametersCartItem=(cartId,cartItemId,parameters)=>$http.put(`${servicePath}/${cartId}/items/${cartItemId}/parameters`,new CartItemParameterList({parameters:parameters})).then(response=>new UpdateItemParameterOutput(response.data)).catch(ErrorsService.responseErrorCatcher);const changeDiscountCodeCart=(cartId,code)=>$http.put(`${servicePath}/${cartId}/discount-code`,new DiscountCodeInput({code:code})).then(response=>response.data).catch(ErrorsService.responseErrorCatcher);const getPossibleLoyaltyPointsAfterOrdering=(cartId)=>$http.get(`${servicePath}/${cartId}/obtainable-loyalty-points`).then(response=>new CartObtainableLoyaltyPoints(response.data)).catch(ErrorsService.responseErrorCatcher);const changeQuantityLoyaltyPoints=(cartId,points)=>$http.put(`${servicePath}/${cartId}/loyalty-points`,new LoyaltyPointsInput(points)).then(response=>response.data).catch(ErrorsService.responseErrorCatcher);const getAvailableFreeDelivery=(cartId)=>$http.get(`${servicePath}/${cartId}/free-delivery`).then(response=>new CartFreeDelivery(response.data)).catch(ErrorsService.responseErrorCatcher);const getAvailableFreebies=(cartId)=>$http.get(`${servicePath}/${cartId}/available-freebies`).then(response=>new FreebieList(response.data)).catch(ErrorsService.responseErrorCatcher);const addFreebie=(cartId,productId)=>$http.post(`${servicePath}/${cartId}/freebies`,new AddFreebieInput({productId:productId})).catch(ErrorsService.responseErrorCatcher);return{getCarts:getCarts,getCart:getCart,bulkGetCart:bulkGetCart,getLatest:getLatest,bulkGetLatest:bulkGetLatest,createCart:createCart,addCartItem:addCartItem,deleteCartItem:deleteCartItem,deleteAllCartItems:deleteAllCartItems,changeQuantityCartItem:changeQuantityCartItem,changeParametersCartItem:changeParametersCartItem,changeDiscountCodeCart:changeDiscountCodeCart,getPossibleLoyaltyPointsAfterOrdering:getPossibleLoyaltyPointsAfterOrdering,changeQuantityLoyaltyPoints:changeQuantityLoyaltyPoints,getAvailableFreeDelivery:getAvailableFreeDelivery,getAvailableFreebies:getAvailableFreebies,addFreebie:addFreebie}});angular.module("SkyShopModule").factory('ProductParametersService',function(ParameterType){return{buildFilteredProductsNamesMap:function(product,parametersData,map={}){if(product&&product.id){const productParams=parametersData.find(item=>String(item.productId)===String(product.id));if(productParams&&Array.isArray(productParams.parameters)){const hasValidType=productParams.parameters.some(param=>param.type===ParameterType.CHOOSE||param.type===ParameterType.TEXT);if(hasValidType){map[product.id]=product.name}}} 2035if(Array.isArray(product.setItems)&&product.setItems.length>0){product.setItems.forEach(subProduct=>{this.buildFilteredProductsNamesMap(subProduct,parametersData,map)})} 2036return map},buildFilteredParametersMap:(parametersData,map={})=>{if(!Array.isArray(parametersData))return map;parametersData.forEach(item=>{if(Array.isArray(item.parameters)){const filteredParams=item.parameters.filter(param=>param.type===ParameterType.CHOOSE||param.type===ParameterType.TEXT);if(filteredParams.length>0){map[item.productId]=filteredParams}}});return map},calculateTotalChangePrice:function(productData,updatedParametersMap,selectedProductParameters){let totalChangePrice=0;Object.keys(selectedProductParameters).forEach(iterProductId=>{const userSelectionsForProduct=selectedProductParameters[iterProductId];if(!Array.isArray(userSelectionsForProduct)||userSelectionsForProduct.length===0)return;const productParams=updatedParametersMap[iterProductId]||(productData&&productData.parametersByProductId?productData.parametersByProductId[iterProductId]:null);
2036if(!Array.isArray(productParams))return;userSelectionsForProduct.forEach(selectionObj=>{const paramIdStr=Object.keys(selectionObj)[0];if(!paramIdStr)return;const selectedValueId=selectionObj[paramIdStr];const matchedParam=productParams.find(p=>String(p.id)===paramIdStr);if(matchedParam&&(matchedParam.type===ParameterType.CHOOSE||matchedParam.type===ParameterType.TEXT)){if(Array.isArray(matchedParam.values)){const matchedValue=matchedParam.values.find(v=>String(v.id)===String(selectedValueId));if(matchedValue&&matchedValue.changePrice){totalChangePrice+=Number(matchedValue.changePrice)||0}}}})});return totalChangePrice},updateProductIdentifiers:function(productIdentifiers){const identifiers=['barcode','ean','symbol'];identifiers.forEach(key=>{const $container=$(`[data-parameter-value="${key}"]`);if($container.length>0){const identifier=productIdentifiers[key];const hasIdentifier=Boolean(identifier);$container.toggleClass('hidden',!hasIdentifier).find('[data-display-selector]').html(hasIdentifier?identifier:'')}});const{availability}=productIdentifiers;if(availability){const{type,textAvailability,amount}=availability;const isText=type==='text';const $containerText=$('[data-parameter-value="availability_amount_text"]');const $containerNumber=$('[data-parameter-value="availability_amount_number"]');const $containerImage=$('[data-parameter-value="availability_img"]');$containerText.html(isText?textAvailability?.name||'':'');$containerNumber.html(type==='amount'?amount||0:'');if(isText){const imageUrl=textAvailability?.imageUrl||'';$containerImage.attr('src',imageUrl).toggleClass('hidden',!imageUrl)}}},restoreSelections:function(productId,oldProductDetails,updatedParametersMap,selectedProductParameters){const oldTextValuesMap={};if(oldProductDetails&&oldProductDetails.parametersByProductId[productId]){const oldParams=oldProductDetails.parametersByProductId[productId];oldParams.forEach(p=>{if(p.type==='TEXT'&&p.selectedValue){oldTextValuesMap[p.id]=p.selectedValue}})} 2037const newParamsConfig=updatedParametersMap[productId];const userSelections=selectedProductParameters[productId]||[];if(newParamsConfig&&userSelections.length>0){newParamsConfig.forEach(param=>{if(param.type==='TEXT'&&oldTextValuesMap[param.id]!==undefined){param.selectedValue=oldTextValuesMap[param.id]}else if(param.type==='CHOOSE'){const selectionObj=userSelections.find(sel=>sel.hasOwnProperty(param.id));if(selectionObj){const savedValue=selectionObj[param.id];if(param.present==='default'&¶m.values){const valueToRestore=param.values.find(v=>v.id===savedValue);if(valueToRestore)param.selectedValue=valueToRestore}else{param.selectedValue=savedValue}}}})}},validateSelections:function(selectedParams,updatedParametersMap,productDetails,editedProductId,editedParamId){const paramsToClear=[];let photoIdToClick=null;Object.keys(selectedParams).forEach(currentProductId=>{const selectedList=selectedParams[currentProductId];const productConfig=updatedParametersMap[currentProductId]||(productDetails?productDetails.parametersByProductId[currentProductId]:null);if(!productConfig)return;selectedList.forEach(selection=>{const paramId=Object.keys(selection)[0];const valueId=selection[paramId];const matchedParam=productConfig.find(param=>param.id===Number(paramId));if(matchedParam){const matchedValue=matchedParam.values.find(val=>val.id===valueId);if(matchedValue){const isCurrentlyEdited=String(currentProductId)===String(editedProductId)&&String(paramId)===String(editedParamId);if(!matchedValue.possible&&!isCurrentlyEdited){paramsToClear.push({productId:currentProductId,paramId:paramId,paramIsStock:matchedParam.isStock})} 2038if(matchedValue&&isCurrentlyEdited&&matchedValue.changeMainPhoto?.id){photoIdToClick=matchedValue.changeMainPhoto.id}}}})});return{paramsToClear:paramsToClear,photoIdToClick:photoIdToClick}}}});angular.module("SkyShopModule").controller("ProductCtrl",($scope,$element,$rootScope,SharedService,CartService,CartItemInput,CartItemParameter,ErrorsService,ProductService,ErrorType,ParameterType,$timeout,ProductParametersService)=>{let cartItemInput;let productTile;let productUrl;let redirect;const trackAddToCartEvent=(data)=>{fbEvent('add_to_cart',data.events?.FB_PIXEL_EVENT?.fbPixelEventId,data.addedCartItem);edroneEvent('add_to_cart',data.events?.EDRONE_ADD_TO_CART_EVENT) 2039const addedItem=data.addedCartItem;const item=mapProductToGoogleItem({item_id:addedItem.product.id,item_name:addedItem.product.name,price:addedItem.unitPriceSummary.final.gross,quantity:addedItem.quantity,item_brand:addedItem.product.producerName,item_category:addedItem.product.categories[0]?.name});Analytics.trackAddToCart({currency:addedItem.priceSummary.final.currency,value:addedItem.priceSummary.final.gross},[item])};const cartRedirect=(redirect)=>{if(redirect){window.location='/cart'}else{$rootScope.$broadcast('reloadQuickCart');if(SkyShop.popupFire.showPopup){popups.addToCart(function(){if(productTile.length>0){productTile.find('.product-mobile-cart-btn').removeClass('added') 2040productTile.removeClass('product-hover')}})}else{if(productTile.length>0){productTile.find('.product-mobile-cart-btn').removeClass('added') 2041productTile.removeClass('product-hover')}}}};const addCartItem=()=>{CartService.addCartItem(SharedService.getCartSelectedId(),cartItemInput).then(data=>
2041{if(ErrorsService.isErrorResponse(data)){if(data.status===400&&data.errorCode===ErrorType.ERROR_PRODUCT_MISSING_REQUIRED_PARAMETERS){window.location=productUrl+'#opt_required_info'}else if(data.status===400&&data.errorCode===ErrorType.ERROR_CART_NOT_FOUND){SharedService.setCartSelected();getLatest()}else if(data.status===400){let message='';if(data.errorMessage?.length){message+=`<div>${data.errorMessage}</div>`} 2042popups.actionAlert(L.INFORMATION,message,'info',function(){if(productTile.length>0){productTile.find('.product-mobile-cart-btn').removeClass('added') 2043productTile.removeClass('product-hover')}})}}else{let message='';trackAddToCartEvent(data);if(data.warnings.length){data.warnings.forEach(warning=>{message+=`<div>${warning.message}</div>`});popups.actionAlert(L.INFORMATION,message,'info',function(){cartRedirect(redirect)});return} 2044cartRedirect(redirect)}})};let getLatestRequestCount=0;const resetLatestRequestCount=()=>{getLatestRequestCount=0} 2045const getLatest=()=>{getLatestRequestCount++;CartService.getLatest().then(data=>{if(!ErrorsService.isErrorResponse(data)){SharedService.setCartSelected(data);
2045addCartItem()}else{if(getLatestRequestCount>1){data.errorMessage=L.ERROR_TRY_AGAIN;popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,data.errorMessage,'error');return} 2046getLatest()}})};$scope.isParametersApiPending=!1;$scope.formSubmitted=!1;$scope.addToCart=(e)=>{const el=angular.element(e.currentTarget);const noRequiredHash=window.location.href.indexOf('#opt_required_info')<0;const isDisabledNative=el.prop('disabled')===!0;const isDisabledAria=el.attr('aria-disabled')==='true';if(noRequiredHash&&(isDisabledNative||isDisabledAria)){return} 2047resetLatestRequestCount();e.preventDefault();const self=e.currentTarget;const productCard=angular.element(self).parents('.product-card');productTile=angular.element(self).parents('.product-tile');const productCardCounterInput=productCard.find('.counter-field').find('input');const productTileCounterInput=productTile.find('.counter-field').find('input');const productTileMobileButtonCart=productTile.find('.product-mobile-cart-btn') 2048if(productTile.length>0){productTileMobileButtonCart.addClass('added') 2049productTile.addClass('product-hover');productUrl=productTile.find('a:first').attr('href')}else if(angular.element(self).attr('data-product-url')){productUrl=angular.element(self).attr('data-product-url')} 2050let productId=angular.element(self).data('product-id');redirect=!!angular.element(self).data('redirect');let parameters=[];let quantity=parseFloat(productCardCounterInput.length?productCardCounterInput.val():productTileCounterInput.length?productTileCounterInput.val():angular.element(self).data('min'));if(isNaN(quantity)||quantity===0){quantity=1} 2051$scope.formSubmitted=!0;if(productCard.length>0){const productParamsContainer=productCard.find('.product-parameters');const productInvalidParameters=productParamsContainer.find('[aria-invalid="true"]') 2052if(productInvalidParameters.length>0){announceFormErrors();productInvalidParameters.first().focus();return} 2053const selectedParams=$scope.selectedProductParameters;const detailsMap=$scope.productDetails.parametersByProductId;Object.keys(selectedParams).forEach(productId=>{const selectionsArray=selectedParams[productId];const productConfigArray=detailsMap[productId];if(!productConfigArray){return} 2054selectionsArray.forEach(selectionObj=>{Object.entries(selectionObj).forEach(([paramIdStr,valueId])=>{const paramId=Number(paramIdStr);const matchedParamConfig=productConfigArray.find(param=>param.id===paramId);if(matchedParamConfig){parameters.push(new CartItemParameter({productId:productId,optionId:parseInt(valueId),externalValue:matchedParamConfig.type==='TEXT'?matchedParamConfig.selectedValue:null}))}})})})} 2055cartItemInput=new CartItemInput({productId:productId,quantity:quantity,parameters:parameters});
2055if(SharedService.getCartSelectedId()){addCartItem()}else{getLatest()}};const productCardElement=document.querySelector('.product-card');const isRequiredInfo=window.location.hash.includes('#opt_required_info');if(productCardElement&&isRequiredInfo){$scope.formSubmitted=!0;popups.actionAlert(L.INFORMATION,L.OPT_REQIRED_INFO,'info',null,()=>{announceFormErrors();const productParamsContainer=$(productCardElement).find('.product-parameters');const productInvalidParameters=productParamsContainer.find('[aria-invalid="true"]') 2056productInvalidParameters.first().focus()})} 2057$scope.selectedProductParameters={};let pendingParametersRequest=null;const updatePrice=(totalChangePrice)=>{if(typeof fx!=='undefined'&&typeof pricesFormatterData!=='undefined'&&pricesFormatterData.money){totalChangePrice=fx.convert(totalChangePrice,{from:pricesFormatterData.money.used,to:pricesFormatterData.money.base})} 2058const $card=$('.product-card');const $noPrice=$('body').attr('data-hurt-price-text');const $cardPriceSpecial=$card.find('.core_cardPriceSpecial');const $cardPriceBeforeDiscount=$card.find('.core_cardPriceBeforeDiscount');const $prodPriceFactorSelector=$card.find('[data-unit-price-factor]');const prodPriceFactorCoeff=$prodPriceFactorSelector.data('unit-price-factor');let cardPriceSpecialValue=0;if($cardPriceSpecial.length>0){cardPriceSpecialValue=$cardPriceSpecial.data('price-default')!==$noPrice?$cardPriceSpecial.data('price-default'):0} 2059let cardPriceBeforeDiscountValue=0;if($cardPriceBeforeDiscount.length>0){cardPriceBeforeDiscountValue=$cardPriceBeforeDiscount.data('price-default')!==$noPrice?$cardPriceBeforeDiscount.data('price-default'):0} 2060cardPriceSpecialValue=Big(cardPriceSpecialValue).plus(totalChangePrice);if($cardPriceSpecial.length>0){$cardPriceSpecial.data('price',cardPriceSpecialValue)} 2061if($cardPriceBeforeDiscount.length>0){cardPriceBeforeDiscountValue=Big(cardPriceBeforeDiscountValue).plus(totalChangePrice);$cardPriceBeforeDiscount.data('price',cardPriceBeforeDiscountValue)} 2062if(prodPriceFactorCoeff&&$prodPriceFactorSelector.length>0){const unitPriceValue=Big(cardPriceSpecialValue).div(prodPriceFactorCoeff);$prodPriceFactorSelector.data('price',unitPriceValue)} 2063pricesFormatter($card)} 2064const validationResult=(validationResult)=>{const paramsToClear=validationResult.paramsToClear;if(paramsToClear&¶msToClear.length>0){paramsToClear.forEach(itemToClear=>{const prodId=itemToClear.productId;const parIdToClear=itemToClear.paramId;if($scope.selectedProductParameters[prodId]){$scope.selectedProductParameters[prodId]=$scope.selectedProductParameters[prodId].filter(selection=>{const currentParamId=Object.keys(selection)[0];return String(currentParamId)!==String(parIdToClear)})}})} 2065if(validationResult.photoIdToClick){const targetFigure=document.querySelector(`figure[data-id="${validationResult.photoIdToClick}"]`);if(targetFigure){targetFigure.click()}}} 2066async function updateChoosableParameters(productId,parameters,editedProductId,editedParamId){if(pendingParametersRequest&&typeof pendingParametersRequest.cancel==='function'){pendingParametersRequest.cancel()} 2067let query='';Object.keys(parameters).forEach((key,index)=>{if(index>0){query+=`&`} 2068const values=parameters[key].flatMap(element=>Object.values(element));query+=`options[]={"p":${key},"o":[${values}]}`});$scope.$applyAsync(()=>{$scope.isParametersApiPending=!0});try{const currentRequest=ProductService.getProductParameters($scope.productDetails.id,query,!0,!0);pendingParametersRequest=currentRequest;const parametersData=await currentRequest;if(pendingParametersRequest!==currentRequest||!parametersData){return} 2069pendingParametersRequest=null;if(!$scope.productDetails.isSetItems){ProductParametersService.updateProductIdentifiers(parametersData[0])} 2070const updatedParametersMap=ProductParametersService.buildFilteredParametersMap(parametersData);ProductParametersService.restoreSelections(productId,$scope.productDetails,updatedParametersMap,$scope.selectedProductParameters);const validationResultData=ProductParametersService.validateSelections($scope.selectedProductParameters,updatedParametersMap,$scope.productDetails,editedProductId,editedParamId);validationResult(validationResultData);const totalChangePrice=ProductParametersService.calculateTotalChangePrice($scope.productDetails,updatedParametersMap,$scope.selectedProductParameters);updatePrice(totalChangePrice);$scope.$applyAsync(()=>
2070{if($scope.productDetails){$scope.productDetails.parametersByProductId[productId]=updatedParametersMap[productId]}else{$scope.productDetails={parametersByProductId:updatedParametersMap}} 2071validationResultData.paramsToClear.forEach(item=>{$scope.clearParamSelected(item.productId,item.paramId,item.paramIsStock)});$scope.isParametersApiPending=!1})}catch(error){pendingParametersRequest=null;$scope.isParametersApiPending=!1}} 2072$scope.updateSelectedProductParameters=(productId,paramId,valueId,paramIsStock=!1)=>{const currentParams=$scope.selectedProductParameters[productId]||[];const existingIndex=currentParams.findIndex(item=>item.hasOwnProperty(paramId));if(existingIndex>-1){if(currentParams[existingIndex][paramId]!==valueId){$scope.selectedProductParameters[productId]=currentParams.map((item,index)=>index===existingIndex?{[paramId]:valueId}:item)}}else{$scope.selectedProductParameters[productId]=[...currentParams,{[paramId]:valueId}]} 2073if(paramIsStock){updateChoosableParameters(productId,$scope.selectedProductParameters,productId,paramId)}else{const validationResultData=ProductParametersService.validateSelections($scope.selectedProductParameters,$scope.productDetails.parametersByProductId,$scope.productDetails,productId,paramId);const totalChangePrice=ProductParametersService.calculateTotalChangePrice($scope.productDetails,$scope.productDetails.parametersByProductId,$scope.selectedProductParameters);validationResult(validationResultData);updatePrice(totalChangePrice)}} 2074$scope.isParamSelected=(productId,paramId)=>{const currentParams=$scope.selectedProductParameters[productId];if(!currentParams){return !1} 2075return currentParams.some(item=>item.hasOwnProperty(paramId))};$scope.isParamValueSelected=(productId,paramId,valueId)=>{const currentParams=$scope.selectedProductParameters[productId];if(!currentParams){return !1} 2076return currentParams.some(item=>item[paramId]===valueId)};$scope.clearParamSelected=(productId,paramId,paramIsStock)=>{const currentParams=$scope.selectedProductParameters[productId];if(!currentParams){return} 2077$scope.selectedProductParameters[productId]=currentParams.filter(item=>!item.hasOwnProperty(paramId));if($scope.selectedProductParameters[productId].length===0){delete $scope.selectedProductParameters[productId]} 2078if(paramIsStock){updateChoosableParameters(productId,$scope.selectedProductParameters,productId,paramId)}else{const totalChangePrice=ProductParametersService.calculateTotalChangePrice($scope.productDetails,$scope.productDetails.parametersByProductId,$scope.selectedProductParameters);updatePrice(totalChangePrice)}};$scope.clearUiSelectParamSelected=(event,select,productId,param)=>{event.stopPropagation();select.activeIndex=null;select.selected=undefined;param.selectedValue=null 2079select.close();$scope.clearParamSelected(productId,param.id,param.isStock)} 2080$scope.onDropdownSelectOpen=(isOpen,select)=>{$timeout(()=>{if(!select.selected){select.activeIndex=undefined}})} 2081$scope.initProduct=(productId,productDetailsEncoded,productChoosableParametersEncoded)=>{const productDetails=ProductService.setProduct(JSON.parse(atob(productDetailsEncoded)));const productChoosableParameters=ProductService.setProductParameters(JSON.parse(atob(productChoosableParametersEncoded)));ProductParametersService.updateProductIdentifiers(productDetails);$scope.productDetails={isSetItems:productDetails.setItems.length>0,parametersByProductId:ProductParametersService.buildFilteredParametersMap(productChoosableParameters),productsName:ProductParametersService.buildFilteredProductsNamesMap(productDetails,productChoosableParameters),id:productDetails.id,barcode:productDetails.barcode,ean:productDetails.ean,symbol:productDetails.symbol}}});angular.module("SkyShopModule").service("ProductService",function($http,$q,Product,ErrorsService,ChoosableParameterList,BulkChosenProductParametersInput){const proxyPath="/proxy_public_api?endpoint=";const servicePath=proxyPath+"/sky2/api-public/products";const getProduct=productId=>$http.get(`${servicePath}/${productId}`).then(response=>setProduct(response.data)).catch(ErrorsService.responseErrorCatcher);const setProduct=product=>{return new Product(product)} 2082const getProductParameters=(productId,selectedOptions,executeApiPending=!0,isQuery=!1)=>{let options={};let query=isQuery?selectedOptions:'';
2082const cancelRequest=$q.defer();if(!query&&selectedOptions&&selectedOptions.length){selectedOptions.forEach(selectedOption=>{if(!options[selectedOption.productId]){options[selectedOption.productId]=[]} 2083options[selectedOption.productId].push(selectedOption.optionId)});Object.keys(options).forEach((key,index)=>{if(index>0){query+=`&`} 2084query+=`options[]={"p":${key},"o":[${options[key]}]}`})} 2085const requestPromise=$http({method:'get',url:`${servicePath}/${productId}/choosable-parameters?${query}`,executeApiPending:executeApiPending,timeout:cancelRequest.promise}).then(response=>setProductParameters(response.data)).catch(ErrorsService.responseErrorCatcher);requestPromise.cancel=()=>cancelRequest.resolve();return requestPromise};const setProductParameters=(parameters)=>{const choosableParameterLists=[];parameters.forEach(product=>{const productParametersLength=(product.parameters||[]).filter(parameter=>parameter.type!=='hidden').length;if(productParametersLength){choosableParameterLists.push(new ChoosableParameterList(product))}});return choosableParameterLists} 2086const getProductParameterSpecificDetails=productId=>$http.get(`${servicePath}/${productId}/parameter-specific-details`).then(response=>response.data).catch(ErrorsService.responseErrorCatcher);const getBulkChoosableParameters=items=>$http.post(`${servicePath}/bulk/choosable-parameters`,new BulkChosenProductParametersInput(items)).then(response=>{let choosableParametersLists={};Object.entries(response.data).forEach(([key,products])=>{choosableParametersLists[key]=products.map(product=>new ChoosableParameterList(product))});return choosableParametersLists}).catch(ErrorsService.responseErrorCatcher);return{getProduct:getProduct,setProduct:setProduct,getProductParameters:getProductParameters,setProductParameters:setProductParameters,getProductParameterSpecificDetails:getProductParameterSpecificDetails,getBulkChoosableParameters:getBulkChoosableParameters}});angular.module("SkyShopModule").service("LoyaltyPointsService",function($http,LoyaltyPoints,ErrorsService){const proxyPath="/proxy_public_api?endpoint=";const servicePath=proxyPath+"/sky2/api-public/loyalty-points";const getLoyaltyPoints=()=>$http.get(`${servicePath}`).then(response=>new LoyaltyPoints(response.data)).catch(ErrorsService.responseErrorCatcher);return{getLoyaltyPoints:getLoyaltyPoints}});angular.module('SkyShopModule').config(($httpProvider)=>{$httpProvider.interceptors.push('ApiPendingInterceptor')}).factory('ApiPendingInterceptor',function($q,$rootScope,$timeout){let activeRequestsCount=0;let myTimeout;const updateApiRequestsCount=(value)=>{if(myTimeout){$timeout.cancel(myTimeout)} 2087activeRequestsCount+=value;if(activeRequestsCount<1){myTimeout=$timeout(()=>{$rootScope.isApiPending=!1},20)}else{$rootScope.isApiPending=!0}};return{request:request=>{if(!request.executeApiPending){updateApiRequestsCount(1)} 2088return request},response:response=>{if(!response.config.executeApiPending){updateApiRequestsCount(-1)} 2089return $q.resolve(response)},responseError:rejection=>{if(!rejection.config.executeApiPending){updateApiRequestsCount(-1)} 2090return $q.reject(rejection)}}});angular.module('SkyShopModule').config(($httpProvider)=>{$httpProvider.interceptors.push('LangAndCurrencyInterceptor')}).factory('LangAndCurrencyInterceptor',()=>{const htmlElement=angular.element(document.querySelector('html'));const tplCurrency=htmlElement.attr('data-currency')||htmlElement.attr('currency');const tplLang=htmlElement.attr('lang');return{request:request=>{request.headers.lang=tplLang;request.headers.currency=tplCurrency;return request}}});angular.module("SkyShopModule").factory("CartList",function(Cart){function CartList(data){this.carts=(data.carts||[]).map(cart=>new Cart(cart))} 2091return CartList});angular.module("SkyShopModule").factory("Cart",function(PriceSummary,CartItem,CartItemType,CartLoyaltyPoints,EnumMapper,CartDiscountCodeType,Warning){const sortingItems=(items=[])=>{const cartItemsList=(items||[]).map(item=>new CartItem(item));let nonGratisItems=cartItemsList.filter(item=>item.type!==CartItemType.GRATIS_PRODUCT);let gratisItems=cartItemsList.filter(item=>item.type===CartItemType.GRATIS_PRODUCT);return[...nonGratisItems,...gratisItems]} 2092function Cart(data){this.id=data.id;this.canBuy=data.canBuy;this.priceSummary=new PriceSummary(data.priceSummary);this.discountCode=data.discountCode?.type?{errorMessage:data.discountCode.errorMessage??null,name:data.discountCode.name,type:EnumMapper.mapValueToEnum(data.discountCode.type.toUpperCase(),CartDiscountCodeType)}:null;this.loyaltyPoints=data.loyaltyPoints?new CartLoyaltyPoints(data.loyaltyPoints):new CartLoyaltyPoints({quantity:0,errorMessage:null});this.items=sortingItems(data.items);this.warnings=(data.warnings||[]).map(warning=>new Warning(warning))} 2093return Cart});angular.module("SkyShopModule").factory("BulkCartOutput",function(Cart,CartFreeDelivery,FreebieList,CartObtainableLoyaltyPoints,LoyaltyPoints){function BulkCartOutput(data){this.cart=new Cart(data.cart);this.freeDelivery=data.freeDelivery===null?null:new CartFreeDelivery(data.freeDelivery);this.availableFreebies=new FreebieList(data.availableFreebies);this.obtainableLoyaltyPoints=data.obtainableLoyaltyPoints===null?null:new CartObtainableLoyaltyPoints(data.obtainableLoyaltyPoints);this.availableLoyaltyPoints=new LoyaltyPoints(data.availableLoyaltyPoints)} 2094return BulkCartOutput});angular.module("SkyShopModule").factory("PriceSummary",function(Price,Discount){function PriceSummary(data){this.base=new Price(data.base);this.final=new Price(data.final);this.discounts=(data.discounts||[]).map(discount=>new Discount(discount))} 2095PriceSummary.createEmptyPriceSummary=function(){const bodySelector=angular.element(document.querySelector('body'));const emptyData={base:new Price({grossDisplay:'-,--',netDisplay:'-,--'}),final:new Price({grossDisplay:bodySelector.attr('data-cart-simple-info-price'),netDisplay:'-,--'}),discounts:[]};return new PriceSummary(emptyData)};return PriceSummary});angular.module("SkyShopModule").factory("Price",function(PriceTax){function Price(data){this.net=parseFloat(data.net);this.netDisplay=data.netDisplay;this.gross=parseFloat(data.gross);this.grossDisplay=data.grossDisplay;this.currency=data.currency;this.tax=data.tax?new PriceTax(data.tax):null} 2096return Price});angular.module("SkyShopModule").factory("PriceTax",function(){function PriceTax(data){this.amount=parseFloat(data.amount);this.percent=parseFloat(data.percent);this.displayName=data.displayName} 2097return PriceTax});angular.module("SkyShopModule").factory("Discount",function(EnumMapper,DiscountType){function Discount(data){this.type=EnumMapper.mapValueToEnum(data.type,DiscountType);this.value=parseFloat(data.value);this.valueDisplay=data.valueDisplay;this.currency=data.currency} 2098return Discount});angular.module("SkyShopModule").factory("CartItem",function(EnumMapper,PriceSummary,CartItemProduct,CartItemParameter,CartItemType){function CartItem(data){this.id=data.id;this.type=EnumMapper.mapValueToEnum(data.type,CartItemType);this.priceSummary=new PriceSummary(data.priceSummary);this.unitPriceSummary=new PriceSummary(data.unitPriceSummary);
2098this.product=new CartItemProduct(data.product);this.parentId=data.parentId??null;this.quantity=parseFloat(data.quantity);this.parameters=(data.parameters||[]).map(parameter=>new CartItemParameter(parameter))} 2099return CartItem});angular.module("SkyShopModule").factory("CartItemProduct",function(EnumMapper,CartItemProductType,CartItemProductCategory,Amount){function CartItemProduct(data){this.amount=new Amount(data.amount);this.amountInSet=data.amountInSet?parseInt(data.amountInSet):null;this.categories=(data.categories||[]).map(category=>new CartItemProductCategory(category));this.id=data.id;this.name=data.name;this.photo=data.photo?{url:data.photo.url,width:parseInt(data.photo.width),height:parseInt(data.photo.height)}:null;this.producerId=data.producerId?parseInt(data.producerId):null;this.producerName=data.producerName;this.productType=EnumMapper.mapValueToEnum(data.productType,CartItemProductType);this.setItems=(data.setItems||[]).map(setItem=>new CartItemProduct(setItem));this.url=data.url} 2100return CartItemProduct});angular.module("SkyShopModule").factory("CartItemParameter",function(){function CartItemParameter(data){this.productId=data.productId;this.optionId=data.optionId;this.externalValue=data.externalValue??null} 2101return CartItemParameter});angular.module("SkyShopModule").factory("CartItemInput",function(CartItemParameter){function CartItemInput(data){this.productId=parseInt(data.productId);this.quantity=parseFloat(data.quantity);this.parameters=(data.parameters||[]).map(parameter=>new CartItemParameter(parameter))} 2102return CartItemInput});angular.module("SkyShopModule").factory("CartItemQuantityInput",function(){function CartItemQuantityInput(data){this.quantity=parseFloat(data.quantity)} 2103return CartItemQuantityInput});angular.module("SkyShopModule").factory("CartItemParameterList",function(CartItemParameter){function CartItemParameterList(data){this.parameters=(data.parameters||[]).map(parameter=>new CartItemParameter(parameter))} 2104return CartItemParameterList});angular.module("SkyShopModule").factory("CartObtainableLoyaltyPoints",function(UtilsService){function CartObtainableLoyaltyPoints(data){this.points=UtilsService.parseIntOrNull(data.points);this.message=data.message} 2105return CartObtainableLoyaltyPoints});angular.module("SkyShopModule").factory("CartLoyaltyPoints",function(){function CartLoyaltyPoints(data){this.errorMessage=data.errorMessage;this.quantity=parseInt(data.quantity)} 2106return CartLoyaltyPoints});angular.module("SkyShopModule").factory("CartFreeDelivery",function(UtilsService,EnumMapper,CartFreeDeliveryStatus){function CartFreeDelivery(data){this.status=EnumMapper.mapValueToEnum(data.status,CartFreeDeliveryStatus);this.missingAmount=UtilsService.parseFloatOrNull(data.missingAmount);this.missingAmountDisplay=data.missingAmountDisplay;this.fromAmount=UtilsService.parseFloatOrNull(data.fromAmount);this.fromAmountDisplay=data.fromAmountDisplay} 2107return CartFreeDelivery});angular.module("SkyShopModule").factory("FreebieList",function(Freebie){function FreebieList(data){return(Object.values(data.freebies)||[]).map(freebie=>new Freebie(freebie))} 2108return FreebieList});angular.module("SkyShopModule").factory("Freebie",function(CartItemProductPhoto){function Freebie(data){this.id=parseInt(data.id);this.name=data.name;this.url=data.url;this.img=data.img?new CartItemProductPhoto(data.img):null} 2109return Freebie});angular.module("SkyShopModule").factory("ProductPhoto",function(){function ProductPhoto(data){this.id=data.id;this.url=data.url;this.width=parseInt(data.width);this.height=parseInt(data.height)} 2110return ProductPhoto});angular.module("SkyShopModule").factory("Product",function(Price,ProductPhoto){function Product(data){this.id=parseInt(data.id);this.name=data.name;this.url=data.url;this.price=data.price?new Price(data.price):null;this.amount=parseFloat(data.amount);this.setItems=(data.setItems||[]).map(setItem=>new Product(setItem));this.ean=data.ean;this.parameters=data.parameters||[];this.barcode=data.barCode;this.symbol=data.symbol;this.productMainPhoto=data.productMainPhoto?new ProductPhoto(data.productMainPhoto):null} 2111return Product});angular.module("SkyShopModule").factory("CartItemProductPhoto",function(){function CartItemProductPhoto(data){this.url=data.url;this.width=parseInt(data.width);this.height=parseInt(data.height)} 2112return CartItemProductPhoto});angular.module("SkyShopModule").factory("DiscountCodeInput",function(){function DiscountCodeInput(data){this.co
2112de=data.code} 2113return DiscountCodeInput});angular.module("SkyShopModule").factory("LoyaltyPointsInput",function(UtilsService){function LoyaltyPointsInput(data){this.points=UtilsService.parseIntOrNull(data)} 2114return LoyaltyPointsInput});angular.module("SkyShopModule").factory("LoyaltyPoints",function(){function LoyaltyPoints(data){this.points=parseInt(data.points)} 2115return LoyaltyPoints});angular.module("SkyShopModule").factory("ErrorResponse",function(ErrorType,EnumMapper){function ErrorResponse(data){this.status=data.status;this.statusText=data.statusText;this.detail=data.data?.detail;this.errorCode=EnumMapper.mapValueToEnum(data.data?.errorCode,ErrorType);this.errorMessage=data.data?.message} 2116return ErrorResponse});angular.module("SkyShopModule").factory("ChoosableParameter",function(EnumMapper,ParameterType,ChoosableParameterValue){function ChoosableParameter(data){const type=EnumMapper.mapValueToEnum(data.type.toUpperCase(),ParameterType);this.id=data.id;this.name=data.name;this.type=type;this.required=data.required??!1;this.values=(data.values||[]).map(value=>new ChoosableParameterValue(value,type));this.present=data.present;this.imgWidth=data.imgWidth;this.length=data.length;this.isStock=data.isStock} 2117return ChoosableParameter});angular.module("SkyShopModule").factory("ChoosableParameterList",function(ChoosableParameter,ChoosableParameterListAvailability,ParameterType){function ChoosableParameterList(data){let parameters=(data.parameters||[]).map(parameter=>new ChoosableParameter(parameter));this.availability=new ChoosableParameterListAvailability(data.availability);this.productId=data.productId;this.parameters=parameters.filter(parameter=>parameter.type!==ParameterType.HIDDEN);this.barcode=data.barCode;this.ean=data.ean;this.symbol=data.symbol} 2118return ChoosableParameterList});angular.module("SkyShopModule").factory("ChoosableParameterListAvailability",function(){function ChoosableParameterListAvailability(data){this.type=data.type;this.textAvailability=data.type==='text'?{name:data.textAvailability.name,imageUrl:data.textAvailability.imageUrl}:null;this.amount=data.amount} 2119return ChoosableParameterListAvailability});angular.module("SkyShopModule").factory("ChoosableParameterValue",function(Price,ProductPhoto){function ChoosableParameterValue(data,parameterType){this.changePrice=parseFloat(data.changePrice);this.changePriceDisplay=data.changePriceDisplay;this.currency=data.currency;this.changeWeight=parseFloat(data.changeWeight);this.generallyPossible=data.generallyPossible??!0;this.id=parseInt(data.id);this.name=data.name;this.possible=data.possible??!0;this.price=data.price?new Price(data.price):null;this.color=data.color;this.image=data.image;this.parameterType=parameterType;this.changeMainPhoto=data.changeMainPhoto?new ProductPhoto(data.changeMainPhoto):null} 2120return ChoosableParameterValue});angular.module("SkyShopModule").factory("AddFreebieInput",function(){function AddFreebieInput(data){this.productId=parseInt(data.productId)} 2121return AddFreebieInput});angular.module("SkyShopModule").factory("ConfigurationOutput",function(EnumMapper,GeneratePdfConfigEnum){function ConfigurationOutput(data){this.couponCodesActive=data.couponCodesActive||!1;this.loyaltyPointsActive=data.loyaltyPointsActive||!1;this.isUserLoggedIn=data.isUserLoggedIn||!1;this.hidePrice=data.hidePrice||!1;this.generatePdfConfig=EnumMapper.mapValueToEnum(data.generatePdfConfig,GeneratePdfConfigEnum);this.freeDeliveryInfoActive=data.freeDeliveryInfoActive||!1} 2122return ConfigurationOutput});angular.module("SkyShopModule").factory("Warning",function(WarningType,EnumMapper){function Warning(data){this.type=EnumMapper.mapValueToEnum(data.type,WarningType);this.message=data.message;switch(this.type){case WarningType.MINIMUM_ORDER_PRICE:this.context={minimumPrice:data.context.minimumPrice,minimumPriceDisplay:data.context.minimumPriceDisplay};break;case WarningType.NOT_ALL_REQUIRED_PARAMETER_SELECTED:this.context={cartItemId:data.context.cartItemId,productId:data.context.productId};break;case WarningType.QUANTITY_ADJUSTMENT_PROCESS:this.context={added:data.context.added,requested:data.context.requested};break;case WarningType.AVAILABILITY_PROCESS:this.context={added:data.context.added,delay:data.context.delay,max:data.context.max,requested:data.context.requested};break;default:break}} 2123return Warning});angular.module("SkyShopModule").factory("ChangeItemQuantityOutput",function(Warning){function ChangeItemQuantityOutput(data){this.cartId=data.cartId;this.warnings=(data.warnings||[]).map(warning=>new Warning(warning))} 2124return ChangeItemQuantityOutput});angular.module("SkyShopModule").factory("Amount",function(){function Amount(data){this.tick=parseFloat(data.tick);this.minAmount=parseFloat(data.tick);this.isBox=data.isBox;this.unit=data.unit??null} 2125return Amount});angular.module("SkyShopModule").factory("AddToCartOutput",function(Warning,CartItem){function AddToCartOutput(data){this.addedCartItem=new CartItem(data.addedCartItem);this.events={EDRONE_ADD_TO_CART_EVENT:data.events.EDRONE_ADD_TO_CART_EVENT,FB_PIXEL_EVENT:data.events.FB_PIXEL_EVENT} 2126this.id=data.id;this.warnings=this.warnings=(data.warnings||[]).map(warning=>new Warning(warning))} 2127return AddToCartOutput});angular.module("SkyShopModule").factory("UpdateItemParameterOutput",function(CartItemParameterList,Warning){function UpdateItemParameterOutput(data){this.id=data.id;this.updatedCartItemParameter=new CartItemParameterList({parameters:data.updatedCartItemParameter});this.warnings=this.warnings=(data.warnings||[]).map(warning=>new Warning(warning))} 2128return UpdateItemParameterOutput});angular.module("SkyShopModule").factory("CartItemProductCategory",function(){function CartItemProductCategory(data){this.id=data.id;this.name=data.name} 2129return CartItemProductCategory});angular.module("SkyShopModule").factory("BulkChosenProductParametersInput",function(ChosenProductParametersInput){function BulkChosenProductParametersInput(data){this.products=(data||[]).map(item=>new ChosenProductParametersInput(item))} 2130return BulkChosenProductParametersInput});angular.module("SkyShopModule").factory("ChosenProductParametersInput",function(ChosenProductParameters){function ChosenProductParametersInput(data){this.hash=data.id;this.mainProductId=data.product.id;this.parameters=[];(data.parameters||[]).map(parameter=>{const existingParameter=this.parameters.find(p=>p.productId===parameter.productId);if(existingParameter){existingParameter.options.push(parameter.optionId)}else{this.parameters.push(new ChosenProductParameters(parameter))}})} 2131return ChosenProductParametersInput});angular.module("SkyShopModule").factory("ChosenProductParameters",function(){function ChosenProductParameters(data){this.options=[data.optionId];this.productId=data.productId} 2132return ChosenProductParameters});angular.module("SkyShopModule").factory("EnumMapper",()=>({mapValueToEnum:function(value,myEnum){for(let key in myEnum){if(myEnum.hasOwnProperty(key)&&myEnum[key]===value){return key}} 2133return null}}));
2133angular.module("SkyShopModule").constant("CartType",{CLASSIC_CART:"CLASSIC_CART",QUICK_CART:"QUICK_CART"});angular.module("SkyShopModule").constant("DiscountType",{LOYALTY_POINTS:"LOYALTY_POINTS",DISCOUNT_CODE:"DISCOUNT_CODE",DISCOUNT_GROUP:"DISCOUNT_GROUP",FREE_DELIVERY:"FREE_DELIVERY"});angular.module("SkyShopModule").constant("CartItemType",{ORDINARY_PRODUCT:"ORDINARY_PRODUCT",GRATIS_PRODUCT:"GRATIS_PRODUCT",SET_ITEM:"SET_ITEM"});angular.module("SkyShopModule").constant("CartFreeDeliveryStatus",{AVAILABLE:"AVAILABLE",NOT_AVAILABLE:"NOT_AVAILABLE",MISSING_AMOUNT:"MISSING_AMOUNT"});angular.module("SkyShopModule").constant("ParameterType",{CHOOSE:"CHOOSE",INFO:"INFO",HIDDEN:"HIDDEN",RANGE:"RANGE",TEXT:"TEXT"});angular.module("SkyShopModule").constant("CartItemProductType",{PRODUCT:"PRODUCT",FILE:"FILE",SERVICE:"SERVICE",SET:"SET"});angular.module("SkyShopModule").constant("ErrorType",{ERROR_CART_INVALID_DISCOUNT_CODE:"ERROR_CART_INVALID_DISCOUNT_CODE",ERROR_PRODUCT_OUT_OF_STOCK:"ERROR_PRODUCT_OUT_OF_STOCK",ERROR_PRODUCT_MISSING_REQUIRED_PARAMETERS:"ERROR_PRODUCT_MISSING_REQUIRED_PARAMETERS",ERROR_CART_ITEM_NOT_FOUND:"ERROR_CART_ITEM_NOT_FOUND",ERROR_CART_NOT_FOUND:"ERROR_CART_NOT_FOUND",ERROR_ZERO_ITEM_PRICE:"ERROR_ZERO_ITEM_PRICE"});angular.module("SkyShopModule").constant("WarningType",{MINIMUM_ORDER_PRICE:"MINIMUM_ORDER_PRICE",NOT_ALL_REQUIRED_PARAMETER_SELECTED:"NOT_ALL_REQUIRED_PARAMETER_SELECTED",QUANTITY_ADJUSTMENT_PROCESS:"QUANTITY_ADJUSTMENT_PROCESS",AVAILABILITY_PROCESS:"AVAILABILITY_PROCESS",ADDED_ITEM:"ADDED_ITEM",INVALID_COUPON:"INVALID_COUPON"});angular.module("SkyShopModule").constant("GeneratePdfConfigEnum",{OFF:"OFF",PRODUCT:"PRODUCT",PRODUCT_AND_CART:"PRODUCT_AND_CART",CART:"CART"});angular.module("SkyShopModule").constant("CartDiscountCodeType",{DISCOUNT:"DISCOUNT",FREE_DELIVERY:"FREE_DELIVERY"});angular.module("SkyShopModule").filter("priceFormat",function($sce,$filter,Discount,ChoosableParameterValue,CartFreeDelivery,PriceSummary){return function(input,priceType,hideType=!1,priceSelected='final',initValue=''){let inputPriceSelected;let string="";if(input instanceof Discount){inputPriceSelected=input;switch(priceType){case "netto":case "netto_brutto":string=`<strong>${inputPriceSelected.valueDisplay}</strong> ${(hideType ? "" : L.NET)}`;break;case "brutto":string=`<strong>${inputPriceSelected.valueDisplay}</strong> ${(hideType ? "" : L.GROSS)}`;break;default:string=`<strong>${inputPriceSelected.valueDisplay}</strong>`}}else if(input instanceof ChoosableParameterValue){inputPriceSelected=input;if(!inputPriceSelected.changePrice){return string} 2134string=`${inputPriceSelected.changePriceDisplay || inputPriceSelected.changePrice}`}else if(input instanceof CartFreeDelivery){string=`${input.missingAmountDisplay}${['brutto', 'netto_brutto','netto'].includes(priceType)? (' '+L.GROSS) : ''}`} 2135else if(input instanceof PriceSummary){if(!input||!input[priceSelected]){string='-,--'}else{inputPriceSelected=input[priceSelected];switch(priceType){case "netto":case "netto_brutto":string=`<strong>${inputPriceSelected.netDisplay}</strong> ${(hideType ? "" : L.NET)}`;break;case "brutto":string=`<strong>${inputPriceSelected.grossDisplay}</strong> ${(hideType ? "" : L.GROSS)}`;break;default:string=`<strong>${inputPriceSelected.grossDisplay}</strong>`;break}}}else{string=initValue} 2136return $sce.trustAsHtml(string)}});angular.module("SkyShopModule").filter("currencyFilter",function(){return function(value){switch(value){case "PLN":return "zÅ";case "EURO":return "â¬";case "DOLLAR":return "$";default:return value}}});let buttonDelayDebouncerTimer={};angular.module("SkyShopModule").directive("delayButton",function($rootScope,$timeout){return{restrict:"A",scope:{delay:"@",callback:"&",update:"&",delayId:"@",},link:function(scope,element){element.on("click",function(){if(scope.delayId&&buttonDelayDebouncerTimer[scope.delayId]){$timeout.cancel(buttonDelayDebouncerTimer[scope.delayId])} 2137if(buttonDelayDebouncerTimer[scope.delayId]){$timeout.cancel(buttonDelayDebouncerTimer[scope.delayId])} 2138scope.update();buttonDelayDebouncerTimer[scope.delayId]=$timeout(function(){scope.callback()},parseInt(scope.delay))})}}});let choosableParameterListsStorage=[];let selectedOptionsStorage={};const addErrorOrValidateDialogTimeout=100;const createSetItemsList=(setItems)=>{let position=0;return setItems.length?setItems.reduce((obj,setItem)=>{obj[setItem.id]={name:setItem.name,url:setItem.url,id:setItem.id,hide:!1,position:position,parametersCount:0,cumulativeParametersCount:0};position++;return obj},{}):null};const scrollToItem=(select)=>{const items=select.items||[];const selectedIndex=items.findIndex(item=>select.selected&&item.id===select.selected.id);const scrollToIndex=selectedIndex>=0?selectedIndex:0;const scrollWrapper=$(select.$element).find('.scroll-wrapper .scroll-content');scrollWrapper.scrollTop(0);setTimeout(()=>{const rows=scrollWrapper.find('.ui-select-choices-row');const targetRow=rows.eq(scrollToIndex);if(targetRow.length){scrollWrapper.scrollTop(targetRow.position().top-scrollWrapper.height()/2);rows.removeClass('active');targetRow.addClass('active');const focusable=targetRow.find('a, button, input, [tabindex]').first();if(focusable.length){focusable.focus()}else{targetRow.attr('tabindex','-1').focus()}}},0)} 2139const createCartItemParametersList=(CartItemParameter,selectedOptions,excludedOptionId=null)=>{const parameters=[];
2139Object.keys(selectedOptions).forEach(productId=>{Object.keys(selectedOptions[productId]).forEach(parameterKey=>{if(selectedOptions[productId][parameterKey]&&selectedOptions[productId][parameterKey].id!==excludedOptionId){parameters.push(new CartItemParameter({productId:productId,optionId:selectedOptions[productId][parameterKey].id,externalValue:selectedOptions[productId][parameterKey].parameterType==='TEXT'?selectedOptions[productId][parameterKey].name:null}))}})});return parameters};const initSelectedOptions=(choosableParameterLists,selectedParameters,restoreParameters=!1,showEmptyTextParameter)=>{if(!choosableParameterLists||!choosableParameterLists.length){return{}} 2140const selectedOptions={};for(const product of choosableParameterLists){const{productId,parameters}=product;selectedOptions[productId]={};for(let j=0;j<parameters.length;j++){selectedOptions[productId][j]=undefined;const parameter=parameters[j];for(const value of parameter.values){const{id:optionId,possible}=value;const foundSelectedParameter=selectedParameters.find(selectedParameter=>selectedParameter.productId.toString()===productId.toString()&&selectedParameter.optionId.toString()===optionId.toString()&&(possible||restoreParameters));if(foundSelectedParameter){if(value.parameterType==='TEXT'){value.name=foundSelectedParameter.externalValue} 2141selectedOptions[productId][j]=value}}}} 2142selectedOptionsStorage=selectedOptions;return selectedOptions};const updateSelectedOptions=(newSelectedOption,newSelectedOptionProductId,newSelectedOptionIndex,oldSelectedOptions)=>{if(newSelectedOption&&!newSelectedOption.possible){for(const productKey in oldSelectedOptions){if(productKey.toString()===newSelectedOptionProductId.toString()){const parameters=oldSelectedOptions[productKey];for(const parameterKey in parameters){parameters[parameterKey]=parameterKey.toString()===newSelectedOptionIndex.toString()?newSelectedOption:undefined}}}}};let productTemplate=(isFlex,showEmptyTextParameter)=>` 2143 <div class="ui-select2-wrapper sky-mb-1" data-ng-if="parameter.type === 'TEXT' && (!!(selectedOptions[product.productId][$index].name) || ${showEmptyTextParameter})"> 2144 <div class="product-parameter-name" data-ng-class="{'sky-f-small-regular me-2': ${isFlex}}"> 2145 <span data-ng-bind-html="parameter.name"></span><span data-ng-if="${isFlex}">:</span> 2146 </div><div class="product-options-wrapper"> 2147 <div class="product-option-info" data-ng-class="{'text-field sky-f-small-medium':${isFlex}}"> 2148 <span data-ng-if="selectedOptions[product.productId][$index]" data-ng-bind-html="selectedOptions[product.productId][$index].name"></span><span class="not-selected [{[parameter.required? 'required': '']}]" data-ng-if="!selectedOptions[product.productId][$index].name">`+L.NOT_SELECTED+`</span> 2149 </div> 2150 </div> 2151 </div> 2152 2153 <div class="ui-select2-wrapper sky-mb-1" data-ng-if="parameter.type !== 'TEXT'"> 2154 <div class="product-parameter-name" data-ng-class="{'sky-f-small-regular me-2': ${isFlex}}" data-ng-if="!${isFlex} || (parameter.type !== 'CHOOSE' )"> 2155 <span data-ng-bind-html="parameter.name"></span><span data-ng-if="${isFlex}">:</span> 2156 </div><div class="product-options-wrapper" data-ng-class="{'select2-fieldset': ${isFlex} && parameter.type === 'CHOOSE'}"> 2157 <div data-ng-if="${isFlex} && parameter.type === 'CHOOSE'" class="select2-legend" data-ng-bind="parameter.name"></div> 2158 <ui-select 2159 ui-select-keyboard-patch="${isFlex}" 2160 skip-focusser="true" 2161 data-cart-id="[{[cartItem.id]}]" 2162 data-product-id="[{[product.productId]}]" 2163 data-parameter-required="[{[parameter.required]}]" 2164 data-index="[{[$index]}]" 2165 data-ng-if="parameter.type === 'CHOOSE'" 2166 ng-disabled="disabled" 2167 ng-model="selectedOptions[product.productId][$index]" 2168 ng-click="$select.open? setInitSelectedOption($event, $index, $select):null" 2169 theme="select2" 2170 search-enabled="false" 2171 aria-label="[{[parameter.name]}]" 2172 ng-change="updateSelectedOption(selectedOptions[product.productId][$index], product.productId, $index)"> 2173 <ui-select-match placeholder="${L.SELECT_PLACEHOLDER}">
2174 <span 2175 id="parameter_[{[product.productId]}]_[{[$index]}]" 2176 class="product-option-name" ng-bind-html="$select.selected.name+' '+($select.selected.changePrice? $select.selected.changePriceDisplay:'')"></span> 2177 <button data-ng-if="${isFlex} && possibleClearSelectedOption(product.productId, $index)" aria-label="${L.CLEAR_PARAMETER}" type="button" ng-click="clearSelectedOption($event,product.productId, $index, $select)" tabindex="0" class="select2-selection__clear d-flex border-0 bg-transparent p-0"> 2178 <span aria-hidden="true" class="icon-close_circle_24 icon-18 cursor-pointer"> 2179 <span class="path1"></span> 2180 <span class="path2"></span> 2181 </span> 2182 </button> 2183 <span data-ng-if="${!isFlex} && possibleClearSelectedOption(product.productId, $index)" class="product-option-clear" ng-click="clearSelectedOption($event,product.productId, $index, $select)">Ã</span> 2184 </ui-select-match> 2185 <ui-select-choices ng-class="{'loading-options':isPendingPossibleOptions}" ui-disable-choice="!item.generallyPossible || disabled || isPendingPossibleOptions" repeat="item in (parameter.values | filter: $select.search) track by item.id"> 2186 <span ng-class="{'impossible-option': !item.generallyPossible}"> 2187 [{[item.name]}] 2188 [{[item | priceFormat:'brutto':true]}] 2189 <span data-ng-if="!item.generallyPossible" class="sr-only">${L.PARAMETER_UNAVAILABLE}</span> 2190 </span> 2191 </ui-select-choices> 2192 </ui-select> 2193 <div class="product-option-info" data-ng-class="{'text-field sky-f-small-medium':${isFlex}}" data-ng-if="['INFO','RANGE'].includes(parameter.type)"> 2194 <span data-ng-repeat="value in parameter.values" data-ng-bind="(!$first? ', ':'')+value.name"></span> 2195 </div> 2196 </div> 2197 </div>`;let productParametersTemplate=(onlyOneProductId=null,dialog=!1,isFlex=!1,showEmptyTextParameter)=>` 2198 <div data-ng-if="setItems" class="dialog-parameters dialog-set-items"> 2199 <div data-ng-repeat="setItem in getSortedItems(setItems)" data-ng-hide="!dialog && setItem.hide"> 2200 <div class="product-parameter-setItem-name"> 2201 <a data-ng-if="setItem.url" href="[{[setItem.url]}]" data-ng-bind="setItem.name"></a> 2202 <span data-ng-if="!setItem.url" data-ng-bind="setItem.name"></span> 2203 </div> 2204 <div data-ng-repeat="product in setItemsChoosableParameterLists(setItem.id)" data-ng-init="visibleSetItemsInDetails($parent.$index)" > 2205 <div data-ng-hide="onlyOneProductId && onlyOneProductId !== product.productId"> 2206 <div data-ng-repeat="parameter in product.parameters" data-ng-hide="!dialog && (maxParametersCount && (setItem.cumulativeParametersCount+$index) >= maxParametersCount)"> 2207 ${productTemplate(isFlex, showEmptyTextParameter)} 2208 </div> 2209 </div> 2210 </div> 2211 <div data-ng-if="!setItemsChoosableParameterLists(setItem.id)[0].parameters.length" 2212 <span class="no-additional-parameters sky-f-small-regular">${L.NO_PARAMETERS_SUBPRODUCT_SELECTED}</span> 2213 </div> 2214 </div> 2215 </div> 2216 2217 <div data-ng-if="!setItems" data-ng-repeat="product in choosableParameterLists" class="dialog-parameters"> 2218 <div data-ng-hide="onlyOneProductId && onlyOneProductId !== product.productId"> 2219 <div data-ng-repeat="parameter in product.parameters" data-ng-show="!maxParametersCount || (getCombinedIndex($parent.$index, $index, product.parameters) <= maxParametersCount)"> 2220 ${productTemplate(isFlex, showEmptyTextParameter)} 2221 </div> 2222 </div> 2223 </div>`;let productParametersInlineTemplate=` 2224 <span> 2225 <span data-ng-bind-html="parameter.name+':'"></span>
2226 <span data-ng-if="['CHOOSE','TEXT'].includes(parameter.type)"><strong><span data-ng-if="selectedOptions[product.productId][$index].name" data-ng-bind-html="selectedOptions[product.productId][$index].name"></span><span data-ng-if="!selectedOptions[product.productId][$index].name" class="not-selected [{[parameter.required? 'required': '']}]">`+L.NOT_SELECTED+`</span><span data-ng-if="selectedOptions[product.productId][$index] && selectedOptions[product.productId][$index].changePrice" data-ng-bind="' ('+selectedOptions[product.productId][$index].changePriceDisplay+')'"></span></strong></span><span data-ng-if="['INFO','RANGE'].includes(parameter.type)"><span data-ng-repeat="value in parameter.values"><strong><span data-ng-bind="value.name"></span></strong><span data-ng-if="!$last" data-ng-bind="', '"></span></span></span><span data-ng-if="!$last" data-ng-bind="', '"></span> 2227 </span>`;angular.module("SkyShopModule").directive("productParameters",function($timeout,ProductService,CartService,SharedService,CartItemParameter,WarningType,ParameterType,$mdDialog,ErrorsService){return{controller:function($scope){const changeZIndexParameterLabel=(event)=>{if(event){const currentTarget=event.currentTarget;const legendElement=$(currentTarget).siblings('.select2-legend');$('.select2-legend').each(function(){$(this).css('z-index','')});legendElement.css({'z-index':13})}} 2228const createScrollbar=(event=null,element='.ui-select-dropdown .select2-results')=>{if(event){const currentTarget=event.currentTarget;if(!$(currentTarget).find(element).hasClass('scroll-wrapper')){$(currentTarget).find(element).scrollbar()} 2229return} 2230const uiElements=$(element);for(let i=0;i<uiElements.length;i++){if($(uiElements[i].children)&&!$(uiElements[i].children).hasClass('ng-hide')){$(uiElements[i]).scrollbar()}}};const productOrSetId=$scope.product.id;$scope.setItems=createSetItemsList($scope.product.setItems);$scope.choosableParameterLists=$scope.choosableParameterLists??[];choosableParameterListsStorage=$scope.choosableParameterLists;$scope.selectedOptions=selectedOptionsStorage||{};$scope.openSetItems=!1;$scope.maxParametersCount=$scope.maxParametersCount||3;$scope.parametersInline=$scope.parametersInline??!1;$scope.parametersFlex=$scope.parametersFlex??!1;$scope.isPendingPossibleOptions=!1;$scope.getSortedItems=(items)=>Object.values(items).sort((a,b)=>a.position-b.position);$scope.visibleSetItemsInDetails=(parentIndex)=>{let combinedIndex=0;let setItemsIdsSortedList=Object.keys($scope.setItems).sort((a,b)=>$scope.setItems[a].position-$scope.setItems[b].position).map(key=>Number(key));let setItem=Object.keys($scope.setItems).filter(key=>$scope.setItems[key].position===parentIndex).reduce((obj,key)=>$scope.setItems[key],null);for(let i=0;i<setItemsIdsSortedList.length;i++){let setItem=$scope.setItems[setItemsIdsSortedList[i]];setItem.parametersCount=($scope.choosableParameterLists.find((choosableParameterList)=>choosableParameterList.productId===setItem.id)?.parameters||[]).filter(parameter=>parameter.type!=='TEXT'||parameter.values[0].name).length;if(i===0){combinedIndex=setItem.parametersCount;setItem.cumulativeParametersCount=0;setItem.hide=!1}else{setItem.cumulativeParametersCount=combinedIndex;setItem.hide=combinedIndex>=$scope.maxParametersCount;combinedIndex+=setItem.parametersCount}} 2231if(Object.values($scope.setItems).some(item=>item.parametersCount>0)){Object.values($scope.setItems).filter(item=>item.parametersCount===0).map(item=>item.hide=!0)}};$scope.getCombinedIndex=(parentIndex,childIndex,parameters)=>{let combinedIndex=0;if(!$scope.setItems){if(parameters&¶meters.length){for(let p=0;p<=childIndex;p++){if(parameters[p].type!=='TEXT'||parameters[p].values[0].name){combinedIndex++}}} 2232for(let i=0;i<parentIndex;i++){combinedIndex+=$scope.choosableParameterLists[i].parameters.filter(parameter=>parameter.type!=='TEXT'||parameter.values[0].name).length}} 2233return combinedIndex};const updateProductParameters=(selectedOption=null,selectedOptionProductId=null,selectedOptionIndex=null,productId=null)=>{updateSelectedOptions(selectedOption,selectedOptionProductId,selectedOptionIndex,$scope.selectedOptions);const parameters=createCartItemParametersList(CartItemParameter,$scope.selectedOptions);if(skyTheme){removeAllErrors(angular.element('.cart-table'))}else{removeError(angular.element('.ss-error'))} 2234ProductService.getProductParameters(productId?productId:productOrSetId,parameters,!1).then((choosableParameterLists)=>{$scope.choosableParameterLists=choosableParameterLists;$scope.callback({parameters:parameters})})};
2234$scope.$on('updateProductParametersDirective',(event,data)=>{const parameters=data.parameters;const itemIdToUpdate=data.itemId;const restoreParameters=data.restoreParameters;if(itemIdToUpdate!==$scope.cartItem.id){return} 2235if(!restoreParameters){$scope.selectedParameters=parameters} 2236$scope.selectedOptions=initSelectedOptions($scope.choosableParameterLists,$scope.selectedParameters,restoreParameters,$scope.parametersInline)});$scope.updateSelectedOption=(selectedOption,selectedOptionProductId,selectedOptionIndex)=>{const selectedOptionId=selectedOption.id;const noChangedOption=!!$scope.selectedParameters.find(selectedParameter=>selectedParameter.productId===selectedOptionProductId&&selectedParameter.optionId===selectedOptionId);if(noChangedOption){return} 2237updateProductParameters(selectedOption,selectedOptionProductId,selectedOptionIndex)};let productParametersRequest;$scope.setInitSelectedOption=(event,index,select)=>{if(productParametersRequest){$scope.isPendingPossibleOptions=!1;productParametersRequest.cancel()} 2238const classesToCheck=['impossible-option','select2-result-single','select2-result-label'];const hasClass=classesToCheck.some(className=>event.target.classList.contains(className));if(hasClass){return} 2239$scope.isPendingPossibleOptions=!0;if($scope.parametersFlex){changeZIndexParameterLabel(event)} 2240createScrollbar(event);const parameters=createCartItemParametersList(CartItemParameter,$scope.selectedOptions,select.selected?.id??null);productParametersRequest=ProductService.getProductParameters(productOrSetId,parameters);productParametersRequest.then(choosableParameterLists=>{if(ErrorsService.isErrorResponse(choosableParameterLists)){return} 2241const foundParameter=choosableParameterLists.find(parameters=>parameters.productId===productOrSetId)?.parameters[index];if(!select.selected){select.activeIndex=null;scrollToItem(select)}else{scrollToItem(select)} 2242if(foundParameter){select.items=foundParameter.values} 2243$scope.isPendingPossibleOptions=!1})} 2244$scope.possibleClearSelectedOption=(productId,index)=>{const choosableParameterList=$scope.choosableParameterLists.find(choosableParameterList=>choosableParameterList.productId===productId);const choosableParameter=choosableParameterList.parameters[index];const parameterRequired=choosableParameter.required;const parameterValuesLength=choosableParameter.values.length;return !parameterRequired||(parameterRequired&¶meterValuesLength>1)};$scope.clearSelectedOption=(event,productId,index,select)=>{if($scope.disabled){return} 2245event.stopPropagation();select.activeIndex=null;$scope.selectedOptions[productId][index]=undefined;select.close();updateProductParameters()};$scope.getCountParameters=()=>$scope.choosableParameterLists.reduce((amount,product)=>amount+product.parameters.length,0);$scope.anySelectTypeParameterExists=(parameters)=>{return !!parameters.find(parameter=>parameter.type===ParameterType.CHOOSE)};let productParametersModalRequest;$scope.openDialogWithParameters=(ev,productId)=>{angular.element('.ss-error-popover').remove();if(skyTheme){removeAllErrors(angular.element('.cart-table'))}else{removeError(angular.element('.ss-error'))} 2246$mdDialog.show({parent:angular.element(document.body),targetEvent:ev,clickOutsideToClose:!0,locals:{cartItem:$scope.cartItem,setItems:productId?null:$scope.setItems,choosableParameterLists:$scope.choosableParameterLists,selectedOptions:$scope.selectedOptions,onlyOneProductId:productId??null,parametersFlex:$scope.parametersFlex},controller:function($scope,$rootScope,$mdDialog,cartItem,setItems,choosableParameterLists,selectedOptions,onlyOneProductId,parametersFlex){$timeout(()=>{createScrollbar(null,'.md-dialog-container .md-dialog-content')});$scope.parametersFlex=parametersFlex??!1;$scope.cartItem=cartItem;let dirtyDialogParameters=!1;$scope.showButtonParametersDescription=!1;$scope.isPendingPossibleOptions=!1;$scope.onlyOneProductId=onlyOneProductId;$scope.dialog=!0;let dialogFormValid=!0;const validCartFormDialog=()=>{removeError(angular.element('.product-parameters-directive-dialog .ui-select-container.ss-error'));const cartItemId=$scope.cartItem.id;dialogFormValid=!0;
2246$scope.choosableParameterLists.forEach((choosableParameterList)=>{for(let i=0;i<choosableParameterList.parameters.length;i++){let productId=choosableParameterList.productId;let parameter=choosableParameterList.parameters[i];let isSelectedOption=$scope.selectedOptions[productId][i]??!1;if(parameter.type==='CHOOSE'&¶meter.required){let validParameter=!parameter.required||isSelectedOption;if(!validParameter){dialogFormValid=!1;$timeout(()=>{const uiSelectElement=angular.element(document.querySelector('.product-parameters-directive-dialog div[data-cart-id="'+cartItemId+'"][data-product-id="'+productId+'"][data-index="'+i+'"]'));addError(uiSelectElement,'','hidden')},addErrorOrValidateDialogTimeout)}}}})};const updateDialogProductParameters=(selectedOption=null,selectedOptionProductId=null,selectedOptionIndex=null,productId=null)=>{updateSelectedOptions(selectedOption,selectedOptionProductId,selectedOptionIndex,$scope.selectedOptions);const parameters=createCartItemParametersList(CartItemParameter,$scope.selectedOptions);removeError(angular.element('.product-parameters-directive-dialog .ui-select-container.ss-error'));ProductService.getProductParameters(productId?productId:productOrSetId,parameters,!1).then(choosableParameterLists=>{$scope.choosableParameterLists=choosableParameterLists;$scope.selectedOptions=initSelectedOptions($scope.choosableParameterLists,parameters,!1,$scope.parametersInline);if(selectedOption&&$scope.selectedOptions[selectedOptionProductId][selectedOptionIndex]?.possible){$scope.selectedOptions[selectedOptionProductId][selectedOptionIndex]=selectedOption} 2247dirtyDialogParameters=!0;validCartFormDialog()})};$scope.getSortedItems=function(items){return Object.values(items).sort((a,b)=>a.position-b.position)};$rootScope.$watch('isApiPending',(newValue,oldValue)=>{if(newValue!==oldValue){$scope.disabled=newValue}});$scope.setItems=setItems;$scope.choosableParameterLists=angular.copy(choosableParameterLists);$scope.selectedOptions=angular.copy(selectedOptions);$scope.clearSelectedOption=(event,productId,index,select)=>{event.stopPropagation();select.activeIndex=null;$scope.selectedOptions[productId][index]=undefined;select.close();updateDialogProductParameters()};$scope.updateSelectedOption=(selectedOption,selectedOptionProductId,selectedOptionIndex)=>{updateDialogProductParameters(selectedOption,selectedOptionProductId,selectedOptionIndex)};$scope.setInitSelectedOption=(event,index,select)=>{if(productParametersModalRequest){productParametersModalRequest.cancel()} 2248const classesToCheck=['impossible-option','select2-result-single','select2-result-label'];const hasClass=classesToCheck.some(className=>event.target.classList.contains(className));if(hasClass){return} 2249$scope.isPendingPossibleOptions=!0;if($scope.parametersFlex){changeZIndexParameterLabel(event)} 2250createScrollbar(event);if(select.selected){scrollToItem(select)} 2251const parameters=createCartItemParametersList(CartItemParameter,$scope.selectedOptions,select.selected?.id??null);productParametersModalRequest=ProductService.getProductParameters(productOrSetId,parameters);productParametersModalRequest.then(choosableParameterLists=>{if(ErrorsService.isErrorResponse(choosableParameterLists)){return} 2252const foundParameter=choosableParameterLists.find(parameters=>parameters.productId===productOrSetId)?.parameters[index];if(!select.selected){select.activeIndex=null} 2253if(foundParameter){select.items=foundParameter.values} 2254$scope.isPendingPossibleOptions=!1})} 2255$scope.possibleClearSelectedOption=(productId,index)=>{const choosableParameterList=$scope.choosableParameterLists.find(choosableParameterList=>choosableParameterList.productId===productId);const choosableParameter=choosableParameterList.parameters[index];const parameterRequired=choosableParameter.required;const parameterValuesLength=choosableParameter.values.length;return !parameterRequired||(parameterRequired&¶meterValuesLength>1)};$scope.setItemsChoosableParameterLists=(productId)=>$scope.choosableParameterLists.filter(choostableParameter=>choostableParameter.productId===productId);$scope.cancelDialog=()=>{$mdDialog.hide(null)} 2256$scope.closeDialog=()=>{validCartFormDialog();if(!dialogFormValid){popups.actionAlert(L.ERROR_UNEXPECTED_ERROR,L.OPT_REQIRED_INFO,'error');return} 2257$mdDialog.hide(dirtyDialogParameters?$scope.selectedOptions:null)};$timeout(()=>{validCartFormDialog()})},template:` 2258 <md-dialog class="product-parameters-directive-dialog"> 2259 <button aria-label="${L['CLOSE_POPUP']}" data-ng-if="${$scope.parametersFlex}" class="close-modal bg-transparent border-0" data-ng-click="cancelDialog()">Ã</button> 2260 <md-dialog-content class="md-dialog-content"> 2261 2262 <h2 class="md-title">${L.PARAMETERS_LIST}</h2> 2263 ${productParametersTemplate($scope.onlyOneProductId, true, $scope.parametersFlex, false)} 2264 </md-dialog-content> 2265 <md-dialog-actions class="md-dialog-actions"> 2266 <button data-ng-if="${$scope.parametersFlex}" class="btn btn-primary" data-ng-class="${$scope.parametersFlex}? 'btn-small sky-f-small-bold':''" ng-click="closeDialog()">${L.APPLY}</button> 2267 <md-button data-ng-if="${!$scope.parametersFlex}" class="btn btn-primary" ng-click="closeDialog()">${L.APPLY}</md-button> 2268 </md-dialog-actions> 2269 </md-dialog> 2270 `,}).then(function(selectedOptions){if(selectedOptions){$scope.selectedOptions=selectedOptions}}).catch(()=>{}).finally(()=>
2270{if(productParametersModalRequest){productParametersModalRequest.cancel()} 2271updateProductParameters()})};$scope.setItemsChoosableParameterLists=(productId)=>$scope.choosableParameterLists.filter(choostableParameter=>choostableParameter.productId===productId);$scope.toggleSetItemsList=(event)=>{const parentElement=event.target.closest('.set-items-wrapper');const ulElement=$(parentElement).find('#setItemsContainer')[0];let containerHeight=ulElement.offsetHeight;for(let i=0;i<ulElement.children.length;i++){const liElement=window.getComputedStyle(ulElement.children[i]);containerHeight+=ulElement.children[i].offsetHeight+parseInt(liElement.marginTop)+parseInt(liElement.marginBottom)+parseInt(liElement.paddingTop)+parseInt(liElement.paddingBottom)} 2272ulElement.style.maxHeight=$scope.openSetItems?'0px':(containerHeight+'px');$scope.openSetItems=!$scope.openSetItems};$scope.$watch('choosableParameterLists',(newValue,oldValue)=>{if(!$scope.loadedChoosableParameters&&newValue!==oldValue){$scope.selectedOptions=initSelectedOptions($scope.choosableParameterLists,$scope.selectedParameters,!1,$scope.parametersInline);$scope.loadedChoosableParameters=!0}},!0)},restrict:'E',scope:{product:"=",cartItem:"=",selectedParameters:"=",maxParametersCount:"=?",parametersInline:"=?",parametersFlex:"=?",choosableParameterLists:"=?",disabled:"=",callback:"&"},template:` 2273 <div data-ng-if="!parametersInline"> 2274 <div data-ng-hide="loadedChoosableParameters" style="position:relative;" data-ng-class="{'text-center': parametersFlex}"> 2275 <i data-ng-if="parametersFlex" class="icon-refresh spinner icon-16 sky-text-black-primary"></i> 2276 <i data-ng-if="!parametersFlex" class="fa fa-refresh fa-spin fa-3x fa-fw fa-sm"></i> 2277 </div> 2278 <div data-ng-show="loadedChoosableParameters"> 2279 <div class="product-parameters-directive" ng-if="!parametersFlex && (setItems || (choosableParameterLists && choosableParameterLists.length))"> 2280 ${productParametersTemplate(null, false, false, false)} 2281 <button data-ng-disabled="disabled" ng-if="setItems || (getCountParameters() > maxParametersCount)" class="all-parameters-button" data-ng-click="openDialogWithParameters($event)" ng-mouseenter="showButtonParametersDescription = true" ng-mouseleave="showButtonParametersDescription = false"> 2282 <div data-cart-id-parameters="[{[cartItem.id]}]"> 2283 <div data-ng-hide="showButtonParametersDescription"> 2284 <i aria-hidden="true" ng-repeat="i in [1,2,3]" class="fa fa-circle"></i> 2285 </div> 2286 <div data-ng-show="showButtonParametersDescription"> 2287 <span>${L.MORE_PARAMETERS}</span> 2288 </div> 2289 </div> 2290 </button> 2291 </div> 2292 <div class="product-parameters-directive" ng-if="parametersFlex && (setItems || (choosableParameterLists && choosableParameterLists.length))"> 2293 ${productParametersTemplate(null, false, true, false)} 2294 <button data-ng-disabled="disabled" ng-if="setItems || (getCountParameters() > maxParametersCount)" class="all-parameters-button" data-ng-click="openDialogWithParameters($event)" ng-mouseenter="showButtonParametersDescription = true" ng-mouseleave="showButtonParametersDescription = false"> 2295 <div data-type="all-parameters-button" data-cart-id-parameters="[{[cartItem.id]}]"> 2296 <div> 2297 <span class="sky-f-small-regular text-decoration-underline sky-cursor-pointer hover-primary p-1">${L.MORE_PARAMETERS}</span> 2298 </div> 2299 </div> 2300 </button> 2301 </div> 2302 </div> 2303 </div> 2304 <div data-ng-if="parametersInline"> 2305 <div class="product-parameters-directive" ng-if="setItems || (choosableParameterLists && choosableParameterLists.length)"> 2306 <div class="[{[openSetItems? 'show-set-items':'']}] [{[setItems? 'set-items-wrapper':'']}]"> 2307 <div data-ng-show="setItems" class="text-left"> 2308 <button data-ng-disabled="disabled" class="all-parameters-button" data-ng-click="toggleSetItemsList($event)"> 2309 <div data-cart-id-expand-parameters="[{[cartItem.id]}]">
2310 <span data-ng-bind="openSetItems? '${L.SUB_PRODUCTS_HIDE_CART}':'${L.SUB_PRODUCTS_SHOW_CART}'"></span> 2311 </div> 2312 </button> 2313 </div> 2314 2315 <ul id="[{[!!setItems? 'setItemsContainer':'productContainer']}]" class="parameters-inline [{[!!setItems? 'parameters-inline-set':'']}]"> 2316 <li data-ng-if="setItems" class="product-parameters-inline" data-ng-repeat="setItem in setItems"> 2317 <div class="product-parameter-setItem-name"> 2318 <a data-ng-if="setItem.url" href="[{[setItem.url]}]" data-ng-bind="setItem.name"></a> 2319 <span data-ng-if="!setItem.url" data-ng-bind="setItem.name"></span> 2320 </div> 2321 <div class="product-parameters-inline" data-ng-repeat="product in setItemsChoosableParameterLists(setItem.id)"> 2322 <span class="parameter-wrapper" data-ng-repeat="parameter in product.parameters"> 2323 ${productParametersInlineTemplate} 2324 </span> 2325 <button aria-label="ZmieÅ parametry" data-ng-disabled="disabled" data-ng-if="anySelectTypeParameterExists(product.parameters)" class="all-parameters-button" data-ng-click="openDialogWithParameters($event,product.productId)"> 2326 <span>(</span><span>${L.CHANGE}</span><span>)</span> 2327 </button> 2328 </div> 2329 <div data-ng-show="!setItemsChoosableParameterLists(setItem.id)[0].parameters.length"> 2330 <span class="no-additional-parameters sky-f-small-regular">${L.NO_PARAMETERS_SUBPRODUCT_SELECTED}</span> 2331 </div> 2332 </li> 2333 <li data-ng-if="!setItems" class="product-parameters-inline" data-ng-repeat="product in choosableParameterLists"> 2334 <span class="parameter-wrapper" data-ng-repeat="parameter in product.parameters"> 2335 ${productParametersInlineTemplate} 2336 </span> 2337 <button aria-label="ZmieÅ parametry" data-ng-disabled="disabled" data-ng-if="anySelectTypeParameterExists(product.parameters)" class="all-parameters-button" data-ng-click="openDialogWithParameters($event,product.productId)"> 2338 <span>(</span><span>${L.CHANGE}</span><span>)</span> 2339 </button> 2340 </li> 2341 </ul> 2342 </div> 2343 </div> 2344 </div>`}});angular.module("SkyShopModule").directive("productCounter",function($timeout,$rootScope,$sce){return{restrict:"E",scope:{type:"=?",cartId:"=",productId:"=?",quantity:"=",unit:"=?",delayDebounce:"=?",step:"=?",min:"=?",max:"=?",disabled:"=",callback:"&",counterClass:"=?",ariaLabel:"=?"},controller:function($scope,$element){const counterType=$scope.type||'changeQuantityCartItem';const isNum=(value)=>{return typeof value==='number'};$scope.formatUnits=(unit='')=>{const formattedText=unit.replace(/m2/g,'m<sup>2</sup>').replace(/m3/g,'m<sup">3</sup>');return $sce.trustAsHtml(formattedText)} 2345$scope.delayDebounce=$scope.delayDebounce||500;$scope.step=$scope.step||1;$scope.minValue=isNum($scope.min)?$scope.min:($scope.step||1);$scope.maxValue=isNum($scope.max)?$scope.max:null;$scope.unit=$scope.unit||null;$scope.tempQuantity=$scope.quantity;const cartId=$scope.cartId;const productId=$scope.productId;$scope.check=(event,type)=>{if(type==='focus'){$scope.tempQuantity=$scope.quantity;event.target.select()}else if(type==='blur'){if(!isNum($scope.quantity)){$scope.quantity=$scope.tempQuantity} 2346if($scope.quantity!==$scope.tempQuantity){$scope.change('blur')}}};$scope.checkInput=(event)=>{const key=event.key;if(counterType==='changeLoyaltyPointsCart'){if(!/[0-9]/.test(key)&&key!=='Enter'){event.preventDefault();return} 2347if(key==='Enter'){event.target.blur()}}};$scope.change=(type='default')=>
2347{if(!isNum($scope.quantity)){return} 2348if($scope.quantity<=0){$scope.quantity=$scope.min} 2349if($scope.max&&$scope.quantity>$scope.max){$scope.quantity=$scope.max} 2350if($scope.quantity===$scope.tempQuantity){return} 2351switch(counterType){case 'changeQuantityCartItem':{if(!['default','button'].includes(type))return;const params={cartId,productId,quantity:$scope.quantity,delay:$scope.delayDebounce};const existingItem=$rootScope.cartItemQuantityChangePromises.find(item=>item.type==='changeQuantityCartItem'&&item.params.productId===productId);if(existingItem){existingItem.params=params}else{$rootScope.cartItemQuantityChangePromises.push({type:'changeQuantityCartItem',params})} 2352$scope.callback();$scope.tempQuantity=null;break} 2353case 'changeLoyaltyPointsCart':{if(!['blur','button'].includes(type))return;const params={cartId,quantity:$scope.quantity,delay:$scope.delayDebounce};const existingItem=$rootScope.cartItemQuantityChangePromises.find(item=>item.type==='changeQuantityLoyaltyPoints');if(existingItem){existingItem.params=params}else{$rootScope.cartItemQuantityChangePromises.push({type:'changeQuantityLoyaltyPoints',params})} 2354$scope.callback();$scope.tempQuantity=null;break} 2355default:return} 2356removeError(angular.element('.ui-select-container.ss-error'))};$scope.update=(direction)=>{const decimalPlaces=($scope.step.toString().split('.')[1]||[]).length;$scope.quantity=parseFloat(($scope.quantity+$scope.step*direction).toFixed(decimalPlaces));$timeout(function(){$scope.$apply()},0)}},template:` 2357 <div class="product-counter-directive"> 2358 <div data-ng-class="counterClass || 'counter-field'"> 2359 <button aria-label="${L['COUNTER_DECREASE']}" class="button-decrement" data-delay-button data-delay-id="[{[cartId]}]_[{[productId]}]" data-ng-disabled="disabled || quantity <= minValue" data-delay="delayDebounce" data-update="update(-1)" data-callback="change('button')"> 2360 <i class="fa fa-minus"></i> 2361 </button> 2362 <input data-ng-attr-aria-label="[{[ariaLabel]}]" step="[{[step]}]" data-ng-model-options='{ debounce: delayDebounce }' min="[{[minValue]}]" max="[{[maxValue]}]" data-ng-disabled="disabled" type="number" data-ng-focus="check($event,'focus')" data-ng-blur="check($event, 'blur')" data-ng-change="change()" data-ng-model="quantity" data-ng-keypress="checkInput($event);" placeholder="${L['AMOUNT']}"> 2363 <button aria-label="${L['COUNTER_INCREASE']}" class="but ton-increment" data-delay-button data-delay-id="[{[cartId]}]_[{[productId]}]" data-ng-disabled="disabled" data-delay="delayDebounce" data-update="update(1)" data-callback="change('button')"> 2364 <i class="fa fa-plus"></i> 2365 </button> 2366 </div> 2367 <span data-ng-if="unit" class="units" data-ng-bind-html="formatUnits(unit)"></span> 2368 </div> 2369 `}});angular.module("SkyShopModule").directive("removeListItem",function(){return{restrict:"A",scope:{parentSelectorToRemove:"=",collapseAnimation:"=?",isDisabled:"=",click:"&"},link:function(scope,element){const elementToRemove=element.closest(scope.parentSelectorToRemove);const collapseAnimation=scope.collapseAnimation??!1;let commonStylesBefore={overflow:'unset',opacity:'1',transition:'all 0.2s ease'} 2370let commonStylesAfter={opacity:'0',overflow:'hidden'} 2371if(collapseAnimation){commonStylesBefore.maxHeight='1000px';commonStylesAfter.maxHeight='0'} 2372elementToRemove.css(commonStylesBefore);element.on('click',function(){if(scope.isDisabled){return} 2373angular.element(elementToRemove).css(commonStylesAfter).one('webkitAnimationEnd transitionend',function(){angular.element(elementToRemove).remove();scope.click()})})}}});angular.module("SkyShopModule").directive('interpolateHtml',function(){return{restrict:'A',scope:{fieldValue:'=',fieldName:'@'},link:function(scope,element){const originElementHtml=element.html();const updateHtml=()=>{element.html(originElementHtml);element.html(element.html().replace(`[${scope.fieldName}]`,scope.fieldValue))};scope.$watch('fieldValue',function(newValue,oldValue){if(newValue!==oldValue){updateHtml()}});updateHtml()}}});angular.module("SkyShopModule").directive("scrollbar",function(){return{restrict:"A",link:function(scope,element){$(element).scrollbar()}}});angular.module("SkyShopModule").directive("sidenavSwipe",function($mdSidenav,$window){return{restrict:"A",link:function(scope,element,attrs){let startX;let startY;let endX;let endY;element.on('touchstart',function(event){startX=event.originalEvent.touches[0].clientX;startY=event.originalEvent.touches[0].clientY});element.on('touchmove',function(event){endX=event.originalEvent.touches[0].clientX;endY=event.originalEvent.touches[0].clientY});element.on('touchend',function(){const deltaX=endX-startX;const deltaY=endY-startY;if(Math.abs(deltaX)>Math.abs(deltaY)&&Math.abs(deltaX)>30){if(deltaX>0){$mdSidenav(attrs.mdComponentId).close()}}});scope.windowWidth=$window.innerWidth;const onResize=()=>{scope.$apply(function(){scope.windowWidth=$window.innerWidth})} 2374angular.element($window).on('resize',onResize);scope.$watch('windowWidth',function(newWidth,oldWidth){if(newWidth!==oldWidth&&$mdSidenav(attrs.mdComponentId).isOpen()){$mdSidenav(attrs.mdComponentId).close()}});scope.$on('$destroy',function(){angular.element($window).off('resize',onResize)})}}});angular.module('SkyShopModule').directive('uiSelectKeyboardPatch',function($timeout){return{restrict:'A',require:'uiSelect',link:function(scope,element,attrs){if(!scope.$eval(attrs.uiSelectKeyboardPatch))return;function findUiSelectScope(el){const elScope=angular.element(el).scope();return elScope&&elScope.$select?elScope:null} 2375function patch(){const selectScope=findUiSelectScope(element[0]);if(!selectScope)return;const $select=selectScope.$select;const container=angular.element(element);const uiSelectMatch=angular.element(element[0].querySelector('.ui-select-match'));if(!container.length)return;function handleOutsideInteraction(e){if($select.open&&!container[0].contains(e.target)){scope.$evalAsync(()=>$select.close())}} 2376container.attr('tabindex',0);container.attr('role','combobox');container.attr('aria-haspopup','listbox');container.attr('aria-controls',$select.generatedId);uiSelectMatch.removeAttr('aria-label');selectScope.$watch(()=>$select.open,function(open){container.attr('aria-expanded',!!open);if($select.isEmpty()){$select.activeIndex=-1} 2377if(open){document.addEventListener('mousedown',handleOutsideInteraction);document.addEventListener('focusin',handleOutsideInteraction)}else{document.removeEventListener('mousedown',handleOutsideInteraction);document.removeEventListener('focusin',handleOutsideInteraction)}});container.on('keydown click',function(e){const target=e.target;if(target.classList.contains('select2-selection__clear'))return;const safeApply=(fn)=>{if(!scope.$$phase)scope.$apply(fn);else fn()};const toggleSelect=()=>{safeApply(()=>{$select.toggle(e);if(scope.setInitSelectedOption){scope.setInitSelectedOption(e,scope.$index||0,$select)}})};if(e.type==='click'){if(e.buttons!==1)return;e.preventDefault();e.stopPropagation();toggleSelect();return} 2378if(e.key===' '||e.key==='Enter'){e.preventDefault();toggleSelect();return} 2379if(e.key==='Escape'){e.preventDefault();safeApply(()=>$select.close())}});scope.$on('$destroy',function(){document.removeEventListener('mousedown',handleOutsideInteraction);document.removeEventListener('focusin',handleOutsideInteraction)})} 2380$timeout(patch,0)}}});const owlCarouselProductsSliders={updateActiveItems($carousel){const $owlItems=$carousel.find('.owl-item');$owlItems.each(function(){$(this).attr('inert','');$(this).attr('role','listitem')});const $activeItems=$owlItems.filter('.active');$activeItems.each(function(){$(this).removeAttr('inert')})},init($carousel='product-hover'){const uniqueCarouselId='carouselId-'+Date.now()+'-'+Math.floor(Math.random()*1000);$carousel.attr('id',uniqueCarouselId);
2380const $owlControls=$carousel.find('.owl-controls');const $owlStage=$carousel.find('.owl-stage');const $owlItems=$carousel.find('.owl-item');setTimeout(()=>{this.updateActiveItems($carousel)},0);if($owlStage.length){$owlStage.attr('role','list');if($owlItems.length<=2){$owlControls.hide()}} 2381$owlItems.each(function(index){const $owlItem=$(this);const $link=$owlItem.find('a[aria-describedby]').first();if(!$link.length)return;const describedBy=$link.attr('aria-describedby');if(!describedBy)return;const $target=$('#'+describedBy);if(!$target.length)return;const newId=describedBy+'-'+index;$target.attr('id',newId);$link.attr('aria-describedby',newId)});$carousel.find('.owl-next button, .owl-prev button').on('keydown click',()=>{this.updateActiveItems($carousel)});$carousel.on('keyup',event=>{if(event.key==='ArrowLeft'){$carousel.find('.owl-prev button').focus();$carousel.trigger('prev.owl.carousel')} 2382if(event.key==='ArrowRight'){$carousel.find('.owl-next button').focus();$carousel.trigger('next.owl.carousel')}});let carouselSetTimeout;$carousel.on('stop.owl.autoplay',()=>{clearTimeout(carouselSetTimeout);const owl=$carousel.data('owlCarousel');if(owl&&owl.settings.autoplay){owl.settings.autoplay=!1}});$carousel.on('start.owl.autoplay',()=>{clearTimeout(carouselSetTimeout);const owl=$carousel.data('owlCarousel');if(owl&&!owl.settings.autoplay){owl.settings.autoplay=!0;carouselSetTimeout=setTimeout(()=>{owl.next();setTimeout(()=>{this.updateActiveItems($carousel)},0)},owl.settings.autoplayTimeout)}});$carousel.on('mouseover touchstart focusin',()=>{$carousel.addClass('carousel-focused');const owl=$carousel.data('owlCarousel');if(owl?.settings.autoplayTimeout){$carousel.trigger('stop.owl.autoplay')}}).on('mouseout focusout',()=>{$carousel.removeClass('carousel-focused');const owl=$carousel.data('owlCarousel');if(owl?.settings.autoplayTimeout){$carousel.trigger('start.owl.autoplay')}}).on('keyup',()=>{$carousel.addClass('carousel-focused');const owl=$carousel.data('owlCarousel');if(owl?.settings.autoplayTimeout){$carousel.trigger('stop.owl.autoplay')}})}};const menuElementCollapsedHeight='447px';const setEqualHeightForMenuAndSlider=(menuCol,sliderCol)=>{const colVerticalMenuElement=document.querySelector('.header_vertical_menu .col-menu .header_vertical_menu_col_menu .vertical-menu');const colSliderElement=document.querySelector('.header_vertical_menu .col-slider .header_vertical_menu_col_slider');const sliderElementHeight=colSliderElement.offsetHeight;colVerticalMenuElement.style.height=(sliderElementHeight-6)+'px'} 2383const generateVerticalMenuDropdown=(colMenuElement)=>{const mainMenuElement=document.querySelector('.header_main_menu_list');const menuElement=colMenuElement.querySelector('.vertical-menu');const navItemElements=menuElement.querySelectorAll('.nav-item.dropdown');navItemElements.forEach(navItemElement=>{const dropdownMenu=navItemElement.querySelector('.dropdown-menu');const dropdownMenuScroll=navItemElement.querySelector('ul.dropdown-menu .dropdown-menu-scroll');if(dropdownMenuScroll){$(dropdownMenuScroll).scrollbar();dropdownMenuScroll.style.maxHeight='100%'} 2384navItemElement.addEventListener('mousemove',function(event){if(!navItemElement.classList.contains('show')){menuElement.classList.add('menu-box-shadow');if(!menuElement.classList.contains('all-categories-menu-col')){menuElement.style.minHeight=menuElementCollapsedHeight;menuElement.style.height='auto'}}});if(dropdownMenu&&typeof mainMenuElement!=='undefined'&&typeof colMenuElement!=='undefined'){dropdownMenu.style.width=(1+mainMenuElement.offsetWidth-colMenuElement.offsetWidth)+'px'}})} 2385document.addEventListener("DOMContentLoaded",()=>{const sliderElementClass='.header_vertical_menu_col_slider';mainOwlCarouselSlider.init(sliderElementClass);const colVerticalMenuElements=document.querySelectorAll('.header_vertical_menu_col_menu');const colSliderElement=document.querySelector('.header_vertical_menu .col-slider .header_vertical_menu_col_slider');if(document.querySelector('.header_vertical_menu')){const resizeSliderObserver=new ResizeObserver(setEqualHeightForMenuAndSlider);resizeSliderObserver.observe(colSliderElement)}
2386colVerticalMenuElements.forEach(colVerticalMenuElement=>{const menuElement=colVerticalMenuElement.querySelector('.vertical-menu');const applyHoverVisuals=()=>{menuElement.classList.add('menu-box-shadow');if(!menuElement.classList.contains('all-categories-menu-col')){colVerticalMenuElement.style.maxHeight=menuElementCollapsedHeight;colVerticalMenuElement.style.height='auto';menuElement.style.minHeight=menuElementCollapsedHeight;menuElement.style.height='auto'}};menuElement.addEventListener('mousemove',function(){if(menuElement.classList.contains('menu-box-shadow')){return} 2387applyHoverVisuals()});menuElement.addEventListener('click',function(event){const elementAttrHref=event.target.getAttribute('href')||event.target.closest('a')?.getAttribute('href');if(elementAttrHref&&elementAttrHref!=='#'){window.location.href=elementAttrHref}});const dropdownLinks=menuElement.querySelectorAll('.nav-item.dropdown > a.nav-link');if(dropdownLinks&&dropdownLinks.length){const closeAllDropdowns=()=>{const openItems=menuElement.querySelectorAll('.nav-item.dropdown.show');openItems.forEach(item=>{item.classList.remove('show');const dm=item.querySelector('.dropdown-menu');if(dm)dm.classList.remove('show');const a=item.querySelector('a.nav-link');if(a)a.setAttribute('aria-expanded','false')})};const openDropdown=(linkEl)=>{const parentDropdown=linkEl.closest('.nav-item.dropdown');if(!parentDropdown)return;closeAllDropdowns();applyHoverVisuals();parentDropdown.classList.add('show');const dropdownMenu=parentDropdown.querySelector('.dropdown-menu');if(dropdownMenu)dropdownMenu.classList.add('show');linkEl.setAttribute('aria-expanded','true')};dropdownLinks.forEach(link=>{link.addEventListener('focusin',function(event){openDropdown(event.currentTarget)});link.addEventListener('focusout',function(event){const related=event.relatedTarget;const parentDropdown=event.currentTarget.closest('.nav-item.dropdown');if(!parentDropdown)return;if(related&&parentDropdown.contains(related)){return} 2388parentDropdown.classList.remove('show');const dm=parentDropdown.querySelector('.dropdown-menu');if(dm)dm.classList.remove('show');event.currentTarget.setAttribute('aria-expanded','false')})});const dropdownMenus=menuElement.querySelectorAll('.nav-item.dropdown .dropdown-menu');dropdownMenus.forEach(dm=>{dm.addEventListener('focusout',function(event){const related=event.relatedTarget;const parentDropdown=dm.closest('.nav-item.dropdown');if(!parentDropdown)return;if(related&&parentDropdown.contains(related)){return} 2389parentDropdown.classList.remove('show');dm.classList.remove('show');const trigger=parentDropdown.querySelector('a.nav-link');if(trigger)trigger.setAttribute('aria-expanded','false')})})} 2390menuElement.addEventListener('mouseleave',function(){menuElement.classList.remove('menu-box-shadow');if(!menuElement.parentElement.classList.contains('all-categories-menu-col')){menuElement.style.height=menuElementCollapsedHeight;menuElement.style.minHeight=''}});setTimeout(()=>{generateVerticalMenuDropdown(colVerticalMenuElement);const verticalMenuElement=document.querySelector('.header_vertical_menu');if(verticalMenuElement){verticalMenuElement.style.opacity='1'}})});window.addEventListener('resize',()=>{const colVerticalMenuElements=document.querySelectorAll('.header_vertical_menu_col_menu');if(colVerticalMenuElements.length){colVerticalMenuElements.forEach(colVerticalMenuElement=>{setTimeout(()=>{generateVerticalMenuDropdown(colVerticalMenuElement)},10)})}})});document.addEventListener('DOMContentLoaded',()=>{$('.account-table').find('[data-href]').on('click keydown',function(e){if(e.type==='click'||e.key==='Enter'||e.key===' '){window.location=$(this).data('href')}});if(window.location.pathname.split('/').pop()=='sended'){setTimeout(()=>{popups.actionAlert(L.INFORMATION,$('[data-msg-success]').data('msg-success'),'success')},1000)}});$('.registration-country').select2({theme:'bootstrap',width:'100%',selectionCssClass:'select-primary select-flag',dropdownCssClass:"select-primary-dropdown dropdown-flag",escapeMarkup:function(markup){return markup},templateSelection:function(result){if(typeof result.id==='undefined'){return result.text} 2391return['<div class="order-country-item">','<div class="order-country-item-logo">','<img src="/view/new/img/ico_flags_circle/'+result.id.toLowerCase()+'.svg" />','</div>','<div class="order-country-item-name">','<div class="order-country-item-name-wrapper">','<span data-country="'+result.id+'" data-ue="'+result.element.dataset.ue+'">'+result.text+'</span>','</div>','</div>','</div>'].join('')},templateResult:function(result){if(typeof result.id==='undefined'){return result.text} 2392return['<div class="order-country-item">','<div class="order-country-item-logo">','<img src="/view/new/img/ico_flags_circle/'+result.id.toLowerCase()+'.svg" />','</div>','<div class="order-country-item-name">','<div class="order-country-item-name-wrapper">','<span data-country="'+result.id+'" data-ue="'+result.element.dataset.ue+'">'+result.text+'</span>','</div>','</div>','</div>'].join('')}}
2392).on('select2:open',function(){$('.select2-results > ul').scrollbar()}).on('select2:closing',function(){$('.select2-results > ul').scrollbar('destroy')});document.addEventListener("DOMContentLoaded",()=>{const mobileOpenBlogCategoriesElement=document.querySelector('#blog-categories-button');const mobileBlogCategoriesElement=document.querySelector('#blog-categories');if(!mobileBlogCategoriesElement)return;let blogCategoriesCloseElement;let swipePanelCloseAreaElement;const focusFirstLink=()=>{setTimeout(()=>{const categoriesScroll=document.querySelector('.swipe-panel .categories .categories-scroll');if(!categoriesScroll)return;const firstLink=categoriesScroll.querySelector('div.ul a.li:first-child');if(firstLink)firstLink.focus()},0)};mobileOpenBlogCategoriesElement.addEventListener("click",()=>{let clone;let escHandler;let enterHandler;createSwipePanel('left','categories',(content)=>{clone=mobileBlogCategoriesElement.cloneNode(!0);clone.classList.remove('hidden-on-mobile');content.append(clone);blogCategoriesCloseElement=clone.querySelector('.blog-categories-close');swipePanelCloseAreaElement=document.querySelector('.swipe-panel .swipe-panel-close-area');escHandler=(event)=>{if(event.key==='Escape'&&event.target.closest('.swipe-panel .categories')){if(blogCategoriesCloseElement)blogCategoriesCloseElement.focus()}};enterHandler=(event)=>{if(event.key==='Enter'&&event.target.closest('.blog-categories-close')){if(swipePanelCloseAreaElement){swipePanelCloseAreaElement.click();setTimeout(()=>mobileOpenBlogCategoriesElement.focus(),100)}}};clone.addEventListener('keydown',escHandler);clone.addEventListener('keydown',enterHandler);focusFirstLink()},()=>{if(clone){clone.removeEventListener('keydown',escHandler);clone.removeEventListener('keydown',enterHandler)}})})});const orderSection=document.getElementsByClassName('order')[0] 2393if(!!orderSection){$('.order-country').select2({theme:'bootstrap',width:'100%',minimumResultsForSearch:3,selectionCssClass:'select-primary select-flag',dropdownCssClass:"select-primary-dropdown dropdown-flag",escapeMarkup:function(markup){return markup},templateSelection:function(result){if(typeof result.id==='undefined'){return result.text} 2394return['<div class="order-country-item">','<div class="order-country-item-logo">','<img alt="'+result.text+'" src="/view/new/img/ico_flags_circle/'+result.id.toLowerCase()+'.svg" />','</div>','<div class="order-country-item-name">','<div class="order-country-item-name-wrapper">','<span data-country="'+result.id+'" data-ue="'+result.element.dataset.ue+'">'+result.text+'</span>','</div>','</div>','</div>'].join('')},templateResult:function(result){if(typeof result.id==='undefined'){return result.text} 2395return['<div class="order-country-item">','<div class="order-country-item-logo">','<img alt="'+result.text+'" src="/view/new/img/ico_flags_circle/'+result.id.toLowerCase()+'.svg" />','</div>','<div class="order-country-item-name">','<div class="order-country-item-name-wrapper">','<span data-country="'+result.id+'" data-ue="'+result.element.dataset.ue+'">'+result.text+'</span>','</div>','</div>','</div>'].join('')}}).on('select2:open',function(){$('.select2-results > ul').scrollbar()}).on('select2:closing',function(){$('.select2-results > ul').scrollbar('destroy')});const toggleDotpayCheckbox=(action)=>{const dotpayCheckbox=document.querySelector('input[name="dotpay_rules_agreed"]') 2396if(!dotpayCheckbox)return 2397const parentElement=dotpayCheckbox.closest('.order-finish-check')||dotpayCheckbox.parentElement;if(action==='hide'){parentElement.classList.add('hidden') 2398$(dotpayCheckbox).removeAttr('data-valid') 2399removeError($(dotpayCheckbox).parent().parent('.ss-error'))}else if(action==='show'){parentElement.classList.remove('hidden') 2400dotpayCheckbox.dataset.valid='required'}} 2401if($("input[name='dotpay_rules_agreed']")){toggleDotpayCheckbox('hide')}(()=>{const paymentMethods=Array.from(document.getElementsByClassName('core_getPaymentMethod')) 2402if(paymentMethods){const changeCheckboxState=(checkbox,state=!0)=>{if(checkbox)checkbox.checked=state} 2403const getMoreElement=(element)=>{const moreElement=element.querySelector('.more') 2404return moreElement} 2405const toggleMoreElement=moreElement=>{moreElement.parentNode.querySelector('.order-icon-more').classList.toggle('icon-arrow_up_32') 2406moreElement.classList.toggle('open')} 2407paymentMethods.forEach(paymentMethod=>{if(skyTheme){paymentMethod.addEventListener('keydown',(e)=>
2407{if((e.key==='Enter'||e.key===' ')&&e.target.classList.contains('core_getPaymentMethod')){paymentMethod.click()}})} 2408paymentMethod.addEventListener('click',(e)=>{toggleDotpayCheckbox(paymentMethod.dataset.paymentId==='10'?'show':'hide');const activePaymentMethod=paymentMethod.parentNode.querySelector('.core_getPaymentMethod.active') 2409if(activePaymentMethod&&activePaymentMethod!==paymentMethod){const activeMoreElement=getMoreElement(activePaymentMethod) 2410if(activeMoreElement&&activeMoreElement.classList.contains('open')){toggleMoreElement(activeMoreElement)} 2411activePaymentMethod.classList.remove('active') 2412activePaymentMethod.setAttribute('aria-checked','false');changeCheckboxState(activePaymentMethod.querySelector('input[name="payment"]'),!1)}else if(activePaymentMethod&&activePaymentMethod===paymentMethod){const bankSelect=e.target.closest('.core_openOrderBankSelect') 2413if(bankSelect)return 2414e.stopPropagation()} 2415paymentMethod.classList.add('active');paymentMethod.setAttribute('aria-checked','true');changeCheckboxState(paymentMethod.querySelector('input[name="payment"]'),!0) 2416const moreElement=getMoreElement(paymentMethod);!!moreElement&&toggleMoreElement(moreElement);if(skyTheme){const parent=paymentMethod.parentElement;if(parent&&parent.classList.contains('ss-error-container')){removeError($(parent))} 2417const orderShipmentElement=document.getElementById('order-deliverys-methods-empty');if(orderShipmentElement&&orderShipmentElement.classList.contains('ss-error-container')){removeError($(orderShipmentElement))}}})})}})();(()=>{const accountOptions=Array.from(document.getElementsByClassName('core_accountOptions')) 2418const changeCheckboxState=(checkbox,state=!0)=>{if(checkbox)checkbox.checked=state} 2419if(accountOptions){const toggleLoginInputValidation=(section,action)=>{if(section.dataset.profileOption==='have_registered'){const nextHaveRegistered=section.nextElementSibling?.closest('.have_registered');nextHaveRegistered.classList.toggle('d-none',action==='off');const inputs=nextHaveRegistered?nextHaveRegistered.querySelectorAll('input'):[];inputs.forEach(input=>{if(action==='off'){$(input).data('valid','')}else{$(input).data('valid','required')}})}} 2420accountOptions.forEach(accountOption=>{accountOption.addEventListener('click',(e)=>{handleAccountOptionToggle(e,accountOption)});accountOption.addEventListener('keydown',(e)=>{if(e.key==='Enter'||e.key===' '){handleAccountOptionToggle(e,accountOption)}})});function handleAccountOptionToggle(e,accountOption){const activeAccountOption=accountOption.parentNode.querySelector('.core_accountOptions.active');if(activeAccountOption!==accountOption){if(activeAccountOption){activeAccountOption.classList.remove('active');changeCheckboxState(activeAccountOption.querySelector('input[name="preview"]'),!1);toggleLoginInputValidation(activeAccountOption,'off')} 2421accountOption.classList.add('active');changeCheckboxState(accountOption.querySelector('input[name="preview"]'),!0);toggleLoginInputValidation(accountOption,'on')}else{e.stopPropagation()}}}})();$('.order-select-table').on('click keydown','tr:not(.more)',function(e){if(e.key!=='Enter'&&e.key!==' '&&e.type!=='click'){return} 2422var self=$(this),more=self.next(),parents=self.parents('table'),actives=parents.find('tr.active'),mores=parents.find('tr.more.open'),checkbox=self.find('input[type="checkbox"],input[type="radio"]');var paymentId=$(this).parents('tr').data('payment-id'),orderCheckboxes=$("input[name='register_must_accept']").closest('.col-xs-12');if($(this).parent().hasClass('core_getOrderShipments')){if(paymentId==10){orderCheckboxes.after(dotpayCheckboxes)}else{if(dotpayCheckboxes!=undefined){dotpayCheckboxes.remove()}}} 2423if(!self.hasClass('active')){actives.removeClass('active');actives.attr('aria-checked',!1);mores.removeClass('open');mores.velocity('fadeOut',{duration:200});actives.find('input[type="checkbox"],input[type="radio"]').prop('checked',!1);self.addClass('active');self.attr('aria-checked',!0);checkbox.prop('checked',!0);if(more.hasClass('more')){more.addClass('open');more.velocity('fadeIn',{duration:200})}}else{self.attr('aria-checked',!0)}});$('#param-vat').on('change',function(){var self=$(this),container=$('.param-vat-container');if(self.prop('checked')){container.velocity('slideDown',{duration:200})}else{container.velocity('slideUp',{duration:200})}});$('#param-account').on('change',function(){var self=$(this),container=$('.param-account-container');if(self.prop('checked')){container.velocity('slideDown',{duration:200})}else{container.velocity('slideUp',{duration:200})}});$('#bill-vat-exists').on('change',function(){var billVatField=$('#user-bill-vat');
2423if($(this).prop('checked')){billVatField.prop('disabled',!0);removeError(billVatField);billVatField.val('')}else billVatField.prop('disabled',!1)});var checkWdtShowCheckbox=function(){var selectedDeliveryCountry=$('select[name="user_country"]').find(':selected').val() 2424var selectedDeliveryCountryUE=$('select[name="user_country"]').find(':selected').data('ue') 2425var selectedCountryUE=$('select[name="user_bill_country"]').find(':selected').data('ue') 2426var selectedCountryInvoice=$('select[name="user_bill_country"]').find(':selected').val() 2427if(selectedCountryUE==1&&selectedDeliveryCountryUE==1&&S.SHOP.country!=selectedCountryInvoice&&S.SHOP.country!=selectedDeliveryCountry&&$("#param-vat").is(':checked')){$("#param-wdt").attr('style','display: flex !important;')}else{$("#param-wdt").attr('style','display: none !important;');$("#param-rules-wdt").prop("checked",!1);SkyShop.order.wdt=!1} 2428if($('#bill-vat-exists').prop('checked')){$("#param-wdt .checkbox-field").addClass("field-disabled")}else{$("#param-wdt .checkbox-field").removeClass("field-disabled")} 2429if($('#param-rules-wdt').prop('checked')){if(selectedCountryUE==1&&selectedDeliveryCountryUE==1&&S.SHOP.country!=selectedCountryInvoice&&S.SHOP.country!=selectedDeliveryCountry&&$("#param-vat").is(':checked')){$('#user-bill-iso').val(selectedCountryInvoice) 2430$("#user-bill-iso").removeClass('hidden')}else{$("#user-bill-iso").addClass('hidden')} 2431$("#bill-vat-exists-container label").addClass("field-disabled")}else{$("#user-bill-iso").addClass('hidden');$("#bill-vat-exists-container label").removeClass("field-disabled")}} 2432$('#bill-vat-exists').on('click',function(){checkWdtShowCheckbox() 2433orderCalculate()}) 2434$('#param-rules-wdt').on('click',function(){checkWdtShowCheckbox() 2435orderCalculate();window.dispatchEvent(new Event('resize'))});$('.user_bill_country').on('change',function(){checkWdtShowCheckbox() 2436$('#user-bill-vat').data('country',$('.user_bill_country').find(':selected').val()) 2437orderCalculate();window.dispatchEvent(new Event('resize'))}) 2438$('.user_country').on('change',function(){checkWdtShowCheckbox();orderCalculate()}) 2439$('#param-vat').on('change',function(){checkWdtShowCheckbox();$('#user-bill-vat').data('country',$('.user_bill_country').find(':selected').val()) 2440orderCalculate()});$('#user-receipt-vat-checkbox').on('change',function(){var userReceiptField=$('#user-receipt-vat-input');var userReciptInputContainer=$('.user-receipt-vat-input-container') 2441if($(this).prop('checked')){userReceiptField.prop('disabled',!1);userReciptInputContainer.removeClass('hidden')}else{userReceiptField.prop('disabled',!0);userReciptInputContainer.addClass('hidden');userReceiptField.val('')}});$(window).on("load",function(){var stateOfCheckbox=$('#user-receipt-vat-checkbox').prop('checked');var userReceiptVatInput=$('#user-receipt-vat-input');if(stateOfCheckbox){userReceiptVatInput.prop('disabled',!1)}else{userReceiptVatInput.prop('disabled',!0);userReceiptVatInput.val('')} 2442checkWdtShowCheckbox();$('#user-bill-vat').data('country',$('.user_bill_country').find(':selected').val()) 2443orderStepIndex() 2444if(typeof fetchGtagField!=='undefined'){const $form=$('form.core_parseForm');fetchGtagField('client_id',val=>$form.find('input[name="ga_client_id"]').val(val));fetchGtagField('session_id',val=>$form.find('input[name="ga_session_id"]').val(val))}});(()=>{const bankImages=document.querySelectorAll('.bank-image');const config={attributes:!0} 2445if(bankImages.length>0){const callback=(mutationList,observer)=>{for(const mutation of mutationList){if(mutation.type==='attributes'){const parentElement=mutation.target.closest('.change-bank') 2446const bankIcon=parentElement.getElementsByClassName('change-bank-icon')[0];bankIcon.classList.add('hidden');bankIcon.parentElement.style.background='white';parentElement.getElementsByClassName('change-bank-button')[0].classList.remove('hidden');observer.disconnect()}}} 2447bankImages.forEach(bankImage=>{const observer=new MutationObserver(callback);observer.observe(bankImage,config)})}})()};window.initHighlights6Cards=()=>{$('.highlights.highlights-col6 .highlights-cards').not('.is-initialized').each(function(){let $currentModule=$(this);$currentModule.addClass('is-initialized');let scrollContainer=$currentModule.find('.scroll-container');let cards=scrollContainer.find('.highlight-card');const buttonLeft=$currentModule.find('.arrow-left');const buttonRight=$currentModule.find('.arrow-right');const checkArrowsVisibility=()=>{const container=scrollContainer[0];const hasScroll=container.scrollWidth>Math.ceil(container.clientWidth);
2447if(hasScroll){scrollContainer.removeClass('justify-content-center').addClass('justify-content-start')}else{scrollContainer.removeClass('justify-content-start').addClass('justify-content-center')} 2448if(!hasScroll){buttonLeft.addClass('is-hidden');buttonRight.addClass('is-hidden');return} 2449const isAtStart=container.scrollLeft<=0;const isAtEnd=container.scrollLeft+container.clientWidth>=container.scrollWidth-1;buttonLeft.toggleClass('is-hidden',isAtStart);buttonRight.toggleClass('is-hidden',isAtEnd)};checkArrowsVisibility();scrollContainer.on('scroll',checkArrowsVisibility);const resizeObserver=new ResizeObserver(()=>{checkArrowsVisibility()});resizeObserver.observe(scrollContainer[0]);const getScrollAmount=()=>{let firstCard=cards.first();let cardWidth=firstCard.outerWidth(!0);let gap=parseFloat(scrollContainer.find('ul').css('gap'))||0;return cardWidth+gap};buttonRight.on('click',()=>{scrollContainer[0].scrollBy({left:getScrollAmount(),behavior:'smooth'})});buttonLeft.on('click',()=>{scrollContainer[0].scrollBy({left:-getScrollAmount(),behavior:'smooth'})})})};$(document).ready(()=>{window.initHighlights6Cards()});const renderCategoryTree=function(){const subcategoriesList=$('.subcategories_list');if(window.innerWidth<768){subcategoriesList.scrollbar()}else{subcategoriesList.scrollbar('destroy')}} 2450$(document).ready(()=>{$(document).on('click','.core_clearSingleParameterFilter',clearSingleParameterFilter);$(document).on('input','.products_lists_pages .input-field-price',function(){this.value=this.value.replace(/[^0-9.,]/g,'')});renderCategoryTree()});window.addEventListener('resize',renderCategoryTree);const productCardObj={productCardSection:$('.product_card'),productCardGallerySection:$('.product-card-gallery-wrapper.single-img-carousel'),productCardVerticalGallerySection:$('.product-card-horizontal-gallery-wrapper.horizontal-img-carousel'),fixedElements:$('.fixed-elements'),productFullGalleryContainer:$('<div role="dialog" aria-modal="true" aria-label="'+L.PRODUCT_CARD_GALLERY+'" class="product_full_gallery_presentation hidden"></div>'),productFullGalleryProductTitle:$('<div class="product_full_gallery_carousel_title"></div>'),productFullGalleryContainerThumbs:$('<div class="product_full_gallery_presentation_thumbs"></div>'),productGallerySingleImg:$('.product-card-gallery-wrapper').find($('figure.product-card-img')),productGalleryCarousel:$('.product_card').find($('.product-card-gallery-wrapper.single-img-carousel')),productGalleryCloseButton:$('<div class="close_product_gallery"><button aria-label="'+L.PRODUCT_CARD_CLOSE_GALLERY+'" class="core_closeProductGallery border-0 bg-transparent" type="button"><i class="d-flex justify-content-center align-items-center icon-close_28"></i></button></div>'),startCarouselPosition:null} 2451const productElevateZoomSettings={zoomWindowFadeIn:100,zoomWindowFadeOut:100,lensFadeIn:100,lensFadeOut:100,zoomWindowWidth:400,zoomWindowHeight:400,easing:!0};const productVariantsCarousel=()=>{$('.product-card.left_category .product-variants-row').not('.is-initialized').each(function(){let $currentModule=$(this);$currentModule.addClass('is-initialized');let scrollContainer=$currentModule.find('.scroll-container');let cards=scrollContainer.find('.variant');const buttonLeft=$currentModule.find('.arrow-left');const buttonRight=$currentModule.find('.arrow-right');scrollContainer.on('mousedown',function(e){const $this=$(this);const startX=e.pageX-$this.offset().left;const scrollLeft=$this.scrollLeft();$(document).on('mousemove.productVariantsCarousel',function(e){e.preventDefault();const x=e.pageX-$this.offset().left;const walk=(x-startX)*2;$this.scrollLeft(scrollLeft-walk)});$(document).on('mouseup.productVariantsCarousel',function(){$(document).off('.productVariantsCarousel')});return !1});const checkArrowsVariantsVisibility=()=>{const container=scrollContainer[0];const hasScroll=container.scrollWidth>Math.ceil(container.clientWidth);if(!hasScroll){buttonLeft.addClass('is-hidden');buttonRight.addClass('is-hidden');return} 2452const isAtStart=container.scrollLeft<=0;const isAtEnd=container.scrollLeft+container.clientWidth>=container.scrollWidth-1;buttonLeft.toggleClass('is-hidden',isAtStart);buttonRight.toggleClass('is-hidden',isAtEnd)};checkArrowsVariantsVisibility();
2452scrollContainer.on('scroll',checkArrowsVariantsVisibility);const resizeObserver=new ResizeObserver(()=>{checkArrowsVariantsVisibility()});resizeObserver.observe(scrollContainer[0]);$(window).on('resize',checkArrowsVariantsVisibility);const getScrollAmount=()=>{if(cards.length<2){return cards.first().outerWidth(!0)||0} 2453const card1_pos=cards.eq(0)[0].getBoundingClientRect().left;const card2_pos=cards.eq(1)[0].getBoundingClientRect().left;return Math.abs(card2_pos-card1_pos)};buttonRight.on('click',()=>{const containerRect=scrollContainer[0].getBoundingClientRect();let partiallyVisibleCard=null;cards.each(function(){const cardRect=this.getBoundingClientRect();if(cardRect.left<containerRect.right&&cardRect.right>containerRect.right){partiallyVisibleCard=this;return !1}});if(partiallyVisibleCard){const cardRect=partiallyVisibleCard.getBoundingClientRect();const scrollAmount=cardRect.right-containerRect.right;scrollContainer[0].scrollBy({left:scrollAmount,behavior:'smooth'})}else{scrollContainer[0].scrollBy({left:getScrollAmount(),behavior:'smooth'})}});buttonLeft.on('click',()=>{const containerRect=scrollContainer[0].getBoundingClientRect();let partiallyVisibleCard=null;$(cards.get().reverse()).each(function(){const cardRect=this.getBoundingClientRect();if(cardRect.left<containerRect.left&&cardRect.right>containerRect.left){partiallyVisibleCard=this;return !1}});if(partiallyVisibleCard){const cardRect=partiallyVisibleCard.getBoundingClientRect();const scrollAmount=cardRect.left-containerRect.left;scrollContainer[0].scrollBy({left:scrollAmount,behavior:'smooth'})}else{scrollContainer[0].scrollBy({left:-getScrollAmount(),behavior:'smooth'})}})})} 2454carousels.productsSliderSubProducts=()=>{const carousel=$('.sub-products-wrapper');if(carousel.find('.sub-product').length>4){carousel.on('initialized.owl.carousel',function(event){$(event.currentTarget).velocity({opacity:1},{duration:50})}).on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel',function(event){if(!event.namespace){return} 2455var carousel=event.relatedTarget,element=event.target,current=carousel.current();$('.owl-next',element).toggleClass('disabled',current===carousel.maximum()||carousel.maximum()===-1);$('.owl-prev',element).toggleClass('disabled',current===carousel.minimum())}).owlCarousel({touchDrag:!0,mouseDrag:!0,autoplay:!1,loop:!1,dots:!1,nav:!0,navText:[`<i role="button" aria-label="${L['SCROLL_LEFT']}" class="icon-arrow_left_32"></i>`,`<i role="button" aria-label="${L['SCROLL_RIGHT']}" class="icon-arrow_right_32"></i>`],items:4,margin:15,responsive:{320:{items:2,stagePadding:40,margin:15},540:{items:3,stagePadding:40,margin:15},768:{items:2},992:{items:3},1224:{items:4}}})}} 2456carousels.mainGallerySingleCarousel=(startCarouselPosition)=>{const getItemsCount=()=>productCardObj.productCardGallerySection.find('.owl-item').length;const getCurrentIndex=()=>productCardObj.productCardGallerySection.find('.owl-item.active').index();productCardObj.productCardGallerySection.on('initialized.owl.carousel',function(event){const element=event.target;const prevButton=productCardObj.productCardGallerySection.find('.owl-prev');const nextButton=productCardObj.productCardGallerySection.find('.owl-next');const currentIndex=startCarouselPosition||0;const itemsCount=getItemsCount();if(!event.namespace){return} 2457productCardObj.productCardGallerySection.velocity({opacity:1},{duration:200});$('.owl-item.active',element).find('img.mousetrap').ezPlus(productElevateZoomSettings).addClass('elevateZoom-instance');currentIndex===0?prevButton.addClass('hidden'):prevButton.removeClass('hidden');currentIndex+1>=itemsCount?nextButton.addClass('hidden'):nextButton.removeClass('hidden')}).owlCarousel({startPosition:startCarouselPosition?startCarouselPosition:0,touchDrag:!0,mouseDrag:!0,dots:!1,nav:!0,margin:1,navText:[`<i role="button" tabindex="0" aria-label="${L['SCROLL_LEFT']}" class="icon-arrow_left_32"></i>`,`<i role="button" tabindex="0" aria-label="${L['SCROLL_RIGHT']}" class="icon-arrow_right_32"></i>`],items:1}).on('drag.owl.carousel',function(){$('.ZoomContainer').css('visibility','hidden')}).on('dragged.owl.carousel',function(){setTimeout(function(){$('.ZoomContainer').css('visibility','visible')},300)}).on('translated.owl.carousel',function(event){const element=event.target;$.removeData($('.elevateZoom-instance'),'elevateZoom');$('.elevateZoom-instance').removeClass('elevateZoom-instance');$('.ZoomContainer').remove();$('.owl-item.active',element).find('img.mousetrap').ezPlus(productElevateZoomSettings).addClass('elevateZoom-instance')}).on('changed.owl.carousel',function(event){const currentIndex=event.item.index;productCardObj.productCardVerticalGallerySection.find('.owl-item').removeClass('current').eq(currentIndex).addClass('current');const prevVerticalButton=productCardObj.productCardVerticalGallerySection.find('.owl-prev');const prevMainButton=productCardObj.productCardGallerySection.find('.owl-prev');const nextVerticalButton=productCardObj.productCardVerticalGallerySection.find('.owl-next');const nextMainButton=productCardObj.productCardGallerySection.find('.owl-next');const itemsCount=getItemsCount();if(currentIndex===0){prevVerticalButton.addClass('hidden');prevMainButton.addClass('hidden')}else{prevVerticalButton.removeClass('hidden');prevMainButton.removeClass('hidden')} 2458if((currentIndex+1)>=itemsCount){nextVerticalButton.addClass('hidden');nextMainButton.addClass('hidden')}else{nextVerticalButton.removeClass('hidden');nextMainButton.removeClass('hidden')} 2459if(itemsCount<5){prevVerticalButton.addClass('hidden');nextVerticalButton.addClass('hidden')} 2460productCardObj.productCardVerticalGallerySection.trigger('to.owl.carousel',[currentIndex,200,!0])}).on('keydown','.owl-prev',function(e){if(e.type==='keydown'&&(e.key==='Enter'||e.key===' ')){e.preventDefault();productCardObj.productCardGallerySection.trigger('to.owl.carousel',[getCurrentIndex()-1,0,!0]);if(getCurrentIndex()===0){productCardObj.productCardGallerySection.find('.owl-next i').focus()}}else if(e.type==='keydown'&&e.key==='Tab'&&!e.shiftKey){e.preventDefault();productCardObj.productCardVerticalGallerySection.find('.owl-item.active.current figure').focus()}}).on('keydown','.owl-next',function(e){if(e.type==='keydown'&&(e.key==='Enter'||e.key===' ')){e.preventDefault();productCardObj.productCardGallerySection.trigger('to.owl.carousel',[getCurrentIndex()+1,0,!0]);if((getItemsCount()-1)===getCurrentIndex()){productCardObj.productCardGallerySection.find('.owl-prev i').focus()}}else if(e.type==='keydown'&&e.key==='Tab'&&!e.shiftKey){e.preventDefault();productCardObj.productCardVerticalGallerySection.find('.owl-item.active.current figure').focus()}})}
2461carousels.mainVerticalGalleryCarousel=(startCarouselPosition)=>{const setCurrentIndex=(index)=>productCardObj.productCardVerticalGallerySection.find('.owl-item').eq(index).addClass('current');const getCurrentIndex=()=>productCardObj.productCardVerticalGallerySection.find('.owl-item.current').index();const getItemsCount=()=>productCardObj.productCardVerticalGallerySection.find('.owl-item').length;productCardObj.productCardVerticalGallerySection.on('initialized.owl.carousel',function(event){if(!event.namespace){return} 2462productCardObj.productCardVerticalGallerySection.velocity({opacity:1},{duration:200});setCurrentIndex(startCarouselPosition||0);const prevButton=productCardObj.productCardVerticalGallerySection.find('.owl-prev');const nextButton=productCardObj.productCardVerticalGallerySection.find('.owl-next');const currentIndex=getCurrentIndex();const itemsCount=getItemsCount();currentIndex===0?prevButton.addClass('hidden'):prevButton.removeClass('hidden');currentIndex+1>=itemsCount?nextButton.addClass('hidden'):nextButton.removeClass('hidden');if(itemsCount<5){prevButton.addClass('hidden');nextButton.addClass('hidden')}}).owlCarousel({startPosition:startCarouselPosition?startCarouselPosition:0,touchDrag:!0,mouseDrag:!0,dots:!1,nav:!0,margin:8,navText:[`<i role="button" aria-label="${L['SCROLL_LEFT']}" class="icon-arrow_left_32"></i>`,`<i role="button" aria-label="${L['SCROLL_RIGHT']}" class="icon-arrow_right_32"></i>`],items:5,}).on('click','.owl-item',function(e){productCardObj.productCardGallerySection.trigger('to.owl.carousel',[$(this).index(),200,!0])}).on('click','.owl-next',function(e){productCardObj.productCardGallerySection.trigger('to.owl.carousel',[getCurrentIndex()+1,200,!0])}).on('click','.owl-prev',function(e){productCardObj.productCardGallerySection.trigger('to.owl.carousel',[getCurrentIndex()-1,200,!0])}).on('keyup','.product-card-img',function(e){if(e.key==='Tab'){productCardObj.productCardGallerySection.trigger('to.owl.carousel',[$(this).attr('data-start-index')-1,200,!0])} 2463if(e.key==='Enter'){const index=$(this).attr('data-start-index')-1;productCardObj.productGallerySingleImg.eq(index).trigger(jQuery.Event('keydown',{key:'Enter'}))}})} 2464function initFullGalleryCarousels(startCarouselPosition){const setCurrentIndex=(newIndex)=>{fullContainerImgCarouselInited.trigger('to.owl.carousel',[newIndex,200,!0])} 2465productCardObj.productFullGalleryContainerThumbs.find('.product-card-img').attr('tabindex',0);productCardObj.productGalleryCloseButton.find('.core_closeProductGallery').off('keydown');productCardObj.productGalleryCloseButton.find('.core_closeProductGallery').on('keydown',event=>{if(event.key==='Escape'){event.preventDefault();productCardObj.productGalleryCloseButton.find('.core_closeProductGallery').click()}else if(event.key==='Tab'){event.preventDefault();const activeCarousel=productCardObj.productFullGalleryContainer.find('.single-img-carousel').filter(function(){return $(this).css('opacity')==='1'});const navigationItems=activeCarousel.find(activeCarousel.parent().hasClass('product_full_gallery_presentation_thumbs')?'.owl-item':'.owl-dot');if(!event.shiftKey){if(activeCarousel.parent().hasClass('product_full_gallery_presentation_thumbs')){navigationItems.first().find('.product-card-img').focus()}else{navigationItems.first().focus()}}else{if(activeCarousel.parent().hasClass('product_full_gallery_presentation_thumbs')){navigationItems.last().find('.product-card-img').focus()}else{navigationItems.last().focus()}}}});productCardObj.productFullGalleryContainer.children().not(productCardObj.productFullGalleryContainerThumbs).not(productCardObj.productGalleryCloseButton).find('img').map((i,item)=>{let itemSrc=item.src 2466let newItemSrc=itemSrc.replace("_480.","_1200.");item.srcset='' 2467item.src=newItemSrc 2468return item}) 2469productCardObj.productFullGalleryContainer.children().not(productCardObj.productFullGalleryContainerThumbs).not(productCardObj.productGalleryCloseButton).not(productCardObj.productFullGalleryProductTitle).on('initialized.owl.carousel',function(event){if(!event.namespace){return} 2470setTimeout(function(){if(!startCarouselPosition){thumbContainerCarouselInited.find('.owl-prev').addClass('disabled')} 2471if(typeof startCarouselPosition==='number'&&(startCarouselPosition+1===thumbContainerCarouselInited.find('.owl-item').length)){thumbContainerCarouselInited.find('.owl-next').addClass('disabled')} 2472productCardObj.productFullGalleryContainer.find('.owl-dot').attr('tabindex',0);productCardObj.productFullGalleryContainer.find('.owl-dot').attr('role','button');productCardObj.productFullGalleryContainer.find('.owl-dot').each(function(index){const matchingItem=thumbContainerCarouselInited.find('.owl-item .product-card-img[data-start-index="'+(index+1)+'"]');$(this).attr('aria-label',matchingItem.attr('aria-label'))})},20);$(event.currentTarget).velocity({opacity:1},{duration:50});productCarouselTitle($(event.target).find('.owl-item').eq(startCarouselPosition).find('img').attr('alt'))}).on('initialized.owl.carousel refreshed.owl.carousel',function(event){if(!event.namespace){return} 2473var carousel=event.relatedTarget,element=event.target,current=carousel.current();$('.owl-next',element).toggleClass('disabled',current===carousel.maximum()||!carousel.maximum());$('.owl-prev',element).toggleClass('disabled',current===carousel.minimum()||!carousel.maximum());if(productCardObj.productFullGalleryContainer.children().not(productCardObj.productFullGalleryContainerThumbs).find('.owl-item').length<=1){productCardObj.productFullGalleryContainer.not(productCardObj.productFullGalleryContainerThumbs).find('.owl-dots').css('display','none');setTimeout(()=>productCardObj.productGalleryCloseButton.find('.core_closeProductGallery').focus(),100)}else{productCardObj.productFullGalleryContainer.not(productCardObj.productFullGalleryContainerThumbs).find('.owl-dots').css('display','flex');setTimeout(()=>productCardObj.productFullGalleryContainer.find('.owl-dots .owl-dot.active').focus(),100)}}).owlCarousel({startPosition:startCarouselPosition?startCarouselPosition:0,touchDrag:!0,mouseDrag:!0,autoplay:!1,loop:!1,dots:!1,nav:!0,navText:[`<i role="button" aria-label="${L['SCROLL_LEFT']}" class="icon-arrow_left_32"></i>`,`<i role="button" aria-label="${L['SCROLL_RIGHT']}
2473" class="icon-arrow_right_32"></i>`],items:1,responsive:{320:{dots:productCardObj.productFullGalleryContainer.children().not(productCardObj.productFullGalleryContainerThumbs).find('.owl-item').length>1},767:{dots:!1}}}).on('changed.owl.carousel',function(event){const carousel=event.relatedTarget;const currentIndex=carousel.current();const itemsCount=thumbContainerCarouselInited.find('.owl-item').length;$('.owl-next',event.target).toggleClass('disabled',currentIndex===event.relatedTarget.maximum()||carousel.maximum()===-1);$('.owl-prev',event.target).toggleClass('disabled',currentIndex===carousel.minimum());thumbContainerCarouselInited.find('.owl-item.current').removeClass('current');thumbContainerCarouselInited.find('.owl-item').eq(event.item.index).addClass('current');thumbContainerCarouselInited.find('.owl-prev').toggleClass('disabled',currentIndex===0);thumbContainerCarouselInited.find('.owl-next').toggleClass('disabled',currentIndex+1>=itemsCount);thumbContainerCarouselInited.trigger('to.owl.carousel',[event.item.index,200,!0]);productCarouselTitle(thumbContainerCarouselInited.find('.owl-item.current.active').find('img').attr('alt'))}).on('keyup','.owl-dot',function(e){if(e.key==='Tab'){setCurrentIndex($(this).index())}else if(e.key==='Escape'){productCardObj.productGalleryCloseButton.find('.core_closeProductGallery').click()}}).on('keydown','.owl-dot',function(e){const owlDots=$(this).closest('.owl-dots');const firstDot=owlDots.children('.owl-dot').first();const lastDot=owlDots.children('.owl-dot').last();const isFirst=$(this)[0]===firstDot[0];const isLast=$(this)[0]===lastDot[0];if(e.key==='Tab'){if(isLast&&!e.shiftKey){e.preventDefault();productCardObj.productGalleryCloseButton.find('.core_closeProductGallery').focus()}else if(isFirst&&e.shiftKey){e.preventDefault();productCardObj.productGalleryCloseButton.find('.core_closeProductGallery').focus()}}}).on('click','.owl-dot',function(e){setCurrentIndex($(this).index())})} 2474function reinitCarousel(carousels,resetOnly){let carouselArray=carousels.length>1?carousels:Array(carousels) 2475carouselArray.forEach((carousel)=>{carousel.trigger('destroy.owl.carousel');carousel.off();carousel.find('*').off();carousel.removeClass('owl-carousel owl-loaded');carousel.find('.owl-stage-outer').children().unwrap();carousel.removeData()});if(!resetOnly){initThumbCarousel() 2476thumbContainerCarouselInited.velocity({opacity:1},50)}} 2477function initThumbCarousel(startCarouselPosition,hiddenOwlNavButtons=!1){thumbContainerCarouselInited.css({width:window.innerHeight}) 2478let itemsInRow=Math.floor(thumbContainerCarouselInited.width()/(90+25));let resizeItemsTimer=null 2479const getCurrentIndex=()=>fullContainerImgCarouselInited.find('.owl-item.active').index();const setCurrentIndex=(newIndex)=>{fullContainerImgCarouselInited.trigger('to.owl.carousel',[newIndex,200,!0])} 2480thumbContainerCarouselInited.find('.owl-item').eq(startCarouselPosition).addClass('current');const windowWidth=$(window).width();if(windowWidth<768){productCardObj.productFullGalleryContainer.find('.close_product_gallery button').focus();if(hiddenOwlNavButtons){productCardObj.productFullGalleryContainer.find('.owl-prev, .owl-next').addClass('hidden')}else{productCardObj.productFullGalleryContainer.find('.owl-prev, .owl-next').removeClass('hidden')}}else{productCardObj.productFullGalleryContainer.find(productCardObj.productFullGalleryContainerThumbs).children('.product-card-gallery-wrapper').on('initialized.owl.carousel refreshed.owl.carousel',function(event){if(!event.namespace){return} 2481thumbContainerCarouselInited.find('.owl-item').eq(startCarouselPosition).addClass('current');if(thumbContainerCarouselInited.css('opacity')==='1'){thumbContainerCarouselInited.find('.owl-item.current.active').find('.product-card-img').focus()} 2482$(window).on('resize.fullWidthGallery',function(){if(typeof resizeItemsTimer!=='object'){clearTimeout(resizeItemsTimer)} 2483thumbContainerCarouselInited.velocity({opacity:0},50);resizeItemsTimer=setTimeout(function(){reinitCarousel(thumbContainerCarouselInited)},250);if(thumbContainerCarouselInited.find('.owl-item').length<=1){thumbContainerCarouselInited.css({opacity:0}
2483) 2484return} 2485$(window).off('resize.fullWidthGallery')})}).owlCarousel({startPosition:startCarouselPosition?startCarouselPosition:0,items:itemsInRow,nav:!0,navText:[`<i role="button" aria-label="${L['SCROLL_LEFT']}" class="icon-arrow_left_32"></i>`,`<i role="button" aria-label="${L['SCROLL_RIGHT']}" class="icon-arrow_right_32"></i>`],dots:!1,touchDrag:!1,mouseDrag:!1,autoplay:!1,slideBy:1,margin:10}).on('click','.owl-item',function(){setCurrentIndex($(this).index())}).on('click','.owl-next',function(e){setCurrentIndex(getCurrentIndex()+1)}).on('click','.owl-prev',function(e){setCurrentIndex(getCurrentIndex()-1)}).on('keyup','.product-card-img',function(e){if(e.key==='Tab'){const owlItem=$(this).closest('.owl-item');setCurrentIndex(owlItem.index())}}).on('keydown','.product-card-img',function(e){const owlItem=$(this).closest('.owl-item');const owlStage=owlItem.closest('.owl-stage');const firstItem=owlStage.children('.owl-item').first();const lastItem=owlStage.children('.owl-item').last();const isFirst=owlItem[0]===firstItem[0];const isLast=owlItem[0]===lastItem[0];if(e.key==='Tab'){if(isLast&&!e.shiftKey){e.preventDefault();productCardObj.productGalleryCloseButton.find('.core_closeProductGallery').focus()}else if(isFirst&&e.shiftKey){e.preventDefault();productCardObj.productGalleryCloseButton.find('.core_closeProductGallery').focus()}}})} 2486thumbContainerCarouselInited.on('keydown',function(e){if(e.key==='Escape'){productCardObj.productGalleryCloseButton.find('.core_closeProductGallery').click()}})} 2487function productCarouselTitle(productTitle){productCardObj.productFullGalleryProductTitle.html(productTitle??$('h1.product-name').text())} 2488productCardObj.fixedElements.append(productCardObj.productFullGalleryContainer);productCardObj.productFullGalleryContainer.append(productCardObj.productFullGalleryContainerThumbs);productCardObj.productFullGalleryContainer.append(productCardObj.productGalleryCarousel.clone());productCardObj.productFullGalleryContainer.append(productCardObj.productFullGalleryProductTitle);productCardObj.productFullGalleryContainerThumbs.append(productCardObj.productGalleryCarousel.clone());productCardObj.productFullGalleryContainer.append(productCardObj.productGalleryCloseButton);const fullContainerImgCarouselInited=productCardObj.productFullGalleryContainer.children().not(productCardObj.productFullGalleryContainerThumbs).not(productCardObj.productGalleryCloseButton).not(productCardObj.productFullGalleryProductTitle);const thumbContainerCarouselInited=productCardObj.productFullGalleryContainer.find(productCardObj.productFullGalleryContainerThumbs).children('.product-card-gallery-wrapper');function openFullGallery(e,usedKeyboard){productCardObj.productFullGalleryContainer.removeClass('hidden').addClass('open');$('html, body').addClass('prevent-scroll prevent-scroll-desktop');setTimeout(()=>{productCardObj.startCarouselPosition=e.target.dataset?.startIndex?(Number(e.target.dataset.startIndex)-1):0;initFullGalleryCarousels(productCardObj.startCarouselPosition);initThumbCarousel(productCardObj.startCarouselPosition,usedKeyboard)},25)} 2489productCardObj.productGallerySingleImg.on('click',function(e){openFullGallery(e,e.type==='click'&&e.buttons===1)});productCardObj.productGallerySingleImg.on('keydown',function(e){if(e.key==='Enter'){openFullGallery(e,!0)}});productCardObj.productGalleryCloseButton.on('click',function(e){$('html, body').removeClass('prevent-scroll prevent-scroll-desktop') 2490$(window).off('resize.fullWidthGallery');$(window).off('resize.verticalCarousel');productCardObj.productFullGalleryContainer.addClass('hidden').removeClass('open');setTimeout(()=>{const windowWidth=$(window).width();if(windowWidth<768){productCardObj.productCardVerticalGallerySection.find('.owl-item.active.current figure').focus()}else{$('.grid-gallery').find('figure').eq(productCardObj.startCarouselPosition).focus()} 2491productCardObj.startCarouselPosition=null},200);reinitCarousel([fullContainerImgCarouselInited,thumbContainerCarouselInited],!0)}) 2492const carouselsRwdInit=()=>{const windowVar=$(window);const productTabsCarousel=$('ul.nav.product-tabs') 2493const subProductCarousel=$('.sub-products-wrapper');if(windowVar.width()<=480){if(productTabsCarousel.find('.nav-item').length>=3){productTabsCarousel.owlCarousel({touchDrag:!0,mouseDrag:!0,autoplay:!1,loop:!1,dots:!1,nav:!1,autoWidth:!0,items:'auto',stagePadding:40,responsive:{0:{items:1},}}).on('click','.owl-item',function(){$(this).parent().children().each((i,r)=>$(r).find('li').find('button').removeClass('active'))}) 2494productTabsCarousel.attr('data-rwdinited',!0)} 2495if(subProductCarousel.find('.sub-product').length>3&&!subProductCarousel[0].classList.contains('owl-carousel')){subProductCarousel.on('initialized.owl.carousel',function(event){$(event.currentTarget).velocity({opacity:1},{duration:50})}).on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel',function(event){if(!event.namespace){return} 2496var carousel=event.relatedTarget,element=event.target,current=carousel.current();$('.owl-next',element).toggleClass('disabled',current===carousel.maximum()||carousel.maximum()===-1);$('.owl-prev',element).toggleClass('disabled',current===carousel.minimum())}).owlCarousel({touchDrag:!0,mouseDrag:!0,autoplay:!1,loop:!1,dots:!1,nav:!0,navText:[`<i role="button" aria-label="${L['SCROLL_LEFT']}" class="icon-arrow_left_32"></i>`,`<i role="button" aria-label="${L['SCROLL_RIGHT']}
2496" class="icon-arrow_right_32"></i>`],items:2,stagePadding:40,margin:15}) 2497subProductCarousel.attr('data-rwdinited',!0)}}else{if(productTabsCarousel.data('rwdinited')===!0){reinitCarousel(productTabsCarousel)}else if(subProductCarousel.data('rwdinited')===!0){reinitCarousel(subProductCarousel)}}} 2498const showMoreProductDescription=()=>{const windowWidth=$(window).width(),productDescriptionSection=$('#product_description .product-description-tab'),isProductDescriptionSection=$('#product_description .product-description-tab').length,toggleProductMoreDescriptionButton=$('.core_showMoreProductDescription'),toggleProductMoreDescriptionButtonExists=!!toggleProductMoreDescriptionButton.length,toggleProductMoreDescriptionTemplate=`<span class="sky-f-small-medium core_showMoreProductDescription d-flex align-items-center"> 2499 <span>${L.SHOW_MORE}</span> 2500 <i class="icon-arrow_down_32"></i> 2501 </span> 2502 `;productDescriptionSection.removeClass('less-description') 2503if(windowWidth<768&&isProductDescriptionSection&&productDescriptionSection.height()>410){if(!toggleProductMoreDescriptionButtonExists){productDescriptionSection.append(toggleProductMoreDescriptionTemplate)} 2504if(!toggleProductMoreDescriptionButton.hasClass('active')){productDescriptionSection.addClass('less-description')}}else{productDescriptionSection.removeClass('less-description') 2505toggleProductMoreDescriptionButton.remove()}} 2506const removeEmptySetComponents=()=>{let $names=$('[data-subproduct-id-name]');$names.each(function(){let $nameElement=$(this);let id=$nameElement.attr('data-subproduct-id-name');let $parameter=$('[data-subproduct-id-parameter="'+id+'"]');if($parameter.length===0){$nameElement.remove()}})} 2507$(document).ready(()=>{carousels.productsSliderSubProducts();carousels.mainGallerySingleCarousel();carousels.mainVerticalGalleryCarousel();carouselsRwdInit();productVariantsCarousel();showMoreProductDescription();removeEmptySetComponents()}) 2508$(window).resize(()=>{carouselsRwdInit();showMoreProductDescription()}) 2509$(document).on('click','.core_showMoreProductDescription',showMoreProductDescriptionHandler);carousels.productsSliderCarouselCol8=function(){const carousels=$('.carousel.products_slider_col8_container:not(.tab-hidden)');const timeout=carousels.data('timeout')||0;carousels.each(function(i,carousel){$(carousel).on('initialized.owl.carousel',function(event){$(event.currentTarget).velocity({opacity:1},{duration:50});owlCarouselProductsSliders.init($(this))}).on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel',function(event){if(!event.namespace){return} 2510const owlItemsCloned=$(this).find('.owl-stage .owl-item.cloned');if(!owlItemsCloned.length){$(this).find('.owl-prev, .owl-next').addClass('d-none')}}).on('changed.owl.carousel',function(){setTimeout(()=>{owlCarouselProductsSliders.updateActiveItems($(this))},0)}).owlCarousel({loop:$(carousel).children().length>1,nav:$(carousel).children().length>1,dots:!1,autoplay:!!timeout,autoplayTimeout:timeout,autoplayHoverPause:!0,margin:24,slideBy:1,lazyLoad:!0,navText:[`<button type="button" aria-label="${L['PRODUCTS_SLIDER_PREVIOUS_PRODUCTS']}" tabindex="0" class="bg-transparent border-0 icon-arrow_left_32 element-black"></button>`,`<button aria-label="${L['PRODUCTS_SLIDER_NEXT_PRODUCTS']}" type="button" tabindex="0" class="bg-transparent border-0 icon-arrow_right_32 element-black"></button>`],responsive:{0:{items:1,stagePadding:50},410:{items:2,stagePadding:50},530:{items:3,stagePadding:50},700:{items:4,stagePadding:50},768:{items:4,stagePadding:0},870:{items:5,stagePadding:0},992:{items:5,stagePadding:0},1040:{items:6,stagePadding:0},1200:{items:8,stagePadding:0}}})})};const carouselsRwdTabsInitCol8=()=>{const windowVar=$(window);const carouselParent=$('.products_slider_col8 ');const productTabsCarousel=carouselParent.find($('ul.nav.heading-tabs'));if(windowVar.width()<=767){if(productTabsCarousel.find('.nav-item').length>=2){productTabsCarousel.on('initialized.owl.carousel',function(event){$(event.currentTarget).velocity({opacity:1},{duration:50})}).owlCarousel({touchDrag:!0,mouseDrag:!0,autoplay:!1,loop:!1,dots:!1,nav:!1,autoWidth:!0,items:'auto',stagePadding:40,navText:[`<button type="button" aria-label="${L['PRODUCTS_SLIDER_PREVIOUS_PRODUCTS']}" tabindex="0" class="bg-transparent border-0 icon-arrow_left_32 element-black"></button>`,`<button aria-label="${L['PRODUCTS_SLIDER_NEXT_PRODUCTS']}" type="button" tabindex="0" class="bg-transparent border-0 icon-arrow_right_32 element-black"></button>`],responsive:{0:{items:1},}}).on('click','.owl-item',function(){$(this).parent().children().each((i,r)=>{$(r).find('li').removeClass('active')}) 2511$(this).children('.nav-item').addClass('active')}).attr('data-rwdinited',!0)}}else{if(productTabsCarousel.data('rwdinited')===!0&&productTabsCarousel.hasClass('owl-carousel')){productTabsCarousel.data('owlCarousel').destroy();productTabsCarousel.removeClass('owl-carousel owl-loaded');productTabsCarousel.find('.owl-stage-outer').children().unwrap();productTabsCarousel.removeData()}}} 2512carousels.productsSliderCarouselCol8();$(document).ready(function(){carouselsRwdTabsInitCol8()});$(window).resize(function(){carouselsRwdTabsInitCol8()});carousels.productsSliderCarouselCol4=function(){const carousels=$('.carousel.products_slider_col4_container:not(.tab-hidden)');
2512const timeout=carousels.data('timeout')||0;carousels.each(function(i,carousel){$(carousel).on('initialized.owl.carousel',function(event){$(event.currentTarget).velocity({opacity:1},{duration:50});owlCarouselProductsSliders.init($(this))}).on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel',function(event){if(!event.namespace){return} 2513const owlItemsCloned=$(this).find('.owl-stage .owl-item.cloned');if(!owlItemsCloned.length){$(this).find('.owl-prev, .owl-next').addClass('d-none')}}).on('changed.owl.carousel',function(){setTimeout(()=>{owlCarouselProductsSliders.updateActiveItems($(this))},0)}).owlCarousel({loop:$(carousel).children().length>1,nav:$(carousel).children().length>1,dots:!1,autoplay:!!timeout,autoplayTimeout:timeout,autoplayHoverPause:!0,margin:24,slideBy:1,lazyLoad:!0,navText:[`<button type="button" aria-label="${L['PRODUCTS_SLIDER_PREVIOUS_PRODUCTS']}" tabindex="0" class="bg-transparent border-0 icon-arrow_left_32 element-black"></button>`,`<button aria-label="${L['PRODUCTS_SLIDER_NEXT_PRODUCTS']}" type="button" tabindex="0" class="bg-transparent border-0 icon-arrow_right_32 element-black"></button>`],responsive:{0:{items:1,stagePadding:50},410:{items:2,stagePadding:50},530:{items:3,stagePadding:50},700:{items:4,stagePadding:50,},768:{items:3,stagePadding:0},992:{stagePadding:0},1200:{items:4}}})})};const carouselsRwdTabsInitCol4=()=>{const windowVar=$(window);const carouselParent=$('.products_slider_col4 ');const productTabsCarousel=carouselParent.find($('ul.nav.heading-tabs'));if(windowVar.width()<=767){if(productTabsCarousel.find('.nav-item').length>=2){productTabsCarousel.on('initialized.owl.carousel',function(event){$(event.currentTarget).velocity({opacity:1},{duration:50})}).owlCarousel({touchDrag:!0,mouseDrag:!0,autoplay:!1,loop:!1,dots:!1,nav:!1,autoWidth:!0,items:'auto',stagePadding:40,navText:[`<button type="button" aria-label="${L['PRODUCTS_SLIDER_PREVIOUS_PRODUCTS']}" tabindex="0" class="bg-transparent border-0 icon-arrow_left_32 element-black"></button>`,`<button aria-label="${L['PRODUCTS_SLIDER_NEXT_PRODUCTS']}" type="button" tabindex="0" class="bg-transparent border-0 icon-arrow_right_32 element-black"></button>`],responsive:{0:{items:1},}}).on('click','.owl-item',function(){$(this).parent().children().each((i,r)=>{$(r).find('li').removeClass('active')}) 2514$(this).children('.nav-item').addClass('active')}).attr('data-rwdinited',!0)}}else{if(productTabsCarousel.data('rwdinited')===!0&&productTabsCarousel.hasClass('owl-carousel')){productTabsCarousel.data('owlCarousel').destroy();productTabsCarousel.removeClass('owl-carousel owl-loaded');productTabsCarousel.find('.owl-stage-outer').children().unwrap();productTabsCarousel.removeData()}}} 2515carousels.productsSliderCarouselCol4();$(document).ready(function(){carouselsRwdTabsInitCol4()});$(window).resize(function(){carouselsRwdTabsInitCol4()})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.