380 lines
331 KiB
JavaScript
380 lines
331 KiB
JavaScript
(function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:false,exports:{}};t[n].call(r.exports,r,r.exports,i);r.l=true;return r.exports}i.m=t;i.c=e;i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:false,enumerable:true,get:n})};i.n=function(t){var e=t&&t.__esModule?function e(){return t["default"]}:function e(){return t};i.d(e,"a",e);return e};i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};i.p="";return i(i.s=6)})([function(t,e){t.exports=jQuery},function(t,e){t.exports=prestashop},function(t,e,i){var n,r;/*! VelocityJS.org (1.5.2). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */
|
|
/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */ /*! VelocityJS.org (1.5.2). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */
|
|
/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */
|
|
(function(t){"use strict";if(t.jQuery)return;var e=function(t,i){return new e.fn.init(t,i)};e.isWindow=function(t){return t&&t===t.window};e.type=function(t){if(!t)return t+"";return"object"===typeof t||"function"===typeof t?r[s.call(t)]||"object":typeof t};e.isArray=Array.isArray||function(t){return"array"===e.type(t)};function i(t){var i=t.length,n=e.type(t);if("function"===n||e.isWindow(t))return false;if(1===t.nodeType&&i)return true;return"array"===n||0===i||"number"===typeof i&&i>0&&i-1 in t}e.isPlainObject=function(t){var i;if(!t||"object"!==e.type(t)||t.nodeType||e.isWindow(t))return false;try{if(t.constructor&&!o.call(t,"constructor")&&!o.call(t.constructor.prototype,"isPrototypeOf"))return false}catch(t){return false}for(i in t);return void 0===i||o.call(t,i)};e.each=function(t,e,n){var r,o=0,s=t.length,a=i(t);if(n)if(a)for(;o<s;o++){r=e.apply(t[o],n);if(false===r)break}else for(o in t){if(!t.hasOwnProperty(o))continue;r=e.apply(t[o],n);if(false===r)break}else if(a)for(;o<s;o++){r=e.call(t[o],o,t[o]);if(false===r)break}else for(o in t){if(!t.hasOwnProperty(o))continue;r=e.call(t[o],o,t[o]);if(false===r)break}return t};e.data=function(t,i,r){if(void 0===r){var o=t[e.expando],s=o&&n[o];if(void 0===i)return s;if(s&&i in s)return s[i]}else if(void 0!==i){var a=t[e.expando]||(t[e.expando]=++e.uuid);n[a]=n[a]||{};n[a][i]=r;return r}};e.removeData=function(t,i){var r=t[e.expando],o=r&&n[r];o&&(i?e.each(i,function(t,e){delete o[e]}):delete n[r])};e.extend=function(){var t,i,n,r,o,s,a=arguments[0]||{},l=1,c=arguments.length,u=false;if("boolean"===typeof a){u=a;a=arguments[l]||{};l++}"object"!==typeof a&&"function"!==e.type(a)&&(a={});if(l===c){a=this;l--}for(;l<c;l++)if(o=arguments[l])for(r in o){if(!o.hasOwnProperty(r))continue;t=a[r];n=o[r];if(a===n)continue;if(u&&n&&(e.isPlainObject(n)||(i=e.isArray(n)))){if(i){i=false;s=t&&e.isArray(t)?t:[]}else s=t&&e.isPlainObject(t)?t:{};a[r]=e.extend(u,s,n)}else void 0!==n&&(a[r]=n)}return a};e.queue=function(t,n,r){function o(t,e){var n=e||[];t&&(i(Object(t))?function(t,e){var i=+e.length,n=0,r=t.length;while(n<i)t[r++]=e[n++];if(i!==i)while(void 0!==e[n])t[r++]=e[n++];t.length=r;return t}(n,"string"===typeof t?[t]:t):[].push.call(n,t));return n}if(!t)return;n=(n||"fx")+"queue";var s=e.data(t,n);if(!r)return s||[];!s||e.isArray(r)?s=e.data(t,n,o(r)):s.push(r);return s};e.dequeue=function(t,i){e.each(t.nodeType?[t]:t,function(t,n){i=i||"fx";var r=e.queue(n,i),o=r.shift();"inprogress"===o&&(o=r.shift());if(o){"fx"===i&&r.unshift("inprogress");o.call(n,function(){e.dequeue(n,i)})}})};e.fn=e.prototype={init:function(t){if(t.nodeType){this[0]=t;return this}throw new Error("Not a DOM node.")},offset:function(){var e=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:e.top+(t.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:e.left+(t.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function t(t){var e=t.offsetParent;while(e&&"html"!==e.nodeName.toLowerCase()&&e.style&&"static"===e.style.position.toLowerCase())e=e.offsetParent;return e||document}var i=this[0],n=t(i),r=this.offset(),o=/^(?:body|html)$/i.test(n.nodeName)?{top:0,left:0}:e(n).offset();r.top-=parseFloat(i.style.marginTop)||0;r.left-=parseFloat(i.style.marginLeft)||0;if(n.style){o.top+=parseFloat(n.style.borderTopWidth)||0;o.left+=parseFloat(n.style.borderLeftWidth)||0}return{top:r.top-o.top,left:r.left-o.left}}};var n={};e.expando="velocity"+(new Date).getTime();e.uuid=0;var r={},o=r.hasOwnProperty,s=r.toString;var a="Boolean Number String Function Array Date RegExp Object Error".split(" ");for(var l=0;l<a.length;l++)r["[object "+a[l]+"]"]=a[l].toLowerCase();e.fn.init.prototype=e.fn;t.Velocity={Utilities:e}})(window);(function(o){"use strict";if("object"===typeof t&&"object"===typeof t.exports)t.exports=o();else{true;!(n=o,r="function"===typeof n?n.call(e,i,e,t):n,void 0!==r&&(t.exports=r))}})(function(){"use strict";return function(t,e,i,n){var r=function(){if(i.documentMode)return i.documentMode;for(var t=7;t>4;t--){var e=i.createElement("div");e.innerHTML="\x3c!--[if IE "+t+"]><span></span><![endif]--\x3e";if(e.getElementsByTagName("span").length){e=null;return t}}return n}();var o=function(){var t=0;return e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||function(e){var i=(new Date).getTime(),n;n=Math.max(0,16-(i-t));t=i+n;return setTimeout(function(){e(i+n)},n)}}();var s=function(){var t=e.performance||{};if("function"!==typeof t.now){var i=t.timing&&t.timing.navigationStart?t.timing.navigationStart:(new Date).getTime();t.now=function(){return(new Date).getTime()-i}}return t}();function a(t){var e=-1,i=t?t.length:0,n=[];while(++e<i){var r=t[e];r&&n.push(r)}return n}var l=function(){var t=Array.prototype.slice;try{t.call(i.documentElement);return t}catch(e){return function(e,i){var n=this.length;"number"!==typeof e&&(e=0);"number"!==typeof i&&(i=n);if(this.slice)return t.call(this,e,i);var r,o=[],s=e>=0?e:Math.max(0,n+e),a=i<0?n+i:Math.min(i,n),l=a-s;if(l>0){o=new Array(l);if(this.charAt)for(r=0;r<l;r++)o[r]=this.charAt(s+r);else for(r=0;r<l;r++)o[r]=this[s+r]}return o}}}();var c=function(){if(Array.prototype.includes)return function(t,e){return t.includes(e)};if(Array.prototype.indexOf)return function(t,e){return t.indexOf(e)>=0};return function(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return true;return false}};function u(t){d.isWrapped(t)?t=l.call(t):d.isNode(t)&&(t=[t]);return t}var d={isNumber:function(t){return"number"===typeof t},isString:function(t){return"string"===typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isWrapped:function(t){return t&&t!==e&&d.isNumber(t.length)&&!d.isString(t)&&!d.isFunction(t)&&!d.isNode(t)&&(0===t.length||d.isNode(t[0]))},isSVG:function(t){return e.SVGElement&&t instanceof e.SVGElement},isEmptyObject:function(t){for(var e in t)if(t.hasOwnProperty(e))return false;return true}};var f,h=false;if(t.fn&&t.fn.jquery){f=t;h=true}else f=e.Velocity.Utilities;if(r<=8&&!h)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(r<=7){jQuery.fn.velocity=jQuery.fn.animate;return}var p=400,m="swing";var g={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e.navigator.userAgent),isAndroid:/Android/i.test(e.navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(e.navigator.userAgent),isChrome:e.chrome,isFirefox:/Firefox/i.test(e.navigator.userAgent),prefixElement:i.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:false,calls:[],delayedElements:{count:0}},CSS:{},Utilities:f,Redirects:{},Easings:{},Promise:e.Promise,defaults:{queue:"",duration:p,easing:m,begin:n,complete:n,progress:n,display:n,visibility:n,loop:false,delay:false,mobileHA:true,_cacheValues:true,promiseRejectEmpty:true},init:function(t){f.data(t,"velocity",{isSVG:d.isSVG(t),isAnimating:false,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:false,version:{major:1,minor:5,patch:2},debug:false,timestamp:true,pauseAll:function(t){var e=(new Date).getTime();f.each(g.State.calls,function(e,i){if(i){if(t!==n&&(i[2].queue!==t||false===i[2].queue))return true;i[5]={resume:false}}});f.each(g.State.delayedElements,function(t,i){if(!i)return;y(i,e)})},resumeAll:function(t){var e=(new Date).getTime();f.each(g.State.calls,function(e,i){if(i){if(t!==n&&(i[2].queue!==t||false===i[2].queue))return true;i[5]&&(i[5].resume=true)}});f.each(g.State.delayedElements,function(t,i){if(!i)return;w(i,e)})}};if(e.pageYOffset!==n){g.State.scrollAnchor=e;g.State.scrollPropertyLeft="pageXOffset";g.State.scrollPropertyTop="pageYOffset"}else{g.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body;g.State.scrollPropertyLeft="scrollLeft";g.State.scrollPropertyTop="scrollTop"}function v(t){var e=f.data(t,"velocity");return null===e?n:e}function y(t,e){var i=v(t);if(i&&i.delayTimer&&!i.delayPaused){i.delayRemaining=i.delay-e+i.delayBegin;i.delayPaused=true;clearTimeout(i.delayTimer.setTimeout)}}function w(t,e){var i=v(t);if(i&&i.delayTimer&&i.delayPaused){i.delayPaused=false;i.delayTimer.setTimeout=setTimeout(i.delayTimer.next,i.delayRemaining)}}function b(t){return function(e){return Math.round(e*t)*(1/t)}}function x(t,i,n,r){var o=4,s=.001,a=1e-7,l=10,c=11,u=1/(c-1),d="Float32Array"in e;if(4!==arguments.length)return false;for(var f=0;f<4;++f)if("number"!==typeof arguments[f]||isNaN(arguments[f])||!isFinite(arguments[f]))return false;t=Math.min(t,1);n=Math.min(n,1);t=Math.max(t,0);n=Math.max(n,0);var h=d?new Float32Array(c):new Array(c);function p(t,e){return 1-3*e+3*t}function m(t,e){return 3*e-6*t}function g(t){return 3*t}function v(t,e,i){return((p(e,i)*t+m(e,i))*t+g(e))*t}function y(t,e,i){return 3*p(e,i)*t*t+2*m(e,i)*t+g(e)}function w(e,i){for(var r=0;r<o;++r){var s=y(i,t,n);if(0===s)return i;var a=v(i,t,n)-e;i-=a/s}return i}function b(){for(var e=0;e<c;++e)h[e]=v(e*u,t,n)}function x(e,i,r){var o,s,c=0;do{s=i+(r-i)/2;o=v(s,t,n)-e;o>0?r=s:i=s}while(Math.abs(o)>a&&++c<l);return s}function _(e){var i=0,r=1,o=c-1;for(;r!==o&&h[r]<=e;++r)i+=u;--r;var a=(e-h[r])/(h[r+1]-h[r]),l=i+a*u,d=y(l,t,n);return d>=s?w(e,l):0===d?l:x(e,i,i+u)}var C=false;function S(){C=true;t===i&&n===r||b()}var E=function(e){C||S();if(t===i&&n===r)return e;if(0===e)return 0;if(1===e)return 1;return v(_(e),i,r)};E.getControlPoints=function(){return[{x:t,y:i},{x:n,y:r}]};var k="generateBezier("+[t,i,n,r]+")";E.toString=function(){return k};return E}var _=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,i,n){var r={x:e.x+n.dx*i,v:e.v+n.dv*i,tension:e.tension,friction:e.friction};return{dx:r.v,dv:t(r)}}function i(i,n){var r={dx:i.v,dv:t(i)},o=e(i,.5*n,r),s=e(i,.5*n,o),a=e(i,n,s),l=1/6*(r.dx+2*(o.dx+s.dx)+a.dx),c=1/6*(r.dv+2*(o.dv+s.dv)+a.dv);i.x=i.x+l*n;i.v=i.v+c*n;return i}return function t(e,n,r){var o={x:-1,v:0,tension:null,friction:null},s=[0],a=0,l=1e-4,c=.016,u,d,f;e=parseFloat(e)||500;n=parseFloat(n)||20;r=r||null;o.tension=e;o.friction=n;u=null!==r;if(u){a=t(e,n);d=a/r*c}else d=c;while(true){f=i(f||o,d);s.push(1+f.x);a+=16;if(!(Math.abs(f.x)>l&&Math.abs(f.v)>l))break}return u?function(t){return s[t*(s.length-1)|0]}:a}}();g.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}};f.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(t,e){g.Easings[e[0]]=x.apply(null,e[1])});function C(t,e){var i=t;d.isString(t)?g.Easings[t]||(i=false):i=d.isArray(t)&&1===t.length?b.apply(null,t):d.isArray(t)&&2===t.length?_.apply(null,t.concat([e])):!(!d.isArray(t)||4!==t.length)&&x.apply(null,t);false===i&&(i=g.Easings[g.defaults.easing]?g.defaults.easing:m);return i}var S=g.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"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},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 t=0;t<S.Lists.colors.length;t++){var e="color"===S.Lists.colors[t]?"0 0 0 1":"255 255 255 1";S.Hooks.templates[S.Lists.colors[t]]=["Red Green Blue Alpha",e]}var i,n,o;if(r)for(i in S.Hooks.templates){if(!S.Hooks.templates.hasOwnProperty(i))continue;n=S.Hooks.templates[i];o=n[0].split(" ");var s=n[1].match(S.RegEx.valueSplit);if("Color"===o[0]){o.push(o.shift());s.push(s.shift());S.Hooks.templates[i]=[o.join(" "),s.join(" ")]}}for(i in S.Hooks.templates){if(!S.Hooks.templates.hasOwnProperty(i))continue;n=S.Hooks.templates[i];o=n[0].split(" ");for(var a in o){if(!o.hasOwnProperty(a))continue;var l=i+o[a],c=a;S.Hooks.registered[l]=[i,c]}}},getRoot:function(t){var e=S.Hooks.registered[t];return e?e[0]:t},getUnit:function(t,e){var i=(t.substr(e||0,5).match(/^[a-z%]+/)||[])[0]||"";if(i&&c(S.Lists.units,i))return i;return""},fixColors:function(t){return t.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function(t,e,i){if(S.Lists.colorNames.hasOwnProperty(i))return(e||"rgba(")+S.Lists.colorNames[i]+(e?"":",1)");return e+i})},cleanRootPropertyValue:function(t,e){S.RegEx.valueUnwrap.test(e)&&(e=e.match(S.RegEx.valueUnwrap)[1]);S.Values.isCSSNullValue(e)&&(e=S.Hooks.templates[t][1]);return e},extractValue:function(t,e){var i=S.Hooks.registered[t];if(i){var n=i[0],r=i[1];e=S.Hooks.cleanRootPropertyValue(n,e);return e.toString().match(S.RegEx.valueSplit)[r]}return e},injectValue:function(t,e,i){var n=S.Hooks.registered[t];if(n){var r=n[0],o=n[1],s,a;i=S.Hooks.cleanRootPropertyValue(r,i);s=i.toString().match(S.RegEx.valueSplit);s[o]=e;a=s.join(" ");return a}return i}},Normalizations:{registered:{clip:function(t,e,i){switch(t){case"name":return"clip";case"extract":var n;if(S.RegEx.wrappedValueAlreadyExtracted.test(i))n=i;else{n=i.toString().match(S.RegEx.valueUnwrap);n=n?n[1].replace(/,(\s+)?/g," "):i}return n;case"inject":return"rect("+i+")"}},blur:function(t,e,i){switch(t){case"name":return g.State.isFirefox?"filter":"-webkit-filter";case"extract":var n=parseFloat(i);if(!(n||0===n)){var r=i.toString().match(/blur\(([0-9]+[A-z]+)\)/i);n=r?r[1]:0}return n;case"inject":return parseFloat(i)?"blur("+i+")":"none"}},opacity:function(t,e,i){if(r<=8)switch(t){case"name":return"filter";case"extract":var n=i.toString().match(/alpha\(opacity=(.*)\)/i);i=n?n[1]/100:1;return i;case"inject":e.style.zoom=1;return parseFloat(i)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(i),10)+")"}else switch(t){case"name":return"opacity";case"extract":return i;case"inject":return i}}},register:function(){r&&!(r>9)||g.State.isGingerbread||(S.Lists.transformsBase=S.Lists.transformsBase.concat(S.Lists.transforms3D));for(var t=0;t<S.Lists.transformsBase.length;t++)(function(){var e=S.Lists.transformsBase[t];S.Normalizations.registered[e]=function(t,i,r){switch(t){case"name":return"transform";case"extract":if(v(i)===n||v(i).transformCache[e]===n)return/^scale/i.test(e)?1:0;return v(i).transformCache[e].replace(/[()]/g,"");case"inject":var o=false;switch(e.substr(0,e.length-1)){case"translate":o=!/(%|px|em|rem|vw|vh|\d)$/i.test(r);break;case"scal":case"scale":g.State.isAndroid&&v(i).transformCache[e]===n&&r<1&&(r=1);o=!/(\d)$/i.test(r);break;case"skew":o=!/(deg|\d)$/i.test(r);break;case"rotate":o=!/(deg|\d)$/i.test(r);break}o||(v(i).transformCache[e]="("+r+")");return v(i).transformCache[e]}}})();for(var e=0;e<S.Lists.colors.length;e++)(function(){var t=S.Lists.colors[e];S.Normalizations.registered[t]=function(e,i,o){switch(e){case"name":return t;case"extract":var s;if(S.RegEx.wrappedValueAlreadyExtracted.test(o))s=o;else{var a,l={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(o)?a=l[o]!==n?l[o]:l.black:S.RegEx.isHex.test(o)?a="rgb("+S.Values.hexToRgb(o).join(" ")+")":/^rgba?\(/i.test(o)||(a=l.black);s=(a||o).toString().match(S.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}(!r||r>8)&&3===s.split(" ").length&&(s+=" 1");return s;case"inject":if(/^rgb/.test(o))return o;r<=8?4===o.split(" ").length&&(o=o.split(/\s+/).slice(0,3).join(" ")):3===o.split(" ").length&&(o+=" 1");return(r<=8?"rgb":"rgba")+"("+o.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}})();function i(t,e,i){var n="border-box"===S.getPropertyValue(e,"boxSizing").toString().toLowerCase();if(n===(i||false)){var r,o,s=0,a="width"===t?["Left","Right"]:["Top","Bottom"],l=["padding"+a[0],"padding"+a[1],"border"+a[0]+"Width","border"+a[1]+"Width"];for(r=0;r<l.length;r++){o=parseFloat(S.getPropertyValue(e,l[r]));isNaN(o)||(s+=o)}return i?-s:s}return 0}function o(t,e){return function(n,r,o){switch(n){case"name":return t;case"extract":return parseFloat(o)+i(t,r,e);case"inject":return parseFloat(o)-i(t,r,e)+"px"}}}S.Normalizations.registered.innerWidth=o("width",true);S.Normalizations.registered.innerHeight=o("height",true);S.Normalizations.registered.outerWidth=o("width");S.Normalizations.registered.outerHeight=o("height")}},Names:{camelCase:function(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})},SVGAttribute:function(t){var e="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";(r||g.State.isAndroid&&!g.State.isChrome)&&(e+="|transform");return new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(g.State.prefixMatches[t])return[g.State.prefixMatches[t],true];var e=["","Webkit","Moz","ms","O"];for(var i=0,n=e.length;i<n;i++){var r;r=0===i?t:e[i]+t.replace(/^\w/,function(t){return t.toUpperCase()});if(d.isString(g.State.prefixElement.style[r])){g.State.prefixMatches[t]=r;return[r,true]}}return[t,false]}},Values:{hexToRgb:function(t){var e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,n;t=t.replace(e,function(t,e,i,n){return e+e+i+i+n+n});n=i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[0,0,0]},isCSSNullValue:function(t){return!t||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)},getUnitType:function(t){return/^(rotate|skew)/i.test(t)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t)?"":"px"},getDisplayType:function(t){var e=t&&t.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(e)?"inline":/^(li)$/i.test(e)?"list-item":/^(tr)$/i.test(e)?"table-row":/^(table)$/i.test(e)?"table":/^(tbody)$/i.test(e)?"table-row-group":"block"},addClass:function(t,e){if(t)if(t.classList)t.classList.add(e);else if(d.isString(t.className))t.className+=(t.className.length?" ":"")+e;else{var i=t.getAttribute(r<=7?"className":"class")||"";t.setAttribute("class",i+(i?" ":"")+e)}},removeClass:function(t,e){if(t)if(t.classList)t.classList.remove(e);else if(d.isString(t.className))t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," ");else{var i=t.getAttribute(r<=7?"className":"class")||"";t.setAttribute("class",i.replace(new RegExp("(^|s)"+e.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(t,i,o,s){function a(t,i){var o=0;if(r<=8)o=f.css(t,i);else{var l=false;if(/^(width|height)$/.test(i)&&0===S.getPropertyValue(t,"display")){l=true;S.setPropertyValue(t,"display",S.Values.getDisplayType(t))}var c=function(){l&&S.setPropertyValue(t,"display","none")};if(!s){if("height"===i&&"border-box"!==S.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var u=t.offsetHeight-(parseFloat(S.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(S.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(S.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(S.getPropertyValue(t,"paddingBottom"))||0);c();return u}if("width"===i&&"border-box"!==S.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var d=t.offsetWidth-(parseFloat(S.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(S.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(S.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(S.getPropertyValue(t,"paddingRight"))||0);c();return d}}var h;h=v(t)===n?e.getComputedStyle(t,null):v(t).computedStyle?v(t).computedStyle:v(t).computedStyle=e.getComputedStyle(t,null);"borderColor"===i&&(i="borderTopColor");o=9===r&&"filter"===i?h.getPropertyValue(i):h[i];""!==o&&null!==o||(o=t.style[i]);c()}if("auto"===o&&/^(top|right|bottom|left)$/i.test(i)){var p=a(t,"position");("fixed"===p||"absolute"===p&&/top|left/i.test(i))&&(o=f(t).position()[i]+"px")}return o}var l;if(S.Hooks.registered[i]){var c=i,u=S.Hooks.getRoot(c);o===n&&(o=S.getPropertyValue(t,S.Names.prefixCheck(u)[0]));S.Normalizations.registered[u]&&(o=S.Normalizations.registered[u]("extract",t,o));l=S.Hooks.extractValue(c,o)}else if(S.Normalizations.registered[i]){var d,h;d=S.Normalizations.registered[i]("name",t);if("transform"!==d){h=a(t,S.Names.prefixCheck(d)[0]);S.Values.isCSSNullValue(h)&&S.Hooks.templates[i]&&(h=S.Hooks.templates[i][1])}l=S.Normalizations.registered[i]("extract",t,h)}if(!/^[\d-]/.test(l)){var p=v(t);if(p&&p.isSVG&&S.Names.SVGAttribute(i))if(/^(height|width)$/i.test(i))try{l=t.getBBox()[i]}catch(t){l=0}else l=t.getAttribute(i);else l=a(t,S.Names.prefixCheck(i)[0])}S.Values.isCSSNullValue(l)&&(l=0);g.debug>=2&&console.log("Get "+i+": "+l);return l},setPropertyValue:function(t,i,n,o,s){var a=i;if("scroll"===i)s.container?s.container["scroll"+s.direction]=n:"Left"===s.direction?e.scrollTo(n,s.alternateValue):e.scrollTo(s.alternateValue,n);else if(S.Normalizations.registered[i]&&"transform"===S.Normalizations.registered[i]("name",t)){S.Normalizations.registered[i]("inject",t,n);a="transform";n=v(t).transformCache[i]}else{if(S.Hooks.registered[i]){var l=i,c=S.Hooks.getRoot(i);o=o||S.getPropertyValue(t,c);n=S.Hooks.injectValue(l,n,o);i=c}if(S.Normalizations.registered[i]){n=S.Normalizations.registered[i]("inject",t,n);i=S.Normalizations.registered[i]("name",t)}a=S.Names.prefixCheck(i)[0];if(r<=8)try{t.style[a]=n}catch(t){g.debug&&console.log("Browser does not support ["+n+"] for ["+a+"]")}else{var u=v(t);u&&u.isSVG&&S.Names.SVGAttribute(i)?t.setAttribute(i,n):t.style[a]=n}g.debug>=2&&console.log("Set "+i+" ("+a+"): "+n)}return[a,n]},flushTransformCache:function(t){var e="",i=v(t);if((r||g.State.isAndroid&&!g.State.isChrome)&&i&&i.isSVG){var n=function(e){return parseFloat(S.getPropertyValue(t,e))};var o={translate:[n("translateX"),n("translateY")],skewX:[n("skewX")],skewY:[n("skewY")],scale:1!==n("scale")?[n("scale"),n("scale")]:[n("scaleX"),n("scaleY")],rotate:[n("rotateZ"),0,0]};f.each(v(t).transformCache,function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate");if(o[t]){e+=t+"("+o[t].join(" ")+") ";delete o[t]}})}else{var s,a;f.each(v(t).transformCache,function(i){s=v(t).transformCache[i];if("transformPerspective"===i){a=s;return true}9===r&&"rotateZ"===i&&(i="rotate");e+=i+s+" "});a&&(e="perspective"+a+" "+e)}S.setPropertyValue(t,"transform",e)}};S.Hooks.register();S.Normalizations.register();g.hook=function(t,e,i){var r;t=u(t);f.each(t,function(t,o){v(o)===n&&g.init(o);if(i===n)r===n&&(r=S.getPropertyValue(o,e));else{var s=S.setPropertyValue(o,e,i);"transform"===s[0]&&g.CSS.flushTransformCache(o);r=s}});return r};var E=function(){var t;function r(){return s?x.promise||null:a}var o=arguments[0]&&(arguments[0].p||f.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||d.isString(arguments[0].properties)),s,a,l;var h,m,b;if(d.isWrapped(this)){s=false;l=0;h=this;a=this}else{s=true;l=1;h=o?arguments[0].elements||arguments[0].e:arguments[0]}var x={promise:null,resolver:null,rejecter:null};s&&g.Promise&&(x.promise=new g.Promise(function(t,e){x.resolver=t;x.rejecter=e}));if(o){m=arguments[0].properties||arguments[0].p;b=arguments[0].options||arguments[0].o}else{m=arguments[l];b=arguments[l+1]}h=u(h);if(!h){x.promise&&(m&&b&&false===b.promiseRejectEmpty?x.resolver():x.rejecter());return}var _=h.length,k=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(m)&&!f.isPlainObject(b)){var T=l+1;b={};for(var I=T;I<arguments.length;I++)d.isArray(arguments[I])||!/^(fast|normal|slow)$/i.test(arguments[I])&&!/^\d/.test(arguments[I])?d.isString(arguments[I])||d.isArray(arguments[I])?b.easing=arguments[I]:d.isFunction(arguments[I])&&(b.complete=arguments[I]):b.duration=arguments[I]}var O;switch(m){case"scroll":O="scroll";break;case"reverse":O="reverse";break;case"pause":var P=(new Date).getTime();f.each(h,function(t,e){y(e,P)});f.each(g.State.calls,function(t,e){var i=false;e&&f.each(e[1],function(t,r){var o=b===n?"":b;if(true!==o&&e[2].queue!==o&&!(b===n&&false===e[2].queue))return true;f.each(h,function(t,n){if(n===r){e[5]={resume:false};i=true;return false}});if(i)return false})});return r();case"resume":f.each(h,function(t,e){w(e,P)});f.each(g.State.calls,function(t,e){var i=false;e&&f.each(e[1],function(t,r){var o=b===n?"":b;if(true!==o&&e[2].queue!==o&&!(b===n&&false===e[2].queue))return true;if(!e[5])return true;f.each(h,function(t,n){if(n===r){e[5].resume=true;i=true;return false}});if(i)return false})});return r();case"finish":case"finishAll":case"stop":f.each(h,function(t,e){if(v(e)&&v(e).delayTimer){clearTimeout(v(e).delayTimer.setTimeout);v(e).delayTimer.next&&v(e).delayTimer.next();delete v(e).delayTimer}if("finishAll"===m&&(true===b||d.isString(b))){f.each(f.queue(e,d.isString(b)?b:""),function(t,e){d.isFunction(e)&&e()});f.queue(e,d.isString(b)?b:"",[])}});var M=[];f.each(g.State.calls,function(t,e){e&&f.each(e[1],function(i,r){var o=b===n?"":b;if(true!==o&&e[2].queue!==o&&!(b===n&&false===e[2].queue))return true;f.each(h,function(i,n){if(n===r){if(true===b||d.isString(b)){f.each(f.queue(n,d.isString(b)?b:""),function(t,e){d.isFunction(e)&&e(null,true)});f.queue(n,d.isString(b)?b:"",[])}if("stop"===m){var s=v(n);s&&s.tweensContainer&&(true===o||""===o)&&f.each(s.tweensContainer,function(t,e){e.endValue=e.currentValue});M.push(t)}else"finish"!==m&&"finishAll"!==m||(e[2].duration=1)}})})});if("stop"===m){f.each(M,function(t,e){D(e,true)});x.promise&&x.resolver(h)}return r();default:if(!f.isPlainObject(m)||d.isEmptyObject(m)){if(d.isString(m)&&g.Redirects[m]){t=f.extend({},b);var L=t.duration,N=t.delay||0;true===t.backwards&&(h=f.extend(true,[],h).reverse());f.each(h,function(e,i){parseFloat(t.stagger)?t.delay=N+parseFloat(t.stagger)*e:d.isFunction(t.stagger)&&(t.delay=N+t.stagger.call(i,e,_));if(t.drag){t.duration=parseFloat(L)||(/^(callout|transition)/.test(m)?1e3:p);t.duration=Math.max(t.duration*(t.backwards?1-e/_:(e+1)/_),.75*t.duration,200)}g.Redirects[m].call(i,i,t||{},e,_,h,x.promise?x:n)});return r()}var B="Velocity: First argument ("+m+") was not a property map, a known action, or a registered redirect. Aborting.";x.promise?x.rejecter(new Error(B)):e.console&&console.log(B);return r()}O="start"}var F={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null};var R=[];function j(t,r){var o=f.extend({},g.defaults,b),s={},a;v(t)===n&&g.init(t);parseFloat(o.delay)&&false!==o.queue&&f.queue(t,o.queue,function(e,i){if(true===i)return true;g.velocityQueueEntryFlag=true;var n=g.State.delayedElements.count++;g.State.delayedElements[n]=t;var r=function(t){return function(){g.State.delayedElements[t]=false;e()}}(n);v(t).delayBegin=(new Date).getTime();v(t).delay=parseFloat(o.delay);v(t).delayTimer={setTimeout:setTimeout(e,parseFloat(o.delay)),next:r}});switch(o.duration.toString().toLowerCase()){case"fast":o.duration=200;break;case"normal":o.duration=p;break;case"slow":o.duration=600;break;default:o.duration=parseFloat(o.duration)||1}if(false!==g.mock)if(true===g.mock)o.duration=o.delay=1;else{o.duration*=parseFloat(g.mock)||1;o.delay*=parseFloat(g.mock)||1}o.easing=C(o.easing,o.duration);o.begin&&!d.isFunction(o.begin)&&(o.begin=null);o.progress&&!d.isFunction(o.progress)&&(o.progress=null);o.complete&&!d.isFunction(o.complete)&&(o.complete=null);if(o.display!==n&&null!==o.display){o.display=o.display.toString().toLowerCase();"auto"===o.display&&(o.display=g.CSS.Values.getDisplayType(t))}o.visibility!==n&&null!==o.visibility&&(o.visibility=o.visibility.toString().toLowerCase());o.mobileHA=o.mobileHA&&g.State.isMobile&&!g.State.isGingerbread;function l(l){var u,p;if(o.begin&&0===k)try{o.begin.call(h,h)}catch(t){setTimeout(function(){throw t},1)}if("scroll"===O){var y=/^x$/i.test(o.axis)?"Left":"Top",w=parseFloat(o.offset)||0,E,T,D;if(o.container)if(d.isWrapped(o.container)||d.isNode(o.container)){o.container=o.container[0]||o.container;E=o.container["scroll"+y];D=E+f(t).position()[y.toLowerCase()]+w}else o.container=null;else{E=g.State.scrollAnchor[g.State["scrollProperty"+y]];T=g.State.scrollAnchor[g.State["scrollProperty"+("Left"===y?"Top":"Left")]];D=f(t).offset()[y.toLowerCase()]+w}s={scroll:{rootPropertyValue:false,startValue:E,currentValue:E,endValue:D,unitType:"",easing:o.easing,scrollData:{container:o.container,direction:y,alternateValue:T}},element:t};g.debug&&console.log("tweensContainer (scroll): ",s.scroll,t)}else if("reverse"===O){u=v(t);if(!u)return;if(!u.tweensContainer){f.dequeue(t,o.queue);return}"none"===u.opts.display&&(u.opts.display="auto");"hidden"===u.opts.visibility&&(u.opts.visibility="visible");u.opts.loop=false;u.opts.begin=null;u.opts.complete=null;b.easing||delete o.easing;b.duration||delete o.duration;o=f.extend({},u.opts,o);p=f.extend(true,{},u?u.tweensContainer:null);for(var I in p)if(p.hasOwnProperty(I)&&"element"!==I){var P=p[I].startValue;p[I].startValue=p[I].currentValue=p[I].endValue;p[I].endValue=P;d.isEmptyObject(b)||(p[I].easing=o.easing);g.debug&&console.log("reverse tweensContainer ("+I+"): "+JSON.stringify(p[I]),t)}s=p}else if("start"===O){u=v(t);u&&u.tweensContainer&&true===u.isAnimating&&(p=u.tweensContainer);var M=function(e,i){var n,s,a;d.isFunction(e)&&(e=e.call(t,r,_));if(d.isArray(e)){n=e[0];if(!d.isArray(e[1])&&/^[\d-]/.test(e[1])||d.isFunction(e[1])||S.RegEx.isHex.test(e[1]))a=e[1];else if(d.isString(e[1])&&!S.RegEx.isHex.test(e[1])&&g.Easings[e[1]]||d.isArray(e[1])){s=i?e[1]:C(e[1],o.duration);a=e[2]}else a=e[1]||e[2]}else n=e;i||(s=s||o.easing);d.isFunction(n)&&(n=n.call(t,r,_));d.isFunction(a)&&(a=a.call(t,r,_));return[n||0,s,a]};var L=function(r,l){var c=S.Hooks.getRoot(r),h=false,m=l[0],v=l[1],y=l[2],w;if((!u||!u.isSVG)&&"tween"!==c&&false===S.Names.prefixCheck(c)[1]&&S.Normalizations.registered[c]===n){g.debug&&console.log("Skipping ["+c+"] due to a lack of browser support.");return}(o.display!==n&&null!==o.display&&"none"!==o.display||o.visibility!==n&&"hidden"!==o.visibility)&&/opacity|filter/.test(r)&&!y&&0!==m&&(y=0);if(o._cacheValues&&p&&p[r]){y===n&&(y=p[r].endValue+p[r].unitType);h=u.rootPropertyValueCache[c]}else if(S.Hooks.registered[r])if(y===n){h=S.getPropertyValue(t,c);y=S.getPropertyValue(t,r,h)}else h=S.Hooks.templates[c][1];else y===n&&(y=S.getPropertyValue(t,r));var b,x,_,C=false;var E=function(t,e){var i,n;n=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){i=t;return""});i||(i=S.Values.getUnitType(t));return[n,i]};if(y!==m&&d.isString(y)&&d.isString(m)){w="";var k=0,T=0,A=[],D=[],I=0,O=0,P=0;y=S.Hooks.fixColors(y);m=S.Hooks.fixColors(m);while(k<y.length&&T<m.length){var M=y[k],L=m[T];if(/[\d\.-]/.test(M)&&/[\d\.-]/.test(L)){var N=M,B=L,R=".",j=".";while(++k<y.length){M=y[k];if(M===R)R="..";else if(!/\d/.test(M))break;N+=M}while(++T<m.length){L=m[T];if(L===j)j="..";else if(!/\d/.test(L))break;B+=L}var V=S.Hooks.getUnit(y,k),H=S.Hooks.getUnit(m,T);k+=V.length;T+=H.length;if(V===H)if(N===B)w+=N+V;else{w+="{"+A.length+(O?"!":"")+"}"+V;A.push(parseFloat(N));D.push(parseFloat(B))}else{var $=parseFloat(N),W=parseFloat(B);w+=(I<5?"calc":"")+"("+($?"{"+A.length+(O?"!":"")+"}":"0")+V+" + "+(W?"{"+(A.length+($?1:0))+(O?"!":"")+"}":"0")+H+")";if($){A.push($);D.push(0)}if(W){A.push(0);D.push(W)}}}else{if(M!==L){I=0;break}w+=M;k++;T++;0===I&&"c"===M||1===I&&"a"===M||2===I&&"l"===M||3===I&&"c"===M||I>=4&&"("===M?I++:(I&&I<5||I>=4&&")"===M&&--I<5)&&(I=0);if(0===O&&"r"===M||1===O&&"g"===M||2===O&&"b"===M||3===O&&"a"===M||O>=3&&"("===M){3===O&&"a"===M&&(P=1);O++}else P&&","===M?++P>3&&(O=P=0):(P&&O<(P?5:4)||O>=(P?4:3)&&")"===M&&--O<(P?5:4))&&(O=P=0)}}if(k!==y.length||T!==m.length){g.debug&&console.error('Trying to pattern match mis-matched strings ["'+m+'", "'+y+'"]');w=n}if(w)if(A.length){g.debug&&console.log('Pattern found "'+w+'" -> ',A,D,"["+y+","+m+"]");y=A;m=D;x=_=""}else w=n}if(!w){b=E(r,y);y=b[0];_=b[1];b=E(r,m);m=b[0].replace(/^([+-\/*])=/,function(t,e){C=e;return""});x=b[1];y=parseFloat(y)||0;m=parseFloat(m)||0;if("%"===x)if(/^(fontSize|lineHeight)$/.test(r)){m/=100;x="em"}else if(/^scale/.test(r)){m/=100;x=""}else if(/(Red|Green|Blue)$/i.test(r)){m=m/100*255;x=""}}var z=function(){var n={myParent:t.parentNode||i.body,position:S.getPropertyValue(t,"position"),fontSize:S.getPropertyValue(t,"fontSize")},r=n.position===F.lastPosition&&n.myParent===F.lastParent,o=n.fontSize===F.lastFontSize;F.lastParent=n.myParent;F.lastPosition=n.position;F.lastFontSize=n.fontSize;var s=100,a={};if(o&&r){a.emToPx=F.lastEmToPx;a.percentToPxWidth=F.lastPercentToPxWidth;a.percentToPxHeight=F.lastPercentToPxHeight}else{var l=u&&u.isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div");g.init(l);n.myParent.appendChild(l);f.each(["overflow","overflowX","overflowY"],function(t,e){g.CSS.setPropertyValue(l,e,"hidden")});g.CSS.setPropertyValue(l,"position",n.position);g.CSS.setPropertyValue(l,"fontSize",n.fontSize);g.CSS.setPropertyValue(l,"boxSizing","content-box");f.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){g.CSS.setPropertyValue(l,e,s+"%")});g.CSS.setPropertyValue(l,"paddingLeft",s+"em");a.percentToPxWidth=F.lastPercentToPxWidth=(parseFloat(S.getPropertyValue(l,"width",null,true))||1)/s;a.percentToPxHeight=F.lastPercentToPxHeight=(parseFloat(S.getPropertyValue(l,"height",null,true))||1)/s;a.emToPx=F.lastEmToPx=(parseFloat(S.getPropertyValue(l,"paddingLeft"))||1)/s;n.myParent.removeChild(l)}null===F.remToPx&&(F.remToPx=parseFloat(S.getPropertyValue(i.body,"fontSize"))||16);if(null===F.vwToPx){F.vwToPx=parseFloat(e.innerWidth)/100;F.vhToPx=parseFloat(e.innerHeight)/100}a.remToPx=F.remToPx;a.vwToPx=F.vwToPx;a.vhToPx=F.vhToPx;g.debug>=1&&console.log("Unit ratios: "+JSON.stringify(a),t);return a};if(/[\/*]/.test(C))x=_;else if(_!==x&&0!==y)if(0===m)x=_;else{a=a||z();var U=/margin|padding|left|right|width|text|word|letter/i.test(r)||/X$/.test(r)||"x"===r?"x":"y";switch(_){case"%":y*="x"===U?a.percentToPxWidth:a.percentToPxHeight;break;case"px":break;default:y*=a[_+"ToPx"]}switch(x){case"%":y*=1/("x"===U?a.percentToPxWidth:a.percentToPxHeight);break;case"px":break;default:y*=1/a[x+"ToPx"]}}switch(C){case"+":m=y+m;break;case"-":m=y-m;break;case"*":m*=y;break;case"/":m=y/m;break}s[r]={rootPropertyValue:h,startValue:y,currentValue:y,endValue:m,unitType:x,easing:v};w&&(s[r].pattern=w);g.debug&&console.log("tweensContainer ("+r+"): "+JSON.stringify(s[r]),t)};for(var N in m){if(!m.hasOwnProperty(N))continue;var B=S.Names.camelCase(N),j=M(m[N]);if(c(S.Lists.colors,B)){var V=j[0],H=j[1],$=j[2];if(S.RegEx.isHex.test(V)){var W=["Red","Green","Blue"],z=S.Values.hexToRgb(V),U=$?S.Values.hexToRgb($):n;for(var q=0;q<W.length;q++){var G=[z[q]];H&&G.push(H);U!==n&&G.push(U[q]);L(B+W[q],G)}continue}}L(B,j)}s.element=t}if(s.element){S.Values.addClass(t,"velocity-animating");R.push(s);u=v(t);if(u){if(""===o.queue){u.tweensContainer=s;u.opts=o}u.isAnimating=true}if(k===_-1){g.State.calls.push([R,h,o,null,x.resolver,null,0]);if(false===g.State.isTicking){g.State.isTicking=true;A()}}else k++}}if(false===o.queue)if(o.delay){var u=g.State.delayedElements.count++;g.State.delayedElements[u]=t;var y=function(t){return function(){g.State.delayedElements[t]=false;l()}}(u);v(t).delayBegin=(new Date).getTime();v(t).delay=parseFloat(o.delay);v(t).delayTimer={setTimeout:setTimeout(l,parseFloat(o.delay)),next:y}}else l();else f.queue(t,o.queue,function(t,e){if(true===e){x.promise&&x.resolver(h);return true}g.velocityQueueEntryFlag=true;l(t)});""!==o.queue&&"fx"!==o.queue||"inprogress"===f.queue(t)[0]||f.dequeue(t)}f.each(h,function(t,e){d.isNode(e)&&j(e,t)});t=f.extend({},g.defaults,b);t.loop=parseInt(t.loop,10);var V=2*t.loop-1;if(t.loop)for(var H=0;H<V;H++){var $={delay:t.delay,progress:t.progress};if(H===V-1){$.display=t.display;$.visibility=t.visibility;$.complete=t.complete}E(h,"reverse",$)}return r()};g=f.extend(E,g);g.animate=E;var k=e.requestAnimationFrame||o;if(!g.State.isMobile&&i.hidden!==n){var T=function(){if(i.hidden){k=function(t){return setTimeout(function(){t(true)},16)};A()}else k=e.requestAnimationFrame||o};T();i.addEventListener("visibilitychange",T)}function A(t){if(t){var e=g.timestamp&&true!==t?t:s.now();var i=g.State.calls.length;if(i>1e4){g.State.calls=a(g.State.calls);i=g.State.calls.length}for(var o=0;o<i;o++){if(!g.State.calls[o])continue;var l=g.State.calls[o],c=l[0],u=l[2],h=l[3],p=!h,m=null,y=l[5],w=l[6];h||(h=g.State.calls[o][3]=e-16);if(y){if(true!==y.resume)continue;h=l[3]=Math.round(e-w-16);l[5]=null}w=l[6]=e-h;var b=Math.min(w/u.duration,1);for(var x=0,_=c.length;x<_;x++){var C=c[x],E=C.element;if(!v(E))continue;var T=false;if(u.display!==n&&null!==u.display&&"none"!==u.display){if("flex"===u.display){var I=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];f.each(I,function(t,e){S.setPropertyValue(E,"display",e)})}S.setPropertyValue(E,"display",u.display)}u.visibility!==n&&"hidden"!==u.visibility&&S.setPropertyValue(E,"visibility",u.visibility);for(var O in C)if(C.hasOwnProperty(O)&&"element"!==O){var P=C[O],M,L=d.isString(P.easing)?g.Easings[P.easing]:P.easing;if(d.isString(P.pattern)){var N=1===b?function(t,e,i){var n=P.endValue[e];return i?Math.round(n):n}:function(t,e,i){var n=P.startValue[e],r=P.endValue[e]-n,o=n+r*L(b,u,r);return i?Math.round(o):o};M=P.pattern.replace(/{(\d+)(!)?}/g,N)}else if(1===b)M=P.endValue;else{var B=P.endValue-P.startValue;M=P.startValue+B*L(b,u,B)}if(!p&&M===P.currentValue)continue;P.currentValue=M;if("tween"===O)m=M;else{var F;if(S.Hooks.registered[O]){F=S.Hooks.getRoot(O);var R=v(E).rootPropertyValueCache[F];R&&(P.rootPropertyValue=R)}var j=S.setPropertyValue(E,O,P.currentValue+(r<9&&0===parseFloat(M)?"":P.unitType),P.rootPropertyValue,P.scrollData);S.Hooks.registered[O]&&(S.Normalizations.registered[F]?v(E).rootPropertyValueCache[F]=S.Normalizations.registered[F]("extract",null,j[1]):v(E).rootPropertyValueCache[F]=j[1]);"transform"===j[0]&&(T=true)}}if(u.mobileHA&&v(E).transformCache.translate3d===n){v(E).transformCache.translate3d="(0px, 0px, 0px)";T=true}T&&S.flushTransformCache(E)}u.display!==n&&"none"!==u.display&&(g.State.calls[o][2].display=false);u.visibility!==n&&"hidden"!==u.visibility&&(g.State.calls[o][2].visibility=false);u.progress&&u.progress.call(l[1],l[1],b,Math.max(0,h+u.duration-e),h,m);1===b&&D(o)}}g.State.isTicking&&k(A)}function D(t,e){if(!g.State.calls[t])return false;var i=g.State.calls[t][0],r=g.State.calls[t][1],o=g.State.calls[t][2],s=g.State.calls[t][4];var a=false;for(var l=0,c=i.length;l<c;l++){var u=i[l].element;if(!e&&!o.loop){"none"===o.display&&S.setPropertyValue(u,"display",o.display);"hidden"===o.visibility&&S.setPropertyValue(u,"visibility",o.visibility)}var d=v(u);if(true!==o.loop&&(f.queue(u)[1]===n||!/\.velocityQueueEntryFlag/i.test(f.queue(u)[1]))&&d){d.isAnimating=false;d.rootPropertyValueCache={};var h=false;f.each(S.Lists.transforms3D,function(t,e){var i=/^scale/.test(e)?1:0,r=d.transformCache[e];if(d.transformCache[e]!==n&&new RegExp("^\\("+i+"[^.]").test(r)){h=true;delete d.transformCache[e]}});if(o.mobileHA){h=true;delete d.transformCache.translate3d}h&&S.flushTransformCache(u);S.Values.removeClass(u,"velocity-animating")}if(!e&&o.complete&&!o.loop&&l===c-1)try{o.complete.call(r,r)}catch(t){setTimeout(function(){throw t},1)}s&&true!==o.loop&&s(r);if(d&&true===o.loop&&!e){f.each(d.tweensContainer,function(t,e){if(/^rotate/.test(t)&&(parseFloat(e.startValue)-parseFloat(e.endValue))%360===0){var i=e.startValue;e.startValue=e.endValue;e.endValue=i}if(/^backgroundPosition/.test(t)&&100===parseFloat(e.endValue)&&"%"===e.unitType){e.endValue=0;e.startValue=100}});g(u,"reverse",{loop:true,delay:o.delay})}false!==o.queue&&f.dequeue(u,o.queue)}g.State.calls[t]=false;for(var p=0,m=g.State.calls.length;p<m;p++)if(false!==g.State.calls[p]){a=true;break}if(false===a){g.State.isTicking=false;delete g.State.calls;g.State.calls=[]}}t.Velocity=g;if(t!==e){t.fn.velocity=E;t.fn.velocity.defaults=g.defaults}f.each(["Down","Up"],function(t,e){g.Redirects["slide"+e]=function(t,i,r,o,s,a){var l=f.extend({},i),c=l.begin,u=l.complete,d={},h={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};l.display===n&&(l.display="Down"===e?"inline"===g.CSS.Values.getDisplayType(t)?"inline-block":"block":"none");l.begin=function(){0===r&&c&&c.call(s,s);for(var i in h){if(!h.hasOwnProperty(i))continue;d[i]=t.style[i];var n=S.getPropertyValue(t,i);h[i]="Down"===e?[n,0]:[0,n]}d.overflow=t.style.overflow;t.style.overflow="hidden"};l.complete=function(){for(var e in d)d.hasOwnProperty(e)&&(t.style[e]=d[e]);if(r===o-1){u&&u.call(s,s);a&&a.resolver(s)}};g(t,h,l)}});f.each(["In","Out"],function(t,e){g.Redirects["fade"+e]=function(t,i,r,o,s,a){var l=f.extend({},i),c=l.complete,u={opacity:"In"===e?1:0};0!==r&&(l.begin=null);l.complete=r!==o-1?null:function(){c&&c.call(s,s);a&&a.resolver(s)};l.display===n&&(l.display="In"===e?"auto":"none");g(this,u,l)}});return g}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)})},function(t,e,i){"use strict";var n=i(0);var r=i.n(n);
|
|
/**
|
|
* 2007-2017 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/AFL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2017 PrestaShop SA
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/class o{init(){r()(".js-product-miniature").each((t,e)=>{const i=10;let n=r()(e).find(".discount-product");let o=r()(e).find(".on-sale");let s=r()(e).find(".new");if(r()(e).find(".color").length>5){let t=0;r()(e).find(".color").each((e,i)=>{if(e>4){r()(i).hide();t++}});r()(e).find(".js-count").append(`+${t}`)}})}}e["a"]=o},function(t,e,i){var n,r;var o,s,a;var l,c,u;var d,f,h;var n,p;var n,m;var g,v,y;var n,w;var n,b;var n,x;var n,_;var n,C;var n,S;var n,E;var n,k;var n,T;var n,A;var n,D;var n,I,O;var I,n,r;var n,P;var n,r;
|
|
/*!
|
|
* Flickity PACKAGED v2.1.2
|
|
* Touch, responsive, flickable carousels
|
|
*
|
|
* Licensed GPLv3 for open source use
|
|
* or Flickity Commercial License for commercial use
|
|
*
|
|
* https://flickity.metafizzy.co
|
|
* Copyright 2015-2018 Metafizzy
|
|
*/!function(o,s){!(n=[i(0)],r=function(t){return s(o,t)}.apply(e,n),void 0!==r&&(t.exports=r))}(window,function(t,e){"use strict";function i(i,o,a){function l(t,e,n){var r,o="$()."+i+'("'+e+'")';return t.each(function(t,l){var c=a.data(l,i);if(!c)return void s(i+" not initialized. Cannot call methods, i.e. "+o);var u=c[e];if(!u||"_"==e.charAt(0))return void s(o+" is not a valid method");var d=u.apply(c,n);r=void 0===r?d:r}),void 0!==r?r:t}function c(t,e){t.each(function(t,n){var r=a.data(n,i);r?(r.option(e),r._init()):(r=new o(n,e),a.data(n,i,r))})}a=a||e||t.jQuery,a&&(o.prototype.option||(o.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=r.call(arguments,1);return l(this,t,e)}return c(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var r=Array.prototype.slice,o=t.console,s="undefined"==typeof o?function(){}:function(t){o.error(t)};return n(e||t.jQuery),i}),function(t,e){!(s=e,a={id:"ev-emitter/ev-emitter",exports:{},loaded:false},o="function"===typeof s?s.call(a.exports,i,a.exports,a):s,a.loaded=true,void 0===o&&(o=a.exports))}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],r=0;r<i.length;r++){var o=i[r],s=n&&n[o];s&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){!(c=e,u={id:"get-size/get-size",exports:{},loaded:false},l="function"===typeof c?c.call(u.exports,i,u.exports,u):c,u.loaded=true,void 0===l&&(l=u.exports))}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<c;e++){var i=l[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function r(){if(!u){u=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var r=n(e);s=200==Math.round(t(r.width)),o.isBoxSizeOuter=s,i.removeChild(e)}}function o(e){if(r(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var o=n(e);if("none"==o.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var u=a.isBorderBox="border-box"==o.boxSizing,d=0;d<c;d++){var f=l[d],h=o[f],p=parseFloat(h);a[f]=isNaN(p)?0:p}var m=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,v=a.marginLeft+a.marginRight,y=a.marginTop+a.marginBottom,w=a.borderLeftWidth+a.borderRightWidth,b=a.borderTopWidth+a.borderBottomWidth,x=u&&s,_=t(o.width);!1!==_&&(a.width=_+(x?0:m+w));var C=t(o.height);return!1!==C&&(a.height=C+(x?0:g+b)),a.innerWidth=a.width-(m+w),a.innerHeight=a.height-(g+b),a.outerWidth=a.width+v,a.outerHeight=a.height+y,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],c=l.length,u=!1;return o}),function(t,e){"use strict";!(f=e,h={id:"desandro-matches-selector/matches-selector",exports:{},loaded:false},d="function"===typeof f?f.call(h.exports,i,h.exports,h):f,h.loaded=true,void 0===d&&(d=h.exports))}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],r=n+"MatchesSelector";if(t[r])return r}}();return function(e,i){return e[t](i)}}),function(t,i){!(n=[d],p=function(e){return i(t,e)}.apply(e,n))}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var r=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void r.push(t);e(t,n)&&r.push(t);for(var i=t.querySelectorAll(n),o=0;o<i.length;o++)r.push(i[o])}}),r},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments,o=this;this[r]=setTimeout(function(){n.apply(o,e),delete o[r]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var r=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var o=i.toDashed(n),s="data-"+o,a=document.querySelectorAll("["+s+"]"),l=document.querySelectorAll(".js-"+o),c=i.makeArray(a).concat(i.makeArray(l)),u=s+"-options",d=t.jQuery;c.forEach(function(t){var i,o=t.getAttribute(s)||t.getAttribute(u);try{i=o&&JSON.parse(o)}catch(e){return void(r&&r.error("Error parsing "+s+" on "+t.className+": "+e))}var a=new e(t,i);d&&d.data(t,n,a)})})},i}),function(t,i){!(n=[l],m=function(e){return i(t,e)}.apply(e,n))}(window,function(t,e){function i(t,e){this.element=t,this.parent=e,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-selected","false"),this.x=0,this.shift=0},n.destroy=function(){this.element.style.position="";var t=this.parent.originSide;this.element.removeAttribute("aria-selected"),this.element.style[t]=""},n.getSize=function(){this.size=e(this.element)},n.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},n.updateTarget=n.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},n.renderPosition=function(t){var e=this.parent.originSide;this.element.style[e]=this.parent.getPositionValue(t)},n.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i}),function(t,e){!(v=e,y={id:"flickity/js/slide",exports:{},loaded:false},g="function"===typeof v?v.call(y.exports,i,y.exports,y):v,y.loaded=true,void 0===g&&(g=y.exports))}(window,function(){"use strict";function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){if(this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}},e.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),i=e?e.size[t]:0,n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]},e.select=function(){this.changeSelected(!0)},e.unselect=function(){this.changeSelected(!1)},e.changeSelected=function(t){var e=t?"add":"remove";this.cells.forEach(function(i){i.element.classList[e]("is-selected"),i.element.setAttribute("aria-selected",t.toString())})},e.getCellElements=function(){return this.cells.map(function(t){return t.element})},t}),function(t,i){!(n=[p],w=function(e){return i(t,e)}.apply(e,n))}(window,function(t,e){var i={};return i.startAnimation=function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},i.animate=function(){this.applyDragForce(),this.applySelectedAttraction();var t=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating){var e=this;requestAnimationFrame(function(){e.animate()})}},i.positionSlider=function(){var t=this.x;this.options.wrapAround&&this.cells.length>1&&(t=e.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),t+=this.cursorPosition,t=this.options.rightToLeft?-t:t;var i=this.getPositionValue(t);this.slider.style.transform=this.isAnimating?"translate3d("+i+",0,0)":"translateX("+i+")";var n=this.slides[0];if(n){var r=-this.x-n.target,o=r/this.slidesWidth;this.dispatchEvent("scroll",null,[o,r])}},i.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},i.getPositionValue=function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},i.settle=function(t){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*t)||this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},i.shiftWrapCells=function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},i._shiftCells=function(t,e,i){for(var n=0;n<t.length;n++){var r=t[n],o=e>0?i:0;r.wrapShift(o),e-=r.size.outerWidth}},i._unshiftCells=function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},i.integratePhysics=function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},i.applyForce=function(t){this.velocity+=t},i.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},i.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},i.applyDragForce=function(){if(this.isDraggable&&this.isPointerDown){var t=this.dragX-this.x,e=t-this.velocity;this.applyForce(e)}},i.applySelectedAttraction=function(){var t=this.isDraggable&&this.isPointerDown;if(!t&&!this.isFreeScrolling&&this.slides.length){var e=-1*this.selectedSlide.target-this.x,i=e*this.options.selectedAttraction;this.applyForce(i)}},i}),function(t,i){var r;true;!(n=[o,l,p,m,g,w],b=function(e,n,r,o,s,a){return i(t,e,n,r,o,s,a)}.apply(e,n))}(window,function(t,e,i,n,r,o,s){function a(t,e){for(t=n.makeArray(t);t.length;)e.appendChild(t.shift())}function l(t,e){var i=n.getQueryElement(t);if(!i)return void(d&&d.error("Bad element for Flickity: "+(i||t)));if(this.element=i,this.element.flickityGUID){var r=h[this.element.flickityGUID];return r.option(e),r}c&&(this.$element=c(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),this._create()}var c=t.jQuery,u=t.getComputedStyle,d=t.console,f=0,h={};l.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},l.createMethods=[];var p=l.prototype;n.extend(p,e.prototype),p._create=function(){var e=this.guid=++f;this.element.flickityGUID=e,h[e]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&t.addEventListener("resize",this);for(var i in this.options.on){var n=this.options.on[i];this.on(i,n)}l.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},p.option=function(t){n.extend(this.options,t)},p.activate=function(){if(!this.isActive){this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize();var t=this._filterFindCellElements(this.element.children);a(t,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate");var e,i=this.options.initialIndex;e=this.isInitActivated?this.selectedIndex:void 0!==i&&this.cells[i]?i:0,this.select(e,!1,!0),this.isInitActivated=!0,this.dispatchEvent("ready")}},p._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},p._filterFindCellElements=function(t){return n.filterFindElements(t,this.options.cellSelector)},p.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},p._makeCells=function(t){var e=this._filterFindCellElements(t),i=e.map(function(t){return new r(t,this)},this);return i},p.getLastCell=function(){return this.cells[this.cells.length-1]},p.getLastSlide=function(){return this.slides[this.slides.length-1]},p.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},p._positionCells=function(t){t=t||0,this.maxCellHeight=t&&this.maxCellHeight||0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}for(var n=this.cells.length,r=t;r<n;r++){var o=this.cells[r];o.setPosition(e),e+=o.size.outerWidth,this.maxCellHeight=Math.max(o.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},p._sizeCells=function(t){t.forEach(function(t){t.getSize()})},p.updateSlides=function(){if(this.slides=[],this.cells.length){var t=new o(this);this.slides.push(t);var e="left"==this.originSide,i=e?"marginRight":"marginLeft",n=this._getCanCellFit();this.cells.forEach(function(e,r){if(!t.cells.length)return void t.addCell(e);var s=t.outerWidth-t.firstMargin+(e.size.outerWidth-e.size[i]);n.call(this,r,s)?t.addCell(e):(t.updateTarget(),t=new o(this),this.slides.push(t),t.addCell(e))},this),t.updateTarget(),this.updateSelectedSlide()}},p._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var e=parseInt(t,10);return function(t){return t%e!==0}}var i="string"==typeof t&&t.match(/^(\d+)%$/),n=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*n}},p._init=p.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},p.getSize=function(){this.size=i(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var m={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return p.setCellAlign=function(){var t=m[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},p.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},p._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)}},p._getGapCells=function(t,e,i){for(var n=[];t>0;){var r=this.cells[e];if(!r)break;n.push(r),e+=i,t-=r.size.outerWidth}return n},p._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":"marginLeft",i=t?"marginLeft":"marginRight",n=this.slideableWidth-this.getLastCell().size[i],r=n<this.size.innerWidth,o=this.cursorPosition+this.cells[0].size[e],s=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){r?t.target=n*this.cellAlign:(t.target=Math.max(t.target,o),t.target=Math.min(t.target,s))},this)}},p.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),c&&this.$element){t+=this.options.namespaceJQueryEvents?".flickity":"";var r=t;if(e){var o=c.Event(e);o.type=t,r=o}this.$element.trigger(r,i)}},p.select=function(t,e,i){if(this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=n.modulo(t,this.slides.length)),this.slides[t])){var r=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=r&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect")}},p._wrapSelect=function(t){var e=this.slides.length,i=this.options.wrapAround&&e>1;if(!i)return t;var r=n.modulo(t,e),o=Math.abs(r-this.selectedIndex),s=Math.abs(r+e-this.selectedIndex),a=Math.abs(r-e-this.selectedIndex);!this.isDragSelect&&s<o?t+=e:!this.isDragSelect&&a<o&&(t-=e),t<0?this.x-=this.slideableWidth:t>=e&&(this.x+=this.slideableWidth)},p.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},p.next=function(t,e){this.select(this.selectedIndex+1,t,e)},p.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},p.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},p.selectCell=function(t,e,i){var n=this.queryCell(t);if(n){var r=this.getCellSlideIndex(n);this.select(r,e,i)}},p.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++){var i=this.slides[e],n=i.cells.indexOf(t);if(-1!=n)return e}},p.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t)return i}},p.getCells=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getCell(t);i&&e.push(i)},this),e},p.getCellElements=function(){return this.cells.map(function(t){return t.element})},p.getParentCell=function(t){var e=this.getCell(t);return e||(t=n.getParent(t,".flickity-slider > *"),this.getCell(t))},p.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(1+2*t>=i)return this.getCellElements();for(var r=[],o=e-t;o<=e+t;o++){var s=this.options.wrapAround?n.modulo(o,i):o,a=this.slides[s];a&&(r=r.concat(a.getCellElements()))}return r},p.queryCell=function(t){return"number"==typeof t?this.cells[t]:("string"==typeof t&&(t=this.element.querySelector(t)),this.getCell(t))},p.uiChange=function(){this.emitEvent("uiChange")},p.childUIPointerDown=function(t){this.emitEvent("childUIPointerDown",[t])},p.onresize=function(){this.watchCSS(),this.resize()},n.debounceMethod(l,"onresize",150),p.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=n.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},p.watchCSS=function(){var t=this.options.watchCSS;if(t){var e=u(this.element,":after").content;-1!=e.indexOf("flickity")?this.activate():this.deactivate()}},p.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!e){var i=l.keyboardHandlers[t.keyCode];i&&i.call(this)}},l.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}},p.focus=function(){var e=t.pageYOffset;this.element.focus({preventScroll:!0}),t.pageYOffset!=e&&t.scrollTo(t.pageXOffset,e)},p.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(t){t.destroy()}),this.element.removeChild(this.viewport),a(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},p.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.emitEvent("destroy"),c&&this.$element&&c.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete h[this.guid]},n.extend(p,s),l.data=function(t){t=n.getQueryElement(t);var e=t&&t.flickityGUID;return e&&h[e]},n.htmlInit(l,"flickity"),c&&c.bridget&&c.bridget("flickity",l),l.setJQuery=function(t){c=t},l.Cell=r,l}),function(t,i){!(n=[o],x=function(e){return i(t,e)}.apply(e,n))}(window,function(t,e){function i(){}function n(){}var r=n.prototype=Object.create(e.prototype);r.bindStartEvent=function(t){this._bindStartEvent(t,!0)},r.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},r._bindStartEvent=function(e,i){i=void 0===i||i;var n=i?"addEventListener":"removeEventListener",r="mousedown";t.PointerEvent?r="pointerdown":"ontouchstart"in t&&(r="touchstart"),e[n](r,this)},r.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier)return i}},r.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},r.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},r.onpointerdown=function(t){this._pointerDown(t,t)},r._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},r.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var o={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return r._bindPostStartEvents=function(e){if(e){var i=o[e.type];i.forEach(function(e){t.addEventListener(e,this)},this),this._boundPointerEvents=i}},r._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(e){t.removeEventListener(e,this)},this),delete this._boundPointerEvents)},r.onmousemove=function(t){this._pointerMove(t,t)},r.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},r.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},r._pointerMove=function(t,e){this.pointerMove(t,e)},r.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},r.onmouseup=function(t){this._pointerUp(t,t)},r.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},r.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},r._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},r.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},r._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},r._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},r.pointerDone=i,r.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},r.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},r._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},r.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},n.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},n}),function(t,i){!(n=[x],_=function(e){return i(t,e)}.apply(e,n))}(window,function(t,e){function i(){}var n=i.prototype=Object.create(e.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(e){e=void 0===e||e;for(var i=e?"addEventListener":"removeEventListener",n=e?this._touchActionValue:"",r=0;r<this.handles.length;r++){var o=this.handles[r];this._bindStartEvent(o,e),o[i]("click",this),t.PointerEvent&&(o.style.touchAction=n)}},n._touchActionValue="none",n.pointerDown=function(t,e){var i=this.okayPointerDown(t);i&&(this.pointerDownPointer=e,t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var r={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},o={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return n.okayPointerDown=function(t){var e=r[t.target.nodeName],i=o[t.target.type],n=!e||i;return n||this._pointerReset(),n},n.pointerDownBlur=function(){var t=document.activeElement,e=t&&t.blur&&t!=document.body;e&&t.blur()},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},n._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},n.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},n._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},n._dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,e)},n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},n._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},n.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},n._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},n.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},n._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},i.getPointerPoint=e.getPointerPoint,i}),function(t,i){!(n=[b,_,p],C=function(e,n,r){return i(t,e,n,r)}.apply(e,n))}(window,function(t,e,i,n){function r(){return{x:t.pageXOffset,y:t.pageYOffset}}n.extend(e.defaults,{draggable:">1",dragThreshold:3}),e.createMethods.push("_createDrag");var o=e.prototype;n.extend(o,i.prototype),o._touchActionValue="pan-y";var s="createTouch"in document,a=!1;o._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("childUIPointerDown",this._childUIPointerDownDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),s&&!a&&(t.addEventListener("touchmove",function(){}),a=!0)},o.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},o.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},o.updateDraggable=function(){">1"==this.options.draggable?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},o.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},o.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},o._uiChangeDrag=function(){delete this.isFreeScrolling},o._childUIPointerDownDrag=function(t){t.preventDefault(),this.pointerDownFocus(t)},o.pointerDown=function(e,i){if(!this.isDraggable)return void this._pointerDownDefault(e,i);var n=this.okayPointerDown(e);n&&(this._pointerDownPreventDefault(e),this.pointerDownFocus(e),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=r(),t.addEventListener("scroll",this),this._pointerDownDefault(e,i))},o._pointerDownDefault=function(t,e){this.pointerDownPointer=e,this._bindPostStartEvents(t),this.dispatchEvent("pointerDown",t,[e])};var l={INPUT:!0,TEXTAREA:!0,SELECT:!0};return o.pointerDownFocus=function(t){var e=l[t.target.nodeName];e||this.focus()},o._pointerDownPreventDefault=function(t){var e="touchstart"==t.type,i="touch"==t.pointerType,n=l[t.target.nodeName];e||i||n||t.preventDefault()},o.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},o.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},o.pointerDone=function(){t.removeEventListener("scroll",this),delete this.pointerDownScroll},o.dragStart=function(e,i){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),t.removeEventListener("scroll",this),this.dispatchEvent("dragStart",e,[i]))},o.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},o.dragMove=function(t,e,i){if(this.isDraggable){t.preventDefault(),this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1;this.options.wrapAround&&(i.x=i.x%this.slideableWidth);var r=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var o=Math.max(-this.slides[0].target,this.dragStartPosition);r=r>o?.5*(r+o):r;var s=Math.min(-this.getLastSlide().target,this.dragStartPosition);r=r<s?.5*(r+s):r}this.dragX=r,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i])}},o.dragEnd=function(t,e){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var n=this.getRestingPosition();this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target}else this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e])}},o.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),n=this._getClosestResting(t,e,-1),r=i.distance<n.distance?i.index:n.index;return r},o._getClosestResting=function(t,e,i){for(var n=this.selectedIndex,r=1/0,o=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};o(e,r)&&(n+=i,r=e,e=this.getSlideDistance(-t,n),null!==e);)e=Math.abs(e);return{distance:r,index:n-i}},o.getSlideDistance=function(t,e){var i=this.slides.length,r=this.options.wrapAround&&i>1,o=r?n.modulo(e,i):e,s=this.slides[o];if(!s)return null;var a=r?this.slideableWidth*Math.floor(e/i):0;return t-(s.target+a)},o.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return t>0&&e>0?1:t<0&&e<0?-1:0},o.staticClick=function(t,e){var i=this.getParentCell(t.target),n=i&&i.element,r=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,r])},o.onscroll=function(){var t=r(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(Math.abs(e)>3||Math.abs(i)>3)&&this._pointerDone()},e}),function(t,i){!(n=[x],S=function(e){return i(t,e)}.apply(e,n))}(window,function(t,e){function i(t){this.bindTap(t)}var n=i.prototype=Object.create(e.prototype);return n.bindTap=function(t){t&&(this.unbindTap(),this.tapElement=t,this._bindStartEvent(t,!0))},n.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)},n.pointerUp=function(i,n){if(!this.isIgnoringMouseUp||"mouseup"!=i.type){var r=e.getPointerPoint(n),o=this.tapElement.getBoundingClientRect(),s=t.pageXOffset,a=t.pageYOffset,l=r.x>=o.left+s&&r.x<=o.right+s&&r.y>=o.top+a&&r.y<=o.bottom+a;if(l&&this.emitEvent("tap",[i,n]),"mouseup"!=i.type){this.isIgnoringMouseUp=!0;var c=this;setTimeout(function(){delete c.isIgnoringMouseUp},400)}}},n.destroy=function(){this.pointerDone(),this.unbindTap()},i}),function(t,i){!(n=[b,S,p],E=function(e,n,r){return i(t,e,n,r)}.apply(e,n))}(window,function(t,e,i,n){"use strict";function r(t,e){this.direction=t,this.parent=e,this._create()}function o(t){return"string"==typeof t?t:"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50 L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}var s="http://www.w3.org/2000/svg";r.prototype=Object.create(i.prototype),r.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i),this.on("tap",this.onTap),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},r.prototype.activate=function(){this.bindTap(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},r.prototype.deactivate=function(){this.parent.element.removeChild(this.element),i.prototype.destroy.call(this),this.element.removeEventListener("click",this)},r.prototype.createSVG=function(){var t=document.createElementNS(s,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(s,"path"),i=o(this.parent.options.arrowShape);return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},r.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},r.prototype.handleEvent=n.handleEvent,r.prototype.onclick=function(t){var e=document.activeElement;e&&e==this.element&&this.onTap(t,t)},r.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},r.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},r.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1)return void this.enable();var e=t.length?t.length-1:0,i=this.isPrevious?0:e,n=this.parent.selectedIndex==i?"disable":"enable";this[n]()},r.prototype.destroy=function(){this.deactivate()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var a=e.prototype;return a._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new r(-1,this),this.nextButton=new r(1,this),this.on("activate",this.activatePrevNextButtons))},a.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},a.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=r,e}),function(t,i){!(n=[b,S,p],k=function(e,n,r){return i(t,e,n,r)}.apply(e,n))}(window,function(t,e,i,n){function r(t){this.parent=t,this._create()}r.prototype=new i,r.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.on("tap",this.onTap),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},r.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},r.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),i.prototype.destroy.call(this)},r.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},r.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],n=this.dots.length,r=n+t,o=n;o<r;o++){var s=document.createElement("li");s.className="dot",s.setAttribute("aria-label","Page dot "+(o+1)),e.appendChild(s),i.push(s)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},r.prototype.removeDots=function(t){var e=this.dots.splice(this.dots.length-t,t);e.forEach(function(t){this.holder.removeChild(t)},this)},r.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},r.prototype.onTap=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},r.prototype.destroy=function(){this.deactivate()},e.PageDots=r,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var o=e.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new r(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},o.activatePageDots=function(){this.pageDots.activate()},o.updateSelectedPageDots=function(){this.pageDots.updateSelected()},o.updatePageDots=function(){this.pageDots.setDots()},o.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=r,e}),function(t,i){!(n=[o,p,b],T=function(t,e,n){return i(t,e,n)}.apply(e,n))}(window,function(t,e,i){function n(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}n.prototype=Object.create(t.prototype),n.prototype.play=function(){if("playing"!=this.state){var t=document.hidden;if(t)return void document.addEventListener("visibilitychange",this.onVisibilityPlay);this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()}},n.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){var t=document.hidden;this[t?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var r=i.prototype;return r._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},r.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},r.playPlayer=function(){this.player.play()},r.stopPlayer=function(){this.player.stop()},r.pausePlayer=function(){this.player.pause()},r.unpausePlayer=function(){this.player.unpause()},r.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},r.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},r.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}),function(t,i){!(n=[b,p],A=function(e,n){return i(t,e,n)}.apply(e,n))}(window,function(t,e,i){function n(t){var e=document.createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element)}),e}var r=e.prototype;return r.insert=function(t,e){var i=this._makeCells(t);if(i&&i.length){var r=this.cells.length;e=void 0===e?r:e;var o=n(i),s=e==r;if(s)this.slider.appendChild(o);else{var a=this.cells[e].element;this.slider.insertBefore(o,a)}if(0===e)this.cells=i.concat(this.cells);else if(s)this.cells=this.cells.concat(i);else{var l=this.cells.splice(e,r-e);this.cells=this.cells.concat(i).concat(l)}this._sizeCells(i),this.cellChange(e,!0)}},r.append=function(t){this.insert(t,this.cells.length)},r.prepend=function(t){this.insert(t,0)},r.remove=function(t){var e=this.getCells(t);if(e&&e.length){var n=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);n=Math.min(e,n),i.removeFrom(this.cells,t)},this),this.cellChange(n,!0)}},r.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},r.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize();var n=this.getCell(i);n&&(this.selectedIndex=this.getCellSlideIndex(n)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}),function(t,i){!(n=[b,p],D=function(e,n){return i(t,e,n)}.apply(e,n))}(window,function(t,e,i){"use strict";function n(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),n=t.getAttribute("data-flickity-lazyload-src"),r=t.getAttribute("data-flickity-lazyload-srcset");if(e||n||r)return[t]}var o="img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]",s=t.querySelectorAll(o);return i.makeArray(s)}function r(t,e){this.img=t,this.flickity=e,this.load()}e.createMethods.push("_createLazyload");var o=e.prototype;return o._createLazyload=function(){this.on("select",this.lazyLoad)},o.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,i=this.getAdjacentCellElements(e),o=[];i.forEach(function(t){var e=n(t);o=o.concat(e)}),o.forEach(function(t){new r(t,this)},this)}},r.prototype.handleEvent=i.handleEvent,r.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},r.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},r.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},r.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,n)},e.LazyLoader=r,e}),function(t,i){!(n=[b,C,E,k,T,A,D],I=i,O="function"===typeof I?I.apply(e,n):I)}(window,function(t){return t}),function(i,o){!(n=[O,p],I=o,r="function"===typeof I?I.apply(e,n):I,void 0!==r&&(t.exports=r))}(window,function(t,e){function i(t,e,i){return(e-t)*i+t}t.createMethods.push("_createAsNavFor");var n=t.prototype;return n._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var t=this.options.asNavFor;if(t){var e=this;setTimeout(function(){e.setNavCompanion(t)})}},n.setNavCompanion=function(i){i=e.getQueryElement(i);var n=t.data(i);if(n&&n!=this){this.navCompanion=n;var r=this;this.onNavCompanionSelect=function(){r.navCompanionSelect()},n.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},n.navCompanionSelect=function(t){if(this.navCompanion){var e=this.navCompanion.selectedCells[0],n=this.navCompanion.cells.indexOf(e),r=n+this.navCompanion.selectedCells.length-1,o=Math.floor(i(n,r,this.navCompanion.cellAlign));if(this.selectCell(o,!1,t),this.removeNavSelectedElements(),!(o>=this.cells.length)){var s=this.cells.slice(n,r+1);this.navSelectedElements=s.map(function(t){return t.element}),this.changeNavSelectedClass("add")}}},n.changeNavSelectedClass=function(t){this.navSelectedElements.forEach(function(e){e.classList[t]("is-nav-selected")})},n.activateAsNavFor=function(){this.navCompanionSelect(!0)},n.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},n.onNavStaticClick=function(t,e,i,n){"number"==typeof n&&this.navCompanion.selectCell(n)},n.deactivateAsNavFor=function(){this.removeNavSelectedElements()},n.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},t}),function(t,i){"use strict";!(n=[o],P=function(e){return i(t,e)}.apply(e,n))}("undefined"!=typeof window?window:this,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){if(Array.isArray(t))return t;var e="object"==typeof t&&"number"==typeof t.length;return e?c.call(t):[t]}function r(t,e,o){if(!(this instanceof r))return new r(t,e,o);var s=t;return"string"==typeof t&&(s=document.querySelectorAll(t)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof e?o=e:i(this.options,e),o&&this.on("always",o),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(this.check.bind(this))):void l.error("Bad element for imagesLoaded "+(s||t))}function o(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}var a=t.jQuery,l=t.console,c=Array.prototype.slice;r.prototype=Object.create(e.prototype),r.prototype.options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&u[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var r=i[n];this.addImage(r)}if("string"==typeof this.options.background){var o=t.querySelectorAll(this.options.background);for(n=0;n<o.length;n++){var s=o[n];this.addElementBackgroundImages(s)}}}};var u={1:!0,9:!0,11:!0};return r.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var r=n&&n[2];r&&this.addBackground(r,t),n=i.exec(e.backgroundImage)}},r.prototype.addImage=function(t){var e=new o(t);this.images.push(e)},r.prototype.addBackground=function(t,e){var i=new s(t,e);this.images.push(i)},r.prototype.check=function(){function t(t,i,n){setTimeout(function(){e.progress(t,i,n)})}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e){e.once("progress",t),e.check()}):void this.complete()},r.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+i,t,e)},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},o.prototype=Object.create(e.prototype),o.prototype.check=function(){var t=this.getIsImageComplete();return t?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},o.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},o.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},o.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},o.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},o.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},o.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(o.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var t=this.getIsImageComplete();t&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},r.makeJQueryPlugin=function(e){e=e||t.jQuery,e&&(a=e,a.fn.imagesLoaded=function(t,e){var i=new r(this,t,e);return i.jqDeferred.promise(a(this))})},r.makeJQueryPlugin(),r}),function(i,o){!(n=[O,P],r=function(t,e){return o(i,t,e)}.apply(e,n),void 0!==r&&(t.exports=r))}(window,function(t,e,i){"use strict";e.createMethods.push("_createImagesLoaded");var n=e.prototype;return n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},n.imagesLoaded=function(){function t(t,i){var n=e.getParentCell(i.img);e.cellSizeChange(n&&n.element),e.options.freeScroll||e.positionSliderAtSelected()}if(this.options.imagesLoaded){var e=this;i(this.slider).on("progress",t)}},e})},function(t,e,i){"use strict";var n=i(0);var r=i.n(n);
|
|
/**
|
|
* 2007-2017 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/AFL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2017 PrestaShop SA
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/class o{constructor(t){this.el=t}init(){this.el.on("show.bs.dropdown",function(t,e){e?r()(`#${e}`).find(".dropdown-menu").first().stop(true,true).slideDown():r()(t.target).find(".dropdown-menu").first().stop(true,true).slideDown()});this.el.on("hide.bs.dropdown",function(t,e){e?r()(`#${e}`).find(".dropdown-menu").first().stop(true,true).slideUp():r()(t.target).find(".dropdown-menu").first().stop(true,true).slideUp()});this.el.find("select.link").each(function(t,e){r()(e).on("change",function(t){window.location=r()(this).val()})})}}e["a"]=o},function(t,e,i){i(7);t.exports=i(34)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:true});var n=i(8);var r=i.n(n);var o=i(11);var s=i.n(o);var a=i(12);var l=i.n(a);var c=i(13);var u=i.n(c);var d=i(14);var f=i(15);var h=i(16);var p=i(17);var m=i(18);var g=i(21);var v=i(22);var y=i(23);var w=i(24);var b=i(5);var x=i(25);var _=i(3);var C=i(26);var S=i(27);var E=i(1);var k=i.n(E);var T=i(28);var A=i.n(T);var D=i(29);var I=i.n(D);var O=i(30);var P=i.n(O);var M=i(31);var L=i.n(M);var N=i(32);var B=i.n(N);var F=i(33);
|
|
/**
|
|
* 2007-2017 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/AFL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2018 PrestaShop SA
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/for(var R in A.a.prototype)k.a[R]=A.a.prototype[R];$(document).ready(()=>{let t=$(".js-dropdown");const e=new x["a"];let i=$('.js-top-menu ul[data-depth="0"]');let n=new b["a"](t);let r=new S["a"](i);let o=new _["a"];let s=new C["a"];n.init();e.init();r.init();o.init();s.init();$(".form-control-select").change(function(){this.blur()});0==$(".page-footer").children().length&&$(".page-footer").addClass("hidden");if("normal"==$("#header").attr("data-trans"))var a="sticky";else var a="sticky normal";var l=function(){if("normal"==$("#header").attr("data-trans"))setTimeout(function(){var t=$("#header").height();$("main").css("padding-top",t)},250);else{var t=$("#header").height();$("#top_column").css("min-height",t)}};l();var c=function(){$("#header").addClass(a)};var u=0;$(window).scrollTop()>u&&c();window.matchMedia("(max-width: 991px)").matches&&c();$(window).scroll(function(){$(this).scrollTop()>u?c():window.matchMedia("(min-width: 992px)").matches&&$("#header").removeClass(a)});$(window).on("resize",function(){if(window.matchMedia("(max-width: 991px)").matches){l();c()}else{l();$(this).scrollTop()==u&&$("#header").removeClass(a)}});if("yes"==$("#header").attr("data-hide")){var d;var f=500;var h=5;$(window).scroll(function(t){d=true});setInterval(function(){if(d){p();d=false}},250);function p(){var t=$(window).scrollTop();if(Math.abs(f-t)<=h)return;t>f&&t>500?$("#header").addClass("hide_up"):t+$(window).height()<$(document).height()&&$("#header").removeClass("hide_up");f=t}}$(".animsition").animsition({inClass:"fade-in",outClass:"fade-out",inDuration:600,outDuration:600,linkElement:"a.noloader",loading:false,loadingParentElement:"body",loadingClass:"animsition-loading",loadingInner:"",timeout:true,timeoutCountdown:300,onLoadEvent:true,browser:["animation-duration","-webkit-animation-duration"],overlay:false,overlayClass:"animsition-overlay-slide",overlayParentElement:"body",transition:function(t){window.location.href=t}});$(".animsition").on("animsition.outStart",function(){var t=$(".roy-loader");t.fadeIn("slow")});$(".animsition").on("animsition.inStart",function(){var t=$(".roy-loader");t.fadeOut(400)});$("body").on("click","#search_filter_toggler",function(){$("body").addClass("filter_open")});$(".filter_close, .closefilters").click(function(){$("body").removeClass("filter_open")});var m=function(){if($("body").hasClass("side_open")){$("body").removeClass("side_content");$(".side_menu").removeClass("reopen_go").addClass("reopen_hide");setTimeout(function(){$("body").addClass("side_content")},320);setTimeout(function(){$(".side_menu").removeClass("reopen_hide").addClass("reopen_go")},600)}else $("body").addClass("side_open side_content was_open")};var g=function(){$(".action .search-widget").attr("id","");$(".side_menu .search-widget").attr("id","search_widget")};g();$(".side_close, .close_cross, .return").click(function(){$("body").removeClass("side_open side_content filter_open");v();w();setTimeout(function(){$("body").removeClass("was_open")},440)});var v=function(){$(".side_menu").find(".cart-prods > li").each(function(t){$(this).removeClass("show")})};var y=function(){$(".side_menu").find(".cart-prods > li").each(function(t){var e=$(this);setTimeout(function(){e.addClass("show")},300+220*t)})};var w=function(){$(".side_menu").find(".acc_ul > *").each(function(t){$(this).removeClass("show")})};var E=function(){$(".side_menu").find(".acc_ul > *").each(function(t){var e=$(this);setTimeout(function(){e.addClass("show")},300+120*t)})};var k=function(){setTimeout(function(){$("html, body").animate({scrollTop:$(".side_menu").offset().top},1e3)},980)};var T=$(".side_menu");var A=T.attr("data-menu"),D=T.attr("data-search"),I=T.attr("data-cart"),O=T.attr("data-acc");$(window).on("load resize",function(){if(window.matchMedia("(min-width: 992px)").matches){$("body").removeClass("side_lay1 side_lay2 side_lay3").addClass("side_lay"+I);$(".menu_top").hover(function(){$("body").removeClass("side_lay1 side_lay2 side_lay3").addClass("side_lay"+A)});$(".search-widget").hover(function(){$("body").removeClass("side_lay1 side_lay2 side_lay3").addClass("side_lay"+D)});$(".cart_widget, .add_wrap, .add-to-cart").hover(function(){$("body").removeClass("side_lay1 side_lay2 side_lay3").addClass("side_lay"+I)});$(".acc_top").hover(function(){$("body").removeClass("side_lay1 side_lay2 side_lay3").addClass("side_lay"+O)})}else $("body").removeClass("side_lay1 side_lay2 side_lay3").addClass("side_lay1")});var P=function(t){t.preventDefault();w();m();$(".side_menu .side_menu_rel > div").removeClass("show");$("#side_cart_wrap").addClass("show");$(".side_close").removeClass("search_close menu_close acc_close").addClass("cart_close");$(".side_close i").toggleClass("rotateit");$(".side_menu").hasClass("reopen_hide")?setTimeout(function(){y()},320):y()};var M=function(t){t.preventDefault();w();v();$(".side_menu").removeClass("side_lay1 side_lay2 side_lay3").addClass("side_lay"+D);m();g();$(".side_menu .side_menu_rel > div").removeClass("show");$("#side_search_wrap").addClass("show");$(".side_close").removeClass("cart_close menu_close acc_close").addClass("search_close");$(".side_close i").toggleClass("rotateit");setTimeout(function(){$(".side_menu .search-widget form input[type=text]").focus()},1e3)};var L=function(t){t.preventDefault();w();v();$(".side_menu").removeClass("side_lay1 side_lay2 side_lay3").addClass("side_lay"+A);m();$(".side_menu .side_menu_rel > div").removeClass("show");$("#side_menu_wrap").addClass("show");$(".side_close").removeClass("cart_close search_close acc_close").addClass("menu_close");$(".side_close i").toggleClass("rotateit")};var N=function(t){t.preventDefault();v();$(".side_menu").removeClass("side_lay1 side_lay2 side_lay3").addClass("side_lay"+O);m();$(".side_menu .side_menu_rel > div").removeClass("show");$("#side_acc_wrap").addClass("show");$(".side_close").removeClass("cart_close search_close menu_close").addClass("acc_close");$(".side_close i").toggleClass("rotateit");$(".side_menu").hasClass("reopen_hide")?setTimeout(function(){E()},320):E()};$(".box-cart").off("click",P).on("click",P);$(".box-search").off("click",M).on("click",M);$(".box-menu").off("click",L).on("click",L);$(".box-acc").off("click",N).on("click",N);$("#header .row.action .blockcart a.cart_nogo").off("click",P).on("click",P);$("#header .row.action .search_nogo").off("click",M).on("click",M);if("left"==$("#is_media").css("float"))$("body").addClass("mob_enabled");else{$("body").removeClass("mob_enabled");$("body").removeClass("side_open side_content")}$(window).on("resize",function(){"left"==$("#is_media").css("float")&&$("body").addClass("mob_enabled")})});$(window).load(function(){setTimeout(function(){$("#header").css("opacity","1")},400);setTimeout(function(){$("#wrapper").css("opacity","1")},700);setTimeout(function(){$(".breadcrumb").css({opacity:"1",transform:"matrix(1, 0, 0, 1, 0, 0)"})},750)});var j=$(".breadcrumb > ol > li:last-child").find("span[itemprop*='name']");""==$.trim(j.html())&&j.parent().prev().addClass("noafter");function V(){var t=$(".tip_inside");$("body").append('<div id="ui_tip"><div class="ui_wrapper"><span class="ui_title"></span></div></div>');var e=$("#ui_tip");var i=e.find(".ui_title");t.on("mousemove",function(t){e.css({top:t.clientY,left:t.clientX});var i=$(window).width(),n=$("#ui_tip").width(),r=t.clientX+n+14+40;r>i?$("#ui_tip").addClass("align-right"):$("#ui_tip").removeClass("align-right")});t.on("mouseover",function(t){i.text($(this).find(".tip").text());setTimeout(function(){e.addClass("active")},10)}).on("mouseout",function(t){setTimeout(function(){e.removeClass("active")},10)});$(window).scroll(function(){setTimeout(function(){e.hasClass("active")&&e.removeClass("active")},200)})}$(document).ready(()=>{V()});$("body").append('<div id="ui_prod"><div class="ui_wrapper"><span class="ui_name"><span></span></span><div><span class="ui_price"></span></div></div></div>');var H=$("article.pl_lay3"),W=$("#ui_prod"),z=W.find(".ui_name > span"),U=W.find(".ui_price");H.on("mousemove",function(t){W.css({top:t.clientY,left:t.clientX});var e=$(window).width(),i=$("#ui_prod").width(),n=t.clientX+i+54;n>e?$("#ui_prod").addClass("align-right"):$("#ui_prod").removeClass("align-right")});H.find(".product-thumbnail").on("mouseover",function(t){z.text($(this).closest("article").find(".product-title").text());U.html($(this).closest("article").find(".product-price-and-shipping").html());setTimeout(function(){W.addClass("active")},10);$(this).closest("article").find(".tip_inside").on("mouseover",function(t){console.log("inner");W.removeClass("active")}).on("mouseout",function(t){W.addClass("active")})}).on("mouseleave",function(t){W.removeClass("active")});var q=$(".pp_stick_it"),G={parent:".pp_stick_parent",offset_top:90};$(window).on("load resize",function(){setTimeout(function(){window.matchMedia("(min-width: 992px)").matches?q.stick_in_parent(G):q.trigger("sticky_kit:detach")},750)});$(document).ready(function(t){t(".roycount").each(function(e){var i=t(this);var n=i.attr("data-specific-price-to");i.closest(".roycountdown").county({endDateTime:new Date(n.replace(/-/g,"/")),reflection:false,animation:"none",theme:"black",titleDays:i.data("days"),titleHours:i.data("hours"),titleMinutes:i.data("minutes"),titleSeconds:i.data("seconds")})})});$(function(){var t=$(".page-cms iframe[src^='//player.vimeo.com'], .page-cms iframe[src^='https://player.vimeo.com'], .page-cms iframe[src^='//www.youtube.com'], .page-cms iframe[src^='https://www.youtube.com'], .page-cms iframe[src^='http://www.youtube.com'], .page-cms object, .page-cms embed"),e=$("#short_description_content iframe[src^='//player.vimeo.com'], #short_description_content iframe[src^='https://player.vimeo.com'], #short_description_content iframe[src^='//www.youtube.com'], #short_description_content iframe[src^='https://www.youtube.com'], #short_description_content iframe[src^='http://www.youtube.com'], #short_description_content object, #short_description_content embed"),i=$("#short_description_content"),n=$("#idTab1 iframe[src^='//player.vimeo.com'], #idTab1 iframe[src^='https://player.vimeo.com'], #idTab1 iframe[src^='//www.youtube.com'], #idTab1 iframe[src^='https://www.youtube.com'], #idTab1 iframe[src^='http://www.youtube.com'], #idTab1 object, #idTab1 embed"),r=$("#idTab1"),o=$("#module-smartblog-details iframe[src^='//player.vimeo.com'], #module-smartblog-details iframe[src^='https://player.vimeo.com'], #module-smartblog-details iframe[src^='//www.youtube.com'], #module-smartblog-details iframe[src^='https://www.youtube.com'], #module-smartblog-details iframe[src^='http://www.youtube.com'], #module-smartblog-details object, #module-smartblog-details embed"),s=$("#module-smartblog-details #content"),a=$(".video_banner iframe[src^='//player.vimeo.com'], .video_banner iframe[src^='https://player.vimeo.com'], .video_banner iframe[src^='//www.youtube.com'], .video_banner iframe[src^='https://www.youtube.com'], .video_banner iframe[src^='http://www.youtube.com'], .video_banner object, .video_banner embed");t.each(function(){$(this).attr("data-aspectRatio",this.height/this.width).removeAttr("height").removeAttr("width")});$(window).resize(function(){var l=i.width();var c=r.width();var u=s.width();t.each(function(){var t=$(this);var e=t.parent();var i=e.width();t.width(i).height(i*t.attr("data-aspectRatio"))});o.each(function(){var t=$(this);t.width(u).height(u*t.attr("data-aspectRatio"))});e.each(function(){var t=$(this);t.width(l).height(l*t.attr("data-aspectRatio"))});n.each(function(){var t=$(this);t.width(c).height(c*t.attr("data-aspectRatio"))});a.each(function(){var t=$(this);var e=t.closest(".video_banner");var i=e.width();t.width(i).height(i*t.attr("data-aspectRatio"))})}).resize()})},function(t,e,i){(function(e){t.exports=e["Tether"]=i(10)}).call(e,i(9))},function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(1,eval)("this")}catch(t){"object"===typeof window&&(i=window)}t.exports=i},function(t,e,i){var n,r,o;/*! tether 1.4.4 */ /*! tether 1.4.4 */
|
|
(function(i,s){true;!(r=[],n=s,o="function"===typeof n?n.apply(e,r):n,void 0!==o&&(t.exports=o))})(this,function(){"use strict";var t=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||false;n.configurable=true;"value"in n&&(n.writable=true);Object.defineProperty(t,n.key,n)}}return function(e,i,n){i&&t(e.prototype,i);n&&t(e,n);return e}}();function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=void 0;"undefined"===typeof i&&(i={modules:[]});var n=null;function r(t){var e=t.getBoundingClientRect();var i={};for(var n in e)i[n]=e[n];if(t.ownerDocument!==document){var o=t.ownerDocument.defaultView.frameElement;if(o){var s=r(o);i.top+=s.top;i.bottom+=s.top;i.left+=s.left;i.right+=s.left}}return i}function o(t){var e=getComputedStyle(t)||{};var i=e.position;var n=[];if("fixed"===i)return[t];var r=t;while((r=r.parentNode)&&r&&1===r.nodeType){var o=void 0;try{o=getComputedStyle(r)}catch(t){}if("undefined"===typeof o||null===o){n.push(r);return n}var s=o;var a=s.overflow;var l=s.overflowX;var c=s.overflowY;/(auto|scroll|overlay)/.test(a+c+l)&&("absolute"!==i||["relative","absolute","fixed"].indexOf(o.position)>=0)&&n.push(r)}n.push(t.ownerDocument.body);t.ownerDocument!==document&&n.push(t.ownerDocument.defaultView);return n}var s=function(){var t=0;return function(){return++t}}();var a={};var l=function t(){var e=n;if(!e||!document.body.contains(e)){e=document.createElement("div");e.setAttribute("data-tether-id",s());p(e.style,{top:0,left:0,position:"absolute"});document.body.appendChild(e);n=e}var i=e.getAttribute("data-tether-id");if("undefined"===typeof a[i]){a[i]=r(e);_(function(){delete a[i]})}return a[i]};function c(){n&&document.body.removeChild(n);n=null}function u(t){var e=void 0;if(t===document){e=document;t=document.documentElement}else e=t.ownerDocument;var i=e.documentElement;var n=r(t);var o=l();n.top-=o.top;n.left-=o.left;"undefined"===typeof n.width&&(n.width=document.body.scrollWidth-n.left-n.right);"undefined"===typeof n.height&&(n.height=document.body.scrollHeight-n.top-n.bottom);n.top=n.top-i.clientTop;n.left=n.left-i.clientLeft;n.right=e.body.clientWidth-n.width-n.left;n.bottom=e.body.clientHeight-n.height-n.top;return n}function d(t){return t.offsetParent||document.documentElement}var f=null;function h(){if(f)return f;var t=document.createElement("div");t.style.width="100%";t.style.height="200px";var e=document.createElement("div");p(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"});e.appendChild(t);document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var n=t.offsetWidth;i===n&&(n=e.clientWidth);document.body.removeChild(e);var r=i-n;f={width:r,height:r};return f}function p(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];var e=[];Array.prototype.push.apply(e,arguments);e.slice(1).forEach(function(e){if(e)for(var i in e)({}).hasOwnProperty.call(e,i)&&(t[i]=e[i])});return t}function m(t,e){if("undefined"!==typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var i=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi");var n=y(t).replace(i," ");w(t,n)}}function g(t,e){if("undefined"!==typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{m(t,e);var i=y(t)+" "+e;w(t,i)}}function v(t,e){if("undefined"!==typeof t.classList)return t.classList.contains(e);var i=y(t);return new RegExp("(^| )"+e+"( |$)","gi").test(i)}function y(t){if(t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString)return t.className.baseVal;return t.className}function w(t,e){t.setAttribute("class",e)}function b(t,e,i){i.forEach(function(i){-1===e.indexOf(i)&&v(t,i)&&m(t,i)});e.forEach(function(e){v(t,e)||g(t,e)})}var x=[];var _=function t(e){x.push(e)};var C=function t(){var e=void 0;while(e=x.pop())e()};var S=function(){function i(){e(this,i)}t(i,[{key:"on",value:function t(e,i,n){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];"undefined"===typeof this.bindings&&(this.bindings={});"undefined"===typeof this.bindings[e]&&(this.bindings[e]=[]);this.bindings[e].push({handler:i,ctx:n,once:r})}},{key:"once",value:function t(e,i,n){this.on(e,i,n,true)}},{key:"off",value:function t(e,i){if("undefined"===typeof this.bindings||"undefined"===typeof this.bindings[e])return;if("undefined"===typeof i)delete this.bindings[e];else{var n=0;while(n<this.bindings[e].length)this.bindings[e][n].handler===i?this.bindings[e].splice(n,1):++n}}},{key:"trigger",value:function t(e){if("undefined"!==typeof this.bindings&&this.bindings[e]){var i=0;for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];while(i<this.bindings[e].length){var s=this.bindings[e][i];var a=s.handler;var l=s.ctx;var c=s.once;var u=l;"undefined"===typeof u&&(u=this);a.apply(u,r);c?this.bindings[e].splice(i,1):++i}}}}]);return i}();i.Utils={getActualBoundingClientRect:r,getScrollParents:o,getBounds:u,getOffsetParent:d,extend:p,addClass:g,removeClass:m,hasClass:v,updateClasses:b,defer:_,flush:C,uniqueId:s,Evented:S,getScrollBarSize:h,removeUtilElements:c};"use strict";var E=function(){function t(t,e){var i=[];var n=true;var r=false;var o=void 0;try{for(var s=t[Symbol.iterator](),a;!(n=(a=s.next()).done);n=true){i.push(a.value);if(e&&i.length===e)break}}catch(t){r=true;o=t}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();var t=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||false;n.configurable=true;"value"in n&&(n.writable=true);Object.defineProperty(t,n.key,n)}}return function(e,i,n){i&&t(e.prototype,i);n&&t(e,n);return e}}();var k=function t(e,i,n){var r=true;t:while(r){var o=e,s=i,a=n;r=false;null===o&&(o=Function.prototype);var l=Object.getOwnPropertyDescriptor(o,s);if(void 0===l){var c=Object.getPrototypeOf(o);if(null===c)return;e=c;i=s;n=a;r=true;l=c=void 0;continue t}if("value"in l)return l.value;var u=l.get;if(void 0===u)return;return u.call(a)}};function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}if("undefined"===typeof i)throw new Error("You must include the utils.js file before tether.js");var A=i.Utils;var o=A.getScrollParents;var u=A.getBounds;var d=A.getOffsetParent;var p=A.extend;var g=A.addClass;var m=A.removeClass;var b=A.updateClasses;var _=A.defer;var C=A.flush;var h=A.getScrollBarSize;var c=A.removeUtilElements;function D(t,e){var i=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+i>=e&&e>=t-i}var I=function(){if("undefined"===typeof document)return"";var t=document.createElement("div");var e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"];for(var i=0;i<e.length;++i){var n=e[i];if(void 0!==t.style[n])return n}}();var O=[];var P=function t(){O.forEach(function(t){t.position(false)});C()};function M(){if("object"===typeof performance&&"function"===typeof performance.now)return performance.now();return+new Date}(function(){var t=null;var e=null;var i=null;var n=function n(){if("undefined"!==typeof e&&e>16){e=Math.min(e-16,250);i=setTimeout(n,250);return}if("undefined"!==typeof t&&M()-t<10)return;if(null!=i){clearTimeout(i);i=null}t=M();P();e=M()-t};"undefined"!==typeof window&&"undefined"!==typeof window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,n)})})();var L={center:"center",left:"right",right:"left"};var N={middle:"middle",top:"bottom",bottom:"top"};var B={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"};var F=function t(e,i){var n=e.left;var r=e.top;"auto"===n&&(n=L[i.left]);"auto"===r&&(r=N[i.top]);return{left:n,top:r}};var R=function t(e){var i=e.left;var n=e.top;"undefined"!==typeof B[e.left]&&(i=B[e.left]);"undefined"!==typeof B[e.top]&&(n=B[e.top]);return{left:i,top:n}};function j(){var t={top:0,left:0};for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];i.forEach(function(e){var i=e.top;var n=e.left;"string"===typeof i&&(i=parseFloat(i,10));"string"===typeof n&&(n=parseFloat(n,10));t.top+=i;t.left+=n});return t}function V(t,e){"string"===typeof t.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.width);"string"===typeof t.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/100*e.height);return t}var H=function t(e){var i=e.split(" ");var n=E(i,2);var r=n[0];var o=n[1];return{top:r,left:o}};var $=H;var W=function(n){T(r,n);function r(t){var n=this;e(this,r);k(Object.getPrototypeOf(r.prototype),"constructor",this).call(this);this.position=this.position.bind(this);O.push(this);this.history=[];this.setOptions(t,false);i.modules.forEach(function(t){"undefined"!==typeof t.initialize&&t.initialize.call(n)});this.position()}t(r,[{key:"getClass",value:function t(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0];var i=this.options.classes;return"undefined"!==typeof i&&i[e]?this.options.classes[e]:this.options.classPrefix?this.options.classPrefix+"-"+e:e}},{key:"setOptions",value:function t(e){var i=this;var n=arguments.length<=1||void 0===arguments[1]||arguments[1];var r={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=p(r,e);var s=this.options;var a=s.element;var l=s.target;var c=s.targetModifier;this.element=a;this.target=l;this.targetModifier=c;if("viewport"===this.target){this.target=document.body;this.targetModifier="visible"}else if("scroll-handle"===this.target){this.target=document.body;this.targetModifier="scroll-handle"}["element","target"].forEach(function(t){if("undefined"===typeof i[t])throw new Error("Tether Error: Both element and target must be defined");"undefined"!==typeof i[t].jquery?i[t]=i[t][0]:"string"===typeof i[t]&&(i[t]=document.querySelector(i[t]))});g(this.element,this.getClass("element"));false===this.options.addTargetClasses||g(this.target,this.getClass("target"));if(!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=$(this.options.targetAttachment);this.attachment=$(this.options.attachment);this.offset=H(this.options.offset);this.targetOffset=H(this.options.targetOffset);"undefined"!==typeof this.scrollParents&&this.disable();"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=o(this.target);false===this.options.enabled||this.enable(n)}},{key:"getTargetBounds",value:function t(){if("undefined"===typeof this.targetModifier)return u(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var e=u(this.target);var i={height:e.height,width:e.width,top:e.top,left:e.left};i.height=Math.min(i.height,e.height-(pageYOffset-e.top));i.height=Math.min(i.height,e.height-(e.top+e.height-(pageYOffset+innerHeight)));i.height=Math.min(innerHeight,i.height);i.height-=2;i.width=Math.min(i.width,e.width-(pageXOffset-e.left));i.width=Math.min(i.width,e.width-(e.left+e.width-(pageXOffset+innerWidth)));i.width=Math.min(innerWidth,i.width);i.width-=2;i.top<pageYOffset&&(i.top=pageYOffset);i.left<pageXOffset&&(i.left=pageXOffset);return i}if("scroll-handle"===this.targetModifier){var e=void 0;var n=this.target;if(n===document.body){n=document.documentElement;e={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}}else e=u(n);var r=getComputedStyle(n);var o=n.scrollWidth>n.clientWidth||[r.overflow,r.overflowX].indexOf("scroll")>=0||this.target!==document.body;var s=0;o&&(s=15);var a=e.height-parseFloat(r.borderTopWidth)-parseFloat(r.borderBottomWidth)-s;var i={width:15,height:.975*a*(a/n.scrollHeight),left:e.left+e.width-parseFloat(r.borderLeftWidth)-15};var l=0;a<408&&this.target===document.body&&(l=-11e-5*Math.pow(a,2)-.00727*a+22.58);this.target!==document.body&&(i.height=Math.max(i.height,24));var c=this.target.scrollTop/(n.scrollHeight-a);i.top=c*(a-i.height-l)+e.top+parseFloat(r.borderTopWidth);this.target===document.body&&(i.height=Math.max(i.height,24));return i}}},{key:"clearCache",value:function t(){this._cache={}}},{key:"cache",value:function t(e,i){"undefined"===typeof this._cache&&(this._cache={});"undefined"===typeof this._cache[e]&&(this._cache[e]=i.call(this));return this._cache[e]}},{key:"enable",value:function t(){var e=this;var i=arguments.length<=0||void 0===arguments[0]||arguments[0];false===this.options.addTargetClasses||g(this.target,this.getClass("enabled"));g(this.element,this.getClass("enabled"));this.enabled=true;this.scrollParents.forEach(function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)});i&&this.position()}},{key:"disable",value:function t(){var e=this;m(this.target,this.getClass("enabled"));m(this.element,this.getClass("enabled"));this.enabled=false;"undefined"!==typeof this.scrollParents&&this.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.position)})}},{key:"destroy",value:function t(){var e=this;this.disable();O.forEach(function(t,i){t===e&&O.splice(i,1)});0===O.length&&c()}},{key:"updateAttachClasses",value:function t(e,i){var n=this;e=e||this.attachment;i=i||this.targetAttachment;var r=["left","top","bottom","right","middle","center"];"undefined"!==typeof this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length);"undefined"===typeof this._addAttachClasses&&(this._addAttachClasses=[]);var o=this._addAttachClasses;e.top&&o.push(this.getClass("element-attached")+"-"+e.top);e.left&&o.push(this.getClass("element-attached")+"-"+e.left);i.top&&o.push(this.getClass("target-attached")+"-"+i.top);i.left&&o.push(this.getClass("target-attached")+"-"+i.left);var s=[];r.forEach(function(t){s.push(n.getClass("element-attached")+"-"+t);s.push(n.getClass("target-attached")+"-"+t)});_(function(){if(!("undefined"!==typeof n._addAttachClasses))return;b(n.element,n._addAttachClasses,s);false===n.options.addTargetClasses||b(n.target,n._addAttachClasses,s);delete n._addAttachClasses})}},{key:"position",value:function t(){var e=this;var n=arguments.length<=0||void 0===arguments[0]||arguments[0];if(!this.enabled)return;this.clearCache();var r=F(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,r);var o=this.cache("element-bounds",function(){return u(e.element)});var s=o.width;var a=o.height;if(0===s&&0===a&&"undefined"!==typeof this.lastSize){var l=this.lastSize;s=l.width;a=l.height}else this.lastSize={width:s,height:a};var c=this.cache("target-bounds",function(){return e.getTargetBounds()});var f=c;var p=V(R(this.attachment),{width:s,height:a});var m=V(R(r),f);var g=V(this.offset,{width:s,height:a});var v=V(this.targetOffset,f);p=j(p,g);m=j(m,v);var y=c.left+m.left-p.left;var w=c.top+m.top-p.top;for(var b=0;b<i.modules.length;++b){var x=i.modules[b];var _=x.position.call(this,{left:y,top:w,targetAttachment:r,targetPos:c,elementPos:o,offset:p,targetOffset:m,manualOffset:g,manualTargetOffset:v,scrollbarSize:T,attachment:this.attachment});if(false===_)return false;if("undefined"===typeof _||"object"!==typeof _)continue;w=_.top;y=_.left}var S={page:{top:w,left:y},viewport:{top:w-pageYOffset,bottom:pageYOffset-w-a+innerHeight,left:y-pageXOffset,right:pageXOffset-y-s+innerWidth}};var E=this.target.ownerDocument;var k=E.defaultView;var T=void 0;if(k.innerHeight>E.documentElement.clientHeight){T=this.cache("scrollbar-size",h);S.viewport.bottom-=T.height}if(k.innerWidth>E.documentElement.clientWidth){T=this.cache("scrollbar-size",h);S.viewport.right-=T.width}if(-1===["","static"].indexOf(E.body.style.position)||-1===["","static"].indexOf(E.body.parentElement.style.position)){S.page.bottom=E.body.scrollHeight-w-a;S.page.right=E.body.scrollWidth-y-s}"undefined"===typeof this.options.optimizations||false===this.options.optimizations.moveElement||"undefined"!==typeof this.targetModifier||function(){var t=e.cache("target-offsetparent",function(){return d(e.target)});var i=e.cache("target-offsetparent-bounds",function(){return u(t)});var n=getComputedStyle(t);var r=i;var o={};["Top","Left","Bottom","Right"].forEach(function(t){o[t.toLowerCase()]=parseFloat(n["border"+t+"Width"])});i.right=E.body.scrollWidth-i.left-r.width+o.right;i.bottom=E.body.scrollHeight-i.top-r.height+o.bottom;if(S.page.top>=i.top+o.top&&S.page.bottom>=i.bottom&&S.page.left>=i.left+o.left&&S.page.right>=i.right){var s=t.scrollTop;var a=t.scrollLeft;S.offset={top:S.page.top-i.top+s-o.top,left:S.page.left-i.left+a-o.left}}}();this.move(S);this.history.unshift(S);this.history.length>3&&this.history.pop();n&&C();return true}},{key:"move",value:function t(e){var i=this;if(!("undefined"!==typeof this.element.parentNode))return;var n={};for(var r in e){n[r]={};for(var o in e[r]){var s=false;for(var a=0;a<this.history.length;++a){var l=this.history[a];if("undefined"!==typeof l[r]&&!D(l[r][o],e[r][o])){s=true;break}}s||(n[r][o]=true)}}var c={top:"",left:"",right:"",bottom:""};var u=function t(e,n){var r="undefined"!==typeof i.options.optimizations;var o=r?i.options.optimizations.gpu:null;if(false!==o){var s=void 0,a=void 0;if(e.top){c.top=0;s=n.top}else{c.bottom=0;s=-n.bottom}if(e.left){c.left=0;a=n.left}else{c.right=0;a=-n.right}if(window.matchMedia){var l=window.matchMedia("only screen and (min-resolution: 1.3dppx)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3)").matches;if(!l){a=Math.round(a);s=Math.round(s)}}c[I]="translateX("+a+"px) translateY("+s+"px)";"msTransform"!==I&&(c[I]+=" translateZ(0)")}else{e.top?c.top=n.top+"px":c.bottom=n.bottom+"px";e.left?c.left=n.left+"px":c.right=n.right+"px"}};var f=false;if((n.page.top||n.page.bottom)&&(n.page.left||n.page.right)){c.position="absolute";u(n.page,e.page)}else if((n.viewport.top||n.viewport.bottom)&&(n.viewport.left||n.viewport.right)){c.position="fixed";u(n.viewport,e.viewport)}else if("undefined"!==typeof n.offset&&n.offset.top&&n.offset.left)(function(){c.position="absolute";var t=i.cache("target-offsetparent",function(){return d(i.target)});d(i.element)!==t&&_(function(){i.element.parentNode.removeChild(i.element);t.appendChild(i.element)});u(n.offset,e.offset);f=true})();else{c.position="absolute";u({top:true,left:true},e.page)}if(!f)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{var h=function t(e){var i=e.ownerDocument;var n=i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement;return n===e};var m=true;var g=this.element.parentNode;while(g&&1===g.nodeType&&"BODY"!==g.tagName&&!h(g)){if("static"!==getComputedStyle(g).position){m=false;break}g=g.parentNode}if(!m){this.element.parentNode.removeChild(this.element);this.element.ownerDocument.body.appendChild(this.element)}}var v={};var y=false;for(var o in c){var w=c[o];var b=this.element.style[o];if(b!==w){y=true;v[o]=w}}y&&_(function(){p(i.element.style,v);i.trigger("repositioned")})}}]);return r}(S);W.modules=[];i.position=P;var z=p(W,i);"use strict";var E=function(){function t(t,e){var i=[];var n=true;var r=false;var o=void 0;try{for(var s=t[Symbol.iterator](),a;!(n=(a=s.next()).done);n=true){i.push(a.value);if(e&&i.length===e)break}}catch(t){r=true;o=t}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();var A=i.Utils;var u=A.getBounds;var p=A.extend;var b=A.updateClasses;var _=A.defer;var U=["left","top","right","bottom"];function q(t,e){"scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]);e===document&&(e=e.documentElement);"undefined"!==typeof e.nodeType&&function(){var t=e;var i=u(e);var n=i;var r=getComputedStyle(e);e=[n.left,n.top,i.width+n.left,i.height+n.top];if(t.ownerDocument!==document){var o=t.ownerDocument.defaultView;e[0]+=o.pageXOffset;e[1]+=o.pageYOffset;e[2]+=o.pageXOffset;e[3]+=o.pageYOffset}U.forEach(function(t,i){t=t[0].toUpperCase()+t.substr(1);"Top"===t||"Left"===t?e[i]+=parseFloat(r["border"+t+"Width"]):e[i]-=parseFloat(r["border"+t+"Width"])})}();return e}i.modules.push({position:function t(e){var i=this;var n=e.top;var r=e.left;var o=e.targetAttachment;if(!this.options.constraints)return true;var s=this.cache("element-bounds",function(){return u(i.element)});var a=s.height;var l=s.width;if(0===l&&0===a&&"undefined"!==typeof this.lastSize){var c=this.lastSize;l=c.width;a=c.height}var d=this.cache("target-bounds",function(){return i.getTargetBounds()});var f=d.height;var h=d.width;var m=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass;var i=t.pinnedClass;e&&m.push(e);i&&m.push(i)});m.forEach(function(t){["left","top","right","bottom"].forEach(function(e){m.push(t+"-"+e)})});var g=[];var v=p({},o);var y=p({},this.attachment);this.options.constraints.forEach(function(t){var e=t.to;var s=t.attachment;var c=t.pin;"undefined"===typeof s&&(s="");var u=void 0,d=void 0;if(s.indexOf(" ")>=0){var p=s.split(" ");var m=E(p,2);d=m[0];u=m[1]}else u=d=s;var w=q(i,e);if("target"===d||"both"===d){if(n<w[1]&&"top"===v.top){n+=f;v.top="bottom"}if(n+a>w[3]&&"bottom"===v.top){n-=f;v.top="top"}}if("together"===d){if("top"===v.top)if("bottom"===y.top&&n<w[1]){n+=f;v.top="bottom";n+=a;y.top="top"}else if("top"===y.top&&n+a>w[3]&&n-(a-f)>=w[1]){n-=a-f;v.top="bottom";y.top="bottom"}if("bottom"===v.top)if("top"===y.top&&n+a>w[3]){n-=f;v.top="top";n-=a;y.top="bottom"}else if("bottom"===y.top&&n<w[1]&&n+(2*a-f)<=w[3]){n+=a-f;v.top="top";y.top="top"}if("middle"===v.top)if(n+a>w[3]&&"top"===y.top){n-=a;y.top="bottom"}else if(n<w[1]&&"bottom"===y.top){n+=a;y.top="top"}}if("target"===u||"both"===u){if(r<w[0]&&"left"===v.left){r+=h;v.left="right"}if(r+l>w[2]&&"right"===v.left){r-=h;v.left="left"}}if("together"===u)if(r<w[0]&&"left"===v.left){if("right"===y.left){r+=h;v.left="right";r+=l;y.left="left"}else if("left"===y.left){r+=h;v.left="right";r-=l;y.left="right"}}else if(r+l>w[2]&&"right"===v.left){if("left"===y.left){r-=h;v.left="left";r-=l;y.left="right"}else if("right"===y.left){r-=h;v.left="left";r+=l;y.left="left"}}else if("center"===v.left)if(r+l>w[2]&&"left"===y.left){r-=l;y.left="right"}else if(r<w[0]&&"right"===y.left){r+=l;y.left="left"}if("element"===d||"both"===d){if(n<w[1]&&"bottom"===y.top){n+=a;y.top="top"}if(n+a>w[3]&&"top"===y.top){n-=a;y.top="bottom"}}if("element"===u||"both"===u){if(r<w[0])if("right"===y.left){r+=l;y.left="left"}else if("center"===y.left){r+=l/2;y.left="left"}if(r+l>w[2])if("left"===y.left){r-=l;y.left="right"}else if("center"===y.left){r-=l/2;y.left="right"}}"string"===typeof c?c=c.split(",").map(function(t){return t.trim()}):true===c&&(c=["top","left","right","bottom"]);c=c||[];var b=[];var x=[];if(n<w[1])if(c.indexOf("top")>=0){n=w[1];b.push("top")}else x.push("top");if(n+a>w[3])if(c.indexOf("bottom")>=0){n=w[3]-a;b.push("bottom")}else x.push("bottom");if(r<w[0])if(c.indexOf("left")>=0){r=w[0];b.push("left")}else x.push("left");if(r+l>w[2])if(c.indexOf("right")>=0){r=w[2]-l;b.push("right")}else x.push("right");b.length&&function(){var t=void 0;t="undefined"!==typeof i.options.pinnedClass?i.options.pinnedClass:i.getClass("pinned");g.push(t);b.forEach(function(e){g.push(t+"-"+e)})}();x.length&&function(){var t=void 0;t="undefined"!==typeof i.options.outOfBoundsClass?i.options.outOfBoundsClass:i.getClass("out-of-bounds");g.push(t);x.forEach(function(e){g.push(t+"-"+e)})}();(b.indexOf("left")>=0||b.indexOf("right")>=0)&&(y.left=v.left=false);(b.indexOf("top")>=0||b.indexOf("bottom")>=0)&&(y.top=v.top=false);if(v.top!==o.top||v.left!==o.left||y.top!==i.attachment.top||y.left!==i.attachment.left){i.updateAttachClasses(y,v);i.trigger("update",{attachment:y,targetAttachment:v})}});_(function(){false===i.options.addTargetClasses||b(i.target,g,m);b(i.element,g,m)});return{top:n,left:r}}});"use strict";var A=i.Utils;var u=A.getBounds;var b=A.updateClasses;var _=A.defer;i.modules.push({position:function t(e){var i=this;var n=e.top;var r=e.left;var o=this.cache("element-bounds",function(){return u(i.element)});var s=o.height;var a=o.width;var l=this.getTargetBounds();var c=n+s;var d=r+a;var f=[];n<=l.bottom&&c>=l.top&&["left","right"].forEach(function(t){var e=l[t];e!==r&&e!==d||f.push(t)});r<=l.right&&d>=l.left&&["top","bottom"].forEach(function(t){var e=l[t];e!==n&&e!==c||f.push(t)});var h=[];var p=[];var m=["left","top","right","bottom"];h.push(this.getClass("abutted"));m.forEach(function(t){h.push(i.getClass("abutted")+"-"+t)});f.length&&p.push(this.getClass("abutted"));f.forEach(function(t){p.push(i.getClass("abutted")+"-"+t)});_(function(){false===i.options.addTargetClasses||b(i.target,p,h);b(i.element,p,h)});return true}});"use strict";var E=function(){function t(t,e){var i=[];var n=true;var r=false;var o=void 0;try{for(var s=t[Symbol.iterator](),a;!(n=(a=s.next()).done);n=true){i.push(a.value);if(e&&i.length===e)break}}catch(t){r=true;o=t}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();i.modules.push({position:function t(e){var i=e.top;var n=e.left;if(!this.options.shift)return;var r=this.options.shift;"function"===typeof this.options.shift&&(r=this.options.shift.call(this,{top:i,left:n}));var o=void 0,s=void 0;if("string"===typeof r){r=r.split(" ");r[1]=r[1]||r[0];var a=r;var l=E(a,2);o=l[0];s=l[1];o=parseFloat(o,10);s=parseFloat(s,10)}else{o=r.top;s=r.left}i+=o;n+=s;return{top:i,left:n}}});return z})},function(t,e){
|
|
/*!
|
|
* Bootstrap v4.0.0-alpha.5 (https://getbootstrap.com)
|
|
* Copyright 2011-2016 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
|
*/
|
|
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(jQuery),+function(){function t(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function e(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=function(t){function e(t){return{}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function i(t){return(t[0]||t).nodeType}function n(){return{bindType:a.end,delegateType:a.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}}function r(){if(window.QUnit)return!1;var t=document.createElement("bootstrap");for(var e in c)if(void 0!==t.style[e])return{end:c[e]};return!1}function o(e){var i=this,n=!1;return t(this).one(u.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||u.triggerTransitionEnd(i)},e),this}function s(){a=r(),t.fn.emulateTransitionEnd=o,u.supportsTransitionEnd()&&(t.event.special[u.TRANSITION_END]=n())}var a=!1,l=1e6,c={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},u={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(Math.random()*l)}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");return e||(e=t.getAttribute("href")||"",e=/^#[a-z]/i.test(e)?e:null),e},reflow:function(t){new Function("bs","return bs")(t.offsetHeight)},triggerTransitionEnd:function(e){t(e).trigger(a.end)},supportsTransitionEnd:function(){return Boolean(a)},typeCheckConfig:function(t,n,r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o],a=n[o],l=void 0;if(l=a&&i(a)?"element":e(a),!new RegExp(s).test(l))throw new Error(t.toUpperCase()+': Option "'+o+'" provided type "'+l+'" but expected type "'+s+'".')}}};return s(),u}(jQuery),s=(function(t){var e="alert",n="4.0.0-alpha.5",s="bs.alert",a="."+s,l=".data-api",c=t.fn[e],u=150,d={DISMISS:'[data-dismiss="alert"]'},f={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+l},h={ALERT:"alert",FADE:"fade",IN:"in"},p=function(){function e(t){i(this,e),this._element=t}return e.prototype.close=function(t){t=t||this._element;var e=this._getRootElement(t),i=this._triggerCloseEvent(e);i.isDefaultPrevented()||this._removeElement(e)},e.prototype.dispose=function(){t.removeData(this._element,s),this._element=null},e.prototype._getRootElement=function(e){var i=o.getSelectorFromElement(e),n=!1;return i&&(n=t(i)[0]),n||(n=t(e).closest("."+h.ALERT)[0]),n},e.prototype._triggerCloseEvent=function(e){var i=t.Event(f.CLOSE);return t(e).trigger(i),i},e.prototype._removeElement=function(e){return t(e).removeClass(h.IN),o.supportsTransitionEnd()&&t(e).hasClass(h.FADE)?void t(e).one(o.TRANSITION_END,t.proxy(this._destroyElement,this,e)).emulateTransitionEnd(u):void this._destroyElement(e)},e.prototype._destroyElement=function(e){t(e).detach().trigger(f.CLOSED).remove()},e._jQueryInterface=function(i){return this.each(function(){var n=t(this),r=n.data(s);r||(r=new e(this),n.data(s,r)),"close"===i&&r[i](this)})},e._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},r(e,null,[{key:"VERSION",get:function(){return n}}]),e}();return t(document).on(f.CLICK_DATA_API,d.DISMISS,p._handleDismiss(new p)),t.fn[e]=p._jQueryInterface,t.fn[e].Constructor=p,t.fn[e].noConflict=function(){return t.fn[e]=c,p._jQueryInterface},p}(jQuery),function(t){var e="button",n="4.0.0-alpha.5",o="bs.button",s="."+o,a=".data-api",l=t.fn[e],c={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},u={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},d={CLICK_DATA_API:"click"+s+a,FOCUS_BLUR_DATA_API:"focus"+s+a+" blur"+s+a},f=function(){function e(t){i(this,e),this._element=t}return e.prototype.toggle=function(){var e=!0,i=t(this._element).closest(u.DATA_TOGGLE)[0];if(i){var n=t(this._element).find(u.INPUT)[0];if(n){if("radio"===n.type)if(n.checked&&t(this._element).hasClass(c.ACTIVE))e=!1;else{var r=t(i).find(u.ACTIVE)[0];r&&t(r).removeClass(c.ACTIVE)}e&&(n.checked=!t(this._element).hasClass(c.ACTIVE),t(this._element).trigger("change")),n.focus()}}else this._element.setAttribute("aria-pressed",!t(this._element).hasClass(c.ACTIVE));e&&t(this._element).toggleClass(c.ACTIVE)},e.prototype.dispose=function(){t.removeData(this._element,o),this._element=null},e._jQueryInterface=function(i){return this.each(function(){var n=t(this).data(o);n||(n=new e(this),t(this).data(o,n)),"toggle"===i&&n[i]()})},r(e,null,[{key:"VERSION",get:function(){return n}}]),e}();return t(document).on(d.CLICK_DATA_API,u.DATA_TOGGLE_CARROT,function(e){e.preventDefault();var i=e.target;t(i).hasClass(c.BUTTON)||(i=t(i).closest(u.BUTTON)),f._jQueryInterface.call(t(i),"toggle")}).on(d.FOCUS_BLUR_DATA_API,u.DATA_TOGGLE_CARROT,function(e){var i=t(e.target).closest(u.BUTTON)[0];t(i).toggleClass(c.FOCUS,/^focus(in)?$/.test(e.type))}),t.fn[e]=f._jQueryInterface,t.fn[e].Constructor=f,t.fn[e].noConflict=function(){return t.fn[e]=l,f._jQueryInterface},f}(jQuery),function(t){var e="carousel",s="4.0.0-alpha.5",a="bs.carousel",l="."+a,c=".data-api",u=t.fn[e],d=600,f=37,h=39,p={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},m={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},g={NEXT:"next",PREVIOUS:"prev"},v={SLIDE:"slide"+l,SLID:"slid"+l,KEYDOWN:"keydown"+l,MOUSEENTER:"mouseenter"+l,MOUSELEAVE:"mouseleave"+l,LOAD_DATA_API:"load"+l+c,CLICK_DATA_API:"click"+l+c},y={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"right",LEFT:"left",ITEM:"carousel-item"},w={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".next, .prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},b=function(){function c(e,n){i(this,c),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this._config=this._getConfig(n),this._element=t(e)[0],this._indicatorsElement=t(this._element).find(w.INDICATORS)[0],this._addEventListeners()}return c.prototype.next=function(){this._isSliding||this._slide(g.NEXT)},c.prototype.nextWhenVisible=function(){document.hidden||this.next()},c.prototype.prev=function(){this._isSliding||this._slide(g.PREVIOUS)},c.prototype.pause=function(e){e||(this._isPaused=!0),t(this._element).find(w.NEXT_PREV)[0]&&o.supportsTransitionEnd()&&(o.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},c.prototype.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval(t.proxy(document.visibilityState?this.nextWhenVisible:this.next,this),this._config.interval))},c.prototype.to=function(e){var i=this;this._activeElement=t(this._element).find(w.ACTIVE_ITEM)[0];var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0)){if(this._isSliding)return void t(this._element).one(v.SLID,function(){return i.to(e)});if(n===e)return this.pause(),void this.cycle();var r=e>n?g.NEXT:g.PREVIOUS;this._slide(r,this._items[e])}},c.prototype.dispose=function(){t(this._element).off(l),t.removeData(this._element,a),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},c.prototype._getConfig=function(i){return i=t.extend({},p,i),o.typeCheckConfig(e,i,m),i},c.prototype._addEventListeners=function(){this._config.keyboard&&t(this._element).on(v.KEYDOWN,t.proxy(this._keydown,this)),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||t(this._element).on(v.MOUSEENTER,t.proxy(this.pause,this)).on(v.MOUSELEAVE,t.proxy(this.cycle,this))},c.prototype._keydown=function(t){if(t.preventDefault(),!/input|textarea/i.test(t.target.tagName))switch(t.which){case f:this.prev();break;case h:this.next();break;default:return}},c.prototype._getItemIndex=function(e){return this._items=t.makeArray(t(e).parent().find(w.ITEM)),this._items.indexOf(e)},c.prototype._getItemByDirection=function(t,e){var i=t===g.NEXT,n=t===g.PREVIOUS,r=this._getItemIndex(e),o=this._items.length-1,s=n&&0===r||i&&r===o;if(s&&!this._config.wrap)return e;var a=t===g.PREVIOUS?-1:1,l=(r+a)%this._items.length;return-1===l?this._items[this._items.length-1]:this._items[l]},c.prototype._triggerSlideEvent=function(e,i){var n=t.Event(v.SLIDE,{relatedTarget:e,direction:i});return t(this._element).trigger(n),n},c.prototype._setActiveIndicatorElement=function(e){if(this._indicatorsElement){t(this._indicatorsElement).find(w.ACTIVE).removeClass(y.ACTIVE);var i=this._indicatorsElement.children[this._getItemIndex(e)];i&&t(i).addClass(y.ACTIVE)}},c.prototype._slide=function(e,i){var n=this,r=t(this._element).find(w.ACTIVE_ITEM)[0],s=i||r&&this._getItemByDirection(e,r),a=Boolean(this._interval),l=e===g.NEXT?y.LEFT:y.RIGHT;if(s&&t(s).hasClass(y.ACTIVE))return void(this._isSliding=!1);var c=this._triggerSlideEvent(s,l);if(!c.isDefaultPrevented()&&r&&s){this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(s);var u=t.Event(v.SLID,{relatedTarget:s,direction:l});o.supportsTransitionEnd()&&t(this._element).hasClass(y.SLIDE)?(t(s).addClass(e),o.reflow(s),t(r).addClass(l),t(s).addClass(l),t(r).one(o.TRANSITION_END,function(){t(s).removeClass(l).removeClass(e),t(s).addClass(y.ACTIVE),t(r).removeClass(y.ACTIVE).removeClass(e).removeClass(l),n._isSliding=!1,setTimeout(function(){return t(n._element).trigger(u)},0)}).emulateTransitionEnd(d)):(t(r).removeClass(y.ACTIVE),t(s).addClass(y.ACTIVE),this._isSliding=!1,t(this._element).trigger(u)),a&&this.cycle()}},c._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(a),r=t.extend({},p,t(this).data());"object"===("undefined"==typeof e?"undefined":n(e))&&t.extend(r,e);var o="string"==typeof e?e:r.slide;if(i||(i=new c(this,r),t(this).data(a,i)),"number"==typeof e)i.to(e);else if("string"==typeof o){if(void 0===i[o])throw new Error('No method named "'+o+'"');i[o]()}else r.interval&&(i.pause(),i.cycle())})},c._dataApiClickHandler=function(e){var i=o.getSelectorFromElement(this);if(i){var n=t(i)[0];if(n&&t(n).hasClass(y.CAROUSEL)){var r=t.extend({},t(n).data(),t(this).data()),s=this.getAttribute("data-slide-to");s&&(r.interval=!1),c._jQueryInterface.call(t(n),r),s&&t(n).data(a).to(s),e.preventDefault()}}},r(c,null,[{key:"VERSION",get:function(){return s}},{key:"Default",get:function(){return p}}]),c}();return t(document).on(v.CLICK_DATA_API,w.DATA_SLIDE,b._dataApiClickHandler),t(window).on(v.LOAD_DATA_API,function(){t(w.DATA_RIDE).each(function(){var e=t(this);b._jQueryInterface.call(e,e.data())})}),t.fn[e]=b._jQueryInterface,t.fn[e].Constructor=b,t.fn[e].noConflict=function(){return t.fn[e]=u,b._jQueryInterface},b}(jQuery),function(t){var e="collapse",s="4.0.0-alpha.5",a="bs.collapse",l="."+a,c=".data-api",u=t.fn[e],d=600,f={toggle:!0,parent:""},h={toggle:"boolean",parent:"string"},p={SHOW:"show"+l,SHOWN:"shown"+l,HIDE:"hide"+l,HIDDEN:"hidden"+l,CLICK_DATA_API:"click"+l+c},m={IN:"in",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},g={WIDTH:"width",HEIGHT:"height"},v={ACTIVES:".card > .in, .card > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},y=function(){function l(e,n){i(this,l),this._isTransitioning=!1,this._element=e,this._config=this._getConfig(n),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return l.prototype.toggle=function(){t(this._element).hasClass(m.IN)?this.hide():this.show()},l.prototype.show=function(){var e=this;if(!this._isTransitioning&&!t(this._element).hasClass(m.IN)){var i=void 0,n=void 0;if(this._parent&&(i=t.makeArray(t(v.ACTIVES)),i.length||(i=null)),!(i&&(n=t(i).data(a),n&&n._isTransitioning))){var r=t.Event(p.SHOW);if(t(this._element).trigger(r),!r.isDefaultPrevented()){i&&(l._jQueryInterface.call(t(i),"hide"),n||t(i).data(a,null));var s=this._getDimension();t(this._element).removeClass(m.COLLAPSE).addClass(m.COLLAPSING),this._element.style[s]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&t(this._triggerArray).removeClass(m.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var c=function(){t(e._element).removeClass(m.COLLAPSING).addClass(m.COLLAPSE).addClass(m.IN),e._element.style[s]="",e.setTransitioning(!1),t(e._element).trigger(p.SHOWN)};if(!o.supportsTransitionEnd())return void c();var u=s[0].toUpperCase()+s.slice(1),f="scroll"+u;t(this._element).one(o.TRANSITION_END,c).emulateTransitionEnd(d),this._element.style[s]=this._element[f]+"px"}}}},l.prototype.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(m.IN)){var i=t.Event(p.HIDE);if(t(this._element).trigger(i),!i.isDefaultPrevented()){var n=this._getDimension(),r=n===g.WIDTH?"offsetWidth":"offsetHeight";this._element.style[n]=this._element[r]+"px",o.reflow(this._element),t(this._element).addClass(m.COLLAPSING).removeClass(m.COLLAPSE).removeClass(m.IN),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&t(this._triggerArray).addClass(m.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0);var s=function(){e.setTransitioning(!1),t(e._element).removeClass(m.COLLAPSING).addClass(m.COLLAPSE).trigger(p.HIDDEN)};return this._element.style[n]="",o.supportsTransitionEnd()?void t(this._element).one(o.TRANSITION_END,s).emulateTransitionEnd(d):void s()}}},l.prototype.setTransitioning=function(t){this._isTransitioning=t},l.prototype.dispose=function(){t.removeData(this._element,a),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},l.prototype._getConfig=function(i){return i=t.extend({},f,i),i.toggle=Boolean(i.toggle),o.typeCheckConfig(e,i,h),i},l.prototype._getDimension=function(){var e=t(this._element).hasClass(g.WIDTH);return e?g.WIDTH:g.HEIGHT},l.prototype._getParent=function(){var e=this,i=t(this._config.parent)[0],n='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return t(i).find(n).each(function(t,i){e._addAriaAndCollapsedClass(l._getTargetFromElement(i),[i])}),i},l.prototype._addAriaAndCollapsedClass=function(e,i){if(e){var n=t(e).hasClass(m.IN);e.setAttribute("aria-expanded",n),i.length&&t(i).toggleClass(m.COLLAPSED,!n).attr("aria-expanded",n)}},l._getTargetFromElement=function(e){var i=o.getSelectorFromElement(e);return i?t(i)[0]:null},l._jQueryInterface=function(e){return this.each(function(){var i=t(this),r=i.data(a),o=t.extend({},f,i.data(),"object"===("undefined"==typeof e?"undefined":n(e))&&e);if(!r&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),r||(r=new l(this,o),i.data(a,r)),"string"==typeof e){if(void 0===r[e])throw new Error('No method named "'+e+'"');r[e]()}})},r(l,null,[{key:"VERSION",get:function(){return s}},{key:"Default",get:function(){return f}}]),l}();return t(document).on(p.CLICK_DATA_API,v.DATA_TOGGLE,function(e){e.preventDefault();var i=y._getTargetFromElement(this),n=t(i).data(a),r=n?"toggle":t(this).data();y._jQueryInterface.call(t(i),r)}),t.fn[e]=y._jQueryInterface,t.fn[e].Constructor=y,t.fn[e].noConflict=function(){return t.fn[e]=u,y._jQueryInterface},y}(jQuery),function(t){var e="dropdown",n="4.0.0-alpha.5",s="bs.dropdown",a="."+s,l=".data-api",c=t.fn[e],u=27,d=38,f=40,h=3,p={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,CLICK:"click"+a,CLICK_DATA_API:"click"+a+l,KEYDOWN_DATA_API:"keydown"+a+l},m={BACKDROP:"dropdown-backdrop",DISABLED:"disabled",OPEN:"open"},g={BACKDROP:".dropdown-backdrop",DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",ROLE_MENU:'[role="menu"]',ROLE_LISTBOX:'[role="listbox"]',NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:'[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a'},v=function(){function e(t){i(this,e),this._element=t,this._addEventListeners()}return e.prototype.toggle=function(){if(this.disabled||t(this).hasClass(m.DISABLED))return!1;var i=e._getParentFromElement(this),n=t(i).hasClass(m.OPEN);if(e._clearMenus(),n)return!1;if("ontouchstart"in document.documentElement&&!t(i).closest(g.NAVBAR_NAV).length){var r=document.createElement("div");r.className=m.BACKDROP,t(r).insertBefore(this),t(r).on("click",e._clearMenus)}var o={relatedTarget:this},s=t.Event(p.SHOW,o);return t(i).trigger(s),!s.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded","true"),t(i).toggleClass(m.OPEN),t(i).trigger(t.Event(p.SHOWN,o)),!1)},e.prototype.dispose=function(){t.removeData(this._element,s),t(this._element).off(a),this._element=null},e.prototype._addEventListeners=function(){t(this._element).on(p.CLICK,this.toggle)},e._jQueryInterface=function(i){return this.each(function(){var n=t(this).data(s);if(n||t(this).data(s,n=new e(this)),"string"==typeof i){if(void 0===n[i])throw new Error('No method named "'+i+'"');n[i].call(this)}})},e._clearMenus=function(i){if(!i||i.which!==h){var n=t(g.BACKDROP)[0];n&&n.parentNode.removeChild(n);for(var r=t.makeArray(t(g.DATA_TOGGLE)),o=0;o<r.length;o++){var s=e._getParentFromElement(r[o]),a={relatedTarget:r[o]};if(t(s).hasClass(m.OPEN)&&!(i&&"click"===i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(s,i.target))){var l=t.Event(p.HIDE,a);t(s).trigger(l),l.isDefaultPrevented()||(r[o].setAttribute("aria-expanded","false"),t(s).removeClass(m.OPEN).trigger(t.Event(p.HIDDEN,a)))}}}},e._getParentFromElement=function(e){var i=void 0,n=o.getSelectorFromElement(e);return n&&(i=t(n)[0]),i||e.parentNode},e._dataApiKeydownHandler=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)&&(i.preventDefault(),i.stopPropagation(),!this.disabled&&!t(this).hasClass(m.DISABLED))){var n=e._getParentFromElement(this),r=t(n).hasClass(m.OPEN);if(!r&&i.which!==u||r&&i.which===u){if(i.which===u){var o=t(n).find(g.DATA_TOGGLE)[0];t(o).trigger("focus")}return void t(this).trigger("click")}var s=t.makeArray(t(g.VISIBLE_ITEMS));if(s=s.filter(function(t){return t.offsetWidth||t.offsetHeight}),s.length){var a=s.indexOf(i.target);i.which===d&&a>0&&a--,i.which===f&&a<s.length-1&&a++,a<0&&(a=0),s[a].focus()}}},r(e,null,[{key:"VERSION",get:function(){return n}}]),e}();return t(document).on(p.KEYDOWN_DATA_API,g.DATA_TOGGLE,v._dataApiKeydownHandler).on(p.KEYDOWN_DATA_API,g.ROLE_MENU,v._dataApiKeydownHandler).on(p.KEYDOWN_DATA_API,g.ROLE_LISTBOX,v._dataApiKeydownHandler).on(p.CLICK_DATA_API,v._clearMenus).on(p.CLICK_DATA_API,g.DATA_TOGGLE,v.prototype.toggle).on(p.CLICK_DATA_API,g.FORM_CHILD,function(t){t.stopPropagation()}),t.fn[e]=v._jQueryInterface,t.fn[e].Constructor=v,t.fn[e].noConflict=function(){return t.fn[e]=c,v._jQueryInterface},v}(jQuery),function(t){var e="modal",s="4.0.0-alpha.5",a="bs.modal",l="."+a,c=".data-api",u=t.fn[e],d=300,f=150,h=27,p={backdrop:!0,keyboard:!0,focus:!0,show:!0},m={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},g={HIDE:"hide"+l,HIDDEN:"hidden"+l,SHOW:"show"+l,SHOWN:"shown"+l,FOCUSIN:"focusin"+l,RESIZE:"resize"+l,CLICK_DISMISS:"click.dismiss"+l,KEYDOWN_DISMISS:"keydown.dismiss"+l,MOUSEUP_DISMISS:"mouseup.dismiss"+l,MOUSEDOWN_DISMISS:"mousedown.dismiss"+l,CLICK_DATA_API:"click"+l+c},v={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",IN:"in"},y={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".navbar-fixed-top, .navbar-fixed-bottom, .is-fixed"},w=function(){function c(e,n){i(this,c),this._config=this._getConfig(n),this._element=e,this._dialog=t(e).find(y.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return c.prototype.toggle=function(t){return this._isShown?this.hide():this.show(t)},c.prototype.show=function(e){var i=this,n=t.Event(g.SHOW,{relatedTarget:e});t(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),t(document.body).addClass(v.OPEN),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(g.CLICK_DISMISS,y.DATA_DISMISS,t.proxy(this.hide,this)),t(this._dialog).on(g.MOUSEDOWN_DISMISS,function(){t(i._element).one(g.MOUSEUP_DISMISS,function(e){t(e.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(t.proxy(this._showElement,this,e)))},c.prototype.hide=function(e){e&&e.preventDefault();var i=t.Event(g.HIDE);t(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),t(document).off(g.FOCUSIN),t(this._element).removeClass(v.IN),t(this._element).off(g.CLICK_DISMISS),t(this._dialog).off(g.MOUSEDOWN_DISMISS),o.supportsTransitionEnd()&&t(this._element).hasClass(v.FADE)?t(this._element).one(o.TRANSITION_END,t.proxy(this._hideModal,this)).emulateTransitionEnd(d):this._hideModal())},c.prototype.dispose=function(){t.removeData(this._element,a),t(window).off(l),t(document).off(l),t(this._element).off(l),t(this._backdrop).off(l),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._originalBodyPadding=null,this._scrollbarWidth=null},c.prototype._getConfig=function(i){return i=t.extend({},p,i),o.typeCheckConfig(e,i,m),i},c.prototype._showElement=function(e){var i=this,n=o.supportsTransitionEnd()&&t(this._element).hasClass(v.FADE);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.scrollTop=0,n&&o.reflow(this._element),t(this._element).addClass(v.IN),this._config.focus&&this._enforceFocus();var r=t.Event(g.SHOWN,{relatedTarget:e}),s=function(){i._config.focus&&i._element.focus(),t(i._element).trigger(r)};n?t(this._dialog).one(o.TRANSITION_END,s).emulateTransitionEnd(d):s()},c.prototype._enforceFocus=function(){var e=this;t(document).off(g.FOCUSIN).on(g.FOCUSIN,function(i){document===i.target||e._element===i.target||t(e._element).has(i.target).length||e._element.focus()})},c.prototype._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(g.KEYDOWN_DISMISS,function(t){t.which===h&&e.hide()}):this._isShown||t(this._element).off(g.KEYDOWN_DISMISS)},c.prototype._setResizeEvent=function(){this._isShown?t(window).on(g.RESIZE,t.proxy(this._handleUpdate,this)):t(window).off(g.RESIZE)},c.prototype._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden","true"),this._showBackdrop(function(){t(document.body).removeClass(v.OPEN),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(g.HIDDEN)})},c.prototype._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},c.prototype._showBackdrop=function(e){var i=this,n=t(this._element).hasClass(v.FADE)?v.FADE:"";if(this._isShown&&this._config.backdrop){var r=o.supportsTransitionEnd()&&n;if(this._backdrop=document.createElement("div"),this._backdrop.className=v.BACKDROP,n&&t(this._backdrop).addClass(n),t(this._backdrop).appendTo(document.body),t(this._element).on(g.CLICK_DISMISS,function(t){return i._ignoreBackdropClick?void(i._ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"===i._config.backdrop?i._element.focus():i.hide()))}),r&&o.reflow(this._backdrop),t(this._backdrop).addClass(v.IN),!e)return;if(!r)return void e();t(this._backdrop).one(o.TRANSITION_END,e).emulateTransitionEnd(f)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(v.IN);var s=function(){i._removeBackdrop(),e&&e()};o.supportsTransitionEnd()&&t(this._element).hasClass(v.FADE)?t(this._backdrop).one(o.TRANSITION_END,s).emulateTransitionEnd(f):s()}else e&&e()},c.prototype._handleUpdate=function(){this._adjustDialog()},c.prototype._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},c.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},c.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},c.prototype._setScrollbar=function(){var e=parseInt(t(y.FIXED_CONTENT).css("padding-right")||0,10);this._originalBodyPadding=document.body.style.paddingRight||"",this._isBodyOverflowing&&(document.body.style.paddingRight=e+this._scrollbarWidth+"px")},c.prototype._resetScrollbar=function(){document.body.style.paddingRight=this._originalBodyPadding},c.prototype._getScrollbarWidth=function(){var t=document.createElement("div");t.className=v.SCROLLBAR_MEASURER,document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e},c._jQueryInterface=function(e,i){return this.each(function(){var r=t(this).data(a),o=t.extend({},c.Default,t(this).data(),"object"===("undefined"==typeof e?"undefined":n(e))&&e);if(r||(r=new c(this,o),t(this).data(a,r)),"string"==typeof e){if(void 0===r[e])throw new Error('No method named "'+e+'"');r[e](i)}else o.show&&r.show(i)})},r(c,null,[{key:"VERSION",get:function(){return s}},{key:"Default",get:function(){return p}}]),c}();return t(document).on(g.CLICK_DATA_API,y.DATA_TOGGLE,function(e){var i=this,n=void 0,r=o.getSelectorFromElement(this);r&&(n=t(r)[0]);var s=t(n).data(a)?"toggle":t.extend({},t(n).data(),t(this).data());"A"===this.tagName&&e.preventDefault();var l=t(n).one(g.SHOW,function(e){e.isDefaultPrevented()||l.one(g.HIDDEN,function(){t(i).is(":visible")&&i.focus()})});w._jQueryInterface.call(t(n),s,this)}),t.fn[e]=w._jQueryInterface,t.fn[e].Constructor=w,t.fn[e].noConflict=function(){return t.fn[e]=u,w._jQueryInterface},w}(jQuery),function(t){var e="scrollspy",s="4.0.0-alpha.5",a="bs.scrollspy",l="."+a,c=".data-api",u=t.fn[e],d={offset:10,method:"auto",target:""},f={offset:"number",method:"string",target:"(string|element)"},h={ACTIVATE:"activate"+l,SCROLL:"scroll"+l,LOAD_DATA_API:"load"+l+c},p={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",NAV_LINK:"nav-link",NAV:"nav",ACTIVE:"active"},m={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",LIST_ITEM:".list-item",LI:"li",LI_DROPDOWN:"li.dropdown",NAV_LINKS:".nav-link",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},g={OFFSET:"offset",POSITION:"position"},v=function(){function c(e,n){i(this,c),this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+m.NAV_LINKS+","+this._config.target+" "+m.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(h.SCROLL,t.proxy(this._process,this)),this.refresh(),this._process()}return c.prototype.refresh=function(){var e=this,i=this._scrollElement!==this._scrollElement.window?g.POSITION:g.OFFSET,n="auto"===this._config.method?i:this._config.method,r=n===g.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();var s=t.makeArray(t(this._selector));s.map(function(e){var i=void 0,s=o.getSelectorFromElement(e);return s&&(i=t(s)[0]),i&&(i.offsetWidth||i.offsetHeight)?[t(i)[n]().top+r,s]:null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},c.prototype.dispose=function(){t.removeData(this._element,a),t(this._scrollElement).off(l),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},c.prototype._getConfig=function(i){if(i=t.extend({},d,i),"string"!=typeof i.target){var n=t(i.target).attr("id");n||(n=o.getUID(e),t(i.target).attr("id",n)),i.target="#"+n}return o.typeCheckConfig(e,i,f),i},c.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.scrollY:this._scrollElement.scrollTop},c.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},c.prototype._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._scrollElement.offsetHeight;if(this._scrollHeight!==e&&this.refresh(),t>=i){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}if(this._activeTarget&&t<this._offsets[0])return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;){var o=this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&(void 0===this._offsets[r+1]||t<this._offsets[r+1]);o&&this._activate(this._targets[r])}},c.prototype._activate=function(e){this._activeTarget=e,this._clear();var i=this._selector.split(",");i=i.map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'});var n=t(i.join(","));n.hasClass(p.DROPDOWN_ITEM)?(n.closest(m.DROPDOWN).find(m.DROPDOWN_TOGGLE).addClass(p.ACTIVE),n.addClass(p.ACTIVE)):n.parents(m.LI).find(m.NAV_LINKS).addClass(p.ACTIVE),t(this._scrollElement).trigger(h.ACTIVATE,{relatedTarget:e})},c.prototype._clear=function(){t(this._selector).filter(m.ACTIVE).removeClass(p.ACTIVE)},c._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(a),r="object"===("undefined"==typeof e?"undefined":n(e))&&e||null;if(i||(i=new c(this,r),t(this).data(a,i)),"string"==typeof e){if(void 0===i[e])throw new Error('No method named "'+e+'"');i[e]()}})},r(c,null,[{key:"VERSION",get:function(){return s}},{key:"Default",get:function(){return d}}]),c}();return t(window).on(h.LOAD_DATA_API,function(){for(var e=t.makeArray(t(m.DATA_SPY)),i=e.length;i--;){var n=t(e[i]);v._jQueryInterface.call(n,n.data())}}),t.fn[e]=v._jQueryInterface,t.fn[e].Constructor=v,t.fn[e].noConflict=function(){return t.fn[e]=u,v._jQueryInterface},v}(jQuery),function(t){var e="tab",n="4.0.0-alpha.5",s="bs.tab",a="."+s,l=".data-api",c=t.fn[e],u=150,d={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,CLICK_DATA_API:"click"+a+l},f={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",FADE:"fade",IN:"in"},h={A:"a",LI:"li",DROPDOWN:".dropdown",UL:"ul:not(.dropdown-menu)",FADE_CHILD:"> .nav-item .fade, > .fade",ACTIVE:".active",ACTIVE_CHILD:"> .nav-item > .active, > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},p=function(){function e(t){i(this,e),this._element=t}return e.prototype.show=function(){var e=this;if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!t(this._element).hasClass(f.ACTIVE)){var i=void 0,n=void 0,r=t(this._element).closest(h.UL)[0],s=o.getSelectorFromElement(this._element);r&&(n=t.makeArray(t(r).find(h.ACTIVE)),n=n[n.length-1]);var a=t.Event(d.HIDE,{relatedTarget:this._element}),l=t.Event(d.SHOW,{relatedTarget:n});if(n&&t(n).trigger(a),t(this._element).trigger(l),!l.isDefaultPrevented()&&!a.isDefaultPrevented()){s&&(i=t(s)[0]),this._activate(this._element,r);var c=function(){var i=t.Event(d.HIDDEN,{relatedTarget:e._element}),r=t.Event(d.SHOWN,{relatedTarget:n});t(n).trigger(i),t(e._element).trigger(r)};i?this._activate(i,i.parentNode,c):c()}}},e.prototype.dispose=function(){t.removeClass(this._element,s),this._element=null},e.prototype._activate=function(e,i,n){var r=t(i).find(h.ACTIVE_CHILD)[0],s=n&&o.supportsTransitionEnd()&&(r&&t(r).hasClass(f.FADE)||Boolean(t(i).find(h.FADE_CHILD)[0])),a=t.proxy(this._transitionComplete,this,e,r,s,n);r&&s?t(r).one(o.TRANSITION_END,a).emulateTransitionEnd(u):a(),r&&t(r).removeClass(f.IN)},e.prototype._transitionComplete=function(e,i,n,r){if(i){t(i).removeClass(f.ACTIVE);var s=t(i).find(h.DROPDOWN_ACTIVE_CHILD)[0];s&&t(s).removeClass(f.ACTIVE),i.setAttribute("aria-expanded",!1)}if(t(e).addClass(f.ACTIVE),e.setAttribute("aria-expanded",!0),n?(o.reflow(e),t(e).addClass(f.IN)):t(e).removeClass(f.FADE),e.parentNode&&t(e.parentNode).hasClass(f.DROPDOWN_MENU)){var a=t(e).closest(h.DROPDOWN)[0];a&&t(a).find(h.DROPDOWN_TOGGLE).addClass(f.ACTIVE),e.setAttribute("aria-expanded",!0)}r&&r()},e._jQueryInterface=function(i){return this.each(function(){var n=t(this),r=n.data(s);if(r||(r=r=new e(this),n.data(s,r)),"string"==typeof i){if(void 0===r[i])throw new Error('No method named "'+i+'"');r[i]()}})},r(e,null,[{key:"VERSION",get:function(){return n}}]),e}();return t(document).on(d.CLICK_DATA_API,h.DATA_TOGGLE,function(e){e.preventDefault(),p._jQueryInterface.call(t(this),"show")}),t.fn[e]=p._jQueryInterface,t.fn[e].Constructor=p,t.fn[e].noConflict=function(){return t.fn[e]=c,p._jQueryInterface},p}(jQuery),function(t){if(void 0===window.Tether)throw new Error("Bootstrap tooltips require Tether (http://tether.io/)");var e="tooltip",s="4.0.0-alpha.5",a="bs.tooltip",l="."+a,c=t.fn[e],u=150,d="bs-tether",f={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[]},h={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array"},p={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},m={IN:"in",OUT:"out"},g={HIDE:"hide"+l,HIDDEN:"hidden"+l,SHOW:"show"+l,SHOWN:"shown"+l,INSERTED:"inserted"+l,CLICK:"click"+l,FOCUSIN:"focusin"+l,FOCUSOUT:"focusout"+l,MOUSEENTER:"mouseenter"+l,MOUSELEAVE:"mouseleave"+l},v={FADE:"fade",IN:"in"},y={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner"},w={element:!1,enabled:!1},b={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},x=function(){function c(t,e){i(this,c),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._tether=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}return c.prototype.enable=function(){this._isEnabled=!0},c.prototype.disable=function(){this._isEnabled=!1},c.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},c.prototype.toggle=function(e){if(e){var i=this.constructor.DATA_KEY,n=t(e.currentTarget).data(i);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(t(this.getTipElement()).hasClass(v.IN))return void this._leave(null,this);this._enter(null,this)}},c.prototype.dispose=function(){clearTimeout(this._timeout),this.cleanupTether(),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._tether=null,this.element=null,this.config=null,this.tip=null},c.prototype.show=function(){var e=this,i=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(i);var n=t.contains(this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!n)return;var r=this.getTipElement(),s=o.getUID(this.constructor.NAME);r.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&t(r).addClass(v.FADE);var a="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,l=this._getAttachment(a);t(r).data(this.constructor.DATA_KEY,this).appendTo(document.body),t(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:l,element:r,target:this.element,classes:w,classPrefix:d,offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),o.reflow(r),this._tether.position(),t(r).addClass(v.IN);var u=function(){var i=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),i===m.OUT&&e._leave(null,e)};if(o.supportsTransitionEnd()&&t(this.tip).hasClass(v.FADE))return void t(this.tip).one(o.TRANSITION_END,u).emulateTransitionEnd(c._TRANSITION_DURATION);u()}},c.prototype.hide=function(e){var i=this,n=this.getTipElement(),r=t.Event(this.constructor.Event.HIDE),s=function(){i._hoverState!==m.IN&&n.parentNode&&n.parentNode.removeChild(n),i.element.removeAttribute("aria-describedby"),t(i.element).trigger(i.constructor.Event.HIDDEN),i.cleanupTether(),e&&e()};t(this.element).trigger(r),r.isDefaultPrevented()||(t(n).removeClass(v.IN),o.supportsTransitionEnd()&&t(this.tip).hasClass(v.FADE)?t(n).one(o.TRANSITION_END,s).emulateTransitionEnd(u):s(),this._hoverState="")},c.prototype.isWithContent=function(){return Boolean(this.getTitle())},c.prototype.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0]},c.prototype.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(y.TOOLTIP_INNER),this.getTitle()),e.removeClass(v.FADE).removeClass(v.IN),this.cleanupTether()},c.prototype.setElementContent=function(e,i){var r=this.config.html;"object"===("undefined"==typeof i?"undefined":n(i))&&(i.nodeType||i.jquery)?r?t(i).parent().is(e)||e.empty().append(i):e.text(t(i).text()):e[r?"html":"text"](i)},c.prototype.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},c.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},c.prototype._getAttachment=function(t){return p[t.toUpperCase()]},c.prototype._setListeners=function(){var e=this,i=this.config.trigger.split(" ");i.forEach(function(i){if("click"===i)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,t.proxy(e.toggle,e));else if(i!==b.MANUAL){var n=i===b.HOVER?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=i===b.HOVER?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(n,e.config.selector,t.proxy(e._enter,e)).on(r,e.config.selector,t.proxy(e._leave,e))}}),this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},c.prototype._fixTitle=function(){var t=n(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},c.prototype._enter=function(e,i){var n=this.constructor.DATA_KEY;return i=i||t(e.currentTarget).data(n),i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),e&&(i._activeTrigger["focusin"===e.type?b.FOCUS:b.HOVER]=!0),t(i.getTipElement()).hasClass(v.IN)||i._hoverState===m.IN?void(i._hoverState=m.IN):(clearTimeout(i._timeout),i._hoverState=m.IN,i.config.delay&&i.config.delay.show?void(i._timeout=setTimeout(function(){i._hoverState===m.IN&&i.show()},i.config.delay.show)):void i.show())},c.prototype._leave=function(e,i){var n=this.constructor.DATA_KEY;if(i=i||t(e.currentTarget).data(n),i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),e&&(i._activeTrigger["focusout"===e.type?b.FOCUS:b.HOVER]=!1),!i._isWithActiveTrigger())return clearTimeout(i._timeout),i._hoverState=m.OUT,i.config.delay&&i.config.delay.hide?void(i._timeout=setTimeout(function(){i._hoverState===m.OUT&&i.hide()},i.config.delay.hide)):void i.hide()},c.prototype._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},c.prototype._getConfig=function(i){return i=t.extend({},this.constructor.Default,t(this.element).data(),i),i.delay&&"number"==typeof i.delay&&(i.delay={show:i.delay,hide:i.delay}),o.typeCheckConfig(e,i,this.constructor.DefaultType),i},c.prototype._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},c._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(a),r="object"===("undefined"==typeof e?"undefined":n(e))?e:null;if((i||!/dispose|hide/.test(e))&&(i||(i=new c(this,r),t(this).data(a,i)),"string"==typeof e)){if(void 0===i[e])throw new Error('No method named "'+e+'"');i[e]()}})},r(c,null,[{key:"VERSION",get:function(){return s}},{key:"Default",get:function(){return f}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return a}},{key:"Event",get:function(){return g}},{key:"EVENT_KEY",get:function(){return l}},{key:"DefaultType",get:function(){return h}}]),c}();return t.fn[e]=x._jQueryInterface,t.fn[e].Constructor=x,t.fn[e].noConflict=function(){return t.fn[e]=c,x._jQueryInterface},x}(jQuery));(function(o){var a="popover",l="4.0.0-alpha.5",c="bs.popover",u="."+c,d=o.fn[a],f=o.extend({},s.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),h=o.extend({},s.DefaultType,{content:"(string|element|function)"}),p={FADE:"fade",IN:"in"},m={TITLE:".popover-title",CONTENT:".popover-content"},g={HIDE:"hide"+u,HIDDEN:"hidden"+u,SHOW:"show"+u,SHOWN:"shown"+u,INSERTED:"inserted"+u,CLICK:"click"+u,FOCUSIN:"focusin"+u,FOCUSOUT:"focusout"+u,MOUSEENTER:"mouseenter"+u,MOUSELEAVE:"mouseleave"+u},v=function(s){function d(){return i(this,d),t(this,s.apply(this,arguments))}return e(d,s),d.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},d.prototype.getTipElement=function(){return this.tip=this.tip||o(this.config.template)[0]},d.prototype.setContent=function(){var t=o(this.getTipElement());this.setElementContent(t.find(m.TITLE),this.getTitle()),this.setElementContent(t.find(m.CONTENT),this._getContent()),t.removeClass(p.FADE).removeClass(p.IN),this.cleanupTether()},d.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},d._jQueryInterface=function(t){return this.each(function(){var e=o(this).data(c),i="object"===("undefined"==typeof t?"undefined":n(t))?t:null;if((e||!/destroy|hide/.test(t))&&(e||(e=new d(this,i),o(this).data(c,e)),"string"==typeof t)){if(void 0===e[t])throw new Error('No method named "'+t+'"');e[t]()}})},r(d,null,[{key:"VERSION",get:function(){return l}},{key:"Default",get:function(){return f}},{key:"NAME",get:function(){return a}},{key:"DATA_KEY",get:function(){return c}},{key:"Event",get:function(){return g}},{key:"EVENT_KEY",get:function(){return u}},{key:"DefaultType",get:function(){return h}}]),d}(s);return o.fn[a]=v._jQueryInterface,o.fn[a].Constructor=v,o.fn[a].noConflict=function(){return o.fn[a]=d,v._jQueryInterface},v})(jQuery)}()},function(t,e,i){var n;var n;!function(e){var i;true;t.exports=e()}(function(){return function t(e,i,r){function o(a,l){if(!i[a]){if(!e[a]){var c="function"==typeof n&&n;if(!l&&c)return n(a,!0);if(s)return s(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var d=i[a]={exports:{}};e[a][0].call(d.exports,function(t){var i=e[a][1][t];return o(i||t)},d,d.exports,t,e,i,r)}return i[a].exports}for(var s="function"==typeof n&&n,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e,i){e.exports=function(t){var e,i,n,r=-1;if(t.lines.length>1&&"flex-start"===t.style.alignContent)for(e=0;n=t.lines[++r];)n.crossStart=e,e+=n.cross;else if(t.lines.length>1&&"flex-end"===t.style.alignContent)for(e=t.flexStyle.crossSpace;n=t.lines[++r];)n.crossStart=e,e+=n.cross;else if(t.lines.length>1&&"center"===t.style.alignContent)for(e=t.flexStyle.crossSpace/2;n=t.lines[++r];)n.crossStart=e,e+=n.cross;else if(t.lines.length>1&&"space-between"===t.style.alignContent)for(i=t.flexStyle.crossSpace/(t.lines.length-1),e=0;n=t.lines[++r];)n.crossStart=e,e+=n.cross+i;else if(t.lines.length>1&&"space-around"===t.style.alignContent)for(i=2*t.flexStyle.crossSpace/(2*t.lines.length),e=i/2;n=t.lines[++r];)n.crossStart=e,e+=n.cross+i;else for(i=t.flexStyle.crossSpace/t.lines.length,e=t.flexStyle.crossInnerBefore;n=t.lines[++r];)n.crossStart=e,n.cross+=i,e+=n.cross}},{}],2:[function(t,e,i){e.exports=function(t){for(var e,i=-1;line=t.lines[++i];)for(e=-1;child=line.children[++e];){var n=child.style.alignSelf;"auto"===n&&(n=t.style.alignItems),"flex-start"===n?child.flexStyle.crossStart=line.crossStart:"flex-end"===n?child.flexStyle.crossStart=line.crossStart+line.cross-child.flexStyle.crossOuter:"center"===n?child.flexStyle.crossStart=line.crossStart+(line.cross-child.flexStyle.crossOuter)/2:(child.flexStyle.crossStart=line.crossStart,child.flexStyle.crossOuter=line.cross,child.flexStyle.cross=child.flexStyle.crossOuter-child.flexStyle.crossBefore-child.flexStyle.crossAfter)}}},{}],3:[function(t,e,i){e.exports=function t(e,t){var i="row"===t||"row-reverse"===t,n=e.mainAxis;if(n){var r=i&&"inline"===n||!i&&"block"===n;r||(e.flexStyle={main:e.flexStyle.cross,cross:e.flexStyle.main,mainOffset:e.flexStyle.crossOffset,crossOffset:e.flexStyle.mainOffset,mainBefore:e.flexStyle.crossBefore,mainAfter:e.flexStyle.crossAfter,crossBefore:e.flexStyle.mainBefore,crossAfter:e.flexStyle.mainAfter,mainInnerBefore:e.flexStyle.crossInnerBefore,mainInnerAfter:e.flexStyle.crossInnerAfter,crossInnerBefore:e.flexStyle.mainInnerBefore,crossInnerAfter:e.flexStyle.mainInnerAfter,mainBorderBefore:e.flexStyle.crossBorderBefore,mainBorderAfter:e.flexStyle.crossBorderAfter,crossBorderBefore:e.flexStyle.mainBorderBefore,crossBorderAfter:e.flexStyle.mainBorderAfter})}else e.flexStyle=i?{main:e.style.width,cross:e.style.height,mainOffset:e.style.offsetWidth,crossOffset:e.style.offsetHeight,mainBefore:e.style.marginLeft,mainAfter:e.style.marginRight,crossBefore:e.style.marginTop,crossAfter:e.style.marginBottom,mainInnerBefore:e.style.paddingLeft,mainInnerAfter:e.style.paddingRight,crossInnerBefore:e.style.paddingTop,crossInnerAfter:e.style.paddingBottom,mainBorderBefore:e.style.borderLeftWidth,mainBorderAfter:e.style.borderRightWidth,crossBorderBefore:e.style.borderTopWidth,crossBorderAfter:e.style.borderBottomWidth}:{main:e.style.height,cross:e.style.width,mainOffset:e.style.offsetHeight,crossOffset:e.style.offsetWidth,mainBefore:e.style.marginTop,mainAfter:e.style.marginBottom,crossBefore:e.style.marginLeft,crossAfter:e.style.marginRight,mainInnerBefore:e.style.paddingTop,mainInnerAfter:e.style.paddingBottom,crossInnerBefore:e.style.paddingLeft,crossInnerAfter:e.style.paddingRight,mainBorderBefore:e.style.borderTopWidth,mainBorderAfter:e.style.borderBottomWidth,crossBorderBefore:e.style.borderLeftWidth,crossBorderAfter:e.style.borderRightWidth},"content-box"===e.style.boxSizing&&("number"==typeof e.flexStyle.main&&(e.flexStyle.main+=e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter),"number"==typeof e.flexStyle.cross&&(e.flexStyle.cross+=e.flexStyle.crossInnerBefore+e.flexStyle.crossInnerAfter+e.flexStyle.crossBorderBefore+e.flexStyle.crossBorderAfter));e.mainAxis=i?"inline":"block",e.crossAxis=i?"block":"inline","number"==typeof e.style.flexBasis&&(e.flexStyle.main=e.style.flexBasis+e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter),e.flexStyle.mainOuter=e.flexStyle.main,e.flexStyle.crossOuter=e.flexStyle.cross,"auto"===e.flexStyle.mainOuter&&(e.flexStyle.mainOuter=e.flexStyle.mainOffset),"auto"===e.flexStyle.crossOuter&&(e.flexStyle.crossOuter=e.flexStyle.crossOffset),"number"==typeof e.flexStyle.mainBefore&&(e.flexStyle.mainOuter+=e.flexStyle.mainBefore),"number"==typeof e.flexStyle.mainAfter&&(e.flexStyle.mainOuter+=e.flexStyle.mainAfter),"number"==typeof e.flexStyle.crossBefore&&(e.flexStyle.crossOuter+=e.flexStyle.crossBefore),"number"==typeof e.flexStyle.crossAfter&&(e.flexStyle.crossOuter+=e.flexStyle.crossAfter)}},{}],4:[function(t,e,i){var n=t("../reduce");e.exports=function(t){if(t.mainSpace>0){var e=n(t.children,function(t,e){return t+parseFloat(e.style.flexGrow)},0);e>0&&(t.main=n(t.children,function(i,n){return"auto"===n.flexStyle.main?n.flexStyle.main=n.flexStyle.mainOffset+parseFloat(n.style.flexGrow)/e*t.mainSpace:n.flexStyle.main+=parseFloat(n.style.flexGrow)/e*t.mainSpace,n.flexStyle.mainOuter=n.flexStyle.main+n.flexStyle.mainBefore+n.flexStyle.mainAfter,i+n.flexStyle.mainOuter},0),t.mainSpace=0)}}},{"../reduce":12}],5:[function(t,e,i){var n=t("../reduce");e.exports=function(t){if(t.mainSpace<0){var e=n(t.children,function(t,e){return t+parseFloat(e.style.flexShrink)},0);e>0&&(t.main=n(t.children,function(i,n){return n.flexStyle.main+=parseFloat(n.style.flexShrink)/e*t.mainSpace,n.flexStyle.mainOuter=n.flexStyle.main+n.flexStyle.mainBefore+n.flexStyle.mainAfter,i+n.flexStyle.mainOuter},0),t.mainSpace=0)}}},{"../reduce":12}],6:[function(t,e,i){var n=t("../reduce");e.exports=function(t){var e;t.lines=[e={main:0,cross:0,children:[]}];for(var i,r=-1;i=t.children[++r];)"nowrap"===t.style.flexWrap||0===e.children.length||"auto"===t.flexStyle.main||t.flexStyle.main-t.flexStyle.mainInnerBefore-t.flexStyle.mainInnerAfter-t.flexStyle.mainBorderBefore-t.flexStyle.mainBorderAfter>=e.main+i.flexStyle.mainOuter?(e.main+=i.flexStyle.mainOuter,e.cross=Math.max(e.cross,i.flexStyle.crossOuter)):t.lines.push(e={main:i.flexStyle.mainOuter,cross:i.flexStyle.crossOuter,children:[]}),e.children.push(i);t.flexStyle.mainLines=n(t.lines,function(t,e){return Math.max(t,e.main)},0),t.flexStyle.crossLines=n(t.lines,function(t,e){return t+e.cross},0),"auto"===t.flexStyle.main&&(t.flexStyle.main=Math.max(t.flexStyle.mainOffset,t.flexStyle.mainLines+t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter)),"auto"===t.flexStyle.cross&&(t.flexStyle.cross=Math.max(t.flexStyle.crossOffset,t.flexStyle.crossLines+t.flexStyle.crossInnerBefore+t.flexStyle.crossInnerAfter+t.flexStyle.crossBorderBefore+t.flexStyle.crossBorderAfter)),t.flexStyle.crossSpace=t.flexStyle.cross-t.flexStyle.crossInnerBefore-t.flexStyle.crossInnerAfter-t.flexStyle.crossBorderBefore-t.flexStyle.crossBorderAfter-t.flexStyle.crossLines,t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter,t.flexStyle.crossOuter=t.flexStyle.cross+t.flexStyle.crossBefore+t.flexStyle.crossAfter}},{"../reduce":12}],7:[function(t,e,i){function n(e){for(var i,n=-1;i=e.children[++n];)t("./flex-direction")(i,e.style.flexDirection);t("./flex-direction")(e,e.style.flexDirection),t("./order")(e),t("./flexbox-lines")(e),t("./align-content")(e),n=-1;for(var r;r=e.lines[++n];)r.mainSpace=e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter-r.main,t("./flex-grow")(r),t("./flex-shrink")(r),t("./margin-main")(r),t("./margin-cross")(r),t("./justify-content")(r,e.style.justifyContent,e);t("./align-items")(e)}e.exports=n},{"./align-content":1,"./align-items":2,"./flex-direction":3,"./flex-grow":4,"./flex-shrink":5,"./flexbox-lines":6,"./justify-content":8,"./margin-cross":9,"./margin-main":10,"./order":11}],8:[function(t,e,i){e.exports=function(t,e,i){var n,r,o,s=i.flexStyle.mainInnerBefore,a=-1;if("flex-end"===e)for(n=t.mainSpace,n+=s;o=t.children[++a];)o.flexStyle.mainStart=n,n+=o.flexStyle.mainOuter;else if("center"===e)for(n=t.mainSpace/2,n+=s;o=t.children[++a];)o.flexStyle.mainStart=n,n+=o.flexStyle.mainOuter;else if("space-between"===e)for(r=t.mainSpace/(t.children.length-1),n=0,n+=s;o=t.children[++a];)o.flexStyle.mainStart=n,n+=o.flexStyle.mainOuter+r;else if("space-around"===e)for(r=2*t.mainSpace/(2*t.children.length),n=r/2,n+=s;o=t.children[++a];)o.flexStyle.mainStart=n,n+=o.flexStyle.mainOuter+r;else for(n=0,n+=s;o=t.children[++a];)o.flexStyle.mainStart=n,n+=o.flexStyle.mainOuter}},{}],9:[function(t,e,i){e.exports=function(t){for(var e,i=-1;e=t.children[++i];){var n=0;"auto"===e.flexStyle.crossBefore&&++n,"auto"===e.flexStyle.crossAfter&&++n;var r=t.cross-e.flexStyle.crossOuter;"auto"===e.flexStyle.crossBefore&&(e.flexStyle.crossBefore=r/n),"auto"===e.flexStyle.crossAfter&&(e.flexStyle.crossAfter=r/n),"auto"===e.flexStyle.cross?e.flexStyle.crossOuter=e.flexStyle.crossOffset+e.flexStyle.crossBefore+e.flexStyle.crossAfter:e.flexStyle.crossOuter=e.flexStyle.cross+e.flexStyle.crossBefore+e.flexStyle.crossAfter}}},{}],10:[function(t,e,i){e.exports=function(t){for(var e,i=0,n=-1;e=t.children[++n];)"auto"===e.flexStyle.mainBefore&&++i,"auto"===e.flexStyle.mainAfter&&++i;if(i>0){for(n=-1;e=t.children[++n];)"auto"===e.flexStyle.mainBefore&&(e.flexStyle.mainBefore=t.mainSpace/i),"auto"===e.flexStyle.mainAfter&&(e.flexStyle.mainAfter=t.mainSpace/i),"auto"===e.flexStyle.main?e.flexStyle.mainOuter=e.flexStyle.mainOffset+e.flexStyle.mainBefore+e.flexStyle.mainAfter:e.flexStyle.mainOuter=e.flexStyle.main+e.flexStyle.mainBefore+e.flexStyle.mainAfter;t.mainSpace=0}}},{}],11:[function(t,e,i){var n=/^(column|row)-reverse$/;e.exports=function(t){t.children.sort(function(t,e){return t.style.order-e.style.order||t.index-e.index}),n.test(t.style.flexDirection)&&t.children.reverse()}},{}],12:[function(t,e,i){function n(t,e,i){for(var n=t.length,r=-1;++r<n;)r in t&&(i=e(i,t[r],r));return i}e.exports=n},{}],13:[function(t,e,i){function n(t){a(s(t))}var r=t("./read"),o=t("./write"),s=t("./readAll"),a=t("./writeAll");e.exports=n,e.exports.read=r,e.exports.write=o,e.exports.readAll=s,e.exports.writeAll=a},{"./read":15,"./readAll":16,"./write":17,"./writeAll":18}],14:[function(t,e,i){function n(t,e){var i=String(t).match(o);if(!i)return t;var n=i[1],s=i[2];return"px"===s?1*n:"cm"===s?.3937*n*96:"in"===s?96*n:"mm"===s?.3937*n*96/10:"pc"===s?12*n*96/72:"pt"===s?96*n/72:"rem"===s?16*n:r(t,e)}function r(t,e){s.style.cssText="border:none!important;clip:rect(0 0 0 0)!important;display:block!important;font-size:1em!important;height:0!important;margin:0!important;padding:0!important;position:relative!important;width:"+t+"!important",e.parentNode.insertBefore(s,e.nextSibling);var i=s.offsetWidth;return e.parentNode.removeChild(s),i}e.exports=n;var o=/^([-+]?\d*\.?\d+)(%|[a-z]+)$/,s=document.createElement("div")},{}],15:[function(t,e,i){function n(t){var e={alignContent:"stretch",alignItems:"stretch",alignSelf:"auto",borderBottomWidth:0,borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,boxSizing:"content-box",display:"inline",flexBasis:"auto",flexDirection:"row",flexGrow:0,flexShrink:1,flexWrap:"nowrap",justifyContent:"flex-start",height:"auto",marginTop:0,marginRight:0,marginLeft:0,marginBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,paddingBottom:0,maxHeight:"none",maxWidth:"none",minHeight:0,minWidth:0,order:0,position:"static",width:"auto"},i=t instanceof Element;if(i){var n=t.hasAttribute("data-style"),a=n?t.getAttribute("data-style"):t.getAttribute("style")||"";n||t.setAttribute("data-style",a);var c=window.getComputedStyle&&getComputedStyle(t)||{};s(e,c);var u=t.currentStyle||{};r(e,u),o(e,a);for(var d in e)e[d]=l(e[d],t);var f=t.getBoundingClientRect();e.offsetHeight=f.height||t.offsetHeight,e.offsetWidth=f.width||t.offsetWidth}var h={element:t,style:e};return h}function r(t,e){for(var i in t){var n=i in e;if(n)t[i]=e[i];else{var r=i.replace(/[A-Z]/g,"-$&").toLowerCase(),o=r in e;o&&(t[i]=e[r])}}var s="-js-display"in e;s&&(t.display=e["-js-display"])}function o(t,e){for(var i;i=a.exec(e);){var n=i[1].toLowerCase().replace(/-[a-z]/g,function(t){return t.slice(1).toUpperCase()});t[n]=i[2]}}function s(t,e){for(var i in t){var n=i in e;n&&!/^(alignSelf|height|width)$/.test(i)&&(t[i]=e[i])}}e.exports=n;var a=/([^\s:;]+)\s*:\s*([^;]+?)\s*(;|$)/g,l=t("./getComputedLength")},{"./getComputedLength":14}],16:[function(t,e,i){function n(t){var e=[];return r(t,e),e}function r(t,e){for(var i,n=o(t),a=[],l=-1;i=t.childNodes[++l];){var c=3===i.nodeType&&!/^\s*$/.test(i.nodeValue);if(n&&c){var u=i;i=t.insertBefore(document.createElement("flex-item"),u),i.appendChild(u)}var d=i instanceof Element;if(d){var f=r(i,e);if(n){var h=i.style;h.display="inline-block",h.position="absolute",f.style=s(i).style,a.push(f)}}}var p={element:t,children:a};return n&&(p.style=s(t).style,e.push(p)),p}function o(t){var e=t instanceof Element,i=e&&t.getAttribute("data-style"),n=e&&t.currentStyle&&t.currentStyle["-js-display"],r=a.test(i)||l.test(n);return r}e.exports=n;var s=t("../read"),a=/(^|;)\s*display\s*:\s*(inline-)?flex\s*(;|$)/i,l=/^(inline-)?flex$/i},{"../read":15}],17:[function(t,e,i){function n(t){o(t);var e=t.element.style,i="inline"===t.mainAxis?["main","cross"]:["cross","main"];e.boxSizing="content-box",e.display="block",e.position="relative",e.width=r(t.flexStyle[i[0]]-t.flexStyle[i[0]+"InnerBefore"]-t.flexStyle[i[0]+"InnerAfter"]-t.flexStyle[i[0]+"BorderBefore"]-t.flexStyle[i[0]+"BorderAfter"]),e.height=r(t.flexStyle[i[1]]-t.flexStyle[i[1]+"InnerBefore"]-t.flexStyle[i[1]+"InnerAfter"]-t.flexStyle[i[1]+"BorderBefore"]-t.flexStyle[i[1]+"BorderAfter"]);for(var n,s=-1;n=t.children[++s];){var a=n.element.style,l="inline"===n.mainAxis?["main","cross"]:["cross","main"];a.boxSizing="content-box",a.display="block",a.position="absolute","auto"!==n.flexStyle[l[0]]&&(a.width=r(n.flexStyle[l[0]]-n.flexStyle[l[0]+"InnerBefore"]-n.flexStyle[l[0]+"InnerAfter"]-n.flexStyle[l[0]+"BorderBefore"]-n.flexStyle[l[0]+"BorderAfter"])),"auto"!==n.flexStyle[l[1]]&&(a.height=r(n.flexStyle[l[1]]-n.flexStyle[l[1]+"InnerBefore"]-n.flexStyle[l[1]+"InnerAfter"]-n.flexStyle[l[1]+"BorderBefore"]-n.flexStyle[l[1]+"BorderAfter"])),a.top=r(n.flexStyle[l[1]+"Start"]),a.left=r(n.flexStyle[l[0]+"Start"]),a.marginTop=r(n.flexStyle[l[1]+"Before"]),a.marginRight=r(n.flexStyle[l[0]+"After"]),a.marginBottom=r(n.flexStyle[l[1]+"After"]),a.marginLeft=r(n.flexStyle[l[0]+"Before"])}}function r(t){return"string"==typeof t?t:Math.max(t,0)+"px"}e.exports=n;var o=t("../flexbox")},{"../flexbox":7}],18:[function(t,e,i){function n(t){for(var e,i=-1;e=t[++i];)r(e)}e.exports=n;var r=t("../write")},{"../write":17}]},{},[13])(13)})},function(t,e){(function(t){"use strict";var e=0;function i(t,e){return t+".touchspin_"+e}function n(e,n){return t.map(e,function(t){return i(t,n)})}t.fn.TouchSpin=function(i){if("destroy"===i){this.each(function(){var e=t(this),i=e.data();t(document).off(n(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],i.spinnerid).join(" "))});return}var r={min:0,max:100,initval:"",replacementval:"",step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:false,verticalupclass:"glyphicon glyphicon-chevron-up",verticaldownclass:"glyphicon glyphicon-chevron-down",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:true,boostat:10,maxboostedstep:false,mousewheel:true,buttondown_class:"btn btn-default",buttonup_class:"btn btn-default",buttondown_txt:"-",buttonup_txt:"+"};var o={min:"min",max:"max",initval:"init-val",replacementval:"replacement-val",step:"step",decimals:"decimals",stepinterval:"step-interval",verticalbuttons:"vertical-buttons",verticalupclass:"vertical-up-class",verticaldownclass:"vertical-down-class",forcestepdivisibility:"force-step-divisibility",stepintervaldelay:"step-interval-delay",prefix:"prefix",postfix:"postfix",prefix_extraclass:"prefix-extra-class",postfix_extraclass:"postfix-extra-class",booster:"booster",boostat:"boostat",maxboostedstep:"max-boosted-step",mousewheel:"mouse-wheel",buttondown_class:"button-down-class",buttonup_class:"button-up-class",buttondown_txt:"button-down-txt",buttonup_txt:"button-up-txt"};return this.each(function(){var s,a=t(this),l=a.data(),c,u,d,f,h,p,m,g=0,v=false;y();function y(){if(a.data("alreadyinitialized"))return;a.data("alreadyinitialized",true);e+=1;a.data("spinnerid",e);if(!a.is("input")){console.log("Must be an input.");return}x();w();P();S();T();A();D();I();u.input.css("display","block")}function w(){""!==s.initval&&""===a.val()&&a.val(s.initval)}function b(t){C(t);P();var e=u.input.val();if(""!==e){e=Number(u.input.val());u.input.val(e.toFixed(s.decimals))}}function x(){s=t.extend({},r,l,_(),i)}function _(){var e={};t.each(o,function(t,i){var n="bts-"+i;a.is("[data-"+n+"]")&&(e[t]=a.data(n))});return e}function C(e){s=t.extend({},s,e)}function S(){var t=a.val(),e=a.parent();""!==t&&(t=Number(t).toFixed(s.decimals));a.data("initvalue",t).val(t);a.addClass("form-control");e.hasClass("input-group")?E(e):k()}function E(e){e.addClass("bootstrap-touchspin");var i=a.prev(),n=a.next();var r,o,l='<span class="input-group-addon bootstrap-touchspin-prefix">'+s.prefix+"</span>",u='<span class="input-group-addon bootstrap-touchspin-postfix">'+s.postfix+"</span>";if(i.hasClass("input-group-btn")){r='<button class="'+s.buttondown_class+' bootstrap-touchspin-down" type="button">'+s.buttondown_txt+"</button>";i.append(r)}else{r='<span class="input-group-btn"><button class="'+s.buttondown_class+' bootstrap-touchspin-down" type="button">'+s.buttondown_txt+"</button></span>";t(r).insertBefore(a)}if(n.hasClass("input-group-btn")){o='<button class="'+s.buttonup_class+' bootstrap-touchspin-up" type="button">'+s.buttonup_txt+"</button>";n.prepend(o)}else{o='<span class="input-group-btn"><button class="'+s.buttonup_class+' bootstrap-touchspin-up" type="button">'+s.buttonup_txt+"</button></span>";t(o).insertAfter(a)}t(l).insertBefore(a);t(u).insertAfter(a);c=e}function k(){var e;e=s.verticalbuttons?'<div class="input-group bootstrap-touchspin"><span class="input-group-addon bootstrap-touchspin-prefix">'+s.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+s.postfix+'</span><span class="input-group-btn-vertical"><button class="'+s.buttondown_class+' bootstrap-touchspin-up" type="button"><i class="'+s.verticalupclass+'"></i></button><button class="'+s.buttonup_class+' bootstrap-touchspin-down" type="button"><i class="'+s.verticaldownclass+'"></i></button></span></div>':'<div class="input-group bootstrap-touchspin"><span class="input-group-btn"><button class="'+s.buttondown_class+' bootstrap-touchspin-down" type="button">'+s.buttondown_txt+'</button></span><span class="input-group-addon bootstrap-touchspin-prefix">'+s.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+s.postfix+'</span><span class="input-group-btn"><button class="'+s.buttonup_class+' bootstrap-touchspin-up" type="button">'+s.buttonup_txt+"</button></span></div>";c=t(e).insertBefore(a);t(".bootstrap-touchspin-prefix",c).after(a);a.hasClass("input-sm")?c.addClass("input-group-sm"):a.hasClass("input-lg")&&c.addClass("input-group-lg")}function T(){u={down:t(".bootstrap-touchspin-down",c),up:t(".bootstrap-touchspin-up",c),input:t("input",c),prefix:t(".bootstrap-touchspin-prefix",c).addClass(s.prefix_extraclass),postfix:t(".bootstrap-touchspin-postfix",c).addClass(s.postfix_extraclass)}}function A(){""===s.prefix&&u.prefix.hide();""===s.postfix&&u.postfix.hide()}function D(){a.on("keydown",function(t){var e=t.keyCode||t.which;if(38===e){if("up"!==v){L();F()}t.preventDefault()}else if(40===e){if("down"!==v){N();B()}t.preventDefault()}});a.on("keyup",function(t){var e=t.keyCode||t.which;38===e?R():40===e&&R()});a.on("blur",function(){P()});u.down.on("keydown",function(t){var e=t.keyCode||t.which;if(32===e||13===e){if("down"!==v){N();B()}t.preventDefault()}});u.down.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||R()});u.up.on("keydown",function(t){var e=t.keyCode||t.which;if(32===e||13===e){if("up"!==v){L();F()}t.preventDefault()}});u.up.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||R()});u.down.on("mousedown.touchspin",function(t){u.down.off("touchstart.touchspin");if(a.is(":disabled"))return;N();B();t.preventDefault();t.stopPropagation()});u.down.on("touchstart.touchspin",function(t){u.down.off("mousedown.touchspin");if(a.is(":disabled"))return;N();B();t.preventDefault();t.stopPropagation()});u.up.on("mousedown.touchspin",function(t){u.up.off("touchstart.touchspin");if(a.is(":disabled"))return;L();F();t.preventDefault();t.stopPropagation()});u.up.on("touchstart.touchspin",function(t){u.up.off("mousedown.touchspin");if(a.is(":disabled"))return;L();F();t.preventDefault();t.stopPropagation()});u.up.on("mouseout touchleave touchend touchcancel",function(t){if(!v)return;t.stopPropagation();R()});u.down.on("mouseout touchleave touchend touchcancel",function(t){if(!v)return;t.stopPropagation();R()});u.down.on("mousemove touchmove",function(t){if(!v)return;t.stopPropagation();t.preventDefault()});u.up.on("mousemove touchmove",function(t){if(!v)return;t.stopPropagation();t.preventDefault()});t(document).on(n(["mouseup","touchend","touchcancel"],e).join(" "),function(t){if(!v)return;t.preventDefault();R()});t(document).on(n(["mousemove","touchmove","scroll","scrollstart"],e).join(" "),function(t){if(!v)return;t.preventDefault();R()});a.on("mousewheel DOMMouseScroll",function(t){if(!s.mousewheel||!a.is(":focus"))return;var e=t.originalEvent.wheelDelta||-t.originalEvent.deltaY||-t.originalEvent.detail;t.stopPropagation();t.preventDefault();e<0?N():L()})}function I(){a.on("touchspin.uponce",function(){R();L()});a.on("touchspin.downonce",function(){R();N()});a.on("touchspin.startupspin",function(){F()});a.on("touchspin.startdownspin",function(){B()});a.on("touchspin.stopspin",function(){R()});a.on("touchspin.updatesettings",function(t,e){b(e)})}function O(t){switch(s.forcestepdivisibility){case"round":return(Math.round(t/s.step)*s.step).toFixed(s.decimals);case"floor":return(Math.floor(t/s.step)*s.step).toFixed(s.decimals);case"ceil":return(Math.ceil(t/s.step)*s.step).toFixed(s.decimals);default:return t}}function P(){var t,e,i;t=a.val();if(""===t){if(""!==s.replacementval){a.val(s.replacementval);a.trigger("change")}return}if(s.decimals>0&&"."===t)return;e=parseFloat(t);isNaN(e)&&(e=""!==s.replacementval?s.replacementval:0);i=e;e.toString()!==t&&(i=e);e<s.min&&(i=s.min);e>s.max&&(i=s.max);i=O(i);if(Number(t).toString()!==i.toString()){a.val(i);a.trigger("change")}}function M(){if(s.booster){var t=Math.pow(2,Math.floor(g/s.boostat))*s.step;if(s.maxboostedstep&&t>s.maxboostedstep){t=s.maxboostedstep;d=Math.round(d/t)*t}return Math.max(s.step,t)}return s.step}function L(){P();d=parseFloat(u.input.val());isNaN(d)&&(d=0);var t=d,e=M();d+=e;if(d>s.max){d=s.max;a.trigger("touchspin.on.max");R()}u.input.val(Number(d).toFixed(s.decimals));t!==d&&a.trigger("change")}function N(){P();d=parseFloat(u.input.val());isNaN(d)&&(d=0);var t=d,e=M();d-=e;if(d<s.min){d=s.min;a.trigger("touchspin.on.min");R()}u.input.val(d.toFixed(s.decimals));t!==d&&a.trigger("change")}function B(){R();g=0;v="down";a.trigger("touchspin.on.startspin");a.trigger("touchspin.on.startdownspin");p=setTimeout(function(){f=setInterval(function(){g++;N()},s.stepinterval)},s.stepintervaldelay)}function F(){R();g=0;v="up";a.trigger("touchspin.on.startspin");a.trigger("touchspin.on.startupspin");m=setTimeout(function(){h=setInterval(function(){g++;L()},s.stepinterval)},s.stepintervaldelay)}function R(){clearTimeout(p);clearTimeout(m);clearInterval(f);clearInterval(h);switch(v){case"up":a.trigger("touchspin.on.stopupspin");a.trigger("touchspin.on.stopspin");break;case"down":a.trigger("touchspin.on.stopdownspin");a.trigger("touchspin.on.stopspin");break}g=0;v=false}})}})(jQuery)},function(t,e,i){"use strict";var n=i(0);var r=i.n(n);var o=i(1);var s=i.n(o);
|
|
/**
|
|
* 2007-2017 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/AFL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2017 PrestaShop SA
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/s.a.responsive=s.a.responsive||{};s.a.responsive.current_width=window.innerWidth;s.a.responsive.min_width=992;s.a.responsive.mobile=s.a.responsive.current_width<s.a.responsive.min_width;function a(t,e){var i=e.children().detach();e.empty().append(t.children().detach());t.append(i)}function l(){s.a.responsive.mobile?r()("*[id^='_desktop_']").each(function(t,e){var i=r()("#"+e.id.replace("_desktop_","_mobile_"));i.length&&a(r()(e),i)}):r()("*[id^='_mobile_']").each(function(t,e){var i=r()("#"+e.id.replace("_mobile_","_desktop_"));i.length&&a(r()(e),i)});s.a.emit("responsive update",{mobile:s.a.responsive.mobile})}r()(window).on("resize",function(){var t=s.a.responsive.current_width;var e=s.a.responsive.min_width;var i=window.innerWidth;var n=t>=e&&i<e||t<e&&i>=e;s.a.responsive.current_width=i;s.a.responsive.mobile=s.a.responsive.current_width<s.a.responsive.min_width;n&&l()});r()(document).ready(function(){s.a.responsive.mobile&&l();var t=r()(".header-mobile");r()(window).scroll(function(){r()(window).scrollTop()>0?t.addClass("scroll-down"):t.removeClass("scroll-down")})})},function(t,e,i){"use strict";var n=i(0);var r=i.n(n);var o=i(1);var s=i.n(o);
|
|
/**
|
|
* 2007-2018 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/AFL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2018 PrestaShop SA
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/function a(){0!==r()(".js-cancel-address").length&&r()(".checkout-step:not(.js-current-step) .step-title").addClass("not-allowed");r()(".js-terms a").on("click",t=>{t.preventDefault();var e=r()(t.target).attr("href");if(e){e+="?content_only=1";r.a.get(e,t=>{r()("#modal").find(".js-modal-content").html(r()(t).find(".page-cms").contents())}).fail(t=>{s.a.emit("handleError",{eventType:"clickTerms",resp:t})})}r()("#modal").modal("show")});r()(".js-gift-checkbox").on("click",t=>{r()("#gift").collapse("toggle")})}r()(document).ready(()=>{1===r()("body#checkout").length&&a();s.a.on("updatedDeliveryForm",t=>{if("undefined"===typeof t.deliveryOption||0===t.deliveryOption.length)return;r()(".carrier-extra-content").hide();t.deliveryOption.next(".carrier-extra-content").slideDown();r()(".delivery-option").removeClass("active");t.deliveryOption.addClass("active")});r()(".delivery-option input:radio:checked").length>0&&r()(".delivery-option input:radio:checked").parents("div.delivery-option").addClass("active")})},function(t,e,i){"use strict";var n=i(0);var r=i.n(n);
|
|
/**
|
|
* 2007-2017 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/AFL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2017 PrestaShop SA
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/function o(){r()("#order-return-form table thead input[type=checkbox]").on("click",function(){var t=r()(this).prop("checked");r()("#order-return-form table tbody input[type=checkbox]").each(function(e,i){r()(i).prop("checked",t)})})}function s(){r()("body#order-detail")&&o()}r()(document).ready(s)},function(t,e,i){"use strict";var n=i(0);var r=i.n(n);var o=i(1);var s=i.n(o);var a=i(2);var l=i.n(a);var c=i(3);
|
|
/**
|
|
* 2007-2017 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/AFL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2017 PrestaShop SA
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/r()(document).ready(()=>{s.a.on("clickQuickView",function(e){let i={action:"quickview",id_product:e.dataset.idProduct,id_product_attribute:e.dataset.idProductAttribute};r.a.post(s.a.urls.pages.product,i,null,"json").then(function(e){r()("body").append(e.quickview_html);let i=r()(`#quickview-modal-${e.product.id}-${e.product.id_product_attribute}`);i.modal("show");t(i);i.on("hidden.bs.modal",function(){i.remove()})}).fail(t=>{s.a.emit("handleError",{eventType:"clickQuickView",resp:t})})});var t=t=>{const i=4;var n=r()(".js-arrows");var o=t.find(".js-qv-product-images2");r()(".js-thumb").on("click",t=>{r()(".js-thumb").hasClass("selected")&&r()(".js-thumb").removeClass("selected");r()(t.currentTarget).addClass("selected");r()(".js-qv-product-cover").attr("src",r()(t.target).data("image-large-src"))});o.find("li").length<=i?n.hide():n.on("click",t=>{if(r()(t.target).hasClass("arrow-up")&&r()(".js-qv-product-images2").position().top<0){e("up");r()(".arrow-down").css("opacity","1")}else if(r()(t.target).hasClass("arrow-down")&&o.position().top+o.height()>r()(".js-qv-mask").height()){e("down");r()(".arrow-up").css("opacity","1")}});t.find("#quantity_wanted").TouchSpin({verticalbuttons:false,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:1,max:1e6});setTimeout(function(){t.find(".product-images2").flickity({draggable:1,pageDots:false,cellAlign:"left",contain:true,arrowShape:{x0:30,x1:60,y1:50,x2:70,y2:50,x3:40}})},300)};var e=t=>{const e=20;var i=r()(".js-qv-product-images2");var n=r()(".js-qv-product-images2 li img").height()+e;var o=i.position().top;i.velocity({translateY:"up"===t?o+n:o-n},function(){i.position().top>=0?r()(".arrow-up").css("opacity",".2"):i.position().top+i.height()<=r()(".js-qv-mask").height()&&r()(".arrow-down").css("opacity",".2")})};const i=function(t){if(void 0!==t.target.dataset.searchUrl)return t.target.dataset.searchUrl;if(void 0===r()(t.target).parent()[0].dataset.searchUrl)throw new Error("Can not parse search URL");return r()(t.target).parent()[0].dataset.searchUrl};r()("body").on("change","#search_filters input[data-search-url]",function(t){s.a.emit("updateFacets",i(t))});r()("body").on("click",".js-search-filters-clear-all",function(t){s.a.emit("updateFacets",i(t))});r()("body").on("click",".js-search-link",function(t){t.preventDefault();s.a.emit("updateFacets",r()(t.target).closest("a").get(0).href)});r()("body").on("change","#search_filters select",function(t){const e=r()(t.target).closest("form");s.a.emit("updateFacets","?"+e.serialize())});s.a.on("updateProductList",t=>{d(t);u();o();n();let e=r()("#products");e.length&&r()("html, body").animate({scrollTop:e.offset().top-100},240)});r()(".show_list").click(function(){document.cookie="show_list=true; expires=Thu, 30 Jan 2100 12:00:00 UTC; path=/";r()("#main #js-product-list .product-item").addClass("product_show_list");r()(this).addClass("active");r()(".show_grid").removeClass("active");o();n()});r()(".show_grid").click(function(){document.cookie="show_list=; expires=Thu, 30 Jan 1970 12:00:00 UTC; path=/";r()("#main #js-product-list .product-item").removeClass("product_show_list");r()(this).addClass("active");r()(".show_list").removeClass("active");o();n()});s.a.on("updateProductList",function(t){r()(".show_list").click(function(){r()("#main #js-product-list .product-item").addClass("product_show_list");r()(this).addClass("active");r()(".show_grid").removeClass("active");o();n()});r()(".show_grid").click(function(){r()("#main #js-product-list .product-item").removeClass("product_show_list");r()(this).addClass("active");r()(".show_list").removeClass("active");o();n()})});function n(){r()("#products #js-product-list").find(".products > .product-item").each(function(t){var e=r()(this);setTimeout(function(){e.addClass("show")},360+140*t)})}n();function o(){r()("#products #js-product-list").find(".products > .product-item").each(function(t){r()(this).removeClass("show")})}class a{constructor(){this.DOM={};const t='\n <div class="details__bg details__bg--up"></div>\n <div class="details__bg details__bg--down"></div>\n <div class="details__close"></div>\n <img class="details__img" src="" alt="img 01"/>\n <h2 class="details__title"></h2>\n <div class="details__price"></div>\n <p class="details__description"></p>\n <button class="details__addtocart">Add to cart</button>\n <button class="details__magnifier"><svg class="icon icon--magnifier"><use xlink:href="#icon-magnifier"></use></svg></button>\n ';this.DOM.details=document.createElement("div");this.DOM.details.className="details";this.DOM.details.innerHTML=t;DOM.content.appendChild(this.DOM.details);this.init()}init(){this.DOM.bgUp=this.DOM.details.querySelector(".details__bg--up");this.DOM.bgDown=this.DOM.details.querySelector(".details__bg--down");this.DOM.img=this.DOM.details.querySelector(".details__img");this.DOM.title=this.DOM.details.querySelector(".details__title");this.DOM.price=this.DOM.details.querySelector(".details__price");this.DOM.description=this.DOM.details.querySelector(".details__description");this.DOM.cart=this.DOM.details.querySelector(".details__addtocart");this.DOM.close=this.DOM.details.querySelector(".details__close");this.DOM.magnifier=this.DOM.details.querySelector(".details__magnifier");this.initEvents()}initEvents(){this.DOM.close.addEventListener("click",()=>this.isZoomed?this.zoomOut():this.close());this.DOM.magnifier.addEventListener("click",()=>this.zoomIn())}fill(t){this.DOM.img.src=t.img;this.DOM.title.innerHTML=t.title;this.DOM.price.innerHTML=t.price;this.DOM.description.innerHTML=t.description}getProductDetailsRect(){return{productBgRect:this.DOM.productBg.getBoundingClientRect(),detailsBgRect:this.DOM.bgDown.getBoundingClientRect(),productImgRect:this.DOM.productImg.getBoundingClientRect(),detailsImgRect:this.DOM.img.getBoundingClientRect()}}open(t){if(this.isAnimating)return false;this.isAnimating=true;this.DOM.details.classList.add("details--open");this.DOM.productBg=t.productBg;this.DOM.productImg=t.productImg;this.DOM.productBg.style.opacity=0;this.DOM.productImg.style.opacity=0;const e=this.getProductDetailsRect();this.DOM.bgDown.style.transform=`translateX(${e.productBgRect.left-e.detailsBgRect.left}px) translateY(${e.productBgRect.top-e.detailsBgRect.top}px) scaleX(${e.productBgRect.width/e.detailsBgRect.width}) scaleY(${e.productBgRect.height/e.detailsBgRect.height})`;this.DOM.bgDown.style.opacity=1;this.DOM.img.style.transform=`translateX(${e.productImgRect.left-e.detailsImgRect.left}px) translateY(${e.productImgRect.top-e.detailsImgRect.top}px) scaleX(${e.productImgRect.width/e.detailsImgRect.width}) scaleY(${e.productImgRect.height/e.detailsImgRect.height})`;this.DOM.img.style.opacity=1;anime({targets:[this.DOM.bgDown,this.DOM.img],duration:(t,e)=>e?800:250,easing:(t,e)=>e?"easeOutElastic":"easeOutSine",elasticity:250,translateX:0,translateY:0,scaleX:1,scaleY:1,complete:()=>this.isAnimating=false});anime({targets:[this.DOM.title,this.DOM.price,this.DOM.description,this.DOM.cart,this.DOM.magnifier],duration:600,easing:"easeOutExpo",delay:(t,e)=>{return 60*e},translateY:(t,e,i)=>{return e!==i-1?[50,0]:0},scale:(t,e,i)=>{return e===i-1?[0,1]:1},opacity:1});anime({targets:this.DOM.bgUp,duration:100,easing:"linear",opacity:.8});anime({targets:this.DOM.close,duration:250,easing:"easeOutSine",translateY:["100%",0],opacity:1})}close(){if(this.isAnimating)return false;this.isAnimating=true;this.DOM.details.classList.remove("details--open");anime({targets:this.DOM.close,duration:250,easing:"easeOutSine",translateY:"100%",opacity:0});anime({targets:this.DOM.bgUp,duration:100,easing:"linear",opacity:0});anime({targets:[this.DOM.title,this.DOM.price,this.DOM.description,this.DOM.cart,this.DOM.magnifier],duration:20,easing:"linear",opacity:0});const t=this.getProductDetailsRect();anime({targets:[this.DOM.bgDown,this.DOM.img],duration:250,easing:"easeOutSine",translateX:(e,i)=>{return i?t.productImgRect.left-t.detailsImgRect.left:t.productBgRect.left-t.detailsBgRect.left},translateY:(e,i)=>{return i?t.productImgRect.top-t.detailsImgRect.top:t.productBgRect.top-t.detailsBgRect.top},scaleX:(e,i)=>{return i?t.productImgRect.width/t.detailsImgRect.width:t.productBgRect.width/t.detailsBgRect.width},scaleY:(e,i)=>{return i?t.productImgRect.height/t.detailsImgRect.height:t.productBgRect.height/t.detailsBgRect.height},complete:()=>{this.DOM.bgDown.style.opacity=0;this.DOM.img.style.opacity=0;this.DOM.bgDown.style.transform="none";this.DOM.img.style.transform="none";this.DOM.productBg.style.opacity=1;this.DOM.productImg.style.opacity=1;this.isAnimating=false}})}zoomIn(){this.isZoomed=true;anime({targets:[this.DOM.title,this.DOM.price,this.DOM.description,this.DOM.cart,this.DOM.magnifier],duration:100,easing:"easeOutSine",translateY:(t,e,i)=>{return e!==i-1?[0,0===e||1===e?-50:50]:0},scale:(t,e,i)=>{return e===i-1?[1,0]:1},opacity:0});const t=this.DOM.img.getBoundingClientRect();const e={w:window.innerWidth,h:window.innerHeight};const i={targets:this.DOM.img,duration:250,easing:"easeOutCubic",translateX:e.w/2-(t.left+t.width/2),translateY:e.h/2-(t.top+t.height/2)};if(e.w>.8*e.h){this.DOM.img.style.transformOrigin="50% 50%";Object.assign(i,{scaleX:.95*e.w/parseInt(.8*e.h),scaleY:.95*e.w/parseInt(.8*e.h),rotate:90})}anime(i);anime({targets:this.DOM.close,duration:250,easing:"easeInOutCubic",scale:1.8,rotate:180})}zoomOut(){this.isZoomed=false;anime({targets:[this.DOM.title,this.DOM.price,this.DOM.description,this.DOM.cart,this.DOM.magnifier],duration:250,easing:"easeOutCubic",translateY:0,scale:1,opacity:1});anime({targets:this.DOM.img,duration:250,easing:"easeOutCubic",translateX:0,translateY:0,scaleX:1,scaleY:1,rotate:0,complete:()=>this.DOM.img.style.transformOrigin="0 0"});anime({targets:this.DOM.close,duration:250,easing:"easeInOutCubic",scale:1,rotate:0})}}class l{constructor(t){this.DOM={};this.DOM.el=t;this.DOM.product=this.DOM.el.querySelector(".thumbnail-container");this.DOM.productBg=this.DOM.product.querySelector(".product-description");this.DOM.productImg=this.DOM.product.querySelector(".product-image img");this.DOM.fw=this.DOM.product.querySelector(".fast-view");this.info={img:this.DOM.productImg.src,title:this.DOM.product.querySelector(".product-title").innerHTML,description:this.DOM.product.querySelector(".prod-short-desc").innerHTML,price:this.DOM.product.querySelector(".product-price-and-shipping").innerHTML};this.initEvents()}initEvents(){console.log(this.DOM.fw);this.DOM.fw.addEventListener("click",()=>this.open())}open(){DOM.details.fill(this.info);DOM.details.open({productBg:this.DOM.productBg,productImg:this.DOM.productImg})}}if(r()("product-item ").length){const t={};t.grid=document.querySelector("#main .products");t.content=t.grid.parentNode;t.gridItems=Array.from(t.grid.querySelectorAll(".product-item"));let e=[];t.gridItems.forEach(t=>e.push(new l(t)));t.details=new a}});function u(){r()(".countcontainer").each(function(t){var e=r()(this).find(".roycountdown");var i=e.find(".roycount");var n=i.attr("data-specific-price-to");e.length&&e.county({endDateTime:new Date(n.replace(/-/g,"/")),reflection:false,animation:"none",theme:"black",titleDays:i.data("days"),titleHours:i.data("hours"),titleMinutes:i.data("minutes"),titleSeconds:i.data("seconds")})})}function d(t){r()("#search_filters").replaceWith(t.rendered_facets);r()("#js-active-search-filters").replaceWith(t.rendered_active_filters);r()("#js-product-list-top").replaceWith(t.rendered_products_top);r()("#js-product-list").replaceWith(t.rendered_products);r()("#js-product-list-bottom").replaceWith(t.rendered_products_bottom);r()("#js-active-search-filters-mobile").replaceWith(t.rendered_active_filters);let e=new c["a"];e.init()}},function(t,e,i){"use strict";var n=i(0);var r=i.n(n);var o=i(1);var s=i.n(o);var a=i(4);var l=i.n(a);var c=i(19);var u=i.n(c);var d=i(20);var f=i.n(d);
|
|
/**
|
|
* 2007-2019 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/AFL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2018 PrestaShop SA
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/r()(document).ready(function(){a();o();n();t();e();l();u();s.a.on("updatedProduct",function(s){a();o();n();if(s&&s.product_minimal_quantity){const t=parseInt(s.product_minimal_quantity,10);const e="#quantity_wanted";let i=r()(e);i.trigger("touchspin.updatesettings",{min:t})}r()(r()(".tabs .nav-link.active").attr("href")).addClass("active").removeClass("fade");r()(".js-product-images2-modal").replaceWith(s.product_images_modal);l();f();u();i();var c=r()(".tip_inside");r()("body").append('<div id="ui_tip"><div class="ui_wrapper"><span class="ui_title"></span></div></div>');var d=r()("#ui_tip");var h=d.find(".ui_title");c.on("mousemove",function(t){d.css({top:t.clientY,left:t.clientX});var e=r()(window).width(),i=r()("#ui_tip").width(),n=t.clientX+i+14+40;n>e?r()("#ui_tip").addClass("align-right"):r()("#ui_tip").removeClass("align-right")});c.on("mouseover",function(t){h.text(r()(this).find(".tip").text());setTimeout(function(){d.addClass("active")},10)}).on("mouseout",function(t){setTimeout(function(){d.removeClass("active")},10)});setTimeout(function(){t();e()},200)});function t(){var t=r()("#main .product-thumbs-wrapper li.thumb-container");1==t.length?r()("#main .product-thumbs-wrapper").addClass("hide_it_pls"):2==t.length?r()("#main .product-thumbs-wrapper").addClass("w50"):3==t.length?r()("#main .product-thumbs-wrapper").addClass("w33"):t.length>=4&&r()("#main .product-thumbs-wrapper").addClass("w25");setTimeout(function(){e();r()(".product-thumbs-wrapper").addClass("thumbs_go");r()(window).on("load resize",function(){e()});function t(){r()(".images-container .product-images2").flickity({draggable:1,pageDots:false,cellAlign:"left",contain:true,imagesLoaded:true,arrowShape:{x0:30,x1:60,y1:50,x2:70,y2:50,x3:40}});r()(".images-container .product-thumbs").flickity({asNavFor:".images-container .product-images2",draggable:1,prevNextButtons:false,pageDots:false,cellAlign:"center",imagesLoaded:true,contain:true})}function e(){if(window.matchMedia("(max-width: 767px)").matches)t();else if(r()("#product .images-container").hasClass("pp_lay1"))t();else{r()(".images-container .product-images2").hasClass("flickity-enabled")&&r()(".images-container .product-images2").flickity("destroy");r()(".images-container .product-thumbs").hasClass("flickity-enabled")&&r()(".images-container .product-thumbs").flickity("destroy")}}},100)}function e(){r()(".images-container").hasClass("pp_lay1")?r()("body:not(#product) .images-container .product-images2").on("staticClick.flickity",function(t,e,i,n){var o=function(){var t=document.querySelectorAll(".pswp")[0];var e=r.a.map(r()(".images-container .product-images2").find("img"),function(t){return{src:t.getAttribute("src"),w:t.width,h:t.height}});var i={history:false,shareEl:false,zoomEl:true,index:n};var o=new c(t,d,e,i);o.init()};o()}):r()(".images-container .product-images2 li img").click(function(t){var e=r.a.map(r()(".images-container.pp_lay2 .product-images2").find("img"),function(t){return{src:t.getAttribute("src"),w:t.width,h:t.height}});var i=r()(".pswp")[0],n={index:r()(this).parent(".thumb-container").index(),bgOpacity:.85,zoomEl:true,showHideOpacity:true};var o=new c(i,d,e,n);o.init()})}function i(){r()(".quickview .product-images2").flickity({draggable:1,pageDots:false,cellAlign:"left",contain:true,imagesLoaded:true,arrowShape:{x0:30,x1:60,y1:50,x2:70,y2:50,x3:40}})}function n(){r()(".js-thumb").on("click",t=>{r()(".js-modal-product-cover").attr("src",r()(t.target).data("image-large-src"));r()(".selected").removeClass("selected");r()(t.target).addClass("selected");r()(".js-qv-product-cover").prop("src",r()(t.currentTarget).data("image-large-src"))})}function o(){r()(".js-file-input").on("change",t=>{let e,i;(e=r()(t.currentTarget)[0])&&(i=e.files[0])&&r()(e).prev().text(i.name)})}function a(){const t=r()("#quantity_wanted");t.TouchSpin({verticalbuttons:false,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:parseInt(t.attr("min"),10),max:1e6});r()("body").on("change keyup","#quantity_wanted",t=>{r()(t.currentTarget).trigger("touchspin.stopspin");s.a.emit("updateProduct",{eventType:"updatedProductQuantity",event:t})})}r()(".goreviews").click(function(t){t.preventDefault;var e=r()("#productCommentsBlock").parent();var i=e.attr("id");var n=r()('a[href="#'+i+'"]');r()("body,html").animate({scrollTop:r()("#tabsection").offset().top-170},600);setTimeout(function(){n.click()},200)});function l(){r()(".color").each(function(){"rgb(255, 255, 255)"===r()(this).css("background-color")&&r()(this).addClass("white")})}function u(){r()(".share_text").click(function(t){t.preventDefault;var e=r()(".share_text").parent(".social-sharing");e.hasClass("click")||e.addClass("click")})}function f(){r()(".countcontainer").each(function(t){var e=r()(this).find(".roycountdown");var i=e.find(".roycount");var n=i.attr("data-specific-price-to");e.length&&e.county({endDateTime:new Date(n.replace(/-/g,"/")),reflection:false,animation:"none",theme:"black",titleDays:i.data("days"),titleHours:i.data("hours"),titleMinutes:i.data("minutes"),titleSeconds:i.data("seconds")})})}})},function(t,e,i){var n,r;
|
|
/*! PhotoSwipe - v4.1.3 - 2019-01-08
|
|
* http://photoswipe.com
|
|
* Copyright (c) 2019 Dmitry Semenov; */
|
|
/*! PhotoSwipe - v4.1.3 - 2019-01-08
|
|
* http://photoswipe.com
|
|
* Copyright (c) 2019 Dmitry Semenov; */
|
|
(function(o,s){true;!(n=s,r="function"===typeof n?n.call(e,i,e,t):n,void 0!==r&&(t.exports=r))})(this,function(){"use strict";var t=function(t,e,i,n){var r={features:null,bind:function(t,e,i,n){var r=(n?"remove":"add")+"EventListener";e=e.split(" ");for(var o=0;o<e.length;o++)e[o]&&t[r](e[o],i,false)},isArray:function(t){return t instanceof Array},createEl:function(t,e){var i=document.createElement(e||"div");t&&(i.className=t);return i},getScrollY:function(){var t=window.pageYOffset;return void 0!==t?t:document.documentElement.scrollTop},unbind:function(t,e,i){r.bind(t,e,i,true)},removeClass:function(t,e){var i=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(i," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(t,e){r.hasClass(t,e)||(t.className+=(t.className?" ":"")+e)},hasClass:function(t,e){return t.className&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)},getChildByClass:function(t,e){var i=t.firstChild;while(i){if(r.hasClass(i,e))return i;i=i.nextSibling}},arraySearch:function(t,e,i){var n=t.length;while(n--)if(t[n][i]===e)return n;return-1},extend:function(t,e,i){for(var n in e)if(e.hasOwnProperty(n)){if(i&&t.hasOwnProperty(n))continue;t[n]=e[n]}},easing:{sine:{out:function(t){return Math.sin(t*(Math.PI/2))},inOut:function(t){return-(Math.cos(Math.PI*t)-1)/2}},cubic:{out:function(t){return--t*t*t+1}}},detectFeatures:function(){if(r.features)return r.features;var t=r.createEl(),e=t.style,i="",n={};n.oldIE=document.all&&!document.addEventListener;n.touch="ontouchstart"in window;if(window.requestAnimationFrame){n.raf=window.requestAnimationFrame;n.caf=window.cancelAnimationFrame}n.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled;if(!n.pointerEvent){var o=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var s=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);if(s&&s.length>0){s=parseInt(s[1],10);s>=1&&s<8&&(n.isOldIOSPhone=true)}}var a=o.match(/Android\s([0-9\.]*)/);var l=a?a[1]:0;l=parseFloat(l);if(l>=1){l<4.4&&(n.isOldAndroid=true);n.androidVersion=l}n.isMobileOpera=/opera mini|opera mobi/i.test(o)}var c=["transform","perspective","animationName"],u=["","webkit","Moz","ms","O"],d,f;for(var h=0;h<4;h++){i=u[h];for(var p=0;p<3;p++){d=c[p];f=i+(i?d.charAt(0).toUpperCase()+d.slice(1):d);!n[d]&&f in e&&(n[d]=f)}if(i&&!n.raf){i=i.toLowerCase();n.raf=window[i+"RequestAnimationFrame"];n.raf&&(n.caf=window[i+"CancelAnimationFrame"]||window[i+"CancelRequestAnimationFrame"])}}if(!n.raf){var m=0;n.raf=function(t){var e=(new Date).getTime();var i=Math.max(0,16-(e-m));var n=window.setTimeout(function(){t(e+i)},i);m=e+i;return n};n.caf=function(t){clearTimeout(t)}}n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect;r.features=n;return n}};r.detectFeatures();r.features.oldIE&&(r.bind=function(t,e,i,n){e=e.split(" ");var r=(n?"detach":"attach")+"Event",o,s=function(){i.handleEvent.call(i)};for(var a=0;a<e.length;a++){o=e[a];if(o)if("object"===typeof i&&i.handleEvent){if(n){if(!i["oldIE"+o])return false}else i["oldIE"+o]=s;t[r]("on"+o,i["oldIE"+o])}else t[r]("on"+o,i)}});var o=this;var s=25,a=3;var l={allowPanToNext:true,spacing:.12,bgOpacity:1,mouseUsed:false,loop:true,pinchToClose:true,closeOnScroll:true,closeOnVerticalDrag:true,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:false,focus:true,escKey:true,arrowKeys:true,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(t){return"A"===t.tagName},getDoubleTapZoom:function(t,e){return t?1:e.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:true,scaleMode:"fit"};r.extend(l,n);var c=function(){return{x:0,y:0}};var u,d,f,h,p,m,g=c(),v=c(),y=c(),w,b,x,_={},C,S,E,k,T,A,D=0,I={},O=c(),P,M,L=0,N,B,F,R,j,V,H=true,$,W=[],z,U,q,G,Y,Q,Z,K={},X=false,J,tt=function(t,e){r.extend(o,e.publicMethods);W.push(t)},et=function(t){var e=ri();if(t>e-1)return t-e;if(t<0)return e+t;return t},it={},nt=function(t,e){it[t]||(it[t]=[]);return it[t].push(e)},rt=function(t){var e=it[t];if(e){var i=Array.prototype.slice.call(arguments);i.shift();for(var n=0;n<e.length;n++)e[n].apply(o,i)}},ot=function(){return(new Date).getTime()},st=function(t){we=t;o.bg.style.opacity=t*l.bgOpacity},at=function(t,e,i,n,r){(!X||r&&r!==o.currItem)&&(n/=r?r.fitRatio:o.currItem.fitRatio);t[j]=E+e+"px, "+i+"px"+k+" scale("+n+")"},lt=function(t){if(fe){if(t)if(C>o.currItem.fitRatio){if(!X){fi(o.currItem,false,true);X=true}}else if(X){fi(o.currItem);X=false}at(fe,y.x,y.y,C)}},ct=function(t){t.container&&at(t.container.style,t.initialPosition.x,t.initialPosition.y,t.initialZoomLevel,t)},ut=function(t,e){e[j]=E+t+"px, 0px"+k},dt=function(t,e){if(!l.loop&&e){var i=h+(O.x*D-t)/O.x,n=Math.round(t-de.x);(i<0&&n>0||i>=ri()-1&&n<0)&&(t=de.x+n*l.mainScrollEndFriction)}de.x=t;ut(t,p)},ft=function(t,e){var i=pe[t]-I[t];return v[t]+g[t]+i-i*(e/S)},ht=function(t,e){t.x=e.x;t.y=e.y;e.id&&(t.id=e.id)},pt=function(t){t.x=Math.round(t.x);t.y=Math.round(t.y)},mt=null,gt=function(){if(mt){r.unbind(document,"mousemove",gt);r.addClass(t,"pswp--has_mouse");l.mouseUsed=true;rt("mouseUsed")}mt=setTimeout(function(){mt=null},100)},vt=function(){r.bind(document,"keydown",o);Z.transform&&r.bind(o.scrollWrap,"click",o);l.mouseUsed||r.bind(document,"mousemove",gt);r.bind(window,"resize scroll orientationchange",o);rt("bindEvents")},yt=function(){r.unbind(window,"resize scroll orientationchange",o);r.unbind(window,"scroll",x.scroll);r.unbind(document,"keydown",o);r.unbind(document,"mousemove",gt);Z.transform&&r.unbind(o.scrollWrap,"click",o);te&&r.unbind(window,w,o);clearTimeout(J);rt("unbindEvents")},wt=function(t,e){var i=li(o.currItem,_,t);e&&(ue=i);return i},bt=function(t){t||(t=o.currItem);return t.initialZoomLevel},xt=function(t){t||(t=o.currItem);return t.w>0?l.maxSpreadZoom:1},_t=function(t,e,i,n){if(n===o.currItem.initialZoomLevel){i[t]=o.currItem.initialPosition[t];return true}i[t]=ft(t,n);if(i[t]>e.min[t]){i[t]=e.min[t];return true}if(i[t]<e.max[t]){i[t]=e.max[t];return true}return false},Ct=function(){if(j){var e=Z.perspective&&!$;E="translate"+(e?"3d(":"(");k=Z.perspective?", 0px)":")";return}j="left";r.addClass(t,"pswp--ie");ut=function(t,e){e.left=t+"px"};ct=function(t){var e=t.fitRatio>1?1:t.fitRatio,i=t.container.style,n=e*t.w,r=e*t.h;i.width=n+"px";i.height=r+"px";i.left=t.initialPosition.x+"px";i.top=t.initialPosition.y+"px"};lt=function(){if(fe){var t=fe,e=o.currItem,i=e.fitRatio>1?1:e.fitRatio,n=i*e.w,r=i*e.h;t.width=n+"px";t.height=r+"px";t.left=y.x+"px";t.top=y.y+"px"}}},St=function(t){var e="";l.escKey&&27===t.keyCode?e="close":l.arrowKeys&&(37===t.keyCode?e="prev":39===t.keyCode&&(e="next"));if(e&&!t.ctrlKey&&!t.altKey&&!t.shiftKey&&!t.metaKey){t.preventDefault?t.preventDefault():t.returnValue=false;o[e]()}},Et=function(t){if(!t)return;if(ne||ie||he||Qt){t.preventDefault();t.stopPropagation()}},kt=function(){o.setScrollOffset(0,r.getScrollY())};var Tt={},At=0,Dt=function(t){if(Tt[t]){Tt[t].raf&&U(Tt[t].raf);At--;delete Tt[t]}},It=function(t){Tt[t]&&Dt(t);if(!Tt[t]){At++;Tt[t]={}}},Ot=function(){for(var t in Tt)Tt.hasOwnProperty(t)&&Dt(t)},Pt=function(t,e,i,n,r,o,s){var a=ot(),l;It(t);var c=function(){if(Tt[t]){l=ot()-a;if(l>=n){Dt(t);o(i);s&&s();return}o((i-e)*r(l/n)+e);Tt[t].raf=z(c)}};c()};var Mt={shout:rt,listen:nt,viewportSize:_,options:l,isMainScrollAnimating:function(){return he},getZoomLevel:function(){return C},getCurrentIndex:function(){return h},isDragging:function(){return te},isZooming:function(){return ae},setScrollOffset:function(t,e){I.x=t;Q=I.y=e;rt("updateScrollOffset",I)},applyZoomPan:function(t,e,i,n){y.x=e;y.y=i;C=t;lt(n)},init:function(){if(u||d)return;var i;o.framework=r;o.template=t;o.bg=r.getChildByClass(t,"pswp__bg");q=t.className;u=true;Z=r.detectFeatures();z=Z.raf;U=Z.caf;j=Z.transform;Y=Z.oldIE;o.scrollWrap=r.getChildByClass(t,"pswp__scroll-wrap");o.container=r.getChildByClass(o.scrollWrap,"pswp__container");p=o.container.style;o.itemHolders=P=[{el:o.container.children[0],wrap:0,index:-1},{el:o.container.children[1],wrap:0,index:-1},{el:o.container.children[2],wrap:0,index:-1}];P[0].el.style.display=P[2].el.style.display="none";Ct();x={resize:o.updateSize,orientationchange:function(){clearTimeout(J);J=setTimeout(function(){_.x!==o.scrollWrap.clientWidth&&o.updateSize()},500)},scroll:kt,keydown:St,click:Et};var n=Z.isOldIOSPhone||Z.isOldAndroid||Z.isMobileOpera;Z.animationName&&Z.transform&&!n||(l.showAnimationDuration=l.hideAnimationDuration=0);for(i=0;i<W.length;i++)o["init"+W[i]]();if(e){var s=o.ui=new e(o,r);s.init()}rt("firstUpdate");h=h||l.index||0;(isNaN(h)||h<0||h>=ri())&&(h=0);o.currItem=ni(h);(Z.isOldIOSPhone||Z.isOldAndroid)&&(H=false);t.setAttribute("aria-hidden","false");if(l.modal)if(H)t.style.position="fixed";else{t.style.position="absolute";t.style.top=r.getScrollY()+"px"}if(void 0===Q){rt("initialLayout");Q=G=r.getScrollY()}var c="pswp--open ";l.mainClass&&(c+=l.mainClass+" ");l.showHideOpacity&&(c+="pswp--animate_opacity ");c+=$?"pswp--touch":"pswp--notouch";c+=Z.animationName?" pswp--css_animation":"";c+=Z.svg?" pswp--svg":"";r.addClass(t,c);o.updateSize();m=-1;L=null;for(i=0;i<a;i++)ut((i+m)*O.x,P[i].el.style);Y||r.bind(o.scrollWrap,b,o);nt("initialZoomInEnd",function(){o.setContent(P[0],h-1);o.setContent(P[2],h+1);P[0].el.style.display=P[2].el.style.display="block";l.focus&&t.focus();vt()});o.setContent(P[1],h);o.updateCurrItem();rt("afterInit");H||(T=setInterval(function(){At||te||ae||C!==o.currItem.initialZoomLevel||o.updateSize()},1e3));r.addClass(t,"pswp--visible")},close:function(){if(!u)return;u=false;d=true;rt("close");yt();Ze(o.currItem,null,true,o.destroy)},destroy:function(){rt("destroy");Qe&&clearTimeout(Qe);t.setAttribute("aria-hidden","true");t.className=q;T&&clearInterval(T);r.unbind(o.scrollWrap,b,o);r.unbind(window,"scroll",o);Se();Ot();it=null},panTo:function(t,e,i){if(!i){t>ue.min.x?t=ue.min.x:t<ue.max.x&&(t=ue.max.x);e>ue.min.y?e=ue.min.y:e<ue.max.y&&(e=ue.max.y)}y.x=t;y.y=e;lt()},handleEvent:function(t){t=t||window.event;x[t.type]&&x[t.type](t)},goTo:function(t){t=et(t);var e=t-h;L=e;h=t;o.currItem=ni(h);D-=e;dt(O.x*D);Ot();he=false;o.updateCurrItem()},next:function(){o.goTo(h+1)},prev:function(){o.goTo(h-1)},updateCurrZoomItem:function(t){t&&rt("beforeChange",0);if(P[1].el.children.length){var e=P[1].el.children[0];fe=r.hasClass(e,"pswp__zoom-wrap")?e.style:null}else fe=null;ue=o.currItem.bounds;S=C=o.currItem.initialZoomLevel;y.x=ue.center.x;y.y=ue.center.y;t&&rt("afterChange")},invalidateCurrItems:function(){A=true;for(var t=0;t<a;t++)P[t].item&&(P[t].item.needsUpdate=true)},updateCurrItem:function(t){if(0===L)return;var e=Math.abs(L),i;if(t&&e<2)return;o.currItem=ni(h);X=false;rt("beforeChange",L);if(e>=a){m+=L+(L>0?-a:a);e=a}for(var n=0;n<e;n++)if(L>0){i=P.shift();P[a-1]=i;m++;ut((m+2)*O.x,i.el.style);o.setContent(i,h-e+n+1+1)}else{i=P.pop();P.unshift(i);m--;ut(m*O.x,i.el.style);o.setContent(i,h+e-n-1-1)}if(fe&&1===Math.abs(L)){var r=ni(M);if(r.initialZoomLevel!==C){li(r,_);fi(r);ct(r)}}L=0;o.updateCurrZoomItem();M=h;rt("afterChange")},updateSize:function(e){if(!H&&l.modal){var i=r.getScrollY();if(Q!==i){t.style.top=i+"px";Q=i}if(!e&&K.x===window.innerWidth&&K.y===window.innerHeight)return;K.x=window.innerWidth;K.y=window.innerHeight;t.style.height=K.y+"px"}_.x=o.scrollWrap.clientWidth;_.y=o.scrollWrap.clientHeight;kt();O.x=_.x+Math.round(_.x*l.spacing);O.y=_.y;dt(O.x*D);rt("beforeResize");if(void 0!==m){var n,s,c;for(var u=0;u<a;u++){n=P[u];ut((u+m)*O.x,n.el.style);c=h+u-1;l.loop&&ri()>2&&(c=et(c));s=ni(c);if(s&&(A||s.needsUpdate||!s.bounds)){o.cleanSlide(s);o.setContent(n,c);if(1===u){o.currItem=s;o.updateCurrZoomItem(true)}s.needsUpdate=false}else-1===n.index&&c>=0&&o.setContent(n,c);if(s&&s.container){li(s,_);fi(s);ct(s)}}A=false}S=C=o.currItem.initialZoomLevel;ue=o.currItem.bounds;if(ue){y.x=ue.center.x;y.y=ue.center.y;lt(true)}rt("resize")},zoomTo:function(t,e,i,n,o){if(e){S=C;pe.x=Math.abs(e.x)-y.x;pe.y=Math.abs(e.y)-y.y;ht(v,y)}var s=wt(t,false),a={};_t("x",s,a,t);_t("y",s,a,t);var l=C;var c={x:y.x,y:y.y};pt(a);var u=function(e){if(1===e){C=t;y.x=a.x;y.y=a.y}else{C=(t-l)*e+l;y.x=(a.x-c.x)*e+c.x;y.y=(a.y-c.y)*e+c.y}o&&o(e);lt(1===e)};i?Pt("customZoomTo",0,1,i,n||r.easing.sine.inOut,u):u(1)}};var Lt=30,Nt=10;var Bt,Ft,Rt={},jt={},Vt={},Ht={},$t={},Wt=[],zt={},Ut,qt=[],Gt={},Yt,Qt,Zt,Kt=0,Xt=c(),Jt=0,te,ee,ie,ne,re,oe,se,ae,le,ce,ue,de=c(),fe,he,pe=c(),me=c(),ge,ve,ye,we,be,xe=function(t,e){return t.x===e.x&&t.y===e.y},_e=function(t,e){return Math.abs(t.x-e.x)<s&&Math.abs(t.y-e.y)<s},Ce=function(t,e){Gt.x=Math.abs(t.x-e.x);Gt.y=Math.abs(t.y-e.y);return Math.sqrt(Gt.x*Gt.x+Gt.y*Gt.y)},Se=function(){if(re){U(re);re=null}},Ee=function(){if(te){re=z(Ee);$e()}},ke=function(){return!("fit"===l.scaleMode&&C===o.currItem.initialZoomLevel)},Te=function(t,e){if(!t||t===document)return false;if(t.getAttribute("class")&&t.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)return false;if(e(t))return t;return Te(t.parentNode,e)},Ae={},De=function(t,e){Ae.prevent=!Te(t.target,l.isClickableElement);rt("preventDragEvent",t,e,Ae);return Ae.prevent},Ie=function(t,e){e.x=t.pageX;e.y=t.pageY;e.id=t.identifier;return e},Oe=function(t,e,i){i.x=.5*(t.x+e.x);i.y=.5*(t.y+e.y)},Pe=function(t,e,i){if(t-Ft>50){var n=qt.length>2?qt.shift():{};n.x=e;n.y=i;qt.push(n);Ft=t}},Me=function(){var t=y.y-o.currItem.initialPosition.y;return 1-Math.abs(t/(_.y/2))},Le={},Ne={},Be=[],Fe,Re=function(t){while(Be.length>0)Be.pop();if(V){Fe=0;Wt.forEach(function(t){0===Fe?Be[0]=t:1===Fe&&(Be[1]=t);Fe++})}else if(t.type.indexOf("touch")>-1){if(t.touches&&t.touches.length>0){Be[0]=Ie(t.touches[0],Le);t.touches.length>1&&(Be[1]=Ie(t.touches[1],Ne))}}else{Le.x=t.pageX;Le.y=t.pageY;Le.id="";Be[0]=Le}return Be},je=function(t,e){var i,n=0,r=y[t]+e[t],s,a=e[t]>0,c=de.x+e.x,u=de.x-zt.x,d,f;i=r>ue.min[t]||r<ue.max[t]?l.panEndFriction:1;r=y[t]+e[t]*i;if(l.allowPanToNext||C===o.currItem.initialZoomLevel){if(fe){if("h"===ge&&"x"===t&&!ie)if(a){if(r>ue.min[t]){i=l.panEndFriction;n=ue.min[t]-r;s=ue.min[t]-v[t]}if((s<=0||u<0)&&ri()>1){f=c;u<0&&c>zt.x&&(f=zt.x)}else ue.min.x!==ue.max.x&&(d=r)}else{if(r<ue.max[t]){i=l.panEndFriction;n=r-ue.max[t];s=v[t]-ue.max[t]}if((s<=0||u>0)&&ri()>1){f=c;u>0&&c<zt.x&&(f=zt.x)}else ue.min.x!==ue.max.x&&(d=r)}}else f=c;if("x"===t){if(void 0!==f){dt(f,true);oe=f!==zt.x}ue.min.x!==ue.max.x&&(void 0!==d?y.x=d:oe||(y.x+=e.x*i));return void 0!==f}}he||oe||C>o.currItem.fitRatio&&(y[t]+=e[t]*i)},Ve=function(t){if("mousedown"===t.type&&t.button>0)return;if(ei){t.preventDefault();return}if(Zt&&"mousedown"===t.type)return;De(t,true)&&t.preventDefault();rt("pointerDown");if(V){var e=r.arraySearch(Wt,t.pointerId,"id");e<0&&(e=Wt.length);Wt[e]={x:t.pageX,y:t.pageY,id:t.pointerId}}var i=Re(t),n=i.length;se=null;Ot();if(!te||1===n){te=ve=true;r.bind(window,w,o);Yt=be=ye=Qt=oe=ne=ee=ie=false;ge=null;rt("firstTouchStart",i);ht(v,y);g.x=g.y=0;ht(Ht,i[0]);ht($t,Ht);zt.x=O.x*D;qt=[{x:Ht.x,y:Ht.y}];Ft=Bt=ot();wt(C,true);Se();Ee()}if(!ae&&n>1&&!he&&!oe){S=C;ie=false;ae=ee=true;g.y=g.x=0;ht(v,y);ht(Rt,i[0]);ht(jt,i[1]);Oe(Rt,jt,me);pe.x=Math.abs(me.x)-y.x;pe.y=Math.abs(me.y)-y.y;le=ce=Ce(Rt,jt)}},He=function(t){t.preventDefault();if(V){var e=r.arraySearch(Wt,t.pointerId,"id");if(e>-1){var i=Wt[e];i.x=t.pageX;i.y=t.pageY}}if(te){var n=Re(t);if(ge||ne||ae)se=n;else if(de.x!==O.x*D)ge="h";else{var o=Math.abs(n[0].x-Ht.x)-Math.abs(n[0].y-Ht.y);if(Math.abs(o)>=Nt){ge=o>0?"h":"v";se=n}}}},$e=function(){if(!se)return;var t=se.length;if(0===t)return;ht(Rt,se[0]);Vt.x=Rt.x-Ht.x;Vt.y=Rt.y-Ht.y;if(ae&&t>1){Ht.x=Rt.x;Ht.y=Rt.y;if(!Vt.x&&!Vt.y&&xe(se[1],jt))return;ht(jt,se[1]);if(!ie){ie=true;rt("zoomGestureStarted")}var e=Ce(Rt,jt);var i=Ge(e);i>o.currItem.initialZoomLevel+o.currItem.initialZoomLevel/15&&(be=true);var n=1,r=bt(),s=xt();if(i<r)if(l.pinchToClose&&!be&&S<=o.currItem.initialZoomLevel){var a=r-i;var c=1-a/(r/1.2);st(c);rt("onPinchClose",c);ye=true}else{n=(r-i)/r;n>1&&(n=1);i=r-n*(r/3)}else if(i>s){n=(i-s)/(6*r);n>1&&(n=1);i=s+n*r}n<0&&(n=0);le=e;Oe(Rt,jt,Xt);g.x+=Xt.x-me.x;g.y+=Xt.y-me.y;ht(me,Xt);y.x=ft("x",i);y.y=ft("y",i);Yt=i>C;C=i;lt()}else{if(!ge)return;if(ve){ve=false;Math.abs(Vt.x)>=Nt&&(Vt.x-=se[0].x-$t.x);Math.abs(Vt.y)>=Nt&&(Vt.y-=se[0].y-$t.y)}Ht.x=Rt.x;Ht.y=Rt.y;if(0===Vt.x&&0===Vt.y)return;if("v"===ge&&l.closeOnVerticalDrag&&!ke()){g.y+=Vt.y;y.y+=Vt.y;var u=Me();Qt=true;rt("onVerticalDrag",u);st(u);lt();return}Pe(ot(),Rt.x,Rt.y);ne=true;ue=o.currItem.bounds;var d=je("x",Vt);if(!d){je("y",Vt);pt(y);lt()}}},We=function(t){if(Z.isOldAndroid){if(Zt&&"mouseup"===t.type)return;if(t.type.indexOf("touch")>-1){clearTimeout(Zt);Zt=setTimeout(function(){Zt=0},600)}}rt("pointerUp");De(t,false)&&t.preventDefault();var e;if(V){var i=r.arraySearch(Wt,t.pointerId,"id");if(i>-1){e=Wt.splice(i,1)[0];if(navigator.msPointerEnabled){var n={4:"mouse",2:"touch",3:"pen"};e.type=n[t.pointerType];e.type||(e.type=t.pointerType||"mouse")}else e.type=t.pointerType||"mouse"}}var s=Re(t),a,c=s.length;"mouseup"===t.type&&(c=0);if(2===c){se=null;return true}1===c&&ht($t,s[0]);if(0===c&&!ge&&!he){e||("mouseup"===t.type?e={x:t.pageX,y:t.pageY,type:"mouse"}:t.changedTouches&&t.changedTouches[0]&&(e={x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY,type:"touch"}));rt("touchRelease",t,e)}var u=-1;if(0===c){te=false;r.unbind(window,w,o);Se();ae?u=0:-1!==Jt&&(u=ot()-Jt)}Jt=1===c?ot():-1;a=-1!==u&&u<150?"zoom":"swipe";if(ae&&c<2){ae=false;1===c&&(a="zoomPointerUp");rt("zoomGestureEnded")}se=null;if(!ne&&!ie&&!he&&!Qt)return;Ot();Ut||(Ut=ze());Ut.calculateSwipeSpeed("x");if(Qt){var d=Me();if(d<l.verticalDragRange)o.close();else{var f=y.y,h=we;Pt("verticalDrag",0,1,300,r.easing.cubic.out,function(t){y.y=(o.currItem.initialPosition.y-f)*t+f;st((1-h)*t+h);lt()});rt("onVerticalDrag",1)}return}if((oe||he)&&0===c){var p=qe(a,Ut);if(p)return;a="zoomPointerUp"}if(he)return;if("swipe"!==a){Ye();return}!oe&&C>o.currItem.fitRatio&&Ue(Ut)},ze=function(){var t,e;var i={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(n){if(qt.length>1){t=ot()-Ft+50;e=qt[qt.length-2][n]}else{t=ot()-Bt;e=$t[n]}i.lastFlickOffset[n]=Ht[n]-e;i.lastFlickDist[n]=Math.abs(i.lastFlickOffset[n]);i.lastFlickDist[n]>20?i.lastFlickSpeed[n]=i.lastFlickOffset[n]/t:i.lastFlickSpeed[n]=0;Math.abs(i.lastFlickSpeed[n])<.1&&(i.lastFlickSpeed[n]=0);i.slowDownRatio[n]=.95;i.slowDownRatioReverse[n]=1-i.slowDownRatio[n];i.speedDecelerationRatio[n]=1},calculateOverBoundsAnimOffset:function(t,e){if(!i.backAnimStarted[t]){y[t]>ue.min[t]?i.backAnimDestination[t]=ue.min[t]:y[t]<ue.max[t]&&(i.backAnimDestination[t]=ue.max[t]);if(void 0!==i.backAnimDestination[t]){i.slowDownRatio[t]=.7;i.slowDownRatioReverse[t]=1-i.slowDownRatio[t];if(i.speedDecelerationRatioAbs[t]<.05){i.lastFlickSpeed[t]=0;i.backAnimStarted[t]=true;Pt("bounceZoomPan"+t,y[t],i.backAnimDestination[t],e||300,r.easing.sine.out,function(e){y[t]=e;lt()})}}}},calculateAnimOffset:function(t){if(!i.backAnimStarted[t]){i.speedDecelerationRatio[t]=i.speedDecelerationRatio[t]*(i.slowDownRatio[t]+i.slowDownRatioReverse[t]-i.slowDownRatioReverse[t]*i.timeDiff/10);i.speedDecelerationRatioAbs[t]=Math.abs(i.lastFlickSpeed[t]*i.speedDecelerationRatio[t]);i.distanceOffset[t]=i.lastFlickSpeed[t]*i.speedDecelerationRatio[t]*i.timeDiff;y[t]+=i.distanceOffset[t]}},panAnimLoop:function(){if(Tt.zoomPan){Tt.zoomPan.raf=z(i.panAnimLoop);i.now=ot();i.timeDiff=i.now-i.lastNow;i.lastNow=i.now;i.calculateAnimOffset("x");i.calculateAnimOffset("y");lt();i.calculateOverBoundsAnimOffset("x");i.calculateOverBoundsAnimOffset("y");if(i.speedDecelerationRatioAbs.x<.05&&i.speedDecelerationRatioAbs.y<.05){y.x=Math.round(y.x);y.y=Math.round(y.y);lt();Dt("zoomPan");return}}}};return i},Ue=function(t){t.calculateSwipeSpeed("y");ue=o.currItem.bounds;t.backAnimDestination={};t.backAnimStarted={};if(Math.abs(t.lastFlickSpeed.x)<=.05&&Math.abs(t.lastFlickSpeed.y)<=.05){t.speedDecelerationRatioAbs.x=t.speedDecelerationRatioAbs.y=0;t.calculateOverBoundsAnimOffset("x");t.calculateOverBoundsAnimOffset("y");return true}It("zoomPan");t.lastNow=ot();t.panAnimLoop()},qe=function(t,e){var i;he||(Kt=h);var n;if("swipe"===t){var s=Ht.x-$t.x,a=e.lastFlickDist.x<10;s>Lt&&(a||e.lastFlickOffset.x>20)?n=-1:s<-Lt&&(a||e.lastFlickOffset.x<-20)&&(n=1)}var c;if(n){h+=n;if(h<0){h=l.loop?ri()-1:0;c=true}else if(h>=ri()){h=l.loop?0:ri()-1;c=true}if(!c||l.loop){L+=n;D-=n;i=true}}var u=O.x*D;var d=Math.abs(u-de.x);var f;if(i||u>de.x===e.lastFlickSpeed.x>0){f=Math.abs(e.lastFlickSpeed.x)>0?d/Math.abs(e.lastFlickSpeed.x):333;f=Math.min(f,400);f=Math.max(f,250)}else f=333;Kt===h&&(i=false);he=true;rt("mainScrollAnimStart");Pt("mainScroll",de.x,u,f,r.easing.cubic.out,dt,function(){Ot();he=false;Kt=-1;(i||Kt!==h)&&o.updateCurrItem();rt("mainScrollAnimComplete")});i&&o.updateCurrItem(true);return i},Ge=function(t){return 1/ce*t*S},Ye=function(){var t=C,e=bt(),i=xt();C<e?t=e:C>i&&(t=i);var n=1,s,a=we;if(ye&&!Yt&&!be&&C<e){o.close();return true}ye&&(s=function(t){st((n-a)*t+a)});o.zoomTo(t,0,200,r.easing.cubic.out,s);return true};tt("Gestures",{publicMethods:{initGestures:function(){var t=function(t,e,i,n,r){N=t+e;B=t+i;F=t+n;R=r?t+r:""};V=Z.pointerEvent;V&&Z.touch&&(Z.touch=false);if(V)navigator.msPointerEnabled?t("MSPointer","Down","Move","Up","Cancel"):t("pointer","down","move","up","cancel");else if(Z.touch){t("touch","start","move","end","cancel");$=true}else t("mouse","down","move","up");w=B+" "+F+" "+R;b=N;V&&!$&&($=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1);o.likelyTouchDevice=$;x[N]=Ve;x[B]=He;x[F]=We;R&&(x[R]=x[F]);if(Z.touch){b+=" mousedown";w+=" mousemove mouseup";x.mousedown=x[N];x.mousemove=x[B];x.mouseup=x[F]}$||(l.allowPanToNext=false)}}});var Qe,Ze=function(e,i,n,s){Qe&&clearTimeout(Qe);ei=true;ti=true;var a;if(e.initialLayout){a=e.initialLayout;e.initialLayout=null}else a=l.getThumbBoundsFn&&l.getThumbBoundsFn(h);var c=n?l.hideAnimationDuration:l.showAnimationDuration;var u=function(){Dt("initialZoom");if(n){o.template.removeAttribute("style");o.bg.removeAttribute("style")}else{st(1);i&&(i.style.display="block");r.addClass(t,"pswp--animated-in");rt("initialZoom"+(n?"OutEnd":"InEnd"))}s&&s();ei=false};if(!c||!a||void 0===a.x){rt("initialZoom"+(n?"Out":"In"));C=e.initialZoomLevel;ht(y,e.initialPosition);lt();t.style.opacity=n?0:1;st(1);c?setTimeout(function(){u()},c):u();return}var d=function(){var i=f,s=!o.currItem.src||o.currItem.loadError||l.showHideOpacity;e.miniImg&&(e.miniImg.style.webkitBackfaceVisibility="hidden");if(!n){C=a.w/e.w;y.x=a.x;y.y=a.y-G;o[s?"template":"bg"].style.opacity=.001;lt()}It("initialZoom");n&&!i&&r.removeClass(t,"pswp--animated-in");s&&(n?r[(i?"remove":"add")+"Class"](t,"pswp--animate_opacity"):setTimeout(function(){r.addClass(t,"pswp--animate_opacity")},30));Qe=setTimeout(function(){rt("initialZoom"+(n?"Out":"In"));if(n){var o=a.w/e.w,l={x:y.x,y:y.y},d=C,f=we,h=function(e){if(1===e){C=o;y.x=a.x;y.y=a.y-Q}else{C=(o-d)*e+d;y.x=(a.x-l.x)*e+l.x;y.y=(a.y-Q-l.y)*e+l.y}lt();s?t.style.opacity=1-e:st(f-e*f)};if(i)Pt("initialZoom",0,1,c,r.easing.cubic.out,h,u);else{h(1);Qe=setTimeout(u,c+20)}}else{C=e.initialZoomLevel;ht(y,e.initialPosition);lt();st(1);s?t.style.opacity=1:st(1);Qe=setTimeout(u,c+20)}},n?25:90)};d()};var Ke,Xe={},Je=[],ti,ei,ii={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:false,preload:[1,1],getNumItemsFn:function(){return Ke.length}};var ni,ri,oi,si=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},ai=function(t,e,i){var n=t.bounds;n.center.x=Math.round((Xe.x-e)/2);n.center.y=Math.round((Xe.y-i)/2)+t.vGap.top;n.max.x=e>Xe.x?Math.round(Xe.x-e):n.center.x;n.max.y=i>Xe.y?Math.round(Xe.y-i)+t.vGap.top:n.center.y;n.min.x=e>Xe.x?0:n.center.x;n.min.y=i>Xe.y?t.vGap.top:n.center.y},li=function(t,e,i){if(t.src&&!t.loadError){var n=!i;if(n){t.vGap||(t.vGap={top:0,bottom:0});rt("parseVerticalMargin",t)}Xe.x=e.x;Xe.y=e.y-t.vGap.top-t.vGap.bottom;if(n){var r=Xe.x/t.w;var o=Xe.y/t.h;t.fitRatio=r<o?r:o;var s=l.scaleMode;"orig"===s?i=1:"fit"===s&&(i=t.fitRatio);i>1&&(i=1);t.initialZoomLevel=i;t.bounds||(t.bounds=si())}if(!i)return;ai(t,t.w*i,t.h*i);n&&i===t.initialZoomLevel&&(t.initialPosition=t.bounds.center);return t.bounds}t.w=t.h=0;t.initialZoomLevel=t.fitRatio=1;t.bounds=si();t.initialPosition=t.bounds.center;return t.bounds},ci=function(t,e,i,n,r,s){if(e.loadError)return;if(n){e.imageAppended=true;fi(e,n,e===o.currItem&&X);i.appendChild(n);s&&setTimeout(function(){if(e&&e.loaded&&e.placeholder){e.placeholder.style.display="none";e.placeholder=null}},500)}},ui=function(t){t.loading=true;t.loaded=false;var e=t.img=r.createEl("pswp__img","img");var i=function(){t.loading=false;t.loaded=true;t.loadComplete?t.loadComplete(t):t.img=null;e.onload=e.onerror=null;e=null};e.onload=i;e.onerror=function(){t.loadError=true;i()};e.src=t.src;return e},di=function(t,e){if(t.src&&t.loadError&&t.container){e&&(t.container.innerHTML="");t.container.innerHTML=l.errorMsg.replace("%url%",t.src);return true}},fi=function(t,e,i){if(!t.src)return;e||(e=t.container.lastChild);var n=i?t.w:Math.round(t.w*t.fitRatio),r=i?t.h:Math.round(t.h*t.fitRatio);if(t.placeholder&&!t.loaded){t.placeholder.style.width=n+"px";t.placeholder.style.height=r+"px"}e.style.width=n+"px";e.style.height=r+"px"},hi=function(){if(Je.length){var t;for(var e=0;e<Je.length;e++){t=Je[e];t.holder.index===t.index&&ci(t.index,t.item,t.baseDiv,t.img,false,t.clearPlaceholder)}Je=[]}};tt("Controller",{publicMethods:{lazyLoadItem:function(t){t=et(t);var e=ni(t);if(!e||(e.loaded||e.loading)&&!A)return;rt("gettingData",t,e);if(!e.src)return;ui(e)},initController:function(){r.extend(l,ii,true);o.items=Ke=i;ni=o.getItemAt;ri=l.getNumItemsFn;oi=l.loop;ri()<3&&(l.loop=false);nt("beforeChange",function(t){var e=l.preload,i=null===t||t>=0,n=Math.min(e[0],ri()),r=Math.min(e[1],ri()),s;for(s=1;s<=(i?r:n);s++)o.lazyLoadItem(h+s);for(s=1;s<=(i?n:r);s++)o.lazyLoadItem(h-s)});nt("initialLayout",function(){o.currItem.initialLayout=l.getThumbBoundsFn&&l.getThumbBoundsFn(h)});nt("mainScrollAnimComplete",hi);nt("initialZoomInEnd",hi);nt("destroy",function(){var t;for(var e=0;e<Ke.length;e++){t=Ke[e];t.container&&(t.container=null);t.placeholder&&(t.placeholder=null);t.img&&(t.img=null);t.preloader&&(t.preloader=null);t.loadError&&(t.loaded=t.loadError=false)}Je=null})},getItemAt:function(t){if(t>=0)return void 0!==Ke[t]&&Ke[t];return false},allowProgressiveImg:function(){return l.forceProgressiveLoading||!$||l.mouseUsed||screen.width>1200},setContent:function(t,e){l.loop&&(e=et(e));var i=o.getItemAt(t.index);i&&(i.container=null);var n=o.getItemAt(e),s;if(!n){t.el.innerHTML="";return}rt("gettingData",e,n);t.index=e;t.item=n;var a=n.container=r.createEl("pswp__zoom-wrap");!n.src&&n.html&&(n.html.tagName?a.appendChild(n.html):a.innerHTML=n.html);di(n);li(n,_);if(!n.src||n.loadError||n.loaded){if(n.src&&!n.loadError){s=r.createEl("pswp__img","img");s.style.opacity=1;s.src=n.src;fi(n,s);ci(e,n,a,s,true)}}else{n.loadComplete=function(i){if(!u)return;if(t&&t.index===e){if(di(i,true)){i.loadComplete=i.img=null;li(i,_);ct(i);t.index===h&&o.updateCurrZoomItem();return}if(i.imageAppended){if(!ei&&i.placeholder){i.placeholder.style.display="none";i.placeholder=null}}else Z.transform&&(he||ei)?Je.push({item:i,baseDiv:a,img:i.img,index:e,holder:t,clearPlaceholder:true}):ci(e,i,a,i.img,he||ei,true)}i.loadComplete=null;i.img=null;rt("imageLoadComplete",e,i)};if(r.features.transform){var c="pswp__img pswp__img--placeholder";c+=n.msrc?"":" pswp__img--placeholder--blank";var d=r.createEl(c,n.msrc?"img":"");n.msrc&&(d.src=n.msrc);fi(n,d);a.appendChild(d);n.placeholder=d}n.loading||ui(n);o.allowProgressiveImg()&&(!ti&&Z.transform?Je.push({item:n,baseDiv:a,img:n.img,index:e,holder:t}):ci(e,n,a,n.img,true,true))}if(ti||e!==h)ct(n);else{fe=a.style;Ze(n,s||n.img)}t.el.innerHTML="";t.el.appendChild(a)},cleanSlide:function(t){t.img&&(t.img.onload=t.img.onerror=null);t.loaded=t.loading=t.img=t.imageAppended=false}}});var pi,mi={},gi=function(t,e,i){var n=document.createEvent("CustomEvent"),r={origEvent:t,target:t.target,releasePoint:e,pointerType:i||"touch"};n.initCustomEvent("pswpTap",true,true,r);t.target.dispatchEvent(n)};tt("Tap",{publicMethods:{initTap:function(){nt("firstTouchStart",o.onTapStart);nt("touchRelease",o.onTapRelease);nt("destroy",function(){mi={};pi=null})},onTapStart:function(t){if(t.length>1){clearTimeout(pi);pi=null}},onTapRelease:function(t,e){if(!e)return;if(!ne&&!ee&&!At){var i=e;if(pi){clearTimeout(pi);pi=null;if(_e(i,mi)){rt("doubleTap",i);return}}if("mouse"===e.type){gi(t,e,"mouse");return}var n=t.target.tagName.toUpperCase();if("BUTTON"===n||r.hasClass(t.target,"pswp__single-tap")){gi(t,e);return}ht(mi,i);pi=setTimeout(function(){gi(t,e);pi=null},300)}}}});var vi;tt("DesktopZoom",{publicMethods:{initDesktopZoom:function(){if(Y)return;$?nt("mouseUsed",function(){o.setupDesktopZoom()}):o.setupDesktopZoom(true)},setupDesktopZoom:function(e){vi={};var i="wheel mousewheel DOMMouseScroll";nt("bindEvents",function(){r.bind(t,i,o.handleMouseWheel)});nt("unbindEvents",function(){vi&&r.unbind(t,i,o.handleMouseWheel)});o.mouseZoomedIn=false;var n,s=function(){if(o.mouseZoomedIn){r.removeClass(t,"pswp--zoomed-in");o.mouseZoomedIn=false}C<1?r.addClass(t,"pswp--zoom-allowed"):r.removeClass(t,"pswp--zoom-allowed");a()},a=function(){if(n){r.removeClass(t,"pswp--dragging");n=false}};nt("resize",s);nt("afterChange",s);nt("pointerDown",function(){if(o.mouseZoomedIn){n=true;r.addClass(t,"pswp--dragging")}});nt("pointerUp",a);e||s()},handleMouseWheel:function(t){if(C<=o.currItem.fitRatio){if(l.modal)if(!l.closeOnScroll||At||te)t.preventDefault();else if(j&&Math.abs(t.deltaY)>2){f=true;o.close()}return true}t.stopPropagation();vi.x=0;if("deltaX"in t)if(1===t.deltaMode){vi.x=18*t.deltaX;vi.y=18*t.deltaY}else{vi.x=t.deltaX;vi.y=t.deltaY}else if("wheelDelta"in t){t.wheelDeltaX&&(vi.x=-.16*t.wheelDeltaX);t.wheelDeltaY?vi.y=-.16*t.wheelDeltaY:vi.y=-.16*t.wheelDelta}else{if(!("detail"in t))return;vi.y=t.detail}wt(C,true);var e=y.x-vi.x,i=y.y-vi.y;(l.modal||e<=ue.min.x&&e>=ue.max.x&&i<=ue.min.y&&i>=ue.max.y)&&t.preventDefault();o.panTo(e,i)},toggleDesktopZoom:function(e){e=e||{x:_.x/2+I.x,y:_.y/2+I.y};var i=l.getDoubleTapZoom(true,o.currItem);var n=C===i;o.mouseZoomedIn=!n;o.zoomTo(n?o.currItem.initialZoomLevel:i,e,333);r[(n?"remove":"add")+"Class"](t,"pswp--zoomed-in")}}});var yi={history:true,galleryUID:1};var wi,bi,xi,_i,Ci,Si,Ei,ki,Ti,Ai,Di,Ii,Oi=function(){return Di.hash.substring(1)},Pi=function(){wi&&clearTimeout(wi);xi&&clearTimeout(xi)},Mi=function(){var t=Oi(),e={};if(t.length<5)return e;var i,n=t.split("&");for(i=0;i<n.length;i++){if(!n[i])continue;var r=n[i].split("=");if(r.length<2)continue;e[r[0]]=r[1]}if(l.galleryPIDs){var o=e.pid;e.pid=0;for(i=0;i<Ke.length;i++)if(Ke[i].pid===o){e.pid=i;break}}else e.pid=parseInt(e.pid,10)-1;e.pid<0&&(e.pid=0);return e},Li=function(){xi&&clearTimeout(xi);if(At||te){xi=setTimeout(Li,500);return}_i?clearTimeout(bi):_i=true;var t=h+1;var e=ni(h);e.hasOwnProperty("pid")&&(t=e.pid);var i=Ei+"&gid="+l.galleryUID+"&pid="+t;ki||-1===Di.hash.indexOf(i)&&(Ai=true);var n=Di.href.split("#")[0]+"#"+i;Ii?"#"+i!==window.location.hash&&history[ki?"replaceState":"pushState"]("",document.title,n):ki?Di.replace(n):Di.hash=i;ki=true;bi=setTimeout(function(){_i=false},60)};tt("History",{publicMethods:{initHistory:function(){r.extend(l,yi,true);if(!l.history)return;Di=window.location;Ai=false;Ti=false;ki=false;Ei=Oi();Ii="pushState"in history;if(Ei.indexOf("gid=")>-1){Ei=Ei.split("&gid=")[0];Ei=Ei.split("?gid=")[0]}nt("afterChange",o.updateURL);nt("unbindEvents",function(){r.unbind(window,"hashchange",o.onHashChange)});var t=function(){Si=true;Ti||(Ai?history.back():Ei?Di.hash=Ei:Ii?history.pushState("",document.title,Di.pathname+Di.search):Di.hash="");Pi()};nt("unbindEvents",function(){f&&t()});nt("destroy",function(){Si||t()});nt("firstUpdate",function(){h=Mi().pid});var e=Ei.indexOf("pid=");if(e>-1){Ei=Ei.substring(0,e);"&"===Ei.slice(-1)&&(Ei=Ei.slice(0,-1))}setTimeout(function(){u&&r.bind(window,"hashchange",o.onHashChange)},40)},onHashChange:function(){if(Oi()===Ei){Ti=true;o.close();return}if(!_i){Ci=true;o.goTo(Mi().pid);Ci=false}},updateURL:function(){Pi();if(Ci)return;ki?wi=setTimeout(Li,800):Li()}}});r.extend(o,Mt)};return t})},function(t,e,i){var n,r;
|
|
/*! PhotoSwipe Default UI - 4.1.3 - 2019-01-08
|
|
* http://photoswipe.com
|
|
* Copyright (c) 2019 Dmitry Semenov; */
|
|
/*! PhotoSwipe Default UI - 4.1.3 - 2019-01-08
|
|
* http://photoswipe.com
|
|
* Copyright (c) 2019 Dmitry Semenov; */
|
|
(function(o,s){true;!(n=s,r="function"===typeof n?n.call(e,i,e,t):n,void 0!==r&&(t.exports=r))})(this,function(){"use strict";var t=function(t,e){var i=this;var n=false,r=true,o,s,a,l,c,u,d,f=true,h,p,m,g,v,y,w,b,x={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(t,e){if(!t.title){e.children[0].innerHTML="";return false}e.children[0].innerHTML=t.title;return true},closeEl:true,captionEl:true,fullscreenEl:true,zoomEl:true,shareEl:true,counterEl:true,arrowEl:true,preloaderEl:true,tapToClose:false,tapToToggleControls:true,clickToCloseNonZoomable:true,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:true}],getImageURLForShare:function(){return t.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return t.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},_,C;var S=function(t){if(_)return true;t=t||window.event;b.timeToIdle&&b.mouseUsed&&!p&&B();var i=t.target||t.srcElement,n,r=i.getAttribute("class")||"",o;for(var s=0;s<z.length;s++){n=z[s];if(n.onTap&&r.indexOf("pswp__"+n.name)>-1){n.onTap();o=true}}if(o){t.stopPropagation&&t.stopPropagation();_=true;var a=e.features.isOldAndroid?600:30;C=setTimeout(function(){_=false},a)}},E=function(){return!t.likelyTouchDevice||b.mouseUsed||screen.width>b.fitControlsWidth},k=function(t,i,n){e[(n?"add":"remove")+"Class"](t,"pswp__"+i)},T=function(){var t=1===b.getNumItemsFn();if(t!==w){k(s,"ui--one-slide",t);w=t}},A=function(){k(d,"share-modal--hidden",f)},D=function(){f=!f;if(f){e.removeClass(d,"pswp__share-modal--fade-in");setTimeout(function(){f&&A()},300)}else{A();setTimeout(function(){f||e.addClass(d,"pswp__share-modal--fade-in")},30)}f||O();return false},I=function(e){e=e||window.event;var i=e.target||e.srcElement;t.shout("shareLinkClick",e,i);if(!i.href)return false;if(i.hasAttribute("download"))return true;window.open(i.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100));f||D();return false},O=function(){var t="",e,i,n,r,o;for(var s=0;s<b.shareButtons.length;s++){e=b.shareButtons[s];n=b.getImageURLForShare(e);r=b.getPageURLForShare(e);o=b.getTextForShare(e);i=e.url.replace("{{url}}",encodeURIComponent(r)).replace("{{image_url}}",encodeURIComponent(n)).replace("{{raw_image_url}}",n).replace("{{text}}",encodeURIComponent(o));t+='<a href="'+i+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>";b.parseShareButtonOut&&(t=b.parseShareButtonOut(e,t))}d.children[0].innerHTML=t;d.children[0].onclick=I},P=function(t){for(var i=0;i<b.closeElClasses.length;i++)if(e.hasClass(t,"pswp__"+b.closeElClasses[i]))return true},M,L,N=0,B=function(){clearTimeout(L);N=0;p&&i.setIdle(false)},F=function(t){t=t||window.event;var e=t.relatedTarget||t.toElement;if(!e||"HTML"===e.nodeName){clearTimeout(L);L=setTimeout(function(){i.setIdle(true)},b.timeToIdleOutside)}},R=function(){if(b.fullscreenEl&&!e.features.isOldAndroid){o||(o=i.getFullscreenAPI());if(o){e.bind(document,o.eventK,i.updateFullscreen);i.updateFullscreen();e.addClass(t.template,"pswp--supports-fs")}else e.removeClass(t.template,"pswp--supports-fs")}},j=function(){if(b.preloaderEl){V(true);m("beforeChange",function(){clearTimeout(y);y=setTimeout(function(){t.currItem&&t.currItem.loading?(!t.allowProgressiveImg()||t.currItem.img&&!t.currItem.img.naturalWidth)&&V(false):V(true)},b.loadingIndicatorDelay)});m("imageLoadComplete",function(e,i){t.currItem===i&&V(true)})}},V=function(t){if(v!==t){k(g,"preloader--active",!t);v=t}},H=function(t){var i=t.vGap;if(E()){var n=b.barsSize;if(b.captionEl&&"auto"===n.bottom){if(!l){l=e.createEl("pswp__caption pswp__caption--fake");l.appendChild(e.createEl("pswp__caption__center"));s.insertBefore(l,a);e.addClass(s,"pswp__ui--fit")}if(b.addCaptionHTMLFn(t,l,true)){var r=l.clientHeight;i.bottom=parseInt(r,10)||44}else i.bottom=n.top}else i.bottom="auto"===n.bottom?0:n.bottom;i.top=n.top}else i.top=i.bottom=0},$=function(){b.timeToIdle&&m("mouseUsed",function(){e.bind(document,"mousemove",B);e.bind(document,"mouseout",F);M=setInterval(function(){N++;2===N&&i.setIdle(true)},b.timeToIdle/2)})},W=function(){m("onVerticalDrag",function(t){r&&t<.95?i.hideControls():!r&&t>=.95&&i.showControls()});var t;m("onPinchClose",function(e){if(r&&e<.9){i.hideControls();t=true}else t&&!r&&e>.9&&i.showControls()});m("zoomGestureEnded",function(){t=false;t&&!r&&i.showControls()})};var z=[{name:"caption",option:"captionEl",onInit:function(t){a=t}},{name:"share-modal",option:"shareEl",onInit:function(t){d=t},onTap:function(){D()}},{name:"button--share",option:"shareEl",onInit:function(t){u=t},onTap:function(){D()}},{name:"button--zoom",option:"zoomEl",onTap:t.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(t){c=t}},{name:"button--close",option:"closeEl",onTap:t.close},{name:"button--arrow--left",option:"arrowEl",onTap:t.prev},{name:"button--arrow--right",option:"arrowEl",onTap:t.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){o.isFullscreen()?o.exit():o.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(t){g=t}}];var U=function(){var t,i,n;var r=function(r){if(!r)return;var o=r.length;for(var s=0;s<o;s++){t=r[s];i=t.className;for(var a=0;a<z.length;a++){n=z[a];if(i.indexOf("pswp__"+n.name)>-1)if(b[n.option]){e.removeClass(t,"pswp__element--disabled");n.onInit&&n.onInit(t)}else e.addClass(t,"pswp__element--disabled")}}};r(s.children);var o=e.getChildByClass(s,"pswp__top-bar");o&&r(o.children)};i.init=function(){e.extend(t.options,x,true);b=t.options;s=e.getChildByClass(t.scrollWrap,"pswp__ui");m=t.listen;W();m("beforeChange",i.update);m("doubleTap",function(e){var i=t.currItem.initialZoomLevel;t.getZoomLevel()!==i?t.zoomTo(i,e,333):t.zoomTo(b.getDoubleTapZoom(false,t.currItem),e,333)});m("preventDragEvent",function(t,e,i){var n=t.target||t.srcElement;n&&n.getAttribute("class")&&t.type.indexOf("mouse")>-1&&(n.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(n.tagName))&&(i.prevent=false)});m("bindEvents",function(){e.bind(s,"pswpTap click",S);e.bind(t.scrollWrap,"pswpTap",i.onGlobalTap);t.likelyTouchDevice||e.bind(t.scrollWrap,"mouseover",i.onMouseOver)});m("unbindEvents",function(){f||D();M&&clearInterval(M);e.unbind(document,"mouseout",F);e.unbind(document,"mousemove",B);e.unbind(s,"pswpTap click",S);e.unbind(t.scrollWrap,"pswpTap",i.onGlobalTap);e.unbind(t.scrollWrap,"mouseover",i.onMouseOver);if(o){e.unbind(document,o.eventK,i.updateFullscreen);if(o.isFullscreen()){b.hideAnimationDuration=0;o.exit()}o=null}});m("destroy",function(){if(b.captionEl){l&&s.removeChild(l);e.removeClass(a,"pswp__caption--empty")}d&&(d.children[0].onclick=null);e.removeClass(s,"pswp__ui--over-close");e.addClass(s,"pswp__ui--hidden");i.setIdle(false)});b.showAnimationDuration||e.removeClass(s,"pswp__ui--hidden");m("initialZoomIn",function(){b.showAnimationDuration&&e.removeClass(s,"pswp__ui--hidden")});m("initialZoomOut",function(){e.addClass(s,"pswp__ui--hidden")});m("parseVerticalMargin",H);U();b.shareEl&&u&&d&&(f=true);T();$();R();j()};i.setIdle=function(t){p=t;k(s,"ui--idle",t)};i.update=function(){if(r&&t.currItem){i.updateIndexIndicator();if(b.captionEl){b.addCaptionHTMLFn(t.currItem,a);k(a,"caption--empty",!t.currItem.title)}n=true}else n=false;f||D();T()};i.updateFullscreen=function(i){i&&setTimeout(function(){t.setScrollOffset(0,e.getScrollY())},50);e[(o.isFullscreen()?"add":"remove")+"Class"](t.template,"pswp--fs")};i.updateIndexIndicator=function(){b.counterEl&&(c.innerHTML=t.getCurrentIndex()+1+b.indexIndicatorSep+b.getNumItemsFn())};i.onGlobalTap=function(n){n=n||window.event;var o=n.target||n.srcElement;if(_)return;if(n.detail&&"mouse"===n.detail.pointerType){if(P(o)){t.close();return}e.hasClass(o,"pswp__img")&&(1===t.getZoomLevel()&&t.getZoomLevel()<=t.currItem.fitRatio?b.clickToCloseNonZoomable&&t.close():t.toggleDesktopZoom(n.detail.releasePoint))}else{b.tapToToggleControls&&(r?i.hideControls():i.showControls());if(b.tapToClose&&(e.hasClass(o,"pswp__img")||P(o))){t.close();return}}};i.onMouseOver=function(t){t=t||window.event;var e=t.target||t.srcElement;k(s,"ui--over-close",P(e))};i.hideControls=function(){e.addClass(s,"pswp__ui--hidden");r=false};i.showControls=function(){r=true;n||i.update();e.removeClass(s,"pswp__ui--hidden")};i.supportsFullscreen=function(){var t=document;return!!(t.exitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen||t.msExitFullscreen)};i.getFullscreenAPI=function(){var e=document.documentElement,i,n="fullscreenchange";e.requestFullscreen?i={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:n}:e.mozRequestFullScreen?i={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+n}:e.webkitRequestFullscreen?i={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+n}:e.msRequestFullscreen&&(i={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"});if(i){i.enter=function(){h=b.closeOnScroll;b.closeOnScroll=false;if("webkitRequestFullscreen"!==this.enterK)return t.template[this.enterK]();t.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)};i.exit=function(){b.closeOnScroll=h;return document[this.exitK]()};i.isFullscreen=function(){return document[this.elementK]}}return i}};return t})},function(t,e,i){"use strict";var n=i(0);var r=i.n(n);var o=i(1);var s=i.n(o);s.a.cart=s.a.cart||{};s.a.cart.active_inputs=null;let a='input[name="product-quantity-spin"]';let l=false;let c=false;let u="";function d(){r.a.each(r()(a),function(t,e){r()(e).TouchSpin({verticalbuttons:false,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin js-increase-product-quantity",buttonup_class:"btn btn-touchspin js-touchspin js-decrease-product-quantity",min:parseInt(r()(e).attr("min"),10),max:1e6})});f.switchErrorStat()}r()(document).ready(()=>{let t=".js-cart-line-product-quantity";let e=[];s.a.on("updateCart",()=>{r()(".quickview").modal("hide")});s.a.on("updatedCart",()=>{d();r()("#header .row.action .blockcart a").click(function(t){t.preventDefault();r()("body").addClass("side_open");r()(".side_menu .side_menu_rel > div").removeClass("show");r()("#side_cart_wrap").addClass("show");r()(".side_close").removeClass("search_close menu_close").addClass("cart_close");r()(".side_menu").find(".cart-prods > li").each(function(t){var e=r()(this);setTimeout(function(){e.addClass("show")},300+160*t)})})});d();let i=r()("body");function n(t){return"on.startupspin"===t||"on.startdownspin"===t}function o(t){return"on.startupspin"===t}function l(e){var i=e.parents(".bootstrap-touchspin").find(t);return i.is(":focus")?null:i}function c(t){let e=t.split("-");let i;let n;let r="";for(i=0;i<e.length;i++){n=e[i];0!==i&&(n=n.substring(0,1).toUpperCase()+n.substring(1));r+=n}return r}function u(t,e){if(!n(e))return{url:t.attr("href"),type:c(t.data("link-action"))};let i=l(t);if(!i)return;let r={};r=o(e)?{url:i.data("up-url"),type:"increaseProductQuantity"}:{url:i.data("down-url"),type:"decreaseProductQuantity"};return r}let h=()=>{var t;while(e.length>0){t=e.pop();t.abort()}};var p=t=>{return r()(t.parents(".bootstrap-touchspin").find("input"))};var m=t=>{t.preventDefault();let i=r()(t.currentTarget);let n=t.currentTarget.dataset;let o=u(i,t.namespace);let a={ajax:"1",action:"update"};if("undefined"===typeof o)return;h();r.a.ajax({url:o.url,method:"POST",data:a,dataType:"json",beforeSend:function(t){e.push(t)}}).then(function(t){f.checkUpdateOpertation(t);var e=p(i);e.val(t.quantity);s.a.emit("updateCart",{reason:n})}).fail(t=>{s.a.emit("handleError",{eventType:"updateProductInCart",resp:t,cartAction:o.type})})};i.on("click",'[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]',m);i.on("touchspin.on.startdownspin",a,m);i.on("touchspin.on.startupspin",a,m);function g(t,i,n){h();return r.a.ajax({url:t,method:"POST",data:i,dataType:"json",beforeSend:function(t){e.push(t)}}).then(function(t){f.checkUpdateOpertation(t);n.val(t.quantity);var e;e=n&&n.dataset?n.dataset:t;s.a.emit("updateCart",{reason:e})}).fail(t=>{s.a.emit("handleError",{eventType:"updateProductQuantityInCart",resp:t})})}function v(t){return{ajax:"1",qty:Math.abs(t),action:"update",op:y(t)}}function y(t){return t>0?"up":"down"}function w(t){let e=r()(t.currentTarget);let i=e.data("update-url");let n=e.attr("value");let o=e.val();if(o!=parseInt(o)||o<0||isNaN(o)){e.val(n);return}let s=o-n;if(0==s)return;var a=v(s);g(i,a,e)}i.on("focusout",t,t=>{w(t)});i.on("keyup",t,t=>{13==t.keyCode&&w(t)});i.on("click",".js-discount .code",t=>{t.stopPropagation();var e=r()(t.currentTarget);var i=r()("[name=discount_name]");i.val(e.text());return false})});const f={switchErrorStat:()=>{let t=r()(".checkout a");(r()("#notifications article.alert-danger").length||""!==u&&!l)&&t.addClass("disabled");if(""!==u){let e=' <article class="alert alert-danger" role="alert" data-alert="danger"><ul><li>'+u+"</li></ul></article>";r()("#notifications .container").html(e);u="";c=false;l&&t.removeClass("disabled")}else if(!l&&c){l=false;c=false;r()("#notifications .container").html("");t.removeClass("disabled")}},checkUpdateOpertation:t=>{l=t.hasOwnProperty("hasError");let e=t.errors||"";u=e instanceof Array?e.join(" "):e;c=true}}},function(t,e,i){"use strict";var n=i(0);var r=i.n(n);var o=i(1);var s=i.n(o);function a(){r()("i.rts").each(function(t){var e=r()(this).html(),i=r()(this).attr("data-size"),n=r()(this).attr("data-color"),o=r()(this).attr("data-align");if("fav1"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M14.05,6.72C8.17.2,2.57,7.54,3.67,11.76,5.56,19,14.05,23.57,14.05,23.57s7.74-4.16,10.39-11.81C25.86,7.64,20.24.13,14.05,6.72Z" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/></svg>';if("fav2"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M14.63,4l3.53,5.67L24.32,11a.89.89,0,0,1,.49,1.33l-4.18,4.92.5,6.48a.89.89,0,0,1-1.16.78l-6-2.59-6,2.59a.89.89,0,0,1-1.16-.79l.57-6.58L3.06,12.33A.89.89,0,0,1,3.52,11L10.1,9.68,13.2,4A.89.89,0,0,1,14.63,4Z" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/></svg>';if("fav3"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M23,6.11C23,4.4,21.29,3,19.19,3H9.81C7.71,3,6,4.4,6,6.11V25.3c0,.77,1.22,1.08,1.75.43L14.5,17.5l6.71,8.18c.54.65,1.79.34,1.79-.44Z" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/></svg>';if("acc1"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M18.53,8.7c0,3.17-2.09,6.78-4.18,6.78s-4.18-3.61-4.18-6.78S12,4,14.35,4,18.53,5.53,18.53,8.7Z" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><path d="M8.41,17.17A8.13,8.13,0,0,0,6,23a11.46,11.46,0,0,0,.17,2H22.53a11.46,11.46,0,0,0,.17-2,8.13,8.13,0,0,0-2.41-5.87" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/></svg>';if("acc2"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><circle cx="14.5" cy="9.5" r="5.5" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><path d="M8.46,17.78C6.88,19.66,7,20.07,7,22.92A12.19,12.19,0,0,0,7.18,25H22.36a12.19,12.19,0,0,0,.18-2.08c0-2.85.12-3.26-1.46-5.13" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/></svg>';if("acc3"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><circle cx="14" cy="9" r="5" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><path d="M14,18.07c-2.27.53-8.14,1.77-8.14,4.75,0,.75,0,1.48.08,2.18H22.37c0-.71.08-1.43.08-2.18,0-3-6.58-4.22-8.49-4.75" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/></svg>';if("acc4"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M23.67,25V22.65A4.67,4.67,0,0,0,19,18H9.67A4.67,4.67,0,0,0,5,22.65V25" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><circle cx="14.33" cy="8.65" r="4.67" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/></svg>';if("acc5"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><circle cx="14.16" cy="9.14" r="2.43" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><path d="M8.68,19.49a5.48,5.48,0,1,1,11,0" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><circle cx="14" cy="14" r="11" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/></svg>';if("acc6"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M13,25h9a1.83,1.83,0,0,0,1.84-1.79q0-.14,0-.28c0-2.83-7.46-4-9.62-4.51" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><path d="M14.22,18.42C11.66,18.92,5,20.09,5,22.93q0,.13,0,.25A1.83,1.83,0,0,0,6.83,25H12" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><path d="M10.53,13.95c.81,1,1.89,3.32,3.32,3.32,2.44,0,4.42-3.08,4.42-5.53" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><path d="M9,17H6.11l1.11-4.42c0-4.88,3.23-8.84,7.22-8.84s7.22,4,7.22,8.84l1,4.42H19" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><path d="M10.53,12.84A12.44,12.44,0,0,0,15,7.32s2.21,5.53,4.42,4.42" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/></svg>';if("search1"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><circle cx="13.41" cy="12.91" r="9.41" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:2px"/><line x1="25.18" y1="23.5" x2="21.65" y2="19.97" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:2px"/></svg>';if("search2"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><circle cx="14.76" cy="12.91" r="9.41" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:2px"/><line x1="3" y1="23.5" x2="6.53" y2="19.97" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:2px"/></svg>';if("search3"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><circle cx="12.5" cy="12.25" r="8" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:2px"/><line x1="24.5" y1="24.25" x2="21.07" y2="20.82" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:2px"/></svg>';if("search4"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><circle cx="16" cy="12.25" r="8" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:2px"/><line x1="4" y1="24.25" x2="7.43" y2="20.82" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:2px"/></svg>';if("qv1"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>';if("qv2"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="feather feather-move"><polyline points="5 9 2 12 5 15"></polyline><polyline points="9 5 12 2 15 5"></polyline><polyline points="15 19 12 22 9 19"></polyline><polyline points="19 9 22 12 19 15"></polyline><line x1="2" y1="12" x2="22" y2="12"></line><line x1="12" y1="2" x2="12" y2="22"></line></svg>';if("discover1"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="6" y="14" width="16" height="4" rx="1.6" ry="1.6" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><rect x="2" y="6" width="20" height="4" rx="2" ry="2" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/></svg>';if("discover2"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12.02" cy="12" r="10" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><polyline points="10.55 8.94 14.51 11.98 10.55 15.06" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/></svg>';if("discover3"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="2" y="2" width="8" height="8" rx="3" ry="3" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><rect x="2" y="14" width="8" height="8" rx="3" ry="3" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><rect x="14" y="2" width="8" height="8" rx="3" ry="3" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><rect x="14" y="14" width="8" height="8" rx="3" ry="3" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/></svg>';if("discover4"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.85,20.76l8-8.69L12,4a1.7,1.7,0,0,0-2,0L7.91,6.07a1.19,1.19,0,0,0,0,1.58L13,12.06,8,17a1.81,1.81,0,0,0,0,2l2.39,1.74A1,1,0,0,0,11.85,20.76Z" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7999999523162842px"/></svg>';if("discover5"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle></svg>';if("discover6"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" class="feather feather-fast-forward"><polygon points="13 19 22 12 13 5 13 19"></polygon><polygon points="2 19 11 12 2 5 2 19"></polygon></svg>';if("plus"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g id="Layer_4" data-name="Layer 4"><path d="M14.1,18.3V14.1h4.2a.7.7,0,0,0,.7-.7V10.6a.7.7,0,0,0-.7-.7H14.1V5.7a.7.7,0,0,0-.7-.7H10.6a.7.7,0,0,0-.7.7V9.9H5.7a.7.7,0,0,0-.7.7v2.8a.7.7,0,0,0,.7.7H9.9v4.2a.7.7,0,0,0,.7.7h2.8A.7.7,0,0,0,14.1,18.3Z" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:2px"/></g></svg>';if("cat_grid"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:2.2px;}</style></defs><rect class="a" x="2" y="2" width="8" height="8" rx="3" ry="3"/><rect class="a" x="2" y="14" width="8" height="8" rx="3" ry="3"/><rect class="a" x="14" y="2" width="8" height="8" rx="3" ry="3"/><rect class="a" x="14" y="14" width="8" height="8" rx="3" ry="3"/></svg>';if("cat_list"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:2.2px;}</style></defs><rect class="a" x="2" y="2" width="20" height="4" rx="2" ry="2"/><rect class="a" x="2" y="10" width="20" height="4" rx="2" ry="2"/><rect class="a" x="2" y="18" width="20" height="4" rx="2" ry="2"/></svg>';if("cat_filter"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a,.b{fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;}.a{stroke-width:2px;}.b{stroke-width:2.3px;}</style></defs><circle class="a" cx="4" cy="8" r="3"/><circle class="a" cx="20" cy="9" r="3"/><circle class="a" cx="12" cy="16" r="3"/><line class="b" x1="20" y1="2" x2="20" y2="5"/><line class="b" x1="4" y1="2" x2="4" y2="4"/><line class="b" x1="4" y1="14.29" x2="4" y2="22.21"/><line class="b" x1="12" y1="20.29" x2="12" y2="22.21"/><line class="b" x1="20" y1="15.29" x2="20" y2="22.21"/><line class="b" x1="12" y1="2" x2="12" y2="12"/></svg>';if("round_plus"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:2.5px;}</style></defs><circle class="a" cx="12.02" cy="12" r="10"/><line class="a" x1="8.54" y1="12.08" x2="15.54" y2="12.08"/><line class="a" x1="12.04" y1="15.58" x2="12.04" y2="8.58"/></svg>';if("cart1"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20,21H3a1,1,0,0,1-1-1L3,4A1,1,0,0,1,4,3H19a1,1,0,0,1,1,1l1,16A1,1,0,0,1,20,21Z" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:2px"/><path d="M15,6V9a3.28,3.28,0,0,1-3.5,3A3.28,3.28,0,0,1,8,9V6" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:2px"/></svg>';if("cart2"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M21.46,26H6.54C4,26,4,23.86,4,22.46V2H24V22.46C24,23.86,24,26,21.46,26Z" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:2px"/><path d="M10,8v.78c0,2.68,1.8,4.88,4,4.88s4-2.19,4-4.88V8" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:2px"/></svg>';if("cart3"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M23,7H19V6a4.57,4.57,0,0,0-6.08-4C10.74,2.61,9,4.1,9,6.36V12h2V9h4V7H11V5.94C11,4.41,12.48,4.22,14,4c1.91-.28,3,.08,3,2.21V12h2V9h2l2,16H5L7,8,5,9,3,27H25Z"/></svg>';if("cart4"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M23.71,7H19V5.36C19,3.18,17.08,2,14,2S8,3.18,8,5.36V7H4.29A2.29,2.29,0,0,0,2,9.29V22.71A2.29,2.29,0,0,0,4.29,25H23.71A2.29,2.29,0,0,0,26,22.71V9.29A2.29,2.29,0,0,0,23.71,7ZM10,5.36c0-.64,1.4-1.6,3.5-1.6s3.5,1,3.5,1.6V7H10ZM24,23H4V9H8v5h2V9H24Z"/><rect x="16" y="12" width="3" height="2"/></svg>';if("cart5"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M10,10V6.75c0-2.33,0-3.5,3.5-4.67A2.82,2.82,0,0,1,17,4.42V9" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:1.75px"/><polygon points="3.5 25.05 6.94 7.88 20.68 6.74 22.96 25.05 9.23 26.2 3.5 25.05" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:1.75px"/><line x1="6.94" y1="7.88" x2="9.23" y2="26.2" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:1.75px"/></svg>';if("cart6"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><polygon points="6.78 7 6.17 18 21.45 18 25.12 7 6.78 7" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:1.8px"/><line x1="2" y1="3" x2="12" y2="3" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:2px"/><circle cx="9" cy="23" r="2"/><circle cx="16" cy="23" r="2"/></svg>';if("cart7"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 28 28"><defs><linearGradient id="a" x1="11.69" y1="24.1" x2="14.19" y2="24.1" gradientTransform="matrix(-1, 0, 0, 1, 30, 0)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1"/></linearGradient><linearGradient id="b" x1="19.18" y1="24.1" x2="21.68" y2="24.1" xlink:href="#a"/></defs><path d="M15.81,22.85c0,2.5.56,2.5,1.25,2.5a1.25,1.25,0,0,0,1.25-1.25" style="stroke:'+n+';stroke-miterlimit:10;stroke-width:2px;fill:url(#a)"/><path d="M8.32,22.85c0,2.5.56,2.5,1.25,2.5a1.25,1.25,0,0,0,1.25-1.25" style="stroke:'+n+';stroke-miterlimit:10;stroke-width:2px;fill:url(#b)"/><path d="M26.56,3.4,23,7l-4.8,12H8.56L3.76,9.4C2.56,7,5,7,5,7H17" style="fill:none;stroke:'+n+';stroke-miterlimit:10;stroke-width:2px"/></svg>';if("cart8"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><path d="M6.67,2,3,6.8V23.6A2.4,2.4,0,0,0,5.4,26H22.6A2.4,2.4,0,0,0,25,23.6V6.8L21.33,2Z" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><line x1="3" y1="7" x2="25" y2="7" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/><path d="M19,11.61a4.8,4.8,0,1,1-9.59,0" style="fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px"/></svg>';if("truck"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;}</style></defs><circle class="a" cx="7" cy="19" r="3"/><circle class="a" cx="18.06" cy="19" r="3"/><path class="a" d="M18.95,6H15c-1.1,0-1,3.9-1,5v5a2,2,0,0,0,1.29,1.86,3,3,0,0,1,5.59.14h.07a2,2,0,0,0,2-2V11C22.95,9.93,20.17,6.46,18.95,6Z"/><path class="a" d="M14,10H2c-1.1,0-1,1.9-1,3v3a2,2,0,0,0,2,2H4.18a3,3,0,0,1,5.63,0H12a2,2,0,0,0,2-2V10Z"/><rect class="a" x="3" y="6" width="5" height="4"/><rect class="a" x="8" y="7" width="3" height="3"/><line class="a" x1="16.76" y1="11" x2="21.06" y2="11"/></svg>';if("security"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;}</style></defs><line class="a" x1="4" y1="7.13" x2="11" y2="2.83"/><path class="a" d="M4,9s.5,11,7,13"/><line class="a" x1="19" y1="7.13" x2="12" y2="2.83"/><path class="a" d="M19,9s-.5,11-7,13"/><line class="a" x1="8.97" y1="12.68" x2="11.35" y2="14.76"/><line class="a" x1="11.21" y1="14.44" x2="14.69" y2="9.72"/></svg>';if("return"==e)var s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:none;stroke:'+n+';stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;}</style></defs><rect class="a" x="7" y="12" width="10" height="10" rx="1.87" ry="1.87"/><path class="a" d="M13,8h5.68A2.32,2.32,0,0,1,21,10.32V16"/><line class="a" x1="8.83" y1="11.43" x2="12.86" y2="8.5"/><line class="a" x1="21" y1="17.63" x2="18.17" y2="20.59"/><line class="a" x1="2.74" y1="3.13" x2="19.83" y2="3.13"/><line class="a" x1="18.25" y1="1" x2="22.16" y2="3.13"/><line class="a" x1="21.45" y1="3.13" x2="18.28" y2="5.04"/><line class="a" x1="10" y1="6" x2="4" y2="6"/><line class="a" x1="2.28" y1="6.1" x2="5.45" y2="8.02"/></svg>';if("undefined"!==typeof i&&false!==i){r()(this).html(s).css({width:i,height:i});r()(this).find("svg").css({width:i,height:i})}else{r()(this).html(s).css({width:24,height:24});r()(this).find("svg").css({width:24,height:24})}if("undefined"!==typeof o&&false!==o){"left"==o&&r()(this).css({float:"left","margin-right":"10px"});"right"==o&&r()(this).css({float:"right","margin-left":"10px"})}})}a();r()(document).ready(function(){if("undefined"!==typeof s.a){s.a.on("updatedProduct",function(t){a()});s.a.on("updateProductList",function(t){a()});s.a.on("updatedCart",()=>{a()})}})},function(t,e,i){"use strict";var n=i(0);var r=i.n(n);var o=i(4);var s=i.n(o);r()(document).on("ready",function(){var t=r()(".slideme");t.on("dragStart.flickity",()=>t.find(".flickity-slider > *").css("pointer-events","none"));t.on("dragEnd.flickity",()=>t.find(".flickity-slider > *").css("pointer-events","all"));function e(){r()(".featured-products.slideme .products").each(function(){var t="true"===r()(this).parent(".featured-products").attr("data-auto")&&4400;r()(this).flickity({autoPlay:t,contain:true,draggable:1,prevNextButtons:true,pageDots:false,cellAlign:"left",arrowShape:{x0:20,x1:60,y1:50,x2:75,y2:50,x3:35}})});r()("#roy_specials_col .products").flickity({autoPlay:4400,contain:true,draggable:1,prevNextButtons:true,imagesLoaded:true,pageDots:false,arrowShape:{x0:20,x1:60,y1:50,x2:75,y2:50,x3:35}});r()(".roy_brands_ul").flickity({contain:true,draggable:1,prevNextButtons:true,pageDots:false,cellAlign:"left",arrowShape:{x0:20,x1:60,y1:50,x2:75,y2:50,x3:35}});r()(".blogslider").flickity({contain:true,draggable:1,prevNextButtons:true,pageDots:false,arrowShape:{x0:20,x1:60,y1:50,x2:75,y2:50,x3:35}});r()("#product .products").flickity({draggable:1,prevNextButtons:true,pageDots:false,cellAlign:"center",contain:true,arrowShape:{x0:20,x1:60,y1:50,x2:75,y2:50,x3:35}})}r()(window).load(function(){e()})})},function(t,e,i){"use strict";var n=i(0);var r=i.n(n);var o=i(1);var s=i.n(o);!function(t){var e=function(t,e){this.init(t,e)};e.prototype={constructor:e,init:function(e,i){this.settings=t.extend({endDateTime:new Date,animation:"fade",reflection:false,reflectionOpacity:.2,speed:500,theme:"black"},i);this.timeoutInterval=null;this.container=t(e);this.createViews()},createViews:function(){var e=this;if(!this.container.hasClass("county")){this.container.addClass("county "+this.settings.theme);this.container.append('<div class="county-cell county-days-wrapper first"><span class="county-days">000</span><span class="county-label county-label-days">'+this.settings.titleDays+'</span></div><div class="county-cell county-hours-wrapper"><span class="county-hours">00</span><span class="county-label county-label-hours">'+this.settings.titleHours+'</span></div><div class="county-cell county-minutes-wrapper separator-left separator-left"><span class="county-minutes">00</span><span class="county-label county-label-minutes">'+this.settings.titleMinutes+'</span></div><div class="county-cell county-seconds-wrapper separator-left last"><span class="county-seconds">00</span><span class="county-label county-label-seconds">'+this.settings.titleSeconds+"</span></div>")}void 0!=this.container.attr("id")&&null!=this.container.attr("id")||this.container.attr("id",Math.random());var i=0;this.container.find(">span").each(function(){(t(this).hasClass("county-days-wrapper")||t(this).hasClass("county-hours-wrapper")||t(this).hasClass("county-minutes-wrapper")||t(this).hasClass("county-seconds-wrapper"))&&(i+=t(this).outerWidth())});this.container.css({width:i});this.container.find(">span>span").each(function(){t(this).css({position:"absolute",width:t(this).width(),height:t(this).height()});t(this).parent().css({width:t(this).width()});var i=e.container.find(".county-label-days");var n=e.container.find(".county-label-hours");var r=e.container.find(".county-label-minutes");var o=e.container.find(".county-label-seconds");t(this).hasClass("county-days")&&i.css({width:t(this).parent().outerWidth()});t(this).hasClass("county-hours")&&n.css({width:t(this).parent().outerWidth()});t(this).hasClass("county-minutes")&&r.css({width:t(this).parent().outerWidth()});t(this).hasClass("county-seconds")&&o.css({width:t(this).parent().outerWidth()})});this.reflectionContainer=this.container.clone().css({opacity:this.settings.reflectionOpacity}).attr("id",this.container.attr("id")+"-refl").addClass("county-reflection");this.settings.reflection&&this.container.after(this.reflectionContainer);this.updateCounter()},getCountDown:function(){var t=this;clearTimeout(this.timeoutInterval);this.timeoutInterval=setTimeout(function(){t.updateCounter()},1e3)},updateCounter:function(){var t=this.getCurrentCountDown();var e=this.container.find(".county-days");var i=this.container.find(".county-hours");var n=this.container.find(".county-minutes");var r=this.container.find(".county-seconds");var o=e.html();var s=i.html();var a=n.html();var l=r.html();o==t.days?e.html(t.days):this.settings.reflection?this.aimateObject(e,this.reflectionContainer.find(".county-days"),o,t.days,this.settings.animation):this.aimateObject(e,null,o,t.days,this.settings.animation);s==t.hours?i.html(t.hours):this.settings.reflection?this.aimateObject(i,this.reflectionContainer.find(".county-hours"),s,t.hours,this.settings.animation):this.aimateObject(i,null,s,t.hours,this.settings.animation);a==t.minutes?n.html(t.minutes):this.settings.reflection?this.aimateObject(n,this.reflectionContainer.find(".county-minutes"),a,t.minutes,this.settings.animation):this.aimateObject(n,null,a,t.minutes,this.settings.animation);l==t.seconds?r.html(t.seconds):this.settings.reflection?this.aimateObject(r,this.reflectionContainer.find(".county-seconds"),l,t.seconds,this.settings.animation):this.aimateObject(r,null,l,t.seconds,this.settings.animation);this.getCountDown()},aimateObject:function(e,i,n,r,o){if("fade"==o){e.fadeOut("fast").fadeIn("fast").html(r);this.settings.reflection&&this.reflectionElement.fadeOut("fast").fadeIn("fast").html(r)}else if("none"==o)e.html(r);else if("scroll"==o){var s=e.clone();var a=null;this.settings.reflection&&(a=i.clone());var l=s.outerHeight();s.css({marginTop:-l});s.html(r);s.prependTo(e.parent());if(this.settings.reflection){a.css({marginTop:-l});a.html(r);a.prependTo(this.reflectionElement.parent())}e.animate({marginTop:"22px",opacity:0},this.settings.speed,function(){t(this).remove()});s.animate({marginTop:0},this.settings.speed,function(){});if(this.settings.reflection){this.reflectionElement.animate({marginTop:l},this.settings.speed,function(){t(this).remove()});a.animate({marginTop:0},this.settings.speed,function(){})}}},getCurrentCountDown:function(){var t=new Date;var e=parseFloat(this.settings.endDateTime-t);var i=this;var n=0;var r=0;var o=0;var s=parseFloat(e/1e3/60/60/24);var a=parseInt(s);s-=a;s*=24;o=parseInt(s);s-=o;s*=60;r=parseInt(s);s-=r;s*=60;n=parseInt(s);return{days:i.formatNumber(Math.max(0,a),true),hours:i.formatNumber(Math.max(0,o),false),minutes:i.formatNumber(Math.max(0,r),false),seconds:i.formatNumber(Math.max(0,n),false)}},formatNumber:function(t,e){var i=t.toString();return e?1==i.length?i:(2==i,i):1==i.length?"0"+i:i},getHunderth:function(t){var e=""+t;return 3==e.length?e.substr(0,1):"0"},getTenth:function(t){var e=""+t;return 2==e.length?e.substr(0,1):"0"},getUnit:function(t){var e=""+t;return e.length>=1?e.substr(0,1):"0"}};t.fn.county=function(i,n){var r=t(this);var o=r.data("list");o||r.data("list",o=new e(this,i));if("string"===typeof i)return o[i](n)};t.fn.county.Constructor=e}(window.jQuery)},function(t,e,i){"use strict";var n=i(0);var r=i.n(n);
|
|
/**
|
|
* 2007-2017 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/AFL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2017 PrestaShop SA
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/class o{init(){this.parentFocus();this.togglePasswordVisibility()}parentFocus(){r()(".js-child-focus").focus(function(){r()(this).closest(".js-parent-focus").addClass("focus")});r()(".js-child-focus").focusout(function(){r()(this).closest(".js-parent-focus").removeClass("focus")})}togglePasswordVisibility(){r()('button[data-action="show-password"]').on("click",function(){const t=r()(this).closest(".input-group").children("input.js-visible-password");if("password"===t.attr("type")){t.attr("type","text");r()(this).html('<i><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg></i>')}else{t.attr("type","password");r()(this).html('<i><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg></i>')}})}}e["a"]=o},function(t,e,i){"use strict";var n=i(0);var r=i.n(n);var o=i(2);var s=i.n(o);
|
|
/**
|
|
* 2007-2017 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/AFL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2017 PrestaShop SA
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/class a{init(){const t=5;const e=10;let i=r()(".js-modal-arrows");let n=r()(".js-modal-product-images2");let o=r()(".on-sale");r()("body").on("click",".js-modal-thumb",t=>{r()(".js-modal-thumb").hasClass("selected")&&r()(".js-modal-thumb").removeClass("selected");r()(t.currentTarget).addClass("selected");r()(".js-modal-product-cover").attr("src",r()(t.target).data("image-large-src"));r()(".js-modal-product-cover").attr("title",r()(t.target).attr("title"));r()(".js-modal-product-cover").attr("alt",r()(t.target).attr("alt"))}).on("click","aside#thumbnails",t=>{"thumbnails"==t.target.id&&r()("#product-modal").modal("hide")});r()(".js-modal-product-images2 li").length<=t?i.css("opacity",".2"):i.on("click",t=>{if(r()(t.target).hasClass("arrow-up")&&n.position().top<0){this.move("up");r()(".js-modal-arrow-down").css("opacity","1")}else if(r()(t.target).hasClass("arrow-down")&&n.position().top+n.height()>r()(".js-modal-mask").height()){this.move("down");r()(".js-modal-arrow-up").css("opacity","1")}})}move(t){const e=10;var i=r()(".js-modal-product-images2");var n=r()(".js-modal-product-images2 li img").height()+e;var o=i.position().top;i.velocity({translateY:"up"===t?o+n:o-n},function(){i.position().top>=0?r()(".js-modal-arrow-up").css("opacity",".2"):i.position().top+i.height()<=r()(".js-modal-mask").height()&&r()(".js-modal-arrow-down").css("opacity",".2")})}}e["a"]=a},function(t,e,i){"use strict";var n=i(0);var r=i.n(n);var o=i(5);
|
|
/**
|
|
* 2007-2017 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/AFL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2017 PrestaShop SA
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/class s extends o["a"]{init(){let t;let e=this;this.el.find("li").hover(e=>{if(this.el.parent().hasClass("mobile"))return;if(t!==r()(e.currentTarget).attr("id")){0===r()(e.target).data("depth")&&r()(`#${t} .js-sub-menu`).css({top:"78px",visibility:"hidden",opacity:"0"});t=r()(e.currentTarget).attr("id")}t&&0===r()(e.target).data("depth")&&r()(`#${t} .js-sub-menu`).css({top:"68px",visibility:"visible",opacity:"1"})});r()("#menu-icon").on("click",function(){r()("#mobile_top_menu_wrapper").toggle();e.toggleMobileMenu()});r()(".js-top-menu").mouseleave(()=>{if(this.el.parent().hasClass("mobile"))return;r()(`#${t} .js-sub-menu`).css({top:"78px",visibility:"hidden",opacity:"0"})});this.el.on("click",t=>{if(this.el.parent().hasClass("mobile"))return;t.stopPropagation()});prestashop.on("responsive update",function(t){r()(".js-sub-menu").removeAttr("style");e.toggleMobileMenu()});super.init()}toggleMobileMenu(){if(r()("#mobile_top_menu_wrapper").is(":visible")){r()("#notifications").hide();r()("#wrapper").hide();r()("#footer").hide()}else{r()("#notifications").show();r()("#wrapper").show();r()("#footer").show()}}}e["a"]=s},function(t,e){function i(){this._events=this._events||{};this._maxListeners=this._maxListeners||void 0}t.exports=i;i.EventEmitter=i;i.prototype._events=void 0;i.prototype._maxListeners=void 0;i.defaultMaxListeners=10;i.prototype.setMaxListeners=function(t){if(!r(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");this._maxListeners=t;return this};i.prototype.emit=function(t){var e,i,r,a,l,c;this._events||(this._events={});if("error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){e=arguments[1];if(e instanceof Error)throw e;var u=new Error('Uncaught, unspecified "error" event. ('+e+")");u.context=e;throw u}i=this._events[t];if(s(i))return false;if(n(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1);i.apply(this,a)}else if(o(i)){a=Array.prototype.slice.call(arguments,1);c=i.slice();r=c.length;for(l=0;l<r;l++)c[l].apply(this,a)}return true};i.prototype.addListener=function(t,e){var r;if(!n(e))throw TypeError("listener must be a function");this._events||(this._events={});this._events.newListener&&this.emit("newListener",t,n(e.listener)?e.listener:e);this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e;if(o(this._events[t])&&!this._events[t].warned){r=s(this._maxListeners)?i.defaultMaxListeners:this._maxListeners;if(r&&r>0&&this._events[t].length>r){this._events[t].warned=true;console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length);"function"===typeof console.trace&&console.trace()}}return this};i.prototype.on=i.prototype.addListener;i.prototype.once=function(t,e){if(!n(e))throw TypeError("listener must be a function");var i=false;function r(){this.removeListener(t,r);if(!i){i=true;e.apply(this,arguments)}}r.listener=e;this.on(t,r);return this};i.prototype.removeListener=function(t,e){var i,r,s,a;if(!n(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;i=this._events[t];s=i.length;r=-1;if(i===e||n(i.listener)&&i.listener===e){delete this._events[t];this._events.removeListener&&this.emit("removeListener",t,e)}else if(o(i)){for(a=s;a-- >0;)if(i[a]===e||i[a].listener&&i[a].listener===e){r=a;break}if(r<0)return this;if(1===i.length){i.length=0;delete this._events[t]}else i.splice(r,1);this._events.removeListener&&this.emit("removeListener",t,e)}return this};i.prototype.removeAllListeners=function(t){var e,i;if(!this._events)return this;if(!this._events.removeListener){0===arguments.length?this._events={}:this._events[t]&&delete this._events[t];return this}if(0===arguments.length){for(e in this._events){if("removeListener"===e)continue;this.removeAllListeners(e)}this.removeAllListeners("removeListener");this._events={};return this}i=this._events[t];if(n(i))this.removeListener(t,i);else if(i)while(i.length)this.removeListener(t,i[i.length-1]);delete this._events[t];return this};i.prototype.listeners=function(t){var e;e=this._events&&this._events[t]?n(this._events[t])?[this._events[t]]:this._events[t].slice():[];return e};i.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(n(e))return 1;if(e)return e.length}return 0};i.listenerCount=function(t,e){return t.listenerCount(e)};function n(t){return"function"===typeof t}function r(t){return"number"===typeof t}function o(t){return"object"===typeof t&&null!==t}function s(t){return void 0===t}},function(t,e){
|
|
/**
|
|
* 2007-2017 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/AFL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2017 PrestaShop SA
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
(function(t){var e=0;var i=function(e,i){this.options=i;this.$elementFilestyle=[];this.$element=t(e)};i.prototype={clear:function(){this.$element.val("");this.$elementFilestyle.find(":text").val("");this.$elementFilestyle.find(".badge").remove()},destroy:function(){this.$element.removeAttr("style").removeData("filestyle");this.$elementFilestyle.remove()},disabled:function(t){if(true===t){if(!this.options.disabled){this.$element.attr("disabled","true");this.$elementFilestyle.find("label").attr("disabled","true");this.options.disabled=true}}else{if(false!==t)return this.options.disabled;if(this.options.disabled){this.$element.removeAttr("disabled");this.$elementFilestyle.find("label").removeAttr("disabled");this.options.disabled=false}}},buttonBefore:function(t){if(true===t){if(!this.options.buttonBefore){this.options.buttonBefore=true;if(this.options.input){this.$elementFilestyle.remove();this.constructor();this.pushNameFiles()}}}else{if(false!==t)return this.options.buttonBefore;if(this.options.buttonBefore){this.options.buttonBefore=false;if(this.options.input){this.$elementFilestyle.remove();this.constructor();this.pushNameFiles()}}}},icon:function(t){if(true===t){if(!this.options.icon){this.options.icon=true;this.$elementFilestyle.find("label").prepend(this.htmlIcon())}}else{if(false!==t)return this.options.icon;if(this.options.icon){this.options.icon=false;this.$elementFilestyle.find(".icon-span-filestyle").remove()}}},input:function(t){if(true===t){if(!this.options.input){this.options.input=true;this.options.buttonBefore?this.$elementFilestyle.append(this.htmlInput()):this.$elementFilestyle.prepend(this.htmlInput());this.$elementFilestyle.find(".badge").remove();this.pushNameFiles();this.$elementFilestyle.find(".group-span-filestyle").addClass("input-group-btn")}}else{if(false!==t)return this.options.input;if(this.options.input){this.options.input=false;this.$elementFilestyle.find(":text").remove();var e=this.pushNameFiles();e.length>0&&this.options.badge&&this.$elementFilestyle.find("label").append(' <span class="badge">'+e.length+"</span>");this.$elementFilestyle.find(".group-span-filestyle").removeClass("input-group-btn")}}},size:function(t){if(void 0===t)return this.options.size;var e=this.$elementFilestyle.find("label"),i=this.$elementFilestyle.find("input");e.removeClass("btn-lg btn-sm");i.removeClass("input-lg input-sm");if("nr"!=t){e.addClass("btn-"+t);i.addClass("input-"+t)}},placeholder:function(t){if(void 0===t)return this.options.placeholder;this.options.placeholder=t;this.$elementFilestyle.find("input").attr("placeholder",t)},buttonText:function(t){if(void 0===t)return this.options.buttonText;this.options.buttonText=t;this.$elementFilestyle.find("label .buttonText").html(this.options.buttonText)},buttonName:function(t){if(void 0===t)return this.options.buttonName;this.options.buttonName=t;this.$elementFilestyle.find("label").attr({class:"btn "+this.options.buttonName})},iconName:function(t){if(void 0===t)return this.options.iconName;this.$elementFilestyle.find(".icon-span-filestyle").attr({class:"icon-span-filestyle "+this.options.iconName})},htmlIcon:function(){return this.options.icon?'<span class="icon-span-filestyle '+this.options.iconName+'"></span> ':""},htmlInput:function(){return this.options.input?'<input type="text" class="form-control '+("nr"==this.options.size?"":"input-"+this.options.size)+'" placeholder="'+this.options.placeholder+'" disabled> ':""},pushNameFiles:function(){var t="",e=[];void 0===this.$element[0].files?e[0]={name:this.$element[0]&&this.$element[0].value}:e=this.$element[0].files;for(var i=0;i<e.length;i++)t+=e[i].name.split("\\").pop()+", ";""!==t?this.$elementFilestyle.find(":text").val(t.replace(/\, $/g,"")):this.$elementFilestyle.find(":text").val("");return e},constructor:function(){var i=this,n="",r=i.$element.attr("id"),o=[],s="",a;if(""===r||!r){r="filestyle-"+e;i.$element.attr({id:r});e++}s='<span class="group-span-filestyle '+(i.options.input?"input-group-btn":"")+'"><label for="'+r+'" class="btn '+i.options.buttonName+" "+("nr"==i.options.size?"":"btn-"+i.options.size)+'" '+(i.options.disabled?'disabled="true"':"")+">"+i.htmlIcon()+'<span class="buttonText">'+i.options.buttonText+"</span></label></span>";n=i.options.buttonBefore?s+i.htmlInput():i.htmlInput()+s;i.$elementFilestyle=t('<div class="bootstrap-filestyle input-group">'+n+"</div>");i.$elementFilestyle.find(".group-span-filestyle").attr("tabindex","0").keypress(function(t){if(13===t.keyCode||32===t.charCode){i.$elementFilestyle.find("label").click();return false}});i.$element.css({position:"absolute",clip:"rect(0px 0px 0px 0px)"}).attr("tabindex","-1").after(i.$elementFilestyle);i.options.disabled&&i.$element.attr("disabled","true");i.$element.change(function(){var t=i.pushNameFiles();false==i.options.input&&i.options.badge?0==i.$elementFilestyle.find(".badge").length?i.$elementFilestyle.find("label").append(' <span class="badge">'+t.length+"</span>"):0==t.length?i.$elementFilestyle.find(".badge").remove():i.$elementFilestyle.find(".badge").html(t.length):i.$elementFilestyle.find(".badge").remove()});window.navigator.userAgent.search(/firefox/i)>-1&&i.$elementFilestyle.find("label").click(function(){i.$element.click();return false})}};var n=t.fn.filestyle;t.fn.filestyle=function(e,n){var r="",o=this.each(function(){if("file"===t(this).attr("type")){var o=t(this),s=o.data("filestyle"),a=t.extend({},t.fn.filestyle.defaults,e,"object"===typeof e&&e);if(!s){o.data("filestyle",s=new i(this,a));s.constructor()}"string"===typeof e&&(r=s[e](n))}});return void 0!==typeof r?r:o};t.fn.filestyle.defaults={buttonText:"Choose file",iconName:"glyphicon glyphicon-folder-open",buttonName:"btn-default",size:"nr",input:true,badge:true,icon:true,buttonBefore:false,disabled:false,placeholder:""};t.fn.filestyle.noConflict=function(){t.fn.filestyle=n;return this};t(function(){t(".filestyle").each(function(){var e=t(this),i={input:"false"!==e.attr("data-input"),icon:"false"!==e.attr("data-icon"),buttonBefore:"true"===e.attr("data-buttonBefore"),disabled:"true"===e.attr("data-disabled"),size:e.attr("data-size"),buttonText:e.attr("data-buttonText"),buttonName:e.attr("data-buttonName"),iconName:e.attr("data-iconName"),badge:"false"!==e.attr("data-badge"),placeholder:e.attr("data-placeholder")};e.filestyle(i)})})})(window.jQuery)},function(t,e){
|
|
/**
|
|
* 2007-2017 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/AFL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2017 PrestaShop SA
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
(function(t){t.fn.scrollbox=function(e){var i={linear:false,startDelay:2,delay:3,step:5,speed:32,switchItems:1,direction:"vertical",distance:"auto",autoPlay:true,onMouseOverPause:true,paused:false,queue:null,listElement:"ul",listItemElement:"li",infiniteLoop:true,switchAmount:0,afterForward:null,afterBackward:null,triggerStackable:false};e=t.extend(i,e);e.scrollOffset="vertical"===e.direction?"scrollTop":"scrollLeft";e.queue&&(e.queue=t("#"+e.queue));return this.each(function(){var i=t(this),n,r=null,o=null,s=false,a,l,c,u,d,f,h,p,m=0,g=0;if(e.onMouseOverPause){i.bind("mouseover",function(){s=true});i.bind("mouseout",function(){s=false})}n=i.children(e.listElement+":first-child");false===e.infiniteLoop&&0===e.switchAmount&&(e.switchAmount=n.children().length);d=function(){if(s)return;var l,u,d,f,h;l=n.children(e.listItemElement+":first-child");f="auto"!==e.distance?e.distance:"vertical"===e.direction?l.outerHeight(true):l.outerWidth(true);if(e.linear)d=Math.min(i[0][e.scrollOffset]+e.step,f);else{h=Math.max(3,parseInt(.3*(f-i[0][e.scrollOffset]),10));d=Math.min(i[0][e.scrollOffset]+h,f)}i[0][e.scrollOffset]=d;if(d>=f){for(u=0;u<e.switchItems;u++){if(e.queue&&e.queue.find(e.listItemElement).length>0){n.append(e.queue.find(e.listItemElement)[0]);n.children(e.listItemElement+":first-child").remove()}else n.append(n.children(e.listItemElement+":first-child"));++m}i[0][e.scrollOffset]=0;clearInterval(r);r=null;t.isFunction(e.afterForward)&&e.afterForward.call(i,{switchCount:m,currentFirstChild:n.children(e.listItemElement+":first-child")});if(e.triggerStackable&&0!==g){a();return}if(false===e.infiniteLoop&&m>=e.switchAmount)return;e.autoPlay&&(o=setTimeout(c,1e3*e.delay))}};f=function(){if(s)return;var l,u,d,f,h;if(0===i[0][e.scrollOffset]){for(u=0;u<e.switchItems;u++)n.children(e.listItemElement+":last-child").insertBefore(n.children(e.listItemElement+":first-child"));l=n.children(e.listItemElement+":first-child");f="auto"!==e.distance?e.distance:"vertical"===e.direction?l.height():l.width();i[0][e.scrollOffset]=f}if(e.linear)d=Math.max(i[0][e.scrollOffset]-e.step,0);else{h=Math.max(3,parseInt(.3*i[0][e.scrollOffset],10));d=Math.max(i[0][e.scrollOffset]-h,0)}i[0][e.scrollOffset]=d;if(0===d){--m;clearInterval(r);r=null;t.isFunction(e.afterBackward)&&e.afterBackward.call(i,{switchCount:m,currentFirstChild:n.children(e.listItemElement+":first-child")});if(e.triggerStackable&&0!==g){a();return}e.autoPlay&&(o=setTimeout(c,1e3*e.delay))}};a=function(){if(0===g)return;if(g>0){g--;o=setTimeout(c,0)}else{g++;o=setTimeout(l,0)}};c=function(){clearInterval(r);r=setInterval(d,e.speed)};l=function(){clearInterval(r);r=setInterval(f,e.speed)};h=function(){e.autoPlay=true;s=false;clearInterval(r);r=setInterval(d,e.speed)};p=function(){s=true};u=function(t){e.delay=t||e.delay;clearTimeout(o);e.autoPlay&&(o=setTimeout(c,1e3*e.delay))};e.autoPlay&&(o=setTimeout(c,1e3*e.startDelay));i.bind("resetClock",function(t){u(t)});i.bind("forward",function(){if(e.triggerStackable)null!==r?g++:c();else{clearTimeout(o);c()}});i.bind("backward",function(){if(e.triggerStackable)null!==r?g--:l();else{clearTimeout(o);l()}});i.bind("pauseHover",function(){p()});i.bind("forwardHover",function(){h()});i.bind("speedUp",function(t,i){"undefined"===i&&(i=Math.max(1,parseInt(e.speed/2,10)));e.speed=i});i.bind("speedDown",function(t,i){"undefined"===i&&(i=2*e.speed);e.speed=i});i.bind("updateConfig",function(i,n){e=t.extend(e,n)})})}})(jQuery)},function(t,e){(function(){var t,e;t=window.jQuery;e=t(window);t.fn.stick_in_parent=function(i){var n,r,o,s,a,l,c,u,d,f,h,p;null==i&&(i={});p=i.sticky_class;a=i.inner_scrolling;h=i.recalc_every;f=i.parent;u=i.offset_top;c=i.spacer;r=i.bottoming;null==u&&(u=0);null==f&&(f=void 0);null==a&&(a=!0);null==p&&(p="is_stuck");n=t(document);null==r&&(r=!0);d=function(t){var e;return window.getComputedStyle?(t=window.getComputedStyle(t[0]),e=parseFloat(t.getPropertyValue("width"))+parseFloat(t.getPropertyValue("margin-left"))+parseFloat(t.getPropertyValue("margin-right")),"border-box"!==t.getPropertyValue("box-sizing")&&(e+=parseFloat(t.getPropertyValue("border-left-width"))+parseFloat(t.getPropertyValue("border-right-width"))+parseFloat(t.getPropertyValue("padding-left"))+parseFloat(t.getPropertyValue("padding-right"))),e):t.outerWidth(!0)};o=function(i,o,s,l,m,g,v,y){var w,b,x,_,C,S,E,k,T,A,D,I;if(!i.data("sticky_kit")){i.data("sticky_kit",!0);C=n.height();E=i.parent();null!=f&&(E=E.closest(f));if(!E.length)throw"failed to find stick parent";w=x=!1;(D=null!=c?c&&i.closest(c):t("<div />"))&&D.css("position",i.css("position"));k=function(){var t,e,r;if(!y&&(C=n.height(),t=parseInt(E.css("border-top-width"),10),e=parseInt(E.css("padding-top"),10),o=parseInt(E.css("padding-bottom"),10),s=E.offset().top+t+e,l=E.height(),x&&(w=x=!1,null==c&&(i.insertAfter(D),D.detach()),i.css({position:"",top:"",width:"",bottom:""}).removeClass(p),r=!0),m=i.offset().top-(parseInt(i.css("margin-top"),10)||0)-u,g=i.outerHeight(!0),v=i.css("float"),D&&D.css({width:d(i),height:g,display:i.css("display"),"vertical-align":i.css("vertical-align"),float:v}),r))return I()};k();if(g!==l)return _=void 0,S=u,A=h,I=function(){var t,d,f,b;if(!y&&(f=!1,null!=A&&(--A,0>=A&&(A=h,k(),f=!0)),f||n.height()===C||k(),f=e.scrollTop(),null!=_&&(d=f-_),_=f,x?(r&&(b=f+g+S>l+s,w&&!b&&(w=!1,i.css({position:"fixed",bottom:"",top:S}).trigger("sticky_kit:unbottom"))),f<m&&(x=!1,S=u,null==c&&("left"!==v&&"right"!==v||i.insertAfter(D),D.detach()),t={position:"",width:"",top:""},i.css(t).removeClass(p).trigger("sticky_kit:unstick")),a&&(t=e.height(),g+u>t&&!w&&(S-=d,S=Math.max(t-g,S),S=Math.min(u,S),x&&i.css({top:S+"px"})))):f>m&&(x=!0,t={position:"fixed",top:S},t.width="border-box"===i.css("box-sizing")?i.outerWidth()+"px":i.width()+"px",i.css(t).addClass(p),null==c&&(i.after(D),"left"!==v&&"right"!==v||D.append(i)),i.trigger("sticky_kit:stick")),x&&r&&(null==b&&(b=f+g+S>l+s),!w&&b)))return w=!0,"static"===E.css("position")&&E.css({position:"relative"}),i.css({position:"absolute",bottom:o,top:"auto"}).trigger("sticky_kit:bottom")},T=function(){k();return I()},b=function(){y=!0;e.off("touchmove",I);e.off("scroll",I);e.off("resize",T);t(document.body).off("sticky_kit:recalc",T);i.off("sticky_kit:detach",b);i.removeData("sticky_kit");i.css({position:"",bottom:"",top:"",width:""});E.position("position","");if(x)return null==c&&("left"!==v&&"right"!==v||i.insertAfter(D),D.remove()),i.removeClass(p)},e.on("touchmove",I),e.on("scroll",I),e.on("resize",T),t(document.body).on("sticky_kit:recalc",T),i.on("sticky_kit:detach",b),setTimeout(I,0)}};s=0;for(l=this.length;s<l;s++)i=this[s],o(t(i));return this}}).call(this)},function(t,e,i){var n,r,o;
|
|
/*!
|
|
* animsition v4.0.2
|
|
* A simple and easy jQuery plugin for CSS animated page transitions.
|
|
* http://blivesta.github.io/animsition
|
|
* License : MIT
|
|
* Author : blivesta (http://blivesta.com/)
|
|
*/!function(s){"use strict";!(r=[i(0)],n=s,o="function"===typeof n?n.apply(e,r):n,void 0!==o&&(t.exports=o))}(function(t){"use strict";var e="animsition",i={init:function(n){n=t.extend({inClass:"fade-in",outClass:"fade-out",inDuration:1500,outDuration:800,linkElement:".animsition-link",loading:!0,loadingParentElement:"body",loadingClass:"animsition-loading",loadingInner:"",timeout:!1,timeoutCountdown:5e3,onLoadEvent:!0,browser:["animation-duration","-webkit-animation-duration"],overlay:!1,overlayClass:"animsition-overlay-slide",overlayParentElement:"body",transition:function(t){window.location.href=t}},n),i.settings={timer:!1,data:{inClass:"animsition-in-class",inDuration:"animsition-in-duration",outClass:"animsition-out-class",outDuration:"animsition-out-duration",overlay:"animsition-overlay"},events:{inStart:"animsition.inStart",inEnd:"animsition.inEnd",outStart:"animsition.outStart",outEnd:"animsition.outEnd"}};var r=i.supportCheck.call(this,n);if(!r&&n.browser.length>0&&(!r||!this.length))return"console"in window||(window.console={},window.console.log=function(t){return t}),this.length||console.log("Animsition: Element does not exist on page."),r||console.log("Animsition: Does not support this browser."),i.destroy.call(this);var o=i.optionCheck.call(this,n);return o&&t("."+n.overlayClass).length<=0&&i.addOverlay.call(this,n),n.loading&&t("."+n.loadingClass).length<=0&&i.addLoading.call(this,n),this.each(function(){var r=this,o=t(this),s=t(window),a=t(document),l=o.data(e);l||(n=t.extend({},n),o.data(e,{options:n}),n.timeout&&i.addTimer.call(r),n.onLoadEvent&&s.on("load."+e,function(){i.settings.timer&&clearTimeout(i.settings.timer),i["in"].call(r)}),s.on("pageshow."+e,function(t){t.originalEvent.persisted&&i["in"].call(r)}),s.on("unload."+e,function(){}),a.on("click."+e,n.linkElement,function(e){e.preventDefault();var n=t(this),o=n.attr("href");2===e.which||e.metaKey||e.shiftKey||-1!==navigator.platform.toUpperCase().indexOf("WIN")&&e.ctrlKey?window.open(o,"_blank"):i.out.call(r,n,o)}))})},addOverlay:function(e){t(e.overlayParentElement).prepend('<div class="'+e.overlayClass+'"></div>')},addLoading:function(e){t(e.loadingParentElement).append('<div class="'+e.loadingClass+'">'+e.loadingInner+"</div>")},removeLoading:function(){var i=t(this),n=i.data(e).options,r=t(n.loadingParentElement).children("."+n.loadingClass);r.fadeOut().remove()},addTimer:function(){var n=this,r=t(this),o=r.data(e).options;i.settings.timer=setTimeout(function(){i["in"].call(n),t(window).off("load."+e)},o.timeoutCountdown)},supportCheck:function(e){var i=t(this),n=e.browser,r=n.length,o=!1;0===r&&(o=!0);for(var s=0;r>s;s++)if("string"==typeof i.css(n[s])){o=!0;break}return o},optionCheck:function(e){var n,r=t(this);return!(!e.overlay&&!r.data(i.settings.data.overlay))},animationCheck:function(i,n,r){var o=t(this),s=o.data(e).options,a=typeof i,l=!n&&"number"===a,c=n&&"string"===a&&i.length>0;return l||c?i=i:n&&r?i=s.inClass:!n&&r?i=s.inDuration:n&&!r?i=s.outClass:n||r||(i=s.outDuration),i},in:function(){var n=this,r=t(this),o=r.data(e).options,s=r.data(i.settings.data.inDuration),a=r.data(i.settings.data.inClass),l=i.animationCheck.call(n,s,!1,!0),c=i.animationCheck.call(n,a,!0,!0),u=i.optionCheck.call(n,o),d=r.data(e).outClass;o.loading&&i.removeLoading.call(n),d&&r.removeClass(d),u?i.inOverlay.call(n,c,l):i.inDefault.call(n,c,l)},inDefault:function(e,n){var r=t(this);r.css({"animation-duration":n+"ms"}).addClass(e).trigger(i.settings.events.inStart).animateCallback(function(){r.removeClass(e).css({opacity:1}).trigger(i.settings.events.inEnd)})},inOverlay:function(n,r){var o=t(this),s=o.data(e).options;o.css({opacity:1}).trigger(i.settings.events.inStart),t(s.overlayParentElement).children("."+s.overlayClass).css({"animation-duration":r+"ms"}).addClass(n).animateCallback(function(){o.trigger(i.settings.events.inEnd)})},out:function(n,r){var o=this,s=t(this),a=s.data(e).options,l=n.data(i.settings.data.outClass),c=s.data(i.settings.data.outClass),u=n.data(i.settings.data.outDuration),d=s.data(i.settings.data.outDuration),f=l||c,h=u||d,p=i.animationCheck.call(o,f,!0,!1),m=i.animationCheck.call(o,h,!1,!1),g=i.optionCheck.call(o,a);s.data(e).outClass=p,g?i.outOverlay.call(o,p,m,r):i.outDefault.call(o,p,m,r)},outDefault:function(n,r,o){var s=t(this),a=s.data(e).options;s.css({"animation-duration":r+1+"ms"}).addClass(n).trigger(i.settings.events.outStart).animateCallback(function(){s.trigger(i.settings.events.outEnd),a.transition(o)})},outOverlay:function(n,r,o){var s=this,a=t(this),l=a.data(e).options,c=a.data(i.settings.data.inClass),u=i.animationCheck.call(s,c,!0,!0);t(l.overlayParentElement).children("."+l.overlayClass).css({"animation-duration":r+1+"ms"}).removeClass(u).addClass(n).trigger(i.settings.events.outStart).animateCallback(function(){a.trigger(i.settings.events.outEnd),l.transition(o)})},destroy:function(){return this.each(function(){var i=t(this);t(window).off("."+e),i.css({opacity:1}).removeData(e)})}};t.fn.animateCallback=function(e){var i="animationend webkitAnimationEnd";return this.each(function(){var n=t(this);n.on(i,function(){return n.off(i),e.call(this)})})},t.fn.animsition=function(n){return i[n]?i[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery."+e):i.init.apply(this,arguments)}})},function(t,e,i){"use strict";var n=i(1);var r=i.n(n);var o=i(0);var s=i.n(o);
|
|
/**
|
|
* 2007-2017 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/AFL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2017 PrestaShop SA
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/r.a.blockcart=r.a.blockcart||{};r.a.blockcart.showModal=(t=>{function e(){return s()("#blockcart-modal")}let i=e();i.length&&i.remove();s()("body").append(t);i=e();i.modal("show").on("hidden.bs.modal",t=>{r.a.emit("updateProduct",{reason:t.currentTarget.dataset})})})},function(t,e){}]); |