!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,(function(t,e){function n(t){var e=!!t&&"length"in t&&t.length,n=ot.type(t);return"function"!==n&&!ot.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function i(t,e,n){if(ot.isFunction(e))return ot.grep(t,(function(t,i){return!!e.call(t,i,t)!==n}));if(e.nodeType)return ot.grep(t,(function(t){return t===e!==n}));if("string"==typeof e){if(mt.test(e))return ot.filter(e,t,n);e=ot.filter(e,t)}return ot.grep(t,(function(t){return J.call(e,t)>-1!==n}))}function r(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function o(t){var e={};return ot.each(t.match(xt)||[],(function(t,n){e[n]=!0})),e}function s(){G.removeEventListener("DOMContentLoaded",s),t.removeEventListener("load",s),ot.ready()}function a(){this.expando=ot.expando+a.uid++}function l(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace($t,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:kt.test(n)?ot.parseJSON(n):n)}catch(t){}Et.set(t,e,n)}else n=void 0;return n}function u(t,e,n,i){var r,o=1,s=20,a=i?function(){return i.cur()}:function(){return ot.css(t,e,"")},l=a(),u=n&&n[3]||(ot.cssNumber[e]?"":"px"),c=(ot.cssNumber[e]||"px"!==u&&+l)&&At.exec(ot.css(t,e));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{c/=o=o||".5",ot.style(t,e,c+u)}while(o!==(o=a()/l)&&1!==o&&--s)}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}function c(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&ot.nodeName(t,e)?ot.merge([t],n):n}function d(t,e){for(var n=0,i=t.length;n<i;n++)Tt.set(t[n],"globalEval",!e||Tt.get(e[n],"globalEval"))}function h(t,e,n,i,r){for(var o,s,a,l,u,h,f=e.createDocumentFragment(),p=[],m=0,g=t.length;m<g;m++)if((o=t[m])||0===o)if("object"===ot.type(o))ot.merge(p,o.nodeType?[o]:o);else if(Mt.test(o)){for(s=s||f.appendChild(e.createElement("div")),a=(Lt.exec(o)||["",""])[1].toLowerCase(),l=Dt[a]||Dt._default,s.innerHTML=l[1]+ot.htmlPrefilter(o)+l[2],h=l[0];h--;)s=s.lastChild;ot.merge(p,s.childNodes),(s=f.firstChild).textContent=""}else p.push(e.createTextNode(o));for(f.textContent="",m=0;o=p[m++];)if(i&&ot.inArray(o,i)>-1)r&&r.push(o);else if(u=ot.contains(o.ownerDocument,o),s=c(f.appendChild(o),"script"),u&&d(s),n)for(h=0;o=s[h++];)jt.test(o.type||"")&&n.push(o);return f}function f(){return!0}function p(){return!1}function m(){try{return G.activeElement}catch(t){}}function g(t,e,n,i,r,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)g(t,a,n,i,e[a],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=p;else if(!r)return t;return 1===o&&(s=r,r=function(t){return ot().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=ot.guid++)),t.each((function(){ot.event.add(this,e,r,i,n)}))}function v(t,e){return ot.nodeName(t,"table")&&ot.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function y(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function b(t){var e=Ut.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function w(t,e){var n,i,r,o,s,a,l,u;if(1===e.nodeType){if(Tt.hasData(t)&&(o=Tt.access(t),s=Tt.set(e,o),u=o.events))for(r in delete s.handle,s.events={},u)for(n=0,i=u[r].length;n<i;n++)ot.event.add(e,r,u[r][n]);Et.hasData(t)&&(a=Et.access(t),l=ot.extend({},a),Et.set(e,l))}}function x(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Pt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function S(t,e,n,i){e=Q.apply([],e);var r,o,s,a,l,u,d=0,f=t.length,p=f-1,m=e[0],g=ot.isFunction(m);if(g||f>1&&"string"==typeof m&&!it.checkClone&&Bt.test(m))return t.each((function(r){var o=t.eq(r);g&&(e[0]=m.call(this,r,o.html())),S(o,e,n,i)}));if(f&&(o=(r=h(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=(s=ot.map(c(r,"script"),y)).length;d<f;d++)l=r,d!==p&&(l=ot.clone(l,!0,!0),a&&ot.merge(s,c(l,"script"))),n.call(t[d],l,d);if(a)for(u=s[s.length-1].ownerDocument,ot.map(s,b),d=0;d<a;d++)l=s[d],jt.test(l.type||"")&&!Tt.access(l,"globalEval")&&ot.contains(u,l)&&(l.src?ot._evalUrl&&ot._evalUrl(l.src):ot.globalEval(l.textContent.replace(Xt,"")))}return t}function C(t,e,n){for(var i,r=e?ot.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||ot.cleanData(c(i)),i.parentNode&&(n&&ot.contains(i.ownerDocument,i)&&d(c(i,"script")),i.parentNode.removeChild(i));return t}function T(t,e){var n=ot(e.createElement(t)).appendTo(e.body),i=ot.css(n[0],"display");return n.detach(),i}function E(t){var e=G,n=Vt[t];return n||("none"!==(n=T(t,e))&&n||((e=(Yt=(Yt||ot("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),n=T(t,e),Yt.detach()),Vt[t]=n),n}function k(t,e,n){var i,r,o,s,a=t.style;return""!==(s=(n=n||Qt(t))?n.getPropertyValue(e)||n[e]:void 0)&&void 0!==s||ot.contains(t.ownerDocument,t)||(s=ot.style(t,e)),n&&!it.pixelMarginRight()&&Zt.test(s)&&Gt.test(e)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o),void 0!==s?s+"":s}function $(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}function I(t){if(t in re)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=ie.length;n--;)if((t=ie[n]+e)in re)return t}function A(t,e,n){var i=At.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function _(t,e,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===e?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=ot.css(t,n+_t[o],!0,r)),i?("content"===n&&(s-=ot.css(t,"padding"+_t[o],!0,r)),"margin"!==n&&(s-=ot.css(t,"border"+_t[o]+"Width",!0,r))):(s+=ot.css(t,"padding"+_t[o],!0,r),"padding"!==n&&(s+=ot.css(t,"border"+_t[o]+"Width",!0,r)));return s}function z(t,e,n){var i=!0,r="width"===e?t.offsetWidth:t.offsetHeight,o=Qt(t),s="border-box"===ot.css(t,"boxSizing",!1,o);if(r<=0||null==r){if(((r=k(t,e,o))<0||null==r)&&(r=t.style[e]),Zt.test(r))return r;i=s&&(it.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+_(t,e,n||(s?"border":"content"),i,o)+"px"}function P(t,e){for(var n,i,r,o=[],s=0,a=t.length;s<a;s++)(i=t[s]).style&&(o[s]=Tt.get(i,"olddisplay"),n=i.style.display,e?(o[s]||"none"!==n||(i.style.display=""),""===i.style.display&&zt(i)&&(o[s]=Tt.access(i,"olddisplay",E(i.nodeName)))):(r=zt(i),"none"===n&&r||Tt.set(i,"olddisplay",r?n:ot.css(i,"display"))));for(s=0;s<a;s++)(i=t[s]).style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?o[s]||"":"none"));return t}function L(t,e,n,i,r){return new L.prototype.init(t,e,n,i,r)}function j(){return t.setTimeout((function(){oe=void 0})),oe=ot.now()}function D(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=_t[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function N(t,e,n){for(var i,r=(F.tweeners[e]||[]).concat(F.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,e,t))return i}function O(t,e,n){var i,r,o,s,a,l,u,c=this,d={},h=t.style,f=t.nodeType&&zt(t),p=Tt.get(t,"fxshow");for(i in n.queue||(null==(a=ot._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,c.always((function(){c.always((function(){a.unqueued--,ot.queue(t,"fx").length||a.empty.fire()}))}))),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(u=ot.css(t,"display"))?Tt.get(t,"olddisplay")||E(t.nodeName):u)&&"none"===ot.css(t,"float")&&(h.display="inline-block")),n.overflow&&(h.overflow="hidden",c.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),e)if(r=e[i],ae.exec(r)){if(delete e[i],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!p||void 0===p[i])continue;f=!0}d[i]=p&&p[i]||ot.style(t,i)}else u=void 0;if(ot.isEmptyObject(d))"inline"===("none"===u?E(t.nodeName):u)&&(h.display=u);else for(i in p?"hidden"in p&&(f=p.hidden):p=Tt.access(t,"fxshow",{}),o&&(p.hidden=!f),f?ot(t).show():c.done((function(){ot(t).hide()})),c.done((function(){var e;for(e in Tt.remove(t,"fxshow"),d)ot.style(t,e,d[e])})),d)s=N(f?p[i]:0,i,c),i in p||(p[i]=s.start,f&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}function M(t,e){var n,i,r,o,s;for(n in t)if(r=e[i=ot.camelCase(n)],o=t[n],ot.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(s=ot.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}function F(t,e,n){var i,r,o=0,s=F.prefilters.length,a=ot.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=oe||j(),n=Math.max(0,u.startTime+u.duration-e),i=1-(n/u.duration||0),o=0,s=u.tweens.length;o<s;o++)u.tweens[o].run(i);return a.notifyWith(t,[u,i,n]),i<1&&s?n:(a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:ot.extend({},e),opts:ot.extend(!0,{specialEasing:{},easing:ot.easing._default},n),originalProperties:e,originalOptions:n,startTime:oe||j(),duration:n.duration,tweens:[],createTween:function(e,n){var i=ot.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return e?(a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u,e])):a.rejectWith(t,[u,e]),this}}),c=u.props;for(M(c,u.opts.specialEasing);o<s;o++)if(i=F.prefilters[o].call(u,t,c,u.opts))return ot.isFunction(i.stop)&&(ot._queueHooks(u.elem,u.opts.queue).stop=ot.proxy(i.stop,i)),i;return ot.map(c,N,u),ot.isFunction(u.opts.start)&&u.opts.start.call(t,u),ot.fx.timer(ot.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function R(t){return t.getAttribute&&t.getAttribute("class")||""}function q(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(xt)||[];if(ot.isFunction(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function H(t,e,n,i){function r(a){var l;return o[a]=!0,ot.each(t[a]||[],(function(t,a){var u=a(e,n,i);return"string"!=typeof u||s||o[u]?s?!(l=u):void 0:(e.dataTypes.unshift(u),r(u),!1)})),l}var o={},s=t===$e;return r(e.dataTypes[0])||!o["*"]&&r("*")}function W(t,e){var n,i,r=ot.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&ot.extend(!0,t,i),t}function B(t,e,n){for(var i,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}function U(t,e,n,i){var r,o,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=u[l+" "+o]||u["* "+o]))for(r in u)if((a=r.split(" "))[1]===o&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[r]:!0!==u[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function X(t,e,n,i){var r;if(ot.isArray(e))ot.each(e,(function(e,r){n||ze.test(t)?i(t,r):X(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==ot.type(e))i(t,e);else for(r in e)X(t+"["+r+"]",e[r],n,i)}function Y(t){return ot.isWindow(t)?t:9===t.nodeType&&t.defaultView}var V=[],G=t.document,Z=V.slice,Q=V.concat,K=V.push,J=V.indexOf,tt={},et=tt.toString,nt=tt.hasOwnProperty,it={},rt="2.2.4",ot=function(t,e){return new ot.fn.init(t,e)},st=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,at=/^-ms-/,lt=/-([\da-z])/gi,ut=function(t,e){return e.toUpperCase()};ot.fn=ot.prototype={jquery:rt,constructor:ot,selector:"",length:0,toArray:function(){return Z.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:Z.call(this)},pushStack:function(t){var e=ot.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return ot.each(this,t)},map:function(t){return this.pushStack(ot.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(Z.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:K,sort:V.sort,splice:V.splice},ot.extend=ot.fn.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||ot.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=s[e],s!==(i=t[e])&&(u&&i&&(ot.isPlainObject(i)||(r=ot.isArray(i)))?(r?(r=!1,o=n&&ot.isArray(n)?n:[]):o=n&&ot.isPlainObject(n)?n:{},s[e]=ot.extend(u,o,i)):void 0!==i&&(s[e]=i));return s},ot.extend({expando:"jQuery"+(rt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ot.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!ot.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){var e;if("object"!==ot.type(t)||t.nodeType||ot.isWindow(t))return!1;if(t.constructor&&!nt.call(t,"constructor")&&!nt.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||nt.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?tt[et.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;(t=ot.trim(t))&&(1===t.indexOf("use strict")?((e=G.createElement("script")).text=t,G.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(at,"ms-").replace(lt,ut)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var i,r=0;if(n(t))for(i=t.length;r<i&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(st,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?ot.merge(i,"string"==typeof t?[t]:t):K.call(i,t)),i},inArray:function(t,e,n){return null==e?-1:J.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,s=!n;r<o;r++)!e(t[r],r)!==s&&i.push(t[r]);return i},map:function(t,e,i){var r,o,s=0,a=[];if(n(t))for(r=t.length;s<r;s++)null!=(o=e(t[s],s,i))&&a.push(o);else for(s in t)null!=(o=e(t[s],s,i))&&a.push(o);return Q.apply([],a)},guid:1,proxy:function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),ot.isFunction(t))return i=Z.call(arguments,2),r=function(){return t.apply(e||this,i.concat(Z.call(arguments)))},r.guid=t.guid=t.guid||ot.guid++,r},now:Date.now,support:it}),"function"==typeof Symbol&&(ot.fn[Symbol.iterator]=V[Symbol.iterator]),ot.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){tt["[object "+e+"]"]=e.toLowerCase()}));var ct=function(t){function e(t,e,n,i){var r,o,s,a,l,u,d,f,p=e&&e.ownerDocument,m=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==m&&9!==m&&11!==m)return n;if(!i&&((e?e.ownerDocument||e:R)!==P&&z(e),e=e||P,j)){if(11!==m&&(u=vt.exec(t)))if(r=u[1]){if(9===m){if(!(s=e.getElementById(r)))return n;if(s.id===r)return n.push(s),n}else if(p&&(s=p.getElementById(r))&&M(e,s)&&s.id===r)return n.push(s),n}else{if(u[2])return K.apply(n,e.getElementsByTagName(t)),n;if((r=u[3])&&x.getElementsByClassName&&e.getElementsByClassName)return K.apply(n,e.getElementsByClassName(r)),n}if(x.qsa&&!U[t+" "]&&(!D||!D.test(t))){if(1!==m)p=e,f=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(bt,"\\$&"):e.setAttribute("id",a=F),o=(d=E(t)).length,l=ht.test(a)?"#"+a:"[id='"+a+"']";o--;)d[o]=l+" "+h(d[o]);f=d.join(","),p=yt.test(t)&&c(e.parentNode)||e}if(f)try{return K.apply(n,p.querySelectorAll(f)),n}catch(t){}finally{a===F&&e.removeAttribute("id")}}}return $(t.replace(at,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>S.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[F]=!0,t}function r(t){var e=P.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),i=n.length;i--;)S.attrHandle[n[i]]=e}function s(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||Y)-(~t.sourceIndex||Y);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function l(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function u(t){return i((function(e){return e=+e,i((function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))}))}))}function c(t){return t&&void 0!==t.getElementsByTagName&&t}function d(){}function h(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function f(t,e,n){var i=e.dir,r=n&&"parentNode"===i,o=H++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||r)return t(e,n,o)}:function(e,n,s){var a,l,u,c=[q,o];if(s){for(;e=e[i];)if((1===e.nodeType||r)&&t(e,n,s))return!0}else for(;e=e[i];)if(1===e.nodeType||r){if((a=(l=(u=e[F]||(e[F]={}))[e.uniqueID]||(u[e.uniqueID]={}))[i])&&a[0]===q&&a[1]===o)return c[2]=a[2];if(l[i]=c,c[2]=t(e,n,s))return!0}}}function p(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function m(t,n,i){for(var r=0,o=n.length;r<o;r++)e(t,n[r],i);return i}function g(t,e,n,i,r){for(var o,s=[],a=0,l=t.length,u=null!=e;a<l;a++)(o=t[a])&&(n&&!n(o,i,r)||(s.push(o),u&&e.push(a)));return s}function v(t,e,n,r,o,s){return r&&!r[F]&&(r=v(r)),o&&!o[F]&&(o=v(o,s)),i((function(i,s,a,l){var u,c,d,h=[],f=[],p=s.length,v=i||m(e||"*",a.nodeType?[a]:a,[]),y=!t||!i&&e?v:g(v,h,t,a,l),b=n?o||(i?t:p||r)?[]:s:y;if(n&&n(y,b,a,l),r)for(u=g(b,f),r(u,[],a,l),c=u.length;c--;)(d=u[c])&&(b[f[c]]=!(y[f[c]]=d));if(i){if(o||t){if(o){for(u=[],c=b.length;c--;)(d=b[c])&&u.push(y[c]=d);o(null,b=[],u,l)}for(c=b.length;c--;)(d=b[c])&&(u=o?tt(i,d):h[c])>-1&&(i[u]=!(s[u]=d))}}else b=g(b===s?b.splice(p,b.length):b),o?o(null,s,b,l):K.apply(s,b)}))}function y(t){for(var e,n,i,r=t.length,o=S.relative[t[0].type],s=o||S.relative[" "],a=o?1:0,l=f((function(t){return t===e}),s,!0),u=f((function(t){return tt(e,t)>-1}),s,!0),c=[function(t,n,i){var r=!o&&(i||n!==I)||((e=n).nodeType?l(t,n,i):u(t,n,i));return e=null,r}];a<r;a++)if(n=S.relative[t[a].type])c=[f(p(c),n)];else{if((n=S.filter[t[a].type].apply(null,t[a].matches))[F]){for(i=++a;i<r&&!S.relative[t[i].type];i++);return v(a>1&&p(c),a>1&&h(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(at,"$1"),n,a<i&&y(t.slice(a,i)),i<r&&y(t=t.slice(i)),i<r&&h(t))}c.push(n)}return p(c)}function b(t,n){var r=n.length>0,o=t.length>0,s=function(i,s,a,l,u){var c,d,h,f=0,p="0",m=i&&[],v=[],y=I,b=i||o&&S.find.TAG("*",u),w=q+=null==y?1:Math.random()||.1,x=b.length;for(u&&(I=s===P||s||u);p!==x&&null!=(c=b[p]);p++){if(o&&c){for(d=0,s||c.ownerDocument===P||(z(c),a=!j);h=t[d++];)if(h(c,s||P,a)){l.push(c);break}u&&(q=w)}r&&((c=!h&&c)&&f--,i&&m.push(c))}if(f+=p,r&&p!==f){for(d=0;h=n[d++];)h(m,v,s,a);if(i){if(f>0)for(;p--;)m[p]||v[p]||(v[p]=Z.call(l));v=g(v)}K.apply(l,v),u&&!i&&v.length>0&&f+n.length>1&&e.uniqueSort(l)}return u&&(q=w,I=y),m};return r?i(s):s}var w,x,S,C,T,E,k,$,I,A,_,z,P,L,j,D,N,O,M,F="sizzle"+1*new Date,R=t.document,q=0,H=0,W=n(),B=n(),U=n(),X=function(t,e){return t===e&&(_=!0),0},Y=1<<31,V={}.hasOwnProperty,G=[],Z=G.pop,Q=G.push,K=G.push,J=G.slice,tt=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",rt="\\["+nt+"*("+it+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+nt+"*\\]",ot=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+rt+")*)|.*)\\)|)",st=new RegExp(nt+"+","g"),at=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),lt=new RegExp("^"+nt+"*,"+nt+"*"),ut=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ct=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),dt=new RegExp(ot),ht=new RegExp("^"+it+"$"),ft={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it+"|[*])"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},pt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,bt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),xt=function(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},St=function(){z()};try{K.apply(G=J.call(R.childNodes),R.childNodes),G[R.childNodes.length].nodeType}catch(t){K={apply:G.length?function(t,e){Q.apply(t,J.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}for(w in x=e.support={},T=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},z=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:R;return i!==P&&9===i.nodeType&&i.documentElement?(L=(P=i).documentElement,j=!T(P),(n=P.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",St,!1):n.attachEvent&&n.attachEvent("onunload",St)),x.attributes=r((function(t){return t.className="i",!t.getAttribute("className")})),x.getElementsByTagName=r((function(t){return t.appendChild(P.createComment("")),!t.getElementsByTagName("*").length})),x.getElementsByClassName=gt.test(P.getElementsByClassName),x.getById=r((function(t){return L.appendChild(t).id=F,!P.getElementsByName||!P.getElementsByName(F).length})),x.getById?(S.find.ID=function(t,e){if(void 0!==e.getElementById&&j){var n=e.getElementById(t);return n?[n]:[]}},S.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){return t.getAttribute("id")===e}}):(delete S.find.ID,S.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),S.find.TAG=x.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):x.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},S.find.CLASS=x.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&j)return e.getElementsByClassName(t)},N=[],D=[],(x.qsa=gt.test(P.querySelectorAll))&&(r((function(t){L.appendChild(t).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&D.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||D.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+F+"-]").length||D.push("~="),t.querySelectorAll(":checked").length||D.push(":checked"),t.querySelectorAll("a#"+F+"+*").length||D.push(".#.+[+~]")})),r((function(t){var e=P.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&D.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||D.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),D.push(",.*:")}))),(x.matchesSelector=gt.test(O=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&r((function(t){x.disconnectedMatch=O.call(t,"div"),O.call(t,"[s!='']:x"),N.push("!=",ot)})),D=D.length&&new RegExp(D.join("|")),N=N.length&&new RegExp(N.join("|")),e=gt.test(L.compareDocumentPosition),M=e||gt.test(L.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},X=e?function(t,e){if(t===e)return _=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!x.sortDetached&&e.compareDocumentPosition(t)===n?t===P||t.ownerDocument===R&&M(R,t)?-1:e===P||e.ownerDocument===R&&M(R,e)?1:A?tt(A,t)-tt(A,e):0:4&n?-1:1)}:function(t,e){if(t===e)return _=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],l=[e];if(!r||!o)return t===P?-1:e===P?1:r?-1:o?1:A?tt(A,t)-tt(A,e):0;if(r===o)return s(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;a[i]===l[i];)i++;return i?s(a[i],l[i]):a[i]===R?-1:l[i]===R?1:0},P):P},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==P&&z(t),n=n.replace(ct,"='$1']"),x.matchesSelector&&j&&!U[n+" "]&&(!N||!N.test(n))&&(!D||!D.test(n)))try{var i=O.call(t,n);if(i||x.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,P,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==P&&z(t),M(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==P&&z(t);var n=S.attrHandle[e.toLowerCase()],i=n&&V.call(S.attrHandle,e.toLowerCase())?n(t,e,!j):void 0;return void 0!==i?i:x.attributes||!j?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,r=0;if(_=!x.detectDuplicates,A=!x.sortStable&&t.slice(0),t.sort(X),_){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return A=null,t},C=e.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=C(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=C(e);return n},S=e.selectors={cacheLength:50,createPseudo:i,match:ft,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(wt,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(wt,xt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&dt.test(n)&&(e=E(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(wt,xt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&W(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,n,i){return function(r){var o=e.attr(r,t);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(st," ")+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,d,h,f,p,m=o!==s?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(g){if(o){for(;m;){for(h=e;h=h[m];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=m="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&y){for(b=(f=(u=(c=(d=(h=g)[F]||(h[F]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===q&&u[1])&&u[2],h=f&&g.childNodes[f];h=++f&&h&&h[m]||(b=f=0)||p.pop();)if(1===h.nodeType&&++b&&h===e){c[t]=[q,f,b];break}}else if(y&&(b=f=(u=(c=(d=(h=e)[F]||(h[F]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===q&&u[1]),!1===b)for(;(h=++f&&h&&h[m]||(b=f=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&((c=(d=h[F]||(h[F]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]=[q,b]),h!==e)););return(b-=r)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,n){var r,o=S.pseudos[t]||S.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[F]?o(n):o.length>1?(r=[t,t,"",n],S.setFilters.hasOwnProperty(t.toLowerCase())?i((function(t,e){for(var i,r=o(t,n),s=r.length;s--;)t[i=tt(t,r[s])]=!(e[i]=r[s])})):function(t){return o(t,0,r)}):o}},pseudos:{not:i((function(t){var e=[],n=[],r=k(t.replace(at,"$1"));return r[F]?i((function(t,e,n,i){for(var o,s=r(t,null,i,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}})),has:i((function(t){return function(n){return e(t,n).length>0}})),contains:i((function(t){return t=t.replace(wt,xt),function(e){return(e.textContent||e.innerText||C(e)).indexOf(t)>-1}})),lang:i((function(t){return ht.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(wt,xt).toLowerCase(),function(e){var n;do{if(n=j?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===L},focus:function(t){return t===P.activeElement&&(!P.hasFocus||P.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!S.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return pt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:u((function(){return[0]})),last:u((function(t,e){return[e-1]})),eq:u((function(t,e,n){return[n<0?n+e:n]})),even:u((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:u((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:u((function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t})),gt:u((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}},S.pseudos.nth=S.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[w]=a(w);for(w in{submit:!0,reset:!0})S.pseudos[w]=l(w);return d.prototype=S.filters=S.pseudos,S.setFilters=new d,E=e.tokenize=function(t,n){var i,r,o,s,a,l,u,c=B[t+" "];if(c)return n?0:c.slice(0);for(a=t,l=[],u=S.preFilter;a;){for(s in i&&!(r=lt.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=ut.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(at," ")}),a=a.slice(i.length)),S.filter)!(r=ft[s].exec(a))||u[s]&&!(r=u[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}
return n?a.length:a?e.error(t):B(t,l).slice(0)},k=e.compile=function(t,e){var n,i=[],r=[],o=U[t+" "];if(!o){for(e||(e=E(t)),n=e.length;n--;)(o=y(e[n]))[F]?i.push(o):r.push(o);(o=U(t,b(r,i))).selector=t}return o},$=e.select=function(t,e,n,i){var r,o,s,a,l,u="function"==typeof t&&t,d=!i&&E(t=u.selector||t);if(n=n||[],1===d.length){if((o=d[0]=d[0].slice(0)).length>2&&"ID"===(s=o[0]).type&&x.getById&&9===e.nodeType&&j&&S.relative[o[1].type]){if(!(e=(S.find.ID(s.matches[0].replace(wt,xt),e)||[])[0]))return n;u&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=ft.needsContext.test(t)?0:o.length;r--&&(s=o[r],!S.relative[a=s.type]);)if((l=S.find[a])&&(i=l(s.matches[0].replace(wt,xt),yt.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(r,1),!(t=i.length&&h(o)))return K.apply(n,i),n;break}}return(u||k(t,d))(i,e,!j,n,!e||yt.test(t)&&c(e.parentNode)||e),n},x.sortStable=F.split("").sort(X).join("")===F,x.detectDuplicates=!!_,z(),x.sortDetached=r((function(t){return 1&t.compareDocumentPosition(P.createElement("div"))})),r((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||o("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),x.attributes&&r((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||o("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),r((function(t){return null==t.getAttribute("disabled")}))||o(et,(function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null})),e}(t);ot.find=ct,ot.expr=ct.selectors,ot.expr[":"]=ot.expr.pseudos,ot.uniqueSort=ot.unique=ct.uniqueSort,ot.text=ct.getText,ot.isXMLDoc=ct.isXML,ot.contains=ct.contains;var dt=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&ot(t).is(n))break;i.push(t)}return i},ht=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},ft=ot.expr.match.needsContext,pt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,mt=/^.[^:#\[\.,]*$/;ot.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?ot.find.matchesSelector(i,t)?[i]:[]:ot.find.matches(t,ot.grep(e,(function(t){return 1===t.nodeType})))},ot.fn.extend({find:function(t){var e,n=this.length,i=[],r=this;if("string"!=typeof t)return this.pushStack(ot(t).filter((function(){for(e=0;e<n;e++)if(ot.contains(r[e],this))return!0})));for(e=0;e<n;e++)ot.find(t,r[e],i);return(i=this.pushStack(n>1?ot.unique(i):i)).selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(i(this,t||[],!1))},not:function(t){return this.pushStack(i(this,t||[],!0))},is:function(t){return!!i(this,"string"==typeof t&&ft.test(t)?ot(t):t||[],!1).length}});var gt,vt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(ot.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||gt,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:vt.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof ot?e[0]:e,ot.merge(this,ot.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:G,!0)),pt.test(i[1])&&ot.isPlainObject(e))for(i in e)ot.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=G.getElementById(i[2]))&&r.parentNode&&(this.length=1,this[0]=r),this.context=G,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ot.isFunction(t)?void 0!==n.ready?n.ready(t):t(ot):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ot.makeArray(t,this))}).prototype=ot.fn,gt=ot(G);var yt=/^(?:parents|prev(?:Until|All))/,bt={children:!0,contents:!0,next:!0,prev:!0};ot.fn.extend({has:function(t){var e=ot(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(ot.contains(this,e[t]))return!0}))},closest:function(t,e){for(var n,i=0,r=this.length,o=[],s=ft.test(t)||"string"!=typeof t?ot(t,e||this.context):0;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&ot.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?ot.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?J.call(ot(t),this[0]):J.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ot.uniqueSort(ot.merge(this.get(),ot(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ot.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return dt(t,"parentNode")},parentsUntil:function(t,e,n){return dt(t,"parentNode",n)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return dt(t,"nextSibling")},prevAll:function(t){return dt(t,"previousSibling")},nextUntil:function(t,e,n){return dt(t,"nextSibling",n)},prevUntil:function(t,e,n){return dt(t,"previousSibling",n)},siblings:function(t){return ht((t.parentNode||{}).firstChild,t)},children:function(t){return ht(t.firstChild)},contents:function(t){return t.contentDocument||ot.merge([],t.childNodes)}},(function(t,e){ot.fn[t]=function(n,i){var r=ot.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=ot.filter(i,r)),this.length>1&&(bt[t]||ot.uniqueSort(r),yt.test(t)&&r.reverse()),this.pushStack(r)}}));var wt,xt=/\S+/g;ot.Callbacks=function(t){t="string"==typeof t?o(t):ot.extend({},t);var e,n,i,r,s=[],a=[],l=-1,u=function(){for(r=t.once,i=e=!0;a.length;l=-1)for(n=a.shift();++l<s.length;)!1===s[l].apply(n[0],n[1])&&t.stopOnFalse&&(l=s.length,n=!1);t.memory||(n=!1),e=!1,r&&(s=n?[]:"")},c={add:function(){return s&&(n&&!e&&(l=s.length-1,a.push(n)),function e(n){ot.each(n,(function(n,i){ot.isFunction(i)?t.unique&&c.has(i)||s.push(i):i&&i.length&&"string"!==ot.type(i)&&e(i)}))}(arguments),n&&!e&&u()),this},remove:function(){return ot.each(arguments,(function(t,e){for(var n;(n=ot.inArray(e,s,n))>-1;)s.splice(n,1),n<=l&&l--})),this},has:function(t){return t?ot.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=a=[],s=n="",this},disabled:function(){return!s},lock:function(){return r=a=[],n||(s=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},ot.extend({Deferred:function(t){var e=[["resolve","done",ot.Callbacks("once memory"),"resolved"],["reject","fail",ot.Callbacks("once memory"),"rejected"],["notify","progress",ot.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ot.Deferred((function(n){ot.each(e,(function(e,o){var s=ot.isFunction(t[e])&&t[e];r[o[1]]((function(){var t=s&&s.apply(this,arguments);t&&ot.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===i?n.promise():this,s?[t]:arguments)}))})),t=null})).promise()},promise:function(t){return null!=t?ot.extend(t,i):i}},r={};return i.pipe=i.then,ot.each(e,(function(t,o){var s=o[2],a=o[3];i[o[1]]=s.add,a&&s.add((function(){n=a}),e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=s.fireWith})),i.promise(r),t&&t.call(r,r),r},when:function(t){var e,n,i,r=0,o=Z.call(arguments),s=o.length,a=1!==s||t&&ot.isFunction(t.promise)?s:0,l=1===a?t:ot.Deferred(),u=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?Z.call(arguments):r,i===e?l.notifyWith(n,i):--a||l.resolveWith(n,i)}};if(s>1)for(e=new Array(s),n=new Array(s),i=new Array(s);r<s;r++)o[r]&&ot.isFunction(o[r].promise)?o[r].promise().progress(u(r,n,e)).done(u(r,i,o)).fail(l.reject):--a;return a||l.resolveWith(i,o),l.promise()}}),ot.fn.ready=function(t){return ot.ready.promise().done(t),this},ot.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ot.readyWait++:ot.ready(!0)},ready:function(t){(!0===t?--ot.readyWait:ot.isReady)||(ot.isReady=!0,!0!==t&&--ot.readyWait>0||(wt.resolveWith(G,[ot]),ot.fn.triggerHandler&&(ot(G).triggerHandler("ready"),ot(G).off("ready"))))}}),ot.ready.promise=function(e){return wt||(wt=ot.Deferred(),"complete"===G.readyState||"loading"!==G.readyState&&!G.documentElement.doScroll?t.setTimeout(ot.ready):(G.addEventListener("DOMContentLoaded",s),t.addEventListener("load",s))),wt.promise(e)},ot.ready.promise();var St=function(t,e,n,i,r,o,s){var a=0,l=t.length,u=null==n;if("object"===ot.type(n))for(a in r=!0,n)St(t,e,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,ot.isFunction(i)||(s=!0),u&&(s?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(ot(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return r?t:u?e.call(t):l?e(t[0],n):o},Ct=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};a.uid=1,a.prototype={register:function(t,e){var n=e||{};return t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!Ct(t))return{};var e=t[this.expando];return e||(e={},Ct(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[e]=n;else for(i in e)r[i]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var i;return void 0===e||e&&"string"==typeof e&&void 0===n?void 0!==(i=this.get(t,e))?i:this.get(t,ot.camelCase(e)):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i,r,o=t[this.expando];if(void 0!==o){if(void 0===e)this.register(t);else{ot.isArray(e)?i=e.concat(e.map(ot.camelCase)):(r=ot.camelCase(e),i=e in o?[e,r]:(i=r)in o?[i]:i.match(xt)||[]),n=i.length;for(;n--;)delete o[i[n]]}(void 0===e||ot.isEmptyObject(o))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!ot.isEmptyObject(e)}};var Tt=new a,Et=new a,kt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,$t=/[A-Z]/g;ot.extend({hasData:function(t){return Et.hasData(t)||Tt.hasData(t)},data:function(t,e,n){return Et.access(t,e,n)},removeData:function(t,e){Et.remove(t,e)},_data:function(t,e,n){return Tt.access(t,e,n)},_removeData:function(t,e){Tt.remove(t,e)}}),ot.fn.extend({data:function(t,e){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=Et.get(o),1===o.nodeType&&!Tt.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=ot.camelCase(i.slice(5)),l(o,i,r[i]));Tt.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){Et.set(this,t)})):St(this,(function(e){var n,i;if(o&&void 0===e)return void 0!==(n=Et.get(o,t)||Et.get(o,t.replace($t,"-$&").toLowerCase()))?n:(i=ot.camelCase(t),void 0!==(n=Et.get(o,i))||void 0!==(n=l(o,i,void 0))?n:void 0);i=ot.camelCase(t),this.each((function(){var n=Et.get(this,i);Et.set(this,i,e),t.indexOf("-")>-1&&void 0!==n&&Et.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){Et.remove(this,t)}))}}),ot.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Tt.get(t,e),n&&(!i||ot.isArray(n)?i=Tt.access(t,e,ot.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=ot.queue(t,e),i=n.length,r=n.shift(),o=ot._queueHooks(t,e),s=function(){ot.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,s,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Tt.get(t,n)||Tt.access(t,n,{empty:ot.Callbacks("once memory").add((function(){Tt.remove(t,[e+"queue",n])}))})}}),ot.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?ot.queue(this[0],t):void 0===e?this:this.each((function(){var n=ot.queue(this,t,e);ot._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&ot.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){ot.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=ot.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=Tt.get(o[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var It=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,At=new RegExp("^(?:([+-])=|)("+It+")([a-z%]*)$","i"),_t=["Top","Right","Bottom","Left"],zt=function(t,e){return t=e||t,"none"===ot.css(t,"display")||!ot.contains(t.ownerDocument,t)},Pt=/^(?:checkbox|radio)$/i,Lt=/<([\w:-]+)/,jt=/^$|\/(?:java|ecma)script/i,Dt={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,"",""]};Dt.optgroup=Dt.option,Dt.tbody=Dt.tfoot=Dt.colgroup=Dt.caption=Dt.thead,Dt.th=Dt.td;var Nt,Ot,Mt=/<|&#?\w+;/;Nt=G.createDocumentFragment().appendChild(G.createElement("div")),(Ot=G.createElement("input")).setAttribute("type","radio"),Ot.setAttribute("checked","checked"),Ot.setAttribute("name","t"),Nt.appendChild(Ot),it.checkClone=Nt.cloneNode(!0).cloneNode(!0).lastChild.checked,Nt.innerHTML="<textarea>x</textarea>",it.noCloneChecked=!!Nt.cloneNode(!0).lastChild.defaultValue;var Ft=/^key/,Rt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,qt=/^([^.]*)(?:\.(.+)|)/;ot.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,u,c,d,h,f,p,m,g=Tt.get(t);if(g)for(n.handler&&(n=(o=n).handler,r=o.selector),n.guid||(n.guid=ot.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(e){return void 0!==ot&&ot.event.triggered!==e.type?ot.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(xt)||[""]).length;u--;)f=m=(a=qt.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f&&(d=ot.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=ot.event.special[f]||{},c=ot.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&ot.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,s)||t.addEventListener&&t.addEventListener(f,s)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),ot.event.global[f]=!0)},remove:function(t,e,n,i,r){var o,s,a,l,u,c,d,h,f,p,m,g=Tt.hasData(t)&&Tt.get(t);if(g&&(l=g.events)){for(u=(e=(e||"").match(xt)||[""]).length;u--;)if(f=m=(a=qt.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f){for(d=ot.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)c=h[o],!r&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(t,c));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,p,g.handle)||ot.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)ot.event.remove(t,f+e[u],n,i,!0);ot.isEmptyObject(l)&&Tt.remove(t,"handle events")}},dispatch:function(t){t=ot.event.fix(t);var e,n,i,r,o,s=[],a=Z.call(arguments),l=(Tt.get(this,"events")||{})[t.type]||[],u=ot.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,t)){for(s=ot.event.handlers.call(this,t,l),e=0;(r=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(i=((ot.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,r,o,s=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(i=[],n=0;n<a;n++)void 0===i[r=(o=e[n]).selector+" "]&&(i[r]=o.needsContext?ot(r,this).index(l)>-1:ot.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&s.push({elem:l,handlers:i})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},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(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,r,o=e.button;return null==t.pageX&&null!=e.clientX&&(i=(n=t.target.ownerDocument||G).documentElement,r=n.body,t.pageX=e.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[ot.expando])return t;var e,n,i,r=t.type,o=t,s=this.fixHooks[r];for(s||(this.fixHooks[r]=s=Rt.test(r)?this.mouseHooks:Ft.test(r)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,t=new ot.Event(o),e=i.length;e--;)t[n=i[e]]=o[n];return t.target||(t.target=G),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==m()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===m()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&ot.nodeName(this,"input"))return this.click(),!1},_default:function(t){return ot.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},ot.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},ot.Event=function(t,e){if(!(this instanceof ot.Event))return new ot.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?f:p):this.type=t,e&&ot.extend(this,e),this.timeStamp=t&&t.timeStamp||ot.now(),this[ot.expando]=!0},ot.Event.prototype={constructor:ot.Event,isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=f,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=f,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=f,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},ot.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){ot.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===i||ot.contains(i,r))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}})),ot.fn.extend({on:function(t,e,n,i){return g(this,t,e,n,i)},one:function(t,e,n,i){return g(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,ot(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=p),this.each((function(){ot.event.remove(this,t,n,e)}))}});var Ht=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Wt=/<script|<style|<link/i,Bt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ut=/^true\/(.*)/,Xt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ot.extend({htmlPrefilter:function(t){return t.replace(Ht,"<$1></$2>")},clone:function(t,e,n){var i,r,o,s,a=t.cloneNode(!0),l=ot.contains(t.ownerDocument,t);if(!(it.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ot.isXMLDoc(t)))for(s=c(a),i=0,r=(o=c(t)).length;i<r;i++)x(o[i],s[i]);if(e)if(n)for(o=o||c(t),s=s||c(a),i=0,r=o.length;i<r;i++)w(o[i],s[i]);else w(t,a);return(s=c(a,"script")).length>0&&d(s,!l&&c(t,"script")),a},cleanData:function(t){for(var e,n,i,r=ot.event.special,o=0;void 0!==(n=t[o]);o++)if(Ct(n)){if(e=n[Tt.expando]){if(e.events)for(i in e.events)r[i]?ot.event.remove(n,i):ot.removeEvent(n,i,e.handle);n[Tt.expando]=void 0}n[Et.expando]&&(n[Et.expando]=void 0)}}}),ot.fn.extend({domManip:S,detach:function(t){return C(this,t,!0)},remove:function(t){return C(this,t)},text:function(t){return St(this,(function(t){return void 0===t?ot.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return S(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||v(this,t).appendChild(t)}))},prepend:function(){return S(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=v(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return S(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return S(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(ot.cleanData(c(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return ot.clone(this,t,e)}))},html:function(t){return St(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Wt.test(t)&&!Dt[(Lt.exec(t)||["",""])[1].toLowerCase()]){t=ot.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(ot.cleanData(c(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return S(this,arguments,(function(e){var n=this.parentNode;ot.inArray(this,t)<0&&(ot.cleanData(c(this)),n&&n.replaceChild(e,this))}),t)}}),ot.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){ot.fn[t]=function(t){for(var n,i=[],r=ot(t),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),ot(r[s])[e](n),K.apply(i,n.get());return this.pushStack(i)}}));var Yt,Vt={HTML:"block",BODY:"block"},Gt=/^margin/,Zt=new RegExp("^("+It+")(?!px)[a-z%]+$","i"),Qt=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},Kt=function(t,e,n,i){var r,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];for(o in r=n.apply(t,i||[]),e)t.style[o]=s[o];return r},Jt=G.documentElement;!function(){function e(){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="",Jt.appendChild(s);var e=t.getComputedStyle(a);n="1%"!==e.top,o="2px"===e.marginLeft,i="4px"===e.width,a.style.marginRight="50%",r="4px"===e.marginRight,Jt.removeChild(s)}var n,i,r,o,s=G.createElement("div"),a=G.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",it.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),ot.extend(it,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return null==i&&e(),i},pixelMarginRight:function(){return null==i&&e(),r},reliableMarginLeft:function(){return null==i&&e(),o},reliableMarginRight:function(){var e,n=a.appendChild(G.createElement("div"));return n.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",a.style.width="1px",Jt.appendChild(s),e=!parseFloat(t.getComputedStyle(n).marginRight),Jt.removeChild(s),a.removeChild(n),e}}))}();var te=/^(none|table(?!-c[ea]).+)/,ee={position:"absolute",visibility:"hidden",display:"block"},ne={letterSpacing:"0",fontWeight:"400"},ie=["Webkit","O","Moz","ms"],re=G.createElement("div").style;ot.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=k(t,"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(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=ot.camelCase(e),l=t.style;if(e=ot.cssProps[a]||(ot.cssProps[a]=I(a)||a),s=ot.cssHooks[e]||ot.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:l[e];"string"===(o=typeof n)&&(r=At.exec(n))&&r[1]&&(n=u(t,e,r),o="number"),null!=n&&n==n&&("number"===o&&(n+=r&&r[3]||(ot.cssNumber[a]?"":"px")),it.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l[e]=n))}},css:function(t,e,n,i){var r,o,s,a=ot.camelCase(e);return e=ot.cssProps[a]||(ot.cssProps[a]=I(a)||a),(s=ot.cssHooks[e]||ot.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=k(t,e,i)),"normal"===r&&e in ne&&(r=ne[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),ot.each(["height","width"],(function(t,e){ot.cssHooks[e]={get:function(t,n,i){if(n)return te.test(ot.css(t,"display"))&&0===t.offsetWidth?Kt(t,ee,(function(){return z(t,e,i)})):z(t,e,i)},set:function(t,n,i){var r,o=i&&Qt(t),s=i&&_(t,e,i,"border-box"===ot.css(t,"boxSizing",!1,o),o);return s&&(r=At.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=ot.css(t,e)),A(t,n,s)}}})),ot.cssHooks.marginLeft=$(it.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(k(t,"marginLeft"))||t.getBoundingClientRect().left-Kt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),ot.cssHooks.marginRight=$(it.reliableMarginRight,(function(t,e){if(e)return Kt(t,{display:"inline-block"},k,[t,"marginRight"])})),ot.each({margin:"",padding:"",border:"Width"},(function(t,e){ot.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+_t[i]+e]=o[i]||o[i-2]||o[0];return r}},Gt.test(t)||(ot.cssHooks[t+e].set=A)})),ot.fn.extend({css:function(t,e){return St(this,(function(t,e,n){var i,r,o={},s=0;if(ot.isArray(e)){for(i=Qt(t),r=e.length;s<r;s++)o[e[s]]=ot.css(t,e[s],!1,i);return o}return void 0!==n?ot.style(t,e,n):ot.css(t,e)}),t,e,arguments.length>1)},show:function(){return P(this,!0)},hide:function(){return P(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){zt(this)?ot(this).show():ot(this).hide()}))}}),ot.Tween=L,L.prototype={constructor:L,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||ot.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(ot.cssNumber[n]?"":"px")},cur:function(){var t=L.propHooks[this.prop];return t&&t.get?t.get(this):L.propHooks._default.get(this)},run:function(t){var e,n=L.propHooks[this.prop];return this.options.duration?this.pos=e=ot.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):L.propHooks._default.set(this),this}},L.prototype.init.prototype=L.prototype,L.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=ot.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){ot.fx.step[t.prop]?ot.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ot.cssProps[t.prop]]&&!ot.cssHooks[t.prop]?t.elem[t.prop]=t.now:ot.style(t.elem,t.prop,t.now+t.unit)}}},L.propHooks.scrollTop=L.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ot.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ot.fx=L.prototype.init,ot.fx.step={};var oe,se,ae=/^(?:toggle|show|hide)$/,le=/queueHooks$/;ot.Animation=ot.extend(F,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return u(n.elem,t,At.exec(e),n),n}]},tweener:function(t,e){ot.isFunction(t)?(e=t,t=["*"]):t=t.match(xt);for(var n,i=0,r=t.length;i<r;i++)n=t[i],F.tweeners[n]=F.tweeners[n]||[],F.tweeners[n].unshift(e)},prefilters:[O],prefilter:function(t,e){e?F.prefilters.unshift(t):F.prefilters.push(t)}}),ot.speed=function(t,e,n){var i=t&&"object"==typeof t?ot.extend({},t):{complete:n||!n&&e||ot.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ot.isFunction(e)&&e};return i.duration=ot.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in ot.fx.speeds?ot.fx.speeds[i.duration]:ot.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){ot.isFunction(i.old)&&i.old.call(this),i.queue&&ot.dequeue(this,i.queue)},i},ot.fn.extend({fadeTo:function(t,e,n,i){return this.filter(zt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=ot.isEmptyObject(t),o=ot.speed(e,n,i),s=function(){var e=F(this,ot.extend({},t),o);(r||Tt.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=ot.timers,s=Tt.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&le.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||ot.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=Tt.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=ot.timers,s=i?i.length:0;for(n.finish=!0,ot.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),ot.each(["toggle","show","hide"],(function(t,e){var n=ot.fn[e];ot.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(D(e,!0),t,i,r)}})),ot.each({slideDown:D("show"),slideUp:D("hide"),slideToggle:D("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){ot.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),ot.timers=[],ot.fx.tick=function(){var t,e=0,n=ot.timers;for(oe=ot.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||ot.fx.stop(),oe=void 0},ot.fx.timer=function(t){ot.timers.push(t),t()?ot.fx.start():ot.timers.pop()},ot.fx.interval=13,ot.fx.start=function(){se||(se=t.setInterval(ot.fx.tick,ot.fx.interval))},ot.fx.stop=function(){t.clearInterval(se),se=null},ot.fx.speeds={slow:600,fast:200,_default:400},ot.fn.delay=function(e,n){return e=ot.fx&&ot.fx.speeds[e]||e,n=n||"fx",this.queue(n,(function(n,i){var r=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(r)}}))},function(){var t=G.createElement("input"),e=G.createElement("select"),n=e.appendChild(G.createElement("option"));t.type="checkbox",it.checkOn=""!==t.value,it.optSelected=n.selected,e.disabled=!0,it.optDisabled=!n.disabled,(t=G.createElement("input")).value="t",t.type="radio",it.radioValue="t"===t.value}();var ue,ce=ot.expr.attrHandle;ot.fn.extend({attr:function(t,e){return St(this,ot.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){ot.removeAttr(this,t)}))}}),ot.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?ot.prop(t,e,n):(1===o&&ot.isXMLDoc(t)||(e=e.toLowerCase(),r=ot.attrHooks[e]||(ot.expr.match.bool.test(e)?ue:void 0)),void 0!==n?null===n?void ot.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=ot.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!it.radioValue&&"radio"===e&&ot.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i,r=0,o=e&&e.match(xt)
;if(o&&1===t.nodeType)for(;n=o[r++];)i=ot.propFix[n]||n,ot.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)}}),ue={set:function(t,e,n){return!1===e?ot.removeAttr(t,n):t.setAttribute(n,n),n}},ot.each(ot.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=ce[e]||ot.find.attr;ce[e]=function(t,e,i){var r,o;return i||(o=ce[e],ce[e]=r,r=null!=n(t,e,i)?e.toLowerCase():null,ce[e]=o),r}}));var de=/^(?:input|select|textarea|button)$/i,he=/^(?:a|area)$/i;ot.fn.extend({prop:function(t,e){return St(this,ot.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[ot.propFix[t]||t]}))}}),ot.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ot.isXMLDoc(t)||(e=ot.propFix[e]||e,r=ot.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=ot.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||he.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),it.optSelected||(ot.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),ot.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){ot.propFix[this.toLowerCase()]=this}));var fe=/[\t\r\n\f]/g;ot.fn.extend({addClass:function(t){var e,n,i,r,o,s,a,l=0;if(ot.isFunction(t))return this.each((function(e){ot(this).addClass(t.call(this,e,R(this)))}));if("string"==typeof t&&t)for(e=t.match(xt)||[];n=this[l++];)if(r=R(n),i=1===n.nodeType&&(" "+r+" ").replace(fe," ")){for(s=0;o=e[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(a=ot.trim(i))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,i,r,o,s,a,l=0;if(ot.isFunction(t))return this.each((function(e){ot(this).removeClass(t.call(this,e,R(this)))}));if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(xt)||[];n=this[l++];)if(r=R(n),i=1===n.nodeType&&(" "+r+" ").replace(fe," ")){for(s=0;o=e[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(a=ot.trim(i))&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):ot.isFunction(t)?this.each((function(n){ot(this).toggleClass(t.call(this,n,R(this),e),e)})):this.each((function(){var e,i,r,o;if("string"===n)for(i=0,r=ot(this),o=t.match(xt)||[];e=o[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==n||((e=R(this))&&Tt.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Tt.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+R(n)+" ").replace(fe," ").indexOf(e)>-1)return!0;return!1}});var pe=/\r/g,me=/[\x20\t\r\n\f]+/g;ot.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=ot.isFunction(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,ot(this).val()):t)?r="":"number"==typeof r?r+="":ot.isArray(r)&&(r=ot.map(r,(function(t){return null==t?"":t+""}))),(e=ot.valHooks[this.type]||ot.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=ot.valHooks[r.type]||ot.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(pe,""):null==n?"":n:void 0}}),ot.extend({valHooks:{option:{get:function(t){var e=ot.find.attr(t,"value");return null!=e?e:ot.trim(ot.text(t)).replace(me," ")}},select:{get:function(t){for(var e,n,i=t.options,r=t.selectedIndex,o="select-one"===t.type||r<0,s=o?null:[],a=o?r+1:i.length,l=r<0?a:o?r:0;l<a;l++)if(((n=i[l]).selected||l===r)&&(it.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ot.nodeName(n.parentNode,"optgroup"))){if(e=ot(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=ot.makeArray(e),s=r.length;s--;)((i=r[s]).selected=ot.inArray(ot.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),ot.each(["radio","checkbox"],(function(){ot.valHooks[this]={set:function(t,e){if(ot.isArray(e))return t.checked=ot.inArray(ot(t).val(),e)>-1}},it.checkOn||(ot.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var ge=/^(?:focusinfocus|focusoutblur)$/;ot.extend(ot.event,{trigger:function(e,n,i,r){var o,s,a,l,u,c,d,h=[i||G],f=nt.call(e,"type")?e.type:e,p=nt.call(e,"namespace")?e.namespace.split("."):[];if(s=a=i=i||G,3!==i.nodeType&&8!==i.nodeType&&!ge.test(f+ot.event.triggered)&&(f.indexOf(".")>-1&&(p=f.split("."),f=p.shift(),p.sort()),u=f.indexOf(":")<0&&"on"+f,(e=e[ot.expando]?e:new ot.Event(f,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:ot.makeArray(n,[e]),d=ot.event.special[f]||{},r||!d.trigger||!1!==d.trigger.apply(i,n))){if(!r&&!d.noBubble&&!ot.isWindow(i)){for(l=d.delegateType||f,ge.test(l+f)||(s=s.parentNode);s;s=s.parentNode)h.push(s),a=s;a===(i.ownerDocument||G)&&h.push(a.defaultView||a.parentWindow||t)}for(o=0;(s=h[o++])&&!e.isPropagationStopped();)e.type=o>1?l:d.bindType||f,(c=(Tt.get(s,"events")||{})[e.type]&&Tt.get(s,"handle"))&&c.apply(s,n),(c=u&&s[u])&&c.apply&&Ct(s)&&(e.result=c.apply(s,n),!1===e.result&&e.preventDefault());return e.type=f,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),n)||!Ct(i)||u&&ot.isFunction(i[f])&&!ot.isWindow(i)&&((a=i[u])&&(i[u]=null),ot.event.triggered=f,i[f](),ot.event.triggered=void 0,a&&(i[u]=a)),e.result}},simulate:function(t,e,n){var i=ot.extend(new ot.Event,n,{type:t,isSimulated:!0});ot.event.trigger(i,null,e)}}),ot.fn.extend({trigger:function(t,e){return this.each((function(){ot.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return ot.event.trigger(t,e,n,!0)}}),ot.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(t,e){ot.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}})),ot.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),it.focusin="onfocusin"in t,it.focusin||ot.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){ot.event.simulate(e,t.target,ot.event.fix(t))};ot.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=Tt.access(i,e);r||i.addEventListener(t,n,!0),Tt.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=Tt.access(i,e)-1;r?Tt.access(i,e,r):(i.removeEventListener(t,n,!0),Tt.remove(i,e))}}}));var ve=t.location,ye=ot.now(),be=/\?/;ot.parseJSON=function(t){return JSON.parse(t+"")},ot.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||ot.error("Invalid XML: "+e),n};var we=/#.*$/,xe=/([?&])_=[^&]*/,Se=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ce=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Te=/^(?:GET|HEAD)$/,Ee=/^\/\//,ke={},$e={},Ie="*/".concat("*"),Ae=G.createElement("a");Ae.href=ve.href,ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ve.href,type:"GET",isLocal:Ce.test(ve.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ie,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":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?W(W(t,ot.ajaxSettings),e):W(ot.ajaxSettings,t)},ajaxPrefilter:q(ke),ajaxTransport:q($e),ajax:function(e,n){function i(e,n,i,a){var u,d,y,b,x,C=n;2!==w&&(w=2,l&&t.clearTimeout(l),r=void 0,s=a||"",S.readyState=e>0?4:0,u=e>=200&&e<300||304===e,i&&(b=B(h,S,i)),b=U(h,b,S,u),u?(h.ifModified&&((x=S.getResponseHeader("Last-Modified"))&&(ot.lastModified[o]=x),(x=S.getResponseHeader("etag"))&&(ot.etag[o]=x)),204===e||"HEAD"===h.type?C="nocontent":304===e?C="notmodified":(C=b.state,d=b.data,u=!(y=b.error))):(y=C,!e&&C||(C="error",e<0&&(e=0))),S.status=e,S.statusText=(n||C)+"",u?m.resolveWith(f,[d,C,S]):m.rejectWith(f,[S,C,y]),S.statusCode(v),v=void 0,c&&p.trigger(u?"ajaxSuccess":"ajaxError",[S,h,u?d:y]),g.fireWith(f,[S,C]),c&&(p.trigger("ajaxComplete",[S,h]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=void 0),n=n||{};var r,o,s,a,l,u,c,d,h=ot.ajaxSetup({},n),f=h.context||h,p=h.context&&(f.nodeType||f.jquery)?ot(f):ot.event,m=ot.Deferred(),g=ot.Callbacks("once memory"),v=h.statusCode||{},y={},b={},w=0,x="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(2===w){if(!a)for(a={};e=Se.exec(s);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===w?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return w||(t=b[n]=b[n]||t,y[t]=e),this},overrideMimeType:function(t){return w||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(w<2)for(e in t)v[e]=[v[e],t[e]];else S.always(t[S.status]);return this},abort:function(t){var e=t||x;return r&&r.abort(e),i(0,e),this}};if(m.promise(S).complete=g.add,S.success=S.done,S.error=S.fail,h.url=((e||h.url||ve.href)+"").replace(we,"").replace(Ee,ve.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=ot.trim(h.dataType||"*").toLowerCase().match(xt)||[""],null==h.crossDomain){u=G.createElement("a");try{u.href=h.url,u.href=u.href,h.crossDomain=Ae.protocol+"//"+Ae.host!=u.protocol+"//"+u.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ot.param(h.data,h.traditional)),H(ke,h,n,S),2===w)return S;for(d in(c=ot.event&&h.global)&&0==ot.active++&&ot.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Te.test(h.type),o=h.url,h.hasContent||(h.data&&(o=h.url+=(be.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(h.url=xe.test(o)?o.replace(xe,"$1_="+ye++):o+(be.test(o)?"&":"?")+"_="+ye++)),h.ifModified&&(ot.lastModified[o]&&S.setRequestHeader("If-Modified-Since",ot.lastModified[o]),ot.etag[o]&&S.setRequestHeader("If-None-Match",ot.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ie+"; q=0.01":""):h.accepts["*"]),h.headers)S.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(f,S,h)||2===w))return S.abort();for(d in x="abort",{success:1,error:1,complete:1})S[d](h[d]);if(r=H($e,h,n,S)){if(S.readyState=1,c&&p.trigger("ajaxSend",[S,h]),2===w)return S;h.async&&h.timeout>0&&(l=t.setTimeout((function(){S.abort("timeout")}),h.timeout));try{w=1,r.send(y,i)}catch(t){if(!(w<2))throw t;i(-1,t)}}else i(-1,"No Transport");return S},getJSON:function(t,e,n){return ot.get(t,e,n,"json")},getScript:function(t,e){return ot.get(t,void 0,e,"script")}}),ot.each(["get","post"],(function(t,e){ot[e]=function(t,n,i,r){return ot.isFunction(n)&&(r=r||i,i=n,n=void 0),ot.ajax(ot.extend({url:t,type:e,dataType:r,data:n,success:i},ot.isPlainObject(t)&&t))}})),ot._evalUrl=function(t){return ot.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},ot.fn.extend({wrapAll:function(t){var e;return ot.isFunction(t)?this.each((function(e){ot(this).wrapAll(t.call(this,e))})):(this[0]&&(e=ot(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this)},wrapInner:function(t){return ot.isFunction(t)?this.each((function(e){ot(this).wrapInner(t.call(this,e))})):this.each((function(){var e=ot(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=ot.isFunction(t);return this.each((function(n){ot(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(){return this.parent().each((function(){ot.nodeName(this,"body")||ot(this).replaceWith(this.childNodes)})).end()}}),ot.expr.filters.hidden=function(t){return!ot.expr.filters.visible(t)},ot.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var _e=/%20/g,ze=/\[\]$/,Pe=/\r?\n/g,Le=/^(?:submit|button|image|reset|file)$/i,je=/^(?:input|select|textarea|keygen)/i;ot.param=function(t,e){var n,i=[],r=function(t,e){e=ot.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=ot.ajaxSettings&&ot.ajaxSettings.traditional),ot.isArray(t)||t.jquery&&!ot.isPlainObject(t))ot.each(t,(function(){r(this.name,this.value)}));else for(n in t)X(n,t[n],e,r);return i.join("&").replace(_e,"+")},ot.fn.extend({serialize:function(){return ot.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=ot.prop(this,"elements");return t?ot.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!ot(this).is(":disabled")&&je.test(this.nodeName)&&!Le.test(t)&&(this.checked||!Pt.test(t))})).map((function(t,e){var n=ot(this).val();return null==n?null:ot.isArray(n)?ot.map(n,(function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}})):{name:e.name,value:n.replace(Pe,"\r\n")}})).get()}}),ot.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var De={0:200,1223:204},Ne=ot.ajaxSettings.xhr();it.cors=!!Ne&&"withCredentials"in Ne,it.ajax=Ne=!!Ne,ot.ajaxTransport((function(e){var n,i;if(it.cors||Ne&&!e.crossDomain)return{send:function(r,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);n=function(t){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(De[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout((function(){n&&i()}))},n=n("abort");try{a.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}})),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return ot.globalEval(t),t}}}),ot.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),ot.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain)return{send:function(i,r){e=ot("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),G.head.appendChild(e[0])},abort:function(){n&&n()}}}));var Oe=[],Me=/(=)\?(?=&|$)|\?\?/;ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Oe.pop()||ot.expando+"_"+ye++;return this[t]=!0,t}}),ot.ajaxPrefilter("json jsonp",(function(e,n,i){var r,o,s,a=!1!==e.jsonp&&(Me.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Me.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=ot.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Me,"$1"+r):!1!==e.jsonp&&(e.url+=(be.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||ot.error(r+" was not called"),s[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){s=arguments},i.always((function(){void 0===o?ot(t).removeProp(r):t[r]=o,e[r]&&(e.jsonpCallback=n.jsonpCallback,Oe.push(r)),s&&ot.isFunction(o)&&o(s[0]),s=o=void 0})),"script"})),ot.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||G;var i=pt.exec(t),r=!n&&[];return i?[e.createElement(i[1])]:(i=h([t],e,r),r&&r.length&&ot(r).remove(),ot.merge([],i.childNodes))};var Fe=ot.fn.load;ot.fn.load=function(t,e,n){if("string"!=typeof t&&Fe)return Fe.apply(this,arguments);var i,r,o,s=this,a=t.indexOf(" ");return a>-1&&(i=ot.trim(t.slice(a)),t=t.slice(0,a)),ot.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&ot.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,s.html(i?ot("<div>").append(ot.parseHTML(t)).find(i):t)})).always(n&&function(t,e){s.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){ot.fn[e]=function(t){return this.on(e,t)}})),ot.expr.filters.animated=function(t){return ot.grep(ot.timers,(function(e){return t===e.elem})).length},ot.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,u=ot.css(t,"position"),c=ot(t),d={};"static"===u&&(t.style.position="relative"),a=c.offset(),o=ot.css(t,"top"),l=ot.css(t,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(s=(i=c.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),ot.isFunction(e)&&(e=e.call(t,n,ot.extend({},a))),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+r),"using"in e?e.using.call(t,d):c.css(d)}},ot.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){ot.offset.setOffset(this,t,e)}));var e,n,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;return o?(e=o.documentElement,ot.contains(e,i)?(r=i.getBoundingClientRect(),n=Y(o),{top:r.top+n.pageYOffset-e.clientTop,left:r.left+n.pageXOffset-e.clientLeft}):r):void 0},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===ot.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ot.nodeName(t[0],"html")||(i=t.offset()),i.top+=ot.css(t[0],"borderTopWidth",!0),i.left+=ot.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-ot.css(n,"marginTop",!0),left:e.left-i.left-ot.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===ot.css(t,"position");)t=t.offsetParent;return t||Jt}))}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;ot.fn[t]=function(i){return St(this,(function(t,i,r){var o=Y(t);if(void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r}),t,i,arguments.length)}})),ot.each(["top","left"],(function(t,e){ot.cssHooks[e]=$(it.pixelPosition,(function(t,n){if(n)return n=k(t,e),Zt.test(n)?ot(t).position()[e]+"px":n}))})),ot.each({Height:"height",Width:"width"},(function(t,e){ot.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){ot.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===r?"margin":"border");return St(this,(function(e,n,i){var r;return ot.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===i?ot.css(e,n,s):ot.style(e,n,i,s)}),e,o?i:void 0,o,null)}}))})),ot.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),ot.fn.andSelf=ot.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],(function(){return ot}));var Re=t.jQuery,qe=t.$;return ot.noConflict=function(e){return t.$===ot&&(t.$=qe),e&&t.jQuery===ot&&(t.jQuery=Re),ot},e||(t.jQuery=t.$=ot),ot})),function(){"use strict";var t=function(t,e){var n;t.rails!==e&&t.error("jquery-ujs has already been loaded!");var i=t(document);t.rails=n={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form:not([data-turbo=true])",formInputClickSelector:"form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return t("meta[name=csrf-token]").attr("content")},csrfParam:function(){return t("meta[name=csrf-param]").attr("content")},CSRFProtection:function(t){var e=n.csrfToken();e&&t.setRequestHeader("X-CSRF-Token",e)},refreshCSRFTokens:function(){t('form input[name="'+n.csrfParam()+'"]').val(n.csrfToken())},fire:function(e,n,i){var r=t.Event(n);return e.trigger(r,i),!1!==r.result},confirm:function(t){return confirm(t)},ajax:function(e){return t.ajax(e)},href:function(t){return t[0].href},isRemote:function(t){return t.data("remote")!==e&&!1!==t.data("remote")},handleRemote:function(i){var r,o,s,a,l,u;if(n.fire(i,"ajax:before")){if(a=i.data("with-credentials")||null,l=i.data("type")||t.ajaxSettings&&t.ajaxSettings.dataType,i.is("form")){r=i.data("ujs:submit-button-formmethod")||i.attr("method"),o=i.data("ujs:submit-button-formaction")||i.attr("action"),s=t(i[0]).serializeArray();var c=i.data("ujs:submit-button");c&&(s.push(c),i.data("ujs:submit-button",null)),i.data("ujs:submit-button-formmethod",null),i.data("ujs:submit-button-formaction",null)}else i.is(n.inputChangeSelector)?(r=i.data("method"),o=i.data("url"),s=i.serialize(),i.data("params")&&(s=s+"&"+i.data("params"))):i.is(n.buttonClickSelector)?(r=i.data("method")||"get",o=i.data("url"),s=i.serialize(),i.data("params")&&(s=s+"&"+i.data("params"))):(r=i.data("method"),o=n.href(i),s=i.data("params")||null);return u={type:r||"GET",data:s,dataType:l,beforeSend:function(t,r){if(r.dataType===e&&t.setRequestHeader("accept","*/*;q=0.5, "+r.accepts.script),!n.fire(i,"ajax:beforeSend",[t,r]))return!1;i.trigger("ajax:send",t)},success:function(t,e,n){i.trigger("ajax:success",[t,e,n])},complete:function(t,e){i.trigger("ajax:complete",[t,e])},error:function(t,e,n){i.trigger("ajax:error",[t,e,n])},crossDomain:n.isCrossDomain(o)},a&&(u.xhrFields={withCredentials:a}),o&&(u.url=o),n.ajax(u)}return!1},isCrossDomain:function(t){var e=document.createElement("a");e.href=location.href;var n=document.createElement("a");try{return n.href=t,n.href=n.href,!((!n.protocol||":"===n.protocol)&&!n.host||e.protocol+"//"+e.host==n.protocol+"//"+n.host)}catch(t){return!0}},handleMethod:function(i){var r=n.href(i),o=i.data("method"),s=i.attr("target"),a=n.csrfToken(),l=n.csrfParam(),u=t('<form method="post" action="'+r+'"></form>'),c='<input name="_method" value="'+o+'" type="hidden" />';l===e||a===e||n.isCrossDomain(r)||(c+='<input name="'+l+'" value="'+a+'" type="hidden" />'),s&&u.attr("target",s),u.hide().append(c).appendTo("body"),u.submit()},formElements:function(e,n){return e.is("form")?t(e[0].elements).filter(n):e.find(n)},disableFormElements:function(e){n.formElements(e,n.disableSelector).each((function(){n.disableFormElement(t(this))}))},disableFormElement:function(t){var n,i;n=t.is("button")?"html":"val",(i=t.data("disable-with"))!==e&&(t.data("ujs:enable-with",t[n]()),t[n](i)),t.prop("disabled",!0),t.data("ujs:disabled",!0)},enableFormElements:function(e){n.formElements(e,n.enableSelector).each((function(){n.enableFormElement(t(this))}))},enableFormElement:function(t){var n=t.is("button")?"html":"val";t.data("ujs:enable-with")!==e&&(t[n](t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.prop("disabled",!1),t.removeData("ujs:disabled")},allowAction:function(t){var e,i=t.data("confirm"),r=!1;if(!i)return!0;if(n.fire(t,"confirm")){try{r=n.confirm(i)}catch(t){(console.error||console.log).call(console,t.stack||t)}e=n.fire(t,"confirm:complete",[r])}return r&&e},blankInputs:function(e,n,i){var r,o,s,a=t(),l=n||"input,textarea",u=e.find(l),c={};return u.each((function(){(r=t(this)).is("input[type=radio]")?(s=r.attr("name"),c[s]||(0===e.find('input[type=radio]:checked[name="'+s+'"]').length&&(o=e.find('input[type=radio][name="'+s+'"]'),a=a.add(o)),c[s]=s)):(r.is("input[type=checkbox],input[type=radio]")?r.is(":checked"):!!r.val())===i&&(a=a.add(r))})),!!a.length&&a},nonBlankInputs:function(t,e){return n.blankInputs(t,e,!0)},stopEverything:function(e){return t(e.target).trigger("ujs:everythingStopped"),e.stopImmediatePropagation(),!1},disableElement:function(t){var i=t.data("disable-with");i!==e&&(t.data("ujs:enable-with",t.html()),t.html(i)),t.on("click.railsDisable",(function(t){return n.stopEverything(t)})),t.data("ujs:disabled",!0)},enableElement:function(t){t.data("ujs:enable-with")!==e&&(t.html(t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.off("click.railsDisable"),t.removeData("ujs:disabled")}},n.fire(i,"rails:attachBindings")&&(t.ajaxPrefilter((function(t,e,i){t.crossDomain||n.CSRFProtection(i)})),t(window).on("pageshow.rails",(function(){t(t.rails.enableSelector).each((function(){var e=t(this);e.data("ujs:disabled")&&t.rails.enableFormElement(e)})),t(t.rails.linkDisableSelector).each((function(){var e=t(this);e.data("ujs:disabled")&&t.rails.enableElement(e)}))})),i.on("ajax:complete",n.linkDisableSelector,(function(){n.enableElement(t(this))})),i.on("ajax:complete",n.buttonDisableSelector,(function(){n.enableFormElement(t(this))})),i.on("click.rails",n.linkClickSelector,(function(e){var i=t(this),r=i.data("method"),o=i.data("params"),s=e.metaKey||e.ctrlKey;if(!n.allowAction(i))return n.stopEverything(e);if(!s&&i.is(n.linkDisableSelector)&&n.disableElement(i),n.isRemote(i)){if(s&&(!r||"GET"===r)&&!o)return!0;var a=n.handleRemote(i);return!1===a?n.enableElement(i):a.fail((function(){n.enableElement(i)})),!1}return r?(n.handleMethod(i),!1):void 0})),i.on("click.rails",n.buttonClickSelector,(function(e){var i=t(this);if(!n.allowAction(i)||!n.isRemote(i))return n.stopEverything(e);i.is(n.buttonDisableSelector)&&n.disableFormElement(i);var r=n.handleRemote(i);return!1===r?n.enableFormElement(i):r.fail((function(){n.enableFormElement(i)})),!1})),i.on("change.rails",n.inputChangeSelector,(function(e){var i=t(this);return n.allowAction(i)&&n.isRemote(i)?(n.handleRemote(i),!1):n.stopEverything(e)})),i.on("submit.rails",n.formSubmitSelector,(function(i){var r,o,s=t(this),a=n.isRemote(s);if(!n.allowAction(s))return n.stopEverything(i);if(s.attr("novalidate")===e)if(s.data("ujs:formnovalidate-button")===e){if((r=n.blankInputs(s,n.requiredInputSelector,!1))&&n.fire(s,"ajax:aborted:required",[r]))return n.stopEverything(i)}else s.data("ujs:formnovalidate-button",e);if(a){if(o=n.nonBlankInputs(s,n.fileInputSelector)){setTimeout((function(){n.disableFormElements(s)}),13);var l=n.fire(s,"ajax:aborted:file",[o]);return l||setTimeout((function(){n.enableFormElements(s)}),13),l}return n.handleRemote(s),!1}setTimeout((function(){n.disableFormElements(s)}),13)})),i.on("click.rails",n.formInputClickSelector,(function(e){var i=t(this);if(!n.allowAction(i))return n.stopEverything(e);var r=i.attr("name"),o=r?{name:r,value:i.val()}:null,s=i.closest("form");0===s.length&&(s=t("#"+i.attr("form"))),s.data("ujs:submit-button",o),s.data("ujs:formnovalidate-button",i.attr("formnovalidate")),s.data("ujs:submit-button-formaction",i.attr("formaction")),s.data("ujs:submit-button-formmethod",i.attr("formmethod"))})),i.on("ajax:send.rails",n.formSubmitSelector,(function(e){this===e.target&&n.disableFormElements(t(this))})),i.on("ajax:complete.rails",n.formSubmitSelector,(function(e){this===e.target&&n.enableFormElements(t(this))})),t((function(){n.refreshCSRFTokens()})))};window.jQuery?t(jQuery):"object"==typeof exports&&"object"==typeof module&&(module.exports=t)}(),function(t,e){if(t){var n=function(){e(t.lazySizes),t.removeEventListener("lazyunveilread",n,!0)};e=e.bind(null,t,t.document),"object"==typeof module&&module.exports?e(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],e):t.lazySizes?n():t.addEventListener("lazyunveilread",n,!0)}}("undefined"!=typeof window?window:0,(function(t,e,n){"use strict";var i,r,o,s,a,l,u,c,d,h,f,p,m,g,v,y,b,w,x=n.cfg,S=e.createElement("img"),C="sizes"in S&&"srcset"in S,T=/\s+\d+h/g,E=(r=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,o=Array.prototype.forEach,function(){var t=e.createElement("img"),i=function(t){var e,n,i=t.getAttribute(x.srcsetAttr);i&&(n=i.match(r))&&((e="w"==n[2]?n[1]/n[3]:n[3]/n[1])&&t.setAttribute("data-aspectratio",e),t.setAttribute(x.srcsetAttr,i.replace(T,"")))},s=function(t){if(t.detail.instance==n){var e=t.target.parentNode;e&&"PICTURE"==e.nodeName&&o.call(e.getElementsByTagName("source"),i),i(t.target)}},a=function(){t.currentSrc&&e.removeEventListener("lazybeforeunveil",s)};e.addEventListener("lazybeforeunveil",s),t.onload=a,t.onerror=a,t.srcset="data:,a 1w 1h",t.complete&&a()});(x.supportsType||(x.supportsType=function(t){return!t}),t.HTMLPictureElement&&C)?!n.hasHDescriptorFix&&e.msElementsFromPoint&&(n.hasHDescriptorFix=!0,E()):t.picturefill||x.pf||(x.pf=function(e){var n,r;if(!t.picturefill)for(n=0,r=e.elements.length;n<r;n++)i(e.elements[n])},c=function(t,e){return t.w-e.w},d=/^\s*\d+\.*\d*px\s*$/,h=function(t){for(var e,n,i=t.length,r=t[i-1],o=0;o<i;o++)if((r=t[o]).d=r.w/t.w,r.d>=t.d){!r.cached&&(e=t[o-1])&&e.d>t.d-.13*Math.pow(t.d,2.2)&&(n=Math.pow(e.d-.6,1.6),e.cached&&(e.d+=.15*n),e.d+(r.d-t.d)*n>t.d&&(r=e));break}return r},a=/(([^,\s].[^\s]+)\s+(\d+)w)/g,l=/\s/,u=function(t,e,n,i){s.push({c:e,u:n,w:1*i})},f=function(t){return s=[],(t=t.trim()).replace(T,"").replace(a,u),s.length||!t||l.test(t)||s.push({c:t,u:t,w:99}),s},p=function(){var t,n,r;p.init||(p.init=!0,addEventListener("resize",(n=e.getElementsByClassName("lazymatchmedia"),r=function(){var t,e;for(t=0,e=n.length;t<e;t++)i(n[t])},function(){clearTimeout(t),t=setTimeout(r,66)})))},m=function(e,i){var r,o=e.getAttribute("srcset")||e.getAttribute(x.srcsetAttr);!o&&i&&(o=e._lazypolyfill?e._lazypolyfill._set:e.getAttribute(x.srcAttr)||e.getAttribute("src")),e._lazypolyfill&&e._lazypolyfill._set==o||(r=f(o||""),i&&e.parentNode&&(r.isPicture="PICTURE"==e.parentNode.nodeName.toUpperCase(),r.isPicture&&t.matchMedia&&(n.aC(e,"lazymatchmedia"),p())),r._set=o,Object.defineProperty(e,"_lazypolyfill",{value:r,writable:!0}))},g=function(e){var i=t.devicePixelRatio||1,r=n.getX&&n.getX(e);return Math.min(r||i,2.5,i)},v=function(e){return t.matchMedia?(v=function(t){return!t||(matchMedia(t)||{}).matches},v(e)):!e},y=function(t){var e,i,r,o,s,a,l;if(m(o=t,!0),(s=o._lazypolyfill).isPicture)for(i=0,r=(e=t.parentNode.getElementsByTagName("source")).length;i<r;i++)if(x.supportsType(e[i].getAttribute("type"),t)&&v(e[i].getAttribute("media"))){o=e[i],m(o),s=o._lazypolyfill;break}return s.length>1?(l=o.getAttribute("sizes")||"",l=d.test(l)&&parseInt(l,10)||n.gW(t,t.parentNode),s.d=g(t),!s.src||!s.w||s.w<l?(s.w=l,a=h(s.sort(c)),s.src=a):a=s.src):a=s[0],a},(b=function(t){if(!C||!t.parentNode||"PICTURE"==t.parentNode.nodeName.toUpperCase()){var e=y(t);e&&e.u&&t._lazypolyfill.cur!=e.u&&(t._lazypolyfill.cur=e.u,e.cached=!0,
t.setAttribute(x.srcAttr,e.u),t.setAttribute("src",e.u))}}).parse=f,i=b,x.loadedClass&&x.loadingClass&&(w=[],['img[sizes$="px"][srcset].',"picture > img:not([srcset])."].forEach((function(t){w.push(t+x.loadedClass),w.push(t+x.loadingClass)})),x.pf({elements:e.querySelectorAll(w.join(", "))})))})),function(t,e){var n=function(){e(t.lazySizes),t.removeEventListener("lazyunveilread",n,!0)};e=e.bind(null,t,t.document),"object"==typeof module&&module.exports?e(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],e):t.lazySizes?n():t.addEventListener("lazyunveilread",n,!0)}(window,(function(t,e,n){"use strict";function i(t,n,i){if(!s[t]){var r=e.createElement(n?"link":"script"),o=e.getElementsByTagName("script")[0];n?(r.rel="stylesheet",r.href=t):(r.onload=function(){r.onerror=null,r.onload=null,i()},r.onerror=r.onload,r.src=t),s[t]=!0,s[r.src||r.href]=!0,o.parentNode.insertBefore(r,o)}}var r,o,s={};e.addEventListener&&(o=/\(|\)|\s|'/,r=function(t,n){var i=e.createElement("img");i.onload=function(){i.onload=null,i.onerror=null,i=null,n()},i.onerror=i.onload,i.src=t,i&&i.complete&&i.onload&&i.onload()},addEventListener("lazybeforeunveil",(function(t){var e,s,a;if(t.detail.instance==n&&!t.defaultPrevented){var l=t.target;if("none"==l.preload&&(l.preload=l.getAttribute("data-preload")||"auto"),null!=l.getAttribute("data-autoplay"))if(l.getAttribute("data-expand")&&!l.autoplay)try{l.load(),setTimeout((function(){l.play()}),0)}catch(t){}else requestAnimationFrame((function(){l.setAttribute("data-expand","-10"),n.aC(l,n.cfg.lazyClass)}));(e=l.getAttribute("data-link"))&&i(e,!0),(e=l.getAttribute("data-script"))&&(t.detail.firesLoad=!0,i(e,null,(function(){t.detail.firesLoad=!1,n.fire(l,"_lazyloaded",{},!0,!0)}))),(e=l.getAttribute("data-require"))&&(n.cfg.requireJs?n.cfg.requireJs([e]):i(e)),(s=l.getAttribute("data-bg"))&&(t.detail.firesLoad=!0,r(s,(function(){l.style.backgroundImage="url("+(o.test(s)?JSON.stringify(s):s)+")",t.detail.firesLoad=!1,n.fire(l,"_lazyloaded",{},!0,!0)}))),(a=l.getAttribute("data-poster"))&&(t.detail.firesLoad=!0,r(a,(function(){l.poster=a,t.detail.firesLoad=!1,n.fire(l,"_lazyloaded",{},!0,!0)})))}}),!1))})),function(t,e){var n=function(){e(t.lazySizes),t.removeEventListener("lazyunveilread",n,!0)};e=e.bind(null,t,t.document),"object"==typeof module&&module.exports?e(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],e):t.lazySizes?n():t.addEventListener("lazyunveilread",n,!0)}(window,(function(t,e,n){"use strict";if(t.addEventListener){var i=n.cfg,r=/\s+/g,o=/\s*\|\s+|\s+\|\s*/g,s=/^(.+?)(?:\s+\[\s*(.+?)\s*\])(?:\s+\[\s*(.+?)\s*\])?$/,a=/^\s*\(*\s*type\s*:\s*(.+?)\s*\)*\s*$/,l=/\(|\)|'/,u={contain:1,cover:1},c=function(t){var e=n.gW(t,t.parentNode);return(!t._lazysizesWidth||e>t._lazysizesWidth)&&(t._lazysizesWidth=e),t._lazysizesWidth},d=function(t){var e;return e=(getComputedStyle(t)||{getPropertyValue:function(){}}).getPropertyValue("background-size"),!u[e]&&u[t.style.backgroundSize]&&(e=t.style.backgroundSize),e},h=function(t,e){if(e){var n=e.match(a);n&&n[1]?t.setAttribute("type",n[1]):t.setAttribute("media",i.customMedia[e]||e)}},f=function(t,n,a){var l=e.createElement("picture"),u=n.getAttribute(i.sizesAttr),c=n.getAttribute("data-ratio"),d=n.getAttribute("data-optimumx");n._lazybgset&&n._lazybgset.parentNode==n&&n.removeChild(n._lazybgset),Object.defineProperty(a,"_lazybgset",{value:n,writable:!0}),Object.defineProperty(n,"_lazybgset",{value:l,writable:!0}),t=t.replace(r," ").split(o),l.style.display="none",a.className=i.lazyClass,1!=t.length||u||(u="auto"),t.forEach((function(t){var n,r=e.createElement("source");u&&"auto"!=u&&r.setAttribute("sizes",u),(n=t.match(s))?(r.setAttribute(i.srcsetAttr,n[1]),h(r,n[2]),h(r,n[3])):r.setAttribute(i.srcsetAttr,t),l.appendChild(r)})),u&&(a.setAttribute(i.sizesAttr,u),n.removeAttribute(i.sizesAttr),n.removeAttribute("sizes")),d&&a.setAttribute("data-optimumx",d),c&&a.setAttribute("data-ratio",c),l.appendChild(a),n.appendChild(l)},p=function(t){if(t.target._lazybgset){var e=t.target,i=e._lazybgset,r=e.currentSrc||e.src;if(r){var o=l.test(r)?JSON.stringify(r):r,s=n.fire(i,"bgsetproxy",{src:r,useSrc:o,fullSrc:null});s.defaultPrevented||(i.style.backgroundImage=s.detail.fullSrc||"url("+s.detail.useSrc+")")}e._lazybgsetLoading&&(n.fire(i,"_lazyloaded",{},!1,!0),delete e._lazybgsetLoading)}};addEventListener("lazybeforeunveil",(function(t){var i,r,o;!t.defaultPrevented&&(i=t.target.getAttribute("data-bgset"))&&(o=t.target,(r=e.createElement("img")).alt="",r._lazybgsetLoading=!0,t.detail.firesLoad=!0,f(i,o,r),setTimeout((function(){n.loader.unveil(r),n.rAF((function(){n.fire(r,"_lazyloaded",{},!0,!0),r.complete&&p({target:r})}))})))})),e.addEventListener("load",p,!0),t.addEventListener("lazybeforesizes",(function(t){if(t.detail.instance==n&&t.target._lazybgset&&t.detail.dataAttr){var e=t.target._lazybgset,i=d(e);u[i]&&(t.target._lazysizesParentFit=i,n.rAF((function(){t.target.setAttribute("data-parent-fit",i),t.target._lazysizesParentFit&&delete t.target._lazysizesParentFit})))}}),!0),e.documentElement.addEventListener("lazybeforesizes",(function(t){!t.defaultPrevented&&t.target._lazybgset&&t.detail.instance==n&&(t.detail.width=c(t.target._lazybgset))}))}})),function(t,e){var n=e(t,t.document,Date);t.lazySizes=n,"object"==typeof module&&module.exports&&(module.exports=n)}("undefined"!=typeof window?window:{},(function(t,e,n){"use strict";var i,r;if(function(){var e,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in r=t.lazySizesConfig||t.lazysizesConfig||{},n)e in r||(r[e]=n[e])}(),!e||!e.getElementsByClassName)return{init:function(){},cfg:r,noSupport:!0};var o,s,a,l,u,c,d,h,f,p,m,g,v,y,b,w,x,S,C,T,E,k,$,I,A,_,z,P,L,j,D,N,O,M,F,R,q,H,W,B,U,X,Y,V,G,Z=e.documentElement,Q=t.HTMLPictureElement,K="addEventListener",J="getAttribute",tt=t[K].bind(t),et=t.setTimeout,nt=t.requestAnimationFrame||et,it=t.requestIdleCallback,rt=/^picture$/i,ot=["load","error","lazyincluded","_lazyloaded"],st={},at=Array.prototype.forEach,lt=function(t,e){return st[e]||(st[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),st[e].test(t[J]("class")||"")&&st[e]},ut=function(t,e){lt(t,e)||t.setAttribute("class",(t[J]("class")||"").trim()+" "+e)},ct=function(t,e){var n;(n=lt(t,e))&&t.setAttribute("class",(t[J]("class")||"").replace(n," "))},dt=function(t,e,n){var i=n?K:"removeEventListener";n&&dt(t,e),ot.forEach((function(n){t[i](n,e)}))},ht=function(t,n,r,o,s){var a=e.createEvent("Event");return r||(r={}),r.instance=i,a.initEvent(n,!o,!s),a.detail=r,t.dispatchEvent(a),a},ft=function(e,n){var i;!Q&&(i=t.picturefill||r.pf)?(n&&n.src&&!e[J]("srcset")&&e.setAttribute("srcset",n.src),i({reevaluate:!0,elements:[e]})):n&&n.src&&(e.src=n.src)},pt=function(t,e){return(getComputedStyle(t,null)||{})[e]},mt=function(t,e,n){for(n=n||t.offsetWidth;n<r.minSize&&e&&!t._lazysizesWidth;)n=e.offsetWidth,e=e.parentNode;return n},gt=(l=[],u=a=[],c=function(){var t=u;for(u=a.length?l:a,o=!0,s=!1;t.length;)t.shift()();o=!1},d=function(t,n){o&&!n?t.apply(this,arguments):(u.push(t),s||(s=!0,(e.hidden?et:nt)(c)))},d._lsFlush=c,d),vt=function(t,e){return e?function(){gt(t)}:function(){var e=this,n=arguments;gt((function(){t.apply(e,n)}))}},yt=function(t){var e,i=0,o=r.throttleDelay,s=r.ricTimeout,a=function(){e=!1,i=n.now(),t()},l=it&&s>49?function(){it(a,{timeout:s}),s!==r.ricTimeout&&(s=r.ricTimeout)}:vt((function(){et(a)}),!0);return function(t){var r;(t=!0===t)&&(s=33),e||(e=!0,(r=o-(n.now()-i))<0&&(r=0),t||r<9?l():et(l,r))}},bt=function(t){var e,i,r=99,o=function(){e=null,t()},s=function(){var t=n.now()-i;t<r?et(s,r-t):(it||o)(o)};return function(){i=n.now(),e||(e=et(s,r))}},wt=(T=/^img$/i,E=/^iframe$/i,k="onscroll"in t&&!/(gle|ing)bot|YandexImages/.test(navigator.userAgent),$=0,I=0,A=0,_=-1,z=function(t){A--,(!t||A<0||!t.target)&&(A=0)},P=function(t){return null==C&&(C="hidden"==pt(e.body,"visibility")),C||!("hidden"==pt(t.parentNode,"visibility")&&"hidden"==pt(t,"visibility"))},L=function(t,n){var i,r=t,o=P(t);for(b-=n,S+=n,w-=n,x+=n;o&&(r=r.offsetParent)&&r!=e.body&&r!=Z;)(o=(pt(r,"opacity")||1)>0)&&"visible"!=pt(r,"overflow")&&(i=r.getBoundingClientRect(),o=x>i.left&&w<i.right&&S>i.top-1&&b<i.bottom+1);return o},D=yt(j=function(){var t,n,o,s,a,l,u,c,d,p,g,T,E=i.elements;if((m=r.loadMode)&&A<8&&(t=E.length)){for(n=0,_++;n<t;n++)if(E[n]&&!E[n]._lazyRace)if(!k||i.prematureUnveil&&i.prematureUnveil(E[n]))H(E[n]);else if((c=E[n][J]("data-expand"))&&(l=1*c)||(l=I),p||(p=!r.expand||r.expand<1?Z.clientHeight>500&&Z.clientWidth>500?500:370:r.expand,i._defEx=p,g=p*r.expFactor,T=r.hFac,C=null,I<g&&A<1&&_>2&&m>2&&!e.hidden?(I=g,_=0):I=m>1&&_>1&&A<6?p:$),d!==l&&(v=innerWidth+l*T,y=innerHeight+l,u=-1*l,d=l),o=E[n].getBoundingClientRect(),(S=o.bottom)>=u&&(b=o.top)<=y&&(x=o.right)>=u*T&&(w=o.left)<=v&&(S||x||w||b)&&(r.loadHidden||P(E[n]))&&(f&&A<3&&!c&&(m<3||_<4)||L(E[n],l))){if(H(E[n]),a=!0,A>9)break}else!a&&f&&!s&&A<4&&_<4&&m>2&&(h[0]||r.preloadAfterLoad)&&(h[0]||!c&&(S||x||w||b||"auto"!=E[n][J](r.sizesAttr)))&&(s=h[0]||E[n]);s&&!a&&H(s)}}),O=vt(N=function(t){var e=t.target;e._lazyCache?delete e._lazyCache:(z(t),ut(e,r.loadedClass),ct(e,r.loadingClass),dt(e,M),ht(e,"lazyloaded"))}),M=function(t){O({target:t.target})},F=function(t,e){var n=t.getAttribute("data-load-mode")||r.iframeLoadMode;0==n?t.contentWindow.location.replace(e):1==n&&(t.src=e)},R=function(t){var e,n=t[J](r.srcsetAttr);(e=r.customMedia[t[J]("data-media")||t[J]("media")])&&t.setAttribute("media",e),n&&t.setAttribute("srcset",n)},q=vt((function(t,e,n,i,o){var s,a,l,u,c,d;(c=ht(t,"lazybeforeunveil",e)).defaultPrevented||(i&&(n?ut(t,r.autosizesClass):t.setAttribute("sizes",i)),a=t[J](r.srcsetAttr),s=t[J](r.srcAttr),o&&(u=(l=t.parentNode)&&rt.test(l.nodeName||"")),d=e.firesLoad||"src"in t&&(a||s||u),c={target:t},ut(t,r.loadingClass),d&&(clearTimeout(p),p=et(z,2500),dt(t,M,!0)),u&&at.call(l.getElementsByTagName("source"),R),a?t.setAttribute("srcset",a):s&&!u&&(E.test(t.nodeName)?F(t,s):t.src=s),o&&(a||u)&&ft(t,{src:s})),t._lazyRace&&delete t._lazyRace,ct(t,r.lazyClass),gt((function(){var e=t.complete&&t.naturalWidth>1;d&&!e||(e&&ut(t,r.fastLoadedClass),N(c),t._lazyCache=!0,et((function(){"_lazyCache"in t&&delete t._lazyCache}),9)),"lazy"==t.loading&&A--}),!0)})),H=function(t){if(!t._lazyRace){var e,n=T.test(t.nodeName),i=n&&(t[J](r.sizesAttr)||t[J]("sizes")),o="auto"==i;(!o&&f||!n||!t[J]("src")&&!t.srcset||t.complete||lt(t,r.errorClass)||!lt(t,r.lazyClass))&&(e=ht(t,"lazyunveilread").detail,o&&xt.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,A++,q(t,e,o,i,n))}},W=bt((function(){r.loadMode=3,D()})),U=function(){f||(n.now()-g<999?et(U,999):(f=!0,r.loadMode=3,D(),tt("scroll",B,!0)))},{_:function(){g=n.now(),i.elements=e.getElementsByClassName(r.lazyClass),h=e.getElementsByClassName(r.lazyClass+" "+r.preloadClass),tt("scroll",D,!0),tt("resize",D,!0),tt("pageshow",(function(t){if(t.persisted){var n=e.querySelectorAll("."+r.loadingClass);n.length&&n.forEach&&nt((function(){n.forEach((function(t){t.complete&&H(t)}))}))}})),t.MutationObserver?new MutationObserver(D).observe(Z,{childList:!0,subtree:!0,attributes:!0}):(Z[K]("DOMNodeInserted",D,!0),Z[K]("DOMAttrModified",D,!0),setInterval(D,999)),tt("hashchange",D,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(t){e[K](t,D,!0)})),/d$|^c/.test(e.readyState)?U():(tt("load",U),e[K]("DOMContentLoaded",D),et(U,2e4)),i.elements.length?(j(),gt._lsFlush()):D()},checkElems:D,unveil:H,_aLSL:B=function(){3==r.loadMode&&(r.loadMode=2),W()}}),xt=(Y=vt((function(t,e,n,i){var r,o,s;if(t._lazysizesWidth=i,i+="px",t.setAttribute("sizes",i),rt.test(e.nodeName||""))for(o=0,s=(r=e.getElementsByTagName("source")).length;o<s;o++)r[o].setAttribute("sizes",i);n.detail.dataAttr||ft(t,n.detail)})),V=function(t,e,n){var i,r=t.parentNode;r&&(n=mt(t,r,n),(i=ht(t,"lazybeforesizes",{width:n,dataAttr:!!e})).defaultPrevented||(n=i.detail.width)&&n!==t._lazysizesWidth&&Y(t,r,i,n))},{_:function(){X=e.getElementsByClassName(r.autosizesClass),tt("resize",G)},checkElems:G=bt((function(){var t,e=X.length;if(e)for(t=0;t<e;t++)V(X[t])})),updateElem:V}),St=function(){!St.i&&e.getElementsByClassName&&(St.i=!0,xt._(),wt._())};return et((function(){r.init&&St()})),i={cfg:r,autoSizer:xt,loader:wt,init:St,uP:ft,aC:ut,rC:ct,hC:lt,fire:ht,gW:mt,rAF:gt}})),function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],(function(n){return e(t,n)})):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,(function(t,e){"use strict";function n(n,o,a){function l(t,e,i){var r,o="$()."+n+'("'+e+'")';return t.each((function(t,l){var u=a.data(l,n);if(u){var c=u[e];if(c&&"_"!=e.charAt(0)){var d=c.apply(u,i);r=void 0===r?d:r}else s(o+" is not a valid method")}else s(n+" not initialized. Cannot call methods, i.e. "+o)})),void 0!==r?r:t}function u(t,e){t.each((function(t,i){var r=a.data(i,n);r?(r.option(e),r._init()):(r=new o(i,e),a.data(i,n,r))}))}(a=a||e||t.jQuery)&&(o.prototype.option||(o.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[n]=function(t){return"string"==typeof t?l(this,t,r.call(arguments,1)):(u(this,t),this)},i(a))}function i(t){!t||t&&t.bridget||(t.bridget=n)}var r=Array.prototype.slice,o=t.console,s=void 0===o?function(){}:function(t){o.error(t)};return i(e||t.jQuery),n})),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},i=n[t]=n[t]||[];return-1==i.indexOf(e)&&i.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=n.indexOf(e);return-1!=i&&n.splice(i,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var i=this._onceEvents&&this._onceEvents[t],r=0;r<n.length;r++){var o=n[r];i&&i[o]&&(this.off(t,o),delete i[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,(function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function e(){}function n(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<u;e++){t[l[e]]=0}return t}function i(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function r(){if(!c){c=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(e);var r=i(e);s=200==Math.round(t(r.width)),o.isBoxSizeOuter=s,n.removeChild(e)}}function o(e){if(r(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var o=i(e);if("none"==o.display)return n();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var c=a.isBorderBox="border-box"==o.boxSizing,d=0;d<u;d++){var h=l[d],f=o[h],p=parseFloat(f);a[h]=isNaN(p)?0:p}var m=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,v=a.marginLeft+a.marginRight,y=a.marginTop+a.marginBottom,b=a.borderLeftWidth+a.borderRightWidth,w=a.borderTopWidth+a.borderBottomWidth,x=c&&s,S=t(o.width);!1!==S&&(a.width=S+(x?0:m+b));var C=t(o.height);return!1!==C&&(a.height=C+(x?0:g+w)),a.innerWidth=a.width-(m+b),a.innerHeight=a.height-(g+w),a.outerWidth=a.width+v,a.outerHeight=a.height+y,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=l.length,c=!1;return o})),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,(function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],n=0;n<e.length;n++){var i=e[n]+"MatchesSelector";if(t[i])return i}}();return function(e,n){return e[t](n)}})),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],(function(n){return e(t,n)})):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,(function(t,e){var n={extend:function(t,e){for(var n in e)t[n]=e[n];return t},modulo:function(t,e){return(t%e+e)%e}},i=Array.prototype.slice;n.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?i.call(t):[t]},n.removeFrom=function(t,e){var n=t.indexOf(e);-1!=n&&t.splice(n,1)},n.getParent=function(t,n){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,n))return t},n.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.filterFindElements=function(t,i){t=n.makeArray(t);var r=[];return t.forEach((function(t){if(t instanceof HTMLElement)if(i){e(t,i)&&r.push(t);for(var n=t.querySelectorAll(i),o=0;o<n.length;o++)r.push(n[o])}else r.push(t)})),r},n.debounceMethod=function(t,e,n){n=n||100;var i=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments,o=this;this[r]=setTimeout((function(){i.apply(o,e),delete o[r]}),n)}},n.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,n){return e+"-"+n})).toLowerCase()};var r=t.console;return n.htmlInit=function(e,i){n.docReady((function(){var o="data-"+n.toDashed(i),s=document.querySelectorAll("["+o+"]"),a=n.makeArray(s),l=o+"-options",u=t.jQuery;a.forEach((function(t){var n,s=t.getAttribute(o)||t.getAttribute(l);try{n=s&&JSON.parse(s)}catch(e){return void(r&&r.error("Error parsing "+o+" on "+t.className+": "+e))}var a=new e(t,n);u&&u.data(t,i,a)}))}))},n})),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,(function(t,e){"use strict";function n(t){for(var e in t)return!1;return!0}function i(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function r(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}var o=document.documentElement.style,s="string"==typeof o.transition?"transition":"WebkitTransition",a="string"==typeof o.transform?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:a,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},c=i.prototype=Object.create(t.prototype);c.constructor=i,c._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},c.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.getSize=function(){this.size=e(this.element)},c.css=function(t){var e=this.element.style;for(var n in t){e[u[n]||n]=t[n]}},c.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),i=t[e?"left":"right"],r=t[n?"top":"bottom"],o=parseFloat(i),s=parseFloat(r),a=this.layout.size;-1!=i.indexOf("%")&&(o=o/100*a.width),-1!=r.indexOf("%")&&(s=s/100*a.height),o=isNaN(o)?0:o,s=isNaN(s)?0:s,o-=e?a.paddingLeft:a.paddingRight,s-=n?a.paddingTop:a.paddingBottom,this.position.x=o,this.position.y=s},c.layoutPosition=function(){var t=this.layout.size,e={},n=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),r=n?"paddingLeft":"paddingRight",o=n?"left":"right",s=n?"right":"left",a=this.position.x+t[r];e[o]=this.getXValue(a),e[s]="";var l=i?"paddingTop":"paddingBottom",u=i?"top":"bottom",c=i?"bottom":"top",d=this.position.y+t[l];e[u]=this.getYValue(d),e[c]="",this.css(e),this.emitEvent("layout",[this])},c.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},c.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},c._transitionTo=function(t,e){this.getPosition();var n=this.position.x,i=this.position.y,r=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),!r||this.isTransitioning){var o=t-n,s=e-i,a={};a.transform=this.getTranslate(o,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},c.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},c.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},c.moveTo=c._transitionTo,c.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},c._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},c.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var n in t.onTransitionEnd)e.onEnd[n]=t.onTransitionEnd[n];for(n in t.to)e.ingProperties[n]=!0,t.isCleaning&&(e.clean[n]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;0}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var d="opacity,"+r(a);c.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:d,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(l,this,!1)}},c.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},c.onotransitionend=function(t){this.ontransitionend(t)};var h={"-webkit-transform":"transform"};c.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=h[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],n(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd)e.onEnd[i].call(this),delete e.onEnd[i];this.emitEvent("transitionEnd",[this])}},c.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},c._removeStyles=function(t){var e={};for(var n in t)e[n]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return c.removeTransitionStyles=function(){this.css(f)},c.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},c.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},c.remove=function(){s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},c.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},c.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},c.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var n in e)return n},c.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},c.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},c.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i})),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],(function(n,i,r,o){return e(t,n,i,r,o)})):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,(function(t,e,n,i,r){"use strict";function o(t,e){var n=i.getQueryElement(t);if(n){this.element=n,u&&(this.$element=u(this.element)),this.options=i.extend({},this.constructor.defaults),this.option(e);var r=++d;this.element.outlayerGUID=r,h[r]=this,this._create(),this._getOption("initLayout")&&this.layout()}else l&&l.error("Bad element for "+this.constructor.namespace+": "+(n||t))}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),n=e&&e[1],i=e&&e[2];return n.length?(n=parseFloat(n))*(p[i]||1):0}var l=t.console,u=t.jQuery,c=function(){},d=0,h={};o.namespace="outlayer",o.Item=r,o.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=o.prototype;i.extend(f,e.prototype),f.option=function(t){i.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},o.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),i.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),n=this.constructor.Item,i=[],r=0;r<e.length;r++){var o=new n(e[r],this);i.push(o)}return i},f._filterFindItemElements=function(t){return i.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map((function(t){return t.element}))},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=n(this.element)},f._getMeasurement=function(t,e){var i,r=this.options[t];r?("string"==typeof r?i=this.element.querySelector(r):r instanceof HTMLElement&&(i=r),this[t]=i?n(i)[e]:r):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter((function(t){return!t.isIgnored}))},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var n=[];t.forEach((function(t){var i=this._getItemLayoutPosition(t);i.item=t,i.isInstant=e||t.isLayoutInstant,n.push(i)}),this),this._processLayoutQueue(n)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach((function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)}),this)},f.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=a(t),this.stagger;this.stagger=0},f._positionItem=function(t,e,n,i,r){i?t.goTo(e,n):(t.stagger(r*this.stagger),t.moveTo(e,n))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){if(this._getOption("resizeContainer")){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},f._getContainerSize=c,f._setContainerMeasure=function(t,e){if(void 0!==t){var n=this.size;n.isBorderBox&&(t+=e?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function n(){r.dispatchEvent(t+"Complete",null,[e])}function i(){++s==o&&n()}var r=this,o=e.length;if(e&&o){var s=0;e.forEach((function(e){e.once(t,i)}))}else n()},f.dispatchEvent=function(t,e,n){var i=e?[e].concat(n):n;if(this.emitEvent(t,i),u)if(this.$element=this.$element||u(this.element),e){var r=u.Event(e);r.type=t,this.$element.trigger(r,n)}else this.$element.trigger(t,n)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){(t=this._find(t))&&t.forEach((function(t){i.removeFrom(this.stamps,t),this.unignore(t)}),this)},f._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=i.makeArray(t)},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=c,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,r=n(t);return{left:e.left-i.left-r.marginLeft,top:e.top-i.top-r.marginTop,right:i.right-e.right-r.marginRight,bottom:i.bottom-e.bottom-r.marginBottom}},f.handleEvent=i.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},i.debounceMethod(o,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var n=this.items.slice(0);this.items=e.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(n)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach((function(t,n){t.stagger(n*e),t.reveal()}))}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach((function(t,n){t.stagger(n*e),t.hide()}))}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var n=this.items[e];if(n.element==t)return n}},f.getItems=function(t){t=i.makeArray(t);var e=[];return t.forEach((function(t){var n=this.getItem(t);n&&e.push(n)}),this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach((function(t){t.remove(),i.removeFrom(this.items,t)}),this)},
f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach((function(t){t.destroy()})),this.unbindResize();var e=this.element.outlayerGUID;delete h[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},o.data=function(t){var e=(t=i.getQueryElement(t))&&t.outlayerGUID;return e&&h[e]},o.create=function(t,e){var n=s(o);return n.defaults=i.extend({},o.defaults),i.extend(n.defaults,e),n.compatOptions=i.extend({},o.compatOptions),n.namespace=t,n.data=o.data,n.Item=s(r),i.htmlInit(n,t),u&&u.bridget&&u.bridget(t,n),n};var p={ms:1,s:1e3};return o.Item=r,o})),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,(function(t,e){var n=t.create("masonry");n.compatOptions.fitWidth="isFitWidth";var i=n.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],n=t&&t.element;this.columnWidth=n&&e(n).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter,r=this.containerWidth+this.gutter,o=r/i,s=i-r%i;o=Math[s&&s<1?"round":"floor"](o),this.cols=Math.max(o,1)},i.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,n=e(t);this.containerWidth=n&&n.innerWidth},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,n=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var i=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,t),r={x:this.columnWidth*i.col,y:i.y},o=i.y+t.size.outerHeight,s=n+i.col,a=i.col;a<s;a++)this.colYs[a]=o;return r},i._getTopColPosition=function(t){var e=this._getTopColGroup(t),n=Math.min.apply(Math,e);return{col:e.indexOf(n),y:n}},i._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],n=this.cols+1-t,i=0;i<n;i++)e[i]=this._getColGroupY(i,t);return e},i._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var n=this.colYs.slice(t,t+e);return Math.max.apply(Math,n)},i._getHorizontalColPosition=function(t,e){var n=this.horizontalColIndex%this.cols;n=t>1&&n+t>this.cols?0:n;var i=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=i?n+t:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,t)}},i._manageStamp=function(t){var n=e(t),i=this._getElementOffset(t),r=this._getOption("originLeft")?i.left:i.right,o=r+n.outerWidth,s=Math.floor(r/this.columnWidth);s=Math.max(0,s);var a=Math.floor(o/this.columnWidth);a-=o%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var l=(this._getOption("originTop")?i.top:i.bottom)+n.outerHeight,u=s;u<=a;u++)this.colYs[u]=Math.max(l,this.colYs[u])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},n})),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.PhotoSwipe=e()}(this,(function(){"use strict";var t=function(t,e,n,i){var r={features:null,bind:function(t,e,n,i){var r=(i?"remove":"add")+"EventListener";e=e.split(" ");for(var o=0;o<e.length;o++)e[o]&&t[r](e[o],n,!1)},isArray:function(t){return t instanceof Array},createEl:function(t,e){var n=document.createElement(e||"div");return t&&(n.className=t),n},getScrollY:function(){var t=window.pageYOffset;return void 0!==t?t:document.documentElement.scrollTop},unbind:function(t,e,n){r.bind(t,e,n,!0)},removeClass:function(t,e){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(t,e){r.hasClass(t,e)||(t.className+=(t.className?" ":"")+e)},hasClass:function(t,e){return t.className&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)},getChildByClass:function(t,e){for(var n=t.firstChild;n;){if(r.hasClass(n,e))return n;n=n.nextSibling}},arraySearch:function(t,e,n){for(var i=t.length;i--;)if(t[i][n]===e)return i;return-1},extend:function(t,e,n){for(var i in e)if(e.hasOwnProperty(i)){if(n&&t.hasOwnProperty(i))continue;t[i]=e[i]}},easing:{sine:{out:function(t){return Math.sin(t*(Math.PI/2))},inOut:function(t){return-(Math.cos(Math.PI*t)-1)/2}},cubic:{out:function(t){return--t*t*t+1}}},detectFeatures:function(){if(r.features)return r.features;var t=r.createEl().style,e="",n={};if(n.oldIE=document.all&&!document.addEventListener,n.touch="ontouchstart"in window,window.requestAnimationFrame&&(n.raf=window.requestAnimationFrame,n.caf=window.cancelAnimationFrame),n.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!n.pointerEvent){var i=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var o=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);o&&o.length>0&&(o=parseInt(o[1],10))>=1&&o<8&&(n.isOldIOSPhone=!0)}var s=i.match(/Android\s([0-9\.]*)/),a=s?s[1]:0;(a=parseFloat(a))>=1&&(a<4.4&&(n.isOldAndroid=!0),n.androidVersion=a),n.isMobileOpera=/opera mini|opera mobi/i.test(i)}for(var l,u,c=["transform","perspective","animationName"],d=["","webkit","Moz","ms","O"],h=0;h<4;h++){e=d[h];for(var f=0;f<3;f++)l=c[f],u=e+(e?l.charAt(0).toUpperCase()+l.slice(1):l),!n[l]&&u in t&&(n[l]=u);e&&!n.raf&&(e=e.toLowerCase(),n.raf=window[e+"RequestAnimationFrame"],n.raf&&(n.caf=window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"]))}if(!n.raf){var p=0;n.raf=function(t){var e=(new Date).getTime(),n=Math.max(0,16-(e-p)),i=window.setTimeout((function(){t(e+n)}),n);return p=e+n,i},n.caf=function(t){clearTimeout(t)}}return n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r.features=n,n}};r.detectFeatures(),r.features.oldIE&&(r.bind=function(t,e,n,i){e=e.split(" ");for(var r,o=(i?"detach":"attach")+"Event",s=function(){n.handleEvent.call(n)},a=0;a<e.length;a++)if(r=e[a])if("object"==typeof n&&n.handleEvent){if(i){if(!n["oldIE"+r])return!1}else n["oldIE"+r]=s;t[o]("on"+r,n["oldIE"+r])}else t[o]("on"+r,n)});var o=this,s=25,a=3,l={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(t){return"A"===t.tagName},getDoubleTapZoom:function(t,e){return t||e.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};r.extend(l,i);var u,c,d,h,f,p,m,g,v,y,b,w,x,S,C,T,E,k,$,I,A,_,z,P,L,j,D,N,O,M,F,R,q,H,W,B,U,X,Y,V,G,Z,Q,K,J,tt,et,nt,it,rt,ot,st,at,lt,ut,ct,dt=function(){return{x:0,y:0}},ht=dt(),ft=dt(),pt=dt(),mt={},gt=0,vt={},yt=dt(),bt=0,wt=!0,xt=[],St={},Ct=!1,Tt=function(t,e){r.extend(o,e.publicMethods),xt.push(t)},Et=function(t){var e=Je();return t>e-1?t-e:t<0?e+t:t},kt={},$t=function(t,e){return kt[t]||(kt[t]=[]),kt[t].push(e)},It=function(t){var e=kt[t];if(e){var n=Array.prototype.slice.call(arguments);n.shift();for(var i=0;i<e.length;i++)e[i].apply(o,n)}},At=function(){return(new Date).getTime()},_t=function(t){lt=t,o.bg.style.opacity=t*l.bgOpacity},zt=function(t,e,n,i,r){(!Ct||r&&r!==o.currItem)&&(i/=r?r.fitRatio:o.currItem.fitRatio),t[_]=w+e+"px, "+n+"px"+x+" scale("+i+")"},Pt=function(t){it&&(t&&(y>o.currItem.fitRatio?Ct||(dn(o.currItem,!1,!0),Ct=!0):Ct&&(dn(o.currItem),Ct=!1)),zt(it,pt.x,pt.y,y))},Lt=function(t){t.container&&zt(t.container.style,t.initialPosition.x,t.initialPosition.y,t.initialZoomLevel,t)},jt=function(t,e){e[_]=w+t+"px, 0px"+x},Dt=function(t,e){if(!l.loop&&e){var n=h+(yt.x*gt-t)/yt.x,i=Math.round(t-ye.x);(n<0&&i>0||n>=Je()-1&&i<0)&&(t=ye.x+i*l.mainScrollEndFriction)}ye.x=t,jt(t,f)},Nt=function(t,e){var n=be[t]-vt[t];return ft[t]+ht[t]+n-n*(e/b)},Ot=function(t,e){t.x=e.x,t.y=e.y,e.id&&(t.id=e.id)},Mt=function(t){t.x=Math.round(t.x),t.y=Math.round(t.y)},Ft=null,Rt=function(){Ft&&(r.unbind(document,"mousemove",Rt),r.addClass(t,"pswp--has_mouse"),l.mouseUsed=!0,It("mouseUsed")),Ft=setTimeout((function(){Ft=null}),100)},qt=function(){r.bind(document,"keydown",o),F.transform&&r.bind(o.scrollWrap,"click",o),l.mouseUsed||r.bind(document,"mousemove",Rt),r.bind(window,"resize scroll orientationchange",o),It("bindEvents")},Ht=function(){r.unbind(window,"resize scroll orientationchange",o),r.unbind(window,"scroll",v.scroll),r.unbind(document,"keydown",o),r.unbind(document,"mousemove",Rt),F.transform&&r.unbind(o.scrollWrap,"click",o),Y&&r.unbind(window,m,o),clearTimeout(R),It("unbindEvents")},Wt=function(t,e){var n=an(o.currItem,mt,t);return e&&(nt=n),n},Bt=function(t){return t||(t=o.currItem),t.initialZoomLevel},Ut=function(t){return t||(t=o.currItem),t.w>0?l.maxSpreadZoom:1},Xt=function(t,e,n,i){return i===o.currItem.initialZoomLevel?(n[t]=o.currItem.initialPosition[t],!0):(n[t]=Nt(t,i),n[t]>e.min[t]?(n[t]=e.min[t],!0):n[t]<e.max[t]&&(n[t]=e.max[t],!0))},Yt=function(){if(_){var e=F.perspective&&!P;return w="translate"+(e?"3d(":"("),void(x=F.perspective?", 0px)":")")}_="left",r.addClass(t,"pswp--ie"),jt=function(t,e){e.left=t+"px"},Lt=function(t){var e=t.fitRatio>1?1:t.fitRatio,n=t.container.style,i=e*t.w,r=e*t.h;n.width=i+"px",n.height=r+"px",n.left=t.initialPosition.x+"px",n.top=t.initialPosition.y+"px"},Pt=function(){if(it){var t=it,e=o.currItem,n=e.fitRatio>1?1:e.fitRatio,i=n*e.w,r=n*e.h;t.width=i+"px",t.height=r+"px",t.left=pt.x+"px",t.top=pt.y+"px"}}},Vt=function(t){var e="";l.escKey&&27===t.keyCode?e="close":l.arrowKeys&&(37===t.keyCode?e="prev":39===t.keyCode&&(e="next")),e&&(t.ctrlKey||t.altKey||t.shiftKey||t.metaKey||(t.preventDefault?t.preventDefault():t.returnValue=!1,o[e]()))},Gt=function(t){t&&(Z||G||rt||U)&&(t.preventDefault(),t.stopPropagation())},Zt=function(){o.setScrollOffset(0,r.getScrollY())},Qt={},Kt=0,Jt=function(t){Qt[t]&&(Qt[t].raf&&j(Qt[t].raf),Kt--,delete Qt[t])},te=function(t){Qt[t]&&Jt(t),Qt[t]||(Kt++,Qt[t]={})},ee=function(){for(var t in Qt)Qt.hasOwnProperty(t)&&Jt(t)},ne=function(t,e,n,i,r,o,s){var a,l=At();te(t);var u=function(){if(Qt[t]){if((a=At()-l)>=i)return Jt(t),o(n),void(s&&s());o((n-e)*r(a/i)+e),Qt[t].raf=L(u)}};u()},ie={shout:It,listen:$t,viewportSize:mt,options:l,isMainScrollAnimating:function(){return rt},getZoomLevel:function(){return y},getCurrentIndex:function(){return h},isDragging:function(){return Y},isZooming:function(){return tt},setScrollOffset:function(t,e){vt.x=t,M=vt.y=e,It("updateScrollOffset",vt)},applyZoomPan:function(t,e,n,i){pt.x=e,pt.y=n,y=t,Pt(i)},init:function(){if(!u&&!c){var n;o.framework=r,o.template=t,o.bg=r.getChildByClass(t,"pswp__bg"),D=t.className,u=!0,F=r.detectFeatures(),L=F.raf,j=F.caf,_=F.transform,O=F.oldIE,o.scrollWrap=r.getChildByClass(t,"pswp__scroll-wrap"),o.container=r.getChildByClass(o.scrollWrap,"pswp__container"),f=o.container.style,o.itemHolders=T=[{el:o.container.children[0],wrap:0,index:-1},{el:o.container.children[1],wrap:0,index:-1},{el:o.container.children[2],wrap:0,index:-1}],T[0].el.style.display=T[2].el.style.display="none",Yt(),v={resize:o.updateSize,orientationchange:function(){clearTimeout(R),R=setTimeout((function(){mt.x!==o.scrollWrap.clientWidth&&o.updateSize()}),500)},scroll:Zt,keydown:Vt,click:Gt};var i=F.isOldIOSPhone||F.isOldAndroid||F.isMobileOpera;for(F.animationName&&F.transform&&!i||(l.showAnimationDuration=l.hideAnimationDuration=0),n=0;n<xt.length;n++)o["init"+xt[n]]();if(e)(o.ui=new e(o,r)).init();It("firstUpdate"),h=h||l.index||0,(isNaN(h)||h<0||h>=Je())&&(h=0),o.currItem=Ke(h),(F.isOldIOSPhone||F.isOldAndroid)&&(wt=!1),t.setAttribute("aria-hidden","false"),l.modal&&(wt?t.style.position="fixed":(t.style.position="absolute",t.style.top=r.getScrollY()+"px")),void 0===M&&(It("initialLayout"),M=N=r.getScrollY());var s="pswp--open ";for(l.mainClass&&(s+=l.mainClass+" "),l.showHideOpacity&&(s+="pswp--animate_opacity "),s+=P?"pswp--touch":"pswp--notouch",s+=F.animationName?" pswp--css_animation":"",s+=F.svg?" pswp--svg":"",r.addClass(t,s),o.updateSize(),p=-1,bt=null,n=0;n<a;n++)jt((n+p)*yt.x,T[n].el.style);O||r.bind(o.scrollWrap,g,o),$t("initialZoomInEnd",(function(){o.setContent(T[0],h-1),o.setContent(T[2],h+1),T[0].el.style.display=T[2].el.style.display="block",l.focus&&t.focus(),qt()})),o.setContent(T[1],h),o.updateCurrItem(),It("afterInit"),wt||(S=setInterval((function(){Kt||Y||tt||y!==o.currItem.initialZoomLevel||o.updateSize()}),1e3)),r.addClass(t,"pswp--visible")}},close:function(){u&&(u=!1,c=!0,It("close"),Ht(),tn(o.currItem,null,!0,o.destroy))},destroy:function(){It("destroy"),Ve&&clearTimeout(Ve),t.setAttribute("aria-hidden","true"),t.className=D,S&&clearInterval(S),r.unbind(o.scrollWrap,g,o),r.unbind(window,"scroll",o),Te(),ee(),kt=null},panTo:function(t,e,n){n||(t>nt.min.x?t=nt.min.x:t<nt.max.x&&(t=nt.max.x),e>nt.min.y?e=nt.min.y:e<nt.max.y&&(e=nt.max.y)),pt.x=t,pt.y=e,Pt()},handleEvent:function(t){t=t||window.event,v[t.type]&&v[t.type](t)},goTo:function(t){var e=(t=Et(t))-h;bt=e,h=t,o.currItem=Ke(h),gt-=e,Dt(yt.x*gt),ee(),rt=!1,o.updateCurrItem()},next:function(){o.goTo(h+1)},prev:function(){o.goTo(h-1)},updateCurrZoomItem:function(t){if(t&&It("beforeChange",0),T[1].el.children.length){var e=T[1].el.children[0];it=r.hasClass(e,"pswp__zoom-wrap")?e.style:null}else it=null;nt=o.currItem.bounds,b=y=o.currItem.initialZoomLevel,pt.x=nt.center.x,pt.y=nt.center.y,t&&It("afterChange")},invalidateCurrItems:function(){C=!0;for(var t=0;t<a;t++)T[t].item&&(T[t].item.needsUpdate=!0)},updateCurrItem:function(t){if(0!==bt){var e,n=Math.abs(bt);if(!(t&&n<2)){o.currItem=Ke(h),Ct=!1,It("beforeChange",bt),n>=a&&(p+=bt+(bt>0?-a:a),n=a);for(var i=0;i<n;i++)bt>0?(e=T.shift(),T[a-1]=e,p++,jt((p+2)*yt.x,e.el.style),o.setContent(e,h-n+i+1+1)):(e=T.pop(),T.unshift(e),p--,jt(p*yt.x,e.el.style),o.setContent(e,h+n-i-1-1));if(it&&1===Math.abs(bt)){var r=Ke(E);r.initialZoomLevel!==y&&(an(r,mt),dn(r),Lt(r))}bt=0,o.updateCurrZoomItem(),E=h,It("afterChange")}}},updateSize:function(e){if(!wt&&l.modal){var n=r.getScrollY();if(M!==n&&(t.style.top=n+"px",M=n),!e&&St.x===window.innerWidth&&St.y===window.innerHeight)return;St.x=window.innerWidth,St.y=window.innerHeight,t.style.height=St.y+"px"}if(mt.x=o.scrollWrap.clientWidth,mt.y=o.scrollWrap.clientHeight,Zt(),yt.x=mt.x+Math.round(mt.x*l.spacing),yt.y=mt.y,Dt(yt.x*gt),It("beforeResize"),void 0!==p){for(var i,s,u,c=0;c<a;c++)i=T[c],jt((c+p)*yt.x,i.el.style),u=h+c-1,l.loop&&Je()>2&&(u=Et(u)),(s=Ke(u))&&(C||s.needsUpdate||!s.bounds)?(o.cleanSlide(s),o.setContent(i,u),1===c&&(o.currItem=s,o.updateCurrZoomItem(!0)),s.needsUpdate=!1):-1===i.index&&u>=0&&o.setContent(i,u),s&&s.container&&(an(s,mt),dn(s),Lt(s));C=!1}b=y=o.currItem.initialZoomLevel,(nt=o.currItem.bounds)&&(pt.x=nt.center.x,pt.y=nt.center.y,Pt(!0)),It("resize")},zoomTo:function(t,e,n,i,o){e&&(b=y,be.x=Math.abs(e.x)-pt.x,be.y=Math.abs(e.y)-pt.y,Ot(ft,pt));var s=Wt(t,!1),a={};Xt("x",s,a,t),Xt("y",s,a,t);var l=y,u={x:pt.x,y:pt.y};Mt(a);var c=function(e){1===e?(y=t,pt.x=a.x,pt.y=a.y):(y=(t-l)*e+l,pt.x=(a.x-u.x)*e+u.x,pt.y=(a.y-u.y)*e+u.y),o&&o(e),Pt(1===e)};n?ne("customZoomTo",0,1,n,i||r.easing.sine.inOut,c):c(1)}},re=30,oe=10,se={},ae={},le={},ue={},ce={},de=[],he={},fe=[],pe={},me=0,ge=dt(),ve=0,ye=dt(),be=dt(),we=dt(),xe=function(t,e){return t.x===e.x&&t.y===e.y},Se=function(t,e){return Math.abs(t.x-e.x)<s&&Math.abs(t.y-e.y)<s},Ce=function(t,e){return pe.x=Math.abs(t.x-e.x),pe.y=Math.abs(t.y-e.y),Math.sqrt(pe.x*pe.x+pe.y*pe.y)},Te=function(){Q&&(j(Q),Q=null)},Ee=function(){Y&&(Q=L(Ee),qe())},ke=function(){return!("fit"===l.scaleMode&&y===o.currItem.initialZoomLevel)},$e=function(t,e){return!(!t||t===document)&&(!(t.getAttribute("class")&&t.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(e(t)?t:$e(t.parentNode,e)))},Ie={},Ae=function(t,e){return Ie.prevent=!$e(t.target,l.isClickableElement),It("preventDragEvent",t,e,Ie),Ie.prevent},_e=function(t,e){return e.x=t.pageX,e.y=t.pageY,e.id=t.identifier,e},ze=function(t,e,n){n.x=.5*(t.x+e.x),n.y=.5*(t.y+e.y)},Pe=function(t,e,n){if(t-H>50){var i=fe.length>2?fe.shift():{};i.x=e,i.y=n,fe.push(i),H=t}},Le=function(){var t=pt.y-o.currItem.initialPosition.y;return 1-Math.abs(t/(mt.y/2))},je={},De={},Ne=[],Oe=function(t){for(;Ne.length>0;)Ne.pop();return z?(ct=0,de.forEach((function(t){0===ct?Ne[0]=t:1===ct&&(Ne[1]=t),ct++}))):t.type.indexOf("touch")>-1?t.touches&&t.touches.length>0&&(Ne[0]=_e(t.touches[0],je),t.touches.length>1&&(Ne[1]=_e(t.touches[1],De))):(je.x=t.pageX,je.y=t.pageY,je.id="",Ne[0]=je),Ne},Me=function(t,e){var n,i,r,s,a=pt[t]+e[t],u=e[t]>0,c=ye.x+e.x,d=ye.x-he.x;if(n=a>nt.min[t]||a<nt.max[t]?l.panEndFriction:1,a=pt[t]+e[t]*n,(l.allowPanToNext||y===o.currItem.initialZoomLevel)&&(it?"h"!==ot||"x"!==t||G||(u?(a>nt.min[t]&&(n=l.panEndFriction,nt.min[t]-a,i=nt.min[t]-ft[t]),(i<=0||d<0)&&Je()>1?(s=c,d<0&&c>he.x&&(s=he.x)):nt.min.x!==nt.max.x&&(r=a)):(a<nt.max[t]&&(n=l.panEndFriction,a-nt.max[t],i=ft[t]-nt.max[t]),(i<=0||d>0)&&Je()>1?(s=c,d>0&&c<he.x&&(s=he.x)):nt.min.x!==nt.max.x&&(r=a))):s=c,"x"===t))return void 0!==s&&(Dt(s,!0),K=s!==he.x),nt.min.x!==nt.max.x&&(void 0!==r?pt.x=r:K||(pt.x+=e.x*n)),void 0!==s;rt||K||y>o.currItem.fitRatio&&(pt[t]+=e[t]*n)},Fe=function(t){if("mousedown"!==t.type&&"pointerdown"!==t.type||!(t.button>0))if(Qe)t.preventDefault();else if(!X||"mousedown"!==t.type){if(Ae(t,!0)&&t.preventDefault(),It("pointerDown"),z){var e=r.arraySearch(de,t.pointerId,"id");e<0&&(e=de.length),de[e]={x:t.pageX,y:t.pageY,id:t.pointerId}}var n=Oe(t),i=n.length;J=null,ee(),Y&&1!==i||(Y=st=!0,r.bind(window,m,o),B=ut=at=U=K=Z=V=G=!1,ot=null,It("firstTouchStart",n),Ot(ft,pt),ht.x=ht.y=0,Ot(ue,n[0]),Ot(ce,ue),he.x=yt.x*gt,fe=[{x:ue.x,y:ue.y}],H=q=At(),Wt(y,!0),Te(),Ee()),!tt&&i>1&&!rt&&!K&&(b=y,G=!1,tt=V=!0,ht.y=ht.x=0,Ot(ft,pt),Ot(se,n[0]),Ot(ae,n[1]),ze(se,ae,we),be.x=Math.abs(we.x)-pt.x,be.y=Math.abs(we.y)-pt.y,et=Ce(se,ae))}},Re=function(t){if(t.preventDefault(),z){var e=r.arraySearch(de,t.pointerId,"id");if(e>-1){var n=de[e];n.x=t.pageX,n.y=t.pageY}}if(Y){var i=Oe(t);if(ot||Z||tt)J=i;else if(ye.x!==yt.x*gt)ot="h";else{var o=Math.abs(i[0].x-ue.x)-Math.abs(i[0].y-ue.y);Math.abs(o)>=oe&&(ot=o>0?"h":"v",J=i)}}},qe=function(){if(J){var t=J.length;if(0!==t)if(Ot(se,J[0]),le.x=se.x-ue.x,le.y=se.y-ue.y,tt&&t>1){if(ue.x=se.x,ue.y=se.y,!le.x&&!le.y&&xe(J[1],ae))return;Ot(ae,J[1]),G||(G=!0,It("zoomGestureStarted"));var e=Ce(se,ae),n=Xe(e);n>o.currItem.initialZoomLevel+o.currItem.initialZoomLevel/15&&(ut=!0);var i=1,r=Bt(),s=Ut();if(n<r)if(l.pinchToClose&&!ut&&b<=o.currItem.initialZoomLevel){var a=1-(r-n)/(r/1.2);_t(a),It("onPinchClose",a),at=!0}else(i=(r-n)/r)>1&&(i=1),n=r-i*(r/3);else n>s&&((i=(n-s)/(6*r))>1&&(i=1),n=s+i*r);i<0&&(i=0),ze(se,ae,ge),ht.x+=ge.x-we.x,ht.y+=ge.y-we.y,Ot(we,ge),pt.x=Nt("x",n),pt.y=Nt("y",n),B=n>y,y=n,Pt()}else{if(!ot)return;if(st&&(st=!1,Math.abs(le.x)>=oe&&(le.x-=J[0].x-ce.x),Math.abs(le.y)>=oe&&(le.y-=J[0].y-ce.y)),ue.x=se.x,ue.y=se.y,0===le.x&&0===le.y)return;if("v"===ot&&l.closeOnVerticalDrag&&!ke()){ht.y+=le.y,pt.y+=le.y;var u=Le();return U=!0,It("onVerticalDrag",u),_t(u),void Pt()}Pe(At(),se.x,se.y),Z=!0,nt=o.currItem.bounds,Me("x",le)||(Me("y",le),Mt(pt),Pt())}}},He=function(t){if(F.isOldAndroid){if(X&&"mouseup"===t.type)return;t.type.indexOf("touch")>-1&&(clearTimeout(X),X=setTimeout((function(){X=0}),600))}var e;if(It("pointerUp"),Ae(t,!1)&&t.preventDefault(),z){var n=r.arraySearch(de,t.pointerId,"id");if(n>-1)if(e=de.splice(n,1)[0],navigator.msPointerEnabled){var i={4:"mouse",2:"touch",3:"pen"};e.type=i[t.pointerType],e.type||(e.type=t.pointerType||"mouse")}else e.type=t.pointerType||"mouse"}var s,a=Oe(t),u=a.length;if("mouseup"===t.type&&(u=0),2===u)return J=null,!0;1===u&&Ot(ce,a[0]),0!==u||ot||rt||(e||("mouseup"===t.type?e={x:t.pageX,y:t.pageY,type:"mouse"}:t.changedTouches&&t.changedTouches[0]&&(e={x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY,type:"touch"})),It("touchRelease",t,e));var c=-1;if(0===u&&(Y=!1,r.unbind(window,m,o),Te(),tt?c=0:-1!==ve&&(c=At()-ve)),ve=1===u?At():-1,s=-1!==c&&c<150?"zoom":"swipe",tt&&u<2&&(tt=!1,1===u&&(s="zoomPointerUp"),It("zoomGestureEnded")),J=null,Z||G||rt||U)if(ee(),W||(W=We()),W.calculateSwipeSpeed("x"),U){if(Le()<l.verticalDragRange)o.close();else{var d=pt.y,h=lt;ne("verticalDrag",0,1,300,r.easing.cubic.out,(function(t){pt.y=(o.currItem.initialPosition.y-d)*t+d,_t((1-h)*t+h),Pt()})),It("onVerticalDrag",1)}}else{if((K||rt)&&0===u){if(Ue(s,W))return;s="zoomPointerUp"}rt||("swipe"===s?!K&&y>o.currItem.fitRatio&&Be(W):Ye())}},We=function(){var t,e,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(i){fe.length>1?(t=At()-H+50,e=fe[fe.length-2][i]):(t=At()-q,e=ce[i]),n.lastFlickOffset[i]=ue[i]-e,n.lastFlickDist[i]=Math.abs(n.lastFlickOffset[i]),n.lastFlickDist[i]>20?n.lastFlickSpeed[i]=n.lastFlickOffset[i]/t:n.lastFlickSpeed[i]=0,Math.abs(n.lastFlickSpeed[i])<.1&&(n.lastFlickSpeed[i]=0),n.slowDownRatio[i]=.95,n.slowDownRatioReverse[i]=1-n.slowDownRatio[i],n.speedDecelerationRatio[i]=1},calculateOverBoundsAnimOffset:function(t,e){n.backAnimStarted[t]||(pt[t]>nt.min[t]?n.backAnimDestination[t]=nt.min[t]:pt[t]<nt.max[t]&&(n.backAnimDestination[t]=nt.max[t]),void 0!==n.backAnimDestination[t]&&(n.slowDownRatio[t]=.7,n.slowDownRatioReverse[t]=1-n.slowDownRatio[t],n.speedDecelerationRatioAbs[t]<.05&&(n.lastFlickSpeed[t]=0,n.backAnimStarted[t]=!0,ne("bounceZoomPan"+t,pt[t],n.backAnimDestination[t],e||300,r.easing.sine.out,(function(e){pt[t]=e,Pt()})))))},calculateAnimOffset:function(t){n.backAnimStarted[t]||(n.speedDecelerationRatio[t]=n.speedDecelerationRatio[t]*(n.slowDownRatio[t]+n.slowDownRatioReverse[t]-n.slowDownRatioReverse[t]*n.timeDiff/10),n.speedDecelerationRatioAbs[t]=Math.abs(n.lastFlickSpeed[t]*n.speedDecelerationRatio[t]),n.distanceOffset[t]=n.lastFlickSpeed[t]*n.speedDecelerationRatio[t]*n.timeDiff,pt[t]+=n.distanceOffset[t])},panAnimLoop:function(){if(Qt.zoomPan&&(Qt.zoomPan.raf=L(n.panAnimLoop),n.now=At(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Pt(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return pt.x=Math.round(pt.x),pt.y=Math.round(pt.y),Pt(),void Jt("zoomPan")}};return n},Be=function(t){if(t.calculateSwipeSpeed("y"),nt=o.currItem.bounds,t.backAnimDestination={},t.backAnimStarted={},Math.abs(t.lastFlickSpeed.x)<=.05&&Math.abs(t.lastFlickSpeed.y)<=.05)return t.speedDecelerationRatioAbs.x=t.speedDecelerationRatioAbs.y=0,t.calculateOverBoundsAnimOffset("x"),t.calculateOverBoundsAnimOffset("y"),!0;te("zoomPan"),t.lastNow=At(),t.panAnimLoop()},Ue=function(t,e){var n,i,s;if(rt||(me=h),"swipe"===t){var a=ue.x-ce.x,u=e.lastFlickDist.x<10;a>re&&(u||e.lastFlickOffset.x>20)?i=-1:a<-re&&(u||e.lastFlickOffset.x<-20)&&(i=1)}i&&((h+=i)<0?(h=l.loop?Je()-1:0,s=!0):h>=Je()&&(h=l.loop?0:Je()-1,s=!0),s&&!l.loop||(bt+=i,gt-=i,n=!0));var c,d=yt.x*gt,f=Math.abs(d-ye.x);return n||d>ye.x==e.lastFlickSpeed.x>0?(c=Math.abs(e.lastFlickSpeed.x)>0?f/Math.abs(e.lastFlickSpeed.x):333,c=Math.min(c,400),c=Math.max(c,250)):c=333,me===h&&(n=!1),rt=!0,It("mainScrollAnimStart"),ne("mainScroll",ye.x,d,c,r.easing.cubic.out,Dt,(function(){ee(),rt=!1,me=-1,(n||me!==h)&&o.updateCurrItem(),It("mainScrollAnimComplete")})),n&&o.updateCurrItem(!0),n},Xe=function(t){return 1/et*t*b},Ye=function(){var t=y,e=Bt(),n=Ut();y<e?t=e:y>n&&(t=n);var i,s=1,a=lt;return at&&!B&&!ut&&y<e?(o.close(),!0):(at&&(i=function(t){_t((s-a)*t+a)}),o.zoomTo(t,0,200,r.easing.cubic.out,i),!0)};Tt("Gestures",{publicMethods:{initGestures:function(){var t=function(t,e,n,i,r){k=t+e,$=t+n,I=t+i,A=r?t+r:""};(z=F.pointerEvent)&&F.touch&&(F.touch=!1),z?navigator.msPointerEnabled?t("MSPointer","Down","Move","Up","Cancel"):t("pointer","down","move","up","cancel"):F.touch?(t("touch","start","move","end","cancel"),P=!0):t("mouse","down","move","up"),m=$+" "+I+" "+A,g=k,z&&!P&&(P=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),o.likelyTouchDevice=P,v[k]=Fe,v[$]=Re,v[I]=He,A&&(v[A]=v[I]),F.touch&&(g+=" mousedown",m+=" mousemove mouseup",v.mousedown=v[k],v.mousemove=v[$],v.mouseup=v[I]),P||(l.allowPanToNext=!1)}}});var Ve,Ge,Ze,Qe,Ke,Je,tn=function(e,n,i,s){var a;Ve&&clearTimeout(Ve),Qe=!0,Ze=!0,e.initialLayout?(a=e.initialLayout,e.initialLayout=null):a=l.getThumbBoundsFn&&l.getThumbBoundsFn(h);var u=i?l.hideAnimationDuration:l.showAnimationDuration,c=function(){Jt("initialZoom"),i?(o.template.removeAttribute("style"),o.bg.removeAttribute("style")):(_t(1),n&&(n.style.display="block"),r.addClass(t,"pswp--animated-in"),It("initialZoom"+(i?"OutEnd":"InEnd"))),s&&s(),Qe=!1};if(!u||!a||void 0===a.x)return It("initialZoom"+(i?"Out":"In")),y=e.initialZoomLevel,Ot(pt,e.initialPosition),Pt(),t.style.opacity=i?0:1,_t(1),void(u?setTimeout((function(){c()}),u):c());(function(){var n=d,s=!o.currItem.src||o.currItem.loadError||l.showHideOpacity;e.miniImg&&(e.miniImg.style.webkitBackfaceVisibility="hidden"),i||(y=a.w/e.w,pt.x=a.x,pt.y=a.y-N,o[s?"template":"bg"].style.opacity=.001,Pt()),te("initialZoom"),i&&!n&&r.removeClass(t,"pswp--animated-in"),s&&(i?r[(n?"remove":"add")+"Class"](t,"pswp--animate_opacity"):setTimeout((function(){r.addClass(t,"pswp--animate_opacity")}),30)),Ve=setTimeout((function(){if(It("initialZoom"+(i?"Out":"In")),i){var o=a.w/e.w,l={x:pt.x,y:pt.y},d=y,h=lt,f=function(e){1===e?(y=o,pt.x=a.x,pt.y=a.y-r.getScrollY()):(y=(o-d)*e+d,pt.x=(a.x-l.x)*e+l.x,pt.y=(a.y-r.getScrollY()-l.y)*e+l.y),Pt(),s?t.style.opacity=1-e:_t(h-e*h)};n?ne("initialZoom",0,1,u,r.easing.cubic.out,f,c):(f(1),Ve=setTimeout(c,u+20))}else y=e.initialZoomLevel,Ot(pt,e.initialPosition),Pt(),_t(1),s?t.style.opacity=1:_t(1),Ve=setTimeout(c,u+20)}),i?25:90)})()},en={},nn=[],rn={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Ge.length}},on=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},sn=function(t,e,n){var i=t.bounds;i.center.x=Math.round((en.x-e)/2),i.center.y=Math.round((en.y-n)/2)+t.vGap.top,i.max.x=e>en.x?Math.round(en.x-e):i.center.x,i.max.y=n>en.y?Math.round(en.y-n)+t.vGap.top:i.center.y,i.min.x=e>en.x?0:i.center.x,i.min.y=n>en.y?t.vGap.top:i.center.y},an=function(t,e,n){if(t.src&&!t.loadError){var i=!n;if(i&&(t.vGap||(t.vGap={top:0,bottom:0}),It("parseVerticalMargin",t)),en.x=e.x,en.y=e.y-t.vGap.top-t.vGap.bottom,i){var r=en.x/t.w,o=en.y/t.h;t.fitRatio=r<o?r:o;var s=l.scaleMode;"orig"===s?n=1:"fit"===s&&(n=t.fitRatio),n>1&&(n=1),t.initialZoomLevel=n,t.bounds||(t.bounds=on())}if(!n)return;return sn(t,t.w*n,t.h*n),i&&n===t.initialZoomLevel&&(t.initialPosition=t.bounds.center),t.bounds}return t.w=t.h=0,t.initialZoomLevel=t.fitRatio=1,t.bounds=on(),t.initialPosition=t.bounds.center,t.bounds},ln=function(t,e,n,i,r,s){e.loadError||i&&(e.imageAppended=!0,dn(e,i,e===o.currItem&&Ct),n.appendChild(i),s&&setTimeout((function(){e&&e.loaded&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null)}),500))},un=function(t){t.loading=!0,t.loaded=!1;var e=t.img=r.createEl("pswp__img","img"),n=function(){t.loading=!1,t.loaded=!0,t.loadComplete?t.loadComplete(t):t.img=null,e.onload=e.onerror=null,e=null};return e.onload=n,e.onerror=function(){t.loadError=!0,n()},e.src=t.src,e},cn=function(t,e){if(t.src&&t.loadError&&t.container)return e&&(t.container.innerHTML=""),t.container.innerHTML=l.errorMsg.replace("%url%",t.src),!0},dn=function(t,e,n){if(t.src){e||(e=t.container.lastChild);var i=n?t.w:Math.round(t.w*t.fitRatio),r=n?t.h:Math.round(t.h*t.fitRatio);t.placeholder&&!t.loaded&&(t.placeholder.style.width=i+"px",t.placeholder.style.height=r+"px"),e.style.width=i+"px",e.style.height=r+"px"}},hn=function(){if(nn.length){for(var t,e=0;e<nn.length;e++)(t=nn[e]).holder.index===t.index&&ln(t.index,t.item,t.baseDiv,t.img,!1,t.clearPlaceholder);nn=[]}};Tt("Controller",{publicMethods:{lazyLoadItem:function(t){t=Et(t);var e=Ke(t);e&&(!e.loaded&&!e.loading||C)&&(It("gettingData",t,e),e.src&&un(e))},initController:function(){r.extend(l,rn,!0),o.items=Ge=n,Ke=o.getItemAt,Je=l.getNumItemsFn,l.loop,Je()<3&&(l.loop=!1),$t("beforeChange",(function(t){var e,n=l.preload,i=null===t||t>=0,r=Math.min(n[0],Je()),s=Math.min(n[1],Je());for(e=1;e<=(i?s:r);e++)o.lazyLoadItem(h+e);for(e=1;e<=(i?r:s);e++)o.lazyLoadItem(h-e)})),$t("initialLayout",(function(){o.currItem.initialLayout=l.getThumbBoundsFn&&l.getThumbBoundsFn(h)})),$t("mainScrollAnimComplete",hn),$t("initialZoomInEnd",hn),$t("destroy",(function(){for(var t,e=0;e<Ge.length;e++)(t=Ge[e]).container&&(t.container=null),t.placeholder&&(t.placeholder=null),t.img&&(t.img=null),t.preloader&&(t.preloader=null),t.loadError&&(t.loaded=t.loadError=!1);nn=null}))},getItemAt:function(t){return t>=0&&(void 0!==Ge[t]&&Ge[t])},allowProgressiveImg:function(){return l.forceProgressiveLoading||!P||l.mouseUsed||screen.width>1200},setContent:function(t,e){l.loop&&(e=Et(e));var n=o.getItemAt(t.index);n&&(n.container=null);var i,s=o.getItemAt(e);if(s){It("gettingData",e,s),t.index=e,t.item=s;var a=s.container=r.createEl("pswp__zoom-wrap");if(!s.src&&s.html&&(s.html.tagName?a.appendChild(s.html):a.innerHTML=s.html),cn(s),an(s,mt),!s.src||s.loadError||s.loaded)s.src&&!s.loadError&&((i=r.createEl("pswp__img","img")).style.opacity=1,i.src=s.src,dn(s,i),ln(e,s,a,i,!0));else{if(s.loadComplete=function(n){if(u){if(t&&t.index===e){if(cn(n,!0))return n.loadComplete=n.img=null,an(n,mt),Lt(n),void(t.index===h&&o.updateCurrZoomItem());n.imageAppended?!Qe&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):F.transform&&(rt||Qe)?nn.push({item:n,baseDiv:a,img:n.img,index:e,holder:t,clearPlaceholder:!0}):ln(e,n,a,n.img,rt||Qe,!0)}n.loadComplete=null,n.img=null,It("imageLoadComplete",e,n)}},r.features.transform){var c="pswp__img pswp__img--placeholder";c+=s.msrc?"":" pswp__img--placeholder--blank";var d=r.createEl(c,s.msrc?"img":"");s.msrc&&(d.src=s.msrc),dn(s,d),a.appendChild(d),s.placeholder=d}s.loading||un(s),o.allowProgressiveImg()&&(!Ze&&F.transform?nn.push({item:s,baseDiv:a,img:s.img,index:e,holder:t}):ln(e,s,a,s.img,!0,!0))}Ze||e!==h?Lt(s):(it=a.style,tn(s,i||s.img)),t.el.innerHTML="",t.el.appendChild(a)}else t.el.innerHTML=""},cleanSlide:function(t){t.img&&(t.img.onload=t.img.onerror=null),t.loaded=t.loading=t.img=t.imageAppended=!1}}});var fn,pn,mn={},gn=function(t,e,n){var i=document.createEvent("CustomEvent"),r={origEvent:t,target:t.target,releasePoint:e,pointerType:n||"touch"};i.initCustomEvent("pswpTap",!0,!0,r),t.target.dispatchEvent(i)};if(Tt("Tap",{publicMethods:{initTap:function(){$t("firstTouchStart",o.onTapStart),$t("touchRelease",o.onTapRelease),$t("destroy",(function(){mn={},fn=null}))},onTapStart:function(t){t.length>1&&(clearTimeout(fn),fn=null)},onTapRelease:function(t,e){if(e&&!Z&&!V&&!Kt){var n=e;if(fn&&(clearTimeout(fn),fn=null,Se(n,mn)))return void It("doubleTap",n);if("mouse"===e.type)return void gn(t,e,"mouse");if("BUTTON"===t.target.tagName.toUpperCase()||r.hasClass(t.target,"pswp__single-tap"))return void gn(t,e);Ot(mn,n),fn=setTimeout((function(){gn(t,e),fn=null}),300)}}}}),Tt("DesktopZoom",{publicMethods:{initDesktopZoom:function(){O||(P?$t("mouseUsed",(function(){o.setupDesktopZoom()})):o.setupDesktopZoom(!0))},setupDesktopZoom:function(e){pn={};var n="wheel mousewheel DOMMouseScroll";$t("bindEvents",(function(){r.bind(t,n,o.handleMouseWheel)})),$t("unbindEvents",(function(){pn&&r.unbind(t,n,o.handleMouseWheel)})),o.mouseZoomedIn=!1;var i,s=function(){o.mouseZoomedIn&&(r.removeClass(t,"pswp--zoomed-in"),o.mouseZoomedIn=!1),y<1?r.addClass(t,"pswp--zoom-allowed"):r.removeClass(t,"pswp--zoom-allowed"),a()},a=function(){i&&(r.removeClass(t,"pswp--dragging"),i=!1)};$t("resize",s),$t("afterChange",s),$t("pointerDown",(function(){o.mouseZoomedIn&&(i=!0,r.addClass(t,"pswp--dragging"))})),$t("pointerUp",a),e||s()},handleMouseWheel:function(t){if(y<=o.currItem.fitRatio)return l.modal&&(!l.closeOnScroll||Kt||Y?t.preventDefault():_&&Math.abs(t.deltaY)>2&&(d=!0,o.close())),!0
;if(t.stopPropagation(),pn.x=0,"deltaX"in t)1===t.deltaMode?(pn.x=18*t.deltaX,pn.y=18*t.deltaY):(pn.x=t.deltaX,pn.y=t.deltaY);else if("wheelDelta"in t)t.wheelDeltaX&&(pn.x=-.16*t.wheelDeltaX),t.wheelDeltaY?pn.y=-.16*t.wheelDeltaY:pn.y=-.16*t.wheelDelta;else{if(!("detail"in t))return;pn.y=t.detail}Wt(y,!0);var e=pt.x-pn.x,n=pt.y-pn.y;(l.modal||e<=nt.min.x&&e>=nt.max.x&&n<=nt.min.y&&n>=nt.max.y)&&t.preventDefault(),o.panTo(e,n)},toggleDesktopZoom:function(e){e=e||{x:mt.x/2+vt.x,y:mt.y/2+vt.y};var n=l.getDoubleTapZoom(!0,o.currItem),i=y===n;o.mouseZoomedIn=!i,o.zoomTo(i?o.currItem.initialZoomLevel:n,e,333),r[(i?"remove":"add")+"Class"](t,"pswp--zoomed-in")}}}),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)){var vn=function(){document.documentElement.style.setProperty("--window-inner-height",window.innerHeight+"px")};window.addEventListener("resize",vn),Tt("Safari15Patch",{publicMethods:{initSafari15Patch:function(){$t("initialZoomInEnd",(function(){vn(),document.documentElement.classList.add("pswp-open-in-ios")})),$t("initialZoomOut",(function(){document.documentElement.classList.remove("pswp-open-in-ios")}))}}})}r.extend(o,ie)};return t})),window.PhotoSwipeUI=function(t,e){var n,i,r,o,s,a,l,u,c,d,h,f,p,m,g,v,y=this,b=!1,w=!0,x={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:0,timeToIdleOutside:0,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(t,e){return t.title?(e.children[0].innerHTML=t.title,!0):(e.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,shareEl:!0,addToSelectionEl:!0,addToCartEl:!0,downloadEl:!0,onShareFn:function(){},onChangeSelectionFn:function(){},onChangeCartFn:function(){},onDownloadFn:function(){},tapToClose:!1,tapToToggleControls:!0,controlsInitiallyHiddenOnTouchDevice:!1,indexIndicatorSep:" / ",fitControlsWidth:1200},S=function(t){if(m)return!0;t=t||window.event,p.timeToIdle&&p.mouseUsed&&!l&&I();for(var n,i,r=(t.target||t.srcElement).getAttribute("class")||"",o=0;o<N.length;o++)(n=N[o]).onTap&&r.indexOf("pswp__"+n.name)>-1&&(n.onTap(),i=!0);if(i){t.stopPropagation&&t.stopPropagation(),m=!0;var s=e.features.isOldAndroid?600:30;setTimeout((function(){m=!1}),s)}},C=function(){return!t.likelyTouchDevice||p.mouseUsed||screen.width>p.fitControlsWidth},T=function(t,n,i){e[(i?"add":"remove")+"Class"](t,"pswp__"+n)},E=function(){var t=1===p.getNumItemsFn();t!==f&&(T(i,"ui--one-slide",t),f=t)},k=function(t){for(var n=0;n<p.closeElClasses.length;n++)if(e.hasClass(t,"pswp__"+p.closeElClasses[n]))return!0},$=0,I=function(){clearTimeout(v),$=0,l&&y.setIdle(!1)},A=function(t){var e=(t=t||window.event).relatedTarget||t.toElement;e&&"HTML"!==e.nodeName||(clearTimeout(v),v=setTimeout((function(){y.setIdle(!0)}),p.timeToIdleOutside))},_=function(){p.fullscreenEl&&!e.features.isOldAndroid&&(n||(n=y.getFullscreenAPI()),n?(e.bind(document,n.eventK,y.updateFullscreen),y.updateFullscreen(),e.addClass(t.template,"pswp--supports-fs")):e.removeClass(t.template,"pswp--supports-fs"))},z=function(){p.preloaderEl&&(P(!0),u("beforeChange",(function(){clearTimeout(h),h=setTimeout((function(){t.currItem&&t.currItem.loading?(!t.allowProgressiveImg()||t.currItem.img&&!t.currItem.img.naturalWidth)&&P(!1):P(!0)}),p.loadingIndicatorDelay)})),u("imageLoadComplete",(function(e,n){t.currItem===n&&P(!0)})))},P=function(t){d!==t&&(T(c,"preloader--active",!t),d=t)},L=function(t){var n=t.vGap;if(C()){var s=p.barsSize;if(p.captionEl&&"auto"===s.bottom)if(o||((o=e.createEl("pswp__caption pswp__caption--fake")).appendChild(e.createEl("pswp__caption__center")),i.insertBefore(o,r),e.addClass(i,"pswp__ui--fit")),p.addCaptionHTMLFn(t,o,!0)){var a=o.clientHeight;n.bottom=parseInt(a,10)||44}else n.bottom=s.top;else n.bottom="auto"===s.bottom?0:s.bottom;n.top=s.top}else n.top=n.bottom=0},j=function(){p.timeToIdle&&u("mouseUsed",(function(){e.bind(document,"mousemove",I),e.bind(document,"mouseout",A),g=setInterval((function(){2===++$&&y.setIdle(!0)}),p.timeToIdle/2)}))},D=function(){var t;u("onVerticalDrag",(function(t){w&&t<.95?y.hideControls():!w&&t>=.95&&y.showControls()})),u("onPinchClose",(function(e){w&&e<.9?(y.hideControls(),t=!0):t&&!w&&e>.9&&y.showControls()})),u("zoomGestureEnded",(function(){(t=!1)&&!w&&y.showControls()}))},N=[{name:"caption",option:"captionEl",onInit:function(t){r=t}},{name:"button--zoom",option:"zoomEl",onTap:t.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(t){s=t}},{name:"button--close",option:"closeEl",onTap:t.close},{name:"button--arrow--left",option:"arrowEl",onTap:t.prev},{name:"button--arrow--right",option:"arrowEl",onTap:t.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){n.isFullscreen()?n.exit():n.enter()}},{name:"button--share",option:"shareEl",onTap:function(){p.onShareFn(t.currItem,t)}},{name:"button--selection",option:"addToSelectionEl",onTap:function(){p.onChangeSelectionFn(t.currItem,t)}},{name:"button--cart",option:"addToCartEl",onTap:function(){p.onChangeCartFn(t.currItem,t)}},{name:"button--download",option:"downloadEl",onTap:function(){p.onDownloadFn(t.currItem,t)}}],O=function(){var n,r,o,s=function(t){if(t)for(var i=t.length,s=0;s<i;s++){n=t[s],r=n.className;for(var a=0;a<N.length;a++)o=N[a],r.indexOf("pswp__"+o.name)>-1&&(p[o.option]?(e.removeClass(n,"pswp__element--disabled"),o.onInit&&o.onInit(n)):e.addClass(n,"pswp__element--disabled"))}};s(i.children);var a=e.getChildByClass(i,"pswp__top-bar");a&&s(a.children),c=e.getChildByClass(t.scrollWrap,"pswp__preloader")};y.init=function(){e.extend(t.options,x,!0),p=t.options,i=e.getChildByClass(t.scrollWrap,"pswp__ui"),u=t.listen,D(),u("beforeChange",y.update),u("doubleTap",(function(e){var n=t.currItem.initialZoomLevel;t.getZoomLevel()!==n?t.zoomTo(n,e,333):t.zoomTo(p.getDoubleTapZoom(!1,t.currItem),e,333)})),u("preventDragEvent",(function(t,e,n){var i=t.target||t.srcElement;i&&i.getAttribute("class")&&t.type.indexOf("mouse")>-1&&(i.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(i.tagName))&&(n.prevent=!1)})),u("bindEvents",(function(){e.bind(i,"pswpTap click",S),e.bind(t.scrollWrap,"pswpTap",y.onGlobalTap),t.likelyTouchDevice||e.bind(t.scrollWrap,"mouseover",y.onMouseOver)})),u("unbindEvents",(function(){g&&clearInterval(g),e.unbind(document,"mouseout",A),e.unbind(document,"mousemove",I),e.unbind(i,"pswpTap click",S),e.unbind(t.scrollWrap,"pswpTap",y.onGlobalTap),e.unbind(t.scrollWrap,"mouseover",y.onMouseOver),n&&(e.unbind(document,n.eventK,y.updateFullscreen),n.isFullscreen()&&(p.hideAnimationDuration=0,n.exit()),n=null)})),u("destroy",(function(){p.captionEl&&(o&&i.removeChild(o),e.removeClass(r,"pswp__caption--empty")),e.removeClass(i,"pswp__ui--over-close"),e.addClass(i,"pswp__ui--hidden"),clearTimeout(v),y.setIdle(!1)})),p.showAnimationDuration||e.removeClass(i,"pswp__ui--hidden"),u("initialZoomIn",(function(){p.showAnimationDuration&&e.removeClass(i,"pswp__ui--hidden")})),u("initialZoomIn",y.initiallyHideControls),u("initialZoomOut",(function(){e.addClass(i,"pswp__ui--hidden")})),u("parseVerticalMargin",L),O(),E(),j(),_(),z()},y.setIdle=function(t){l=t,T(i,"ui--idle",t)},y.update=function(){w&&t.currItem?(y.updateIndexIndicator(),p.captionEl&&(p.addCaptionHTMLFn(t.currItem,r),T(r,"caption--empty",!t.currItem.title)),b=!0):b=!1,E()},y.updateFullscreen=function(i){i&&setTimeout((function(){t.setScrollOffset(0,e.getScrollY())}),50),e[(n.isFullscreen()?"add":"remove")+"Class"](t.template,"pswp--fs")},y.updateIndexIndicator=function(){p.counterEl&&(s.innerHTML=t.getCurrentIndex()+1+p.indexIndicatorSep+p.getNumItemsFn())},y.onGlobalTap=function(n){var i=(n=n||window.event).target||n.srcElement;if(!m)if(n.detail&&"mouse"===n.detail.pointerType){if(k(i))return void t.close();e.hasClass(i,"pswp__img")&&(1===t.getZoomLevel()&&t.getZoomLevel()>t.currItem.fitRatio?t.toggleDesktopZoom(n.detail.releasePoint):t.next())}else if(p.tapToToggleControls&&(w?y.hideControls():y.showControls()),p.tapToClose&&(e.hasClass(i,"pswp__img")||k(i)))return void t.close()},y.onMouseOver=function(t){var e=(t=t||window.event).target||t.srcElement;T(i,"ui--over-close",k(e))},y.hideControls=function(){e.addClass(i,"pswp__ui--hidden"),w=!1},y.showControls=function(){w=!0,b||y.update(),e.removeClass(i,"pswp__ui--hidden")},y.initiallyHideControls=function(){p.controlsInitiallyHiddenOnTouchDevice&&t.likelyTouchDevice&&y.hideControls()},y.supportsFullscreen=function(){var t=document;return!!(t.exitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen||t.msExitFullscreen)},y.getFullscreenAPI=function(){var e,n=document.documentElement,i="fullscreenchange";return n.requestFullscreen?e={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:i}:n.mozRequestFullScreen?e={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+i}:n.webkitRequestFullscreen?e={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+i}:n.msRequestFullscreen&&(e={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),e&&(e.enter=function(){if(a=p.closeOnScroll,p.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return t.template[this.enterK]();t.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},e.exit=function(){return p.closeOnScroll=a,document[this.exitK]()},e.isFullscreen=function(){return document[this.elementK]}),e}},function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(n),n}:t(jQuery)}((function(t){"use strict";function e(e){var n=e.data;e.isDefaultPrevented()||(e.preventDefault(),t(e.target).closest("form").ajaxSubmit(n))}function n(e){var n=e.target,i=t(n);if(!i.is("[type=submit],[type=image]")){var r=i.closest("[type=submit]");if(0===r.length)return;n=r[0]}var o=n.form;if(o.clk=n,"image"===n.type)if(void 0!==e.offsetX)o.clk_x=e.offsetX,o.clk_y=e.offsetY;else if("function"==typeof t.fn.offset){var s=i.offset();o.clk_x=e.pageX-s.left,o.clk_y=e.pageY-s.top}else o.clk_x=e.pageX-n.offsetLeft,o.clk_y=e.pageY-n.offsetTop;setTimeout((function(){o.clk=o.clk_x=o.clk_y=null}),100)}function i(){if(t.fn.ajaxSubmit.debug){var e="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e)}}var r=/\r?\n/g,o={};o.fileapi=void 0!==t('<input type="file">').get(0).files,o.formdata=void 0!==window.FormData;var s=!!t.fn.prop;t.fn.attr2=function(){if(!s)return this.attr.apply(this,arguments);var t=this.prop.apply(this,arguments);return t&&t.jquery||"string"==typeof t?t:this.attr.apply(this,arguments)},t.fn.ajaxSubmit=function(e,n,r,a){function l(n){var i,r,o=t.param(n,e.traditional).split("&"),s=o.length,a=[];for(i=0;i<s;i++)o[i]=o[i].replace(/\+/g," "),r=o[i].split("="),a.push([decodeURIComponent(r[0]),decodeURIComponent(r[1])]);return a}function u(n){for(var i=new FormData,r=0;r<n.length;r++)i.append(n[r].name,n[r].value);if(e.extraData){var o=l(e.extraData);for(r=0;r<o.length;r++)o[r]&&i.append(o[r][0],o[r][1])}e.data=null;var s=t.extend(!0,{},t.ajaxSettings,e,{contentType:!1,processData:!1,cache:!1,type:d||"POST"});e.uploadProgress&&(s.xhr=function(){var n=t.ajaxSettings.xhr();return n.upload&&n.upload.addEventListener("progress",(function(t){var n=0,i=t.loaded||t.position,r=t.total;t.lengthComputable&&(n=Math.ceil(i/r*100)),e.uploadProgress(t,i,r,n)}),!1),n}),s.data=null;var a=s.beforeSend;return s.beforeSend=function(t,n){e.formData?n.data=e.formData:n.data=i,a&&a.call(this,t,n)},t.ajax(s)}function c(n){function r(t){var e=null;try{t.contentWindow&&(e=t.contentWindow.document)}catch(t){i("cannot get iframe.contentWindow document: "+t)}if(e)return e;try{e=t.contentDocument?t.contentDocument:t.document}catch(n){i("cannot get iframe.contentDocument: "+n),e=t.document}return e}function o(){function e(){try{var t=r(g).readyState;i("state = "+t),t&&"uninitialized"===t.toLowerCase()&&setTimeout(e,50)}catch(t){i("Server abort: ",t," (",t.name,")"),a(I),S&&clearTimeout(S),S=void 0}}var n=p.attr2("target"),o=p.attr2("action"),s="multipart/form-data",l=p.attr("enctype")||p.attr("encoding")||s;C.setAttribute("target",f),d&&!/post/i.test(d)||C.setAttribute("method","POST"),o!==c.url&&C.setAttribute("action",c.url),c.skipEncodingOverride||d&&!/post/i.test(d)||p.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),c.timeout&&(S=setTimeout((function(){x=!0,a($)}),c.timeout));var u=[];try{if(c.extraData)for(var h in c.extraData)c.extraData.hasOwnProperty(h)&&(t.isPlainObject(c.extraData[h])&&c.extraData[h].hasOwnProperty("name")&&c.extraData[h].hasOwnProperty("value")?u.push(t('<input type="hidden" name="'+c.extraData[h].name+'">',E).val(c.extraData[h].value).appendTo(C)[0]):u.push(t('<input type="hidden" name="'+h+'">',E).val(c.extraData[h]).appendTo(C)[0]));c.iframeTarget||m.appendTo(k),g.attachEvent?g.attachEvent("onload",a):g.addEventListener("load",a,!1),setTimeout(e,15);try{C.submit()}catch(t){document.createElement("form").submit.apply(C)}}finally{C.setAttribute("action",o),C.setAttribute("enctype",l),n?C.setAttribute("target",n):p.removeAttr("target"),t(u).remove()}}function a(e){if(!v.aborted&&!L){if((P=r(g))||(i("cannot access response document"),e=I),e===$&&v)return v.abort("timeout"),void T.reject(v,"timeout");if(e===I&&v)return v.abort("server abort"),void T.reject(v,"error","server abort");if(P&&P.location.href!==c.iframeSrc||x){g.detachEvent?g.detachEvent("onload",a):g.removeEventListener("load",a,!1);var n,o="success";try{if(x)throw"timeout";var s="xml"===c.dataType||P.XMLDocument||t.isXMLDoc(P);if(i("isXml="+s),!s&&window.opera&&(null===P.body||!P.body.innerHTML)&&--j)return i("requeing onLoad callback, DOM not available"),void setTimeout(a,250);var l=P.body?P.body:P.documentElement;v.responseText=l?l.innerHTML:null,v.responseXML=P.XMLDocument?P.XMLDocument:P,s&&(c.dataType="xml"),v.getResponseHeader=function(t){return{"content-type":c.dataType}[t.toLowerCase()]},l&&(v.status=Number(l.getAttribute("status"))||v.status,v.statusText=l.getAttribute("statusText")||v.statusText);var u=(c.dataType||"").toLowerCase(),d=/(json|script|text)/.test(u);if(d||c.textarea){var f=P.getElementsByTagName("textarea")[0];if(f)v.responseText=f.value,v.status=Number(f.getAttribute("status"))||v.status,v.statusText=f.getAttribute("statusText")||v.statusText;else if(d){var p=P.getElementsByTagName("pre")[0],y=P.getElementsByTagName("body")[0];p?v.responseText=p.textContent?p.textContent:p.innerText:y&&(v.responseText=y.textContent?y.textContent:y.innerText)}}else"xml"===u&&!v.responseXML&&v.responseText&&(v.responseXML=D(v.responseText));try{z=O(v,u,c)}catch(t){o="parsererror",v.error=n=t||o}}catch(t){i("error caught: ",t),o="error",v.error=n=t||o}v.aborted&&(i("upload aborted"),o=null),v.status&&(o=v.status>=200&&v.status<300||304===v.status?"success":"error"),"success"===o?(c.success&&c.success.call(c.context,z,"success",v),T.resolve(v.responseText,"success",v),h&&t.event.trigger("ajaxSuccess",[v,c])):o&&(void 0===n&&(n=v.statusText),c.error&&c.error.call(c.context,v,o,n),T.reject(v,"error",n),h&&t.event.trigger("ajaxError",[v,c,n])),h&&t.event.trigger("ajaxComplete",[v,c]),h&&! --t.active&&t.event.trigger("ajaxStop"),c.complete&&c.complete.call(c.context,v,o),L=!0,c.timeout&&clearTimeout(S),setTimeout((function(){c.iframeTarget?m.attr("src",c.iframeSrc):m.remove(),v.responseXML=null}),100)}}}var l,u,c,h,f,m,g,v,b,w,x,S,C=p[0],T=t.Deferred();if(T.abort=function(t){v.abort(t)},n)for(u=0;u<y.length;u++)l=t(y[u]),s?l.prop("disabled",!1):l.removeAttr("disabled");(c=t.extend(!0,{},t.ajaxSettings,e)).context=c.context||c,f="jqFormIO"+(new Date).getTime();var E=C.ownerDocument,k=p.closest("body");if(c.iframeTarget?(w=(m=t(c.iframeTarget,E)).attr2("name"))?f=w:m.attr2("name",f):(m=t('<iframe name="'+f+'" src="'+c.iframeSrc+'" />',E)).css({position:"absolute",top:"-1000px",left:"-1000px"}),g=m[0],v={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var n="timeout"===e?"timeout":"aborted";i("aborting upload... "+n),this.aborted=1;try{g.contentWindow.document.execCommand&&g.contentWindow.document.execCommand("Stop")}catch(t){}m.attr("src",c.iframeSrc),v.error=n,c.error&&c.error.call(c.context,v,n,e),h&&t.event.trigger("ajaxError",[v,c,n]),c.complete&&c.complete.call(c.context,v,n)}},(h=c.global)&&0==t.active++&&t.event.trigger("ajaxStart"),h&&t.event.trigger("ajaxSend",[v,c]),c.beforeSend&&!1===c.beforeSend.call(c.context,v,c))return c.global&&t.active--,T.reject(),T;if(v.aborted)return T.reject(),T;(b=C.clk)&&(w=b.name)&&!b.disabled&&(c.extraData=c.extraData||{},c.extraData[w]=b.value,"image"===b.type&&(c.extraData[w+".x"]=C.clk_x,c.extraData[w+".y"]=C.clk_y));var $=1,I=2,A=t("meta[name=csrf-token]").attr("content"),_=t("meta[name=csrf-param]").attr("content");_&&A&&(c.extraData=c.extraData||{},c.extraData[_]=A),c.forceSync?o():setTimeout(o,10);var z,P,L,j=50,D=t.parseXML||function(t,e){return window.ActiveXObject?((e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t)):e=(new DOMParser).parseFromString(t,"text/xml"),e&&e.documentElement&&"parsererror"!==e.documentElement.nodeName?e:null},N=t.parseJSON||function(t){return window.eval("("+t+")")},O=function(e,n,i){var r=e.getResponseHeader("content-type")||"",o=("xml"===n||!n)&&r.indexOf("xml")>=0,s=o?e.responseXML:e.responseText;return o&&"parsererror"===s.documentElement.nodeName&&t.error&&t.error("parsererror"),i&&i.dataFilter&&(s=i.dataFilter(s,n)),"string"==typeof s&&(("json"===n||!n)&&r.indexOf("json")>=0?s=N(s):("script"===n||!n)&&r.indexOf("javascript")>=0&&t.globalEval(s)),s};return T}if(!this.length)return i("ajaxSubmit: skipping submit process - no element selected"),this;var d,h,f,p=this;"function"==typeof e?e={success:e}:"string"==typeof e||!1===e&&arguments.length>0?(e={url:e,data:n,dataType:r},"function"==typeof a&&(e.success=a)):void 0===e&&(e={}),d=e.method||e.type||this.attr2("method"),(f=(f="string"==typeof(h=e.url||this.attr2("action"))?t.trim(h):"")||window.location.href||"")&&(f=(f.match(/^([^#]+)/)||[])[1]),e=t.extend(!0,{url:f,success:t.ajaxSettings.success,type:d||t.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},e);var m={};if(this.trigger("form-pre-serialize",[this,e,m]),m.veto)return i("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(e.beforeSerialize&&!1===e.beforeSerialize(this,e))return i("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var g=e.traditional;void 0===g&&(g=t.ajaxSettings.traditional);var v,y=[],b=this.formToArray(e.semantic,y,e.filtering);if(e.data){var w=t.isFunction(e.data)?e.data(b):e.data;e.extraData=w,v=t.param(w,g)}if(e.beforeSubmit&&!1===e.beforeSubmit(b,this,e))return i("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[b,this,e,m]),m.veto)return i("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var x=t.param(b,g);v&&(x=x?x+"&"+v:v),"GET"===e.type.toUpperCase()?(e.url+=(e.url.indexOf("?")>=0?"&":"?")+x,e.data=null):e.data=x;var S=[];if(e.resetForm&&S.push((function(){p.resetForm()})),e.clearForm&&S.push((function(){p.clearForm(e.includeHidden)})),!e.dataType&&e.target){var C=e.success||function(){};S.push((function(n,i,r){var o=arguments,s=e.replaceTarget?"replaceWith":"html";t(e.target)[s](n).each((function(){C.apply(this,o)}))}))}else e.success&&(t.isArray(e.success)?t.merge(S,e.success):S.push(e.success));if(e.success=function(t,n,i){for(var r=e.context||this,o=0,s=S.length;o<s;o++)S[o].apply(r,[t,n,i||p,p])},e.error){var T=e.error;e.error=function(t,n,i){var r=e.context||this;T.apply(r,[t,n,i,p])}}if(e.complete){var E=e.complete;e.complete=function(t,n){var i=e.context||this;E.apply(i,[t,n,p])}}var k=t("input[type=file]:enabled",this).filter((function(){return""!==t(this).val()})).length>0,$="multipart/form-data",I=p.attr("enctype")===$||p.attr("encoding")===$,A=o.fileapi&&o.formdata;i("fileAPI :"+A);var _,z=(k||I)&&!A;!1!==e.iframe&&(e.iframe||z)?e.closeKeepAlive?t.get(e.closeKeepAlive,(function(){_=c(b)})):_=c(b):_=(k||I)&&A?u(b):t.ajax(e),p.removeData("jqxhr").data("jqxhr",_);for(var P=0;P<y.length;P++)y[P]=null;return this.trigger("form-submit-notify",[this,e]),this},t.fn.ajaxForm=function(r,o,s,a){if(("string"==typeof r||!1===r&&arguments.length>0)&&(r={url:r,data:o,dataType:s},"function"==typeof a&&(r.success=a)),(r=r||{}).delegation=r.delegation&&t.isFunction(t.fn.on),!r.delegation&&0===this.length){var l={s:this.selector,c:this.context};return!t.isReady&&l.s?(i("DOM not ready, queuing ajaxForm"),t((function(){t(l.s,l.c).ajaxForm(r)})),this):(i("terminating; zero elements found by selector"+(t.isReady?"":" (DOM not ready)")),this)}return r.delegation?(t(document).off("submit.form-plugin",this.selector,e).off("click.form-plugin",this.selector,n).on("submit.form-plugin",this.selector,r,e).on("click.form-plugin",this.selector,r,n),this):this.ajaxFormUnbind().on("submit.form-plugin",r,e).on("click.form-plugin",r,n)},t.fn.ajaxFormUnbind=function(){return this.off("submit.form-plugin click.form-plugin")},t.fn.formToArray=function(e,n,i){var r=[];if(0===this.length)return r;var s,a,l,u,c,d,h,f,p=this[0],m=this.attr("id"),g=e||void 0===p.elements?p.getElementsByTagName("*"):p.elements;if(g&&(g=t.makeArray(g)),m&&(e||/(Edge|Trident)\//.test(navigator.userAgent))&&(s=t(':input[form="'+m+'"]').get()).length&&(g=(g||[]).concat(s)),!g||!g.length)return r;for(t.isFunction(i)&&(g=t.map(g,i)),a=0,h=g.length;a<h;a++)if((u=(d=g[a]).name)&&!d.disabled)if(e&&p.clk&&"image"===d.type)p.clk===d&&(r.push({name:u,value:t(d).val(),type:d.type}),r.push({name:u+".x",value:p.clk_x},{name:u+".y",value:p.clk_y}));else if((c=t.fieldValue(d,!0))&&c.constructor===Array)for(n&&n.push(d),l=0,f=c.length;l<f;l++)r.push({name:u,value:c[l]});else if(o.fileapi&&"file"===d.type){n&&n.push(d);var v=d.files;if(v.length)for(l=0;l<v.length;l++)r.push({name:u,value:v[l],type:d.type});else r.push({name:u,value:"",type:d.type})}else null!=c&&(n&&n.push(d),r.push({name:u,value:c,type:d.type,required:d.required}));if(!e&&p.clk){var y=t(p.clk),b=y[0];(u=b.name)&&!b.disabled&&"image"===b.type&&(r.push({name:u,value:y.val()}),r.push({name:u+".x",value:p.clk_x},{name:u+".y",value:p.clk_y}))}return r},t.fn.formSerialize=function(e){return t.param(this.formToArray(e))},t.fn.fieldSerialize=function(e){var n=[];return this.each((function(){var i=this.name;if(i){var r=t.fieldValue(this,e);if(r&&r.constructor===Array)for(var o=0,s=r.length;o<s;o++)n.push({name:i,value:r[o]});else null!=r&&n.push({name:this.name,value:r})}})),t.param(n)},t.fn.fieldValue=function(e){for(var n=[],i=0,r=this.length;i<r;i++){var o=this[i],s=t.fieldValue(o,e);null==s||s.constructor===Array&&!s.length||(s.constructor===Array?t.merge(n,s):n.push(s))}return n},t.fieldValue=function(e,n){var i=e.name,o=e.type,s=e.tagName.toLowerCase();if(void 0===n&&(n=!0),n&&(!i||e.disabled||"reset"===o||"button"===o||("checkbox"===o||"radio"===o)&&!e.checked||("submit"===o||"image"===o)&&e.form&&e.form.clk!==e||"select"===s&&-1===e.selectedIndex))return null;if("select"===s){var a=e.selectedIndex;if(a<0)return null;for(var l=[],u=e.options,c="select-one"===o,d=c?a+1:u.length,h=c?a:0;h<d;h++){var f=u[h];if(f.selected&&!f.disabled){var p=f.value;if(p||(p=f.attributes&&f.attributes.value&&!f.attributes.value.specified?f.text:f.value),c)return p;l.push(p)}}return l}return t(e).val().replace(r,"\r\n")},t.fn.clearForm=function(e){return this.each((function(){t("input,select,textarea",this).clearFields(e)}))},t.fn.clearFields=t.fn.clearInputs=function(e){var n=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each((function(){var i=this.type,r=this.tagName.toLowerCase();n.test(i)||"textarea"===r?this.value="":"checkbox"===i||"radio"===i?this.checked=!1:"select"===r?this.selectedIndex=-1:"file"===i?/MSIE/.test(navigator.userAgent)?t(this).replaceWith(t(this).clone(!0)):t(this).val(""):e&&(!0===e&&/hidden/.test(i)||"string"==typeof e&&t(this).is(e))&&(this.value="")}))},t.fn.resetForm=function(){return this.each((function(){var e=t(this),n=this.tagName.toLowerCase();switch(n){case"input":this.checked=this.defaultChecked;case"textarea":return this.value=this.defaultValue,!0;case"option":case"optgroup":var i=e.parents("select");return i.length&&i[0].multiple?"option"===n?this.selected=this.defaultSelected:e.find("option").resetForm():i.resetForm(),!0;case"select":return e.find("option").each((function(t){if(this.selected=this.defaultSelected,this.defaultSelected&&!e[0].multiple)return e[0].selectedIndex=t,!1})),!0;case"label":var r=t(e.attr("for")),o=e.find("input,select,textarea");return r[0]&&o.unshift(r[0]),o.resetForm(),!0;case"form":return("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset(),!0;default:return e.find("form,input,label,select,textarea").resetForm(),!0}}))},t.fn.enable=function(t){return void 0===t&&(t=!0),this.each((function(){this.disabled=!t}))},t.fn.selected=function(e){return void 0===e&&(e=!0),this.each((function(){var n=this.type;if("checkbox"===n||"radio"===n)this.checked=e;else if("option"===this.tagName.toLowerCase()){var i=t(this).parent("select");e&&i[0]&&"select-one"===i[0].type&&i.find("option").selected(!1),this.selected=e}}))},t.fn.ajaxSubmit.debug=!1})),function(t,e,n,i){"use strict";function r(t,e,n){return setTimeout(u(t,n),e)}function o(t,e,n){return!!Array.isArray(t)&&(s(t,n[e],n),!0)}function s(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==i)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function a(e,n,i){var r="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=t.console&&(t.console.warn||t.console.log);return o&&o.call(t.console,r,i),e.apply(this,arguments)}}function l(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&dt(i,n)}function u(t,e){return function(){return t.apply(e,arguments)}}function c(t,e){return typeof t==pt?t.apply(e&&e[0]||i,e):t}function d(t,e){return t===i?e:t}function h(t,e,n){s(g(e),(function(e){t.addEventListener(e,n,!1)}))}function f(t,e,n){s(g(e),(function(e){t.removeEventListener(e,n,!1)}))}function p(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function m(t,e){return t.indexOf(e)>-1}function g(t){return t.trim().split(/\s+/g)}function v(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function y(t){return Array.prototype.slice.call(t,0)}function b(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];v(r,s)<0&&i.push(t[o]),r[o]=s,o++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}function w(t,e){for(var n,r,o=e[0].toUpperCase()+e.slice(1),s=0;s<ht.length;){if((r=(n=ht[s])?n+o:e)in t)return r;s++}return i}function x(){return wt++}function S(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}function C(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){c(t.options.enable,[t])&&n.handler(e)},this.init()}function T(t){var e=t.options.inputClass;return new(e||(Ct?M:Tt?q:St?W:O))(t,E)}function E(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&_t&&i-r==0,s=e&(Pt|Lt)&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,k(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function k(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=A(e)),r>1&&!n.firstMultiple?n.firstMultiple=A(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,l=e.center=_(i);e.timeStamp=vt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=j(a,l),e.distance=L(a,l),$(n,e),e.offsetDirection=P(e.deltaX,e.deltaY);var u=z(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=gt(u.x)>gt(u.y)?u.x:u.y,e.scale=s?N(s.pointers,i):1,e.rotation=s?D(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,I(n,e);var c=t.element;p(e.srcEvent.target,c)&&(c=e.srcEvent.target),e.target=c}function $(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==_t&&o.eventType!==Pt||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function I(t,e){var n,r,o,s,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=Lt&&(l>At||a.velocity===i)){var u=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,d=z(l,u,c);r=d.x,o=d.y,n=gt(d.x)>gt(d.y)?d.x:d.y,s=P(u,c),t.lastInterval=e}else n=a.velocity,r=a.velocityX,o=a.velocityY,s=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=o,e.direction=s}function A(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:mt(t.pointers[n].clientX),clientY:mt(t.pointers[n].clientY)},n++;return{timeStamp:vt(),pointers:e,center:_(e),deltaX:t.deltaX,deltaY:t.deltaY}}function _(t){var e=t.length;if(1===e)return{x:mt(t[0].clientX),y:mt(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:mt(n/e),y:mt(i/e)}}function z(t,e,n){return{x:e/t||0,y:n/t||0}}function P(t,e){return t===e?jt:gt(t)>=gt(e)?t<0?Dt:Nt:e<0?Ot:Mt}function L(t,e,n){n||(n=Ht);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function j(t,e,n){n||(n=Ht);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function D(t,e){return j(e[1],e[0],Wt)+j(t[1],t[0],Wt)}function N(t,e){return L(e[0],e[1],Wt)/L(t[0],t[1],Wt)}function O(){this.evEl=Ut,this.evWin=Xt,this.pressed=!1,C.apply(this,arguments)}function M(){this.evEl=Gt,this.evWin=Zt,C.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function F(){this.evTarget=Kt,this.evWin=Jt,this.started=!1,C.apply(this,arguments)}function R(t,e){var n=y(t.touches),i=y(t.changedTouches);return e&(Pt|Lt)&&(n=b(n.concat(i),"identifier",!0)),[n,i]}function q(){this.evTarget=ee,this.targetIds={},C.apply(this,arguments)}function H(t,e){var n=y(t.touches),i=this.targetIds;if(e&(_t|zt)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=y(t.changedTouches),a=[],l=this.target;if(o=n.filter((function(t){return p(t.target,l)})),e===_t)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<s.length;)i[s[r].identifier]&&a.push(s[r]),e&(Pt|Lt)&&delete i[s[r].identifier],r++;return a.length?[b(o.concat(a),"identifier",!0),a]:void 0}function W(){C.apply(this,arguments);var t=u(this.handler,this);this.touch=new q(this.manager,t),this.mouse=new O(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function B(t,e){t&_t?(this.primaryTouch=e.changedPointers[0].identifier,U.call(this,e)):t&(Pt|Lt)&&U.call(this,e)}function U(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)}),ne)}}function X(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),s=Math.abs(n-r.y);if(o<=ie&&s<=ie)return!0}return!1}function Y(t,e){this.manager=t,this.set(e)}function V(t){if(m(t,ue))return ue;var e=m(t,ce),n=m(t,de);return e&&n?ue:e||n?e?ce:de:m(t,le)?le:ae}function G(){if(!oe)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){e[i]=!n||t.CSS.supports("touch-action",i)})),e}function Z(t){this.options=dt({},this.defaults,t||{}),this.id=x(),this.manager=null,this.options.enable=d(this.options.enable,!0),this.state=fe,this.simultaneous={},this.requireFail=[]}function Q(t){return t&ye?"cancel":t&ge?"end":t&me?"move":t&pe?"start":""}function K(t){return t==Mt?"down":t==Ot?"up":t==Dt?"left":t==Nt?"right":""}function J(t,e){var n=e.manager;return n?n.get(t):t}function tt(){Z.apply(this,arguments)}function et(){tt.apply(this,arguments),this.pX=null,this.pY=null}function nt(){tt.apply(this,arguments)}function it(){Z.apply(this,arguments),this._timer=null,
this._input=null}function rt(){tt.apply(this,arguments)}function ot(){tt.apply(this,arguments)}function st(){Z.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function at(t,e){return(e=e||{}).recognizers=d(e.recognizers,at.defaults.preset),new lt(t,e)}function lt(t,e){this.options=dt({},at.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=T(this),this.touchAction=new Y(this,this.options.touchAction),ut(this,!0),s(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function ut(t,e){var n,i=t.element;i.style&&(s(t.options.cssProps,(function(r,o){n=w(i.style,o),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}function ct(t,n){var i=e.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=n,n.target.dispatchEvent(i)}var dt,ht=["","webkit","Moz","MS","ms","o"],ft=e.createElement("div"),pt="function",mt=Math.round,gt=Math.abs,vt=Date.now;dt="function"!=typeof Object.assign?function(t){if(t===i||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==i&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(e[o]=r[o])}return e}:Object.assign;var yt=a((function(t,e,n){for(var r=Object.keys(e),o=0;o<r.length;)(!n||n&&t[r[o]]===i)&&(t[r[o]]=e[r[o]]),o++;return t}),"extend","Use `assign`."),bt=a((function(t,e){return yt(t,e,!0)}),"merge","Use `assign`."),wt=1,xt=/mobile|tablet|ip(ad|hone|od)|android/i,St="ontouchstart"in t,Ct=w(t,"PointerEvent")!==i,Tt=St&&xt.test(navigator.userAgent),Et="touch",kt="pen",$t="mouse",It="kinect",At=25,_t=1,zt=2,Pt=4,Lt=8,jt=1,Dt=2,Nt=4,Ot=8,Mt=16,Ft=Dt|Nt,Rt=Ot|Mt,qt=Ft|Rt,Ht=["x","y"],Wt=["clientX","clientY"];C.prototype={handler:function(){},init:function(){this.evEl&&h(this.element,this.evEl,this.domHandler),this.evTarget&&h(this.target,this.evTarget,this.domHandler),this.evWin&&h(S(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&f(this.element,this.evEl,this.domHandler),this.evTarget&&f(this.target,this.evTarget,this.domHandler),this.evWin&&f(S(this.element),this.evWin,this.domHandler)}};var Bt={mousedown:_t,mousemove:zt,mouseup:Pt},Ut="mousedown",Xt="mousemove mouseup";l(O,C,{handler:function(t){var e=Bt[t.type];e&_t&&0===t.button&&(this.pressed=!0),e&zt&&1!==t.which&&(e=Pt),this.pressed&&(e&Pt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:$t,srcEvent:t}))}});var Yt={pointerdown:_t,pointermove:zt,pointerup:Pt,pointercancel:Lt,pointerout:Lt},Vt={2:Et,3:kt,4:$t,5:It},Gt="pointerdown",Zt="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Gt="MSPointerDown",Zt="MSPointerMove MSPointerUp MSPointerCancel"),l(M,C,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=Yt[i],o=Vt[t.pointerType]||t.pointerType,s=o==Et,a=v(e,t.pointerId,"pointerId");r&_t&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):r&(Pt|Lt)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var Qt={touchstart:_t,touchmove:zt,touchend:Pt,touchcancel:Lt},Kt="touchstart",Jt="touchstart touchmove touchend touchcancel";l(F,C,{handler:function(t){var e=Qt[t.type];if(e===_t&&(this.started=!0),this.started){var n=R.call(this,t,e);e&(Pt|Lt)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Et,srcEvent:t})}}});var te={touchstart:_t,touchmove:zt,touchend:Pt,touchcancel:Lt},ee="touchstart touchmove touchend touchcancel";l(q,C,{handler:function(t){var e=te[t.type],n=H.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Et,srcEvent:t})}});var ne=2500,ie=25;l(W,C,{handler:function(t,e,n){var i=n.pointerType==Et,r=n.pointerType==$t;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)B.call(this,e,n);else if(r&&X.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var re=w(ft.style,"touchAction"),oe=re!==i,se="compute",ae="auto",le="manipulation",ue="none",ce="pan-x",de="pan-y",he=G();Y.prototype={set:function(t){t==se&&(t=this.compute()),oe&&this.manager.element.style&&he[t]&&(this.manager.element.style[re]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return s(this.manager.recognizers,(function(e){c(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),V(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=m(i,ue)&&!he[ue],o=m(i,de)&&!he[de],s=m(i,ce)&&!he[ce];if(r){var a=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(a&&l&&u)return}if(!s||!o)return r||o&&n&Ft||s&&n&Rt?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var fe=1,pe=2,me=4,ge=8,ve=ge,ye=16,be=32;Z.prototype={defaults:{},set:function(t){return dt(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(o(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=J(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return o(t,"dropRecognizeWith",this)||(t=J(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(o(t,"requireFailure",this))return this;var e=this.requireFail;return-1===v(e,t=J(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(o(t,"dropRequireFailure",this))return this;t=J(t,this);var e=v(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,i=this.state;i<ge&&e(n.options.event+Q(i)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),i>=ge&&e(n.options.event+Q(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=be},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(be|fe)))return!1;t++}return!0},recognize:function(t){var e=dt({},t);if(!c(this.options.enable,[this,e]))return this.reset(),void(this.state=be);this.state&(ve|ye|be)&&(this.state=fe),this.state=this.process(e),this.state&(pe|me|ge|ye)&&this.tryEmit(e)},process:function(){},getTouchAction:function(){},reset:function(){}},l(tt,Z,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(pe|me),r=this.attrTest(t);return i&&(n&Lt||!r)?e|ye:i||r?n&Pt?e|ge:e&pe?e|me:pe:be}}),l(et,tt,{defaults:{event:"pan",threshold:10,pointers:1,direction:qt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Ft&&e.push(de),t&Rt&&e.push(ce),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&Ft?(r=0===o?jt:o<0?Dt:Nt,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===s?jt:s<0?Ot:Mt,n=s!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return tt.prototype.attrTest.call(this,t)&&(this.state&pe||!(this.state&pe)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=K(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),l(nt,tt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ue]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&pe)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),l(it,Z,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ae]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,o=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(Pt|Lt)&&!o)this.reset();else if(t.eventType&_t)this.reset(),this._timer=r((function(){this.state=ve,this.tryEmit()}),e.time,this);else if(t.eventType&Pt)return ve;return be},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ve&&(t&&t.eventType&Pt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=vt(),this.manager.emit(this.options.event,this._input)))}}),l(rt,tt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ue]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&pe)}}),l(ot,tt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ft|Rt,pointers:1},getTouchAction:function(){return et.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Ft|Rt)?e=t.overallVelocity:n&Ft?e=t.overallVelocityX:n&Rt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&gt(e)>this.options.velocity&&t.eventType&Pt},emit:function(t){var e=K(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),l(st,Z,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[le]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,o=t.deltaTime<e.time;if(this.reset(),t.eventType&_t&&0===this.count)return this.failTimeout();if(i&&o&&n){if(t.eventType!=Pt)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||L(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=r((function(){this.state=ve,this.tryEmit()}),e.interval,this),pe):ve}return be},failTimeout:function(){return this._timer=r((function(){this.state=be}),this.options.interval,this),be},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ve&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),at.VERSION="2.0.7",at.defaults={domEvents:!1,touchAction:se,enable:!0,inputTarget:null,inputClass:null,preset:[[rt,{enable:!1}],[nt,{enable:!1},["rotate"]],[ot,{direction:Ft}],[et,{direction:Ft},["swipe"]],[st],[st,{event:"doubletap",taps:2},["tap"]],[it]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var we=1,xe=2;lt.prototype={set:function(t){return dt(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?xe:we},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&ve)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],e.stopped===xe||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(pe|me|ge)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Z)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(o(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(o(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=v(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==i&&e!==i){var n=this.handlers;return s(g(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==i){var n=this.handlers;return s(g(t),(function(t){e?n[t]&&n[t].splice(v(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&ct(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&ut(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},dt(at,{INPUT_START:_t,INPUT_MOVE:zt,INPUT_END:Pt,INPUT_CANCEL:Lt,STATE_POSSIBLE:fe,STATE_BEGAN:pe,STATE_CHANGED:me,STATE_ENDED:ge,STATE_RECOGNIZED:ve,STATE_CANCELLED:ye,STATE_FAILED:be,DIRECTION_NONE:jt,DIRECTION_LEFT:Dt,DIRECTION_RIGHT:Nt,DIRECTION_UP:Ot,DIRECTION_DOWN:Mt,DIRECTION_HORIZONTAL:Ft,DIRECTION_VERTICAL:Rt,DIRECTION_ALL:qt,Manager:lt,Input:C,TouchAction:Y,TouchInput:q,MouseInput:O,PointerEventInput:M,TouchMouseInput:W,SingleTouchInput:F,Recognizer:Z,AttrRecognizer:tt,Tap:st,Pan:et,Swipe:ot,Pinch:nt,Rotate:rt,Press:it,on:h,off:f,each:s,merge:bt,extend:yt,assign:dt,inherit:l,bindFn:u,prefixed:w}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=at,"function"==typeof define&&define.amd?define((function(){return at})):"undefined"!=typeof module&&module.exports?module.exports=at:t[n]=at}(window,document,"Hammer"),function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],(function(n){return e(t,n)})):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,(function(t,e){"use strict";function n(n,o,a){function l(t,e,i){var r,o="$()."+n+'("'+e+'")';return t.each((function(t,l){var u=a.data(l,n);if(u){var c=u[e];if(c&&"_"!=e.charAt(0)){var d=c.apply(u,i);r=void 0===r?d:r}else s(o+" is not a valid method")}else s(n+" not initialized. Cannot call methods, i.e. "+o)})),void 0!==r?r:t}function u(t,e){t.each((function(t,i){var r=a.data(i,n);r?(r.option(e),r._init()):(r=new o(i,e),a.data(i,n,r))}))}(a=a||e||t.jQuery)&&(o.prototype.option||(o.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[n]=function(t){return"string"==typeof t?l(this,t,r.call(arguments,1)):(u(this,t),this)},i(a))}function i(t){!t||t&&t.bridget||(t.bridget=n)}var r=Array.prototype.slice,o=t.console,s=void 0===o?function(){}:function(t){o.error(t)};return i(e||t.jQuery),n})),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},i=n[t]=n[t]||[];return-1==i.indexOf(e)&&i.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=n.indexOf(e);return-1!=i&&n.splice(i,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var i=this._onceEvents&&this._onceEvents[t],r=0;r<n.length;r++){var o=n[r];i&&i[o]&&(this.off(t,o),delete i[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,(function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],n=0;n<e.length;n++){var i=e[n]+"MatchesSelector";if(t[i])return i}}();return function(e,n){return e[t](n)}})),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],(function(n){return e(t,n)})):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,(function(t,e){var n={extend:function(t,e){for(var n in e)t[n]=e[n];return t},modulo:function(t,e){return(t%e+e)%e}},i=Array.prototype.slice;n.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?i.call(t):[t]},n.removeFrom=function(t,e){var n=t.indexOf(e);-1!=n&&t.splice(n,1)},n.getParent=function(t,n){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,n))return t},n.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.filterFindElements=function(t,i){t=n.makeArray(t);var r=[];return t.forEach((function(t){if(t instanceof HTMLElement)if(i){e(t,i)&&r.push(t);for(var n=t.querySelectorAll(i),o=0;o<n.length;o++)r.push(n[o])}else r.push(t)})),r},n.debounceMethod=function(t,e,n){n=n||100;var i=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments,o=this;this[r]=setTimeout((function(){i.apply(o,e),delete o[r]}),n)}},n.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,n){return e+"-"+n})).toLowerCase()};var r=t.console;return n.htmlInit=function(e,i){n.docReady((function(){var o=n.toDashed(i),s="data-"+o,a=document.querySelectorAll("["+s+"]"),l=document.querySelectorAll(".js-"+o),u=n.makeArray(a).concat(n.makeArray(l)),c=s+"-options",d=t.jQuery;u.forEach((function(t){var n,o=t.getAttribute(s)||t.getAttribute(c);try{n=o&&JSON.parse(o)}catch(e){return void(r&&r.error("Error parsing "+s+" on "+t.className+": "+e))}var a=new e(t,n);d&&d.data(t,i,a)}))}))},n})),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/core",["ev-emitter/ev-emitter","fizzy-ui-utils/utils"],(function(n,i){return e(t,n,i)})):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("fizzy-ui-utils")):t.InfiniteScroll=e(t,t.EvEmitter,t.fizzyUIUtils)}(window,(function(t,e,n){function i(t,e){var s=n.getQueryElement(t);if(s){if((t=s).infiniteScrollGUID){var a=o[t.infiniteScrollGUID];return a.option(e),a}this.element=t,this.options=n.extend({},i.defaults),this.option(e),r&&(this.$element=r(this.element)),this.create()}else console.error("Bad element for InfiniteScroll: "+(s||t))}var r=t.jQuery,o={};i.defaults={},i.create={},i.destroy={};var s=i.prototype;n.extend(s,e.prototype);var a=0;s.create=function(){var t=this.guid=++a;if(this.element.infiniteScrollGUID=t,o[t]=this,this.pageIndex=1,this.loadCount=0,this.updateGetPath(),this.getPath&&this.getPath())for(var e in this.updateGetAbsolutePath(),this.log("initialized",[this.element.className]),this.callOnInit(),i.create)i.create[e].call(this);else console.error("Disabling InfiniteScroll")},s.option=function(t){n.extend(this.options,t)},s.callOnInit=function(){var t=this.options.onInit;t&&t.call(this,this)},s.dispatchEvent=function(t,e,n){this.log(t,n);var i=e?[e].concat(n):n;if(this.emitEvent(t,i),r&&this.$element){var o=t+=".infiniteScroll";if(e){var s=r.Event(e);s.type=t,o=s}this.$element.trigger(o,n)}};var l={initialized:function(t){return"on "+t},request:function(t){return"URL: "+t},load:function(t,e){return(t.title||"")+". URL: "+e},error:function(t,e){return t+". URL: "+e},append:function(t,e,n){return n.length+" items. URL: "+e},last:function(t,e){return"URL: "+e},history:function(t,e){return"URL: "+e},pageIndex:function(t,e){return"current page determined to be: "+t+" from "+e}};s.log=function(t,e){if(this.options.debug){var n="[InfiniteScroll] "+t,i=l[t];i&&(n+=". "+i.apply(this,e)),console.log(n)}},s.updateMeasurements=function(){this.windowHeight=t.innerHeight;var e=this.element.getBoundingClientRect();this.top=e.top+t.pageYOffset},s.updateScroller=function(){var e=this.options.elementScroll;if(e){if(this.scroller=!0===e?this.element:n.getQueryElement(e),!this.scroller)throw"Unable to find elementScroll: "+e}else this.scroller=t},s.updateGetPath=function(){var t=this.options.path;if(t){var e=typeof t;if("function"!=e)"string"==e&&t.match("{{#}}")?this.updateGetPathTemplate(t):this.updateGetPathSelector(t);else this.getPath=t}else console.error("InfiniteScroll path option required. Set as: "+t)},s.updateGetPathTemplate=function(t){this.getPath=function(){var e=this.pageIndex+1;return t.replace("{{#}}",e)}.bind(this);var e=t.replace(/(\\\?|\?)/,"\\?").replace("{{#}}","(\\d\\d?\\d?)"),n=new RegExp(e),i=location.href.match(n);i&&(this.pageIndex=parseInt(i[1],10),this.log("pageIndex",[this.pageIndex,"template string"]))};var u=[/^(.*?\/?page\/?)(\d\d?\d?)(.*?$)/,/^(.*?\/?\?page=)(\d\d?\d?)(.*?$)/,/(.*?)(\d\d?\d?)(?!.*\d)(.*?$)/];return s.updateGetPathSelector=function(t){var e=document.querySelector(t);if(e){for(var n,i,r=e.getAttribute("href"),o=0;r&&o<u.length;o++){i=u[o];var s=r.match(i);if(s){n=s.slice(1);break}}n?(this.isPathSelector=!0,this.getPath=function(){var t=this.pageIndex+1;return n[0]+t+n[2]}.bind(this),this.pageIndex=parseInt(n[1],10)-1,this.log("pageIndex",[this.pageIndex,"next link"])):console.error("InfiniteScroll unable to parse next link href: "+r)}else console.error("Bad InfiniteScroll path option. Next link not found: "+t)},s.updateGetAbsolutePath=function(){var t=this.getPath();if(t.match(/^http/)||t.match(/^\//))this.getAbsolutePath=this.getPath;else{var e=location.pathname;if(t.match(/^\?/))this.getAbsolutePath=function(){return e+this.getPath()};else{var n=e.substring(0,e.lastIndexOf("/"));this.getAbsolutePath=function(){return n+"/"+this.getPath()}}}},i.create.hideNav=function(){var t=n.getQueryElement(this.options.hideNav);t&&(t.style.display="none",this.nav=t)},i.destroy.hideNav=function(){this.nav&&(this.nav.style.display="")},s.destroy=function(){for(var t in this.allOff(),i.destroy)i.destroy[t].call(this);delete this.element.infiniteScrollGUID,delete o[this.guid],r&&this.$element&&r.removeData(this.element,"infiniteScroll")},i.throttle=function(t,e){var n,i;return e=e||200,function(){var r=+new Date,o=arguments,s=function(){n=r,t.apply(this,o)}.bind(this);n&&r<n+e?(clearTimeout(i),i=setTimeout(s,e)):s()}},i.data=function(t){var e=(t=n.getQueryElement(t))&&t.infiniteScrollGUID;return e&&o[e]},i.setJQuery=function(t){r=t},n.htmlInit(i,"infinite-scroll"),s._init=function(){},r&&r.bridget&&r.bridget("infiniteScroll",i),i})),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/page-load",["./core"],(function(n){return e(t,n)})):"object"==typeof module&&module.exports?module.exports=e(t,require("./core")):e(t,t.InfiniteScroll)}(window,(function(t,e){function n(t){for(var e=document.createDocumentFragment(),n=0;t&&n<t.length;n++)e.appendChild(t[n]);return e}function i(t){for(var e=t.querySelectorAll("script"),n=0;n<e.length;n++){var i=e[n],o=document.createElement("script");r(i,o),o.innerHTML=i.innerHTML,i.parentNode.replaceChild(o,i)}}function r(t,e){for(var n=t.attributes,i=0;i<n.length;i++){var r=n[i];e.setAttribute(r.name,r.value)}}function o(t,e,n,i,r){var o=new XMLHttpRequest;o.open("GET",t,!0),o.responseType=e||"",o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.onload=function(){if(200==o.status)n(o.response);else if(204==o.status)r(o.response);else{var t=new Error(o.statusText);i(t)}},o.onerror=function(){var e=new Error("Network error requesting "+t);i(e)},o.send()}var s=e.prototype;return e.defaults.loadOnScroll=!0,e.defaults.checkLastPage=!0,e.defaults.responseType="document",e.create.pageLoad=function(){this.canLoad=!0,this.on("scrollThreshold",this.onScrollThresholdLoad),this.on("load",this.checkLastPage),this.options.outlayer&&this.on("append",this.onAppendOutlayer)},s.onScrollThresholdLoad=function(){this.options.loadOnScroll&&this.loadNextPage()},s.loadNextPage=function(){if(!this.isLoading&&this.canLoad){var t=this.getAbsolutePath();this.isLoading=!0;var e=function(e){this.onPageLoad(e,t)}.bind(this),n=function(e){this.onPageError(e,t)}.bind(this),i=function(e){this.lastPageReached(e,t)}.bind(this);o(t,this.options.responseType,e,n,i),this.dispatchEvent("request",null,[t])}},s.onPageLoad=function(t,e){return this.options.append||(this.isLoading=!1),this.pageIndex++,this.loadCount++,this.dispatchEvent("load",null,[t,e]),this.appendNextPage(t,e),t},s.appendNextPage=function(t,e){var i=this.options.append;if("document"==this.options.responseType&&i){var r=t.querySelectorAll(i),o=n(r),s=function(){this.appendItems(r,o),this.isLoading=!1,this.dispatchEvent("append",null,[t,e,r])}.bind(this);this.options.outlayer?this.appendOutlayerItems(o,s):s()}},s.appendItems=function(t,e){t&&t.length&&(i(e=e||n(t)),this.element.appendChild(e))},s.appendOutlayerItems=function(n,i){var r=e.imagesLoaded||t.imagesLoaded;if(!r)return console.error("[InfiniteScroll] imagesLoaded required for outlayer option"),void(this.isLoading=!1);r(n,i)},s.onAppendOutlayer=function(t,e,n){this.options.outlayer.appended(n)},s.checkLastPage=function(t,e){var n=this.options.checkLastPage;if(n){var i,r=this.options.path;if("function"==typeof r)if(!this.getPath())return void this.lastPageReached(t,e);if("string"==typeof n?i=n:this.isPathSelector&&(i=r),i&&t.querySelector)t.querySelector(i)||this.lastPageReached(t,e)}},s.lastPageReached=function(t,e){this.canLoad=!1,this.dispatchEvent("last",null,[t,e])},s.onPageError=function(t,e){return this.isLoading=!1,this.canLoad=!1,this.dispatchEvent("error",null,[t,e]),t},e.create.prefill=function(){if(this.options.prefill){var t=this.options.append;t?(this.updateMeasurements(),this.updateScroller(),this.isPrefilling=!0,this.on("append",this.prefill),this.once("error",this.stopPrefill),this.once("last",this.stopPrefill),this.prefill()):console.error("append option required for prefill. Set as :"+t)}},s.prefill=function(){var t=this.getPrefillDistance();this.isPrefilling=t>=0,this.isPrefilling?(this.log("prefill"),this.loadNextPage()):this.stopPrefill()},s.getPrefillDistance=function(){return this.options.elementScroll?this.scroller.clientHeight-this.scroller.scrollHeight:this.windowHeight-this.element.clientHeight},s.stopPrefill=function(){this.log("stopPrefill"),this.off("append",this.prefill)},e})),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/scroll-watch",["./core","fizzy-ui-utils/utils"],(function(n,i){return e(t,n,i)})):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,n){var i=e.prototype;return e.defaults.scrollThreshold=400,e.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);var t=this.options.scrollThreshold;(t||0===t)&&this.enableScrollWatch()},e.destroy.scrollWatch=function(){this.disableScrollWatch()},i.enableScrollWatch=function(){this.isScrollWatching||(this.isScrollWatching=!0,this.updateMeasurements(),this.updateScroller(),this.on("last",this.disableScrollWatch),this.bindScrollWatchEvents(!0))},i.disableScrollWatch=function(){this.isScrollWatching&&(this.bindScrollWatchEvents(!1),delete this.isScrollWatching)},i.bindScrollWatchEvents=function(e){var n=e?"addEventListener":"removeEventListener";this.scroller[n]("scroll",this.pageScrollHandler),t[n]("resize",this.resizeHandler)},i.onPageScroll=e.throttle((function(){this.getBottomDistance()<=this.options.scrollThreshold&&this.dispatchEvent("scrollThreshold")})),i.getBottomDistance=function(){return this.options.elementScroll?this.getElementBottomDistance():this.getWindowBottomDistance()},i.getWindowBottomDistance=function(){return this.top+this.element.clientHeight-(t.pageYOffset+this.windowHeight)},i.getElementBottomDistance=function(){return this.scroller.scrollHeight-(this.scroller.scrollTop+this.scroller.clientHeight)},i.onResize=function(){this.updateMeasurements()},n.debounceMethod(e,"onResize",150),e})),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/history",["./core","fizzy-ui-utils/utils"],(function(n,i){return e(t,n,i)})):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,n){var i=e.prototype;e.defaults.history="replace";var r=document.createElement("a");return e.create.history=function(){this.options.history&&(r.href=this.getAbsolutePath(),(r.origin||r.protocol+"//"+r.host)==location.origin?this.options.append?this.createHistoryAppend():this.createHistoryPageLoad():console.error("[InfiniteScroll] cannot set history with different origin: "+r.origin+" on "+location.origin+" . History behavior disabled."))},i.createHistoryAppend=function(){this.updateMeasurements(),this.updateScroller(),this.scrollPages=[{top:0,path:location.href,title:document.title}],this.scrollPageIndex=0,this.scrollHistoryHandler=this.onScrollHistory.bind(this),this.unloadHandler=this.onUnload.bind(this),this.scroller.addEventListener("scroll",this.scrollHistoryHandler),this.on("append",this.onAppendHistory),this.bindHistoryAppendEvents(!0)},i.bindHistoryAppendEvents=function(e){var n=e?"addEventListener":"removeEventListener";this.scroller[n]("scroll",this.scrollHistoryHandler),t[n]("unload",this.unloadHandler)},i.createHistoryPageLoad=function(){this.on("load",this.onPageLoadHistory)},e.destroy.history=i.destroyHistory=function(){this.options.history&&this.options.append&&this.bindHistoryAppendEvents(!1)},i.onAppendHistory=function(t,e,n){if(n&&n.length){var i=n[0],o=this.getElementScrollY(i);r.href=e,this.scrollPages.push({top:o,path:r.href,title:t.title})}},i.getElementScrollY=function(t){return this.options.elementScroll?this.getElementElementScrollY(t):this.getElementWindowScrollY(t)},i.getElementWindowScrollY=function(e){return e.getBoundingClientRect().top+t.pageYOffset},i.getElementElementScrollY=function(t){return t.offsetTop-this.top},i.onScrollHistory=function(){for(var t,e,n=this.getScrollViewY(),i=0;i<this.scrollPages.length;i++){var r=this.scrollPages[i];if(r.top>=n)break;t=i,e=r}t!=this.scrollPageIndex&&(this.scrollPageIndex=t,this.setHistory(e.title,e.path))},n.debounceMethod(e,"onScrollHistory",150),i.getScrollViewY=function(){return this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:t.pageYOffset+this.windowHeight/2},i.setHistory=function(t,e){var n=this.options.history;n&&history[n+"State"]&&(history[n+"State"](null,t,e),this.options.historyTitle&&(document.title=t),this.dispatchEvent("history",null,[t,e]))},i.onUnload=function(){var e=this.scrollPageIndex;if(0!==e){var n=this.scrollPages[e],i=t.pageYOffset-n.top+this.top;this.destroyHistory(),scrollTo(0,i)}},i.onPageLoadHistory=function(t,e){this.setHistory(t.title,e)},e})),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/button",["./core","fizzy-ui-utils/utils"],(function(n,i){return e(t,n,i)})):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,n){function i(t,e){this.element=t,this.infScroll=e,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),e.on("request",this.disable.bind(this)),e.on("load",this.enable.bind(this)),e.on("error",this.hide.bind(this)),e.on("last",this.hide.bind(this))}return e.create.button=function(){var t=n.getQueryElement(this.options.button);t&&(this.button=new i(t,this))},e.destroy.button=function(){this.button&&this.button.destroy()},i.prototype.onClick=function(t){t.preventDefault(),this.infScroll.loadNextPage()},i.prototype.enable=function(){this.element.removeAttribute("disabled")},i.prototype.disable=function(){this.element.disabled="disabled"},i.prototype.hide=function(){this.element.style.display="none"},i.prototype.destroy=function(){this.element.removeEventListener("click",this.clickHandler)},e.Button=i,e})),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/status",["./core","fizzy-ui-utils/utils"],(function(n,i){return e(t,n,i)})):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,n){function i(t){o(t,"none")}function r(t){o(t,"block")}function o(t,e){t&&(t.style.display=e)}var s=e.prototype;return e.create.status=function(){
var t=n.getQueryElement(this.options.status);t&&(this.statusElement=t,this.statusEventElements={request:t.querySelector(".infinite-scroll-request"),error:t.querySelector(".infinite-scroll-error"),last:t.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus),this.bindHideStatus("on"))},s.bindHideStatus=function(t){var e=this.options.append?"append":"load";this[t](e,this.hideAllStatus)},s.showRequestStatus=function(){this.showStatus("request")},s.showErrorStatus=function(){this.showStatus("error")},s.showLastStatus=function(){this.showStatus("last"),this.bindHideStatus("off")},s.showStatus=function(t){r(this.statusElement),this.hideStatusEventElements(),r(this.statusEventElements[t])},s.hideAllStatus=function(){i(this.statusElement),this.hideStatusEventElements()},s.hideStatusEventElements=function(){for(var t in this.statusEventElements){i(this.statusEventElements[t])}},e})),function(t,e){"function"==typeof define&&define.amd?define(["infinite-scroll/js/core","infinite-scroll/js/page-load","infinite-scroll/js/scroll-watch","infinite-scroll/js/history","infinite-scroll/js/button","infinite-scroll/js/status"],e):"object"==typeof module&&module.exports&&(module.exports=e(require("./core"),require("./page-load"),require("./scroll-watch"),require("./history"),require("./button"),require("./status")))}(window,(function(t){return t})),function(t,e){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],(function(n){return e(t,n)})):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){function n(t,e){for(var n in e)t[n]=e[n];return t}function i(t){return Array.isArray(t)?t:"object"==typeof t&&"number"==typeof t.length?u.call(t):[t]}function r(t,e,o){if(!(this instanceof r))return new r(t,e,o);var s=t;"string"==typeof t&&(s=document.querySelectorAll(t)),s?(this.elements=i(s),this.options=n({},this.options),"function"==typeof e?o=e:n(this.options,e),o&&this.on("always",o),this.getImages(),a&&(this.jqDeferred=new a.Deferred),setTimeout(this.check.bind(this))):l.error("Bad element for imagesLoaded "+(s||t))}function o(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}var a=t.jQuery,l=t.console,u=Array.prototype.slice;r.prototype=Object.create(e.prototype),r.prototype.options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&c[e]){for(var n=t.querySelectorAll("img"),i=0;i<n.length;i++){var r=n[i];this.addImage(r)}if("string"==typeof this.options.background){var o=t.querySelectorAll(this.options.background);for(i=0;i<o.length;i++){var s=o[i];this.addElementBackgroundImages(s)}}}};var c={1:!0,9:!0,11:!0};return r.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,i=n.exec(e.backgroundImage);null!==i;){var r=i&&i[2];r&&this.addBackground(r,t),i=n.exec(e.backgroundImage)}},r.prototype.addImage=function(t){var e=new o(t);this.images.push(e)},r.prototype.addBackground=function(t,e){var n=new s(t,e);this.images.push(n)},r.prototype.check=function(){function t(t,n,i){setTimeout((function(){e.progress(t,n,i)}))}var e=this;this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(e){e.once("progress",t),e.check()})):this.complete()},r.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+n,t,e)},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},o.prototype=Object.create(e.prototype),o.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},o.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},o.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},o.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},o.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},o.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},o.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(o.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},r.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((a=e).fn.imagesLoaded=function(t,e){return new r(this,t,e).jqDeferred.promise(a(this))})},r.makeJQueryPlugin(),r})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self,function(){var n=t.Cookies,i=t.Cookies=e();i.noConflict=function(){return t.Cookies=n,i}}())}(this,(function(){"use strict";function t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}function e(i,r){function o(e,o,s){if("undefined"!=typeof document){"number"==typeof(s=t({},r,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=n.write(e).replace(/=/g,"%3D"),o=i.write(String(o),e);var a="";for(var l in s)s[l]&&(a+="; "+l,!0!==s[l]&&(a+="="+s[l].split(";")[0]));return document.cookie=e+"="+o+a}}function s(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var e=document.cookie?document.cookie.split("; "):[],r={},o=0;o<e.length;o++){var s=e[o].split("="),a=s.slice(1).join("="),l=n.read(s[0]).replace(/%3D/g,"=");if(r[l]=i.read(a,l),t===l)break}return t?r[t]:r}}return Object.create({set:o,get:s,remove:function(e,n){o(e,"",t({},n,{expires:-1}))},withAttributes:function(n){return e(this.converter,t({},this.attributes,n))},withConverter:function(n){return e(t({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(i)}})}var n={read:function(t){return t.replace(/%3B/g,";")},write:function(t){return t.replace(/;/g,"%3B")}};return e(n,{path:"/"})})),function(){window.Clipboard={copy:function(t){return new Promise((function(e){var n;return(n=document.createElement("textarea")).style.position="absolute",n.style.top="0",n.textContent=t,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),e()}))}}}.call(this),function(t,e){"use strict";var n="0.7.28",i="",r="?",o="function",s="undefined",a="object",l="string",u="major",c="model",d="name",h="type",f="vendor",p="version",m="architecture",g="console",v="mobile",y="tablet",b="smarttv",w="wearable",x="embedded",S=255,C="Amazon",T="Apple",E="ASUS",k="BlackBerry",$="Browser",I="Chrome",A="Firefox",_="Google",z="Huawei",P="LG",L="Microsoft",j="Motorola",D="Opera",N="Samsung",O="Sony",M="Xiaomi",F="Zebra",R=function(t,e){var n={};for(var i in t)e[i]&&e[i].length%2==0?n[i]=e[i].concat(t[i]):n[i]=t[i];return n},q=function(t){var e={};for(var n in t)e[t[n].toUpperCase()]=t[n];return e},H=function(t,e){return typeof t===l&&-1!==W(e).indexOf(W(t))},W=function(t){return t.toLowerCase()},B=function(t){return typeof t===l?t.replace(/[^\d\.]/g,i).split(".")[0]:e},U=function(t,e){if(typeof t===l)return t=t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,i),typeof e===s?t:t.substring(0,S)},X=function(t,n){for(var i,r,s,l,u,c,d=0;d<n.length&&!u;){var h=n[d],f=n[d+1];for(i=r=0;i<h.length&&!u;)if(u=h[i++].exec(t))for(s=0;s<f.length;s++)c=u[++r],typeof(l=f[s])===a&&l.length>0?2==l.length?typeof l[1]==o?this[l[0]]=l[1].call(this,c):this[l[0]]=l[1]:3==l.length?typeof l[1]!==o||l[1].exec&&l[1].test?this[l[0]]=c?c.replace(l[1],l[2]):e:this[l[0]]=c?l[1].call(this,c,l[2]):e:4==l.length&&(this[l[0]]=c?l[3].call(this,c.replace(l[1],l[2])):e):this[l]=c||e;d+=2}},Y=function(t,n){for(var i in n)if(typeof n[i]===a&&n[i].length>0){for(var o=0;o<n[i].length;o++)if(H(n[i][o],t))return i===r?e:i}else if(H(n[i],t))return i===r?e:i;return t},V={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},G={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,p],[/opios[\/ ]+([\w\.]+)/i],[p,[d,D+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[d,D]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[d,"UC"+$]],[/\bqbcore\/([\w\.]+)/i],[p,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+$],p],[/\bfocus\/([\w\.]+)/i],[p,[d,A+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[d,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI "+$]],[/fxios\/([-\w\.]+)/i],[p,[d,A]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+$]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+$],p],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,"Facebook"],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[d,I+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,I+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[d,"Android "+$]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[p,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[p,Y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[d,A+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[d,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,W]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|armv?8e?l?)\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,i,W]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,W]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[f,N],[h,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,N],[h,v]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[f,T],[h,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,T],[h,y]],[/\b((?:agr|ags[23]|bah2?|sht?)-a?[lw]\d{2})/i],[c,[f,z],[h,y]],[/huawei([-\w ]+)[;\)]/i,/\b(nexus 6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?|ele-l\d\d)/i,/\b(\w{2,4}-[atu][ln][01259][019])[;\) ]/i],[c,[f,z],[h,v]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte)?[_ ]?(?:\d?\w?)[_ ]?(?:plus)?) bui/i],[[c,/_/g," "],[f,M],[h,v]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[f,M],[h,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[c,[f,"OPPO"],[h,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[h,v]],[/\b(rmx[12]\d{3})(?: bui|;)/i],[c,[f,"Realme"],[h,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[f,j],[h,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,j],[h,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,P],[h,y]],[/(lm-?f100[nv]?|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast)\w+)/i,/\blg(\-?[\d\w]+) bui/i],[c,[f,P],[h,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[f,"Lenovo"],[h,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[f,"Nokia"],[h,v]],[/(pixel c)\b/i],[c,[f,_],[h,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,_],[h,v]],[/droid.+ ([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,O],[h,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,O],[h,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/\ba000(1) bui/i,/oneplus (a\d{4})[) ]/i],[c,[f,"OnePlus"],[h,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,C],[h,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,C],[h,v]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[h,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,k],[h,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,E],[h,y]],[/ (z[es]6[027][01][km][ls]|zenfone \d\w?)\b/i],[c,[f,E],[h,v]],[/(nexus 9)/i],[c,[f,"HTC"],[h,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[h,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[h,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[h,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,c,[h,v]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,c,[h,y]],[/(surface duo)/i],[c,[f,L],[h,y]],[/droid [\d\.]+; (fp\du?) b/i],[c,[f,"Fairphone"],[h,v]],[/(u304aa)/i],[c,[f,"AT&T"],[h,v]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[h,v]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[h,y]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[h,y]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[h,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[h,y]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[h,y]],[/\b(k88) b/i],[c,[f,"ZTE"],[h,y]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[h,v]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[h,v]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[h,y]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[h,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[h,y]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[h,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[h,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[h,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[h,v]],[/\b(ph-1) /i],[c,[f,"Essential"],[h,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[h,y]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[h,y]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[h,y]],[/(shield[\w ]+) b/i],[c,[f,"Nvidia"],[h,y]],[/(sprint) (\w+)/i],[f,c,[h,v]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,L],[h,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,F],[h,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,F],[h,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[h,g]],[/droid.+; (shield) bui/i],[c,[f,"Nvidia"],[h,g]],[/(playstation [345portablevi]+)/i],[c,[f,O],[h,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,L],[h,g]],[/smart-tv.+(samsung)/i],[f,[h,b]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,N],[h,b]],[/(?:nux; netcast.+smarttv|lg netcast\.tv-201\d)/i],[[f,P],[h,b]],[/(apple) ?tv/i],[f,[c,T+" TV"],[h,b]],[/crkey/i],[[c,I+"cast"],[f,_],[h,b]],[/droid.+aft(\w)( bui|\))/i],[c,[f,C],[h,b]],[/\(dtv[\);].+(aquos)/i],[c,[f,"Sharp"],[h,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,U],[c,U],[h,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,b]],[/((pebble))app/i],[f,c,[h,w]],[/droid.+; (glass) \d/i],[c,[f,_],[h,w]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,F],[h,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[h,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[h,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[h,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,y]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[h,v]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[d,"Edge"+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[d,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[p,Y,V]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[p,Y,V]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,"Mac OS"],[p,/_/g,"."]],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,p],[/\(bb(10);/i],[p,[d,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[d,A+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[d,I+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[d,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopc]{0,4}bsd|dragonfly) ?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,p],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[d,p]]},Z=function(n,r){if(typeof n===a&&(r=n,n=e),!(this instanceof Z))return new Z(n,r).getResult();var o=n||(typeof t!==s&&t.navigator&&t.navigator.userAgent?t.navigator.userAgent:i),u=r?R(G,r):G;return this.getBrowser=function(){var t={};return t[d]=e,t[p]=e,X.call(t,o,u.browser),t.major=B(t.version),t},this.getCPU=function(){var t={};return t[m]=e,X.call(t,o,u.cpu),t},this.getDevice=function(){var t={};return t[f]=e,t[c]=e,t[h]=e,X.call(t,o,u.device),t},this.getEngine=function(){var t={};return t[d]=e,t[p]=e,X.call(t,o,u.engine),t},this.getOS=function(){var t={};return t[d]=e,t[p]=e,X.call(t,o,u.os),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(t){return o=typeof t===l&&t.length>S?U(t,S):t,this},this.setUA(o),this};Z.VERSION=n,Z.BROWSER=q([d,p,u]),Z.CPU=q([m]),Z.DEVICE=q([c,f,h,g,v,b,y,w,x]),Z.ENGINE=Z.OS=q([d,p]),typeof exports!==s?(typeof module!==s&&module.exports&&(exports=module.exports=Z),exports.UAParser=Z):typeof define===o&&define.amd?define((function(){return Z})):typeof t!==s&&(t.UAParser=Z);var Q=typeof t!==s&&(t.jQuery||t.Zepto);if(Q&&!Q.ua){var K=new Z;Q.ua=K.getResult(),Q.ua.get=function(){return K.getUA()},Q.ua.set=function(t){K.setUA(t);var e=K.getResult();for(var n in e)Q.ua[n]=e[n]}}}("object"==typeof window?window:this),function(){window.BrowserDetector={uaParser:new UAParser(navigator.userAgent),browserName:function(){return this.uaParser.getBrowser().name},browserVersion:function(){return this.uaParser.getBrowser().version},osName:function(){return this.uaParser.getOS().name},osVersion:function(){return this.uaParser.getOS().version},isBrowser:function(t){return this.browserName().toLowerCase()===t.toLowerCase()},isOS:function(t){return this.osName().toLowerCase()===t.toLowerCase()},check:function(t){var e,n;for(e in t)if(n=t[e],this.isBrowser(e))return parseInt(this.browserVersion().split(".")[0])>=n;return!0},isTelegramBrowser:function(){return"undefined"!=typeof TelegramWebviewProxy}}}.call(this),function(t,e){var n,i=t.jQuery||t.Cowboy||(t.Cowboy={});i.throttle=n=function(t,n,r,o){function s(){function i(){l=+new Date,r.apply(u,d)}function s(){a=e}var u=this,c=+new Date-l,d=arguments;o&&!a&&i(),a&&clearTimeout(a),o===e&&c>t?i():!0!==n&&(a=setTimeout(o?s:i,o===e?t-c:t))}var a,l=0;return"boolean"!=typeof n&&(o=r,r=n,n=e),i.guid&&(s.guid=r.guid=r.guid||i.guid++),s},i.debounce=function(t,i,r){return r===e?n(t,i,!1):n(t,r,!1!==i)}}(this),function(t,e){"function"==typeof define&&define.amd?define([],(function(){return e(t)})):"object"==typeof exports?module.exports=e(t):t.SmoothScroll=e(t)}("undefined"!=typeof global?global:"undefined"!=typeof window?window:this,(function(t){"use strict";var e={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},n=function(){return"querySelector"in document&&"addEventListener"in t&&"requestAnimationFrame"in t&&"closest"in t.Element.prototype},i=function(){var t={};return Array.prototype.forEach.call(arguments,(function(e){for(var n in e){if(!e.hasOwnProperty(n))return;t[n]=e[n]}})),t},r=function(){return!(!("matchMedia"in t)||!t.matchMedia("(prefers-reduced-motion)").matches)},o=function(e){return parseInt(t.getComputedStyle(e).height,10)},s=function(t){"#"===t.charAt(0)&&(t=t.substr(1));for(var e,n=String(t),i=n.length,r=-1,o="",s=n.charCodeAt(0);++r<i;){if(0===(e=n.charCodeAt(r)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");e>=1&&e<=31||127==e||0===r&&e>=48&&e<=57||1===r&&e>=48&&e<=57&&45===s?o+="\\"+e.toString(16)+" ":o+=e>=128||45===e||95===e||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?n.charAt(r):"\\"+n.charAt(r)}return"#"+o},a=function(t,e){var n;return"easeInQuad"===t.easing&&(n=e*e),"easeOutQuad"===t.easing&&(n=e*(2-e)),"easeInOutQuad"===t.easing&&(n=e<.5?2*e*e:(4-2*e)*e-1),"easeInCubic"===t.easing&&(n=e*e*e),"easeOutCubic"===t.easing&&(n=--e*e*e+1),"easeInOutCubic"===t.easing&&(n=e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1),"easeInQuart"===t.easing&&(n=e*e*e*e),"easeOutQuart"===t.easing&&(n=1- --e*e*e*e),"easeInOutQuart"===t.easing&&(n=e<.5?8*e*e*e*e:1-8*--e*e*e*e),"easeInQuint"===t.easing&&(n=e*e*e*e*e),"easeOutQuint"===t.easing&&(n=1+--e*e*e*e*e),"easeInOutQuint"===t.easing&&(n=e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e),t.customEasing&&(n=t.customEasing(e)),n||e},l=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},u=function(e,n,i,r){var o=0;if(e.offsetParent)do{o+=e.offsetTop,e=e.offsetParent}while(e);return o=Math.max(o-n-i,0),r&&(o=Math.min(o,l()-t.innerHeight)),o},c=function(t){return t?o(t)+t.offsetTop:0},d=function(t,e){var n=e.speedAsDuration?e.speed:Math.abs(t/1e3*e.speed);return e.durationMax&&n>e.durationMax?e.durationMax:e.durationMin&&n<e.durationMin?e.durationMin:parseInt(n,10)},h=function(e){if(history.replaceState&&e.updateURL&&!history.state){var n=t.location.hash;n=n||"",history.replaceState({smoothScroll:JSON.stringify(e),anchor:n||t.pageYOffset},document.title,n||t.location.href)}},f=function(t,e,n){e||history.pushState&&n.updateURL&&history.pushState({smoothScroll:JSON.stringify(n),anchor:t.id},document.title,t===document.documentElement?"#top":"#"+t.id)},p=function(e,n,i){0===e&&document.body.focus(),i||(e.focus(),document.activeElement!==e&&(e.setAttribute("tabindex","-1"),e.focus(),e.style.outline="none"),t.scrollTo(0,n))},m=function(e,n,i,r){if(n.emitEvents&&"function"==typeof t.CustomEvent){var o=new CustomEvent(e,{bubbles:!0,detail:{anchor:i,toggle:r}});document.dispatchEvent(o)}};return function(o,g){var v,y,b,w,x={};x.cancelScroll=function(t){cancelAnimationFrame(w),w=null,t||m("scrollCancel",v)},x.animateScroll=function(n,o,s){x.cancelScroll();var h=i(v||e,s||{}),g="[object Number]"===Object.prototype.toString.call(n),y=g||!n.tagName?null:n;if(g||y){var S=t.pageYOffset;h.header&&!b&&(b=document.querySelector(h.header));var C,T,E,k=c(b),$=g?n:u(y,k,parseInt("function"==typeof h.offset?h.offset(n,o):h.offset,10),h.clip),I=$-S,A=l(),_=0,z=d(I,h),P=function(e,i){var r=t.pageYOffset;if(e==i||r==i||(S<i&&t.innerHeight+r)>=A)return x.cancelScroll(!0),p(n,i,g),m("scrollStop",h,n,o),C=null,w=null,!0},L=function(e){C||(C=e),_+=e-C,E=S+I*a(h,T=(T=0===z?0:_/z)>1?1:T),t.scrollTo(0,Math.floor(E)),P(E,$)||(w=t.requestAnimationFrame(L),C=e)};0===t.pageYOffset&&t.scrollTo(0,0),f(n,g,h),r()?t.scrollTo(0,Math.floor($)):(m("scrollStart",h,n,o),x.cancelScroll(!0),t.requestAnimationFrame(L))}};var S=function(e){if(!e.defaultPrevented&&!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey)&&"closest"in e.target&&(y=e.target.closest(o))&&"a"===y.tagName.toLowerCase()&&!e.target.closest(v.ignore)&&y.hostname===t.location.hostname&&y.pathname===t.location.pathname&&/#/.test(y.href)){var n,i;try{n=s(decodeURIComponent(y.hash))}catch(t){n=s(y.hash)}if("#"===n){if(!v.topOnEmptyHash)return;i=document.documentElement}else i=document.querySelector(n);(i=i||"#top"!==n?i:document.documentElement)&&(e.preventDefault(),h(v),x.animateScroll(i,y))}},C=function(){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(v)){var t=history.state.anchor;"string"==typeof t&&t&&!(t=document.querySelector(s(history.state.anchor)))||x.animateScroll(t,null,{updateURL:!1})}};return x.destroy=function(){v&&(document.removeEventListener("click",S,!1),t.removeEventListener("popstate",C,!1),x.cancelScroll(),v=null,y=null,b=null,w=null)},function(){if(!n())throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";x.destroy(),v=i(e,g||{}),b=v.header?document.querySelector(v.header):null,document.addEventListener("click",S,!1),v.updateURL&&v.popstate&&t.addEventListener("popstate",C,!1)}(),x}})),function(){}.call(this),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};String.prototype.format=function(t){return this.replace(/%{([^\}]+)}/g,(function(e,n){return t[n]||""}))},String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.substring(1)},Number.prototype.formatPrice=function(){return this.toLocaleString(void 0,{minimumFractionDigits:2}).replace(/\,?.?00$/,"")},window.delay=function(t,e){return setTimeout(e,t)},window.onCSSAnimationEvent=function(t,e,n){var i,r,o,s,a;for(a=[],i=0,r=(s=["webkit","moz","MS","o",""]).length;i<r;i++)(o=s[i])||(e=e.toLowerCase()),a.push(t.on(""+o+e,n));return a},window.oneCSSAnimationEvent=function(t,e,n){var i,r,o,s,a;for(a=[],i=0,r=(s=["webkit","moz","MS","o",""]).length;i<r;i++)(o=s[i])||(e=e.toLowerCase()),a.push(t.one(""+o+e,n));return a},window.openCentered=function(t,e,n,i){var r,o;return r=window.top.outerWidth/2+window.top.screenX-n/2,o=window.top.outerHeight/2+window.top.screenY-i/2,window.open(t,"newwindow","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width="+n+", height="+i+", left="+r+", top="+o)},window.isExternalLink=function(e){var n,i,r;try{return("http:"===(n=(r=new URL(e)).protocol)||"https:"===n)&&(i=r.host,t.call(window.domains,i)<0)}catch(t){return!1}},window.shuffleArray=function(t){var e,n,i;if(!((e=t.length)>0))return t;for(;--e;)i=[t[n=Math.floor(Math.random()*(e+1))],t[e]],t[e]=i[0],t[n]=i[1];return e>0?void 0:t}}.call(this),function(){window.$window=$(window),window.$document=$(document),$.fn.onResize=function(t,e,n){var i,r,o;return i=this[t](),r=$.debounce(e,(o=this,function(){var e;if((e=o[t]())!==i)return i=e,n()})),$window.on("resize",(function(){return r()}))},$.fn.getTransform=function(){var t,e;return e=window.getComputedStyle(this.get(0)),{translateX:(t=new DOMMatrixReadOnly(e.transform)).m41,translateY:t.m42}}}.call(this),function(){window.AdminLink={paramName:"authorized",cookieName:"authorized",init:function(t){return null==t&&(t="[data-role~=admin-link]"),new URLSearchParams(window.location.search).get(this.paramName)?(Cookies.set(this.cookieName,!0,{expires:7300}),window.location=location.protocol+"//"+location.host+location.pathname):Cookies.get(this.cookieName)?$(t).addClass("is-visible"):void 0}}}.call(this),function(){window.CopyLinkButton={init:function(t){var e;return null==t&&(t={}),e={selector:".js-copy-link"},this.options=$.extend({},e,t),$document.on("click",this.options.selector,(function(t){var e;return e=$(t.currentTarget),Clipboard.copy(e.data("clipboard-text")).then((function(){var t;return t=e.html(),e.prop("disabled",!0).html(e.data("success")),delay(1e3,(function(){return e.prop("disabled",!1).html(t)}))}))}))}}}.call(this),function(){window.EventTracking={init:function(){if(!window.previewMode&&window.trackingEnabled&&!Cookies.get("authorized"))return this.send("pageview")},send:function(t,e){return $.post({url:window.eventTrackerURL,dataType:"json",data:{name:t,domain:window.eventTrackerExternalIdentifier,url:window.location.href,referrer:document.referrer,screen_width:window.innerWidth,props:e}})}}}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}}
;window.Gallery=function(){function e(e){null==e&&(e={}),this._cartHandler=t(this._cartHandler,this),this._selectionHandler=t(this._selectionHandler,this),this._popStateHandler=t(this._popStateHandler,this),this._clickHandler=t(this._clickHandler,this),this.options=$.extend({},this.defaults,e)}return e.prototype.pswpTemplate='<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">\n  <div class="pswp__bg"></div>\n  <div class="pswp__scroll-wrap">\n    <div class="pswp__container">\n      <div class="pswp__item"></div>\n      <div class="pswp__item"></div>\n      <div class="pswp__item"></div>\n    </div>\n    <div class="pswp__ui pswp__ui--hidden">\n      <div class="pswp__top-bar">\n        <div class="pswp__counter"></div>\n        <button class="pswp__button pswp__button--close" title="'+locale.gallery.close+'"></button>\n        <button class="pswp__button pswp__button--fs" title="'+locale.gallery.fullscreen+'"></button>\n        <button class="pswp__button pswp__button--zoom" title="'+locale.gallery.zoom+'"></button>\n        <button class="pswp__button pswp__button--share" title="'+locale.gallery.share+'"></button>\n        <button class="pswp__button pswp__button--selection" title="'+locale.gallery.selection+'"></button>\n        <button class="pswp__button pswp__button--cart" title="'+locale.gallery.cart+'"></button>\n        <button class="pswp__button pswp__button--download" title="'+locale.download+'">\n          '+locale.download+'\n        </button>\n      </div>\n      <button class="pswp__button pswp__button--arrow--left" title="'+locale.gallery.prev+'">\n      </button>\n      <button class="pswp__button pswp__button--arrow--right" title="'+locale.gallery.next+'">\n      </button>\n      <div class="pswp__caption">\n        <div class="pswp__caption__center"></div>\n      </div>\n    </div>\n    <div class="pswp__preloader">\n      <div class="pswp__preloader__icn">\n        <div class="pswp__preloader__cut">\n          <div class="pswp__preloader__donut"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>',e.prototype.versionSelector={init:function(t){return this.pswp=t,this.viewportWidth=this.pswp.viewportSize.x*window.devicePixelRatio,this.viewportHeight=this.pswp.viewportSize.y*window.devicePixelRatio},select:function(t){return t.reduce((e=this,function(t,n){return t.w>=e.viewportWidth||t.h>=e.viewportHeight?t:n}));var e}},e.prototype.pswp=null,e.prototype.shouldChangeHistory=!0,e.prototype.isFirstResize=!0,e.prototype.itemsArray=null,e.prototype.defaults={selector:"> *",supportedVersions:[640,1280,1920,2560,3072,3584,4096],initialZoom:!1,history:!0,galleryUniqId:1,onShare:function(t,e){return $document.trigger("global:share",{url:t.shareUrl,root:e.template})},onChangeSelection:function(t){return $document.trigger("global:update-selection-item",{id:t.pieceId,inSelection:t.inSelection})},onChangeCart:function(t){return $document.trigger("global:update-cart-item",{id:t.pieceId,inCart:t.inCart})},onDownload:function(t){return $document.trigger("global:download",{url:t.downloadUrl})}},e.prototype.start=function(t){if(this.$el=t,this.$el.on("click",this.options.selector,this._clickHandler),$document.on("global:update-selection",this._selectionHandler),$document.on("global:update-cart",this._cartHandler),this.options.history)return $window.on("popstate",this._popStateHandler)},e.prototype.stop=function(){if(this._closePhotoSwipe(),this.$el.off("click",this.options.selector,this._clickHandler),$document.off("global:update-selection",this._selectionHandler),$document.off("global:update-cart",this._cartHandler),this.options.history)return $window.off("popstate",this._popStateHandler)},e.prototype._clickHandler=function(t){var e;if(t.preventDefault(),(e=this.$el.find(this.options.selector).index($(t.currentTarget)))>=0)return this._openPhotoSwipe(e)},e.prototype._popStateHandler=function(t){var e,n,i;return e=t.originalEvent,this.shouldChangeHistory=!1,(null!=(n=e.state)&&null!=(i=n.pswp)?i.galleryId:void 0)===this.options.galleryUniqId&&"open"===e.state.pswp.event?this._openPhotoSwipe(e.state.pswp.index||0):this.pswp&&this._closePhotoSwipe(),this.shouldChangeHistory=!0},e.prototype._selectionHandler=function(t,e){if(this.pswp)return this.pswp.currItem.inSelection=e,this.pswp.shout("changeSelection")},e.prototype._cartHandler=function(t,e){if(this.pswp)return this.pswp.currItem.inCart=e,this.pswp.shout("changeCart")},e.prototype._openPhotoSwipe=function(t){var e,n,i,r;if(null==t&&(t=0),null==this.pswp)return e=this._createPswpElement(),n=this._getItemsArray(),i={index:t,onShareFn:this.options.onShare,onChangeSelectionFn:this.options.onChangeSelection,onChangeCartFn:this.options.onChangeCart,onDownloadFn:this.options.onDownload,preload:[1,3]},this.options.initialZoom?i.getThumbBoundsFn=(r=this,function(t){var e,n,i;return e=$(r.$el.find(r.options.selector)[t]).find("img, video")[0],n=window.pageYOffset||document.documentElement.scrollTop,{x:(i=e.getBoundingClientRect()).left,y:i.top+n,w:i.width}}):(i.showHideOpacity=!0,i.getThumbBoundsFn=!1),this.pswp=new PhotoSwipe(e[0],PhotoSwipeUI,n,i),this.itemsArray=n,this.pswp.itemsArray=n,this.pswp.listen("changeSelection",(function(){return this.currItem.inSelection?this.framework.addClass(this.template,"pswp--in-selection"):this.framework.removeClass(this.template,"pswp--in-selection")})),this.pswp.listen("changeCart",(function(){return this.currItem.inCart?this.framework.addClass(this.template,"pswp--in-cart"):this.framework.removeClass(this.template,"pswp--in-cart")})),this.pswp.listen("beforeResize",function(t){return function(){var e,n,i,r,o,s;if(t.versionSelector.init(t.pswp),t.isFirstResize)return t.isFirstResize=!1;for(s=[],e=0,i=(r=t.pswp.itemHolders).length;e<i;e++)(null!=(o=(n=r[e]).item)?o.versions:void 0)?s.push(n.item.needsUpdate=!0):s.push(void 0);return s}}(this)),this.pswp.listen("gettingData",function(t){return function(e,n){var i,r;return n.versions?(i=t.versionSelector.select(n.versions),n.src=i.src,n.w=i.w,n.h=i.h):(r=n.videoUrl)?n.html=t._buildVideoIframeHtml(r):void 0}}(this)),this.pswp.listen("beforeChange",function(t){return function(){var e;return null!=t.pswp.currItem.container&&null!=(e=t.pswp.framework.getChildByClass(t.pswp.currItem.container,"pswp__img--placeholder--blank"))&&(e.style.backgroundColor=t.pswp.currItem.placeholderColor),window.protectorEnabled&&t.pswp.framework.addClass(t.pswp.template,"pswp--protected"),null!=t.pswp.currItem.downloadUrl?t.pswp.framework.addClass(t.pswp.template,"pswp--download-enabled"):t.pswp.framework.removeClass(t.pswp.template,"pswp--download-enabled"),null!=t.pswp.currItem.selectionUrl?(t.pswp.framework.addClass(t.pswp.template,"pswp--selection-enabled"),t.pswp.shout("changeSelection")):t.pswp.framework.removeClass(t.pswp.template,"pswp--selection-enabled"),null!=t.pswp.currItem.cartUrl?(t.pswp.framework.addClass(t.pswp.template,"pswp--cart-enabled"),t.pswp.shout("changeCart")):t.pswp.framework.removeClass(t.pswp.template,"pswp--cart-enabled"),null!=t.pswp.currItem.shareUrl?t.pswp.framework.addClass(t.pswp.template,"pswp--sharing-enabled"):t.pswp.framework.removeClass(t.pswp.template,"pswp--sharing-enabled")}}(this)),this.pswp.listen("afterChange",function(t){return function(){return t._resetItemStart(t.pswp.itemHolders[1].item),t._resetItemStop(t.pswp.itemHolders[0].item),t._resetItemStop(t.pswp.itemHolders[2].item)}}(this)),this.pswp.listen("close",function(t){return function(){return t._resetItemStop(t.pswp.currItem),$document.trigger("global:close-gallery",t.pswp.currItem.pieceId)}}(this)),this.pswp.listen("destroy",function(t){return function(){return t.$pswpElement.remove(),t.$pswpElement=null,t.pswp=null}}(this)),this._initHistory(),this.pswp.init();this.pswp.goTo(t)},e.prototype._closePhotoSwipe=function(){if(null!=this.pswp)return $document.trigger("global:close-modal"),this.pswp.close()},e.prototype._buildVideoIframeHtml=function(){return'<div class="pswp__video-wrap">\n  <div class="pswp__video-container">\n    <div class="pswp__video">\n      <iframe controls src="" width="560" height="315" frameborder="0"\n      allow="autoplay; fullscreen; picture-in-picture; encrypted-media;"\n      allowfullscreen></iframe>\n    </div>\n  </div>\n</div>'},e.prototype._getItemsArray=function(){var t,e,n,i,r,o,s,a;for(a=[],e=0,r=(s=this.$el.find(this.options.selector)).length;e<r;e++)n=s[e],i={versions:(t=$(n)).data("gallery-versions"),placeholderColor:t.data("gallery-placeholder-color"),title:t.data("gallery-title"),inSelection:t.data("gallery-selection-item"),selectionUrl:t.data("gallery-selection-url"),inCart:t.data("gallery-cart-item"),cartUrl:t.data("gallery-cart-url"),pieceId:t.data("gallery-piece-id"),shareUrl:t.data("gallery-share-url"),downloadUrl:t.data("gallery-download-url"),videoUrl:t.data("gallery-video-url"),autoPlayUrl:t.data("gallery-autoplay-url")},this.options.initialZoom&&t.find("img, video").attr("src")&&!(o=t.find("img, video").attr("src")).match(/^data:/)&&(i.msrc=o),a.push(i);return a},e.prototype._fetchLargestVersion=function(t){return t[Object.keys(t).sort((function(t,e){return e-t}))[0]]},e.prototype._createPswpElement=function(){return null!=this.$pswpElement?this.$pswpElement:this.$pswpElement=$(this.pswpTemplate).appendTo($("body"))},e.prototype._resetItemStop=function(t){var e;if(null!=(null!=t?t.videoUrl:void 0)&&(e=t.container.getElementsByTagName("iframe")[0]))return this._resetIframe(e,"")},e.prototype._resetItemStart=function(t){var e;if(null!=(null!=t?t.autoPlayUrl:void 0)&&(e=t.container.getElementsByTagName("iframe")[0]))return this._resetIframe(e,t.autoPlayUrl)},e.prototype._resetIframe=function(t,e){var n;return(n=t.cloneNode()).src=e,t.parentNode.replaceChild(n,t)},e.prototype._initHistory=function(){var t,e,n,i;if(this.options.history)return n=history.state,"undefined"!=typeof Turbolinks&&null!==Turbolinks&&null!=(t=Turbolinks.controller)&&null!=(e=t.history)&&e.stop(),this.pswp.listen("initialLayout",(i=this,function(){if(i.shouldChangeHistory)return history.pushState({pswp:{galleryId:i.options.galleryUniqId,event:"open"}},"")})),this.pswp.listen("afterChange",function(t){return function(){if(t.shouldChangeHistory)return history.replaceState({pswp:{galleryId:t.options.galleryUniqId,event:"open",index:t.pswp.getCurrentIndex()}},"")}}(this)),this.pswp.listen("close",function(t){return function(){var e,i,r;return t.shouldChangeHistory&&history.pushState({pswp:{galleryId:t.options.galleryUniqId,event:"close"}},""),null!=(null!=(e=history.state)?e.pswp:void 0)&&history.replaceState(n,""),"undefined"!=typeof Turbolinks&&null!==Turbolinks&&null!=(i=Turbolinks.controller)&&null!=(r=i.history)?r.start():void 0}}(this))},e}()}.call(this),function(){window.LazyLoader={init:function(){return $document.on("lazyloaded",(function(t){return $(t.target).parent("[data-role~=lazy-image]").addClass("is-loaded")})).on("lazyafterunload",(function(t){return $(t.target).parent("[data-role~=lazy-image]").removeClass("is-loaded")})).on("initLazyLoad",(function(){return lazySizes.init()}))}}}.call(this),function(){window.LinksTarget={init:function(t){var e;return null==t&&(t="[data-links-target]"),$(t).each((e=this,function(t,n){return e.initLinks($(n))}))},initLinks:function(t){var e;return e=t.data("links-target"),t.find("a").filter(":not([target])").each((function(t,n){return n.setAttribute("target",e)}))}}}.call(this),function(){window.Originals=function(){function t(t){var e;this.$el=t,this.$items=this.$el.children(),this.render(),this.$el.onResize("width",500,(e=this,function(){return e.render()}))}return t.prototype.render=function(){var t,e,n,i,r,o,s,a;for(r=this.$items.first().width(),a=[],n=0,o=(s=this.$items).length;n<o;n++)i=s[n],(e=(t=$(i)).data("aspect"))>=1||a.push(t.find(".js-lazy-image").css({width:r*e}));return a},t}()}.call(this),function(){window.PictureSetHorizontal=function(){function t(t,e){var n;null==e&&(e={}),n={scrollToFirstPiece:!1,containerSelector:".js-picture-set-horizontal-container",prevSelector:".js-prev",nextSelector:".js-next"},this.options=$.extend({},n,e),this.$section=$(t),this.$section.length&&(this.$sectionPiecesContainer=this.$section.find(this.options.containerSelector),this.$pieces=this.$sectionPiecesContainer.children(),this.$prev=this.$section.find(this.options.prevSelector),this.$next=this.$section.find(this.options.nextSelector),this.setContainerOffset(),this.setInitialPieceIndex(),this.bindEvents())}return t.prototype.bindEvents=function(){var t,e;if(this.$prev.on("click",(e=this,function(){return e.currentPieceIndex>0&&(e.currentPieceIndex=e.currentPieceIndex-1),e.scrollToPiece(e.currentPieceIndex)})),this.$next.on("click",function(t){return function(){return t.currentPieceIndex<t.$pieces.length-1&&(t.currentPieceIndex=t.currentPieceIndex+1),t.scrollToPiece(t.currentPieceIndex)}}(this)),$window.on("resize",function(t){return function(){return t.setContainerOffset()}}(this)),this.options.scrollToFirstPiece)return t=function(t){return function(){if(!t.$sectionPiecesContainer.hasClass("-gallery-visible"))return Helpers.isScrolledIntoView(t.$section,-t.$section.height())?(t.$sectionPiecesContainer.addClass("-gallery-visible"),t.scrollToFirstPiece()):void 0}}(this),$window.on("scroll resize",(function(){return t()})),delay(100,(function(){return t()}))},t.prototype.scrollToPiece=function(){var t;return t=$(this.$pieces[this.currentPieceIndex]).offset().left+this.$sectionPiecesContainer.scrollLeft(),this.$sectionPiecesContainer.animate({scrollLeft:t-this.containerOffset})},t.prototype.setInitialPieceIndex=function(){var t,e,n,i,r;for(e=t=0,n=(i=$.map(this.$pieces,(r=this,function(t){return parseInt($(t).offset().left-r.containerOffset)}))).length;t<n;e=++t)if(i[e]>=0)return void(this.currentPieceIndex=e)},t.prototype.setContainerOffset=function(){return this.containerOffset=this.$sectionPiecesContainer.offset().left},t.prototype.scrollToFirstPiece=function(){var t;if(this.$sectionPiecesContainer.hasClass("-gallery-visible")&&!(this.$sectionPiecesContainer.scrollLeft()>0))return t=Math.ceil(parseFloat($(this.$pieces[0]).css("padding-left"))),this.$sectionPiecesContainer.animate({scrollLeft:t},500)},t}()}.call(this),function(){window.Protector={init:function(t,e){if(null==e&&(e="contextmenu auxclick dragstart dragdrop"),window.protectorEnabled)return $(t).addClass("is-protected"),$document.on(e,t,(function(t){return t.preventDefault()}))}}}.call(this),function(){window.Storyboard=function(){function t(t,e){var n,i,r;this.$el=t,null==e&&(e={}),n={columnsConfig:{1:1,2:1.5,3:2.5,4:3.5},columns:3,pad:20,landscapeColumns:1.5,portraitColumns:1},this.options=$.extend({},n,e),this.columnsInRow=this.options.columnsConfig[this.options.columns]||3,this.$items=this.$el.children(),this.itemsLength=this.$items.length,i=this.buildRows(),this.renderRows(i),this.$el.onResize("width",500,(r=this,function(){var t;return t=$document.scrollTop(),r.renderRows(i),$document.scrollTop(t)}))}return t.prototype.buildRows=function(){var t,e,n,i,r,o,s,a,l;for(l=[],n=0,i=o=0,s=(a=this.$items).length;o<s;i=++o){if(r=a[i],t=$(r),e=$(this.$items[i+1]),this.shouldAddToPreviousRow(l,t,e,n)){l[n-1].push(t);break}l[n]||(l[n]=[]),l[n].push(t),(this.rowCompleted(l[n])||this.isVideo(t)||this.isVideo(e)||i===this.itemsLength-1)&&(n+=1)}return l},t.prototype.rowCompleted=function(t){var e,n,i,r;for(e=0,i=0,r=t.length;i<r;i++)n=t[i],e+=this.columnsForAspect($(n).data("aspect"));return e>=this.columnsInRow},t.prototype.columnsForAspect=function(t){return t>=1?this.options.landscapeColumns:this.options.portraitColumns},t.prototype.isVideo=function(t){return"video"===t.data("type")},t.prototype.shouldAddToPreviousRow=function(t,e,n,i){return 1!==this.options.columns&&(0!==i&&(!(e.data("aspect")>=1&&this.columnsInRow<this.options.landscapeColumns+this.options.portraitColumns)&&(!this.isVideo(e)&&!this.isVideo(t[i-1][0])&&(!n.length&&!t[i]))))},t.prototype.renderRows=function(t){var e,n,i,r,o,s,a,l,u,c,d,h,f,p,m,g,v,y,b,w,x,S;for(r=this.$el.outerWidth(),this.$items.css({width:"",top:"",left:""}),w=t.length,x=0,g=[],m=s=0,c=t.length;s<c;m=++s){for(b=(v=t[m]).length,i=0,u=0,y=0,a=0,d=v.length;a<d;a++)e=v[a],i+=parseFloat(e.data("aspect"));for(S=(b-1)*this.options.pad,o=l=0,h=v.length;l<h;o=++l)e=v[o],n=parseFloat(e.data("aspect")),f=(p=(r-S)*(parseFloat(e.data("aspect"))/i).toFixed(6))/n,e.css({position:"absolute",width:p,top:x,left:u}),u+=p,o!==b-1&&(u+=this.options.pad),y=f;x+=y,m!==w-1&&(x+=this.options.pad),g.push(this.$el.css({height:x}))}return g},t}()}.call(this),function(){window.ChallengeHash={challengeHash:function(t){var e,n;for(e=7,n=0;n<t.length;)e=(31*e+t.charCodeAt(n))%4294967295,n++;return e.toString()},CHALLENGE_SALT:'*)u"vg8VEN+/@P^(}O%z'}}.call(this),function(){window.$window=$(window),window.$document=$(document),String.prototype.format=function(t){return this.replace(/%{([^\}]+)}/g,(function(e,n){return t[n]||""}))},String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.substring(1)},window.Helpers={shuffleChildren:function(t){var e,n;for(e=t.children(),n=[];e.length;)n.push(t.append(e.splice(Math.floor(Math.random()*e.length),1)[0]));return n},onImagesLoaded:function(t,e){var n,i;return n=t.find("img"),(i=n.length)>0?n.each((function(t,n){return n.complete&&0!==n.naturalHeight?0===(i-=1)?e():void 0:n.onload=function(){if(0===(i-=1))return e()}})):e()},invertColor:function(t,e){var n,i,r;if(null==e&&(e=!1),0===t.indexOf("#")&&(t=t.slice(1)),3===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),6!==t.length)throw new Error("Invalid HEX color.");return r=parseInt(t.slice(0,2),16),i=parseInt(t.slice(2,4),16),n=parseInt(t.slice(4,6),16),e?.299*r+.587*i+.114*n>186?"#000000":"#FFFFFF":(r=(255-r).toString(16),i=(255-i).toString(16),n=(255-n).toString(16),"#"+Helpers.padZero(r)+Helpers.padZero(i)+Helpers.padZero(n))},padZero:function(t,e){return e=e||2,(new Array(e).join("0")+t).slice(-e)},randomFloatInRange:function(t,e){return Math.random()*(e-t)+t},randomIntInRange:function(t,e){return Math.floor(Math.random()*(e-t+1)+t)},isScrolledIntoView:function(t,e){var n,i,r;return null==e&&(e=0),n=$(t),i=$window.scrollTop()+((null!=(r=window.visualViewport)?r.height:void 0)||$window.height()),n.offset().top-e<i},htmlDecode:function(t){var e;return(e=document.createElement("div")).innerHTML=t,0===e.childNodes.length?"":e.childNodes[0].nodeValue},requestTimeout:function(t,e){var n,i,r;return r=(new Date).getTime(),n=function(){return(new Date).getTime()-r>=t?e.call():i.value=window.requestAnimationFrame(n)},(i={}).value=window.requestAnimationFrame(n),i},requestInterval:function(t,e){var n,i,r;return r=(new Date).getTime(),n=function(){if(i.value=requestAnimationFrame(n),(new Date).getTime()-r>=t)return e.call(),r=(new Date).getTime()},(i={}).value=window.requestAnimationFrame(n),i},clearRequestTimeout:function(t){if(t)return window.cancelAnimationFrame(t.value)}},$.fn.outerHeightWhen=function(t){var e,n;return t(e=this.clone()),e.css("visibility","hidden"),e.css("position","absolute"),e.appendTo(document.body),n=e.outerHeight(),e.remove(),n}}.call(this),function(){window.ActiveMenu={init:function(){var t,e,n,i,r;for(r=[],t=0,n=(i=window.currentItemsIds).length;t<n;t++)e=i[t],r.push($(".js-menu-item[data-item-id="+e+"]").addClass("-active"));return r}}}.call(this),function(){window.Anchors={init:function(t){return new SmoothScroll(t,{durationMax:2e3,offset:function(){var t;return("function"==typeof(t=Theme.Initializer).scrollOffset?t.scrollOffset():void 0)?Theme.Initializer.scrollOffset():0}})}}}.call(this),function(){window.Animator={defaultTransition:"transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.5s cubic-bezier(0.215, 0.61, 0.355, 1)",animateSequential:function(t,e){return null==e&&(e=this.defaultTransition),t.each((function(t,n){var i;return i=$(n),delay(100*t,(function(){return i.css({transition:e}),onCSSAnimationEvent(i,"TransitionEnd",(function(){return i.css({transition:""})})),i.addClass("-visible")}))}))}}}.call(this),function(){window.BackToTop={init:function(t,e){var n,i,r,o,s;if(null==e&&(e={}),o={scrollableSelector:"html, body",scrollingSelector:window,threshold:1e3},e=$.extend({},o,e),(n=$(t)).length)return i=$(e.scrollableSelector),r=$(e.scrollingSelector),n.on("click",(function(t){return t.preventDefault(),i.stop().animate({scrollTop:0},500)})),s=$.throttle(300,(function(t){return n.toggleClass("-active",$(t.currentTarget).scrollTop()>e.threshold)})),r.on("scroll",(function(t){return s(t)}))}}}.call(this),function(){var t=[].slice;window.CookieJar={_api:Cookies.withAttributes({sameSite:"Lax"}),set:function(){var e,n;return e=1<=arguments.length?t.call(arguments,0):[],(n=this._api).set.apply(n,e)},get:function(){var e,n;return e=1<=arguments.length?t.call(arguments,0):[],(n=this._api).get.apply(n,e)}}}.call(this),function(){window.ExternalLinks={init:function(t){if(!window.previewMode)return $(t).filter(":not([target])").each((function(t,e){if(isExternalLink(e.href))return e.setAttribute("target","_blank")}))}}}.call(this),function(){window.Form={init:function(t){var e,n;if(null==t&&(t=".js-form"),(e=$(t)).length)return e.each((n=this,function(t,e){return n.initForm($(e))}))},initForm:function(t){return this.initAjaxForm(t),this.initUploadPreview(t),this.initNumberInput(t),this.initMessages(t),this.initChallenge(t)},initAjaxForm:function(t){return t.ajaxForm({beforeSubmit:(e=this,function(){return e.toggleFormSubmit(t)}),success:function(e){return function(n){return e.toggleFormSubmit(t),e.showSuccessMessage(t),e.resetForm(t),e.setSuccessHash(),t.trigger("form:success",n)}}(this),error:function(e){return function(n){return e.toggleFormSubmit(t),500<=n.status&&n.status<=599?e.showTransientErrorMessage(t):e.showValidationErrorsMessage(t,n.responseJSON),t.trigger("form:error")}}(this),complete:function(){return t.trigger("form:complete")}});var e},initUploadPreview:function(t){return t.find("input[type=file]").on("change",(function(e){var n,i;if(null!=(n=e.target.files[0])&&n.type.match("image.*"))return(i=new FileReader).onloadend=function(){return t.find(".js-preview").css("background-image","url("+i.result+")")},i.readAsDataURL(n)}))},initMessages:function(t){var e;if((e=t.find(".js-message")).length)return e.on("click",".js-close",(function(t){return $(t.currentTarget).closest(".js-message").fadeOut(300)}))},initNumberInput:function(t){var e;if((e=t.find(".js-number-input")).length)return NumberInput.init(e)},initChallenge:function(t){var e,n;return e=$("<input type='hidden' name='commentable_modified_date' />"),n=window.siteId+"-"+ChallengeHash.CHALLENGE_SALT,e.val(ChallengeHash.challengeHash(n)),t.append(e)},toggleFormSubmit:function(t){var e,n;return n=(e=t.find("button[type=submit]")).attr("value"),e.prop("disabled",!e.prop("disabled")).attr("value",e.data("disable")).data("disable",n)},showSuccessMessage:function(t){return t.find(".js-message").hide(),t.find(".js-success-message").fadeIn(300)},showValidationErrorsMessage:function(t,e){return null==e&&(e=[locale.generic_error]),this.showErrorMessage(t,locale.fix_errors,e)},showTransientErrorMessage:function(t){return this.showErrorMessage(t,locale.transient_error.title,[locale.transient_error.try_reload,locale.transient_error.tell_owner])},showErrorMessage:function(t,e,n){var i,r;return t.find(".js-message").hide(),(r=t.find(".js-error-message")).find(".js-error-header").text(e),(i=r.find(".js-errors-list")).html(""),$.each(n,(function(){return i.append($("<li>").text(this))})),r.fadeIn(300)},resetForm:function(t){var e,n;if(!1!==t.data("form-reset-after-submit"))return t[0].reset(),n=(e=t.find(".js-preview")).data("blank")?"url("+e.data("blank")+")":"none",e.css("background-image",n)},setSuccessHash:function(){return window.location.hash="success"}}}.call(this),function(){window.Galleries={init:function(){var t,e,n,i,r,o;if((t=$(".js-gallery")).length){for(r=i=0,o=t.length;i<o;r=++i)n=t[r],e=$(n),(n=new Gallery({selector:".js-gallery-link",initialZoom:e.data("gallery-initial-zoom"),galleryUniqId:r+1})).start(e);return this.bindEvents()}},bindEvents:function(){return $document.on("global:download",(function(t,e){return BrowserDetector.isOS("iOS")?window.open(e.url,"_blank"):window.open(e.url,"_self")})),this.initScrollToPiece()},initScrollToPiece:function(){return $document.on("global:close-gallery",(function(t,e){var n,i,r,o,s;if(s=null!=(i=$("[id=piece-"+e+"]"))&&null!=(r=i.offset())?r.top:void 0)return o=("function"==typeof(n=Theme.Initializer).scrollOffset?n.scrollOffset():void 0)||0,window.scrollTo({top:s-o})}))}}}.call(this),function(){window.Modal=function(){function t(t){this.$modal=t,this.bindEvents()}return t.prototype.isOpen=!1,t.prototype.open=function(){return this.$modal.addClass("-open"),this.isOpen=!0,delay(150,(t=this,function(){return t.$modal.trigger("modal:after-open")}));var t},t.prototype.close=function(){return this.$modal.removeClass("-open"),this.isOpen=!1,delay(150,(t=this,function(){return t.$modal.trigger("modal:after-close")}));var t},t.prototype.bindEvents=function(){var t;return this.$modal.on("modal:open",(t=this,function(){return t.open()})),this.$modal.on("modal:close",function(t){return function(){return t.close()}}(this)),this.$modal.on("click",".js-modal-close",function(t){return function(){return t.close()}}(this)),this.$modal.on("click",function(t){return function(e){if(t.isOpen&&e.target===e.currentTarget)return t.close()}}(this)),$document.on("keyup",function(t){return function(){if(t.isOpen)return 27===event.which?t.close():void 0}}(this)),this.$modal.on("modal:after-open",function(t){return function(){return t.$modal.find("input[autofocus], textarea[autofocus]").first().focus(),LinksTarget.init()}}(this))},t}()}.call(this),function(){window.Modals={init:function(t){return $(t).on("click",(function(t){var e;return(e=$(t.currentTarget)).prop("disabled",!0),$.get(e.data("url"),(function(t){var n;return this.$modal=$(t),new Modal(this.$modal),Form.initForm(this.$modal.find(".js-form")),ProductForm.init(this.$modal.find(".js-product-form")),ProductGallery.init(this.$modal.find(".js-product-gallery")),$("body").append(this.$modal),this.$modal.on("modal:after-close",(n=this,function(){return n.$modal.remove()})),this.$modal.trigger("modal:open"),e.prop("disabled",!1)}))}))}}}.call(this),function(){window.Preview={init:function(){if(window.previewMode)return Protector.init("a"),Protector.init("a[href*='://']","click"),window.previewDemo&&Protector.init("a","click"),window.top===window&&window.close(),$(".js-locale-switch, .locale-selector, .admin-link").hide(),$(".js-form").addClass("-disabled")}}}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};window.Backgrounds={},window.Backgrounds.Youtube=function(){function e(e){this.$container=e,this.onStateChange=t(this.onStateChange,this),this.onResize=t(this.onResize,this),this.onReady=t(this.onReady,this),this.$preview=this.$container.find(".js-background-video-preview"),this.aspect=this.$container.data("aspect"),this.player=new YT.Player(this.$container.find(".js-background-video-iframe").attr("id"),{playerVars:{autohide:1,autoplay:0,controls:0,enablejsapi:1,origin:location.origin,disablekb:1,iv_load_policy:3,modestbranding:1,showinfo:0,rel:0,fs:0},events:{onReady:this.onReady,onStateChange:this.onStateChange}}),$window.on("resize",this.onResize)}return e.prototype.onReady=function(){return this.onResize(),this.player.mute(),this.player.cuePlaylist([this.$container.data("video-id")]),this.player.setLoop(!0)},e.prototype.onResize=function(){var t;return t=this.$preview.height(),this.player.setSize(t*this.aspect,t)},e.prototype.onStateChange=function(t){switch(t.data){case YT.PlayerState.CUED:return this.player.playVideo();case YT.PlayerState.BUFFERING:return this.$container.removeClass("-playing");case YT.PlayerState.PLAYING:return this.$container.addClass("-playing")}},e}(),window.Backgrounds.Vimeo=function(){function e(e){var n;this.$container=e,this.onResize=t(this.onResize,this),this.$preview=this.$container.find(".js-background-video-preview"),this.aspect=this.$container.data("aspect"),this.player=new window.Vimeo.Player(this.$container[0],{id:this.$container.data("video-id"),muted:!0,background:!0,autoplay:!0,autopause:!1,controls:!1,title:!1,byline:!1,loop:!0,width:1280,height:720}),this.player.on("bufferend",(n=this,function(){return n.showVideo()})),this.player.on("error",function(t){return function(){return t.hideVideo()}}(this)),$window.on("resize",this.onResize)}return e.prototype.showVideo=function(){return this.onResize(),this.$container.addClass("-playing")},e.prototype.hideVideo=function(){return this.$container.removeClass("-playing")},e.prototype.onResize=function(){var t,e;if((null!=(e=this.$iframe)?e.length:void 0)||(this.$iframe=this.$container.find("iframe").first()),this.$iframe.length)return t=this.$preview.height(),this.$iframe.height(t),this.$iframe.width(t*this.aspect)},e}()}.call(this),function(){window.Comparison=function(){function t(t,e){var n;this.$container=t,null==e&&(e={}),n={dragAnywhere:!0,beforeSelector:".before",afterSelector:".after"},this.options=$.extend({},n,e),this.$before=this.$container.find(this.options.beforeSelector),this.$after=this.$container.find(this.options.afterSelector),this.createElements(),this.$eventListener=this.options.dragAnywhere?this.$container:this.$drag,this.addEventListeners(),this.setDimensions()}return t.prototype.createElements=function(){return this.$drag=$("<span>").addClass("drag").appendTo(this.$container),$("<span>").addClass("left-arrow").appendTo(this.$drag),$("<span>").addClass("right-arrow").appendTo(this.$drag)},t.prototype.addEventListeners=function(){return this.$eventListener.on("mousedown touchstart",this.onTap.bind(this)),this.$eventListener.on("mousemove touchmove",this.onDrag.bind(this)),this.$eventListener.on("mouseup touchend",this.onDragEnd.bind(this)),$window.on("resize",$.throttle(50,(t=this,function(){return t.setDimensions(),t.requestDrag()})));var t},t.prototype.setDimensions=function(){var t,e,n,i,r,o;return this.$container.css({width:"",height:""}),i=this.$container.outerWidth(),e=this.$before.find(".js-lazy-image").data("aspect"),t=this.$after.find(".js-lazy-image").data("aspect"),o=Math.min(e,t),r=Math.max(e,t),n=o<1&&r<1?i/r:o>1&&r>1?i/o:i,n=Math.min(n,.9*window.innerHeight),i=o<1&&r<1?n*r:o>1&&r>1?n*o:n,this.$container.css({height:n,width:i}),this.containerOffsetLeft=this.$container.offset().left,this.$before.find(".js-lazy-image").css({width:i}),this.dragWidth=this.$drag.outerWidth(),this.minLeftPos=this.containerOffsetLeft,this.maxLeftPos=this.containerOffsetLeft+i},t.prototype.onTap=function(t){return t.preventDefault(),this.leftPos=t.pageX?t.pageX:t.originalEvent.touches[0].pageX,this.requestDrag(),this.onDragStart(t)},t.prototype.onDragStart=function(t){var e,n;return t.preventDefault(),e=(n=t.pageX?t.pageX:t.originalEvent.touches[0].pageX)+document.body.scrollLeft,this.posX=e-n,this.isDragging=!0},t.prototype.onDragEnd=function(t){return t.preventDefault(),this.isDragging=!1},t.prototype.onDrag=function(t){if(t.preventDefault(),this.isDragging)return this.moveX=t.pageX?t.pageX:t.originalEvent.touches[0].pageX,this.leftPos=this.moveX+this.posX+this.dragWidth/2,this.requestDrag()},t.prototype.drag=function(){var t;return this.leftPos<this.minLeftPos?this.leftPos=this.minLeftPos:this.leftPos>this.maxLeftPos&&(this.leftPos=this.maxLeftPos),t=this.leftPos-this.containerOffsetLeft,this.$drag.css({left:t}),this.$before.css({width:t})},t.prototype.requestDrag=function(){return window.requestAnimationFrame(this.drag.bind(this))},t}()}.call(this),function(){window.Cover={init:function(t){if(null==t&&(t=".js-cover"),this.$cover=$(t),this.$cover.length)return this.$coverSlider=this.$cover.find(".js-slider"),this.$sliderTotalSlides=this.$cover.find(".js-slider-total-slides"),this.$sliderCurrentSlide=this.$cover.find(".js-slider-current-slide"),this.$sliderPrev=this.$cover.find(".js-slider-prev"),this.$sliderNext=this.$cover.find(".js-slider-next"),this.$scrollDown=this.$cover.find(".js-cover-down-arrow"),this.bindEvents()},bindEvents:function(){var t;return this.$sliderNext.on("click",(t=this,function(){return t.$coverSlider.trigger("slider:next-slide")})),this.$sliderPrev.on("click",function(t){return function(){return t.$coverSlider.trigger("slider:prev-slide")}}(this)),this.$coverSlider.on("slider:show-slide",function(t){return function(e,n){return t.$sliderCurrentSlide.text(n.currentSlide),t.$sliderTotalSlides.text(n.slidesTotal)}}(this)),this.$scrollDown.on("click",function(t){return function(){var e,n,i;return n=("function"==typeof(e=Theme.Initializer).scrollOffset?e.scrollOffset():void 0)||0,i=t.$cover.outerHeight()+t.$cover.offset().top-n,
$("html, body").animate({scrollTop:i},500)}}(this))}}}.call(this),function(){window.ProductGallery={init:function(t){if(null==t&&(t=".js-product-gallery"),this.$productGallery=$(t),this.$productGallery.length)return this.$thumbnails=this.$productGallery.find(".js-product-thumbnail"),this.$previews=this.$productGallery.find(".js-product-preview"),this.selectPiece(this.$productGallery.find(".js-product-thumbnail").first()),1===this.$thumbnails.length&&this.$thumbnails.hide(),this.bindEvents()},bindEvents:function(){var t,e;return(t=new Hammer(this.$productGallery[0])).on("swipeleft",(e=this,function(){return e.selectNextPiece()})),t.on("swiperight",function(t){return function(){return t.selectPrevPiece()}}(this)),$document.on("click",".js-product-thumbnail",function(t){return function(e){return t.selectPiece($(e.currentTarget))}}(this))},selectPiece:function(t){return this.$thumbnails.removeClass("is-active"),this.$previews.removeClass("is-active"),t.addClass("is-active"),this.$previews.filter("[data-piece-id="+t.data("piece-id")+"]").addClass("is-active")},selectNextPiece:function(){var t;if((t=this.currentPiece().next()).length||(t=this.$thumbnails.first()),t.length)return this.selectPiece(t)},selectPrevPiece:function(){var t;if((t=this.currentPiece().prev()).length||(t=this.$thumbnails.last()),t.length)return this.selectPiece(t)},currentPiece:function(){return this.$thumbnails.filter(".is-active")}}}.call(this),function(){window.ProductForm={init:function(t){if(null==t&&(t=".js-product-form"),this.$form=$(t),this.$form.length)return this.$priceContainer=this.$form.find(".js-product-price"),this.$oldPriceContainer=this.$form.find(".js-product-old-price"),this.initForm(),this.setProductPrice(this.productQuantity())},initForm:function(){return this.$form.on("input change",".js-product-quantity",(t=this,function(e){return t.setProductPrice($(e.currentTarget).val())}));var t},productQuantity:function(){return this.$form.find(".js-product-quantity").val()},setProductPrice:function(t){var e,n;if(this.$priceContainer.length)return n=this.$form.find(".js-product-price").data("product-price"),e=this.$form.find(".js-product-old-price").data("product-old-price"),$.isNumeric(t)||(t=1),this.$priceContainer.text((n*t).formatPrice()),this.$oldPriceContainer.length?this.$oldPriceContainer.text((e*t).formatPrice()):void 0}}}.call(this),function(){window.Informer=function(){function t(t){this.$informer=t,this.cookieName=this.$informer.data("informer-cookie-name"),this.cookieTimestamp=this.$informer.data("informer-cookie-timestamp"),this.cookieExpires=parseFloat(this.$informer.data("informer-cookie-expires")),this.hideOnPreview=this.$informer.data("informer-hide-on-preview")||!1,this.bindEvents(),window.previewMode&&this.hideOnPreview||this.isCookieSet()||this.show()}return t.prototype.bindEvents=function(){return this.$informer.on("click",".js-close",(t=this,function(){return t.hide(),t.setCookie()}));var t},t.prototype.show=function(){return this.$informer.addClass("is-visible"),this.broadcastEvent()},t.prototype.hide=function(){return this.$informer.removeClass("is-visible"),this.broadcastEvent()},t.prototype.isCookieSet=function(){return parseInt(CookieJar.get(this.cookieName))===this.cookieTimestamp},t.prototype.setCookie=function(){if(!window.previewMode)return CookieJar.set(this.cookieName,this.cookieTimestamp,{expires:this.cookieExpires})},t.prototype.broadcastEvent=function(){return $document.trigger("layout-changed")},t}()}.call(this),function(){window.Lineup=function(){function t(t){this.$lineup=t,$window.on("resize",this.resize.bind(this)),this.resize()}return t.prototype.resize=function(){var t;return t=this.$lineup.outerWidth(),this.$lineup.find(".js-lazy-image").each((function(e,n){var i,r,o;if((r=(i=$(n)).data("aspect"))<1)return o=t*r,i.css("max-width",o)}))},t}()}.call(this),function(){window.MarketingInformer={init:function(t){if(null==t&&(t=".js-marketing-informer"),this.$informer=$(t),this.$informerContent=this.$informer.find(".js-marketing-informer-content"),this.$informerContentContainer=this.$informer.find(".js-marketing-informer-content-container"),window.$body=$("body"),this.isInformerVisible())return $body.addClass("is-marketing-informer-visible"),this.bindEvents(),delay(100,(e=this,function(){return e.setHeightProperty(),e.initAnimatedContent(),$document.trigger("marketing-informer:loaded")}));var e},initAnimatedContent:function(){var t;if(t=this.$informerContent.outerWidth(),this.$informer.outerWidth()<t&&this.$informer.addClass("is-animated"),this.$informer.hasClass("is-animated"))return this.setAnimationSpeedProperty(t),this.addClonedContent()},bindEvents:function(){var t;return $window.on("resize",(t=this,function(){if(t.isInformerVisible())return t.addClonedContent(),t.initAnimatedContent()})),this.$informer.on("click",".js-close",(function(){return $body.removeClass("is-marketing-informer-visible"),$document.trigger("marketing-informer:close")}))},addClonedContent:function(){var t,e,n,i;if(this.$informer.hasClass("is-animated")&&(e=$(".cloned-marketing-informer-content").length)<(t=this.clonedContentCount())){for(n=1,i=t-e;1<=i?n<=i:n>=i;1<=i?n++:n--)this.cloneContent();return this.reloadAnimation()}},clonedContentCount:function(){var t,e;return t=this.$informerContent.outerWidth(),e=this.$informer.outerWidth(),Math.ceil(e/t)},cloneContent:function(){return this.$informerContent.clone().addClass("cloned-marketing-informer-content").appendTo(this.$informerContentContainer)},isInformerVisible:function(){return this.$informer.hasClass("is-visible")},setHeightProperty:function(){return document.documentElement.style.setProperty("--marketing-informer-height",this.$informer.height()+"px")},setAnimationSpeedProperty:function(t){var e;return e=30,document.documentElement.style.setProperty("--marketing-informer-animation-duration",t/e+"s")},reloadAnimation:function(){return this.$informer.removeClass("is-animated"),delay(13,(t=this,function(){return t.$informer.addClass("is-animated")}));var t}}}.call(this),function(){window.MultiSlider=function(){function t(t,e){this.$el=t,null==e&&(e={}),this.options=$.extend({},this.defaults,e),this.$slides=this.$el.find(".js-slide"),this.totalSlides=this.$slides.length,this.currentSlide=0,this.$viewports=this.$el.find(".js-viewport"),this.totalviewports=this.$viewports.length,this.timer=null,this.bindEvents(),this.changeAllSlides(),this.startTimers()}return t.prototype.defaults={mainGroupBetween:[3,5],extraGroupBetween:[1,2],mainGroupDelay:5e3,extraGroupDelay:1e3},t.prototype.changeAllSlides=function(){return $.each(this.$viewports,(t=this,function(e,n){var i;return i=$(n),t.changeSlide(i,t.getSlide())}));var t},t.prototype.startTimers=function(){var t;if(this.stopTimers(),this.options.mainGroupDelay>0)return this.timer=Helpers.requestTimeout(this.options.mainGroupDelay,(t=this,function(){return t.changeGroups()}))},t.prototype.stopTimers=function(){return Helpers.clearRequestTimeout(this.timer)},t.prototype.changeGroups=function(){var t,e,n,i;return e=(n=shuffleArray(this.$viewports.slice(0))).splice(0,Helpers.randomIntInRange.apply(Helpers,this.options.mainGroupBetween)),t=n.splice(0,Helpers.randomIntInRange.apply(Helpers,this.options.extraGroupBetween)),this.changeGroup(e),Helpers.requestTimeout(this.options.extraGroupDelay,(i=this,function(){return i.changeGroup(t)})),this.startTimers()},t.prototype.changeGroup=function(t){return $.each(t,(e=this,function(t,n){var i;return i=$(n),e.changeSlide(i,e.getSlide())}));var e},t.prototype.changeSlide=function(t,e){var n,i;return(n=t.find(".js-slide")).length?e.find("img").one("load",(i=this,function(){return i.switchSlides(e,n)})):this.switchSlides(e,n),onCSSAnimationEvent(n,"TransitionEnd",(function(){return n.remove()})),e.appendTo(t)},t.prototype.switchSlides=function(t,e){return delay(13,(function(){return t.addClass("-visible"),e.removeClass("-visible")}))},t.prototype.getSlide=function(){var t;return this.currentSlide>this.totalSlides-1&&(this.currentSlide=0),t=this.$slides.eq(this.currentSlide).clone(),this.currentSlide+=1,t},t.prototype.getRandomizedDelay=function(){var t,e,n,i,r;return t=this.options.delay/4,e=this.options.delay/10,r=(n=Math.random())>.5?1:-1,i=n*(t-e)+e,this.options.delay+i*r},t.prototype.bindEvents=function(){var t,e;return $window.blur((e=this,function(){return e.stopTimers()})).focus(function(t){return function(){return t.startTimers()}}(this)),t=$.throttle(2e3,function(t){return function(){return t.stopTimers(),t.changeGroups()}}(this)),this.$el.on("click",(function(){return t()}))},t}()}.call(this),function(){window.NumberInput={init:function(t){if(this.$inputContainer=$(t),this.$input=this.$inputContainer.find("input"),this.$input.length)return this.bindEvents()},bindEvents:function(){var t;return this.$inputContainer.on("click",".js-number-input-plus",(t=this,function(){return t.$input.get(0).stepUp(),t.$input.trigger("change")})),this.$inputContainer.on("click",".js-number-input-minus",function(t){return function(){return t.$input.get(0).stepDown(),t.$input.trigger("change")}}(this)),this.$input.on("keypress",(function(t){if(t.key.match(/[^0-9]/))return!1})),this.$input.on("input",function(t){return function(){if(parseInt(t.$input.val(),10)<t.$input.attr("min")&&(t.$input.val(t.$input.attr("min")),t.$input.trigger("change")),parseInt(t.$input.val(),10)>t.$input.attr("max"))return t.$input.val(t.$input.attr("max")),t.$input.trigger("change")}}(this)),this.$input.on("focusout",function(t){return function(){if(!t.$input.val())return t.$input.val(1)}}(this))}}}.call(this),function(){window.QuestionsList={init:function(t){var e,n;return e=t.find(".js-question-title"),n=t.find(".js-question"),e.on("click",(function(t){var e;return e=$(t.currentTarget).parents(".js-question"),n.not(e).removeClass("is-active").find(".js-answer").slideUp(300),e.toggleClass("is-active").find(".js-answer").slideToggle(300)}))}}}.call(this),function(){window.Search={init:function(){return this.searchField=$(".js-search-field"),this.searchTargets=$(this.searchField.data("search-target")),this.updateSearchResults(),this.bindEvents()},bindEvents:function(){return $document.on("input",this.searchField,(t=this,function(){return t.updateSearchResults()}));var t},updateSearchResults:function(){var t;return this.searchTargets.each((t=this,function(e,n){var i,r;return r=(i=$(n)).data("search-val").toString().toLowerCase(),i.toggleClass("-hidden",-1===r.indexOf(t.searchFieldVal()))})),$document.trigger("search:update")},searchFieldVal:function(){return this.searchField.val().toLowerCase()}}}.call(this),function(){window.Sharing={socialButtonsTemplates:{facebook:'<a class="share-social-button -facebook" target="_blank" data-no-track="true"\n  onclick="openCentered(\'https://www.facebook.com/sharer.php?u=%{encodedUrl}\', \'share\', 650, 570); return false;"\n  href="https://www.facebook.com/sharer.php?u=%{encodedUrl}">\n  <i class="fab fa-facebook-f fa-fw"></i>\n</a>',whatsapp:'<a class="share-social-button -whatsapp" target="_blank" data-no-track="true" href="whatsapp://send?text=%{encodedUrl}">\n  <i class="fab fa-whatsapp fa-fw"></i>\n</a>',vk:'<a class="share-social-button -vk" target="_blank" data-no-track="true"\n  onclick="openCentered(\'https://vk.com/share.php?url=%{encodedUrl}\', \'share\', 650, 570); return false;"\n  href="https://vk.com/share.php?url=%{encodedUrl}">\n  <i class="fab fa-vk fa-fw"></i>\n</a>',telegram:'<a class="share-social-button -telegram" target="_blank" data-no-track="true" href="https://t.me/share/url?url=%{encodedUrl}">\n  <i class="fab fa-telegram-plane fa-fw"></i>\n</a>',viber:'<a class="share-social-button -viber" target="_blank" data-no-track="true" href="viber://forward?text=%{encodedUrl}">\n  <i class="fab fa-viber fa-fw"></i>\n</a>'},template:'<div class="modal js-modal share-modal" id="share-modal">\n  <div class="modal-window">\n    <div class="modal-close js-modal-close"></div>\n    <div class="share">\n      <div class="share-header">'+locale.share.button+'</div>\n      <div class="inline-form-field share-link">\n        <input class="inline-form-input" value="%{url}" readonly=true />\n        <button class="inline-form-button js-copy-link" type="button" data-clipboard-text=%{url} data-success="'+locale.share.copied+'">\n          '+locale.share.copy+'\n        </button>\n      </div>\n      <div class="share-social">\n        %{socialButtons}\n      </div>\n    </div>\n  </div>\n</div>',options:{useNativeSharing:!0},init:function(t){var e;return null==t&&(t={}),$.extend(this.options,t),this.isNativeSharing=this.options.useNativeSharing&&null!=navigator.share,$(".js-share-trigger").on("click",(e=this,function(){return e.share(window.currentUrl,document.title)})),$document.on("global:share",function(t){return function(e,n){return t.share(n.url,n.title,n.root)}}(this))},share:function(t,e,n){var i,r,o;return this.isNativeSharing?navigator.share({url:t,title:e}):(o=this.socialButtons(t).join(""),i=$(this.template.format({url:t,socialButtons:o})),(n?$(n):$("body")).append(i),r=new Modal(i),$document.one("global:close-modal",(function(){return i.trigger("modal:close")})),i.on("modal:after-close",(function(){return i.remove()})),r.open())},socialButtons:function(t){var e,n,i,r,o,s;for(s=[],e=0,i=(r=window.sharingSocialNetworks).length;e<i;e++)n=r[e],s.push(null!=(o=this.socialButtonsTemplates[n])?o.format({encodedUrl:encodeURIComponent(t)}):void 0);return s}}}.call(this),function(){window.Slider=function(){function t(t,e){var n;this.$slider=t,null==e&&(e={}),this.options=$.extend({},this.defaults,e),this.$sliderViewport=this.$slider.find(".js-slider-viewport"),this.$slidesContainer=this.$slider.find(".js-slides"),this.options.shuffle&&Helpers.shuffleChildren(this.$slidesContainer),this.$slides=this.$slidesContainer.children(),this.$sliderTotalSlides=this.$slider.find(".js-slider-total-slides"),this.$sliderCurrentSlide=this.$slider.find(".js-slider-current-slide"),this.currentSlide=1,this.slidesTotal=this.$slides.length,this.isAutoplayEnabled=this.options.delay>0,this.skipNextFrame=!1,this.options.counter&&this.slidesTotal>1&&(this.counter=$('<div class="slider-counter"></div>'),this.counter.appendTo(this.$sliderViewport)),this.bindEvents(),this.resizeSlides(),this.showSlide(this.currentSlide,!0),this.startAutoplay(),$document.on("marketing-informer:loaded",(n=this,function(){return n.resizeSlides()})),$window.on("resize",function(t){return function(){return t.resizeSlides()}}(this))}return t.prototype.defaults={delay:0,shuffle:!1,mode:"auto",preloadNextSlide:!0,counter:!1},t.prototype.resizeSlides=function(){var t,e,n,i,r,o,s,a;return s=this.$sliderViewport.outerWidth(),"smartFit"===this.options.mode&&(t=this.$slides.find(".js-lazy-image").map((function(t,e){return $(e).data("aspect")})),n=Math.min.apply(Math,t),e=Math.max.apply(Math,t),i=n<1&&e<1?s/e:n>1&&e>1?s/n:s,this.$sliderViewport.css({height:Math.min(i,.9*window.innerHeight)})),o=this.$sliderViewport.outerHeight(),r=s/o,this.$slides.each((a=this,function(t,e){var n,i,l,u,c,d;return c=(n=$(e).find(".js-lazy-image")).data("width"),u=n.data("height"),l=n.data("aspect"),"width"===a.options.mode||"adaptive"===a.options.mode?i=(d=Math.min(c,s))/l:"fitSquare"===a.options.mode?(d=Math.min(c,s),d=(i=Math.min(d/l,d))*l):"height"===a.options.mode?d=(i=Math.min(u,o))*l:"fill"===a.options.mode?r>l?i=(d=s)/l:d=(i=o)*l:l>1&&l>r?i=(d=Math.min(c,s))/l:d=(i=Math.min(u,o))*l,n.css({width:Math.round(d),height:Math.round(i)})}))},t.prototype.showSlide=function(t,e){var n,i,r;if(!(t<1||t>this.slidesTotal)&&(i=(n=this.$slides.eq(t-1)).find(".js-lazy-image"),!this.options.preloadNextSlide||i.hasClass("is-loaded")||e))return this.currentSlide=t,null!=(r=this.counter)&&r.text(t+"/"+this.slidesTotal),this.$slider.trigger("slider:show-slide",{slidesTotal:this.slidesTotal,currentSlide:this.currentSlide}),"adaptive"!==this.options.mode&&"fitSquare"!==this.options.mode||this.$sliderViewport.css({height:i.css("height")}),this.$slides.removeClass("-visible"),n.addClass("-visible")},t.prototype.nextSlide=function(t){if(null==t&&(t=!1),t)this.skipNextFrame=!0;else if(this.skipNextFrame)return void(this.skipNextFrame=!1);return this.currentSlide<this.slidesTotal?this.showSlide(this.currentSlide+1,t):this.showSlide(1,t)},t.prototype.prevSlide=function(t){if(null==t&&(t=!1),t)this.skipNextFrame=!0;else if(this.skipNextFrame)return void(this.skipNextFrame=!1);return this.currentSlide>1?this.showSlide(this.currentSlide-1,t):this.showSlide(this.slidesTotal,t)},t.prototype.bindEvents=function(){var t,e;return this.$slider.on("click",".js-prev",(e=this,function(t){return t.stopPropagation(),e.prevSlide(!0)})),this.$slider.on("click",".js-next",function(t){return function(e){return e.stopPropagation(),t.nextSlide(!0)}}(this)),this.$slider.on("slider:prev-slide",function(t){return function(){return t.prevSlide(!0)}}(this)),this.$slider.on("slider:next-slide",function(t){return function(){return t.nextSlide(!0)}}(this)),this.$slider.on("slider:show-slide",function(t){return function(e,n){return t.$sliderCurrentSlide.text(n.currentSlide),t.$sliderTotalSlides.text(n.slidesTotal)}}(this)),(t=new Hammer(this.$slider[0])).on("swipeleft",function(t){return function(){return t.nextSlide(!0)}}(this)),t.on("swiperight",function(t){return function(){return t.prevSlide(!0)}}(this))},t.prototype.startAutoplay=function(){var t;if(this.isAutoplayEnabled)return Helpers.requestInterval(this.options.delay,(t=this,function(){return t.nextSlide()}))},t}()}.call(this),function(){window.Strip=function(){function t(t,e){var n,i;this.$strip=t,null==e&&(e={}),this.options=$.extend({},this.defaults,e),this.$slidesContainer=this.$strip.find(".js-slides"),this.$controlsContainer=this.$strip.find(".js-controls"),this.$viewportContainer=this.options.viewportContainer||this.$strip,this.options.shuffle&&Helpers.shuffleChildren(this.$slidesContainer),this.$slides=this.$slidesContainer.children(),this.slidesCount=this.$slides.length,this.isAutoplayEnabled=this.options.delay>0,this.skipNextFrame=!1,this.margin=parseInt(this.$slides.first().css("margin-right")),this.bindEvents(),this.init(),n=$.debounce(500,(i=this,function(){return i.init()})),$window.on("resize",(function(){return n()}))}return t.prototype.defaults={delay:0,shuffle:!1,transitionEase:"ease",transitionSpeed:1500,preloadNextSlide:!0},t.prototype.init=function(){return this.relativeTransitionSpeed=$window.width()/this.options.transitionSpeed,this.disableSlideTransition(),this.stopAutoplay(),this.$slidesContainer.children(".-clone").remove(),this.resizeSlides(),this.firstIndex=0,this.lastIndex=this.slidesCount-1,this.prependClones(),this.appendClones(),this.positionControls(),this.$slidesWithClones=this.$slidesContainer.children(),this.stripWidth=this.$strip.outerWidth()/2,this.currentIndex||(this.currentIndex=this.firstIndex),this.transitionInProgress=!1,this.showSlide(this.currentIndex,!0,!1),this.startAutoplay()},t.prototype.resizeSlides=function(){var t;return t=this.$strip.outerHeight(),this.$slides.each((function(e,n){var i,r,o,s;return o=(r=(i=$(n)).find(".js-lazy-image")).data("aspect"),s=Math.floor(t*o),r.css({width:s+"px",height:t+"px"}),i.data("width",s)}))},t.prototype.prependClones=function(){var t,e,n,i;for(i=this.$strip.outerWidth()/2-this.$slides.first().data("width")/2+1e3,e=-1,n=[];i>0;)t=this.$slides.eq(e).find("img").addClass("lazyload lazypreload").end().clone(!0).addClass("-clone"),this.$slidesContainer.prepend(t),this.firstIndex+=1,this.lastIndex+=1,i-=t.data("width")+this.margin,n.push(e-=1);return n},t.prototype.appendClones=function(){var t,e,n,i;for(i=this.$strip.outerWidth()/2-this.$slides.last().data("width")/2+1e3,e=0,n=[];i>0;)t=this.$slides.eq(e).find("img").addClass("lazyload lazypreload").end().clone(!0).addClass("-clone"),this.$slidesContainer.append(t),i-=t.data("width")+this.margin,n.push(e+=1);return n},t.prototype.positionControls=function(){var t,e,n;return t=this.$strip.offset().left,e=this.$viewportContainer.offset().left,n=this.$viewportContainer.outerWidth(),this.$controlsContainer.css({width:n+"px",left:"-"+(t-e)+"px"})},t.prototype.bindEvents=function(){var t,e;return this.$strip.on("click",".js-prev",(e=this,function(t){return t.stopPropagation(),e.prevSlide(!0)})),this.$strip.on("click",".js-next",function(t){return function(e){return e.stopPropagation(),t.nextSlide(!0)}}(this)),(t=new Hammer(this.$strip[0])).on("swipeleft",function(t){return function(){return t.nextSlide(!0)}}(this)),t.on("swiperight",function(t){return function(){return t.prevSlide(!0)}}(this))},t.prototype.nextSlide=function(t){if(null==t&&(t=!1),t)this.skipNextFrame=!0;else if(this.skipNextFrame)return void(this.skipNextFrame=!1);var e;if(!this.transitionInProgress)return this.currentIndex<this.lastIndex?this.showSlide(this.currentIndex+1,t):(this.disableSlideTransition(),this.$strip.addClass("-resetting"),this.showSlide(this.firstIndex-1,!0,!1),delay(13,(e=this,function(){return e.$strip.removeClass("-resetting"),e.currentIndex=e.firstIndex,e.showSlide(e.currentIndex,t)})))},t.prototype.prevSlide=function(t){if(null==t&&(t=!1),t)this.skipNextFrame=!0;else if(this.skipNextFrame)return void(this.skipNextFrame=!1);var e;if(!this.transitionInProgress)return this.currentIndex>this.firstIndex?this.showSlide(this.currentIndex-1,t):(this.disableSlideTransition(),this.$strip.addClass("-resetting"),this.showSlide(this.lastIndex+1,!0,!1),delay(13,(e=this,function(){return e.$strip.removeClass("-resetting"),e.currentIndex=e.lastIndex,e.showSlide(e.currentIndex,t)})))},t.prototype.showSlide=function(t,e,n){var i,r,o,s,a,l;if(null==n&&(n=!0),r=(i=this.$slidesWithClones.eq(t)).find(".js-lazy-image"),!this.options.preloadNextSlide||r.hasClass("is-loaded")||e){if(this.currentIndex=t,l=this.stripWidth,t>0)for(o=s=0,a=t-1;0<=a?s<=a:s>=a;o=0<=a?++s:--s)l-=this.$slidesWithClones.eq(o).data("width")+this.margin;return l-=i.data("width")/2,n&&this.enableSlideTransition(l),this.$slidesContainer.css("transform","translateX("+l+"px)"),this.$slidesWithClones.removeClass("-current").eq(t).addClass("-current")}},t.prototype.enableSlideTransition=function(t){var e,n,i;return e=this.$slidesContainer.getTransform().translateX,n=Math.abs(e-t)/this.relativeTransitionSpeed,this.transitionInProgress=!0,delay(n,(i=this,function(){return i.transitionInProgress=!1})),this.$slidesContainer.css("transition","transform "+n+"ms "+this.options.transitionEase+" 1ms")},t.prototype.disableSlideTransition=function(){return this.$slidesContainer.css("transition","none")},t.prototype.startAutoplay=function(){var t;if(this.isAutoplayEnabled)return this.interval=Helpers.requestInterval(this.options.delay,(t=this,function(){return t.nextSlide()}))},t.prototype.stopAutoplay=function(){return Helpers.clearRequestTimeout(this.interval)},t}()}.call(this),function(){window.Video=function(){function t(t,e){null==e&&(e={}),this.$section=$(t),this.sourceUrl=this.$section.data("source-url"),this.isInline=this.$section.data("inline"),this.$placeholder=this.$section.find("[data-role=placeholder]"),this.$coverImg=this.$placeholder.find("img"),this.isPlaying=!1,this.bindEvents()}return t.prototype.bindEvents=function(){var t;return this.$section.on("click",(t=this,function(){if(!t.isPlaying)return $document.trigger("global:before-video-start"),t.isInline?t.startVideo():void 0})),$document.on("global:before-video-start",function(t){return function(){if(t.isPlaying)return t.stopVideo()}}(this))},t.prototype.startVideo=function(){return this.isPlaying=!0,this.$iframe=this.generateIframe(),this.$section.append(this.$iframe),this.$placeholder.addClass("is-hidden"),oneCSSAnimationEvent(this.$placeholder,"TransitionEnd",(t=this,function(){return t.$coverImg.hide()}));var t},t.prototype.stopVideo=function(){return this.$iframe.remove(),this.$coverImg.show(),this.$placeholder.removeClass("is-hidden"),this.isPlaying=!1},t.prototype.generateIframe=function(){return $("<iframe class=video>").attr("src",this.sourceUrl).attr("allowfullscreen",!0).attr("allow","autoplay; fullscreen; picture-in-picture; encrypted-media;")},t}()}.call(this),function(){window.CommonFeatures={init:function(){return this.initActiveMenu(),this.initAdminLink(),this.initEventTracking(),this.initPreview(),this.initLazyLoad(),this.initProtector(),this.initExternalLinks(),this.initLinksTarget(),this.initAnchors(),this.initForms(),this.initComments(),this.initCopyLinkButton(),this.initSharing(),this.initWidgets(),this.initOrders(),this.initInformers(),this.initMarketingInformer(),this.initComparisons(),this.initGalleries(),this.initBlog(),this.initCommentsMasonry(),this.initCover(),this.initSearch(),this.initSliders(),this.initStrips(),this.initMultiSliders(),this.initPictureSetSections(),this.initBackgrounds(),this.initQuestionsListSections(),this.initVideoSections(),this.initLocaleSwitch(),this.initFixedBackground()},initActiveMenu:function(){return ActiveMenu.init()},initAdminLink:function(){return AdminLink.init()},initEventTracking:function(){return EventTracking.init()},initPreview:function(){return Preview.init()},initLazyLoad:function(){return LazyLoader.init()},initProtector:function(){return Protector.init(".js-lazy-image, img, .js-slider, .js-gallery .link")},initExternalLinks:function(){return ExternalLinks.init(".js-page a")},initLinksTarget:function(){return LinksTarget.init()},initAnchors:function(){return Anchors.init(".js-page a[href*='#']")},initForms:function(){return Form.init(".js-form")},initComments:function(){return Modals.init(".js-comment-modal-trigger")},initOrders:function(){return Modals.init(".js-order-trigger")},initCopyLinkButton:function(){return CopyLinkButton.init()},initSharing:function(){return Sharing.init({useNativeSharing:!1})},initWidgets:function(){var t,e,n,i,r;if((t=$(".js-widget")).length){for(i=[],e=0,n=t.length;e<n;e++)r=t[e],i.push(function(t){var e;return e=$(t),$.get(e.data("url"),(function(t){return e.html(t),$window.trigger("resize")}))}(r));return i}},initInformers:function(){var t,e,n,i,r;if((t=$(".js-informer")).length){for(r=[],e=0,i=t.length;e<i;e++)n=t[e],r.push(new Informer($(n)));return r}},initMarketingInformer:function(){return MarketingInformer.init()},initComparisons:function(){var t,e,n,i,r;if((t=$(".comparison-section")).length){for(r=[],n=0,i=t.length;n<i;n++)e=t[n],r.push(new Comparison($(e)));return r}},initCommentsMasonry:function(){var t;if((t=$(".js-comments-masonry")).length)return t.masonry({itemSelector:".comment"})},initGalleries:function(){return Galleries.init()},initBlog:function(){var t;if((t=$(".js-blog-masonry")).length)return t.masonry({itemSelector:".js-post",columnWidth:".js-post:not(.-hidden)",percentPosition:!0}),$document.on("search:update",(function(){return t.masonry("layout")}))},initCover:function(){return Cover.init()},initSearch:function(){return Search.init()},initSliders:function(){var t,e,n,i,r,o;if((e=$(".js-slider")).length){for(r=[],n=0,i=e.length;n<i;n++)o=e[n],t=$(o),r.push(new Slider(t,{mode:t.data("mode"),shuffle:t.data("shuffle"),delay:t.data("delay")}));return r}},initMultiSliders:function(){var t,e,n,i,r,o;if((e=$(".js-multi-slider")).length){for(o=[],n=0,i=e.length;n<i;n++)r=e[n],t=$(r),o.push(new MultiSlider(t,{mainGroupDelay:t.data("main-group-delay"),extraGroupDelay:t.data("extra-group-delay"),mainGroupBetween:t.data("main-group-between"),extraGroupBetween:t.data("extra-group-between")}));return o}},initStrips:function(){var t,e,n,i,r,o;if((e=$(".js-strip")).length){for(r=[],n=0,i=e.length;n<i;n++)o=e[n],t=$(o),r.push(new Strip(t,{shuffle:t.data("shuffle"),delay:t.data("delay"),viewportContainer:t.parents(".sections-container").first()}));return r}},initPictureSetSections:function(){return this.initPictureSetMasonrySections(),this.initPictureSetStoryboardSections(),this.initPictureSetLineupSections(),this.initPictureSetHorizontalSections()},initPictureSetMasonrySections:function(){var t,e,n,i,r,o;if((e=$(".js-picture-set-section-masonry")).length){for(r=[],n=0,i=e.length;n<i;n++)o=e[n],t=$(o),r.push(t.masonry({itemSelector:".piece"}));return r}},initPictureSetStoryboardSections:function(){var t,e,n,i,r,o;if((e=$(".js-picture-set-section-storyboard")).length){for(r=[],n=0,i=e.length;n<i;n++)o=e[n],t=$(o),r.push(new Storyboard(t,{columns:t.data("columns"),pad:t.data("pad")}));return r}},initPictureSetLineupSections:function(){var t;if((t=$(".js-picture-set-section-lineup")).length)return $window.on("resize",(function(){var e,n,i,r,o,s;for(o=[],i=0,r=t.length;i<r;i++)s=t[i],e=$(s),n=e.outerWidth(),o.push(e.find(".lazy-image").each((function(t,e){var i,r;if((r=(i=$(e)).data("aspect"))<1)return i.css("max-width",n*r)})));return o})),$window.trigger("resize")},initPictureSetHorizontalSections:function(){var t,e,n,i,r,o;if((e=$(".js-picture-set-section-horizontal")).length){for(r=[],n=0,i=e.length;n<i;n++)o=e[n],t=$(o),r.push(new PictureSetHorizontal(t));return r}},initBackgrounds:function(){return window.onYouTubeIframeAPIReady=function(){return $(".js-background-video.-youtube").each((function(t,e){return new Backgrounds.Youtube($(e))}))},$(".js-background-video.-vimeo").each((function(t,e){return new Backgrounds.Vimeo($(e))}))},initQuestionsListSections:function(){var t,e,n,i,r,o;if((e=$(".js-questions-list-section")).length){for(r=[],n=0,i=e.length;n<i;n++)o=e[n],t=$(o),r.push(QuestionsList.init(t));return r}},initVideoSections:function(){var t,e,n,i,r,o;if((e=$(".js-video-section")).length){for(r=[],n=0,i=e.length;n<i;n++)o=e[n],t=$(o),r.push(new Video(t));return r}},initLocaleSwitch:function(){var t;return(t=$(".js-locale-switch")).on("click",(function(){return t.toggleClass("-open")})),$document.on("click",(function(e){if(0===$(e.target).closest(".js-locale-switch").length&&t.hasClass("-open"))return t.toggleClass("-open")}))},initFixedBackground:function(){if(!(/Mac/.test(navigator.platform)&&navigator.maxTouchPoints>1||/iPhone|iPad|iPod/i.test(navigator.platform)))return $("body").addClass("-fixed-backgrounds-enabled")}}}.call(this),function(){window.Listings={init:function(t){var e;return null==t&&(t={}),e={animate:!1},this.options=$.extend({},e,t),this.initListing()},initListing:function(){var t,e;if((t=$(".js-listing")).length)return"original"===t.data("format")&&t.masonry({itemSelector:".js-listing-item"}),this.options.animate&&this.animateCollection(t.children()),$(".js-listing-next").length?t.infiniteScroll({path:".js-listing-next",append:".js-listing-item",status:".js-status",history:!1,scrollThreshold:1e3,prefill:!0}).on("append.infiniteScroll",(e=this,function(n,i,r,o){if("original"===t.data("format")&&(t.data("masonry").appended(o),imagesLoaded(t).on("done",(function(){return t.data("masonry").layout()}))),e.options.animate)return e.animateCollection($(o))})):void 0},animateCollection:function(t){return Animator.animateSequential(t)}}}.call(this),function(){window.Albums={init:function(t){var e;return null==t&&(t={}),e={animate:!1},this.options=$.extend({},e,t),this.initAlbumLineup(),this.initAlbumGrid(),this.initAlbumMasonry(),this.initAlbumStoryboard(),this.initAlbumOriginals()},initAlbumLineup:function(){var t;if((t=$(".js-album-lineup")).length)return new Lineup(t),this.animateAlbum(t)},initAlbumGrid:function(){var t;if((t=$(".js-album-grid")).length)return this.animateAlbum(t)},initAlbumMasonry:function(){var t;if((t=$(".js-album-masonry")).length)return t.masonry({itemSelector:".piece"})},initAlbumStoryboard:function(){var t;if((t=$(".js-album-storyboard")).length)return new Storyboard(t,{columns:t.data("columns"),pad:t.data("pad")}),this.animateAlbum(t)},initAlbumOriginals:function(){var t;if((t=$(".js-album-originals")).length)return new Originals(t)},animateAlbum:function(t){if(this.options.animate)return Animator.animateSequential(t.children())}}}.call(this),function(){window.Theme||(window.Theme={}),Theme.Initializer={init:function(){return this.$header=$(".js-header"),this.initCommonFeatures(),this.initListings(),this.initAlbums(),this.initBackToTop(),this.initLazyLoad()},initCommonFeatures:function(){return CommonFeatures.init()},initListings:function(){return Listings.init({animate:!0})},initAlbums:function(){return Albums.init({animate:!0})},initBackToTop:function(){return BackToTop.init(".js-back-to-top")},initLazyLoad:function(){return $document.trigger("initLazyLoad")},scrollOffset:function(){return this.$header.outerHeight()+($(".js-informer.is-visible").outerHeight()||0)}},$((function(){return Theme.Initializer.init()}))}.call(this);