!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";(function(e){var n;function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
/*!
 * jQuery JavaScript Library v2.2.4
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-05-20T17:23Z
 */
/*!
 * jQuery JavaScript Library v2.2.4
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-05-20T17:23Z
 */
!function(t,n){"object"===r(e)&&"object"===r(e.exports)?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:void 0,function(i,o){var a=[],s=i.document,u=a.slice,l=a.concat,c=a.push,d=a.indexOf,f={},p=f.toString,h=f.hasOwnProperty,v={},m=function e(t,n){return new e.fn.init(t,n)},g=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,y=/^-ms-/,x=/-([\da-z])/gi,b=function(e,t){return t.toUpperCase()};function w(e){var t=!!e&&"length"in e&&e.length,n=m.type(e);return"function"!==n&&!m.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}m.fn=m.prototype={jquery:"2.2.4",constructor:m,selector:"",length:0,toArray:function(){return u.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:u.call(this)},pushStack:function(e){var t=m.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return m.each(this,e)},map:function(e){return this.pushStack(m.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},m.extend=m.fn.extend=function(){var e,t,n,i,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[u]||{},u++),"object"===r(s)||m.isFunction(s)||(s={}),u===l&&(s=this,u--);u<l;u++)if(null!=(e=arguments[u]))for(t in e)n=s[t],s!==(i=e[t])&&(c&&i&&(m.isPlainObject(i)||(o=m.isArray(i)))?(o?(o=!1,a=n&&m.isArray(n)?n:[]):a=n&&m.isPlainObject(n)?n:{},s[t]=m.extend(c,a,i)):void 0!==i&&(s[t]=i));return s},m.extend({expando:"jQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===m.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!m.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==m.type(e)||e.nodeType||m.isWindow(e))return!1;if(e.constructor&&!h.call(e,"constructor")&&!h.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||h.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"===r(e)||"function"==typeof e?f[p.call(e)]||"object":r(e)},globalEval:function(e){var t,n=eval;(e=m.trim(e))&&(1===e.indexOf("use strict")?((t=s.createElement("script")).text=e,s.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(y,"ms-").replace(x,b)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(w(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(g,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(w(Object(e))?m.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(w(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return l.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m.isFunction(e))return r=u.call(arguments,2),i=function(){return e.apply(t||this,r.concat(u.call(arguments)))},i.guid=e.guid=e.guid||m.guid++,i},now:Date.now,support:v}),"function"==typeof Symbol&&(m.fn[Symbol.iterator]=a[Symbol.iterator]),m.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()});var T=
/*!
   * Sizzle CSS Selector Engine v2.2.1
   * http://sizzlejs.com/
   *
   * Copyright jQuery Foundation and other contributors
   * Released under the MIT license
   * http://jquery.org/license
   *
   * Date: 2015-10-17
   */
function(e){var t,n,r,i,o,a,s,u,l,c,d,f,p,h,v,m,g,y,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,k=oe(),S=oe(),j=oe(),_=function(e,t){return e===t&&(d=!0),0},E=1<<31,N={}.hasOwnProperty,A=[],D=A.pop,L=A.push,q=A.push,P=A.slice,O=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",R="\\["+M+"*("+F+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+M+"*\\]",W=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",I=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),B=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),X=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),U=new RegExp(W),V=new RegExp("^"+F+"$"),G={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=function(){f()};try{q.apply(A=P.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(e){q={apply:A.length?function(e,t){L.apply(e,P.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ie(e,t,r,i){var o,s,l,c,d,h,g,y,T=t&&t.ownerDocument,C=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return r;if(!i&&((t?t.ownerDocument||t:w)!==p&&f(t),t=t||p,v)){if(11!==C&&(h=K.exec(e)))if(o=h[1]){if(9===C){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(T&&(l=T.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(h[2])return q.apply(r,t.getElementsByTagName(e)),r;if((o=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return q.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!j[e+" "]&&(!m||!m.test(e))){if(1!==C)T=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(ee,"\\$&"):t.setAttribute("id",c=b),s=(g=a(e)).length,d=V.test(c)?"#"+c:"[id='"+c+"']";s--;)g[s]=d+" "+ve(g[s]);y=g.join(","),T=Z.test(e)&&pe(t.parentNode)||t}if(y)try{return q.apply(r,T.querySelectorAll(y)),r}catch(e){}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace($,"$1"),t,r,i)}function oe(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ae(e){return e[b]=!0,e}function se(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function le(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||E)-(~e.sourceIndex||E);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return ae(function(t){return t=+t,ae(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ie.support={},o=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=ie.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,v=!o(p),(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),n.attributes=se(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=se(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=se(function(e){return h.appendChild(e).id=b,!p.getElementsByName||!p.getElementsByName(b).length}),n.getById?(r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n=t.getElementById(e);return n?[n]:[]}},r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&v)return t.getElementsByClassName(e)},g=[],m=[],(n.qsa=J.test(p.querySelectorAll))&&(se(function(e){h.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+M+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+b+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]")}),se(function(e){var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+M+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=J.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&se(function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),g.push("!=",W)}),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),t=J.test(h.compareDocumentPosition),x=t||J.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},_=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===p||e.ownerDocument===w&&x(w,e)?-1:t===p||t.ownerDocument===w&&x(w,t)?1:c?O(c,e)-O(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===p?-1:t===p?1:i?-1:o?1:c?O(c,e)-O(c,t):0;if(i===o)return le(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?le(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},p):p},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&f(e),t=t.replace(X,"='$1']"),n.matchesSelector&&v&&!j[t+" "]&&(!g||!g.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return ie(t,p,null,[e]).length>0},ie.contains=function(e,t){return(e.ownerDocument||e)!==p&&f(e),x(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==p&&f(e);var i=r.attrHandle[t.toLowerCase()],o=i&&N.call(r.attrHandle,t.toLowerCase())?i(e,t,!v):void 0;return void 0!==o?o:n.attributes||!v?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(_),d){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=ie.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=ie.selectors={cacheLength:50,createPseudo:ae,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&k(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ie.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(I," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,d,f,p,h,v=o!==a?"nextSibling":"previousSibling",m=t.parentNode,g=s&&t.nodeName.toLowerCase(),y=!u&&!s,x=!1;if(m){if(o){for(;v;){for(f=t;f=f[v];)if(s?f.nodeName.toLowerCase()===g:1===f.nodeType)return!1;h=v="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(x=(p=(l=(c=(d=(f=m)[b]||(f[b]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],f=p&&m.childNodes[p];f=++p&&f&&f[v]||(x=p=0)||h.pop();)if(1===f.nodeType&&++x&&f===t){c[e]=[T,p,x];break}}else if(y&&(x=p=(l=(c=(d=(f=t)[b]||(f[b]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)for(;(f=++p&&f&&f[v]||(x=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==g:1!==f.nodeType)||!++x||(y&&((c=(d=f[b]||(f[b]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[T,x]),f!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=O(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ae(function(e){var t=[],n=[],r=s(e.replace($,"$1"));return r[b]?ae(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:ae(function(e){return function(t){return ie(e,t).length>0}}),contains:ae(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:ae(function(e){return V.test(e||"")||ie.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:fe(function(){return[0]}),last:fe(function(e,t){return[t-1]}),eq:fe(function(e,t,n){return[n<0?n+t:n]}),even:fe(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:fe(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:fe(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:fe(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ce(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=de(t);function he(){}function ve(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function me(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=C++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,u,l,c=[T,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if((s=(u=(l=t[b]||(t[b]={}))[t.uniqueID]||(l[t.uniqueID]={}))[r])&&s[0]===T&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=e(t,n,a))return!0}}}function ge(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function ye(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function xe(e,t,n,r,i,o){return r&&!r[b]&&(r=xe(r)),i&&!i[b]&&(i=xe(i,o)),ae(function(o,a,s,u){var l,c,d,f=[],p=[],h=a.length,v=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)ie(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?v:ye(v,f,e,s,u),g=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,g,s,u),r)for(l=ye(g,p),r(l,[],s,u),c=l.length;c--;)(d=l[c])&&(g[p[c]]=!(m[p[c]]=d));if(o){if(i||e){if(i){for(l=[],c=g.length;c--;)(d=g[c])&&l.push(m[c]=d);i(null,g=[],l,u)}for(c=g.length;c--;)(d=g[c])&&(l=i?O(o,d):f[c])>-1&&(o[l]=!(a[l]=d))}}else g=ye(g===a?g.splice(h,g.length):g),i?i(null,a,g,u):q.apply(a,g)})}function be(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=me(function(e){return e===t},s,!0),d=me(function(e){return O(t,e)>-1},s,!0),f=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):d(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])f=[me(ge(f),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[b]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return xe(u>1&&ge(f),u>1&&ve(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace($,"$1"),n,u<i&&be(e.slice(u,i)),i<o&&be(e=e.slice(i)),i<o&&ve(e))}f.push(n)}return ge(f)}return he.prototype=r.filters=r.pseudos,r.setFilters=new he,a=ie.tokenize=function(e,t){var n,i,o,a,s,u,l,c=S[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(i=B.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace($," ")}),s=s.slice(n.length)),r.filter)!(i=G[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ie.error(e):S(e,u).slice(0)},s=ie.compile=function(e,t){var n,i=[],o=[],s=j[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=be(t[n]))[b]?i.push(s):o.push(s);(s=j(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,u,c){var d,h,m,g=0,y="0",x=o&&[],b=[],w=l,C=o||i&&r.find.TAG("*",c),k=T+=null==w?1:Math.random()||.1,S=C.length;for(c&&(l=a===p||a||c);y!==S&&null!=(d=C[y]);y++){if(i&&d){for(h=0,a||d.ownerDocument===p||(f(d),s=!v);m=e[h++];)if(m(d,a||p,s)){u.push(d);break}c&&(T=k)}n&&((d=!m&&d)&&g--,o&&x.push(d))}if(g+=y,n&&y!==g){for(h=0;m=t[h++];)m(x,b,a,s);if(o){if(g>0)for(;y--;)x[y]||b[y]||(b[y]=D.call(u));b=ye(b)}q.apply(u,b),c&&!o&&b.length>0&&g+t.length>1&&ie.uniqueSort(u)}return c&&(T=k,l=w),x};return n?ae(o):o}(o,i))).selector=e}return s},u=ie.select=function(e,t,i,o){var u,l,c,d,f,p="function"==typeof e&&e,h=!o&&a(e=p.selector||e);if(i=i||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&n.getById&&9===t.nodeType&&v&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return i;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(u=G.needsContext.test(e)?0:l.length;u--&&(c=l[u],!r.relative[d=c.type]);)if((f=r.find[d])&&(o=f(c.matches[0].replace(te,ne),Z.test(l[0].type)&&pe(t.parentNode)||t))){if(l.splice(u,1),!(e=o.length&&ve(l)))return q.apply(i,o),i;break}}return(p||s(e,h))(o,t,!v,i,!t||Z.test(e)&&pe(t.parentNode)||t),i},n.sortStable=b.split("").sort(_).join("")===b,n.detectDuplicates=!!d,f(),n.sortDetached=se(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),se(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&se(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),se(function(e){return null==e.getAttribute("disabled")})||ue(H,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ie}(i);m.find=T,m.expr=T.selectors,m.expr[":"]=m.expr.pseudos,m.uniqueSort=m.unique=T.uniqueSort,m.text=T.getText,m.isXMLDoc=T.isXML,m.contains=T.contains;var C=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&m(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=m.expr.match.needsContext,j=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,_=/^.[^:#\[\.,]*$/;function E(e,t,n){if(m.isFunction(t))return m.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return m.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(_.test(t))return m.filter(t,e,n);t=m.filter(t,e)}return m.grep(e,function(e){return d.call(t,e)>-1!==n})}m.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?m.find.matchesSelector(r,e)?[r]:[]:m.find.matches(e,m.grep(t,function(e){return 1===e.nodeType}))},m.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(m(e).filter(function(){for(t=0;t<n;t++)if(m.contains(i[t],this))return!0}));for(t=0;t<n;t++)m.find(e,i[t],r);return(r=this.pushStack(n>1?m.unique(r):r)).selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(E(this,e||[],!1))},not:function(e){return this.pushStack(E(this,e||[],!0))},is:function(e){return!!E(this,"string"==typeof e&&S.test(e)?m(e):e||[],!1).length}});var N,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(m.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||N,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof m?t[0]:t,m.merge(this,m.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:s,!0)),j.test(r[1])&&m.isPlainObject(t))for(r in t)m.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=s.getElementById(r[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=s,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):m.isFunction(e)?void 0!==n.ready?n.ready(e):e(m):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),m.makeArray(e,this))}).prototype=m.fn,N=m(s);var D=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function q(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}m.fn.extend({has:function(e){var t=m(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(m.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=S.test(e)||"string"!=typeof e?m(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&m.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?m.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?d.call(m(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),m.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,n){return C(e,"parentNode",n)},next:function(e){return q(e,"nextSibling")},prev:function(e){return q(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,n){return C(e,"nextSibling",n)},prevUntil:function(e,t,n){return C(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return e.contentDocument||m.merge([],e.childNodes)}},function(e,t){m.fn[e]=function(n,r){var i=m.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=m.filter(r,i)),this.length>1&&(L[e]||m.uniqueSort(i),D.test(e)&&i.reverse()),this.pushStack(i)}});var P,O=/\S+/g;function H(){s.removeEventListener("DOMContentLoaded",H),i.removeEventListener("load",H),m.ready()}m.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return m.each(e.match(O)||[],function(e,n){t[n]=!0}),t}(e):m.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){m.each(n,function(n,r){m.isFunction(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==m.type(r)&&t(r)})}(arguments),n&&!t&&u()),this},remove:function(){return m.each(arguments,function(e,t){for(var n;(n=m.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?m.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},m.extend({Deferred:function(e){var t=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return m.Deferred(function(n){m.each(t,function(t,o){var a=m.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&m.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?m.extend(e,r):r}},i={};return r.pipe=r.then,m.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=u.call(arguments),a=o.length,s=1!==a||e&&m.isFunction(e.promise)?a:0,l=1===s?e:m.Deferred(),c=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?u.call(arguments):i,r===t?l.notifyWith(n,r):--s||l.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&m.isFunction(o[i].promise)?o[i].promise().progress(c(i,n,t)).done(c(i,r,o)).fail(l.reject):--s;return s||l.resolveWith(r,o),l.promise()}}),m.fn.ready=function(e){return m.ready.promise().done(e),this},m.extend({isReady:!1,readyWait:1,holdReady:function(e){e?m.readyWait++:m.ready(!0)},ready:function(e){(!0===e?--m.readyWait:m.isReady)||(m.isReady=!0,!0!==e&&--m.readyWait>0||(P.resolveWith(s,[m]),m.fn.triggerHandler&&(m(s).triggerHandler("ready"),m(s).off("ready"))))}}),m.ready.promise=function(e){return P||(P=m.Deferred(),"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?i.setTimeout(m.ready):(s.addEventListener("DOMContentLoaded",H),i.addEventListener("load",H))),P.promise(e)},m.ready.promise();var M=function e(t,n,r,i,o,a,s){var u=0,l=t.length,c=null==r;if("object"===m.type(r))for(u in o=!0,r)e(t,n,u,r[u],!0,a,s);else if(void 0!==i&&(o=!0,m.isFunction(i)||(s=!0),c&&(s?(n.call(t,i),n=null):(c=n,n=function(e,t,n){return c.call(m(e),n)})),n))for(;u<l;u++)n(t[u],r,s?i:i.call(t[u],u,n(t[u],r)));return o?t:c?n.call(t):l?n(t[0],r):a},F=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function R(){this.expando=m.expando+R.uid++}R.uid=1,R.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!F(e))return{};var t=e[this.expando];return t||(t={},F(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[t]=n;else for(r in t)i[r]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(r=this.get(e,t))?r:this.get(e,m.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{m.isArray(t)?r=t.concat(t.map(m.camelCase)):(i=m.camelCase(t),r=t in o?[t,i]:(r=i)in o?[r]:r.match(O)||[]),n=r.length;for(;n--;)delete o[r[n]]}(void 0===t||m.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!m.isEmptyObject(t)}};var W=new R,I=new R,$=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,B=/[A-Z]/g;function z(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(B,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:$.test(n)?m.parseJSON(n):n)}catch(e){}I.set(e,t,n)}else n=void 0;return n}m.extend({hasData:function(e){return I.hasData(e)||W.hasData(e)},data:function(e,t,n){return I.access(e,t,n)},removeData:function(e,t){I.remove(e,t)},_data:function(e,t,n){return W.access(e,t,n)},_removeData:function(e,t){W.remove(e,t)}}),m.fn.extend({data:function(e,t){var n,i,o,a=this[0],s=a&&a.attributes;if(void 0===e){if(this.length&&(o=I.get(a),1===a.nodeType&&!W.get(a,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=m.camelCase(i.slice(5)),z(a,i,o[i]));W.set(a,"hasDataAttrs",!0)}return o}return"object"===r(e)?this.each(function(){I.set(this,e)}):M(this,function(t){var n,r;if(a&&void 0===t)return void 0!==(n=I.get(a,e)||I.get(a,e.replace(B,"-$&").toLowerCase()))?n:(r=m.camelCase(e),void 0!==(n=I.get(a,r))?n:void 0!==(n=z(a,r,void 0))?n:void 0);r=m.camelCase(e),this.each(function(){var n=I.get(this,r);I.set(this,r,t),e.indexOf("-")>-1&&void 0!==n&&I.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){I.remove(this,e)})}}),m.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=W.get(e,t),n&&(!r||m.isArray(n)?r=W.access(e,t,m.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=m.queue(e,t),r=n.length,i=n.shift(),o=m._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){m.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return W.get(e,n)||W.access(e,n,{empty:m.Callbacks("once memory").add(function(){W.remove(e,[t+"queue",n])})})}}),m.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?m.queue(this[0],e):void 0===t?this:this.each(function(){var n=m.queue(this,e,t);m._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&m.dequeue(this,e)})},dequeue:function(e){return this.each(function(){m.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=m.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=W.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var X=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=new RegExp("^(?:([+-])=|)("+X+")([a-z%]*)$","i"),V=["Top","Right","Bottom","Left"],G=function(e,t){return e=t||e,"none"===m.css(e,"display")||!m.contains(e.ownerDocument,e)};function Y(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return m.css(e,t,"")},u=s(),l=n&&n[3]||(m.cssNumber[t]?"":"px"),c=(m.cssNumber[t]||"px"!==l&&+u)&&U.exec(m.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do{c/=o=o||".5",m.style(e,t,c+l)}while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var Q=/^(?:checkbox|radio)$/i,J=/<([\w:-]+)/,K=/^$|\/(?:java|ecma)script/i,Z={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ee(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&m.nodeName(e,t)?m.merge([e],n):n}function te(e,t){for(var n=0,r=e.length;n<r;n++)W.set(e[n],"globalEval",!t||W.get(t[n],"globalEval"))}Z.optgroup=Z.option,Z.tbody=Z.tfoot=Z.colgroup=Z.caption=Z.thead,Z.th=Z.td;var ne=/<|&#?\w+;/;function re(e,t,n,r,i){for(var o,a,s,u,l,c,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===m.type(o))m.merge(f,o.nodeType?[o]:o);else if(ne.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(J.exec(o)||["",""])[1].toLowerCase(),u=Z[s]||Z._default,a.innerHTML=u[1]+m.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;m.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",p=0;o=f[p++];)if(r&&m.inArray(o,r)>-1)i&&i.push(o);else if(l=m.contains(o.ownerDocument,o),a=ee(d.appendChild(o),"script"),l&&te(a),n)for(c=0;o=a[c++];)K.test(o.type||"")&&n.push(o);return d}!function(){var e=s.createDocumentFragment().appendChild(s.createElement("div")),t=s.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),v.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var ie=/^key/,oe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ae=/^([^.]*)(?:\.(.+)|)/;function se(){return!0}function ue(){return!1}function le(){try{return s.activeElement}catch(e){}}function ce(e,t,n,i,o,a){var s,u;if("object"===r(t)){for(u in"string"!=typeof n&&(i=i||n,n=void 0),t)ce(e,u,n,i,t[u],a);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=ue;else if(!o)return e;return 1===a&&(s=o,(o=function(e){return m().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=m.guid++)),e.each(function(){m.event.add(this,t,o,i,n)})}m.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,d,f,p,h,v,g=W.get(e);if(g)for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=m.guid++),(u=g.events)||(u=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==m&&m.event.triggered!==t.type?m.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(O)||[""]).length;l--;)p=v=(s=ae.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=m.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=m.event.special[p]||{},c=m.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&m.expr.match.needsContext.test(i),namespace:h.join(".")},o),(f=u[p])||((f=u[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),m.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,d,f,p,h,v,g=W.hasData(e)&&W.get(e);if(g&&(u=g.events)){for(l=(t=(t||"").match(O)||[""]).length;l--;)if(p=v=(s=ae.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=m.event.special[p]||{},f=u[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)c=f[o],!i&&v!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||m.removeEvent(e,p,g.handle),delete u[p])}else for(p in u)m.event.remove(e,p+t[l],n,r,!0);m.isEmptyObject(u)&&W.remove(e,"handle events")}},dispatch:function(e){e=m.event.fix(e);var t,n,r,i,o,a,s=u.call(arguments),l=(W.get(this,"events")||{})[e.type]||[],c=m.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(a=m.event.handlers.call(this,e,l),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(r=((m.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==e.type)){for(r=[],n=0;n<s;n++)void 0===r[i=(o=t[n]).selector+" "]&&(r[i]=o.needsContext?m(i,this).index(u)>-1:m.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button;return null==e.pageX&&null!=t.clientX&&(r=(n=e.target.ownerDocument||s).documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[m.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=oe.test(i)?this.mouseHooks:ie.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new m.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=s),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==le()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===le()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&m.nodeName(this,"input"))return this.click(),!1},_default:function(e){return m.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},m.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},m.Event=function(e,t){if(!(this instanceof m.Event))return new m.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?se:ue):this.type=e,t&&m.extend(this,t),this.timeStamp=e&&e.timeStamp||m.now(),this[m.expando]=!0},m.Event.prototype={constructor:m.Event,isDefaultPrevented:ue,isPropagationStopped:ue,isImmediatePropagationStopped:ue,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=se,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=se,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=se,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){m.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||m.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),m.fn.extend({on:function(e,t,n,r){return ce(this,e,t,n,r)},one:function(e,t,n,r){return ce(this,e,t,n,r,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,m(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"===r(e)){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ue),this.each(function(){m.event.remove(this,e,n,t)})}});var de=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,fe=/<script|<style|<link/i,pe=/checked\s*(?:[^=]|=\s*.checked.)/i,he=/^true\/(.*)/,ve=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function me(e,t){return m.nodeName(e,"table")&&m.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ge(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ye(e){var t=he.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function xe(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(W.hasData(e)&&(o=W.access(e),a=W.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)m.event.add(t,i,l[i][n]);I.hasData(e)&&(s=I.access(e),u=m.extend({},s),I.set(t,u))}}function be(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Q.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function we(e,t,n,r){t=l.apply([],t);var i,o,a,s,u,c,d=0,f=e.length,p=f-1,h=t[0],g=m.isFunction(h);if(g||f>1&&"string"==typeof h&&!v.checkClone&&pe.test(h))return e.each(function(i){var o=e.eq(i);g&&(t[0]=h.call(this,i,o.html())),we(o,t,n,r)});if(f&&(o=(i=re(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=m.map(ee(i,"script"),ge)).length;d<f;d++)u=i,d!==p&&(u=m.clone(u,!0,!0),s&&m.merge(a,ee(u,"script"))),n.call(e[d],u,d);if(s)for(c=a[a.length-1].ownerDocument,m.map(a,ye),d=0;d<s;d++)u=a[d],K.test(u.type||"")&&!W.access(u,"globalEval")&&m.contains(c,u)&&(u.src?m._evalUrl&&m._evalUrl(u.src):m.globalEval(u.textContent.replace(ve,"")))}return e}function Te(e,t,n){for(var r,i=t?m.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||m.cleanData(ee(r)),r.parentNode&&(n&&m.contains(r.ownerDocument,r)&&te(ee(r,"script")),r.parentNode.removeChild(r));return e}m.extend({htmlPrefilter:function(e){return e.replace(de,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=m.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||m.isXMLDoc(e)))for(a=ee(s),r=0,i=(o=ee(e)).length;r<i;r++)be(o[r],a[r]);if(t)if(n)for(o=o||ee(e),a=a||ee(s),r=0,i=o.length;r<i;r++)xe(o[r],a[r]);else xe(e,s);return(a=ee(s,"script")).length>0&&te(a,!u&&ee(e,"script")),s},cleanData:function(e){for(var t,n,r,i=m.event.special,o=0;void 0!==(n=e[o]);o++)if(F(n)){if(t=n[W.expando]){if(t.events)for(r in t.events)i[r]?m.event.remove(n,r):m.removeEvent(n,r,t.handle);n[W.expando]=void 0}n[I.expando]&&(n[I.expando]=void 0)}}}),m.fn.extend({domManip:we,detach:function(e){return Te(this,e,!0)},remove:function(e){return Te(this,e)},text:function(e){return M(this,function(e){return void 0===e?m.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return we(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||me(this,e).appendChild(e)})},prepend:function(){return we(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=me(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return we(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return we(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(m.cleanData(ee(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return m.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!fe.test(e)&&!Z[(J.exec(e)||["",""])[1].toLowerCase()]){e=m.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(m.cleanData(ee(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return we(this,arguments,function(t){var n=this.parentNode;m.inArray(this,e)<0&&(m.cleanData(ee(this)),n&&n.replaceChild(t,this))},e)}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){m.fn[e]=function(e){for(var n,r=[],i=m(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),m(i[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}});var Ce,ke={HTML:"block",BODY:"block"};function Se(e,t){var n=m(t.createElement(e)).appendTo(t.body),r=m.css(n[0],"display");return n.detach(),r}function je(e){var t=s,n=ke[e];return n||("none"!==(n=Se(e,t))&&n||((t=(Ce=(Ce||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=Se(e,t),Ce.detach()),ke[e]=n),n}var _e=/^margin/,Ee=new RegExp("^("+X+")(?!px)[a-z%]+$","i"),Ne=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},Ae=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i},De=s.documentElement;function Le(e,t,n){var r,i,o,a,s=e.style;return""!==(a=(n=n||Ne(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==a||m.contains(e.ownerDocument,e)||(a=m.style(e,t)),n&&!v.pixelMarginRight()&&Ee.test(a)&&_e.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o),void 0!==a?a+"":a}function qe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var e,t,n,r,o=s.createElement("div"),a=s.createElement("div");function u(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",De.appendChild(o);var s=i.getComputedStyle(a);e="1%"!==s.top,r="2px"===s.marginLeft,t="4px"===s.width,a.style.marginRight="50%",n="4px"===s.marginRight,De.removeChild(o)}a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(a),m.extend(v,{pixelPosition:function(){return u(),e},boxSizingReliable:function(){return null==t&&u(),t},pixelMarginRight:function(){return null==t&&u(),n},reliableMarginLeft:function(){return null==t&&u(),r},reliableMarginRight:function(){var e,t=a.appendChild(s.createElement("div"));return t.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",a.style.width="1px",De.appendChild(o),e=!parseFloat(i.getComputedStyle(t).marginRight),De.removeChild(o),a.removeChild(t),e}}))}();var Pe=/^(none|table(?!-c[ea]).+)/,Oe={position:"absolute",visibility:"hidden",display:"block"},He={letterSpacing:"0",fontWeight:"400"},Me=["Webkit","O","Moz","ms"],Fe=s.createElement("div").style;function Re(e){if(e in Fe)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Me.length;n--;)if((e=Me[n]+t)in Fe)return e}function We(e,t,n){var r=U.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ie(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=m.css(e,n+V[o],!0,i)),r?("content"===n&&(a-=m.css(e,"padding"+V[o],!0,i)),"margin"!==n&&(a-=m.css(e,"border"+V[o]+"Width",!0,i))):(a+=m.css(e,"padding"+V[o],!0,i),"padding"!==n&&(a+=m.css(e,"border"+V[o]+"Width",!0,i)));return a}function $e(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Ne(e),a="border-box"===m.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Le(e,t,o))<0||null==i)&&(i=e.style[t]),Ee.test(i))return i;r=a&&(v.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+Ie(e,t,n||(a?"border":"content"),r,o)+"px"}function Be(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(o[a]=W.get(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&G(r)&&(o[a]=W.access(r,"olddisplay",je(r.nodeName)))):(i=G(r),"none"===n&&i||W.set(r,"olddisplay",i?n:m.css(r,"display"))));for(a=0;a<s;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function ze(e,t,n,r,i){return new ze.prototype.init(e,t,n,r,i)}m.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Le(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=m.camelCase(t),l=e.style;if(t=m.cssProps[u]||(m.cssProps[u]=Re(u)||u),s=m.cssHooks[t]||m.cssHooks[u],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(e,!1,i))?o:l[t];"string"===(a=r(n))&&(o=U.exec(n))&&o[1]&&(n=Y(e,t,o),a="number"),null!=n&&n==n&&("number"===a&&(n+=o&&o[3]||(m.cssNumber[u]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=m.camelCase(t);return t=m.cssProps[s]||(m.cssProps[s]=Re(s)||s),(a=m.cssHooks[t]||m.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Le(e,t,r)),"normal"===i&&t in He&&(i=He[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),m.each(["height","width"],function(e,t){m.cssHooks[t]={get:function(e,n,r){if(n)return Pe.test(m.css(e,"display"))&&0===e.offsetWidth?Ae(e,Oe,function(){return $e(e,t,r)}):$e(e,t,r)},set:function(e,n,r){var i,o=r&&Ne(e),a=r&&Ie(e,t,r,"border-box"===m.css(e,"boxSizing",!1,o),o);return a&&(i=U.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=m.css(e,t)),We(0,n,a)}}}),m.cssHooks.marginLeft=qe(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Le(e,"marginLeft"))||e.getBoundingClientRect().left-Ae(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),m.cssHooks.marginRight=qe(v.reliableMarginRight,function(e,t){if(t)return Ae(e,{display:"inline-block"},Le,[e,"marginRight"])}),m.each({margin:"",padding:"",border:"Width"},function(e,t){m.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+V[r]+t]=o[r]||o[r-2]||o[0];return i}},_e.test(e)||(m.cssHooks[e+t].set=We)}),m.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(m.isArray(t)){for(r=Ne(e),i=t.length;a<i;a++)o[t[a]]=m.css(e,t[a],!1,r);return o}return void 0!==n?m.style(e,t,n):m.css(e,t)},e,t,arguments.length>1)},show:function(){return Be(this,!0)},hide:function(){return Be(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){G(this)?m(this).show():m(this).hide()})}}),m.Tween=ze,ze.prototype={constructor:ze,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||m.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(m.cssNumber[n]?"":"px")},cur:function(){var e=ze.propHooks[this.prop];return e&&e.get?e.get(this):ze.propHooks._default.get(this)},run:function(e){var t,n=ze.propHooks[this.prop];return this.options.duration?this.pos=t=m.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ze.propHooks._default.set(this),this}},ze.prototype.init.prototype=ze.prototype,ze.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=m.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){m.fx.step[e.prop]?m.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[m.cssProps[e.prop]]&&!m.cssHooks[e.prop]?e.elem[e.prop]=e.now:m.style(e.elem,e.prop,e.now+e.unit)}}},ze.propHooks.scrollTop=ze.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},m.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},m.fx=ze.prototype.init,m.fx.step={};var Xe,Ue,Ve=/^(?:toggle|show|hide)$/,Ge=/queueHooks$/;function Ye(){return i.setTimeout(function(){Xe=void 0}),Xe=m.now()}function Qe(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=V[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Je(e,t,n){for(var r,i=(Ke.tweeners[t]||[]).concat(Ke.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function Ke(e,t,n){var r,i,o=0,a=Ke.prefilters.length,s=m.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=Xe||Ye(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:m.extend({},t),opts:m.extend(!0,{specialEasing:{},easing:m.easing._default},n),originalProperties:t,originalOptions:n,startTime:Xe||Ye(),duration:n.duration,tweens:[],createTween:function(t,n){var r=m.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=m.camelCase(n)],o=e[n],m.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=m.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=Ke.prefilters[o].call(l,e,c,l.opts))return m.isFunction(r.stop)&&(m._queueHooks(l.elem,l.opts.queue).stop=m.proxy(r.stop,r)),r;return m.map(c,Je,l),m.isFunction(l.opts.start)&&l.opts.start.call(e,l),m.fx.timer(m.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}m.Animation=m.extend(Ke,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Y(n.elem,e,U.exec(t),n),n}]},tweener:function(e,t){m.isFunction(e)?(t=e,e=["*"]):e=e.match(O);for(var n,r=0,i=e.length;r<i;r++)n=e[r],Ke.tweeners[n]=Ke.tweeners[n]||[],Ke.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c=this,d={},f=e.style,p=e.nodeType&&G(e),h=W.get(e,"fxshow");for(r in n.queue||(null==(s=m._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,m.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],"inline"===("none"===(l=m.css(e,"display"))?W.get(e,"olddisplay")||je(e.nodeName):l)&&"none"===m.css(e,"float")&&(f.display="inline-block")),n.overflow&&(f.overflow="hidden",c.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),t)if(i=t[r],Ve.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!h||void 0===h[r])continue;p=!0}d[r]=h&&h[r]||m.style(e,r)}else l=void 0;if(m.isEmptyObject(d))"inline"===("none"===l?je(e.nodeName):l)&&(f.display=l);else for(r in h?"hidden"in h&&(p=h.hidden):h=W.access(e,"fxshow",{}),o&&(h.hidden=!p),p?m(e).show():c.done(function(){m(e).hide()}),c.done(function(){var t;for(t in W.remove(e,"fxshow"),d)m.style(e,t,d[t])}),d)a=Je(p?h[r]:0,r,c),r in h||(h[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],prefilter:function(e,t){t?Ke.prefilters.unshift(e):Ke.prefilters.push(e)}}),m.speed=function(e,t,n){var i=e&&"object"===r(e)?m.extend({},e):{complete:n||!n&&t||m.isFunction(e)&&e,duration:e,easing:n&&t||t&&!m.isFunction(t)&&t};return i.duration=m.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in m.fx.speeds?m.fx.speeds[i.duration]:m.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){m.isFunction(i.old)&&i.old.call(this),i.queue&&m.dequeue(this,i.queue)},i},m.fn.extend({fadeTo:function(e,t,n,r){return this.filter(G).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=m.isEmptyObject(e),o=m.speed(t,n,r),a=function(){var t=Ke(this,m.extend({},e),o);(i||W.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=m.timers,a=W.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&Ge.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||m.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=W.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=m.timers,a=r?r.length:0;for(n.finish=!0,m.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),m.each(["toggle","show","hide"],function(e,t){var n=m.fn[t];m.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(Qe(t,!0),e,r,i)}}),m.each({slideDown:Qe("show"),slideUp:Qe("hide"),slideToggle:Qe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){m.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),m.timers=[],m.fx.tick=function(){var e,t=0,n=m.timers;for(Xe=m.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||m.fx.stop(),Xe=void 0},m.fx.timer=function(e){m.timers.push(e),e()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){Ue||(Ue=i.setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){i.clearInterval(Ue),Ue=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(e,t){return e=m.fx&&m.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,n){var r=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(r)}})},function(){var e=s.createElement("input"),t=s.createElement("select"),n=t.appendChild(s.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=n.selected,t.disabled=!0,v.optDisabled=!n.disabled,(e=s.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var Ze,et=m.expr.attrHandle;m.fn.extend({attr:function(e,t){return M(this,m.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){m.removeAttr(this,e)})}}),m.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?m.prop(e,t,n):(1===o&&m.isXMLDoc(e)||(t=t.toLowerCase(),i=m.attrHooks[t]||(m.expr.match.bool.test(t)?Ze:void 0)),void 0!==n?null===n?void m.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=m.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&m.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(O);if(o&&1===e.nodeType)for(;n=o[i++];)r=m.propFix[n]||n,m.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)}}),Ze={set:function(e,t,n){return!1===t?m.removeAttr(e,n):e.setAttribute(n,n),n}},m.each(m.expr.match.bool.source.match(/\w+/g),function(e,t){var n=et[t]||m.find.attr;et[t]=function(e,t,r){var i,o;return r||(o=et[t],et[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,et[t]=o),i}});var tt=/^(?:input|select|textarea|button)$/i,nt=/^(?:a|area)$/i;m.fn.extend({prop:function(e,t){return M(this,m.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[m.propFix[e]||e]})}}),m.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&m.isXMLDoc(e)||(t=m.propFix[t]||t,i=m.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=m.find.attr(e,"tabindex");return t?parseInt(t,10):tt.test(e.nodeName)||nt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(m.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this});var rt=/[\t\r\n\f]/g;function it(e){return e.getAttribute&&e.getAttribute("class")||""}m.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(m.isFunction(e))return this.each(function(t){m(this).addClass(e.call(this,t,it(this)))});if("string"==typeof e&&e)for(t=e.match(O)||[];n=this[u++];)if(i=it(n),r=1===n.nodeType&&(" "+i+" ").replace(rt," ")){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=m.trim(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(m.isFunction(e))return this.each(function(t){m(this).removeClass(e.call(this,t,it(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(O)||[];n=this[u++];)if(i=it(n),r=1===n.nodeType&&(" "+i+" ").replace(rt," ")){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=m.trim(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=r(e);return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):m.isFunction(e)?this.each(function(n){m(this).toggleClass(e.call(this,n,it(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=m(this),o=e.match(O)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=it(this))&&W.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":W.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+it(n)+" ").replace(rt," ").indexOf(t)>-1)return!0;return!1}});var ot=/\r/g,at=/[\x20\t\r\n\f]+/g;m.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=m.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,m(this).val()):e)?i="":"number"==typeof i?i+="":m.isArray(i)&&(i=m.map(i,function(e){return null==e?"":e+""})),(t=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=m.valHooks[i.type]||m.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ot,""):null==n?"":n:void 0}}),m.extend({valHooks:{option:{get:function(e){var t=m.find.attr(e,"value");return null!=t?t:m.trim(m.text(e)).replace(at," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u<s;u++)if(((n=r[u]).selected||u===i)&&(v.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!m.nodeName(n.parentNode,"optgroup"))){if(t=m(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=m.makeArray(t),a=i.length;a--;)((r=i[a]).selected=m.inArray(m.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(e,t){if(m.isArray(t))return e.checked=m.inArray(m(e).val(),t)>-1}},v.checkOn||(m.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var st=/^(?:focusinfocus|focusoutblur)$/;m.extend(m.event,{trigger:function(e,t,n,o){var a,u,l,c,d,f,p,v=[n||s],g=h.call(e,"type")?e.type:e,y=h.call(e,"namespace")?e.namespace.split("."):[];if(u=l=n=n||s,3!==n.nodeType&&8!==n.nodeType&&!st.test(g+m.event.triggered)&&(g.indexOf(".")>-1&&(g=(y=g.split(".")).shift(),y.sort()),d=g.indexOf(":")<0&&"on"+g,(e=e[m.expando]?e:new m.Event(g,"object"===r(e)&&e)).isTrigger=o?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:m.makeArray(t,[e]),p=m.event.special[g]||{},o||!p.trigger||!1!==p.trigger.apply(n,t))){if(!o&&!p.noBubble&&!m.isWindow(n)){for(c=p.delegateType||g,st.test(c+g)||(u=u.parentNode);u;u=u.parentNode)v.push(u),l=u;l===(n.ownerDocument||s)&&v.push(l.defaultView||l.parentWindow||i)}for(a=0;(u=v[a++])&&!e.isPropagationStopped();)e.type=a>1?c:p.bindType||g,(f=(W.get(u,"events")||{})[e.type]&&W.get(u,"handle"))&&f.apply(u,t),(f=d&&u[d])&&f.apply&&F(u)&&(e.result=f.apply(u,t),!1===e.result&&e.preventDefault());return e.type=g,o||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(v.pop(),t)||!F(n)||d&&m.isFunction(n[g])&&!m.isWindow(n)&&((l=n[d])&&(n[d]=null),m.event.triggered=g,n[g](),m.event.triggered=void 0,l&&(n[d]=l)),e.result}},simulate:function(e,t,n){var r=m.extend(new m.Event,n,{type:e,isSimulated:!0});m.event.trigger(r,null,t)}}),m.fn.extend({trigger:function(e,t){return this.each(function(){m.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return m.event.trigger(e,t,n,!0)}}),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){m.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),m.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),v.focusin="onfocusin"in i,v.focusin||m.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){m.event.simulate(t,e.target,m.event.fix(e))};m.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=W.access(r,t);i||r.addEventListener(e,n,!0),W.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=W.access(r,t)-1;i?W.access(r,t,i):(r.removeEventListener(e,n,!0),W.remove(r,t))}}});var ut=i.location,lt=m.now(),ct=/\?/;m.parseJSON=function(e){return JSON.parse(e+"")},m.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+e),t};var dt=/#.*$/,ft=/([?&])_=[^&]*/,pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,ht=/^(?:GET|HEAD)$/,vt=/^\/\//,mt={},gt={},yt="*/".concat("*"),xt=s.createElement("a");function bt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(O)||[];if(m.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function wt(e,t,n,r){var i={},o=e===gt;function a(s){var u;return i[s]=!0,m.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Tt(e,t){var n,r,i=m.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&m.extend(!0,e,r),e}xt.href=ut.href,m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ut.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ut.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":yt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Tt(Tt(e,m.ajaxSettings),t):Tt(m.ajaxSettings,e)},ajaxPrefilter:bt(mt),ajaxTransport:bt(gt),ajax:function(e,t){"object"===r(e)&&(t=e,e=void 0),t=t||{};var n,o,a,u,l,c,d,f,p=m.ajaxSetup({},t),h=p.context||p,v=p.context&&(h.nodeType||h.jquery)?m(h):m.event,g=m.Deferred(),y=m.Callbacks("once memory"),x=p.statusCode||{},b={},w={},T=0,C="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(2===T){if(!u)for(u={};t=pt.exec(a);)u[t[1].toLowerCase()]=t[2];t=u[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===T?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return T||(e=w[n]=w[n]||e,b[e]=t),this},overrideMimeType:function(e){return T||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(T<2)for(t in e)x[t]=[x[t],e[t]];else k.always(e[k.status]);return this},abort:function(e){var t=e||C;return n&&n.abort(t),S(0,t),this}};if(g.promise(k).complete=y.add,k.success=k.done,k.error=k.fail,p.url=((e||p.url||ut.href)+"").replace(dt,"").replace(vt,ut.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=m.trim(p.dataType||"*").toLowerCase().match(O)||[""],null==p.crossDomain){c=s.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=xt.protocol+"//"+xt.host!=c.protocol+"//"+c.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=m.param(p.data,p.traditional)),wt(mt,p,t,k),2===T)return k;for(f in(d=m.event&&p.global)&&0==m.active++&&m.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!ht.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(ct.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=ft.test(o)?o.replace(ft,"$1_="+lt++):o+(ct.test(o)?"&":"?")+"_="+lt++)),p.ifModified&&(m.lastModified[o]&&k.setRequestHeader("If-Modified-Since",m.lastModified[o]),m.etag[o]&&k.setRequestHeader("If-None-Match",m.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+yt+"; q=0.01":""):p.accepts["*"]),p.headers)k.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(h,k,p)||2===T))return k.abort();for(f in C="abort",{success:1,error:1,complete:1})k[f](p[f]);if(n=wt(gt,p,t,k)){if(k.readyState=1,d&&v.trigger("ajaxSend",[k,p]),2===T)return k;p.async&&p.timeout>0&&(l=i.setTimeout(function(){k.abort("timeout")},p.timeout));try{T=1,n.send(b,S)}catch(e){if(!(T<2))throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,r,s){var u,c,f,b,w,C=t;2!==T&&(T=2,l&&i.clearTimeout(l),n=void 0,a=s||"",k.readyState=e>0?4:0,u=e>=200&&e<300||304===e,r&&(b=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(p,k,r)),b=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(p,b,k,u),u?(p.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(m.lastModified[o]=w),(w=k.getResponseHeader("etag"))&&(m.etag[o]=w)),204===e||"HEAD"===p.type?C="nocontent":304===e?C="notmodified":(C=b.state,c=b.data,u=!(f=b.error))):(f=C,!e&&C||(C="error",e<0&&(e=0))),k.status=e,k.statusText=(t||C)+"",u?g.resolveWith(h,[c,C,k]):g.rejectWith(h,[k,C,f]),k.statusCode(x),x=void 0,d&&v.trigger(u?"ajaxSuccess":"ajaxError",[k,p,u?c:f]),y.fireWith(h,[k,C]),d&&(v.trigger("ajaxComplete",[k,p]),--m.active||m.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return m.get(e,t,n,"json")},getScript:function(e,t){return m.get(e,void 0,t,"script")}}),m.each(["get","post"],function(e,t){m[t]=function(e,n,r,i){return m.isFunction(n)&&(i=i||r,r=n,n=void 0),m.ajax(m.extend({url:e,type:t,dataType:i,data:n,success:r},m.isPlainObject(e)&&e))}}),m._evalUrl=function(e){return m.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},m.fn.extend({wrapAll:function(e){var t;return m.isFunction(e)?this.each(function(t){m(this).wrapAll(e.call(this,t))}):(this[0]&&(t=m(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return m.isFunction(e)?this.each(function(t){m(this).wrapInner(e.call(this,t))}):this.each(function(){var t=m(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=m.isFunction(e);return this.each(function(n){m(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(e){return!m.expr.filters.visible(e)},m.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var Ct=/%20/g,kt=/\[\]$/,St=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,_t=/^(?:input|select|textarea|keygen)/i;function Et(e,t,n,i){var o;if(m.isArray(t))m.each(t,function(t,o){n||kt.test(e)?i(e,o):Et(e+"["+("object"===r(o)&&null!=o?t:"")+"]",o,n,i)});else if(n||"object"!==m.type(t))i(e,t);else for(o in t)Et(e+"["+o+"]",t[o],n,i)}m.param=function(e,t){var n,r=[],i=function(e,t){t=m.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(e)||e.jquery&&!m.isPlainObject(e))m.each(e,function(){i(this.name,this.value)});else for(n in e)Et(n,e[n],t,i);return r.join("&").replace(Ct,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=m.prop(this,"elements");return e?m.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!m(this).is(":disabled")&&_t.test(this.nodeName)&&!jt.test(e)&&(this.checked||!Q.test(e))}).map(function(e,t){var n=m(this).val();return null==n?null:m.isArray(n)?m.map(n,function(e){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:n.replace(St,"\r\n")}}).get()}}),m.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Nt={0:200,1223:204},At=m.ajaxSettings.xhr();v.cors=!!At&&"withCredentials"in At,v.ajax=At=!!At,m.ajaxTransport(function(e){var t,n;if(v.cors||At&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Nt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout(function(){t&&n()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return m.globalEval(e),e}}}),m.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),m.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(r,i){t=m("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),s.head.appendChild(t[0])},abort:function(){n&&n()}}});var Dt=[],Lt=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Dt.pop()||m.expando+"_"+lt++;return this[e]=!0,e}}),m.ajaxPrefilter("json jsonp",function(e,t,n){var r,o,a,s=!1!==e.jsonp&&(Lt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Lt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Lt,"$1"+r):!1!==e.jsonp&&(e.url+=(ct.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||m.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always(function(){void 0===o?m(i).removeProp(r):i[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,Dt.push(r)),a&&m.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),m.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||s;var r=j.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=re([e],t,i),i&&i.length&&m(i).remove(),m.merge([],r.childNodes))};var qt=m.fn.load;function Pt(e){return m.isWindow(e)?e:9===e.nodeType&&e.defaultView}m.fn.load=function(e,t,n){if("string"!=typeof e&&qt)return qt.apply(this,arguments);var i,o,a,s=this,u=e.indexOf(" ");return u>-1&&(i=m.trim(e.slice(u)),e=e.slice(0,u)),m.isFunction(t)?(n=t,t=void 0):t&&"object"===r(t)&&(o="POST"),s.length>0&&m.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){a=arguments,s.html(i?m("<div>").append(m.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){m.fn[t]=function(e){return this.on(t,e)}}),m.expr.filters.animated=function(e){return m.grep(m.timers,function(t){return e===t.elem}).length},m.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=m.css(e,"position"),c=m(e),d={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=m.css(e,"top"),u=m.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m.isFunction(t)&&(t=t.call(e,n,m.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):c.css(d)}},m.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){m.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;return o?(t=o.documentElement,m.contains(t,r)?(i=r.getBoundingClientRect(),n=Pt(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===m.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),m.nodeName(e[0],"html")||(r=e.offset()),r.top+=m.css(e[0],"borderTopWidth",!0),r.left+=m.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-m.css(n,"marginTop",!0),left:t.left-r.left-m.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===m.css(e,"position");)e=e.offsetParent;return e||De})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;m.fn[e]=function(r){return M(this,function(e,r,i){var o=Pt(e);if(void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),m.each(["top","left"],function(e,t){m.cssHooks[t]=qe(v.pixelPosition,function(e,n){if(n)return n=Le(e,t),Ee.test(n)?m(e).position()[t]+"px":n})}),m.each({Height:"height",Width:"width"},function(e,t){m.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){m.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return M(this,function(t,n,r){var i;return m.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?m.css(t,n,a):m.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),m.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),m.fn.andSelf=m.fn.addBack,void 0===(n=function(){return m}.apply(t,[]))||(e.exports=n);var Ot=i.jQuery,Ht=i.$;return m.noConflict=function(e){return i.$===m&&(i.$=Ht),e&&i.jQuery===m&&(i.jQuery=Ot),m},o||(i.jQuery=i.$=m),m})}).call(this,n(5)(e))},function(e,t){e.exports=prestashop},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.psShowHide=
/**
 * 2007-2018 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 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/OSL-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/OSL-3.0 Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */
function(){(0,r.default)(".ps-shown-by-js").show(),(0,r.default)(".ps-hidden-by-js").hide()},t.psGetRequestParameter=i,t.refreshCheckoutPage=function(){if(null!==i("updatedTransaction"))window.location.reload();else{var e=i();e.updatedTransaction=1;var t=[];for(var n in e){var r=e[n];t.push(n+"="+r)}window.location.href=window.location.pathname+"?"+t.join("&")}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0));function i(e){var t={};return window.location.href.replace(location.hash,"").replace(/[?&]+([^=&]+)=?([^&]*)?/gi,function(e,n,r){t[n]=void 0!==r?r:""}),void 0!==e?t[e]?t[e]:null:t}},function(e,t,n){e.exports=n(4)},function(e,t,n){"use strict";var r=s(n(0));n(6),n(7),n(11),n(12),n(13),n(14);var i=s(n(1)),o=s(n(15)),a=n(2);function s(e){return e&&e.__esModule?e:{default:e}}for(var u in window.$=r.default,window.jQuery=r.default,o.default.prototype)i.default[u]=o.default.prototype[u];(0,r.default)(document).ready(function(){(0,a.psShowHide)()})},function(e,t,n){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=a(n(0)),i=a(n(1)),o=n(2);function a(e){return e&&e.__esModule?e:{default:e}}
/**
 * 2007-2018 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 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/OSL-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/OSL-3.0 Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */(0,r.default)(document).ready(function(){i.default.on("updateCart",function(e){i.default.cart=e.reason.cart;var t=(0,r.default)(".js-cart").data("refresh-url");if(t){var n={};e&&e.reason&&(n={id_product_attribute:e.reason.idProductAttribute,id_product:e.reason.idProduct}),r.default.post(t,n).then(function(e){(0,r.default)(".cart-detailed-totals").replaceWith(e.cart_detailed_totals),(0,r.default)(".cart-summary-items-subtotal").replaceWith(e.cart_summary_items_subtotal),(0,r.default)(".cart-summary-totals").replaceWith(e.cart_summary_totals),(0,r.default)(".cart-detailed-actions").replaceWith(e.cart_detailed_actions),(0,r.default)(".cart-voucher").replaceWith(e.cart_voucher),(0,r.default)(".cart-overview").replaceWith(e.cart_detailed),(0,r.default)("#product_customization_id").val(0),(0,r.default)(".js-cart-line-product-quantity").each(function(e,t){var n=(0,r.default)(t);n.attr("value",n.val())}),(0,r.default)(".js-cart-payment-step-refresh").length&&(0,o.refreshCheckoutPage)(),i.default.emit("updatedCart",{eventType:"updateCart",resp:e})}).fail(function(e){i.default.emit("handleError",{eventType:"updateCart",resp:e})})}});var e=(0,r.default)("body");e.on("click",'[data-button-action="add-to-cart"]',function(e){if(e.preventDefault(),(0,r.default)("#quantity_wanted").val()>(0,r.default)("[data-stock]").data("stock")&&0===(0,r.default)("[data-allow-oosp]").data("allow-oosp").length)(0,r.default)('[data-button-action="add-to-cart"]').attr("disabled","disabled");else{var t=(0,r.default)(e.target).closest("form"),n=t.serialize()+"&add=1&action=update",o=t.attr("action"),a=function(e){e.parents(".product-add-to-cart").first().find(".product-minimal-quantity").addClass("error"),e.parent().find("label").addClass("error")},s=t.find("input[min]");if(!function(e){var t=!0;return e.each(function(e,n){var i=(0,r.default)(n),o=parseInt(i.attr("min"),10);o&&i.val()<o&&(a(i),t=!1)}),t}(s))return void a(s);r.default.post(o,n,null,"json").then(function(e){i.default.emit("updateCart",{reason:{idProduct:e.id_product,idProductAttribute:e.id_product_attribute,idCustomization:e.id_customization,linkAction:"add-to-cart",cart:e.cart},resp:e})}).fail(function(e){i.default.emit("handleError",{eventType:"addProductToCart",resp:e})})}}),e.on("submit",'[data-link-action="add-voucher"]',function(e){e.preventDefault();var t=(0,r.default)(e.currentTarget),n=t.attr("action");0===t.find("[name=action]").length&&t.append((0,r.default)("<input>",{type:"hidden",name:"ajax",value:1})),0===t.find("[name=action]").length&&t.append((0,r.default)("<input>",{type:"hidden",name:"action",value:"update"})),r.default.post(n,t.serialize(),null,"json").then(function(t){t.hasError?(0,r.default)(".js-error").show().find(".js-error-text").text(t.errors[0]):i.default.emit("updateCart",{reason:e.target.dataset,resp:t})}).fail(function(e){i.default.emit("handleError",{eventType:"updateCart",resp:e})})})})},function(e,t,n){"use strict";var r=u(n(0)),i=u(n(1)),o=u(n(8)),a=u(n(9)),s=u(n(10));function u(e){return e&&e.__esModule?e:{default:e}}
/**
 * 2007-2018 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 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/OSL-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/OSL-3.0 Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */function l(){(0,o.default)(),(0,a.default)(),(0,s.default)(),function(){(0,r.default)(".checkout-step").off("click");var e=(0,r.default)("#checkout-personal-information-step").nextAll();(0,r.default)(".js-current-step").prevAll().add(e).on("click",function(e){var t=(0,r.default)(e.target).closest(".checkout-step");t.hasClass("-unreachable")||((0,r.default)(".js-current-step, .-current").removeClass("js-current-step -current"),t.toggleClass("-current"),t.toggleClass("js-current-step")),i.default.emit("changedCheckoutStep",{event:e})}),(0,r.default)(".js-current-step:not(#checkout-personal-information-step)").nextAll().on("click",function(e){(0,r.default)(".js-current-step button.continue").click(),i.default.emit("changedCheckoutStep",{event:e})})}()}(0,r.default)(document).ready(function(){1===(0,r.default)("#checkout").length&&l()})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){(0,r.default)(".js-edit-addresses").on("click",function(e){e.stopPropagation(),(0,r.default)("#checkout-addresses-step").trigger("click"),i.default.emit("editAddress")}),(0,r.default)("#delivery-addresses input[type=radio], #invoice-addresses input[type=radio]").on("click",function(){(0,r.default)(".address-item").removeClass("selected"),(0,r.default)(".address-item:has(input[type=radio]:checked)").addClass("selected");var e=(0,r.default)(".js-address-error").prop("id").split("-").pop(),t=(0,r.default)("#not-valid-addresses").val(),n=this.name.split("_").pop(),i=(0,r.default)(".js-address-error[name=alert-"+n+"]");l(!1,e,n),""!==t&&null===s&&t.split(",").indexOf(this.value)>=0?(i.show(),l(!0,this.value,n),(0,r.default)(".js-address-error").prop("id","id-failure-address-"+this.value)):i.hide();var o=(0,r.default)(".js-address-error:visible");c(o.length<=0)})};var r=a(n(0)),i=a(n(1)),o=n(2);function a(e){return e&&e.__esModule?e:{default:e}}
/**
 * 2007-2018 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 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/OSL-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/OSL-3.0 Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */var s=(0,o.psGetRequestParameter)("editAddress"),u=(0,o.psGetRequestParameter)("use_same_address");(0,r.default)(window).load(function(){var e=(0,r.default)(".js-address-error:visible");if(0===parseInt(u)&&(0,r.default)("#invoice-addresses input[type=radio]:checked").trigger("click"),(null!==s||(0,r.default)(".js-address-form:visible").length>1)&&e.hide(),e.length>0){var t=(0,r.default)(".js-address-error").prop("id").split("-").pop();e.each(function(){l(!0,t,(0,r.default)(this).attr("name").split("-").pop())})}e=(0,r.default)(".js-address-error:visible"),c(e.length<=0)});var l=function(e,t,n){var i="#7a7a7a";e&&((0,r.default)("#"+n+"-addresses a.edit-address").prop("style","color: #7a7a7a !important"),i="#2fb5d2"),(0,r.default)("#id-address-"+n+"-address-"+t+" a.edit-address").prop("style","color: "+i+" !important")},c=function(e){(0,r.default)("button[name=confirm-addresses]").prop("disabled",!e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=
/**
 * 2007-2018 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 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/OSL-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/OSL-3.0 Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */
function(){var e=(0,r.default)("body");e.on("change","#js-delivery input",function(e){var t=(0,r.default)("#js-delivery"),n=t.serialize(),a=(0,r.default)(e.currentTarget).parents("div.delivery-option");r.default.post(t.data("url-update"),n).then(function(e){(0,r.default)("#js-checkout-summary").replaceWith(e.preview),(0,r.default)(".js-cart-payment-step-refresh").length&&(0,o.refreshCheckoutPage)(),i.default.emit("updatedDeliveryForm",{dataForm:t.serializeArray(),deliveryOption:a,resp:e})}).fail(function(e){i.default.trigger("handleError",{eventType:"updateDeliveryOptions",resp:e})})}),e.on("click",".js-edit-delivery",function(e){e.stopPropagation(),(0,r.default)("#checkout-delivery-step").trigger("click"),i.default.emit("editDelivery")})};var r=a(n(0)),i=a(n(1)),o=n(2);function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=new o;return e.init(),e};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0));function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.confirmationSelector="#payment-confirmation",this.paymentSelector="#payment-section",this.conditionsSelector="#conditions-to-approve",this.conditionAlertSelector=".js-alert-payment-conditions",this.additionalInformatonSelector=".js-additional-information",this.optionsForm=".js-payment-option-form"}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"init",value:function(){(0,r.default)(this.paymentSelector+' input[type="checkbox"][disabled]').attr("disabled",!1);var e=(0,r.default)("body");e.on("change",this.conditionsSelector+' input[type="checkbox"]',r.default.proxy(this.toggleOrderButton,this)),e.on("change",'input[name="payment-option"]',r.default.proxy(this.toggleOrderButton,this)),e.on("click",this.confirmationSelector+" button",r.default.proxy(this.confirm,this)),this.collapseOptions()}},{key:"collapseOptions",value:function(){(0,r.default)(this.additionalInformatonSelector+", "+this.optionsForm).hide()}},{key:"getSelectedOption",value:function(){return(0,r.default)('input[name="payment-option"]:checked').attr("id")}},{key:"hideConfirmation",value:function(){(0,r.default)(this.confirmationSelector).hide()}},{key:"showConfirmation",value:function(){(0,r.default)(this.confirmationSelector).show()}},{key:"toggleOrderButton",value:function(){var e=!0;(0,r.default)(this.conditionsSelector+' input[type="checkbox"]').each(function(t,n){n.checked||(e=!1)}),this.collapseOptions();var t=this.getSelectedOption();if(t||(e=!1),(0,r.default)("#"+t+"-additional-information").show(),(0,r.default)("#pay-with-"+t+"-form").show(),(0,r.default)(".js-payment-binary").hide(),(0,r.default)("#"+t).hasClass("binary")){var n=this.getPaymentOptionSelector(t);this.hideConfirmation(),(0,r.default)(n).show(),e?(0,r.default)(n).removeClass("disabled"):(0,r.default)(n).addClass("disabled")}else this.showConfirmation(),(0,r.default)(this.confirmationSelector+" button").attr("disabled",!e),e?(0,r.default)(this.conditionAlertSelector).hide():(0,r.default)(this.conditionAlertSelector).show()}},{key:"getPaymentOptionSelector",value:function(e){var t=(0,r.default)("#".concat(e)).data("module-name");return".js-payment-".concat(t)}},{key:"confirm",value:function(){var e=this.getSelectedOption();e&&((0,r.default)(this.confirmationSelector+" button").prop("disabled",!0),(0,r.default)("#pay-with-"+e+"-form form").submit())}}]),e}()},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}}
/**
 * 2007-2018 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 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/OSL-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/OSL-3.0 Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */(n(0));var i=!1;function o(e){i=!1,prestashop.emit("updateProductList",e),window.history.pushState(e,document.title,e.current_url),window.scrollTo(0,0)}function a(){i=!1}(0,r.default)(document).ready(function(){prestashop.on("updateFacets",function(e){!function(e){if(i);else{var t=[e,e.indexOf("?")>=0?"&":"?","from-xhr"].join("");r.default.get(t,null,null,"json").then(o).fail(a)}}(e)})})},function(e,t,n){"use strict";var r=o(n(0)),i=o(n(1));function o(e){return e&&e.__esModule?e:{default:e}}
/**
 * 2007-2018 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 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/OSL-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/OSL-3.0 Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */(0,r.default)(document).ready(function(){(0,r.default)("body").on("click",".quick-view",function(e){i.default.emit("clickQuickView",{dataset:(0,r.default)(e.target).closest(".js-product-miniature").data()}),e.preventDefault()})})},function(e,t,n){"use strict";var r=a(n(0)),i=a(n(1)),o=n(2);function a(e){return e&&e.__esModule?e:{default:e}}
/**
 * 2007-2018 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 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/OSL-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/OSL-3.0 Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */var s=null,u=null;function l(e,t,n){var a=(0,r.default)(".product-actions"),l=a.find("#quantity_wanted:first"),f=a.find("form:first").serialize(),p=(0,o.psGetRequestParameter)("preview");p=null!==p?"&preview="+p:"",null!==n?e&&"keyup"===e.type&&l.val()===l.data("old-value")||(l.data("old-value",l.val()),u&&clearTimeout(u),u=setTimeout(function(){""!==f&&(s=r.default.ajax({url:n+(-1===n.indexOf("?")?"?":"&")+f+p,method:"POST",data:{ajax:1,action:"refresh",quantity_wanted:l.val()},dataType:"json",beforeSend:function(){null!==s&&s.abort()},error:function(e,t,n){"abort"!==t&&0===(0,r.default)("section#main > .ajax-error").length&&d((0,r.default)("#product-availability"),"An error occurred while processing your request")},success:function(e,n,o){var a=(0,r.default)("<div>").append(e.product_cover_thumbnails);(0,r.default)(".images-container").html()!==a.find(".images-container").html()&&(0,r.default)(".images-container").replaceWith(e.product_cover_thumbnails),(0,r.default)(".product-prices").replaceWith(e.product_prices),(0,r.default)(".product-customization").replaceWith(e.product_customization),(0,r.default)(".product-variants").replaceWith(e.product_variants),(0,r.default)(".product-discounts").replaceWith(e.product_discounts),(0,r.default)(".product-additional-info").replaceWith(e.product_additional_info),(0,r.default)("#product-details").replaceWith(e.product_details),function(e){var t=null;(0,r.default)(e.product_add_to_cart).each(function(e,n){if((0,r.default)(n).hasClass("product-add-to-cart"))return t=(0,r.default)(n),!1}),null===t&&d((0,r.default)("#product-availability"),"An error occurred while processing your request");var n=(0,r.default)(".product-add-to-cart");c({$addToCartSnippet:t,$targetParent:n,targetSelector:".add"}),c({$addToCartSnippet:t,$targetParent:n,targetSelector:"#product-availability"}),c({$addToCartSnippet:t,$targetParent:n,targetSelector:".product-minimal-quantity"})}(e);var s=parseInt(e.product_minimal_quantity,10);isNaN(s)||"updatedProductQuantity"===t||(l.attr("min",s),l.val(s)),i.default.emit("updatedProduct",e)},complete:function(e,t){s=null,u=null}}))}.bind(s,u),1500)):d((0,r.default)("#product-availability"),"An error occurred while processing your request")}function c(e){var t=(0,r.default)(e.$targetParent.find(e.targetSelector));if(!(t.length<=0)){var n=e.$addToCartSnippet.find(e.targetSelector);n.length>0?t.replaceWith(n[0].outerHTML):t.html("")}}function d(e,t){var n=(0,r.default)('<div class="alert alert-danger ajax-error" role="alert">'.concat(t,"</div>"));e.replaceWith(n)}(0,r.default)(document).ready(function(){(0,r.default)("body").on("change touchspin.on.startspin",".product-variants *[name]",function(e){i.default.emit("updateProduct",{eventType:"updatedProductCombination",event:e,resp:{},reason:{productUrl:i.default.urls.pages.product||""}})}),(0,r.default)("body").on("click",".product-refresh",function(e,t){e.preventDefault();var n="updatedProductCombination";void 0!==t&&t.eventType&&(n=t.eventType),i.default.emit("updateProduct",{eventType:n,event:e,resp:{},reason:{productUrl:i.default.urls.pages.product||""}})}),i.default.on("updateProduct",function(e){var t=e.eventType,n=e.event;(function(){var e=r.default.Deferred(),t=(0,r.default)(".product-actions"),n=(0,r.default)("#quantity_wanted");if(null!==i.default&&null!==i.default.urls&&null!==i.default.urls.pages&&""!==i.default.urls.pages.product&&null!==i.default.urls.pages.product)return e.resolve(i.default.urls.pages.product),e.promise();var o={};return(0,r.default)(t.find("form:first").serializeArray()).each(function(e,t){o[t.name]=t.value}),r.default.ajax({url:t.find("form:first").attr("action"),method:"POST",data:Object.assign({ajax:1,action:"productrefresh",quantity_wanted:n.val()},o),dataType:"json",success:function(t){var n=t.productUrl;i.default.page.canonical=n,e.resolve(n)},error:function(t,n,r){e.reject({jqXHR:t,textStatus:n,errorThrown:r})}}),e.promise()})().done(function(e){return l(n,t,e)}).fail(function(){0===(0,r.default)("section#main > .ajax-error").length&&d((0,r.default)("#product-availability"),"An error occurred while processing your request")})}),i.default.on("updatedProduct",function(e){e.product_url&&e.id_product_attribute&&window.history.replaceState({id_product_attribute:e.id_product_attribute},document.title,e.product_url)})})},function(e,t,n){"use strict";var r=o(n(0)),i=o(n(1));function o(e){return e&&e.__esModule?e:{default:e}}(0,r.default)(document).ready(function(){!function(e){(0,r.default)("body").on("change",e.country,function(){var t={id_country:(0,r.default)(e.country).val(),id_address:(0,r.default)(e.address+" form").data("id-address")},n=(0,r.default)(e.address+" form").data("refresh-url"),o=e.address+" input";r.default.post(n,t).then(function(t){var n=[];(0,r.default)(o).each(function(){n[(0,r.default)(this).prop("name")]=(0,r.default)(this).val()}),(0,r.default)(e.address).replaceWith(t.address_form),(0,r.default)(o).each(function(){(0,r.default)(this).val(n[(0,r.default)(this).prop("name")])}),i.default.emit("updatedAddressForm",{target:(0,r.default)(e.address),resp:t})}).fail(function(e){i.default.emit("handleError",{eventType:"updateAddressForm",resp:e})})})}({country:".js-country",address:".js-address-form"})})},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function o(e){return"function"==typeof e}function a(e){return"object"===r(e)&&null!==e}function s(e){return void 0===e}e.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},i.prototype.emit=function(e){var t,n,r,i,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(s(n=this._events[e]))return!1;if(o(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),n.apply(this,i)}else if(a(n))for(i=Array.prototype.slice.call(arguments,1),r=(l=n.slice()).length,u=0;u<r;u++)l[u].apply(this,i);return!0},i.prototype.addListener=function(e,t){var n;if(!o(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,o(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(n=s(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(e,t){if(!o(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},i.prototype.removeListener=function(e,t){var n,r,i,s;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-->0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(o(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},i.prototype.listeners=function(e){return this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[]},i.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},i.listenerCount=function(e,t){return e.listenerCount(t)}}]);!function(t){function e(n){if(i[n])return i[n].exports;var a=i[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var i={};e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=36)}([function(t,e){t.exports=jQuery},function(t,e){t.exports=prestashop},function(t,e,i){"use strict";var n,a,o="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};!function(r){var s=!1;if(n=r,void 0!==(a="function"==typeof n?n.call(e,i,e,t):n)&&(t.exports=a),s=!0,"object"===o(e)&&(t.exports=r(),s=!0),!s){var l=window.Cookies,u=window.Cookies=r();u.noConflict=function(){return window.Cookies=l,u}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var i=arguments[t];for(var n in i)e[n]=i[n]}return e}function e(i){function n(e,a,o){var r;if("undefined"!=typeof document){if(arguments.length>1){if(o=t({path:"/"},n.defaults,o),"number"==typeof o.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}o.expires=o.expires?o.expires.toUTCString():"";try{r=JSON.stringify(a),/^[\{\[]/.test(r)&&(a=r)}catch(t){}a=i.write?i.write(a,e):encodeURIComponent(String(a)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape);var l="";for(var u in o)o[u]&&(l+="; "+u,!0!==o[u]&&(l+="="+o[u]));return document.cookie=e+"="+a+l}e||(r={});for(var d=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,p=0;p<d.length;p++){var f=d[p].split("="),h=f.slice(1).join("=");this.json||'"'!==h.charAt(0)||(h=h.slice(1,-1));try{var m=f[0].replace(c,decodeURIComponent);if(h=i.read?i.read(h,m):i(h,m)||h.replace(c,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch(t){}if(e===m){r=h;break}e||(r[m]=h)}catch(t){}}return r}}return n.set=n,n.get=function(t){return n.call(n,t)},n.getJSON=function(){return n.apply({json:!0},[].slice.call(arguments))},n.defaults={},n.remove=function(e,i){n(e,"",t(i,{expires:-1}))},n.withConverter=e,n}return e(function(){})})},function(t,e,i){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){"use strict";(function(t){var n,a,o="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};!function(t){function e(t){var e=t.length,n=i.type(t);return"function"!==n&&!i.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t))}if(!t.jQuery){var i=function t(e,i){return new t.fn.init(e,i)};i.isWindow=function(t){return t&&t===t.window},i.type=function(t){return t?"object"===(void 0===t?"undefined":o(t))||"function"==typeof t?a[s.call(t)]||"object":void 0===t?"undefined":o(t):t+""},i.isArray=Array.isArray||function(t){return"array"===i.type(t)},i.isPlainObject=function(t){var e;if(!t||"object"!==i.type(t)||t.nodeType||i.isWindow(t))return!1;try{if(t.constructor&&!r.call(t,"constructor")&&!r.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||r.call(t,e)},i.each=function(t,i,n){var a=0,o=t.length,r=e(t);if(n){if(r)for(;a<o&&!1!==i.apply(t[a],n);a++);else for(a in t)if(t.hasOwnProperty(a)&&!1===i.apply(t[a],n))break}else if(r)for(;a<o&&!1!==i.call(t[a],a,t[a]);a++);else for(a in t)if(t.hasOwnProperty(a)&&!1===i.call(t[a],a,t[a]))break;return t},i.data=function(t,e,a){if(void 0===a){var o=t[i.expando],r=o&&n[o];if(void 0===e)return r;if(r&&e in r)return r[e]}else if(void 0!==e){var s=t[i.expando]||(t[i.expando]=++i.uuid);return n[s]=n[s]||{},n[s][e]=a,a}},i.removeData=function(t,e){var a=t[i.expando],o=a&&n[a];o&&(e?i.each(e,function(t,e){delete o[e]}):delete n[a])},i.extend=function(){var t,e,n,a,r,s,l=arguments[0]||{},u=1,d=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[u]||{},u++),"object"!==(void 0===l?"undefined":o(l))&&"function"!==i.type(l)&&(l={}),u===d&&(l=this,u--);u<d;u++)if(r=arguments[u])for(a in r)r.hasOwnProperty(a)&&(t=l[a],n=r[a],l!==n&&(c&&n&&(i.isPlainObject(n)||(e=i.isArray(n)))?(e?(e=!1,s=t&&i.isArray(t)?t:[]):s=t&&i.isPlainObject(t)?t:{},l[a]=i.extend(c,s,n)):void 0!==n&&(l[a]=n)));return l},i.queue=function(t,n,a){if(t){n=(n||"fx")+"queue";var o=i.data(t,n);return a?(!o||i.isArray(a)?o=i.data(t,n,function(t,i){var n=i||[];return t&&(e(Object(t))?function(t,e){for(var i=+e.length,n=0,a=t.length;n<i;)t[a++]=e[n++];if(i!==i)for(;void 0!==e[n];)t[a++]=e[n++];t.length=a}(n,"string"==typeof t?[t]:t):[].push.call(n,t)),n}(a)):o.push(a),o):o||[]}},i.dequeue=function(t,e){i.each(t.nodeType?[t]:t,function(t,n){e=e||"fx";var a=i.queue(n,e),o=a.shift();"inprogress"===o&&(o=a.shift()),o&&("fx"===e&&a.unshift("inprogress"),o.call(n,function(){i.dequeue(n,e)}))})},i.fn=i.prototype={init:function(t){if(t.nodeType)return this[0]=t,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(){var t=this[0],e=function(t){for(var e=t.offsetParent;e&&"html"!==e.nodeName.toLowerCase()&&e.style&&"static"===e.style.position.toLowerCase();)e=e.offsetParent;return e||document}(t),n=this.offset(),a=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:i(e).offset();return n.top-=parseFloat(t.style.marginTop)||0,n.left-=parseFloat(t.style.marginLeft)||0,e.style&&(a.top+=parseFloat(e.style.borderTopWidth)||0,a.left+=parseFloat(e.style.borderLeftWidth)||0),{top:n.top-a.top,left:n.left-a.left}}};var n={};i.expando="velocity"+(new Date).getTime(),i.uuid=0;for(var a={},r=a.hasOwnProperty,s=a.toString,l="Boolean Number String Function Array Date RegExp Object Error".split(" "),u=0;u<l.length;u++)a["[object "+l[u]+"]"]=l[u].toLowerCase();i.fn.init.prototype=i.fn,t.Velocity={Utilities:i}}}(window),function(r){"object"===o(t)&&"object"===o(t.exports)?t.exports=r():(n=r,void 0!==(a="function"==typeof n?n.call(e,i,e,t):n)&&(t.exports=a))}(function(){return function(t,e,i,n){function a(t){for(var e=-1,i=t?t.length:0,n=[];++e<i;){var a=t[e];a&&n.push(a)}return n}function o(t){return b.isWrapped(t)?t=y.call(t):b.isNode(t)&&(t=[t]),t}function r(t){var e=h.data(t,"velocity");return null===e?n:e}function s(t,e){var i=r(t);i&&i.delayTimer&&!i.delayPaused&&(i.delayRemaining=i.delay-e+i.delayBegin,i.delayPaused=!0,clearTimeout(i.delayTimer.setTimeout))}function l(t,e){var i=r(t);i&&i.delayTimer&&i.delayPaused&&(i.delayPaused=!1,i.delayTimer.setTimeout=setTimeout(i.delayTimer.next,i.delayRemaining))}function u(t){return function(e){return Math.round(e*t)*(1/t)}}function d(t,i,n,a){function o(t,e){return 1-3*e+3*t}function r(t,e){return 3*e-6*t}function s(t){return 3*t}function l(t,e,i){return((o(e,i)*t+r(e,i))*t+s(e))*t}function u(t,e,i){return 3*o(e,i)*t*t+2*r(e,i)*t+s(e)}function d(e,i){for(var a=0;a<m;++a){var o=u(i,t,n);if(0===o)return i;i-=(l(i,t,n)-e)/o}return i}function c(){for(var e=0;e<w;++e)x[e]=l(e*b,t,n)}function p(e,i,a){var o,r,s=0;do{r=i+(a-i)/2,o=l(r,t,n)-e,o>0?a=r:i=r}while(Math.abs(o)>v&&++s<y);return r}function f(e){for(var i=0,a=1,o=w-1;a!==o&&x[a]<=e;++a)i+=b;--a;var r=(e-x[a])/(x[a+1]-x[a]),s=i+r*b,l=u(s,t,n);return l>=g?d(e,s):0===l?s:p(e,i,i+b)}function h(){T=!0,t===i&&n===a||c()}var m=4,g=.001,v=1e-7,y=10,w=11,b=1/(w-1),_="Float32Array"in e;if(4!==arguments.length)return!1;for(var C=0;C<4;++C)if("number"!=typeof arguments[C]||isNaN(arguments[C])||!isFinite(arguments[C]))return!1;t=Math.min(t,1),n=Math.min(n,1),t=Math.max(t,0),n=Math.max(n,0);var x=_?new Float32Array(w):new Array(w),T=!1,S=function(e){return T||h(),t===i&&n===a?e:0===e?0:1===e?1:l(f(e),i,a)};S.getControlPoints=function(){return[{x:t,y:i},{x:n,y:a}]};var E="generateBezier("+[t,i,n,a]+")";return S.toString=function(){return E},S}function c(t,e){var i=t;return b.isString(t)?T.Easings[t]||(i=!1):i=b.isArray(t)&&1===t.length?u.apply(null,t):b.isArray(t)&&2===t.length?S.apply(null,t.concat([e])):!(!b.isArray(t)||4!==t.length)&&d.apply(null,t),!1===i&&(i=T.Easings[T.defaults.easing]?T.defaults.easing:x),i}function p(t){if(t){var e=T.timestamp&&!0!==t?t:v.now(),i=T.State.calls.length;i>1e4&&(T.State.calls=a(T.State.calls),i=T.State.calls.length);for(var o=0;o<i;o++)if(T.State.calls[o]){var s=T.State.calls[o],l=s[0],u=s[2],d=s[3],c=!d,g=null,y=s[5],w=s[6];if(d||(d=T.State.calls[o][3]=e-16),y){if(!0!==y.resume)continue;d=s[3]=Math.round(e-w-16),s[5]=null}w=s[6]=e-d;for(var _=Math.min(w/u.duration,1),C=0,x=l.length;C<x;C++){var S=l[C],k=S.element;if(r(k)){var A=!1;if(u.display!==n&&null!==u.display&&"none"!==u.display){if("flex"===u.display){var P=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];h.each(P,function(t,e){E.setPropertyValue(k,"display",e)})}E.setPropertyValue(k,"display",u.display)}u.visibility!==n&&"hidden"!==u.visibility&&E.setPropertyValue(k,"visibility",u.visibility);for(var O in S)if(S.hasOwnProperty(O)&&"element"!==O){var D,z=S[O],M=b.isString(z.easing)?T.Easings[z.easing]:z.easing;if(b.isString(z.pattern)){var L=1===_?function(t,e,i){var n=z.endValue[e];return i?Math.round(n):n}:function(t,e,i){var n=z.startValue[e],a=z.endValue[e]-n,o=n+a*M(_,u,a);return i?Math.round(o):o};D=z.pattern.replace(/{(\d+)(!)?}/g,L)}else if(1===_)D=z.endValue;else{var N=z.endValue-z.startValue;D=z.startValue+N*M(_,u,N)}if(!c&&D===z.currentValue)continue;if(z.currentValue=D,"tween"===O)g=D;else{var H;if(E.Hooks.registered[O]){H=E.Hooks.getRoot(O);var B=r(k).rootPropertyValueCache[H];B&&(z.rootPropertyValue=B)}var j=E.setPropertyValue(k,O,z.currentValue+(m<9&&0===parseFloat(D)?"":z.unitType),z.rootPropertyValue,z.scrollData);E.Hooks.registered[O]&&(E.Normalizations.registered[H]?r(k).rootPropertyValueCache[H]=E.Normalizations.registered[H]("extract",null,j[1]):r(k).rootPropertyValueCache[H]=j[1]),"transform"===j[0]&&(A=!0)}}u.mobileHA&&r(k).transformCache.translate3d===n&&(r(k).transformCache.translate3d="(0px, 0px, 0px)",A=!0),A&&E.flushTransformCache(k)}}u.display!==n&&"none"!==u.display&&(T.State.calls[o][2].display=!1),u.visibility!==n&&"hidden"!==u.visibility&&(T.State.calls[o][2].visibility=!1),u.progress&&u.progress.call(s[1],s[1],_,Math.max(0,d+u.duration-e),d,g),1===_&&f(o)}}T.State.isTicking&&I(p)}function f(t,e){if(!T.State.calls[t])return!1;for(var i=T.State.calls[t][0],a=T.State.calls[t][1],o=T.State.calls[t][2],s=T.State.calls[t][4],l=!1,u=0,d=i.length;u<d;u++){var c=i[u].element;e||o.loop||("none"===o.display&&E.setPropertyValue(c,"display",o.display),"hidden"===o.visibility&&E.setPropertyValue(c,"visibility",o.visibility));var p=r(c);if(!0!==o.loop&&(h.queue(c)[1]===n||!/\.velocityQueueEntryFlag/i.test(h.queue(c)[1]))&&p){p.isAnimating=!1,p.rootPropertyValueCache={};var f=!1;h.each(E.Lists.transforms3D,function(t,e){var i=/^scale/.test(e)?1:0,a=p.transformCache[e];p.transformCache[e]!==n&&new RegExp("^\\("+i+"[^.]").test(a)&&(f=!0,delete p.transformCache[e])}),o.mobileHA&&(f=!0,delete p.transformCache.translate3d),f&&E.flushTransformCache(c),E.Values.removeClass(c,"velocity-animating")}if(!e&&o.complete&&!o.loop&&u===d-1)try{o.complete.call(a,a)}catch(t){setTimeout(function(){throw t},1)}s&&!0!==o.loop&&s(a),p&&!0===o.loop&&!e&&(h.each(p.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}/^backgroundPosition/.test(t)&&100===parseFloat(e.endValue)&&"%"===e.unitType&&(e.endValue=0,e.startValue=100)}),T(c,"reverse",{loop:!0,delay:o.delay})),!1!==o.queue&&h.dequeue(c,o.queue)}T.State.calls[t]=!1;for(var m=0,g=T.State.calls.length;m<g;m++)if(!1!==T.State.calls[m]){l=!0;break}!1===l&&(T.State.isTicking=!1,delete T.State.calls,T.State.calls=[])}var h,m=function(){if(i.documentMode)return i.documentMode;for(var t=7;t>4;t--){var e=i.createElement("div");if(e.innerHTML="\x3c!--[if IE "+t+"]><span></span><![endif]--\x3e",e.getElementsByTagName("span").length)return e=null,t}return n}(),g=function(){var t=0;return e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||function(e){var i,n=(new Date).getTime();return i=Math.max(0,16-(n-t)),t=n+i,setTimeout(function(){e(n+i)},i)}}(),v=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}(),y=function(){var t=Array.prototype.slice;try{return t.call(i.documentElement),t}catch(e){return function(e,i){var n=this.length;if("number"!=typeof e&&(e=0),"number"!=typeof i&&(i=n),this.slice)return t.call(this,e,i);var a,o=[],r=e>=0?e:Math.max(0,n+e),s=i<0?n+i:Math.min(i,n),l=s-r;if(l>0)if(o=new Array(l),this.charAt)for(a=0;a<l;a++)o[a]=this.charAt(r+a);else for(a=0;a<l;a++)o[a]=this[r+a];return o}}}(),w=function(){return Array.prototype.includes?function(t,e){return t.includes(e)}:Array.prototype.indexOf?function(t,e){return t.indexOf(e)>=0}:function(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return!0;return!1}},b={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&&b.isNumber(t.length)&&!b.isString(t)&&!b.isFunction(t)&&!b.isNode(t)&&(0===t.length||b.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!1;return!0}},_=!1;if(t.fn&&t.fn.jquery?(h=t,_=!0):h=e.Velocity.Utilities,m<=8&&!_)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(m<=7)return void(jQuery.fn.velocity=jQuery.fn.animate);var C=400,x="swing",T={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:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:h,Redirects:{},Easings:{},Promise:e.Promise,defaults:{queue:"",duration:C,easing:x,begin:n,complete:n,progress:n,display:n,visibility:n,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(t){h.data(t,"velocity",{isSVG:b.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:1},debug:!1,timestamp:!0,pauseAll:function(t){var e=(new Date).getTime();h.each(T.State.calls,function(e,i){if(i){if(t!==n&&(i[2].queue!==t||!1===i[2].queue))return!0;i[5]={resume:!1}}}),h.each(T.State.delayedElements,function(t,i){i&&s(i,e)})},resumeAll:function(t){var e=(new Date).getTime();h.each(T.State.calls,function(e,i){if(i){if(t!==n&&(i[2].queue!==t||!1===i[2].queue))return!0;i[5]&&(i[5].resume=!0)}}),h.each(T.State.delayedElements,function(t,i){i&&l(i,e)})}};e.pageYOffset!==n?(T.State.scrollAnchor=e,T.State.scrollPropertyLeft="pageXOffset",T.State.scrollPropertyTop="pageYOffset"):(T.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body,T.State.scrollPropertyLeft="scrollLeft",T.State.scrollPropertyTop="scrollTop");var S=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,i,n){var a={x:e.x+n.dx*i,v:e.v+n.dv*i,tension:e.tension,friction:e.friction};return{dx:a.v,dv:t(a)}}function i(i,n){var a={dx:i.v,dv:t(i)},o=e(i,.5*n,a),r=e(i,.5*n,o),s=e(i,n,r),l=1/6*(a.dx+2*(o.dx+r.dx)+s.dx),u=1/6*(a.dv+2*(o.dv+r.dv)+s.dv);return i.x=i.x+l*n,i.v=i.v+u*n,i}return function t(e,n,a){var o,r,s,l={x:-1,v:0,tension:null,friction:null},u=[0],d=0;for(e=parseFloat(e)||500,n=parseFloat(n)||20,a=a||null,l.tension=e,l.friction=n,o=null!==a,o?(d=t(e,n),r=d/a*.016):r=.016;;)if(s=i(s||l,r),u.push(1+s.x),d+=16,!(Math.abs(s.x)>1e-4&&Math.abs(s.v)>1e-4))break;return o?function(t){return u[t*(u.length-1)|0]}:d}}();T.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)}},h.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){T.Easings[e[0]]=d.apply(null,e[1])});var E=T.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],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<E.Lists.colors.length;t++){var e="color"===E.Lists.colors[t]?"0 0 0 1":"255 255 255 1";E.Hooks.templates[E.Lists.colors[t]]=["Red Green Blue Alpha",e]}var i,n,a;if(m)for(i in E.Hooks.templates)if(E.Hooks.templates.hasOwnProperty(i)){n=E.Hooks.templates[i],a=n[0].split(" ");var o=n[1].match(E.RegEx.valueSplit);"Color"===a[0]&&(a.push(a.shift()),o.push(o.shift()),E.Hooks.templates[i]=[a.join(" "),o.join(" ")])}for(i in E.Hooks.templates)if(E.Hooks.templates.hasOwnProperty(i)){n=E.Hooks.templates[i],a=n[0].split(" ");for(var r in a)if(a.hasOwnProperty(r)){var s=i+a[r],l=r;E.Hooks.registered[s]=[i,l]}}},getRoot:function(t){var e=E.Hooks.registered[t];return e?e[0]:t},getUnit:function(t,e){var i=(t.substr(e||0,5).match(/^[a-z%]+/)||[])[0]||"";return i&&w(E.Lists.units,i)?i:""},fixColors:function(t){return t.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function(t,e,i){return E.Lists.colorNames.hasOwnProperty(i)?(e||"rgba(")+E.Lists.colorNames[i]+(e?"":",1)"):e+i})},cleanRootPropertyValue:function(t,e){return E.RegEx.valueUnwrap.test(e)&&(e=e.match(E.RegEx.valueUnwrap)[1]),E.Values.isCSSNullValue(e)&&(e=E.Hooks.templates[t][1]),e},extractValue:function(t,e){var i=E.Hooks.registered[t];if(i){var n=i[0],a=i[1];return e=E.Hooks.cleanRootPropertyValue(n,e),e.toString().match(E.RegEx.valueSplit)[a]}return e},injectValue:function(t,e,i){var n=E.Hooks.registered[t];if(n){var a,o=n[0],r=n[1];return i=E.Hooks.cleanRootPropertyValue(o,i),a=i.toString().match(E.RegEx.valueSplit),a[r]=e,a.join(" ")}return i}},Normalizations:{registered:{clip:function(t,e,i){switch(t){case"name":return"clip";case"extract":var n;return E.RegEx.wrappedValueAlreadyExtracted.test(i)?n=i:(n=i.toString().match(E.RegEx.valueUnwrap),n=n?n[1].replace(/,(\s+)?/g," "):i),n;case"inject":return"rect("+i+")"}},blur:function(t,e,i){switch(t){case"name":return T.State.isFirefox?"filter":"-webkit-filter";case"extract":var n=parseFloat(i);if(!n&&0!==n){var a=i.toString().match(/blur\(([0-9]+[A-z]+)\)/i);n=a?a[1]:0}return n;case"inject":return parseFloat(i)?"blur("+i+")":"none"}},opacity:function(t,e,i){if(m<=8)switch(t){case"name":return"filter";case"extract":var n=i.toString().match(/alpha\(opacity=(.*)\)/i);return i=n?n[1]/100:1;case"inject":return e.style.zoom=1,parseFloat(i)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(i),10)+")"}else switch(t){case"name":return"opacity";case"extract":case"inject":return i}}},register:function(){function t(t,e,i){if("border-box"===E.getPropertyValue(e,"boxSizing").toString().toLowerCase()===(i||!1)){var n,a,o=0,r="width"===t?["Left","Right"]:["Top","Bottom"],s=["padding"+r[0],"padding"+r[1],"border"+r[0]+"Width","border"+r[1]+"Width"];for(n=0;n<s.length;n++)a=parseFloat(E.getPropertyValue(e,s[n])),isNaN(a)||(o+=a);return i?-o:o}return 0}function e(e,i){return function(n,a,o){switch(n){case"name":return e;case"extract":return parseFloat(o)+t(e,a,i);case"inject":return parseFloat(o)-t(e,a,i)+"px"}}}m&&!(m>9)||T.State.isGingerbread||(E.Lists.transformsBase=E.Lists.transformsBase.concat(E.Lists.transforms3D));for(var i=0;i<E.Lists.transformsBase.length;i++)!function(){var t=E.Lists.transformsBase[i];E.Normalizations.registered[t]=function(e,i,a){switch(e){case"name":return"transform";case"extract":return r(i)===n||r(i).transformCache[t]===n?/^scale/i.test(t)?1:0:r(i).transformCache[t].replace(/[()]/g,"");case"inject":var o=!1;switch(t.substr(0,t.length-1)){case"translate":o=!/(%|px|em|rem|vw|vh|\d)$/i.test(a);break;case"scal":case"scale":T.State.isAndroid&&r(i).transformCache[t]===n&&a<1&&(a=1),o=!/(\d)$/i.test(a);break;case"skew":case"rotate":o=!/(deg|\d)$/i.test(a)}return o||(r(i).transformCache[t]="("+a+")"),r(i).transformCache[t]}}}();for(var a=0;a<E.Lists.colors.length;a++)!function(){var t=E.Lists.colors[a];E.Normalizations.registered[t]=function(e,i,a){switch(e){case"name":return t;case"extract":var o;if(E.RegEx.wrappedValueAlreadyExtracted.test(a))o=a;else{var r,s={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(a)?r=s[a]!==n?s[a]:s.black:E.RegEx.isHex.test(a)?r="rgb("+E.Values.hexToRgb(a).join(" ")+")":/^rgba?\(/i.test(a)||(r=s.black),o=(r||a).toString().match(E.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return(!m||m>8)&&3===o.split(" ").length&&(o+=" 1"),o;case"inject":return/^rgb/.test(a)?a:(m<=8?4===a.split(" ").length&&(a=a.split(/\s+/).slice(0,3).join(" ")):3===a.split(" ").length&&(a+=" 1"),(m<=8?"rgb":"rgba")+"("+a.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();E.Normalizations.registered.innerWidth=e("width",!0),E.Normalizations.registered.innerHeight=e("height",!0),E.Normalizations.registered.outerWidth=e("width"),E.Normalizations.registered.outerHeight=e("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";return(m||T.State.isAndroid&&!T.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(T.State.prefixMatches[t])return[T.State.prefixMatches[t],!0];for(var e=["","Webkit","Moz","ms","O"],i=0,n=e.length;i<n;i++){var a;if(a=0===i?t:e[i]+t.replace(/^\w/,function(t){return t.toUpperCase()}),b.isString(T.State.prefixElement.style[a]))return T.State.prefixMatches[t]=a,[a,!0]}return[t,!1]}},Values:{hexToRgb:function(t){var e,i=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return t=t.replace(i,function(t,e,i,n){return e+e+i+i+n+n}),e=n.exec(t),e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[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(b.isString(t.className))t.className+=(t.className.length?" ":"")+e;else{var i=t.getAttribute(m<=7?"className":"class")||"";t.setAttribute("class",i+(i?" ":"")+e)}},removeClass:function(t,e){if(t)if(t.classList)t.classList.remove(e);else if(b.isString(t.className))t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," ");else{var i=t.getAttribute(m<=7?"className":"class")||"";t.setAttribute("class",i.replace(new RegExp("(^|s)"+e.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(t,i,a,o){function s(t,i){var a=0;if(m<=8)a=h.css(t,i);else{var l=!1;/^(width|height)$/.test(i)&&0===E.getPropertyValue(t,"display")&&(l=!0,E.setPropertyValue(t,"display",E.Values.getDisplayType(t)));var u=function(){l&&E.setPropertyValue(t,"display","none")};if(!o){if("height"===i&&"border-box"!==E.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var d=t.offsetHeight-(parseFloat(E.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(E.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(E.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(E.getPropertyValue(t,"paddingBottom"))||0);return u(),d}if("width"===i&&"border-box"!==E.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var c=t.offsetWidth-(parseFloat(E.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(E.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(E.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(E.getPropertyValue(t,"paddingRight"))||0);return u(),c}}var p;p=r(t)===n?e.getComputedStyle(t,null):r(t).computedStyle?r(t).computedStyle:r(t).computedStyle=e.getComputedStyle(t,null),"borderColor"===i&&(i="borderTopColor"),a=9===m&&"filter"===i?p.getPropertyValue(i):p[i],""!==a&&null!==a||(a=t.style[i]),u()}if("auto"===a&&/^(top|right|bottom|left)$/i.test(i)){var f=s(t,"position");("fixed"===f||"absolute"===f&&/top|left/i.test(i))&&(a=h(t).position()[i]+"px")}return a}var l;if(E.Hooks.registered[i]){var u=i,d=E.Hooks.getRoot(u);a===n&&(a=E.getPropertyValue(t,E.Names.prefixCheck(d)[0])),E.Normalizations.registered[d]&&(a=E.Normalizations.registered[d]("extract",t,a)),l=E.Hooks.extractValue(u,a)}else if(E.Normalizations.registered[i]){var c,p;c=E.Normalizations.registered[i]("name",t),"transform"!==c&&(p=s(t,E.Names.prefixCheck(c)[0]),E.Values.isCSSNullValue(p)&&E.Hooks.templates[i]&&(p=E.Hooks.templates[i][1])),l=E.Normalizations.registered[i]("extract",t,p)}if(!/^[\d-]/.test(l)){var f=r(t);if(f&&f.isSVG&&E.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=s(t,E.Names.prefixCheck(i)[0])}return E.Values.isCSSNullValue(l)&&(l=0),T.debug,l},setPropertyValue:function(t,i,n,a,o){var s=i;if("scroll"===i)o.container?o.container["scroll"+o.direction]=n:"Left"===o.direction?e.scrollTo(n,o.alternateValue):e.scrollTo(o.alternateValue,n);else if(E.Normalizations.registered[i]&&"transform"===E.Normalizations.registered[i]("name",t))E.Normalizations.registered[i]("inject",t,n),s="transform",n=r(t).transformCache[i];else{if(E.Hooks.registered[i]){var l=i,u=E.Hooks.getRoot(i);a=a||E.getPropertyValue(t,u),n=E.Hooks.injectValue(l,n,a),i=u}if(E.Normalizations.registered[i]&&(n=E.Normalizations.registered[i]("inject",t,n),i=E.Normalizations.registered[i]("name",t)),s=E.Names.prefixCheck(i)[0],m<=8)try{t.style[s]=n}catch(t){T.debug}else{var d=r(t);d&&d.isSVG&&E.Names.SVGAttribute(i)?t.setAttribute(i,n):t.style[s]=n}T.debug}return[s,n]},flushTransformCache:function(t){var e="",i=r(t);if((m||T.State.isAndroid&&!T.State.isChrome)&&i&&i.isSVG){var n=function(e){return parseFloat(E.getPropertyValue(t,e))},a={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]};h.each(r(t).transformCache,function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),a[t]&&(e+=t+"("+a[t].join(" ")+") ",delete a[t])})}else{var o,s;h.each(r(t).transformCache,function(i){if(o=r(t).transformCache[i],"transformPerspective"===i)return s=o,!0;9===m&&"rotateZ"===i&&(i="rotate"),e+=i+o+" "}),s&&(e="perspective"+s+" "+e)}E.setPropertyValue(t,"transform",e)}};E.Hooks.register(),E.Normalizations.register(),T.hook=function(t,e,i){var a;return t=o(t),h.each(t,function(t,o){if(r(o)===n&&T.init(o),i===n)a===n&&(a=E.getPropertyValue(o,e));else{var s=E.setPropertyValue(o,e,i);"transform"===s[0]&&T.CSS.flushTransformCache(o),a=s}}),a};var k=function t(){function a(){return m?k.promise||null:g}function u(t,a){function o(o){var d,f;if(l.begin&&0===A)try{l.begin.call(y,y)}catch(t){setTimeout(function(){throw t},1)}if("scroll"===D){var m,g,v,C=/^x$/i.test(l.axis)?"Left":"Top",S=parseFloat(l.offset)||0;l.container?b.isWrapped(l.container)||b.isNode(l.container)?(l.container=l.container[0]||l.container,m=l.container["scroll"+C],v=m+h(t).position()[C.toLowerCase()]+S):l.container=null:(m=T.State.scrollAnchor[T.State["scrollProperty"+C]],g=T.State.scrollAnchor[T.State["scrollProperty"+("Left"===C?"Top":"Left")]],v=h(t).offset()[C.toLowerCase()]+S),u={scroll:{rootPropertyValue:!1,startValue:m,currentValue:m,endValue:v,unitType:"",easing:l.easing,scrollData:{container:l.container,direction:C,alternateValue:g}},element:t},T.debug}else if("reverse"===D){if(!(d=r(t)))return;if(!d.tweensContainer)return void h.dequeue(t,l.queue);"none"===d.opts.display&&(d.opts.display="auto"),"hidden"===d.opts.visibility&&(d.opts.visibility="visible"),d.opts.loop=!1,d.opts.begin=null,d.opts.complete=null,x.easing||delete l.easing,x.duration||delete l.duration,l=h.extend({},d.opts,l),f=h.extend(!0,{},d?d.tweensContainer:null);for(var P in f)if(f.hasOwnProperty(P)&&"element"!==P){var O=f[P].startValue;f[P].startValue=f[P].currentValue=f[P].endValue,f[P].endValue=O,b.isEmptyObject(x)||(f[P].easing=l.easing),T.debug}u=f}else if("start"===D){d=r(t),d&&d.tweensContainer&&!0===d.isAnimating&&(f=d.tweensContainer);var z=function(a,o){var r,c=E.Hooks.getRoot(a),p=!1,m=o[0],g=o[1],v=o[2];if(!(d&&d.isSVG||"tween"===c||!1!==E.Names.prefixCheck(c)[1]||E.Normalizations.registered[c]!==n))return void T.debug;(l.display!==n&&null!==l.display&&"none"!==l.display||l.visibility!==n&&"hidden"!==l.visibility)&&/opacity|filter/.test(a)&&!v&&0!==m&&(v=0),l._cacheValues&&f&&f[a]?(v===n&&(v=f[a].endValue+f[a].unitType),p=d.rootPropertyValueCache[c]):E.Hooks.registered[a]?v===n?(p=E.getPropertyValue(t,c),v=E.getPropertyValue(t,a,p)):p=E.Hooks.templates[c][1]:v===n&&(v=E.getPropertyValue(t,a));var y,w,_,C=!1,x=function(t,e){var i,n;return n=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return i=t,""}),i||(i=E.Values.getUnitType(t)),[n,i]};if(v!==m&&b.isString(v)&&b.isString(m)){r="";var S=0,k=0,I=[],A=[],P=0,O=0,D=0;for(v=E.Hooks.fixColors(v),m=E.Hooks.fixColors(m);S<v.length&&k<m.length;){var z=v[S],M=m[k];if(/[\d\.-]/.test(z)&&/[\d\.-]/.test(M)){for(var L=z,N=M,H=".",j=".";++S<v.length;){if((z=v[S])===H)H="..";else if(!/\d/.test(z))break;L+=z}for(;++k<m.length;){if((M=m[k])===j)j="..";else if(!/\d/.test(M))break;N+=M}var W=E.Hooks.getUnit(v,S),F=E.Hooks.getUnit(m,k);if(S+=W.length,k+=F.length,W===F)L===N?r+=L+W:(r+="{"+I.length+(O?"!":"")+"}"+W,I.push(parseFloat(L)),A.push(parseFloat(N)));else{var R=parseFloat(L),V=parseFloat(N);r+=(P<5?"calc":"")+"("+(R?"{"+I.length+(O?"!":"")+"}":"0")+W+" + "+(V?"{"+(I.length+(R?1:0))+(O?"!":"")+"}":"0")+F+")",R&&(I.push(R),A.push(0)),V&&(I.push(0),A.push(V))}}else{if(z!==M){P=0;break}r+=z,S++,k++,0===P&&"c"===z||1===P&&"a"===z||2===P&&"l"===z||3===P&&"c"===z||P>=4&&"("===z?P++:(P&&P<5||P>=4&&")"===z&&--P<5)&&(P=0),0===O&&"r"===z||1===O&&"g"===z||2===O&&"b"===z||3===O&&"a"===z||O>=3&&"("===z?(3===O&&"a"===z&&(D=1),O++):D&&","===z?++D>3&&(O=D=0):(D&&O<(D?5:4)||O>=(D?4:3)&&")"===z&&--O<(D?5:4))&&(O=D=0)}}S===v.length&&k===m.length||(T.debug,r=n),r&&(I.length?(T.debug,v=I,m=A,w=_=""):r=n)}r||(y=x(a,v),v=y[0],_=y[1],y=x(a,m),m=y[0].replace(/^([+-\/*])=/,function(t,e){return C=e,""}),w=y[1],v=parseFloat(v)||0,m=parseFloat(m)||0,"%"===w&&(/^(fontSize|lineHeight)$/.test(a)?(m/=100,w="em"):/^scale/.test(a)?(m/=100,w=""):/(Red|Green|Blue)$/i.test(a)&&(m=m/100*255,w="")));if(/[\/*]/.test(C))w=_;else if(_!==w&&0!==v)if(0===m)w=_;else{s=s||function(){var n={myParent:t.parentNode||i.body,position:E.getPropertyValue(t,"position"),fontSize:E.getPropertyValue(t,"fontSize")},a=n.position===B.lastPosition&&n.myParent===B.lastParent,o=n.fontSize===B.lastFontSize;B.lastParent=n.myParent,B.lastPosition=n.position,B.lastFontSize=n.fontSize;var r={};if(o&&a)r.emToPx=B.lastEmToPx,r.percentToPxWidth=B.lastPercentToPxWidth,r.percentToPxHeight=B.lastPercentToPxHeight;else{var s=d&&d.isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div");T.init(s),n.myParent.appendChild(s),h.each(["overflow","overflowX","overflowY"],function(t,e){T.CSS.setPropertyValue(s,e,"hidden")}),T.CSS.setPropertyValue(s,"position",n.position),T.CSS.setPropertyValue(s,"fontSize",n.fontSize),T.CSS.setPropertyValue(s,"boxSizing","content-box"),h.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){T.CSS.setPropertyValue(s,e,"100%")}),T.CSS.setPropertyValue(s,"paddingLeft","100em"),r.percentToPxWidth=B.lastPercentToPxWidth=(parseFloat(E.getPropertyValue(s,"width",null,!0))||1)/100,r.percentToPxHeight=B.lastPercentToPxHeight=(parseFloat(E.getPropertyValue(s,"height",null,!0))||1)/100,r.emToPx=B.lastEmToPx=(parseFloat(E.getPropertyValue(s,"paddingLeft"))||1)/100,n.myParent.removeChild(s)}return null===B.remToPx&&(B.remToPx=parseFloat(E.getPropertyValue(i.body,"fontSize"))||16),null===B.vwToPx&&(B.vwToPx=parseFloat(e.innerWidth)/100,B.vhToPx=parseFloat(e.innerHeight)/100),r.remToPx=B.remToPx,r.vwToPx=B.vwToPx,r.vhToPx=B.vhToPx,T.debug,r}();var $=/margin|padding|left|right|width|text|word|letter/i.test(a)||/X$/.test(a)||"x"===a?"x":"y";switch(_){case"%":v*="x"===$?s.percentToPxWidth:s.percentToPxHeight;break;case"px":break;default:v*=s[_+"ToPx"]}switch(w){case"%":v*=1/("x"===$?s.percentToPxWidth:s.percentToPxHeight);break;case"px":break;default:v*=1/s[w+"ToPx"]}}switch(C){case"+":m=v+m;break;case"-":m=v-m;break;case"*":m*=v;break;case"/":m=v/m}u[a]={rootPropertyValue:p,startValue:v,currentValue:v,endValue:m,unitType:w,easing:g},r&&(u[a].pattern=r),T.debug};for(var M in _)if(_.hasOwnProperty(M)){var L=E.Names.camelCase(M),N=function(e,i){var n,o,r;return b.isFunction(e)&&(e=e.call(t,a,I)),b.isArray(e)?(n=e[0],!b.isArray(e[1])&&/^[\d-]/.test(e[1])||b.isFunction(e[1])||E.RegEx.isHex.test(e[1])?r=e[1]:b.isString(e[1])&&!E.RegEx.isHex.test(e[1])&&T.Easings[e[1]]||b.isArray(e[1])?(o=i?e[1]:c(e[1],l.duration),r=e[2]):r=e[1]||e[2]):n=e,i||(o=o||l.easing),b.isFunction(n)&&(n=n.call(t,a,I)),b.isFunction(r)&&(r=r.call(t,a,I)),[n||0,o,r]}(_[M]);if(w(E.Lists.colors,L)){var H=N[0],W=N[1],F=N[2];if(E.RegEx.isHex.test(H)){for(var R=["Red","Green","Blue"],V=E.Values.hexToRgb(H),$=F?E.Values.hexToRgb(F):n,q=0;q<R.length;q++){var G=[V[q]];W&&G.push(W),$!==n&&G.push($[q]),z(L+R[q],G)}continue}}z(L,N)}u.element=t}u.element&&(E.Values.addClass(t,"velocity-animating"),j.push(u),d=r(t),d&&(""===l.queue&&(d.tweensContainer=u,d.opts=l),d.isAnimating=!0),A===I-1?(T.State.calls.push([j,y,l,null,k.resolver,null,0]),!1===T.State.isTicking&&(T.State.isTicking=!0,p())):A++)}var s,l=h.extend({},T.defaults,x),u={};switch(r(t)===n&&T.init(t),parseFloat(l.delay)&&!1!==l.queue&&h.queue(t,l.queue,function(e,i){if(!0===i)return!0;T.velocityQueueEntryFlag=!0;var n=T.State.delayedElements.count++;T.State.delayedElements[n]=t;var a=function(t){return function(){T.State.delayedElements[t]=!1,e()}}(n);r(t).delayBegin=(new Date).getTime(),r(t).delay=parseFloat(l.delay),r(t).delayTimer={setTimeout:setTimeout(e,parseFloat(l.delay)),next:a}}),l.duration.toString().toLowerCase()){case"fast":l.duration=200;break;case"normal":l.duration=C;break;case"slow":l.duration=600;break;default:l.duration=parseFloat(l.duration)||1}if(!1!==T.mock&&(!0===T.mock?l.duration=l.delay=1:(l.duration*=parseFloat(T.mock)||1,l.delay*=parseFloat(T.mock)||1)),l.easing=c(l.easing,l.duration),l.begin&&!b.isFunction(l.begin)&&(l.begin=null),l.progress&&!b.isFunction(l.progress)&&(l.progress=null),l.complete&&!b.isFunction(l.complete)&&(l.complete=null),l.display!==n&&null!==l.display&&(l.display=l.display.toString().toLowerCase(),"auto"===l.display&&(l.display=T.CSS.Values.getDisplayType(t))),l.visibility!==n&&null!==l.visibility&&(l.visibility=l.visibility.toString().toLowerCase()),l.mobileHA=l.mobileHA&&T.State.isMobile&&!T.State.isGingerbread,!1===l.queue)if(l.delay){var d=T.State.delayedElements.count++;T.State.delayedElements[d]=t;var f=function(t){return function(){T.State.delayedElements[t]=!1,o()}}(d);r(t).delayBegin=(new Date).getTime(),r(t).delay=parseFloat(l.delay),r(t).delayTimer={setTimeout:setTimeout(o,parseFloat(l.delay)),next:f}}else o();else h.queue(t,l.queue,function(t,e){if(!0===e)return k.promise&&k.resolver(y),!0;T.velocityQueueEntryFlag=!0,o(t)});""!==l.queue&&"fx"!==l.queue||"inprogress"===h.queue(t)[0]||h.dequeue(t)}var d,m,g,v,y,_,x,S=arguments[0]&&(arguments[0].p||h.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||b.isString(arguments[0].properties));b.isWrapped(this)?(m=!1,v=0,y=this,g=this):(m=!0,v=1,y=S?arguments[0].elements||arguments[0].e:arguments[0]);var k={promise:null,resolver:null,rejecter:null};if(m&&T.Promise&&(k.promise=new T.Promise(function(t,e){k.resolver=t,k.rejecter=e})),S?(_=arguments[0].properties||arguments[0].p,x=arguments[0].options||arguments[0].o):(_=arguments[v],x=arguments[v+1]),!(y=o(y)))return void(k.promise&&(_&&x&&!1===x.promiseRejectEmpty?k.resolver():k.rejecter()));var I=y.length,A=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(_)&&!h.isPlainObject(x)){var P=v+1;x={};for(var O=P;O<arguments.length;O++)b.isArray(arguments[O])||!/^(fast|normal|slow)$/i.test(arguments[O])&&!/^\d/.test(arguments[O])?b.isString(arguments[O])||b.isArray(arguments[O])?x.easing=arguments[O]:b.isFunction(arguments[O])&&(x.complete=arguments[O]):x.duration=arguments[O]}var D;switch(_){case"scroll":D="scroll";break;case"reverse":D="reverse";break;case"pause":var z=(new Date).getTime();return h.each(y,function(t,e){s(e,z)}),h.each(T.State.calls,function(t,e){var i=!1;e&&h.each(e[1],function(t,a){var o=x===n?"":x;return!0!==o&&e[2].queue!==o&&(x!==n||!1!==e[2].queue)||(h.each(y,function(t,n){if(n===a)return e[5]={resume:!1},i=!0,!1}),!i&&void 0)})}),a();case"resume":return h.each(y,function(t,e){l(e,z)}),h.each(T.State.calls,function(t,e){var i=!1;e&&h.each(e[1],function(t,a){var o=x===n?"":x;return!0!==o&&e[2].queue!==o&&(x!==n||!1!==e[2].queue)||(!e[5]||(h.each(y,function(t,n){if(n===a)return e[5].resume=!0,i=!0,!1}),!i&&void 0))})}),a();case"finish":case"finishAll":case"stop":h.each(y,function(t,e){r(e)&&r(e).delayTimer&&(clearTimeout(r(e).delayTimer.setTimeout),r(e).delayTimer.next&&r(e).delayTimer.next(),delete r(e).delayTimer),"finishAll"!==_||!0!==x&&!b.isString(x)||(h.each(h.queue(e,b.isString(x)?x:""),function(t,e){b.isFunction(e)&&e()}),h.queue(e,b.isString(x)?x:"",[]))});var M=[];return h.each(T.State.calls,function(t,e){e&&h.each(e[1],function(i,a){var o=x===n?"":x;if(!0!==o&&e[2].queue!==o&&(x!==n||!1!==e[2].queue))return!0;h.each(y,function(i,n){if(n===a)if((!0===x||b.isString(x))&&(h.each(h.queue(n,b.isString(x)?x:""),function(t,e){b.isFunction(e)&&e(null,!0)}),h.queue(n,b.isString(x)?x:"",[])),"stop"===_){var s=r(n);s&&s.tweensContainer&&!1!==o&&h.each(s.tweensContainer,function(t,e){e.endValue=e.currentValue}),M.push(t)}else"finish"!==_&&"finishAll"!==_||(e[2].duration=1)})})}),"stop"===_&&(h.each(M,function(t,e){f(e,!0)}),k.promise&&k.resolver(y)),a();default:if(!h.isPlainObject(_)||b.isEmptyObject(_)){if(b.isString(_)&&T.Redirects[_]){d=h.extend({},x);var L=d.duration,N=d.delay||0;return!0===d.backwards&&(y=h.extend(!0,[],y).reverse()),h.each(y,function(t,e){parseFloat(d.stagger)?d.delay=N+parseFloat(d.stagger)*t:b.isFunction(d.stagger)&&(d.delay=N+d.stagger.call(e,t,I)),d.drag&&(d.duration=parseFloat(L)||(/^(callout|transition)/.test(_)?1e3:C),d.duration=Math.max(d.duration*(d.backwards?1-t/I:(t+1)/I),.75*d.duration,200)),T.Redirects[_].call(e,e,d||{},t,I,y,k.promise?k:n)}),a()}var H="Velocity: First argument ("+_+") was not a property map, a known action, or a registered redirect. Aborting.";return k.promise?k.rejecter(new Error(H)):e.console,a()}D="start"}var B={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},j=[];h.each(y,function(t,e){b.isNode(e)&&u(e,t)}),d=h.extend({},T.defaults,x),d.loop=parseInt(d.loop,10);var W=2*d.loop-1;if(d.loop)for(var F=0;F<W;F++){var R={delay:d.delay,progress:d.progress};F===W-1&&(R.display=d.display,R.visibility=d.visibility,R.complete=d.complete),t(y,"reverse",R)}return a()};T=h.extend(k,T),T.animate=k;var I=e.requestAnimationFrame||g;if(!T.State.isMobile&&i.hidden!==n){var A=function(){i.hidden?(I=function(t){return setTimeout(function(){t(!0)},16)},p()):I=e.requestAnimationFrame||g};A(),i.addEventListener("visibilitychange",A)}return t.Velocity=T,t!==e&&(t.fn.velocity=k,t.fn.velocity.defaults=T.defaults),h.each(["Down","Up"],function(t,e){T.Redirects["slide"+e]=function(t,i,a,o,r,s){var l=h.extend({},i),u=l.begin,d=l.complete,c={},p={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};l.display===n&&(l.display="Down"===e?"inline"===T.CSS.Values.getDisplayType(t)?"inline-block":"block":"none"),l.begin=function(){0===a&&u&&u.call(r,r);for(var i in p)if(p.hasOwnProperty(i)){c[i]=t.style[i];var n=E.getPropertyValue(t,i);p[i]="Down"===e?[n,0]:[0,n]}c.overflow=t.style.overflow,t.style.overflow="hidden"},l.complete=function(){for(var e in c)c.hasOwnProperty(e)&&(t.style[e]=c[e]);a===o-1&&(d&&d.call(r,r),s&&s.resolver(r))},T(t,p,l)}}),h.each(["In","Out"],function(t,e){T.Redirects["fade"+e]=function(t,i,a,o,r,s){var l=h.extend({},i),u=l.complete,d={opacity:"In"===e?1:0};0!==a&&(l.begin=null),l.complete=a!==o-1?null:function(){u&&u.call(r,r),s&&s.resolver(r)},l.display===n&&(l.display="In"===e?"auto":"none"),T(this,d,l)}}),T}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)})}).call(e,i(3)(t))},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=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=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(o),s=function(){function t(){n(this,t)}return a(t,[{key:"init",value:function(){var t=this;(0,r.default)(document).on("click",".rightbar_tri,.mobile_bar_tri",function(e){e.preventDefault();var i=(0,r.default)(".st-container");if((0,r.default)(this).hasClass("active"))return t.resetSlidebar(!1),!1;var n=(0,r.default)(this).data("direction");return i.hasClass(n)?(0,r.default)(".st-container").addClass("bar_opened"):(0,r.default)(".st-container").removeClass("open_bar_right open_bar_left open_column").addClass((0,r.default)(this).data("direction")),t.resetSlidebar(!0),(0,r.default)(this).addClass("active"),(0,r.default)("#"+(0,r.default)(this).data("name")).addClass("sidebar_opened"),"side_qrcode"==(0,r.default)(this).data("name")&&t.load_qrcode(),!1}),(0,r.default)("#st-pusher-after,.close_right_side,.side_continue,#st-content-inner-after").click(function(){return t.resetSlidebar(!1),!1})}},{key:"resetSlidebar",value:function(t){t||(0,r.default)(".st-container").removeClass("open_bar_right open_bar_left open_column bar_opened"),(0,r.default)(".rightbar_tri,.mobile_bar_tri").removeClass("active"),(0,r.default)(".sidebar_opened").removeClass("sidebar_opened"),(0,r.default)(".add_to_wishlit.active").removeClass("active")}},{key:"load_qrcode",value:function(){var t=(0,r.default)("#qrcode_box .qrcode_link");!t.find("img").length&&t.find("i").length&&(0,r.default)("<img/>",{src:t.attr("href")}).load(function(){t.find("i").replaceWith((0,r.default)(this))})}}]),t}();e.default=s},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){i(37),t.exports=i(75)},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function a(t){t.click(function(e){e.preventDefault();var i=t.index(this);return void 0!==$(".pro_gallery_top")[0].swiper&&$(".pro_gallery_top")[0].swiper.slideTo(i),t.removeClass("clicked_thumb").eq(i).addClass("clicked_thumb"),!1})}function o(){"undefined"!=typeof swiper_options&&swiper_options.length&&$.each(swiper_options,function(t,e){if(void 0!==e.st_inited&&e.st_inited){var i=$(e.id_st);1==i.length&&void 0!==i[0].swiper&&($(i[0].swiper.slides).length==$(i[0].swiper.slides).filter(".swiper-slide-visible").length?($(i[0].swiper.params.nextButton).hide(),$(i[0].swiper.params.prevButton).hide()):($(i[0].swiper.params.nextButton).show(),$(i[0].swiper.params.prevButton).show()))}}),s()}function r(){function t(t){(void 0===swiper_options[t].autoplayDisableOnInteraction||swiper_options[t].autoplayDisableOnInteraction)&&e(t)}function e(t){clearTimeout(r[t]),s[t]=!0,$(swiper_options[t].id_st+" .swiper_custom_bar").hide()}function i(t){if(clearTimeout(r[t]),s[t])return!1;a[t]=0,o[t]=!1,r[t]=setInterval(function(){!1===o[t]?(a[t]+=1e3/swiper_options[t].bar_time,$(swiper_options[t].id_st+" .swiper_custom_bar").css({width:a[t]+"%"}),a[t]>=100&&(clearTimeout(r[t]),void 0!==swiper_options[t].autoplay&&swiper_options[t].autoplay||n[t].slideNext())):(a[t]=0,(void 0===swiper_options[t].autoplayDisableOnInteraction||swiper_options[t].autoplayDisableOnInteraction)&&clearTimeout(r[t]))},10)}var n=[],a=[],o=[],r=[],s=[];"undefined"!=typeof swiper_options&&swiper_options.length&&$.each(swiper_options,function(a,r){if(void 0===r.st_inited){var s=$.extend({},Y,r);void 0!==s.st_full_screen&&s.st_full_screen&&$(window).height()>s.st_height&&$(r.id_st).height($(window).height()),n[a]=new Swiper(r.id_st,s),swiper_options[a].st_inited=!0,void 0!==s.custom_progress_bar&&(i(a),n[a].on("slideChangeStart",function(t){i(a)}),n[a].on("touchStart",function(e){o[a]=!0,t(a)}),n[a].on("touchEnd",function(t){o[a]=!1}),n[a].on("autoplayStop",function(t){e(a)}))}})}function s(){var t=$(".tm_gallery");t.length&&$.each(t,function(){void 0!==this.swiper&&($(this.swiper.slides).length==$(this.swiper.slides).filter(".swiper-slide-visible").length?($(this.swiper.params.nextButton).hide(),$(this.swiper.params.prevButton).hide()):($(this.swiper.params.nextButton).show(),$(this.swiper.params.prevButton).show()))})}function l(){var t=$(".tm_gallery");t.length&&$.each(t,function(){var t=$(this);if(!t.hasClass("swiper_inited")){var e=t.hasClass("tm_gallery_thumbs"),i=t.find(".swiper-slide").index(t.find(".tm_cover")),n=$.extend({},Y,{nextButton:$(".swiper-button-next",this),prevButton:$(".swiper-button-prev",this),slidesPerView:e?"auto":1,onSlideChangeEnd:function(t){var i=$(t.container).hasClass("tm_gallery_thumbs")?$(t.container).closest(".ajax_block_product").find(".tm_gallery_top"):$(t.container).closest(".ajax_block_product").find(".tm_gallery_thumbs");i.length&&void 0!==i[0].swiper&&(i[0].swiper.slideTo(t.activeIndex),e||i[0].swiper.slides.removeClass("clicked_thumb").eq(t.activeIndex).addClass("clicked_thumb"))},onInit:function(t){$(t.container).addClass("swiper_inited"),$(t.slides).length==$(t.slides).filter(".swiper-slide-visible").length?$(t.container).find(".swiper-button").hide():$(t.container).find(".swiper-button").show()},initialSlide:i>0?i:0,nested:t.closest(".ajax_block_product").hasClass("swiper-slide"),lazyLoading:!(1!=t.data("lazyload")||e&&(!e||i)),spaceBetween:e?3:0,watchSlidesProgress:!0,watchSlidesVisibility:!0,loop:!1});e&&(n=$.extend(n,{onClick:function(t){var e=$(t.container).closest(".ajax_block_product").find(".tm_gallery_top");e.length&&void 0!==e[0].swiper&&e[0].swiper.slideTo(t.clickedIndex),$(t.slides).removeClass("clicked_thumb").eq(t.clickedIndex).addClass("clicked_thumb")}})),new Swiper(this,n)}})}function u(t){var e={};$(t).each(function(){var t=$(this).data("group")?$(this).data("group"):"others";e[t]||(e[t]=[]),e[t].push(this)}),$.each(e,function(){$(this).magnificPopup({type:"image",tLoading:"",image:{verticalFit:1==sttheme.popup_vertical_fit,titleSrc:"title"},removalDelay:500,callbacks:{beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim"),this.st.mainClass="mfp-zoom-in"}},gallery:{enabled:!0}})})}function d(t){$.each(t,function(){$(this).magnificPopup({type:"iframe",preloader:!1,fixedContentPos:!1})})}function c(t){$.each(t,function(){$(this).magnificPopup({type:"inline",removalDelay:500,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-zoom-in"}},preloader:!1,fixedContentPos:!1})})}function p(){if(0==sttheme.sticky_option||sttheme.is_mobile_device&&1!=sttheme.use_mobile_header||$(window).width()<992)return!1;var t=$(2==sttheme.sticky_option||4==sttheme.sticky_option?"#st_header":"#top_extra .st_mega_menu_container");if(!t.length||t.parent().hasClass("sticky-wrapper"))return!1;new Waypoint.Sticky({element:t[0],handler:function(t){"down"==t?(3!=sttheme.sticky_option&&4!=sttheme.sticky_option||$(this.element).addClass("fadeInDownLarge"),$(this.element).css("top",0)):"up"==t&&$(this.element).removeClass("fadeInDownLarge").css("top","")},offset:function(){return 3==sttheme.sticky_option||4==sttheme.sticky_option?-$(this.element).outerHeight():-1}})}function f(){if(sttheme.sticky_mobile_header<2)return!1;var t=$("#mobile_bar");if(!t.length||t.parent().hasClass("sticky-wrapper"))return!1;new Waypoint.Sticky({element:t[0],wrapper:'<div class="sticky-wrapper mobile_header_wrapper" />',handler:function(t){},offset:function(){return-$(this.element).outerHeight()-1}})}function h(){if(3!=sttheme.filter_position||sttheme.is_mobile_device)return!1;var t=$(".desktop_device #horizontal_filters");if(!t.length||t.parent().hasClass("sticky-wrapper"))return!1;new Waypoint.Sticky({element:t[0],handler:function(t){var e=this;"down"==t?($(this.element).width($(this.element).closest("#center_column").width()),$(this.element).css("top",$("#st_header.stuck").outerHeight()+$("#top_extra .st_mega_menu_container.stuck").outerHeight()+$("#mobile_bar.stuck").outerHeight()),V=setTimeout(function(){$(e.element).css("top",$("#st_header.stuck").outerHeight()+$("#top_extra .st_mega_menu_container.stuck").outerHeight()+$("#mobile_bar.stuck").outerHeight())},200)):"up"==t&&(clearTimeout(V),$(this.element).width("auto").css("top",""))},offset:function(){return $(this.element).outerHeight()+$("#st_header.stuck").outerHeight()+$("#top_extra .st_mega_menu_container.stuck").outerHeight()+$("#mobile_bar.stuck").outerHeight()}})}function m(){if(sttheme.sticky_column){var t=$("body#category "+(1==sttheme.sticky_column?"#left_column":"#right_column")+" .main_column_box"),e=$("#st_header.stuck").outerHeight()+$("#top_extra .st_mega_menu_container.stuck").outerHeight()+$("#mobile_bar.stuck").outerHeight();t.hasClass("stuck")&&Waypoint.viewportHeight()-e<t.outerHeight()&&("up"==X.direction?(q&&"up"!=q&&(X.y>t.offset().top+e?g(t,t.offset().top-$("body#category "+(1==sttheme.sticky_column?"#left_column":"#right_column")).offset().top):X.y<t.offset().top+e&&(t.offset().top<$("body#category "+(1==sttheme.sticky_column?"#left_column":"#right_column")).offset().top+t.outerHeight()&&t.addClass(stuck),v(t,e))),q="up"):"down"==X.direction&&(q&&"down"!=q&&(X.y<t.offset().top+t.outerHeight()?g(t,t.offset().top-$("body#category "+(1==sttheme.sticky_column?"#left_column":"#right_column")).offset().top):v(t,Waypoint.viewportHeight()-t.outerHeight())),q="down"))}return!0}function g(t,e){t.css({top:e}).addClass("stuck_abs")}function v(t,e){t.css({top:e}).removeClass("stuck_abs")}function y(){if(!sttheme.sticky_column||$(window).width()<992)return!1;$("body#category "+(1==sttheme.sticky_column?"#left_column":"#right_column")+" .main_column_box").hcSticky({stickTo:$("#columns")[0],queries:{992:{disable:!0}}})}function w(t){if(!sttheme.sticky_column)return!1;$("body#category "+(1==sttheme.sticky_column?"#left_column":"#right_column")+" .main_column_box").hcSticky({})}function b(t){t?$("#to_top_wrap .icon_wrap").removeClass("disabled"):$("#to_top_wrap .icon_wrap").addClass("disabled")}function _(){if(void 0!==sttheme.retina&&1==parseInt(sttheme.retina,10)&&Z())for(var t=(new Array,$("a.replace-2x").get()),e=0;e<t.length;e++){var i=t[e].href,n=i.replace(/\/(\d+)\-(\w+)\_default([\.\/])/i,"/$1-$2_default_2x$3");n!=i&&(t[e].href=n)}}var C="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};i(38),i(41),i(42);var x=i(43),T=n(x);i(44),i(45),i(46),i(47),i(48),i(49),i(50),i(51),i(52),i(53),i(54),i(55),i(56),i(57),i(58),i(59),i(60);var S=i(61),E=n(S),k=i(62),I=n(k),A=i(63),P=n(A),O=i(64),D=n(O),z=i(65),M=n(z),L=i(5),N=n(L),H=i(1),B=n(H),j=i(66),W=n(j);i(67),i(68),i(69),i(70),i(71),i(72),i(73),i(74),(0,T.default)($);for(var F in W.default.prototype)B.default[F]=W.default.prototype[F];var R,V,q,G,Y={loop:!0,initialSlide:0,preloadImages:!1,paginationClickable:!0},X=function t(){var e=void 0!==window.pageYOffset?window.pageYOffset:"CSS1Compat"==document.compatMode?window.document.documentElement.scrollTop:window.document.body.scrollTop;void 0===t.y&&(t.y=e),void 0===t.distanceY?t.distanceY=e:t.distanceY=e-t.y;var i=t.y-e;t.direction=i<=0?"down":i>0?"up":"first",t.y=e};$(document).ready(function(){_();var t=new P.default;t.init();var e=new M.default;e.init();var i=new I.default,n=new N.default;if((new E.default).init(),i.init(),n.init(),$(".to_top_btn").click(function(){return $("body,html").animate({scrollTop:0},"fast"),!1}),b($(window).scrollTop()>300),p(),f(),$("#st_mobile_menu .mo_mu_level_0,#st_mega_menu_column_mobile .mo_mu_level_0,.mobile_nav_box .mo_mu_level_0").staccordion(),"undefined"!=typeof stproduct_sliders_array&&stproduct_sliders_array.length&&$.each(stproduct_sliders_array,function(t,e){$(e.id_st).owlCarousel(e)}),$("#footer .opener, #footer div.title_block_name").click(function(t){return t.preventDefault(),$(this).closest(".block").toggleClass("st_open"),!1}),$("body").on("click",".mobile_tab_title",function(t){return t.preventDefault(),$(this).closest(".tab-pane").toggleClass("st_open"),$(this).hasClass("p_c_slider")&&Q($(this).data("id")),!1}),r(),l(),u($(".st_popup_image")),d($(".st_popup_video")),c($(".inline_popup_tri")),a($(".pro_gallery_thumbs_grid .swiper-slide")),B.default.on("updatedProduct",function(t){r(),u($(".st_pro_popup_image")),d($(".st_popup_video")),c($(".inline_popup_tri")),a($(".pro_gallery_thumbs_grid .swiper-slide")),K()}),B.default.on("quickViewLoaded",function(e){t.init(),r(),u($(".st_pro_popup_image",e.quickview_id)),d($(".st_popup_video",e.quickview_id)),c($(".inline_popup_tri",e.quickview_id)),a($(".pro_gallery_thumbs_grid .swiper-slide",e.quickview_id)),K()}),B.default.on("updatedProductListDOM",function(t){l(),B.default.proquantity(),B.default.prolazy(),Waypoint.refreshAll(),K(),e.init(),1==sttheme.infinite_scroll&&U()}),B.default.on("updateFacets",function(){1==sttheme.infinite_scroll&&G&&G.destroy()}),B.default.proquantity(),B.default.on("updatedPComments",function(t){u($(".st_popup_image"))}),1==sttheme.infinite_scroll)U();else if(2==sttheme.infinite_scroll){var o=new D.default;o.init({onAfterPageLoad:function(t){l(),B.default.proquantity(),B.default.prolazy(),Waypoint.refreshAll(),K(),e.init()}})}sttheme.cate_pro_lazy&&B.default.prolazy(),$('.pc_slider_block_container a[data-toggle="tab"]').on("shown.bs.tab",function(t){return Q($(this).attr("href")),!0}),y(),h(),$(".video_wraper").fitVids(),K(),sttheme.is_mobile_device||$.stellar({horizontalScrolling:!1,responsive:!0}),B.default.on("updatedProductImages",function(t){_()}),$('.st_vc_tab a[data-toggle="tab"]').on("shown.bs.tab",function(t){return Q($(this).attr("href")),!0}),$(".st_vc_tab .nav-item:first-child a").tab("show"),$(".category-top-menu .collapse").on("hidden.bs.collapse shown.bs.collapse",function(){w(!0)}),$(document).on("submit","#customer-form, #login-form",function(){var t=$(this).find('input[name="email"]').val();if(!t||t&&!/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,4}$/.test(t))return $(this).find('input[name="email"]').closest(".form-group").addClass("has-danger"),$(this).find(".js-submit-active").removeClass("disabled active"),!1})});var U=function(){G=new Waypoint.Infinite({element:$(".products.product_list")[0],items:".product_list_item",onAfterPageLoad:function(t){l(),B.default.proquantity(),B.default.prolazy(),Waypoint.refreshAll(),K(),(new M.default).init()}})},Q=function(t){var e=$(t+" .products_sldier_swiper")[0];if(void 0!==e&&void 0!==e.swiper){e.swiper.update(!0);var i=$(t+" .tm_gallery");i.length&&$.each(i,function(){C("undefined"!==this.swiper)&&this.swiper.update(!0)})}},K=function(){if("undefined"==typeof s_countdown_all)return!1;$(".s_countdown_block .s_countdown_timer, .c_countdown_timer").each(function(){var t=$(this),e=($(this).data("countdown"),$(this).data("gmdate")),i=t.data("id-product"),n=$(this).hasClass("countdown_pro"),a=new Date,o=new Date(a.getTime()+6e4*a.getTimezoneOffset());(s_countdown_all||$.inArray(i,s_countdown_id_products)>-1)&&new Date(e)>o&&(t.countdown(new Date(new Date(e).getTime()-6e4*a.getTimezoneOffset())).on("update.countdown",function(e){if(s_countdown_style){var i='<div><i class="icon-clock"></i>%D '+(1==e.offset.totalDays?s_countdown_lang.day:s_countdown_lang.days)+' <span class="for_c_time_style">%H : %M : %S</span></div>';n&&(i="%D "+(1==e.offset.totalDays?s_countdown_lang.day:s_countdown_lang.days)+' <span class="for_c_time_style">%H : %M : %S</span>')}else{var i='<div><span class="countdown_number">%D</span><span class="countdown_text">'+(1==e.offset.totalDays?s_countdown_lang.day:s_countdown_lang.days)+'</span></div><div><span class="countdown_number">%H</span><span class="countdown_text">'+s_countdown_lang.hrs+'</span></div><div><span class="countdown_number">%M</span><span class="countdown_text">'+s_countdown_lang.min+'</span></div><div><span class="countdown_number">%S</span><span class="countdown_text">'+s_countdown_lang.sec+"</span></div>";n&&(i="%D "+(1==e.offset.totalDays?s_countdown_lang.day:s_countdown_lang.days)+" %H "+s_countdown_lang.hrs+" %M "+s_countdown_lang.min+" %S "+s_countdown_lang.sec)}t.html(e.strftime(i))}).on("finish.countdown",function(t){window.location.reload(!0)}),n?t.closest(".countdown_outer_box").addClass("counting"):t.addClass("counting"))}),$(".s_countdown_block .s_countdown_perm, .c_countdown_perm, .countdown_pro_perm").each(function(){(s_countdown_all||$.inArray($(this).data("id-product"),s_countdown_id_products)>-1)&&$(this).addClass("counting")})};$(window).scroll(function(){b($(this).scrollTop()>300),X(),m()}),$(window).resize(function(){clearTimeout(R),R=setTimeout(function(){o()},200)});var Z=function(){var t=e;return t.devicePixelRatio>1||!(!t.matchMedia||!t.matchMedia("(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)").matches)}},function(t,e,i){(function(e){t.exports=e.Tether=i(40)}).call(e,i(39))},function(t,e,i){"use strict";var n,a="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};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":a(window))&&(n=window)}t.exports=n},function(t,e,i){"use strict";var n,a,o="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};!function(o,r){n=r,void 0!==(a="function"==typeof n?n.call(e,i,e,t):n)&&(t.exports=a)}(0,function(t,e,i){function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t){var e=t.getBoundingClientRect(),i={};for(var n in e)i[n]=e[n];if(t.ownerDocument!==document){var o=t.ownerDocument.defaultView.frameElement;if(o){var r=a(o);i.top+=r.top,i.bottom+=r.top,i.left+=r.left,i.right+=r.left}}return i}function r(t){var e=getComputedStyle(t)||{},i=e.position,n=[];if("fixed"===i)return[t];for(var a=t;(a=a.parentNode)&&a&&1===a.nodeType;){var o=void 0;try{o=getComputedStyle(a)}catch(t){}if(void 0===o||null===o)return n.push(a),n;var r=o,s=r.overflow,l=r.overflowX;/(auto|scroll|overlay)/.test(s+r.overflowY+l)&&("absolute"!==i||["relative","absolute","fixed"].indexOf(o.position)>=0)&&n.push(a)}return n.push(t.ownerDocument.body),t.ownerDocument!==document&&n.push(t.ownerDocument.defaultView),n}function s(){E&&document.body.removeChild(E),E=null}function l(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var i=e.documentElement,n=a(t),o=A();return n.top-=o.top,n.left-=o.left,void 0===n.width&&(n.width=document.body.scrollWidth-n.left-n.right),void 0===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,n}function u(t){return t.offsetParent||document.documentElement}function d(){if(P)return P;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");c(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 a=i-n;return P={width:a,height:a}}function c(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return 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])}),t}function p(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var i=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),n=m(t).replace(i," ");g(t,n)}}function f(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{p(t,e);var i=m(t)+" "+e;g(t,i)}}function h(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=m(t);return new RegExp("(^| )"+e+"( |$)","gi").test(i)}function m(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function g(t,e){t.setAttribute("class",e)}function v(t,e,i){i.forEach(function(i){-1===e.indexOf(i)&&h(t,i)&&p(t,i)}),e.forEach(function(e){h(t,e)||f(t,e)})}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":o(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 w(t,e){var i=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+i>=e&&e>=t-i}function b(){return"object"===("undefined"==typeof performance?"undefined":o(performance))&&"function"==typeof performance.now?performance.now():+new Date}function _(){for(var t={top:0,left:0},e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return i.forEach(function(e){var i=e.top,n=e.left;"string"==typeof i&&(i=parseFloat(i,10)),"string"==typeof n&&(n=parseFloat(n,10)),t.top+=i,t.left+=n}),t}function C(t,e){return"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),t}function x(t,e){return"scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),void 0!==e.nodeType&&function(){var t=e,i=l(e),n=i,a=getComputedStyle(e);if(e=[n.left,n.top,i.width+n.left,i.height+n.top],t.ownerDocument!==document){var o=t.ownerDocument.defaultView;e[0]+=o.pageXOffset,e[1]+=o.pageYOffset,e[2]+=o.pageXOffset,e[3]+=o.pageYOffset}Q.forEach(function(t,i){t=t[0].toUpperCase()+t.substr(1),"Top"===t||"Left"===t?e[i]+=parseFloat(a["border"+t+"Width"]):e[i]-=parseFloat(a["border"+t+"Width"])})}(),e}var T=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}}(),S=void 0;void 0===S&&(S={modules:[]});var E=null,k=function(){var t=0;return function(){return++t}}(),I={},A=function(){var t=E;t&&document.body.contains(t)||(t=document.createElement("div"),t.setAttribute("data-tether-id",k()),c(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),E=t);var e=t.getAttribute("data-tether-id");return void 0===I[e]&&(I[e]=a(t),D(function(){delete I[e]})),I[e]},P=null,O=[],D=function(t){O.push(t)},z=function(){for(var t=void 0;t=O.pop();)t()},M=function(){function t(){n(this,t)}return T(t,[{key:"on",value:function(t,e,i){var n=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:i,once:n})}},{key:"once",value:function(t,e,i){this.on(t,e,i,!0)}},{key:"off",value:function(t,e){if(void 0!==this.bindings&&void 0!==this.bindings[t])if(void 0===e)delete this.bindings[t];else for(var i=0;i<this.bindings[t].length;)this.bindings[t][i].handler===e?this.bindings[t].splice(i,1):++i}},{key:"trigger",value:function(t){if(void 0!==this.bindings&&this.bindings[t]){for(var e=0,i=arguments.length,n=Array(i>1?i-1:0),a=1;a<i;a++)n[a-1]=arguments[a];for(;e<this.bindings[t].length;){var o=this.bindings[t][e],r=o.handler,s=o.ctx,l=o.once,u=s;void 0===u&&(u=this),r.apply(u,n),l?this.bindings[t].splice(e,1):++e}}}}]),t}();S.Utils={getActualBoundingClientRect:a,getScrollParents:r,getBounds:l,getOffsetParent:u,extend:c,addClass:f,removeClass:p,hasClass:h,updateClasses:v,defer:D,flush:z,uniqueId:k,Evented:M,getScrollBarSize:d,removeUtilElements:s};var L=function(){function t(t,e){var i=[],n=!0,a=!1,o=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){a=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(a)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")}}(),T=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}}(),N=function(t,e,i){for(var n=!0;n;){var a=t,o=e,r=i;n=!1,null===a&&(a=Function.prototype);var s=Object.getOwnPropertyDescriptor(a,o);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(r)}var u=Object.getPrototypeOf(a);if(null===u)return;t=u,e=o,i=r,n=!0,s=u=void 0}};if(void 0===S)throw new Error("You must include the utils.js file before tether.js");var H=S.Utils,r=H.getScrollParents,l=H.getBounds,u=H.getOffsetParent,c=H.extend,f=H.addClass,p=H.removeClass,v=H.updateClasses,D=H.defer,z=H.flush,d=H.getScrollBarSize,s=H.removeUtilElements,B=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],i=0;i<e.length;++i){var n=e[i];if(void 0!==t.style[n])return n}}(),j=[],W=function(){j.forEach(function(t){t.position(!1)}),z()};!function(){var t=null,e=null,i=null,n=function n(){if(void 0!==e&&e>16)return e=Math.min(e-16,250),void(i=setTimeout(n,250));void 0!==t&&b()-t<10||(null!=i&&(clearTimeout(i),i=null),t=b(),W(),e=b()-t)};"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,n)})}();var F={center:"center",left:"right",right:"left"},R={middle:"middle",top:"bottom",bottom:"top"},V={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},$=function(t,e){var i=t.left,n=t.top;return"auto"===i&&(i=F[e.left]),"auto"===n&&(n=R[e.top]),{left:i,top:n}},q=function(t){var e=t.left,i=t.top;return void 0!==V[t.left]&&(e=V[t.left]),void 0!==V[t.top]&&(i=V[t.top]),{left:e,top:i}},G=function(t){var e=t.split(" "),i=L(e,2);return{top:i[0],left:i[1]}},Y=G,X=function(t){function e(t){var i=this;n(this,e),N(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.position=this.position.bind(this),j.push(this),this.history=[],this.setOptions(t,!1),S.modules.forEach(function(t){void 0!==t.initialize&&t.initialize.call(i)}),this.position()}return y(e,t),T(e,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return void 0!==e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,i=arguments.length<=1||void 0===arguments[1]||arguments[1],n={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=c(n,t);var a=this.options,o=a.element,s=a.target,l=a.targetModifier;if(this.element=o,this.target=s,this.targetModifier=l,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if(void 0===e[t])throw new Error("Tether Error: Both element and target must be defined");void 0!==e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),f(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&f(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=Y(this.options.targetAttachment),this.attachment=Y(this.options.attachment),this.offset=G(this.options.offset),this.targetOffset=G(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=r(this.target),!1!==this.options.enabled&&this.enable(i)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return l(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=l(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if("scroll-handle"===this.targetModifier){var t=void 0,i=this.target;i===document.body?(i=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=l(i);var n=getComputedStyle(i),a=i.scrollWidth>i.clientWidth||[n.overflow,n.overflowX].indexOf("scroll")>=0||this.target!==document.body,o=0;a&&(o=15);var r=t.height-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomWidth)-o,e={width:15,height:.975*r*(r/i.scrollHeight),left:t.left+t.width-parseFloat(n.borderLeftWidth)-15},s=0;r<408&&this.target===document.body&&(s=-11e-5*Math.pow(r,2)-.00727*r+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var u=this.target.scrollTop/(i.scrollHeight-r);return e.top=u*(r-e.height-s)+t.top+parseFloat(n.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return void 0===this._cache&&(this._cache={}),void 0===this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&f(this.target,this.getClass("enabled")),f(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;p(this.target,this.getClass("enabled")),p(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var t=this;this.disable(),j.forEach(function(e,i){e===t&&j.splice(i,1)}),0===j.length&&s()}},{key:"updateAttachClasses",value:function(t,e){var i=this;t=t||this.attachment,e=e||this.targetAttachment;var n=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var a=this._addAttachClasses;t.top&&a.push(this.getClass("element-attached")+"-"+t.top),t.left&&a.push(this.getClass("element-attached")+"-"+t.left),e.top&&a.push(this.getClass("target-attached")+"-"+e.top),e.left&&a.push(this.getClass("target-attached")+"-"+e.left);var o=[];n.forEach(function(t){o.push(i.getClass("element-attached")+"-"+t),o.push(i.getClass("target-attached")+"-"+t)}),D(function(){void 0!==i._addAttachClasses&&(v(i.element,i._addAttachClasses,o),!1!==i.options.addTargetClasses&&v(i.target,i._addAttachClasses,o),delete i._addAttachClasses)})}},{key:"position",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var i=$(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,i);var n=this.cache("element-bounds",function(){return l(t.element)}),a=n.width,r=n.height;if(0===a&&0===r&&void 0!==this.lastSize){var s=this.lastSize;a=s.width,r=s.height}else this.lastSize={width:a,height:r};var c=this.cache("target-bounds",function(){return t.getTargetBounds()}),p=c,f=C(q(this.attachment),{width:a,height:r}),h=C(q(i),p),m=C(this.offset,{width:a,height:r}),g=C(this.targetOffset,p);f=_(f,m),h=_(h,g);for(var v=c.left+h.left-f.left,y=c.top+h.top-f.top,w=0;w<S.modules.length;++w){var b=S.modules[w],x=b.position.call(this,{left:v,top:y,targetAttachment:i,targetPos:c,elementPos:n,offset:f,targetOffset:h,manualOffset:m,manualTargetOffset:g,scrollbarSize:I,attachment:this.attachment});if(!1===x)return!1;void 0!==x&&"object"===(void 0===x?"undefined":o(x))&&(y=x.top,v=x.left)}var T={page:{top:y,left:v},viewport:{top:y-pageYOffset,bottom:pageYOffset-y-r+innerHeight,left:v-pageXOffset,right:pageXOffset-v-a+innerWidth}},E=this.target.ownerDocument,k=E.defaultView,I=void 0;return k.innerHeight>E.documentElement.clientHeight&&(I=this.cache("scrollbar-size",d),T.viewport.bottom-=I.height),k.innerWidth>E.documentElement.clientWidth&&(I=this.cache("scrollbar-size",d),T.viewport.right-=I.width),-1!==["","static"].indexOf(E.body.style.position)&&-1!==["","static"].indexOf(E.body.parentElement.style.position)||(T.page.bottom=E.body.scrollHeight-y-r,T.page.right=E.body.scrollWidth-v-a),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var e=t.cache("target-offsetparent",function(){return u(t.target)}),i=t.cache("target-offsetparent-bounds",function(){return l(e)}),n=getComputedStyle(e),a=i,o={};if(["Top","Left","Bottom","Right"].forEach(function(t){o[t.toLowerCase()]=parseFloat(n["border"+t+"Width"])}),i.right=E.body.scrollWidth-i.left-a.width+o.right,i.bottom=E.body.scrollHeight-i.top-a.height+o.bottom,T.page.top>=i.top+o.top&&T.page.bottom>=i.bottom&&T.page.left>=i.left+o.left&&T.page.right>=i.right){var r=e.scrollTop,s=e.scrollLeft;T.offset={top:T.page.top-i.top+r-o.top,left:T.page.left-i.left+s-o.left}}}(),this.move(T),this.history.unshift(T),this.history.length>3&&this.history.pop(),e&&z(),!0}}},{key:"move",value:function(t){var e=this;if(void 0!==this.element.parentNode){var i={};for(var n in t){i[n]={};for(var a in t[n]){for(var o=!1,r=0;r<this.history.length;++r){var s=this.history[r];if(void 0!==s[n]&&!w(s[n][a],t[n][a])){o=!0;break}}o||(i[n][a]=!0)}}var l={top:"",left:"",right:"",bottom:""},d=function(t,i){if(!1!==(void 0!==e.options.optimizations?e.options.optimizations.gpu:null)){var n=void 0,a=void 0;t.top?(l.top=0,n=i.top):(l.bottom=0,n=-i.bottom),t.left?(l.left=0,a=i.left):(l.right=0,a=-i.right),window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 1.3dppx)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3)").matches||(a=Math.round(a),n=Math.round(n))),l[B]="translateX("+a+"px) translateY("+n+"px)","msTransform"!==B&&(l[B]+=" translateZ(0)")}else t.top?l.top=i.top+"px":l.bottom=i.bottom+"px",t.left?l.left=i.left+"px":l.right=i.right+"px"},p=!1;if((i.page.top||i.page.bottom)&&(i.page.left||i.page.right)?(l.position="absolute",d(i.page,t.page)):(i.viewport.top||i.viewport.bottom)&&(i.viewport.left||i.viewport.right)?(l.position="fixed",d(i.viewport,t.viewport)):void 0!==i.offset&&i.offset.top&&i.offset.left?function(){l.position="absolute";var n=e.cache("target-offsetparent",function(){return u(e.target)});u(e.element)!==n&&D(function(){e.element.parentNode.removeChild(e.element),n.appendChild(e.element)}),d(i.offset,t.offset),p=!0}():(l.position="absolute",d({top:!0,left:!0},t.page)),!p)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var f=!0,h=this.element.parentNode;h&&1===h.nodeType&&"BODY"!==h.tagName;){if("static"!==getComputedStyle(h).position){f=!1;break}h=h.parentNode}f||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var m={},g=!1;for(var a in l){var v=l[a];this.element.style[a]!==v&&(g=!0,m[a]=v)}g&&D(function(){c(e.element.style,m),e.trigger("repositioned")})}}}]),e}(M);X.modules=[],S.position=W;var U=c(X,S),L=function(){function t(t,e){var i=[],n=!0,a=!1,o=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){a=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(a)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")}}(),H=S.Utils,l=H.getBounds,c=H.extend,v=H.updateClasses,D=H.defer,Q=["left","top","right","bottom"];S.modules.push({position:function(t){var e=this,i=t.top,n=t.left,a=t.targetAttachment;if(!this.options.constraints)return!0;var o=this.cache("element-bounds",function(){return l(e.element)}),r=o.height,s=o.width;if(0===s&&0===r&&void 0!==this.lastSize){var u=this.lastSize;s=u.width,r=u.height}var d=this.cache("target-bounds",function(){return e.getTargetBounds()}),p=d.height,f=d.width,h=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,i=t.pinnedClass;e&&h.push(e),i&&h.push(i)}),h.forEach(function(t){["left","top","right","bottom"].forEach(function(e){h.push(t+"-"+e)})});var m=[],g=c({},a),y=c({},this.attachment);return this.options.constraints.forEach(function(t){var o=t.to,l=t.attachment,u=t.pin;void 0===l&&(l="");var d=void 0,c=void 0;if(l.indexOf(" ")>=0){var h=l.split(" "),v=L(h,2);c=v[0],d=v[1]}else d=c=l;var w=x(e,o);"target"!==c&&"both"!==c||(i<w[1]&&"top"===g.top&&(i+=p,g.top="bottom"),i+r>w[3]&&"bottom"===g.top&&(i-=p,g.top="top")),"together"===c&&("top"===g.top&&("bottom"===y.top&&i<w[1]?(i+=p,g.top="bottom",i+=r,y.top="top"):"top"===y.top&&i+r>w[3]&&i-(r-p)>=w[1]&&(i-=r-p,g.top="bottom",y.top="bottom")),"bottom"===g.top&&("top"===y.top&&i+r>w[3]?(i-=p,g.top="top",i-=r,y.top="bottom"):"bottom"===y.top&&i<w[1]&&i+(2*r-p)<=w[3]&&(i+=r-p,g.top="top",y.top="top")),"middle"===g.top&&(i+r>w[3]&&"top"===y.top?(i-=r,y.top="bottom"):i<w[1]&&"bottom"===y.top&&(i+=r,y.top="top"))),"target"!==d&&"both"!==d||(n<w[0]&&"left"===g.left&&(n+=f,g.left="right"),n+s>w[2]&&"right"===g.left&&(n-=f,g.left="left")),"together"===d&&(n<w[0]&&"left"===g.left?"right"===y.left?(n+=f,g.left="right",n+=s,y.left="left"):"left"===y.left&&(n+=f,g.left="right",n-=s,y.left="right"):n+s>w[2]&&"right"===g.left?"left"===y.left?(n-=f,g.left="left",n-=s,y.left="right"):"right"===y.left&&(n-=f,g.left="left",n+=s,y.left="left"):"center"===g.left&&(n+s>w[2]&&"left"===y.left?(n-=s,y.left="right"):n<w[0]&&"right"===y.left&&(n+=s,y.left="left"))),"element"!==c&&"both"!==c||(i<w[1]&&"bottom"===y.top&&(i+=r,y.top="top"),i+r>w[3]&&"top"===y.top&&(i-=r,y.top="bottom")),"element"!==d&&"both"!==d||(n<w[0]&&("right"===y.left?(n+=s,y.left="left"):"center"===y.left&&(n+=s/2,y.left="left")),n+s>w[2]&&("left"===y.left?(n-=s,y.left="right"):"center"===y.left&&(n-=s/2,y.left="right"))),"string"==typeof u?u=u.split(",").map(function(t){return t.trim()}):!0===u&&(u=["top","left","right","bottom"]),u=u||[];var b=[],_=[];i<w[1]&&(u.indexOf("top")>=0?(i=w[1],b.push("top")):_.push("top")),i+r>w[3]&&(u.indexOf("bottom")>=0?(i=w[3]-r,b.push("bottom")):_.push("bottom")),n<w[0]&&(u.indexOf("left")>=0?(n=w[0],b.push("left")):_.push("left")),n+s>w[2]&&(u.indexOf("right")>=0?(n=w[2]-s,b.push("right")):_.push("right")),b.length&&function(){var t=void 0;t=void 0!==e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),m.push(t),b.forEach(function(e){m.push(t+"-"+e)})}(),_.length&&function(){var t=void 0;t=void 0!==e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),m.push(t),_.forEach(function(e){m.push(t+"-"+e)})}(),(b.indexOf("left")>=0||b.indexOf("right")>=0)&&(y.left=g.left=!1),(b.indexOf("top")>=0||b.indexOf("bottom")>=0)&&(y.top=g.top=!1),g.top===a.top&&g.left===a.left&&y.top===e.attachment.top&&y.left===e.attachment.left||(e.updateAttachClasses(y,g),e.trigger("update",{attachment:y,targetAttachment:g}))}),D(function(){!1!==e.options.addTargetClasses&&v(e.target,m,h),v(e.element,m,h)}),{top:i,left:n}}});var H=S.Utils,l=H.getBounds,v=H.updateClasses,D=H.defer;S.modules.push({position:function(t){var e=this,i=t.top,n=t.left,a=this.cache("element-bounds",function(){return l(e.element)}),o=a.height,r=a.width,s=this.getTargetBounds(),u=i+o,d=n+r,c=[];i<=s.bottom&&u>=s.top&&["left","right"].forEach(function(t){var e=s[t];e!==n&&e!==d||c.push(t)}),n<=s.right&&d>=s.left&&["top","bottom"].forEach(function(t){var e=s[t];e!==i&&e!==u||c.push(t)});var p=[],f=[],h=["left","top","right","bottom"];return p.push(this.getClass("abutted")),h.forEach(function(t){p.push(e.getClass("abutted")+"-"+t)}),c.length&&f.push(this.getClass("abutted")),c.forEach(function(t){f.push(e.getClass("abutted")+"-"+t)}),D(function(){!1!==e.options.addTargetClasses&&v(e.target,f,p),v(e.element,f,p)}),!0}});var L=function(){function t(t,e){var i=[],n=!0,a=!1,o=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){a=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(a)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")}}();return S.modules.push({position:function(t){var e=t.top,i=t.left;if(this.options.shift){var n=this.options.shift;"function"==typeof this.options.shift&&(n=this.options.shift.call(this,{top:e,left:i}));var a=void 0,o=void 0;if("string"==typeof n){n=n.split(" "),n[1]=n[1]||n[0];var r=n,s=L(r,2);a=s[0],o=s[1],a=parseFloat(a,10),o=parseFloat(o,10)}else a=n.top,o=n.left;return e+=a,i+=o,{top:e,left:i}}}}),U})},function(t,e,i){"use strict";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};if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");+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"!=(void 0===e?"undefined":n(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 "+(void 0===e?"undefined":n(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 a="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(t){return void 0===t?"undefined":n(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":n(t)},o=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}}(),r=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:r.end,delegateType:r.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}}function a(){if(window.QUnit)return!1;var t=document.createElement("bootstrap");for(var e in s)if(void 0!==t.style[e])return{end:s[e]};return!1}function o(e){var i=this,n=!1;return t(this).one(l.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||l.triggerTransitionEnd(i)},e),this}var r=!1,s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},l={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}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){return t.offsetHeight},triggerTransitionEnd:function(e){t(e).trigger(r.end)},supportsTransitionEnd:function(){return Boolean(r)},typeCheckConfig:function(t,n,a){for(var o in a)if(a.hasOwnProperty(o)){var r=a[o],s=n[o],l=s&&i(s)?"element":e(s);if(!new RegExp(r).test(l))throw new Error(t.toUpperCase()+': Option "'+o+'" provided type "'+l+'" but expected type "'+r+'".')}}};return function(){r=a(),t.fn.emulateTransitionEnd=o,l.supportsTransitionEnd()&&(t.event.special[l.TRANSITION_END]=n())}(),l}(jQuery),s=(function(t){var e="alert",n="bs.alert",a="."+n,s=t.fn[e],l={DISMISS:'[data-dismiss="alert"]'},u={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+".data-api"},d={ALERT:"alert",FADE:"fade",SHOW:"show"},c=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);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.prototype.dispose=function(){t.removeData(this._element,n),this._element=null},e.prototype._getRootElement=function(e){var i=r.getSelectorFromElement(e),n=!1;return i&&(n=t(i)[0]),n||(n=t(e).closest("."+d.ALERT)[0]),n},e.prototype._triggerCloseEvent=function(e){var i=t.Event(u.CLOSE);return t(e).trigger(i),i},e.prototype._removeElement=function(e){var i=this;return t(e).removeClass(d.SHOW),r.supportsTransitionEnd()&&t(e).hasClass(d.FADE)?void t(e).one(r.TRANSITION_END,function(t){return i._destroyElement(e,t)}).emulateTransitionEnd(150):void this._destroyElement(e)},e.prototype._destroyElement=function(e){t(e).detach().trigger(u.CLOSED).remove()},e._jQueryInterface=function(i){return this.each(function(){var a=t(this),o=a.data(n);o||(o=new e(this),a.data(n,o)),"close"===i&&o[i](this)})},e._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},o(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(u.CLICK_DATA_API,l.DISMISS,c._handleDismiss(new c)),t.fn[e]=c._jQueryInterface,t.fn[e].Constructor=c,t.fn[e].noConflict=function(){return t.fn[e]=s,c._jQueryInterface}}(jQuery),function(t){var e="button",n="bs.button",a="."+n,r=".data-api",s=t.fn[e],l={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"+a+r,FOCUS_BLUR_DATA_API:"focus"+a+r+" blur"+a+r},c=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(l.ACTIVE))e=!1;else{var a=t(i).find(u.ACTIVE)[0];a&&t(a).removeClass(l.ACTIVE)}e&&(n.checked=!t(this._element).hasClass(l.ACTIVE),t(n).trigger("change")),n.focus()}}this._element.setAttribute("aria-pressed",!t(this._element).hasClass(l.ACTIVE)),e&&t(this._element).toggleClass(l.ACTIVE)},e.prototype.dispose=function(){t.removeData(this._element,n),this._element=null},e._jQueryInterface=function(i){return this.each(function(){var a=t(this).data(n);a||(a=new e(this),t(this).data(n,a)),"toggle"===i&&a[i]()})},o(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(d.CLICK_DATA_API,u.DATA_TOGGLE_CARROT,function(e){e.preventDefault();var i=e.target;t(i).hasClass(l.BUTTON)||(i=t(i).closest(u.BUTTON)),c._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(l.FOCUS,/^focus(in)?$/.test(e.type))}),t.fn[e]=c._jQueryInterface,t.fn[e].Constructor=c,t.fn[e].noConflict=function(){return t.fn[e]=s,c._jQueryInterface}}(jQuery),function(t){var e="carousel",n="bs.carousel",s="."+n,l=".data-api",u=t.fn[e],d={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},c={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},p={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},f={SLIDE:"slide"+s,SLID:"slid"+s,KEYDOWN:"keydown"+s,MOUSEENTER:"mouseenter"+s,MOUSELEAVE:"mouseleave"+s,LOAD_DATA_API:"load"+s+l,CLICK_DATA_API:"click"+s+l},h={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},m={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},g=function(){function l(e,n){i(this,l),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(m.INDICATORS)[0],this._addEventListeners()}return l.prototype.next=function(){if(this._isSliding)throw new Error("Carousel is sliding");this._slide(p.NEXT)},l.prototype.nextWhenVisible=function(){document.hidden||this.next()},l.prototype.prev=function(){if(this._isSliding)throw new Error("Carousel is sliding");this._slide(p.PREVIOUS)},l.prototype.pause=function(e){e||(this._isPaused=!0),t(this._element).find(m.NEXT_PREV)[0]&&r.supportsTransitionEnd()&&(r.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},l.prototype.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},l.prototype.to=function(e){var i=this;this._activeElement=t(this._element).find(m.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(f.SLID,function(){return i.to(e)});if(n===e)return this.pause(),void this.cycle();var a=e>n?p.NEXT:p.PREVIOUS;this._slide(a,this._items[e])}},l.prototype.dispose=function(){t(this._element).off(s),t.removeData(this._element,n),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},l.prototype._getConfig=function(i){return i=t.extend({},d,i),r.typeCheckConfig(e,i,c),i},l.prototype._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(f.KEYDOWN,function(t){return e._keydown(t)}),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||t(this._element).on(f.MOUSEENTER,function(t){return e.pause(t)}).on(f.MOUSELEAVE,function(t){return e.cycle(t)})},l.prototype._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next();break;default:return}},l.prototype._getItemIndex=function(e){return this._items=t.makeArray(t(e).parent().find(m.ITEM)),this._items.indexOf(e)},l.prototype._getItemByDirection=function(t,e){var i=t===p.NEXT,n=t===p.PREVIOUS,a=this._getItemIndex(e),o=this._items.length-1;if((n&&0===a||i&&a===o)&&!this._config.wrap)return e;var r=t===p.PREVIOUS?-1:1,s=(a+r)%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},l.prototype._triggerSlideEvent=function(e,i){var n=t.Event(f.SLIDE,{relatedTarget:e,direction:i});return t(this._element).trigger(n),n},l.prototype._setActiveIndicatorElement=function(e){if(this._indicatorsElement){t(this._indicatorsElement).find(m.ACTIVE).removeClass(h.ACTIVE);var i=this._indicatorsElement.children[this._getItemIndex(e)];i&&t(i).addClass(h.ACTIVE)}},l.prototype._slide=function(e,i){var n=this,a=t(this._element).find(m.ACTIVE_ITEM)[0],o=i||a&&this._getItemByDirection(e,a),s=Boolean(this._interval),l=void 0,u=void 0,d=void 0;if(e===p.NEXT?(l=h.LEFT,u=h.NEXT,d=p.LEFT):(l=h.RIGHT,u=h.PREV,d=p.RIGHT),o&&t(o).hasClass(h.ACTIVE))return void(this._isSliding=!1);if(!this._triggerSlideEvent(o,d).isDefaultPrevented()&&a&&o){this._isSliding=!0,s&&this.pause(),this._setActiveIndicatorElement(o);var c=t.Event(f.SLID,{relatedTarget:o,direction:d});r.supportsTransitionEnd()&&t(this._element).hasClass(h.SLIDE)?(t(o).addClass(u),r.reflow(o),t(a).addClass(l),t(o).addClass(l),t(a).one(r.TRANSITION_END,function(){t(o).removeClass(l+" "+u).addClass(h.ACTIVE),t(a).removeClass(h.ACTIVE+" "+u+" "+l),n._isSliding=!1,setTimeout(function(){return t(n._element).trigger(c)},0)}).emulateTransitionEnd(600)):(t(a).removeClass(h.ACTIVE),t(o).addClass(h.ACTIVE),this._isSliding=!1,t(this._element).trigger(c)),s&&this.cycle()}},l._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),o=t.extend({},d,t(this).data());"object"===(void 0===e?"undefined":a(e))&&t.extend(o,e);var r="string"==typeof e?e:o.slide;if(i||(i=new l(this,o),t(this).data(n,i)),"number"==typeof e)i.to(e);else if("string"==typeof r){if(void 0===i[r])throw new Error('No method named "'+r+'"');i[r]()}else o.interval&&(i.pause(),i.cycle())})},l._dataApiClickHandler=function(e){var i=r.getSelectorFromElement(this);if(i){var a=t(i)[0];if(a&&t(a).hasClass(h.CAROUSEL)){var o=t.extend({},t(a).data(),t(this).data()),s=this.getAttribute("data-slide-to");s&&(o.interval=!1),l._jQueryInterface.call(t(a),o),s&&t(a).data(n).to(s),e.preventDefault()}}},o(l,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return d}}]),l}();t(document).on(f.CLICK_DATA_API,m.DATA_SLIDE,g._dataApiClickHandler),t(window).on(f.LOAD_DATA_API,function(){t(m.DATA_RIDE).each(function(){var e=t(this);g._jQueryInterface.call(e,e.data())})}),t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=u,g._jQueryInterface}}(jQuery),function(t){var e="collapse",n="bs.collapse",s="."+n,l=t.fn[e],u={toggle:!0,parent:""},d={toggle:"boolean",parent:"string"},c={SHOW:"show"+s,SHOWN:"shown"+s,HIDE:"hide"+s,HIDDEN:"hidden"+s,CLICK_DATA_API:"click"+s+".data-api"},p={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},f={WIDTH:"width",HEIGHT:"height"},h={ACTIVES:".card > .show, .card > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},m=function(){function s(e,n){i(this,s),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 s.prototype.toggle=function(){t(this._element).hasClass(p.SHOW)?this.hide():this.show()},s.prototype.show=function(){var e=this;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(!t(this._element).hasClass(p.SHOW)){var i=void 0,a=void 0;if(this._parent&&(i=t.makeArray(t(this._parent).find(h.ACTIVES)),i.length||(i=null)),!(i&&(a=t(i).data(n))&&a._isTransitioning)){var o=t.Event(c.SHOW);if(t(this._element).trigger(o),!o.isDefaultPrevented()){i&&(s._jQueryInterface.call(t(i),"hide"),a||t(i).data(n,null));var l=this._getDimension();t(this._element).removeClass(p.COLLAPSE).addClass(p.COLLAPSING),this._element.style[l]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&t(this._triggerArray).removeClass(p.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var u=function(){t(e._element).removeClass(p.COLLAPSING).addClass(p.COLLAPSE).addClass(p.SHOW),e._element.style[l]="",e.setTransitioning(!1),t(e._element).trigger(c.SHOWN)};if(!r.supportsTransitionEnd())return void u();var d=l[0].toUpperCase()+l.slice(1),f="scroll"+d;t(this._element).one(r.TRANSITION_END,u).emulateTransitionEnd(600),this._element.style[l]=this._element[f]+"px"}}}},s.prototype.hide=function(){var e=this;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(t(this._element).hasClass(p.SHOW)){var i=t.Event(c.HIDE);if(t(this._element).trigger(i),!i.isDefaultPrevented()){var n=this._getDimension(),a=n===f.WIDTH?"offsetWidth":"offsetHeight";this._element.style[n]=this._element[a]+"px",r.reflow(this._element),t(this._element).addClass(p.COLLAPSING).removeClass(p.COLLAPSE).removeClass(p.SHOW),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&t(this._triggerArray).addClass(p.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0);var o=function(){e.setTransitioning(!1),t(e._element).removeClass(p.COLLAPSING).addClass(p.COLLAPSE).trigger(c.HIDDEN)};return this._element.style[n]="",r.supportsTransitionEnd()?void t(this._element).one(r.TRANSITION_END,o).emulateTransitionEnd(600):void o()}}},s.prototype.setTransitioning=function(t){this._isTransitioning=t},s.prototype.dispose=function(){t.removeData(this._element,n),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},s.prototype._getConfig=function(i){return i=t.extend({},u,i),i.toggle=Boolean(i.toggle),r.typeCheckConfig(e,i,d),i},s.prototype._getDimension=function(){return t(this._element).hasClass(f.WIDTH)?f.WIDTH:f.HEIGHT},s.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(s._getTargetFromElement(i),[i])}),i},s.prototype._addAriaAndCollapsedClass=function(e,i){if(e){var n=t(e).hasClass(p.SHOW);e.setAttribute("aria-expanded",n),i.length&&t(i).toggleClass(p.COLLAPSED,!n).attr("aria-expanded",n)}},s._getTargetFromElement=function(e){var i=r.getSelectorFromElement(e);return i?t(i)[0]:null},s._jQueryInterface=function(e){return this.each(function(){var i=t(this),o=i.data(n),r=t.extend({},u,i.data(),"object"===(void 0===e?"undefined":a(e))&&e);if(!o&&r.toggle&&/show|hide/.test(e)&&(r.toggle=!1),o||(o=new s(this,r),i.data(n,o)),"string"==typeof e){if(void 0===o[e])throw new Error('No method named "'+e+'"');o[e]()}})},o(s,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return u}}]),s}();t(document).on(c.CLICK_DATA_API,h.DATA_TOGGLE,function(e){e.preventDefault();var i=m._getTargetFromElement(this),a=t(i).data(n),o=a?"toggle":t(this).data();m._jQueryInterface.call(t(i),o)}),t.fn[e]=m._jQueryInterface,t.fn[e].Constructor=m,t.fn[e].noConflict=function(){return t.fn[e]=l,m._jQueryInterface}}(jQuery),function(t){var e="dropdown",n="bs.dropdown",a="."+n,s=".data-api",l=t.fn[e],u={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,CLICK:"click"+a,CLICK_DATA_API:"click"+a+s,FOCUSIN_DATA_API:"focusin"+a+s,KEYDOWN_DATA_API:"keydown"+a+s},d={BACKDROP:"dropdown-backdrop",DISABLED:"disabled",SHOW:"show"},c={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'},p=function(){function e(t){i(this,e),this._element=t,this._addEventListeners()}return e.prototype.toggle=function(){if(this.disabled||t(this).hasClass(d.DISABLED))return!1;var i=e._getParentFromElement(this),n=t(i).hasClass(d.SHOW);if(e._clearMenus(),n)return!1;if("ontouchstart"in document.documentElement&&!t(i).closest(c.NAVBAR_NAV).length){var a=document.createElement("div");a.className=d.BACKDROP,t(a).insertBefore(this),t(a).on("click",e._clearMenus)}var o={relatedTarget:this},r=t.Event(u.SHOW,o);return t(i).trigger(r),!r.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded",!0),t(i).toggleClass(d.SHOW),t(i).trigger(t.Event(u.SHOWN,o)),!1)},e.prototype.dispose=function(){t.removeData(this._element,n),t(this._element).off(a),this._element=null},e.prototype._addEventListeners=function(){t(this._element).on(u.CLICK,this.toggle)},e._jQueryInterface=function(i){return this.each(function(){var a=t(this).data(n);if(a||(a=new e(this),t(this).data(n,a)),"string"==typeof i){if(void 0===a[i])throw new Error('No method named "'+i+'"');a[i].call(this)}})},e._clearMenus=function(i){if(!i||3!==i.which){var n=t(c.BACKDROP)[0];n&&n.parentNode.removeChild(n);for(var a=t.makeArray(t(c.DATA_TOGGLE)),o=0;o<a.length;o++){var r=e._getParentFromElement(a[o]),s={relatedTarget:a[o]};if(t(r).hasClass(d.SHOW)&&!(i&&("click"===i.type&&/input|textarea/i.test(i.target.tagName)||"focusin"===i.type)&&t.contains(r,i.target))){var l=t.Event(u.HIDE,s);t(r).trigger(l),l.isDefaultPrevented()||(a[o].setAttribute("aria-expanded","false"),t(r).removeClass(d.SHOW).trigger(t.Event(u.HIDDEN,s)))}}}},e._getParentFromElement=function(e){var i=void 0,n=r.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(d.DISABLED))){var n=e._getParentFromElement(this),a=t(n).hasClass(d.SHOW);if(!a&&27!==i.which||a&&27===i.which){if(27===i.which){var o=t(n).find(c.DATA_TOGGLE)[0];t(o).trigger("focus")}return void t(this).trigger("click")}var r=t(n).find(c.VISIBLE_ITEMS).get();if(r.length){var s=r.indexOf(i.target);38===i.which&&s>0&&s--,40===i.which&&s<r.length-1&&s++,s<0&&(s=0),r[s].focus()}}},o(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(u.KEYDOWN_DATA_API,c.DATA_TOGGLE,p._dataApiKeydownHandler).on(u.KEYDOWN_DATA_API,c.ROLE_MENU,p._dataApiKeydownHandler).on(u.KEYDOWN_DATA_API,c.ROLE_LISTBOX,p._dataApiKeydownHandler).on(u.CLICK_DATA_API+" "+u.FOCUSIN_DATA_API,p._clearMenus).on(u.CLICK_DATA_API,c.DATA_TOGGLE,p.prototype.toggle).on(u.CLICK_DATA_API,c.FORM_CHILD,function(t){t.stopPropagation()}),t.fn[e]=p._jQueryInterface,t.fn[e].Constructor=p,t.fn[e].noConflict=function(){return t.fn[e]=l,p._jQueryInterface}}(jQuery),function(t){var e="modal",n="bs.modal",s="."+n,l=t.fn[e],u={backdrop:!0,keyboard:!0,focus:!0,show:!0},d={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},c={HIDE:"hide"+s,HIDDEN:"hidden"+s,SHOW:"show"+s,SHOWN:"shown"+s,FOCUSIN:"focusin"+s,RESIZE:"resize"+s,CLICK_DISMISS:"click.dismiss"+s,KEYDOWN_DISMISS:"keydown.dismiss"+s,MOUSEUP_DISMISS:"mouseup.dismiss"+s,MOUSEDOWN_DISMISS:"mousedown.dismiss"+s,CLICK_DATA_API:"click"+s+".data-api"},p={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},f={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"},h=function(){function l(e,n){i(this,l),this._config=this._getConfig(n),this._element=e,this._dialog=t(e).find(f.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return l.prototype.toggle=function(t){return this._isShown?this.hide():this.show(t)},l.prototype.show=function(e){var i=this;if(this._isTransitioning)throw new Error("Modal is transitioning");r.supportsTransitionEnd()&&t(this._element).hasClass(p.FADE)&&(this._isTransitioning=!0);var n=t.Event(c.SHOW,{relatedTarget:e});t(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),t(document.body).addClass(p.OPEN),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(c.CLICK_DISMISS,f.DATA_DISMISS,function(t){return i.hide(t)}),t(this._dialog).on(c.MOUSEDOWN_DISMISS,function(){t(i._element).one(c.MOUSEUP_DISMISS,function(e){t(e.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(e)}))},l.prototype.hide=function(e){var i=this;if(e&&e.preventDefault(),this._isTransitioning)throw new Error("Modal is transitioning");var n=r.supportsTransitionEnd()&&t(this._element).hasClass(p.FADE);n&&(this._isTransitioning=!0);var a=t.Event(c.HIDE);t(this._element).trigger(a),this._isShown&&!a.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),t(document).off(c.FOCUSIN),t(this._element).removeClass(p.SHOW),t(this._element).off(c.CLICK_DISMISS),t(this._dialog).off(c.MOUSEDOWN_DISMISS),n?t(this._element).one(r.TRANSITION_END,function(t){return i._hideModal(t)}).emulateTransitionEnd(300):this._hideModal())},l.prototype.dispose=function(){t.removeData(this._element,n),t(window,document,this._element,this._backdrop).off(s),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},l.prototype._getConfig=function(i){return i=t.extend({},u,i),r.typeCheckConfig(e,i,d),i},l.prototype._showElement=function(e){var i=this,n=r.supportsTransitionEnd()&&t(this._element).hasClass(p.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&&r.reflow(this._element),t(this._element).addClass(p.SHOW),this._config.focus&&this._enforceFocus();var a=t.Event(c.SHOWN,{relatedTarget:e}),o=function(){i._config.focus&&i._element.focus(),i._isTransitioning=!1,t(i._element).trigger(a)};n?t(this._dialog).one(r.TRANSITION_END,o).emulateTransitionEnd(300):o()},l.prototype._enforceFocus=function(){var e=this;t(document).off(c.FOCUSIN).on(c.FOCUSIN,function(i){document===i.target||e._element===i.target||t(e._element).has(i.target).length||e._element.focus()})},l.prototype._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(c.KEYDOWN_DISMISS,function(t){27===t.which&&e.hide()}):this._isShown||t(this._element).off(c.KEYDOWN_DISMISS)},l.prototype._setResizeEvent=function(){var e=this;this._isShown?t(window).on(c.RESIZE,function(t){return e._handleUpdate(t)}):t(window).off(c.RESIZE)},l.prototype._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden","true"),this._isTransitioning=!1,this._showBackdrop(function(){t(document.body).removeClass(p.OPEN),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(c.HIDDEN)})},l.prototype._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},l.prototype._showBackdrop=function(e){var i=this,n=t(this._element).hasClass(p.FADE)?p.FADE:"";if(this._isShown&&this._config.backdrop){var a=r.supportsTransitionEnd()&&n;if(this._backdrop=document.createElement("div"),this._backdrop.className=p.BACKDROP,n&&t(this._backdrop).addClass(n),t(this._backdrop).appendTo(document.body),t(this._element).on(c.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()))}),a&&r.reflow(this._backdrop),t(this._backdrop).addClass(p.SHOW),!e)return;if(!a)return void e();t(this._backdrop).one(r.TRANSITION_END,e).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(p.SHOW);var o=function(){i._removeBackdrop(),e&&e()};r.supportsTransitionEnd()&&t(this._element).hasClass(p.FADE)?t(this._backdrop).one(r.TRANSITION_END,o).emulateTransitionEnd(150):o()}else e&&e()},l.prototype._handleUpdate=function(){this._adjustDialog()},l.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")},l.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},l.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},l.prototype._setScrollbar=function(){var e=parseInt(t(f.FIXED_CONTENT).css("padding-right")||0,10);this._originalBodyPadding=document.body.style.paddingRight||"",this._isBodyOverflowing&&(document.body.style.paddingRight=e+this._scrollbarWidth+"px")},l.prototype._resetScrollbar=function(){document.body.style.paddingRight=this._originalBodyPadding},l.prototype._getScrollbarWidth=function(){var t=document.createElement("div");t.className=p.SCROLLBAR_MEASURER,document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e},l._jQueryInterface=function(e,i){return this.each(function(){var o=t(this).data(n),r=t.extend({},l.Default,t(this).data(),"object"===(void 0===e?"undefined":a(e))&&e);if(o||(o=new l(this,r),t(this).data(n,o)),"string"==typeof e){if(void 0===o[e])throw new Error('No method named "'+e+'"');o[e](i)}else r.show&&o.show(i)})},o(l,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return u}}]),l}();t(document).on(c.CLICK_DATA_API,f.DATA_TOGGLE,function(e){var i=this,a=void 0,o=r.getSelectorFromElement(this);o&&(a=t(o)[0]);var s=t(a).data(n)?"toggle":t.extend({},t(a).data(),t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var l=t(a).one(c.SHOW,function(e){e.isDefaultPrevented()||l.one(c.HIDDEN,function(){t(i).is(":visible")&&i.focus()})});h._jQueryInterface.call(t(a),s,this)}),t.fn[e]=h._jQueryInterface,t.fn[e].Constructor=h,t.fn[e].noConflict=function(){return t.fn[e]=l,h._jQueryInterface}}(jQuery),function(t){var e="scrollspy",n="bs.scrollspy",s="."+n,l=t.fn[e],u={offset:10,method:"auto",target:""},d={offset:"number",method:"string",target:"(string|element)"},c={ACTIVATE:"activate"+s,SCROLL:"scroll"+s,LOAD_DATA_API:"load"+s+".data-api"},p={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",NAV_LINK:"nav-link",NAV:"nav",ACTIVE:"active"},f={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"},h={OFFSET:"offset",POSITION:"position"},m=function(){function l(e,n){var a=this;i(this,l),this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+f.NAV_LINKS+","+this._config.target+" "+f.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(c.SCROLL,function(t){return a._process(t)}),this.refresh(),this._process()}return l.prototype.refresh=function(){var e=this,i=this._scrollElement!==this._scrollElement.window?h.POSITION:h.OFFSET,n="auto"===this._config.method?i:this._config.method,a=n===h.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),t.makeArray(t(this._selector)).map(function(e){var i=void 0,o=r.getSelectorFromElement(e);return o&&(i=t(o)[0]),i&&(i.offsetWidth||i.offsetHeight)?[t(i)[n]().top+a,o]: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])})},l.prototype.dispose=function(){t.removeData(this._element,n),t(this._scrollElement).off(s),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},l.prototype._getConfig=function(i){if(i=t.extend({},u,i),"string"!=typeof i.target){var n=t(i.target).attr("id");n||(n=r.getUID(e),t(i.target).attr("id",n)),i.target="#"+n}return r.typeCheckConfig(e,i,d),i},l.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},l.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},l.prototype._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.offsetHeight},l.prototype._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){var n=this._targets[this._targets.length-1];return void(this._activeTarget!==n&&this._activate(n))}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var a=this._offsets.length;a--;){this._activeTarget!==this._targets[a]&&t>=this._offsets[a]&&(void 0===this._offsets[a+1]||t<this._offsets[a+1])&&this._activate(this._targets[a])}},l.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(f.DROPDOWN).find(f.DROPDOWN_TOGGLE).addClass(p.ACTIVE),n.addClass(p.ACTIVE)):n.parents(f.LI).find("> "+f.NAV_LINKS).addClass(p.ACTIVE),t(this._scrollElement).trigger(c.ACTIVATE,{relatedTarget:e})},l.prototype._clear=function(){t(this._selector).filter(f.ACTIVE).removeClass(p.ACTIVE)},l._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),o="object"===(void 0===e?"undefined":a(e))&&e;if(i||(i=new l(this,o),t(this).data(n,i)),"string"==typeof e){if(void 0===i[e])throw new Error('No method named "'+e+'"');i[e]()}})},o(l,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return u}}]),l}();t(window).on(c.LOAD_DATA_API,function(){for(var e=t.makeArray(t(f.DATA_SPY)),i=e.length;i--;){var n=t(e[i]);m._jQueryInterface.call(n,n.data())}}),t.fn[e]=m._jQueryInterface,t.fn[e].Constructor=m,t.fn[e].noConflict=function(){return t.fn[e]=l,m._jQueryInterface}}(jQuery),function(t){var e="tab",n="bs.tab",a="."+n,s=t.fn[e],l={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,CLICK_DATA_API:"click"+a+".data-api"},u={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},d={A:"a",LI:"li",DROPDOWN:".dropdown",LIST:"ul:not(.dropdown-menu), ol:not(.dropdown-menu), nav: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"},c=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(u.ACTIVE)||t(this._element).hasClass(u.DISABLED))){var i=void 0,n=void 0,a=t(this._element).closest(d.LIST)[0],o=r.getSelectorFromElement(this._element);a&&(n=t.makeArray(t(a).find(d.ACTIVE)),n=n[n.length-1]);var s=t.Event(l.HIDE,{relatedTarget:this._element}),c=t.Event(l.SHOW,{relatedTarget:n});if(n&&t(n).trigger(s),t(this._element).trigger(c),!c.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(i=t(o)[0]),this._activate(this._element,a);var p=function(){var i=t.Event(l.HIDDEN,{relatedTarget:e._element}),a=t.Event(l.SHOWN,{relatedTarget:n});t(n).trigger(i),t(e._element).trigger(a)};i?this._activate(i,i.parentNode,p):p()}}},e.prototype.dispose=function(){t.removeClass(this._element,n),this._element=null},e.prototype._activate=function(e,i,n){var a=this,o=t(i).find(d.ACTIVE_CHILD)[0],s=n&&r.supportsTransitionEnd()&&(o&&t(o).hasClass(u.FADE)||Boolean(t(i).find(d.FADE_CHILD)[0])),l=function(){return a._transitionComplete(e,o,s,n)};o&&s?t(o).one(r.TRANSITION_END,l).emulateTransitionEnd(150):l(),o&&t(o).removeClass(u.SHOW)},e.prototype._transitionComplete=function(e,i,n,a){if(i){t(i).removeClass(u.ACTIVE);var o=t(i.parentNode).find(d.DROPDOWN_ACTIVE_CHILD)[0];o&&t(o).removeClass(u.ACTIVE),i.setAttribute("aria-expanded",!1)}if(t(e).addClass(u.ACTIVE),e.setAttribute("aria-expanded",!0),n?(r.reflow(e),t(e).addClass(u.SHOW)):t(e).removeClass(u.FADE),e.parentNode&&t(e.parentNode).hasClass(u.DROPDOWN_MENU)){var s=t(e).closest(d.DROPDOWN)[0];s&&t(s).find(d.DROPDOWN_TOGGLE).addClass(u.ACTIVE),e.setAttribute("aria-expanded",!0)}a&&a()},e._jQueryInterface=function(i){return this.each(function(){var a=t(this),o=a.data(n);if(o||(o=new e(this),a.data(n,o)),"string"==typeof i){if(void 0===o[i])throw new Error('No method named "'+i+'"');o[i]()}})},o(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(l.CLICK_DATA_API,d.DATA_TOGGLE,function(e){e.preventDefault(),c._jQueryInterface.call(t(this),"show")}),t.fn[e]=c._jQueryInterface,t.fn[e].Constructor=c,t.fn[e].noConflict=function(){return t.fn[e]=s,c._jQueryInterface}}(jQuery),function(t){if("undefined"==typeof Tether)throw new Error("Bootstrap tooltips require Tether (http://tether.io/)");var e="tooltip",n="bs.tooltip",s="."+n,l=t.fn[e],u={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:[],container:!1},d={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",container:"(string|element|boolean)"},c={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},p={SHOW:"show",OUT:"out"},f={HIDE:"hide"+s,HIDDEN:"hidden"+s,SHOW:"show"+s,SHOWN:"shown"+s,INSERTED:"inserted"+s,CLICK:"click"+s,FOCUSIN:"focusin"+s,FOCUSOUT:"focusout"+s,MOUSEENTER:"mouseenter"+s,MOUSELEAVE:"mouseleave"+s},h={FADE:"fade",SHOW:"show"},m={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner"},g={element:!1,enabled:!1},v={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},y=function(){function l(t,e){i(this,l),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._isTransitioning=!1,this._tether=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}return l.prototype.enable=function(){this._isEnabled=!0},l.prototype.disable=function(){this._isEnabled=!1},l.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},l.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(h.SHOW))return void this._leave(null,this);this._enter(null,this)}},l.prototype.dispose=function(){clearTimeout(this._timeout),this.cleanupTether(),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal"),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},l.prototype.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var i=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){if(this._isTransitioning)throw new Error("Tooltip is transitioning");t(this.element).trigger(i);var n=t.contains(this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!n)return;var a=this.getTipElement(),o=r.getUID(this.constructor.NAME);a.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&t(a).addClass(h.FADE);var s="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,u=this._getAttachment(s),d=!1===this.config.container?document.body:t(this.config.container);t(a).data(this.constructor.DATA_KEY,this).appendTo(d),t(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:u,element:a,target:this.element,classes:g,classPrefix:"bs-tether",offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),r.reflow(a),this._tether.position(),t(a).addClass(h.SHOW);var c=function(){var i=e._hoverState;e._hoverState=null,e._isTransitioning=!1,t(e.element).trigger(e.constructor.Event.SHOWN),i===p.OUT&&e._leave(null,e)};if(r.supportsTransitionEnd()&&t(this.tip).hasClass(h.FADE))return this._isTransitioning=!0,void t(this.tip).one(r.TRANSITION_END,c).emulateTransitionEnd(l._TRANSITION_DURATION);c()}},l.prototype.hide=function(e){var i=this,n=this.getTipElement(),a=t.Event(this.constructor.Event.HIDE);if(this._isTransitioning)throw new Error("Tooltip is transitioning");var o=function(){i._hoverState!==p.SHOW&&n.parentNode&&n.parentNode.removeChild(n),i.element.removeAttribute("aria-describedby"),t(i.element).trigger(i.constructor.Event.HIDDEN),i._isTransitioning=!1,i.cleanupTether(),e&&e()};t(this.element).trigger(a),a.isDefaultPrevented()||(t(n).removeClass(h.SHOW),this._activeTrigger[v.CLICK]=!1,this._activeTrigger[v.FOCUS]=!1,this._activeTrigger[v.HOVER]=!1,r.supportsTransitionEnd()&&t(this.tip).hasClass(h.FADE)?(this._isTransitioning=!0,t(n).one(r.TRANSITION_END,o).emulateTransitionEnd(150)):o(),this._hoverState="")},l.prototype.isWithContent=function(){return Boolean(this.getTitle())},l.prototype.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0]},l.prototype.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(m.TOOLTIP_INNER),this.getTitle()),e.removeClass(h.FADE+" "+h.SHOW),this.cleanupTether()},l.prototype.setElementContent=function(e,i){var n=this.config.html;"object"===(void 0===i?"undefined":a(i))&&(i.nodeType||i.jquery)?n?t(i).parent().is(e)||e.empty().append(i):e.text(t(i).text()):e[n?"html":"text"](i)},l.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},l.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},l.prototype._getAttachment=function(t){return c[t.toUpperCase()]},l.prototype._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(i){if("click"===i)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(i!==v.MANUAL){var n=i===v.HOVER?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,a=i===v.HOVER?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(n,e.config.selector,function(t){return e._enter(t)}).on(a,e.config.selector,function(t){return e._leave(t)})}t(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},l.prototype._fixTitle=function(){var t=a(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",""))},l.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?v.FOCUS:v.HOVER]=!0),t(i.getTipElement()).hasClass(h.SHOW)||i._hoverState===p.SHOW?void(i._hoverState=p.SHOW):(clearTimeout(i._timeout),i._hoverState=p.SHOW,i.config.delay&&i.config.delay.show?void(i._timeout=setTimeout(function(){i._hoverState===p.SHOW&&i.show()},i.config.delay.show)):void i.show())},l.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?v.FOCUS:v.HOVER]=!1),!i._isWithActiveTrigger())return clearTimeout(i._timeout),i._hoverState=p.OUT,i.config.delay&&i.config.delay.hide?void(i._timeout=setTimeout(function(){i._hoverState===p.OUT&&i.hide()},i.config.delay.hide)):void i.hide()},l.prototype._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},l.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}),r.typeCheckConfig(e,i,this.constructor.DefaultType),i},l.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},l._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),o="object"===(void 0===e?"undefined":a(e))&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new l(this,o),t(this).data(n,i)),"string"==typeof e)){if(void 0===i[e])throw new Error('No method named "'+e+'"');i[e]()}})},o(l,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return u}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return n}},{key:"Event",get:function(){return f}},{key:"EVENT_KEY",get:function(){return s}},{key:"DefaultType",get:function(){return d}}]),l}();return t.fn[e]=y._jQueryInterface,t.fn[e].Constructor=y,t.fn[e].noConflict=function(){return t.fn[e]=l,y._jQueryInterface},y}(jQuery));!function(n){var r="popover",l="bs.popover",u="."+l,d=n.fn[r],c=n.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>'}),p=n.extend({},s.DefaultType,{content:"(string|element|function)"}),f={FADE:"fade",SHOW:"show"},h={TITLE:".popover-title",CONTENT:".popover-content"},m={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},g=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||n(this.config.template)[0]},d.prototype.setContent=function(){var t=n(this.getTipElement());this.setElementContent(t.find(h.TITLE),this.getTitle()),this.setElementContent(t.find(h.CONTENT),this._getContent()),t.removeClass(f.FADE+" "+f.SHOW),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=n(this).data(l),i="object"===(void 0===t?"undefined":a(t))?t:null;if((e||!/destroy|hide/.test(t))&&(e||(e=new d(this,i),n(this).data(l,e)),"string"==typeof t)){if(void 0===e[t])throw new Error('No method named "'+t+'"');e[t]()}})},o(d,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return c}},{key:"NAME",get:function(){return r}},{key:"DATA_KEY",get:function(){return l}},{key:"Event",get:function(){return m}},{key:"EVENT_KEY",get:function(){return u}},{key:"DefaultType",get:function(){return p}}]),d}(s);n.fn[r]=g._jQueryInterface,n.fn[r].Constructor=g,n.fn[r].noConflict=function(){return n.fn[r]=d,g._jQueryInterface}}(jQuery)}()},function(t,e,i){"use strict";!function(t){function e(t,e){return t+".touchspin_"+e}function i(i,n){return t.map(i,function(t){return e(t,n)})}var n=0;t.fn.TouchSpin=function(e){if("destroy"===e)return void this.each(function(){var e=t(this),n=e.data();t(document).off(i(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],n.spinnerid).join(" "))});var a={min:0,max:100,initval:"",replacementval:"",step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalupclass:"glyphicon glyphicon-chevron-up",verticaldownclass:"glyphicon glyphicon-chevron-down",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-default",buttonup_class:"btn btn-default",buttondown_txt:"-",buttonup_txt:"+"},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(){function r(){""!==E.initval&&""===M.val()&&M.val(E.initval)}function s(t){d(t),w();var e=I.input.val();""!==e&&(e=Number(I.input.val()),I.input.val(e.toFixed(E.decimals)))}function l(){E=t.extend({},a,L,u(),e)}function u(){var e={};return t.each(o,function(t,i){var n="bts-"+i;M.is("[data-"+n+"]")&&(e[t]=M.data(n))}),e}function d(e){E=t.extend({},E,e)}function c(){var t=M.val(),e=M.parent();""!==t&&(t=Number(t).toFixed(E.decimals)),M.data("initvalue",t).val(t),M.addClass("form-control"),e.hasClass("input-group")?p(e):f()}function p(e){e.addClass("bootstrap-touchspin");var i,n,a=M.prev(),o=M.next(),r='<span class="input-group-addon bootstrap-touchspin-prefix">'+E.prefix+"</span>",s='<span class="input-group-addon bootstrap-touchspin-postfix">'+E.postfix+"</span>";a.hasClass("input-group-btn")?(i='<button class="'+E.buttondown_class+' bootstrap-touchspin-down" type="button">'+E.buttondown_txt+"</button>",a.append(i)):(i='<span class="input-group-btn"><button class="'+E.buttondown_class+' bootstrap-touchspin-down" type="button">'+E.buttondown_txt+"</button></span>",t(i).insertBefore(M)),o.hasClass("input-group-btn")?(n='<button class="'+E.buttonup_class+' bootstrap-touchspin-up" type="button">'+E.buttonup_txt+"</button>",o.prepend(n)):(n='<span class="input-group-btn"><button class="'+E.buttonup_class+' bootstrap-touchspin-up" type="button">'+E.buttonup_txt+"</button></span>",t(n).insertAfter(M)),t(r).insertBefore(M),t(s).insertAfter(M),k=e}function f(){var e;e=E.verticalbuttons?'<div class="input-group bootstrap-touchspin"><span class="input-group-addon bootstrap-touchspin-prefix">'+E.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+E.postfix+'</span><span class="input-group-btn-vertical"><button class="'+E.buttondown_class+' bootstrap-touchspin-up" type="button"><i class="'+E.verticalupclass+'"></i></button><button class="'+E.buttonup_class+' bootstrap-touchspin-down" type="button"><i class="'+E.verticaldownclass+'"></i></button></span></div>':'<div class="input-group bootstrap-touchspin"><span class="input-group-btn"><button class="'+E.buttondown_class+' bootstrap-touchspin-down" type="button">'+E.buttondown_txt+'</button></span><span class="input-group-addon bootstrap-touchspin-prefix">'+E.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+E.postfix+'</span><span class="input-group-btn"><button class="'+E.buttonup_class+' bootstrap-touchspin-up" type="button">'+E.buttonup_txt+"</button></span></div>",k=t(e).insertBefore(M),t(".bootstrap-touchspin-prefix",k).after(M),M.hasClass("input-sm")?k.addClass("input-group-sm"):M.hasClass("input-lg")&&k.addClass("input-group-lg")}function h(){I={down:t(".bootstrap-touchspin-down",k),up:t(".bootstrap-touchspin-up",k),input:t("input",k),prefix:t(".bootstrap-touchspin-prefix",k).addClass(E.prefix_extraclass),postfix:t(".bootstrap-touchspin-postfix",k).addClass(E.postfix_extraclass)}}function m(){""===E.prefix&&I.prefix.hide(),""===E.postfix&&I.postfix.hide()}function g(){M.on("keydown",function(t){var e=t.keyCode||t.which;38===e?("up"!==H&&(_(),T()),t.preventDefault()):40===e&&("down"!==H&&(C(),x()),t.preventDefault())}),M.on("keyup",function(t){var e=t.keyCode||t.which;38===e?S():40===e&&S()}),M.on("blur",function(){w()}),I.down.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("down"!==H&&(C(),x()),t.preventDefault())}),I.down.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||S()}),I.up.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("up"!==H&&(_(),T()),t.preventDefault())}),I.up.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||S()}),I.down.on("mousedown.touchspin",function(t){I.down.off("touchstart.touchspin"),M.is(":disabled")||(C(),x(),t.preventDefault(),t.stopPropagation())}),I.down.on("touchstart.touchspin",function(t){I.down.off("mousedown.touchspin"),M.is(":disabled")||(C(),x(),t.preventDefault(),t.stopPropagation())}),I.up.on("mousedown.touchspin",function(t){I.up.off("touchstart.touchspin"),M.is(":disabled")||(_(),T(),t.preventDefault(),t.stopPropagation())}),I.up.on("touchstart.touchspin",function(t){I.up.off("mousedown.touchspin"),M.is(":disabled")||(_(),T(),t.preventDefault(),t.stopPropagation())}),I.up.on("mouseout touchleave touchend touchcancel",function(t){H&&(t.stopPropagation(),S())}),I.down.on("mouseout touchleave touchend touchcancel",function(t){H&&(t.stopPropagation(),S())}),I.down.on("mousemove touchmove",function(t){H&&(t.stopPropagation(),t.preventDefault())}),I.up.on("mousemove touchmove",function(t){H&&(t.stopPropagation(),t.preventDefault())}),t(document).on(i(["mouseup","touchend","touchcancel"],n).join(" "),function(t){H&&(t.preventDefault(),S())}),t(document).on(i(["mousemove","touchmove","scroll","scrollstart"],n).join(" "),function(t){H&&(t.preventDefault(),S())}),M.on("mousewheel DOMMouseScroll",function(t){if(E.mousewheel&&M.is(":focus")){var e=t.originalEvent.wheelDelta||-t.originalEvent.deltaY||-t.originalEvent.detail;t.stopPropagation(),t.preventDefault(),e<0?C():_()}})}function v(){M.on("touchspin.uponce",function(){S(),_()}),M.on("touchspin.downonce",function(){S(),C()}),M.on("touchspin.startupspin",function(){T()}),M.on("touchspin.startdownspin",function(){x()}),M.on("touchspin.stopspin",function(){S()}),M.on("touchspin.updatesettings",function(t,e){s(e)})}function y(t){switch(E.forcestepdivisibility){case"round":return(Math.round(t/E.step)*E.step).toFixed(E.decimals);case"floor":return(Math.floor(t/E.step)*E.step).toFixed(E.decimals);case"ceil":return(Math.ceil(t/E.step)*E.step).toFixed(E.decimals);default:return t}}function w(){var t,e,i;if(""===(t=M.val()))return void(""!==E.replacementval&&(M.val(E.replacementval),M.trigger("change")));E.decimals>0&&"."===t||(e=parseFloat(t),isNaN(e)&&(e=""!==E.replacementval?E.replacementval:0),i=e,e.toString()!==t&&(i=e),e<E.min&&(i=E.min),e>E.max&&(i=E.max),i=y(i),Number(t).toString()!==i.toString()&&(M.val(i),M.trigger("change")))}function b(){if(E.booster){var t=Math.pow(2,Math.floor(N/E.boostat))*E.step;return E.maxboostedstep&&t>E.maxboostedstep&&(t=E.maxboostedstep,A=Math.round(A/t)*t),Math.max(E.step,t)}return E.step}function _(){w(),A=parseFloat(I.input.val()),isNaN(A)&&(A=0);var t=A,e=b();A+=e,A>E.max&&(A=E.max,M.trigger("touchspin.on.max"),S()),I.input.val(Number(A).toFixed(E.decimals)),t!==A&&M.trigger("change")}function C(){w(),A=parseFloat(I.input.val()),isNaN(A)&&(A=0);var t=A,e=b();A-=e,A<E.min&&(A=E.min,M.trigger("touchspin.on.min"),S()),I.input.val(A.toFixed(E.decimals)),t!==A&&M.trigger("change")}function x(){S(),N=0,H="down",M.trigger("touchspin.on.startspin"),M.trigger("touchspin.on.startdownspin"),D=setTimeout(function(){P=setInterval(function(){N++,C()},E.stepinterval)},E.stepintervaldelay)}function T(){S(),N=0,H="up",M.trigger("touchspin.on.startspin"),M.trigger("touchspin.on.startupspin"),z=setTimeout(function(){O=setInterval(function(){N++,_()},E.stepinterval)},E.stepintervaldelay)}function S(){switch(clearTimeout(D),clearTimeout(z),clearInterval(P),clearInterval(O),H){case"up":M.trigger("touchspin.on.stopupspin"),M.trigger("touchspin.on.stopspin");break;case"down":M.trigger("touchspin.on.stopdownspin"),M.trigger("touchspin.on.stopspin")}N=0,H=!1}var E,k,I,A,P,O,D,z,M=t(this),L=M.data(),N=0,H=!1;!function(){M.data("alreadyinitialized")||(M.data("alreadyinitialized",!0),n+=1,M.data("spinnerid",n),M.is("input")&&(l(),r(),w(),c(),h(),m(),g(),v(),I.input.css("display","block")))}()})}}(jQuery)},function(t,e,i){"use strict";var n,a,o="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};!function(o,r){n=r,void 0!==(a="function"==typeof n?n.call(e,i,e,t):n)&&(t.exports=a)}(0,function(){return function(t){var e=function(t,e,n){var a={interval:100,sensitivity:6,timeout:0};a="object"===(void 0===t?"undefined":o(t))?i.extend(a,t):i.isFunction(e)?i.extend(a,{over:t,out:e,selector:n}):i.extend(a,{over:t,out:t,selector:e});var r,s,l,u,d=function(t){r=t.pageX,s=t.pageY},c=function t(e,n){if(n.hoverIntent_t=clearTimeout(n.hoverIntent_t),Math.sqrt((l-r)*(l-r)+(u-s)*(u-s))<a.sensitivity)return i(n).off("mousemove.hoverIntent",d),n.hoverIntent_s=!0,a.over.apply(n,[e]);l=r,u=s,n.hoverIntent_t=setTimeout(function(){t(e,n)},a.interval)},p=function(t,e){return e.hoverIntent_t=clearTimeout(e.hoverIntent_t),e.hoverIntent_s=!1,a.out.apply(e,[t])},f=function(t){var e=i.extend({},t),n=this;n.hoverIntent_t&&(n.hoverIntent_t=clearTimeout(n.hoverIntent_t)),"mouseenter"===t.type?(l=e.pageX,u=e.pageY,i(n).on("mousemove.hoverIntent",d),n.hoverIntent_s||(n.hoverIntent_t=setTimeout(function(){c(e,n)},a.interval))):(i(n).off("mousemove.hoverIntent",d),n.hoverIntent_s&&(n.hoverIntent_t=setTimeout(function(){p(e,n)},a.timeout)))};return this.on({"mouseenter.hoverIntent":f,"mouseleave.hoverIntent":f},a.selector)};if(t&&t.fn&&t.fn.jquery){var i=t;t.fn.hoverIntent=e}else{if(!(t&&t.jQuery&&t.jQuery.fn))throw new Error("Invalid Argument: Hoverintent expects either the window global with jquery, or an instance of jquery as a context");var i=t.jQuery;t.jQuery.fn.hoverIntent=e}}})},function(t,e,i){"use strict";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};!function(){var t,e=function e(a,o){function r(t){return Math.floor(t)}function s(){var t=C.params.autoplay,e=C.slides.eq(C.activeIndex);e.attr("data-swiper-autoplay")&&(t=e.attr("data-swiper-autoplay")||C.params.autoplay),C.autoplayTimeoutId=setTimeout(function(){C.params.loop?(C.fixLoop(),C._slideNext(),C.emit("onAutoplay",C)):C.isEnd?o.autoplayStopOnLast?C.stopAutoplay():(C._slideTo(0),C.emit("onAutoplay",C)):(C._slideNext(),C.emit("onAutoplay",C))},t)}function l(e,i){var n=t(e.target);if(!n.is(i))if("string"==typeof i)n=n.parents(i);else if(i.nodeType){var a;return n.parents().each(function(t,e){e===i&&(a=i)}),a?i:void 0}if(0!==n.length)return n[0]}function u(t,e){e=e||{};var i=window.MutationObserver||window.WebkitMutationObserver,n=new i(function(t){t.forEach(function(t){C.onResize(!0),C.emit("onObserverUpdate",C,t)})});n.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),C.observers.push(n)}function d(t){t.originalEvent&&(t=t.originalEvent);var e=t.keyCode||t.charCode;if(!C.params.allowSwipeToNext&&(C.isHorizontal()&&39===e||!C.isHorizontal()&&40===e))return!1;if(!C.params.allowSwipeToPrev&&(C.isHorizontal()&&37===e||!C.isHorizontal()&&38===e))return!1;if(!(t.shiftKey||t.altKey||t.ctrlKey||t.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===e||39===e||38===e||40===e){var i=!1;if(C.container.parents("."+C.params.slideClass).length>0&&0===C.container.parents("."+C.params.slideActiveClass).length)return;var n={left:window.pageXOffset,top:window.pageYOffset},a=window.innerWidth,o=window.innerHeight,r=C.container.offset();C.rtl&&(r.left=r.left-C.container[0].scrollLeft);for(var s=[[r.left,r.top],[r.left+C.width,r.top],[r.left,r.top+C.height],[r.left+C.width,r.top+C.height]],l=0;l<s.length;l++){var u=s[l];u[0]>=n.left&&u[0]<=n.left+a&&u[1]>=n.top&&u[1]<=n.top+o&&(i=!0)}if(!i)return}C.isHorizontal()?(37!==e&&39!==e||(t.preventDefault?t.preventDefault():t.returnValue=!1),(39===e&&!C.rtl||37===e&&C.rtl)&&C.slideNext(),(37===e&&!C.rtl||39===e&&C.rtl)&&C.slidePrev()):(38!==e&&40!==e||(t.preventDefault?t.preventDefault():t.returnValue=!1),40===e&&C.slideNext(),38===e&&C.slidePrev()),C.emit("onKeyPress",C,e)}}function c(t){var e=0,i=0,n=0,a=0;return"detail"in t&&(i=t.detail),"wheelDelta"in t&&(i=-t.wheelDelta/120),"wheelDeltaY"in t&&(i=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=i,i=0),n=10*e,a=10*i,"deltaY"in t&&(a=t.deltaY),"deltaX"in t&&(n=t.deltaX),(n||a)&&t.deltaMode&&(1===t.deltaMode?(n*=40,a*=40):(n*=800,a*=800)),n&&!e&&(e=n<1?-1:1),a&&!i&&(i=a<1?-1:1),{spinX:e,spinY:i,pixelX:n,pixelY:a}}function p(t){t.originalEvent&&(t=t.originalEvent);var e=0,i=C.rtl?-1:1,n=c(t);if(C.params.mousewheelForceToAxis)if(C.isHorizontal()){if(!(Math.abs(n.pixelX)>Math.abs(n.pixelY)))return;e=n.pixelX*i}else{if(!(Math.abs(n.pixelY)>Math.abs(n.pixelX)))return;e=n.pixelY}else e=Math.abs(n.pixelX)>Math.abs(n.pixelY)?-n.pixelX*i:-n.pixelY;if(0!==e){if(C.params.mousewheelInvert&&(e=-e),C.params.freeMode){var a=C.getWrapperTranslate()+e*C.params.mousewheelSensitivity,o=C.isBeginning,r=C.isEnd;if(a>=C.minTranslate()&&(a=C.minTranslate()),a<=C.maxTranslate()&&(a=C.maxTranslate()),C.setWrapperTransition(0),C.setWrapperTranslate(a),C.updateProgress(),C.updateActiveIndex(),(!o&&C.isBeginning||!r&&C.isEnd)&&C.updateClasses(),C.params.freeModeSticky?(clearTimeout(C.mousewheel.timeout),C.mousewheel.timeout=setTimeout(function(){C.slideReset()},300)):C.params.lazyLoading&&C.lazy&&C.lazy.load(),C.emit("onScroll",C,t),C.params.autoplay&&C.params.autoplayDisableOnInteraction&&C.stopAutoplay(),0===a||a===C.maxTranslate())return}else{if((new window.Date).getTime()-C.mousewheel.lastScrollTime>60)if(e<0)if(C.isEnd&&!C.params.loop||C.animating){if(C.params.mousewheelReleaseOnEdges)return!0}else C.slideNext(),C.emit("onScroll",C,t);else if(C.isBeginning&&!C.params.loop||C.animating){if(C.params.mousewheelReleaseOnEdges)return!0}else C.slidePrev(),C.emit("onScroll",C,t);C.mousewheel.lastScrollTime=(new window.Date).getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1}}function f(e,i){e=t(e);var n,a,o,r=C.rtl?-1:1;n=e.attr("data-swiper-parallax")||"0",a=e.attr("data-swiper-parallax-x"),o=e.attr("data-swiper-parallax-y"),a||o?(a=a||"0",o=o||"0"):C.isHorizontal()?(a=n,o="0"):(o=n,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*i*r+"%":a*i*r+"px",o=o.indexOf("%")>=0?parseInt(o,10)*i+"%":o*i+"px",e.transform("translate3d("+a+", "+o+",0px)")}function h(t){return 0!==t.indexOf("on")&&(t=t[0]!==t[0].toUpperCase()?"on"+t[0].toUpperCase()+t.substring(1):"on"+t),t}if(!(this instanceof e))return new e(a,o);var m={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,zoom:!1,zoomMax:3,zoomMin:1,zoomToggle:!0,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,mousewheelEventsTarged:"container",hashnav:!1,hashnavWatchState:!1,history:!1,replaceState:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",normalizeSlideIndex:!0,allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",paginationClickableClass:"swiper-pagination-clickable",paginationModifierClass:"swiper-pagination-",lazyLoadingClass:"swiper-lazy",lazyStatusLoadingClass:"swiper-lazy-loading",lazyStatusLoadedClass:"swiper-lazy-loaded",lazyPreloaderClass:"swiper-lazy-preloader",notificationClass:"swiper-notification",preloaderClass:"preloader",zoomContainerClass:"swiper-zoom-container",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0},g=o&&o.virtualTranslate;o=o||{};var v={};for(var y in o)if("object"!==n(o[y])||null===o[y]||(o[y].nodeType||o[y]===window||o[y]===document||void 0!==i&&o[y]instanceof i||"undefined"!=typeof jQuery&&o[y]instanceof jQuery))v[y]=o[y];else{v[y]={};for(var w in o[y])v[y][w]=o[y][w]}for(var b in m)if(void 0===o[b])o[b]=m[b];else if("object"===n(o[b]))for(var _ in m[b])void 0===o[b][_]&&(o[b][_]=m[b][_]);var C=this;if(C.params=o,C.originalParams=v,C.classNames=[],void 0!==t&&void 0!==i&&(t=i),(void 0!==t||(t=void 0===i?window.Dom7||window.Zepto||window.jQuery:i))&&(C.$=t,C.currentBreakpoint=void 0,C.getActiveBreakpoint=function(){if(!C.params.breakpoints)return!1;var t,e=!1,i=[];for(t in C.params.breakpoints)C.params.breakpoints.hasOwnProperty(t)&&i.push(t);i.sort(function(t,e){return parseInt(t,10)>parseInt(e,10)});for(var n=0;n<i.length;n++)(t=i[n])>=window.innerWidth&&!e&&(e=t);return e||"max"},C.setBreakpoint=function(){var t=C.getActiveBreakpoint();if(t&&C.currentBreakpoint!==t){var e=t in C.params.breakpoints?C.params.breakpoints[t]:C.originalParams,i=C.params.loop&&e.slidesPerView!==C.params.slidesPerView;for(var n in e)C.params[n]=e[n];C.currentBreakpoint=t,i&&C.destroyLoop&&C.reLoop(!0)}},C.params.breakpoints&&C.setBreakpoint(),C.container=t(a),0!==C.container.length)){if(C.container.length>1){var x=[];return C.container.each(function(){x.push(new e(this,o))}),x}C.container[0].swiper=C,C.container.data("swiper",C),C.classNames.push(C.params.containerModifierClass+C.params.direction),C.params.freeMode&&C.classNames.push(C.params.containerModifierClass+"free-mode"),C.support.flexbox||(C.classNames.push(C.params.containerModifierClass+"no-flexbox"),C.params.slidesPerColumn=1),C.params.autoHeight&&C.classNames.push(C.params.containerModifierClass+"autoheight"),(C.params.parallax||C.params.watchSlidesVisibility)&&(C.params.watchSlidesProgress=!0),C.params.touchReleaseOnEdges&&(C.params.resistanceRatio=0),["cube","coverflow","flip"].indexOf(C.params.effect)>=0&&(C.support.transforms3d?(C.params.watchSlidesProgress=!0,C.classNames.push(C.params.containerModifierClass+"3d")):C.params.effect="slide"),"slide"!==C.params.effect&&C.classNames.push(C.params.containerModifierClass+C.params.effect),"cube"===C.params.effect&&(C.params.resistanceRatio=0,C.params.slidesPerView=1,C.params.slidesPerColumn=1,C.params.slidesPerGroup=1,C.params.centeredSlides=!1,C.params.spaceBetween=0,C.params.virtualTranslate=!0),"fade"!==C.params.effect&&"flip"!==C.params.effect||(C.params.slidesPerView=1,C.params.slidesPerColumn=1,C.params.slidesPerGroup=1,C.params.watchSlidesProgress=!0,C.params.spaceBetween=0,void 0===g&&(C.params.virtualTranslate=!0)),C.params.grabCursor&&C.support.touch&&(C.params.grabCursor=!1),C.wrapper=C.container.children("."+C.params.wrapperClass),C.params.pagination&&(C.paginationContainer=t(C.params.pagination),C.params.uniqueNavElements&&"string"==typeof C.params.pagination&&C.paginationContainer.length>1&&1===C.container.find(C.params.pagination).length&&(C.paginationContainer=C.container.find(C.params.pagination)),"bullets"===C.params.paginationType&&C.params.paginationClickable?C.paginationContainer.addClass(C.params.paginationModifierClass+"clickable"):C.params.paginationClickable=!1,C.paginationContainer.addClass(C.params.paginationModifierClass+C.params.paginationType)),(C.params.nextButton||C.params.prevButton)&&(C.params.nextButton&&(C.nextButton=t(C.params.nextButton),C.params.uniqueNavElements&&"string"==typeof C.params.nextButton&&C.nextButton.length>1&&1===C.container.find(C.params.nextButton).length&&(C.nextButton=C.container.find(C.params.nextButton))),C.params.prevButton&&(C.prevButton=t(C.params.prevButton),C.params.uniqueNavElements&&"string"==typeof C.params.prevButton&&C.prevButton.length>1&&1===C.container.find(C.params.prevButton).length&&(C.prevButton=C.container.find(C.params.prevButton)))),C.isHorizontal=function(){return"horizontal"===C.params.direction},C.rtl=C.isHorizontal()&&("rtl"===C.container[0].dir.toLowerCase()||"rtl"===C.container.css("direction")),C.rtl&&C.classNames.push(C.params.containerModifierClass+"rtl"),C.rtl&&(C.wrongRTL="-webkit-box"===C.wrapper.css("display")),C.params.slidesPerColumn>1&&C.classNames.push(C.params.containerModifierClass+"multirow"),C.device.android&&C.classNames.push(C.params.containerModifierClass+"android"),C.container.addClass(C.classNames.join(" ")),C.translate=0,C.progress=0,C.velocity=0,C.lockSwipeToNext=function(){C.params.allowSwipeToNext=!1,!1===C.params.allowSwipeToPrev&&C.params.grabCursor&&C.unsetGrabCursor()},C.lockSwipeToPrev=function(){C.params.allowSwipeToPrev=!1,!1===C.params.allowSwipeToNext&&C.params.grabCursor&&C.unsetGrabCursor()},C.lockSwipes=function(){C.params.allowSwipeToNext=C.params.allowSwipeToPrev=!1,C.params.grabCursor&&C.unsetGrabCursor()},C.unlockSwipeToNext=function(){C.params.allowSwipeToNext=!0,!0===C.params.allowSwipeToPrev&&C.params.grabCursor&&C.setGrabCursor()},C.unlockSwipeToPrev=function(){C.params.allowSwipeToPrev=!0,!0===C.params.allowSwipeToNext&&C.params.grabCursor&&C.setGrabCursor()},C.unlockSwipes=function(){C.params.allowSwipeToNext=C.params.allowSwipeToPrev=!0,C.params.grabCursor&&C.setGrabCursor()},C.setGrabCursor=function(t){C.container[0].style.cursor="move",C.container[0].style.cursor=t?"-webkit-grabbing":"-webkit-grab",C.container[0].style.cursor=t?"-moz-grabbin":"-moz-grab",C.container[0].style.cursor=t?"grabbing":"grab"},C.unsetGrabCursor=function(){C.container[0].style.cursor=""},C.params.grabCursor&&C.setGrabCursor(),C.imagesToLoad=[],C.imagesLoaded=0,C.loadImage=function(t,e,i,n,a,o){function r(){o&&o()}var s;t.complete&&a?r():e?(s=new window.Image,s.onload=r,s.onerror=r,n&&(s.sizes=n),i&&(s.srcset=i),e&&(s.src=e)):r()},C.preloadImages=function(){function t(){void 0!==C&&null!==C&&C&&(void 0!==C.imagesLoaded&&C.imagesLoaded++,C.imagesLoaded===C.imagesToLoad.length&&(C.params.updateOnImagesReady&&C.update(),C.emit("onImagesReady",C)))}C.imagesToLoad=C.container.find("img");for(var e=0;e<C.imagesToLoad.length;e++)C.loadImage(C.imagesToLoad[e],C.imagesToLoad[e].currentSrc||C.imagesToLoad[e].getAttribute("src"),C.imagesToLoad[e].srcset||C.imagesToLoad[e].getAttribute("srcset"),C.imagesToLoad[e].sizes||C.imagesToLoad[e].getAttribute("sizes"),!0,t)},C.autoplayTimeoutId=void 0,C.autoplaying=!1,C.autoplayPaused=!1,C.startAutoplay=function(){return void 0===C.autoplayTimeoutId&&(!!C.params.autoplay&&(!C.autoplaying&&(C.autoplaying=!0,C.emit("onAutoplayStart",C),void s())))},C.stopAutoplay=function(t){C.autoplayTimeoutId&&(C.autoplayTimeoutId&&clearTimeout(C.autoplayTimeoutId),C.autoplaying=!1,C.autoplayTimeoutId=void 0,C.emit("onAutoplayStop",C))},C.pauseAutoplay=function(t){C.autoplayPaused||(C.autoplayTimeoutId&&clearTimeout(C.autoplayTimeoutId),C.autoplayPaused=!0,0===t?(C.autoplayPaused=!1,s()):C.wrapper.transitionEnd(function(){C&&(C.autoplayPaused=!1,C.autoplaying?s():C.stopAutoplay())}))},C.minTranslate=function(){return-C.snapGrid[0]},C.maxTranslate=function(){return-C.snapGrid[C.snapGrid.length-1]},C.updateAutoHeight=function(){var t,e=[],i=0;if("auto"!==C.params.slidesPerView&&C.params.slidesPerView>1)for(t=0;t<Math.ceil(C.params.slidesPerView);t++){var n=C.activeIndex+t;if(n>C.slides.length)break;e.push(C.slides.eq(n)[0])}else e.push(C.slides.eq(C.activeIndex)[0]);for(t=0;t<e.length;t++)if(void 0!==e[t]){var a=e[t].offsetHeight;i=a>i?a:i}i&&C.wrapper.css("height",i+"px")},C.updateContainerSize=function(){var t,e;t=void 0!==C.params.width?C.params.width:C.container[0].clientWidth,e=void 0!==C.params.height?C.params.height:C.container[0].clientHeight,0===t&&C.isHorizontal()||0===e&&!C.isHorizontal()||(t=t-parseInt(C.container.css("padding-left"),10)-parseInt(C.container.css("padding-right"),10),e=e-parseInt(C.container.css("padding-top"),10)-parseInt(C.container.css("padding-bottom"),10),C.width=t,C.height=e,C.size=C.isHorizontal()?C.width:C.height)},C.updateSlidesSize=function(){C.slides=C.wrapper.children("."+C.params.slideClass),C.snapGrid=[],C.slidesGrid=[],C.slidesSizesGrid=[];var t,e=C.params.spaceBetween,i=-C.params.slidesOffsetBefore,n=0,a=0;if(void 0!==C.size){"string"==typeof e&&e.indexOf("%")>=0&&(e=parseFloat(e.replace("%",""))/100*C.size),C.virtualSize=-e,C.rtl?C.slides.css({marginLeft:"",marginTop:""}):C.slides.css({marginRight:"",marginBottom:""});var o;C.params.slidesPerColumn>1&&(o=Math.floor(C.slides.length/C.params.slidesPerColumn)===C.slides.length/C.params.slidesPerColumn?C.slides.length:Math.ceil(C.slides.length/C.params.slidesPerColumn)*C.params.slidesPerColumn,"auto"!==C.params.slidesPerView&&"row"===C.params.slidesPerColumnFill&&(o=Math.max(o,C.params.slidesPerView*C.params.slidesPerColumn)));var s,l=C.params.slidesPerColumn,u=o/l,d=u-(C.params.slidesPerColumn*u-C.slides.length);for(t=0;t<C.slides.length;t++){s=0;var c=C.slides.eq(t);if(C.params.slidesPerColumn>1){var p,f,h;"column"===C.params.slidesPerColumnFill?(f=Math.floor(t/l),h=t-f*l,(f>d||f===d&&h===l-1)&&++h>=l&&(h=0,f++),p=f+h*o/l,c.css({"-webkit-box-ordinal-group":p,"-moz-box-ordinal-group":p,"-ms-flex-order":p,"-webkit-order":p,order:p})):(h=Math.floor(t/u),f=t-h*u),c.css("margin-"+(C.isHorizontal()?"top":"left"),0!==h&&C.params.spaceBetween&&C.params.spaceBetween+"px").attr("data-swiper-column",f).attr("data-swiper-row",h)}"none"!==c.css("display")&&("auto"===C.params.slidesPerView?(s=C.isHorizontal()?c.outerWidth(!0):c.outerHeight(!0),C.params.roundLengths&&(s=r(s))):(s=(C.size-(C.params.slidesPerView-1)*e)/C.params.slidesPerView,C.params.roundLengths&&(s=r(s)),C.isHorizontal()?C.slides[t].style.width=s+"px":C.slides[t].style.height=s+"px"),C.slides[t].swiperSlideSize=s,C.slidesSizesGrid.push(s),C.params.centeredSlides?(i=i+s/2+n/2+e,0===n&&0!==t&&(i=i-C.size/2-e),0===t&&(i=i-C.size/2-e),Math.abs(i)<.001&&(i=0),a%C.params.slidesPerGroup==0&&C.snapGrid.push(i),C.slidesGrid.push(i)):(a%C.params.slidesPerGroup==0&&C.snapGrid.push(i),C.slidesGrid.push(i),i=i+s+e),C.virtualSize+=s+e,n=s,a++)}C.virtualSize=Math.max(C.virtualSize,C.size)+C.params.slidesOffsetAfter;var m;if(C.rtl&&C.wrongRTL&&("slide"===C.params.effect||"coverflow"===C.params.effect)&&C.wrapper.css({width:C.virtualSize+C.params.spaceBetween+"px"}),C.support.flexbox&&!C.params.setWrapperSize||(C.isHorizontal()?C.wrapper.css({width:C.virtualSize+C.params.spaceBetween+"px"}):C.wrapper.css({height:C.virtualSize+C.params.spaceBetween+"px"})),C.params.slidesPerColumn>1&&(C.virtualSize=(s+C.params.spaceBetween)*o,C.virtualSize=Math.ceil(C.virtualSize/C.params.slidesPerColumn)-C.params.spaceBetween,C.isHorizontal()?C.wrapper.css({width:C.virtualSize+C.params.spaceBetween+"px"}):C.wrapper.css({height:C.virtualSize+C.params.spaceBetween+"px"}),C.params.centeredSlides)){for(m=[],t=0;t<C.snapGrid.length;t++)C.snapGrid[t]<C.virtualSize+C.snapGrid[0]&&m.push(C.snapGrid[t]);C.snapGrid=m}if(!C.params.centeredSlides){for(m=[],t=0;t<C.snapGrid.length;t++)C.snapGrid[t]<=C.virtualSize-C.size&&m.push(C.snapGrid[t]);C.snapGrid=m,Math.floor(C.virtualSize-C.size)-Math.floor(C.snapGrid[C.snapGrid.length-1])>1&&C.snapGrid.push(C.virtualSize-C.size)}0===C.snapGrid.length&&(C.snapGrid=[0]),0!==C.params.spaceBetween&&(C.isHorizontal()?C.rtl?C.slides.css({marginLeft:e+"px"}):C.slides.css({marginRight:e+"px"}):C.slides.css({marginBottom:e+"px"})),C.params.watchSlidesProgress&&C.updateSlidesOffset()}},C.updateSlidesOffset=function(){for(var t=0;t<C.slides.length;t++)C.slides[t].swiperSlideOffset=C.isHorizontal()?C.slides[t].offsetLeft:C.slides[t].offsetTop},C.currentSlidesPerView=function(){var t,e,i=1;if(C.params.centeredSlides){var n,a=C.slides[C.activeIndex].swiperSlideSize;for(t=C.activeIndex+1;t<C.slides.length;t++)C.slides[t]&&!n&&(a+=C.slides[t].swiperSlideSize,i++,a>C.size&&(n=!0));for(e=C.activeIndex-1;e>=0;e--)C.slides[e]&&!n&&(a+=C.slides[e].swiperSlideSize,i++,a>C.size&&(n=!0))}else for(t=C.activeIndex+1;t<C.slides.length;t++)C.slidesGrid[t]-C.slidesGrid[C.activeIndex]<C.size&&i++;return i},C.updateSlidesProgress=function(t){if(void 0===t&&(t=C.translate||0),0!==C.slides.length){void 0===C.slides[0].swiperSlideOffset&&C.updateSlidesOffset();var e=-t;C.rtl&&(e=t),C.slides.removeClass(C.params.slideVisibleClass);for(var i=0;i<C.slides.length;i++){var n=C.slides[i],a=(e+(C.params.centeredSlides?C.minTranslate():0)-n.swiperSlideOffset)/(n.swiperSlideSize+C.params.spaceBetween);if(C.params.watchSlidesVisibility){var o=-(e-n.swiperSlideOffset),r=o+C.slidesSizesGrid[i];(o>=0&&o<C.size||r>0&&r<=C.size||o<=0&&r>=C.size)&&C.slides.eq(i).addClass(C.params.slideVisibleClass)}n.progress=C.rtl?-a:a}}},C.updateProgress=function(t){void 0===t&&(t=C.translate||0);var e=C.maxTranslate()-C.minTranslate(),i=C.isBeginning,n=C.isEnd;0===e?(C.progress=0,C.isBeginning=C.isEnd=!0):(C.progress=(t-C.minTranslate())/e,C.isBeginning=C.progress<=0,C.isEnd=C.progress>=1),C.isBeginning&&!i&&C.emit("onReachBeginning",C),C.isEnd&&!n&&C.emit("onReachEnd",C),C.params.watchSlidesProgress&&C.updateSlidesProgress(t),C.emit("onProgress",C,C.progress)},C.updateActiveIndex=function(){var t,e,i,n=C.rtl?C.translate:-C.translate;for(e=0;e<C.slidesGrid.length;e++)void 0!==C.slidesGrid[e+1]?n>=C.slidesGrid[e]&&n<C.slidesGrid[e+1]-(C.slidesGrid[e+1]-C.slidesGrid[e])/2?t=e:n>=C.slidesGrid[e]&&n<C.slidesGrid[e+1]&&(t=e+1):n>=C.slidesGrid[e]&&(t=e);C.params.normalizeSlideIndex&&(t<0||void 0===t)&&(t=0),i=Math.floor(t/C.params.slidesPerGroup),i>=C.snapGrid.length&&(i=C.snapGrid.length-1),t!==C.activeIndex&&(C.snapIndex=i,C.previousIndex=C.activeIndex,C.activeIndex=t,C.updateClasses(),C.updateRealIndex())},C.updateRealIndex=function(){C.realIndex=parseInt(C.slides.eq(C.activeIndex).attr("data-swiper-slide-index")||C.activeIndex,10)},C.updateClasses=function(){C.slides.removeClass(C.params.slideActiveClass+" "+C.params.slideNextClass+" "+C.params.slidePrevClass+" "+C.params.slideDuplicateActiveClass+" "+C.params.slideDuplicateNextClass+" "+C.params.slideDuplicatePrevClass);var e=C.slides.eq(C.activeIndex);e.addClass(C.params.slideActiveClass),o.loop&&(e.hasClass(C.params.slideDuplicateClass)?C.wrapper.children("."+C.params.slideClass+":not(."+C.params.slideDuplicateClass+')[data-swiper-slide-index="'+C.realIndex+'"]').addClass(C.params.slideDuplicateActiveClass):C.wrapper.children("."+C.params.slideClass+"."+C.params.slideDuplicateClass+'[data-swiper-slide-index="'+C.realIndex+'"]').addClass(C.params.slideDuplicateActiveClass));var i=e.next("."+C.params.slideClass).addClass(C.params.slideNextClass);C.params.loop&&0===i.length&&(i=C.slides.eq(0),i.addClass(C.params.slideNextClass));var n=e.prev("."+C.params.slideClass).addClass(C.params.slidePrevClass);if(C.params.loop&&0===n.length&&(n=C.slides.eq(-1),n.addClass(C.params.slidePrevClass)),o.loop&&(i.hasClass(C.params.slideDuplicateClass)?C.wrapper.children("."+C.params.slideClass+":not(."+C.params.slideDuplicateClass+')[data-swiper-slide-index="'+i.attr("data-swiper-slide-index")+'"]').addClass(C.params.slideDuplicateNextClass):C.wrapper.children("."+C.params.slideClass+"."+C.params.slideDuplicateClass+'[data-swiper-slide-index="'+i.attr("data-swiper-slide-index")+'"]').addClass(C.params.slideDuplicateNextClass),n.hasClass(C.params.slideDuplicateClass)?C.wrapper.children("."+C.params.slideClass+":not(."+C.params.slideDuplicateClass+')[data-swiper-slide-index="'+n.attr("data-swiper-slide-index")+'"]').addClass(C.params.slideDuplicatePrevClass):C.wrapper.children("."+C.params.slideClass+"."+C.params.slideDuplicateClass+'[data-swiper-slide-index="'+n.attr("data-swiper-slide-index")+'"]').addClass(C.params.slideDuplicatePrevClass)),C.paginationContainer&&C.paginationContainer.length>0){var a,r=C.params.loop?Math.ceil((C.slides.length-2*C.loopedSlides)/C.params.slidesPerGroup):C.snapGrid.length;if(C.params.loop?(a=Math.ceil((C.activeIndex-C.loopedSlides)/C.params.slidesPerGroup),a>C.slides.length-1-2*C.loopedSlides&&(a-=C.slides.length-2*C.loopedSlides),a>r-1&&(a-=r),a<0&&"bullets"!==C.params.paginationType&&(a=r+a)):a=void 0!==C.snapIndex?C.snapIndex:C.activeIndex||0,"bullets"===C.params.paginationType&&C.bullets&&C.bullets.length>0&&(C.bullets.removeClass(C.params.bulletActiveClass),C.paginationContainer.length>1?C.bullets.each(function(){t(this).index()===a&&t(this).addClass(C.params.bulletActiveClass)}):C.bullets.eq(a).addClass(C.params.bulletActiveClass)),"fraction"===C.params.paginationType&&(C.paginationContainer.find("."+C.params.paginationCurrentClass).text(a+1),C.paginationContainer.find("."+C.params.paginationTotalClass).text(r)),"progress"===C.params.paginationType){var s=(a+1)/r,l=s,u=1;C.isHorizontal()||(u=s,l=1),C.paginationContainer.find("."+C.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+l+") scaleY("+u+")").transition(C.params.speed)}"custom"===C.params.paginationType&&C.params.paginationCustomRender&&(C.paginationContainer.html(C.params.paginationCustomRender(C,a+1,r)),C.emit("onPaginationRendered",C,C.paginationContainer[0]))}C.params.loop||(C.params.prevButton&&C.prevButton&&C.prevButton.length>0&&(C.isBeginning?(C.prevButton.addClass(C.params.buttonDisabledClass),C.params.a11y&&C.a11y&&C.a11y.disable(C.prevButton)):(C.prevButton.removeClass(C.params.buttonDisabledClass),C.params.a11y&&C.a11y&&C.a11y.enable(C.prevButton))),C.params.nextButton&&C.nextButton&&C.nextButton.length>0&&(C.isEnd?(C.nextButton.addClass(C.params.buttonDisabledClass),C.params.a11y&&C.a11y&&C.a11y.disable(C.nextButton)):(C.nextButton.removeClass(C.params.buttonDisabledClass),C.params.a11y&&C.a11y&&C.a11y.enable(C.nextButton))))},C.updatePagination=function(){if(C.params.pagination&&C.paginationContainer&&C.paginationContainer.length>0){var t="";if("bullets"===C.params.paginationType){for(var e=C.params.loop?Math.ceil((C.slides.length-2*C.loopedSlides)/C.params.slidesPerGroup):C.snapGrid.length,i=0;i<e;i++)C.params.paginationBulletRender?t+=C.params.paginationBulletRender(C,i,C.params.bulletClass):t+="<"+C.params.paginationElement+' class="'+C.params.bulletClass+'"></'+C.params.paginationElement+">";C.paginationContainer.html(t),C.bullets=C.paginationContainer.find("."+C.params.bulletClass),C.params.paginationClickable&&C.params.a11y&&C.a11y&&C.a11y.initPagination()}"fraction"===C.params.paginationType&&(t=C.params.paginationFractionRender?C.params.paginationFractionRender(C,C.params.paginationCurrentClass,C.params.paginationTotalClass):'<span class="'+C.params.paginationCurrentClass+'"></span> / <span class="'+C.params.paginationTotalClass+'"></span>',C.paginationContainer.html(t)),"progress"===C.params.paginationType&&(t=C.params.paginationProgressRender?C.params.paginationProgressRender(C,C.params.paginationProgressbarClass):'<span class="'+C.params.paginationProgressbarClass+'"></span>',C.paginationContainer.html(t)),"custom"!==C.params.paginationType&&C.emit("onPaginationRendered",C,C.paginationContainer[0])}},C.update=function(t){function e(){C.rtl,C.translate;i=Math.min(Math.max(C.translate,C.maxTranslate()),C.minTranslate()),C.setWrapperTranslate(i),C.updateActiveIndex(),C.updateClasses()}if(C){C.updateContainerSize(),C.updateSlidesSize(),C.updateProgress(),C.updatePagination(),C.updateClasses(),C.params.scrollbar&&C.scrollbar&&C.scrollbar.set();var i;if(t){C.controller&&C.controller.spline&&(C.controller.spline=void 0),C.params.freeMode?(e(),C.params.autoHeight&&C.updateAutoHeight()):(("auto"===C.params.slidesPerView||C.params.slidesPerView>1)&&C.isEnd&&!C.params.centeredSlides?C.slideTo(C.slides.length-1,0,!1,!0):C.slideTo(C.activeIndex,0,!1,!0))||e()}else C.params.autoHeight&&C.updateAutoHeight()}},C.onResize=function(t){C.params.onBeforeResize&&C.params.onBeforeResize(C),C.params.breakpoints&&C.setBreakpoint();var e=C.params.allowSwipeToPrev,i=C.params.allowSwipeToNext;C.params.allowSwipeToPrev=C.params.allowSwipeToNext=!0,C.updateContainerSize(),C.updateSlidesSize(),("auto"===C.params.slidesPerView||C.params.freeMode||t)&&C.updatePagination(),C.params.scrollbar&&C.scrollbar&&C.scrollbar.set(),C.controller&&C.controller.spline&&(C.controller.spline=void 0);var n=!1;if(C.params.freeMode){var a=Math.min(Math.max(C.translate,C.maxTranslate()),C.minTranslate());C.setWrapperTranslate(a),C.updateActiveIndex(),C.updateClasses(),C.params.autoHeight&&C.updateAutoHeight()}else C.updateClasses(),n=("auto"===C.params.slidesPerView||C.params.slidesPerView>1)&&C.isEnd&&!C.params.centeredSlides?C.slideTo(C.slides.length-1,0,!1,!0):C.slideTo(C.activeIndex,0,!1,!0);C.params.lazyLoading&&!n&&C.lazy&&C.lazy.load(),C.params.allowSwipeToPrev=e,C.params.allowSwipeToNext=i,C.params.onAfterResize&&C.params.onAfterResize(C)},C.touchEventsDesktop={start:"mousedown",move:"mousemove",end:"mouseup"},window.navigator.pointerEnabled?C.touchEventsDesktop={start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled&&(C.touchEventsDesktop={start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}),C.touchEvents={start:C.support.touch||!C.params.simulateTouch?"touchstart":C.touchEventsDesktop.start,move:C.support.touch||!C.params.simulateTouch?"touchmove":C.touchEventsDesktop.move,end:C.support.touch||!C.params.simulateTouch?"touchend":C.touchEventsDesktop.end},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===C.params.touchEventsTarget?C.container:C.wrapper).addClass("swiper-wp8-"+C.params.direction),C.initEvents=function(t){var e=t?"off":"on",i=t?"removeEventListener":"addEventListener",n="container"===C.params.touchEventsTarget?C.container[0]:C.wrapper[0],a=C.support.touch?n:document,r=!!C.params.nested;if(C.browser.ie)n[i](C.touchEvents.start,C.onTouchStart,!1),a[i](C.touchEvents.move,C.onTouchMove,r),a[i](C.touchEvents.end,C.onTouchEnd,!1);else{if(C.support.touch){var s=!("touchstart"!==C.touchEvents.start||!C.support.passiveListener||!C.params.passiveListeners)&&{passive:!0,capture:!1};n[i](C.touchEvents.start,C.onTouchStart,s),n[i](C.touchEvents.move,C.onTouchMove,r),n[i](C.touchEvents.end,C.onTouchEnd,s)}(o.simulateTouch&&!C.device.ios&&!C.device.android||o.simulateTouch&&!C.support.touch&&C.device.ios)&&(n[i]("mousedown",C.onTouchStart,!1),document[i]("mousemove",C.onTouchMove,r),document[i]("mouseup",C.onTouchEnd,!1))}window[i]("resize",C.onResize),C.params.nextButton&&C.nextButton&&C.nextButton.length>0&&(C.nextButton[e]("click",C.onClickNext),C.params.a11y&&C.a11y&&C.nextButton[e]("keydown",C.a11y.onEnterKey)),C.params.prevButton&&C.prevButton&&C.prevButton.length>0&&(C.prevButton[e]("click",C.onClickPrev),C.params.a11y&&C.a11y&&C.prevButton[e]("keydown",C.a11y.onEnterKey)),C.params.pagination&&C.params.paginationClickable&&(C.paginationContainer[e]("click","."+C.params.bulletClass,C.onClickIndex),C.params.a11y&&C.a11y&&C.paginationContainer[e]("keydown","."+C.params.bulletClass,C.a11y.onEnterKey)),(C.params.preventClicks||C.params.preventClicksPropagation)&&n[i]("click",C.preventClicks,!0)},C.attachEvents=function(){C.initEvents()},C.detachEvents=function(){C.initEvents(!0)},C.allowClick=!0,C.preventClicks=function(t){C.allowClick||(C.params.preventClicks&&t.preventDefault(),C.params.preventClicksPropagation&&C.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))},C.onClickNext=function(t){t.preventDefault(),C.isEnd&&!C.params.loop||C.slideNext()},C.onClickPrev=function(t){t.preventDefault(),C.isBeginning&&!C.params.loop||C.slidePrev()},C.onClickIndex=function(e){e.preventDefault();var i=t(this).index()*C.params.slidesPerGroup;C.params.loop&&(i+=C.loopedSlides),C.slideTo(i)},C.updateClickedSlide=function(e){var i=l(e,"."+C.params.slideClass),n=!1;if(i)for(var a=0;a<C.slides.length;a++)C.slides[a]===i&&(n=!0);if(!i||!n)return C.clickedSlide=void 0,void(C.clickedIndex=void 0);if(C.clickedSlide=i,C.clickedIndex=t(i).index(),C.params.slideToClickedSlide&&void 0!==C.clickedIndex&&C.clickedIndex!==C.activeIndex){var o,r=C.clickedIndex,s="auto"===C.params.slidesPerView?C.currentSlidesPerView():C.params.slidesPerView;if(C.params.loop){if(C.animating)return;o=parseInt(t(C.clickedSlide).attr("data-swiper-slide-index"),10),C.params.centeredSlides?r<C.loopedSlides-s/2||r>C.slides.length-C.loopedSlides+s/2?(C.fixLoop(),r=C.wrapper.children("."+C.params.slideClass+'[data-swiper-slide-index="'+o+'"]:not(.'+C.params.slideDuplicateClass+")").eq(0).index(),setTimeout(function(){C.slideTo(r)},0)):C.slideTo(r):r>C.slides.length-s?(C.fixLoop(),r=C.wrapper.children("."+C.params.slideClass+'[data-swiper-slide-index="'+o+'"]:not(.'+C.params.slideDuplicateClass+")").eq(0).index(),setTimeout(function(){C.slideTo(r)},0)):C.slideTo(r)}else C.slideTo(r)}};var T,S,E,k,I,A,P,O,D,z,M="input, select, textarea, button, video",L=Date.now(),N=[];C.animating=!1,C.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var H,B;C.onTouchStart=function(e){if(e.originalEvent&&(e=e.originalEvent),(H="touchstart"===e.type)||!("which"in e)||3!==e.which){if(C.params.noSwiping&&l(e,"."+C.params.noSwipingClass))return void(C.allowClick=!0);if(!C.params.swipeHandler||l(e,C.params.swipeHandler)){var i=C.touches.currentX="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,n=C.touches.currentY="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY;if(!(C.device.ios&&C.params.iOSEdgeSwipeDetection&&i<=C.params.iOSEdgeSwipeThreshold)){if(T=!0,S=!1,E=!0,I=void 0,B=void 0,C.touches.startX=i,C.touches.startY=n,k=Date.now(),C.allowClick=!0,C.updateContainerSize(),C.swipeDirection=void 0,C.params.threshold>0&&(O=!1),"touchstart"!==e.type){var a=!0;t(e.target).is(M)&&(a=!1),document.activeElement&&t(document.activeElement).is(M)&&document.activeElement.blur(),a&&e.preventDefault()}C.emit("onTouchStart",C,e)}}}},C.onTouchMove=function(e){if(e.originalEvent&&(e=e.originalEvent),!H||"mousemove"!==e.type){if(e.preventedByNestedSwiper)return C.touches.startX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,void(C.touches.startY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY);if(C.params.onlyExternal)return C.allowClick=!1,void(T&&(C.touches.startX=C.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,C.touches.startY=C.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,k=Date.now()));if(H&&C.params.touchReleaseOnEdges&&!C.params.loop)if(C.isHorizontal()){if(C.touches.currentX<C.touches.startX&&C.translate<=C.maxTranslate()||C.touches.currentX>C.touches.startX&&C.translate>=C.minTranslate())return}else if(C.touches.currentY<C.touches.startY&&C.translate<=C.maxTranslate()||C.touches.currentY>C.touches.startY&&C.translate>=C.minTranslate())return;if(H&&document.activeElement&&e.target===document.activeElement&&t(e.target).is(M))return S=!0,void(C.allowClick=!1);if(E&&C.emit("onTouchMove",C,e),!(e.targetTouches&&e.targetTouches.length>1)){if(C.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,C.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,void 0===I){var i;C.isHorizontal()&&C.touches.currentY===C.touches.startY||!C.isHorizontal()&&C.touches.currentX===C.touches.startX?I=!1:(i=180*Math.atan2(Math.abs(C.touches.currentY-C.touches.startY),Math.abs(C.touches.currentX-C.touches.startX))/Math.PI,I=C.isHorizontal()?i>C.params.touchAngle:90-i>C.params.touchAngle)}if(I&&C.emit("onTouchMoveOpposite",C,e),void 0===B&&(C.touches.currentX===C.touches.startX&&C.touches.currentY===C.touches.startY||(B=!0)),T){if(I)return void(T=!1);if(B){C.allowClick=!1,C.emit("onSliderMove",C,e),e.preventDefault(),C.params.touchMoveStopPropagation&&!C.params.nested&&e.stopPropagation(),S||(o.loop&&C.fixLoop(),P=C.getWrapperTranslate(),C.setWrapperTransition(0),C.animating&&C.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),C.params.autoplay&&C.autoplaying&&(C.params.autoplayDisableOnInteraction?C.stopAutoplay():C.pauseAutoplay()),z=!1,!C.params.grabCursor||!0!==C.params.allowSwipeToNext&&!0!==C.params.allowSwipeToPrev||C.setGrabCursor(!0)),S=!0;var n=C.touches.diff=C.isHorizontal()?C.touches.currentX-C.touches.startX:C.touches.currentY-C.touches.startY;n*=C.params.touchRatio,C.rtl&&(n=-n),C.swipeDirection=n>0?"prev":"next",A=n+P;var a=!0;if(n>0&&A>C.minTranslate()?(a=!1,C.params.resistance&&(A=C.minTranslate()-1+Math.pow(-C.minTranslate()+P+n,C.params.resistanceRatio))):n<0&&A<C.maxTranslate()&&(a=!1,C.params.resistance&&(A=C.maxTranslate()+1-Math.pow(C.maxTranslate()-P-n,C.params.resistanceRatio))),a&&(e.preventedByNestedSwiper=!0),!C.params.allowSwipeToNext&&"next"===C.swipeDirection&&A<P&&(A=P),!C.params.allowSwipeToPrev&&"prev"===C.swipeDirection&&A>P&&(A=P),C.params.threshold>0){if(!(Math.abs(n)>C.params.threshold||O))return void(A=P);if(!O)return O=!0,C.touches.startX=C.touches.currentX,C.touches.startY=C.touches.currentY,A=P,void(C.touches.diff=C.isHorizontal()?C.touches.currentX-C.touches.startX:C.touches.currentY-C.touches.startY)}C.params.followFinger&&((C.params.freeMode||C.params.watchSlidesProgress)&&C.updateActiveIndex(),C.params.freeMode&&(0===N.length&&N.push({position:C.touches[C.isHorizontal()?"startX":"startY"],time:k}),N.push({position:C.touches[C.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()})),C.updateProgress(A),C.setWrapperTranslate(A))}}}}},C.onTouchEnd=function(e){if(e.originalEvent&&(e=e.originalEvent),E&&C.emit("onTouchEnd",C,e),E=!1,T){C.params.grabCursor&&S&&T&&(!0===C.params.allowSwipeToNext||!0===C.params.allowSwipeToPrev)&&C.setGrabCursor(!1);var i=Date.now(),n=i-k;if(C.allowClick&&(C.updateClickedSlide(e),C.emit("onTap",C,e),n<300&&i-L>300&&(D&&clearTimeout(D),D=setTimeout(function(){C&&(C.params.paginationHide&&C.paginationContainer.length>0&&!t(e.target).hasClass(C.params.bulletClass)&&C.paginationContainer.toggleClass(C.params.paginationHiddenClass),C.emit("onClick",C,e))},300)),n<300&&i-L<300&&(D&&clearTimeout(D),C.emit("onDoubleTap",C,e))),L=Date.now(),setTimeout(function(){C&&(C.allowClick=!0)},0),!T||!S||!C.swipeDirection||0===C.touches.diff||A===P)return void(T=S=!1);T=S=!1;var a;if(a=C.params.followFinger?C.rtl?C.translate:-C.translate:-A,C.params.freeMode){if(a<-C.minTranslate())return void C.slideTo(C.activeIndex);if(a>-C.maxTranslate())return void(C.slides.length<C.snapGrid.length?C.slideTo(C.snapGrid.length-1):C.slideTo(C.slides.length-1));if(C.params.freeModeMomentum){if(N.length>1){var o=N.pop(),r=N.pop(),s=o.position-r.position,l=o.time-r.time;C.velocity=s/l,C.velocity=C.velocity/2,Math.abs(C.velocity)<C.params.freeModeMinimumVelocity&&(C.velocity=0),(l>150||(new window.Date).getTime()-o.time>300)&&(C.velocity=0)}else C.velocity=0;C.velocity=C.velocity*C.params.freeModeMomentumVelocityRatio,N.length=0;var u=1e3*C.params.freeModeMomentumRatio,d=C.velocity*u,c=C.translate+d;C.rtl&&(c=-c);var p,f=!1,h=20*Math.abs(C.velocity)*C.params.freeModeMomentumBounceRatio;if(c<C.maxTranslate())C.params.freeModeMomentumBounce?(c+C.maxTranslate()<-h&&(c=C.maxTranslate()-h),p=C.maxTranslate(),f=!0,z=!0):c=C.maxTranslate();else if(c>C.minTranslate())C.params.freeModeMomentumBounce?(c-C.minTranslate()>h&&(c=C.minTranslate()+h),p=C.minTranslate(),f=!0,z=!0):c=C.minTranslate();else if(C.params.freeModeSticky){var m,g=0;for(g=0;g<C.snapGrid.length;g+=1)if(C.snapGrid[g]>-c){m=g;break}c=Math.abs(C.snapGrid[m]-c)<Math.abs(C.snapGrid[m-1]-c)||"next"===C.swipeDirection?C.snapGrid[m]:C.snapGrid[m-1],C.rtl||(c=-c)}if(0!==C.velocity)u=C.rtl?Math.abs((-c-C.translate)/C.velocity):Math.abs((c-C.translate)/C.velocity);else if(C.params.freeModeSticky)return void C.slideReset();C.params.freeModeMomentumBounce&&f?(C.updateProgress(p),C.setWrapperTransition(u),C.setWrapperTranslate(c),C.onTransitionStart(),C.animating=!0,C.wrapper.transitionEnd(function(){C&&z&&(C.emit("onMomentumBounce",C),C.setWrapperTransition(C.params.speed),C.setWrapperTranslate(p),C.wrapper.transitionEnd(function(){C&&C.onTransitionEnd()}))})):C.velocity?(C.updateProgress(c),C.setWrapperTransition(u),C.setWrapperTranslate(c),C.onTransitionStart(),C.animating||(C.animating=!0,C.wrapper.transitionEnd(function(){C&&C.onTransitionEnd()}))):C.updateProgress(c),C.updateActiveIndex()}return void((!C.params.freeModeMomentum||n>=C.params.longSwipesMs)&&(C.updateProgress(),C.updateActiveIndex()))}var v,y=0,w=C.slidesSizesGrid[0];for(v=0;v<C.slidesGrid.length;v+=C.params.slidesPerGroup)void 0!==C.slidesGrid[v+C.params.slidesPerGroup]?a>=C.slidesGrid[v]&&a<C.slidesGrid[v+C.params.slidesPerGroup]&&(y=v,w=C.slidesGrid[v+C.params.slidesPerGroup]-C.slidesGrid[v]):a>=C.slidesGrid[v]&&(y=v,w=C.slidesGrid[C.slidesGrid.length-1]-C.slidesGrid[C.slidesGrid.length-2]);var b=(a-C.slidesGrid[y])/w;if(n>C.params.longSwipesMs){if(!C.params.longSwipes)return void C.slideTo(C.activeIndex);"next"===C.swipeDirection&&(b>=C.params.longSwipesRatio?C.slideTo(y+C.params.slidesPerGroup):C.slideTo(y)),"prev"===C.swipeDirection&&(b>1-C.params.longSwipesRatio?C.slideTo(y+C.params.slidesPerGroup):C.slideTo(y))}else{if(!C.params.shortSwipes)return void C.slideTo(C.activeIndex);"next"===C.swipeDirection&&C.slideTo(y+C.params.slidesPerGroup),"prev"===C.swipeDirection&&C.slideTo(y)}}},C._slideTo=function(t,e){return C.slideTo(t,e,!0,!0)},C.slideTo=function(t,e,i,n){void 0===i&&(i=!0),void 0===t&&(t=0),t<0&&(t=0),C.snapIndex=Math.floor(t/C.params.slidesPerGroup),C.snapIndex>=C.snapGrid.length&&(C.snapIndex=C.snapGrid.length-1);var a=-C.snapGrid[C.snapIndex];if(C.params.autoplay&&C.autoplaying&&(n||!C.params.autoplayDisableOnInteraction?C.pauseAutoplay(e):C.stopAutoplay()),C.updateProgress(a),C.params.normalizeSlideIndex)for(var o=0;o<C.slidesGrid.length;o++)-Math.floor(100*a)>=Math.floor(100*C.slidesGrid[o])&&(t=o);return!(!C.params.allowSwipeToNext&&a<C.translate&&a<C.minTranslate())&&(!(!C.params.allowSwipeToPrev&&a>C.translate&&a>C.maxTranslate()&&(C.activeIndex||0)!==t)&&(void 0===e&&(e=C.params.speed),C.previousIndex=C.activeIndex||0,C.activeIndex=t,C.updateRealIndex(),C.rtl&&-a===C.translate||!C.rtl&&a===C.translate?(C.params.autoHeight&&C.updateAutoHeight(),C.updateClasses(),"slide"!==C.params.effect&&C.setWrapperTranslate(a),!1):(C.updateClasses(),C.onTransitionStart(i),0===e||C.browser.lteIE9?(C.setWrapperTranslate(a),C.setWrapperTransition(0),C.onTransitionEnd(i)):(C.setWrapperTranslate(a),C.setWrapperTransition(e),C.animating||(C.animating=!0,C.wrapper.transitionEnd(function(){C&&C.onTransitionEnd(i)}))),!0)))},C.onTransitionStart=function(t){void 0===t&&(t=!0),C.params.autoHeight&&C.updateAutoHeight(),C.lazy&&C.lazy.onTransitionStart(),t&&(C.emit("onTransitionStart",C),C.activeIndex!==C.previousIndex&&(C.emit("onSlideChangeStart",C),C.activeIndex>C.previousIndex?C.emit("onSlideNextStart",C):C.emit("onSlidePrevStart",C)))},C.onTransitionEnd=function(t){C.animating=!1,C.setWrapperTransition(0),void 0===t&&(t=!0),C.lazy&&C.lazy.onTransitionEnd(),t&&(C.emit("onTransitionEnd",C),C.activeIndex!==C.previousIndex&&(C.emit("onSlideChangeEnd",C),C.activeIndex>C.previousIndex?C.emit("onSlideNextEnd",C):C.emit("onSlidePrevEnd",C))),C.params.history&&C.history&&C.history.setHistory(C.params.history,C.activeIndex),C.params.hashnav&&C.hashnav&&C.hashnav.setHash()},C.slideNext=function(t,e,i){if(C.params.loop){if(C.animating)return!1;C.fixLoop();C.container[0].clientLeft;return C.slideTo(C.activeIndex+C.params.slidesPerGroup,e,t,i)}return C.slideTo(C.activeIndex+C.params.slidesPerGroup,e,t,i)},C._slideNext=function(t){return C.slideNext(!0,t,!0)},C.slidePrev=function(t,e,i){if(C.params.loop){if(C.animating)return!1;C.fixLoop();C.container[0].clientLeft;return C.slideTo(C.activeIndex-1,e,t,i)}return C.slideTo(C.activeIndex-1,e,t,i)},C._slidePrev=function(t){return C.slidePrev(!0,t,!0)},C.slideReset=function(t,e,i){return C.slideTo(C.activeIndex,e,t)},C.disableTouchControl=function(){return C.params.onlyExternal=!0,!0},C.enableTouchControl=function(){return C.params.onlyExternal=!1,!0},C.setWrapperTransition=function(t,e){C.wrapper.transition(t),"slide"!==C.params.effect&&C.effects[C.params.effect]&&C.effects[C.params.effect].setTransition(t),C.params.parallax&&C.parallax&&C.parallax.setTransition(t),C.params.scrollbar&&C.scrollbar&&C.scrollbar.setTransition(t),C.params.control&&C.controller&&C.controller.setTransition(t,e),C.emit("onSetTransition",C,t)},C.setWrapperTranslate=function(t,e,i){var n=0,a=0;C.isHorizontal()?n=C.rtl?-t:t:a=t,C.params.roundLengths&&(n=r(n),a=r(a)),C.params.virtualTranslate||(C.support.transforms3d?C.wrapper.transform("translate3d("+n+"px, "+a+"px, 0px)"):C.wrapper.transform("translate("+n+"px, "+a+"px)")),C.translate=C.isHorizontal()?n:a;var o,s=C.maxTranslate()-C.minTranslate();o=0===s?0:(t-C.minTranslate())/s,o!==C.progress&&C.updateProgress(t),e&&C.updateActiveIndex(),"slide"!==C.params.effect&&C.effects[C.params.effect]&&C.effects[C.params.effect].setTranslate(C.translate),C.params.parallax&&C.parallax&&C.parallax.setTranslate(C.translate),C.params.scrollbar&&C.scrollbar&&C.scrollbar.setTranslate(C.translate),C.params.control&&C.controller&&C.controller.setTranslate(C.translate,i),C.emit("onSetTranslate",C,C.translate)},C.getTranslate=function(t,e){var i,n,a,o;return void 0===e&&(e="x"),C.params.virtualTranslate?C.rtl?-C.translate:C.translate:(a=window.getComputedStyle(t,null),window.WebKitCSSMatrix?(n=a.transform||a.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(function(t){return t.replace(",",".")}).join(", ")),o=new window.WebKitCSSMatrix("none"===n?"":n)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=o.toString().split(",")),"x"===e&&(n=window.WebKitCSSMatrix?o.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===e&&(n=window.WebKitCSSMatrix?o.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),C.rtl&&n&&(n=-n),n||0)},C.getWrapperTranslate=function(t){return void 0===t&&(t=C.isHorizontal()?"x":"y"),C.getTranslate(C.wrapper[0],t)},C.observers=[],C.initObservers=function(){if(C.params.observeParents)for(var t=C.container.parents(),e=0;e<t.length;e++)u(t[e]);u(C.container[0],{childList:!1}),u(C.wrapper[0],{attributes:!1})},C.disconnectObservers=function(){for(var t=0;t<C.observers.length;t++)C.observers[t].disconnect();C.observers=[]},C.createLoop=function(){C.wrapper.children("."+C.params.slideClass+"."+C.params.slideDuplicateClass).remove();var e=C.wrapper.children("."+C.params.slideClass);"auto"!==C.params.slidesPerView||C.params.loopedSlides||(C.params.loopedSlides=e.length),C.loopedSlides=parseInt(C.params.loopedSlides||C.params.slidesPerView,10),C.loopedSlides=C.loopedSlides+C.params.loopAdditionalSlides,C.loopedSlides>e.length&&(C.loopedSlides=e.length);var i,n=[],a=[];for(e.each(function(i,o){var r=t(this);i<C.loopedSlides&&a.push(o),i<e.length&&i>=e.length-C.loopedSlides&&n.push(o),r.attr("data-swiper-slide-index",i)}),i=0;i<a.length;i++)C.wrapper.append(t(a[i].cloneNode(!0)).addClass(C.params.slideDuplicateClass));for(i=n.length-1;i>=0;i--)C.wrapper.prepend(t(n[i].cloneNode(!0)).addClass(C.params.slideDuplicateClass))},C.destroyLoop=function(){C.wrapper.children("."+C.params.slideClass+"."+C.params.slideDuplicateClass).remove(),C.slides.removeAttr("data-swiper-slide-index")},C.reLoop=function(t){var e=C.activeIndex-C.loopedSlides;C.destroyLoop(),C.createLoop(),C.updateSlidesSize(),t&&C.slideTo(e+C.loopedSlides,0,!1)},C.fixLoop=function(){var t;C.activeIndex<C.loopedSlides?(t=C.slides.length-3*C.loopedSlides+C.activeIndex,t+=C.loopedSlides,C.slideTo(t,0,!1,!0)):("auto"===C.params.slidesPerView&&C.activeIndex>=2*C.loopedSlides||C.activeIndex>C.slides.length-2*C.params.slidesPerView)&&(t=-C.slides.length+C.activeIndex+C.loopedSlides,t+=C.loopedSlides,C.slideTo(t,0,!1,!0))},C.appendSlide=function(t){if(C.params.loop&&C.destroyLoop(),"object"===(void 0===t?"undefined":n(t))&&t.length)for(var e=0;e<t.length;e++)t[e]&&C.wrapper.append(t[e]);else C.wrapper.append(t);C.params.loop&&C.createLoop(),C.params.observer&&C.support.observer||C.update(!0)},C.prependSlide=function(t){C.params.loop&&C.destroyLoop();var e=C.activeIndex+1;if("object"===(void 0===t?"undefined":n(t))&&t.length){for(var i=0;i<t.length;i++)t[i]&&C.wrapper.prepend(t[i]);e=C.activeIndex+t.length}else C.wrapper.prepend(t);C.params.loop&&C.createLoop(),C.params.observer&&C.support.observer||C.update(!0),C.slideTo(e,0,!1)},C.removeSlide=function(t){C.params.loop&&(C.destroyLoop(),C.slides=C.wrapper.children("."+C.params.slideClass));var e,i=C.activeIndex;if("object"===(void 0===t?"undefined":n(t))&&t.length){for(var a=0;a<t.length;a++)e=t[a],C.slides[e]&&C.slides.eq(e).remove(),e<i&&i--;i=Math.max(i,0)}else e=t,C.slides[e]&&C.slides.eq(e).remove(),e<i&&i--,i=Math.max(i,0);C.params.loop&&C.createLoop(),C.params.observer&&C.support.observer||C.update(!0),C.params.loop?C.slideTo(i+C.loopedSlides,0,!1):C.slideTo(i,0,!1)},C.removeAllSlides=function(){for(var t=[],e=0;e<C.slides.length;e++)t.push(e);C.removeSlide(t)},C.effects={fade:{setTranslate:function(){for(var t=0;t<C.slides.length;t++){var e=C.slides.eq(t),i=e[0].swiperSlideOffset,n=-i;C.params.virtualTranslate||(n-=C.translate);var a=0;C.isHorizontal()||(a=n,n=0);var o=C.params.fade.crossFade?Math.max(1-Math.abs(e[0].progress),0):1+Math.min(Math.max(e[0].progress,-1),0);e.css({opacity:o}).transform("translate3d("+n+"px, "+a+"px, 0px)")}},setTransition:function(t){if(C.slides.transition(t),C.params.virtualTranslate&&0!==t){var e=!1;C.slides.transitionEnd(function(){if(!e&&C){e=!0,C.animating=!1;for(var t=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i=0;i<t.length;i++)C.wrapper.trigger(t[i])}})}}},flip:{setTranslate:function(){for(var e=0;e<C.slides.length;e++){var i=C.slides.eq(e),n=i[0].progress;C.params.flip.limitRotation&&(n=Math.max(Math.min(i[0].progress,1),-1));var a=i[0].swiperSlideOffset,o=-180*n,r=o,s=0,l=-a,u=0;if(C.isHorizontal()?C.rtl&&(r=-r):(u=l,l=0,s=-r,r=0),i[0].style.zIndex=-Math.abs(Math.round(n))+C.slides.length,C.params.flip.slideShadows){var d=C.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),c=C.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===d.length&&(d=t('<div class="swiper-slide-shadow-'+(C.isHorizontal()?"left":"top")+'"></div>'),i.append(d)),0===c.length&&(c=t('<div class="swiper-slide-shadow-'+(C.isHorizontal()?"right":"bottom")+'"></div>'),i.append(c)),d.length&&(d[0].style.opacity=Math.max(-n,0)),c.length&&(c[0].style.opacity=Math.max(n,0))}i.transform("translate3d("+l+"px, "+u+"px, 0px) rotateX("+s+"deg) rotateY("+r+"deg)")}},setTransition:function(e){if(C.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),C.params.virtualTranslate&&0!==e){var i=!1;C.slides.eq(C.activeIndex).transitionEnd(function(){if(!i&&C&&t(this).hasClass(C.params.slideActiveClass)){i=!0,C.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],n=0;n<e.length;n++)C.wrapper.trigger(e[n])}})}}},cube:{setTranslate:function(){var e,i=0;C.params.cube.shadow&&(C.isHorizontal()?(e=C.wrapper.find(".swiper-cube-shadow"),0===e.length&&(e=t('<div class="swiper-cube-shadow"></div>'),C.wrapper.append(e)),e.css({height:C.width+"px"})):(e=C.container.find(".swiper-cube-shadow"),0===e.length&&(e=t('<div class="swiper-cube-shadow"></div>'),C.container.append(e))));for(var n=0;n<C.slides.length;n++){var a=C.slides.eq(n),o=90*n,r=Math.floor(o/360);C.rtl&&(o=-o,r=Math.floor(-o/360));var s=Math.max(Math.min(a[0].progress,1),-1),l=0,u=0,d=0;n%4==0?(l=4*-r*C.size,d=0):(n-1)%4==0?(l=0,d=4*-r*C.size):(n-2)%4==0?(l=C.size+4*r*C.size,d=C.size):(n-3)%4==0&&(l=-C.size,d=3*C.size+4*C.size*r),C.rtl&&(l=-l),C.isHorizontal()||(u=l,l=0);var c="rotateX("+(C.isHorizontal()?0:-o)+"deg) rotateY("+(C.isHorizontal()?o:0)+"deg) translate3d("+l+"px, "+u+"px, "+d+"px)";if(s<=1&&s>-1&&(i=90*n+90*s,C.rtl&&(i=90*-n-90*s)),a.transform(c),C.params.cube.slideShadows){var p=C.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),f=C.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===p.length&&(p=t('<div class="swiper-slide-shadow-'+(C.isHorizontal()?"left":"top")+'"></div>'),a.append(p)),0===f.length&&(f=t('<div class="swiper-slide-shadow-'+(C.isHorizontal()?"right":"bottom")+'"></div>'),a.append(f)),p.length&&(p[0].style.opacity=Math.max(-s,0)),f.length&&(f[0].style.opacity=Math.max(s,0))}}if(C.wrapper.css({"-webkit-transform-origin":"50% 50% -"+C.size/2+"px","-moz-transform-origin":"50% 50% -"+C.size/2+"px","-ms-transform-origin":"50% 50% -"+C.size/2+"px","transform-origin":"50% 50% -"+C.size/2+"px"}),C.params.cube.shadow)if(C.isHorizontal())e.transform("translate3d(0px, "+(C.width/2+C.params.cube.shadowOffset)+"px, "+-C.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+C.params.cube.shadowScale+")");else{var h=Math.abs(i)-90*Math.floor(Math.abs(i)/90),m=1.5-(Math.sin(2*h*Math.PI/360)/2+Math.cos(2*h*Math.PI/360)/2),g=C.params.cube.shadowScale,v=C.params.cube.shadowScale/m,y=C.params.cube.shadowOffset;e.transform("scale3d("+g+", 1, "+v+") translate3d(0px, "+(C.height/2+y)+"px, "+-C.height/2/v+"px) rotateX(-90deg)")}var w=C.isSafari||C.isUiWebView?-C.size/2:0;C.wrapper.transform("translate3d(0px,0,"+w+"px) rotateX("+(C.isHorizontal()?0:i)+"deg) rotateY("+(C.isHorizontal()?-i:0)+"deg)")},setTransition:function(t){C.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),C.params.cube.shadow&&!C.isHorizontal()&&C.container.find(".swiper-cube-shadow").transition(t)}},coverflow:{setTranslate:function(){for(var e=C.translate,i=C.isHorizontal()?-e+C.width/2:-e+C.height/2,n=C.isHorizontal()?C.params.coverflow.rotate:-C.params.coverflow.rotate,a=C.params.coverflow.depth,o=0,r=C.slides.length;o<r;o++){var s=C.slides.eq(o),l=C.slidesSizesGrid[o],u=s[0].swiperSlideOffset,d=(i-u-l/2)/l*C.params.coverflow.modifier,c=C.isHorizontal()?n*d:0,p=C.isHorizontal()?0:n*d,f=-a*Math.abs(d),h=C.isHorizontal()?0:C.params.coverflow.stretch*d,m=C.isHorizontal()?C.params.coverflow.stretch*d:0;Math.abs(m)<.001&&(m=0),Math.abs(h)<.001&&(h=0),Math.abs(f)<.001&&(f=0),Math.abs(c)<.001&&(c=0),Math.abs(p)<.001&&(p=0);var g="translate3d("+m+"px,"+h+"px,"+f+"px)  rotateX("+p+"deg) rotateY("+c+"deg)";if(s.transform(g),s[0].style.zIndex=1-Math.abs(Math.round(d)),C.params.coverflow.slideShadows){var v=C.isHorizontal()?s.find(".swiper-slide-shadow-left"):s.find(".swiper-slide-shadow-top"),y=C.isHorizontal()?s.find(".swiper-slide-shadow-right"):s.find(".swiper-slide-shadow-bottom");0===v.length&&(v=t('<div class="swiper-slide-shadow-'+(C.isHorizontal()?"left":"top")+'"></div>'),s.append(v)),0===y.length&&(y=t('<div class="swiper-slide-shadow-'+(C.isHorizontal()?"right":"bottom")+'"></div>'),s.append(y)),v.length&&(v[0].style.opacity=d>0?d:0),y.length&&(y[0].style.opacity=-d>0?-d:0)}}if(C.browser.ie){C.wrapper[0].style.perspectiveOrigin=i+"px 50%"}},setTransition:function(t){C.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}}},C.lazy={initialImageLoaded:!1,loadImageInSlide:function(e,i){if(void 0!==e&&(void 0===i&&(i=!0),0!==C.slides.length)){var n=C.slides.eq(e),a=n.find("."+C.params.lazyLoadingClass+":not(."+C.params.lazyStatusLoadedClass+"):not(."+C.params.lazyStatusLoadingClass+")");!n.hasClass(C.params.lazyLoadingClass)||n.hasClass(C.params.lazyStatusLoadedClass)||n.hasClass(C.params.lazyStatusLoadingClass)||(a=a.add(n[0])),0!==a.length&&a.each(function(){var e=t(this);e.addClass(C.params.lazyStatusLoadingClass);var a=e.attr("data-background"),o=e.attr("data-src"),r=e.attr("data-srcset"),s=e.attr("data-sizes");C.loadImage(e[0],o||a,r,s,!1,function(){if(void 0!==C&&null!==C&&C){if(a?(e.css("background-image",'url("'+a+'")'),e.removeAttr("data-background")):(r&&(e.attr("srcset",r),e.removeAttr("data-srcset")),s&&(e.attr("sizes",s),e.removeAttr("data-sizes")),o&&(e.attr("src",o),e.removeAttr("data-src"))),e.addClass(C.params.lazyStatusLoadedClass).removeClass(C.params.lazyStatusLoadingClass),n.find("."+C.params.lazyPreloaderClass+", ."+C.params.preloaderClass).remove(),C.params.loop&&i){var t=n.attr("data-swiper-slide-index");if(n.hasClass(C.params.slideDuplicateClass)){var l=C.wrapper.children('[data-swiper-slide-index="'+t+'"]:not(.'+C.params.slideDuplicateClass+")");C.lazy.loadImageInSlide(l.index(),!1)}else{var u=C.wrapper.children("."+C.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]');C.lazy.loadImageInSlide(u.index(),!1)}}C.emit("onLazyImageReady",C,n[0],e[0])}}),C.emit("onLazyImageLoad",C,n[0],e[0])})}},load:function(){var e,i=C.params.slidesPerView;if("auto"===i&&(i=0),C.lazy.initialImageLoaded||(C.lazy.initialImageLoaded=!0),C.params.watchSlidesVisibility)C.wrapper.children("."+C.params.slideVisibleClass).each(function(){C.lazy.loadImageInSlide(t(this).index())});else if(i>1)for(e=C.activeIndex;e<C.activeIndex+i;e++)C.slides[e]&&C.lazy.loadImageInSlide(e);else C.lazy.loadImageInSlide(C.activeIndex);if(C.params.lazyLoadingInPrevNext)if(i>1||C.params.lazyLoadingInPrevNextAmount&&C.params.lazyLoadingInPrevNextAmount>1){var n=C.params.lazyLoadingInPrevNextAmount,a=i,o=Math.min(C.activeIndex+a+Math.max(n,a),C.slides.length),r=Math.max(C.activeIndex-Math.max(a,n),0);for(e=C.activeIndex+i;e<o;e++)C.slides[e]&&C.lazy.loadImageInSlide(e);for(e=r;e<C.activeIndex;e++)C.slides[e]&&C.lazy.loadImageInSlide(e)}else{var s=C.wrapper.children("."+C.params.slideNextClass);s.length>0&&C.lazy.loadImageInSlide(s.index());var l=C.wrapper.children("."+C.params.slidePrevClass);l.length>0&&C.lazy.loadImageInSlide(l.index())}},onTransitionStart:function(){C.params.lazyLoading&&(C.params.lazyLoadingOnTransitionStart||!C.params.lazyLoadingOnTransitionStart&&!C.lazy.initialImageLoaded)&&C.lazy.load()},onTransitionEnd:function(){C.params.lazyLoading&&!C.params.lazyLoadingOnTransitionStart&&C.lazy.load()}},C.scrollbar={isTouched:!1,setDragPosition:function(t){var e=C.scrollbar,i=C.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].pageX:t.pageX||t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].pageY:t.pageY||t.clientY,n=i-e.track.offset()[C.isHorizontal()?"left":"top"]-e.dragSize/2,a=-C.minTranslate()*e.moveDivider,o=-C.maxTranslate()*e.moveDivider;n<a?n=a:n>o&&(n=o),n=-n/e.moveDivider,C.updateProgress(n),C.setWrapperTranslate(n,!0)},dragStart:function(t){var e=C.scrollbar;e.isTouched=!0,t.preventDefault(),t.stopPropagation(),e.setDragPosition(t),clearTimeout(e.dragTimeout),e.track.transition(0),C.params.scrollbarHide&&e.track.css("opacity",1),C.wrapper.transition(100),e.drag.transition(100),C.emit("onScrollbarDragStart",C)},dragMove:function(t){var e=C.scrollbar;e.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,e.setDragPosition(t),C.wrapper.transition(0),e.track.transition(0),e.drag.transition(0),C.emit("onScrollbarDragMove",C))},dragEnd:function(t){var e=C.scrollbar;e.isTouched&&(e.isTouched=!1,C.params.scrollbarHide&&(clearTimeout(e.dragTimeout),e.dragTimeout=setTimeout(function(){e.track.css("opacity",0),e.track.transition(400)},1e3)),C.emit("onScrollbarDragEnd",C),C.params.scrollbarSnapOnRelease&&C.slideReset())},draggableEvents:function(){return!1!==C.params.simulateTouch||C.support.touch?C.touchEvents:C.touchEventsDesktop}(),enableDraggable:function(){var e=C.scrollbar,i=C.support.touch?e.track:document;t(e.track).on(e.draggableEvents.start,e.dragStart),t(i).on(e.draggableEvents.move,e.dragMove),t(i).on(e.draggableEvents.end,e.dragEnd)},disableDraggable:function(){var e=C.scrollbar,i=C.support.touch?e.track:document;t(e.track).off(e.draggableEvents.start,e.dragStart),t(i).off(e.draggableEvents.move,e.dragMove),t(i).off(e.draggableEvents.end,e.dragEnd)},set:function(){if(C.params.scrollbar){var e=C.scrollbar;e.track=t(C.params.scrollbar),C.params.uniqueNavElements&&"string"==typeof C.params.scrollbar&&e.track.length>1&&1===C.container.find(C.params.scrollbar).length&&(e.track=C.container.find(C.params.scrollbar)),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=t('<div class="swiper-scrollbar-drag"></div>'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.trackSize=C.isHorizontal()?e.track[0].offsetWidth:e.track[0].offsetHeight,e.divider=C.size/C.virtualSize,e.moveDivider=e.divider*(e.trackSize/C.size),e.dragSize=e.trackSize*e.divider,C.isHorizontal()?e.drag[0].style.width=e.dragSize+"px":e.drag[0].style.height=e.dragSize+"px",e.divider>=1?e.track[0].style.display="none":e.track[0].style.display="",C.params.scrollbarHide&&(e.track[0].style.opacity=0)}},setTranslate:function(){if(C.params.scrollbar){var t,e=C.scrollbar,i=(C.translate,e.dragSize);t=(e.trackSize-e.dragSize)*C.progress,C.rtl&&C.isHorizontal()?(t=-t,t>0?(i=e.dragSize-t,t=0):-t+e.dragSize>e.trackSize&&(i=e.trackSize+t)):t<0?(i=e.dragSize+t,t=0):t+e.dragSize>e.trackSize&&(i=e.trackSize-t),C.isHorizontal()?(C.support.transforms3d?e.drag.transform("translate3d("+t+"px, 0, 0)"):e.drag.transform("translateX("+t+"px)"),e.drag[0].style.width=i+"px"):(C.support.transforms3d?e.drag.transform("translate3d(0px, "+t+"px, 0)"):e.drag.transform("translateY("+t+"px)"),e.drag[0].style.height=i+"px"),C.params.scrollbarHide&&(clearTimeout(e.timeout),e.track[0].style.opacity=1,e.timeout=setTimeout(function(){e.track[0].style.opacity=0,e.track.transition(400)},1e3))}},setTransition:function(t){C.params.scrollbar&&C.scrollbar.drag.transition(t)}},C.controller={LinearSpline:function(t,e){var i=function(){var t,e,i;return function(n,a){for(e=-1,t=n.length;t-e>1;)n[i=t+e>>1]<=a?e=i:t=i;return t}}();this.x=t,this.y=e,this.lastIndex=t.length-1;var n,a;this.x.length;this.interpolate=function(t){return t?(a=i(this.x,t),n=a-1,(t-this.x[n])*(this.y[a]-this.y[n])/(this.x[a]-this.x[n])+this.y[n]):0}},getInterpolateFunction:function(t){C.controller.spline||(C.controller.spline=C.params.loop?new C.controller.LinearSpline(C.slidesGrid,t.slidesGrid):new C.controller.LinearSpline(C.snapGrid,t.snapGrid))},setTranslate:function(t,i){function n(e){t=e.rtl&&"horizontal"===e.params.direction?-C.translate:C.translate,"slide"===C.params.controlBy&&(C.controller.getInterpolateFunction(e),o=-C.controller.spline.interpolate(-t)),o&&"container"!==C.params.controlBy||(a=(e.maxTranslate()-e.minTranslate())/(C.maxTranslate()-C.minTranslate()),o=(t-C.minTranslate())*a+e.minTranslate()),C.params.controlInverse&&(o=e.maxTranslate()-o),e.updateProgress(o),e.setWrapperTranslate(o,!1,C),e.updateActiveIndex()}var a,o,r=C.params.control;if(Array.isArray(r))for(var s=0;s<r.length;s++)r[s]!==i&&r[s]instanceof e&&n(r[s]);else r instanceof e&&i!==r&&n(r)},setTransition:function(t,i){function n(e){e.setWrapperTransition(t,C),0!==t&&(e.onTransitionStart(),e.wrapper.transitionEnd(function(){o&&(e.params.loop&&"slide"===C.params.controlBy&&e.fixLoop(),e.onTransitionEnd())}))}var a,o=C.params.control;if(Array.isArray(o))for(a=0;a<o.length;a++)o[a]!==i&&o[a]instanceof e&&n(o[a]);else o instanceof e&&i!==o&&n(o)}},C.hashnav={onHashCange:function(t,e){var i=document.location.hash.replace("#","");i!==C.slides.eq(C.activeIndex).attr("data-hash")&&C.slideTo(C.wrapper.children("."+C.params.slideClass+'[data-hash="'+i+'"]').index())},attachEvents:function(e){var i=e?"off":"on";t(window)[i]("hashchange",C.hashnav.onHashCange)},setHash:function(){if(C.hashnav.initialized&&C.params.hashnav)if(C.params.replaceState&&window.history&&window.history.replaceState)window.history.replaceState(null,null,"#"+C.slides.eq(C.activeIndex).attr("data-hash")||"");else{var t=C.slides.eq(C.activeIndex),e=t.attr("data-hash")||t.attr("data-history");document.location.hash=e||""}},init:function(){if(C.params.hashnav&&!C.params.history){C.hashnav.initialized=!0;var t=document.location.hash.replace("#","");if(t)for(var e=0,i=C.slides.length;e<i;e++){var n=C.slides.eq(e),a=n.attr("data-hash")||n.attr("data-history");if(a===t&&!n.hasClass(C.params.slideDuplicateClass)){var o=n.index();C.slideTo(o,0,C.params.runCallbacksOnInit,!0)}}C.params.hashnavWatchState&&C.hashnav.attachEvents()}},destroy:function(){C.params.hashnavWatchState&&C.hashnav.attachEvents(!0)}},C.history={init:function(){if(C.params.history){if(!window.history||!window.history.pushState)return C.params.history=!1,void(C.params.hashnav=!0);C.history.initialized=!0,this.paths=this.getPathValues(),(this.paths.key||this.paths.value)&&(this.scrollToSlide(0,this.paths.value,C.params.runCallbacksOnInit),C.params.replaceState||window.addEventListener("popstate",this.setHistoryPopState))}},setHistoryPopState:function(){C.history.paths=C.history.getPathValues(),C.history.scrollToSlide(C.params.speed,C.history.paths.value,!1)},getPathValues:function(){var t=window.location.pathname.slice(1).split("/"),e=t.length;return{key:t[e-2],value:t[e-1]}},setHistory:function(t,e){if(C.history.initialized&&C.params.history){var i=C.slides.eq(e),n=this.slugify(i.attr("data-history"));window.location.pathname.includes(t)||(n=t+"/"+n),C.params.replaceState?window.history.replaceState(null,null,n):window.history.pushState(null,null,n)}},slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(t,e,i){if(e)for(var n=0,a=C.slides.length;n<a;n++){var o=C.slides.eq(n),r=this.slugify(o.attr("data-history"));if(r===e&&!o.hasClass(C.params.slideDuplicateClass)){var s=o.index();C.slideTo(s,t,i)}}else C.slideTo(0,t,i)}},C.disableKeyboardControl=function(){C.params.keyboardControl=!1,t(document).off("keydown",d)},C.enableKeyboardControl=function(){C.params.keyboardControl=!0,t(document).on("keydown",d)},C.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},C.params.mousewheelControl&&(C.mousewheel.event=navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var t="onwheel"in document;if(!t){var e=document.createElement("div");e.setAttribute("onwheel","return;"),t="function"==typeof e.onwheel}return!t&&document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")&&(t=document.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel"),C.disableMousewheelControl=function(){if(!C.mousewheel.event)return!1;var e=C.container;return"container"!==C.params.mousewheelEventsTarged&&(e=t(C.params.mousewheelEventsTarged)),e.off(C.mousewheel.event,p),C.params.mousewheelControl=!1,!0},C.enableMousewheelControl=function(){if(!C.mousewheel.event)return!1;var e=C.container;return"container"!==C.params.mousewheelEventsTarged&&(e=t(C.params.mousewheelEventsTarged)),e.on(C.mousewheel.event,p),C.params.mousewheelControl=!0,!0},C.parallax={setTranslate:function(){C.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){f(this,C.progress)}),C.slides.each(function(){var e=t(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){f(this,Math.min(Math.max(e[0].progress,-1),1))})})},setTransition:function(e){void 0===e&&(e=C.params.speed),C.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var i=t(this),n=parseInt(i.attr("data-swiper-parallax-duration"),10)||e;0===e&&(n=0),i.transition(n)})}},C.zoom={scale:1,currentScale:1,isScaling:!1,gesture:{slide:void 0,slideWidth:void 0,slideHeight:void 0,image:void 0,imageWrap:void 0,zoomMax:C.params.zoomMax},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0},getDistanceBetweenTouches:function(t){if(t.targetTouches.length<2)return 1;var e=t.targetTouches[0].pageX,i=t.targetTouches[0].pageY,n=t.targetTouches[1].pageX,a=t.targetTouches[1].pageY;return Math.sqrt(Math.pow(n-e,2)+Math.pow(a-i,2))},onGestureStart:function(e){var i=C.zoom;if(!C.support.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;i.gesture.scaleStart=i.getDistanceBetweenTouches(e)}if(!(i.gesture.slide&&i.gesture.slide.length||(i.gesture.slide=t(this),0===i.gesture.slide.length&&(i.gesture.slide=C.slides.eq(C.activeIndex)),i.gesture.image=i.gesture.slide.find("img, svg, canvas"),i.gesture.imageWrap=i.gesture.image.parent("."+C.params.zoomContainerClass),i.gesture.zoomMax=i.gesture.imageWrap.attr("data-swiper-zoom")||C.params.zoomMax,0!==i.gesture.imageWrap.length)))return void(i.gesture.image=void 0);i.gesture.image.transition(0),i.isScaling=!0},onGestureChange:function(t){var e=C.zoom;if(!C.support.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;e.gesture.scaleMove=e.getDistanceBetweenTouches(t)}e.gesture.image&&0!==e.gesture.image.length&&(C.support.gestures?e.scale=t.scale*e.currentScale:e.scale=e.gesture.scaleMove/e.gesture.scaleStart*e.currentScale,e.scale>e.gesture.zoomMax&&(e.scale=e.gesture.zoomMax-1+Math.pow(e.scale-e.gesture.zoomMax+1,.5)),e.scale<C.params.zoomMin&&(e.scale=C.params.zoomMin+1-Math.pow(C.params.zoomMin-e.scale+1,.5)),e.gesture.image.transform("translate3d(0,0,0) scale("+e.scale+")"))},onGestureEnd:function(t){var e=C.zoom;!C.support.gestures&&("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2)||e.gesture.image&&0!==e.gesture.image.length&&(e.scale=Math.max(Math.min(e.scale,e.gesture.zoomMax),C.params.zoomMin),e.gesture.image.transition(C.params.speed).transform("translate3d(0,0,0) scale("+e.scale+")"),e.currentScale=e.scale,e.isScaling=!1,1===e.scale&&(e.gesture.slide=void 0))},onTouchStart:function(t,e){var i=t.zoom;i.gesture.image&&0!==i.gesture.image.length&&(i.image.isTouched||("android"===t.device.os&&e.preventDefault(),i.image.isTouched=!0,i.image.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i.image.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(t){var e=C.zoom;if(e.gesture.image&&0!==e.gesture.image.length&&(C.allowClick=!1,e.image.isTouched&&e.gesture.slide)){e.image.isMoved||(e.image.width=e.gesture.image[0].offsetWidth,e.image.height=e.gesture.image[0].offsetHeight,e.image.startX=C.getTranslate(e.gesture.imageWrap[0],"x")||0,e.image.startY=C.getTranslate(e.gesture.imageWrap[0],"y")||0,e.gesture.slideWidth=e.gesture.slide[0].offsetWidth,e.gesture.slideHeight=e.gesture.slide[0].offsetHeight,e.gesture.imageWrap.transition(0),C.rtl&&(e.image.startX=-e.image.startX),C.rtl&&(e.image.startY=-e.image.startY));var i=e.image.width*e.scale,n=e.image.height*e.scale;if(!(i<e.gesture.slideWidth&&n<e.gesture.slideHeight)){if(e.image.minX=Math.min(e.gesture.slideWidth/2-i/2,0),e.image.maxX=-e.image.minX,e.image.minY=Math.min(e.gesture.slideHeight/2-n/2,0),e.image.maxY=-e.image.minY,e.image.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,e.image.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!e.image.isMoved&&!e.isScaling){if(C.isHorizontal()&&Math.floor(e.image.minX)===Math.floor(e.image.startX)&&e.image.touchesCurrent.x<e.image.touchesStart.x||Math.floor(e.image.maxX)===Math.floor(e.image.startX)&&e.image.touchesCurrent.x>e.image.touchesStart.x)return void(e.image.isTouched=!1);if(!C.isHorizontal()&&Math.floor(e.image.minY)===Math.floor(e.image.startY)&&e.image.touchesCurrent.y<e.image.touchesStart.y||Math.floor(e.image.maxY)===Math.floor(e.image.startY)&&e.image.touchesCurrent.y>e.image.touchesStart.y)return void(e.image.isTouched=!1)}t.preventDefault(),t.stopPropagation(),e.image.isMoved=!0,e.image.currentX=e.image.touchesCurrent.x-e.image.touchesStart.x+e.image.startX,e.image.currentY=e.image.touchesCurrent.y-e.image.touchesStart.y+e.image.startY,e.image.currentX<e.image.minX&&(e.image.currentX=e.image.minX+1-Math.pow(e.image.minX-e.image.currentX+1,.8)),e.image.currentX>e.image.maxX&&(e.image.currentX=e.image.maxX-1+Math.pow(e.image.currentX-e.image.maxX+1,.8)),e.image.currentY<e.image.minY&&(e.image.currentY=e.image.minY+1-Math.pow(e.image.minY-e.image.currentY+1,.8)),e.image.currentY>e.image.maxY&&(e.image.currentY=e.image.maxY-1+Math.pow(e.image.currentY-e.image.maxY+1,.8)),e.velocity.prevPositionX||(e.velocity.prevPositionX=e.image.touchesCurrent.x),e.velocity.prevPositionY||(e.velocity.prevPositionY=e.image.touchesCurrent.y),e.velocity.prevTime||(e.velocity.prevTime=Date.now()),e.velocity.x=(e.image.touchesCurrent.x-e.velocity.prevPositionX)/(Date.now()-e.velocity.prevTime)/2,e.velocity.y=(e.image.touchesCurrent.y-e.velocity.prevPositionY)/(Date.now()-e.velocity.prevTime)/2,Math.abs(e.image.touchesCurrent.x-e.velocity.prevPositionX)<2&&(e.velocity.x=0),Math.abs(e.image.touchesCurrent.y-e.velocity.prevPositionY)<2&&(e.velocity.y=0),e.velocity.prevPositionX=e.image.touchesCurrent.x,e.velocity.prevPositionY=e.image.touchesCurrent.y,e.velocity.prevTime=Date.now(),e.gesture.imageWrap.transform("translate3d("+e.image.currentX+"px, "+e.image.currentY+"px,0)")}}},onTouchEnd:function(t,e){var i=t.zoom;if(i.gesture.image&&0!==i.gesture.image.length){if(!i.image.isTouched||!i.image.isMoved)return i.image.isTouched=!1,void(i.image.isMoved=!1);i.image.isTouched=!1,i.image.isMoved=!1;var n=300,a=300,o=i.velocity.x*n,r=i.image.currentX+o,s=i.velocity.y*a,l=i.image.currentY+s;0!==i.velocity.x&&(n=Math.abs((r-i.image.currentX)/i.velocity.x)),0!==i.velocity.y&&(a=Math.abs((l-i.image.currentY)/i.velocity.y));var u=Math.max(n,a);i.image.currentX=r,i.image.currentY=l;var d=i.image.width*i.scale,c=i.image.height*i.scale;i.image.minX=Math.min(i.gesture.slideWidth/2-d/2,0),i.image.maxX=-i.image.minX,i.image.minY=Math.min(i.gesture.slideHeight/2-c/2,0),i.image.maxY=-i.image.minY,i.image.currentX=Math.max(Math.min(i.image.currentX,i.image.maxX),i.image.minX),i.image.currentY=Math.max(Math.min(i.image.currentY,i.image.maxY),i.image.minY),i.gesture.imageWrap.transition(u).transform("translate3d("+i.image.currentX+"px, "+i.image.currentY+"px,0)")}},onTransitionEnd:function(t){var e=t.zoom;e.gesture.slide&&t.previousIndex!==t.activeIndex&&(e.gesture.image.transform("translate3d(0,0,0) scale(1)"),e.gesture.imageWrap.transform("translate3d(0,0,0)"),e.gesture.slide=e.gesture.image=e.gesture.imageWrap=void 0,e.scale=e.currentScale=1)},toggleZoom:function(e,i){var n=e.zoom;if(n.gesture.slide||(n.gesture.slide=e.clickedSlide?t(e.clickedSlide):e.slides.eq(e.activeIndex),n.gesture.image=n.gesture.slide.find("img, svg, canvas"),n.gesture.imageWrap=n.gesture.image.parent("."+e.params.zoomContainerClass)),n.gesture.image&&0!==n.gesture.image.length){var a,o,r,s,l,u,d,c,p,f,h,m,g,v,y,w,b,_;void 0===n.image.touchesStart.x&&i?(a="touchend"===i.type?i.changedTouches[0].pageX:i.pageX,o="touchend"===i.type?i.changedTouches[0].pageY:i.pageY):(a=n.image.touchesStart.x,o=n.image.touchesStart.y),n.scale&&1!==n.scale?(n.scale=n.currentScale=1,n.gesture.imageWrap.transition(300).transform("translate3d(0,0,0)"),n.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"),n.gesture.slide=void 0):(n.scale=n.currentScale=n.gesture.imageWrap.attr("data-swiper-zoom")||e.params.zoomMax,i?(b=n.gesture.slide[0].offsetWidth,_=n.gesture.slide[0].offsetHeight,r=n.gesture.slide.offset().left,s=n.gesture.slide.offset().top,l=r+b/2-a,u=s+_/2-o,p=n.gesture.image[0].offsetWidth,f=n.gesture.image[0].offsetHeight,h=p*n.scale,m=f*n.scale,g=Math.min(b/2-h/2,0),v=Math.min(_/2-m/2,0),y=-g,w=-v,d=l*n.scale,c=u*n.scale,d<g&&(d=g),d>y&&(d=y),c<v&&(c=v),c>w&&(c=w)):(d=0,c=0),n.gesture.imageWrap.transition(300).transform("translate3d("+d+"px, "+c+"px,0)"),n.gesture.image.transition(300).transform("translate3d(0,0,0) scale("+n.scale+")"))}},attachEvents:function(e){var i=e?"off":"on";if(C.params.zoom){var n=(C.slides,!("touchstart"!==C.touchEvents.start||!C.support.passiveListener||!C.params.passiveListeners)&&{passive:!0,capture:!1});C.support.gestures?(C.slides[i]("gesturestart",C.zoom.onGestureStart,n),C.slides[i]("gesturechange",C.zoom.onGestureChange,n),C.slides[i]("gestureend",C.zoom.onGestureEnd,n)):"touchstart"===C.touchEvents.start&&(C.slides[i](C.touchEvents.start,C.zoom.onGestureStart,n),C.slides[i](C.touchEvents.move,C.zoom.onGestureChange,n),C.slides[i](C.touchEvents.end,C.zoom.onGestureEnd,n)),C[i]("touchStart",C.zoom.onTouchStart),C.slides.each(function(e,n){t(n).find("."+C.params.zoomContainerClass).length>0&&t(n)[i](C.touchEvents.move,C.zoom.onTouchMove)}),C[i]("touchEnd",C.zoom.onTouchEnd),C[i]("transitionEnd",C.zoom.onTransitionEnd),C.params.zoomToggle&&C.on("doubleTap",C.zoom.toggleZoom)}},init:function(){C.zoom.attachEvents()},destroy:function(){C.zoom.attachEvents(!0)}},C._plugins=[];for(var j in C.plugins){var W=C.plugins[j](C,C.params[j]);W&&C._plugins.push(W)}return C.callPlugins=function(t){for(var e=0;e<C._plugins.length;e++)t in C._plugins[e]&&C._plugins[e][t](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},C.emitterEventListeners={},C.emit=function(t){C.params[t]&&C.params[t](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var e;if(C.emitterEventListeners[t])for(e=0;e<C.emitterEventListeners[t].length;e++)C.emitterEventListeners[t][e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);C.callPlugins&&C.callPlugins(t,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},C.on=function(t,e){return t=h(t),C.emitterEventListeners[t]||(C.emitterEventListeners[t]=[]),C.emitterEventListeners[t].push(e),C},C.off=function(t,e){var i;if(t=h(t),void 0===e)return C.emitterEventListeners[t]=[],C;if(C.emitterEventListeners[t]&&0!==C.emitterEventListeners[t].length){for(i=0;i<C.emitterEventListeners[t].length;i++)C.emitterEventListeners[t][i]===e&&C.emitterEventListeners[t].splice(i,1);return C}},C.once=function(t,e){t=h(t);var i=function i(){e(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]),C.off(t,i)};return C.on(t,i),C},C.a11y={makeFocusable:function(t){return t.attr("tabIndex","0"),t},addRole:function(t,e){return t.attr("role",e),t},addLabel:function(t,e){return t.attr("aria-label",e),t},disable:function(t){return t.attr("aria-disabled",!0),t},enable:function(t){return t.attr("aria-disabled",!1),t},onEnterKey:function(e){13===e.keyCode&&(t(e.target).is(C.params.nextButton)?(C.onClickNext(e),C.isEnd?C.a11y.notify(C.params.lastSlideMessage):C.a11y.notify(C.params.nextSlideMessage)):t(e.target).is(C.params.prevButton)&&(C.onClickPrev(e),C.isBeginning?C.a11y.notify(C.params.firstSlideMessage):C.a11y.notify(C.params.prevSlideMessage)),t(e.target).is("."+C.params.bulletClass)&&t(e.target)[0].click())},liveRegion:t('<span class="'+C.params.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>'),notify:function(t){var e=C.a11y.liveRegion;0!==e.length&&(e.html(""),e.html(t))},init:function(){C.params.nextButton&&C.nextButton&&C.nextButton.length>0&&(C.a11y.makeFocusable(C.nextButton),C.a11y.addRole(C.nextButton,"button"),C.a11y.addLabel(C.nextButton,C.params.nextSlideMessage)),C.params.prevButton&&C.prevButton&&C.prevButton.length>0&&(C.a11y.makeFocusable(C.prevButton),C.a11y.addRole(C.prevButton,"button"),C.a11y.addLabel(C.prevButton,C.params.prevSlideMessage)),t(C.container).append(C.a11y.liveRegion)},initPagination:function(){C.params.pagination&&C.params.paginationClickable&&C.bullets&&C.bullets.length&&C.bullets.each(function(){var e=t(this);C.a11y.makeFocusable(e),C.a11y.addRole(e,"button"),C.a11y.addLabel(e,C.params.paginationBulletMessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){C.a11y.liveRegion&&C.a11y.liveRegion.length>0&&C.a11y.liveRegion.remove()}},C.init=function(){C.params.loop&&C.createLoop(),C.updateContainerSize(),C.updateSlidesSize(),C.updatePagination(),C.params.scrollbar&&C.scrollbar&&(C.scrollbar.set(),C.params.scrollbarDraggable&&C.scrollbar.enableDraggable()),"slide"!==C.params.effect&&C.effects[C.params.effect]&&(C.params.loop||C.updateProgress(),C.effects[C.params.effect].setTranslate()),C.params.loop?C.slideTo(C.params.initialSlide+C.loopedSlides,0,C.params.runCallbacksOnInit):(C.slideTo(C.params.initialSlide,0,C.params.runCallbacksOnInit),0===C.params.initialSlide&&(C.parallax&&C.params.parallax&&C.parallax.setTranslate(),C.lazy&&C.params.lazyLoading&&(C.lazy.load(),C.lazy.initialImageLoaded=!0))),C.attachEvents(),C.params.observer&&C.support.observer&&C.initObservers(),C.params.preloadImages&&!C.params.lazyLoading&&C.preloadImages(),C.params.zoom&&C.zoom&&C.zoom.init(),C.params.autoplay&&C.startAutoplay(),C.params.keyboardControl&&C.enableKeyboardControl&&C.enableKeyboardControl(),C.params.mousewheelControl&&C.enableMousewheelControl&&C.enableMousewheelControl(),C.params.hashnavReplaceState&&(C.params.replaceState=C.params.hashnavReplaceState),C.params.history&&C.history&&C.history.init(),C.params.hashnav&&C.hashnav&&C.hashnav.init(),C.params.a11y&&C.a11y&&C.a11y.init(),C.emit("onInit",C)},C.cleanupStyles=function(){C.container.removeClass(C.classNames.join(" ")).removeAttr("style"),C.wrapper.removeAttr("style"),C.slides&&C.slides.length&&C.slides.removeClass([C.params.slideVisibleClass,C.params.slideActiveClass,C.params.slideNextClass,C.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),C.paginationContainer&&C.paginationContainer.length&&C.paginationContainer.removeClass(C.params.paginationHiddenClass),C.bullets&&C.bullets.length&&C.bullets.removeClass(C.params.bulletActiveClass),C.params.prevButton&&t(C.params.prevButton).removeClass(C.params.buttonDisabledClass),C.params.nextButton&&t(C.params.nextButton).removeClass(C.params.buttonDisabledClass),C.params.scrollbar&&C.scrollbar&&(C.scrollbar.track&&C.scrollbar.track.length&&C.scrollbar.track.removeAttr("style"),C.scrollbar.drag&&C.scrollbar.drag.length&&C.scrollbar.drag.removeAttr("style"))},C.destroy=function(t,e){C.detachEvents(),C.stopAutoplay(),C.params.scrollbar&&C.scrollbar&&C.params.scrollbarDraggable&&C.scrollbar.disableDraggable(),C.params.loop&&C.destroyLoop(),e&&C.cleanupStyles(),C.disconnectObservers(),C.params.zoom&&C.zoom&&C.zoom.destroy(),C.params.keyboardControl&&C.disableKeyboardControl&&C.disableKeyboardControl(),C.params.mousewheelControl&&C.disableMousewheelControl&&C.disableMousewheelControl(),C.params.a11y&&C.a11y&&C.a11y.destroy(),C.params.history&&!C.params.replaceState&&window.removeEventListener("popstate",C.history.setHistoryPopState),C.params.hashnav&&C.hashnav&&C.hashnav.destroy(),C.emit("onDestroy"),!1!==t&&(C=null)},C.init(),C}};e.prototype={isSafari:function(){var t=window.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent),isArray:function(t){return"[object Array]"===Object.prototype.toString.apply(t)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1,lteIE9:function(){var t=document.createElement("div");return t.innerHTML="\x3c!--[if lte IE 9]><i></i><![endif]--\x3e",1===t.getElementsByTagName("i").length}()},device:function(){var t=window.navigator.userAgent,e=t.match(/(Android);?[\s\/]+([\d.]+)?/),i=t.match(/(iPad).*OS\s([\d_]+)/),n=t.match(/(iPod)(.*OS\s([\d_]+))?/),a=!i&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/);return{ios:i||a||n,android:e}}(),support:{touch:window.Modernizr&&!0===Modernizr.touch||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&!0===Modernizr.csstransforms3d||function(){var t=document.createElement("div").style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){for(var t=document.createElement("div").style,e="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),i=0;i<e.length;i++)if(e[i]in t)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}(),passiveListener:function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveListener",null,e)}catch(t){}return t}(),gestures:function(){return"ongesturestart"in window}()},plugins:{}};for(var i=(function(){var t=function(t){var e=this,i=0;for(i=0;i<t.length;i++)e[i]=t[i];return e.length=t.length,this},e=function(e,i){var n=[],a=0;if(e&&!i&&e instanceof t)return e;if(e)if("string"==typeof e){var o,r,s=e.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){var l="div";for(0===s.indexOf("<li")&&(l="ul"),0===s.indexOf("<tr")&&(l="tbody"),0!==s.indexOf("<td")&&0!==s.indexOf("<th")||(l="tr"),0===s.indexOf("<tbody")&&(l="table"),0===s.indexOf("<option")&&(l="select"),r=document.createElement(l),r.innerHTML=e,a=0;a<r.childNodes.length;a++)n.push(r.childNodes[a])}else for(o=i||"#"!==e[0]||e.match(/[ .<>:~]/)?(i||document).querySelectorAll(e):[document.getElementById(e.split("#")[1])],a=0;a<o.length;a++)o[a]&&n.push(o[a])}else if(e.nodeType||e===window||e===document)n.push(e);else if(e.length>0&&e[0].nodeType)for(a=0;a<e.length;a++)n.push(e[a]);return new t(n)};return t.prototype={addClass:function(t){if(void 0===t)return this;for(var e=t.split(" "),i=0;i<e.length;i++)for(var n=0;n<this.length;n++)this[n].classList.add(e[i]);return this},removeClass:function(t){for(var e=t.split(" "),i=0;i<e.length;i++)for(var n=0;n<this.length;n++)this[n].classList.remove(e[i]);return this},hasClass:function(t){return!!this[0]&&this[0].classList.contains(t)},toggleClass:function(t){for(var e=t.split(" "),i=0;i<e.length;i++)for(var n=0;n<this.length;n++)this[n].classList.toggle(e[i]);return this},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(var i=0;i<this.length;i++)if(2===arguments.length)this[i].setAttribute(t,e);else for(var n in t)this[i][n]=t[n],this[i].setAttribute(n,t[n]);return this},removeAttr:function(t){for(var e=0;e<this.length;e++)this[e].removeAttribute(t);return this},data:function(t,e){if(void 0!==e){for(var i=0;i<this.length;i++){var n=this[i];n.dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[t]=e}return this}if(this[0]){var a=this[0].getAttribute("data-"+t);return a||(this[0].dom7ElementDataStorage&&t in this[0].dom7ElementDataStorage?this[0].dom7ElementDataStorage[t]:void 0)}},transform:function(t){for(var e=0;e<this.length;e++){var i=this[e].style;i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=t}return this},transition:function(t){"string"!=typeof t&&(t+="ms");for(var e=0;e<this.length;e++){var i=this[e].style;i.webkitTransitionDuration=i.MsTransitionDuration=i.msTransitionDuration=i.MozTransitionDuration=i.OTransitionDuration=i.transitionDuration=t}return this},on:function(t,i,n,a){function o(t){var a=t.target;if(e(a).is(i))n.call(a,t);else for(var o=e(a).parents(),r=0;r<o.length;r++)e(o[r]).is(i)&&n.call(o[r],t)}var r,s,l=t.split(" ");for(r=0;r<this.length;r++)if("function"==typeof i||!1===i)for("function"==typeof i&&(n=arguments[1],a=arguments[2]||!1),s=0;s<l.length;s++)this[r].addEventListener(l[s],n,a);else for(s=0;s<l.length;s++)this[r].dom7LiveListeners||(this[r].dom7LiveListeners=[]),this[r].dom7LiveListeners.push({listener:n,liveListener:o}),this[r].addEventListener(l[s],o,a);return this},off:function(t,e,i,n){for(var a=t.split(" "),o=0;o<a.length;o++)for(var r=0;r<this.length;r++)if("function"==typeof e||!1===e)"function"==typeof e&&(i=arguments[1],n=arguments[2]||!1),this[r].removeEventListener(a[o],i,n);else if(this[r].dom7LiveListeners)for(var s=0;s<this[r].dom7LiveListeners.length;s++)this[r].dom7LiveListeners[s].listener===i&&this[r].removeEventListener(a[o],this[r].dom7LiveListeners[s].liveListener,n);return this},once:function(t,e,i,n){function a(r){i(r),o.off(t,e,a,n)}var o=this;"function"==typeof e&&(e=!1,i=arguments[1],n=arguments[2]),o.on(t,e,a,n)},trigger:function(t,e){for(var i=0;i<this.length;i++){var n;try{n=new window.CustomEvent(t,{detail:e,bubbles:!0,cancelable:!0})}catch(i){n=document.createEvent("Event"),n.initEvent(t,!0,!0),n.detail=e}this[i].dispatchEvent(n)}return this},transitionEnd:function(t){function e(o){if(o.target===this)for(t.call(this,o),i=0;i<n.length;i++)a.off(n[i],e)}var i,n=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],a=this;if(t)for(i=0;i<n.length;i++)a.on(n[i],e);return this},width:function(){return this[0]===window?window.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(t){return this.length>0?t?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(t){return this.length>0?t?this[0].offsetHeight+parseFloat(this.css("margin-top"))+parseFloat(this.css("margin-bottom")):this[0].offsetHeight:null},offset:function(){if(this.length>0){var t=this[0],e=t.getBoundingClientRect(),i=document.body,n=t.clientTop||i.clientTop||0,a=t.clientLeft||i.clientLeft||0,o=window.pageYOffset||t.scrollTop,r=window.pageXOffset||t.scrollLeft;return{top:e.top+o-n,left:e.left+r-a}}return null},css:function(t,e){var i;if(1===arguments.length){if("string"!=typeof t){for(i=0;i<this.length;i++)for(var n in t)this[i].style[n]=t[n];return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(i=0;i<this.length;i++)this[i].style[t]=e;return this}return this},each:function(t){for(var e=0;e<this.length;e++)t.call(this[e],e,this[e]);return this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:void 0;for(var e=0;e<this.length;e++)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e++)this[e].textContent=t;return this},is:function(i){if(!this[0])return!1;var n,a;if("string"==typeof i){var o=this[0];if(o===document)return i===document;if(o===window)return i===window;if(o.matches)return o.matches(i);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(i);if(o.mozMatchesSelector)return o.mozMatchesSelector(i);if(o.msMatchesSelector)return o.msMatchesSelector(i);for(n=e(i),a=0;a<n.length;a++)if(n[a]===this[0])return!0;return!1}if(i===document)return this[0]===document;if(i===window)return this[0]===window;if(i.nodeType||i instanceof t){for(n=i.nodeType?[i]:i,a=0;a<n.length;a++)if(n[a]===this[0])return!0;return!1}return!1},index:function(){if(this[0]){for(var t=this[0],e=0;null!==(t=t.previousSibling);)1===t.nodeType&&e++;return e}},eq:function(e){if(void 0===e)return this;var i,n=this.length;return e>n-1?new t([]):e<0?(i=n+e,new t(i<0?[]:[this[i]])):new t([this[e]])},append:function(e){var i,n;for(i=0;i<this.length;i++)if("string"==typeof e){var a=document.createElement("div");for(a.innerHTML=e;a.firstChild;)this[i].appendChild(a.firstChild)}else if(e instanceof t)for(n=0;n<e.length;n++)this[i].appendChild(e[n]);else this[i].appendChild(e);return this},prepend:function(e){var i,n;for(i=0;i<this.length;i++)if("string"==typeof e){var a=document.createElement("div");for(a.innerHTML=e,n=a.childNodes.length-1;n>=0;n--)this[i].insertBefore(a.childNodes[n],this[i].childNodes[0])}else if(e instanceof t)for(n=0;n<e.length;n++)this[i].insertBefore(e[n],this[i].childNodes[0]);else this[i].insertBefore(e,this[i].childNodes[0]);return this},insertBefore:function(t){for(var i=e(t),n=0;n<this.length;n++)if(1===i.length)i[0].parentNode.insertBefore(this[n],i[0]);else if(i.length>1)for(var a=0;a<i.length;a++)i[a].parentNode.insertBefore(this[n].cloneNode(!0),i[a])},insertAfter:function(t){for(var i=e(t),n=0;n<this.length;n++)if(1===i.length)i[0].parentNode.insertBefore(this[n],i[0].nextSibling);else if(i.length>1)for(var a=0;a<i.length;a++)i[a].parentNode.insertBefore(this[n].cloneNode(!0),i[a].nextSibling)},next:function(i){return new t(this.length>0?i?this[0].nextElementSibling&&e(this[0].nextElementSibling).is(i)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(i){var n=[],a=this[0];if(!a)return new t([]);for(;a.nextElementSibling;){var o=a.nextElementSibling;i?e(o).is(i)&&n.push(o):n.push(o),a=o}return new t(n)},prev:function(i){return new t(this.length>0?i?this[0].previousElementSibling&&e(this[0].previousElementSibling).is(i)?[this[0].previousElementSibling]:[]:this[0].previousElementSibling?[this[0].previousElementSibling]:[]:[])},prevAll:function(i){var n=[],a=this[0];if(!a)return new t([]);for(;a.previousElementSibling;){var o=a.previousElementSibling;i?e(o).is(i)&&n.push(o):n.push(o),a=o}return new t(n)},parent:function(t){for(var i=[],n=0;n<this.length;n++)t?e(this[n].parentNode).is(t)&&i.push(this[n].parentNode):i.push(this[n].parentNode);return e(e.unique(i))},parents:function(t){for(var i=[],n=0;n<this.length;n++)for(var a=this[n].parentNode;a;)t?e(a).is(t)&&i.push(a):i.push(a),a=a.parentNode;return e(e.unique(i))},find:function(e){for(var i=[],n=0;n<this.length;n++)for(var a=this[n].querySelectorAll(e),o=0;o<a.length;o++)i.push(a[o]);return new t(i)},children:function(i){for(var n=[],a=0;a<this.length;a++)for(var o=this[a].childNodes,r=0;r<o.length;r++)i?1===o[r].nodeType&&e(o[r]).is(i)&&n.push(o[r]):1===o[r].nodeType&&n.push(o[r]);return new t(e.unique(n))},remove:function(){for(var t=0;t<this.length;t++)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this},add:function(){var t,i,n=this;for(t=0;t<arguments.length;t++){var a=e(arguments[t]);for(i=0;i<a.length;i++)n[n.length]=a[i],n.length++}return n}},e.fn=t.prototype,e.unique=function(t){for(var e=[],i=0;i<t.length;i++)-1===e.indexOf(t[i])&&e.push(t[i]);return e},e}()),a=["jQuery","Zepto","Dom7"],o=0;o<a.length;o++)window[a[o]]&&function(t){t.fn.swiper=function(i){var n;return t(this).each(function(){var t=new e(this,i);n||(n=t)}),n}}(window[a[o]]);var r;r=void 0===i?window.Dom7||window.Zepto||window.jQuery:i,r&&("transitionEnd"in r.fn||(r.fn.transitionEnd=function(t){function e(o){if(o.target===this)for(t.call(this,o),i=0;i<n.length;i++)a.off(n[i],e)}var i,n=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],a=this;if(t)for(i=0;i<n.length;i++)a.on(n[i],e);return this}),"transform"in r.fn||(r.fn.transform=function(t){for(var e=0;e<this.length;e++){var i=this[e].style;i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=t}return this}),"transition"in r.fn||(r.fn.transition=function(t){"string"!=typeof t&&(t+="ms");for(var e=0;e<this.length;e++){var i=this[e].style;i.webkitTransitionDuration=i.MsTransitionDuration=i.msTransitionDuration=i.MozTransitionDuration=i.OTransitionDuration=i.transitionDuration=t}return this}),"outerWidth"in r.fn||(r.fn.outerWidth=function(t){return this.length>0?t?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null})),window.Swiper=e}(),t.exports=window.Swiper},function(t,e,i){"use strict";var n,a,o;"function"==typeof Symbol&&Symbol.iterator;!function(r){a=[i(0)],n=r,void 0!==(o="function"==typeof n?n.apply(e,a):n)&&(t.exports=o)}(function(t){var e,i,n,a,o,r,s=function(){},l=!!window.jQuery,u=t(window),d=function(t,i){e.ev.on("mfp"+t+".mfp",i)},c=function(e,i,n,a){var o=document.createElement("div");return o.className="mfp-"+e,n&&(o.innerHTML=n),a?i&&i.appendChild(o):(o=t(o),i&&o.appendTo(i)),o},p=function(i,n){e.ev.triggerHandler("mfp"+i,n),e.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),e.st.callbacks[i]&&e.st.callbacks[i].apply(e,t.isArray(n)?n:[n]))},f=function(i){return i===r&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace("%title%",e.st.tClose)),r=i),e.currTemplate.closeBtn},h=function(){t.magnificPopup.instance||(e=new s,e.init(),t.magnificPopup.instance=e)},m=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1};s.prototype={constructor:s,init:function(){var i=navigator.appVersion;e.isLowIE=e.isIE8=document.all&&!document.addEventListener,e.isAndroid=/android/gi.test(i),e.isIOS=/iphone|ipad|ipod/gi.test(i),e.supportsTransition=m(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),n=t(document),e.popupsCache={}},open:function(i){var a;if(!1===i.isObj){e.items=i.items.toArray(),e.index=0;var r,s=i.items;for(a=0;a<s.length;a++)if(r=s[a],r.parsed&&(r=r.el[0]),r===i.el[0]){e.index=a;break}}else e.items=t.isArray(i.items)?i.items:[i.items],e.index=i.index||0;if(e.isOpen)return void e.updateItemHTML();e.types=[],o="",i.mainEl&&i.mainEl.length?e.ev=i.mainEl.eq(0):e.ev=n,i.key?(e.popupsCache[i.key]||(e.popupsCache[i.key]={}),e.currTemplate=e.popupsCache[i.key]):e.currTemplate={},e.st=t.extend(!0,{},t.magnificPopup.defaults,i),e.fixedContentPos="auto"===e.st.fixedContentPos?!e.probablyMobile:e.st.fixedContentPos,e.st.modal&&(e.st.closeOnContentClick=!1,e.st.closeOnBgClick=!1,e.st.showCloseBtn=!1,e.st.enableEscapeKey=!1),e.bgOverlay||(e.bgOverlay=c("bg").on("click.mfp",function(){e.close()}),e.wrap=c("wrap").attr("tabindex",-1).on("click.mfp",function(t){e._checkIfClose(t.target)&&e.close()}),e.container=c("container",e.wrap)),e.contentContainer=c("content"),e.st.preloader&&(e.preloader=c("preloader",e.container,e.st.tLoading));var l=t.magnificPopup.modules;for(a=0;a<l.length;a++){var h=l[a];h=h.charAt(0).toUpperCase()+h.slice(1),e["init"+h].call(e)}p("BeforeOpen"),e.st.showCloseBtn&&(e.st.closeBtnInside?(d("MarkupParse",function(t,e,i,n){i.close_replaceWith=f(n.type)}),o+=" mfp-close-btn-in"):e.wrap.append(f())),e.st.alignTop&&(o+=" mfp-align-top"),e.fixedContentPos?e.wrap.css({overflow:e.st.overflowY,overflowX:"hidden",overflowY:e.st.overflowY}):e.wrap.css({top:u.scrollTop(),position:"absolute"}),(!1===e.st.fixedBgPos||"auto"===e.st.fixedBgPos&&!e.fixedContentPos)&&e.bgOverlay.css({height:n.height(),position:"absolute"}),e.st.enableEscapeKey&&n.on("keyup.mfp",function(t){27===t.keyCode&&e.close()}),u.on("resize.mfp",function(){e.updateSize()}),e.st.closeOnContentClick||(o+=" mfp-auto-cursor"),o&&e.wrap.addClass(o);var m=e.wH=u.height(),g={};if(e.fixedContentPos&&e._hasScrollBar(m)){var v=e._getScrollbarSize();v&&(g.marginRight=v)}e.fixedContentPos&&(e.isIE7?t("body, html").css("overflow","hidden"):g.overflow="hidden");var y=e.st.mainClass;return e.isIE7&&(y+=" mfp-ie7"),y&&e._addClassToMFP(y),e.updateItemHTML(),p("BuildControls"),t("html").css(g),e.bgOverlay.add(e.wrap).prependTo(e.st.prependTo||t(document.body)),e._lastFocusedEl=document.activeElement,setTimeout(function(){e.content?(e._addClassToMFP("mfp-ready"),e._setFocus()):e.bgOverlay.addClass("mfp-ready"),n.on("focusin.mfp",e._onFocusIn)},16),e.isOpen=!0,e.updateSize(m),p("Open"),i},close:function(){e.isOpen&&(p("BeforeClose"),e.isOpen=!1,e.st.removalDelay&&!e.isLowIE&&e.supportsTransition?(e._addClassToMFP("mfp-removing"),setTimeout(function(){e._close()},e.st.removalDelay)):e._close())},_close:function(){p("Close");var i="mfp-removing mfp-ready ";if(e.bgOverlay.detach(),e.wrap.detach(),e.container.empty(),e.st.mainClass&&(i+=e.st.mainClass+" "),e._removeClassFromMFP(i),e.fixedContentPos){var a={marginRight:""};e.isIE7?t("body, html").css("overflow",""):a.overflow="",t("html").css(a)}n.off("keyup.mfp focusin.mfp"),e.ev.off(".mfp"),e.wrap.attr("class","mfp-wrap").removeAttr("style"),e.bgOverlay.attr("class","mfp-bg"),e.container.attr("class","mfp-container"),!e.st.showCloseBtn||e.st.closeBtnInside&&!0!==e.currTemplate[e.currItem.type]||e.currTemplate.closeBtn&&e.currTemplate.closeBtn.detach(),e.st.autoFocusLast&&e._lastFocusedEl&&t(e._lastFocusedEl).focus(),e.currItem=null,e.content=null,e.currTemplate=null,e.prevHeight=0,p("AfterClose")},updateSize:function(t){if(e.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*i;e.wrap.css("height",n),e.wH=n}else e.wH=t||u.height();e.fixedContentPos||e.wrap.css("height",e.wH),p("Resize")},updateItemHTML:function(){var i=e.items[e.index];e.contentContainer.detach(),e.content&&e.content.detach(),i.parsed||(i=e.parseEl(e.index));var n=i.type;if(p("BeforeChange",[e.currItem?e.currItem.type:"",n]),e.currItem=i,!e.currTemplate[n]){var o=!!e.st[n]&&e.st[n].markup;p("FirstMarkupParse",o),e.currTemplate[n]=!o||t(o)}a&&a!==i.type&&e.container.removeClass("mfp-"+a+"-holder");var r=e["get"+n.charAt(0).toUpperCase()+n.slice(1)](i,e.currTemplate[n]);e.appendContent(r,n),i.preloaded=!0,p("Change",i),a=i.type,e.container.prepend(e.contentContainer),p("AfterChange")},appendContent:function(t,i){e.content=t,t?e.st.showCloseBtn&&e.st.closeBtnInside&&!0===e.currTemplate[i]?e.content.find(".mfp-close").length||e.content.append(f()):e.content=t:e.content="",p("BeforeAppend"),e.container.addClass("mfp-"+i+"-holder"),e.contentContainer.append(e.content)},parseEl:function(i){var n,a=e.items[i];if(a.tagName?a={el:t(a)}:(n=a.type,a={data:a,src:a.src}),a.el){for(var o=e.types,r=0;r<o.length;r++)if(a.el.hasClass("mfp-"+o[r])){n=o[r];break}a.src=a.el.attr("data-mfp-src"),a.src||(a.src=a.el.attr("href"))}return a.type=n||e.st.type||"inline",a.index=i,a.parsed=!0,e.items[i]=a,p("ElementParse",a),e.items[i]},addGroup:function(t,i){var n=function(n){n.mfpEl=this,e._openClick(n,t,i)};i||(i={});var a="click.magnificPopup";i.mainEl=t,i.items?(i.isObj=!0,t.off(a).on(a,n)):(i.isObj=!1,i.delegate?t.off(a).on(a,i.delegate,n):(i.items=t,t.off(a).on(a,n)))},_openClick:function(i,n,a){if((void 0!==a.midClick?a.midClick:t.magnificPopup.defaults.midClick)||!(2===i.which||i.ctrlKey||i.metaKey||i.altKey||i.shiftKey)){var o=void 0!==a.disableOn?a.disableOn:t.magnificPopup.defaults.disableOn;if(o)if(t.isFunction(o)){if(!o.call(e))return!0}else if(u.width()<o)return!0;i.type&&(i.preventDefault(),e.isOpen&&i.stopPropagation()),a.el=t(i.mfpEl),a.delegate&&(a.items=n.find(a.delegate)),e.open(a)}},updateStatus:function(t,n){if(e.preloader){i!==t&&e.container.removeClass("mfp-s-"+i),n||"loading"!==t||(n=e.st.tLoading);var a={status:t,text:n};p("UpdateStatus",a),t=a.status,n=a.text,e.preloader.html(n),e.preloader.find("a").on("click",function(t){t.stopImmediatePropagation()}),e.container.addClass("mfp-s-"+t),i=t}},_checkIfClose:function(i){if(!t(i).hasClass("mfp-prevent-close")){var n=e.st.closeOnContentClick,a=e.st.closeOnBgClick;if(n&&a)return!0;if(!e.content||t(i).hasClass("mfp-close")||e.preloader&&i===e.preloader[0])return!0;if(i===e.content[0]||t.contains(e.content[0],i)){if(n)return!0}else if(a&&t.contains(document,i))return!0;return!1}},_addClassToMFP:function(t){e.bgOverlay.addClass(t),e.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),e.wrap.removeClass(t)},_hasScrollBar:function(t){return(e.isIE7?n.height():document.body.scrollHeight)>(t||u.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(i){if(i.target!==e.wrap[0]&&!t.contains(e.wrap[0],i.target))return e._setFocus(),!1},_parseMarkup:function(e,i,n){var a;n.data&&(i=t.extend(n.data,i)),p("MarkupParse",[e,i,n]),t.each(i,function(i,n){if(void 0===n||!1===n)return!0;if(a=i.split("_"),a.length>1){var o=e.find(".mfp-"+a[0]);if(o.length>0){var r=a[1];"replaceWith"===r?o[0]!==n[0]&&o.replaceWith(n):"img"===r?o.is("img")?o.attr("src",n):o.replaceWith(t("<img>").attr("src",n).attr("class",o.attr("class"))):o.attr(a[1],n)}}else e.find(".mfp-"+i).html(n)})},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e.scrollbarSize}},t.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(e,i){return h(),e=e?t.extend(!0,{},e):{},e.isObj=!0,e.index=i||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,i){i.options&&(t.magnificPopup.defaults[e]=i.options),t.extend(this.proto,i.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},t.fn.magnificPopup=function(i){h();var n=t(this);if("string"==typeof i)if("open"===i){var a,o=l?n.data("magnificPopup"):n[0].magnificPopup,r=parseInt(arguments[1],10)||0;o.items?a=o.items[r]:(a=n,o.delegate&&(a=a.find(o.delegate)),a=a.eq(r)),e._openClick({mfpEl:a},n,o)}else e.isOpen&&e[i].apply(e,Array.prototype.slice.call(arguments,1));else i=t.extend(!0,{},i),l?n.data("magnificPopup",i):n[0].magnificPopup=i,e.addGroup(n,i);return n};var g,v,y,w=function(){y&&(v.after(y.addClass(g)).detach(),y=null)};t.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push("inline"),d("Close.inline",function(){w()})},getInline:function(i,n){if(w(),i.src){var a=e.st.inline,o=t(i.src);if(o.length){var r=o[0].parentNode;r&&r.tagName&&(v||(g=a.hiddenClass,v=c(g),g="mfp-"+g),y=o.after(v).detach().removeClass(g)),e.updateStatus("ready")}else e.updateStatus("error",a.tNotFound),o=t("<div>");return i.inlineElement=o,o}return e.updateStatus("ready"),e._parseMarkup(n,{},i),n}}});var b,_=function(){b&&t(document.body).removeClass(b)},C=function(){_(),e.req&&e.req.abort()};t.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){e.types.push("ajax"),b=e.st.ajax.cursor,d("Close.ajax",C),d("BeforeChange.ajax",C)},getAjax:function(i){b&&t(document.body).addClass(b),e.updateStatus("loading");var n=t.extend({url:i.src,success:function(n,a,o){var r={data:n,xhr:o};p("ParseAjax",r),e.appendContent(t(r.data),"ajax"),i.finished=!0,_(),e._setFocus(),setTimeout(function(){e.wrap.addClass("mfp-ready")},16),e.updateStatus("ready"),p("AjaxContentAdded")},error:function(){_(),i.finished=i.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",i.src))}},e.st.ajax.settings);return e.req=t.ajax(n),""}}});var x,T=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var n=e.st.image.titleSrc;if(n){if(t.isFunction(n))return n.call(e,i);if(i.el)return i.el.attr(n)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var i=e.st.image,n=".image";e.types.push("image"),d("Open"+n,function(){"image"===e.currItem.type&&i.cursor&&t(document.body).addClass(i.cursor)}),d("Close"+n,function(){i.cursor&&t(document.body).removeClass(i.cursor),u.off("resize.mfp")}),d("Resize"+n,e.resizeImage),e.isLowIE&&d("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var i=0;e.isLowIE&&(i=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-i)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,x&&clearInterval(x),t.isCheckingImgSize=!1,p("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var i=0,n=t.img[0];!function a(o){x&&clearInterval(x),x=setInterval(function(){if(n.naturalWidth>0)return void e._onImageHasSize(t);i>200&&clearInterval(x),i++,3===i?a(10):40===i?a(50):100===i&&a(500)},o)}(1)},getImage:function(i,n){var a=0,o=function t(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,p("ImageLoadComplete")):(a++,a<200?setTimeout(t,100):r()))},r=function(){i&&(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("error",s.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},s=e.st.image,l=n.find(".mfp-img");if(l.length){var u=document.createElement("img");u.className="mfp-img",i.el&&i.el.find("img").length&&(u.alt=i.el.find("img").attr("alt")),i.img=t(u).on("load.mfploader",o).on("error.mfploader",r),u.src=i.src,l.is("img")&&(i.img=i.img.clone()),u=i.img[0],u.naturalWidth>0?i.hasSize=!0:u.width||(i.hasSize=!1)}return e._parseMarkup(n,{title:T(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?(x&&clearInterval(x),i.loadError?(n.addClass("mfp-loading"),e.updateStatus("error",s.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),e.updateStatus("ready")),n):(e.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),e.findImageSize(i)),n)}}});var S,E=function(){return void 0===S&&(S=void 0!==document.createElement("p").style.MozTransform),S};t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,i=e.st.zoom,n=".zoom";if(i.enabled&&e.supportsTransition){var a,o,r=i.duration,s=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+i.duration/1e3+"s "+i.easing,a={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return a["-webkit-"+o]=a["-moz-"+o]=a["-o-"+o]=a[o]=n,e.css(a),e},l=function(){e.content.css("visibility","visible")};d("BuildControls"+n,function(){if(e._allowZoom()){if(clearTimeout(a),e.content.css("visibility","hidden"),!(t=e._getItemToZoom()))return void l();o=s(t),o.css(e._getOffset()),e.wrap.append(o),a=setTimeout(function(){o.css(e._getOffset(!0)),a=setTimeout(function(){l(),setTimeout(function(){o.remove(),t=o=null,p("ZoomAnimationEnded")},16)},r)},16)}}),d("BeforeClose"+n,function(){if(e._allowZoom()){if(clearTimeout(a),e.st.removalDelay=r,!t){if(!(t=e._getItemToZoom()))return;o=s(t)}o.css(e._getOffset(!0)),e.wrap.append(o),e.content.css("visibility","hidden"),setTimeout(function(){o.css(e._getOffset())},16)}}),d("Close"+n,function(){e._allowZoom()&&(l(),o&&o.remove(),t=null)})}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return!!e.currItem.hasSize&&e.currItem.img},_getOffset:function(i){var n;n=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem);var a=n.offset(),o=parseInt(n.css("padding-top"),10),r=parseInt(n.css("padding-bottom"),10);a.top-=t(window).scrollTop()-o;var s={width:n.width(),height:(l?n.innerHeight():n[0].offsetHeight)-r-o};return E()?s["-moz-transform"]=s.transform="translate("+a.left+"px,"+a.top+"px)":(s.left=a.left,s.top=a.top),s}}});var k=function(t){if(e.currTemplate.iframe){var i=e.currTemplate.iframe.find("iframe");i.length&&(t||(i[0].src="//about:blank"),e.isIE8&&i.css("display",t?"block":"none"))}};t.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){e.types.push("iframe"),d("BeforeChange",function(t,e,i){e!==i&&("iframe"===e?k():"iframe"===i&&k(!0))}),d("Close.iframe",function(){k()})},getIframe:function(i,n){var a=i.src,o=e.st.iframe;t.each(o.patterns,function(){if(a.indexOf(this.index)>-1)return this.id&&(a="string"==typeof this.id?a.substr(a.lastIndexOf(this.id)+this.id.length,a.length):this.id.call(this,a)),a=this.src.replace("%id%",a),!1});var r={};return o.srcAction&&(r[o.srcAction]=a),e._parseMarkup(n,r,i),e.updateStatus("ready"),n}}});var I=function(t){var i=e.items.length;return t>i-1?t-i:t<0?i+t:t},A=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=e.st.gallery,a=".mfp-gallery";if(e.direction=!0,!i||!i.enabled)return!1;o+=" mfp-gallery",d("Open"+a,function(){i.navigateByImgClick&&e.wrap.on("click"+a,".mfp-img",function(){if(e.items.length>1)return e.next(),!1}),n.on("keydown"+a,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),d("UpdateStatus"+a,function(t,i){i.text&&(i.text=A(i.text,e.currItem.index,e.items.length))}),d("MarkupParse"+a,function(t,n,a,o){var r=e.items.length;a.counter=r>1?A(i.tCounter,o.index,r):""}),d("BuildControls"+a,function(){if(e.items.length>1&&i.arrows&&!e.arrowLeft){var n=i.arrowMarkup,a=e.arrowLeft=t(n.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),o=e.arrowRight=t(n.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");a.click(function(){e.prev()}),o.click(function(){e.next()}),e.container.append(a.add(o))}}),d("Change"+a,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),d("Close"+a,function(){n.off(a),e.wrap.off("click"+a),e.arrowRight=e.arrowLeft=null})},next:function(){e.direction=!0,e.index=I(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=I(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,i=e.st.gallery.preload,n=Math.min(i[0],e.items.length),a=Math.min(i[1],e.items.length);for(t=1;t<=(e.direction?a:n);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?n:a);t++)e._preloadItem(e.index-t)},_preloadItem:function(i){if(i=I(i),!e.items[i].preloaded){var n=e.items[i];n.parsed||(n=e.parseEl(i)),p("LazyLoad",n),"image"===n.type&&(n.img=t('<img class="mfp-img" />').on("load.mfploader",function(){n.hasSize=!0}).on("error.mfploader",function(){n.hasSize=!0,n.loadError=!0,p("LazyLoadError",n)}).attr("src",n.src)),n.preloaded=!0}}}});t.magnificPopup.registerModule("retina",{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,i=t.ratio;i=isNaN(i)?i():i,i>1&&(d("ImageHasSize.retina",function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})}),d("ElementParse.retina",function(e,n){n.src=t.replaceSrc(n,i)}))}}}}),h()})},function(t,e,i){"use strict";!function(){function t(n){if(!n)throw new Error("No options passed to Waypoint constructor");if(!n.element)throw new Error("No element option passed to Waypoint constructor");if(!n.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,n),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=n.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var n in i)e.push(i[n]);for(var a=0,o=e.length;a<o;a++)e[a][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.Context.refreshAll();for(var e in i)i[e].enabled=!0;return this},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=a.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,n[t.waypointContextKey]=this,i+=1,a.windowContext||(a.windowContext=!0,a.windowContext=new e(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,n={},a=window.Waypoint,o=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete n[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,a.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){e.didScroll&&!a.isTouch||(e.didScroll=!0,a.requestAnimationFrame(t))})},e.prototype.handleResize=function(){a.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var n=e[i],a=n.newScroll>n.oldScroll,o=a?n.forward:n.backward;for(var r in this.waypoints[i]){var s=this.waypoints[i][r];if(null!==s.triggerPoint){var l=n.oldScroll<s.triggerPoint,u=n.newScroll>=s.triggerPoint,d=l&&u,c=!l&&!u;(d||c)&&(s.queueTrigger(o),t[s.group.id]=s.group)}}}for(var p in t)t[p].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?a.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?a.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,a=t.length;n<a;n++)t[n].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),n={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var o in t){var r=t[o];for(var s in this.waypoints[o]){var l,u,d,c,p,f=this.waypoints[o][s],h=f.options.offset,m=f.triggerPoint,g=0,v=null==m;f.element!==f.element.window&&(g=f.adapter.offset()[r.offsetProp]),"function"==typeof h?h=h.apply(f):"string"==typeof h&&(h=parseFloat(h),f.options.offset.indexOf("%")>-1&&(h=Math.ceil(r.contextDimension*h/100))),l=r.contextScroll-r.contextOffset,f.triggerPoint=Math.floor(g+l-h),u=m<r.oldScroll,d=f.triggerPoint>=r.oldScroll,c=u&&d,p=!u&&!d,!v&&c?(f.queueTrigger(r.backward),n[f.group.id]=f.group):!v&&p?(f.queueTrigger(r.forward),n[f.group.id]=f.group):v&&r.oldScroll>=f.triggerPoint&&(f.queueTrigger(r.forward),n[f.group.id]=f.group)}}return a.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in n)n[t].refresh()},e.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){o&&o(),e.refreshAll()},a.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},a.Context=e}(),function(){function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}var n={vertical:{},horizontal:{}},a=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var n=this.triggerQueues[i],a="up"===i||"left"===i;n.sort(a?e:t);for(var o=0,r=n.length;o<r;o+=1){var s=n[o];(s.options.continuous||o===n.length-1)&&s.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=a.Adapter.inArray(e,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=a.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=a.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return n[t.axis][t.name]||new i(t)},a.Group=i}(),function(){function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,n){t[n]=e[n]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){function t(t){return function(){var i=[],n=arguments[0];return t.isFunction(arguments[0])&&(n=t.extend({},arguments[1]),n.handler=arguments[0]),this.each(function(){var a=t.extend({},n,{element:this});"string"==typeof a.context&&(a.context=t(this).closest(a.context)[0]),i.push(new e(a))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}()},function(t,e,i){"use strict";!function(){function t(n){this.options=e.extend({},i.defaults,t.defaults,n),this.element=this.options.element,this.$element=e(this.element),this.createWrapper(),this.createWaypoint()}var e=window.jQuery,i=window.Waypoint;t.prototype.createWaypoint=function(){var t=this.options.handler;this.waypoint=new i(e.extend({},this.options,{element:this.wrapper,handler:e.proxy(function(e){var i=this.options.direction.indexOf(e)>-1,n=i?this.$element.outerHeight(!0):"";this.$wrapper.height(n),this.$element.toggleClass(this.options.stuckClass,i),t&&t.call(this,e)},this)}))},t.prototype.createWrapper=function(){this.options.wrapper&&this.$element.wrap(this.options.wrapper),this.$wrapper=this.$element.parent(),this.wrapper=this.$wrapper[0]},t.prototype.destroy=function(){this.$element.parent()[0]===this.wrapper&&(this.waypoint.destroy(),this.$element.removeClass(this.options.stuckClass),this.options.wrapper&&this.$element.unwrap())},t.defaults={wrapper:'<div class="sticky-wrapper" />',stuckClass:"stuck",direction:"down right"},i.Sticky=t}()},function(t,e,i){"use strict";!function(){function t(n){var a=this;"scrollRestoration"in history&&(history.scrollRestoration="manual"),this.options=e.extend({},t.defaults,n),this.container=this.options.element,"auto"!==this.options.container&&(this.container=this.options.container),this.$container=e(this.container),this.$more=e(this.options.more),this.start=this.$more.data("start"),prestashop.on("updateProductList",function(t){if(void 0!==t.pagination)a.start=t.pagination.items_shown_from;else if(void 0!==t.rendered_products_bottom){var i=e(t.rendered_products).find(".product_count_infinite span").html();i&&(a.start=i)}}),this.$more.length&&(this.setupHandler(),this.waypoint=new i(this.options))}var e=window.jQuery,i=window.Waypoint;t.prototype.setupHandler=function(){this.options.handler=e.proxy(function(){this.options.onBeforePageLoad(),this.destroy(),this.$container.parent().addClass(this.options.loadingClass),e.get(e(this.options.more).attr("href"),{from_infi:""},e.proxy(function(t){var n=e(e.parseHTML(t)),a=n.find(this.options.more),o=n.find(this.options.items);o.length||(o=n.filter(this.options.items)),this.$container.append(o);var r=n.find(this.options.paginaton_sample);r.length||(r=n.filter(this.options.paginaton_sample)),e(this.options.paginaton_sample).replaceWith(r);var s=n.find(this.options.product_count_infinite);s.length||(s=n.filter(this.options.product_count_infinite)),s.find("span").html(this.start),e(this.options.product_count_infinite).replaceWith(s),this.$container.parent().removeClass(this.options.loadingClass),a.length||(a=n.filter(this.options.more)),a.length?(this.$more.replaceWith(a),this.$more=a,this.waypoint=new i(this.options)):this.$more.remove(),window.history.pushState({},void 0,s.data("current_url")),this.options.onAfterPageLoad(o)},this))},this)},t.prototype.destroy=function(){this.waypoint&&this.waypoint.destroy()},t.defaults={container:"auto",items:".infinite-item",paginaton_sample:".paginaton_sample",product_count_infinite:".product_count_infinite",more:".infinite-more-link",offset:"bottom-in-view",loadingClass:"infinite-loading",onBeforePageLoad:e.noop,onAfterPageLoad:e.noop},i.Infinite=t}()},function(t,e,i){"use strict";!function(t){t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};return e&&t.extend(i,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e.push(i.customSelector);var n=".fitvidsignore";i.ignore&&(n=n+", "+i.ignore);var a=t(this).find(e.join(","));a=a.not("object object"),a=a.not(n),a.each(function(){var e=t(this);if(!(e.parents(n).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var i="object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height(),a=isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10),o=i/a;if(!e.attr("name")){var r="fitvid"+t.fn.fitVids._count;e.attr("name",r),t.fn.fitVids._count++}e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*o+"%"),e.removeAttr("height").removeAttr("width")}})})},t.fn.fitVids._count=0}(window.jQuery||window.Zepto)},function(t,e,i){"use strict";(function(t){var i,n,a,o="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};!function(r,s){if("object"==o(t)&&"object"==o(t.exports)){if(!r.document)throw new Error("HC-Sticky requires a browser to run.");t.exports=s(r)}else n=[],i=s(r),void 0!==(a="function"==typeof i?i.apply(e,n):i)&&(t.exports=a)}("undefined"!=typeof window?window:void 0,function(t){var e={top:0,bottom:0,bottomEnd:0,innerTop:0,innerSticker:null,stickyClass:"sticky",stickTo:null,followScroll:!0,queries:null,queryFlow:"down",onStart:null,onStop:null,onBeforeResize:null,onResize:null,resizeDebounce:100,disable:!1},i=t.document,n=function n(a,r){if("string"==typeof a&&(a=i.querySelector(a)),!a)return!1;var s={},l=n.Helpers,u=a.parentNode;"static"===l.getStyle(u,"position")&&(u.style.position="relative");var d=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l.isEmptyObject(t)&&!l.isEmptyObject(s)||(s=Object.assign({},e,s,t))},c=function(){return s.disable},p=function(){if(s.queries){var i=t.innerWidth,n=s.queryFlow,a=s.queries;if(g=r,s=Object.assign({},e,g||{}),"up"===n)for(var o in a)o<=i&&!l.isEmptyObject(a[o])&&d(a[o]);else{var u=[];for(var c in s.queries){var p={};p[c]=a[c],u.push(p)}for(var f=u.length-1;0<=f;f--){var h=u[f],m=Object.keys(h)[0];i<=m&&!l.isEmptyObject(h[m])&&d(h[m])}}}var g},f={css:{},position:null,stick:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l.hasClass(a,s.stickyClass)||(!1===h.isAttached&&h.attach(),f.position="fixed",a.style.position="fixed",a.style.left=h.offsetLeft+"px",a.style.width=h.width,void 0===t.bottom?a.style.bottom="auto":a.style.bottom=t.bottom+"px",void 0===t.top?a.style.top="auto":a.style.top=t.top+"px",a.classList?a.classList.add(s.stickyClass):a.className+=" "+s.stickyClass,s.onStart&&s.onStart.call(a,s))},release:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(t.stop=t.stop||!1,!0===t.stop||"fixed"===f.position||null===f.position||!(void 0===t.top&&void 0===t.bottom||void 0!==t.top&&(parseInt(l.getStyle(a,"top"))||0)===t.top||void 0!==t.bottom&&(parseInt(l.getStyle(a,"bottom"))||0)===t.bottom)){!0===t.stop?!0===h.isAttached&&h.detach():!1===h.isAttached&&h.attach();var e=t.position||f.css.position;f.position=e,a.style.position=e,a.style.left=!0===t.stop?f.css.left:h.positionLeft+"px",a.style.width="absolute"!==e?f.css.width:h.width,void 0===t.bottom?a.style.bottom=!0===t.stop?"":"auto":a.style.bottom=t.bottom+"px",void 0===t.top?a.style.top=!0===t.stop?"":"auto":a.style.top=t.top+"px",a.classList?a.classList.remove(s.stickyClass):a.className=a.className.replace(new RegExp("(^|\\b)"+s.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),s.onStop&&s.onStop.call(a,s)}}},h={el:i.createElement("div"),offsetLeft:null,positionLeft:null,width:null,isAttached:!1,init:function(){for(var t in f.css)h.el.style[t]=f.css[t];h.el.style["z-index"]="-1";var e=l.getStyle(a);h.offsetLeft=l.offset(a).left-(parseInt(e.marginLeft)||0),h.positionLeft=l.position(a).left,h.width=l.getStyle(a,"width")},attach:function(){u.insertBefore(h.el,a),h.isAttached=!0},detach:function(){h.el=u.removeChild(h.el),h.isAttached=!1}},m=void 0,g=void 0,v=void 0,y=void 0,w=void 0,b=void 0,_=void 0,C=void 0,x=void 0,T=void 0,S=void 0,E=void 0,k=void 0,I=void 0,A=void 0,P=void 0,O=void 0,D=void 0,z=function(){var e,n,r,d;f.css=(e=a,n=l.getCascadedStyle(e),r=l.getStyle(e),d={height:e.offsetHeight+"px",left:n.left,right:n.right,top:n.top,bottom:n.bottom,position:r.position,display:r.display,verticalAlign:r.verticalAlign,boxSizing:r.boxSizing,marginLeft:n.marginLeft,marginRight:n.marginRight,marginTop:n.marginTop,marginBottom:n.marginBottom,paddingLeft:n.paddingLeft,paddingRight:n.paddingRight},n.float&&(d.float=n.float||"none"),n.cssFloat&&(d.cssFloat=n.cssFloat||"none"),r.MozBoxSizing&&(d.MozBoxSizing=r.MozBoxSizing),d.width="auto"!==n.width?n.width:"border-box"===d.boxSizing||"border-box"===d.MozBoxSizing?e.offsetWidth+"px":r.width,d),h.init(),m=!(!s.stickTo||!("document"===s.stickTo||s.stickTo.nodeType&&9===s.stickTo.nodeType||"object"==o(s.stickTo)&&s.stickTo instanceof("undefined"!=typeof HTMLDocument?HTMLDocument:Document))),g=s.stickTo?m?i:"string"==typeof s.stickTo?i.querySelector(s.stickTo):s.stickTo:u,A=(D=function(){var t=a.offsetHeight+(parseInt(f.css.marginTop)||0)+(parseInt(f.css.marginBottom)||0),e=(A||0)-t;return-1<=e&&e<=1?A:t})(),y=(O=function(){return m?Math.max(i.documentElement.clientHeight,i.body.scrollHeight,i.documentElement.scrollHeight,i.body.offsetHeight,i.documentElement.offsetHeight):g.offsetHeight})(),w=m?0:l.offset(g).top,b=s.stickTo?m?0:l.offset(u).top:w,_=t.innerHeight,P=a.offsetTop-(parseInt(f.css.marginTop)||0),v=s.innerSticker?"string"==typeof s.innerSticker?i.querySelector(s.innerSticker):s.innerSticker:null,C=isNaN(s.top)&&-1<s.top.indexOf("%")?parseFloat(s.top)/100*_:s.top,x=isNaN(s.bottom)&&-1<s.bottom.indexOf("%")?parseFloat(s.bottom)/100*_:s.bottom,T=v?v.offsetTop:s.innerTop?s.innerTop:0,S=isNaN(s.bottomEnd)&&-1<s.bottomEnd.indexOf("%")?parseFloat(s.bottomEnd)/100*_:s.bottomEnd,E=w-C+T+P},M=t.pageYOffset||i.documentElement.scrollTop,L=0,N=void 0,H=function(){A=D(),y=O(),k=w+y-C-S,I=_<A;var e=t.pageYOffset||i.documentElement.scrollTop,n=Math.round(l.offset(a).top),o=n-e,r=void 0;N=e<M?"up":"down",L=e-M,E<(M=e)?k+C+(I?x:0)-(s.followScroll&&I?0:C)<=e+A-T-(_-(E-T)<A-T&&s.followScroll&&0<(r=A-_-T)?r:0)?f.release({position:"absolute",bottom:b+u.offsetHeight-k-C}):I&&s.followScroll?"down"===N?Math.floor(o+A+x)<=_?f.stick({bottom:x}):"fixed"===f.position&&f.release({position:"absolute",top:n-C-E-L+T}):Math.ceil(o+T)<0&&"fixed"===f.position?f.release({position:"absolute",top:n-C-E+T-L}):e+C-T<=n&&f.stick({top:C-T}):f.stick({top:C-T}):f.release({stop:!0})},B=!1,j=!1,W=function(){B&&(l.event.unbind(t,"scroll",H),B=!1)},F=function(){null!==a.offsetParent&&"none"!==l.getStyle(a,"display")?(z(),y<=A?W():(H(),B||(l.event.bind(t,"scroll",H),B=!0))):W()},R=function(){a.style.position="",a.style.left="",a.style.top="",a.style.bottom="",a.style.width="",a.classList?a.classList.remove(s.stickyClass):a.className=a.className.replace(new RegExp("(^|\\b)"+s.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),f.css={},!(f.position=null)===h.isAttached&&h.detach()},V=function(){R(),p(),c()?W():F()},$=function(){s.onBeforeResize&&s.onBeforeResize.call(a,s),V(),s.onResize&&s.onResize.call(a,s)},q=s.resizeDebounce?l.debounce($,s.resizeDebounce):$,G=function(){j&&(l.event.unbind(t,"resize",q),j=!1),W()},Y=function(){j||(l.event.bind(t,"resize",q),j=!0),p(),c()?W():F()};this.options=function(t){return t?s.option||null:Object.assign({},s)},this.reinit=V,this.update=function(t){d(t),r=Object.assign({},r,t||{}),V()},this.attach=Y,this.detach=G,this.destroy=function(){G(),R()},d(r),Y(),l.event.bind(t,"load",V)};if(void 0!==t.jQuery){var a=t.jQuery;a.fn.extend({hcSticky:function(t){return this.length?this.each(function(){var e="hcSticky",i=a.data(this,e);i?i.update(t):(i=new n(this,t),a.data(this,e,i))}):this}})}return t.hcSticky=t.hcSticky||n,n}),function(t){var e=t.hcSticky,i=t.document;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),n=1;n<arguments.length;n++){var a=arguments[n];if(null!=a)for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])}return i},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(t){var e,i;if(null==this)throw new TypeError("this is null or not defined");var n=Object(this),a=n.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(1<arguments.length&&(e=arguments[1]),i=0;i<a;){var o;i in n&&(o=n[i],t.call(e,o,i,n)),i++}});var n=function(){function e(e){var i=t.event;return i.target=i.target||i.srcElement||e,i}var n=i.documentElement,a=function(){};n.addEventListener?a=function(t,e,i){t.addEventListener(e,i,!1)}:n.attachEvent&&(a=function(t,i,n){t[i+n]=n.handleEvent?function(){var i=e(t);n.handleEvent.call(n,i)}:function(){var i=e(t);n.call(t,i)},t.attachEvent("on"+i,t[i+n])});var o=function(){};return n.removeEventListener?o=function(t,e,i){t.removeEventListener(e,i,!1)}:n.detachEvent&&(o=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(n){t[e+i]=void 0}}),{bind:a,unbind:o}}(),a=function(e,n){return t.getComputedStyle?n?i.defaultView.getComputedStyle(e,null).getPropertyValue(n):i.defaultView.getComputedStyle(e,null):e.currentStyle?n?e.currentStyle[n.replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]:e.currentStyle:void 0},o=function(e){var n=e.getBoundingClientRect(),a=t.pageYOffset||i.documentElement.scrollTop,o=t.pageXOffset||i.documentElement.scrollLeft;return{top:n.top+a,left:n.left+o}};e.Helpers={isEmptyObject:function(t){for(var e in t)return!1;return!0},debounce:function(t,e,i){var n=void 0;return function(){var a=this,o=arguments,r=i&&!n;clearTimeout(n),n=setTimeout(function(){n=null,i||t.apply(a,o)},e),r&&t.apply(a,o)}},hasClass:function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)},offset:o,position:function(t){var e=t.offsetParent,i=o(e),n=o(t),r=a(e),s=a(t);return i.top+=parseInt(r.borderTopWidth)||0,i.left+=parseInt(r.borderLeftWidth)||0,{top:n.top-i.top-(parseInt(s.marginTop)||0),left:n.left-i.left-(parseInt(s.marginLeft)||0)}},getStyle:a,getCascadedStyle:function(e){var n=e.cloneNode(!0);n.style.display="none",Array.prototype.slice.call(n.querySelectorAll('input[type="radio"]')).forEach(function(t){t.removeAttribute("name")}),e.parentNode.insertBefore(n,e.nextSibling);var a=void 0;n.currentStyle?a=n.currentStyle:t.getComputedStyle&&(a=i.defaultView.getComputedStyle(n,null));var o={};for(var r in a)!isNaN(r)||"string"!=typeof a[r]&&"number"!=typeof a[r]||(o[r]=a[r]);if(Object.keys(o).length<3)for(var s in o={},a)isNaN(s)||(o[a[s].replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]=a.getPropertyValue(a[s]));if(o.margin||"auto"!==o.marginLeft?o.margin||o.marginLeft!==o.marginRight||o.marginLeft!==o.marginTop||o.marginLeft!==o.marginBottom||(o.margin=o.marginLeft):o.margin="auto",!o.margin&&"0px"===o.marginLeft&&"0px"===o.marginRight){var l=e.offsetLeft-e.parentNode.offsetLeft,u=l-(parseInt(o.left)||0)-(parseInt(o.right)||0),d=e.parentNode.offsetWidth-e.offsetWidth-l-(parseInt(o.right)||0)+(parseInt(o.left)||0)-u;0!==d&&1!==d||(o.margin="auto")}return n.parentNode.removeChild(n),n=null,o},event:n}}(window)}).call(e,i(3)(t))},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function a(t,e){var i=e.children().detach();e.empty().append(t.children().detach()),t.append(i)}function o(){u.default.responsive.mobile?(0,s.default)("*[id^='_desktop_']").each(function(t,e){var i=(0,s.default)("#"+e.id.replace("_desktop_","_mobile_"));i.length&&a((0,s.default)(e),i)}):(0,s.default)("*[id^='_mobile_']").each(function(t,e){var i=(0,s.default)("#"+e.id.replace("_mobile_","_desktop_"));i.length&&a((0,s.default)(e),i)}),u.default.emit("responsive update",{mobile:u.default.responsive.mobile})}var r=i(0),s=n(r),l=i(1),u=n(l);u.default.responsive=u.default.responsive||{},u.default.responsive.current_width=window.innerWidth,u.default.responsive.min_width=992,u.default.responsive.mobile=u.default.responsive.current_width<u.default.responsive.min_width,(0,s.default)(window).on("resize",function(){var t=u.default.responsive.current_width,e=u.default.responsive.min_width,i=window.innerWidth,n=t>=e&&i<e||t<e&&i>=e;u.default.responsive.current_width=i,u.default.responsive.mobile=u.default.responsive.current_width<u.default.responsive.min_width,n&&o()}),(0,s.default)(document).ready(function(){u.default.responsive.mobile&&o()})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function a(){0!==(0,r.default)(".js-cancel-address").length&&(0,r.default)(".checkout-step:not(.js-current-step) .step-title").addClass("not-allowed"),(0,r.default)(".js-terms a").on("click",function(t){t.preventDefault();var e=(0,r.default)(t.target).attr("href");e&&(-1!=e.indexOf("?")?e+="&content_only=1":e+="?content_only=1",r.default.get(e,function(t){(0,r.default)("#modal").find(".js-modal-content").html((0,r.default)(t).find(".page-cms").contents())}).fail(function(t){l.default.emit("handleError",{eventType:"clickTerms",resp:t})})),(0,r.default)("#modal").modal({backdrop:!1}).modal("show")}),(0,r.default)(".js-gift-checkbox").on("click",function(t){(0,r.default)("#gift").collapse("toggle")})}var o=i(0),r=n(o),s=i(1),l=n(s);(0,r.default)(document).ready(function(){1===(0,r.default)("body#checkout").length&&a(),l.default.on("updatedDeliveryForm",function(t){void 0!==t.deliveryOption&&0!==t.deliveryOption.length&&((0,r.default)(".carrier-extra-content").hide(),t.deliveryOption.next(".carrier-extra-content").slideDown())})})},function(t,e,i){"use strict";function n(){(0,r.default)("#order-return-form table thead input[type=checkbox]").on("click",function(){var t=(0,r.default)(this).prop("checked");(0,r.default)("#order-return-form table tbody input[type=checkbox]").each(function(e,i){(0,r.default)(i).prop("checked",t)})})}function a(){(0,r.default)("body#order-detail")&&n()}var o=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(o);(0,r.default)(document).ready(a)},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function a(t){if(f.default.set("st_list_grid",t,{domain:sttheme.cookie_domain,path:sttheme.cookie_path}),"list"==t){var e=(0,s.default)(".products.product_list").removeClass("grid row").addClass("list").data("classnames");(0,s.default)(".product_list .product_list_item").removeClass(e).addClass("clearfix")}else{var e=(0,s.default)(".products.product_list").removeClass("list").addClass("grid row").data("classnames");(0,s.default)(".product_list .product_list_item").removeClass("clearfix").addClass(e)}}function o(t){(0,s.default)("#search_filters").replaceWith(t.rendered_facets),(0,s.default)("#js-active-search-filters").replaceWith(t.rendered_active_filters),(0,s.default)("#js-product-list-top").replaceWith(t.rendered_products_top),(0,s.default)("#js-product-list").replaceWith((0,s.default)(t.rendered_products).find(".swiper_inited").removeClass("swiper_inited").end()),(0,s.default)("#js-product-list-bottom").replaceWith(t.rendered_products_bottom),u.default.emit("updatedProductListDOM")}var r=i(0),s=n(r),l=i(1),u=n(l);i(4);var d=i(5),c=n(d),p=i(2),f=n(p);(0,s.default)(document).ready(function(){function t(){return l||(l=!0,!1)}var e=!1;u.default.on("clickQuickView",function(t){if(e||(0,s.default)("body").hasClass("product"))return!1;e=!0,(0,s.default)(".quick_view_"+t.dataset.idProduct).addClass("active");var n={action:"quickview",id_product:t.dataset.idProduct,id_product_attribute:t.dataset.idProductAttribute};s.default.post(u.default.urls.pages.product,n,null,"json").then(function(n){var a="#quickview-modal-"+n.product.id+"-"+n.product.id_product_attribute;(0,s.default)(a).remove(),(0,s.default)("body").append(n.quickview_html);var o=(0,s.default)(a);o.modal("show"),i(o),o.on("hidden.bs.modal",function(){o.remove()}),o.on("shown.bs.modal",function(i){u.default.emit("quickViewLoaded",{quickview_id:a}),e=!1,(0,s.default)(".quick_view_"+t.dataset.idProduct).removeClass("active")})}).fail(function(i){u.default.emit("handleError",{eventType:"clickQuickView",resp:i}),e=!1,(0,s.default)(".quick_view_"+t.dataset.idProduct).removeClass("active")})});var i=function(t){var e=t.find("#quantity_wanted");e.TouchSpin({verticalupclass:"fto-plus-2",verticaldownclass:"fto-minus",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:parseInt(e.attr("min"),10),max:parseInt(e.data("quantity"),10)>0?parseInt(e.data("quantity"),10):1e6})},n=new c.default;(0,s.default)("#search_filter_controls .ok").on("click",function(){n.resetSlidebar()});var r=function(t){if(void 0!==t.target.dataset.searchUrl)return t.target.dataset.searchUrl;if(void 0===(0,s.default)(t.target).parent()[0].dataset.searchUrl)throw new Error("Can not parse search URL");return(0,s.default)(t.target).parent()[0].dataset.searchUrl},l=!1;(0,s.default)("body").on("change","#search_filters input[data-search-url]",function(e){if(t())return(0,s.default)(this).prop("checked",!1),!1;(0,s.default)(e.target).closest(".facet-label").addClass("loading"),u.default.emit("updateFacets",r(e))}),(0,s.default)("body").on("click",".js-search-filters-clear-all",function(e){if(e.preventDefault(),t())return!1;u.default.emit("updateFacets",r(e))}),(0,s.default)("body").on("click",".js-search-link",function(e){if(e.preventDefault(),t())return!1;u.default.emit("updateFacets",(0,s.default)(e.target).closest(".facet-label").addClass("loading").end().closest("a").attr("href"))}),(0,s.default)("body").on("change","#search_filters select",function(e){if(t())return!1;var i=(0,s.default)(e.target).closest("form");u.default.emit("updateFacets","?"+i.serialize())}),u.default.on("updateProductList",function(t){l=!1,o(t)}),(0,s.default)(window).on("popstate",function(t){var e=t.originalEvent.state;if(e&&void 0!==e.st_infinite&&e.st_infinite){var i=u.default.st_storage.getItem("st_infinite",e.st_infinite);i&&(i.rendered_facets=(0,s.default)(i.rendered_facets).find(".facet-label").removeClass("loading").end().prop("outerHTML"),u.default.emit("updateProductList",i))}}),u.default.on("updateFacets",function(){u.default.listinghistory(0)}),(0,s.default)("body").on("click",".list_grid_switcher div",function(t){t.preventDefault(),(0,s.default)(this).addClass("selected").siblings().removeClass("selected"),a((0,s.default)(this).hasClass("grid")?"grid":"list");var e=(0,s.default)("#js-product-list .tm_gallery");e.length&&s.default.each(e,function(){void 0!==this.swiper&&(this.swiper.update(!0),(0,s.default)(this.swiper.slides).length==(0,s.default)(this.swiper.slides).filter(".swiper-slide-visible").length?((0,s.default)(this.swiper.params.nextButton).hide(),(0,s.default)(this.swiper.params.prevButton).hide()):((0,s.default)(this.swiper.params.nextButton).show(),(0,s.default)(this.swiper.params.prevButton).show()))})})})},function(t,e,i){"use strict";var n=i(0),a=function(t){return t&&t.__esModule?t:{default:t}}(n);(0,a.default)(document).ready(function(){function t(){(0,a.default)(".js-file-input").on("change",function(t){var e=void 0,i=void 0;(e=(0,a.default)(t.currentTarget)[0])&&(i=e.files[0])&&(0,a.default)(e).prev().text(i.name)})}!function(){var t=(0,a.default)("#quantity_wanted");t.TouchSpin({verticalupclass:"fto-plus-2",verticaldownclass:"fto-minus",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:parseInt(t.attr("min"),10),max:parseInt(t.data("quantity"),10)>0?parseInt(t.data("quantity"),10):1e6}),(0,a.default)(document).on("change keyup","#quantity_wanted",function(t){(0,a.default)(t.currentTarget).trigger("touchspin.stopspin"),prestashop.emit("updateProduct",{eventType:"updatedProductQuantity",event:t})})}(),t(),(0,a.default)("body").on("change",".product-variants [data-product-attribute]",function(){(0,a.default)(".product-variants [data-product-attribute], .product-add-to-cart .add-to-cart").prop("disabled","disabled"),(0,a.default)(".product-variants-item .input-container").removeClass("st-input-clicked"),(0,a.default)(this).parent().addClass("st-input-clicked")}),prestashop.on("updatedProduct",function(e){function i(t){var e=t.$addToCartSnippet.find(t.targetSelector);(0,a.default)(t.$targetParent.find(t.targetSelector)).length>0&&(e.length>0?(0,a.default)(t.$targetParent.find(t.targetSelector)).replaceWith(e[0].outerHTML):(0,a.default)(t.$targetParent.find(t.targetSelector)).html(""))}var n=(0,a.default)(e.product_add_to_cart);if(n.hasClass("product-add-to-cart")){i({$addToCartSnippet:n,$targetParent:(0,a.default)(".product-add-to-cart"),targetSelector:"#product-availability"}),i({$addToCartSnippet:n,$targetParent:(0,a.default)(".product-add-to-cart"),targetSelector:".product-availability-date"}),i({$addToCartSnippet:n,$targetParent:(0,a.default)(".product-add-to-cart"),targetSelector:".add_buy_now"});var o=n.find("#quantity_wanted");if(o&&o.length){var r=parseInt(o.data("quantity"),10);if(n.find(".hide_main_cart_button").length&&(r>=o.val()||!r)?(0,a.default)(".product-add-to-cart .product-quantity").addClass("hide_main_cart_button"):(0,a.default)(".product-add-to-cart .product-quantity").removeClass("hide_main_cart_button"),r&&r>=o.val()){(0,a.default)("#quantity_wanted").trigger("touchspin.updatesettings",{max:r})}}}var s=(0,a.default)(".product-information .product-reference .pro_extra_info_content"),l=(0,a.default)(e.product_details).find(".product-reference span");if(s.length&&l.length&&s.html(l.html()),t(),e&&e.product_minimal_quantity){var u=parseInt(e.product_minimal_quantity,10);(0,a.default)("#quantity_wanted").trigger("touchspin.updatesettings",{min:u})}(0,a.default)(".product_info_tabs .tab-pane").removeClass("active"),(0,a.default)((0,a.default)(".product_info_tabs .nav-link.active").attr("href")).addClass("active"),(0,a.default)(".product-variants [data-product-attribute]").prop("disabled",!1)}),(0,a.default)(".pro_grid_thumbs .swiper-slide").click(function(){(0,a.default)(this).addClass("clicked_thumb").siblings().removeClass("clicked_thumb"),void 0!==(0,a.default)(".pro_gallery_top")[0].swiper&&(0,a.default)(".pro_gallery_top")[0].swiper.slideTo((0,a.default)(this).index())}),(0,a.default)("body").on("click",".pro_gallery_show_all",function(t){if(void 0!==sttheme.pro_images&&sttheme.pro_images){var e=(0,a.default)(this).closest(".product_left_column");if(!e.length)return!1;var i="",n="";(0,a.default)(".pro_gallery_top",e).length&&void 0!==(0,a.default)(".pro_gallery_top",e)[0].swiper&&(i=(0,a.default)(".pro_gallery_top",e)[0].swiper),(0,a.default)(".pro_gallery_thumbs",e).length&&void 0!==(0,a.default)(".pro_gallery_thumbs",e)[0].swiper&&(n=(0,a.default)(".pro_gallery_thumbs",e)[0].swiper);var o=new Array;a.default.each((0,a.default)(".pro_gallery_item",e),function(){o.push((0,a.default)(this).data("id_image"))});var r=(0,a.default)(".pro_popup_trigger_box",e);a.default.each(sttheme.pro_images,function(t,e){a.default.inArray(parseInt(e.id_image,10),o)<0&&(i&&i.appendSlide('<div class="swiper-slide"><div class="easyzoom--overlay '+(sttheme.enable_zoom?" easyzoom ":"")+(2==sttheme.enable_zoom?" disable_easyzoom_on_mobile ":"")+'"> <a href="'+(sttheme.enable_zoom||sttheme.enable_thickbox?e.bySize.superlarge_default.url:"javascript:;")+'" class="'+(sttheme.enable_thickbox&&!sttheme.enable_zoom?" st_popup_image st_pro_popup_image ":"")+' replace-2x" '+(sttheme.enable_thickbox&&!sttheme.enable_zoom?' data-group="pro_gallery_popup" ':"")+' title="'+e.legend+'"><img class="pro_gallery_item" src="'+e.bySize[sttheme.gallery_image_type].url+'" '+(sttheme.retina&&void 0!==e.bySize[sttheme.gallery_image_type+"_2x"]?'srcset="'+e.bySize[sttheme.gallery_image_type+"_2x"].url+' 2x"':"")+' alt="'+e.legend+'" title="'+e.legend+'" width="'+e.bySize[sttheme.gallery_image_type].width+'" height="'+e.bySize[sttheme.gallery_image_type].height+'" data-id_image="'+e.id_image+'" /></a></div></div>'),n&&n.appendSlide('<div class="swiper-slide"><div class="pro_gallery_thumb_box general_border"><img class="pro_gallery_thumb" src="'+e.bySize[sttheme.thumb_image_type].url+'" '+(sttheme.retina&&void 0!==e.bySize[sttheme.thumb_image_type+"_2x"]?'srcset="'+e.bySize[sttheme.thumb_image_type+"_2x"].url+' 2x"':"")+' alt="'+e.legend+'" title="'+e.legend+'" width="'+e.bySize[sttheme.thumb_image_type].width+'" height="'+e.bySize[sttheme.thumb_image_type].height+'" /></div></div>'),r.append('<a href="'+e.bySize.superlarge_default.url+'" class="pro_popup_trigger st_popup_image st_pro_popup_image replace-2x layer_icon_wrap" data-group="pro_gallery_popup_trigger" title="'+e.legend+'"><i class="fto-resize-full"></i></a>'))}),i&&((0,a.default)(".images-container").removeClass("pro_number_0 pro_number_1 pro_number_2 pro_number_3 pro_number_4 pro_number_5 pro_number_6").addClass("pro_number_"+sttheme.pro_images.length),i.update(!0),(0,a.default)(i.slides).length>(0,a.default)(i.slides).filter(".swiper-slide-visible").length&&((0,a.default)(i.params.nextButton).show(),(0,a.default)(i.params.prevButton).show())),n&&(n.update(!0),(0,a.default)(n.slides).length>(0,a.default)(n.slides).filter(".swiper-slide-visible").length&&((0,a.default)(n.params.nextButton).show(),(0,a.default)(n.params.prevButton).show())),(0,a.default)(".st_pro_popup_image").magnificPopup({type:"image",tLoading:"",image:{verticalFit:!!sttheme.popup_vertical_fit,titleSrc:function(t){return t.el.data("title")}},gallery:{enabled:!0}}),prestashop.emit("updatedProductImages")}(0,a.default)(this).hide()})})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var a=i(0),o=n(a),r=i(1),s=n(r);s.default.cart=s.default.cart||{},s.default.cart.active_inputs=null;var l=!1,u=!1,d="";(0,o.default)(document).ready(function(){function t(t){return"on.startupspin"===t||"on.startdownspin"===t}function e(t){return"on.startupspin"===t}function i(t){var e=t.parents(".bootstrap-touchspin").find(f);return e.is(":focus")?null:e}function n(t){var e=t.split("-"),i=void 0,n=void 0,a="";for(i=0;i<e.length;i++)n=e[i],0!==i&&(n=n.substring(0,1).toUpperCase()+n.substring(1)),a+=n;return a}function a(a,r){if(!t(r))return{url:a.attr("href").replace(/^https?:/,""),type:n(a.data("link-action"))};var s=i(a);if(s){var l=e(r),u=(0,o.default)(".cart_quantity_"+s.data("product-id")+(s.data("id-product-attribute")?'[data-id-product-attribute="'+s.data("id-product-attribute")+'"]':"")+(s.data("id-customization")?'[data-id-customization="'+s.data("id-customization")+'"]':""));if(!s.data("allow-oosp")){if(s.val()>=s.data("quantity")&&l&&s.hasClass("hits_the_max_limit"))return;s.val()==s.data("quantity")?u.addClass("hits_the_max_limit"):u.removeClass("hits_the_max_limit")}if(!(s.val()<=s.data("minimal-quantity")&&!l&&s.hasClass("hits_the_min_limit"))){s.val()==s.data("minimal-quantity")?u.addClass("hits_the_min_limit"):u.removeClass("hits_the_min_limit");return l?{url:s.data("up-url").replace(/^https?:/,""),type:"increaseProductQuantity"}:{url:s.data("down-url").replace(/^https?:/,""),type:"decreaseProductQuantity"}}}}function r(t){if(!t.length)return!1;o.default.each(t,function(t,e){(0,o.default)(e).TouchSpin({verticalupclass:"fto-plus-2",verticaldownclass:"fto-minus",buttondown_class:"btn btn-touchspin js-touchspin js-increase-product-quantity",buttonup_class:"btn btn-touchspin js-touchspin js-decrease-product-quantity",min:(0,o.default)(e).data("minimal-quantity")?parseInt((0,o.default)(e).data("minimal-quantity"),10):1,max:parseInt((0,o.default)(e).data("quantity"),10)>0?parseInt((0,o.default)(e).data("quantity"),10):1e6})}),c.switchErrorStat()}function l(t,e,i){return g(),o.default.ajax({url:t,method:"POST",data:e,dataType:"json",beforeSend:function(t){h.push(t)}}).then(function(t){c.checkUpdateOpertation(t);var e;e=i&&i.dataset?i.dataset:t,(0,o.default)(".cart_quantity_"+t.id_product).val(t.quantity?t.quantity:0),s.default.emit("updateCart",{reason:o.default.extend(e),resp:t})}).fail(function(t){s.default.emit("handleError",{eventType:"updateProductQuantityInCart",resp:t})})}function u(t){return{ajax:"1",qty:Math.abs(t),action:"update",op:d(t)}}function d(t){return t>0?"up":"down"}function p(t){var e=(0,o.default)(t.currentTarget),i=e.data("update-url"),n=e.attr("value"),a=e.val();if(a!=parseInt(a)||a<0||isNaN(a))return void e.val(n);var r=a-n,s=(0,o.default)(".cart_quantity_"+e.data("product-id")+(e.data("id-product-attribute")?'[data-id-product-attribute="'+e.data("id-product-attribute")+'"]':"")+(e.data("id-customization")?'[data-id-customization="'+e.data("id-customization")+'"]':""));if(e.data("allow-oosp")||(a>e.data("quantity")?(s.addClass("hits_the_max_limit").val(e.data("quantity")),r=e.data("quantity")-n):s.removeClass("hits_the_max_limit")),a<e.data("minimal-quantity")?(s.addClass("hits_the_min_limit").val(e.data("minimal-quantity")),r=e.data("minimal-quantity")-n):s.removeClass("hits_the_min_limit"),0!=r){l(i,u(r),e)}}var f=".cart_quantity",h=[];s.default.on("updateCart",function(){(0,o.default)(".quickview").modal("hide")});var m=(0,o.default)("body"),g=function(){for(var t;h.length>0;)t=h.pop(),4==t.readyState?t.abort():setTimeout(function(){t.abort()},300)},v=function(t){t.preventDefault();var e=(0,o.default)(t.currentTarget),i=t.currentTarget.dataset,n=a(e,t.namespace),r={ajax:"1",action:"update"};void 0!==n&&(g(),o.default.ajax({url:n.url,method:"POST",data:r,dataType:"json",beforeSend:function(t){h.push(t)}}).then(function(t){c.checkUpdateOpertation(t),(0,o.default)(".cart_quantity_"+t.id_product+'[data-id-product-attribute="'+t.id_product_attribute+'"]').val(t.quantity?t.quantity:0),s.default.emit("updateCart",{reason:i,resp:t})}).fail(function(t){s.default.emit("handleError",{eventType:"updateProductInCart",resp:t,cartAction:n.type})}))};m.on("click",'[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]',v),r((0,o.default)(".cart_quantity")),s.default.on("updatedCart",function(){r((0,o.default)(".cart_quantity"))}),s.default.on("stUpdatedCart",function(){r((0,o.default)(".cart_quantity"))}),m.on("touchspin.on.startdownspin",".cart_quantity",v),m.on("touchspin.on.startupspin",".cart_quantity",v),m.on("focusout",f,function(t){p(t)}),m.on("keyup",f,function(t){13==t.keyCode&&p(t)}),m.on("click",".js-discount .code",function(t){t.stopPropagation();var e=(0,o.default)(t.currentTarget);return(0,o.default)("[name=discount_name]").val(e.text()),!1})});var c={switchErrorStat:function(){var t=(0,o.default)(".checkout a");if(((0,o.default)("#notifications article.alert-danger").length||""!==d&&!l)&&t.addClass("disabled"),""!==d){var e=' <article class="alert alert-danger" role="alert" data-alert="danger"><ul><li>'+d+"</li></ul></article>";(0,o.default)("#notifications .container").html(e),d="",u=!1,l&&t.removeClass("disabled")}else!l&&u&&(l=!1,u=!1,(0,o.default)("#notifications .container").html(""),t.removeClass("disabled"))},checkUpdateOpertation:function(t){l=t.hasOwnProperty("hasError");var e=t.errors||"";d=e instanceof Array?e.join(" "):e,u=!0}}},function(t,e,i){"use strict";var n=i(0),a=function(t){return t&&t.__esModule?t:{default:t}}(n);(0,a.default)(document).ready(function(){function t(){if((0,a.default)(this).addClass("current"),(0,a.default)(this).find(".stmenu_sub").children().size()){var t=(0,a.default)(this).find(".stmenu_sub");t.stop(),i=setTimeout(function(){void 0!==sttheme.submemus_animation&&sttheme.submemus_animation?t.slideDown("fast",function(){t.css("overflow","visible")}):t.fadeIn("fast",function(){t.css("overflow","visible")})},100)}}function e(){clearTimeout(i),(0,a.default)(this).removeClass("current"),(0,a.default)(this).find(".stmenu_sub").stop().hide()}var i;(0,a.default)(".ml_level_0").hoverIntent({sensitivity:7,interval:0,timeout:0,over:t,out:e}),("ontouchstart"in document.documentElement||window.navigator.msMaxTouchPoints)&&((0,a.default)(".ma_level_0").click(function(t){var e=(0,a.default)(this).parent();if(e.find(".stmenu_sub").children().size()){if(!e.hasClass("ma_touched"))return(0,a.default)(".ml_level_0").removeClass("ma_touched"),e.addClass("ma_touched"),!1;e.removeClass("ma_touched")}}),(0,a.default)(".stmenu_sub .has_children").click(function(t){if(!(0,a.default)(this).hasClass("item_touched"))return(0,a.default)(".stmenu_sub .menu_touched").removeClass("item_touched"),(0,a.default)(this).addClass("item_touched"),!1;(0,a.default)(this).removeClass("item_touched")}))})},function(t,e,i){"use strict";var n=i(0),a=function(t){return t&&t.__esModule?t:{default:t}}(n);(0,a.default)(document).ready(function(){(0,a.default)(".product_link_nav.with_preview a").hoverIntent({sensitivity:3,interval:0,timeout:0}).hoverIntent(function(){(0,a.default)(this).find(".product_link_nav_preview").show()},function(){(0,a.default)(this).find(".product_link_nav_preview").hide()})})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var a=i(0),o=n(a),r=i(2),s=n(r);(0,o.default)(document).ready(function(){(0,o.default)(".st_news_letter_popup_wrap").each(function(){var t=(0,o.default)(this);t.data("hide_on_mobile")&&t.on("show.bs.modal",function(t){if(sttheme.st_responsive&&(0,o.default)(window).width()<992)return!1}),t.data("delay_popup")?setTimeout(function(){t.modal("show")},1e3*t.data("delay_popup")):t.modal("show");var e=t.data("id_st"),i=t.data("show_popup"),n=t.data("cookies_time");(0,o.default)(".st_news_letter_do_not_show").change(function(){(0,o.default)(this).is(":checked")?s.default.set("st_popup_do_not_show_"+e,i,{expires:n||30,domain:sttheme.cookie_domain,path:sttheme.cookie_path}):s.default.set("st_popup_do_not_show_"+e,i,{expires:-1,domain:sttheme.cookie_domain,path:sttheme.cookie_path})}),2==i&&s.default.set("st_popup_do_not_show_"+e,i,{expires:n||30,domain:sttheme.cookie_domain,path:sttheme.cookie_path})}),(0,o.default)("form.st_news_letter_form").submit(function(){var t=(0,o.default)(this);return/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,4}$/.test((0,o.default)(this).find(".st_news_letter_input").val())?(!(0,o.default)(this).hasClass("is_newsletter_form")||void 0!==(0,o.default)(this).data("chas")&&!(0,o.default)(this).find('input[name="email"]').hasClass("st_needs_reset"))&&(o.default.ajax({type:"POST",url:t.attr("action"),data:t.serialize(),dataType:"json",cache:!1,success:function(e){if(t.closest(".st_news_letter_box").find(".alert-danger, .alert-success").addClass("hidden"),e.hasError)t.closest(".st_news_letter_box").find(".alert-danger").html(e.hasError).removeClass("hidden");else{t.closest(".st_news_letter_box").find(".alert-success").html(e.message).removeClass("hidden");var i=t.closest(".st_news_letter_popup_wrap");i.length&&s.default.set("st_popup_do_not_show_"+i.data("id_st"),i.data("show_popup"),{domain:sttheme.cookie_domain,path:sttheme.cookie_path})}}}),!1):(t.closest(".st_news_letter_box").find(".alert-danger").html(wrongemailaddress_stnewsletter).removeClass("hidden"),!1)})})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var a=i(0),o=n(a),r=i(2),s=n(r);(0,o.default)(document).ready(function(){(0,o.default)(".st_notification_wrap").each(function(){var t=(0,o.default)(this);t.data("delay")?setTimeout(function(){t.show()},1e3*t.data("delay")):t.show();var e=t.data("id_st"),i=t.data("show_box");(0,o.default)(".notification_accept, .st_notification_close").click(function(){t.hide(),i?1==i&&s.default.set("st_notification_"+e,i,{expires:-1,domain:sttheme.cookie_domain,path:sttheme.cookie_path}):s.default.set("st_notification_"+e,i,{expires:30,domain:sttheme.cookie_domain,path:sttheme.cookie_path})}),2==i&&s.default.set("st_notification_"+e,i,{expires:30,domain:sttheme.cookie_domain,path:sttheme.cookie_path})})})},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=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=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(o),s=function(){function t(){n(this,t)}return a(t,[{key:"init",value:function(){this.parentFocus(),this.buttonActive(),this.submitActive(),this.togglePasswordVisibility()}},{key:"parentFocus",value:function(){(0,r.default)(".js-child-focus").focus(function(){(0,r.default)(this).closest(".js-parent-focus").addClass("focus")}),(0,r.default)(".js-child-focus").focusout(function(){(0,r.default)(this).closest(".js-parent-focus").removeClass("focus")})}},{key:"buttonActive",value:function(){(0,r.default)("body").on("click",".js-btn-active",function(t){(0,r.default)(this).addClass("active")})}},{key:"submitActive",value:function(){(0,r.default)(".js-submit-active").each(function(){var t=(0,r.default)(this);t.closest("form").submit(function(){t.addClass("disabled active")})})}},{key:"togglePasswordVisibility",value:function(){(0,r.default)('button[data-action="show-password"]').on("click",function(){var t=(0,r.default)(this).closest(".input-group").children("input.js-visible-password");"password"===t.attr("type")?(t.attr("type","text"),(0,r.default)(this).find("i").removeClass("fto-eye-off fto-eye").addClass("fto-eye")):(t.attr("type","password"),(0,r.default)(this).find("i").removeClass("fto-eye-off fto-eye").addClass("fto-eye-off"))})}}]),t}();e.default=s},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=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=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(o);i(4);var s=function(){function t(){n(this,t)}return a(t,[{key:"init",value:function(){var t=this,e=(0,r.default)(".js-modal-arrows"),i=(0,r.default)(".js-modal-product-images"),n=(0,r.default)(".on-sale");(0,r.default)("body").on("click",".js-modal-thumb",function(t){(0,r.default)(".js-modal-thumb").hasClass("selected")&&(0,r.default)(".js-modal-thumb").removeClass("selected"),(0,r.default)(t.currentTarget).addClass("selected"),(0,r.default)(".js-modal-product-cover").attr("src",(0,r.default)(t.target).data("image-large-src")),(0,r.default)(".js-modal-product-cover").attr("title",(0,r.default)(t.target).attr("title")),(0,r.default)(".js-modal-product-cover").attr("alt",(0,r.default)(t.target).attr("alt"))}).on("click","aside#thumbnails",function(t){"thumbnails"==t.target.id&&(0,r.default)("#product-modal").modal("hide")}),n.length&&(0,r.default)("#product").length&&(0,r.default)(".new").css("top",n.height()+10),(0,r.default)(".js-modal-product-images li").length<=5?e.css("opacity",".2"):e.on("click",function(e){(0,r.default)(e.target).hasClass("arrow-up")&&i.position().top<0?(t.move("up"),(0,r.default)(".js-modal-arrow-down").css("opacity","1")):(0,r.default)(e.target).hasClass("arrow-down")&&i.position().top+i.height()>(0,r.default)(".js-modal-mask").height()&&(t.move("down"),(0,r.default)(".js-modal-arrow-up").css("opacity","1"))})}},{key:"move",value:function(t){var e=(0,r.default)(".js-modal-product-images"),i=(0,r.default)(".js-modal-product-images li img").height()+10,n=e.position().top;e.velocity({translateY:"up"===t?n+i:n-i},function(){e.position().top>=0?(0,r.default)(".js-modal-arrow-up").css("opacity",".2"):e.position().top+e.height()<=(0,r.default)(".js-modal-mask").height()&&(0,r.default)(".js-modal-arrow-down").css("opacity",".2")})}}]),t}();e.default=s},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=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=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(o),s=function(){function t(){n(this,t)}return a(t,[{key:"init",value:function(){if(void 0!==sttheme.drop_down&&sttheme.drop_down){var t=sttheme.is_mobile_device?"touchstart":"click";(0,r.default)(document).on(t,"html,body",function(t){0==(0,r.default)(t.target).parents(".dropdown_wrap.open").first().length&&(0,r.default)(".dropdown_wrap.open").removeClass("open")}),(0,r.default)(document).on(t,".dropdown_tri",function(t){t.stopPropagation(),t.preventDefault();var e=(0,r.default)(this).parents(".dropdown_wrap");!e.hasClass("open")&&(0,r.default)(".dropdown_wrap.open").length>0&&(0,r.default)(".dropdown_wrap.open").removeClass("open"),e.toggleClass("open")})}else sttheme.is_mobile_device?(0,r.default)("body").on("touchstart",".dropdown_tri",function(t){var e=(0,r.default)(this).closest(".dropdown_wrap");return e.hasClass("open")?(e.removeClass("open"),!1):(t.preventDefault(),e.addClass("open").trigger(r.default.Event("st.dropdown.shown",e[0])),!1)}):(0,r.default)("body").on({mouseenter:function(){(0,r.default)(this).addClass("open").trigger(r.default.Event("st.dropdown.shown",this))},mouseleave:function(){(0,r.default)(this).removeClass("open")}},".dropdown_wrap")}}]),t}();e.default=s},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=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=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(o),s=function(){function t(){n(this,t)}return a(t,[{key:"init",value:function(t){var e=this;"scrollRestoration"in history&&(history.scrollRestoration="manual");var i=this;this.defaults={items:".product_list_item",paginaton_sample:".paginaton_sample",product_count_infinite:".product_count_infinite",more:".infinite-more-link",element:".products.product_list",offset:"bottom-in-view",loadingClass:"infinite-loading",onAfterPageLoad:r.default.noop},this.options=r.default.extend({},this.defaults,t),this.$more=(0,r.default)(this.options.more),this.$container=(0,r.default)(this.options.element),this.start=this.$more.data("start"),prestashop.on("updateProductList",function(t){if(void 0!==t.pagination)e.start=t.pagination.items_shown_from;else if(void 0!==t.rendered_products_bottom){var i=(0,r.default)(t.rendered_products).find(".product_count_infinite span").html();i&&(e.start=i)}}),this.$container.length&&(0,r.default)("body").on("click",this.options.more,function(t){return t.preventDefault(),i.load(),!1})}},{key:"load",value:function(){prestashop.listinghistory(0),this.$container=(0,r.default)(this.options.element),this.$more.addClass("hidden"),this.$container.parent().addClass(this.options.loadingClass),r.default.get((0,r.default)(this.options.more).attr("href"),{from_infi:""},r.default.proxy(function(t){var e=(0,r.default)(r.default.parseHTML(t)),i=e.find(this.options.more),n=e.find(this.options.items);n.length||(n=e.filter(this.options.items)),this.$container.append(n);var a=e.find(this.options.paginaton_sample);a.length||(a=e.filter(this.options.paginaton_sample)),(0,r.default)(this.options.paginaton_sample).replaceWith(a);var o=e.find(this.options.product_count_infinite);o.length||(o=e.filter(this.options.product_count_infinite)),o.find("span").html(this.start),(0,r.default)(this.options.product_count_infinite).replaceWith(o),this.$container.parent().removeClass(this.options.loadingClass),i.length||(i=e.filter(this.options.more)),i.length?((0,r.default)(this.options.more).parent().empty().append(i),this.$more=(0,r.default)(this.options.more)):this.$more.remove(),prestashop.listinghistory(1),this.options.onAfterPageLoad(n)},this))}}]),t}();e.default=s},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=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=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(o),s=function(){function t(){n(this,t)}return a(t,[{key:"init",value:function(){(0,r.default)(".pro_first_box").hover(function(){(0,r.default)(".back-image",this).length&&(0,r.default)(this).addClass("showhoverimage")},function(){(0,r.default)(this).removeClass("showhoverimage")})}}]),t}();e.default=s},function(t,e,i){"use strict";function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function a(t){return"function"==typeof t}function o(t){return"number"==typeof t}function r(t){return"object"===(void 0===t?"undefined":l(t))&&null!==t}function s(t){return void 0===t}var l="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};t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!o(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,i,n,o,l,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var d=new Error('Uncaught, unspecified "error" event. ('+e+")");throw d.context=e,d}if(i=this._events[t],s(i))return!1;if(a(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:o=Array.prototype.slice.call(arguments,1),i.apply(this,o)}else if(r(i))for(o=Array.prototype.slice.call(arguments,1),u=i.slice(),n=u.length,l=0;l<n;l++)u[l].apply(this,o);return!0},n.prototype.addListener=function(t,e){var i;if(!a(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,a(e.listener)?e.listener:e),this._events[t]?r(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,r(this._events[t])&&!this._events[t].warned&&(i=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[t].length>i&&(this._events[t].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function i(){this.removeListener(t,i),n||(n=!0,e.apply(this,arguments))}if(!a(e))throw TypeError("listener must be a function");var n=!1;return i.listener=e,this.on(t,i),this},n.prototype.removeListener=function(t,e){var i,n,o,s;if(!a(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=this._events[t],o=i.length,n=-1,i===e||a(i.listener)&&i.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(r(i)){for(s=o;s-->0;)if(i[s]===e||i[s].listener&&i[s].listener===e){n=s;break}if(n<0)return this;1===i.length?(i.length=0,delete this._events[t]):i.splice(n,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(i=this._events[t],a(i))this.removeListener(t,i);else if(i)for(;i.length;)this.removeListener(t,i[i.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?a(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(a(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,i){"use strict";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};!function(t){var e=0,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(!0===t)this.options.disabled||(this.$element.attr("disabled","true"),this.$elementFilestyle.find("label").attr("disabled","true"),this.options.disabled=!0);else{if(!1!==t)return this.options.disabled;this.options.disabled&&(this.$element.removeAttr("disabled"),this.$elementFilestyle.find("label").removeAttr("disabled"),this.options.disabled=!1)}},buttonBefore:function(t){if(!0===t)this.options.buttonBefore||(this.options.buttonBefore=!0,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()));else{if(!1!==t)return this.options.buttonBefore;this.options.buttonBefore&&(this.options.buttonBefore=!1,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()))}},icon:function(t){if(!0===t)this.options.icon||(this.options.icon=!0,this.$elementFilestyle.find("label").prepend(this.htmlIcon()));else{if(!1!==t)return this.options.icon;this.options.icon&&(this.options.icon=!1,this.$elementFilestyle.find(".icon-span-filestyle").remove())}},input:function(t){if(!0===t)this.options.input||(this.options.input=!0,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(!1!==t)return this.options.input;if(this.options.input){this.options.input=!1,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"),"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()+", ";return""!==t?this.$elementFilestyle.find(":text").val(t.replace(/\, $/g,"")):this.$elementFilestyle.find(":text").val(""),e},constructor:function(){var i=this,n="",a=i.$element.attr("id"),o="";""!==a&&a||(a="filestyle-"+e,i.$element.attr({id:a}),e++),o='<span class="group-span-filestyle '+(i.options.input?"input-group-btn":"")+'"><label for="'+a+'" 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?o+i.htmlInput():i.htmlInput()+o,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)return i.$elementFilestyle.find("label").click(),!1}),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();0==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(){return i.$element.click(),!1})}};var a=t.fn.filestyle;t.fn.filestyle=function(e,a){var o="",r=this.each(function(){if("file"===t(this).attr("type")){var r=t(this),s=r.data("filestyle"),l=t.extend({},t.fn.filestyle.defaults,e,"object"===(void 0===e?"undefined":n(e))&&e);s||(r.data("filestyle",s=new i(this,l)),s.constructor()),"string"==typeof e&&(o=s[e](a))}});return void 0!==(void 0===o?"undefined":n(o))?o:r},t.fn.filestyle.defaults={buttonText:"Choose file",iconName:"glyphicon glyphicon-folder-open",buttonName:"btn-default",size:"nr",input:!0,badge:!0,icon:!0,buttonBefore:!1,disabled:!1,placeholder:""},t.fn.filestyle.noConflict=function(){return t.fn.filestyle=a,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,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var a=i(1),o=n(a),r=i(0),s=n(r);o.default.blockcart=o.default.blockcart||{},o.default.blockcart.showModal=function(t,e){function i(){return(0,s.default)("#blockcart-modal")}var n=i();n.length&&(n.remove(),(0,s.default)(".modal-backdrop").remove()),(0,s.default)("body").append(t),n=i(),n.on("shown.bs.modal",function(t){(0,s.default)(".modal_products_container .swiper-container").length&&new Swiper(".modal_products_container .swiper-container",{nextButton:".modal_products_container .swiper-button-next",prevButton:".modal_products_container .swiper-button-prev",spaceBetween:6,slidesPerView:"auto"})}).modal("show").on("hidden.bs.modal",function(t){e&&o.default.emit("updateProduct",{reason:t.currentTarget.dataset,eventType:"updatedProductCombination",event:null})})}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var a=i(1),o=n(a),r=i(0),s=n(r);o.default.proquantity=o.default.proquantity||{},o.default.proquantity=function(){var t=(0,s.default)("input.pro_quantity");if(!t.length)return!1;s.default.each(t,function(t,e){(0,s.default)(e).TouchSpin({verticalupclass:"fto-plus-2",verticaldownclass:"fto-minus",buttondown_class:"btn btn-touchspin js-touchspin js-increase-product-quantity",buttonup_class:"btn btn-touchspin js-touchspin js-decrease-product-quantity",min:(0,s.default)(e).data("minimal-quantity")?parseInt((0,s.default)(e).data("minimal-quantity"),10):1,max:parseInt((0,s.default)(e).data("quantity"),10)>0?parseInt((0,s.default)(e).data("quantity"),10):1e6})})}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var a=i(1),o=n(a),r=i(0),s=n(r);o.default.prolazy=o.default.prolazy||{},o.default.prolazy=function(){(0,s.default)("img.cate_pro_lazy").each(function(){(0,s.default)(this).waypoint(function(){var t=(0,s.default)(this.element);this.destroy(),t.on("load",function(){(0,s.default)(this).hasClass("front-image")&&(0,s.default)(this).parent().removeClass("is_lazy"),(0,s.default)(this).removeClass("cate_pro_lazy"),Waypoint.refreshAll()}),t.attr("src",t.data("src")),t.attr("srcset",t.data("srcset"))},{offset:"100%"})})}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var a=i(1),o=n(a),r=i(0),s=n(r);o.default.easyzoom=o.default.easyzoom||{},o.default.easyzoom.init=function(t){t&&t.length&&s.default.each(t,function(){if(!(0,s.default)(this).hasClass("disable_easyzoom_on_mobile")||!(0,s.default)("body").hasClass("mobile_device")){var t=(0,s.default)(this).data("easyZoom");t&&void 0===t.isOpen&&t.teardown(),(0,s.default)(this).easyZoom()}})}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var a=i(1),o=n(a),r=i(0),s=n(r);o.default.listinghistory=o.default.listinghistory||{},o.default.listinghistory=function(t){var e=(history.state,{rendered_facets:(0,s.default)("#search_filters").prop("outerHTML"),rendered_active_filters:(0,s.default)("#js-active-search-filters").prop("outerHTML"),rendered_products_top:(0,s.default)("#js-product-list-top").prop("outerHTML"),rendered_products:(0,s.default)("#js-product-list").prop("outerHTML"),rendered_products_bottom:(0,s.default)("#js-product-list-bottom").prop("outerHTML")}),i=(0,s.default)(".product_count_infinite");if(t){if(i.length){var n=i.data("current_url");window.history.pushState({st_infinite:n},void 0,n)}}else{var n=i.length?i.data("current_url"):o.default.urls.current_url;history.replaceState({st_infinite:n},void 0,n)}o.default.st_storage.setItem("st_infinite",n,e)}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var a=i(1),o=n(a),r=i(0),s=n(r);o.default.st_storage=o.default.st_storage||{},o.default.st_storage.setItem=function(t,e,i){if(window.sessionStorage){var n=localStorage.getItem(t);n=n?JSON.parse(n):{},n.hasOwnProperty(e)&&delete n[e],n[e]=i;var a=Object.keys(n);a.length>10&&(a=a.slice(0,a.length-10),s.default.each(a,function(t,e){delete n[e]})),localStorage.setItem(t,JSON.stringify(n))}},o.default.st_storage.getItem=function(t,e){if(window.sessionStorage){var i=localStorage.getItem(t);if(i&&(i=JSON.parse(i),void 0!==i[e]))return i[e]}return!1},o.default.st_storage.remove=function(t){window.sessionStorage&&localStorage.removeItem(t)}},function(t,e,i){"use strict";!function(t){t.fn.extend({staccordion:function(){return this.each(function(){function t(t,s){$(t).parent(r).siblings().removeClass(i).children(a).slideUp(o),$(t).siblings(a)[s||n]("show"==s&&o,function(){$(t).siblings(a).is(":visible")?$(t).parents(r).not(e.parents()).addClass(i):$(t).parent(r).removeClass(i),"show"==s&&$(t).parents(r).not(e.parents()).addClass(i),$(t).parents().show()})}var e=$(this),i="active",n="slideToggle",a=".mo_sub_ul, .stmobilemenu_column",o="fast",r="li";if(e.data("accordiated"))return!1;$.each(e.find(".mo_sub_ul, .stmobilemenu_column"),function(){$(this).data("accordiated",!0),$(this).hide()}),$.each(e.find("span.opener"),function(){$(this).click(function(e){t($(this).parent(),n)})})})}})}(jQuery)},function(t,e){}]);$(document).ready(function(){var promises=[];var abortPreviousRequests=function(){var promise;while(promises.length>0){promise=promises.pop();promise.abort()}};$('body').on('click','.ajax_add_to_cart_button',function(event){event.preventDefault();if(!$(this).data('id-product')||$(this).prop('disabled')=='disabled')
return!1;var caller_element=this;var query='id_product='+$(this).data('id-product')+'&add=1&action=update&token='+prestashop.static_token+'&rand='+new Date().getTime();var actionURL=prestashop.urls.pages.cart;$(this).prop('disabled','disabled').addClass('active');if($(this).data('id-product-attribute'))
query+='&ipa='+$(this).data('id-product-attribute');var qty=$(this).data('minimal-quantity')?$(this).data('minimal-quantity'):1;var quantity_wanted=$(this).closest('.ajax_block_product').find('input[name=pro_quantity]').val();if(!quantity_wanted)
quantity_wanted=1;query+='&qty='+(quantity_wanted>qty?quantity_wanted:qty);$.post(actionURL,query,null,'json').then(function(resp){prestashop.emit('stUpdateCart',{reason:{idProduct:resp.id_product,idProductAttribute:resp.id_product_attribute,linkAction:'add-to-cart',updateornot:!1,caller_element:caller_element},resp:resp})}).fail(function(resp){$(caller_element).removeProp('disabled').removeClass('active');prestashop.emit('handleError',{eventType:'addProductToCart',resp:resp})});return!1});$('body').on('click','[data-button-action="add-to-cart"]',function(event){event.preventDefault();var _target=$(event.target);if(!_target.hasClass('btn'))
_target=_target.closest('.btn');_target.prop('disabled','disabled').addClass('active')});prestashop.on('stUpdateCart',st_update_cart);prestashop.on('updateCart',st_update_cart);$('body').on('click','.ajax_remove_button',function(event){event.preventDefault();var cartAction={url:$(this).attr('href').replace(/^https?:/,''),type:'deleteFromCart'};var requestData={ajax:'1',action:'update'};abortPreviousRequests();$.ajax({url:cartAction.url,method:'POST',data:requestData,dataType:'json',beforeSend:function(jqXHR){promises.push(jqXHR)}}).then(function(resp){prestashop.emit('stUpdateCart',{reason:{idProduct:resp.id_product,idProductAttribute:resp.id_product_attribute,linkAction:'delete-from-cart',updateornot:!1},resp:resp});if($('body.product-id-'+resp.id_product).length)
prestashop.emit('updateProduct',{reason:{},eventType:'updatedProductCombination',event:null});if(typeof(prestashop.page.page_name)!=='undefined'&&prestashop.page.page_name=='cart')
prestashop.emit('updateCart',{reason:{idProduct:resp.id_product,idProductAttribute:resp.id_product_attribute},resp:resp})}).fail(function(resp){prestashop.emit('handleError',{eventType:'updateProductInCart',resp:resp,cartAction:cartAction.type})})})});var st_update_cart=function(event){if(!$('.blockcart').length)
return!1;var refreshURL=$('.blockcart').data('refresh-url');var requestData={};var updateornot=!0;var caller_element=null;if(event&&event.reason){requestData={id_product_attribute:event.reason.idProductAttribute,id_product:event.reason.idProduct,action:event.reason.linkAction};if(typeof(event.reason.updateornot)!=='undefined')
updateornot=event.reason.updateornot;if(typeof(event.reason.caller_element)!=='undefined')
caller_element=event.reason.caller_element}
if(typeof(event.resp)!='undefined'&&typeof(event.resp.hasError)!='undefined'&&event.resp.hasError&&typeof(event.resp.errors)!='undefined'&&event.resp.errors){alert(event.resp.errors.join('<br/>'));if(caller_element)
$(caller_element).removeClass('active');return!1}
if(typeof(sttheme.buy_now)!='undefined'&&sttheme.buy_now&&$('button[data-button-action="add-to-cart"].benabled.active').length){window.location.href=prestashop.urls.pages.order;return!1}
$.post(refreshURL,requestData).then(function(resp){$('.shoppingcart-list').replaceWith(resp.preview);prestashop.emit('stUpdatedCart');if(resp.products_count){if(resp.products_count>9)
$('.ajax_cart_quantity').addClass('dozens');else $('.ajax_cart_quantity').removeClass('dozens');$('.ajax_cart_quantity').text(resp.products_count);$('.cart_body').removeClass('no_show_empty')}else{$('.ajax_cart_quantity').removeClass('dozens').text(0);hover_display_cp==1&&$('.cart_body').addClass('no_show_empty')}
if(resp.total_value){$('.ajax_cart_total').text(resp.total_value)}
if(typeof(requestData.action)!=='undefined'&&requestData.action=='add-to-cart'){if(addtocart_animation&&resp.flying_image){var flyed=showFlyimgImage(addtocart_animation,resp.flying_image,caller_element);if(flyed&&updateornot)
prestashop.emit('updateProduct',{reason:{},eventType:'updatedProductCombination',event:null});if(!flyed&&resp.modal&&typeof(prestashop.blockcart)!=='undefined'){prestashop.blockcart.showModal(resp.modal,updateornot)}}else if(resp.modal&&typeof(prestashop.blockcart)!=='undefined'){prestashop.blockcart.showModal(resp.modal,updateornot)}
if(caller_element)
$(caller_element).removeProp('disabled').removeClass('active')}
if($('button[data-button-action="add-to-cart"]').hasClass('active'))
$('button[data-button-action="add-to-cart"]').prop('disabled',!1).removeClass('active')}).fail(function(resp){prestashop.emit('handleError',{eventType:'updateShoppingCart',resp:resp})})};var showFlyimgImage=function(addtocart_animation,flying_image,caller_element){var element=cartBlock=null;if(!caller_element){var pro_gallery_top_dom=$('.pro_gallery_top','.quickview');if(!pro_gallery_top_dom.length)
pro_gallery_top_dom=$('.pro_gallery_top');if(pro_gallery_top_dom.length&&typeof(pro_gallery_top_dom[0].swiper)!=='undefined')
element=$(pro_gallery_top_dom[0].swiper.slides).eq(pro_gallery_top_dom[0].swiper.activeIndex).find('.pro_gallery_item')}else{element=$(caller_element).closest('.ajax_block_product').find('.front-image');if(!element.length)
element=$(caller_element).closest('.ajax_block_product').find('.tm_gallery_top .swiper-slide-active .tm_gallery_item')}
if(!element||!element.length)
return!1;var pictureOffsetOriginal=element.hasClass('front-image')?element.parent().offset():element.offset();if(!pictureOffsetOriginal)
return!1;pictureOffsetOriginal.right=$(window).innerWidth()-pictureOffsetOriginal.left-element.width();var flying_image_width=element.width();var flying_image_height=element.height();if(addtocart_animation==3){cartBlock=$('.rightbar_cart:visible');if(!cartBlock.length)
cartBlock=$('.cart_mobile_bar_tri:visible')}
if(addtocart_animation!=3||!cartBlock||!cartBlock.length){cartBlock=$('.st_shopping_cart:visible');if(!cartBlock.length)
cartBlock=$('.cart_mobile_bar_tri:visible')
if(!cartBlock.length)
cartBlock=$('.rightbar_cart:visible')}
if(!cartBlock||!cartBlock.length)
return!1;var cartBlockOffset=cartBlock.offset();if(!cartBlockOffset)
return!1;cartBlockOffset.right=$(window).innerWidth()-cartBlockOffset.left-Math.floor(cartBlock.width()/2);$('.flying_image').remove();element.clone().addClass('flying_image').on('load',function(){$(this).show().animate({width:'50px',height:'50px',opacity:0.5,top:cartBlockOffset.top,right:cartBlockOffset.right-25},((pictureOffsetOriginal.top-cartBlockOffset.top)<1000?1000:pictureOffsetOriginal.top-cartBlockOffset.top)).fadeOut(100,function(){$(this).remove()});if(addtocart_animation==2){$('body,html').animate({scrollTop:cartBlockOffset.top},((pictureOffsetOriginal.top-cartBlockOffset.top)<1000?1000:pictureOffsetOriginal.top-cartBlockOffset.top))}}).css({top:pictureOffsetOriginal.top,right:pictureOffsetOriginal.right,width:flying_image_width,height:flying_image_height,display:'none'}).appendTo($('.st-container'));return!0};/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* 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    ST-themes <hellolee@gmail.com>
*  @copyright 2007-2017 ST-themes
*  @license   Use, by you or one client for one Prestashop instance.
*/
jQuery(function($){if($('.st_map_block').length&&typeof(st_google_api_key)!=='undefined')
$.getScript('https://maps.googleapis.com/maps/api/js?key='+st_google_api_key+'&callback=init_global_maps')});var init_global_maps=function(){$.each($('.st_map_block'),function(){window['initMap_'+$(this).data('id_map')]()})};/*!
 * The Final Countdown for jQuery v2.1.0 (http://hilios.github.io/jQuery.countdown/)
 * Copyright (c) 2015 Edson Hilios
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";function b(a){if(a instanceof Date)return a;if(String(a).match(g))return String(a).match(/^[0-9]*$/)&&(a=Number(a)),String(a).match(/\-/)&&(a=String(a).replace(/\-/g,"/")),new Date(a);throw new Error("Couldn't cast `"+a+"` to a date object.")}function c(a){var b=a.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(b)}function d(a){return function(b){var d=b.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(d)for(var f=0,g=d.length;g>f;++f){var h=d[f].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),j=c(h[0]),k=h[1]||"",l=h[3]||"",m=null;h=h[2],i.hasOwnProperty(h)&&(m=i[h],m=Number(a[m])),null!==m&&("!"===k&&(m=e(l,m)),""===k&&10>m&&(m="0"+m.toString()),b=b.replace(j,m.toString()))}return b=b.replace(/%%/,"%")}}function e(a,b){var c="s",d="";return a&&(a=a.replace(/(:|;|\s)/gi,"").split(/\,/),1===a.length?c=a[0]:(d=a[0],c=a[1])),1===Math.abs(b)?d:c}var f=[],g=[],h={precision:100,elapse:!1};g.push(/^[0-9]*$/.source),g.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g=new RegExp(g.join("|"));var i={Y:"years",m:"months",n:"daysToMonth",w:"weeks",d:"daysToWeek",D:"totalDays",H:"hours",M:"minutes",S:"seconds"},j=function(b,c,d){this.el=b,this.$el=a(b),this.interval=null,this.offset={},this.options=a.extend({},h),this.instanceNumber=f.length,f.push(this),this.$el.data("countdown-instance",this.instanceNumber),d&&("function"==typeof d?(this.$el.on("update.countdown",d),this.$el.on("stoped.countdown",d),this.$el.on("finish.countdown",d)):this.options=a.extend({},h,d)),this.setFinalDate(c),this.start()};a.extend(j.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var a=this;this.update(),this.interval=setInterval(function(){a.update.call(a)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),f[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(a){this.finalDate=b(a)},update:function(){if(0===this.$el.closest("html").length)return void this.remove();var b,c=void 0!==a._data(this.el,"events"),d=new Date;b=this.finalDate.getTime()-d.getTime(),b=Math.ceil(b/1e3),b=!this.options.elapse&&0>b?0:Math.abs(b),this.totalSecsLeft!==b&&c&&(this.totalSecsLeft=b,this.elapsed=d>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),totalDays:Math.floor(this.totalSecsLeft/60/60/24),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-d.getFullYear())},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish")))},dispatchEvent:function(b){var c=a.Event(b+".countdown");c.finalDate=this.finalDate,c.elapsed=this.elapsed,c.offset=a.extend({},this.offset),c.strftime=d(this.offset),this.$el.trigger(c)}}),a.fn.countdown=function(){var b=Array.prototype.slice.call(arguments,0);return this.each(function(){var c=a(this).data("countdown-instance");if(void 0!==c){var d=f[c],e=b[0];j.prototype.hasOwnProperty(e)?d[e].apply(d,b.slice(1)):null===String(e).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(d.setFinalDate.call(d,e),d.start()):a.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,e))}else new j(this,b[0],b[1])})}});if(typeof Object.create!=="function"){Object.create=function(obj){function F(){}
F.prototype=obj;return new F()}}(function($,window,document){var Carousel={init:function(options,el){var base=this;base.$elem=$(el);base.options=$.extend({},$.fn.owlCarousel.options,base.$elem.data(),options);base.userOptions=options;base.loadContent()},loadContent:function(){var base=this,url;function getData(data){var i,content="";if(typeof base.options.jsonSuccess==="function"){base.options.jsonSuccess.apply(this,[data])}else{for(i in data.owl){if(data.owl.hasOwnProperty(i)){content+=data.owl[i].item}}
base.$elem.html(content)}
base.logIn()}
if(typeof base.options.beforeInit==="function"){base.options.beforeInit.apply(this,[base.$elem])}
if(typeof base.options.jsonPath==="string"){url=base.options.jsonPath;$.getJSON(url,getData)}else{base.logIn()}},logIn:function(){var base=this;base.$elem.data("owl-originalStyles",base.$elem.attr("style"));base.$elem.data("owl-originalClasses",base.$elem.attr("class"));base.$elem.css({opacity:0});base.orignalItems=base.options.items;base.checkBrowser();base.wrapperWidth=0;base.checkVisible=null;base.setVars()},setVars:function(){var base=this;if(base.$elem.children().length===0){return!1}
base.baseClass();base.eventTypes();base.$userItems=base.$elem.children();base.itemsAmount=base.$userItems.length;base.wrapItems();base.$owlItems=base.$elem.find(".owl-item");base.$owlWrapper=base.$elem.find(".owl-wrapper");base.playDirection="next";base.prevItem=0;base.prevArr=[0];base.currentItem=0;base.customEvents();base.onStartup()},onStartup:function(){var base=this;base.updateItems();base.calculateAll();base.buildControls();base.updateControls();base.response();base.moveEvents();base.stopOnHover();base.owlStatus();if(base.options.transitionStyle!==!1){base.transitionTypes(base.options.transitionStyle)}
if(base.options.autoPlay===!0){base.options.autoPlay=5000}
base.play();base.$elem.find(".owl-wrapper").css("display","block");if(!base.$elem.is(":visible")){base.watchVisibility()}else{base.$elem.css("opacity",1)}
base.onstartup=!1;base.eachMoveUpdate();if(typeof base.options.afterInit==="function"){base.options.afterInit.apply(this,[base.$elem])}},eachMoveUpdate:function(){var base=this;if(base.options.lazyLoad===!0){base.lazyLoad()}
if(base.options.autoHeight===!0){base.autoHeight()}
base.onVisibleItems();if(typeof base.options.afterAction==="function"){base.options.afterAction.apply(this,[base.$elem])}},updateVars:function(){var base=this;if(typeof base.options.beforeUpdate==="function"){base.options.beforeUpdate.apply(this,[base.$elem])}
base.watchVisibility();base.updateItems();base.calculateAll();base.updatePosition();base.updateControls();base.eachMoveUpdate();if(typeof base.options.afterUpdate==="function"){base.options.afterUpdate.apply(this,[base.$elem])}},reload:function(){var base=this;window.setTimeout(function(){base.updateVars()},0)},watchVisibility:function(){var base=this;if(base.$elem.is(":visible")===!1){base.$elem.css({opacity:0});window.clearInterval(base.autoPlayInterval);window.clearInterval(base.checkVisible)}else{return!1}
base.checkVisible=window.setInterval(function(){if(base.$elem.is(":visible")){base.reload();base.$elem.animate({opacity:1},200);window.clearInterval(base.checkVisible)}},500)},wrapItems:function(){var base=this;base.$userItems.wrapAll("<div class=\"owl-wrapper\">").wrap("<div class=\"owl-item\"></div>");base.$elem.find(".owl-wrapper").wrap("<div class=\"owl-wrapper-outer\">");base.wrapperOuter=base.$elem.find(".owl-wrapper-outer");base.$elem.css("display","block")},baseClass:function(){var base=this,hasBaseClass=base.$elem.hasClass(base.options.baseClass),hasThemeClass=base.$elem.hasClass(base.options.theme);if(!hasBaseClass){base.$elem.addClass(base.options.baseClass)}
if(!hasThemeClass){base.$elem.addClass(base.options.theme)}},updateItems:function(){var base=this,width,i;if(base.options.responsive===!1){return!1}
if(base.options.singleItem===!0){base.options.items=base.orignalItems=1;base.options.itemsCustom=!1;base.options.itemsDesktop=!1;base.options.itemsDesktopSmall=!1;base.options.itemsTablet=!1;base.options.itemsTabletSmall=!1;base.options.itemsMobile=!1;return!1}
width=$(base.options.responsiveBaseWidth).width();if(width>(base.options.itemsDesktop[0]||base.orignalItems)){base.options.items=base.orignalItems}
if(base.options.itemsCustom!==!1){base.options.itemsCustom.sort(function(a,b){return a[0]-b[0]});for(i=0;i<base.options.itemsCustom.length;i+=1){if(base.options.itemsCustom[i][0]<=width){base.options.items=base.options.itemsCustom[i][1]}}}else{if(width<=base.options.itemsDesktop[0]&&base.options.itemsDesktop!==!1){base.options.items=base.options.itemsDesktop[1]}
if(width<=base.options.itemsDesktopSmall[0]&&base.options.itemsDesktopSmall!==!1){base.options.items=base.options.itemsDesktopSmall[1]}
if(width<=base.options.itemsTablet[0]&&base.options.itemsTablet!==!1){base.options.items=base.options.itemsTablet[1]}
if(width<=base.options.itemsTabletSmall[0]&&base.options.itemsTabletSmall!==!1){base.options.items=base.options.itemsTabletSmall[1]}
if(width<=base.options.itemsMobile[0]&&base.options.itemsMobile!==!1){base.options.items=base.options.itemsMobile[1]}}
if(base.options.items>base.itemsAmount&&base.options.itemsScaleUp===!0){base.options.items=base.itemsAmount}},response:function(){var base=this,smallDelay,lastWindowWidth;if(base.options.responsive!==!0){return!1}
lastWindowWidth=$(window).width();base.resizer=function(){if($(window).width()!==lastWindowWidth){if(base.options.autoPlay!==!1){window.clearInterval(base.autoPlayInterval)}
window.clearTimeout(smallDelay);smallDelay=window.setTimeout(function(){lastWindowWidth=$(window).width();base.updateVars()},base.options.responsiveRefreshRate)}};$(window).resize(base.resizer)},updatePosition:function(){var base=this;base.jumpTo(base.currentItem);if(base.options.autoPlay!==!1){base.checkAp()}},appendItemsSizes:function(){var base=this,roundPages=0,lastItem=base.itemsAmount-base.options.items;base.$owlItems.each(function(index){var $this=$(this);$this.css({"width":base.itemWidth}).data("owl-item",Number(index));if(index%base.options.items===0||index===lastItem){if(!(index>lastItem)){roundPages+=1}}
$this.data("owl-roundPages",roundPages)})},appendWrapperSizes:function(){var base=this,width=base.$owlItems.length*base.itemWidth;base.$owlWrapper.css({"width":width*2,"left":0});base.appendItemsSizes()},calculateAll:function(){var base=this;base.calculateWidth();base.appendWrapperSizes();base.loops();base.max()},calculateWidth:function(){var base=this;base.itemWidth=Math.round(base.$elem.width()/base.options.items)},max:function(){var base=this,maximum=((base.itemsAmount*base.itemWidth)-base.options.items*base.itemWidth)*-1;if(base.options.items>base.itemsAmount){base.maximumItem=0;maximum=0;base.maximumPixels=0}else{base.maximumItem=base.itemsAmount-base.options.items;base.maximumPixels=maximum}
return maximum},min:function(){return 0},loops:function(){var base=this,prev=0,elWidth=0,i,item,roundPageNum;base.positionsInArray=[0];base.pagesInArray=[];for(i=0;i<base.itemsAmount;i+=1){elWidth+=base.itemWidth;base.positionsInArray.push(-elWidth);if(base.options.scrollPerPage===!0){item=$(base.$owlItems[i]);roundPageNum=item.data("owl-roundPages");if(roundPageNum!==prev){base.pagesInArray[prev]=base.positionsInArray[i];prev=roundPageNum}}}},buildControls:function(){var base=this;if(base.options.navigation===!0||base.options.pagination===!0){base.owlControls=$("<div class=\"owl-controls\"/>").toggleClass("clickable",!base.browser.isTouch).appendTo(base.$elem)}
if(base.options.pagination===!0){base.buildPagination()}
if(base.options.navigation===!0){base.buildButtons()}},buildButtons:function(){var base=this,buttonsWrapper=$("<div class=\"owl-buttons\"/>");base.owlControls.append(buttonsWrapper);base.buttonPrev=$("<div/>",{"class":"owl-prev","html":base.options.navigationText[0]||""});base.buttonNext=$("<div/>",{"class":"owl-next","html":base.options.navigationText[1]||""});buttonsWrapper.append(base.buttonPrev).append(base.buttonNext);buttonsWrapper.on("touchstart.owlControls mousedown.owlControls","div[class^=\"owl\"]",function(event){event.preventDefault()});buttonsWrapper.on("touchend.owlControls mouseup.owlControls","div[class^=\"owl\"]",function(event){event.preventDefault();if($(this).hasClass("owl-next")){base.next()}else{base.prev()}})},buildPagination:function(){var base=this;base.paginationWrapper=$("<div class=\"owl-pagination\"/>");base.owlControls.append(base.paginationWrapper);base.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(event){event.preventDefault();if(Number($(this).data("owl-page"))!==base.currentItem){base.goTo(Number($(this).data("owl-page")),!0)}})},updatePagination:function(){var base=this,counter,lastPage,lastItem,i,paginationButton,paginationButtonInner;if(base.options.pagination===!1){return!1}
base.paginationWrapper.html("");counter=0;lastPage=base.itemsAmount-base.itemsAmount%base.options.items;for(i=0;i<base.itemsAmount;i+=1){if(i%base.options.items===0){counter+=1;if(lastPage===i){lastItem=base.itemsAmount-base.options.items}
paginationButton=$("<div/>",{"class":"owl-page"});paginationButtonInner=$("<span></span>",{"text":base.options.paginationNumbers===!0?counter:"","class":base.options.paginationNumbers===!0?"owl-numbers":""});paginationButton.append(paginationButtonInner);paginationButton.data("owl-page",lastPage===i?lastItem:i);paginationButton.data("owl-roundPages",counter);base.paginationWrapper.append(paginationButton)}}
base.checkPagination()},checkPagination:function(){var base=this;if(base.options.pagination===!1){return!1}
base.paginationWrapper.find(".owl-page").each(function(){if($(this).data("owl-roundPages")===$(base.$owlItems[base.currentItem]).data("owl-roundPages")){base.paginationWrapper.find(".owl-page").removeClass("active");$(this).addClass("active")}})},checkNavigation:function(){var base=this;if(base.options.navigation===!1){return!1}
if(base.options.rewindNav===!1){if(base.currentItem===0&&base.maximumItem===0){base.buttonPrev.addClass("disabled");base.buttonNext.addClass("disabled")}else if(base.currentItem===0&&base.maximumItem!==0){base.buttonPrev.addClass("disabled");base.buttonNext.removeClass("disabled")}else if(base.currentItem===base.maximumItem){base.buttonPrev.removeClass("disabled");base.buttonNext.addClass("disabled")}else if(base.currentItem!==0&&base.currentItem!==base.maximumItem){base.buttonPrev.removeClass("disabled");base.buttonNext.removeClass("disabled")}}},updateControls:function(){var base=this;base.updatePagination();base.checkNavigation();if(base.owlControls){if(base.options.items>=base.itemsAmount){base.owlControls.hide()}else{base.owlControls.show()}}},destroyControls:function(){var base=this;if(base.owlControls){base.owlControls.remove()}},next:function(speed){var base=this;if(base.isTransition){return!1}
base.currentItem+=base.options.scrollPerPage===!0?base.options.items:1;if(base.currentItem>base.maximumItem+(base.options.scrollPerPage===!0?(base.options.items-1):0)){if(base.options.rewindNav===!0){base.currentItem=0;speed="rewind"}else{base.currentItem=base.maximumItem;return!1}}
base.goTo(base.currentItem,speed)},prev:function(speed){var base=this;if(base.isTransition){return!1}
if(base.options.scrollPerPage===!0&&base.currentItem>0&&base.currentItem<base.options.items){base.currentItem=0}else{base.currentItem-=base.options.scrollPerPage===!0?base.options.items:1}
if(base.currentItem<0){if(base.options.rewindNav===!0){base.currentItem=base.maximumItem;speed="rewind"}else{base.currentItem=0;return!1}}
base.goTo(base.currentItem,speed)},goTo:function(position,speed,drag){var base=this,goToPixel;if(base.isTransition){return!1}
if(typeof base.options.beforeMove==="function"){base.options.beforeMove.apply(this,[base.$elem])}
if(position>=base.maximumItem){position=base.maximumItem}else if(position<=0){position=0}
base.currentItem=base.owl.currentItem=position;if(base.options.transitionStyle!==!1&&drag!=="drag"&&base.options.items===1&&base.browser.support3d===!0){base.swapSpeed(0);if(base.browser.support3d===!0){base.transition3d(base.positionsInArray[position])}else{base.css2slide(base.positionsInArray[position],1)}
base.afterGo();base.singleItemTransition();return!1}
goToPixel=base.positionsInArray[position];if(base.browser.support3d===!0){base.isCss3Finish=!1;if(speed===!0){base.swapSpeed("paginationSpeed");window.setTimeout(function(){base.isCss3Finish=!0},base.options.paginationSpeed)}else if(speed==="rewind"){base.swapSpeed(base.options.rewindSpeed);window.setTimeout(function(){base.isCss3Finish=!0},base.options.rewindSpeed)}else{base.swapSpeed("slideSpeed");window.setTimeout(function(){base.isCss3Finish=!0},base.options.slideSpeed)}
base.transition3d(goToPixel)}else{if(speed===!0){base.css2slide(goToPixel,base.options.paginationSpeed)}else if(speed==="rewind"){base.css2slide(goToPixel,base.options.rewindSpeed)}else{base.css2slide(goToPixel,base.options.slideSpeed)}}
base.afterGo()},jumpTo:function(position){var base=this;if(typeof base.options.beforeMove==="function"){base.options.beforeMove.apply(this,[base.$elem])}
if(position>=base.maximumItem||position===-1){position=base.maximumItem}else if(position<=0){position=0}
base.swapSpeed(0);if(base.browser.support3d===!0){base.transition3d(base.positionsInArray[position])}else{base.css2slide(base.positionsInArray[position],1)}
base.currentItem=base.owl.currentItem=position;base.afterGo()},afterGo:function(){var base=this;base.prevArr.push(base.currentItem);base.prevItem=base.owl.prevItem=base.prevArr[base.prevArr.length-2];base.prevArr.shift(0);if(base.prevItem!==base.currentItem){base.checkPagination();base.checkNavigation();base.eachMoveUpdate();if(base.options.autoPlay!==!1){base.checkAp()}}
if(typeof base.options.afterMove==="function"&&base.prevItem!==base.currentItem){base.options.afterMove.apply(this,[base.$elem])}},stop:function(){var base=this;base.apStatus="stop";window.clearInterval(base.autoPlayInterval)},checkAp:function(){var base=this;if(base.apStatus!=="stop"){base.play()}},play:function(){var base=this;base.apStatus="play";if(base.options.autoPlay===!1){return!1}
window.clearInterval(base.autoPlayInterval);base.autoPlayInterval=window.setInterval(function(){base.next(!0)},base.options.autoPlay)},swapSpeed:function(action){var base=this;if(action==="slideSpeed"){base.$owlWrapper.css(base.addCssSpeed(base.options.slideSpeed))}else if(action==="paginationSpeed"){base.$owlWrapper.css(base.addCssSpeed(base.options.paginationSpeed))}else if(typeof action!=="string"){base.$owlWrapper.css(base.addCssSpeed(action))}},addCssSpeed:function(speed){return{"-webkit-transition":"all "+speed+"ms ease","-moz-transition":"all "+speed+"ms ease","-o-transition":"all "+speed+"ms ease","transition":"all "+speed+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"","transition":""}},doTranslate:function(pixels){return{"-webkit-transform":"translate3d("+pixels+"px, 0px, 0px)","-moz-transform":"translate3d("+pixels+"px, 0px, 0px)","-o-transform":"translate3d("+pixels+"px, 0px, 0px)","-ms-transform":"translate3d("+pixels+"px, 0px, 0px)","transform":"translate3d("+pixels+"px, 0px,0px)"}},transition3d:function(value){var base=this;base.$owlWrapper.css(base.doTranslate(value))},css2move:function(value){var base=this;base.$owlWrapper.css({"left":value})},css2slide:function(value,speed){var base=this;base.isCssFinish=!1;base.$owlWrapper.stop(!0,!0).animate({"left":value},{duration:speed||base.options.slideSpeed,complete:function(){base.isCssFinish=!0}})},checkBrowser:function(){var base=this,translate3D="translate3d(0px, 0px, 0px)",tempElem=document.createElement("div"),regex,asSupport,support3d,isTouch;tempElem.style.cssText="  -moz-transform:"+translate3D+"; -ms-transform:"+translate3D+"; -o-transform:"+translate3D+"; -webkit-transform:"+translate3D+"; transform:"+translate3D;regex=/translate3d\(0px, 0px, 0px\)/g;asSupport=tempElem.style.cssText.match(regex);support3d=(asSupport!==null&&asSupport.length>=1&&asSupport.length<=2);isTouch="ontouchstart" in window||window.navigator.msMaxTouchPoints;base.browser={"support3d":support3d,"isTouch":isTouch}},moveEvents:function(){var base=this;if(base.options.mouseDrag!==!1||base.options.touchDrag!==!1){base.gestures();base.disabledEvents()}},eventTypes:function(){var base=this,types=["s","e","x"];base.ev_types={};if(base.options.mouseDrag===!0&&base.options.touchDrag===!0){types=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]}else if(base.options.mouseDrag===!1&&base.options.touchDrag===!0){types=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]}else if(base.options.mouseDrag===!0&&base.options.touchDrag===!1){types=["mousedown.owl","mousemove.owl","mouseup.owl"]}
base.ev_types.start=types[0];base.ev_types.move=types[1];base.ev_types.end=types[2]},disabledEvents:function(){var base=this;base.$elem.on("dragstart.owl",function(event){event.preventDefault()});base.$elem.on("mousedown.disableTextSelect",function(e){return $(e.target).is('input, textarea, select, option')})},gestures:function(){var base=this,locals={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};base.isCssFinish=!0;function getTouches(event){if(event.touches!==undefined){return{x:event.touches[0].pageX,y:event.touches[0].pageY}}
if(event.touches===undefined){if(event.pageX!==undefined){return{x:event.pageX,y:event.pageY}}
if(event.pageX===undefined){return{x:event.clientX,y:event.clientY}}}}
function swapEvents(type){if(type==="on"){$(document).on(base.ev_types.move,dragMove);$(document).on(base.ev_types.end,dragEnd)}else if(type==="off"){$(document).off(base.ev_types.move);$(document).off(base.ev_types.end)}}
function dragStart(event){var ev=event.originalEvent||event||window.event,position;if(ev.which===3){return!1}
if(base.itemsAmount<=base.options.items){return}
if(base.isCssFinish===!1&&!base.options.dragBeforeAnimFinish){return!1}
if(base.isCss3Finish===!1&&!base.options.dragBeforeAnimFinish){return!1}
if(base.options.autoPlay!==!1){window.clearInterval(base.autoPlayInterval)}
if(base.browser.isTouch!==!0&&!base.$owlWrapper.hasClass("grabbing")){base.$owlWrapper.addClass("grabbing")}
base.newPosX=0;base.newRelativeX=0;$(this).css(base.removeTransition());position=$(this).position();locals.relativePos=position.left;locals.offsetX=getTouches(ev).x-position.left;locals.offsetY=getTouches(ev).y-position.top;swapEvents("on");locals.sliding=!1;locals.targetElement=ev.target||ev.srcElement}
function dragMove(event){var ev=event.originalEvent||event||window.event,minSwipe,maxSwipe;base.newPosX=getTouches(ev).x-locals.offsetX;base.newPosY=getTouches(ev).y-locals.offsetY;base.newRelativeX=base.newPosX-locals.relativePos;if(typeof base.options.startDragging==="function"&&locals.dragging!==!0&&base.newRelativeX!==0){locals.dragging=!0;base.options.startDragging.apply(base,[base.$elem])}
if((base.newRelativeX>8||base.newRelativeX<-8)&&(base.browser.isTouch===!0)){if(ev.preventDefault!==undefined){ev.preventDefault()}else{ev.returnValue=!1}
locals.sliding=!0}
if((base.newPosY>10||base.newPosY<-10)&&locals.sliding===!1){$(document).off("touchmove.owl")}
minSwipe=function(){return base.newRelativeX/5};maxSwipe=function(){return base.maximumPixels+base.newRelativeX/5};base.newPosX=Math.max(Math.min(base.newPosX,minSwipe()),maxSwipe());if(base.browser.support3d===!0){base.transition3d(base.newPosX)}else{base.css2move(base.newPosX)}}
function dragEnd(event){var ev=event.originalEvent||event||window.event,newPosition,handlers,owlStopEvent;ev.target=ev.target||ev.srcElement;locals.dragging=!1;if(base.browser.isTouch!==!0){base.$owlWrapper.removeClass("grabbing")}
if(base.newRelativeX<0){base.dragDirection=base.owl.dragDirection="left"}else{base.dragDirection=base.owl.dragDirection="right"}
if(base.newRelativeX!==0){newPosition=base.getNewPosition();base.goTo(newPosition,!1,"drag");if(locals.targetElement===ev.target&&base.browser.isTouch!==!0){$(ev.target).on("click.disable",function(ev){ev.stopImmediatePropagation();ev.stopPropagation();ev.preventDefault();$(ev.target).off("click.disable")});handlers=$._data(ev.target,"events").click;owlStopEvent=handlers.pop();handlers.splice(0,0,owlStopEvent)}}
swapEvents("off")}
base.$elem.on(base.ev_types.start,".owl-wrapper",dragStart)},getNewPosition:function(){var base=this,newPosition=base.closestItem();if(newPosition>base.maximumItem){base.currentItem=base.maximumItem;newPosition=base.maximumItem}else if(base.newPosX>=0){newPosition=0;base.currentItem=0}
return newPosition},closestItem:function(){var base=this,array=base.options.scrollPerPage===!0?base.pagesInArray:base.positionsInArray,goal=base.newPosX,closest=null;$.each(array,function(i,v){if(goal-(base.itemWidth/20)>array[i+1]&&goal-(base.itemWidth/20)<v&&base.moveDirection()==="left"){closest=v;if(base.options.scrollPerPage===!0){base.currentItem=$.inArray(closest,base.positionsInArray)}else{base.currentItem=i}}else if(goal+(base.itemWidth/20)<v&&goal+(base.itemWidth/20)>(array[i+1]||array[i]-base.itemWidth)&&base.moveDirection()==="right"){if(base.options.scrollPerPage===!0){closest=array[i+1]||array[array.length-1];base.currentItem=$.inArray(closest,base.positionsInArray)}else{closest=array[i+1];base.currentItem=i+1}}});return base.currentItem},moveDirection:function(){var base=this,direction;if(base.newRelativeX<0){direction="right";base.playDirection="next"}else{direction="left";base.playDirection="prev"}
return direction},customEvents:function(){var base=this;base.$elem.on("owl.next",function(){base.next()});base.$elem.on("owl.prev",function(){base.prev()});base.$elem.on("owl.play",function(event,speed){base.options.autoPlay=speed;base.play();base.hoverStatus="play"});base.$elem.on("owl.stop",function(){base.stop();base.hoverStatus="stop"});base.$elem.on("owl.goTo",function(event,item){base.goTo(item)});base.$elem.on("owl.jumpTo",function(event,item){base.jumpTo(item)})},stopOnHover:function(){var base=this;if(base.options.stopOnHover===!0&&base.browser.isTouch!==!0&&base.options.autoPlay!==!1){base.$elem.on("mouseover",function(){base.stop()});base.$elem.on("mouseout",function(){if(base.hoverStatus!=="stop"){base.play()}})}},lazyLoad:function(){var base=this,i,$item,itemNumber,$lazyImg,follow;if(base.options.lazyLoad===!1){return!1}
for(i=0;i<base.itemsAmount;i+=1){$item=$(base.$owlItems[i]);if($item.data("owl-loaded")==="loaded"){continue}
itemNumber=$item.data("owl-item");$lazyImg=$item.find(".lazyOwl");if(typeof $lazyImg.data("src")!=="string"){$item.data("owl-loaded","loaded");continue}
if($item.data("owl-loaded")===undefined){$lazyImg.hide();$item.addClass("loading").data("owl-loaded","checked")}
if(base.options.lazyFollow===!0){follow=itemNumber>=base.currentItem}else{follow=!0}
if(follow&&itemNumber<base.currentItem+base.options.items&&$lazyImg.length){base.lazyPreload($item,$lazyImg)}}},lazyPreload:function($item,$lazyImg){var base=this,iterations=0,isBackgroundImg;if($lazyImg.prop("tagName")==="DIV"){$lazyImg.css("background-image","url("+$lazyImg.data("src")+")");isBackgroundImg=!0}else{if($lazyImg.hasClass('replace-2x')&&typeof st_retina!=='undefined'&&st_retina&&isRetina()){var src=$lazyImg.data("src");if($lazyImg.data('2x'))
src_2x=$lazyImg.data('2x');else src_2x=src.replace(/\/(\d+)\-(\w+)\_default([\.\/])/i,"/$1-$2_default_2x$3");if(src_2x!=src){var retina_image=new Image();retina_image.setAttribute('rel',src_2x);retina_image.onload=(function(){if(this.height!=0)
$lazyImg[0].src=this.getAttribute('rel')});retina_image.src=src_2x}}
if(!$lazyImg[0].src)
$lazyImg[0].src=$lazyImg.data("src")}
function showImage(){$item.data("owl-loaded","loaded").removeClass("loading");$lazyImg.removeAttr("data-src");if(base.options.lazyEffect==="fade"){$lazyImg.fadeIn(400)}else{$lazyImg.show()}
if(typeof base.options.afterLazyLoad==="function"){base.options.afterLazyLoad.apply(this,[base.$elem])}}
function checkLazyImage(){iterations+=1;if(base.completeImg($lazyImg.get(0))||isBackgroundImg===!0){showImage()}else if(iterations<=100){window.setTimeout(checkLazyImage,100)}else{showImage()}}
checkLazyImage()},autoHeight:function(){var base=this,$currentimg=$(base.$owlItems[base.currentItem]).find("img"),iterations;function addHeight(){var $currentItem=$(base.$owlItems[base.currentItem]).height();base.wrapperOuter.css("height",$currentItem+"px");if(!base.wrapperOuter.hasClass("autoHeight")){window.setTimeout(function(){base.wrapperOuter.addClass("autoHeight")},0)}}
function checkImage(){iterations+=1;if(base.completeImg($currentimg.get(0))){addHeight()}else if(iterations<=100){window.setTimeout(checkImage,100)}else{base.wrapperOuter.css("height","")}}
if($currentimg.get(0)!==undefined){iterations=0;checkImage()}else{addHeight()}},completeImg:function(img){var naturalWidthType;if(!img.complete){return!1}
naturalWidthType=typeof img.naturalWidth;if(naturalWidthType!=="undefined"&&img.naturalWidth===0){return!1}
return!0},onVisibleItems:function(){var base=this,i;if(base.options.addClassActive===!0){base.$owlItems.removeClass("active")}
base.visibleItems=[];for(i=base.currentItem;i<base.currentItem+base.options.items;i+=1){base.visibleItems.push(i);if(base.options.addClassActive===!0){$(base.$owlItems[i]).addClass("active")}}
base.owl.visibleItems=base.visibleItems},transitionTypes:function(className){var base=this;base.outClass="owl-"+className+"-out";base.inClass="owl-"+className+"-in"},singleItemTransition:function(){var base=this,outClass=base.outClass,inClass=base.inClass,$currentItem=base.$owlItems.eq(base.currentItem),$prevItem=base.$owlItems.eq(base.prevItem),prevPos=Math.abs(base.positionsInArray[base.currentItem])+base.positionsInArray[base.prevItem],origin=Math.abs(base.positionsInArray[base.currentItem])+base.itemWidth/2,animEnd='webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend';base.isTransition=!0;base.$owlWrapper.addClass('owl-origin').css({"-webkit-transform-origin":origin+"px","-moz-perspective-origin":origin+"px","perspective-origin":origin+"px"});function transStyles(prevPos){return{"position":"relative","left":prevPos+"px"}}
$prevItem.css(transStyles(prevPos,10)).addClass(outClass).on(animEnd,function(){base.endPrev=!0;$prevItem.off(animEnd);base.clearTransStyle($prevItem,outClass)});$currentItem.addClass(inClass).on(animEnd,function(){base.endCurrent=!0;$currentItem.off(animEnd);base.clearTransStyle($currentItem,inClass)})},clearTransStyle:function(item,classToRemove){var base=this;item.css({"position":"","left":""}).removeClass(classToRemove);if(base.endPrev&&base.endCurrent){base.$owlWrapper.removeClass('owl-origin');base.endPrev=!1;base.endCurrent=!1;base.isTransition=!1}},owlStatus:function(){var base=this;base.owl={"userOptions":base.userOptions,"baseElement":base.$elem,"userItems":base.$userItems,"owlItems":base.$owlItems,"currentItem":base.currentItem,"prevItem":base.prevItem,"visibleItems":base.visibleItems,"isTouch":base.browser.isTouch,"browser":base.browser,"dragDirection":base.dragDirection}},clearEvents:function(){var base=this;base.$elem.off(".owl owl mousedown.disableTextSelect");$(document).off(".owl owl");$(window).off("resize",base.resizer)},unWrap:function(){var base=this;if(base.$elem.children().length!==0){base.$owlWrapper.unwrap();base.$userItems.unwrap().unwrap();if(base.owlControls){base.owlControls.remove()}}
base.clearEvents();base.$elem.attr("style",base.$elem.data("owl-originalStyles")||"").attr("class",base.$elem.data("owl-originalClasses"))},destroy:function(){var base=this;base.stop();window.clearInterval(base.checkVisible);base.unWrap();base.$elem.removeData()},reinit:function(newOptions){var base=this,options=$.extend({},base.userOptions,newOptions);base.unWrap();base.init(options,base.$elem)},addItem:function(htmlString,targetPosition){var base=this,position;if(!htmlString){return!1}
if(base.$elem.children().length===0){base.$elem.append(htmlString);base.setVars();return!1}
base.unWrap();if(targetPosition===undefined||targetPosition===-1){position=-1}else{position=targetPosition}
if(position>=base.$userItems.length||position===-1){base.$userItems.eq(-1).after(htmlString)}else{base.$userItems.eq(position).before(htmlString)}
base.setVars()},removeItem:function(targetPosition){var base=this,position;if(base.$elem.children().length===0){return!1}
if(targetPosition===undefined||targetPosition===-1){position=-1}else{position=targetPosition}
base.unWrap();base.$userItems.eq(position).remove();base.setVars()}};$.fn.owlCarousel=function(options){return this.each(function(){if($(this).data("owl-init")===!0){return!1}
$(this).data("owl-init",!0);var carousel=Object.create(Carousel);carousel.init(options,this);$.data(this,"owlCarousel",carousel)})};$.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[748,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1000,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["<i class='fto-left-open-3'></i>","<i class='fto-right-open-3'></i>"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}}(jQuery,window,document));(function($){'use strict';var dw,dh,rw,rh,lx,ly;var defaults={loadingNotice:'',errorNotice:'The image could not be loaded',errorDuration:2500,linkAttribute:'href',preventClicks:!0,beforeShow:$.noop,beforeHide:$.noop,onShow:$.noop,onHide:$.noop,onMove:$.noop};function EasyZoom(target,options){this.$target=$(target);this.opts=$.extend({},defaults,options,this.$target.data());this.isOpen===undefined&&this._init()}
EasyZoom.prototype._init=function(){this.$link=this.$target.find('a');this.$image=this.$target.find('img');this.$flyout=$('<div class="easyzoom-flyout" />');this.$notice=$('<div class="easyzoom-notice" />');this.$target.on({'mousemove.easyzoom touchmove.easyzoom':$.proxy(this._onMove,this),'mouseleave.easyzoom touchend.easyzoom':$.proxy(this._onLeave,this),'mouseenter.easyzoom touchstart.easyzoom':$.proxy(this._onEnter,this)});this.opts.preventClicks&&this.$target.on('click.easyzoom',function(e){e.preventDefault()})};EasyZoom.prototype.show=function(e,testMouseOver){var w1,h1,w2,h2;var self=this;if(this.opts.beforeShow.call(this)===!1)return;if(!this.isReady){return this._loadImage(this.$link.attr(this.opts.linkAttribute),function(){if(self.isMouseOver||!testMouseOver){self.show(e)}})}
this.$target.append(this.$flyout);w1=this.$target.width();h1=this.$target.height();w2=this.$flyout.width();h2=this.$flyout.height();dw=this.$zoom.width()-w2;dh=this.$zoom.height()-h2;if(dw<0)dw=0;if(dh<0)dh=0;rw=dw/w1;rh=dh/h1;this.isOpen=!0;this.opts.onShow.call(this);e&&this._move(e)};EasyZoom.prototype._onEnter=function(e){var touches=e.originalEvent.touches;this.isMouseOver=!0;if(!touches||touches.length==1){e.preventDefault();this.show(e,!0)}};EasyZoom.prototype._onMove=function(e){if(!this.isOpen)return;e.preventDefault();this._move(e)};EasyZoom.prototype._onLeave=function(){this.isMouseOver=!1;this.isOpen&&this.hide()};EasyZoom.prototype._onLoad=function(e){if(!e.currentTarget.width)return;this.isReady=!0;this.$notice.detach();this.$flyout.html(this.$zoom);this.$target.removeClass('is-loading').addClass('is-ready');e.data.call&&e.data()};EasyZoom.prototype._onError=function(){var self=this;this.$notice.text(this.opts.errorNotice);this.$target.removeClass('is-loading').addClass('is-error');this.detachNotice=setTimeout(function(){self.$notice.detach();self.detachNotice=null},this.opts.errorDuration)};EasyZoom.prototype._loadImage=function(href,callback){var zoom=new Image;this.$target.addClass('is-loading').append(this.$notice.text(this.opts.loadingNotice));this.$zoom=$(zoom).on('error',$.proxy(this._onError,this)).on('load',callback,$.proxy(this._onLoad,this));zoom.style.position='absolute';zoom.src=href};EasyZoom.prototype._move=function(e){if(e.type.indexOf('touch')===0){var touchlist=e.touches||e.originalEvent.touches;lx=touchlist[0].pageX;ly=touchlist[0].pageY}else{lx=e.pageX||lx;ly=e.pageY||ly}
var offset=this.$target.offset();var pt=ly-offset.top;var pl=lx-offset.left;var xt=Math.ceil(pt*rh);var xl=Math.ceil(pl*rw);if(xl<0||xt<0||xl>dw||xt>dh){this.hide()}else{var top=xt*-1;var left=xl*-1;this.$zoom.css({top:top,left:left});this.opts.onMove.call(this,top,left)}};EasyZoom.prototype.hide=function(){if(!this.isOpen)return;if(this.opts.beforeHide.call(this)===!1)return;this.$flyout.detach();this.isOpen=!1;this.opts.onHide.call(this)};EasyZoom.prototype.swap=function(standardSrc,zoomHref,srcset){this.hide();this.isReady=!1;this.detachNotice&&clearTimeout(this.detachNotice);this.$notice.parent().length&&this.$notice.detach();this.$target.removeClass('is-loading is-ready is-error');this.$image.attr({src:standardSrc,srcset:$.isArray(srcset)?srcset.join():srcset});this.$link.attr(this.opts.linkAttribute,zoomHref)};EasyZoom.prototype.teardown=function(){this.hide();this.$target.off('.easyzoom').removeClass('is-loading is-ready is-error');this.detachNotice&&clearTimeout(this.detachNotice);delete this.$link;delete this.$zoom;delete this.$image;delete this.$notice;delete this.$flyout;delete this.isOpen;delete this.isReady};$.fn.easyZoom=function(options){return this.each(function(){var api=$.data(this,'easyZoom');if(!api){$.data(this,'easyZoom',new EasyZoom(this,options))}else if(api.isOpen===undefined){api._init()}})};if(typeof define==='function'&&define.amd){define(function(){return EasyZoom})}else if(typeof module!=='undefined'&&module.exports){module.exports=EasyZoom}})(jQuery);/*!
 * Stellar.js v0.6.2
 * http://markdalgleish.com/projects/stellar.js
 *
 * Copyright 2014, Mark Dalgleish
 * This content is released under the MIT license
 * http://markdalgleish.mit-license.org
 */
;(function($,window,document,undefined){var pluginName='stellar',defaults={scrollProperty:'scroll',positionProperty:'position',horizontalScrolling:!0,verticalScrolling:!0,horizontalOffset:0,verticalOffset:0,responsive:!1,parallaxBackgrounds:!0,parallaxElements:!0,hideDistantElements:!0,hideElement:function($elem){$elem.hide()},showElement:function($elem){$elem.show()}},scrollProperty={scroll:{getLeft:function($elem){return $elem.scrollLeft()},setLeft:function($elem,val){$elem.scrollLeft(val)},getTop:function($elem){return $elem.scrollTop()},setTop:function($elem,val){$elem.scrollTop(val)}},position:{getLeft:function($elem){return parseInt($elem.css('left'),10)*-1},getTop:function($elem){return parseInt($elem.css('top'),10)*-1}},margin:{getLeft:function($elem){return parseInt($elem.css('margin-left'),10)*-1},getTop:function($elem){return parseInt($elem.css('margin-top'),10)*-1}},transform:{getLeft:function($elem){var computedTransform=getComputedStyle($elem[0])[prefixedTransform];return(computedTransform!=='none'?parseInt(computedTransform.match(/(-?[0-9]+)/g)[4],10)*-1:0)},getTop:function($elem){var computedTransform=getComputedStyle($elem[0])[prefixedTransform];return(computedTransform!=='none'?parseInt(computedTransform.match(/(-?[0-9]+)/g)[5],10)*-1:0)}}},positionProperty={position:{setLeft:function($elem,left){$elem.css('left',left)},setTop:function($elem,top){$elem.css('top',top)}},transform:{setPosition:function($elem,left,startingLeft,top,startingTop){$elem[0].style[prefixedTransform]='translate3d('+(left-startingLeft)+'px, '+(top-startingTop)+'px, 0)'}}},vendorPrefix=(function(){var prefixes=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,style=$('script')[0].style,prefix='',prop;for(prop in style){if(prefixes.test(prop)){prefix=prop.match(prefixes)[0];break}}
if('WebkitOpacity' in style){prefix='Webkit'}
if('KhtmlOpacity' in style){prefix='Khtml'}
return function(property){return prefix+(prefix.length>0?property.charAt(0).toUpperCase()+property.slice(1):property)}}()),prefixedTransform=vendorPrefix('transform'),supportsBackgroundPositionXY=$('<div />',{style:'background:#fff'}).css('background-position-x')!==undefined,setBackgroundPosition=(supportsBackgroundPositionXY?function($elem,x,y){$elem.css({'background-position-x':x,'background-position-y':y})}:function($elem,x,y){$elem.css('background-position',x+' '+y)}),getBackgroundPosition=(supportsBackgroundPositionXY?function($elem){return[$elem.css('background-position-x'),$elem.css('background-position-y')]}:function($elem){return $elem.css('background-position').split(' ')}),requestAnimFrame=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){setTimeout(callback,1000/60)});function Plugin(element,options){this.element=element;this.options=$.extend({},defaults,options);this._defaults=defaults;this._name=pluginName;this.init()}
Plugin.prototype={init:function(){this.options.name=pluginName+'_'+Math.floor(Math.random()*1e9);this._defineElements();this._defineGetters();this._defineSetters();this._handleWindowLoadAndResize();this._detectViewport();this.refresh({firstLoad:!0});if(this.options.scrollProperty==='scroll'){this._handleScrollEvent()}else{this._startAnimationLoop()}},_defineElements:function(){if(this.element===document.body)this.element=window;this.$scrollElement=$(this.element);this.$element=(this.element===window?$('body'):this.$scrollElement);this.$viewportElement=(this.options.viewportElement!==undefined?$(this.options.viewportElement):(this.$scrollElement[0]===window||this.options.scrollProperty==='scroll'?this.$scrollElement:this.$scrollElement.parent()))},_defineGetters:function(){var self=this,scrollPropertyAdapter=scrollProperty[self.options.scrollProperty];this._getScrollLeft=function(){return scrollPropertyAdapter.getLeft(self.$scrollElement)};this._getScrollTop=function(){return scrollPropertyAdapter.getTop(self.$scrollElement)}},_defineSetters:function(){var self=this,scrollPropertyAdapter=scrollProperty[self.options.scrollProperty],positionPropertyAdapter=positionProperty[self.options.positionProperty],setScrollLeft=scrollPropertyAdapter.setLeft,setScrollTop=scrollPropertyAdapter.setTop;this._setScrollLeft=(typeof setScrollLeft==='function'?function(val){setScrollLeft(self.$scrollElement,val)}:$.noop);this._setScrollTop=(typeof setScrollTop==='function'?function(val){setScrollTop(self.$scrollElement,val)}:$.noop);this._setPosition=positionPropertyAdapter.setPosition||function($elem,left,startingLeft,top,startingTop){if(self.options.horizontalScrolling){positionPropertyAdapter.setLeft($elem,left,startingLeft)}
if(self.options.verticalScrolling){positionPropertyAdapter.setTop($elem,top,startingTop)}}},_handleWindowLoadAndResize:function(){var self=this,$window=$(window);if(self.options.responsive){$window.bind('load.'+this.name,function(){self.refresh()})}
$window.bind('resize.'+this.name,function(){self._detectViewport();if(self.options.responsive){self.refresh()}})},refresh:function(options){var self=this,oldLeft=self._getScrollLeft(),oldTop=self._getScrollTop();if(!options||!options.firstLoad){this._reset()}
this._setScrollLeft(0);this._setScrollTop(0);this._setOffsets();this._findParticles();this._findBackgrounds();if(options&&options.firstLoad&&/WebKit/.test(navigator.userAgent)){$(window).load(function(){var oldLeft=self._getScrollLeft(),oldTop=self._getScrollTop();self._setScrollLeft(oldLeft+1);self._setScrollTop(oldTop+1);self._setScrollLeft(oldLeft);self._setScrollTop(oldTop)})}
this._setScrollLeft(oldLeft);this._setScrollTop(oldTop)},_detectViewport:function(){var viewportOffsets=this.$viewportElement.offset(),hasOffsets=viewportOffsets!==null&&viewportOffsets!==undefined;this.viewportWidth=this.$viewportElement.width();this.viewportHeight=this.$viewportElement.height();this.viewportOffsetTop=(hasOffsets?viewportOffsets.top:0);this.viewportOffsetLeft=(hasOffsets?viewportOffsets.left:0)},_findParticles:function(){var self=this,scrollLeft=this._getScrollLeft(),scrollTop=this._getScrollTop();if(this.particles!==undefined){for(var i=this.particles.length-1;i>=0;i--){this.particles[i].$element.data('stellar-elementIsActive',undefined)}}
this.particles=[];if(!this.options.parallaxElements)return;this.$element.find('[data-stellar-ratio]').each(function(i){var $this=$(this),horizontalOffset,verticalOffset,positionLeft,positionTop,marginLeft,marginTop,$offsetParent,offsetLeft,offsetTop,parentOffsetLeft=0,parentOffsetTop=0,tempParentOffsetLeft=0,tempParentOffsetTop=0;if(!$this.data('stellar-elementIsActive')){$this.data('stellar-elementIsActive',this)}else if($this.data('stellar-elementIsActive')!==this){return}
self.options.showElement($this);if(!$this.data('stellar-startingLeft')){$this.data('stellar-startingLeft',$this.css('left'));$this.data('stellar-startingTop',$this.css('top'))}else{$this.css('left',$this.data('stellar-startingLeft'));$this.css('top',$this.data('stellar-startingTop'))}
positionLeft=$this.position().left;positionTop=$this.position().top;marginLeft=($this.css('margin-left')==='auto')?0:parseInt($this.css('margin-left'),10);marginTop=($this.css('margin-top')==='auto')?0:parseInt($this.css('margin-top'),10);offsetLeft=$this.offset().left-marginLeft;offsetTop=$this.offset().top-marginTop;$this.parents().each(function(){var $this=$(this);if($this.data('stellar-offset-parent')===!0){parentOffsetLeft=tempParentOffsetLeft;parentOffsetTop=tempParentOffsetTop;$offsetParent=$this;return!1}else{tempParentOffsetLeft+=$this.position().left;tempParentOffsetTop+=$this.position().top}});horizontalOffset=($this.data('stellar-horizontal-offset')!==undefined?$this.data('stellar-horizontal-offset'):($offsetParent!==undefined&&$offsetParent.data('stellar-horizontal-offset')!==undefined?$offsetParent.data('stellar-horizontal-offset'):self.horizontalOffset));verticalOffset=($this.data('stellar-vertical-offset')!==undefined?$this.data('stellar-vertical-offset'):($offsetParent!==undefined&&$offsetParent.data('stellar-vertical-offset')!==undefined?$offsetParent.data('stellar-vertical-offset'):self.verticalOffset));self.particles.push({$element:$this,$offsetParent:$offsetParent,isFixed:$this.css('position')==='fixed',horizontalOffset:horizontalOffset,verticalOffset:verticalOffset,startingPositionLeft:positionLeft,startingPositionTop:positionTop,startingOffsetLeft:offsetLeft,startingOffsetTop:offsetTop,parentOffsetLeft:parentOffsetLeft,parentOffsetTop:parentOffsetTop,stellarRatio:($this.data('stellar-ratio')!==undefined?$this.data('stellar-ratio'):1),width:$this.outerWidth(!0),height:$this.outerHeight(!0),isHidden:!1})})},_findBackgrounds:function(){var self=this,scrollLeft=this._getScrollLeft(),scrollTop=this._getScrollTop(),$backgroundElements;this.backgrounds=[];if(!this.options.parallaxBackgrounds)return;$backgroundElements=this.$element.find('[data-stellar-background-ratio]');if(this.$element.data('stellar-background-ratio')){$backgroundElements=$backgroundElements.add(this.$element)}
$backgroundElements.each(function(){var $this=$(this),backgroundPosition=getBackgroundPosition($this),horizontalOffset,verticalOffset,positionLeft,positionTop,marginLeft,marginTop,offsetLeft,offsetTop,$offsetParent,parentOffsetLeft=0,parentOffsetTop=0,tempParentOffsetLeft=0,tempParentOffsetTop=0;if(!$this.data('stellar-backgroundIsActive')){$this.data('stellar-backgroundIsActive',this)}else if($this.data('stellar-backgroundIsActive')!==this){return}
if(!$this.data('stellar-backgroundStartingLeft')){$this.data('stellar-backgroundStartingLeft',backgroundPosition[0]);$this.data('stellar-backgroundStartingTop',backgroundPosition[1])}else{setBackgroundPosition($this,$this.data('stellar-backgroundStartingLeft'),$this.data('stellar-backgroundStartingTop'))}
marginLeft=($this.css('margin-left')==='auto')?0:parseInt($this.css('margin-left'),10);marginTop=($this.css('margin-top')==='auto')?0:parseInt($this.css('margin-top'),10);offsetLeft=$this.offset().left-marginLeft-scrollLeft;offsetTop=$this.offset().top-marginTop-scrollTop;$this.parents().each(function(){var $this=$(this);if($this.data('stellar-offset-parent')===!0){parentOffsetLeft=tempParentOffsetLeft;parentOffsetTop=tempParentOffsetTop;$offsetParent=$this;return!1}else{tempParentOffsetLeft+=$this.position().left;tempParentOffsetTop+=$this.position().top}});horizontalOffset=($this.data('stellar-horizontal-offset')!==undefined?$this.data('stellar-horizontal-offset'):($offsetParent!==undefined&&$offsetParent.data('stellar-horizontal-offset')!==undefined?$offsetParent.data('stellar-horizontal-offset'):self.horizontalOffset));verticalOffset=($this.data('stellar-vertical-offset')!==undefined?$this.data('stellar-vertical-offset'):($offsetParent!==undefined&&$offsetParent.data('stellar-vertical-offset')!==undefined?$offsetParent.data('stellar-vertical-offset'):self.verticalOffset));self.backgrounds.push({$element:$this,$offsetParent:$offsetParent,isFixed:$this.css('background-attachment')==='fixed',horizontalOffset:horizontalOffset,verticalOffset:verticalOffset,startingValueLeft:backgroundPosition[0],startingValueTop:backgroundPosition[1],startingBackgroundPositionLeft:(isNaN(parseInt(backgroundPosition[0],10))?0:parseInt(backgroundPosition[0],10)),startingBackgroundPositionTop:(isNaN(parseInt(backgroundPosition[1],10))?0:parseInt(backgroundPosition[1],10)),startingPositionLeft:$this.position().left,startingPositionTop:$this.position().top,startingOffsetLeft:offsetLeft,startingOffsetTop:offsetTop,parentOffsetLeft:parentOffsetLeft,parentOffsetTop:parentOffsetTop,stellarRatio:($this.data('stellar-background-ratio')===undefined?1:$this.data('stellar-background-ratio'))})});for(i=this.backgrounds.length-1;i>=0;i--){background=this.backgrounds[i];var fixedRatioOffset=(background.isFixed?0:1);bgLeft=(this.options.horizontalScrolling?(scrollLeft+background.horizontalOffset-this.viewportOffsetLeft-background.startingOffsetLeft+background.parentOffsetLeft-background.startingBackgroundPositionLeft)*(fixedRatioOffset-background.stellarRatio)+'px':background.startingValueLeft);bgTop=(this.options.verticalScrolling?(scrollTop+background.verticalOffset-this.viewportOffsetTop-background.startingOffsetTop+background.parentOffsetTop-background.startingBackgroundPositionTop)*(fixedRatioOffset-background.stellarRatio)+'px':background.startingValueTop);setBackgroundPosition(background.$element,bgLeft,bgTop)}},_reset:function(){var particle,startingPositionLeft,startingPositionTop,background,i;for(i=this.particles.length-1;i>=0;i--){particle=this.particles[i];startingPositionLeft=particle.$element.data('stellar-startingLeft');startingPositionTop=particle.$element.data('stellar-startingTop');this._setPosition(particle.$element,startingPositionLeft,startingPositionLeft,startingPositionTop,startingPositionTop);this.options.showElement(particle.$element);particle.$element.data('stellar-startingLeft',null).data('stellar-elementIsActive',null).data('stellar-backgroundIsActive',null)}
for(i=this.backgrounds.length-1;i>=0;i--){background=this.backgrounds[i];background.$element.data('stellar-backgroundStartingLeft',null).data('stellar-backgroundStartingTop',null);setBackgroundPosition(background.$element,background.startingValueLeft,background.startingValueTop)}},destroy:function(){this._reset();this.$scrollElement.unbind('resize.'+this.name).unbind('scroll.'+this.name);this._animationLoop=$.noop;$(window).unbind('load.'+this.name).unbind('resize.'+this.name)},_setOffsets:function(){var self=this,$window=$(window);$window.unbind('resize.horizontal-'+this.name).unbind('resize.vertical-'+this.name);if(typeof this.options.horizontalOffset==='function'){this.horizontalOffset=this.options.horizontalOffset();$window.bind('resize.horizontal-'+this.name,function(){self.horizontalOffset=self.options.horizontalOffset()})}else{this.horizontalOffset=this.options.horizontalOffset}
if(typeof this.options.verticalOffset==='function'){this.verticalOffset=this.options.verticalOffset();$window.bind('resize.vertical-'+this.name,function(){self.verticalOffset=self.options.verticalOffset()})}else{this.verticalOffset=this.options.verticalOffset}},_repositionElements:function(){var scrollLeft=this._getScrollLeft(),scrollTop=this._getScrollTop(),horizontalOffset,verticalOffset,particle,fixedRatioOffset,background,bgLeft,bgTop,isVisibleVertical=!0,isVisibleHorizontal=!0,newPositionLeft,newPositionTop,newOffsetLeft,newOffsetTop,i;if(this.currentScrollLeft===scrollLeft&&this.currentScrollTop===scrollTop&&this.currentWidth===this.viewportWidth&&this.currentHeight===this.viewportHeight){return}else{this.currentScrollLeft=scrollLeft;this.currentScrollTop=scrollTop;this.currentWidth=this.viewportWidth;this.currentHeight=this.viewportHeight}
for(i=this.particles.length-1;i>=0;i--){particle=this.particles[i];fixedRatioOffset=(particle.isFixed?1:0);if(this.options.horizontalScrolling){newPositionLeft=(scrollLeft+particle.horizontalOffset+this.viewportOffsetLeft+particle.startingPositionLeft-particle.startingOffsetLeft+particle.parentOffsetLeft)*-(particle.stellarRatio+fixedRatioOffset-1)+particle.startingPositionLeft;newOffsetLeft=newPositionLeft-particle.startingPositionLeft+particle.startingOffsetLeft}else{newPositionLeft=particle.startingPositionLeft;newOffsetLeft=particle.startingOffsetLeft}
if(this.options.verticalScrolling){newPositionTop=(scrollTop+particle.verticalOffset+this.viewportOffsetTop+particle.startingPositionTop-particle.startingOffsetTop+particle.parentOffsetTop)*-(particle.stellarRatio+fixedRatioOffset-1)+particle.startingPositionTop;newOffsetTop=newPositionTop-particle.startingPositionTop+particle.startingOffsetTop}else{newPositionTop=particle.startingPositionTop;newOffsetTop=particle.startingOffsetTop}
if(this.options.hideDistantElements){isVisibleHorizontal=!this.options.horizontalScrolling||newOffsetLeft+particle.width>(particle.isFixed?0:scrollLeft)&&newOffsetLeft<(particle.isFixed?0:scrollLeft)+this.viewportWidth+this.viewportOffsetLeft;isVisibleVertical=!this.options.verticalScrolling||newOffsetTop+particle.height>(particle.isFixed?0:scrollTop)&&newOffsetTop<(particle.isFixed?0:scrollTop)+this.viewportHeight+this.viewportOffsetTop}
if(isVisibleHorizontal&&isVisibleVertical){if(particle.isHidden){this.options.showElement(particle.$element);particle.isHidden=!1}
this._setPosition(particle.$element,newPositionLeft,particle.startingPositionLeft,newPositionTop,particle.startingPositionTop)}else{if(!particle.isHidden){this.options.hideElement(particle.$element);particle.isHidden=!0}}}
for(i=this.backgrounds.length-1;i>=0;i--){background=this.backgrounds[i];fixedRatioOffset=(background.isFixed?0:1);bgLeft=(this.options.horizontalScrolling?(scrollLeft+background.horizontalOffset-this.viewportOffsetLeft-background.startingOffsetLeft+background.parentOffsetLeft-background.startingBackgroundPositionLeft)*(fixedRatioOffset-background.stellarRatio)+'px':background.startingValueLeft);bgTop=(this.options.verticalScrolling?(scrollTop+background.verticalOffset-this.viewportOffsetTop-background.startingOffsetTop+background.parentOffsetTop-background.startingBackgroundPositionTop)*(fixedRatioOffset-background.stellarRatio)+'px':background.startingValueTop);setBackgroundPosition(background.$element,bgLeft,bgTop)}},_handleScrollEvent:function(){var self=this,ticking=!1;var update=function(){self._repositionElements();ticking=!1};var requestTick=function(){if(!ticking){requestAnimFrame(update);ticking=!0}};this.$scrollElement.bind('scroll.'+this.name,requestTick);requestTick()},_startAnimationLoop:function(){var self=this;this._animationLoop=function(){requestAnimFrame(self._animationLoop);self._repositionElements()};this._animationLoop()}};$.fn[pluginName]=function(options){var args=arguments;if(options===undefined||typeof options==='object'){return this.each(function(){if(!$.data(this,'plugin_'+pluginName)){$.data(this,'plugin_'+pluginName,new Plugin(this,options))}})}else if(typeof options==='string'&&options[0]!=='_'&&options!=='init'){return this.each(function(){var instance=$.data(this,'plugin_'+pluginName);if(instance instanceof Plugin&&typeof instance[options]==='function'){instance[options].apply(instance,Array.prototype.slice.call(args,1))}
if(options==='destroy'){$.data(this,'plugin_'+pluginName,null)}})}};$[pluginName]=function(options){var $window=$(window);return $window.stellar.apply($window,Array.prototype.slice.call(arguments,0))};$[pluginName].scrollProperty=scrollProperty;$[pluginName].positionProperty=positionProperty;window.Stellar=Plugin}(jQuery,this,document));!(function(root,factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof exports==='object'){factory(require('jquery'))}else{factory(root.jQuery)}})(this,function($){'use strict';var PLUGIN_NAME='vide';var DEFAULTS={volume:1,playbackRate:1,muted:!0,loop:!0,autoplay:!0,position:'50% 50%',posterType:'',resizing:!0,bgColor:'transparent',className:''};var NOT_IMPLEMENTED_MSG='Not implemented';function parseOptions(str){var obj={};var delimiterIndex;var option;var prop;var val;var arr;var len;var i;arr=str.replace(/\s*:\s*/g,':').replace(/\s*,\s*/g,',').split(',');for(i=0,len=arr.length;i<len;i++){option=arr[i];if(option.search(/^(http|https|ftp):\/\//)!==-1||option.search(':')===-1){break}
delimiterIndex=option.indexOf(':');prop=option.substring(0,delimiterIndex);val=option.substring(delimiterIndex+1);if(!val){val=undefined}
if(typeof val==='string'){val=val==='true'||(val==='false'?!1:val)}
if(typeof val==='string'){val=!isNaN(val)?+val:val}
obj[prop]=val}
if(prop==null&&val==null){return str}
return obj}
function parsePosition(str){str=''+str;var args=str.split(/\s+/);var x='50%';var y='50%';var len;var arg;var i;for(i=0,len=args.length;i<len;i++){arg=args[i];if(arg==='left'){x='0%'}else if(arg==='right'){x='100%'}else if(arg==='top'){y='0%'}else if(arg==='bottom'){y='100%'}else if(arg==='center'){if(i===0){x='50%'}else{y='50%'}}else{if(i===0){x=arg}else{y=arg}}}
return{x:x,y:y}}
function Vide(element,path,options){this.$element=$(element);if(typeof path==='string'){path=parseOptions(path)}
if(!options){options={}}else if(typeof options==='string'){options=parseOptions(options)}
this.settings=$.extend({},DEFAULTS,options);this.path=path;try{this.init()}catch(e){if(e.message!==NOT_IMPLEMENTED_MSG){throw e}}}
Vide.prototype.init=function(){var vide=this;var path=vide.path;var poster='';var sources='';var $element=vide.$element;var settings=vide.settings;var position=parsePosition(settings.position);var posterType=settings.posterType;var $video;var $wrapper;$wrapper=vide.$wrapper=$('<div>').addClass(settings.className).css({position:'absolute','z-index':-1,top:0,left:0,bottom:0,right:0,overflow:'hidden','-webkit-background-size':'cover','-moz-background-size':'cover','-o-background-size':'cover','background-size':'cover','background-color':settings.bgColor,'background-repeat':'no-repeat','background-position':position.x+' '+position.y});if(typeof path==='object'){if(path.poster){poster=path.poster}}
if(poster){$wrapper.css('background-image','url('+poster+')')}
if($element.css('position')==='static'){$element.css('position','relative')}
$element.prepend($wrapper);if(typeof path==='object'){if(path.mp4){sources+='<source src="'+path.mp4+'" type="video/mp4">'}
if(path.webm){sources+='<source src="'+path.webm+'" type="video/webm">'}
if(path.ogv){sources+='<source src="'+path.ogv+'" type="video/ogg">'}
$video=vide.$video=$('<video>'+sources+'</video>')}else{$video=vide.$video=$('<video>'+'<source src="'+path+'" type="video/mp4">'+'<source src="'+path+'" type="video/webm">'+'<source src="'+path+'" type="video/ogg">'+'</video>')}
try{$video.prop({autoplay:settings.autoplay,loop:settings.loop,volume:settings.volume,muted:settings.muted,defaultMuted:settings.muted,playbackRate:settings.playbackRate,defaultPlaybackRate:settings.playbackRate})}catch(e){throw new Error(NOT_IMPLEMENTED_MSG)}
$video.css({margin:'auto',position:'absolute','z-index':-1,top:position.y,left:position.x,'-webkit-transform':'translate(-'+position.x+', -'+position.y+')','-ms-transform':'translate(-'+position.x+', -'+position.y+')','-moz-transform':'translate(-'+position.x+', -'+position.y+')',transform:'translate(-'+position.x+', -'+position.y+')',visibility:'hidden',opacity:0}).one('canplaythrough.'+PLUGIN_NAME,function(){vide.resize()}).one('playing.'+PLUGIN_NAME,function(){$video.css({visibility:'visible',opacity:1});$wrapper.css('background-image','none')});$element.on('resize.'+PLUGIN_NAME,function(){if(settings.resizing){vide.resize()}});$wrapper.append($video)};Vide.prototype.getVideoObject=function(){return this.$video[0]};Vide.prototype.resize=function(){if(!this.$video){return}
var $wrapper=this.$wrapper;var $video=this.$video;var video=$video[0];var videoHeight=video.videoHeight;var videoWidth=video.videoWidth;var wrapperHeight=$wrapper.height();var wrapperWidth=$wrapper.width();if(wrapperWidth/videoWidth>wrapperHeight/videoHeight){$video.css({width:wrapperWidth+2,height:'auto'})}else{$video.css({width:'auto',height:wrapperHeight+2})}};Vide.prototype.destroy=function(){delete $[PLUGIN_NAME].lookup[this.index];this.$video&&this.$video.off(PLUGIN_NAME);this.$element.off(PLUGIN_NAME).removeData(PLUGIN_NAME);this.$wrapper.remove()};$[PLUGIN_NAME]={lookup:[]};$.fn[PLUGIN_NAME]=function(path,options){var instance;this.each(function(){instance=$.data(this,PLUGIN_NAME);instance&&instance.destroy();instance=new Vide(this,path,options);instance.index=$[PLUGIN_NAME].lookup.push(instance)-1;$.data(this,PLUGIN_NAME,instance)});return this};$(document).ready(function(){var $window=$(window);$window.on('resize.'+PLUGIN_NAME,function(){for(var len=$[PLUGIN_NAME].lookup.length,i=0,instance;i<len;i++){instance=$[PLUGIN_NAME].lookup[i];if(instance&&instance.settings.resizing){instance.resize()}}});$window.on('unload.'+PLUGIN_NAME,function(){return!1});$(document).find('[data-'+PLUGIN_NAME+'-bg]').each(function(i,element){var $element=$(element);var options=$element.data(PLUGIN_NAME+'-options');var path=$element.data(PLUGIN_NAME+'-bg');$element[PLUGIN_NAME](path,options)})})});/**
 * Timeago is a jQuery plugin that makes it easy to support automatically
 * updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago").
 *
 * @name timeago
 * @version 1.5.3
 * @requires jQuery v1.2.3+
 * @author Ryan McGeary
 * @license MIT License - http://www.opensource.org/licenses/mit-license.php
 *
 * For usage and examples, visit:
 * http://timeago.yarp.com/
 *
 * Copyright (c) 2008-2016, Ryan McGeary (ryan -[at]- mcgeary [*dot*] org)
 */
(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof module==='object'&&typeof module.exports==='object'){factory(require('jquery'))}else{factory(jQuery)}}(function($){$.timeago=function(timestamp){if(timestamp instanceof Date){return inWords(timestamp)}else if(typeof timestamp==="string"){return inWords($.timeago.parse(timestamp))}else if(typeof timestamp==="number"){return inWords(new Date(timestamp))}else{return inWords($.timeago.datetime(timestamp))}};var $t=$.timeago;$.extend($.timeago,{settings:{refreshMillis:60000,allowPast:!0,allowFuture:!1,localeTitle:!1,cutoff:0,autoDispose:!0,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:typeof(st_timeago_suffixAgo)!=='undefined'?st_timeago_suffixAgo:"ago",suffixFromNow:typeof(st_timeago_suffixFromNow)!=='undefined'?st_timeago_suffixFromNow:"from now",inPast:typeof(st_timeago_inPast)!=='undefined'?st_timeago_inPast:"any moment now",seconds:typeof(st_timeago_seconds)!=='undefined'?st_timeago_seconds:"less than a minute",minute:typeof(st_timeago_minute)!=='undefined'?st_timeago_minute:"about a minute",minutes:typeof(st_timeago_minutes)!=='undefined'?st_timeago_minutes:"#d minutes",hour:typeof(st_timeago_hour)!=='undefined'?st_timeago_hour:"about an hour",hours:typeof(st_timeago_hours)!=='undefined'?st_timeago_hours:"about #d hours",day:typeof(st_timeago_day)!=='undefined'?st_timeago_day:"a day",days:typeof(st_timeago_days)!=='undefined'?st_timeago_days:"#d days",month:typeof(st_timeago_month)!=='undefined'?st_timeago_month:"about a month",months:typeof(st_timeago_months)!=='undefined'?st_timeago_months:"#d months",year:typeof(st_timeago_year)!=='undefined'?st_timeago_year:"about a year",years:typeof(st_timeago_years)!=='undefined'?st_timeago_years:"#d years",wordSeparator:" ",numbers:[]}},inWords:function(distanceMillis){if(!this.settings.allowPast&&!this.settings.allowFuture){throw 'timeago allowPast and allowFuture settings can not both be set to false.'}
var $l=this.settings.strings;var prefix=$l.prefixAgo;var suffix=$l.suffixAgo;if(this.settings.allowFuture){if(distanceMillis<0){prefix=$l.prefixFromNow;suffix=$l.suffixFromNow}}
if(!this.settings.allowPast&&distanceMillis>=0){return this.settings.strings.inPast}
var seconds=Math.abs(distanceMillis)/1000;var minutes=seconds/60;var hours=minutes/60;var days=hours/24;var years=days/365;function substitute(stringOrFunction,number){var string=$.isFunction(stringOrFunction)?stringOrFunction(number,distanceMillis):stringOrFunction;var value=($l.numbers&&$l.numbers[number])||number;return string.replace(/#d/i,value)}
var words=seconds<45&&substitute($l.seconds,Math.round(seconds))||seconds<90&&substitute($l.minute,1)||minutes<45&&substitute($l.minutes,Math.round(minutes))||minutes<90&&substitute($l.hour,1)||hours<24&&substitute($l.hours,Math.round(hours))||hours<42&&substitute($l.day,1)||days<30&&substitute($l.days,Math.round(days))||days<45&&substitute($l.month,1)||days<365&&substitute($l.months,Math.round(days/30))||years<1.5&&substitute($l.year,1)||substitute($l.years,Math.round(years));var separator=$l.wordSeparator||"";if($l.wordSeparator===undefined){separator=" "}
return $.trim([prefix,words,suffix].join(separator))},parse:function(iso8601){var s=$.trim(iso8601);s=s.replace(/\.\d+/,"");s=s.replace(/-/,"/").replace(/-/,"/");s=s.replace(/T/," ").replace(/Z/," UTC");s=s.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2");s=s.replace(/([\+\-]\d\d)$/," $100");return new Date(s)},datetime:function(elem){var iso8601=$t.isTime(elem)?$(elem).attr("datetime"):$(elem).attr("title");return $t.parse(iso8601)},isTime:function(elem){return $(elem).get(0).tagName.toLowerCase()==="time"}});var functions={init:function(){var refresh_el=$.proxy(refresh,this);refresh_el();var $s=$t.settings;if($s.refreshMillis>0){this._timeagoInterval=setInterval(refresh_el,$s.refreshMillis)}},update:function(timestamp){var date=(timestamp instanceof Date)?timestamp:$t.parse(timestamp);$(this).data('timeago',{datetime:date});if($t.settings.localeTitle){$(this).attr("title",date.toLocaleString())}
refresh.apply(this)},updateFromDOM:function(){$(this).data('timeago',{datetime:$t.parse($t.isTime(this)?$(this).attr("datetime"):$(this).attr("title"))});refresh.apply(this)},dispose:function(){if(this._timeagoInterval){window.clearInterval(this._timeagoInterval);this._timeagoInterval=null}}};$.fn.timeago=function(action,options){var fn=action?functions[action]:functions.init;if(!fn){throw new Error("Unknown function name '"+action+"' for timeago")}
this.each(function(){fn.call(this,options)});return this};function refresh(){var $s=$t.settings;if($s.autoDispose&&!$.contains(document.documentElement,this)){$(this).timeago("dispose");return this}
var data=prepareData(this);if(!isNaN(data.datetime)){if($s.cutoff===0||Math.abs(distance(data.datetime))<$s.cutoff){$(this).text(inWords(data.datetime))}else{if($(this).attr('title').length>0){$(this).text($(this).attr('title'))}}}
return this}
function prepareData(element){element=$(element);if(!element.data("timeago")){element.data("timeago",{datetime:$t.datetime(element)});var text=$.trim(element.text());if($t.settings.localeTitle){element.attr("title",element.data('timeago').datetime.toLocaleString())}else if(text.length>0&&!($t.isTime(element)&&element.attr("title"))){element.attr("title",text)}}
return element.data("timeago")}
function inWords(date){return $t.inWords(distance(date))}
function distance(date){return(new Date().getTime()-date.getTime())}
document.createElement("abbr");document.createElement("time")}));(function(factory){"use strict";if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof exports==='object'&&typeof require==='function'){factory(require('jquery'))}else{factory(jQuery)}}(function($){'use strict';var utils=(function(){return{escapeRegExChars:function(value){return value.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(containerClass){var div=document.createElement('div');div.className=containerClass;div.style.display='none';return div}}}()),keys={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40};function Autocomplete(el,options){var noop=$.noop,that=this,defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:'auto',minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:Autocomplete.formatResult,delimiter:null,zIndex:9999,type:'GET',noCache:!1,onSearchStart:noop,onSearchComplete:noop,onSearchError:noop,preserveInput:!1,containerClass:'autocomplete-suggestions',tabDisabled:!1,dataType:'text',currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(suggestion,originalQuery,queryLowerCase){return suggestion.value.toLowerCase().indexOf(queryLowerCase)!==-1},paramName:'query',transformResult:function(response){return typeof response==='string'?$.parseJSON(response):response},showNoSuggestionNotice:!1,noSuggestionNotice:'No results',orientation:'bottom',forceFixPosition:!1};that.element=el;that.el=$(el);that.suggestions=[];that.badQueries=[];that.selectedIndex=-1;that.currentValue=that.element.value;that.intervalId=0;that.cachedResponse={};that.onChangeInterval=null;that.onChange=null;that.isLocal=!1;that.suggestionsContainer=null;that.noSuggestionsContainer=null;that.options=$.extend({},defaults,options);that.classes={selected:'autocomplete-selected',suggestion:'autocomplete-suggestion'};that.hint=null;that.hintValue='';that.selection=null;that.initialize();that.setOptions(options)}
Autocomplete.utils=utils;$.Autocomplete=Autocomplete;Autocomplete.formatResult=function(suggestion,currentValue){return suggestion.value};Autocomplete.prototype={killerFn:null,initialize:function(){var that=this,suggestionSelector='.'+that.classes.suggestion,selected=that.classes.selected,options=that.options,container;that.element.setAttribute('autocomplete','off');that.killerFn=function(e){if(!$(e.target).closest('.'+that.options.containerClass).length){that.killSuggestions();that.disableKillerFn()}};that.noSuggestionsContainer=$('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0);that.suggestionsContainer=Autocomplete.utils.createNode(options.containerClass);container=$(that.suggestionsContainer);container.appendTo(options.appendTo);if(options.width!=='auto'){container.css('width',options.width)}
container.on('mouseover.autocomplete',suggestionSelector,function(){that.activate($(this).data('index'))});container.on('mouseout.autocomplete',function(){that.selectedIndex=-1;container.children('.'+selected).removeClass(selected)});that.fixPositionCapture=function(){if(that.visible){that.fixPosition()}};$(window).on('resize.autocomplete',that.fixPositionCapture);that.el.on('keydown.autocomplete',function(e){that.onKeyPress(e)});that.el.on('keyup.autocomplete',function(e){that.onKeyUp(e)});that.el.on('blur.autocomplete',function(){that.onBlur()});that.el.on('focus.autocomplete',function(){that.onFocus()});that.el.on('change.autocomplete',function(e){that.onKeyUp(e)});that.el.on('input.autocomplete',function(e){that.onKeyUp(e)})},onFocus:function(){var that=this;that.fixPosition();if(that.el.val().length>=that.options.minChars){that.onValueChange()}},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var that=this;if(that.currentRequest){that.currentRequest.abort();that.currentRequest=null}},setOptions:function(suppliedOptions){var that=this,options=that.options;$.extend(options,suppliedOptions);that.isLocal=$.isArray(options.lookup);if(that.isLocal){options.lookup=that.verifySuggestionsFormat(options.lookup)}
options.orientation=that.validateOrientation(options.orientation,'bottom')},clearCache:function(){this.cachedResponse={};this.badQueries=[]},clear:function(){this.clearCache();this.currentValue='';this.suggestions=[]},disable:function(){var that=this;that.disabled=!0;clearInterval(that.onChangeInterval);that.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var that=this,$container=$(that.suggestionsContainer),containerParent=$container.parent().get(0);if(containerParent!==document.body&&!that.options.forceFixPosition){return}
var orientation=that.options.orientation,containerHeight=$container.outerHeight(),height=that.el.outerHeight(),offset=that.el.offset(),styles={'top':offset.top,'left':offset.left};if(orientation==='auto'){var viewPortHeight=$(window).height(),scrollTop=$(window).scrollTop(),topOverflow=-scrollTop+offset.top-containerHeight,bottomOverflow=scrollTop+viewPortHeight-(offset.top+height+containerHeight);orientation=(Math.max(topOverflow,bottomOverflow)===topOverflow)?'top':'bottom'}
if(orientation==='top'){styles.top+=-containerHeight}else{styles.top+=height}
if(containerParent!==document.body){var opacity=$container.css('opacity'),parentOffsetDiff;if(!that.visible){$container.css('opacity',0).show()}
parentOffsetDiff=$container.offsetParent().offset();styles.top-=parentOffsetDiff.top;styles.left-=parentOffsetDiff.left;if(!that.visible){$container.css('opacity',opacity).hide()}}
if(that.options.width==='auto'){styles.width=that.el.outerWidth()+'px'}
$container.css(styles)},enableKillerFn:function(){var that=this;$(document).on('click.autocomplete',that.killerFn)},disableKillerFn:function(){var that=this;$(document).off('click.autocomplete',that.killerFn)},killSuggestions:function(){var that=this;that.stopKillSuggestions();that.intervalId=window.setInterval(function(){if(that.visible){if(!that.options.preserveInput){that.el.val(that.currentValue)}
that.hide()}
that.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var that=this,valLength=that.el.val().length,selectionStart=that.element.selectionStart,range;if(typeof selectionStart==='number'){return selectionStart===valLength}
if(document.selection){range=document.selection.createRange();range.moveStart('character',-valLength);return valLength===range.text.length}
return!0},onKeyPress:function(e){var that=this;if(!that.disabled&&!that.visible&&e.which===keys.DOWN&&that.currentValue){that.suggest();return}
if(that.disabled||!that.visible){return}
switch(e.which){case keys.ESC:that.el.val(that.currentValue);that.hide();break;case keys.RIGHT:if(that.hint&&that.options.onHint&&that.isCursorAtEnd()){that.selectHint();break}
return;case keys.TAB:if(that.hint&&that.options.onHint){that.selectHint();return}
if(that.selectedIndex===-1){that.hide();return}
that.select(that.selectedIndex);if(that.options.tabDisabled===!1){return}
break;case keys.RETURN:if(that.selectedIndex===-1){that.hide();return}
that.select(that.selectedIndex);break;case keys.UP:that.moveUp();break;case keys.DOWN:that.moveDown();break;default:return}
e.stopImmediatePropagation();e.preventDefault()},onKeyUp:function(e){var that=this;if(that.disabled){return}
switch(e.which){case keys.UP:case keys.DOWN:return}
clearInterval(that.onChangeInterval);if(that.currentValue!==that.el.val()){that.findBestHint();if(that.options.deferRequestBy>0){that.onChangeInterval=setInterval(function(){that.onValueChange()},that.options.deferRequestBy)}else{that.onValueChange()}}},onValueChange:function(){var that=this,options=that.options,value=that.el.val(),query=that.getQuery(value);if(that.selection&&that.currentValue!==query){that.selection=null;(options.onInvalidateSelection||$.noop).call(that.element)}
clearInterval(that.onChangeInterval);that.currentValue=value;that.selectedIndex=-1;if(options.triggerSelectOnValidInput&&that.isExactMatch(query)){that.select(0);return}
if(query.length<options.minChars){that.hide()}else{that.getSuggestions(query)}},isExactMatch:function(query){var suggestions=this.suggestions;return(suggestions.length===1&&suggestions[0].value.toLowerCase()===query.toLowerCase())},getQuery:function(value){var delimiter=this.options.delimiter,parts;if(!delimiter){return value}
parts=value.split(delimiter);return $.trim(parts[parts.length-1])},getSuggestionsLocal:function(query){var that=this,options=that.options,queryLowerCase=query.toLowerCase(),filter=options.lookupFilter,limit=parseInt(options.lookupLimit,10),data;data={suggestions:$.grep(options.lookup,function(suggestion){return filter(suggestion,query,queryLowerCase)})};if(limit&&data.suggestions.length>limit){data.suggestions=data.suggestions.slice(0,limit)}
return data},getSuggestions:function(q){var response,that=this,options=that.options,serviceUrl=options.serviceUrl,params,cacheKey,ajaxSettings;options.params[options.paramName]=q;params=options.ignoreParams?null:options.params;if(options.onSearchStart.call(that.element,options.params)===!1){return}
if($.isFunction(options.lookup)){options.lookup(q,function(data){that.suggestions=data.suggestions;that.suggest();options.onSearchComplete.call(that.element,q,data.suggestions)});return}
if(that.isLocal){response=that.getSuggestionsLocal(q)}else{if($.isFunction(serviceUrl)){serviceUrl=serviceUrl.call(that.element,q)}
cacheKey=serviceUrl+'?'+$.param(params||{});response=that.cachedResponse[cacheKey]}
if(response&&$.isArray(response.suggestions)){that.suggestions=response.suggestions;that.suggest();options.onSearchComplete.call(that.element,q,response.suggestions)}else if(!that.isBadQuery(q)){that.abortAjax();ajaxSettings={url:serviceUrl,data:params,type:options.type,dataType:options.dataType};$.extend(ajaxSettings,options.ajaxSettings);that.currentRequest=$.ajax(ajaxSettings).done(function(data){var result;that.currentRequest=null;result=options.transformResult(data,q);that.processResponse(result,q,cacheKey);options.onSearchComplete.call(that.element,q,result.suggestions)}).fail(function(jqXHR,textStatus,errorThrown){options.onSearchError.call(that.element,q,jqXHR,textStatus,errorThrown)})}else{options.onSearchComplete.call(that.element,q,[])}},isBadQuery:function(q){if(!this.options.preventBadQueries){return!1}
var badQueries=this.badQueries,i=badQueries.length;while(i--){if(q.indexOf(badQueries[i])===0){return!0}}
return!1},hide:function(){var that=this,container=$(that.suggestionsContainer);if($.isFunction(that.options.onHide)&&that.visible){that.options.onHide.call(that.element,container)}
that.visible=!1;that.selectedIndex=-1;clearInterval(that.onChangeInterval);$(that.suggestionsContainer).hide();that.signalHint(null)},suggest:function(){if(!this.suggestions.length){if(this.options.showNoSuggestionNotice){this.noSuggestions()}else{this.hide()}
return}
var that=this,options=that.options,groupBy=options.groupBy,formatResult=options.formatResult,value=that.getQuery(that.currentValue),className=that.classes.suggestion,classSelected=that.classes.selected,container=$(that.suggestionsContainer),noSuggestionsContainer=$(that.noSuggestionsContainer),beforeRender=options.beforeRender,html='',category,formatGroup=function(suggestion,index){var currentCategory=suggestion.data[groupBy];if(category===currentCategory){return''}
category=currentCategory;return'<div class="autocomplete-group"><strong>'+category+'</strong></div>'};if(options.triggerSelectOnValidInput&&that.isExactMatch(value)){that.select(0);return}
$.each(that.suggestions,function(i,suggestion){if(groupBy){html+=formatGroup(suggestion,value,i)}
html+='<div class="'+className+'" data-index="'+i+'">'+formatResult(suggestion,value,i)+'</div>'});this.adjustContainerWidth();noSuggestionsContainer.detach();container.html(html);if($.isFunction(beforeRender)){beforeRender.call(that.element,container,that.suggestions)}
that.fixPosition();container.show();if(options.autoSelectFirst){that.selectedIndex=0;container.scrollTop(0);container.children('.'+className).first().addClass(classSelected)}
that.visible=!0;that.findBestHint()},noSuggestions:function(){var that=this,container=$(that.suggestionsContainer),noSuggestionsContainer=$(that.noSuggestionsContainer);this.adjustContainerWidth();noSuggestionsContainer.detach();container.empty();container.append(noSuggestionsContainer);that.fixPosition();container.show();that.visible=!0},adjustContainerWidth:function(){return!1},findBestHint:function(){var that=this,value=that.el.val().toLowerCase(),bestMatch=null;if(!value){return}
$.each(that.suggestions,function(i,suggestion){var foundMatch=suggestion.value.toLowerCase().indexOf(value)===0;if(foundMatch){bestMatch=suggestion}
return!foundMatch});that.signalHint(bestMatch)},signalHint:function(suggestion){var hintValue='',that=this;if(suggestion){hintValue=that.currentValue+suggestion.value.substr(that.currentValue.length)}
if(that.hintValue!==hintValue){that.hintValue=hintValue;that.hint=suggestion;(this.options.onHint||$.noop)(hintValue)}},verifySuggestionsFormat:function(suggestions){if(suggestions.length&&typeof suggestions[0]==='string'){return $.map(suggestions,function(value){return{value:value,data:null}})}
return suggestions},validateOrientation:function(orientation,fallback){orientation=$.trim(orientation||'').toLowerCase();if($.inArray(orientation,['auto','bottom','top'])===-1){orientation=fallback}
return orientation},processResponse:function(result,originalQuery,cacheKey){var that=this,options=that.options;result.suggestions=that.verifySuggestionsFormat(result.suggestions);if(!options.noCache){that.cachedResponse[cacheKey]=result;if(options.preventBadQueries&&!result.suggestions.length){that.badQueries.push(originalQuery)}}
if(originalQuery!==that.getQuery(that.currentValue)){return}
that.suggestions=result.suggestions;that.suggest()},activate:function(index){var that=this,activeItem,selected=that.classes.selected,container=$(that.suggestionsContainer),children=container.find('.'+that.classes.suggestion);container.find('.'+selected).removeClass(selected);that.selectedIndex=index;if(that.selectedIndex!==-1&&children.length>that.selectedIndex){activeItem=children.get(that.selectedIndex);$(activeItem).addClass(selected);return activeItem}
return null},selectHint:function(){var that=this,i=$.inArray(that.hint,that.suggestions);that.select(i)},select:function(i){var that=this;that.hide();that.onSelect(i)},moveUp:function(){var that=this;if(that.selectedIndex===-1){return}
if(that.selectedIndex===0){$(that.suggestionsContainer).children().first().removeClass(that.classes.selected);that.selectedIndex=-1;that.el.val(that.currentValue);that.findBestHint();return}
that.adjustScroll(that.selectedIndex-1)},moveDown:function(){var that=this;if(that.selectedIndex===(that.suggestions.length-1)){return}
that.adjustScroll(that.selectedIndex+1)},adjustScroll:function(index){var that=this,activeItem=that.activate(index);if(!activeItem){return}
var offsetTop,upperBound,lowerBound,heightDelta=$(activeItem).outerHeight();offsetTop=activeItem.offsetTop;upperBound=$(that.suggestionsContainer).scrollTop();lowerBound=upperBound+that.options.maxHeight-heightDelta;if(offsetTop<upperBound){$(that.suggestionsContainer).scrollTop(offsetTop)}else if(offsetTop>lowerBound){$(that.suggestionsContainer).scrollTop(offsetTop-that.options.maxHeight+heightDelta)}
if(!that.options.preserveInput){that.el.val(that.getValue(that.suggestions[index].value))}
that.signalHint(null)},onSelect:function(index){var that=this,onSelectCallback=that.options.onSelect,suggestion=that.suggestions[index];that.currentValue=that.getValue(suggestion.value);if(that.currentValue!==that.el.val()&&!that.options.preserveInput){that.el.val(that.currentValue)}
that.signalHint(null);that.suggestions=[];that.selection=suggestion;if($.isFunction(onSelectCallback)){onSelectCallback.call(that.element,suggestion)}},getValue:function(value){var that=this,delimiter=that.options.delimiter,currentValue,parts;if(!delimiter){return value}
currentValue=that.currentValue;parts=currentValue.split(delimiter);if(parts.length===1){return value}
return currentValue.substr(0,currentValue.length-parts[parts.length-1].length)+value},dispose:function(){var that=this;that.el.off('.autocomplete').removeData('autocomplete');that.disableKillerFn();$(window).off('resize.autocomplete',that.fixPositionCapture);$(that.suggestionsContainer).remove()}};$.fn.autocomplete=$.fn.devbridgeAutocomplete=function(options,args){var dataKey='autocomplete';if(!arguments.length){return this.first().data(dataKey)}
return this.each(function(){var inputElement=$(this),instance=inputElement.data(dataKey);if(typeof options==='string'){if(instance&&typeof instance[options]==='function'){instance[options](args)}}else{if(instance&&instance.dispose){instance.dispose()}
instance=new Autocomplete(this,options);inputElement.data(dataKey,instance)}})}}));/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* 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    ST-themes <hellolee@gmail.com>
*  @copyright 2007-2017 ST-themes
*  @license   Use, by you or one client for one Prestashop instance.
*/
if(typeof(quick_search_as_size)==='undefined')
var quick_search_as_size=6;if(typeof(quick_search_as_min)==='undefined')
var quick_search_as_min=3;if(typeof(quick_search_as)==='undefined')
var quick_search_as=!0;$(document).ready(function(){if(quick_search_as)
$('.search_widget').each(function(){var search_url=$(this).data('search-controller-url');var search_results=$(this).find('.search_results');var search_more_products=$(this).find('.search_more_products');var search_btn=$(this).find('.search_widget_btn');$(this).find('.search_widget_text').devbridgeAutocomplete({noCache:!0,paramName:'s',params:{resultsPerPage:quick_search_as_size,is_ajax_search:1},dataType:'json',minChars:3,appendTo:search_results,triggerSelectOnValidInput:!1,showNoSuggestionNotice:!0,noSuggestionNotice:$('.search_no_products').html(),serviceUrl:search_url,onSearchStart:function(){search_btn.addClass('active')},onSearchComplete:function(){search_btn.removeClass('active')},transformResult:function(response){var suggestions=$.map(response.products,function(dataItem){return{value:dataItem.name,data:dataItem}});return{suggestions:suggestions}},beforeRender:function(container,suggestions){if(suggestions.length==quick_search_as_size)
$(container).append(search_more_products.clone())},formatResult:function(suggestion,currentValue){var result='<a href="'+suggestion.data.link+'" title="'+suggestion.data.name+'" rel="nofollow" class="search_product_row flex_container">';if(typeof(suggestion.data.cover.bySize.small_default.url)!='undefined')
result+='<img class="search_product_img search_result_item" alt="'+suggestion.data.name+'" src="'+suggestion.data.cover.bySize.small_default.url+'" width="'+suggestion.data.cover.bySize.small_default.width+'" height="'+suggestion.data.cover.bySize.small_default.height+'"/>';result+='<div class="search_product_name flex_child search_result_item">'+suggestion.data.name+'</div>';result+='<div class="search_product_price search_result_item price">'+(suggestion.data.has_discount?suggestion.data.price:suggestion.data.regular_price)+'</div>';result+='</a>';return result}})});$(document).on('click','.search_more_products',function(e){$(this).closest('.search_widget').find('form').submit()})});/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* 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    ST-themes <hellolee@gmail.com>
*  @copyright 2007-2017 ST-themes
*  @license   Use, by you or one client for one Prestashop instance.
*/
var st_owl_progressBar=[],st_owl_bar=[],st_owl_elem=[],st_owl_isPause=[],st_owl_tick=[],st_owl_percentTime=[];function st_owl_progressBar_init(elem){var id_st=elem.attr('id').replace(/\D*/g,'');id_st=parseInt(id_st);st_owl_elem[id_st]=elem;st_owl_buildProgressBar(id_st);st_owl_start(id_st)};function st_owl_buildProgressBar(id_st){st_owl_progressBar[id_st]=$("<div>",{class:"owl_progressBar"});st_owl_bar[id_st]=$("<div>",{class:"owl_bar"});if(stowlcarousel_array[id_st].progress_bar==1)
st_owl_progressBar[id_st].append(st_owl_bar[id_st]).prependTo(st_owl_elem[id_st]);else st_owl_progressBar[id_st].append(st_owl_bar[id_st]).appendTo(st_owl_elem[id_st])};function st_owl_start(id_st){st_owl_percentTime[id_st]=0;st_owl_isPause[id_st]=!1;st_owl_tick[id_st]=setInterval(function(){if(st_owl_isPause[id_st]===!1){st_owl_percentTime[id_st]+=1000/stowlcarousel_array[id_st].bar_time;st_owl_bar[id_st].css({width:st_owl_percentTime[id_st]+"%"});if(st_owl_percentTime[id_st]>=100){st_owl_elem[id_st].trigger('owl.next')}}},10)};function st_owl_pauseOnDragging(elem){var id_st=elem.attr('id').replace(/\D*/g,'');st_owl_isPause[id_st]=!0};function st_owl_moved(elem){var id_st=elem.attr('id').replace(/\D*/g,'');clearTimeout(st_owl_tick[id_st]);st_owl_start(id_st)};jQuery(function($){if(typeof(stowlcarousel_array)!=='undefined'&&stowlcarousel_array.length){$.each(stowlcarousel_array,function(key,value){if(value){if(typeof(value.progress_bar)!=='undefined'&&value.progress_bar){value.afterInit=st_owl_progressBar_init;value.afterMove=st_owl_moved;value.startDragging=st_owl_pauseOnDragging}
$("#st_owl_carousel-"+key).owlCarousel(value)}})}});/*! ========================================================================== 
 * pongstagr.am v3.0.4 jQuery Plugin | http://pongstr.github.io/pongstagr.am/ 
 * =========================================================================== 
 * Copyright (c) 2014 Pongstr Ordillo. Licensed under MIT License. 
 * =========================================================================== */
+function($){var Pongstgrm=function(element,options){this.element=element;this.options=options;return this}
Pongstgrm.defaults={accessId:null,accessToken:null,ins_user_name:null,ins_user_id:null,ins_hash_tag:null,count:8,likes:!0,comments:!0,username:!1,timestamp:!1,time_format:0,caption:!1,effects:0,show:"recent",click_action:0,show_media_type:1,id_st_ins:'',grid:0,image_size:0,ins_items_fw:8,ins_items_xxl:7,ins_items_xl:6,ins_items_lg:5,ins_items_md:4,ins_items_sm:3,ins_items_xs:2,isfooter:0,show_counts:1,ins_follow:1,ins_show_bio:1,ins_show_website:1,ins_self_liked:0,ins_show_avatar:1,preload:'spinner',button:'btn btn-success pull-right',buttontext:'Load more',column:'col-12 col-sm-3 col-md-3 col-lg-3',likeicon:'<i class="fto-heart-empty"></i> ',muteicon:'glyphicon glyphicon-volume-off',videoicon:'<i class="fto-play-circled2"></i> ',imageicon:'<i class="fto-picture-2"></i> ',commenticon:'<i class="fto-comment-empty"></i> ',externalicon:'icon-external-link ',viewlargericon:'<i class="fto-resize-full"></i> ',picture_size:64,profile_bg_img:null,profile_bg_color:'#d9534f'};Pongstgrm.prototype.template={profile:function(options){var _profile='<div class="ins_profile_img">';_profile+='     <div class="ins_profile_img_left"><a href="https://instagram.com/'+options.username+'/" rel="nofollow" target="_blank" title="'+(options.full_name?options.username:options.username)+'" class="profile_picture"><img src="'+options.profile_picture+'" width="'+options.dflt.picture_size+'"  height="'+options.dflt.picture_size+'" alt="'+(options.full_name?options.username:options.username)+'"></a></div>';_profile+='     <div class="ins_profile_img_right clearfix">';options.dflt.ins_follow?_profile+='     <a href="https://instagram.com/'+options.username+'/" rel="nofollow" target="_blank" class="ins_follow_btn ins_btn fr" title="'+(options.full_name?options.username:options.username)+'">'+ins_follow+'</a>':'';_profile+='     <a href="https://instagram.com/'+options.username+'/" rel="nofollow" target="_blank" class="ins_profile_name" title="'+(options.full_name?options.username:options.username)+'">'+(options.full_name?options.full_name:options.username)+'</a>';options.dflt.ins_show_bio&&options.bio?_profile+='     <div class="ins_bio">'+Pongstgrm.prototype.parseIns(options.bio)+'</div>':'';options.dflt.ins_show_website&&options.website?_profile+='     <div class="ins_website"><a href="'+options.website+'" title="'+options.website+'" rel="nofollow">'+options.website+'</a></div>':'';_profile+='     </div>';_profile+=' </div>';if(options.dflt.show_counts){_profile+=' <div class="ins_profile_counts">';_profile+='     <div class="ins_pro_c"><span class="ins_pro_c_v">'+options.media+'</span><span class="ins_pro_c_k">'+ins_posts+'</span></div>';_profile+='     <div class="ins_pro_c"><span class="ins_pro_c_v">'+options.followed_by+'</span><span class="ins_pro_c_k">'+ins_followers+'</span></div>';_profile+='     <div class="ins_pro_c"><span class="ins_pro_c_v">'+options.follows+'</span><span class="ins_pro_c_k">'+ins_following+'</span></span>';_profile+=' </div>'}
$(options.target).append(_profile);return},thumb:function(options,iteration){var _thumbnail=string_likes=string_comments=string_username=string_timestamp=string_caption=image_url='';_thumbnail+=options.dflt.grid?'<li class="ins_image_wrap col-xxl-'+(''+(12/options.dflt.ins_items_xxl)).replace('.','-')+' col-xl-'+(''+(12/options.dflt.ins_items_xl)).replace('.','-')+' col-lg-'+(''+(12/options.dflt.ins_items_lg)).replace('.','-')+' col-md-'+(''+(12/options.dflt.ins_items_md)).replace('.','-')+' col-sm-'+(''+(12/options.dflt.ins_items_sm)).replace('.','-')+' col-'+(''+(12/options.dflt.ins_items_xs)).replace('.','-')+(iteration%options.dflt.ins_items_lg==1?' first-item-of-line ':'')+(iteration%options.dflt.ins_items_md==1?' first-item-of-tablet-line ':'')+(iteration%options.dflt.ins_items_sm==1?' first-item-of-mobile-line ':'')+(iteration%options.dflt.ins_items_xs==1?' first-item-of-portrait-line ':'')+(iteration%options.dflt.ins_items_xxl==1?' first-item-of-large-line ':'')+(iteration%options.dflt.ins_items_xl==1?' first-item-of-desktop-line ':'')+'"><div class="ins_image_wrap_inner">':'<div class="ins_image_wrap swiper-slide"><div class="ins_image_wrap_inner">';_thumbnail+='<div class="ins_image_box '+(options.dflt.grid?' ins_grid_outer ':' ins_slider_outer ')+'">';_thumbnail+='<a href="'+(options.dflt.click_action?options.data.standard_resolution:options.data.link)+'" '+(options.dflt.click_action?' data-fancybox-group="ins_fancybox_view_'+options.dflt.id_st_ins+'" ':'')+' class="'+(options.dflt.click_action?' ins_fancybox ':'')+(options.dflt.effects==1?' scaling ':'')+(options.dflt.effects==2?' scaling_down ':'')+' ins_image_link " title="'+(typeof(stinstagram_view_in_ins)!=='undefined'&&!options.dflt.click_action?stinstagram_view_in_ins:'')+(typeof(stinstagram_view_larger)!=='undefined'&&options.dflt.click_action?stinstagram_view_larger:'')+'" ';if(options.dflt.click_action)
_thumbnail+=' data-ins_link="'+options.data.link+'" data-ins_caption="'+options.data.caption+'" data-ins_username="'+options.data.username+'" data-ins_full_name="'+(options.data.full_name?options.data.full_name:options.data.username)+'" data-ins_profile_picture="'+(options.data.profile_picture?options.data.profile_picture:'')+'" data-ins_created_time="'+(options.dflt.time_format?options.data.timestamp.toDateString():$.timeago(options.data.timestamp))+'" data-ins_video="'+options.data.video+'" data-ins_video_width="'+options.data.video_width+'" data-ins_video_height="'+options.data.video_height+'" data-id_st_ins="'+options.dflt.id_st_ins+'" ';_thumbnail+=' rel="nofollow" target="_blank">';options.dflt.click_action?_thumbnail+='<span class="ins_view_larger">'+options.dflt.viewlargericon+'</span>':'';options.data.type==='video'&&options.dflt.show_media_type?_thumbnail+='     <span class="ins_imagetype ins_videoicon">'+options.dflt.videoicon+'</span>':'';options.data.type==='image'&&options.dflt.show_media_type==2?_thumbnail+='     <span class="ins_imagetype">'+options.dflt.imageicon+'</span>':'';options.dflt.likes!=!1?string_likes+='       <span class="ins_image_info_item ins_image_info_likes '+(options.dflt.likes==2?' show_default ':'')+' ">'+options.dflt.likeicon+'&nbsp;'+options.data.likes_count+'</span>':'';options.dflt.comments!=!1?string_comments+='       <span class="ins_image_info_item ins_image_info_comments '+(options.dflt.comments==2?' show_default ':'')+' ">'+options.dflt.commenticon+'&nbsp;'+options.data.comments_count+'</span>':'';options.dflt.username!=!1?string_username+='     <div class="ins_image_info_item ins_image_info_username'+(options.dflt.username==2?' show_default ':'')+'">'+(options.data.full_name?options.data.full_name:options.data.username)+'</div>':'';options.dflt.timestamp!=!1?string_timestamp+='     <div class="ins_image_info_item ins_image_info_timestamp'+(options.dflt.timestamp==2?' show_default ':'')+'">'+(options.dflt.time_format?options.data.timestamp.toDateString():$.timeago(options.data.timestamp))+'</div>':'';if(options.dflt.caption!=!1&&options.data.caption){string_caption+='     <div class="ins_image_info_item ins_image_info_desc '+(options.dflt.caption==2||options.dflt.caption==5?' show_default ':'')+''+(options.dflt.caption==4||options.dflt.caption==5?'hidden-xs':'')+'">';var t_cp=options.data.caption;if(options.dflt.ins_lenght_of_caption&&t_cp&&t_cp.length>200){var t_cp_fh=t_cp.substr(0,200).match(/#(\w+)$/);var t_cp_sh=t_cp.substr(200).match(/^(?!#)(\w+?)\b/);t_cp=t_cp.substr(0,(t_cp_fh&&t_cp_sh?t_cp_fh.index:200))+'...'}
string_caption+=options.dflt.caption==3?Pongstgrm.prototype.parseIns(t_cp):t_cp;string_caption+='</div>'}
_thumbnail+='   <div class="ins_image_info st_image_layered_description flex_middle flex_center"><div class="st_image_layered_description_inner clearfix">';options.dflt.likes==1||options.dflt.likes==2||options.dflt.comments==1||options.dflt.comments==2?_thumbnail+='     <div class="ins_image_info_basic">':'';options.dflt.likes==1||options.dflt.likes==2?_thumbnail+=string_likes:'';options.dflt.comments==1||options.dflt.comments==2?_thumbnail+=string_comments:'';options.dflt.likes==1||options.dflt.likes==2||options.dflt.comments==1||options.dflt.comments==2?_thumbnail+='     </div>':'';options.dflt.username==1||options.dflt.username==2?_thumbnail+=string_username:'';options.dflt.timestamp==1||options.dflt.timestamp==2?_thumbnail+=string_timestamp:'';options.dflt.caption==1||options.dflt.caption==2||options.dflt.caption==4||options.dflt.caption==5?_thumbnail+=string_caption:'';_thumbnail+='   </div></div>'
image_url=options.dflt.image_size==2?options.data.standard_resolution:(options.dflt.image_size==1?options.data.thumbnail:options.data.low_resolution);_thumbnail+='   <div class="ins_image_layer '+(options.dflt.force_square?' ins_force_square ':'')+'" style="'+(options.dflt.force_square?' background-image:url('+image_url+'); ':'')+'">';_thumbnail+='        <img id="'+options.dflt.show+'-'+options.data.id+'-thmb" class="ins_image " data-src="'+image_url+'" src="'+(options.dflt.force_square?prestashop.urls.base_url+'modules/stinstagram/views/img/resolution_'+options.dflt.image_size+'.png':image_url)+'" alt="'+options.data.caption.replace(/"/g,'&quot;')+'">';_thumbnail+='   </div>';_thumbnail+='</a></div>';(options.dflt.username==3&&string_username)||(options.dflt.caption==3&&string_caption)||(options.dflt.likes==3&&string_likes)||(options.dflt.comments==3&&string_comments)||(options.dflt.string_timestamp==3&&string_timestamp)?_thumbnail+='<div class="ins_image_info_block">':'';options.dflt.username==3?_thumbnail+=string_username:'';options.dflt.caption==3?_thumbnail+=string_caption:'';options.dflt.likes==3||options.dflt.comments==3||options.dflt.string_timestamp==3?_thumbnail+='     <div class="ins_image_info_basic">':'';options.dflt.timestamp==3?_thumbnail+=string_timestamp:'';options.dflt.likes==3?_thumbnail+=string_likes:'';options.dflt.comments==3?_thumbnail+=string_comments:'';options.dflt.likes==3||options.dflt.comments==3||options.dflt.string_timestamp==3?_thumbnail+='     </div>':'';(options.dflt.username==3&&string_username)||(options.dflt.caption==3&&string_caption)||(options.dflt.likes==3&&string_likes)||(options.dflt.comments==3&&string_comments)||(options.dflt.string_timestamp==3&&string_timestamp)?_thumbnail+='</div>':'';options.dflt.grid?_thumbnail+='</div></li>':'</div></div>';$(options.target).append(_thumbnail);return},simple:function(options){var _thumbnail='';_thumbnail+='<li><a href="'+(options.dflt.click_action?options.data.standard_resolution:options.data.link)+'" '+(options.dflt.click_action?' data-fancybox-group="ins_fancybox_view_'+options.dflt.id_st_ins+'" ':'')+' class="'+(options.dflt.click_action?' ins_fancybox ':'')+(options.dflt.effects==1?' scaling ':'')+(options.dflt.effects==2?' scaling_down ':'')+' ins_image_link " title="'+(typeof(stinstagram_view_in_ins)!=='undefined'&&!options.dflt.click_action?stinstagram_view_in_ins:'')+(typeof(stinstagram_view_larger)!=='undefined'&&options.dflt.click_action?stinstagram_view_larger:'')+'" ';if(options.dflt.click_action)
_thumbnail+=' data-ins_link="'+options.data.link+'" data-ins_caption="'+options.data.caption+'" data-ins_username="'+options.data.username+'" data-ins_full_name="'+(options.data.full_name?options.data.full_name:options.data.username)+'" data-ins_profile_picture="'+options.data.profile_picture+'" data-ins_created_time="'+(options.dflt.time_format?options.data.timestamp.toDateString():$.timeago(options.data.timestamp))+'" data-ins_video="'+options.data.video+'" data-ins_video_width="'+options.data.video_width+'" data-ins_video_height="'+options.data.video_height+'" data-id_st_ins="'+options.dflt.id_st_ins+'" ';_thumbnail+=' rel="nofollow" target="_blank">';_thumbnail+='<img src="'+options.data.thumbnail+'" class="ins_image" alt="'+options.data.caption.replace(/"/g,'&quot;')+'">';_thumbnail+='</a></li>';$(options.target).append(_thumbnail);return},bsmodal:function(options){return}};Pongstgrm.prototype.preloadMedia=function(option){var $image=$(option.imgid),start=0;$image.one('load',function(){++start===$image.length&&$(option.loadr).fadeOut()
$(this).addClass('fade')}).each(function(){this.complete&&$(this).load()})
return};Pongstgrm.prototype.videoBtn=function(option,callback){$(option.trigger).on('click',function(e){e.preventDefault();callback();$(option.child,this).toggleClass(option.classes)});return};Pongstgrm.prototype.parseIns=function(string){var patterns={link:/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,user:/(^|\s)@(\w+)/g,hash:/(^|\s)#(\w+)/g};return string.replace(patterns.link,'<a href="$1" target="_blank" rel="nofollow" title="$1">$1</a>').replace(patterns.user,'$1<a href="https://www.instagram.com/$2" target="_blank" rel="nofollow" title="$2">@$2</a>').replace(patterns.hash,'$1<a href="https://www.instagram.com/explore/tags/$2" target="_blank" rel="nofollow" title="$2">#$2</a>')};Pongstgrm.prototype.stream=function(){var element=this.element,options=this.options,apiurl='https://api.instagram.com/v1/users/',rcount='?count='+options.count+'&access_token='+options.accessToken;function paginate(option){return};function media(data,option){var iteration=parseInt($(element).data('iteration'));$(element).data('iteration',iteration+data.length);$.each(data,function(a,b){var newtime=new Date(b.created_time*1000),defaults={dflt:option,target:element,data:{id:b.id,type:b.type,video:b.videos?b.videos.standard_resolution.url:'',video_width:b.videos?b.videos.standard_resolution.width:'',video_height:b.videos?b.videos.standard_resolution.height:'',image:b.images.standard_resolution.url,caption:(b.caption?b.caption.text:''),username:b.user.username,full_name:b.user.full_name,timestamp:newtime,thumbnail:b.images.thumbnail.url,standard_resolution:b.images.standard_resolution.url,low_resolution:b.images.low_resolution.url,likes_count:b.likes.count,comments_count:b.comments.count,comments_data:b.comments.data,profile_picture:b.user.profile_picture,link:b.link}};if(option.isfooter&&option.grid)
Pongstgrm.prototype.template.simple(defaults);else Pongstgrm.prototype.template.thumb(defaults,a+iteration)});if(!option.grid)
new Swiper($(element).parent(),option.swiper);$('.ins_fancybox').fancybox({'hideOnContentClick':!0,'openEffect':'fade','nextEffect':'fade','prevEffect':'fade','closeEffect':'fade',helpers:{title:{type:'inside'},overlay:{locked:!1}},tpl:{next:'<a title="'+(typeof(ins_next)!=='undefined'?ins_next:'Next')+'" class="ins_fancy_next ins_fancy_nav" href="javascript:;"><i class="fto-right-open-3"></i></a>',prev:'<a title="'+(typeof(ins_previous)!=='undefined'?ins_previous:'Previous')+'" class="ins_fancy_prev ins_fancy_nav" href="javascript:;"><i class="fto-left-open-3"></i></a>'},beforeLoad:function(){this.type="image";this.autoSize=!0;this.autoResize=!0;var element=$(this.element),ins_image=$(this.element).attr('href'),ins_link=element.data('ins_link'),ins_caption=element.data('ins_caption'),ins_username=element.data('ins_username'),ins_full_name=element.data('ins_full_name'),ins_profile_picture=element.data('ins_profile_picture'),ins_created_time=element.data('ins_created_time'),ins_video=element.data('ins_video');ins_video_width=element.data('ins_video_width');ins_video_height=element.data('ins_video_height');id_st_ins=element.data('id_st_ins');var fancy_title='<div class="ins_fancy_box ins_fancy_box_'+id_st_ins+'"><div class="ins_fancy_profile_img '+(options.ins_show_avatar?' ins_show_avatar ':'')+(options.ins_show_avatar==2?' ins_round_avatar ':'')+'">';if(ins_profile_picture)
fancy_title+='<div class="ins_fancy_profile_img_left"><a href="https://instagram.com/'+ins_username+'/" rel="nofollow" target="_blank" title="'+ins_full_name+'" class="profile_picture"><img src="'+ins_profile_picture+'" width="'+options.picture_size+'"  height="'+options.picture_size+'" alt="'+ins_full_name+'"></a></div>';fancy_title+='<div class="ins_fancy_profile_img_right"><a href="https://instagram.com/'+ins_username+'/" rel="nofollow" target="_blank" tiele="'+ins_full_name+'">'+ins_full_name+'</a></div>';fancy_title+='<div class="ins_fancy_info"><span class="ins_fancy_info_item">'+(this.index+1)+' / '+this.group.length+'</span><span class="ins_fancy_info_item">'+ins_created_time+'</span><a href="'+ins_link+'" title="'+(typeof(stinstagram_view_in_ins)!=='undefined'?stinstagram_view_in_ins:'')+'" rel="nofollow" class="ins_fancy_info_item">'+(typeof(stinstagram_view_in_ins)!=='undefined'?stinstagram_view_in_ins:'')+'</a></div>';fancy_title+='</div>';ins_caption!=''?fancy_title+='<div class="ins_fancy_caption">'+Pongstgrm.prototype.parseIns(ins_caption)+'</div>':'';fancy_title+='</div>';this.title=fancy_title;if(ins_video&&!!document.createElement('video').canPlayType){this.type="html";this.autoSize=!1;this.autoResize=!1;this.content="<video id='ins_video_player' src='"+ins_video+"'  poster='"+ins_image+"' width='"+ins_video_width+"' height='"+ins_video_height+"'  controls='controls' preload='none' ></video>";var window_width=$(window).width();this.width=parseInt(ins_video_width>window_width?window_width:ins_video_width);this.height=parseInt(ins_video_width>window_width?parseInt(ins_video_width/ins_video_height*window_width):ins_video_height)}},afterShow:function(){var video=$("#ins_video_player");if(video.length){video[0].load();video[0].play()}},beforeClose:function(){var video=$("#ins_video_player");if(video.length){video[0].pause()}}})};function profile(data,option){Pongstgrm.prototype.template.profile({target:element,bio:data.bio,media:data.counts.media,website:data.website,follows:data.counts.follows,username:data.username,full_name:data.full_name,followed_by:data.counts.followed_by,profile_picture:data.profile_picture,dflt:option});return};function ajaxdata(option){$.ajax({url:option.url,cache:!0,method:'GET',dataType:'jsonp',success:function(data){var ins_parent=$(element).parent();ins_parent.removeClass('ins_connecting');ins_parent.find('.ins_load_more').removeClass('ins_loading');if(data.meta.code==200){if(option.opt.show!=='profile'){if(data.data.length==0)
ins_parent.find('.ins_no_data').removeClass('hidden-xs-up');else media(data.data,option.opt)}else profile(data.data,option.opt)}else{$(element).parent().removeClass('ins_connecting').addClass('ins_ajax_error')}
if(option.opt.show!=='profile'&&option.opt.ins_load_more){if(typeof(data.pagination)==='undefined'||typeof(data.pagination.next_url)==='undefined'||!data.pagination.next_url)
ins_parent.find('.ins_load_more').removeClass('ins_has_more');else{ins_parent.find('.ins_load_more').addClass('ins_has_more').on('click',function(e){e.preventDefault();$(this).addClass('ins_loading');ajaxdata({url:data.pagination.next_url,opt:option.opt});$(this).unbind(e)})}}},error:function(){var ins_parent=$(element).parent();ins_parent.find('.ins_load_more').removeClass('ins_loading');ins_parent.removeClass('ins_connecting').addClass('ins_ajax_error')}});return};switch(options.show){case 'liked':ajaxdata({url:apiurl+'self/media/liked'+rcount,opt:options});break
case 'feed':ajaxdata({url:apiurl+'self/feed'+rcount,opt:options});break
case 'profile':ajaxdata({url:apiurl+options.ins_user_id+'?access_token='+options.accessToken,opt:options});break
case 'recent':ajaxdata({url:apiurl+'self/media/recent'+rcount,opt:options});break
default:ajaxdata({url:'https://api.instagram.com/v1/tags/'+options.show+'/media/recent'+rcount,opt:options})}
return};Pongstgrm.prototype.create=function(){var element=this.element,options=this.options;if(typeof(this.options.ins_hash_tag)!=='undefined'&&this.options.ins_hash_tag)
this.options.show=this.options.ins_hash_tag;$(element).attr('data-type',options.show).addClass('pongstagrm');this.stream();return};Pongstgrm.prototype.start=function(){var option=this.options;if(option.ins_user_id!=''&&option.accessToken!=''){this.create();return}else{$(this.element).parent().removeClass('ins_connecting').addClass('ins_ajax_error')}};$.fn.pongstgrm=function(option){var options=$.extend({},Pongstgrm.defaults,option);return this.each(function(){var media=new Pongstgrm($(this)[0],options);media.start()})};$.fn.pongstgrm.defaults=Pongstgrm.options}(window.jQuery);jQuery(function($){if(typeof(instagram_block_array)!=='undefined'){if(instagram_block_array.profile.length){$.each(instagram_block_array.profile,function(key,value){$("#instagram_block_"+value.id_st_ins+" .instagram_profile").pongstgrm(value)})}
if(instagram_block_array.feed.length){$.each(instagram_block_array.feed,function(key,value){$("#instagram_block_"+value.id_st_ins+" .instagram_con "+(value.grid?"":" .swiper-wrapper ")).pongstgrm(value)})}}});/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* 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-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
function stLovedAddProduct(dom){if(typeof st_myloved_url=='undefined')
return!1;var id_source=$(dom).data('id-source');if(!id_source)
return!1;var unlove=$(dom).hasClass('st_added');var type=$(dom).data('type');$(dom).toggleClass('st_added');$.ajax({type:'GET',url:st_myloved_url,headers:{"cache-control":"no-cache"},async:!0,cache:!1,dataType:"json",data:{type:$.isNumeric(type)?type:1,id_source:id_source,ajax:1,unloveable:(unlove?1:0),action:'addLovedProduct'},success:function(resp){if($('.amount_inline',dom).length){$('.amount_inline',dom).html(resp.total?resp.total:0)}
if(!resp.success){stLovedPopup(resp.message);$(dom).toggleClass('st_added')}else if(resp.success==2){stLovedGoLogin();$(dom).toggleClass('st_added')}else{}},error:function(XMLHttpRequest,textStatus,errorThrown){$(dom).toggleClass('st_added')}})}
function stLovedProductRemove(id_source,type){if(typeof st_myloved_url=='undefined')
return(!1);$.ajax({type:'GET',url:st_myloved_url,headers:{"cache-control":"no-cache"},async:!0,cache:!1,dataType:"json",data:{type:$.isNumeric(type)?type:1,id_source:id_source,ajax:1,action:'deleteProduct'},success:function(data){$('.loved_remove_product.active').removeClass('active');if(data.success==1){$('.loved_product_item[data-id_source='+id_source+']').empty()}else if(!data.success){stLovedPopup(resp.message)}else if(resp.success==2)
stLovedGoLogin()},error:function(XMLHttpRequest,textStatus,errorThrown){}})}
function stLovedPopup(msg){$.magnificPopup.open({removalDelay:500,callbacks:{beforeOpen:function(){this.st.mainClass='mfp-zoom-in'}},items:{src:'<div class="inline_popup_content small_popup mfp-with-anim text-center">'+msg+'</div>',type:'inline'}})}
function stLovedGoLogin(){$.magnificPopup.open({removalDelay:500,callbacks:{beforeOpen:function(){this.st.mainClass='mfp-zoom-in'}},items:{src:'#loved_go_login',type:'inline'}})}
$(document).ready(function(){$('body').on('click','.loved_remove_product',function(event){event.preventDefault();var dataset=$(this).closest('.loved_product_item').data();if(dataset.id_source){$(this).addClass('active');stLovedProductRemove(dataset.id_source,dataset.type)}});$('body').on('click','.add_to_love',function(event){event.preventDefault();if(typeof(prestashop)==='undefined'||!prestashop.customer.is_logged){stLovedGoLogin();return!1}
stLovedAddProduct(this);return!1})});document.documentElement.className+=' js_active ';document.documentElement.className+='ontouchstart' in document.documentElement?' vc_mobile ':' vc_desktop ';(function(){var prefix=['-webkit-','-o-','-moz-','-ms-',""];for(var i in prefix){if(prefix[i]+'transform' in document.documentElement.style)document.documentElement.className+=" vc_transform "}})();jQuery(window).load(function(){});var vc_js=function(){vc_twitterBehaviour();vc_toggleBehaviour();vc_tabsBehaviour();vc_accordionBehaviour();vc_teaserGrid();vc_carouselBehaviour();vc_slidersBehaviour();vc_prettyPhoto();vc_googleplus();vc_pinterest();vc_progress_bar();vc_plugin_flexslider();vc_google_fonts();vc_rowBehaviour();window.setTimeout(vc_waypoints,1500)};jQuery(document).ready(function($){window.vc_js();$('body').addClass('vc_frontoffice')});if(typeof window.vc_plugin_flexslider!=='function'){function vc_plugin_flexslider($parent){var $slider=$parent?$parent.find('.wpb_flexslider'):jQuery('.wpb_flexslider');$slider.each(function(){var this_element=jQuery(this);var sliderSpeed=800,sliderTimeout=parseInt(this_element.attr('data-interval'))*1000,sliderFx=this_element.attr('data-flex_fx'),slideshow=!0;if(sliderTimeout==0)slideshow=!1;this_element.is(':visible')&&this_element.flexslider({animation:sliderFx,slideshow:slideshow,slideshowSpeed:sliderTimeout,sliderSpeed:sliderSpeed,smoothHeight:!0})})}}
window.vcParallaxSkroll=!1;if('function'!==typeof(window.vc_rowBehaviour)){window.vc_rowBehaviour=function(){var $=window.jQuery;var localFunction=function(){var $elements=$('[data-vc-full-width="true"]');$.each($elements,function(key,item){var $el=$(this);var $el_full=$el.next('.vc_row-full-width');var el_margin_left=parseInt($el.css('margin-left'),10);var el_margin_right=parseInt($el.css('margin-right'),10);var offset=0-$el_full.offset().left-el_margin_left;var width=$(window).width();$el.css({'position':'relative','left':offset,'box-sizing':'border-box','width':$(window).width()});if(!$el.data('vcStretchContent')){var padding=(-1*offset);if(padding<0){padding=0}
var paddingRight=width-padding-$el_full.width()+el_margin_left+el_margin_right;if(paddingRight<0){paddingRight=0}
$el.css({'padding-left':padding+'px','padding-right':paddingRight+'px'})}
$el.attr("data-vc-full-width-init","true")})};function fullWidthRow(){var $elements=$('[data-vc-full-width="true"]');$.each($elements,function(key,item){var $el=$(this);$el.addClass("vc_hidden");var $el_full=$el.next(".vc_row-full-width");$el_full.length||($el_full=$el.parent().next(".vc_row-full-width"));var el_margin_left=parseInt($el.css("margin-left"),10),el_margin_right=parseInt($el.css("margin-right"),10),offset=0-$el_full.offset().left-el_margin_left,width=$(window).width();if($el.css({position:"relative",left:offset,"box-sizing":"border-box",width:$(window).width()}),!$el.data("vcStretchContent")){var padding=-1*offset;0>padding&&(padding=0);var paddingRight=width-padding-$el_full.width()+el_margin_left+el_margin_right;0>paddingRight&&(paddingRight=0),$el.css({"padding-left":padding+"px","padding-right":paddingRight+"px"})}
$el.attr("data-vc-full-width-init","true"),$el.removeClass("vc_hidden")})}
function parallaxRow(){var vcSkrollrOptions,callSkrollInit=!1;return window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSpeed,skrollrSize,skrollrStart,skrollrEnd,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),$parallaxElement=$("<div />").addClass("vc_parallax-inner").appendTo($(this)),$parallaxElement.height(skrollrSize+"%"),parallaxImage=$(this).data("vcParallaxImage"),youtubeId=vcExtractYoutubeId(parallaxImage),youtubeId?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):"undefined"!=typeof parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),skrollrSpeed=skrollrSize-100,skrollrStart=-skrollrSpeed,skrollrEnd=0,$parallaxElement.attr("data-bottom-top","top: "+skrollrStart+"%;").attr("data-top-bottom","top: "+skrollrEnd+"%;")}),callSkrollInit&&window.skrollr?(vcSkrollrOptions={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(vcSkrollrOptions),window.vcParallaxSkroll):!1}
function fullHeightRow(){$(".vc_row-o-full-height:first").each(function(){var $window,windowHeight,offsetTop,fullHeight;$window=$(window),windowHeight=$window.height(),offsetTop=$(this).offset().top,windowHeight>offsetTop&&(fullHeight=100-offsetTop/(windowHeight/100),$(this).css("min-height",fullHeight+"vh"))})}
function fixIeFlexbox(){var ua=window.navigator.userAgent,msie=ua.indexOf("MSIE ");(msie>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".vc_row-o-full-height").each(function(){"flex"===$(this).css("display")&&$(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')})}
$(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",fullWidthRow).on("resize.vcRowBehaviour",fullHeightRow),fullWidthRow(),fullHeightRow(),fixIeFlexbox(),vc_initVideoBackgrounds(),parallaxRow()}}
function vc_initVideoBackgrounds(){jQuery(".vc_row").each(function(){var youtubeUrl,youtubeId,$row=jQuery(this);$row.data("vcVideoBg")?(youtubeUrl=$row.data("vcVideoBg"),youtubeId=vcExtractYoutubeId(youtubeUrl),youtubeId&&($row.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground($row,youtubeId)),jQuery(window).on("grid:items:added",function(event,$grid){$row.has($grid).length&&vcResizeVideoBackground($row)})):$row.find(".vc_video-bg").remove()})}
function vcExtractYoutubeId(url){if('undefined'===typeof(url)){return!1}
var id=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);if(null!==id){return id[1]}
return!1}
function vcResizeVideoBackground($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight(),ratio1=16,ratio2=9;if((containerW/containerH)<(ratio1/ratio2)){iframeW=containerH*(ratio1/ratio2);iframeH=containerH;marginLeft=-Math.round((iframeW-containerW)/2)+'px';marginTop=-Math.round((iframeH-containerH)/2)+'px';iframeW+='px';iframeH+='px'}else{iframeW=containerW;iframeH=containerW*(ratio2/ratio1);marginTop=-Math.round((iframeH-containerH)/2)+'px';marginLeft=-Math.round((iframeW-containerW)/2)+'px';iframeW+='px';iframeH+='px'}
$element.find('.vc_video-bg iframe').css({maxWidth:'1000%',marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})}
function insertYoutubeVideoAsBackground($element,youtubeId,counter){if('undefined'===typeof(YT.Player)){counter='undefined'===typeof(counter)?0:counter;if(100<counter){console.warn('Too many attempts to load YouTube api');return}
setTimeout(function(){insertYoutubeVideoAsBackground($element,youtubeId,counter ++)},100);return}
var $container=$element.prepend('<div class="vc_video-bg"><div class="inner"></div></div>').find('.inner');new YT.Player($container[0],{width:'100%',height:'100%',videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1},events:{onReady:function(event){event.target.mute().setLoop(!0)}}});vcResizeVideoBackground($element);jQuery(window).bind('resize',function(){vcResizeVideoBackground($element)})}
if(typeof window.vc_twitterBehaviour!=='function'){function vc_twitterBehaviour(){jQuery('.wpb_twitter_widget .tweets').each(function(index){var this_element=jQuery(this),tw_name=this_element.attr('data-tw_name');tw_count=this_element.attr('data-tw_count');this_element.tweet({username:tw_name,join_text:"auto",avatar_size:0,count:tw_count,template:"{avatar}{join}{text}{time}",auto_join_text_default:"",auto_join_text_ed:"",auto_join_text_ing:"",auto_join_text_reply:"",auto_join_text_url:"",loading_text:'<span class="loading_tweets">loading tweets...</span>'})})}}
if(typeof window.vc_googleplus!=='function'){function vc_googleplus(){if(jQuery('.wpb_googleplus').length>0){(function(){var po=document.createElement('script');po.type='text/javascript';po.async=!0;po.src='https://apis.google.com/js/plusone.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(po,s)})()}}}
if(typeof window.vc_pinterest!=='function'){function vc_pinterest(){if(jQuery('.wpb_pinterest').length>0){(function(){var po=document.createElement('script');po.type='text/javascript';po.async=!0;po.src='http://assets.pinterest.com/js/pinit.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(po,s)})()}}}
if(typeof window.vc_progress_bar!=='function'){function vc_progress_bar(){if(typeof jQuery.fn.waypoint!=='undefined'){jQuery('.vc_progress_bar').waypoint(function(){jQuery(this).find('.vc_single_bar').each(function(index){var $this=jQuery(this),bar=$this.find('.vc_bar'),val=bar.data('percentage-value');setTimeout(function(){bar.css({"width":val+'%'})},index*200)})},{offset:'85%'})}}}
if(typeof window.vc_waypoints!=='function'){function vc_waypoints(){if(typeof jQuery.fn.waypoint!=='undefined'){jQuery('.wpb_animate_when_almost_visible:not(.wpb_start_animation)').waypoint(function(){jQuery(this).addClass('wpb_start_animation')},{offset:'85%'})}}}
if(typeof window.vc_toggleBehaviour!=='function'){function vc_toggleBehaviour(){jQuery(".wpb_toggle").unbind('click').click(function(e){if(jQuery(this).next().is(':animated')){return!1}
if(jQuery(this).hasClass('wpb_toggle_title_active')){jQuery(this).removeClass('wpb_toggle_title_active').next().slideUp(500)}else{jQuery(this).addClass('wpb_toggle_title_active').next().slideDown(500)}});jQuery('.wpb_toggle_content').each(function(index){if(jQuery(this).next().is('h4.wpb_toggle')==!1){jQuery('<div class="last_toggle_el_margin"></div>').insertAfter(this)}})}}
if(typeof window.vc_tabsBehaviour!=='function'){function vc_tabsBehaviour($tab){jQuery(function($){$(document.body).off('click.preview','a')});var $call=$tab||jQuery('.wpb_tabs, .wpb_tour'),ver=jQuery.ui&&jQuery.ui.version?jQuery.ui.version.split('.'):'1.10',old_version=parseInt(ver[0])==1&&parseInt(ver[1])<9;$call.each(function(index){var $tabs,interval=jQuery(this).attr("data-interval"),tabs_array=[];$tabs=jQuery(this).find('.wpb_tour_tabs_wrapper').tabs({show:function(event,ui){wpb_prepare_tab_content(event,ui)},beforeActivate:function(event,ui){ui.newPanel.index()!==1&&ui.newPanel.find('.vc_pie_chart:not(.vc_ready)')},activate:function(event,ui){wpb_prepare_tab_content(event,ui)}}).tabs('rotate',interval*1000);jQuery(this).find('.wpb_tab').each(function(){tabs_array.push(this.id)});jQuery(this).find('.wpb_tabs_nav a').click(function(e){e.preventDefault();if(jQuery.inArray(jQuery(this).attr('href'),tabs_array)){if(old_version){$tabs.tabs("select",jQuery(this).attr('href'))}else{$tabs.tabs("option","active",jQuery(jQuery(this).attr('href')).index()-1)}
return!1}});jQuery(this).find('.wpb_prev_slide a, .wpb_next_slide a').click(function(e){e.preventDefault();if(old_version){var index=$tabs.tabs('option','selected');if(jQuery(this).parent().hasClass('wpb_next_slide')){index++}else{index--}
if(index<0){index=$tabs.tabs("length")-1}else if(index>=$tabs.tabs("length")){index=0}
$tabs.tabs("select",index)}else{var index=$tabs.tabs("option","active"),length=$tabs.find('.wpb_tab').length;if(jQuery(this).parent().hasClass('wpb_next_slide')){index=(index+1)>=length?0:index+1}else{index=index-1<0?length-1:index-1}
$tabs.tabs("option","active",index)}})})}}
if(typeof window.vc_accordionBehaviour!=='function'){function vc_accordionBehaviour(){jQuery('.wpb_accordion').each(function(index){var $tabs,interval=jQuery(this).attr("data-interval"),active_tab=!isNaN(jQuery(this).data('active-tab'))&&parseInt(jQuery(this).data('active-tab'))>0?parseInt(jQuery(this).data('active-tab'))-1:!1,collapsible=active_tab===!1||jQuery(this).data('collapsible')==='yes';$tabs=jQuery(this).find('.wpb_accordion_wrapper').accordion({header:"> div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){if(jQuery.fn.isotope!=undefined){ui.newContent.find('.isotope').isotope("layout")}
vc_carouselBehaviour(ui.newPanel)}})})}}
if(typeof window.vc_teaserGrid!=='function'){function vc_teaserGrid(){if(!jQuery.isFunction(jQuery.fn.isotope))return;var layout_modes={fitrows:'fitRows',masonry:'masonry'};jQuery('.wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)').each(function(){var $container=jQuery(this);var $thumbs=$container.find('.wpb_thumbnails');var layout_mode=$thumbs.attr('data-layout-mode');$thumbs.isotope({itemSelector:'.isotope-item',layoutMode:(layout_modes[layout_mode]==undefined?'fitRows':layout_modes[layout_mode])});$container.find('.categories_filter a').data('isotope',$thumbs).click(function(e){e.preventDefault();var $thumbs=jQuery(this).data('isotope');jQuery(this).parent().parent().find('.active').removeClass('active');jQuery(this).parent().addClass('active');$thumbs.isotope({filter:jQuery(this).attr('data-filter')})});jQuery(window).bind('load resize',function(){$thumbs.isotope("layout")})})}}
if(typeof window.vc_carouselBehaviour!=='function'){function vc_carouselBehaviour($parent){var $carousel=$parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel");$carousel.each(function(){var $this=jQuery(this);if($this.data('carousel_enabled')!==!0&&$this.is(':visible')){$this.data('carousel_enabled',!0);var carousel_width=jQuery(this).width(),visible_count=getColumnsCount(jQuery(this)),carousel_speed=500;if(jQuery(this).hasClass('columns_count_1')){carousel_speed=900}
var carousele_li=jQuery(this).find('.wpb_thumbnails-fluid li');carousele_li.css({"margin-right":carousele_li.css("margin-left"),"margin-left":0});jQuery(this).find('.wpb_wrapper:eq(0)').jCarouselLite({btnNext:jQuery(this).find('.next'),btnPrev:jQuery(this).find('.prev'),visible:visible_count,speed:carousel_speed}).width('100%');var fluid_ul=jQuery(this).find('ul.wpb_thumbnails-fluid');fluid_ul.width(fluid_ul.width()+300);jQuery(window).resize(function(){var before_resize=screen_size;screen_size=getSizeName();if(before_resize!=screen_size){window.setTimeout('location.reload()',20)}})}})}}
if(typeof window.vc_slidersBehaviour!=='function'){function vc_slidersBehaviour(){jQuery('.wpb_gallery_slides').each(function(index){var this_element=jQuery(this);var ss_count=0;if(this_element.hasClass('wpb_slider_nivo')){var sliderSpeed=800,sliderTimeout=this_element.attr('data-interval')*1000;if(sliderTimeout==0)sliderTimeout=9999999999;this_element.find('.nivoSlider').nivoSlider({effect:'boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse',slices:15,boxCols:8,boxRows:4,animSpeed:sliderSpeed,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:'Prev',nextText:'Next'})}else if(this_element.hasClass('wpb_flexslider')&&1==2){}else if(this_element.hasClass('wpb_image_grid')){var isotope=this_element.find('.wpb_image_grid_ul');isotope.isotope({itemSelector:'.isotope-item',layoutMode:'fitRows'});jQuery(window).load(function(){isotope.isotope("layout")})}})}}
if(typeof window.vc_prettyPhoto!=='function'){function vc_prettyPhoto(){try{jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:'normal',padding:15,opacity:0.7,showTitle:!0,allowresize:!0,counter_separator_label:'/',hideflash:!1,deeplinking:!1,modal:!1,callback:function(){var url=location.href;var hashtag=(url.indexOf('#!prettyPhoto'))?!0:!1;if(hashtag)location.hash="!"},social_tools:''})}catch(err){}}}
if(typeof window.vc_google_fonts!=='function'){function vc_google_fonts(){return}}
function getColumnsCount(el){var find=!1,i=1;while(find==!1){if(el.hasClass('columns_count_'+i)){find=!0;return i}
i++}}
var screen_size=getSizeName();function getSizeName(){var screen_size='',screen_w=jQuery(window).width();if(screen_w>1170){screen_size="desktop_wide"}else if(screen_w>960&&screen_w<1169){screen_size="desktop"}else if(screen_w>768&&screen_w<959){screen_size="tablet"}else if(screen_w>300&&screen_w<767){screen_size="mobile"}else if(screen_w<300){screen_size="mobile_portrait"}
return screen_size}
function loadScript(url,$obj,callback){var script=document.createElement("script")
script.type="text/javascript";if(script.readyState){script.onreadystatechange=function(){if(script.readyState=="loaded"||script.readyState=="complete"){script.onreadystatechange=null;callback()}}}else{}
script.src=url;$obj.get(0).appendChild(script)}
function wpb_prepare_tab_content(event,ui){var panel=ui.panel||ui.newPanel,$pie_charts=panel.find('.vc_pie_chart:not(.vc_ready)'),$carousel=panel.find('[data-ride="vc_carousel"]'),$ui_panel,$google_maps;vc_carouselBehaviour();vc_plugin_flexslider(panel);$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat();$carousel.length&&jQuery.fn.carousel&&$carousel.carousel('resizeAction');$ui_panel=panel.find('.isotope');$google_maps=panel.find('.wpb_gmaps_widget');if($ui_panel.length>0){$ui_panel.isotope("layout")}
if($google_maps.length&&!$google_maps.is('.map_ready')){var $frame=$google_maps.find('iframe');$frame.attr('src',$frame.attr('src'));$google_maps.addClass('map_ready')}
if(panel.parents('.isotope').length){panel.parents('.isotope').each(function(){jQuery(this).isotope("layout")})}}
var vc_accordionActivate=function(event,ui){var $pie_charts=ui.newPanel.find('.vc_pie_chart:not(.vc_ready)'),$carousel=ui.newPanel.find('[data-ride="vc_carousel"]');if(jQuery.fn.isotope!=undefined){ui.newPanel.find('.isotope').isotope("layout")}
vc_carouselBehaviour(ui.newPanel);vc_plugin_flexslider(ui.newPanel);$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat();$carousel.length&&jQuery.fn.carousel&&$carousel.carousel('resizeAction');if(ui.newPanel.parents('.isotope').length){ui.newPanel.parents('.isotope').each(function(){jQuery(this).isotope("layout")})}};/**

* 2007-2018 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (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:

* http://opensource.org/licenses/afl-3.0.php

* 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   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)

*  International Registered Trademark & Property of PrestaShop SA

*

* Don't forget to prefix your containers with your own identifier

* to avoid any conflicts with others containers.

*/
$(document).ready(function(){if($("#index").length){$(".TeinorUltraBannerContainer").css('visibility','hidden');checkBanner();$(window).scroll(function(){checkBanner()})
function checkBanner(){$(".TeinorUltraBannerContainer").each(function(){if($(window).scrollTop()+$(window).height()-200>$(this).offset().top){$(this).css('visibility',"");$(this).css('animation-duration','2s');$(this).addClass('animated fadeIn')}})}}
checkSwipper();checkSlider();onMouseDown();onTouchDown();function checkSwipper(){$(".TeinorUltraBannerContainerSwipper").each(function(){var attr=$(this).attr("swiperprop");if(attr.includes("autoloop:true;")){var newstring=attr.replace("autoloop:true;","");newstring=newstring.replace(";","");newstring=newstring.split(":");newstring=newstring[1]*1000;$(this).carousel({interval:newstring})}else{$('.carousel').carousel('pause')}})}
function checkSlider(){$(".TeinorUltraBannerContainerSlider").each(function(){var attr=$(this).attr("sliderprops");if(attr.includes("autoloop:true;")){var newstring=attr.replace("autoloop:true;","");newstring=newstring.replace(";","");newstring=newstring.split(":");newstring=newstring[1]*1000;$(this).carousel({interval:newstring})}else{$('.carousel').carousel('pause')}})}
function onMouseDown(){$(".TeinorUltraBannerContainerSwipper").mousedown(function(e){e.preventDefault();var reset=!0;var startcursor=e.pageX;$(this).mouseup(function(){$(this).unbind('mousemove')});$(this).mouseout(function(){$(this).unbind('mousemove')});$(this).mousemove(function(ev2){var currentcursor=ev2.pageX;if(startcursor<currentcursor-100&&reset==!0){$(this).carousel('prev');reset=!1}
if(startcursor>currentcursor+100&&reset==!0){$(this).carousel('next');reset=!1}})})
$(".TeinorUltraBannerContainerSlider").mousedown(function(e){e.preventDefault();var reset=!0;var startcursor=e.pageX;$(this).mouseup(function(){$(this).unbind('mousemove')});$(this).mouseout(function(){$(this).unbind('mousemove')});$(this).mousemove(function(ev2){var currentcursor=ev2.pageX;if(startcursor<currentcursor-100&&reset==!0){$(this).carousel('prev');reset=!1}
if(startcursor>currentcursor+100&&reset==!0){$(this).carousel('next');reset=!1}})})}
function onTouchDown(){$(".TeinorUltraBannerContainerSwipper").on('touchstart',function(e){var reset=!0;var startcursor=e.originalEvent.touches[0].pageX;e.preventDefault();$(this).on('touchend',function(){});$(this).bind('touchmove',function(ev2){var currentcursor=ev2.originalEvent.touches[0].pageX;if(startcursor<currentcursor-100&&reset==!0){reset=!1;$(this).carousel('prev')}
if(startcursor>currentcursor+100&&reset==!0){reset=!1;$(this).carousel('next')}})});$(".TeinorUltraBannerContainerSlider").on('touchstart',function(e){var reset=!0;var startcursor=e.originalEvent.touches[0].pageX;e.preventDefault();$(this).on('touchend',function(){});$(this).bind('touchmove',function(ev2){var currentcursor=ev2.originalEvent.touches[0].pageX;if(startcursor<currentcursor-100&&reset==!0){reset=!1;$(this).carousel('prev')}
if(startcursor>currentcursor+100&&reset==!0){reset=!1;$(this).carousel('next')}})})}});/**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* 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   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
$(document).ready(function(){$(".beshop_notification").each(function(){var target=$(this);var beshopNotification_Id=$(target).attr('id');var beshopNotification_isBottom=$(target).hasClass('beshop_notification_bottom');$.ajax({url:beshop_notification_front_controller,type:'post',ajax:!0,data:{beshopNotification_Id:beshopNotification_Id,beshopNotification_isBottom:beshopNotification_isBottom,action:'notification_request',},success:function(response){if(!response){$(target).show()}}})})
$(".beshop_notification_accept").click(function(){var target=$(this).parents('.beshop_notification');var beshopNotification_Id=$(target).attr('id');var beshopNotification_isBottom=$(target).hasClass('beshop_notification_bottom');$.ajax({url:beshop_notification_front_controller,type:'post',ajax:!0,data:{beshopNotification_Id:beshopNotification_Id,beshopNotification_isBottom:beshopNotification_isBottom,action:'notification_accept',},success:function(response){$(target).remove()}})})});/**

* 2007-2018 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (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:

* http://opensource.org/licenses/afl-3.0.php

* 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   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)

*  International Registered Trademark & Property of PrestaShop SA

*

* Don't forget to prefix your containers with your own identifier

* to avoid any conflicts with others containers.

*/
window.onload=function(){loadCheckBoxTeinor()};(function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++){if(e in this&&this[e]===t)return e}return-1},e=[].slice;(function(t,e){if(typeof define==="function"&&define.amd){return define("waypoints",["jquery"],function(n){return e(n,t)})}else{return e(t.jQuery,t)}})(this,function(n,r){var i,o,l,s,f,u,a,c,h,d,p,y,v,w,g,m;i=n(r);c=t.call(r,"ontouchstart")>=0;s={horizontal:{},vertical:{}};f=1;a={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=1;w="waypoints-waypoint-ids";g="waypoint";m="waypoints";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didResize=!1;this.didScroll=!1;this.id="context"+f++;this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()};this.waypoints={horizontal:{},vertical:{}};t.data(u,this.id);a[this.id]=this;t.bind(y,function(){var t;if(!(e.didScroll||c)){e.didScroll=!0;t=function(){e.doScroll();return e.didScroll=!1};return r.setTimeout(t,n[m].settings.scrollThrottle)}});t.bind(p,function(){var t;if(!e.didResize){e.didResize=!0;t=function(){n[m]("refresh");return e.didResize=!1};return r.setTimeout(t,n[m].settings.resizeThrottle)}})}t.prototype.doScroll=function(){var t,e=this;t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};if(c&&(!t.vertical.oldScroll||!t.vertical.newScroll)){n[m]("refresh")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newScroll>r.oldScroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldScroll<(n=e.offset)&&n<=r.newScroll){return l.push(e)}else if(r.newScroll<(i=e.offset)&&i<=r.oldScroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}};t.prototype.refresh=function(){var t,e,r,i=this;r=n.isWindow(this.element);e=this.$element.offset();this.doScroll();t={horizontal:{contextOffset:r?0:e.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:e.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[m]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.isWindow(r.element)?0:r.$element.offset()[e.offsetProp];if(n.isFunction(i)){i=i.apply(r.element)}else if(typeof i==="string"){i=parseFloat(i);if(r.options.offset.indexOf("%")>-1){i=Math.ceil(e.contextDimension*i/100)}}r.offset=o-e.contextOffset+e.contextScroll-i;if(r.options.onlyOnScroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldScroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldScroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldScroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)){this.$element.unbind([p,y].join(" "));return delete a[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;r=n.extend({},n.fn[g].defaults,r);if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportHeight");if(!n.isWindow(e.element)){t=e.$element.height()}return t-n(this).outerHeight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id="waypoints"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=t.data(w))!=null?o:[];i.push(this.id);t.data(w,i)}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggerOnce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=!1};t.prototype.enable=function(){this.context.refresh();return this.enabled=!0};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkEmpty()};t.getWaypointsByElement=function(t){var e,r;r=n(t).data(w);if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;if(e==null){e={}}if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.isWindow(i)){i=t.closest(i)}i=n(i);r=a[i.data(u)];if(!r){r=new o(i)}return new l(t,r,e)});n[m]("refresh");return this},disable:function(){return d._invoke(this,"disable")},enable:function(){return d._invoke(this,"enable")},destroy:function(){return d._invoke(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0){return t.push(n[e-1])}})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e<n.length-1){return t.push(n[e+1])}})},_traverse:function(t,e,i){var o,l;if(t==null){t="vertical"}if(e==null){e=r}l=h.aggregate(e);o=[];this.each(function(){var e;e=n.inArray(this,l[t]);return i(o,e,l[t])});return this.pushStack(o)},_invoke:function(t,e){t.each(function(){var t;t=l.getWaypointsByElement(this);return n.each(t,function(t,n){n[e]();return!0})});return this}};n.fn[g]=function(){var t,r;r=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(d[r]){return d[r].apply(this,t)}else if(n.isFunction(r)){return d.init.apply(this,arguments)}else if(n.isPlainObject(r)){return d.init.apply(this,[null,r])}else if(!r){return n.error("jQuery Waypoints needs a callback function or handler option.")}else{return n.error("The "+r+" method does not exist in jQuery Waypoints.")}};n.fn[g].defaults={context:r,continuous:!0,enabled:!0,horizontal:!1,offset:0,triggerOnce:!1};h={refresh:function(){return n.each(a,function(t,e){return e.refresh()})},viewportHeight:function(){var t;return(t=r.innerHeight)!=null?t:i.height()},aggregate:function(t){var e,r,i;e=s;if(t){e=(i=a[n(t).data(u)])!=null?i.waypoints:void 0}if(!e){return[]}r={horizontal:[],vertical:[]};n.each(r,function(t,i){n.each(e[t],function(t,e){return i.push(e)});i.sort(function(t,e){return t.offset-e.offset});r[t]=n.map(i,function(t){return t.element});return r[t]=n.unique(r[t])});return r},above:function(t){if(t==null){t=r}return h._filter(t,"vertical",function(t,e){return e.offset<=t.oldScroll.y})},below:function(t){if(t==null){t=r}return h._filter(t,"vertical",function(t,e){return e.offset>t.oldScroll.y})},left:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;e=n.extend({},s.vertical,s.horizontal);return n.each(e,function(e,n){n[t]();return!0})},_filter:function(t,e,r){var i,o;i=a[n(t).data(u)];if(!i){return[]}o=[];n.each(i.waypoints[e],function(t,e){if(r(i,e)){return o.push(e)}});o.sort(function(t,e){return t.offset-e.offset});return n.map(o,function(t){return t.element})}};n[m]=function(){var t,n;n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(h[n]){return h[n].apply(null,t)}else{return h.aggregate.call(null,n)}};n[m].settings={resizeThrottle:100,scrollThrottle:30};return i.load(function(){return n[m]("refresh")})})}).call(this);(function(k){'use strict';k(['jquery'],function($){var j=$.scrollTo=function(a,b,c){return $(window).scrollTo(a,b,c)};j.defaults={axis:'xy',duration:0,limit:!0};j.window=function(a){return $(window)._scrollable()};$.fn._scrollable=function(){return this.map(function(){var a=this,isWin=!a.nodeName||$.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!isWin)return a;var b=(a.contentWindow||a).document||a.ownerDocument||a;return/webkit/i.test(navigator.userAgent)||b.compatMode=='BackCompat'?b.body:b.documentElement})};$.fn.scrollTo=function(f,g,h){if(typeof g=='object'){h=g;g=0}if(typeof h=='function')h={onAfter:h};if(f=='max')f=9e9;h=$.extend({},j.defaults,h);g=g||h.duration;h.queue=h.queue&&h.axis.length>1;if(h.queue)g/=2;h.offset=both(h.offset);h.over=both(h.over);return this._scrollable().each(function(){if(f==null)return;var d=this,$elem=$(d),targ=f,toff,attr={},win=$elem.is('html,body');switch(typeof targ){case'number':case'string':if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=win?$(targ):$(targ,this);if(!targ.length)return;case'object':if(targ.is||targ.style)toff=(targ=$(targ)).offset()}var e=$.isFunction(h.offset)&&h.offset(d,targ)||h.offset;$.each(h.axis.split(''),function(i,a){var b=a=='x'?'Left':'Top',pos=b.toLowerCase(),key='scroll'+b,old=d[key],max=j.max(d,a);if(toff){attr[key]=toff[pos]+(win?0:old-$elem.offset()[pos]);if(h.margin){attr[key]-=parseInt(targ.css('margin'+b))||0;attr[key]-=parseInt(targ.css('border'+b+'Width'))||0}attr[key]+=e[pos]||0;if(h.over[pos])attr[key]+=targ[a=='x'?'width':'height']()*h.over[pos]}else{var c=targ[pos];attr[key]=c.slice&&c.slice(-1)=='%'?parseFloat(c)/100*max:c}if(h.limit&&/^\d+$/.test(attr[key]))attr[key]=attr[key]<=0?0:Math.min(attr[key],max);if(!i&&h.queue){if(old!=attr[key])animate(h.onAfterFirst);delete attr[key]}});animate(h.onAfter);function animate(a){$elem.animate(attr,g,h.easing,a&&function(){a.call(this,targ,h)})}}).end()};j.max=function(a,b){var c=b=='x'?'Width':'Height',scroll='scroll'+c;if(!$(a).is('html,body'))return a[scroll]-$(a)[c.toLowerCase()]();var d='client'+c,html=a.ownerDocument.documentElement,body=a.ownerDocument.body;return Math.max(html[scroll],body[scroll])-Math.min(html[d],body[d])};function both(a){return $.isFunction(a)||$.isPlainObject(a)?a:{top:a,left:a}}return j})}(typeof define==='function'&&define.amd?define:function(a,b){if(typeof module!=='undefined'&&module.exports){module.exports=b(require('jquery'))}else{b(jQuery)}}));/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
(function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0<a.indexOf("%")},l=function(a,d){var e=parseInt(a,10)||0;d&&E(a)&&(e*=b.getViewport()[d]/100);return Math.ceil(e)},w=function(a,b){return l(a,b)+"px"};f.extend(b,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(I?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&&k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current||b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index<b.group.length-1))b.player.isActive=!0,p.bind({"onCancel.player beforeClose.player":c,"onUpdate.player":e,"beforeLoad.player":d}),e(),b.trigger("onPlayStart")}else c()},next:function(a){var d=b.current;d&&(q(a)||(a=d.direction.next),b.jumpto(d.index+1,a,"next"))},prev:function(a){var d=b.current;d&&(q(a)||(a=d.direction.prev),b.jumpto(d.index-1,a,"prev"))},jumpto:function(a,d,e){var c=b.current;c&&(a=l(a),b.direction=d||c.direction[a>=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d=a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")),b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('<div id="fancybox-loading"><div></div></div>').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(),y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement;if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1<a.group.length&&k[c]!==v)return b[d](k[c]),e.preventDefault(),!1;if(-1<f.inArray(c,k))return b[d](),e.preventDefault(),!1})}),f.fn.mousewheel&&a.mouseWheel&&b.wrap.bind("mousewheel.fb",function(d,c,k,g){for(var h=f(d.target||null),j=!1;h.length&&!j&&!h.is(".fancybox-skin")&&!h.is(".fancybox-wrap");)j=h[0]&&!(h[0].style.overflow&&"hidden"===h[0].style.overflow)&&(h[0].clientWidth&&h[0].scrollWidth>h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1<b.group.length&&!a.canShrink){if(0<g||0<k)b.prev(0<g?"down":"left");else if(0>g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,{},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("<div>").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}",g);break;case "swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+g+'"></param>',h="",f.each(a.swf,function(a,b){e+='<param name="'+a+'" value="'+b+'"></param>';h+=" "+a+'="'+b+'"'}),e+='<embed src="'+g+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"></embed></object>"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll":"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside?h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth||h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),c<m&&(c=m,j=l(c/D)),j<u&&(j=u,c=l(j*D))):(c=Math.max(m,Math.min(c,n)),h.autoHeight&&"iframe"!==h.type&&(g.width(c),j=g.height()),j=Math.max(u,Math.min(j,p)));if(h.fitToView)if(g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height(),h.aspectRatio)for(;(a>z||y>r)&&(c>m&&j>u)&&!(19<d++);)j=Math.max(u,Math.min(p,j-10)),c=l(j*D),c<m&&(c=m,j=l(c/D)),c>n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&j<A&&c+x+q<z)&&(c+=q);g.width(c).height(j);e.width(c+x);a=e.width();y=e.height();e=(a>z||y>r)&&c>m&&j>u;c=h.aspectRatio?c<F&&j<B&&c<C&&j<A:(c<F||j<B)&&(c<C||j<A);f.extend(h,{dim:{width:w(a),height:w(y)},origWidth:C,origHeight:A,canShrink:e,canExpand:c,wPadding:x,hPadding:v,wrapSpace:y-k.outerHeight(!0),skinSpace:k.height()-j});!H&&(h.autoHeight&&j>u&&j<p&&!c)&&g.height("auto")},_getPosition:function(a){var d=b.current,e=b.getViewport(),c=d.margin,f=b.wrap.width()+c[1]+c[3],g=b.wrap.height()+c[0]+c[2],c={position:"absolute",top:c[0],left:c[3]};d.autoCenter&&d.fixed&&!a&&g<=e.h&&f<=e.w?c.position="fixed":d.locked||(c.top+=e.y,c.left+=e.x);c.top=w(Math.max(c.top,c.top+(e.h-g)*d.topRatio));c.left=w(Math.max(c.left,c.left+(e.w-f)*d.leftRatio));return c},_afterZoomIn:function(){var a=b.current;a&&(b.isOpen=b.isOpened=!0,b.wrap.css("overflow","visible").addClass("fancybox-opened"),b.update(),(a.closeClick||a.nextClick&&1<b.group.length)&&b.inner.css("cursor","pointer").bind("click.fb",function(d){!f(d.target).is("a")&&!f(d.target).parent().is("a")&&(d.preventDefault(),b[a.closeClick?"close":"next"]())}),a.closeBtn&&f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb",function(a){a.preventDefault();b.close()}),a.arrows&&1<b.group.length&&((a.loop||0<a.index)&&f(a.tpl.prev).appendTo(b.outer).bind("click.fb",b.prev),(a.loop||a.index<b.group.length-1)&&f(a.tpl.next).appendTo(b.outer).bind("click.fb",b.next)),b.trigger("afterShow"),!a.loop&&a.index===a.group.length-1?b.play(!1):b.opts.autoPlay&&!b.player.isActive&&(b.opts.autoPlay=!1,b.play()))},_afterZoomOut:function(a){a=a||b.current;f(".fancybox-wrap").trigger("onReset").remove();f.extend(b,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});b.trigger("afterClose",a)}});b.transitions={getOrigPosition:function(){var a=b.current,d=a.element,e=a.orig,c={},f=50,g=50,h=a.hPadding,j=a.wPadding,m=b.getViewport();!e&&(a.isDom&&d.is(":visible"))&&(e=d.find("img:first"),e.length||(e=d));t(e)?(c=e.offset(),e.is("img")&&(f=e.outerWidth(),g=e.outerHeight())):(c.top=m.y+(m.h-g)*a.topRatio,c.left=m.x+(m.w-f)*a.leftRatio);if("fixed"===b.wrap.css("position")||a.locked)c.top-=m.y,c.left-=m.x;return c={top:w(c.top-h*a.topRatio),left:w(c.left-j*a.leftRatio),width:w(f+j),height:w(g+h)}},step:function(a,d){var e,c,f=d.prop;c=b.current;var g=c.wrapSpace,h=c.skinSpace;if("width"===f||"height"===f)e=d.end===d.start?1:(a-d.start)/(d.end-d.start),b.isClosing&&(e=1-e),c="width"===f?c.wPadding:c.hPadding,c=a-c,b.skin[f](l("width"===f?c:c-g*e)),b.inner[f](l("width"===f?c:c-g*e-h*e))},zoomIn:function(){var a=b.current,d=a.pos,e=a.openEffect,c="elastic"===e,k=f.extend({opacity:1},d);delete k.position;c?(d=this.getOrigPosition(),a.openOpacity&&(d.opacity=0.1)):"fade"===e&&(d.opacity=0.1);b.wrap.css(d).animate(k,{duration:"none"===e?0:a.openSpeed,easing:a.openEasing,step:c?this.step:null,complete:b._afterZoomIn})},zoomOut:function(){var a=b.current,d=a.closeEffect,e="elastic"===d,c={opacity:0.1};e&&(c=this.getOrigPosition(),a.closeOpacity&&(c.opacity=0.1));b.wrap.animate(c,{duration:"none"===d?0:a.closeSpeed,easing:a.closeEasing,step:e?this.step:null,complete:b._afterZoomOut})},changeIn:function(){var a=b.current,d=a.nextEffect,e=a.pos,c={opacity:1},f=b.direction,g;e.opacity=0.1;"elastic"===d&&(g="down"===f||"up"===f?"top":"left","down"===f||"right"===f?(e[g]=w(l(e[g])-200),c[g]="+=200px"):(e[g]=w(l(e[g])+200),c[g]="-=200px"));"none"===d?b._afterZoomIn():b.wrap.css(e).animate(c,{duration:a.nextSpeed,easing:a.nextEasing,complete:b._afterZoomIn})},changeOut:function(){var a=b.previous,d=a.prevEffect,e={opacity:0.1},c=b.direction;"elastic"===d&&(e["down"===c||"up"===c?"top":"left"]=("up"===c||"left"===c?"-":"+")+"=200px");a.wrap.animate(e,{duration:"none"===d?0:a.prevSpeed,easing:a.prevEasing,complete:function(){f(this).trigger("onReset").remove()}})}};b.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,el:f("html"),create:function(a){a=f.extend({},this.defaults,a);this.overlay&&this.close();this.overlay=f('<div class="fancybox-overlay"></div>').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive?b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth),p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"===f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('<div class="fancybox-title fancybox-title-'+c+'-wrap">'+e+"</div>");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner('<span class="child"></span>'),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d,e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('<div style="position:fixed;top:20px;"></div>').appendTo("body");var e=20===d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("<style type='text/css'>.fancybox-margin{margin-right:"+(d-a)+"px;}</style>").appendTo("head")})})(window,document,jQuery);jQuery(function($){var st_dropzone_files=[];var promises=[];var abortPreviousRequests=function(){var promise;while(promises.length>0){promise=promises.pop();promise.abort()}};if($('input.star').length)
$('input.star').rating();if($('.tm-input').length){$('.tm-input').tagsManager({prefilled:st_product_comment_tag_prefilled.split(','),hiddenTagListName:'st_prodcut_comment_tags',});$('.tm-tag .tm-tag-remove').remove();$(".tm-input").on('tm:pushed',function(e,tag,tagid){$('span.tm-tag:last').addClass('tm-checked').on('click',function(){if($(this).hasClass('tm-checked')){$(this).removeClass('tm-checked')}else{$(this).addClass('tm-checked')}})});$('.tm-tag').click(function(){if($(this).hasClass('tm-checked')){$(this).removeClass('tm-checked')}else{$(this).addClass('tm-checked')}})}
if($('#comment_content').length){$('#comment_content').textareaCount({maxCharacterSize:st_pc_max,originalStyle:'originalTextareaInfo',displayFormat:st_pc_display_format})}
if($('#st_product_comment_uploader').length){$('#st_product_comment_uploader').dropzone({url:stproductcomments_controller_url+'&action=upload_image',maxFiles:typeof(st_pc_max_images)!=='undefined'?parseInt(st_pc_max_images):6,acceptedFiles:'image/*',dictRemoveFile:dictRemoveFile,addRemoveLinks:!0,parallelUploads:2,thumbnailHeight:120,thumbnailWidth:120,maxFilesize:3,filesizeBase:1000,init:function(){this.on('maxfilesexceeded',function(file){this.removeFile(file)}),this.on('error',function(file){this.removeFile(file)}),this.on('removedfile',function(file){st_dropzone_files.splice($.inArray(file.st_name,st_dropzone_files),1);$('input[name="image"]').val(st_dropzone_files.join(','))}),this.on('success',function(file,json){json=$.parseJSON(json);if(!json.error){file.st_name=json.image;st_dropzone_files.push(json.image);$('input[name="image"]').val(st_dropzone_files.join(','))}else{showMessage(json.error)}})}})}
$('form[name=st_product_comment_form]').submit(function(e){var is_success=!1;$('input[name="st_prodcut_comment_tags"]').val('');var tags=[];$('.tm-tag.tm-checked').each(function(){if($(this).find('span').html()){tags.push($(this).find('span').html())}});$('input[name="st_prodcut_comment_tags"]').val(tags.join(','));return!0});$('form[name=st_product_comment_reply_form]').submit(function(e){e.preventDefault();var _this=$(this);var sub_btn=$('.st_product_comment_reply_submit',_this);if(!$(this).find('textarea').val()){sub_btn.removeClass('disabled active');return!1}
var is_success=!1;$.ajax({url:stproductcomments_controller_url+'&action=add_reply',type:'POST',headers:{"cache-control":"no-cache"},dataType:'json',data:_this.serialize(),cache:!1,success:function(json){if(json.r){is_success=!0;$.magnificPopup.open({removalDelay:500,callbacks:{beforeOpen:function(){this.st.mainClass='mfp-zoom-in'},close:function(){if(is_success)
window.location.reload(!0)}},items:{src:'<div class="inline_popup_content small_popup mfp-with-anim text-center">'+json.thank+json.moderation+'</div>',type:'inline'}})}else{sub_btn.removeClass('disabled active');CommnetShowMessage(json.m)}}});return!1});$('body').on('click','.usefulness_btn',function(event){event.preventDefault();var that=$(this);var id_st_product_comment=that.data('id-st-product-comment');var is_usefull=that.data('is-usefull');$.ajax({url:stproductcomments_controller_url+'&rand='+new Date().getTime(),data:{id_st_product_comment:id_st_product_comment,action:'comment_is_usefull',value:is_usefull},type:'POST',headers:{"cache-control":"no-cache"}}).then(function(resp){that.removeClass('active');if(parseInt(resp)>0)
that.find('span').html(resp)
else if((parseInt(resp)==-1))
CommnetGoLogin()}).fail(function(resp){that.removeClass('active')});return!1});$('body').on('click','.report_btn',function(event){event.preventDefault();var that=$(this);if(confirm(confirm_report_message)){var idProductComment=$(this).data('id-st-product-comment');$.ajax({url:stproductcomments_controller_url+'&rand='+new Date().getTime(),data:{id_st_product_comment:idProductComment,action:'report_abuse'},type:'POST',headers:{"cache-control":"no-cache"}}).then(function(resp){that.removeClass('active');if(parseInt(resp)>0)
$('#pcomment-'+idProductComment+' .report_btn').remove();else if((parseInt(resp)==-1))
CommnetGoLogin()}).fail(function(resp){that.removeClass('active')})}
return!1});prestashop.on('updatePComments',function(param){abortPreviousRequests();$.ajax({url:param.url,method:'POST',dataType:'json',beforeSend:function(jqXHR){promises.push(jqXHR)}}).then(function(resp){if(typeof(resp.pcomments_list)!=='undefined'&&resp.pcomments_list)
$('#js_pcomments_list').replaceWith(resp.pcomments_list);if(typeof(resp.pcomments_filter)!=='undefined'&&resp.pcomments_filter)
$('#js_pcomments_filter').replaceWith(resp.pcomments_filter);prestashop.emit('updatedPComments')}).fail(function(resp){})});$('body').on('click','.pr-search-link',function(event){event.preventDefault();prestashop.emit('updatePComments',{url:$(this).attr('href')});return!1});var dom_pc_list=$('#js_pcomments_list');if(dom_pc_list.data('url'))
prestashop.emit('updatePComments',{url:dom_pc_list.data('url')});var move_to=function(id){$('#pcomment-'+id+' > .pcomment-for-reply').after($('#product_comment_reply_box').get(0));$('#product_comment_parent_id').val(id)};$('body').on('click','.btn_product_comment_reply',function(event){event.preventDefault();var id=$(this).data('id');if(id)
move_to(id);return!1});$('body').on('click','.view_all_reviews',function(event){event.preventDefault();var tab=$('.pcomments_block');if(!tab.length)
tab=$('.product_info_tabs .nav-link[data-module="stproductcomments"]');if(tab.length){tab.tab('show');$('body,html').animate({scrollTop:tab.offset().top})}
return!1})});function CommnetGoLogin(){$.magnificPopup.open({removalDelay:500,callbacks:{beforeOpen:function(){this.st.mainClass='mfp-zoom-in'}},items:{src:'#popup_go_login',type:'inline'}})}
function CommnetShowMessage(message){$.magnificPopup.open({removalDelay:500,callbacks:{beforeOpen:function(){this.st.mainClass='mfp-zoom-in'}},items:{src:'<div class="inline_popup_content small_popup mfp-with-anim text-center">'+message+'</div>',type:'inline'}})};