1!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=rt.type(t);return"function"!==n&&!rt.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function i(t,e,n){if(rt.isFunction(e))return rt.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return rt.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(mt.test(e))return rt.filter(e,t,n);e=rt.filter(e,t)}return rt.grep(t,function(t){return J.call(e,t)>-1!==n})}function o(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function r(t){var e={};return rt.each(t.match(xt)||[],function(t,n){e[n]=!0}),e}function s(){G.removeEventListener("DOMContentLoaded",s),t.removeEventListener("load",s),rt.ready()}function a(){this.expando=rt.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)?rt.parseJSON(n):n)}catch(t){}Et.set(t,e,n)}else n=void 0;return n}function u(t,e,n,i){var o,r=1,s=20,a=i?function(){return i.cur()}:function(){return rt.css(t,e,"")},l=a(),u=n&&n[3]||(rt.cssNumber[e]?"":"px"),c=(rt.cssNumber[e]||"px"!==u&&+l)&&At.exec(rt.css(t,e));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{c/=r=r||".5",rt.style(t,e,c+u)}while(r!==(r=a()/l)&&1!==r&&--s)}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=o)),o}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&&rt.nodeName(t,e)?rt.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,o){for(var r,s,a,l,u,h,f=e.createDocumentFragment(),p=[],m=0,g=t.length;m<g;m++)if((r=t[m])||0===r)if("object"===rt.type(r))rt.merge(p,r.nodeType?[r]:r);else if(Ot.test(r)){for(s=s||f.appendChild(e.createElement("div")),a=(jt.exec(r)||["",""])[1].toLowerCase(),l=Dt[a]||Dt._default,s.innerHTML=l[1]+rt.htmlPrefilter(r)+l[2],h=l[0];h--;)s=s.lastChild;rt.merge(p,s.childNodes),(s=f.firstChild).textContent=""}else p.push(e.createTextNode(r));for(f.textContent="",m=0;r=p[m++];)if(i&&rt.inArray(r,i)>-1)o&&o.push(r);else if(u=rt.contains(r.ownerDocument,r),s=c(f.appendChild(r),"script"),u&&d(s),n)for(h=0;r=s[h++];)Lt.test(r.type||"")&&n.push(r);return f}function f(){return!0}function p(){return!1}function m(){try{return G.activeElement}catch(t){}}function g(t,e,n,i,o,r){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],r);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=p;else if(!o)return t;return 1===r&&(s=o,o=function(t){return rt().off(t),s.apply(this,arguments)},o.guid=s.guid||(s.guid=rt.guid++)),t.each(function(){rt.event.add(this,e,o,i,n)})}function v(t,e){return rt.nodeName(t,"table")&&rt.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 w(t){var e=Ut.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function b(t,e){var n,i,o,r,s,a,l,u;if(1===e.nodeType){if(Tt.hasData(t)&&(r=Tt.access(t),s=Tt.set(e,r),u=r.events))for(o in delete s.handle,s.events={},u)for(n=0,i=u[o].length;n<i;n++)rt.event.add(e,o,u[o][n]);Et.hasData(t)&&(a=Et.access(t),l=rt.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 C(t,e,n,i){e=Q.apply([],e);var o,r,s,a,l,u,d=0,f=t.length,p=f-1,m=e[0],g=rt.isFunction(m);if(g||f>1&&"string"==typeof m&&!it.checkClone&&Bt.test(m))return t.each(function(o){var r=t.eq(o);
vendor: 4,022 bytes, line 1
1g&&(e[0]=m.call(this,o,r.html())),C(r,e,n,i)});if(f&&(r=(o=h(e,t[0].ownerDocument,!1,t,i)).firstChild,1===o.childNodes.length&&(o=r),r||i)){for(a=(s=rt.map(c(o,"script"),y)).length;d<f;d++)l=o,d!==p&&(l=rt.clone(l,!0,!0),a&&rt.merge(s,c(l,"script"))),n.call(t[d],l,d);if(a)for(u=s[s.length-1].ownerDocument,rt.map(s,w),d=0;d<a;d++)l=s[d],Lt.test(l.type||"")&&!Tt.access(l,"globalEval")&&rt.contains(u,l)&&(l.src?rt._evalUrl&&rt._evalUrl(l.src):rt.globalEval(l.textContent.replace(Vt,"")))}return t}function S(t,e,n){for(var i,o=e?rt.filter(e,t):t,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||rt.cleanData(c(i)),i.parentNode&&(n&&rt.contains(i.ownerDocument,i)&&d(c(i,"script")),i.parentNode.removeChild(i));return t}function T(t,e){var n=rt(e.createElement(t)).appendTo(e.body),i=rt.css(n[0],"display");return n.detach(),i}function E(t){var e=G,n=Yt[t];return n||("none"!==(n=T(t,e))&&n||((e=(Xt=(Xt||rt("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),n=T(t,e),Xt.detach()),Yt[t]=n),n}function k(t,e,n){var i,o,r,s,a=t.style;return""!==(s=(n=n||Qt(t))?n.getPropertyValue(e)||n[e]:void 0)&&void 0!==s||rt.contains(t.ownerDocument,t)||(s=rt.style(t,e)),n&&!it.pixelMarginRight()&&Zt.test(s)&&Gt.test(e)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r),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 oe)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=ie.length;n--;)if((t=ie[n]+e)in oe)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,o){for(var r=n===(i?"border":"content")?4:"width"===e?1:0,s=0;r<4;r+=2)"margin"===n&&(s+=rt.css(t,n+_t[r],!0,o)),i?("content"===n&&(s-=rt.css(t,"padding"+_t[r],!0,o)),"margin"!==n&&(s-=rt.css(t,"border"+_t[r]+"Width",!0,o))):(s+=rt.css(t,"padding"+_t[r],!0,o),"padding"!==n&&(s+=rt.css(t,"border"+_t[r]+"Width",!0,o)));return s}function z(t,e,n){var i=!0,o="width"===e?t.offsetWidth:t.offsetHeight,r=Qt(t),s="border-box"===rt.css(t,"boxSizing",!1,r);if(o<=0||null==o){if(((o=k(t,e,r))<0||null==o)&&(o=t.style[e]),Zt.test(o))return o;i=s&&(it.boxSizingReliable()||o===t.style[e]),o=parseFloat(o)||0}return o+_(t,e,n||(s?"border":"content"),i,r)+"px"}function P(t,e){for(var n,i,o,r=[],s=0,a=t.length;s<a;s++)(i=t[s]).style&&(r[s]=Tt.get(i,"olddisplay"),n=i.style.display,e?(r[s]||"none"!==n||(i.style.display=""),""===i.style.display&&zt(i)&&(r[s]=Tt.access(i,"olddisplay",E(i.nodeName)))):(o=zt(i),"none"===n&&o||Tt.set(i,"olddisplay",o?n:rt.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?r[s]||"":"none"));return t}function j(t,e,n,i,o){return new j.prototype.init(t,e,n,i,o)}function L(){return t.setTimeout(function(){re=void 0}),re=rt.now()}function D(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)o["margin"+(n=_t[i])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function F(t,e,n){for(var i,o=(N.tweeners[e]||[]).concat(N.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,e,t))return i}function M(t,e,n){var i,o,r,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=rt._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--,rt.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=rt.css(t,"display"))?Tt.get(t,"olddisplay")||E(t.nodeName):u)&&"none"===rt.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(o=e[i],ae.exec(o)){if(delete e[i],r=r||"toggle"===o,o===(f?"hide":"show")){if("show"!==o||
1!p||void 0===p[i])continue;f=!0}d[i]=p&&p[i]||rt.style(t,i)}else u=void 0;if(rt.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",{}),r&&(p.hidden=!f),f?rt(t).show():c.done(function(){rt(t).hide()}),c.done(function(){var e;for(e in Tt.remove(t,"fxshow"),d)rt.style(t,e,d[e])}),d)s=F(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 O(t,e){var n,i,o,r,s;for(n in t)if(o=e[i=rt.camelCase(n)],r=t[n],rt.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(s=rt.cssHooks[i])&&"expand"in s)for(n in r=s.expand(r),delete t[i],r)n in t||(t[n]=r[n],e[n]=o);else e[i]=o}function N(t,e,n){var i,o,r=0,s=N.prefilters.length,a=rt.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=re||L(),n=Math.max(0,u.startTime+u.duration-e),i=1-(n/u.duration||0),r=0,s=u.tweens.length;r<s;r++)u.tweens[r].run(i);return a.notifyWith(t,[u,i,n]),i<1&&s?n:(a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:rt.extend({},e),opts:rt.extend(!0,{specialEasing:{},easing:rt.easing._default},n),originalProperties:e,originalOptions:n,startTime:re||L(),duration:n.duration,tweens:[],createTween:function(e,n){var i=rt.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(o)return this;for(o=!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(O(c,u.opts.specialEasing);r<s;r++)if(i=N.prefilters[r].call(u,t,c,u.opts))return rt.isFunction(i.stop)&&(rt._queueHooks(u.elem,u.opts.queue).stop=rt.proxy(i.stop,i)),i;return rt.map(c,F,u),rt.isFunction(u.opts.start)&&u.opts.start.call(t,u),rt.fx.timer(rt.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,o=0,r=e.toLowerCase().match(xt)||[];if(rt.isFunction(n))for(;i=r[o++];)"+"===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 o(a){var l;return r[a]=!0,rt.each(t[a]||[],function(t,a){var u=a(e,n,i);return"string"!=typeof u||s||r[u]?s?!(l=u):void 0:(e.dataTypes.unshift(u),o(u),!1)}),l}var r={},s=t===$e;return o(e.dataTypes[0])||!r["*"]&&o("*")}function W(t,e){var n,i,o=rt.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i||(i={}))[n]=e[n]);return i&&rt.extend(!0,t,i),t}function B(t,e,n){for(var i,o,r,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}s||(s=o)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}function U(t,e,n,i){var o,r,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(r=c.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=u[l+" "+r]||u["* "+r]))for(o in u)if((a=o.split(" "))[1]===r&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[o]:!0!==u[o]&&(r=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 "+r}}}return{state:"success",data:e}}function V(t,e,n,i){var o;if(rt.isArray(e))rt.each(e,function(e,o){n||ze.test(t)?i(t,o):V(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,n,i)});else if(n||"object"!==rt.type(e))i(t,e);else for(o in e)V(t+"["+o+"]",e[o],n,i)}function X(t){return rt.isWindow(t)?t:9===t.nodeType&&t.defaultView}var Y=[],G=t.document,Z=Y.slice,Q=Y.concat,K=Y.push,J=Y.indexOf,tt={},et=tt.toString,nt=tt.hasOwnProperty,it={},ot="2.2.4",rt=function(t,e){return new rt.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()};rt.fn=rt.prototype={jquery:ot,constructor:rt,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=rt.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return rt.each(this,t)},map:function(t){return this.pushStack(rt.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:Y.sort,splice:Y.splice},rt.extend=rt.fn.extend=function(){var t,e,n,i,o,r,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||rt.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&&(rt.isPlainObject(i)||(o=rt.isArray(i)))?(o?(o=!1,r=n&&rt.isArray(n)?n:[]):r=n&&rt.isPlainObject(n)?n:{},s[e]=rt.extend(u,r,i)):void 0!==i&&(s[e]=i));return s},rt.extend({expando:"jQuery"+(ot+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===rt.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!rt.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){var e;if("object"!==rt.type(t)||t.nodeType||rt.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;
1for(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=rt.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,o=0;if(n(t))for(i=t.length;o<i&&!1!==e.call(t[o],o,t[o]);o++);else for(o in t)if(!1===e.call(t[o],o,t[o]))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))?rt.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,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,r=t.length,s=!n;o<r;o++)!e(t[o],o)!==s&&i.push(t[o]);return i},map:function(t,e,i){var o,r,s=0,a=[];if(n(t))for(o=t.length;s<o;s++)null!=(r=e(t[s],s,i))&&a.push(r);else for(s in t)null!=(r=e(t[s],s,i))&&a.push(r);return Q.apply([],a)},guid:1,proxy:function(t,e){var n,i,o;if("string"==typeof e&&(n=t[e],e=t,t=n),rt.isFunction(t))return i=Z.call(arguments,2),o=function(){return t.apply(e||this,i.concat(Z.call(arguments)))},o.guid=t.guid=t.guid||rt.guid++,o},now:Date.now,support:it}),"function"==typeof Symbol&&(rt.fn[Symbol.iterator]=Y[Symbol.iterator]),rt.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 o,r,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,L)){if(11!==m&&(u=vt.exec(t)))if(o=u[1]){if(9===m){if(!(s=e.getElementById(o)))return n;if(s.id===o)return n.push(s),n}else if(p&&(s=p.getElementById(o))&&O(e,s)&&s.id===o)return n.push(s),n}else{if(u[2])return K.apply(n,e.getElementsByTagName(t)),n;if((o=u[3])&&x.getElementsByClassName&&e.getElementsByClassName)return K.apply(n,e.getElementsByClassName(o)),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(wt,"\\$&"):e.setAttribute("id",a=N),r=(d=E(t)).length,l=ht.test(a)?"#"+a:"[id='"+a+"']";r--;)d[r]=l+" "+h(d[r]);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===N&&e.removeAttribute("id")}}}return $(t.replace(at,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>C.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[N]=!0,t}function o(t){var e=P.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function r(t,e){for(var n=t.split("|"),i=n.length;i--;)C.attrHandle[n[i]]=e}function s(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||X)-(~t.sourceIndex||X);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 o,r=t([],n.length,e),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))})})}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,o=n&&"parentNode"===i,r=H++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||o)return t(e,n,r)}:function(e,n,s){var a,l,u,c=[q,r];if(s){for(;e=e[i];)if((1===e.nodeType||o)&&t(e,n,s))return!0}else for(;e=e[i];)if(1===e.nodeType||o){if((a=(l=(u=e[N]||(e[N]={}))[e.uniqueID]||(u[e.uniqueID]={}))[i])&&a[0]===q&&a[1]===r)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 o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function m(t,n,i){for(var o=0,r=n.length;o<r;o++)e(t,n[o],i);return i}function g(t,e,n,i,o){for(var r,s=[],a=0,l=t.length,u=null!=e;a<l;a++)(r=t[a])&&(n&&!n(r,i,o)||(s.push(r),u&&e.push(a)));return s}function v(t,e,n,o,r,s){return o&&!o[N]&&(o=v(o)),r&&!r[N]&&(r=v(r,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),w=n?r||(i?t:p||o)?[]:s:y;if(n&&n(y,w,a,l),o)for(u=g(w,f),o(u,[],a,l),c=u.length;c--;)(d=u[c])&&(w[f[c]]=!(y[f[c]]=d));if(i){if(r||t){if(r){for(u=[],c=w.length;c--;)(d=w[c])&&u.push(y[c]=d);r(null,w=[],u,l)}for(c=w.length;c--;)(d=w[c])&&(u=r?tt(i,d):h[c])>-1&&(i[u]=!(s[u]=d))}}else w=g(w===s?w.splice(p,w.length):w),r?r(null,s,w,l):K.apply(s,w)})}function y(t){for(var e,n,i,o=t.length,r=C.relative[t[0].type],s=r||C.relative[" "],a=r?1:0,l=f(function(t){return t===e},s,!0),u=f(function(t){return tt(e,t)>-1}
vendor: 12,051 bytes, line 1
1,s,!0),c=[function(t,n,i){var o=!r&&(i||n!==I)||((e=n).nodeType?l(t,n,i):u(t,n,i));return e=null,o}];a<o;a++)if(n=C.relative[t[a].type])c=[f(p(c),n)];else{if((n=C.filter[t[a].type].apply(null,t[a].matches))[N]){for(i=++a;i<o&&!C.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<o&&y(t=t.slice(i)),i<o&&h(t))}c.push(n)}return p(c)}function w(t,n){var o=n.length>0,r=t.length>0,s=function(i,s,a,l,u){var c,d,h,f=0,p="0",m=i&&[],v=[],y=I,w=i||r&&C.find.TAG("*",u),b=q+=null==y?1:Math.random()||.1,x=w.length;for(u&&(I=s===P||s||u);p!==x&&null!=(c=w[p]);p++){if(r&&c){for(d=0,s||c.ownerDocument===P||(z(c),a=!L);h=t[d++];)if(h(c,s||P,a)){l.push(c);break}u&&(q=b)}o&&((c=!h&&c)&&f--,i&&m.push(c))}if(f+=p,o&&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=b,I=y),m};return o?i(s):s}var b,x,C,S,T,E,k,$,I,A,_,z,P,j,L,D,F,M,O,N="sizzle"+1*new Date,R=t.document,q=0,H=0,W=n(),B=n(),U=n(),V=function(t,e){return t===e&&(_=!0),0},X=1<<31,Y={}.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])+",ot="\\["+nt+"*("+it+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+nt+"*\\]",rt=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ot+")*)|.*)\\)|)",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(rt),ht=new RegExp("^"+it+"$"),ft={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it+"|[*])"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+rt),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=/[+~]/,wt=/'|\\/g,bt=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)},Ct=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(b 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?(j=(P=i).documentElement,L=!T(P),(n=P.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ct,!1):n.attachEvent&&n.attachEvent("onunload",Ct)),x.attributes=o(function(t){return t.className="i",!t.getAttribute("className")}),x.getElementsByTagName=o(function(t){return t.appendChild(P.createComment("")),!t.getElementsByTagName("*").length}),x.getElementsByClassName=gt.test(P.getElementsByClassName),x.getById=o(function(t){return j.appendChild(t).id=N,!P.getElementsByName||!P.getElementsByName(N).length}),x.getById?(C.find.ID=function(t,e){if(void 0!==e.getElementById&&L){var n=e.getElementById(t);return n?[n]:[]}},C.filter.ID=function(t){var e=t.replace(bt,xt);return function(t){return t.getAttribute("id")===e}}):(delete C.find.ID,C.filter.ID=function(t){var e=t.replace(bt,xt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),C.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=[],o=0,r=e.getElementsByTagName(t);if("*"===t){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},C.find.CLASS=x.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&L)return e.getElementsByClassName(t)},F=[],D=[],(x.qsa=gt.test(P.querySelectorAll))&&(o(function(t){j.appendChild(t).innerHTML="<a id='"+N+"'></a><select id='"+N+"-\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~="+N+"-]").length||D.push("~="),t.querySelectorAll(":checked").length||D.push(":checked"),t.querySelectorAll("a#"+N+"+*").length||D.push(".#.+[+~]")}),o(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(M=j.matches||j.webkitMatchesSelector||j.mozMatchesSelector||j.oMatchesSelector||j.msMatchesSelector))&&o(function(t){x.disconnectedMatch=M.call(t,"div"),M.call(t,"[s!='']:x"),F.push("!=",rt)}),D=D.length&&new RegExp(D.join("|")),F=F.length&&new RegExp(F.join("|")),e=gt.test(j.compareDocumentPosition),O=e||gt.test(j.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},V=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&&O(R,t)?-1:e===P||e.ownerDocument===R&&O(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,o=t.parentNode,r=e.parentNode,a=[t],l=[e];if(!o||!r)return t===P?-1:e===P?1:o?-1:r?1:A?tt(A,t)-tt(A,e):0;if(o===r)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&&L&&!U[n+" "]&&(!F||!F.test(n))&&(!D||!D.test(n)))try{var i=M.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),O(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==P&&z(t);var n=C.attrHandle[e.toLowerCase()],i=n&&Y.call(C.attrHandle,e.toLowerCase())?n(t,e,!L):void 0;return void 0!==i?i:x.attributes||!L?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,o=0;if(_=!x.detectDuplicates,A=!x.sortStable&&t.slice(0),t.sort(V),_){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)t.splice(n[i],1)}return A=null,t},S=e.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=S(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=S(e);return n},C=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(bt,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,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(bt,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(o){var r=e.attr(o,t);return null==r?"!="===n:!n||(r+="","="===n?r===i:"!="===n?r!==i:"^="===n?i&&0===r.indexOf(i):"*="===n?i&&r.indexOf(i)>-1:"$="===n?i&&r.slice(-i.length)===i:"~="===n?(" "+r.replace(st," ")+" ").indexOf(i)>-1:"|="===n&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,o){var r="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var u,c,d,h,f,p,m=r!==s?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,w=!1;if(g){if(r){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(w=(f=(u=(c=(d=(h=g)[N]||(h[N]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===q&&u[1])&&u[2],h=f&&g.childNodes[f];h=++f&&h&&h[m]||(w=f=0)||p.pop();)if(1===h.nodeType&&++w&&h===e){c[t]=[q,f,w];break}}else if(y&&(w=f=(u=(c=(d=(h=e)[N]||(h[N]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===q&&u[1]),!1===w)for(;(h=++f&&h&&h[m]||(w=f=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++w||(y&&((c=(d=h[N]||(h[N]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]=[q,w]),h!==e)););return(w-=o)===i||w%i===0&&w/i>=0}}},PSEUDO:function(t,n){var o,r=C.pseudos[t]||C.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return r[N]?r(n):r.length>1?(o=[t,t,"",n],C.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,o=r(t,n),s=o.length;s--;)t[i=tt(t,o[s])]=!(e[i]=o[s])}):function(t){return r(t,0,o)}):r}},pseudos:{not:i(function(t){var e=[],n=[],o=k(t.replace(at,"$1"));return o[N]?i(function(t,e,n,i){for(var r,s=o(t,null,i,[]),a=t.length;a--;)(r=s[a])&&(t[a]=!(e[a]=r))}):function(t,i,r){return e[0]=t,o(e,null,r,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(bt,xt),function(e){return(e.textContent||e.innerText||S(e)).indexOf(t)>-1}}),lang:i(function(t){return ht.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,xt).toLowerCase(),function(e){var n;do{if(n=L?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===j},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!C.pseudos.empty(t)}
1,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})}},C.pseudos.nth=C.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[b]=a(b);for(b in{submit:!0,reset:!0})C.pseudos[b]=l(b);return d.prototype=C.filters=C.pseudos,C.setFilters=new d,E=e.tokenize=function(t,n){var i,o,r,s,a,l,u,c=B[t+" "];if(c)return n?0:c.slice(0);for(a=t,l=[],u=C.preFilter;a;){for(s in i&&!(o=lt.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),i=!1,(o=ut.exec(a))&&(i=o.shift(),r.push({value:i,type:o[0].replace(at," ")}),a=a.slice(i.length)),C.filter)!(o=ft[s].exec(a))||u[s]&&!(o=u[s](o))||(i=o.shift(),r.push({value:i,type:s,matches:o}),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){ 2var n,i=[],o=[],r=U[t+" "];if(!r){for(e||(e=E(t)),n=e.length;n--;)(r=y(e[n]))[N]?i.push(r):o.push(r);(r=U(t,w(o,i))).selector=t}return r},$=e.select=function(t,e,n,i){var o,r,s,a,l,u="function"==typeof t&&t,d=!i&&E(t=u.selector||t);if(n=n||[],1===d.length){if((r=d[0]=d[0].slice(0)).length>2&&"ID"===(s=r[0]).type&&x.getById&&9===e.nodeType&&L&&C.relative[r[1].type]){if(!(e=(C.find.ID(s.matches[0].replace(bt,xt),e)||[])[0]))return n;u&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(o=ft.needsContext.test(t)?0:r.length;o--&&(s=r[o],!C.relative[a=s.type]);)if((l=C.find[a])&&(i=l(s.matches[0].replace(bt,xt),yt.test(r[0].type)&&c(e.parentNode)||e))){if(r.splice(o,1),!(t=i.length&&h(r)))return K.apply(n,i),n;break}}return(u||k(t,d))(i,e,!L,n,!e||yt.test(t)&&c(e.parentNode)||e),n},x.sortStable=N.split("").sort(V).join("")===N,x.detectDuplicates=!!_,z(),x.sortDetached=o(function(t){return 1&t.compareDocumentPosition(P.createElement("div"))}),o(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||r("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),x.attributes&&o(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||r("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),o(function(t){return null==t.getAttribute("disabled")})||r(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);rt.find=ct,rt.expr=ct.selectors,rt.expr[":"]=rt.expr.pseudos,rt.uniqueSort=rt.unique=ct.uniqueSort,rt.text=ct.getText,rt.isXMLDoc=ct.isXML,rt.contains=ct.contains;var dt=function(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&rt(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=rt.expr.match.needsContext,pt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,mt=/^.[^:#\[\.,]*$/;rt.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?rt.find.matchesSelector(i,t)?[i]:[]:rt.find.matches(t,rt.grep(e,function(t){return 1===t.nodeType}))},rt.fn.extend({find:function(t){var e,n=this.length,i=[],o=this;if("string"!=typeof t)return this.pushStack(rt(t).filter(function(){for(e=0;e<n;e++)if(rt.contains(o[e],this))return!0}));for(e=0;e<n;e++)rt.find(t,o[e],i);return(i=this.pushStack(n>1?rt.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)?rt(t):t||[],!1).length}});var gt,vt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(rt.fn.init=function(t,e,n){var i,o;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 rt?e[0]:e,rt.merge(this,rt.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:G,!0)),pt.test(i[1])&&rt.isPlainObject(e))for(i in e)rt.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(o=G.getElementById(i[2]))&&o.parentNode&&(this.length=1,this[0]=o),this.context=G,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):rt.isFunction(t)?void 0!==n.ready?n.ready(t):t(rt):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),rt.makeArray(t,this))}).prototype=rt.fn,gt=rt(G);var yt=/^(?:parents|prev(?:Until|All))/,wt={children:!0,contents:!0,next:!0,prev:!0};rt.fn.extend({has:function(t){var e=rt(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(rt.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,i=0,o=this.length,r=[],s=ft.test(t)||"string"!=typeof t?rt(t,e||this.context):0;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>
vendor: 4,556 bytes, line 2
2-1:1===n.nodeType&&rt.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?rt.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?J.call(rt(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(rt.uniqueSort(rt.merge(this.get(),rt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),rt.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 o(t,"nextSibling")},prev:function(t){return o(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||rt.merge([],t.childNodes)}},function(t,e){rt.fn[t]=function(n,i){var o=rt.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=rt.filter(i,o)),this.length>1&&(wt[t]||rt.uniqueSort(o),yt.test(t)&&o.reverse()),this.pushStack(o)}});var bt,xt=/\S+/g;rt.Callbacks=function(t){t="string"==typeof t?r(t):rt.extend({},t);var e,n,i,o,s=[],a=[],l=-1,u=function(){for(o=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,o&&(s=n?[]:"")},c={add:function(){return s&&(n&&!e&&(l=s.length-1,a.push(n)),function e(n){rt.each(n,function(n,i){rt.isFunction(i)?t.unique&&c.has(i)||s.push(i):i&&i.length&&"string"!==rt.type(i)&&e(i)})}(arguments),n&&!e&&u()),this},remove:function(){return rt.each(arguments,function(t,e){for(var n;(n=rt.inArray(e,s,n))>-1;)s.splice(n,1),n<=l&&l--}),this},has:function(t){return t?rt.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return o=a=[],s=n="",this},disabled:function(){return!s},lock:function(){return o=a=[],n||(s=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(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},rt.extend({Deferred:function(t){var e=[["resolve","done",rt.Callbacks("once memory"),"resolved"],["reject","fail",rt.Callbacks("once memory"),"rejected"],["notify","progress",rt.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var t=arguments;return rt.Deferred(function(n){rt.each(e,function(e,r){var s=rt.isFunction(t[e])&&t[e];o[r[1]](function(){var t=s&&s.apply(this,arguments);t&&rt.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this===i?n.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?rt.extend(t,i):i}},o={};return i.pipe=i.then,rt.each(e,function(t,r){var s=r[2],a=r[3];i[r[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),o[r[0]]=function(){return o[r[0]+"With"](this===o?i:this,arguments),this},o[r[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e,n,i,o=0,r=Z.call(arguments),s=r.length,a=1!==s||t&&rt.isFunction(t.promise)?s:0,l=1===a?t:rt.Deferred(),u=function(t,n,i){return function(o){n[t]=this,i[t]=arguments.length>1?Z.call(arguments):o,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);o<s;o++)r[o]&&rt.isFunction(r[o].promise)?r[o].promise().progress(u(o,n,e)).done(u(o,i,r)).fail(l.reject):--a;return a||l.resolveWith(i,r),l.promise()}}),rt.fn.ready=function(t){return rt.ready.promise().done(t),this},rt.extend({isReady:!1,readyWait:1,holdReady:function(t){t?rt.readyWait++:rt.ready(!0)},ready:function(t){(!0===t?--rt.readyWait:rt.isReady)||(rt.isReady=!0,!0!==t&&--rt.readyWait>0||(bt.resolveWith(G,[rt]),rt.fn.triggerHandler&&(rt(G).triggerHandler("ready"),rt(G).off("ready"))))}}),rt.ready.promise=function(e){return bt||(bt=rt.Deferred(),"complete"===G.readyState||"loading"!==G.readyState&&!G.documentElement.doScroll?t.setTimeout(rt.ready):(G.addEventListener("DOMContentLoaded",s),t.addEventListener("load",s))),bt.promise(e)},rt.ready.promise();var Ct=function(t,e,n,i,o,r,s){var a=0,l=t.length,u=null==n;
2if("object"===rt.type(n))for(a in o=!0,n)Ct(t,e,a,n[a],!0,r,s);else if(void 0!==i&&(o=!0,rt.isFunction(i)||(s=!0),u&&(s?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(rt(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return o?t:u?e.call(t):l?e(t[0],n):r},St=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(!St(t))return{};var e=t[this.expando];return e||(e={},St(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[e]=n;else for(i in e)o[i]=e[i];return o},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,rt.camelCase(e)):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i,o,r=t[this.expando];if(void 0!==r){if(void 0===e)this.register(t);else{rt.isArray(e)?i=e.concat(e.map(rt.camelCase)):(o=rt.camelCase(e),i=e in r?[e,o]:(i=o)in r?[i]:i.match(xt)||[]),n=i.length;for(;n--;)delete r[i[n]]}(void 0===e||rt.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!rt.isEmptyObject(e)}};var Tt=new a,Et=new a,kt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,$t=/[A-Z]/g;rt.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)}}),rt.fn.extend({data:function(t,e){var n,i,o,r=this[0],s=r&&r.attributes;if(void 0===t){if(this.length&&(o=Et.get(r),1===r.nodeType&&!Tt.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=rt.camelCase(i.slice(5)),l(r,i,o[i]));Tt.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each(function(){Et.set(this,t)}):Ct(this,function(e){var n,i;if(r&&void 0===e)return void 0!==(n=Et.get(r,t)||Et.get(r,t.replace($t,"-$&").toLowerCase()))?n:(i=rt.camelCase(t),void 0!==(n=Et.get(r,i))||void 0!==(n=l(r,i,void 0))?n:void 0);i=rt.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)})}}),rt.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Tt.get(t,e),n&&(!i||rt.isArray(n)?i=Tt.access(t,e,rt.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=rt.queue(t,e),i=n.length,o=n.shift(),r=rt._queueHooks(t,e),s=function(){rt.dequeue(t,e)};"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,s,r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Tt.get(t,n)||Tt.access(t,n,{empty:rt.Callbacks("once memory").add(function(){Tt.remove(t,[e+"queue",n])})})}}),rt.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?rt.queue(this[0],t):void 0===e?this:this.each(function(){var n=rt.queue(this,t,e);rt._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&rt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){rt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,o=rt.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=Tt.get(r[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.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"===rt.css(t,"display")||!rt.contains(t.ownerDocument,t)},Pt=/^(?:checkbox|radio)$/i,jt=/<([\w:-]+)/,Lt=/^$|\/(?: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 Ft,Mt,Ot=/<|&#?\w+;/;Ft=G.createDocumentFragment().appendChild(G.createElement("div")),(Mt=G.createElement("input")).setAttribute("type","radio"),Mt.setAttribute("checked","checked"),Mt.setAttribute("name","t"),Ft.appendChild(Mt),it.checkClone
vendor: 5,722 bytes, line 2
2=Ft.cloneNode(!0).cloneNode(!0).lastChild.checked,Ft.innerHTML="<textarea>x</textarea>",it.noCloneChecked=!!Ft.cloneNode(!0).lastChild.defaultValue;var Nt=/^key/,Rt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,qt=/^([^.]*)(?:\.(.+)|)/;rt.event={global:{},add:function(t,e,n,i,o){var r,s,a,l,u,c,d,h,f,p,m,g=Tt.get(t);if(g)for(n.handler&&(n=(r=n).handler,o=r.selector),n.guid||(n.guid=rt.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(e){return void 0!==rt&&rt.event.triggered!==e.type?rt.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=rt.event.special[f]||{},f=(o?d.delegateType:d.bindType)||f,d=rt.event.special[f]||{},c=rt.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&rt.expr.match.needsContext.test(o),namespace:p.join(".")},r),(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)),o?h.splice(h.delegateCount++,0,c):h.push(c),rt.event.global[f]=!0)},remove:function(t,e,n,i,o){var r,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=rt.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=h.length;r--;)c=h[r],!o&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(r,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)||rt.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)rt.event.remove(t,f+e[u],n,i,!0);rt.isEmptyObject(l)&&Tt.remove(t,"handle events")}},dispatch:function(t){t=rt.event.fix(t);var e,n,i,o,r,s=[],a=Z.call(arguments),l=(Tt.get(this,"events")||{})[t.type]||[],u=rt.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,t)){for(s=rt.event.handlers.call(this,t,l),e=0;(o=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(r.namespace)||(t.handleObj=r,t.data=r.data,void 0!==(i=((rt.event.special[r.origType]||{}).handle||r.handler).apply(o.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,o,r,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[o=(r=e[n]).selector+" "]&&(i[o]=r.needsContext?rt(o,this).index(l)>-1:rt.find(o,this,null,[l]).length),i[o]&&i.push(r);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,o,r=e.button;return null==t.pageX&&null!=e.clientX&&(i=(n=t.target.ownerDocument||G).documentElement,o=n.body,t.pageX=e.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)),t.which||void 0===r||(t.which=1&r?1:2&r?3:4&r?2:0),t}},fix:function(t){if(t[rt.expando])return t;var e,n,i,o=t.type,r=t,s=this.fixHooks[o];for(s||(this.fixHooks[o]=s=Rt.test(o)?this.mouseHooks:Nt.test(o)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,t=new rt.Event(r),e=i.length;e--;)t[n=i[e]]=r[n];return t.target||(t.target=G),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,r):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&&rt.nodeName(this,"input"))return this.click(),!1},_default:function(t){return rt.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},rt.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},rt.Event=function(t,e){if(!(this instanceof rt.Event))return new rt.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&&rt.extend(this,e),this.timeStamp=t&&t.timeStamp||rt.now(),this[rt.expando]=!0},rt.Event.prototype={constructor:rt.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()}}
vendor: 4,760 bytes, line 2
2,rt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){rt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,o=t.relatedTarget,r=t.handleObj;return o&&(o===i||rt.contains(i,o))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}}),rt.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,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,rt(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=p),this.each(function(){rt.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\/(.*)/,Vt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;rt.extend({htmlPrefilter:function(t){return t.replace(Ht,"<$1></$2>")},clone:function(t,e,n){var i,o,r,s,a=t.cloneNode(!0),l=rt.contains(t.ownerDocument,t);if(!(it.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||rt.isXMLDoc(t)))for(s=c(a),i=0,o=(r=c(t)).length;i<o;i++)x(r[i],s[i]);if(e)if(n)for(r=r||c(t),s=s||c(a),i=0,o=r.length;i<o;i++)b(r[i],s[i]);else b(t,a);return(s=c(a,"script")).length>0&&d(s,!l&&c(t,"script")),a},cleanData:function(t){for(var e,n,i,o=rt.event.special,r=0;void 0!==(n=t[r]);r++)if(St(n)){if(e=n[Tt.expando]){if(e.events)for(i in e.events)o[i]?rt.event.remove(n,i):rt.removeEvent(n,i,e.handle);n[Tt.expando]=void 0}n[Et.expando]&&(n[Et.expando]=void 0)}}}),rt.fn.extend({domManip:C,detach:function(t){return S(this,t,!0)},remove:function(t){return S(this,t)},text:function(t){return Ct(this,function(t){return void 0===t?rt.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 C(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||v(this,t).appendChild(t)})},prepend:function(){return C(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 C(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return C(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&&(rt.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 rt.clone(this,t,e)})},html:function(t){return Ct(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[(jt.exec(t)||["",""])[1].toLowerCase()]){t=rt.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(rt.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 C(this,arguments,function(e){var n=this.parentNode;rt.inArray(this,t)<0&&(rt.cleanData(c(this)),n&&n.replaceChild(e,this))},t)}}),rt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){rt.fn[t]=function(t){for(var n,i=[],o=rt(t),r=o.length-1,s=0;s<=r;s++)n=s===r?this:this.clone(!0),rt(o[s])[e](n),K.apply(i,n.get());return this.pushStack(i)}});var Xt,Yt={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 o,r,s={};for(r in e)s[r]=t.style[r],t.style[r]=e[r];for(r in o=n.apply(t,i||[]),e)t.style[r]=s[r];return o},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,r="2px"===e.marginLeft,i="4px"===e.width,a.style.marginRight="50%",o="4px"===e.marginRight,Jt.removeChild(s)}var n,i,o,r,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),rt.extend(it,{pixelPosition:function(){return e(),n}
2,boxSizingReliable:function(){return null==i&&e(),i},pixelMarginRight:function(){return null==i&&e(),o},reliableMarginLeft:function(){return null==i&&e(),r},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"],oe=G.createElement("div").style;rt.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 o,r,s,a=rt.camelCase(e),l=t.style;if(e=rt.cssProps[a]||(rt.cssProps[a]=I(a)||a),s=rt.cssHooks[e]||rt.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(t,!1,i))?o:l[e];"string"===(r=typeof n)&&(o=At.exec(n))&&o[1]&&(n=u(t,e,o),r="number"),null!=n&&n==n&&("number"===r&&(n+=o&&o[3]||(rt.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 o,r,s,a=rt.camelCase(e);return e=rt.cssProps[a]||(rt.cssProps[a]=I(a)||a),(s=rt.cssHooks[e]||rt.cssHooks[a])&&"get"in s&&(o=s.get(t,!0,n)),void 0===o&&(o=k(t,e,i)),"normal"===o&&e in ne&&(o=ne[e]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),rt.each(["height","width"],function(t,e){rt.cssHooks[e]={get:function(t,n,i){if(n)return te.test(rt.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 o,r=i&&Qt(t),s=i&&_(t,e,i,"border-box"===rt.css(t,"boxSizing",!1,r),r);return s&&(o=At.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=rt.css(t,e)),A(t,n,s)}}}),rt.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"}),rt.cssHooks.marginRight=$(it.reliableMarginRight,function(t,e){if(e)return Kt(t,{display:"inline-block"},k,[t,"marginRight"])}),rt.each({margin:"",padding:"",border:"Width"},function(t,e){rt.cssHooks[t+e]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[t+_t[i]+e]=r[i]||r[i-2]||r[0];return o}},Gt.test(t)||(rt.cssHooks[t+e].set=A)}),rt.fn.extend({css:function(t,e){return Ct(this,function(t,e,n){var i,o,r={},s=0;if(rt.isArray(e)){for(i=Qt(t),o=e.length;s<o;s++)r[e[s]]=rt.css(t,e[s],!1,i);return r}return void 0!==n?rt.style(t,e,n):rt.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)?rt(this).show():rt(this).hide()})}}),rt.Tween=j,j.prototype={constructor:j,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||rt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(rt.cssNumber[n]?"":"px")},cur:function(){var t=j.propHooks[this.prop];return t&&t.get?t.get(this):j.propHooks._default.get(this)},run:function(t){var e,n=j.propHooks[this.prop];return this.options.duration?this.pos=e=rt.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):j.propHooks._default.set(this),this}},j.prototype.init.prototype=j.prototype,j.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=rt.css(t.elem,t.prop,""))&&"auto"!==e?e:0}
vendor: 4,929 bytes, lines 2-3
2,set:function(t){rt.fx.step[t.prop]?rt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[rt.cssProps[t.prop]]&&!rt.cssHooks[t.prop]?t.elem[t.prop]=t.now:rt.style(t.elem,t.prop,t.now+t.unit)}}},j.propHooks.scrollTop=j.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},rt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},rt.fx=j.prototype.init,rt.fx.step={};var re,se,ae=/^(?:toggle|show|hide)$/,le=/queueHooks$/;rt.Animation=rt.extend(N,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return u(n.elem,t,At.exec(e),n),n}]},tweener:function(t,e){rt.isFunction(t)?(e=t,t=["*"]):t=t.match(xt);for(var n,i=0,o=t.length;i<o;i++)n=t[i],N.tweeners[n]=N.tweeners[n]||[],N.tweeners[n].unshift(e)},prefilters:[M],prefilter:function(t,e){e?N.prefilters.unshift(t):N.prefilters.push(t)}}),rt.speed=function(t,e,n){var i=t&&"object"==typeof t?rt.extend({},t):{complete:n||!n&&e||rt.isFunction(t)&&t,duration:t,easing:n&&e||e&&!rt.isFunction(e)&&e};return i.duration=rt.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in rt.fx.speeds?rt.fx.speeds[i.duration]:rt.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){rt.isFunction(i.old)&&i.old.call(this),i.queue&&rt.dequeue(this,i.queue)},i},rt.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 o=rt.isEmptyObject(t),r=rt.speed(e,n,i),s=function(){var e=N(this,rt.extend({},t),r);(o||Tt.get(this,"finish"))&&e.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.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,o=null!=t&&t+"queueHooks",r=rt.timers,s=Tt.get(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&le.test(o)&&i(s[o]);for(o=r.length;o--;)r[o].elem!==this||null!=t&&r[o].queue!==t||(r[o].anim.stop(n),e=!1,r.splice(o,1));!e&&n||rt.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"],o=n[t+"queueHooks"],r=rt.timers,s=i?i.length:0;for(n.finish=!0,rt.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),rt.each(["toggle","show","hide"],function(t,e){var n=rt.fn[e];rt.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(D(e,!0),t,i,o)}}),rt.each({slideDown:D("show"),slideUp:D("hide"),slideToggle:D("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){rt.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),rt.timers=[],rt.fx.tick=function(){var t,e=0,n=rt.timers;for(re=rt.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||rt.fx.stop(),re=void 0},rt.fx.timer=function(t){rt.timers.push(t),t()?rt.fx.start():rt.timers.pop()},rt.fx.interval=13,rt.fx.start=function(){se||(se=t.setInterval(rt.fx.tick,rt.fx.interval))},rt.fx.stop=function(){t.clearInterval(se),se=null},rt.fx.speeds={slow:600,fast:200,_default:400},rt.fn.delay=function(e,n){return e=rt.fx&&rt.fx.speeds[e]||e,n=n||"fx",this.queue(n,function(n,i){var o=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(o)}})},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=rt.expr.attrHandle;rt.fn.extend({attr:function(t,e){return Ct(this,rt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){rt.removeAttr(this,t)})}}),rt.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?rt.prop(t,e,n):(1===r&&rt.isXMLDoc(t)||(e=e.toLowerCase(),o=rt.attrHooks[e]||(rt.expr.match.bool.test(e)?ue:void 0)),void 0!==n?null===n?void rt.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(i=o.get(t,e))?i:null==(i=rt.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!it.radioValue&&"radio"===e&&rt.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i,o=0,r=e&&e.match(xt);if(r&&1===t.nodeType)for(;n=r[o++];)i=rt.propFix[n]||n,rt.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)}}),ue={set:function(t,e,n){ 3return!1===e?rt.removeAttr(t,n):t.setAttribute(n,n),n}},rt.each(rt.expr.match.bool.source.match(/\w+/g),function(t,e){var n=ce[e]||rt.find.attr;
3ce[e]=function(t,e,i){var o,r;return i||(r=ce[e],ce[e]=o,o=null!=n(t,e,i)?e.toLowerCase():null,ce[e]=r),o}});var de=/^(?:input|select|textarea|button)$/i,he=/^(?:a|area)$/i;rt.fn.extend({prop:function(t,e){return Ct(this,rt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[rt.propFix[t]||t]})}}),rt.extend({prop:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&rt.isXMLDoc(t)||(e=rt.propFix[e]||e,o=rt.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=rt.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||(rt.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)}}),rt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){rt.propFix[this.toLowerCase()]=this});var fe=/[\t\r\n\f]/g;rt.fn.extend({addClass:function(t){var e,n,i,o,r,s,a,l=0;if(rt.isFunction(t))return this.each(function(e){rt(this).addClass(t.call(this,e,R(this)))});if("string"==typeof t&&t)for(e=t.match(xt)||[];n=this[l++];)if(o=R(n),i=1===n.nodeType&&(" "+o+" ").replace(fe," ")){for(s=0;r=e[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(a=rt.trim(i))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,i,o,r,s,a,l=0;if(rt.isFunction(t))return this.each(function(e){rt(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(o=R(n),i=1===n.nodeType&&(" "+o+" ").replace(fe," ")){for(s=0;r=e[s++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");o!==(a=rt.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):rt.isFunction(t)?this.each(function(n){rt(this).toggleClass(t.call(this,n,R(this),e),e)}):this.each(function(){var e,i,o,r;if("string"===n)for(i=0,o=rt(this),r=t.match(xt)||[];e=r[i++];)o.hasClass(e)?o.removeClass(e):o.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;rt.fn.extend({val:function(t){var e,n,i,o=this[0];return arguments.length?(i=rt.isFunction(t),this.each(function(n){var o;1===this.nodeType&&(null==(o=i?t.call(this,n,rt(this).val()):t)?o="":"number"==typeof o?o+="":rt.isArray(o)&&(o=rt.map(o,function(t){return null==t?"":t+""})),(e=rt.valHooks[this.type]||rt.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))})):o?(e=rt.valHooks[o.type]||rt.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(pe,""):null==n?"":n:void 0}}),rt.extend({valHooks:{option:{get:function(t){var e=rt.find.attr(t,"value");return null!=e?e:rt.trim(rt.text(t)).replace(me," ")}}
vendor: 4,362 bytes, line 3
3,select:{get:function(t){for(var e,n,i=t.options,o=t.selectedIndex,r="select-one"===t.type||o<0,s=r?null:[],a=r?o+1:i.length,l=o<0?a:r?o:0;l<a;l++)if(((n=i[l]).selected||l===o)&&(it.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!rt.nodeName(n.parentNode,"optgroup"))){if(e=rt(n).val(),r)return e;s.push(e)}return s},set:function(t,e){for(var n,i,o=t.options,r=rt.makeArray(e),s=o.length;s--;)((i=o[s]).selected=rt.inArray(rt.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),rt.each(["radio","checkbox"],function(){rt.valHooks[this]={set:function(t,e){if(rt.isArray(e))return t.checked=rt.inArray(rt(t).val(),e)>-1}},it.checkOn||(rt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ge=/^(?:focusinfocus|focusoutblur)$/;rt.extend(rt.event,{trigger:function(e,n,i,o){var r,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+rt.event.triggered)&&(f.indexOf(".")>-1&&(p=f.split("."),f=p.shift(),p.sort()),u=f.indexOf(":")<0&&"on"+f,(e=e[rt.expando]?e:new rt.Event(f,"object"==typeof e&&e)).isTrigger=o?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]:rt.makeArray(n,[e]),d=rt.event.special[f]||{},o||!d.trigger||!1!==d.trigger.apply(i,n))){if(!o&&!d.noBubble&&!rt.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(r=0;(s=h[r++])&&!e.isPropagationStopped();)e.type=r>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&&St(s)&&(e.result=c.apply(s,n),!1===e.result&&e.preventDefault());return e.type=f,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),n)||!St(i)||u&&rt.isFunction(i[f])&&!rt.isWindow(i)&&((a=i[u])&&(i[u]=null),rt.event.triggered=f,i[f](),rt.event.triggered=void 0,a&&(i[u]=a)),e.result}},simulate:function(t,e,n){var i=rt.extend(new rt.Event,n,{type:t,isSimulated:!0});rt.event.trigger(i,null,e)}}),rt.fn.extend({trigger:function(t,e){return this.each(function(){rt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return rt.event.trigger(t,e,n,!0)}}),rt.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){rt.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),rt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),it.focusin="onfocusin"in t,it.focusin||rt.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){rt.event.simulate(e,t.target,rt.event.fix(t))};rt.event.special[e]={setup:function(){var i=this.ownerDocument||this,o=Tt.access(i,e);o||i.addEventListener(t,n,!0),Tt.access(i,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=Tt.access(i,e)-1;o?Tt.access(i,e,o):(i.removeEventListener(t,n,!0),Tt.remove(i,e))}}});var ve=t.location,ye=rt.now(),we=/\?/;rt.parseJSON=function(t){return JSON.parse(t+"")},rt.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||rt.error("Invalid XML: "+e),n};var be=/#.*$/,xe=/([?&])_=[^&]*/,Ce=/^(.*?):[ \t]*([^\r\n]*)$/gm,Se=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Te=/^(?:GET|HEAD)$/,Ee=/^\/\//,ke={},$e={},Ie="*/".concat("*"),Ae=G.createElement("a");Ae.href=ve.href,rt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ve.href,type:"GET",isLocal:Se.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":rt.parseJSON,"text xml":rt.parseXML}
vendor: 5,386 bytes, line 3
3,flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?W(W(t,rt.ajaxSettings),e):W(rt.ajaxSettings,t)},ajaxPrefilter:q(ke),ajaxTransport:q($e),ajax:function(e,n){function i(e,n,i,a){var u,d,y,w,x,S=n;2!==b&&(b=2,l&&t.clearTimeout(l),o=void 0,s=a||"",C.readyState=e>0?4:0,u=e>=200&&e<300||304===e,i&&(w=B(h,C,i)),w=U(h,w,C,u),u?(h.ifModified&&((x=C.getResponseHeader("Last-Modified"))&&(rt.lastModified[r]=x),(x=C.getResponseHeader("etag"))&&(rt.etag[r]=x)),204===e||"HEAD"===h.type?S="nocontent":304===e?S="notmodified":(S=w.state,d=w.data,u=!(y=w.error))):(y=S,!e&&S||(S="error",e<0&&(e=0))),C.status=e,C.statusText=(n||S)+"",u?m.resolveWith(f,[d,S,C]):m.rejectWith(f,[C,S,y]),C.statusCode(v),v=void 0,c&&p.trigger(u?"ajaxSuccess":"ajaxError",[C,h,u?d:y]),g.fireWith(f,[C,S]),c&&(p.trigger("ajaxComplete",[C,h]),--rt.active||rt.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=void 0),n=n||{};var o,r,s,a,l,u,c,d,h=rt.ajaxSetup({},n),f=h.context||h,p=h.context&&(f.nodeType||f.jquery)?rt(f):rt.event,m=rt.Deferred(),g=rt.Callbacks("once memory"),v=h.statusCode||{},y={},w={},b=0,x="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!a)for(a={};e=Ce.exec(s);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=w[n]=w[n]||t,y[t]=e),this},overrideMimeType:function(t){return b||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(b<2)for(e in t)v[e]=[v[e],t[e]];else C.always(t[C.status]);return this},abort:function(t){var e=t||x;return o&&o.abort(e),i(0,e),this}};if(m.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,h.url=((e||h.url||ve.href)+"").replace(be,"").replace(Ee,ve.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=rt.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=rt.param(h.data,h.traditional)),H(ke,h,n,C),2===b)return C;for(d in(c=rt.event&&h.global)&&0===rt.active++&&rt.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Te.test(h.type),r=h.url,h.hasContent||(h.data&&(r=h.url+=(we.test(r)?"&":"?")+h.data,delete h.data),!1===h.cache&&(h.url=xe.test(r)?r.replace(xe,"$1_="+ye++):r+(we.test(r)?"&":"?")+"_="+ye++)),h.ifModified&&(rt.lastModified[r]&&C.setRequestHeader("If-Modified-Since",rt.lastModified[r]),rt.etag[r]&&C.setRequestHeader("If-None-Match",rt.etag[r])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.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)C.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(f,C,h)||2===b))return C.abort();for(d in x="abort",{success:1,error:1,complete:1})C[d](h[d]);if(o=H($e,h,n,C)){if(C.readyState=1,c&&p.trigger("ajaxSend",[C,h]),2===b)return C;h.async&&h.timeout>0&&(l=t.setTimeout(function(){C.abort("timeout")},h.timeout));try{b=1,o.send(y,i)}catch(t){if(!(b<2))throw t;i(-1,t)}}else i(-1,"No Transport");return C},getJSON:function(t,e,n){return rt.get(t,e,n,"json")},getScript:function(t,e){return rt.get(t,void 0,e,"script")}}),rt.each(["get","post"],function(t,e){rt[e]=function(t,n,i,o){return rt.isFunction(n)&&(o=o||i,i=n,n=void 0),rt.ajax(rt.extend({url:t,type:e,dataType:o,data:n,success:i},rt.isPlainObject(t)&&t))}}),rt._evalUrl=function(t){return rt.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},rt.fn.extend({wrapAll:function(t){var e;return rt.isFunction(t)?this.each(function(e){rt(this).wrapAll(t.call(this,e))}):(this[0]&&(e=rt(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 rt.isFunction(t)?this.each(function(e){rt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=rt(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=rt.isFunction(t);return this.each(function(n){rt(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){rt.nodeName(this,"body")||rt(this).replaceWith(this.childNodes)}).end()}}),rt.expr.filters.hidden=function(t){return!rt.expr.filters.visible(t)},rt.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,je=/^(?:submit|button|image|reset|file)$/i,Le=/^(?:input|select|textarea|keygen)/i;rt.param=function(t,e){var n,i=[],o=function(t,e){e=rt.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=rt.ajaxSettings&&rt.ajaxSettings.traditional),rt.isArray(t)||t.jquery&&!rt.isPlainObject(t))rt.each(t,function(){o(this.name,this.value)});else for(n in t)V(n,t[n],e,o);return i.join("&").replace(_e,"+")},rt.fn.extend({serialize:function(){return rt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=rt.prop(this,"elements");return t?rt.makeArray(t):this}
vendor: 4,669 bytes, line 3
3).filter(function(){var t=this.type;return this.name&&!rt(this).is(":disabled")&&Le.test(this.nodeName)&&!je.test(t)&&(this.checked||!Pt.test(t))}).map(function(t,e){var n=rt(this).val();return null==n?null:rt.isArray(n)?rt.map(n,function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}}):{name:e.name,value:n.replace(Pe,"\r\n")}}).get()}}),rt.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var De={0:200,1223:204},Fe=rt.ajaxSettings.xhr();it.cors=!!Fe&&"withCredentials"in Fe,it.ajax=Fe=!!Fe,rt.ajaxTransport(function(e){var n,i;if(it.cors||Fe&&!e.crossDomain)return{send:function(o,r){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||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(s,o[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?r(0,"error"):r(a.status,a.statusText):r(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()}}}),rt.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 rt.globalEval(t),t}}}),rt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),rt.ajaxTransport("script",function(t){var e,n;if(t.crossDomain)return{send:function(i,o){e=rt("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&o("error"===t.type?404:200,t.type)}),G.head.appendChild(e[0])},abort:function(){n&&n()}}});var Me=[],Oe=/(=)\?(?=&|$)|\?\?/;rt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Me.pop()||rt.expando+"_"+ye++;return this[t]=!0,t}}),rt.ajaxPrefilter("json jsonp",function(e,n,i){var o,r,s,a=!1!==e.jsonp&&(Oe.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Oe.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=rt.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Oe,"$1"+o):!1!==e.jsonp&&(e.url+=(we.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return s||rt.error(o+" was not called"),s[0]},e.dataTypes[0]="json",r=t[o],t[o]=function(){s=arguments},i.always(function(){void 0===r?rt(t).removeProp(o):t[o]=r,e[o]&&(e.jsonpCallback=n.jsonpCallback,Me.push(o)),s&&rt.isFunction(r)&&r(s[0]),s=r=void 0}),"script"}),rt.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),o=!n&&[];return i?[e.createElement(i[1])]:(i=h([t],e,o),o&&o.length&&rt(o).remove(),rt.merge([],i.childNodes))};var Ne=rt.fn.load;rt.fn.load=function(t,e,n){if("string"!=typeof t&&Ne)return Ne.apply(this,arguments);var i,o,r,s=this,a=t.indexOf(" ");return a>-1&&(i=rt.trim(t.slice(a)),t=t.slice(0,a)),rt.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),s.length>0&&rt.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){r=arguments,s.html(i?rt("<div>").append(rt.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this},rt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){rt.fn[e]=function(t){return this.on(e,t)}}),rt.expr.filters.animated=function(t){return rt.grep(rt.timers,function(e){return t===e.elem}).length},rt.offset={setOffset:function(t,e,n){var i,o,r,s,a,l,u=rt.css(t,"position"),c=rt(t),d={};"static"===u&&(t.style.position="relative"),a=c.offset(),r=rt.css(t,"top"),l=rt.css(t,"left"),("absolute"===u||"fixed"===u)&&(r+l).indexOf("auto")>-1?(s=(i=c.position()).top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),rt.isFunction(e)&&(e=e.call(t,n,rt.extend({},a))),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+o),"using"in e?e.using.call(t,d):c.css(d)}},rt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){rt.offset.setOffset(this,t,e)});var e,n,i=this[0],o={top:0,left:0}
3,r=i&&i.ownerDocument;return r?(e=r.documentElement,rt.contains(e,i)?(o=i.getBoundingClientRect(),n=X(r),{top:o.top+n.pageYOffset-e.clientTop,left:o.left+n.pageXOffset-e.clientLeft}):o):void 0},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===rt.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),rt.nodeName(t[0],"html")||(i=t.offset()),i.top+=rt.css(t[0],"borderTopWidth",!0),i.left+=rt.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-rt.css(n,"marginTop",!0),left:e.left-i.left-rt.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===rt.css(t,"position");)t=t.offsetParent;return t||Jt})}}),rt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;rt.fn[t]=function(i){return Ct(this,function(t,i,o){var r=X(t);if(void 0===o)return r?r[e]:t[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):t[i]=o},t,i,arguments.length)}}),rt.each(["top","left"],function(t,e){rt.cssHooks[e]=$(it.pixelPosition,function(t,n){if(n)return n=k(t,e),Zt.test(n)?rt(t).position()[e]+"px":n})}),rt.each({Height:"height",Width:"width"},function(t,e){rt.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){rt.fn[i]=function(i,o){var r=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return Ct(this,function(e,n,i){var o;return rt.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?rt.css(e,n,s):rt.style(e,n,i,s)},e,r?i:void 0,r,null)}})}),rt.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}}),rt.fn.andSelf=rt.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return rt});var Re=t.jQuery,qe=t.$;return rt.noConflict=function(e){return t.$===rt&&(t.$=qe),e&&t.jQuery===rt&&(t.jQuery=Re),rt},e||(t.jQuery=t.$=rt),rt}),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 o=t.Event(n);return e.trigger(o,i),!1!==o.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 o,r,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")){o=i.data("ujs:submit-button-formmethod")||i.attr("method"),r=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)?(o=i.data("method"),r=i.data("url"),s=i.serialize(),i.data("params")&&(s=s+"&"+i.data("params"))):i.is(n.buttonClickSelector)?(o=i.data("method")||"get",r=i.data("url"),s=i.serialize(),i.data("params")&&(s=s+"&"+i.data("params"))):(o=i.data("method"),r=n.href(i),s=i.data("params")||null);return u={type:o||"GET",data:s,dataType:l,beforeSend:function(t,o){if(o.dataType===e&&t.setRequestHeader("accept","*/*;q=0.5, "+o.accepts.script),!n.fire(i,"ajax:beforeSend",[t,o]))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(r)},a&&(u.xhrFields={withCredentials:a}),r&&(u.url=r),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 o=n.href(i),r=i.data("method"),s=i.attr("target"),a=n.csrfToken(),l=n.csrfParam(),u=t('<form method="post" action="'+o+'"></form>'),c='<input name="_method" value="'+r+'" type="hidden" />';l===e||a===e||n.isCrossDomain(o)||(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[
3n](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"),o=!1;if(!i)return!0;if(n.fire(t,"confirm")){try{o=n.confirm(i)}catch(t){(console.error||console.log).call(console,t.stack||t)}e=n.fire(t,"confirm:complete",[o])}return o&&e},blankInputs:function(e,n,i){var o,r,s,a=t(),l=n||"input,textarea",u=e.find(l),c={};return u.each(function(){(o=t(this)).is("input[type=radio]")?(s=o.attr("name"),c[s]||(0===e.find('input[type=radio]:checked[name="'+s+'"]').length&&(r=e.find('input[type=radio][name="'+s+'"]'),a=a.add(r)),c[s]=s)):(o.is("input[type=checkbox],input[type=radio]")?o.is(":checked"):!!o.val())===i&&(a=a.add(o))}),!!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),o=i.data("method"),r=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&&(!o||"GET"===o)&&!r)return!0;var a=n.handleRemote(i);return!1===a?n.enableElement(i):a.fail(function(){n.enableElement(i)}),!1}return o?(n.handleMethod(i),!1):void 0}),i.on("click.rails",n.buttonClickSelector,function(e){var i=t(this);
3if(!n.allowAction(i)||!n.isRemote(i))return n.stopEverything(e);i.is(n.buttonDisableSelector)&&n.disableFormElement(i);var o=n.handleRemote(i);return!1===o?n.enableFormElement(i):o.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 o,r,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((o=n.blankInputs(s,n.requiredInputSelector,!1))&&n.fire(s,"ajax:aborted:required",[o]))return n.stopEverything(i)}else s.data("ujs:formnovalidate-button",e);if(a){if(r=n.nonBlankInputs(s,n.fileInputSelector)){setTimeout(function(){n.disableFormElements(s)},13);var l=n.fire(s,"ajax:aborted:file",[r]);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 o=i.attr("name"),r=o?{name:o,value:i.val()}:null,s=i.closest("form");0===s.length&&(s=t("#"+i.attr("form"))),s.data("ujs:submit-button",r),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,o,r,s,a,l,u,c,d,h,f,p,m,g,v,y,w,b,x=n.cfg,C=e.createElement("img"),S="sizes"in C&&"srcset"in C,T=/\s+\d+h/g,E=(o=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,r=Array.prototype.forEach,function(){var t=e.createElement("img"),i=function(t){var e,n,i=t.getAttribute(x.srcsetAttr);i&&(n=i.match(o))&&((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&&r.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&&S)?!n.hasHDescriptorFix&&e.msElementsFromPoint&&(n.hasHDescriptorFix=!0,E()):t.picturefill||x.pf||(x.pf=function(e){var n,o;if(!t.picturefill)for(n=0,o=e.elements.length;n<o;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,o=t[i-1],r=0;r<i;r++)if((o=t[r]).d=o.w/t.w,o.d>=t.d){!o.cached&&(e=t[r-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+(o.d-t.d)*n>t.d&&(o=e));break}return o},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,o;p.init||(p.init=!0,addEventListener("resize",(n=e.getElementsByClassName("lazymatchmedia"),o=function(){var t,e;for(t=0,e=n.length;t<e;t++)i(n[t])},function(){clearTimeout(t),t=setTimeout(o,66)})))},m=function(e,i){var o,r=e.getAttribute("srcset")||e.getAttribute(x.srcsetAttr);!r&&i&&(r=e._lazypolyfill?e._lazypolyfill._set:e.getAttribute(x.srcAttr)||e.getAttribute("src")),e._lazypolyfill&&e._lazypolyfill._set==r||(o=f(r||""),i&&e.parentNode&&(o.isPicture="PICTURE"==e.parentNode.nodeName.toUpperCase(),o.isPicture&&t.matchMedia&&(n.aC(e,"lazymatchmedia"),p())),o._set=r,Object.defineProperty(e,"_lazypolyfill",{value:o,writable:!0}))},g=function(e){var i=t.devicePixelRatio||1,o=n.getX&&n.getX(e);return Math.min(o||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,o,r,s,a,l;if(m(r=t,!0),(s=r._lazypolyfill).isPicture)for(i=0,o=(e=t.parentNode.getElementsByTagName("source")).length;i<o;i++)if(x.supportsType(e[i].getAttribute("type"),t)&&v(e[i].getAttribute("media"))){r=e[i],m(r),s=r._lazypolyfill;break}return s.length>1?(l=r.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},(w=function(t){if(!S||!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=w,x.loadedClass&&x.loadingClass&&(b=[],['img[sizes$="px"][srcset].',"picture > img:not([srcset])."].forEach(function(t){b.push(t+x.loadedClass),b.push(t+x.loadingClass)}),x.pf({elements:e.querySelectorAll(b.join(", "))}))) 4}),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 o=e.createElement(n?"link":"script"),r=e.getElementsByTagName("script")[0];n?(o.rel="stylesheet",o.href=t):(o.onload=function(){o.onerror=null,o.onload=null,i()},o.onerror=o.onload,o.src=t),s[t]=!0,s[o.src||o.href]=!0,r.parentNode.insertBefore(o,r)}}var o,r,s={};e.addEventListener&&(r=/\(|\)|\s|'/,o=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){}
4else 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,o(s,function(){l.style.backgroundImage="url("+(r.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,o(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,o=/\s+/g,r=/\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(o," ").split(r),l.style.display="none",a.className=i.lazyClass,1!=t.length||u||(u="auto"),t.forEach(function(t){var n,o=e.createElement("source");u&&"auto"!=u&&o.setAttribute("sizes",u),(n=t.match(s))?(o.setAttribute(i.srcsetAttr,n[1]),h(o,n[2]),h(o,n[3])):o.setAttribute(i.srcsetAttr,t),l.appendChild(o)}),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,o=e.currentSrc||e.src;if(o){var r=l.test(o)?JSON.stringify(o):o,s=n.fire(i,"bgsetproxy",{src:o,useSrc:r,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,o,r;!t.defaultPrevented&&(i=t.target.getAttribute("data-bgset"))&&(r=t.target,(o=e.createElement("img")).alt="",o._lazybgsetLoading=!0,t.detail.firesLoad=!0,f(i,r,o),setTimeout(function(){n.loader.unveil(o),n.rAF(function(){n.fire(o,"_lazyloaded",{},!0,!0),o.complete&&p({target:o})})}))}),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,o;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 o=t.lazySizesConfig||t.lazysizesConfig||{},n)e in o||(o[e]=n[e])}(),!e||!e.getElementsByClassName)return{init:function(){},cfg:o,noSupport:!0};var r,s,a,l,u,c,d,h,f,p,m,g,v,y,w,b,x,C,S,T,E,k,$,I,A,_,z,P,j,L,D,F,M,O,N,R,q,H,W,B,U,V,X,Y,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,ot=/^picture$/i,rt=["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),rt.forEach(function(n){t[i](n,e)})},ht=function(t,n,o,r,s){var a=e.createEvent("Event");return o||(o={}
4),o.instance=i,a.initEvent(n,!r,!s),a.detail=o,t.dispatchEvent(a),a},ft=function(e,n){var i;!Q&&(i=t.picturefill||o.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<o.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,r=!0,s=!1;t.length;)t.shift()();r=!1},d=function(t,n){r&&!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,r=o.throttleDelay,s=o.ricTimeout,a=function(){e=!1,i=n.now(),t()},l=it&&s>49?function(){it(a,{timeout:s}),s!==o.ricTimeout&&(s=o.ricTimeout)}:vt(function(){et(a)},!0);return function(t){var o;(t=!0===t)&&(s=33),e||(e=!0,(o=r-(n.now()-i))<0&&(o=0),t||o<9?l():et(l,o))}},wt=function(t){var e,i,o=99,r=function(){e=null,t()},s=function(){var t=n.now()-i;t<o?et(s,o-t):(it||r)(r)};return function(){i=n.now(),e||(e=et(s,o))}},bt=(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==S&&(S="hidden"==pt(e.body,"visibility")),S||!("hidden"==pt(t.parentNode,"visibility")&&"hidden"==pt(t,"visibility"))},j=function(t,n){var i,o=t,r=P(t);for(w-=n,C+=n,b-=n,x+=n;r&&(o=o.offsetParent)&&o!=e.body&&o!=Z;)(r=(pt(o,"opacity")||1)>0)&&"visible"!=pt(o,"overflow")&&(i=o.getBoundingClientRect(),r=x>i.left&&b<i.right&&C>i.top-1&&w<i.bottom+1);return r},D=yt(L=function(){var t,n,r,s,a,l,u,c,d,p,g,T,E=i.elements;if((m=o.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=!o.expand||o.expand<1?Z.clientHeight>500&&Z.clientWidth>500?500:370:o.expand,i._defEx=p,g=p*o.expFactor,T=o.hFac,S=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),r=E[n].getBoundingClientRect(),(C=r.bottom)>=u&&(w=r.top)<=y&&(x=r.right)>=u*T&&(b=r.left)<=v&&(C||x||b||w)&&(o.loadHidden||P(E[n]))&&(f&&A<3&&!c&&(m<3||_<4)||j(E[n],l))){if(H(E[n]),a=!0,A>9)break}else!a&&f&&!s&&A<4&&_<4&&m>2&&(h[0]||o.preloadAfterLoad)&&(h[0]||!c&&(C||x||b||w||"auto"!=E[n][J](o.sizesAttr)))&&(s=h[0]||E[n]);s&&!a&&H(s)}}),M=vt(F=function(t){var e=t.target;e._lazyCache?delete e._lazyCache:(z(t),ut(e,o.loadedClass),ct(e,o.loadingClass),dt(e,O),ht(e,"lazyloaded"))}),O=function(t){M({target:t.target})},N=function(t,e){var n=t.getAttribute("data-load-mode")||o.iframeLoadMode;0==n?t.contentWindow.location.replace(e):1==n&&(t.src=e)},R=function(t){var e,n=t[J](o.srcsetAttr);(e=o.customMedia[t[J]("data-media")||t[J]("media")])&&t.setAttribute("media",e),n&&t.setAttribute("srcset",n)},q=vt(function(t,e,n,i,r){var s,a,l,u,c,d;(c=ht(t,"lazybeforeunveil",e)).defaultPrevented||(i&&(n?ut(t,o.autosizesClass):t.setAttribute("sizes",i)),a=t[J](o.srcsetAttr),s=t[J](o.srcAttr),r&&(u=(l=t.parentNode)&&ot.test(l.nodeName||"")),d=e.firesLoad||"src"in t&&(a||s||u),c={target:t},ut(t,o.loadingClass),d&&(clearTimeout(p),p=et(z,2500),dt(t,O,!0)),u&&at.call(l.getElementsByTagName("source"),R),a?t.setAttribute("srcset",a):s&&!u&&(E.test(t.nodeName)?N(t,s):t.src=s),r&&(a||u)&&ft(t,{src:s})),t._lazyRace&&delete t._lazyRace,ct(t,o.lazyClass),gt(function(){var e=t.complete&&t.naturalWidth>1;d&&!e||(e&&ut(t,o.fastLoadedClass),F(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](o.sizesAttr)||t[J]("sizes")),r="auto"==i;(!r&&f||!n||!t[J]("src")&&!t.srcset||t.complete||lt(t,o.errorClass)||!lt(t,o.lazyClass))&&(e=ht(t,"lazyunveilread").detail,r&&xt.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,A++,q(t,e,r,i,n))}},W=wt(function(){o.loadMode=3,D()}),U=function(){f||(n.now()-g<999?et(U,999):(f=!0,o.loadMode=3,D(),tt("scroll",B,!0)))},{_:function(){g=n.now(),i.elements=e.getElementsByClassName(o.lazyClass),h=e.getElementsByClassName(o.lazyClass+" "+o.preloadClass),tt("scroll",D,!0),tt("resize",D,!0),tt("pageshow",function(t){if(t.persisted){var n=e.querySelectorAll("."+o.loadingClass);
4n.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?(L(),gt._lsFlush()):D()},checkElems:D,unveil:H,_aLSL:B=function(){3==o.loadMode&&(o.loadMode=2),W()}}),xt=(X=vt(function(t,e,n,i){var o,r,s;if(t._lazysizesWidth=i,i+="px",t.setAttribute("sizes",i),ot.test(e.nodeName||""))for(r=0,s=(o=e.getElementsByTagName("source")).length;r<s;r++)o[r].setAttribute("sizes",i);n.detail.dataAttr||ft(t,n.detail)}),Y=function(t,e,n){var i,o=t.parentNode;o&&(n=mt(t,o,n),(i=ht(t,"lazybeforesizes",{width:n,dataAttr:!!e})).defaultPrevented||(n=i.detail.width)&&n!==t._lazysizesWidth&&X(t,o,i,n))},{_:function(){V=e.getElementsByClassName(o.autosizesClass),tt("resize",G)},checkElems:G=wt(function(){var t,e=V.length;if(e)for(t=0;t<e;t++)Y(V[t])}),updateElem:Y}),Ct=function(){!Ct.i&&e.getElementsByClassName&&(Ct.i=!0,xt._(),bt._())};return et(function(){o.init&&Ct()}),i={cfg:o,autoSizer:xt,loader:bt,init:Ct,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,r,a){function l(t,e,i){var o,r="$()."+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);o=void 0===o?d:o}else s(r+" is not a valid method")}else s(n+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==o?o:t}function u(t,e){t.each(function(t,i){var o=a.data(i,n);o?(o.option(e),o._init()):(o=new r(i,e),a.data(i,n,o))})}(a=a||e||t.jQuery)&&(r.prototype.option||(r.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,o.call(arguments,1)):(u(this,t),this)},i(a))}function i(t){!t||t&&t.bridget||(t.bridget=n)}var o=Array.prototype.slice,r=t.console,s=void 0===r?function(){}:function(t){r.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],o=0;o<n.length;o++){var r=n[o];i&&i[r]&&(this.off(t,r),delete i[r]),r.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 o(){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 o=i(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,n.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=i(e);if("none"==r.display)return n();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var c=a.isBorderBox="border-box"==r.boxSizing,d=0;d<u;d++){var h=l[d],f=r[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,w=a.borderLeftWidth+a.borderRightWidth,b=a.borderTopWidth+a.borderBottomWidth,x=c&&s,C=t(r.width);!1!==C&&(a.width=C+(x?0:m+w));var S=t(r.height);return!1!==S&&(a.height=S+(x?0:g+b)),a.innerWidth=a.width-(m+w),a.innerHeight=a.height-(g+b),a.outerWidth=a.width+v,a.outerHeight=a.height+y,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=l.length,c=!1;return r}),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",["de
4sandro-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 o=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(i){e(t,i)&&o.push(t);for(var n=t.querySelectorAll(i),r=0;r<n.length;r++)o.push(n[r])}else o.push(t)}),o},n.debounceMethod=function(t,e,n){n=n||100;var i=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){i.apply(r,e),delete r[o]},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 o=t.console;return n.htmlInit=function(e,i){n.docReady(function(){var r="data-"+n.toDashed(i),s=document.querySelectorAll("["+r+"]"),a=n.makeArray(s),l=r+"-options",u=t.jQuery;a.forEach(function(t){var n,s=t.getAttribute(r)||t.getAttribute(l);try{n=s&&JSON.parse(s)}catch(e){return void(o&&o.error("Error parsing "+r+" 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 o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r=document.documentElement.style,s="string"==typeof r.transition?"transition":"WebkitTransition",a="string"==typeof r.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"],o=t[n?"top":"bottom"],r=parseFloat(i),s=parseFloat(o),a=this.layout.size;-1!=i.indexOf("%")&&(r=r/100*a.width),-1!=o.indexOf("%")&&(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=n?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},c.layoutPosition=function(){var t=this.layout.size,e={},n=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=n?"paddingLeft":"paddingRight",r=n?"left":"right",s=n?"right":"left",a=this.position.x+t[o];e[r]=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,o=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),!o||this.isTransitioning){var r=t-n,s=e-i,a={};a.transform=this.getTranslate(r,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,"+o(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,o,r){return e(t,n,i,o,r)}):"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.f
4izzyUIUtils,t.Outlayer.Item)}(window,function(t,e,n,i,o){"use strict";function r(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 o=++d;this.element.outlayerGUID=o,h[o]=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={};r.namespace="outlayer",r.Item=o,r.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=r.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]},r.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=[],o=0;o<e.length;o++){var r=new n(e[o],this);i.push(r)}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,o=this.options[t];o?("string"==typeof o?i=this.element.querySelector(o):o instanceof HTMLElement&&(i=o),this[t]=i?n(i)[e]:o):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,o){i?t.goTo(e,n):(t.stagger(o*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(){o.dispatchEvent(t+"Complete",null,[e])}function i(){++s==r&&n()}var o=this,r=e.length;if(e&&r){var s=0;e.forEach(function(e){e.once(t,i)})}else n()}
4,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 o=u.Event(e);o.type=t,this.$element.trigger(o,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,o=n(t);return{left:e.left-i.left-o.marginLeft,top:e.top-i.top-o.marginTop,right:i.right-e.right-o.marginRight,bottom:i.bottom-e.bottom-o.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(r,"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)},r.data=function(t){var e=(t=i.getQueryElement(t))&&t.outlayerGUID;return e&&h[e]},r.create=function(t,e){var n=s(r) 5;return n.defaults=i.extend({},r.defaults),i.extend(n.defaults,e),n.compatOptions=i.extend({},r.compatOptions),n.namespace=t,n.data=r.data,n.Item=s(o),i.htmlInit(n,t),u&&u.bridget&&u.bridget(t,n),n};var p={ms:1,s:1e3};return r.Item=o,r}),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,o=this.containerWidth+this.gutter,r=o/i,s=i-o%i;r=Math[s&&s<1?"round":"floor"](r),this.cols=Math.max(r,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),o={x:this.columnWidth*i.col,y:i.y},r=i.y+t.size.outerHeight,s=n+i.col,a=i.col;a<s;a++)this.colYs[a]=r;return o},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),o=this._getOption("originLeft")?i.left:i.right,r=o+n.outerWidth,s=Math.floor(o/this.columnWidth);s=Math.max(0,s);var a=Math.floor(r/this.columnWidth);a-=r%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 o={features:null,bind:function(t,e,n,i){var o=(i?"remove":"add")+"EventListener";e=e.split(" ");for(var r=0;r<e.length;r++)e[r]&&t[o](e[r],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){o.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){o.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(o.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(o.features)return o.features;var t=o.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 r=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);r&&r.length>0&&(r=parseInt(r[1],10))>=1&&r<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|o
5pera 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,o.features=n,n}};o.detectFeatures(),o.features.oldIE&&(o.bind=function(t,e,n,i){e=e.split(" ");for(var o,r=(i?"detach":"attach")+"Event",s=function(){n.handleEvent.call(n)},a=0;a<e.length;a++)if(o=e[a])if("object"==typeof n&&n.handleEvent){if(i){if(!n["oldIE"+o])return!1}else n["oldIE"+o]=s;t[r]("on"+o,n["oldIE"+o])}else t[r]("on"+o,n)});var r=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,indirectClose:!1,scaleMode:"fit"};o.extend(l,i);var u,c,d,h,f,p,m,g,v,y,w,b,x,C,S,T,E,k,$,I,A,_,z,P,j,L,D,F,M,O,N,R,q,H,W,B,U,V,X,Y,G,Z,Q,K,J,tt,et,nt,it,ot,rt,st,at,lt,ut,ct,dt=function(){return{x:0,y:0}},ht=dt(),ft=dt(),pt=dt(),mt={},gt=0,vt={},yt=dt(),wt=0,bt=!0,xt=[],Ct={},St=!1,Tt=function(t,e){o.extend(r,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(r,n)}},At=function(){return(new Date).getTime()},_t=function(t){lt=t,r.bg.style.opacity=t*l.bgOpacity},zt=function(t,e,n,i,o){(!St||o&&o!==r.currItem)&&(i/=o?o.fitRatio:r.currItem.fitRatio),t[_]=b+e+"px, "+n+"px"+x+" scale("+i+")"},Pt=function(t){it&&(t&&(y>r.currItem.fitRatio?St||(dn(r.currItem,!1,!0),St=!0):St&&(dn(r.currItem),St=!1)),zt(it,pt.x,pt.y,y))},jt=function(t){t.container&&zt(t.container.style,t.initialPosition.x,t.initialPosition.y,t.initialZoomLevel,t)},Lt=function(t,e){e[_]=b+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)}
5ye.x=t,Lt(t,f)},Ft=function(t,e){var n=we[t]-vt[t];return ft[t]+ht[t]+n-n*(e/w)},Mt=function(t,e){t.x=e.x,t.y=e.y,e.id&&(t.id=e.id)},Ot=function(t){t.x=Math.round(t.x),t.y=Math.round(t.y)},Nt=null,Rt=function(){Nt&&(o.unbind(document,"mousemove",Rt),o.addClass(t,"pswp--has_mouse"),l.mouseUsed=!0,It("mouseUsed")),Nt=setTimeout(function(){Nt=null},100)},qt=function(){o.bind(document,"keydown",r),N.transform&&o.bind(r.scrollWrap,"click",r),l.mouseUsed||o.bind(document,"mousemove",Rt),o.bind(window,"resize scroll orientationchange",r),It("bindEvents")},Ht=function(){o.unbind(window,"resize scroll orientationchange",r),o.unbind(window,"scroll",v.scroll),o.unbind(document,"keydown",r),o.unbind(document,"mousemove",Rt),N.transform&&o.unbind(r.scrollWrap,"click",r),X&&o.unbind(window,m,r),clearTimeout(R),It("unbindEvents")},Wt=function(t,e){var n=an(r.currItem,mt,t);return e&&(nt=n),n},Bt=function(t){return t||(t=r.currItem),t.initialZoomLevel},Ut=function(t){return t||(t=r.currItem),t.w>0?l.maxSpreadZoom:1},Vt=function(t,e,n,i){return i===r.currItem.initialZoomLevel?(n[t]=r.currItem.initialPosition[t],!0):(n[t]=Ft(t,i),n[t]>e.min[t]?(n[t]=e.min[t],!0):n[t]<e.max[t]&&(n[t]=e.max[t],!0))},Xt=function(){if(_){var e=N.perspective&&!P;return b="translate"+(e?"3d(":"("),void(x=N.perspective?", 0px)":")")}_="left",o.addClass(t,"pswp--ie"),Lt=function(t,e){e.left=t+"px"},jt=function(t){var e=t.fitRatio>1?1:t.fitRatio,n=t.container.style,i=e*t.w,o=e*t.h;n.width=i+"px",n.height=o+"px",n.left=t.initialPosition.x+"px",n.top=t.initialPosition.y+"px"},Pt=function(){if(it){var t=it,e=r.currItem,n=e.fitRatio>1?1:e.fitRatio,i=n*e.w,o=n*e.h;t.width=i+"px",t.height=o+"px",t.left=pt.x+"px",t.top=pt.y+"px"}}},Yt=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,r[e]()))},Gt=function(t){t&&(Z||G||ot||U)&&(t.preventDefault(),t.stopPropagation())},Zt=function(){r.setScrollOffset(0,o.getScrollY())},Qt={},Kt=0,Jt=function(t){Qt[t]&&(Qt[t].raf&&L(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,o,r,s){var a,l=At();te(t);var u=function(){if(Qt[t]){if((a=At()-l)>=i)return Jt(t),r(n),void(s&&s());r((n-e)*o(a/i)+e),Qt[t].raf=j(u)}};u()},ie={shout:It,listen:$t,viewportSize:mt,options:l,isMainScrollAnimating:function(){return ot},getZoomLevel:function(){return y},getCurrentIndex:function(){return h},isDragging:function(){return X},isZooming:function(){return tt},setScrollOffset:function(t,e){vt.x=t,O=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;r.framework=o,r.template=t,r.bg=o.getChildByClass(t,"pswp__bg"),D=t.className,u=!0,N=o.detectFeatures(),j=N.raf,L=N.caf,_=N.transform,M=N.oldIE,r.scrollWrap=o.getChildByClass(t,"pswp__scroll-wrap"),r.container=o.getChildByClass(r.scrollWrap,"pswp__container"),f=r.container.style,r.itemHolders=T=[{el:r.container.children[0],wrap:0,index:-1},{el:r.container.children[1],wrap:0,index:-1},{el:r.container.children[2],wrap:0,index:-1}],T[0].el.style.display=T[2].el.style.display="none",Xt(),v={resize:r.updateSize,orientationchange:function(){clearTimeout(R),R=setTimeout(function(){mt.x!==r.scrollWrap.clientWidth&&r.updateSize()},500)},scroll:Zt,keydown:Yt,click:Gt};var i=N.isOldIOSPhone||N.isOldAndroid||N.isMobileOpera;for(N.animationName&&N.transform&&!i||(l.showAnimationDuration=l.hideAnimationDuration=0),n=0;n<xt.length;n++)r["init"+xt[n]]();if(e)(r.ui=new e(r,o)).init();It("firstUpdate"),h=h||l.index||0,(isNaN(h)||h<0||h>=Je())&&(h=0),r.currItem=Ke(h),(N.isOldIOSPhone||N.isOldAndroid)&&(bt=!1),t.setAttribute("aria-hidden","false"),l.modal&&(bt?t.style.position="fixed":(t.style.position="absolute",t.style.top=o.getScrollY()+"px")),void 0===O&&(It("initialLayout"),O=F=o.getScrollY());var s="pswp--open ";for(l.mainClass&&(s+=l.mainClass+" "),l.showHideOpacity&&(s+="pswp--animate_opacity "),s+=P?"psw
5p--touch":"pswp--notouch",s+=N.animationName?" pswp--css_animation":"",s+=N.svg?" pswp--svg":"",o.addClass(t,s),r.updateSize(),p=-1,wt=null,n=0;n<a;n++)Lt((n+p)*yt.x,T[n].el.style);M||o.bind(r.scrollWrap,g,r),$t("initialZoomInEnd",function(){r.setContent(T[0],h-1),r.setContent(T[2],h+1),T[0].el.style.display=T[2].el.style.display="block",l.focus&&t.focus(),qt()}),r.setContent(T[1],h),r.updateCurrItem(),It("afterInit"),bt||(C=setInterval(function(){Kt||X||tt||y!==r.currItem.initialZoomLevel||r.updateSize()},1e3)),o.addClass(t,"pswp--visible")}},close:function(){u&&(l.indirectClose?It("indirectCloseInitiated"):r.reallyClose())},reallyClose:function(){u&&(u=!1,c=!0,It("close"),Ht(),tn(r.currItem,null,!0,r.destroy))},destroy:function(){It("destroy"),Ye&&clearTimeout(Ye),t.setAttribute("aria-hidden","true"),t.className=D,C&&clearInterval(C),o.unbind(r.scrollWrap,g,r),o.unbind(window,"scroll",r),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;wt=e,h=t,r.currItem=Ke(h),gt-=e,Dt(yt.x*gt),ee(),ot=!1,r.updateCurrItem()},next:function(){r.goTo(h+1)},prev:function(){r.goTo(h-1)},updateCurrZoomItem:function(t){if(t&&It("beforeChange",0),T[1].el.children.length){var e=T[1].el.children[0];it=o.hasClass(e,"pswp__zoom-wrap")?e.style:null}else it=null;nt=r.currItem.bounds,w=y=r.currItem.initialZoomLevel,pt.x=nt.center.x,pt.y=nt.center.y,t&&It("afterChange")},invalidateCurrItems:function(){S=!0;for(var t=0;t<a;t++)T[t].item&&(T[t].item.needsUpdate=!0)},updateCurrItem:function(t){if(0!==wt){var e,n=Math.abs(wt);if(!(t&&n<2)){r.currItem=Ke(h),St=!1,It("beforeChange",wt),n>=a&&(p+=wt+(wt>0?-a:a),n=a);for(var i=0;i<n;i++)wt>0?(e=T.shift(),T[a-1]=e,p++,Lt((p+2)*yt.x,e.el.style),r.setContent(e,h-n+i+1+1)):(e=T.pop(),T.unshift(e),p--,Lt(p*yt.x,e.el.style),r.setContent(e,h+n-i-1-1));if(it&&1===Math.abs(wt)){var o=Ke(E);o.initialZoomLevel!==y&&(an(o,mt),dn(o),jt(o))}wt=0,r.updateCurrZoomItem(),E=h,It("afterChange")}}},updateSize:function(e){if(!bt&&l.modal){var n=o.getScrollY();if(O!==n&&(t.style.top=n+"px",O=n),!e&&Ct.x===window.innerWidth&&Ct.y===window.innerHeight)return;Ct.x=window.innerWidth,Ct.y=window.innerHeight,t.style.height=Ct.y+"px"}if(mt.x=r.scrollWrap.clientWidth,mt.y=r.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],Lt((c+p)*yt.x,i.el.style),u=h+c-1,l.loop&&Je()>2&&(u=Et(u)),(s=Ke(u))&&(S||s.needsUpdate||!s.bounds)?(r.cleanSlide(s),r.setContent(i,u),1===c&&(r.currItem=s,r.updateCurrZoomItem(!0)),s.needsUpdate=!1):-1===i.index&&u>=0&&r.setContent(i,u),s&&s.container&&(an(s,mt),dn(s),jt(s));S=!1}w=y=r.currItem.initialZoomLevel,(nt=r.currItem.bounds)&&(pt.x=nt.center.x,pt.y=nt.center.y,Pt(!0)),It("resize")},zoomTo:function(t,e,n,i,r){e&&(w=y,we.x=Math.abs(e.x)-pt.x,we.y=Math.abs(e.y)-pt.y,Mt(ft,pt));var s=Wt(t,!1),a={};Vt("x",s,a,t),Vt("y",s,a,t);var l=y,u={x:pt.x,y:pt.y};Ot(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),r&&r(e),Pt(1===e)};n?ne("customZoomTo",0,1,n,i||o.easing.sine.inOut,c):c(1)}},oe=30,re=10,se={},ae={},le={},ue={},ce={},de=[],he={},fe=[],pe={},me=0,ge=dt(),ve=0,ye=dt(),we=dt(),be=dt(),xe=function(t,e){return t.x===e.x&&t.y===e.y},Ce=function(t,e){return Math.abs(t.x-e.x)<s&&Math.abs(t.y-e.y)<s},Se=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&&(L(Q),Q=null)},Ee=function(){X&&(Q=j(Ee),qe())},ke=function(){return!("fit"===l.scaleMode&&y===r.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}},je=function(){var t=pt.y-r.currItem.initialPosition.y;return 1-Math.abs(t/(mt.y/2))},Le={},De={},Fe=[],Me=function(t){for(;Fe.length>0;)Fe.pop();return z?(ct=0,de.forEach(function(t){0===ct?Fe[0]=t:1===ct&&(Fe[1]=t),ct++})):t.type.indexOf("touch")>-1?t.touches&&t.touches.length>0&&(Fe[0]=_e(t.touches[0],Le),t.touches.length>1&&(Fe[1]=_e(t.touches[1],De))):(Le.x=t.pageX,Le.y=t.pageY,Le.id="",Fe[0]=Le),Fe},Oe=function(t,e){var n,i,o,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===r.currItem.initialZoomLevel)&&(it?"h"!==rt||"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&&(o=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&&(o=a))):s=c,"x"===t))return void 0!==s&&(Dt(s,!0),K=s!==he.x),nt.min.x!==nt.max.x&&(void 0!==o?pt.x=o:K||(pt.x+=e.x*n)),void 0!==s;ot||K||y>r.currItem.fitRatio&&(pt[t]+=e[t]*n)},Ne=function(t){if("mousedown"!==t.type&&"pointerdown"!==t.type||!(t.button>0))if(Qe)t.preventDefault();else if(!V||"mousedown"!==t.type){if(Ae(t,!0)&&t.preventDefault(),It("pointerDown"),z){var e=o.arraySearch(de,t.pointerId,"id");e<0&&(e=de.length),de[e]={x:t.pageX,y:t.pageY,id:t.pointerId}}var n=Me(t),i=n.length;J=null,ee(),X&&1!==i||(X=st=!0,o.bind(window,m,r),B=ut=at=U=K=Z=Y=G=!1,rt=null,It("firstTouchStart",n),Mt(ft,pt),ht.x=ht.y=0,Mt(ue,n[0]),Mt(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&&!ot&&!K&&(w=y,G=!1,tt=Y=!0,ht.y=ht.x=0,Mt(ft,pt),Mt(se,n[0]),Mt(ae,n[1]),ze(se,ae,be),we.x=Math.abs(be.x)-pt.x,we.y=Math.abs(be.y)-pt.y,et=Se(se,ae))}},Re=function(t){if(t.preventDefault(),z){var e=o.arraySearch(de,t.pointerId,"id");if(e>-1){var n=de[e];n.x=t.pageX,n.y=t.pageY}}if(X){var i=Me(t);if(rt||Z||tt)J=i;else if(ye.x!==yt.x*gt)rt="h";else{var r=Math.abs(i[0].x-ue.x)-Math.abs(i[0].y-ue.y);Math.abs(r)>=re&&(rt=r>0?"h":"v",J=i)}}},qe=function(){if(J){var t=J.length;if(0!==t)if(Mt(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;Mt(ae,J[1]),G||(G=!0,It("zoomGestureStarted"));var e=Se(se,ae),n=Ve(e);n>r.currItem.initialZoomLevel+r.currItem.initialZoomLevel/15&&(ut=!0);var i=1,o=Bt(),s=Ut();if(n<o)if(l.pinchToClose&&!ut&&w<=r.currItem.initialZoomLevel){var a=1-(o-n)/(o/1.2);_t(a),It("onPinchClose",a),at=!0}else(i=(o-n)/o)>1&&(i=1),n=o-i*(o/3);else n>s&&((i=(n-s)/(6*o))>1&&(i=1),n=s+i*o);i<0&&(i=0),ze(se,ae,ge),ht.x+=ge.x-be.x,ht.y+=ge.y-be.y,Mt(be,ge),pt.x=Ft("x",n),pt.y=Ft("y",n),B=n>y,y=n,Pt()}else{if(!rt)return;if(st&&(st=!1,Math.abs(le.x)>=re&&(le.x-=J[0].x-ce.x),Math.abs(le.y)>=re&&(le.y-=J[0].y-ce.y)),ue.x=se.x,ue.y=se.y,0===le.x&&0===le.y)return;if("v"===rt&&l.closeOnVerticalDrag&&!ke()){ht.y+=le.y,pt.y+=le.y;var u=je();return U=!0,It("onVerticalDrag",u),_t(u),void Pt()}Pe(At(),se.x,se.y),Z=!0,nt=r.currItem.bounds,Oe("x",le)||(Oe("y",le),Ot(pt),Pt())}}},He=function(t){if(N.isOldAndroid){if(V&&"mouseup"===t.type)return;t.type.indexOf("touch")>-1&&(clearTimeout(V),V=setTimeout(function(){V=0},600))}var e;if(It("pointerUp"),Ae(t,!1)&&t.preventDefault(),z){var n=o.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=Me(t),u=a.length;if("mouseup"===t.type&&(u=0),2===u)return J=null,!0;1===u&&Mt(ce,a[0]),0!==u||rt||ot||(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&&(X=!1,o.unbind(window,m,r),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||ot||U)if(ee(),W||(W=We()),W.calculateSwipeSpeed("x"),U){if(je()<l.verticalDragRange)r.close();else{var d=pt.y,h=lt;ne("verticalDrag",0,1,300,o.easing.cubic.out,function(t){pt.y=(r.currItem.initialPosition.y-d)*t+d,_t((1-h)*t+h),Pt()}),It("onVerticalDrag",1)}}else{if((K||ot)&&0===u){if(Ue(s,W))return;s="zoomPointerUp"}ot||("swipe"===s?!K&&y>r.currItem.fitRatio&&Be(W):Xe())}},We=function(){var t,e,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{}
5,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,o.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=j(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=r.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(ot||(me=h),"swipe"===t){var a=ue.x-ce.x,u=e.lastFlickDist.x<10;a>oe&&(u||e.lastFlickOffset.x>20)?i=-1:a<-oe&&(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||(wt+=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),ot=!0,It("mainScrollAnimStart"),ne("mainScroll",ye.x,d,c,o.easing.cubic.out,Dt,function(){ee(),ot=!1,me=-1,(n||me!==h)&&r.updateCurrItem(),It("mainScrollAnimComplete")}),n&&r.updateCurrItem(!0),n},Ve=function(t){return 1/et*t*w},Xe=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?(r.close(),!0):(at&&(i=function(t){_t((s-a)*t+a)}),r.zoomTo(t,0,200,o.easing.cubic.out,i),!0)};Tt("Gestures",{publicMethods:{initGestures:function(){var t=function(t,e,n,i,o){k=t+e,$=t+n,I=t+i,A=o?t+o:""};(z=N.pointerEvent)&&N.touch&&(N.touch=!1),z?navigator.msPointerEnabled?t("MSPointer","Down","Move","Up","Cancel"):t("pointer","down","move","up","cancel"):N.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),r.likelyTouchDevice=P,v[k]=Ne,v[$]=Re,v[I]=He,A&&(v[A]=v[I]),N.touch&&(g+=" mousedown",m+=" mousemove mouseup",v.mousedown=v[k],v.mousemove=v[$],v.mouseup=v[I]),P||(l.allowPanToNext=!1)}}});var Ye,Ge,Ze,Qe,Ke,Je,tn=function(e,n,i,s){var a;Ye&&clearTimeout(Ye),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?(r.template.removeAttribute("style"),r.bg.removeAttribute("style")):(_t(1),n&&(n.style.display="block"),o.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,Mt(pt,e.initialPosition),Pt(),t.style.opacity=i?0:1,_t(1),void(u?setTimeout(function(){c()},u):c());(function(){var n=d,s=!r.currItem.src||r.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-F,r[s?"template":"bg"].style.opacity=.001,Pt()),te("initialZoom"),i&&
5!n&&o.removeClass(t,"pswp--animated-in"),s&&(i?o[(n?"remove":"add")+"Class"](t,"pswp--animate_opacity"):setTimeout(function(){o.addClass(t,"pswp--animate_opacity")},30)),Ye=setTimeout(function(){if(It("initialZoom"+(i?"Out":"In")),i){var r=a.w/e.w,l={x:pt.x,y:pt.y},d=y,h=lt,f=function(e){1===e?(y=r,pt.x=a.x,pt.y=a.y-o.getScrollY()):(y=(r-d)*e+d,pt.x=(a.x-l.x)*e+l.x,pt.y=(a.y-o.getScrollY()-l.y)*e+l.y),Pt(),s?t.style.opacity=1-e:_t(h-e*h)};n?ne("initialZoom",0,1,u,o.easing.cubic.out,f,c):(f(1),Ye=setTimeout(c,u+20))}else y=e.initialZoomLevel,Mt(pt,e.initialPosition),Pt(),_t(1),s?t.style.opacity=1:_t(1),Ye=setTimeout(c,u+20)},i?25:90)})()},en={},nn=[],on={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}},rn=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 o=en.x/t.w,r=en.y/t.h;t.fitRatio=o<r?o:r;var s=l.scaleMode;"orig"===s?n=1:"fit"===s&&(n=t.fitRatio),n>1&&(n=1),t.initialZoomLevel=n,t.bounds||(t.bounds=rn())}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=rn(),t.initialPosition=t.bounds.center,t.bounds},ln=function(t,e,n,i,o,s){e.loadError||i&&(e.imageAppended=!0,dn(e,i,e===r.currItem&&St),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=o.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),o=n?t.h:Math.round(t.h*t.fitRatio);t.placeholder&&!t.loaded&&(t.placeholder.style.width=i+"px",t.placeholder.style.height=o+"px"),e.style.width=i+"px",e.style.height=o+"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||S)&&(It("gettingData",t,e),e.src&&un(e))},initController:function(){o.extend(l,on,!0),r.items=Ge=n,Ke=r.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,o=Math.min(n[0],Je()),s=Math.min(n[1],Je());for(e=1;e<=(i?s:o);e++)r.lazyLoadItem(h+e);for(e=1;e<=(i?o:s);e++)r.lazyLoadItem(h-e)}),$t("initialLayout",function(){r.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=r.getItemAt(t.index);n&&(n.container=null);var i,s=r.getItemAt(e);if(s){It("gettingData",e,s),t.index=e,t.item=s;var a=s.container=o.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=o.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),jt(n),void(t.index===h&&r.updateCurrZoomItem());n.imageAppended?!Qe&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):N.transform&&(ot||Qe)?nn.push({item:n,baseDiv:a,img:n.img,index:e,holder:t,clearPlaceholder:!0}):ln(e,n,a,n.img,ot||Qe,!0)}n.loadComplete=null,n.img=null,It("imageLoadComplete",e,n)}},o.features.transform){var c="pswp__img pswp__img--placeholder";c+=s.msrc?"":" pswp__img--placeholder--blank";var d=o.createEl(c,s.msrc?"img":"");s.msrc&&(d.src=s.msrc),dn(s,d),a.appendChild(d),s.placeholder=d}s.loading||un(s),r.allowProgressiveImg()&&(!Ze&&N.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?jt(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"),o={origEvent:t,target:t.target,releasePoint:e,pointerType:n||"touch"};i.initCustomEvent("pswpTap",!0,!0,o),t.target.dispatchEvent(i)};if(Tt("Tap",{publicMethods:{initTap:function(){$t("firstTouchStart",r.onTapStart),$t("touchRelease",r.onTapRelease),$t("destroy",function(){mn={},fn=null})},onTapStart:function(t){t.length>1&&(clearTimeout(fn),fn=null)},onTapRelease:function(t,e){if(e&&!Z&&!Y&&!Kt){var n=e;if(fn&&(clearTimeout(fn),fn=null,Ce(n,mn)))return void It("doubleTap",n);if("mouse"===e.type)return void gn(t,e,"mouse");if("BUTTON"===t.target.tagName.toUpperCase()||o.hasClass(t.target,"pswp__single-tap"))return void gn(t,e);Mt(mn,n),fn=setTimeout(function(){gn(t,e),fn=null},300)}}}}),Tt("DesktopZoom",{publicMethods:{initDesktopZoom:function(){M||(P?$t("mouseUsed",function(){r.setupDesktopZoom()}):r.setupDesktopZoom(!0))},setupDesktopZoom:function(e){pn={};var n="wheel mousewheel DOMMouseScroll";$t("bindEvents",function(){o.bind(t,n,r.handleMouseWheel)}),$t("unbindEvents",function(){pn&&o.unbind(t,n,r.handleMouseWheel)}),r.mouseZoomedIn=!1;var i,s=function(){r.mouseZoomedIn&&(o.removeClass(t,"pswp--zoomed-in"),r.mouseZoomedIn=!1),y<1?o.addClass(t,"pswp--zoom-allowed"):o.removeClass(t,"pswp--zoom-allowed"),a()},a=function(){i&&(o.removeClass(t,"pswp--dragging"),i=!1)};$t("resize",s),$t("afterChange",s),$t("pointerDown",function(){r.mouseZoomedIn&&(i=!0,o.addClass(t,"pswp--dragging"))}),$t("pointerUp",a),e||s()},handleMouseWheel:function(t){if(y<=r.currItem.fitRatio)return l.modal&&(!l.closeOnScroll||Kt||X?t.preventDefault():_&&Math.abs(t.deltaY)>2&&(d=!0,r.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 6;(l.modal||e<=nt.min.x&&e>=nt.max.x&&n<=nt.min.y&&n>=nt.max.y)&&t.preventDefault(),r.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,r.currItem),i=y===n;r.mouseZoomedIn=!i,r.zoomTo(i?r.currItem.initialZoomLevel:n,e,333),o[(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")})}}})}o.extend(r,ie)};return t}),window.PhotoSwipeUI=function(t,e){var n,i,o,r,s,a,l,u,c,d,h,f,p,m,g,v,y=this,w=!1,b=!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
6:!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},C=function(t){if(m)return!0;t=t||window.event,p.timeToIdle&&p.mouseUsed&&!l&&I();for(var n,i,o=(t.target||t.srcElement).getAttribute("class")||"",r=0;r<F.length;r++)(n=F[r]).onTap&&o.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)}},S=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)},j=function(t){var n=t.vGap;if(S()){var s=p.barsSize;if(p.captionEl&&"auto"===s.bottom)if(r||((r=e.createEl("pswp__caption pswp__caption--fake")).appendChild(e.createEl("pswp__caption__center")),i.insertBefore(r,o),e.addClass(i,"pswp__ui--fit")),p.addCaptionHTMLFn(t,r,!0)){var a=r.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},L=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){b&&t<.95?y.hideControls():!b&&t>=.95&&y.showControls()}),u("onPinchClose",function(e){b&&e<.9?(y.hideControls(),t=!0):t&&!b&&e>.9&&y.showControls()}),u("zoomGestureEnded",function(){(t=!1)&&!b&&y.showControls()})},F=[{name:"caption",option:"captionEl",onInit:function(t){o=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)}}],M=function(){var n,o,r,s=function(t){if(t)for(var i=t.length,s=0;s<i;s++){n=t[s],o=n.className;for(var a=0;a<F.length;a++)r=F[a],o.indexOf("pswp__"+r.name)>-1&&(p[r.option]?(e.removeClass(n,"pswp__element--disabled"),r.onInit&&r.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;
6i&&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",C),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",C),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&&(r&&i.removeChild(r),e.removeClass(o,"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",j),M(),E(),L(),_(),z()},y.setIdle=function(t){l=t,T(i,"ui--idle",t)},y.update=function(){b&&t.currItem?(y.updateIndexIndicator(),p.captionEl&&(p.addCaptionHTMLFn(t.currItem,o),T(o,"caption--empty",!t.currItem.title)),w=!0):w=!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&&(b?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"),b=!1},y.showControls=function(){b=!0,w||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 o=i.closest("[type=submit]");if(0===o.length)return;n=o[0]}
6var r=n.form;if(r.clk=n,"image"===n.type)if(void 0!==e.offsetX)r.clk_x=e.offsetX,r.clk_y=e.offsetY;else if("function"==typeof t.fn.offset){var s=i.offset();r.clk_x=e.pageX-s.left,r.clk_y=e.pageY-s.top}else r.clk_x=e.pageX-n.offsetLeft,r.clk_y=e.pageY-n.offsetTop;setTimeout(function(){r.clk=r.clk_x=r.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 o=/\r?\n/g,r={};r.fileapi=void 0!==t('<input type="file">').get(0).files,r.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,o,a){function l(n){var i,o,r=t.param(n,e.traditional).split("&"),s=r.length,a=[];for(i=0;i<s;i++)r[i]=r[i].replace(/\+/g," "),o=r[i].split("="),a.push([decodeURIComponent(o[0]),decodeURIComponent(o[1])]);return a}function u(n){for(var i=new FormData,o=0;o<n.length;o++)i.append(n[o].name,n[o].value);if(e.extraData){var r=l(e.extraData);for(o=0;o<r.length;o++)r[o]&&i.append(r[o][0],r[o][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,o=t.total;t.lengthComputable&&(n=Math.ceil(i/o*100)),e.uploadProgress(t,i,o,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 o(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 r(){function e(){try{var t=o(g).readyState;i("state = "+t),t&&"uninitialized"===t.toLowerCase()&&setTimeout(e,50)}catch(t){i("Server abort: ",t," (",t.name,")"),a(I),C&&clearTimeout(C),C=void 0}}var n=p.attr2("target"),r=p.attr2("action"),s="multipart/form-data",l=p.attr("enctype")||p.attr("encoding")||s;S.setAttribute("target",f),d&&!/post/i.test(d)||S.setAttribute("method","POST"),r!==c.url&&S.setAttribute("action",c.url),c.skipEncodingOverride||d&&!/post/i.test(d)||p.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),c.timeout&&(C=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(S)[0]):u.push(t('<input type="hidden" name="'+h+'">',E).val(c.extraData[h]).appendTo(S)[0]));c.iframeTarget||m.appendTo(k),g.attachEvent?g.attachEvent("onload",a):g.addEventListener("load",a,!1),setTimeout(e,15);try{S.submit()}catch(t){document.createElement("form").submit.apply(S)}}finally{S.setAttribute("action",r),S.setAttribute("enctype",l),n?S.setAttribute("target",n):p.removeAttr("target"),t(u).remove()}}function a(e){if(!v.aborted&&!j){if((P=o(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,r="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)&&--L)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);
6var 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=M(v,u,c)}catch(t){r="parsererror",v.error=n=t||r}}catch(t){i("error caught: ",t),r="error",v.error=n=t||r}v.aborted&&(i("upload aborted"),r=null),v.status&&(r=v.status>=200&&v.status<300||304===v.status?"success":"error"),"success"===r?(c.success&&c.success.call(c.context,z,"success",v),T.resolve(v.responseText,"success",v),h&&t.event.trigger("ajaxSuccess",[v,c])):r&&(void 0===n&&(n=v.statusText),c.error&&c.error.call(c.context,v,r,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,r),j=!0,c.timeout&&clearTimeout(C),setTimeout(function(){c.iframeTarget?m.attr("src",c.iframeSrc):m.remove(),v.responseXML=null},100)}}}var l,u,c,h,f,m,g,v,w,b,x,C,S=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=S.ownerDocument,k=p.closest("body");if(c.iframeTarget?(b=(m=t(c.iframeTarget,E)).attr2("name"))?f=b: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;(w=S.clk)&&(b=w.name)&&!w.disabled&&(c.extraData=c.extraData||{},c.extraData[b]=w.value,"image"===w.type&&(c.extraData[b+".x"]=S.clk_x,c.extraData[b+".y"]=S.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?r():setTimeout(r,10);var z,P,j,L=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},F=t.parseJSON||function(t){return window.eval("("+t+")")},M=function(e,n,i){var o=e.getResponseHeader("content-type")||"",r=("xml"===n||!n)&&o.indexOf("xml")>=0,s=r?e.responseXML:e.responseText;return r&&"parsererror"===s.documentElement.nodeName&&t.error&&t.error("parsererror"),i&&i.dataFilter&&(s=i.dataFilter(s,n)),"string"==typeof s&&(("json"===n||!n)&&o.indexOf("json")>=0?s=F(s):("script"===n||!n)&&o.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:o},"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=[],w=this.formToArray(e.semantic,y,e.filtering);if(e.data){var b=t.isFunction(e.data)?e.data(w):e.data;e.extraData=b,v=t.param(b,g)}if(e.beforeSubmit&&!1===e.beforeSubmit(w,this,e))return i("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[w,this,e,m]),m.veto)return i("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var x=t.param(w,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 C=[];if(e.resetForm&&C.push(function(){p.resetForm()}),e.clearForm&&C.push(function(){p.clearForm(e.includeHidden)}),!e.dataType&&e.target){var S=e.success||function(){};C.push(function(n,i,o){var r=arguments,s=e.replaceTarget?"replaceWith":"html";t(e.target)[s](n).each(function(){S.apply(this,r)})})}else e.success&&(t.isArray(e.success)?t.merge(C,e.success):C.push(e.success));if(e.success=function(t,n,i){for(var o=e.context||this,r=0,s=C.length;r<s;r++)C[r].apply(o,[t,n,i||p,p])},e.error){var T=e.error;e.error=function(t,n,i){var o=e.context||this;T.apply(o,[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=r.fileapi&&r.formdata;i("fileAPI :"+A);var _,z=(k||I)&&!A;!1!==e.iframe&&(e.iframe||z)?e.closeKeepAlive?t.get(e.closeKeepAlive,function(){_=c(w)}):_=c(w):_=(k||I)&&A?u(w):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(o,r,s,a){if(("string"==typeof o||!1===o&&arguments.length>0)&&(o={url:o,data:r,dataType:s},"function"==typeof a&&(o.success=a)),(o=o||{}).delegation=o.delegation&&t.isFunction(t.fn.on),!o.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(o)}),this):(i("terminating; zero elements found by selector"+(t.isReady?"":" (DOM not ready)")),this)}return o.delegation?(t(document).off("submit.form-plugin",this.selector,e).off("
6click.form-plugin",this.selector,n).on("submit.form-plugin",this.selector,o,e).on("click.form-plugin",this.selector,o,n),this):this.ajaxFormUnbind().on("submit.form-plugin",o,e).on("click.form-plugin",o,n)},t.fn.ajaxFormUnbind=function(){return this.off("submit.form-plugin click.form-plugin")},t.fn.formToArray=function(e,n,i){var o=[];if(0===this.length)return o;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 o;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&&(o.push({name:u,value:t(d).val(),type:d.type}),o.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++)o.push({name:u,value:c[l]});else if(r.fileapi&&"file"===d.type){n&&n.push(d);var v=d.files;if(v.length)for(l=0;l<v.length;l++)o.push({name:u,value:v[l],type:d.type});else o.push({name:u,value:"",type:d.type})}else null!=c&&(n&&n.push(d),o.push({name:u,value:c,type:d.type,required:d.required}));if(!e&&p.clk){var y=t(p.clk),w=y[0];(u=w.name)&&!w.disabled&&"image"===w.type&&(o.push({name:u,value:y.val()}),o.push({name:u+".x",value:p.clk_x},{name:u+".y",value:p.clk_y}))}return o},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 o=t.fieldValue(this,e);if(o&&o.constructor===Array)for(var r=0,s=o.length;r<s;r++)n.push({name:i,value:o[r]});else null!=o&&n.push({name:this.name,value:o})}}),t.param(n)},t.fn.fieldValue=function(e){for(var n=[],i=0,o=this.length;i<o;i++){var r=this[i],s=t.fieldValue(r,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,r=e.type,s=e.tagName.toLowerCase();if(void 0===n&&(n=!0),n&&(!i||e.disabled||"reset"===r||"button"===r||("checkbox"===r||"radio"===r)&&!e.checked||("submit"===r||"image"===r)&&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"===r,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(o,"\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,o=this.tagName.toLowerCase();n.test(i)||"textarea"===o?this.value="":"checkbox"===i||"radio"===i?this.checked=!1:"select"===o?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 o=t(e.attr("for")),r=e.find("input,select,textarea");return o[0]&&r.unshift(o[0]),r.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 o(t,e,n){return setTimeout(u(t,n),e)}function r(t,e,n){return!!Array.isArray(t)&&(s(t,n[e],n),!0)}function s(t,e,n){var o;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==i)for(o=0;o<t.length;)e.call(n,t[o],o,t),o++;else for(o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function a(e,n,i){var o="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",r=t.console&&(t.console.warn||t.console.log);return r&&r.call(t.console,o,i),e.apply(this,arguments)}}function l(t,e,n){var i,o=e.prototype;(i=t.prototype=Object.create(o)).constructor=t,i._super=o,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)}
vendor: 8,164 bytes, lines 6-7
6function 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 w(t,e,n){for(var i=[],o=[],r=0;r<t.length;){var s=e?t[r][e]:t[r];v(o,s)<0&&i.push(t[r]),o[r]=s,r++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function b(t,e){for(var n,o,r=e[0].toUpperCase()+e.slice(1),s=0;s<ht.length;){if((o=(n=ht[s])?n+r:e)in t)return o;s++}return i}function x(){return bt++}function C(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}function S(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||(St?O:Tt?q:Ct?W:M))(t,E)}function E(t,e,n){var i=n.pointers.length,o=n.changedPointers.length,r=e&_t&&i-o===0,s=e&(Pt|jt)&&i-o===0;n.isFirst=!!r,n.isFinal=!!s,r&&(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,o=i.length;n.firstInput||(n.firstInput=A(e)),o>1&&!n.firstMultiple?n.firstMultiple=A(e):1===o&&(n.firstMultiple=!1);var r=n.firstInput,s=n.firstMultiple,a=s?s.center:r.center,l=e.center=_(i);e.timeStamp=vt(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=L(a,l),e.distance=j(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?F(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||{},o=t.prevDelta||{},r=t.prevInput||{};e.eventType!==_t&&r.eventType!==Pt||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=o.x+(n.x-i.x),e.deltaY=o.y+(n.y-i.y)}function I(t,e){var n,o,r,s,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=jt&&(l>At||a.velocity===i)){var u=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,d=z(l,u,c);o=d.x,r=d.y,n=gt(d.x)>gt(d.y)?d.x:d.y,s=P(u,c),t.lastInterval=e}else n=a.velocity,o=a.velocityX,r=a.velocityY,s=a.direction;e.velocity=n,e.velocityX=o,e.velocityY=r,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,o=0;o<e;)n+=t[o].clientX,i+=t[o].clientY,o++;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?Lt:gt(t)>=gt(e)?t<0?Dt:Ft:e<0?Mt:Ot}function j(t,e,n){n||(n=Ht);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return Math.sqrt(i*i+o*o)}function L(t,e,n){n||(n=Ht);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return 180*Math.atan2(o,i)/Math.PI}function D(t,e){return L(e[1],e[0],Wt)+L(t[1],t[0],Wt)}function F(t,e){return j(e[0],e[1],Wt)/j(t[0],t[1],Wt)}function M(){this.evEl=Ut,this.evWin=Vt,this.pressed=!1,S.apply(this,arguments)}function O(){this.evEl=Gt,this.evWin=Zt,S.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function N(){this.evTarget=Kt,this.evWin=Jt,this.started=!1,S.apply(this,arguments)}function R(t,e){var n=y(t.touches),i=y(t.changedTouches);return e&(Pt|jt)&&(n=w(n.concat(i),"identifier",!0)),[n,i]}function q(){this.evTarget=ee,this.targetIds={},S.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 o,r,s=y(t.changedTouches),a=[],l=this.target;if(r=n.filter(function(t){return p(t.target,l)}),e===_t)for(o=0;o<r.length;)i[r[o].identifier]=!0,o++;for(o=0;o<s.length;)i[s[o].identifier]&&a.push(s[o]),e&(Pt|jt)&&delete i[s[o].identifier],o++;return a.length?[w(r.concat(a),"identifier",!0),a]:void 0}function W(){S.apply(this,arguments);var t=u(this.handler,this);this.touch=new q(this.manager,t),this.mouse=new M(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|jt)&&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 V(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var o=this.lastTouches[i],r=Math.abs(e-o.x),s=Math.abs(n-o.y);if(r<=ie&&s<=ie)return!0}return!1}function X(t,e){this.manager=t,this.set(e)}function Y(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(!re)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==Ot?"down":t==Mt?"up":t==Dt?"left":t==Ft?"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 ot(){tt.apply(this,arguments)}function rt(){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, 7this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=T(this),this.touchAction=new X(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(o,r){n=b(i.style,r),e?(t.oldCssProps[n]=i.style[n],i.style[n]=o):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 o=arguments[n];if(o!==i&&null!==o)for(var r in o)o.hasOwnProperty(r)&&(e[r]=o[r])}return e}:Object.assign;var yt=a(function(t,e,n){for(var o=Object.keys(e),r=0;r<o.length;)(!n||n&&t[o[r]]===i)&&(t[o[r]]=e[o[r]]),r++;return t},"extend","Use `assign`."),wt=a(function(t,e){return yt(t,e,!0)},"merge","Use `assign`."),bt=1,xt=/mobile|tablet|ip(ad|hone|od)|android/i,Ct="ontouchstart"in t,St=b(t,"PointerEvent")!==i,Tt=Ct&&xt.test(navigator.userAgent),Et="touch",kt="pen",$t="mouse",It="kinect",At=25,_t=1,zt=2,Pt=4,jt=8,Lt=1,Dt=2,Ft=4,Mt=8,Ot=16,Nt=Dt|Ft,Rt=Mt|Ot,qt=Nt|Rt,Ht=["x","y"],Wt=["clientX","clientY"];S.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(C(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(C(this.element),this.evWin,this.domHandler)}};var Bt={mousedown:_t,mousemove:zt,mouseup:Pt}
vendor: 11,516 bytes, line 7
7,Ut="mousedown",Vt="mousemove mouseup";l(M,S,{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 Xt={pointerdown:_t,pointermove:zt,pointerup:Pt,pointercancel:jt,pointerout:jt},Yt={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(O,S,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),o=Xt[i],r=Yt[t.pointerType]||t.pointerType,s=r==Et,a=v(e,t.pointerId,"pointerId");o&_t&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):o&(Pt|jt)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),n&&e.splice(a,1))}});var Qt={touchstart:_t,touchmove:zt,touchend:Pt,touchcancel:jt},Kt="touchstart",Jt="touchstart touchmove touchend touchcancel";l(N,S,{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|jt)&&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:jt},ee="touchstart touchmove touchend touchcancel";l(q,S,{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,S,{handler:function(t,e,n){var i=n.pointerType==Et,o=n.pointerType==$t;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)B.call(this,e,n);else if(o&&V.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var oe=b(ft.style,"touchAction"),re=oe!==i,se="compute",ae="auto",le="manipulation",ue="none",ce="pan-x",de="pan-y",he=G();X.prototype={set:function(t){t==se&&(t=this.compute()),re&&this.manager.element.style&&he[t]&&(this.manager.element.style[oe]=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()))}),Y(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,o=m(i,ue)&&!he[ue],r=m(i,de)&&!he[de],s=m(i,ce)&&!he[ce];if(o){var a=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(a&&l&&u)return}if(!s||!r)return o||r&&n&Nt||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,we=32;Z.prototype={defaults:{},set:function(t){return dt(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(r(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 r(t,"dropRecognizeWith",this)||(t=J(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(r(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(r(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=we},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(we|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=we);this.state&(ve|ye|we)&&(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),o=this.attrTest(t);return i&&(n&jt||!o)?e|ye:i||o?n&Pt?e|ge:e&pe?e|me:pe:we}}),l(et,tt,{defaults:{event:"pan",threshold:10,pointers:1,direction:qt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Nt&&e.push(de),t&Rt&&e.push(ce),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,o=t.direction,r=t.deltaX,s=t.deltaY;return o&e.direction||(e.direction&Nt?(o=0===r?Lt:r<0?Dt:Ft,n=r!=this.pX,i=Math.abs(t.deltaX)):(o=0===s?Lt:s<0?Mt:Ot,n=s!=this.pY,i=Math.abs(t.deltaY))),t.direction=o,n&&i>e.threshold&&o&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,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(Pt|jt)&&!r)this.reset();else if(t.eventType&_t)this.reset(),this._timer=o(function(){this.state=ve,this.tryEmit()},e.time,this);else if(t.eventType&Pt)return ve;return we},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(ot,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(rt,tt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Nt|Rt,pointers:1},getTouchAction:function(){return et.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Nt|Rt)?e=t.overallVelocity:n&Nt?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&>(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,r=t.deltaTime<e.time;if(this.reset(),t.eventType&_t&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=Pt)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||j(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=o(function(){this.state=ve,this.tryEmit()},e.interval,this),pe):ve}return we},failTimeout:function(){return this._timer=o(function(){this.state=we},this.options.interval,this),we},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:[[ot,{enable:!1}],[nt,{enable:!1},["rotate"]],[rt,{direction:Nt}],[et,{direction:Nt},["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 be=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:be},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,o=e.curRecognizer;(!o||o&&o.state&ve)&&(o=e.curRecognizer=null);for(var r=0;r<i.length;)n=i[r],e.stopped===xe||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(t),!o&&n.state&(pe|me|ge)&&(o=e.curRecognizer=n),r++}},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(r(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(r(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:jt,STATE_POSSIBLE:fe,STATE_BEGAN:pe,STATE_CHANGED:me,STATE_ENDED:ge,STATE_RECOGNIZED:ve,STATE_CANCELLED:ye,STATE_FAILED:we,DIRECTION_NONE:Lt,DIRECTION_LEFT:Dt,DIRECTION_RIGHT:Ft,DIRECTION_UP:Mt,DIRECTION_DOWN:Ot,DIRECTION_HORIZONTAL:Nt,DIRECTION_VERTICAL:Rt,DIRECTION_ALL:qt,Manager:lt,Input:S,TouchAction:X,TouchInput:q,MouseInput:M,PointerEventInput:O,TouchMouseInput:W,SingleTouchInput:N,Recognizer:Z,AttrRecognizer:tt,Tap:st,Pan:et,Swipe:rt,Pinch:nt,Rotate:ot,Press:it,on:h,off:f,each:s,merge:wt,extend:yt,assign:dt,inherit:l,bindFn:u,prefixed:b}),(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,r,a){function l(t,e,i){var o,r="$()."+n+'("'+e+'")';return t.each(function(t,l){var u=a.data(l,n);if(u){var c=u[e];
7if(c&&"_"!=e.charAt(0)){var d=c.apply(u,i);o=void 0===o?d:o}else s(r+" is not a valid method")}else s(n+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==o?o:t}function u(t,e){t.each(function(t,i){var o=a.data(i,n);o?(o.option(e),o._init()):(o=new r(i,e),a.data(i,n,o))})}(a=a||e||t.jQuery)&&(r.prototype.option||(r.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,o.call(arguments,1)):(u(this,t),this)},i(a))}function i(t){!t||t&&t.bridget||(t.bridget=n)}var o=Array.prototype.slice,r=t.console,s=void 0===r?function(){}:function(t){r.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],o=0;o<n.length;o++){var r=n[o];i&&i[r]&&(this.off(t,r),delete i[r]),r.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",["de
7sandro-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 o=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(i){e(t,i)&&o.push(t);for(var n=t.querySelectorAll(i),r=0;r<n.length;r++)o.push(n[r])}else o.push(t)}),o},n.debounceMethod=function(t,e,n){n=n||100;var i=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){i.apply(r,e),delete r[o]},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 o=t.console;return n.htmlInit=function(e,i){n.docReady(function(){var r=n.toDashed(i),s="data-"+r,a=document.querySelectorAll("["+s+"]"),l=d
7ocument.querySelectorAll(".js-"+r),u=n.makeArray(a).concat(n.makeArray(l)),c=s+"-options",d=t.jQuery;u.forEach(function(t){var n,r=t.getAttribute(s)||t.getAttribute(c);try{n=r&&JSON.parse(r)}catch(e){return void(o&&o.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=r[t.infiniteScrollGUID];return a.option(e),a}this.element=t,this.options=n.extend({},i.defaults),this.option(e),o&&(this.$element=o(this.element)),this.create()}else console.error("Bad element for InfiniteScroll: "+(s||t))}var o=t.jQuery,r={};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,r[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),o&&this.$element){var r=t+=".infiniteScroll";if(e){var s=o.Event(e);s.type=t,r=s}this.$element.trigger(r,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,o=e.getAttribute("href"),r=0;o&&r<u.length;r++){i=u[r];var s=o.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: "+o)}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 r[this.guid],o&&this.$element&&o.removeData(this.element,"infiniteScroll")},i.throttle=function(t,e){var n,i;return e=e||200,function(){var o=+new Date,r=arguments,s=function(){n=o,t.apply(this,r)}.bind(this);n&&o<n+e?(clearTimeout(i),i=setTimeout(s,e)):s()}},i.data=function(t){var e=(t=n.getQueryElement(t))&&t.infiniteScrollGUID;return e&&r[e]},i.setJQuery=function(t){o=t},n.htmlInit(i,"infinite-scroll"),s._init=function(){},o&&o.bridget&&o.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],r=document.createElement("script");o(i,r),r.innerHTML=i.innerHTML,i.parentNode.replaceChild(r,i)}}function o(t,e){for(var n=t.attributes,i=0;i<n.length;i++){var o=n[i];e.setAttribute(o.name,o.value)}}function r(t,e,n,i,o){var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType=e||"",r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.onload=function(){if(200==r.status)n(r.response);else if(204==r.status)o(r.response);else{var t=new Error(r.statusText);i(t)}},r.onerror=function(){var e=new Error("Network error requesting "+t);i(e)},r.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);r(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 o=t.querySelectorAll(i),r=n(o),s=function(){this.appendItems(o,r),this.isLoading=!1,this.dispatchEvent("append",null,[t,e,o])}.bind(this);this.options.outlayer?this.appendOutlayerItems(r,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 o=e.imagesLoaded||t.imagesLoaded;if(!o)return console.error("[InfiniteScroll] imagesLoaded required for outlayer option"),void(this.isLoading=!1);o(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,o=this.options.path;if("function"==typeof o)if(!this.getPath())return void this.lastPageReached(t,e);if("string"==typeof n?i=n:this.isPathSelector&&(i=o),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 o=document.createElement("a");return e.create.history=function(){this.options.history&&(o.href=this.getAbsolutePath(),(o.origin||o.protocol+"//"+o.host)==location.origin?this.options.append?this.createHistoryAppend():this.createHistoryPageLoad():console.error("[InfiniteScroll] cannot set history with different origin: "+o.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],r=this.getElementScrollY(i);o.href=e,this.scrollPages.push({top:r,path:o.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 o=this.scrollPages[i];if(o.top>=n)break;t=i,e=o}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){r(t,"none")}function o(t){r(t,"block")}function r(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) 8},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){o(this.statusElement),this.hideStatusEventElements(),o(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,fu
8nction(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 o(t,e,r){if(!(this instanceof o))return new o(t,e,r);var s=t;"string"==typeof t&&(s=document.querySelectorAll(t)),s?(this.elements=i(s),this.options=n({},this.options),"function"==typeof e?r=e:n(this.options,e),r&&this.on("always",r),this.getImages(),a&&(this.jqDeferred=new a.Deferred),setTimeout(this.check.bind(this))):l.error("Bad element for imagesLoaded "+(s||t))}function r(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;o.prototype=Object.create(e.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.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 o=n[i];this.addImage(o)}if("string"==typeof this.options.background){var r=t.querySelectorAll(this.options.background);for(i=0;i<r.length;i++){var s=r[i];this.addElementBackgroundImages(s)}}}};var c={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,i=n.exec(e.backgroundImage);null!==i;){var o=i&&i[2];o&&this.addBackground(o,t),i=n.exec(e.backgroundImage)}},o.prototype.addImage=function(t){var e=new r(t);this.images.push(e)},o.prototype.addBackground=function(t,e){var n=new s(t,e);this.images.push(n)},o.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()},o.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)},o.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)}},r.prototype=Object.create(e.prototype),r.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)},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},r.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.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(r.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])},o.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((a=e).fn.imagesLoaded=function(t,e){return new o(this,t,e).jqDeferred.promise(a(this))})},o.makeJQueryPlugin(),o}),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,o){function r(e,r,s){if("undefined"!=typeof document){"number"==typeof(s=t({},o,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"),r=i.write(String(r),e);var a="";for(var l in s)s[l]&&(a+="; "+l,!0!==s[l]&&(a+="="+s[l].split(";")[0]));return document.cookie=e+"="+r+a}}function s(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var e=document.cookie?document.cookie.split("; "):[],o={},r=0;r<e.length;r++){var s=e[r].split("="),a=s.slice(1).join("="),l=n.read(s[0]).replace(/%3D/g,"=");if(o[l]=i.read(a,l),t===l)break}return t?o[t]:o}}return Object.create({set:r,get:s,remove:function(e,n){r(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(o)},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="",o="?",r="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",w="smarttv",b="wearable",x="embedded",C=255,S="Amazon",T="Apple",E="ASUS",k="BlackBerry",$="Browser",I="Chrome",A="Firefox",_="Google",z="Huawei",P="LG",j="Microsoft",L="Motorola",D="Opera",F="Samsung",M="Sony",O="Xiaomi",N="Zebra",R=function(t,e){var n={};
8for(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,C)},V=function(t,n){for(var i,o,s,l,u,c,d=0;d<n.length&&!u;){var h=n[d],f=n[d+1];for(i=o=0;i<h.length&&!u;)if(u=h[i++].exec(t))for(s=0;s<f.length;s++)c=u[++o],typeof(l=f[s])===a&&l.length>0?2==l.length?typeof l[1]==r?this[l[0]]=l[1].call(this,c):this[l[0]]=l[1]:3==l.length?typeof l[1]!==r||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}},X=function(t,n){for(var i in n)if(typeof n[i]===a&&n[i].length>0){for(var r=0;r<n[i].length;r++)if(H(n[i][r],t))return i===o?e:i}else if(H(n[i],t))return i===o?e:i;return t},Y={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,X,{"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?|;
8|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,F],[h,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,F],[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,O],[h,v]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[f,O],[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,L],[h,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,L],[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,M],[h,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,M],[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,S],[h,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,S],[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,j],[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,"
8Essential"],[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,j],[h,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,N],[h,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,N],[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,M],[h,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,j],[h,g]],[/smart-tv.+(samsung)/i],[f,[h,w]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,F],[h,w]],[/(?:nux; netcast.+smarttv|lg netcast\.tv-201\d)/i],[[f,P],[h,w]],[/(apple) ?tv/i],[f,[c,T+" TV"],[h,w]],[/crkey/i],[[c,I+"cast"],[f,_],[h,w]],[/droid.+aft(\w)( bui|\))/i],[c,[f,S],[h,w]],[/\(dtv[\);].+(aquos)/i],[c,[f,"Sharp"],[h,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,U],[c,U],[h,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,w]],[/((pebble))app/i],[f,c,[h,b]],[/droid.+; (glass) \d/i],[c,[f,_],[h,b]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,N],[h,b]],[/(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,X,Y]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[p,X,Y]],[/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,o){if(typeof n===a&&(o=n,n=e),!(this instanceof Z))return new Z(n,o).getResult();var r=n||(typeof t!==s&&t.navigator&&t.navigator.userAgent?t.navigator.userAgent:i),u=o?R(G,o):G;return this.getBrowser=function(){var t={};return t[d]=e,t[p]=e,V.call(t,r,u.browser),t.major=B(t.version),t},this.getCPU=function(){var t={};return t[m]=e,V.call(t,r,u.cpu),t},this.getDevice=function(){var t={};return t[f]=e,t[c]=e,t[h]=e,V.call(t,r,u.device),t},this.getEngine=function(){var t={};return t[d]=e,t[p]=e,V.call(t,r,u.engine),t},this.getOS=function(){var t={};return t[d]=e,t[p]=e,V.call(t,r,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 r},this.setUA=function(t){return r=typeof t===l&&t.length>C?U(t,C):t,this},this.setUA(r),this};Z.VERSION=n,Z.BROWSER=q([d,p,u]),Z.CPU=q([m]),Z.DEVICE=q([c,f,h,g,v,w,y,b,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===r&&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();
8for(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},isTouchOnlyDevice:function(){return window.matchMedia("(hover: none) and (pointer: coarse)").matches}}}.call(this),function(t,e){var n,i=t.jQuery||t.Cowboy||(t.Cowboy={});i.throttle=n=function(t,n,o,r){function s(){function i(){l=+new Date,o.apply(u,d)}function s(){a=e}var u=this,c=+new Date-l,d=arguments;r&&!a&&i(),a&&clearTimeout(a),r===e&&c>t?i():!0!==n&&(a=setTimeout(r?s:i,r===e?t-c:t))}var a,l=0;return"boolean"!=typeof n&&(r=o,o=n,n=e),i.guid&&(s.guid=o.guid=o.guid||i.guid++),s},i.debounce=function(t,i,o){return o===e?n(t,i,!1):n(t,o,!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},o=function(){return!(!("matchMedia"in t)||!t.matchMedia("(prefers-reduced-motion)").matches)},r=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,o=-1,r="",s=n.charCodeAt(0);++o<i;){if(0===(e=n.charCodeAt(o)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");e>=1&&e<=31||127==e||0===o&&e>=48&&e<=57||1===o&&e>=48&&e<=57&&45===s?r+="\\"+e.toString(16)+" ":r+=e>=128||45===e||95===e||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?n.charAt(o):"\\"+n.charAt(o)}return"#"+r},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,o){var r=0;if(e.offsetParent)do{r+=e.offsetTop,e=e.offsetParent}while(e);return r=Math.max(r-n-i,0),o&&(r=Math.min(r,l()-t.innerHeight)),r},c=function(t){return t?r(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,o){if(n.emitEvents&&"function"==typeof t.CustomEvent){var r=new CustomEvent(e,{bubbles:!0,detail:{anchor:i,toggle:o}});document.dispatchEvent(r)}};return function(r,g){var v,y,w,b,x={};x.cancelScroll=function(t){cancelAnimationFrame(b),b=null,t||m("scrollCancel",v)},x.animateScroll=function(n,r,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 C=t.pageYOffset;h.header&&!w&&(w=document.querySelector(h.header));var S,T,E,k=c(w),$=g?n:u(y,k,parseInt("function"==typeof h.offset?h.offset(n,r):h.offset,10),h.clip),I=$-C,A=l(),_=0,z=d(I,h),P=function(e,i){var o=t.pageYOffset;
8if(e==i||o==i||(C<i&&t.innerHeight+o)>=A)return x.cancelScroll(!0),p(n,i,g),m("scrollStop",h,n,r),S=null,b=null,!0},j=function(e){S||(S=e),_+=e-S,E=C+I*a(h,T=(T=0===z?0:_/z)>1?1:T),t.scrollTo(0,Math.floor(E)),P(E,$)||(b=t.requestAnimationFrame(j),S=e)};0===t.pageYOffset&&t.scrollTo(0,0),f(n,g,h),o()?t.scrollTo(0,Math.floor($)):(m("scrollStart",h,n,r),x.cancelScroll(!0),t.requestAnimationFrame(j))}};var C=function(e){if(!e.defaultPrevented&&!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey)&&"closest"in e.target&&(y=e.target.closest(r))&&"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))}},S=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",C,!1),t.removeEventListener("popstate",S,!1),x.cancelScroll(),v=null,y=null,w=null,b=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||{}),w=v.header?document.querySelector(v.header):null,document.addEventListener("click",C,!1),v.updateURL&&v.popstate&&t.addEventListener("popstate",S,!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,o,r,s,a;for(a=[],i=0,o=(s=["webkit","moz","MS","o",""]).length;i<o;i++)(r=s[i])||(e=e.toLowerCase()),a.push(t.on(""+r+e,n));return a},window.oneCSSAnimationEvent=function(t,e,n){var i,o,r,s,a;for(a=[],i=0,o=(s=["webkit","moz","MS","o",""]).length;i<o;i++)(r=s[i])||(e=e.toLowerCase()),a.push(t.one(""+r+e,n));return a},window.openCentered=function(t,e,n,i){var o,r;return o=window.top.outerWidth/2+window.top.screenX-n/2,r=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="+o+", top="+r)},window.isExternalLink=function(e){var n,i,o;try{return("http:"===(n=(o=new URL(e)).protocol)||"https:"===n)&&(i=o.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,o,r;return i=this[t](),o=$.debounce(e,(r=this,function(){var e;if((e=r[t]())!==i)return i=e,n()})),$window.on("resize",function(){return o()})},$.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.Authorization={paramName:"authorized",cookieName:"authorized",status:null,init:function(){if(new URLSearchParams(window.location.search).get(this.paramName))return Cookies.set(this.cookieName,!0,{expires:7300}),this.redirectToUrlWithoutAuthParam()},isActive:function(){return this.status||(this.status=!!Cookies.get(this.cookieName))},redirectToUrlWithoutAuthParam:function(){var t;return(t=new URL(location)).searchParams.delete(this.paramName),window.location=t.href}}}.call(this),function(){window.AdminLink={init:function(t){if(null==t&&(t="[data-role~=admin-link]"),Authorization.isActive())return $(t).addClass("is-visible")}}}.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&&!("undefined"!=typeof Authorization&&null!==Authorization?Authorization.isActive():void 0))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), 9this._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 js-pswp-item"></div>\n <div class="pswp__item js-pswp-item"></div>\n <div class="pswp__item js-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">\n </button>\n <button class="pswp__button pswp__button--arrow--right">\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.viewportHe
9ight=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.galleryFollower={init:function(t,e){return this.$galleryEl=t,this.$allItems=this.$galleryEl.find(e)},follow:function(t){var e,n,i,o,r,s,a;return s=(n=this.$allItems.eq(t)).offset(),r=n.outerHeight(!0),a=window.innerHeight,o=((null!=s?s.top:void 0)||0)+r/2-a/2,i=o+a,e=$(),this.$allItems.each(function(t,n){var r,s,a;if((s=(null!=(a=(r=$(n)).offset())?a.top:void 0)||0)+r.outerHeight(!0)>o&&s<i)return e=e.add(r)}),e.find("img").each(function(t,e){return e.classList.contains("lazyunload")&&(e.classList.remove("lazyunload"),e.classList.add("deferlazyunload")),lazySizes.loader.unveil(e)})},clear:function(){return this.$galleryEl.find("img.deferlazyunload").removeClass("deferlazyunload").addClass("lazyunload")}},e.prototype.pswp=null,e.prototype.shouldChangeHistory=!0,e.prototype.isFirstResize=!0,e.prototype.itemsArray=null,e.prototype.galleryFollowerTimer=null,e.prototype.defaults={selector:"> *",supportedVersions:[640,1280,1920,2560,3072,3584,4096],initialZoom:!1,history:!0,galleryUniqId:1,galleryFollower:!0,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&&$window.on("popstate",this._popStateHandler),this.options.galleryFollower)return this.galleryFollower.init(this.$el,this.options.selector)},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,o;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],indirectClose:!0},this.options.initialZoom?i.getThumbBoundsFn=(o=this,function(t){var e,n,i;return e=$(o.$el.find(o.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,o,r,s;if(t.versionSelector.init(t.pswp),t.isFirstResize)return t.isFirstResize=!1;for(s=[],e=0,i=(o=t.pswp.itemHolders).length;e<i;e++)(null!=(r=(n=o[e]).item)?r.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;return n.versions?(i=t.versionSelector.select(n.versions),n.src=i.src,n.w=i.w,n.h=i.h):n.autoPlayHtml?n.html=t._buildVideoDirectHtml():n.videoUrl?n.html=t._buildVideoIframeHtml():void 0}}(this)),this.pswp.listen("beforeChange",function(t){return function(e){var n;return e&&(t.options.galleryFollower&&(t.galleryFollowerTimer&&clearTimeout(t.galleryFollowerTimer),t.galleryFollowerTimer=setTimeout(function(){return t.galleryFollower.follow(t.pswp.getCurrentIndex())},1500)),$document.trigger("global:change-gallery",t.pswp.currItem.pieceId)),null!=t.pswp.currItem.container&&null!=(n=t.pswp.framework.getChildByClass(t.pswp.currItem.container,"pswp__img--placeholder--blank"))&&(n.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),t._disableSwipeInVideo(t.pswp.currItem)}}(this)),this.pswp.listen("close",function(t){return function(){return t._resetItemStop(t.pswp.currItem),delay(13,function(){return t.options.galleryFollower&&t.galleryFollower.clear(),$document.trigger("global:close-gallery",t.pswp.currItem.pieceId)})}}(this)),this.pswp.listen("destroy",function(t){return function(){return t.galleryFollowerTimer&&clearTimeout(t.galleryFollowerTimer),t.$pswpElement.remove(),t.$pswpElement=null,t.pswp=null}}(this)),this._initHistory(),this.pswp.init();this.pswp.goTo(t)},e.prototype._disableSwipeInVideo=function(t){var e,n,i;if(null!=(null!=t?t.autoPlayHtml:void 0)&&BrowserDetector.isBrowser("Safari")&&(i=null!=(e=t.container)?e.querySelector("video"):void 0))return n=function(t){return t.stopPropagation()},i.addEventListener("pointerdown",n)},e.prototype._closePhotoSwipe=function(){if(null!=this.pswp)return $document.trigger("global:close-modal"),this.pswp.reallyClose()},e.prototype._buildVideoIframeHtml=function(){return'<div class="pswp__video-wrap">\n <div class="pswp__iframe-wrap">\n <div class="pswp__iframe-container">\n <iframe controls src="" frameborder="0"\n allow="autoplay; fullscreen; picture-in-picture; encrypted-media;"\n allowfullscreen></iframe>\n </div>\n </div>\n</div>'},e.prototype._buildVideoDirectHtml=function(){return'<div class="pswp__video-wrap">
9\n <div data-role="gallery-embed-content" class="pswp__embed-content">\n </div>\n</div>'},e.prototype._getItemsArray=function(){var t,e,n,i,o,r,s,a;for(a=[],e=0,o=(s=this.$el.find(this.options.selector)).length;e<o;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"),autoPlayHtml:t.data("gallery-autoplay-html")},this.options.initialZoom&&t.find("img, video").attr("src")&&!(r=t.find("img, video").attr("src")).match(/^data:/)&&(i.msrc=r),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){return null!=(null!=t?t.autoPlayHtml:void 0)?this._resetEmbed(t.container,""):null!=(null!=t?t.videoUrl:void 0)?this._resetIframe(t.container,""):void 0},e.prototype._resetItemStart=function(t){return null!=(null!=t?t.autoPlayHtml:void 0)?this._resetEmbed(t.container,t.autoPlayHtml):null!=(null!=t?t.autoPlayUrl:void 0)?this._resetIframe(t.container,t.autoPlayUrl):void 0},e.prototype._resetEmbed=function(t,e){return t.querySelector("[data-role=gallery-embed-content]").innerHTML=e},e.prototype._resetIframe=function(t,e){var n,i;return(i=(n=t.getElementsByTagName("iframe")[0]).cloneNode()).src=e,n.parentNode.replaceChild(i,n)},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,o;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!=(o=i.history)?o.start():void 0}}(this)),this.pswp.listen("indirectCloseInitiated",function(){return history.back()})},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,o,r,s,a;for(o=this.$items.first().width(),a=[],n=0,r=(s=this.$items).length;n<r;n++)i=s[n],(e=(t=$(i)).data("aspect"))>=1||a.push(t.find(".js-lazy-image").css({width:o*e}));return a},t}()}.call(this),function(){window.PhoneInput=function(){function t(t){this.$input=t,this.bindEvents()}return t.prototype.maxDigitsCount=15,t.prototype.bindEvents=function(){var t;return this.$input.on("input",(t=this,function(){var e;return e=t.$input.val(),t.$input.val(t.normalizeValue(e))})),this.$input.on("blur",function(t){return function(){return t.clearIfEmpty()}}(this))},t.prototype.normalizeValue=function(t){var e;return t="+"+(t=(t=t.replace(/[^\d+\s()\-\u2013]/g,"")).replace(/\+/g,"")),e=this.maxDigitsCount,t=t.split("").filter(function(t){return!(/\d/.test(t)&&e--<=0)}).join("")},t.prototype.clearIfEmpty=function(){if(0===this.countDigits(this.$input.val()))return this.$input.val("")},t.prototype.countDigits=function(t){var e;return(null!=(e=t.match(/\d/g))?e.length:void 0)||0},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,o;for(e=t=0,n=(i=$.map(this.$pieces,(o=this,function(t){return parseInt($(t).offset().left-o.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,o;this.$el=t,null==e&&(e={}),n={columnsInRow:3,landscapeColumns:1.5,portraitColumns:1,pad:20},this.options=$.extend({},n,e),this.columnsInRow=this.options.columnsInRow,this.$items=this.$el.children(),this.itemsLength=this.$items.length,i=this.buildRows(),this.renderRows(i),this.$el.onResize("width",500,(o=this,function(){var t;return t=$document.scrollTop(),o.renderRows(i),$document.scrollTop(t)}))}return t.prototype.landscapeMinAspect=1.02,t.prototype.buildRows=function(){var t,e,n,i,o,r,s,a,l;for(l=[],n=0,i=r=0,s=(a=this.$items).length;r<s;
9i=++r){if(o=a[i],t=$(o),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,o;for(e=0,i=0,o=t.length;i<o;i++)n=t[i],e+=this.columnsForAspect($(n).data("aspect"));return e>=this.columnsInRow},t.prototype.columnsForAspect=function(t){return t>this.landscapeMinAspect?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.columnsInRow&&(0!==i&&(!(e.data("aspect")>this.landscapeMinAspect&&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,o,r,s,a,l,u,c,d,h,f,p,m,g,v,y,w,b,x,C;for(o=this.$el.outerWidth(),this.$items.css({width:"",top:"",left:""}),b=t.length,x=0,g=[],m=s=0,c=t.length;s<c;m=++s){for(w=(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(C=(w-1)*this.options.pad,r=l=0,h=v.length;l<h;r=++l)e=v[r],n=parseFloat(e.data("aspect")),f=(p=(o-C)*(parseFloat(e.data("aspect"))/i).toFixed(6))/n,e.css({position:"absolute",width:p,top:x,left:u}),u+=p,r!==w-1&&(u+=this.options.pad),y=f;x+=y,m!==b-1&&(x+=this.options.pad),g.push(this.$el.css({height:x}))}return g},t}()}.call(this),function(){window.StoryboardAdapter=function(){function t(t,e){var n;this.$el=t,null==e&&(e={}),n=this.columnsConfig[e.columns]||{},delete e.columns,new Storyboard(this.$el,Object.assign({columnsInRow:n.columnsInRow,landscapeColumns:n.landscapeColumns,portraitColumns:n.portraitColumns},e))}return t.prototype.columnsConfig={1:{columnsInRow:1,landscapeColumns:1.5,portraitColumns:1},"1-2":{columnsInRow:1.5,landscapeColumns:1.5,portraitColumns:1},2:{columnsInRow:2,landscapeColumns:1,portraitColumns:1},"2-3":{columnsInRow:2.5,landscapeColumns:1.5,portraitColumns:1},3:{columnsInRow:3,landscapeColumns:1,portraitColumns:1},"3-4":{columnsInRow:3.5,landscapeColumns:1.5,portraitColumns:1}},t}()}.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,o;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 o=parseInt(t.slice(0,2),16),i=parseInt(t.slice(2,4),16),n=parseInt(t.slice(4,6),16),e?.299*o+.587*i+.114*n>186?"#000000":"#FFFFFF":(o=(255-o).toString(16),i=(255-i).toString(16),n=(255-n).toString(16),"#"+Helpers.padZero(o)+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,o;return null==e&&(e=0),n=$(t),i=$window.scrollTop()+((null!=(o=window.visualViewport)?o.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,o;return o=(new Date).getTime(),n=function(){return(new Date).getTime()-o>=t?e.call():i.value=window.requestAnimationFrame(n)},(i={}).value=window.requestAnimationFrame(n),i},requestInterval:function(t,e){var n,i,o;return o=(new Date).getTime(),n=function(){if(i.value=requestAnimationFrame(n),(new Date).getTime()-o>=t)return e.call(),o=(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.Comparison=function(){function t(t,e){var n;this.$container=t,null==e&&(e={}),n={dragAnywhere:!0,dragArrows:!0,dragClass:"drag",imageSelector:".js-lazy-image",beforeSelector:".before",afterSelector:".after",heightResize:!0},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(){if(this.$drag=$("<span>").addClass(this.options.dragClass).appendTo(this.$container),this.options.dragArrows)return $("<span>
9").addClass("left-arrow").appendTo(this.$drag),$("<span>").addClass("right-arrow").appendTo(this.$drag)},t.prototype.addEventListeners=function(){var t,e,n,i;return t=$(window),e=this.onDrag.bind(this),n=this.onTap.bind(this),this.$eventListener.on("mousedown touchstart",n),this.$eventListener.on("mousedown touchstart",(i=this,function(){return t.on("mousemove touchmove",e),t.one("mouseup touchend",function(n){return i.onDragEnd(n),t.off("mousemove touchmove",e)})})),t.on("resize",$.throttle(50,function(t){return function(){return t.setDimensions(),t.requestDrag()}}(this)))},t.prototype.setDimensions=function(){var t,e,n,i,o,r,s,a,l,u;return e=this.$before.find(this.options.imageSelector),t=this.$after.find(this.options.imageSelector),(n=e.add(t)).css({width:"",height:""}),this.$container.css({width:"",height:""}),a=this.$container.outerWidth(),o=e.data("aspect"),i=t.data("aspect"),u=Math.min(o,i),l=Math.max(o,i),s=a/(r=u<=1&&l>=1?1:l),this.options.heightResize&&(this.$container.css({height:s}),a=(s=Math.min(s,this.$container.outerHeight()))*r),this.$container.css({height:s,width:a}),this.containerOffsetLeft=this.$container.offset().left,n.css({width:a,height:s}),this.dragWidth=this.$drag.outerWidth(),this.minLeftPos=this.containerOffsetLeft,this.maxLeftPos=this.containerOffsetLeft+a},t.prototype.onTap=function(t){return t.preventDefault(),this.options.dragAnywhere&&(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){var e;if((null!=(e=t.originalEvent)?e.touches:void 0)||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.ActiveMenu={init:function(){var t,e,n,i,o;for(o=[],t=0,n=(i=window.currentItemsIds).length;t<n;t++)e=i[t],o.push($(".js-menu-item[data-item-id="+e+"]").addClass("-active"));return o}}}.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,o,r,s;if(null==e&&(e={}),r={scrollableSelector:"html, body",scrollingSelector:window,threshold:1e3},e=$.extend({},r,e),(n=$(t)).length)return i=$(e.scrollableSelector),o=$(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)}),o.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;
9if(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.initPhoneInput(t),this.initMessages(t)},doPreflight:function(t){return $.ajax({url:t.data("preflight-url"),method:"POST",data:{preflight_path:window.location.pathname},success:function(e){return t.find(".js-preflight-token, .js-preflight-path").remove(),$("<input type='hidden' name='preflight_token' class='js-preflight-token'>").val(e.token).appendTo(t),$("<input type='hidden' name='preflight_path' class='js-preflight-path'>").val(window.location.pathname).appendTo(t),t.data("preflight-done",!0).submit()},error:(e=this,function(){return e.toggleFormSubmit(t,!1),e.showTransientErrorMessage(t)})});var e},initAjaxForm:function(t){return t.ajaxForm({beforeSubmit:(e=this,function(){return t.data("preflight-url")?t.data("preflight-done")?(t.removeData("preflight-done"),!0):(e.toggleFormSubmit(t,!0),e.doPreflight(t),!1):e.toggleFormSubmit(t,!0)}),success:function(e){return function(n){return e.toggleFormSubmit(t,!1),e.showSuccessMessage(t),e.resetForm(t),e.setSuccessHash(),t.trigger("form:success",n)}}(this),error:function(e){return function(n){return e.toggleFormSubmit(t,!1),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)},initPhoneInput:function(t){var e;if((e=t.find(".js-phone-input")).length)return new PhoneInput(e)},toggleFormSubmit:function(t,e){var n,i;if((n=t.find("button[type=submit]")).prop("disabled")!==e)return i=n.attr("value"),n.prop("disabled",e).attr("value",n.data("disable")).data("disable",i)},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,o;return t.find(".js-message").hide(),(o=t.find(".js-error-message")).find(".js-error-header").text(e),(i=o.find(".js-errors-list")).html(""),$.each(n,function(){return i.append($("<li>").text(this))}),o.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,o,r;if((t=$(".js-gallery")).length){for(o=i=0,r=t.length;i<r;o=++i)n=t[o],e=$(n),(n=new Gallery({selector:".js-gallery-link",initialZoom:e.data("gallery-initial-zoom"),galleryUniqId:o+1,galleryFollower:!1!==e.data("gallery-follower")})).start(e);return this.bindEvents(),this.applyHacks()}},bindEvents:function(){return $document.on("global:download",function(t,e){return $.ajax({url:e.url,method:"GET"})}),this.initScrollToPiece()},applyHacks:function(){if(BrowserDetector.isOS("iOS"))return document.addEventListener("pointerdown",function(){})},initScrollToPiece:function(){return $document.on("global:close-gallery",function(t,e){var n,i,o,r,s;if(s=null!=(i=$("[id=piece-"+e+"]"))&&null!=(o=i.offset())?o.top:void 0)return r=("function"==typeof(n=Theme.Initializer).scrollOffset?n.scrollOffset():void 0)||0,window.scrollTo({top:s-r})})}}}
9.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.isOpen=!0,$("html").addClass("-locked"),requestAnimationFrame((t=this,function(){return requestAnimationFrame(function(){return t.$modal.addClass("-open"),delay(300,function(){return t.$modal.trigger("modal:after-open")})})}));var t},t.prototype.close=function(){return this.$modal.removeClass("-open"),this.isOpen=!1,$("html").removeClass("-locked"),delay(300,(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(){ 10if(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.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")}}
10(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.$priceValue=this.$form.find(".js-product-price"),this.$oldPriceContainer=this.$form.find(".js-product-old-price-container"),this.$oldPriceValue=this.$form.find(".js-product-old-price"),this.initForm(),this.refreshProductPrice()},initForm:function(){var t;return this.$form.on("input change",".js-product-quantity",(t=this,function(e){return t.setProductPrice($(e.currentTarget).val())})),this.$form.on("select change",".js-product-variants",function(t){return function(e){var n,i;return i=$(e.target)[0],n=$(i.selectedOptions[0]),t.updatePriceForOption(n)}}(this))},refreshProductPrice:function(){return this.setProductPrice(this.productQuantity())},updatePriceForOption:function(t){var e,n;return n=t.data("price"),e=t.data("old-price"),this.$priceValue.data("product-price",n),this.$oldPriceValue.data("product-old-price",e||null),this.refreshProductPrice()},productQuantity:function(){return this.$form.find(".js-product-quantity").val()},setProductPrice:function(t){var e,n;if(this.$priceValue.length)return n=this.$priceValue.data("product-price"),e=this.$oldPriceValue.data("product-old-price"),$.isNumeric(t)||(t=1),this.$priceValue.text((n*t).formatPrice()),e?(this.$oldPriceValue.text((e*t).formatPrice()),this.$oldPriceContainer.show()):this.$oldPriceContainer.hide()}}}.call(this),function(){window.AnalyticsLoader={loaded:!1,init:function(){return this.parseConfig(),this.loadIfAllowed()},parseConfig:function(){var t,e;if(!window.analyticsConfig&&(null!=(t=document.querySelector('script[data-role="analytics-config"]'))&&null!=(e=t.textContent)?e.trim():void 0))return window.analyticsConfig=JSON.parse(t.textContent)},loadIfAllowed:function(){var t;if(!this.loaded&&!window.previewMode&&(t=window.analyticsConfig)&&this.consentGranted(t))return this.load(t)},consentGranted:function(t){return!t.trackingEnabled||CookieJar.get(t.consentCookieName)==="accepted:"+t.consentVersion},load:function(t){var e,n,i,o;if(!this.loaded)return this.loadGoogleAnalytics(null!=(e=t.providers)?e.googleAnalytics:void 0),this.loadYandexMetrika(null!=(n=t.providers)?n.yandexMetrika:void 0),this.loadFacebookPixel(null!=(i=t.providers)?i.facebookPixel:void 0),this.loadVkPixel(null!=(o=t.providers)?o.vkPixel:void 0),this.loaded=!0},loadGoogleAnalytics:function(t){if(null!=t?t.trackingId:void 0)return this.appendExternalScript("https://www.googletagmanager.com/gtag/js?i
10d="+encodeURIComponent(t.trackingId)),window.dataLayer=window.dataLayer||[],window.gtag=function(){return window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",t.trackingId)},loadYandexMetrika:function(t){var e;if((null!=t?t.trackingId:void 0)&&(e=Number(t.trackingId),Number.isInteger(e)))return window.ym=window.ym||function(){return(window.ym.a=window.ym.a||[]).push(arguments)},window.ym.l=1*new Date,this.appendExternalScript("https://mc.yandex.ru/metrika/tag.js"),window.ym(e,"init",{clickmap:!0,trackLinks:!0,accurateTrackBounce:!0,webvisor:!navigator.userAgent.match(/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile/),ut:"noindex"})},loadFacebookPixel:function(t){if(null!=t?t.pixelId:void 0)return window.fbq||(window.fbq=function(){return window.fbq.callMethod?window.fbq.callMethod.apply(window.fbq,arguments):window.fbq.queue.push(arguments)},window._fbq=window.fbq,window.fbq.push=window.fbq,window.fbq.loaded=!0,window.fbq.version="2.0",window.fbq.queue=[],this.appendExternalScript("https://connect.facebook.net/en_US/fbevents.js")),window.fbq("consent","grant"),window.fbq("init",t.pixelId),window.fbq("track","PageView")},loadVkPixel:function(t){if((null!=t?t.pixelId:void 0)&&(window._tmr=window._tmr||[],window._tmr.push({id:t.pixelId,type:"pageView",start:(new Date).getTime()}),!document.getElementById("tmr-code")))return this.appendExternalScript("https://top-fwz1.mail.ru/js/code.js","tmr-code")},appendExternalScript:function(t,e){var n;return null==e&&(e=null),(n=document.createElement("script")).async=!0,n.src=t,null!=e&&(n.id=e),document.head.appendChild(n)}}}.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.consentCookieName=this.$informer.data("informer-consent-cookie-name"),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(){var t;return this.$informer.on("click",".js-close",(t=this,function(){return t.hide(),t.setCookie()})),this.$informer.on("click",".js-accept",function(t){return function(){return t.setConsentCookie(),t.hide(),t.setCookie(),AnalyticsLoader.loadIfAllowed()}}(this)),this.$informer.on("click",".js-reject",function(t){return function(){return t.setRejectedConsentCookie(),t.hide(),t.setCookie()}}(this))},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.setConsentCookie=function(){if(!window.previewMode)return CookieJar.set(this.consentCookieName,"accepted:"+this.cookieTimestamp,{expires:this.cookieExpires})},t.prototype.setRejectedConsentCookie=function(){if(!window.previewMode)return CookieJar.set(this.consentCookieName,"rejected:"+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,o,r;if((o=(i=$(n)).data("aspect"))<1)return r=t*o,i.css("max-width",r)})},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;
101<=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,o;return t=this.options.delay/4,e=this.options.delay/10,o=(n=Math.random())>.5?1:-1,i=n*(t-e)+e,this.options.delay+i*o},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(){if(this.searchField=$(".js-search-field"),this.searchField.length)return this.searchTargets=$(this.searchField.data("search-target")),this.searchEmpty=$(".js-search-empty"),this.clearButton=$(".js-clear-search"),this.updateSearchResults(),this.bindEvents()},bindEvents:function(){var t;return $document.on("input",this.searchField,(t=this,function(){return t.updateSearchResults()})),this.searchField.on("keydown",function(t){if("Enter"===t.key)return t.preventDefault()}),this.clearButton.on("click",function(t){return function(){return t.searchField.val("").trigger("focus"),t.updateSearchResults()}}(this))},updateSearchResults:function(){var t;return this.searchTargets.each((t=this,function(e,n){var i,o;return o=(i=$(n)).data("search-val").toString().toLowerCase(),i.toggleClass("-hidden",-1===o.indexOf(t.searchFieldVal()))})),this.toggleEmptyState(this.searchFieldVal()),this.toggleClearButton(),$document.trigger("search:update")},toggleEmptyState:function(t){var e,n;if(this.searchEmpty.length)return n=this.searchTargets.filter(":not(.-hidden)").length,e=0===t.length||n>0,this.searchEmpty.toggleClass("-hidden",e)},toggleClearButton:function(){if(this.clearButton.length)return this.clearButton.toggleClass("-hidden",0===this.searchField.val().length)},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>
10',vk:'<a class="share-social-button -vk" target="_blank" data-no-track="true"\n onclick="openCentered(\'https://vk.ru/share.php?url=%{encodedUrl}\', \'share\', 650, 570); return false;"\n href="https://vk.ru/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,o,r;return this.isNativeSharing?navigator.share({url:t,title:e}):(r=this.socialButtons(t).join(""),i=$(this.template.format({url:t,socialButtons:r})),(n?$(n):$("body")).append(i),o=new Modal(i),$document.one("global:close-modal",function(){return i.trigger("modal:close")}),i.on("modal:after-close",function(){return i.remove()}),o.open())},socialButtons:function(t){var e,n,i,o,r,s;for(s=[],e=0,i=(o=window.sharingSocialNetworks).length;e<i;e++)n=o[e],s.push(null!=(r=this.socialButtonsTemplates[n])?r.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,o,r,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:i})),r=this.$sliderViewport.outerHeight(),o=s/r,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,r))*l:"fill"===a.options.mode?o>l?i=(d=s)/l:d=(i=r)*l:l>1&&l>o?i=(d=Math.min(c,s))/l:d=(i=Math.min(u,r))*l,n.css({width:Math.round(d),height:Math.round(i)})}))},t.prototype.showSlide=function(t,e){var n,i,o;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!=(o=this.counter)&&o.text(t+"/"+this.slidesTotal),this.$slider.trigger("slider:show-sli
10de",{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.isAnimationPause="pause"===this.options.animation,this.isAnimationContinuous="continuous"===this.options.animation,this.skipNextFrame=!1,this.margin=parseInt(this.$slides.first().css("margin-right")),this.isAnimationContinuous||this.bindStandardEvents(),this.init(),n=$.debounce(500,(i=this,function(){return i.init()})),$window.on("resize",function(){return n()})}return t.prototype.defaults={animation:"none",delay:0,speed:0,shuffle:!1,transitionEase:"ease",transitionSpeed:1500,preloadNextSlide:!0},t.prototype.init=function(){return this.windowWidth=$window.width(),this.stripOuterWidth=this.$strip.outerWidth(),this.relativeTransitionSpeed=this.windowWidth/this.options.transitionSpeed,this.disableSlideTransition(),this.stopAnimation(),this.$slidesContainer.children(".-clone").remove(),this.resizeSlides(),this.firstIndex=0,this.lastIndex=this.slidesCount-1,this.prependClones(),this.appendClones(),this.isAnimationContinuous?this.setupContinuousMode():(this.setupStandardMode(),this.isAnimationPause?this.startPauseAnimation():void 0)},t.prototype.setupStandardMode=function(){return this.positionControls(),this.$slidesWithClones=this.$slidesContainer.children(),this.stripWidth=this.stripOuterWidth/2,this.currentIndex||(this.currentIndex=this.firstIndex),this.transitionInProgress=!1,this.showSlide(this.currentIndex,!0,!1)},t.prototype.setupContinuousMode=function(){return this.speed=this.options.speed/1e3,null==this.continuousScrollPosition&&(this.continuousScrollPosition=(this.windowWidth-this.stripOuterWidth)/2),this.$slidesContainer.css("transform","translateX("+-this.continuousScrollPosition+"px)"),this.startContinuousAnimation()},t.prototype.calculateOriginalContentWidth=function(){return this.originalContentWidth=0,this.$slides.each((t=this,function(e,n){return t.originalContentWidth+=$(n).data("width")+t.margin}));var t},t.prototype.resizeSlides=function(){var t;if(t=this.$strip.outerHeight(),this.$slides.each(function(e,n){var i,o,r,s;return r=(o=(i=$(n)).find(".js-lazy-image")).data("aspect"),s=Math.floor(t*r),o.css({width:s+"px",height:t+"px"}),i.data("width",s)}),this.isAnimationContinuous)return this.calculateOriginalContentWidth()},t.prototype.prependClones=function(){var t,e,n,i;for(i=this.windowWidth/2+this.$slides.first().data("width")/2,e=-1,n=[];i>0;)t=this.$slides.eq(e%this.slidesCount).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.windowWidth/2+this.$slides.last().data("width")/2,e=0,n=[];i>0;)t=this.$slides.eq(e%this.slidesCount).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.bindStandardEvents=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,
10!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,o,r,s,a,l;if(null==n&&(n=!0),o=(i=this.$slidesWithClones.eq(t)).find(".js-lazy-image"),!this.options.preloadNextSlide||o.hasClass("is-loaded")||e){if(this.currentIndex=t,l=this.stripWidth,t>0)for(r=s=0,a=t-1;0<=a?s<=a:s>=a;r=0<=a?++s:--s)l-=this.$slidesWithClones.eq(r).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.stopAnimation=function(){ 11return this.stopPauseAnimation(),this.stopContinuousAnimation()},t.prototype.startPauseAnimation=function(){return this.interval=Helpers.requestInterval(this.options.delay,(t=this,function(){return t.nextSlide()}));var t},t.prototype.stopPauseAnimation=function(){return Helpers.clearRequestTimeout(this.interval)},t.prototype.startContinuousAnimation=function(){if(this.isAnimationContinuous)return this.animationRunning=!0,this.lastTimestamp&&(this.lastTimestamp=performance.now()),this.animationFrame=requestAnimationFrame(this.animateContinuous.bind(this))},t.prototype.stopContinuousAnimation=function(){if(this.animationRunning=!1,this.animationFrame)return cancelAnimationFrame(this.animationFrame),this.animationFrame=null},t.prototype.animateContinuous=function(t){var e;if(this.animationRunning)return this.lastTimestamp?(e=t-this.lastTimestamp,this.lastTimestamp=t,this.continuousScrollPosition+=this.speed*e,this.continuousScrollPosition-(this.windowWidth-this.stripOuterWidth)/2>=this.originalContentWidth&&(this.continuousScrollPosition-=this.originalContentWidth),this.$slidesContainer.css("transform","translateX("+-this.continuousScrollPosition+"px)"),this.animationFrame=requestAnimationFrame(this.animateContinuous.bind(this))):(this.lastTimestamp=t,void(this.animationFrame=requestAnimationFrame(this.animateContinuous.bind(this))))},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.isInternal=this.$section.data("internal"),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.$videoElement=this.generateVideoElement(),this.$section.append(this.$videoElement),this.$placeholder.addClass("is-hidden"),oneCSSAnimationEvent(this.$placeholder,"TransitionEnd",(t=this,function(){return t.$coverImg.hide()}));var t},t.prototype.stopVideo=function(){return this.$videoElement.remove(),this.$coverImg.show(),this.$placeholder.removeClass("is-hidden"),this.isPlaying=!1},t.prototype.generateVideoElement=function(){return this.isInternal?this.generateVideoTag():this.generateIframe()},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.prototype.generateVideoTag=function(){return $("<video class=video>").attr("src",this.sourceUrl).attr("controls",!0).attr("autoplay",!0).attr("playsinline",!0)},t}()}.call(this),function(){window.CommonFeatures={init:function(){return this.initAuthorization(),this.initActiveMenu(),this.initAdminLink(),this.initEventTracking(),this.initPreview(),this.initLazyLoad(),this.initProtector(),this.initExter
11nalLinks(),this.initLinksTarget(),this.initAnchors(),this.initForms(),this.initComments(),this.initCopyLinkButton(),this.initSharing(),this.initWidgets(),this.initOrders(),this.initInformers(),this.initAnalytics(),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()},initAuthorization:function(){return Authorization.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, .js-pswp-item")},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,o;if((t=$(".js-widget")).length){for(i=[],e=0,n=t.length;e<n;e++)o=t[e],i.push(function(t){var e;return e=$(t),$.get(e.data("url"),function(t){return e.html(t),$window.trigger("resize")})}(o));return i}},initInformers:function(){var t,e,n,i,o;if((t=$(".js-informer")).length){for(o=[],e=0,i=t.length;e<i;e++)n=t[e],o.push(new Informer($(n)));return o}},initAnalytics:function(){return AnalyticsLoader.init()},initMarketingInformer:function(){return MarketingInformer.init()},initComparisons:function(){var t,e,n,i,o;if((t=$(".comparison-section")).length){for(o=[],n=0,i=t.length;n<i;n++)e=t[n],o.push(new Comparison($(e)));return o}}
11,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,o,r;if((e=$(".js-slider")).length){for(o=[],n=0,i=e.length;n<i;n++)r=e[n],t=$(r),o.push(new Slider(t,{mode:t.data("mode"),shuffle:t.data("shuffle"),delay:t.data("delay")}));return o}},initMultiSliders:function(){var t,e,n,i,o,r;if((e=$(".js-multi-slider")).length){for(r=[],n=0,i=e.length;n<i;n++)o=e[n],t=$(o),r.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 r}},initStrips:function(){var t,e,n,i,o,r;if((e=$(".js-strip")).length){for(o=[],n=0,i=e.length;n<i;n++)r=e[n],t=$(r),o.push(new Strip(t,{shuffle:t.data("shuffle"),delay:t.data("delay"),speed:t.data("speed"),animation:t.data("animation"),viewportContainer:t.parents(".sections-container").first()}));return o}},initPictureSetSections:function(){return this.initPictureSetMasonrySections(),this.initPictureSetStoryboardSections(),this.initPictureSetLineupSections(),this.initPictureSetHorizontalSections(),this.initPictureSetOriginalsSections()},initPictureSetMasonrySections:function(){var t,e,n,i,o,r;if((e=$(".js-picture-set-section-masonry")).length){for(o=[],n=0,i=e.length;n<i;n++)r=e[n],t=$(r),o.push(t.masonry({itemSelector:".piece"}));return o}},initPictureSetStoryboardSections:function(){var t,e,n,i,o,r;if((e=$(".js-picture-set-section-storyboard")).length){for(o=[],n=0,i=e.length;n<i;n++)r=e[n],t=$(r),o.push(new StoryboardAdapter(t,{columns:t.data("columns"),pad:t.data("pad")}));return o}},initPictureSetLineupSections:function(){var t;if((t=$(".js-picture-set-section-lineup")).length)return $window.on("resize",function(){var e,n,i,o,r,s;for(r=[],i=0,o=t.length;i<o;i++)s=t[i],e=$(s),n=e.outerWidth(),r.push(e.find(".lazy-image").each(function(t,e){var i,o;if((o=(i=$(e)).data("aspect"))<1)return i.css("max-width",n*o)}));return r}),$window.trigger("resize")},initPictureSetHorizontalSections:function(){var t,e,n,i,o,r;if((e=$(".js-picture-set-section-horizontal")).length){for(o=[],n=0,i=e.length;n<i;n++)r=e[n],t=$(r),o.push(new PictureSetHorizontal(t));return o}},initPictureSetOriginalsSections:function(){var t,e,n,i,o,r;if((e=$(".js-picture-set-section-originals")).length){for(o=[],n=0,i=e.length;n<i;n++)r=e[n],t=$(r),o.push(new Originals(t));return o}}
11,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,o,r;if((e=$(".js-questions-list-section")).length){for(o=[],n=0,i=e.length;n<i;n++)r=e[n],t=$(r),o.push(QuestionsList.init(t));return o}},initVideoSections:function(){var t,e,n,i,o,r;if((e=$(".js-video-section")).length){for(o=[],n=0,i=e.length;n<i;n++)r=e[n],t=$(r),o.push(new Video(t));return o}},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.HorizontalMenu={init:function(){var t,e;if(this.$menuItems=$(".js-menu-list > .js-menu-item"),this.$menuItems.length)return t=$.throttle(100,(e=this,function(){return e.updateDividers(),e.updateSubmenuPositions()})),$window.on("resize scroll",t),t()},updateDividers:function(){var t;return this.$menuItems.removeClass("-undotted"),t=null,this.$menuItems.each(function(e,n){var i;return i=$(n),t&&t.offset().top!==i.offset().top&&t.addClass("-undotted"),t=i})},updateSubmenuPositions:function(){var t,e;return(t=this.$menuItems.children(".js-submenu")).removeClass("-align-right"),e=document.documentElement.clientWidth,t.each(function(t,n){if(n.getBoundingClientRect().right>e&&n.parentElement.getBoundingClientRect().left>e/2)return $(n).addClass("-align-right")})}}}.call(this),function(){window.Theme||(window.Theme={}),Theme.Initializer={init:function(){return this.initCommonFeatures(),this.initHorizontalMenu(),this.initBackToTop(),this.initLazyLoad()},initCommonFeatures:function(){return CommonFeatures.init()},initHorizontalMenu:function(){return HorizontalMenu.init()},initBackToTop:function(){return BackToTop.init(".js-back-to-top",{threshold:500})},initLazyLoad:function(){return $document.trigger("initLazyLoad")}},$(function(){return Theme.Initializer.init()})}.call(this);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.