/*!
 * modernizr v3.5.0
 * Build https://modernizr.com/download?-csspositionsticky-csstransforms-dataset-history-touchevents-addtest-mq-teststyles-dontmin
 *
 * Copyright (c)
 *  Faruk Ates
 *  Paul Irish
 *  Alex Sexton
 *  Ryan Seddon
 *  Patrick Kettner
 *  Stu Cox
 *  Richard Herrera
 * MIT License
 */
var DL,timeline;(function(n,t,i){function e(n,t){return typeof n===t}function ft(){var i,n,u,f,o,s,t;for(var c in h)if(h.hasOwnProperty(c)){if(i=[],n=h[c],n.name&&(i.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(u=0;u<n.options.aliases.length;u++)i.push(n.options.aliases[u].toLowerCase());for(f=e(n.fn,"function")?n.fn():n.fn,o=0;o<i.length;o++)s=i[o],t=s.split("."),t.length===1?r[t[0]]=f:(!r[t[0]]||r[t[0]]instanceof Boolean||(r[t[0]]=new Boolean(r[t[0]])),r[t[0]][t[1]]=f),d.push((f?"":"no-")+t.join("-"))}}function et(n){var t=o.className,i=r._config.classPrefix||"",u;c&&(t=t.baseVal);r._config.enableJSClass&&(u=new RegExp("(^|\\s)"+i+"no-js(\\s|$)"),t=t.replace(u,"$1"+i+"js$2"));r._config.enableClasses&&(t+=" "+i+n.join(" "+i),c?o.className.baseVal=t:o.className=t)}function g(n,t){var u,i,f;if(typeof n=="object")for(u in n)v(n,u)&&g(u,n[u]);else{if(n=n.toLowerCase(),i=n.split("."),f=r[i[0]],i.length==2&&(f=f[i[1]]),typeof f!="undefined")return r;t=typeof t=="function"?t():t;i.length==1?r[i[0]]=t:(!r[i[0]]||r[i[0]]instanceof Boolean||(r[i[0]]=new Boolean(r[i[0]])),r[i[0]][i[1]]=t);et([(!!t&&t!=!1?"":"no-")+i.join("-")]);r._trigger(n,t)}return r}function s(){return typeof t.createElement!="function"?t.createElement(arguments[0]):c?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function ot(){var n=t.body;return n||(n=s(c?"svg":"body"),n.fake=!0),n}function y(n,i,r,u){var c="modernizr",e,a,l,v,h=s("div"),f=ot();if(parseInt(r,10))while(r--)l=s("div"),l.id=u?u[r]:c+(r+1),h.appendChild(l);return e=s("style"),e.type="text/css",e.id="s"+c,(f.fake?f:h).appendChild(e),f.appendChild(h),e.styleSheet?e.styleSheet.cssText=n:e.appendChild(t.createTextNode(n)),h.id=c,f.fake&&(f.style.background="",f.style.overflow="hidden",v=o.style.overflow,o.style.overflow="hidden",o.appendChild(f)),a=i(h,n),f.fake?(f.parentNode.removeChild(f),o.style.overflow=v,o.offsetHeight):h.parentNode.removeChild(h),!!a}function st(n,t){return!!~(""+n).indexOf(t)}function ht(n){return n.replace(/([a-z])-([a-z])/g,function(n,t,i){return t+i.toUpperCase()}).replace(/^-/,"")}function ct(n,t){return function(){return n.apply(t,arguments)}}function lt(n,t,i){var r;for(var u in n)if(n[u]in t)return i===!1?n[u]:(r=t[n[u]],e(r,"function"))?ct(r,i||t):r;return!1}function it(n){return n.replace(/([A-Z])/g,function(n,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function at(t,i,r){var u,f,e;return"getComputedStyle"in n?(u=getComputedStyle.call(n,t,i),f=n.console,u!==null?r&&(u=u.getPropertyValue(r)):f&&(e=f.error?"error":"log",f[e].call(f,"getComputedStyle returning null, its possible modernizr test results are inaccurate"))):u=!i&&t.currentStyle&&t.currentStyle[r],u}function vt(t,r){var f=t.length,u;if("CSS"in n&&"supports"in n.CSS){while(f--)if(n.CSS.supports(it(t[f]),r))return!0;return!1}if("CSSSupportsRule"in n){for(u=[];f--;)u.push("("+it(t[f])+":"+r+")");return u=u.join(" or "),y("@supports ("+u+") { #modernizr { position: absolute; } }",function(n){return at(n,null,"position")=="absolute"})}return i}function yt(n,t,r,u){function a(){v&&(delete f.style,delete f.modElem)}var c,v,h,y,o,p,l;if(u=e(u,"undefined")?!1:u,!e(r,"undefined")&&(c=vt(n,r),!e(c,"undefined")))return c;for(l=["modernizr","tspan","samp"];!f.style&&l.length;)v=!0,f.modElem=s(l.shift()),f.style=f.modElem.style;for(y=n.length,h=0;h<y;h++)if(o=n[h],p=f.style[o],st(o,"-")&&(o=ht(o)),f.style[o]!==i){if(u||e(r,"undefined"))return a(),t=="pfx"?o:!0;try{f.style[o]=r}catch(w){}if(f.style[o]!=p)return a(),t=="pfx"?o:!0}return a(),!1}function rt(n,t,i,r,u){var f=n.charAt(0).toUpperCase()+n.slice(1),o=(n+" "+w.join(f+" ")+f).split(" ");return e(t,"string")||e(t,"undefined")?yt(o,t,r,u):(o=(n+" "+b.join(f+" ")+f).split(" "),lt(o,t,i))}function ut(n,t,r){return rt(n,i,i,t,r)}var h=[],u={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(n,t){var i=this;setTimeout(function(){t(i[n])},0)},addTest:function(n,t,i){h.push({name:n,fn:t,options:i})},addAsyncTest:function(n){h.push({name:null,fn:n})}},r=function(){},d,v,l,o,c,nt,tt,p,w,b,k,f,a;r.prototype=u;r=new r;
/*!
{
  "name": "History API",
  "property": "history",
  "caniuse": "history",
  "tags": ["history"],
  "authors": ["Hay Kranen", "Alexander Farkas"],
  "notes": [{
    "name": "W3C Spec",
    "href": "https://www.w3.org/TR/html51/browsers.html#the-history-interface"
  }, {
    "name": "MDN documentation",
    "href": "https://developer.mozilla.org/en-US/docs/Web/API/window.history"
  }],
  "polyfills": ["historyjs", "html5historyapi"]
}
!*/
r.addTest("history",function(){var t=navigator.userAgent;return(t.indexOf("Android 2.")!==-1||t.indexOf("Android 4.0")!==-1)&&t.indexOf("Mobile Safari")!==-1&&t.indexOf("Chrome")===-1&&t.indexOf("Windows Phone")===-1&&location.protocol!=="file:"?!1:n.history&&"pushState"in n.history});d=[],function(){var n={}.hasOwnProperty;v=e(n,"undefined")||e(n.call,"undefined")?function(n,t){return t in n&&e(n.constructor.prototype[t],"undefined")}:function(t,i){return n.call(t,i)}}();l=u._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];u._prefixes=l;o=t.documentElement;c=o.nodeName.toLowerCase()==="svg";u._l={};u.on=function(n,t){this._l[n]||(this._l[n]=[]);this._l[n].push(t);r.hasOwnProperty(n)&&setTimeout(function(){r._trigger(n,r[n])},0)};u._trigger=function(n,t){if(this._l[n]){var i=this._l[n];setTimeout(function(){for(var r,n=0;n<i.length;n++)r=i[n],r(t)},0);delete this._l[n]}};r._q.push(function(){u.addTest=g});
/*!
{
  "name": "CSS position: sticky",
  "property": "csspositionsticky",
  "tags": ["css"],
  "builderAliases": ["css_positionsticky"],
  "notes": [{
    "name": "Chrome bug report",
    "href":"https://code.google.com/p/chromium/issues/detail?id=322972"
  }],
  "warnings": [ "using position:sticky on anything but top aligned elements is buggy in Chrome < 37 and iOS <=7+" ]
}
!*/
r.addTest("csspositionsticky",function(){var n="position:",t="sticky",r=s("a"),i=r.style;return i.cssText=n+l.join(t+";"+n).slice(0,-n.length),i.position.indexOf(t)!==-1});
/*!
{
  "name": "dataset API",
  "caniuse": "dataset",
  "property": "dataset",
  "tags": ["dom"],
  "builderAliases": ["dom_dataset"],
  "authors": ["@phiggins42"]
}
!*/
r.addTest("dataset",function(){var n=s("div");return n.setAttribute("data-a-b","c"),!!(n.dataset&&n.dataset.aB==="c")});nt=function(){var t=n.matchMedia||n.msMatchMedia;return t?function(n){var i=t(n);return i&&i.matches||!1}:function(t){var i=!1;return y("@media "+t+" { #modernizr { position: absolute; } }",function(t){i=(n.getComputedStyle?n.getComputedStyle(t,null):t.currentStyle).position=="absolute"}),i}}();u.mq=nt;tt=u.testStyles=y;
/*!
{
  "name": "Touch Events",
  "property": "touchevents",
  "caniuse" : "touch",
  "tags": ["media", "attribute"],
  "notes": [{
    "name": "Touch Events spec",
    "href": "https://www.w3.org/TR/2013/WD-touch-events-20130124/"
  }],
  "warnings": [
    "Indicates if the browser supports the Touch Events spec, and does not necessarily reflect a touchscreen device"
  ],
  "knownBugs": [
    "False-positive on some configurations of Nokia N900",
    "False-positive on some BlackBerry 6.0 builds – https://github.com/Modernizr/Modernizr/issues/372#issuecomment-3112695"
  ]
}
!*/
r.addTest("touchevents",function(){var i,r;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:(r=["@media (",l.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join(""),tt(r,function(n){i=n.offsetTop===9})),i});p="Moz O ms Webkit";w=u._config.usePrefixes?p.split(" "):[];u._cssomPrefixes=w;b=u._config.usePrefixes?p.toLowerCase().split(" "):[];u._domPrefixes=b;k={elem:s("modernizr")};r._q.push(function(){delete k.elem});f={style:k.elem.style};r._q.unshift(function(){delete f.style});u.testAllProps=rt;u.testAllProps=ut;
/*!
{
  "name": "CSS Transforms",
  "property": "csstransforms",
  "caniuse": "transforms2d",
  "tags": ["css"]
}
!*/
for(r.addTest("csstransforms",function(){return navigator.userAgent.indexOf("Android 2.")===-1&&ut("transform","scale(1)",!0)}),ft(),delete u.addTest,delete u.addAsyncTest,a=0;a<r._q.length;a++)r._q[a]();n.Modernizr=r})(window,document);
/*!
 * jQuery JavaScript Library v3.2.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2017-03-20T18:59Z
 */
(function(n,t){"use strict";typeof module=="object"&&typeof module.exports=="object"?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)})(typeof window!="undefined"?window:this,function(n,t){"use strict";function ir(n,t){t=t||u;var i=t.createElement("script");i.text=n;t.head.appendChild(i).parentNode.removeChild(i)}function fi(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return r==="function"||i.isWindow(n)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in n}function l(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function oi(n,t,r){return i.isFunction(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):typeof t!="string"?i.grep(n,function(n){return ot.call(t,n)>-1!==r}):er.test(t)?i.filter(t,n,r):(t=i.filter(t,n),i.grep(n,function(n){return ot.call(t,n)>-1!==r&&n.nodeType===1}))}function ar(n,t){while((n=n[t])&&n.nodeType!==1);return n}function ne(n){var t={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function nt(n){return n}function pt(n){throw n;}function vr(n,t,r,u){var f;try{n&&i.isFunction(f=n.promise)?f.call(n).done(t).fail(r):n&&i.isFunction(f=n.then)?f.call(n,t,r):t.apply(undefined,[n].slice(u))}catch(n){r.apply(undefined,[n])}}function bt(){u.removeEventListener("DOMContentLoaded",bt);n.removeEventListener("load",bt);i.ready()}function ht(){this.expando=i.expando+ht.uid++}function re(n){return n==="true"?!0:n==="false"?!1:n==="null"?null:n===+n+""?+n:te.test(n)?JSON.parse(n):n}function pr(n,t,i){var r;if(i===undefined&&n.nodeType===1)if(r="data-"+t.replace(ie,"-$&").toLowerCase(),i=n.getAttribute(r),typeof i=="string"){try{i=re(i)}catch(u){}e.set(n,t,i)}else i=undefined;return i}function kr(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||o!=="px"&&+s)&&ct.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3];r=r||[];f=+s||1;do e=e||".5",f=f/e,i.style(n,t,f+o);while(e!==(e=c()/s)&&e!==1&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function ue(n){var r,f=n.ownerDocument,u=n.nodeName,t=si[u];return t?t:(r=f.body.appendChild(f.createElement(u)),t=i.css(r,"display"),r.parentNode.removeChild(r),t==="none"&&(t="block"),si[u]=t,t)}function tt(n,t){for(var e,u,f=[],i=0,o=n.length;i<o;i++)(u=n[i],u.style)&&(e=u.style.display,t?(e==="none"&&(f[i]=r.get(u,"display")||null,f[i]||(u.style.display="")),u.style.display===""&&kt(u)&&(f[i]=ue(u))):e!=="none"&&(f[i]="none",r.set(u,"display",e)));for(i=0;i<o;i++)f[i]!=null&&(n[i].style.display=f[i]);return n}function o(n,t){var r;return(r=typeof n.getElementsByTagName!="undefined"?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!="undefined"?n.querySelectorAll(t||"*"):[],t===undefined||t&&l(n,t))?i.merge([n],r):r}function hi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function iu(n,t,r,u,f){for(var e,s,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if(e=n[l],e||e===0)if(i.type(e)==="object")i.merge(y,e.nodeType?[e]:e);else if(tu.test(e)){for(s=s||h.appendChild(t.createElement("div")),p=(gr.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,s.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)s=s.lastChild;i.merge(y,s.childNodes);s=h.firstChild;s.textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];){if(u&&i.inArray(e,u)>-1){f&&f.push(e);continue}if(w=i.contains(e.ownerDocument,e),s=o(h.appendChild(e),"script"),w&&hi(s),r)for(v=0;e=s[v++];)nu.test(e.type||"")&&r.push(e)}return h}function gt(){return!0}function it(){return!1}function uu(){try{return u.activeElement}catch(n){}}function ci(n,t,r,u,f,e){var o,s;if(typeof t=="object"){typeof r!="string"&&(u=u||r,r=undefined);for(s in t)ci(n,s,r,u,t[s],e);return n}if(u==null&&f==null?(f=r,u=r=undefined):f==null&&(typeof r=="string"?(f=u,u=undefined):(f=u,u=r,r=undefined)),f===!1)f=it;else if(!f)return n;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function fu(n,t){return l(n,"table")&&l(t.nodeType!==11?t:t.firstChild,"tr")?i(">tbody",n)[0]||n:n}function ae(n){return n.type=(n.getAttribute("type")!==null)+"/"+n.type,n}function ve(n){var t=ce.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function eu(n,t){var f,c,o,s,h,l,a,u;if(t.nodeType===1){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),u=s.events,u)){delete h.handle;h.events={};for(o in u)for(f=0,c=u[o].length;f<c;f++)i.event.add(t,o,u[o][f])}e.hasData(n)&&(l=e.access(n),a=i.extend({},l),e.set(t,a))}}function ye(n,t){var i=t.nodeName.toLowerCase();i==="input"&&dr.test(n.type)?t.checked=n.checked:(i==="input"||i==="textarea")&&(t.defaultValue=n.defaultValue)}function rt(n,t,u,e){t=gi.apply([],t);var l,p,c,a,s,w,h=0,v=n.length,k=v-1,y=t[0],b=i.isFunction(y);if(b||v>1&&typeof y=="string"&&!f.checkClone&&he.test(y))return n.each(function(i){var r=n.eq(i);b&&(t[0]=y.call(this,i,r.html()));rt(r,t,u,e)});if(v&&(l=iu(t,n[0].ownerDocument,!1,n,e),p=l.firstChild,l.childNodes.length===1&&(l=p),p||e)){for(c=i.map(o(l,"script"),ae),a=c.length;h<v;h++)s=l,h!==k&&(s=i.clone(s,!0,!0),a&&i.merge(c,o(s,"script"))),u.call(n[h],s,h);if(a)for(w=c[c.length-1].ownerDocument,i.map(c,ve),h=0;h<a;h++)s=c[h],nu.test(s.type||"")&&!r.access(s,"globalEval")&&i.contains(w,s)&&(s.src?i._evalUrl&&i._evalUrl(s.src):ir(s.textContent.replace(le,""),w))}return n}function ou(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;(u=e[f])!=null;f++)r||u.nodeType!==1||i.cleanData(o(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&hi(o(u,"script")),u.parentNode.removeChild(u));return n}function lt(n,t,r){var o,s,h,u,e=n.style;return r=r||ni(n),r&&(u=r.getPropertyValue(t)||r[t],u!==""||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),!f.pixelMarginRight()&&li.test(u)&&su.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=u,u=r.width,e.width=o,e.minWidth=s,e.maxWidth=h)),u!==undefined?u+"":u}function hu(n,t){return{get:function(){if(n()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}function be(n){if(n in vu)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=au.length;t--;)if(n=au[t]+i,n in vu)return n}function yu(n){var t=i.cssProps[n];return t||(t=i.cssProps[n]=be(n)||n),t}function pu(n,t,i){var r=ct.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function wu(n,t,r,u,f){for(var o=0,e=r===(u?"border":"content")?4:t==="width"?1:0;e<4;e+=2)r==="margin"&&(o+=i.css(n,r+b[e],!0,f)),u?(r==="content"&&(o-=i.css(n,"padding"+b[e],!0,f)),r!=="margin"&&(o-=i.css(n,"border"+b[e]+"Width",!0,f))):(o+=i.css(n,"padding"+b[e],!0,f),r!=="padding"&&(o+=i.css(n,"border"+b[e]+"Width",!0,f)));return o}function bu(n,t,r){var o,e=ni(n),u=lt(n,t,e),s=i.css(n,"boxSizing",!1,e)==="border-box";return li.test(u)?u:(o=s&&(f.boxSizingReliable()||u===n.style[t]),u==="auto"&&(u=n["offset"+t[0].toUpperCase()+t.slice(1)]),u=parseFloat(u)||0,u+wu(n,t,r||(s?"border":"content"),o,e)+"px")}function s(n,t,i,r,u){return new s.prototype.init(n,t,i,r,u)}function ai(){ti&&(u.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(ai):n.setTimeout(ai,i.fx.interval),i.fx.tick())}function gu(){return n.setTimeout(function(){ut=undefined}),ut=i.now()}function ii(n,t){var r,u=0,i={height:n};for(t=t?1:0;u<4;u+=2-t)r=b[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function nf(n,t,i){for(var u,f=(a.tweeners[t]||[]).concat(a.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function ke(n,t,u){var f,y,w,c,b,s,o,l,k="width"in t||"height"in t,v=this,p={},h=n.style,a=n.nodeType&&kt(n),e=r.get(n,"fxshow");u.queue||(c=i._queueHooks(n,"fx"),c.unqueued==null&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})}));for(f in t)if(y=t[f],ku.test(y)){if(delete t[f],w=w||y==="toggle",y===(a?"hide":"show"))if(y==="show"&&e&&e[f]!==undefined)a=!0;else continue;p[f]=e&&e[f]||i.style(n,f)}if(s=!i.isEmptyObject(t),s||!i.isEmptyObject(p)){k&&n.nodeType===1&&(u.overflow=[h.overflow,h.overflowX,h.overflowY],o=e&&e.display,o==null&&(o=r.get(n,"display")),l=i.css(n,"display"),l==="none"&&(o?l=o:(tt([n],!0),o=n.style.display||o,l=i.css(n,"display"),tt([n]))),(l==="inline"||l==="inline-block"&&o!=null)&&i.css(n,"float")==="none"&&(s||(v.done(function(){h.display=o}),o==null&&(l=h.display,o=l==="none"?"":l)),h.display="inline-block"));u.overflow&&(h.overflow="hidden",v.always(function(){h.overflow=u.overflow[0];h.overflowX=u.overflow[1];h.overflowY=u.overflow[2]}));s=!1;for(f in p)s||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&tt([n],!0),v.done(function(){a||tt([n]);r.remove(n,"fxshow");for(f in p)i.style(n,f,p[f])})),s=nf(a?e[f]:0,f,v),f in e||(e[f]=s.start,a&&(s.end=s.start,s.start=0))}}function de(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function a(n,t,r){var e,o,s=0,l=a.prefilters.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=ut||gu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;r<e;r++)u.tweens[r].run(i);return(f.notifyWith(n,[u,i,t]),i<1&&e)?t:(e||f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:ut||gu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?(f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u,t])):f.rejectWith(n,[u,t]),this}}),h=u.props;for(de(h,u.opts.specialEasing);s<l;s++)if(e=a.prefilters[s].call(u,n,h,u.opts),e)return i.isFunction(e.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=i.proxy(e.stop,e)),e;return i.map(h,nf,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u}function k(n){var t=n.match(h)||[];return t.join(" ")}function d(n){return n.getAttribute&&n.getAttribute("class")||""}function pi(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||ge.test(n)?u(n,i):pi(n+"["+(typeof i=="object"&&i!=null?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(f in t)pi(n+"["+f+"]",t[f],r,u)}function cf(n){return function(t,r){typeof t!="string"&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])u[0]==="+"?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function lf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===wi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ki(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function so(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;r[0]==="*";)r.shift(),e===undefined&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}function ho(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift(),u)if(u==="*")u=e;else if(e!=="*"&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]],f)){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}var p=[],u=n.document,pf=Object.getPrototypeOf,w=p.slice,gi=p.concat,ui=p.push,ot=p.indexOf,vt={},nr=vt.toString,yt=vt.hasOwnProperty,tr=yt.toString,wf=tr.call(Object),f={},rr="3.2.1",i=function(n,t){return new i.fn.init(n,t)},bf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,kf=/^-ms-/,df=/-([a-z])/g,gf=function(n,t){return t.toUpperCase()},y,ei,er,or,sr,hr,cr,lr,h,yr,wt,v,st,si,tu,ut,ti,ku,du,tf,ft,rf,uf,ff,vi,af,et,di,ri,vf,yf;i.fn=i.prototype={jquery:rr,constructor:i,length:0,toArray:function(){return w.call(this)},get:function(n){return n==null?w.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(w.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ui,sort:p.sort,splice:p.splice};i.extend=i.fn.extend=function(){var e,f,r,t,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for(typeof n=="boolean"&&(h=n,n=arguments[u]||{},u++),typeof n=="object"||i.isFunction(n)||(n={}),u===c&&(n=this,u--);u<c;u++)if((e=arguments[u])!=null)for(f in e)(r=n[f],t=e[f],n!==t)&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(o?(o=!1,s=r&&Array.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):t!==undefined&&(n[f]=t));return n};i.extend({expando:"jQuery"+(rr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return i.type(n)==="function"},isWindow:function(n){return n!=null&&n===n.window},isNumeric:function(n){var t=i.type(n);return(t==="number"||t==="string")&&!isNaN(n-parseFloat(n))},isPlainObject:function(n){var t,i;return!n||nr.call(n)!=="[object Object]"?!1:(t=pf(n),!t)?!0:(i=yt.call(t,"constructor")&&t.constructor,typeof i=="function"&&tr.call(i)===wf)},isEmptyObject:function(n){for(var t in n)return!1;return!0},type:function(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?vt[nr.call(n)]||"object":typeof n},globalEval:function(n){ir(n)},camelCase:function(n){return n.replace(kf,"ms-").replace(df,gf)},each:function(n,t){var r,i=0;if(fi(n)){for(r=n.length;i<r;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return n==null?"":(n+"").replace(bf,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(fi(Object(n))?i.merge(r,typeof n=="string"?[n]:n):ui.call(r,n)),r},inArray:function(n,t,i){return t==null?-1:ot.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(fi(n))for(e=n.length;r<e;r++)u=t(n[r],r,i),u!=null&&f.push(u);else for(r in n)u=t(n[r],r,i),u!=null&&f.push(u);return gi.apply([],f)},guid:1,proxy:function(n,t){var u,f,r;return(typeof t=="string"&&(u=n[t],t=n,n=u),!i.isFunction(n))?undefined:(f=w.call(arguments,2),r=function(){return n.apply(t||this,f.concat(w.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r)},now:Date.now,support:f});typeof Symbol=="function"&&(i.fn[Symbol.iterator]=p[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){vt["[object "+t+"]"]=t.toLowerCase()});y=function(n){function u(n,t,r,u){var s,w,l,a,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],typeof n!="string"||!n||v!==1&&v!==9&&v!==11)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(v!==11&&(d=cr.exec(n)))if(s=d[1]){if(v===9)if(l=t.getElementById(s)){if(l.id===s)return r.push(l),r}else return r;else if(p&&(l=p.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=d[3])&&e.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(e.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(v!==1)p=t,g=n;else if(t.nodeName.toLowerCase()!=="object"){for((a=t.getAttribute("id"))?a=a.replace(vi,yi):t.setAttribute("id",a=f),y=ft(n),w=y.length;w--;)y[w]="#"+a+" "+yt(y[w]);g=y.join(",");p=ni.test(n)&&ri(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(nt){}finally{a===f&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ti(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[f]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function vr(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function bi(n){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&lr(t)===n:t.disabled===n:"label"in t?t.disabled===n:!1}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&typeof n.getElementsByTagName!="undefined"&&n}function ki(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function pt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&e==="parentNode",s=di++;return t.first?function(t,i,u){while(t=t[r])if(t.nodeType===1||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((t.nodeType===1||o)&&n(t,i,h))return!0}else while(t=t[r])if(t.nodeType===1||o)if(a=t[f]||(t[f]={}),l=a[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[e])&&c[0]===v&&c[1]===s)return y[2]=c[2];if(l[e]=y,y[2]=n(t,i,h))return!0}return!1}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function yr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function wt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||yr(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?wt(b,p,n,o,s):b,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=wt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=wt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=pt(function(n){return n===o},c,!0),a=pt(function(n){return nt(o,n)>-1},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])e=[pt(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:n[i-2].type===" "?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}e.push(u)}return ui(e)}function pr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=it==null?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&(y=rt[p])!=null;p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=nr.call(l));w=wt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,e,t,st,oi,ft,bt,si,ht,w,ut,b,i,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,di=0,hi=ti(),ci=ti(),lt=ti(),kt=function(n,t){return n===t&&(ut=!0),0},gi={}.hasOwnProperty,g=[],nr=g.pop,tr=g.push,k=g.push,li=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},dt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ai="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",gt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ai+")*)|.*)\\)|)",ir=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),rr=new RegExp("^"+r+"*,"+r+"*"),ur=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),fr=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),er=new RegExp(gt),or=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+ai),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+dt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,cr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ni=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)},vi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yi=function(n,t){return t?n==="\0"?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},pi=function(){b()},lr=pt(function(n){return n.disabled===!0&&("form"in n||"label"in n)},{dir:"parentNode",next:"legend"});try{k.apply(g=li.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(wr){k={apply:g.length?function(n,t){tr.apply(n,li.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}e=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l===i||l.nodeType!==9||!l.documentElement?i:(i=l,s=i.documentElement,h=!oi(i),c!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),e.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=ot.test(i.getElementsByClassName),e.getById=a(function(n){return s.appendChild(n).id=f,!i.getElementsByName||!i.getElementsByName(f).length}),e.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&h){var i,u,f,r=t.getElementById(n);if(r){if(i=r.getAttributeNode("id"),i&&i.value===n)return[r];for(f=t.getElementsByName(n),u=0;r=f[u++];)if(i=r.getAttributeNode("id"),i&&i.value===n)return[r]}return[]}}),t.find.TAG=e.getElementsByTagName?function(n,t){return typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName(n):e.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},t.find.CLASS=e.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!="undefined"&&h)return t.getElementsByClassName(n)},d=[],o=[],(e.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+dt+")");n.querySelectorAll("[id~="+f+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+f+"+*").length||o.push(".#.+[+~]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length!==2&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;n.querySelectorAll(":disabled").length!==2&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(e.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){e.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",gt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},kt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,r&1||!e.sortDetached&&t.compareDocumentPosition(n)===r)?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:r&4?-1:1}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(o&&s){if(o===s)return wi(n,t)}else return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i)};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(fr,"='$1']"),e.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||e.disconnectedMatch||n.document&&n.document.nodeType!==11)return r}catch(f){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var f=t.attrHandle[r.toLowerCase()],u=f&&gi.call(t.attrHandle,r.toLowerCase())?f(n,r,!h):undefined;return u!==undefined?u:e.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.escape=function(n){return(n+"").replace(vi,yi)};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!e.detectDuplicates,w=!e.sortStable&&n.slice(0),n.sort(kt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(t===3||t===4)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&er.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return n==="*"?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute!="undefined"&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f.replace(ir," ")+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",o=n.slice(-4)!=="last",e=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(e?c.nodeName.toLowerCase()===nt:c.nodeType===1)return!1;b=k=n==="only"&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(c.nodeType===1&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((e?c.nodeName.toLowerCase()===nt:c.nodeType===1)&&++l&&(g&&(y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):r.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=bt(n.replace(at,"$1"));return i[f]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return or.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:bi(!1),disabled:bi(!0),checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()==="text")},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=ar(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=vr(rt);return ki.prototype=t.filters=t.pseudos,t.setFilters=new ki,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=rr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=ur.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},bt=u.compile=function(n,t){var r,u=[],e=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=lt(n,pr(e,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var o,f,e,l,a,c=typeof n=="function"&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],s.length===1){if(f=s[0]=s[0].slice(0),f.length>2&&(e=f[0]).type==="ID"&&i.nodeType===9&&h&&t.relative[f[1].type]){if(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0],i)c&&(i=i.parentNode);else return r;n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[l=e.type])break;if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ni.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),n=u.length&&yt(f),!n)return k.apply(r,u),r;break}}}return(c||bt(n,s))(u,i,!h,r,!i||ni.test(n)&&ri(i.parentNode)||i),r},e.sortStable=f.split("").sort(kt).join("")===f,e.detectDuplicates=!!ut,b(),e.sortDetached=a(function(n){return n.compareDocumentPosition(i.createElement("fieldset"))&1}),a(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild.getAttribute("href")==="#"})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,t.toLowerCase()==="type"?1:2)}),e.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ii("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue}),a(function(n){return n.getAttribute("disabled")==null})||ii(dt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=y;i.expr=y.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=y.uniqueSort;i.text=y.getText;i.isXMLDoc=y.isXML;i.contains=y.contains;i.escapeSelector=y.escape;var g=function(n,t,r){for(var u=[],f=r!==undefined;(n=n[t])&&n.nodeType!==9;)if(n.nodeType===1){if(f&&i(n).is(r))break;u.push(n)}return u},ur=function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i},fr=i.expr.match.needsContext;ei=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;er=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return(r&&(n=":not("+n+")"),t.length===1&&u.nodeType===1)?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if(typeof n!="string")return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return u>1?i.uniqueSort(r):r},filter:function(n){return this.pushStack(oi(this,n||[],!1))},not:function(n){return this.pushStack(oi(this,n||[],!0))},is:function(n){return!!oi(this,typeof n=="string"&&fr.test(n)?i(n):n||[],!1).length}});sr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;hr=i.fn.init=function(n,t,r){var f,e;if(!n)return this;if(r=r||or,typeof n=="string"){if(f=n[0]==="<"&&n[n.length-1]===">"&&n.length>=3?[null,n,null]:sr.exec(n),f&&(f[1]||!t)){if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),ei.test(f[1])&&i.isPlainObject(t))for(f in t)i.isFunction(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}return e=u.getElementById(f[2]),e&&(this[0]=e,this.length=1),this}return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n)}return n.nodeType?(this[0]=n,this.length=1,this):i.isFunction(n)?r.ready!==undefined?r.ready(n):n(i):i.makeArray(n,this)};hr.prototype=i.fn;or=i(u);cr=/^(?:parents|prev(?:Until|All))/;lr={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e=typeof n!="string"&&i(n);if(!fr.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?typeof n=="string"?ot.call(i(n),this[0]):ot.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return g(n,"parentNode")},parentsUntil:function(n,t,i){return g(n,"parentNode",i)},next:function(n){return ar(n,"nextSibling")},prev:function(n){return ar(n,"previousSibling")},nextAll:function(n){return g(n,"nextSibling")},prevAll:function(n){return g(n,"previousSibling")},nextUntil:function(n,t,i){return g(n,"nextSibling",i)},prevUntil:function(n,t,i){return g(n,"previousSibling",i)},siblings:function(n){return ur((n.parentNode||{}).firstChild,n)},children:function(n){return ur(n.firstChild)},contents:function(n){return l(n,"iframe")?n.contentDocument:(l(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(lr[n]||i.uniqueSort(f),cr.test(n)&&f.reverse()),this.pushStack(f)}});h=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){n=typeof n=="string"?ne(n):i.extend({},n);var e,r,h,u,t=[],o=[],f=-1,c=function(){for(u=u||n.once,h=e=!0;o.length;f=-1)for(r=o.shift();++f<t.length;)t[f].apply(r[0],r[1])===!1&&n.stopOnFalse&&(f=t.length,r=!1);n.memory||(r=!1);e=!1;u&&(t=r?[]:"")},s={add:function(){return t&&(r&&!e&&(f=t.length-1,o.push(r)),function u(r){i.each(r,function(r,f){i.isFunction(f)?n.unique&&s.has(f)||t.push(f):f&&f.length&&i.type(f)!=="string"&&u(f)})}(arguments),r&&!e&&c()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),u<=f&&f--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return u=o=[],t=r="",this},disabled:function(){return!t},lock:function(){return u=o=[],r||e||(t=r=""),this},locked:function(){return!!u},fireWith:function(n,t){return u||(t=t||[],t=[n,t.slice?t.slice():t],o.push(t),e||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(t){var u=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],e="pending",f={state:function(){return e},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return f.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(u,function(u,f){var e=i.isFunction(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,f){function o(t,r,u,f){return function(){var s=this,h=arguments,l=function(){var n,c;if(!(t<e)){if(n=u.apply(s,h),n===r.promise())throw new TypeError("Thenable self-resolution");c=n&&(typeof n=="object"||typeof n=="function")&&n.then;i.isFunction(c)?f?c.call(n,o(e,r,nt,f),o(e,r,pt,f)):(e++,c.call(n,o(e,r,nt,f),o(e,r,pt,f),o(e,r,nt,r.notifyWith))):(u!==nt&&(s=undefined,h=[n]),(f||r.resolveWith)(s,h))}},c=f?l:function(){try{l()}catch(n){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(n,c.stackTrace);t+1>=e&&(u!==pt&&(s=undefined,h=[n]),r.rejectWith(s,h))}};t?c():(i.Deferred.getStackHook&&(c.stackTrace=i.Deferred.getStackHook()),n.setTimeout(c))}}var e=0;return i.Deferred(function(n){u[0][3].add(o(0,n,i.isFunction(f)?f:nt,n.notifyWith));u[1][3].add(o(0,n,i.isFunction(t)?t:nt));u[2][3].add(o(0,n,i.isFunction(r)?r:pt))}).promise()},promise:function(n){return n!=null?i.extend(n,f):f}},r={};return i.each(u,function(n,t){var i=t[2],o=t[5];f[t[1]]=i.add;o&&i.add(function(){e=o},u[3-n][2].disable,u[0][2].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?undefined:this,arguments),this};r[t[0]+"With"]=i.fireWith}),f.promise(r),t&&t.call(r,r),r},when:function(n){var f=arguments.length,t=f,e=Array(t),u=w.call(arguments),r=i.Deferred(),o=function(n){return function(t){e[n]=this;u[n]=arguments.length>1?w.call(arguments):t;--f||r.resolveWith(e,u)}};if(f<=1&&(vr(n,r.done(o(t)).resolve,r.reject,!f),r.state()==="pending"||i.isFunction(u[t]&&u[t].then)))return r.then();while(t--)vr(u[t],o(t),r.reject);return r.promise()}});yr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&yr.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};wt=i.Deferred();i.fn.ready=function(n){return wt.then(n).catch(function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0)||wt.resolveWith(u,[i])}});i.ready.then=wt.then;u.readyState!=="complete"&&(u.readyState==="loading"||u.documentElement.doScroll)?(u.addEventListener("DOMContentLoaded",bt),n.addEventListener("load",bt)):n.setTimeout(i.ready);v=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=r==null;if(i.type(r)==="object"){f=!0;for(s in r)v(n,t,s,r[s],!0,e,o)}else if(u!==undefined&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;s<c;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e};st=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType};ht.uid=1;ht.prototype={cache:function(n){var t=n[this.expando];return t||(t={},st(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,r){var u,f=this.cache(n);if(typeof t=="string")f[i.camelCase(t)]=r;else for(u in t)f[i.camelCase(u)]=t[u];return f},get:function(n,t){return t===undefined?this.cache(n):n[this.expando]&&n[this.expando][i.camelCase(t)]},access:function(n,t,i){return t===undefined||t&&typeof t=="string"&&i===undefined?this.get(n,t):(this.set(n,t,i),i!==undefined?i:t)},remove:function(n,t){var u,r=n[this.expando];if(r!==undefined){if(t!==undefined)for(Array.isArray(t)?t=t.map(i.camelCase):(t=i.camelCase(t),t=t in r?[t]:t.match(h)||[]),u=t.length;u--;)delete r[t[u]];(t===undefined||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=undefined:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return t!==undefined&&!i.isEmptyObject(t)}};var r=new ht,e=new ht,te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ie=/[A-Z]/g;i.extend({hasData:function(n){return e.hasData(n)||r.hasData(n)},data:function(n,t,i){return e.access(n,t,i)},removeData:function(n,t){e.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var o,f,s,u=this[0],h=u&&u.attributes;if(n===undefined){if(this.length&&(s=e.get(u),u.nodeType===1&&!r.get(u,"hasDataAttrs"))){for(o=h.length;o--;)h[o]&&(f=h[o].name,f.indexOf("data-")===0&&(f=i.camelCase(f.slice(5)),pr(u,f,s[f])));r.set(u,"hasDataAttrs",!0)}return s}return typeof n=="object"?this.each(function(){e.set(this,n)}):v(this,function(t){var i;if(u&&t===undefined)return(i=e.get(u,n),i!==undefined)?i:(i=pr(u,n),i!==undefined)?i:void 0;this.each(function(){e.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){e.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};u==="inprogress"&&(u=r.shift(),e--);u&&(t==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return(typeof n!="string"&&(t=n,n="fx",r--),arguments.length<r)?i.queue(this[0],n):t===undefined?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);n==="fx"&&r[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for(typeof n!="string"&&(t=n,n=undefined),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var wr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ct=new RegExp("^(?:([+-])=|)("+wr+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],kt=function(n,t){return n=t||n,n.style.display==="none"||n.style.display===""&&i.contains(n.ownerDocument,n)&&i.css(n,"display")==="none"},br=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};si={};i.fn.extend({show:function(){return tt(this,!0)},hide:function(){return tt(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){kt(this)?i(this).show():i(this).hide()})}});var dr=/^(?:checkbox|radio)$/i,gr=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,nu=/^$|\/(?:java|ecma)script/i,c={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,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;tu=/<|&#?\w+;/,function(){var i=u.createDocumentFragment(),n=i.appendChild(u.createElement("div")),t=u.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);f.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";f.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var dt=u.documentElement,fe=/^key/,ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ru=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,c,s,l,o,k,d,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),e&&i.find.matchesSelector(dt,e),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){return typeof i!="undefined"&&i.event.triggered!==t.type?i.event.dispatch.apply(n,arguments):undefined}),t=(t||"").match(h)||[""],b=t.length;b--;)(w=ru.exec(t[b])||[],o=d=w[1],k=(w[2]||"").split(".").sort(),o)&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},c=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:k.join(".")},v),(l=p[o])||(l=p[o]=[],l.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y)),s.add&&(s.add.call(n,c),c.handler.guid||(c.handler.guid=u.guid)),e?l.splice(l.delegateCount++,0,c):l.push(c),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,l,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;){if(c=ru.exec(t[p])||[],o=d=c[1],b=(c[2]||"").split(".").sort(),!o){for(o in v)i.event.remove(n,o+t[p],u,f,!0);continue}for(l=i.event.special[o]||{},o=(f?l.delegateType:l.bindType)||o,a=v[o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],(e||d===s.origType)&&(!u||u.guid===s.guid)&&(!c||c.test(s.namespace))&&(!f||f===s.selector||f==="**"&&s.selector)&&(a.splice(y,1),s.selector&&a.delegateCount--,l.remove&&l.remove.call(n,s));k&&!a.length&&(l.teardown&&l.teardown.call(n,b,w.handle)!==!1||i.removeEvent(n,o,w.handle),delete v[o])}i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var t=i.event.fix(n),u,c,s,e,f,l,h=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(h[0]=t,u=1;u<arguments.length;u++)h[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||o.preDispatch.call(this,t)!==!1){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!t.isImmediatePropagationStopped();)(!t.rnamespace||t.rnamespace.test(f.namespace))&&(t.handleObj=f,t.data=f.data,s=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),s!==undefined&&(t.result=s)===!1&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,e,u,o,s,c=[],h=t.delegateCount,r=n.target;if(h&&r.nodeType&&!(n.type==="click"&&n.button>=1))for(;r!==this;r=r.parentNode||this)if(r.nodeType===1&&!(n.type==="click"&&r.disabled===!0)){for(o=[],s={},f=0;f<h;f++)e=t[f],u=e.selector+" ",s[u]===undefined&&(s[u]=e.needsContext?i(u,this).index(r)>-1:i.find(u,this,null,[r]).length),s[u]&&o.push(e);o.length&&c.push({elem:r,handlers:o})}return r=this,h<t.length&&c.push({elem:r,handlers:t.slice(h)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:i.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==uu()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===uu()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&l(this,"input"))return this.click(),!1},_default:function(n){return l(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==undefined&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===undefined&&n.returnValue===!1?gt:it,this.target=n.target&&n.target.nodeType===3?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||i.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:it,isPropagationStopped:it,isImmediatePropagationStopped:it,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=gt;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=gt;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=gt;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(n){var t=n.button;return n.which==null&&fe.test(n.type)?n.charCode!=null?n.charCode:n.keyCode:!n.which&&t!==undefined&&ee.test(n.type)?t&1?1:t&2?3:t&4?2:0:n.which}},i.event.addProp);i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return ci(this,n,t,i,r)},one:function(n,t,i,r){return ci(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if(typeof n=="object"){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||typeof t=="function")&&(r=t,t=undefined),r===!1&&(r=it),this.each(function(){i.event.remove(this,n,r,t)})}});var oe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,se=/<script|<style|<link/i,he=/checked\s*(?:[^=]|=\s*.checked.)/i,ce=/^true\/(.*)/,le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(oe,"<$1><\/$2>")},clone:function(n,t,r){var u,c,s,e,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!f.noCloneChecked&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(e=o(h),s=o(n),u=0,c=s.length;u<c;u++)ye(s[u],e[u]);if(t)if(r)for(s=s||o(n),e=e||o(h),u=0,c=s.length;u<c;u++)eu(s[u],e[u]);else eu(n,h);return e=o(h,"script"),e.length>0&&hi(e,!l&&o(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,o=0;(t=n[o])!==undefined;o++)if(st(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=undefined}t[e.expando]&&(t[e.expando]=undefined)}}});i.fn.extend({detach:function(n){return ou(this,n,!0)},remove:function(n){return ou(this,n)},text:function(n){return v(this,function(n){return n===undefined?i.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=n)})},null,n,arguments.length)},append:function(){return rt(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=fu(this,n);t.appendChild(n)}})},prepend:function(){return rt(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=fu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return rt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return rt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;(n=this[t])!=null;t++)n.nodeType===1&&(i.cleanData(o(n,!1)),n.textContent="");return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return v(this,function(n){var t=this[0]||{},r=0,u=this.length;if(n===undefined&&t.nodeType===1)return t.innerHTML;if(typeof n=="string"&&!se.test(n)&&!c[(gr.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)t=this[r]||{},t.nodeType===1&&(i.cleanData(o(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return rt(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(o(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ui.apply(f,u.get());return this.pushStack(f)}});var su=/^margin/,li=new RegExp("^("+wr+")(?!px)[a-z%]+$","i"),ni=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)};(function(){function r(){if(t){t.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";t.innerHTML="";dt.appendChild(e);var i=n.getComputedStyle(t);o=i.top!=="1%";c=i.marginLeft==="2px";s=i.width==="4px";t.style.marginRight="50%";h=i.marginRight==="4px";dt.removeChild(e);t=null}}var o,s,h,c,e=u.createElement("div"),t=u.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle=t.style.backgroundClip==="content-box",e.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",e.appendChild(t),i.extend(f,{pixelPosition:function(){return r(),o},boxSizingReliable:function(){return r(),s},pixelMarginRight:function(){return r(),h},reliableMarginLeft:function(){return r(),c}}))})();var pe=/^(none|table(?!-c[ea]).+)/,cu=/^--/,we={position:"absolute",visibility:"hidden",display:"block"},lu={letterSpacing:"0",fontWeight:"400"},au=["Webkit","Moz","ms"],vu=u.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=lt(n,"opacity");return i===""?"1":i}}}},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(n,t,r,u){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var e,s,o,c=i.camelCase(t),l=cu.test(t),h=n.style;if(l||(t=yu(c)),o=i.cssHooks[t]||i.cssHooks[c],r!==undefined){if(s=typeof r,s==="string"&&(e=ct.exec(r))&&e[1]&&(r=kr(n,t,e),s="number"),r==null||r!==r)return;s==="number"&&(r+=e&&e[3]||(i.cssNumber[c]?"":"px"));f.clearCloneStyle||r!==""||t.indexOf("background")!==0||(h[t]="inherit");o&&"set"in o&&(r=o.set(n,r,u))===undefined||(l?h.setProperty(t,r):h[t]=r)}else return o&&"get"in o&&(e=o.get(n,!1,u))!==undefined?e:h[t]}},css:function(n,t,r,u){var f,o,e,s=i.camelCase(t),h=cu.test(t);return(h||(t=yu(s)),e=i.cssHooks[t]||i.cssHooks[s],e&&"get"in e&&(f=e.get(n,!0,r)),f===undefined&&(f=lt(n,t,u)),f==="normal"&&t in lu&&(f=lu[t]),r===""||r)?(o=parseFloat(f),r===!0||isFinite(o)?o||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return pe.test(i.css(n,"display"))&&(!n.getClientRects().length||!n.getBoundingClientRect().width)?br(n,we,function(){return bu(n,t,u)}):bu(n,t,u)},set:function(n,r,u){var f,e=u&&ni(n),o=u&&wu(n,t,u,i.css(n,"boxSizing",!1,e)==="border-box",e);return o&&(f=ct.exec(r))&&(f[3]||"px")!=="px"&&(n.style[t]=r,r=i.css(n,t)),pu(n,r,o)}}});i.cssHooks.marginLeft=hu(f.reliableMarginLeft,function(n,t){if(t)return(parseFloat(lt(n,"marginLeft"))||n.getBoundingClientRect().left-br(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+b[r]+t]=u[r]||u[r-2]||u[0];return f}};su.test(n)||(i.cssHooks[n+t].set=pu)});i.fn.extend({css:function(n,t){return v(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ni(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return r!==undefined?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)}});i.Tween=s;s.prototype={constructor:s,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=s.propHooks[this.prop];return n&&n.get?n.get(this):s.propHooks._default.get(this)},run:function(n){var t,r=s.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):s.propHooks._default.set(this),this}};s.prototype.init.prototype=s.prototype;s.propHooks={_default:{get:function(n){var t;return n.elem.nodeType!==1||n.elem[n.prop]!=null&&n.elem.style[n.prop]==null?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.nodeType===1&&(n.elem.style[i.cssProps[n.prop]]!=null||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};s.propHooks.scrollTop=s.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=s.prototype.init;i.fx.step={};ku=/^(?:toggle|show|hide)$/;du=/queueHooks$/;i.Animation=i.extend(a,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return kr(i.elem,n,ct.exec(t),i),i}]},tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.match(h);for(var r,u=0,f=n.length;u<f;u++)r=n[u],a.tweeners[r]=a.tweeners[r]||[],a.tweeners[r].unshift(t)},prefilters:[ke],prefilter:function(n,t){t?a.prefilters.unshift(n):a.prefilters.push(n)}});i.speed=function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return i.fx.off?u.duration=0:typeof u.duration!="number"&&(u.duration=u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default),(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(kt).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=a(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return typeof n!="string"&&(u=t,t=n,n=undefined),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=n!=null&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&du.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem===this&&(n==null||o[t].queue===n)&&(o[t].anim.stop(u),s=!1,o.splice(t,1));(s||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(ii(t,!0),n,i,u)}});i.each({slideDown:ii("show"),slideUp:ii("hide"),slideToggle:ii("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(ut=i.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();ut=undefined};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){ti||(ti=!0,ai())};i.fx.stop=function(){ti=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=u.createElement("input"),t=u.createElement("select"),i=t.appendChild(u.createElement("option"));n.type="checkbox";f.checkOn=n.value!=="";f.optSelected=i.selected;n=u.createElement("input");n.value="t";n.type="radio";f.radioValue=n.value==="t"}();ft=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return v(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(e!==3&&e!==8&&e!==2){if(typeof n.getAttribute=="undefined")return i.prop(n,t,r);if(e===1&&i.isXMLDoc(n)||(f=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?tf:undefined)),r!==undefined){if(r===null){i.removeAttr(n,t);return}return f&&"set"in f&&(u=f.set(n,r,t))!==undefined?u:(n.setAttribute(t,r+""),r)}return f&&"get"in f&&(u=f.get(n,t))!==null?u:(u=i.find.attr(n,t),u==null?undefined:u)}},attrHooks:{type:{set:function(n,t){if(!f.radioValue&&t==="radio"&&l(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(h);if(r&&n.nodeType===1)while(i=r[u++])n.removeAttribute(i)}});tf={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=ft[t]||i.find.attr;ft[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=ft[u],ft[u]=f,f=r(n,t,i)!=null?u:null,ft[u]=e),f}});rf=/^(?:input|select|textarea|button)$/i;uf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return v(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(e!==3&&e!==8&&e!==2)return(e===1&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),r!==undefined)?u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:n[t]=r:u&&"get"in u&&(f=u.get(n,t))!==null?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):rf.test(n.nodeName)||uf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});f.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,d(this)))});if(typeof n=="string"&&n)for(o=n.match(h)||[];r=this[c++];)if(u=d(r),t=r.nodeType===1&&" "+k(u)+" ",t){for(s=0;f=o[s++];)t.indexOf(" "+f+" ")<0&&(t+=f+" ");e=k(t);u!==e&&r.setAttribute("class",e)}return this},removeClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,d(this)))});if(!arguments.length)return this.attr("class","");if(typeof n=="string"&&n)for(o=n.match(h)||[];r=this[c++];)if(u=d(r),t=r.nodeType===1&&" "+k(u)+" ",t){for(s=0;f=o[s++];)while(t.indexOf(" "+f+" ")>-1)t=t.replace(" "+f+" "," ");e=k(t);u!==e&&r.setAttribute("class",e)}return this},toggleClass:function(n,t){var u=typeof n;return typeof t=="boolean"&&u==="string"?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,d(this),t),t)}):this.each(function(){var t,e,f,o;if(u==="string")for(e=0,f=i(this),o=n.match(h)||[];t=o[e++];)f.hasClass(t)?f.removeClass(t):f.addClass(t);else(n===undefined||u==="boolean")&&(t=d(this),t&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||n===!1?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(t.nodeType===1&&(" "+k(d(t))+" ").indexOf(i)>-1)return!0;return!1}});ff=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;this.nodeType===1&&(u=f?n.call(this,r,i(this).val()):n,u==null?u="":typeof u=="number"?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return n==null?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,u,"value")!==undefined||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&(r=t.get(u,"value"))!==undefined)?r:(r=u.value,typeof r=="string")?r.replace(ff,""):r==null?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return t!=null?t:k(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f=n.type==="select-one",s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(t=o[r],(t.selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!l(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i.valHooks.option.get(r),e)>-1)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};f.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});vi=/^(?:focusinfocus|focusoutblur)$/;i.extend(i.event,{trigger:function(t,f,e,o){var w,s,c,b,a,v,l,p=[e||u],h=yt.call(t,"type")?t.type:t,y=yt.call(t,"namespace")?t.namespace.split("."):[];if((s=c=e=e||u,e.nodeType!==3&&e.nodeType!==8)&&!vi.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(y=h.split("."),h=y.shift(),y.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,typeof t=="object"&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=e),f=f==null?[t]:i.makeArray(f,[t]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(b=l.delegateType||h,vi.test(b+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||u)&&p.push(c.defaultView||c.parentWindow||n)}for(w=0;(s=p[w++])&&!t.isPropagationStopped();)t.type=w>1?b:l.bindType||h,v=(r.get(s,"events")||{})[t.type]&&r.get(s,"handle"),v&&v.apply(s,f),v=a&&s[a],v&&v.apply&&st(s)&&(t.result=v.apply(s,f),t.result===!1&&t.preventDefault());return t.type=h,o||t.isDefaultPrevented()||(!l._default||l._default.apply(p.pop(),f)===!1)&&st(e)&&a&&i.isFunction(e[h])&&!i.isWindow(e)&&(c=e[a],c&&(e[a]=null),i.event.triggered=h,e[h](),i.event.triggered=undefined,c&&(e[a]=c)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});i.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});f.focusin="onfocusin"in n;f.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var at=n.location,ef=i.now(),yi=/\?/;i.parseXML=function(t){var r;if(!t||typeof t!="string")return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(u){r=undefined}return(!r||r.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+t),r};var ge=/\[\]$/,of=/\r?\n/g,no=/^(?:submit|button|image|reset|file)$/i,to=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){var r=i.isFunction(t)?t():t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(r==null?"":r)};if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)pi(r,n[r],t,f);return u.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&to.test(this.nodeName)&&!no.test(n)&&(this.checked||!dr.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(of,"\r\n")}}):{name:t.name,value:r.replace(of,"\r\n")}}).get()}});var io=/%20/g,ro=/#.*$/,uo=/([?&])_=[^&]*/,fo=/^(.*?):[ \t]*([^\r\n]*)$/mg,eo=/^(?:GET|HEAD)$/,oo=/^\/\//,sf={},wi={},hf="*/".concat("*"),bi=u.createElement("a");return bi.href=at.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:at.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(at.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":hf,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":JSON.parse,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ki(ki(n,i.ajaxSettings),t):ki(i.ajaxSettings,n)},ajaxPrefilter:cf(sf),ajaxTransport:cf(wi),ajax:function(t,r){function b(t,r,u,h){var y,rt,g,p,b,a=r;s||(s=!0,d&&n.clearTimeout(d),l=undefined,k=h||"",e.readyState=t>0?4:0,y=t>=200&&t<300||t===304,u&&(p=so(f,e,u)),p=ho(f,p,e,y),y?(f.ifModified&&(b=e.getResponseHeader("Last-Modified"),b&&(i.lastModified[o]=b),b=e.getResponseHeader("etag"),b&&(i.etag[o]=b)),t===204||f.type==="HEAD"?a="nocontent":t===304?a="notmodified":(a=p.state,rt=p.data,g=p.error,y=!g)):(g=a,(t||!a)&&(a="error",t<0&&(t=0))),e.status=t,e.statusText=(r||a)+"",y?tt.resolveWith(c,[rt,a,e]):tt.rejectWith(c,[e,a,g]),e.statusCode(w),w=undefined,v&&nt.trigger(y?"ajaxSuccess":"ajaxError",[e,f,y?rt:g]),it.fireWith(c,[e,a]),v&&(nt.trigger("ajaxComplete",[e,f]),--i.active||i.event.trigger("ajaxStop")))}typeof t=="object"&&(r=t,t=undefined);r=r||{};var l,o,k,y,d,a,s,v,g,p,f=i.ajaxSetup({},r),c=f.context||f,nt=f.context&&(c.nodeType||c.jquery)?i(c):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=f.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!y)for(y={};t=fo.exec(k);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return s==null&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return s==null&&(f.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return l&&l.abort(t),b(0,t),this}};if(tt.promise(e),f.url=((t||f.url||at.href)+"").replace(oo,at.protocol+"//"),f.type=r.method||r.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(h)||[""],f.crossDomain==null){a=u.createElement("a");try{a.href=f.url;a.href=a.href;f.crossDomain=bi.protocol+"//"+bi.host!=a.protocol+"//"+a.host}catch(et){f.crossDomain=!0}}if(f.data&&f.processData&&typeof f.data!="string"&&(f.data=i.param(f.data,f.traditional)),lf(sf,f,r,e),s)return e;v=i.event&&f.global;v&&i.active++==0&&i.event.trigger("ajaxStart");f.type=f.type.toUpperCase();f.hasContent=!eo.test(f.type);o=f.url.replace(ro,"");f.hasContent?f.data&&f.processData&&(f.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(f.data=f.data.replace(io,"+")):(p=f.url.slice(o.length),f.data&&(o+=(yi.test(o)?"&":"?")+f.data,delete f.data),f.cache===!1&&(o=o.replace(uo,"$1"),p=(yi.test(o)?"&":"?")+"_="+ef+++p),f.url=o+p);f.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o]));(f.data&&f.hasContent&&f.contentType!==!1||r.contentType)&&e.setRequestHeader("Content-Type",f.contentType);e.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+(f.dataTypes[0]!=="*"?", "+hf+"; q=0.01":""):f.accepts["*"]);for(g in f.headers)e.setRequestHeader(g,f.headers[g]);if(f.beforeSend&&(f.beforeSend.call(c,e,f)===!1||s))return e.abort();if(ft="abort",it.add(f.complete),e.done(f.success),e.fail(f.error),l=lf(wi,f,r,e),l){if(e.readyState=1,v&&nt.trigger("ajaxSend",[e,f]),s)return e;f.async&&f.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},f.timeout));try{s=!1;l.send(rt,b)}catch(et){if(s)throw et;b(-1,et)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,undefined,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=undefined),i.ajax(i.extend({url:n,type:t,dataType:f,data:r,success:u},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(i.isFunction(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},af={0:200,1223:204},et=i.ajaxSettings.xhr(),f.cors=!!et&&"withCredentials"in et,f.ajax=et=!!et,i.ajaxTransport(function(t){var i,r;if(f.cors||et&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");for(o in u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.onreadystatechange=null,n==="abort"?e.abort():n==="error"?typeof e.status!="number"?f(0,"error"):f(e.status,e.statusText):f(af[e.status]||e.status,e.statusText,(e.responseType||"text")!=="text"||typeof e.responseText!="string"?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=i("error");e.onabort!==undefined?e.onabort=r:e.onreadystatechange=function(){e.readyState===4&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){n.cache===undefined&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(f,e){r=i("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e(n.type==="error"?404:200,n.type)});u.head.appendChild(r[0])},abort:function(){t&&t()}}}}),di=[],ri=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=di.pop()||i.expando+"_"+ef++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,e,o,s=t.jsonp!==!1&&(ri.test(t.url)?"url":typeof t.data=="string"&&(t.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ri.test(t.data)&&"data");if(s||t.dataTypes[0]==="jsonp")return f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ri,"$1"+f):t.jsonp!==!1&&(t.url+=(yi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){e===undefined?i(n).removeProp(f):n[f]=e;t[f]&&(t.jsonpCallback=r.jsonpCallback,di.push(f));o&&i.isFunction(e)&&e(o[0]);o=e=undefined}),"script"}),f.createHTMLDocument=function(){var n=u.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",n.childNodes.length===2}(),i.parseHTML=function(n,t,r){if(typeof n!="string")return[];typeof t=="boolean"&&(r=t,t=!1);var s,e,o;return(t||(f.createHTMLDocument?(t=u.implementation.createHTMLDocument(""),s=t.createElement("base"),s.href=u.location.href,t.head.appendChild(s)):t=u),e=ei.exec(n),o=!r&&[],e)?[t.createElement(e[1])]:(e=iu([n],t,o),o&&o.length&&i(o).remove(),i.merge([],e.childNodes))},i.fn.load=function(n,t,r){var u,o,s,f=this,e=n.indexOf(" ");return e>-1&&(u=k(n.slice(e)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=undefined):t&&typeof t=="object"&&(o="POST"),f.length>0&&i.ajax({url:n,type:o||"GET",dataType:"html",data:t}).done(function(n){s=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).always(r&&function(n,t){f.each(function(){r.apply(this,s||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};l==="static"&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=(l==="absolute"||l==="fixed")&&(s+c).indexOf("auto")>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,i.extend({},u)));t.top!=null&&(f.top=t.top-u.top+h);t.left!=null&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return n===undefined?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,f,e,t=this[0];if(t)return t.getClientRects().length?(f=t.getBoundingClientRect(),r=t.ownerDocument,u=r.documentElement,e=r.defaultView,{top:f.top+e.pageYOffset-u.clientTop,left:f.left+e.pageXOffset-u.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var t,r,u=this[0],n={top:0,left:0};return i.css(u,"position")==="fixed"?r=u.getBoundingClientRect():(t=this.offsetParent(),r=this.offset(),l(t[0],"html")||(n=t.offset()),n={top:n.top+i.css(t[0],"borderTopWidth",!0),left:n.left+i.css(t[0],"borderLeftWidth",!0)}),{top:r.top-n.top-i.css(u,"marginTop",!0),left:r.left-n.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&i.css(n,"position")==="static";)n=n.offsetParent;return n||dt})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(u){return v(this,function(n,u,f){var e;if(i.isWindow(n)?e=n:n.nodeType===9&&(e=n.defaultView),f===undefined)return e?e[t]:n[u];e?e.scrollTo(r?e.pageXOffset:f,r?f:e.pageYOffset):n[u]=f},n,u,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=hu(f.pixelPosition,function(n,r){if(r)return r=lt(n,t),li.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||typeof f!="boolean"),s=r||(f===!0||e===!0?"margin":"border");return v(this,function(t,r,f){var e;return i.isWindow(t)?u.indexOf("outer")===0?t["inner"+n]:t.document.documentElement["client"+n]:t.nodeType===9?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):f===undefined?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:undefined,o)}})}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)}}),i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=l,typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}),vf=n.jQuery,yf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=yf),t&&n.jQuery===i&&(n.jQuery=vf),i},t||(n.jQuery=n.$=i),i}),function(){function ut(t){function r(n,i,r,u,f,e){for(;f>=0&&f<e;f+=t){var o=u?u[f]:f;r=i(r,n[o],o,n)}return r}return function(u,f,o,s){f=e(f,s,4);var h=!i(u)&&n.keys(u),l=(h||u).length,c=t>0?0:l-1;return arguments.length<3&&(o=u[h?h[c]:c],c+=t),r(u,f,o,h,c,l)}}function ft(n){return function(i,r,f){r=t(r,f);for(var o=u(i),e=n>0?0:o-1;e>=0&&e<o;e+=n)if(r(i[e],e,i))return e;return-1}}function et(t,i,f){return function(e,o,s){var c=0,h=u(e);if(typeof s=="number")t>0?c=s>=0?s:Math.max(s+h,c):h=s>=0?Math.min(s+1,h):s+h+1;else if(f&&s&&h)return s=f(e,o),e[s]===o?s:-1;if(o!==o)return s=i(r.call(e,c,h),n.isNaN),s>=0?s+c:-1;for(s=t>0?c:h-1;s>=0&&s<h;s+=t)if(e[s]===o)return s;return-1}}function ot(t,i){var u=d.length,f=t.constructor,e=n.isFunction(f)&&f.prototype||v,r="constructor";for(n.has(t,r)&&!n.contains(i,r)&&i.push(r);u--;)r=d[u],r in t&&t[r]!==e[r]&&!n.contains(i,r)&&i.push(r)}var a=this,lt=a._,s=Array.prototype,v=Object.prototype,at=Function.prototype,vt=s.push,r=s.slice,o=v.toString,yt=v.hasOwnProperty,pt=Array.isArray,nt=Object.keys,y=at.bind,tt=Object.create,p=function(){},n=function(t){if(t instanceof n)return t;if(!(this instanceof n))return new n(t);this._wrapped=t},e,t,h,f,b,k,d,c,ct,l;typeof exports!="undefined"?(typeof module!="undefined"&&module.exports&&(exports=module.exports=n),exports._=n):a._=n;n.VERSION="1.8.3";e=function(n,t,i){if(t===void 0)return n;switch(i==null?3:i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return function(){return n.apply(t,arguments)}};t=function(t,i,r){return t==null?n.identity:n.isFunction(t)?e(t,i,r):n.isObject(t)?n.matcher(t):n.property(t)};n.iteratee=function(n,i){return t(n,i,Infinity)};var w=function(n,t){return function(i){var e=arguments.length,r,u,f;if(e<2||i==null)return i;for(r=1;r<e;r++){var o=arguments[r],s=n(o),h=s.length;for(u=0;u<h;u++)f=s[u],t&&i[f]!==void 0||(i[f]=o[f])}return i}},it=function(t){if(!n.isObject(t))return{};if(tt)return tt(t);p.prototype=t;var i=new p;return p.prototype=null,i},rt=function(n){return function(t){if(t!=null)return t[n]}},wt=Math.pow(2,53)-1,u=rt("length"),i=function(n){var t=u(n);return typeof t=="number"&&t>=0&&t<=wt};n.each=n.forEach=function(t,r,u){var f,o,s;if(r=e(r,u),i(t))for(f=0,o=t.length;f<o;f++)r(t[f],f,t);else for(s=n.keys(t),f=0,o=s.length;f<o;f++)r(t[s[f]],s[f],t);return t};n.map=n.collect=function(r,u,f){var e,s;u=t(u,f);var o=!i(r)&&n.keys(r),h=(o||r).length,c=Array(h);for(e=0;e<h;e++)s=o?o[e]:e,c[e]=u(r[s],s,r);return c};n.reduce=n.foldl=n.inject=ut(1);n.reduceRight=n.foldr=ut(-1);n.find=n.detect=function(t,r,u){var f;return f=i(t)?n.findIndex(t,r,u):n.findKey(t,r,u),f!==void 0&&f!==-1?t[f]:void 0};n.filter=n.select=function(i,r,u){var f=[];return r=t(r,u),n.each(i,function(n,t,i){r(n,t,i)&&f.push(n)}),f};n.reject=function(i,r,u){return n.filter(i,n.negate(t(r)),u)};n.every=n.all=function(r,u,f){var o,h,e,s;for(u=t(u,f),o=!i(r)&&n.keys(r),h=(o||r).length,e=0;e<h;e++)if(s=o?o[e]:e,!u(r[s],s,r))return!1;return!0};n.some=n.any=function(r,u,f){var o,h,e,s;for(u=t(u,f),o=!i(r)&&n.keys(r),h=(o||r).length,e=0;e<h;e++)if(s=o?o[e]:e,u(r[s],s,r))return!0;return!1};n.contains=n.includes=n.include=function(t,r,u,f){return i(t)||(t=n.values(t)),(typeof u!="number"||f)&&(u=0),n.indexOf(t,r,u)>=0};n.invoke=function(t,i){var u=r.call(arguments,2),f=n.isFunction(i);return n.map(t,function(n){var t=f?i:n[i];return t==null?t:t.apply(n,u)})};n.pluck=function(t,i){return n.map(t,n.property(i))};n.where=function(t,i){return n.filter(t,n.matcher(i))};n.findWhere=function(t,i){return n.find(t,n.matcher(i))};n.max=function(r,u,f){var e=-Infinity,c=-Infinity,h,o,s,l;if(u==null&&r!=null)for(r=i(r)?r:n.values(r),s=0,l=r.length;s<l;s++)h=r[s],h>e&&(e=h);else u=t(u,f),n.each(r,function(n,t,i){o=u(n,t,i);(o>c||o===-Infinity&&e===-Infinity)&&(e=n,c=o)});return e};n.min=function(r,u,f){var e=Infinity,c=Infinity,h,o,s,l;if(u==null&&r!=null)for(r=i(r)?r:n.values(r),s=0,l=r.length;s<l;s++)h=r[s],h<e&&(e=h);else u=t(u,f),n.each(r,function(n,t,i){o=u(n,t,i);(o<c||o===Infinity&&e===Infinity)&&(e=n,c=o)});return e};n.shuffle=function(t){for(var e=i(t)?t:n.values(t),o=e.length,u=Array(o),r=0,f;r<o;r++)f=n.random(0,r),f!==r&&(u[r]=u[f]),u[f]=e[r];return u};n.sample=function(t,r,u){return r==null||u?(i(t)||(t=n.values(t)),t[n.random(t.length-1)]):n.shuffle(t).slice(0,Math.max(0,r))};n.sortBy=function(i,r,u){return r=t(r,u),n.pluck(n.map(i,function(n,t,i){return{value:n,index:t,criteria:r(n,t,i)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i>r||i===void 0)return 1;if(i<r||r===void 0)return-1}return n.index-t.index}),"value")};h=function(i){return function(r,u,f){var e={};return u=t(u,f),n.each(r,function(n,t){var f=u(n,t,r);i(e,n,f)}),e}};n.groupBy=h(function(t,i,r){n.has(t,r)?t[r].push(i):t[r]=[i]});n.indexBy=h(function(n,t,i){n[i]=t});n.countBy=h(function(t,i,r){n.has(t,r)?t[r]++:t[r]=1});n.toArray=function(t){return t?n.isArray(t)?r.call(t):i(t)?n.map(t,n.identity):n.values(t):[]};n.size=function(t){return t==null?0:i(t)?t.length:n.keys(t).length};n.partition=function(i,r,u){r=t(r,u);var f=[],e=[];return n.each(i,function(n,t,i){(r(n,t,i)?f:e).push(n)}),[f,e]};n.first=n.head=n.take=function(t,i,r){if(t!=null)return i==null||r?t[0]:n.initial(t,t.length-i)};n.initial=function(n,t,i){return r.call(n,0,Math.max(0,n.length-(t==null||i?1:t)))};n.last=function(t,i,r){if(t!=null)return i==null||r?t[t.length-1]:n.rest(t,Math.max(0,t.length-i))};n.rest=n.tail=n.drop=function(n,t,i){return r.call(n,t==null||i?1:t)};n.compact=function(t){return n.filter(t,n.identity)};f=function(t,r,e,o){for(var s,l,a,h=[],v=0,c=o||0,y=u(t);c<y;c++)if(s=t[c],i(s)&&(n.isArray(s)||n.isArguments(s)))for(r||(s=f(s,r,e)),l=0,a=s.length,h.length+=a;l<a;)h[v++]=s[l++];else e||(h[v++]=s);return h};n.flatten=function(n,t){return f(n,t,!1)};n.without=function(t){return n.difference(t,r.call(arguments,1))};n.uniq=n.unique=function(i,r,f,e){var s,c,h,a,o,l;for(n.isBoolean(r)||(e=f,f=r,r=!1),f!=null&&(f=t(f,e)),s=[],c=[],h=0,a=u(i);h<a;h++)o=i[h],l=f?f(o,h,i):o,r?(h&&c===l||s.push(o),c=l):f?n.contains(c,l)||(c.push(l),s.push(o)):n.contains(s,o)||s.push(o);return s};n.union=function(){return n.uniq(f(arguments,!0,!0))};n.intersection=function(t){for(var r,i,f=[],o=arguments.length,e=0,s=u(t);e<s;e++)if(r=t[e],!n.contains(f,r)){for(i=1;i<o;i++)if(!n.contains(arguments[i],r))break;i===o&&f.push(r)}return f};n.difference=function(t){var i=f(arguments,!0,!0,1);return n.filter(t,function(t){return!n.contains(i,t)})};n.zip=function(){return n.unzip(arguments)};n.unzip=function(t){for(var r=t&&n.max(t,u).length||0,f=Array(r),i=0;i<r;i++)f[i]=n.pluck(t,i);return f};n.object=function(n,t){for(var r={},i=0,f=u(n);i<f;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r};n.findIndex=ft(1);n.findLastIndex=ft(-1);n.sortedIndex=function(n,i,r,f){var o;r=t(r,f,1);for(var h=r(i),e=0,s=u(n);e<s;)o=Math.floor((e+s)/2),r(n[o])<h?e=o+1:s=o;return e};n.indexOf=et(1,n.findIndex,n.sortedIndex);n.lastIndexOf=et(-1,n.findLastIndex);n.range=function(n,t,i){var u,f,r;for(t==null&&(t=n||0,n=0),i=i||1,u=Math.max(Math.ceil((t-n)/i),0),f=Array(u),r=0;r<u;r++,n+=i)f[r]=n;return f};b=function(t,i,r,u,f){if(!(u instanceof i))return t.apply(r,f);var e=it(t.prototype),o=t.apply(e,f);return n.isObject(o)?o:e};n.bind=function(t,i){if(y&&t.bind===y)return y.apply(t,r.call(arguments,1));if(!n.isFunction(t))throw new TypeError("Bind must be called on a function");var f=r.call(arguments,2),u=function(){return b(t,u,i,this,f.concat(r.call(arguments)))};return u};n.partial=function(t){var i=r.call(arguments,1),u=function(){for(var f=0,o=i.length,e=Array(o),r=0;r<o;r++)e[r]=i[r]===n?arguments[f++]:i[r];while(f<arguments.length)e.push(arguments[f++]);return b(t,u,this,this,e)};return u};n.bindAll=function(t){var i,u=arguments.length,r;if(u<=1)throw new Error("bindAll must be passed function names");for(i=1;i<u;i++)r=arguments[i],t[r]=n.bind(t[r],t);return t};n.memoize=function(t,i){var r=function(u){var f=r.cache,e=""+(i?i.apply(this,arguments):u);return n.has(f,e)||(f[e]=t.apply(this,arguments)),f[e]};return r.cache={},r};n.delay=function(n,t){var i=r.call(arguments,2);return setTimeout(function(){return n.apply(null,i)},t)};n.defer=n.partial(n.delay,n,1);n.throttle=function(t,i,r){var f,e,s,u=null,o=0,h;return r||(r={}),h=function(){o=r.leading===!1?0:n.now();u=null;s=t.apply(f,e);u||(f=e=null)},function(){var l=n.now(),c;return o||r.leading!==!1||(o=l),c=i-(l-o),f=this,e=arguments,c<=0||c>i?(u&&(clearTimeout(u),u=null),o=l,s=t.apply(f,e),u||(f=e=null)):u||r.trailing===!1||(u=setTimeout(h,c)),s}};n.debounce=function(t,i,r){var u,f,e,s,o,h=function(){var c=n.now()-s;c<i&&c>=0?u=setTimeout(h,i-c):(u=null,r||(o=t.apply(e,f),u||(e=f=null)))};return function(){e=this;f=arguments;s=n.now();var c=r&&!u;return u||(u=setTimeout(h,i)),c&&(o=t.apply(e,f),e=f=null),o}};n.wrap=function(t,i){return n.partial(i,t)};n.negate=function(n){return function(){return!n.apply(this,arguments)}};n.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,i=n[t].apply(this,arguments);r--;)i=n[r].call(this,i);return i}};n.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}};n.before=function(n,t){var i;return function(){return--n>0&&(i=t.apply(this,arguments)),n<=1&&(t=null),i}};n.once=n.partial(n.before,2);k=!{toString:null}.propertyIsEnumerable("toString");d=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];n.keys=function(t){var i,r;if(!n.isObject(t))return[];if(nt)return nt(t);i=[];for(r in t)n.has(t,r)&&i.push(r);return k&&ot(t,i),i};n.allKeys=function(t){var i,r;if(!n.isObject(t))return[];i=[];for(r in t)i.push(r);return k&&ot(t,i),i};n.values=function(t){for(var r=n.keys(t),u=r.length,f=Array(u),i=0;i<u;i++)f[i]=t[r[i]];return f};n.mapObject=function(i,r,u){var e;r=t(r,u);var o=n.keys(i),h=o.length,s={},f;for(e=0;e<h;e++)f=o[e],s[f]=r(i[f],f,i);return s};n.pairs=function(t){for(var r=n.keys(t),u=r.length,f=Array(u),i=0;i<u;i++)f[i]=[r[i],t[r[i]]];return f};n.invert=function(t){for(var u={},r=n.keys(t),i=0,f=r.length;i<f;i++)u[t[r[i]]]=r[i];return u};n.functions=n.methods=function(t){var i=[];for(var r in t)n.isFunction(t[r])&&i.push(r);return i.sort()};n.extend=w(n.allKeys);n.extendOwn=n.assign=w(n.keys);n.findKey=function(i,r,u){var o,f,e,s;for(r=t(r,u),o=n.keys(i),e=0,s=o.length;e<s;e++)if(f=o[e],r(i[f],f,i))return f};n.pick=function(t,i,r){var c={},u=t,l,o,s,v,h,a;if(u==null)return c;for(n.isFunction(i)?(o=n.allKeys(u),l=e(i,r)):(o=f(arguments,!1,!1,1),l=function(n,t,i){return t in i},u=Object(u)),s=0,v=o.length;s<v;s++)h=o[s],a=u[h],l(a,h,u)&&(c[h]=a);return c};n.omit=function(t,i,r){if(n.isFunction(i))i=n.negate(i);else{var u=n.map(f(arguments,!1,!1,1),String);i=function(t,i){return!n.contains(u,i)}}return n.pick(t,i,r)};n.defaults=w(n.allKeys,!0);n.create=function(t,i){var r=it(t);return i&&n.extendOwn(r,i),r};n.clone=function(t){return n.isObject(t)?n.isArray(t)?t.slice():n.extend({},t):t};n.tap=function(n,t){return t(n),n};n.isMatch=function(t,i){var e=n.keys(i),o=e.length,f,r,u;if(t==null)return!o;for(f=Object(t),r=0;r<o;r++)if(u=e[r],i[u]!==f[u]||!(u in f))return!1;return!0};c=function(t,i,r,u){var h,a,e,s,f,v,l;if(t===i)return t!==0||1/t==1/i;if(t==null||i==null)return t===i;if(t instanceof n&&(t=t._wrapped),i instanceof n&&(i=i._wrapped),h=o.call(t),h!==o.call(i))return!1;switch(h){case"[object RegExp]":case"[object String]":return""+t==""+i;case"[object Number]":return+t!=+t?+i!=+i:+t==0?1/+t==1/i:+t==+i;case"[object Date]":case"[object Boolean]":return+t==+i}if(a=h==="[object Array]",!a&&(typeof t!="object"||typeof i!="object"||(e=t.constructor,s=i.constructor,e!==s&&!(n.isFunction(e)&&e instanceof e&&n.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in i)))return!1;for(r=r||[],u=u||[],f=r.length;f--;)if(r[f]===t)return u[f]===i;if(r.push(t),u.push(i),a){if(f=t.length,f!==i.length)return!1;while(f--)if(!c(t[f],i[f],r,u))return!1}else{if(v=n.keys(t),f=v.length,n.keys(i).length!==f)return!1;while(f--)if(l=v[f],!(n.has(i,l)&&c(t[l],i[l],r,u)))return!1}return r.pop(),u.pop(),!0};n.isEqual=function(n,t){return c(n,t)};n.isEmpty=function(t){return t==null?!0:i(t)&&(n.isArray(t)||n.isString(t)||n.isArguments(t))?t.length===0:n.keys(t).length===0};n.isElement=function(n){return!!(n&&n.nodeType===1)};n.isArray=pt||function(n){return o.call(n)==="[object Array]"};n.isObject=function(n){var t=typeof n;return t==="function"||t==="object"&&!!n};n.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){n["is"+t]=function(n){return o.call(n)==="[object "+t+"]"}});n.isArguments(arguments)||(n.isArguments=function(t){return n.has(t,"callee")});typeof/./!="function"&&typeof Int8Array!="object"&&(n.isFunction=function(n){return typeof n=="function"||!1});n.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))};n.isNaN=function(t){return n.isNumber(t)&&t!==+t};n.isBoolean=function(n){return n===!0||n===!1||o.call(n)==="[object Boolean]"};n.isNull=function(n){return n===null};n.isUndefined=function(n){return n===void 0};n.has=function(n,t){return n!=null&&yt.call(n,t)};n.noConflict=function(){return a._=lt,this};n.identity=function(n){return n};n.constant=function(n){return function(){return n}};n.noop=function(){};n.property=rt;n.propertyOf=function(n){return n==null?function(){}:function(t){return n[t]}};n.matcher=n.matches=function(t){return t=n.extendOwn({},t),function(i){return n.isMatch(i,t)}};n.times=function(n,t,i){var u=Array(Math.max(0,n)),r;for(t=e(t,i,1),r=0;r<n;r++)u[r]=t(r);return u};n.random=function(n,t){return t==null&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))};n.now=Date.now||function(){return(new Date).getTime()};var st={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},bt=n.invert(st),ht=function(t){var r=function(n){return t[n]},i="(?:"+n.keys(t).join("|")+")",u=RegExp(i),f=RegExp(i,"g");return function(n){return n=n==null?"":""+n,u.test(n)?n.replace(f,r):n}};n.escape=ht(st);n.unescape=ht(bt);n.result=function(t,i,r){var u=t==null?void 0:t[i];return u===void 0&&(u=r),n.isFunction(u)?u.call(t):u};ct=0;n.uniqueId=function(n){var t=++ct+"";return n?n+t:t};n.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var g=/(.)^/,kt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},dt=/\\|'|\r|\n|\u2028|\u2029/g,gt=function(n){return"\\"+kt[n]};n.template=function(t,i,r){var o,f,h;!i&&r&&(i=r);i=n.defaults({},i,n.templateSettings);var c=RegExp([(i.escape||g).source,(i.interpolate||g).source,(i.evaluate||g).source].join("|")+"|$","g"),e=0,u="__p+='";t.replace(c,function(n,i,r,f,o){return u+=t.slice(e,o).replace(dt,gt),e=o+n.length,i?u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":f&&(u+="';\n"+f+"\n__p+='"),n});u+="';\n";i.variable||(u="with(obj||{}){\n"+u+"}\n");u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{o=new Function(i.variable||"obj","_",u)}catch(s){s.source=u;throw s;}return f=function(t){return o.call(this,t,n)},h=i.variable||"obj",f.source="function("+h+"){\n"+u+"}",f};n.chain=function(t){var i=n(t);return i._chain=!0,i};l=function(t,i){return t._chain?n(i).chain():i};n.mixin=function(t){n.each(n.functions(t),function(i){var r=n[i]=t[i];n.prototype[i]=function(){var t=[this._wrapped];return vt.apply(t,arguments),l(this,r.apply(n,t))}})};n.mixin(n);n.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=s[t];n.prototype[t]=function(){var n=this._wrapped;return i.apply(n,arguments),(t==="shift"||t==="splice")&&n.length===0&&delete n[0],l(this,n)}});n.each(["concat","join","slice"],function(t){var i=s[t];n.prototype[t]=function(){return l(this,i.apply(this._wrapped,arguments))}});n.prototype.value=function(){return this._wrapped};n.prototype.valueOf=n.prototype.toJSON=n.prototype.value;n.prototype.toString=function(){return""+this._wrapped};typeof define=="function"&&define.amd&&define("underscore",[],function(){return n})}.call(this),function(n){var t;(function(n){function t(n,t,i){var r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),u=n.indexOf("?")!==-1?"&":"?";return n.match(r)?n.replace(r,"$1"+t+"="+i+"$2"):n+u+t+"="+i}function i(n){var t,u,i,r;if(window.location.search==null||window.location.search.length<1)return null;if(t=window.location.search.substr(1).split("&"),t==null||t.length===0)return"";for(u={},i=0;i<t.length;++i)r=t[i].split("=",2),u[r[0]]=r.length===1?"":decodeURIComponent(r[1].replace(/\+/g," "));return u[n]}n.updateParameter=t;n.getParameter=i})(t=n.querystring||(n.querystring={}))}(DL||(DL={}));window.console||(window.console=new Console);window.console.log||(window.console.log=function(){return!1});window.console.info||(window.console.info=window.console.log);window.console.warn||(window.console.warn=window.console.info);window.console.error||(window.console.error=window.console.warn),function(n){"use strict";var t;n&&(t={},n.time=function(n){n&&(t[n]=Date.now())},n.timeEnd=function(i){t[i]&&(n.log(i+": "+(Date.now()-t[i])+"ms"),delete t[i])})}(window.console);document.createEvent||(document.createEvent=function(n){return new Event(n)});Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){t=t||0;for(var i=this.length;t<i;){if(this[t]===n)return t;++t}return-1});Array.prototype.remove=function(n){var t=this.indexOf(n);return t!==-1&&this.splice(t,1),this};Array.prototype.pushUnique=function(n){return this.indexOf(n)===-1&&this.push(n),this};String.prototype.startsWith||(String.prototype.startsWith=function(n,t){return t===void 0&&(t=0),this.substr(t,n.length)===n});String.prototype.replaceAll||(String.prototype.replaceAll=function(n,t){var i=this;return i.replace(new RegExp(n,"g"),t)});Modernizr.addTest("csssticky",function(){var n;return Modernizr.testStyles("#modernizr { position: -webkit-sticky;position: -moz-sticky;position: -o-sticky; position: -ms-sticky; position: sticky;}",function(t){n=(window.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position.indexOf("sticky")!==-1}),n}),function(n){function t(){return n.localVars.BuildIsProduction!=null?n.localVars.BuildIsProduction:n.localVars.BuildIsProduction=$("html").attr("data-isproduction")==="true"}function i(){var t=n.localVars.SiteBaseUrl!=null?n.localVars.SiteBaseUrl:n.localVars.SiteBaseUrl=$("html").attr("data-sitebaseurl");return(t==null||t.length==0)&&n.Utilities.AlertError("DL.SiteBaseUrl() is missing"),t}n.localVars=[];n.TestMode=n.querystring.getParameter("testmode")==="true";n.PreviewMode=!n.querystring.getParameter("pvw");n.BuildIsProduction=t;n.SiteBaseUrl=i}(DL||(DL={}));window.onerror=function(n,t,i,r){DL.BuildIsProduction()===!1&&t!=null&&t.length>0&&alert("Error: "+n+"\r\nFile: "+t+"\r\nLine: "+i+"\r\nChar: "+r)},function(n){var t;(function(t){function a(){o().setAspectRatio()}function r(n,i){return t.$localJqueryVars[n]!=null?t.$localJqueryVars[n]:t.$localJqueryVars[n]=i()}function u(n,i){return t.sizeDependantVars[n]!=null?t.sizeDependantVars[n]:t.sizeDependantVars[n]=i()}function i(){return r("window",function(){return $(window)})}function v(){return r("document",function(){return $(document)})}function y(){return r("body",function(){return $(document.body)})}function p(){return r("html,body",function(){return $("html,body")})}function o(){return r("getMaintainAspectRatioElements",function(){return $("[data-maintain-aspect-ratio]")})}function w(){return t.$localJqueryVars.browserSupportSrcSet!=null?t.$localJqueryVars.browserSupportSrcSet:t.$localJqueryVars.browserSupportSrcSet="srcset"in document.createElement("img")}function b(){t.sizeDependantVars=[]}function k(){return window.innerHeight!=null?Math.max(i().height(),window.innerHeight):i().height()}function d(){return window.innerWidth!=null?Math.max(i().width(),window.innerWidth):i().width()}function g(){return u("getWindowActualHeight",function(){return k()})}function nt(){return u("getWindowActualWidth",function(){return d()})}function tt(){return u("getWindowWidth",function(){return i().width()})}function it(){return u("getWindowHeight",function(){return i().height()})}function rt(){return n.Utilities.setUserTestId(),n.Utilities.UserTestId}function ut(){var t="DazedUserTestId";n.Utilities.UserTestId==null&&(n.Utilities.UserTestId=$.jStorage.get(t)||Math.floor(Math.random()*2520),$.jStorage.set(t,n.Utilities.UserTestId))}function ft(n){return n.which===1&&!n.metaKey&&!n.shiftKey}function et(){return Modernizr.mq("only screen and (max-width: 767px)")}function ot(){return Modernizr.mq("only screen and (min-width: 768px) and (max-width: 1024px)")}function st(){return Modernizr.mq("only screen and (min-width: 1025px)")}function ht(n,t){var f,i,r,o,u;for(t===void 0&&(t=window),f=[],i=2;i<arguments.length;i++)f[i-2]=arguments[i];if(n==null||n.length===0)return!1;for(r=n.split("."),o=r.pop(),u=0;u<r.length;u++)t=t[r[u]];return t?t[o].apply(t,f):(e("executeFunctionByName: "+o+" does not exist"),!1)}function ct(n,t){var i=n.match(/\/\d+(\/([0-9]+[-]){3}[0-9]+)?\/azure\//);return i!=null&&i.length>0?n.replace(i[0],"/"+t+(i[1]||"")+"/azure/"):n}function f(n){return n!=null&&typeof n=="function"}function lt(n){if(f(n)){var t=Array.prototype.slice.call(arguments).splice(1,256);return n.apply(this,t)}return null}function at(n){try{n()}catch(t){e(t)}}function e(t){console.warn(t);n.BuildIsProduction()===!1&&alert(t)}function vt(t){var i=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullScreen;i!=null&&n.Utilities.executeIfFunction(i.call(t))}function yt(){for(var i=[],t=0;t<arguments.length;t++)i[+t]=arguments[t];n.BuildIsProduction()===!1&&console.info(i)}function s(n,t){return n.charAt(n.length-1)===t?n.substr(0,n.length-1):n}function pt(n,t){var i,r;return t===void 0&&(t=0),i=(""+n).length-1,(i%3>0||i>6)&&(t=0),i=Math.min(i,6),i-=i%3,r=Math.pow(10,t),s(Math.round(n*r/Math.pow(10,i))/r+" kM"[i/3]," ")}function wt(){t.isUserActiveOnPage||(t.isUserActiveOnPage=!0,i().trigger("userActiveOnPage"))}function bt(n){if(t.isUserActiveOnPage)n();else i().on("userActiveOnPage",function(){return n})}function kt(n){return Array.isArray(n)?n:[n]}function dt(n){n===void 0&&(n=document.body);var i="noscroll",t=$(n);if(t.toggleClass(i),t.off("touchmove.preventScroll"),t.hasClass(i))t.on("touchmove.preventScroll",function(n){n.preventDefault()})}function gt(){return window.pageYOffset!==undefined?window.pageYOffset:(document.documentElement||document.body).scrollTop}function ni(n){var t=this,i=!1;return n.find(":input:not(:button):not([type=hidden])").each(function(){if((t.type==="text"||t.type==="textarea"||t.type==="hidden")&&t.defaultValue!==t.value||(t.type==="radio"||t.type==="checkbox")&&t.defaultChecked!==t.checked)return i=!0,!1;if(t.type==="select-one"||t.type==="select-multiple")for(var n=0;n<t.length;n++)if(t.options[n].selected!==t.options[n].defaultSelected)return i=!0,!1}),i}function h(){return window.googletag!=null&&f(window.googletag.openConsole)}function c(){var n,t;return h()?(n=document.createElement("ins"),n.className="AdSense",n.style.display="block",n.style.position="absolute",n.style.top="-1px",n.style.height="1px",document.body.appendChild(n),t=!n.clientHeight,document.body.removeChild(n),t):!0}function ti(){if(!l){l=!0;var t=!c(),i=t?"Loaded":"Not loaded";n.analytics.trackNonInteractionEvent("GPT",i,window.location.pathname);t||console.warn("GPT "+i)}}function ii(n,t){window.googletag.cmd.push(function(){window.googletag.pubads().setTargeting(n,t)})}function ri(n,t){var i;return typeof t=="string"&&(i=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(t),i)?new Date(Date.UTC(+i[1],+i[2]-1,+i[3],+i[4],+i[5],+i[6])):t}t.$localJqueryVars=[];t.sizeDependantVars=[];t.setAllAspectRatio=a;t.getCachedJqueryElements=r;t.getCachedSizeDependantValues=u;t.getWindowElement=i;t.getDocumentElement=v;t.getBodyElement=y;t.getHtmlBodyElement=p;t.getMaintainAspectRatioElements=o;t.browserSupportSrcSet=w;t.resetSizeDependentVariables=b;t.getWindowActualHeight=g;t.getWindowActualWidth=nt;t.getWindowWidth=tt;t.getWindowHeight=it;t.getUserTestId=rt;t.setUserTestId=ut;t.handleState=ft;t.isMobile=et;t.isTablet=ot;t.isDesktop=st;t.executeFunctionByName=ht;t.getImgUrlForWidth=ct;t.isFunction=f;t.executeIfFunction=lt;t.SilenceExceptionsOnLive=at;t.AlertError=e;t.requestFullScreen=vt;t.consoleLog=yt;t.trimEnd=s;t.numberAbbreviate=pt;t.isUserActiveOnPage=null;t.UserActiveOnPage=wt;t.OnUserActiveOnPage=bt;t.AsArray=kt;t.NoScrollToggle=dt;t.WindowScrollTop=gt;t.hasFormChanged=ni;t.gptLoaded=h;t.hasAdBlocker=c;var l=!1;t.trackGptLoading=ti;t.setGptTargeting=ii;t.jsonDateReviver=ri})(t=n.Utilities||(n.Utilities={}))}(DL||(DL={}));DL.Utilities.getWindowElement().one("maintainAspectRatio",function(){DL.Utilities.getWindowElement().on("load.maintainAspectRatio",DL.Utilities.setAllAspectRatio).on("resize.maintainAspectRatio",_.debounce(DL.Utilities.setAllAspectRatio,100))});DL.Utilities.getWindowElement().on("resize",DL.Utilities.resetSizeDependentVariables);DL.Utilities.getWindowElement().one("mousemove keydown touchstart focus scroll",DL.Utilities.UserActiveOnPage);$.fn.filterFind=function(n){return this.filter(n).add(this.find(n))};$.fn.scrollTo=function(n){n===void 0&&(n=0);var t=0;$("#header").css("position")==="fixed"&&(t=$("#header").outerHeight(!0));$(document.body).animate({scrollTop:this.offset().top-t-20},n)};$.fn.iframeBubbleTouchEvents=function(n){var t=$.extend({},{trackHorizontal:!0,trackVertical:!0},n),i=$(this);$.each($("iframe",this),function(n,r){var e;if(r.src!=null&&r.src.length>0&&r.src.indexOf(window.location.origin)<0){DL.Utilities.consoleLog("iframeBubbleTouchEvents wont run on "+r.src);return}if(e=r.contentDocument||r.contentWindow.document,e!=null){var u=null,f=null,o="touchstart.bubbleToParent touchmove.bubbleToParent touchend.bubbleToParent touchcancel.bubbleToParent";$(e).off(o).on(o,function(n){var h,o,s,r,e;n.type!=="touchmove"&&(u=null,f=null);h=n.originalEvent;o=h.targetTouches[0];u=u||o;o==null?(DL.Utilities.consoleLog("No originalTouch",n.type),s=document.createEvent("TouchEvent"),s.initEvent(n.type,!0,!0),s.type=n.type,s.cancelable=!0,s.bubbles=!0,i[0].dispatchEvent(s)):(r={X:u.screenX-o.screenX,Y:u.screenY-o.screenY},f==null&&(r.X!==0||r.Y!==0)&&(f=Math.abs(r.Y)>Math.abs(r.X)),f===!0?r.X=0:f===!1&&(r.Y=0),t.trackHorizontal||(r.X=0,f===!0&&n.preventDefault()),t.trackVertical||(r.Y=0,f===!1&&n.preventDefault()),e=document.createEvent("Event"),e.initEvent(n.type,!0,!0),e.pageX=u.pageX-r.X,e.pageY=u.pageY-r.Y,e.clientX=u.clientX-r.X,e.clientY=u.clientY-r.Y,e.screenX=o.screenX,e.screenY=o.screenY,i[0].dispatchEvent(e))})}})};$.fn.getUniqueSelector=function(n){var i,t,r;return(n=$.extend({includeParents:!1,includeAttributes:!1},n),i=$(this).attr("id"),i)?"#"+i:(t=this.prop("tagName"),n.includeParents===!0&&(t=$(this).parents().map(function(){return this.tagName}).get().reverse().concat([this.nodeName]).join(">")),r=$(this).attr("class"),r&&(t+="."+$.trim(r).replace(/\s/gi,".")),n.includeAttributes,t)};$.fn.getAvailHeight=function(){var n=this.get(0),t=n.offsetHeight||n.getBoundingClientRect().height,i,r;return t<=n.scrollHeight-1?t-n.scrollHeight:(i=$("<div/>"),i.height(t),this.append(i),r=2*t-n.scrollHeight,i.remove(),r)};$.fn.setAspectRatio=function(){$(this).each(function(){var n=$(this),t=parseFloat(n.attr("data-maintain-aspect-ratio"));isNaN(t)||n.css("height",Math.ceil(n.width()/t))})};$.fn.maintainAspectRatio=function(n){function t(n,t){var r=n.style[t],i;return r!=null&&r.length>0&&r.indexOf("%")<0?parseInt(r,10):(i=n.getAttribute(t),i!=null&&i.length>0&&i.indexOf("%")<0)?parseInt(i,10):null}n=$.extend({width:null,height:null},n);$(this).each(function(){var i=$(this),r,u;i.attr("data-maintain-aspect-ratio")==null&&(r=n.width||t(this,"width"),u=n.height||t(this,"height"),r==null||isNaN(r)||u==null||isNaN(u)||i.attr("data-maintain-aspect-ratio",Math.round(r*100/u)/100));i.attr("data-maintain-aspect-ratio")!=null&&(i.setAspectRatio(),DL.Utilities.$localJqueryVars.getMaintainAspectRatioElements=null,DL.Utilities.getWindowElement().trigger("maintainAspectRatio"))})};$.fn.isElementVisibleOnScreen=function(){var n=$(this).offset().top,t=$(this).offset().top+$(this).outerHeight(),i=$(window).scrollTop(),r=$(window).scrollTop()+window.innerHeight;return r>n&&i<t?!0:!1},function(n){function i(n){var i=$(n.currentTarget),r=i.attr("data-title"),u=i.attr("data-value")||r,f=i.attr("href");i.attr("target")==="_blank"?t.trackEvent(r,u,f):t.trackEventsOnNextPageLoad(r,u,f)}n.tracking=i;var t;(function(t){function i(){for(var i=[],t=0;t<arguments.length;t++)i[+t]=arguments[t];n.TestMode||window._gaq.push(i)}function u(n,t,r){n!=null&&n.length>0&&i("_trackEvent",n,t,r)}function r(t,i,r){t!=null&&t.length>0&&n.analytics.track("_trackEvent",t,i,r,null,!0)}function f(t,i,r){if(window.sessionStorage){var u=window.sessionStorage.getItem("trackEventsOnNextPageLoad");u=u!=null&&u.length>0?JSON.parse(u):[];u.push({event:t,action:i,label:r});window.sessionStorage.setItem("trackEventsOnNextPageLoad",JSON.stringify(u))}else{n.analytics.trackEvent(t,i,r);return}}function e(){if(window.sessionStorage){var n=window.sessionStorage.getItem("trackEventsOnNextPageLoad");n!=null&&n.length>0&&(JSON.parse(n).forEach(function(n){r(n.event,n.action,n.label)}),window.sessionStorage.setItem("trackEventsOnNextPageLoad",""))}}function o(n,t){i("_trackPageview",n);_.isUndefined(window.pSUPERFLY)||(_.isUndefined(window._sf_async_config)||(window._sf_async_config.sponsorName=""),window.pSUPERFLY.virtualPage(n,t))}t.track=i;t.trackEvent=u;t.trackNonInteractionEvent=r;t.trackEventsOnNextPageLoad=f;t.fireTrackEventsOnNextPageLoad=e;t.trackPageview=o})(t=n.analytics||(n.analytics={}))}(DL||(DL={}));$(function(){setTimeout(DL.analytics.fireTrackEventsOnNextPageLoad,1500)});
/*!
 * jQuery imagesLoaded plugin v2.1.1
 * http://github.com/desandro/imagesloaded
 *
 * MIT License. by Paul Irish et al.
 */
(function(n,t){var i="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";n.fn.imagesLoaded=function(r){function l(){var t=n(c),i=n(o);u&&(o.length?u.reject(f,t,i):u.resolve(f));n.isFunction(r)&&r.call(e,f,t,i)}function a(n){s(n.target,"error"===n.type)}function s(t,r){t.src===i||-1!==n.inArray(t,h)||(h.push(t),r?o.push(t):c.push(t),n.data(t,"imagesLoaded",{isBroken:r,src:t.src}),v&&u.notifyWith(n(t),[r,f,n(c),n(o)]),f.length===h.length&&(setTimeout(l),f.unbind(".imagesLoaded",a)))}var e=this,u=n.isFunction(n.Deferred)?n.Deferred():0,v=n.isFunction(u.notify),f=e.find("img").add(e.filter("img")),h=[],c=[],o=[];return n.isPlainObject(r)&&n.each(r,function(n,t){"callback"===n?r=t:u&&u[n](t)}),f.length?f.bind("load.imagesLoaded error.imagesLoaded",a).each(function(r,u){var e=u.src,f=n.data(u,"imagesLoaded");f&&f.src===e?s(u,f.isBroken):u.complete&&u.naturalWidth!==t?s(u,0===u.naturalWidth||0===u.naturalHeight):(u.readyState||u.complete)&&(u.src=i,u.src=e)}):l(),u?u.promise(e):e}})(jQuery),function(){"use strict";function it(){var u=!1,n;if("localStorage"in window)try{window.localStorage.setItem("_tmptest","tmpval");u=!0;window.localStorage.removeItem("_tmptest")}catch(f){}if(u)try{window.localStorage&&(i=window.localStorage,r="localStorage",o=i.jStorage_update)}catch(e){}else if("globalStorage"in window)try{window.globalStorage&&(i=window.location.hostname=="localhost"?window.globalStorage["localhost.localdomain"]:window.globalStorage[window.location.hostname],r="globalStorage",o=i.jStorage_update)}catch(s){}else if(t=document.createElement("link"),t.addBehavior){t.style.behavior="url(#default#userData)";document.getElementsByTagName("head")[0].appendChild(t);try{t.load("jStorage")}catch(h){t.setAttribute("jStorage","{}");t.save("jStorage");t.load("jStorage")}n="{}";try{n=t.getAttribute("jStorage")}catch(l){}try{o=t.getAttribute("jStorage_update")}catch(a){}i.jStorage=n;r="userDataBehavior"}else{t=null;return}nt();y();rt();tt();"addEventListener"in window&&window.addEventListener("pageshow",function(n){n.persisted&&c()},!1)}function g(){var n="{}";if(r=="userDataBehavior"){t.load("jStorage");try{n=t.getAttribute("jStorage")}catch(u){}try{o=t.getAttribute("jStorage_update")}catch(f){}i.jStorage=n}nt();y();tt()}function rt(){r=="localStorage"||r=="globalStorage"?"addEventListener"in window?window.addEventListener("storage",c,!1):document.attachEvent("onstorage",c):r=="userDataBehavior"&&setInterval(c,1e3)}function c(){var n;clearTimeout(k);k=setTimeout(function(){if(r=="localStorage"||r=="globalStorage")n=i.jStorage_update;else if(r=="userDataBehavior"){t.load("jStorage");try{n=t.getAttribute("jStorage_update")}catch(u){}}n&&n!=o&&(o=n,ut())},25)}function ut(){var i=f.parse(f.stringify(n.__jstorage_meta.CRC32)),r,t,u,e;g();r=f.parse(f.stringify(n.__jstorage_meta.CRC32));u=[];e=[];for(t in i)if(i.hasOwnProperty(t)){if(!r[t]){e.push(t);continue}i[t]!=r[t]&&String(i[t]).substr(0,2)=="2."&&u.push(t)}for(t in r)r.hasOwnProperty(t)&&(i[t]||u.push(t));h(u,"updated");h(e,"deleted")}function h(n,t){var i,r,o,f,e;if(n=[].concat(n||[]),t=="flushed"){n=[];for(e in u)u.hasOwnProperty(e)&&n.push(e);t="deleted"}for(i=0,o=n.length;i<o;i++){if(u[n[i]])for(r=0,f=u[n[i]].length;r<f;r++)u[n[i]][r](n[i],t);if(u["*"])for(r=0,f=u["*"].length;r<f;r++)u["*"][r](n[i],t)}}function l(){var n=(+new Date).toString();if(r=="localStorage"||r=="globalStorage")try{i.jStorage_update=n}catch(u){r=!1}else r=="userDataBehavior"&&(t.setAttribute("jStorage_update",n),t.save("jStorage"));c()}function nt(){if(i.jStorage)try{n=f.parse(String(i.jStorage))}catch(t){i.jStorage="{}"}else i.jStorage="{}";p=i.jStorage?String(i.jStorage).length:0;n.__jstorage_meta||(n.__jstorage_meta={});n.__jstorage_meta.CRC32||(n.__jstorage_meta.CRC32={})}function a(){et();try{i.jStorage=f.stringify(n);t&&(t.setAttribute("jStorage",i.jStorage),t.save("jStorage"));p=i.jStorage?String(i.jStorage).length:0}catch(r){}}function e(n){if(typeof n!="string"&&typeof n!="number")throw new TypeError("Key name must be string or numeric");if(n=="__jstorage_meta")throw new TypeError("Reserved key name");return!0}function y(){var u,t,i,f,r=Infinity,e=!1,o=[];if(clearTimeout(d),n.__jstorage_meta&&typeof n.__jstorage_meta.TTL=="object"){u=+new Date;i=n.__jstorage_meta.TTL;f=n.__jstorage_meta.CRC32;for(t in i)i.hasOwnProperty(t)&&(i[t]<=u?(delete i[t],delete f[t],delete n[t],e=!0,o.push(t)):i[t]<r&&(r=i[t]));r!=Infinity&&(d=setTimeout(y,Math.min(r-u,2147483647)));e&&(a(),l(),h(o,"deleted"))}}function tt(){var t,f,r,u,i;if(n.__jstorage_meta.PubSub){for(u=w,i=[],t=f=n.__jstorage_meta.PubSub.length-1;t>=0;t--)r=n.__jstorage_meta.PubSub[t],r[0]>w&&(u=r[0],i.unshift(r));for(t=i.length-1;t>=0;t--)ft(i[t][1],i[t][2]);w=u}}function ft(n,t){if(s[n])for(var i=0,r=s[n].length;i<r;i++)try{s[n][i](n,f.parse(f.stringify(t)))}catch(u){}}function et(){var i,t,r;if(n.__jstorage_meta.PubSub){for(i=+new Date-2e3,t=0,r=n.__jstorage_meta.PubSub.length;t<r;t++)if(n.__jstorage_meta.PubSub[t][0]<=i){n.__jstorage_meta.PubSub.splice(t,n.__jstorage_meta.PubSub.length-t);break}n.__jstorage_meta.PubSub.length||delete n.__jstorage_meta.PubSub}}function ot(t,i){n.__jstorage_meta||(n.__jstorage_meta={});n.__jstorage_meta.PubSub||(n.__jstorage_meta.PubSub=[]);n.__jstorage_meta.PubSub.unshift([+new Date,t,i]);a();l()}function st(n,t){for(var f=n.length,i=t^f,u=0,r;f>=4;)r=n.charCodeAt(u)&255|(n.charCodeAt(++u)&255)<<8|(n.charCodeAt(++u)&255)<<16|(n.charCodeAt(++u)&255)<<24,r=(r&65535)*1540483477+(((r>>>16)*1540483477&65535)<<16),r^=r>>>24,r=(r&65535)*1540483477+(((r>>>16)*1540483477&65535)<<16),i=(i&65535)*1540483477+(((i>>>16)*1540483477&65535)<<16)^r,f-=4,++u;switch(f){case 3:i^=(n.charCodeAt(u+2)&255)<<16;case 2:i^=(n.charCodeAt(u+1)&255)<<8;case 1:i^=n.charCodeAt(u)&255;i=(i&65535)*1540483477+(((i>>>16)*1540483477&65535)<<16)}return i^=i>>>13,i=(i&65535)*1540483477+(((i>>>16)*1540483477&65535)<<16),i^=i>>>15,i>>>0}var v=window.jQuery||window.$||(window.$={}),f={parse:window.JSON&&(window.JSON.parse||window.JSON.decode)||String.prototype.evalJSON&&function(n){return String(n).evalJSON()}||v.parseJSON||v.evalJSON,stringify:Object.toJSON||window.JSON&&(window.JSON.stringify||window.JSON.encode)||v.toJSON};if(typeof f.parse!="function"||typeof f.stringify!="function")throw new Error("No JSON support found, include //cdnjs.cloudflare.com/ajax/libs/json2/20110223/json2.js to page");var n={__jstorage_meta:{CRC32:{}}},i={jStorage:"{}"},t=null,p=0,r=!1,u={},k=!1,o=0,s={},w=+new Date,d,b={isXML:function(n){var t=(n?n.ownerDocument||n:0).documentElement;return t?t.nodeName!=="HTML":!1},encode:function(n){if(!this.isXML(n))return!1;try{return(new XMLSerializer).serializeToString(n)}catch(t){try{return n.xml}catch(i){}}return!1},decode:function(n){var i="DOMParser"in window&&(new DOMParser).parseFromString||window.ActiveXObject&&function(n){var t=new ActiveXObject("Microsoft.XMLDOM");return t.async="false",t.loadXML(n),t},t;return i?(t=i.call("DOMParser"in window&&new DOMParser||window,n,"text/xml"),this.isXML(t)?t:!1):!1}};v.jStorage={version:"0.4.12",set:function(t,i,r){if(e(t),r=r||{},typeof i=="undefined")return this.deleteKey(t),i;if(b.isXML(i))i={_is_xml:!0,xml:b.encode(i)};else{if(typeof i=="function")return undefined;i&&typeof i=="object"&&(i=f.parse(f.stringify(i)))}return n[t]=i,n.__jstorage_meta.CRC32[t]="2."+st(f.stringify(i),2538058380),this.setTTL(t,r.TTL||0),h(t,"updated"),i},get:function(t,i){return(e(t),t in n)?n[t]&&typeof n[t]=="object"&&n[t]._is_xml?b.decode(n[t].xml):n[t]:typeof i=="undefined"?null:i},deleteKey:function(t){return(e(t),t in n)?(delete n[t],typeof n.__jstorage_meta.TTL=="object"&&t in n.__jstorage_meta.TTL&&delete n.__jstorage_meta.TTL[t],delete n.__jstorage_meta.CRC32[t],a(),l(),h(t,"deleted"),!0):!1},setTTL:function(t,i){var r=+new Date;return(e(t),i=Number(i)||0,t in n)?(n.__jstorage_meta.TTL||(n.__jstorage_meta.TTL={}),i>0?n.__jstorage_meta.TTL[t]=r+i:delete n.__jstorage_meta.TTL[t],a(),y(),l(),!0):!1},getTTL:function(t){var r=+new Date,i;return(e(t),t in n&&n.__jstorage_meta.TTL&&n.__jstorage_meta.TTL[t])?(i=n.__jstorage_meta.TTL[t]-r,i||0):0},flush:function(){return n={__jstorage_meta:{CRC32:{}}},a(),l(),h(null,"flushed"),!0},storageObj:function(){function t(){}return t.prototype=n,new t},index:function(){var i=[];for(var t in n)n.hasOwnProperty(t)&&t!="__jstorage_meta"&&i.push(t);return i},storageSize:function(){return p},currentBackend:function(){return r},storageAvailable:function(){return!!r},listenKeyChange:function(n,t){e(n);u[n]||(u[n]=[]);u[n].push(t)},stopListening:function(n,t){if(e(n),u[n]){if(!t){delete u[n];return}for(var i=u[n].length-1;i>=0;i--)u[n][i]==t&&u[n].splice(i,1)}},subscribe:function(n,t){if(n=(n||"").toString(),!n)throw new TypeError("Channel not defined");s[n]||(s[n]=[]);s[n].push(t)},publish:function(n,t){if(n=(n||"").toString(),!n)throw new TypeError("Channel not defined");ot(n,t)},reInit:function(){g()},noConflict:function(n){return delete window.$.jStorage,n&&(window.jStorage=this),this}};it()}();
/*!
 * jQuery Cookie Plugin v1.3.1
 * https://github.com/carhartl/jquery-cookie
 *
 * Copyright 2013 Klaus Hartl
 * Released under the MIT license
 */
(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)})(function(n){function i(n){if(t.raw)return n;try{return decodeURIComponent(n.replace(u," "))}catch(i){}}function r(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));n=i(n);try{return t.json?JSON.parse(n):n}catch(r){}}var u=/\+/g,t=n.cookie=function(u,f,e){var a,c,o,l,s,v;if(f!==undefined)return e=n.extend({},t.defaults,e),typeof e.expires=="number"&&(a=e.expires,c=e.expires=new Date,c.setDate(c.getDate()+a)),f=t.json?JSON.stringify(f):String(f),document.cookie=[t.raw?u:encodeURIComponent(u),"=",t.raw?f:encodeURIComponent(f),e.expires?"; expires="+e.expires.toUTCString():"",e.path?"; path="+e.path:"",e.domain?"; domain="+e.domain:"",e.secure?"; secure":""].join("");for(o=u?undefined:{},l=document.cookie?document.cookie.split("; "):[],s=0,v=l.length;s<v;s++){var y=l[s].split("="),p=i(y.shift()),h=y.join("=");if(u&&u===p){o=r(h);break}u||(h=r(h))===undefined||(o[p]=h)}return o};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)!==undefined?(n.cookie(t,"",n.extend({},i,{expires:-1})),!0):!1}}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?t(require("jquery"),require("window")):typeof define=="function"&&define.amd?define("isInViewport",["jquery","window"],t):t(n.$,n.window)}(this,function(n,t){"use strict";function u(t){var i=this;if(arguments.length===1&&typeof t=="function"&&(t=[t]),!(t instanceof Array))throw new SyntaxError("isInViewport: Argument(s) passed to .do/.run should be a function or an array of functions");return t.forEach(function(t){typeof t!="function"?(console.warn("isInViewport: Argument(s) passed to .do/.run should be a function or an array of functions"),console.warn("isInViewport: Ignoring non-function values in array and moving on")):[].slice.call(i).forEach(function(i){return t.call(n(i))})}),this}function f(t){var i=n("<div><\/div>").css({width:"100%"}),r;return t.append(i),r=t.width()-i.width(),i.remove(),r}function i(r,u){var h=r.getBoundingClientRect(),c=h.top,l=h.bottom,a=h.left,v=h.right,e=n.extend({tolerance:0,viewport:t},u),o=e.viewport.jquery?e.viewport:n(e.viewport),s;o.length||(console.warn("isInViewport: The viewport selector you have provided matches no element on page."),console.warn("isInViewport: Defaulting to viewport as window"),o=n(t));var y=o.height(),p=o.width(),w=o[0].toString();return(o[0]!==t&&w!=="[object Window]"&&w!=="[object DOMWindow]"&&(s=o[0].getBoundingClientRect(),c=c-s.top,l=l-s.top,a=a-s.left,v=v-s.left,i.scrollBarWidth=i.scrollBarWidth||f(o),p-=i.scrollBarWidth),e.tolerance=~~Math.round(parseFloat(e.tolerance)),e.tolerance<0&&(e.tolerance=y+e.tolerance),v<=0||a>=p)?!1:e.tolerance?c<=e.tolerance&&l>=e.tolerance:l>0&&c<=y}function r(t){if(t){var i=t.split(",");return i.length===1&&isNaN(i[0])&&(i[1]=i[0],i[0]=void 0),{tolerance:i[0]?i[0].trim():void 0,viewport:i[1]?n(i[1].trim()):void 0}}return{}}n="default"in n?n["default"]:n;t="default"in t?t["default"]:t;
/**
     * @author  Mudit Ameta
     * @license https://github.com/zeusdeux/isInViewport/blob/master/license.md MIT
     */
n.extend(n.expr[":"],{"in-viewport":n.expr.createPseudo?n.expr.createPseudo(function(n){return function(t){return i(t,r(n))}}):function(n,t,u){return i(n,r(u[3]))}});n.fn.isInViewport=function(n){return this.filter(function(t,r){return i(r,n)})};n.fn.run=u}),function(n){var t;(function(t){function r(){i._init()}var u,f,i;t._init=r,function(t){function i(){var n=this;if(_.isUndefined(window.FB))return _(function(){$.proxy(t._init,n)()}).chain().bind(n).delay(100);window.FB.Event.subscribe("edge.create",function(n,i){t.action("like",n,i)});window.FB.Event.subscribe("edge.remove",function(n,i){t.action("unlike",n,i)});window.FB.getLoginStatus(function(n){n.status==="connected"&&$(".fb-login-item").removeClass("hidden")});window.FB.Event.subscribe("xfbml.render",function(){$(".fb-social-container").removeClass("invisible")})}function r(n){var i=this;if(_.isUndefined(window.FB))return _(function(){$.proxy(t.refresh,i)()}).chain().bind(i).delay(100);n=n||$(document.body);n.each(function(n,t){window.FB.XFBML.parse(t.parentNode||t)})}function u(t,i,r){t=t||"like";var u=$(r).closest("[data-track-category]"),f="Facebook";u.length>0&&(f=u.attr("data-track-category"));n.analytics.track("_trackSocial",f,t,i);n.Utilities.getWindowElement().trigger("facebook."+t,$(r))}t._init=i;t.refresh=r;t.action=u}(u=t.facebook||(t.facebook={})),function(t){function r(){var i=this;if(_.isUndefined(window.twttr))return _(function(){$.proxy(t._init,i)()}).chain().bind(i).delay(100);window.twttr.events.bind("tweet",function(t){if(t){var i;t.target&&t.target.nodeName==="IFRAME"&&(i=window.location.href);n.analytics.track("_trackSocial","twitter","tweet",i)}});window.twttr.events.bind("rendered",function(n){var t=$(n.target),i=t.closest(".twttr-social-container");i.removeClass("invisible")})}function i(n){var t=this;if(_.isUndefined(window.twttr))return _(function(){$.proxy(i,t,n)()}).chain().bind(t).delay(100);window.twttr.hasOwnProperty("widgets")&&(n=n||$(document.body),n.each(function(n,t){window.twttr.widgets.load(t)}))}t._init=r;t.refresh=i}(f=t.twitter||(t.twitter={})),function(t){function i(){n.Utilities.getDocumentElement().on("click",".pin-btn a",function(t){var i=$(t.currentTarget).attr("href");n.analytics.track("_trackSocial","pinterest","pin",i)})}function r(n,t,i){return"https://www.pinterest.com/pin/create/button/?url="+encodeURIComponent(window.DL.SiteBaseUrl()+n)+"&media="+encodeURIComponent(t)+(i?"&desciption="+encodeURIComponent(i):"")}t._init=i;t._pinButtonUrl=r}(i=t.pinterest||(t.pinterest={}))})(t=n.social||(n.social={}))}(DL||(DL={})),function(n){var t;(function(t){function et(n,t){if(n.attr("data-ajax-load")!=null&&n.attr("data-ajax-load").length>0&&n.attr("data-delay-load-status")!=="loaded")n.one("loaded",function(){t()});else t()}function y(t){n.Utilities.SilenceExceptionsOnLive(function(){var i=t.attr("data-ajax-load"),r;i!==null&&i.length!==0&&t.attr("data-delay-load-status")==null&&(t.attr("data-delay-load-status","loading"),r=t.attr("data-ajax-load-success"),$.ajax({url:i}).done(function(i){t.attr("data-delay-load-status","loaded");var u=i;i.jquery||(u=$(i));t.append(u);n.Utilities.executeFunctionByName(r,window,t,u);t.trigger("loaded");f(u)}).always(function(){t.children().length===0&&t.remove()}))})}function p(t){n.Utilities.SilenceExceptionsOnLive(function(){function u(i){t.attr("data-delay-load-status","loaded");var e=t.html(),o=_.template(e)(i),u=$(o);t.replaceWith(u);n.Utilities.executeFunctionByName(r,window,i,u);u.trigger("loaded",i);f(u)}var i=t.attr("data-ajax-json"),r,e;i!==null&&i.length!==0&&t.attr("data-delay-load-status")==null&&(t.attr("data-delay-load-status","loading"),r=t.attr("data-ajax-json-success"),i.startsWith("#")&&u(JSON.parse($(i).html())),e=$.getJSON(i,u))})}function w(t){var i=n.Utilities.getBodyElement().find('article[data-primary-article="true"]').attr("data-article-id");i!=null&&i.length>0&&t.filterFind('[data-article-id="'+i+'"]').remove()}function ot(n){var t=n.filterFind("[data-article-id]"),i=t.length;w(n);t=n.filterFind("[data-article-id]");i===t.length&&t.last().remove()}function b(){n.Utilities.getDocumentElement().on("click",".article-list-load-more",function(n){n.preventDefault();var r=$(this),t=$(this).closest(".article-list-container").find(".article-list"),i;$.ajax({url:r.attr("href")}).done(function(n){var e=$(n).filterFind(".article-list"),o=$(n).filterFind(".article-list-load-more"),u;i&&e.find("[data-article-id]").each(function(){var n=$(this);n.attr("data-article-id")===i&&n.remove()});u=e.children();t.append(u);f(u);t.attr("data-delay-load-status","loaded");t.trigger("items-loaded",[u]);r.replaceWith(o);ut(o.attr("href"));setTimeout(a,500)});i=$(document.body).find('[data-primary-article="true"]').attr("data-article-id");t.attr("data-delay-load-status","loading")})}function st(n){n=n||$(document.body);var t=n.filterFind("img");t.each(function(n,t){var i=t;setTimeout(function(){o(i)},(n+1)*4)})}function o(i,r){i!=null&&n.Utilities.SilenceExceptionsOnLive(function(){var u,c,y,f,o,b,p,l,e,a,w,h,v,s;if(r=r||{},u=$(i),!i.hasAttribute("data-responsive-widths")){c=u.attr("src");y=u.attr("data-src");y!=null&&y.length>0&&(c==null||c.length===0||c.startsWith("data:image/"))&&(u.attr("src",u.attr("data-src")),u.removeAttr("data-src"));return}if(f=parseFloat(u.attr("data-maxdevicepixelratio")),f=Math.min(t.devicePixelRatio,isNaN(f)?1:f),o=(r.parentWidth||Math.max(i.parentElement.clientWidth>0?i.parentElement.clientWidth:u.parent().innerWidth(),i.clientWidth))*f,r.parentHeight!=null&&(b=parseFloat(u.attr("data-aspect-ratio")),p=r.parentHeight*b*f,o>p&&(o=p)),i.naturalWidth==null||o>i.naturalWidth||o===0){if(l=u.attr("data-responsive-widths"),l==null||l.length===0)return;if(e=l.split(",").map(Number),e==null||e.length===0)return;if(a=u.attr("data-src"),u.attr("data-src",""),w=a!=null&&a.length>4?a:i.src,h=w,o>0){for(v=e[0]||200,s=1;s<e.length;s++){if(f<2&&(v=e[s]),e[s]>o)break;f>=2&&(v=e[s])}h=n.Utilities.getImgUrlForWidth(w,v)}h!==i.src&&h!==i.currentSrc&&(i.src=h)}})}function k(){e();l()}function s(t){t=t||$(document.body);n.Utilities.isMobile()?t.filterFind(".hidden-phone").remove():n.Utilities.isDesktop()?t.filterFind(".hidden-desktop").remove():n.Utilities.isTablet()&&t.filterFind(".hidden-tablet").remove();t.filterFind("[data-removeonscreenwidth]").each(function(t,i){var u,f,r,e;try{for(u=$(i),f=u.attr("data-removeonscreenwidth").split(","),r=0;r<f.length;r++)if(e=f[r].split("-"),n.Utilities.getWindowActualWidth()>=parseInt(e[0],10)&&n.Utilities.getWindowActualWidth()<=parseInt(e[1],10)){u.remove();return}}catch(o){n.Utilities.AlertError(o)}})}function u(t){t.filterFind("[data-delay-load]").each(function(t,i){var r=i,u=$(r);setTimeout(function(){n.Utilities.SilenceExceptionsOnLive(function(){if(r instanceof HTMLImageElement)o(r);else if(r instanceof HTMLIFrameElement){var n=u.attr("src");(n==null||n.length===0)&&u.attr("src",u.attr("data-src"))}else r.hasAttribute("data-ajax-load")?y(u):r.hasAttribute("data-ajax-json")&&p(u);u.removeAttr("data-delay-load").removeAttr("data-delay-load-mobile")})},(t+1)*4)})}function h(){if(i!=null&&i.shift){var n=i.shift();n!=null&&u(n.item)}}function c(){var t,r;if(i==null||i.length===0){n.Utilities.getWindowElement().off("scroll.delayLoad");return}for(t=n.Utilities.getWindowElement().scrollTop()+n.Utilities.getWindowActualHeight()*1.6;i.length>0;){if(r=i[0],r.offset.top>t)return;h()}}function d(){if(i===null||i.length===0){n.Utilities.getWindowElement().off("scroll.delayLoad");return}i.forEach(function(n){var t=n.item.attr("data-ajax-load");t&&r.pushUnique(t)})}function l(t){var r,f;t=t||$(document.body);n.Utilities.getWindowActualWidth()<768&&t.filterFind("[data-delay-load-mobile]").each(function(n,t){t.setAttribute("data-delay-load",t.getAttribute("data-delay-load-mobile"))});r=t.filterFind("[data-delay-load]");u(r.filter('[data-delay-load="immediate"]'));u(r.filter('[data-delay-load="docready"]'));f=r.filterFind('[data-delay-load="scroll"]');f.each(function(n,t){i.push({item:$(t)})});e();d();n.Utilities.getWindowElement().off("scroll.delayLoad").on("scroll.delayLoad",_.throttle(c,32))}function e(){i.forEach(function(n){n.offset=n.item.offset()});i.sort(function(n,t){return n.offset.top-t.offset.top});c()}function ht(t){(function(i,r,u){var f,e=i.getElementsByTagName(r)[0],o=i.location.toString(),s=/^http:/.test(o)?"http":"https";i.getElementById(u)?(t=t||$(document.body),n.social.twitter.refresh(t)):(f=i.createElement(r),f.id=u,f.async=!0,f.src=s+"://platform.twitter.com/widgets.js",e.parentNode.insertBefore(f,e),n.social.twitter._init())})(document,"script","twitter-wjs")}function g(t){(function(i,r,u){var f,e=i.getElementsByTagName(r)[0];i.getElementById(u)?(t=t||$(document.body),n.social.facebook.refresh(t)):(f=i.createElement(r),f.id=u,f.defer="defer",f.src="https://connect.facebook.net/en_UK/sdk.js#xfbml=1&version=v2.6",e.parentNode.insertBefore(f,e),n.social.facebook._init())})(document,"script","facebook-jssdk")}function nt(){(function(t,i,r){var u,f=t.getElementsByTagName(i)[0];t.getElementById(r)?window.instgrm!=null&&window.instgrm.Embeds!=null?window.instgrm.Embeds.process():n.Utilities.AlertError("Instagram Embed cant execute process()"):(u=t.createElement(i),u.id=r,u.async=!0,u.src="//platform.instagram.com/en_US/embeds.js",f.parentNode.insertBefore(u,f))})(document,"script","instagram-embeds")}function tt(){(function(n,t,i){var r,u=n.getElementsByTagName(t)[0];n.getElementById(i)||(r=n.createElement(t),r.id=i,r.defer="defer",r.src="//s.skimresources.com/js/54423X1306182.skimlinks.js",u.parentNode.insertBefore(r,u))})(document,"script","skimresources")}function it(n){n=n||$(document.body);var i=[],r=n.filterFind("[data-script-depends]");r.each(function(n,t){$(t).attr("data-script-depends").split(",").forEach(function(n){i.push(n)})});i.indexOf("twitter-widgets")>=0&&t.runTwitterWidgetScript(n.filterFind('[data-script-depends="twitter-widgets"]'));i.indexOf("facebook-sdk")>=0&&g(n.filterFind('[data-script-depends="facebook-sdk"]'));i.indexOf("instagram-embeds")>=0&&nt();i.indexOf("skimresources")>=0&&tt()}function f(t,i){function r(){t.find(".nowrap").each(function(n,t){var i=$(t);i.width()>=i.parent().width()&&i.removeClass("nowrap")})}i=i||{};t=t||$(document.body);s(t);r();setTimeout(r,1500);t.filterFind("[data-sponsored]:visible").each(function(t,i){var f=$(i),r="unknown",u;window.adTag!=null&&window.adTag.pageType!=null&&(r=window.adTag.pageType);u=f.find("a[data-sponsor-link]");n.analytics.trackNonInteractionEvent("Sponsored article view",r,u.first().attr("href"));u.on("click.trackEvent",function(){n.analytics.trackEventsOnNextPageLoad("Sponsored article click",r,$(this).attr("href"))})});i.loadNow?u(t):l(t);it(t)}function rt(t,i){var f,r,u;if(i=i||"prefetch",t!=null){for(f=n.Utilities.AsArray(t),r="",u=0;u<f.length;u++)r+='<link rel="'+i+'" href="'+f[u]+'" />';r.length>0&&$(document.head).append(r)}}function ut(t){$.merge(r,n.Utilities.AsArray(t))}function a(){rt(r,"prefetch");r=[]}function ft(){e();n.Utilities.OnUserActiveOnPage(function(){a();v=setInterval(function(){h();(i==null||i.length===0)&&clearInterval(v)},350)})}var i,r,v;t.devicePixelRatio=window.devicePixelRatio||1;i=[];r=[];t.runWhenLoaded=et;t.ajaxLoadHtml=y;t.ajaxLoadJson=p;t.removeDuplicatePrimaryArticle=w;t.removeDuplicatePrimaryArticleOrAnother=ot;t.initInfiniteLoadArticles=b;t.loadBestImageSizes=st;t.loadBestImageSize=o;t.sizeDependent=k;t.removeOnScreenWidth=s;t.loadNow=u;t.loadNextLoadOnScrollItem=h;t.loadItemsNearViewport=c;t.prefetchItemsForLoadOnScroll=d;t.delayLoadElements=l;t.calculateLoadOnScrollItems=e;s();t.runTwitterWidgetScript=ht;t.runFacebookSdkScript=g;t.runInstagramEmbedsScript=nt;t.runSkimResourcesScript=tt;t.runScriptDependencies=it;t.contentReady=f;t.loadAssets=rt;t.queuePrefetchAssets=ut;t.loadPrefetchAssets=a;v=null;t.windowOnLoad=ft;t.resizeDebounce=_.debounce(k,60);window.performance&&window.performance.timing&&window.performance.timing.responseEnd-window.performance.timing.responseStart>1e3&&(t.devicePixelRatio=1);$(function(){f();b()});n.Utilities.getWindowElement().on("load.deviceLoadOptimisation",ft).on("resize.deviceLoadOptimisation",t.resizeDebounce)})(t=n.deviceLoadOptimisation||(n.deviceLoadOptimisation={}))}(DL||(DL={})),function(n){function t(n){return n.each(function(n,t){return new i($(t))}),n}n.expandableImages=t;var i=function(){function t(n){this.$image=n;this.init()}return t.prototype.init=function(){var t=this,i=$("#expandable-img-tmpl").html(),u;if(i!=null&&i.length!==0){var c=this.$image.find(".img"),f=this.$image.data("img"),e=this.$image.data("src"),o=this.$image.find(".img-caption").clone(),s={img_src:e,img_id:f},h=_.template(i)(s),r=$(h);n.Utilities.getBodyElement().append(r);u=r.find(".image");u.append(o);this.$image.find(".img").on("click",function(){return t.click()});this.$image.find(".img").on("mouseenter",function(){return t.loadExpandedImg()});n.Utilities.getDocumentElement().on("click",".expanded-img",function(){return t.close()})}},t.prototype.loadExpandedImg=function(){var i=this.$image.closest(".inline-img").data("img"),r=$('.expanded-img[data-img="'+i+'"]'),t=r.find(".image > img"),n=t.attr("data-src");n!=null&&n.length>0&&t.attr("src",n)},t.prototype.click=function(){var r=this,t,i;this.loadExpandedImg();t=this.$image.closest(".inline-img").data("img");i=$('.expanded-img[data-img="'+t+'"]');i.addClass("open");n.Utilities.getWindowElement().one("scroll.collapseExpandedImage",function(){return r.close()})},t.prototype.close=function(){var t=this,i=$(".expanded-img.open");i.removeClass("open");n.Utilities.getWindowElement().off("scroll.collapseExpandedImage",function(){return t.close()})},t}()}(DL||(DL={})),function(n){function t(t){var i=t.charCode?t.charCode:t.keyCode?t.keyCode:0;return n.keyFn.hasOwnProperty(i)&&n.keyFn[i](),i}n.keyFn=n.keyFn||{};n.keydown=t}(DL||(DL={}));$(document).on("keydown.keyboard",function(n){return DL.keydown(n)});
/*!
* jQuery Cycle2; version: 2.1.6 build: 20141007
* http://jquery.malsup.com/cycle2/
* Copyright (c) 2014 M. Alsup; Dual licensed: MIT/GPL
*/
(function(n){"use strict";function t(n){return(n||"").toLowerCase()}var i="2.1.6";n.fn.cycle=function(i){var r;return this.length===0&&!n.isReady?(r={s:this.selector,c:this.context},n.fn.cycle.log("requeuing slideshow (dom not ready)"),n(function(){n(r.s,r.c).cycle(i)}),this):this.each(function(){var f,r,h,o,u=n(this),s=n.fn.cycle.log,e;if(!u.data("cycle.opts")){(u.data("cycle-log")===!1||i&&i.log===!1||r&&r.log===!1)&&(s=n.noop);s("--c2 init--");f=u.data();for(e in f)f.hasOwnProperty(e)&&/^cycle[A-Z]+/.test(e)&&(o=f[e],h=e.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),s(h+":",o,"("+typeof o+")"),f[h]=o);r=n.extend({},n.fn.cycle.defaults,f,i||{});r.timeoutId=0;r.paused=r.paused||!1;r.container=u;r._maxZ=r.maxZ;r.API=n.extend({_container:u},n.fn.cycle.API);r.API.log=s;r.API.trigger=function(n,t){return r.container.trigger(n,t),r.API};u.data("cycle.opts",r);u.data("cycle.API",r.API);r.API.trigger("cycle-bootstrap",[r,r.API]);r.API.addInitialSlides();r.API.preInitSlideshow();r.slides.length&&r.API.initSlideshow()}})};n.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var t=this.opts(),i=t.slides;t.slideCount=0;t.slides=n();i=i.jquery?i:t.container.find(i);t.random&&i.sort(function(){return Math.random()-.5});t.API.add(i)},preInitSlideshow:function(){var t=this.opts(),i;t.API.trigger("cycle-pre-initialize",[t]);i=n.fn.cycle.transitions[t.fx];i&&n.isFunction(i.preInit)&&i.preInit(t);t._preInitialized=!0},postInitSlideshow:function(){var t=this.opts(),i;t.API.trigger("cycle-post-initialize",[t]);i=n.fn.cycle.transitions[t.fx];i&&n.isFunction(i.postInit)&&i.postInit(t)},initSlideshow:function(){var t=this.opts(),r=t.container,i;t.API.calcFirstSlide();t.container.css("position")=="static"&&t.container.css("position","relative");n(t.slides[t.currSlide]).css({opacity:1,display:"block",visibility:"visible"});t.API.stackSlides(t.slides[t.currSlide],t.slides[t.nextSlide],!t.reverse);t.pauseOnHover&&(t.pauseOnHover!==!0&&(r=n(t.pauseOnHover)),r.hover(function(){t.API.pause(!0)},function(){t.API.resume(!0)}));t.timeout&&(i=t.API.getSlideOpts(t.currSlide),t.API.queueTransition(i,i.timeout+t.delay));t._initialized=!0;t.API.updateView(!0);t.API.trigger("cycle-initialized",[t]);t.API.postInitSlideshow()},pause:function(t){var i=this.opts(),r=i.API.getSlideOpts(),u=i.hoverPaused||i.paused;t?i.hoverPaused=!0:i.paused=!0;u||(i.container.addClass("cycle-paused"),i.API.trigger("cycle-paused",[i]).log("cycle-paused"),r.timeout&&(clearTimeout(i.timeoutId),i.timeoutId=0,i._remainingTimeout-=n.now()-i._lastQueue,(i._remainingTimeout<0||isNaN(i._remainingTimeout))&&(i._remainingTimeout=undefined)))},resume:function(n){var t=this.opts(),i=!t.hoverPaused&&!t.paused;n?t.hoverPaused=!1:t.paused=!1;i||(t.container.removeClass("cycle-paused"),t.slides.filter(":animated").length===0&&t.API.queueTransition(t.API.getSlideOpts(),t._remainingTimeout),t.API.trigger("cycle-resumed",[t,t._remainingTimeout]).log("cycle-resumed"))},add:function(t,i){var r=this.opts(),e=r.slideCount,u=!1,f;n.type(t)=="string"&&(t=n.trim(t));n(t).each(function(){var u,t=n(this);i?r.container.prepend(t):r.container.append(t);r.slideCount++;u=r.API.buildSlideOpts(t);r.slides=i?n(t).add(r.slides):r.slides.add(t);r.API.initSlide(u,t,--r._maxZ);t.data("cycle.opts",u);r.API.trigger("cycle-slide-added",[r,u,t])});r.API.updateView(!0);u=r._preInitialized&&e<2&&r.slideCount>=1;u&&(r._initialized?r.timeout&&(f=r.slides.length,r.nextSlide=r.reverse?f-1:1,r.timeoutId||r.API.queueTransition(r)):r.API.initSlideshow())},calcFirstSlide:function(){var n=this.opts(),t;t=parseInt(n.startingSlide||0,10);(t>=n.slides.length||t<0)&&(t=0);n.currSlide=t;n.reverse?(n.nextSlide=t-1,n.nextSlide<0&&(n.nextSlide=n.slides.length-1)):(n.nextSlide=t+1,n.nextSlide==n.slides.length&&(n.nextSlide=0))},calcNextSlide:function(){var n=this.opts(),t;n.reverse?(t=n.nextSlide-1<0,n.nextSlide=t?n.slideCount-1:n.nextSlide-1,n.currSlide=t?0:n.nextSlide+1):(t=n.nextSlide+1==n.slides.length,n.nextSlide=t?0:n.nextSlide+1,n.currSlide=t?n.slides.length-1:n.nextSlide-1)},calcTx:function(t,i){var r=t,u;return r._tempFx?u=n.fn.cycle.transitions[r._tempFx]:i&&r.manualFx&&(u=n.fn.cycle.transitions[r.manualFx]),u||(u=n.fn.cycle.transitions[r.fx]),r._tempFx=null,this.opts()._tempFx=null,u||(u=n.fn.cycle.transitions.fade,r.API.log('Transition "'+r.fx+'" not found.  Using fade.')),u},prepareTx:function(n,t){var i=this.opts(),o,f,e,r,u;if(i.slideCount<2){i.timeoutId=0;return}(n&&(!i.busy||i.manualTrump)&&(i.API.stopTransition(),i.busy=!1,clearTimeout(i.timeoutId),i.timeoutId=0),i.busy)||(i.timeoutId!==0||n)&&(f=i.slides[i.currSlide],e=i.slides[i.nextSlide],r=i.API.getSlideOpts(i.nextSlide),u=i.API.calcTx(r,n),i._tx=u,n&&r.manualSpeed!==undefined&&(r.speed=r.manualSpeed),i.nextSlide!=i.currSlide&&(n||!i.paused&&!i.hoverPaused&&i.timeout)?(i.API.trigger("cycle-before",[r,f,e,t]),u.before&&u.before(r,f,e,t),o=function(){(i.busy=!1,i.container.data("cycle.opts"))&&(u.after&&u.after(r,f,e,t),i.API.trigger("cycle-after",[r,f,e,t]),i.API.queueTransition(r),i.API.updateView(!0))},i.busy=!0,u.transition?u.transition(r,f,e,t,o):i.API.doTransition(r,f,e,t,o),i.API.calcNextSlide(),i.API.updateView()):i.API.queueTransition(r))},doTransition:function(t,i,r,u,f){var e=t,o=n(i),s=n(r),h=function(){s.animate(e.animIn||{opacity:1},e.speed,e.easeIn||e.easing,f)};s.css(e.cssBefore||{});o.animate(e.animOut||{},e.speed,e.easeOut||e.easing,function(){o.css(e.cssAfter||{});e.sync||h()});e.sync&&h()},queueTransition:function(t,i){var r=this.opts(),u=i!==undefined?i:t.timeout;if(r.nextSlide===0&&--r.loop==0){r.API.log("terminating; loop=0");r.timeout=0;u?setTimeout(function(){r.API.trigger("cycle-finished",[r])},u):r.API.trigger("cycle-finished",[r]);r.nextSlide=r.currSlide;return}if(r.continueAuto!==undefined&&(r.continueAuto===!1||n.isFunction(r.continueAuto)&&r.continueAuto()===!1)){r.API.log("terminating automatic transitions");r.timeout=0;r.timeoutId&&clearTimeout(r.timeoutId);return}u&&(r._lastQueue=n.now(),i===undefined&&(r._remainingTimeout=t.timeout),r.paused||r.hoverPaused||(r.timeoutId=setTimeout(function(){r.API.prepareTx(!1,!r.reverse)},u)))},stopTransition:function(){var n=this.opts();n.slides.filter(":animated").length&&(n.slides.stop(!1,!0),n.API.trigger("cycle-transition-stopped",[n]));n._tx&&n._tx.stopTransition&&n._tx.stopTransition(n)},advanceSlide:function(n){var t=this.opts();return clearTimeout(t.timeoutId),t.timeoutId=0,t.nextSlide=t.currSlide+n,t.nextSlide<0?t.nextSlide=t.slides.length-1:t.nextSlide>=t.slides.length&&(t.nextSlide=0),t.API.prepareTx(!0,n>=0),!1},buildSlideOpts:function(i){var u=this.opts(),f,o,r=i.data()||{};for(var e in r)r.hasOwnProperty(e)&&/^cycle[A-Z]+/.test(e)&&(f=r[e],o=e.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),u.API.log("["+(u.slideCount-1)+"]",o+":",f,"("+typeof f+")"),r[o]=f);r=n.extend({},n.fn.cycle.defaults,u,r);r.slideNum=u.slideCount;try{delete r.API;delete r.slideCount;delete r.currSlide;delete r.nextSlide;delete r.slides}catch(s){}return r},getSlideOpts:function(t){var i=this.opts(),r,u;return t===undefined&&(t=i.currSlide),r=i.slides[t],u=n(r).data("cycle.opts"),n.extend({},i,u)},initSlide:function(t,i,r){var u=this.opts();i.css(t.slideCss||{});r>0&&i.css("zIndex",r);isNaN(t.speed)&&(t.speed=n.fx.speeds[t.speed]||n.fx.speeds._default);t.sync||(t.speed=t.speed/2);i.addClass(u.slideClass)},updateView:function(n,t){var i=this.opts(),r,u;i._initialized&&((r=i.API.getSlideOpts(),u=i.slides[i.currSlide],!n&&t!==!0&&(i.API.trigger("cycle-update-view-before",[i,r,u]),i.updateView<0))||(i.slideActiveClass&&i.slides.removeClass(i.slideActiveClass).eq(i.currSlide).addClass(i.slideActiveClass),n&&i.hideNonActive&&i.slides.filter(":not(."+i.slideActiveClass+")").css("visibility","hidden"),i.updateView===0&&setTimeout(function(){i.API.trigger("cycle-update-view",[i,r,u,n])},r.speed/(i.sync?2:1)),i.updateView!==0&&i.API.trigger("cycle-update-view",[i,r,u,n]),n&&i.API.trigger("cycle-update-view-after",[i,r,u])))},getComponent:function(t){var r=this.opts(),i=r[t];return typeof i=="string"?/^\s*[\>|\+|~]/.test(i)?r.container.find(i):n(i):i.jquery?i:n(i)},stackSlides:function(t,i,r){var u=this.opts(),f,e,o;if(t||(t=u.slides[u.currSlide],i=u.slides[u.nextSlide],r=!u.reverse),n(t).css("zIndex",u.maxZ),e=u.maxZ-2,o=u.slideCount,r){for(f=u.currSlide+1;f<o;f++)n(u.slides[f]).css("zIndex",e--);for(f=0;f<u.currSlide;f++)n(u.slides[f]).css("zIndex",e--)}else{for(f=u.currSlide-1;f>=0;f--)n(u.slides[f]).css("zIndex",e--);for(f=o-1;f>u.currSlide;f--)n(u.slides[f]).css("zIndex",e--)}n(i).css("zIndex",u.maxZ-1)},getSlideIndex:function(n){return this.opts().slides.index(n)}};n.fn.cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))};n.fn.cycle.version=function(){return"Cycle2: "+i};n.fn.cycle.transitions={custom:{},none:{before:function(n,t,i,r){n.API.stackSlides(i,t,r);n.cssBefore={opacity:1,visibility:"visible",display:"block"}}},fade:{before:function(t,i,r,u){var f=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,r,u);t.cssBefore=n.extend(f,{opacity:0,visibility:"visible",display:"block"});t.animIn={opacity:1};t.animOut={opacity:0}}},fadeout:{before:function(t,i,r,u){var f=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,r,u);t.cssBefore=n.extend(f,{opacity:1,visibility:"visible",display:"block"});t.animOut={opacity:0}}},scrollHorz:{before:function(n,t,i,r){n.API.stackSlides(t,i,r);var u=n.container.css("overflow","hidden").width();n.cssBefore={left:r?u:-u,top:0,opacity:1,visibility:"visible",display:"block"};n.cssAfter={zIndex:n._maxZ-2,left:0};n.animIn={left:0};n.animOut={left:r?-u:u}}}};n.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:undefined,manualSpeed:undefined,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:0};n(document).ready(function(){n(n.fn.cycle.defaults.autoSelector).cycle()})})(jQuery);
/*! Cycle2 autoheight plugin; Copyright (c) M.Alsup, 2012; version: 20130913 */
(function(n){"use strict";function t(t,i){var f,o,e,r=i.autoHeight;if(r=="container")o=n(i.slides[i.currSlide]).outerHeight(),i.container.height(o);else if(i._autoHeightRatio)i.container.height(i.container.width()/i._autoHeightRatio);else if(r==="calc"||n.type(r)=="number"&&r>=0){if(e=r==="calc"?u(t,i):r>=i.slides.length?0:r,e==i._sentinelIndex)return;i._sentinelIndex=e;i._sentinel&&i._sentinel.remove();f=n(i.slides[e].cloneNode(!0));f.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel");f.css({position:"static",visibility:"hidden",display:"block"}).prependTo(i.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active");f.find("*").css("visibility","hidden");i._sentinel=f}}function u(t,i){var r=0,u=-1;return i.slides.each(function(t){var i=n(this).height();i>u&&(u=i,r=t)}),r}function i(t,i,r,u){var f=n(u).outerHeight();i.container.animate({height:f},i.autoHeightSpeed,i.autoHeightEasing)}function r(u,f){f._autoHeightOnResize&&(n(window).off("resize orientationchange",f._autoHeightOnResize),f._autoHeightOnResize=null);f.container.off("cycle-slide-added cycle-slide-removed",t);f.container.off("cycle-destroyed",r);f.container.off("cycle-before",i);f._sentinel&&(f._sentinel.remove(),f._sentinel=null)}n.extend(n.fn.cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null});n(document).on("cycle-initialized",function(u,f){function c(){t(u,f)}var o=f.autoHeight,s=n.type(o),h=null,e;if(s==="string"||s==="number"){f.container.on("cycle-slide-added cycle-slide-removed",t);f.container.on("cycle-destroyed",r);if(o=="container")f.container.on("cycle-before",i);else s==="string"&&/\d+\:\d+/.test(o)&&(e=o.match(/(\d+)\:(\d+)/),e=e[1]/e[2],f._autoHeightRatio=e);if(s!=="number"){f._autoHeightOnResize=function(){clearTimeout(h);h=setTimeout(c,50)};n(window).on("resize orientationchange",f._autoHeightOnResize)}setTimeout(c,30)}})})(jQuery);
/*! caption plugin for Cycle2;  version: 20130306 */
(function(n){"use strict";n.extend(n.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}<\/div><div>{{desc}}<\/div>",captionModule:"caption"});n(document).on("cycle-update-view",function(t,i,r,u){if(i.captionModule==="caption")n.each(["caption","overlay"],function(){var t=this,f=r[t+"Template"],n=i.API.getComponent(t);n.length&&f?(n.html(i.API.tmpl(f,r,i,u)),n.show()):n.hide()})});n(document).on("cycle-destroyed",function(t,i){var r;n.each(["caption","overlay"],function(){var n=this,t=i[n+"Template"];i[n]&&t&&(r=i.API.getComponent("caption"),r.empty())})})})(jQuery);
/*! command plugin for Cycle2;  version: 20140415 */
(function(n){"use strict";var t=n.fn.cycle;n.fn.cycle=function(i){var r,f,u,e=n.makeArray(arguments);return n.type(i)=="number"?this.cycle("goto",i):n.type(i)=="string"?this.each(function(){var o;if(r=i,u=n(this).data("cycle.opts"),u===undefined){t.log('slideshow must be initialized before sending commands; "'+r+'" ignored');return}if(r=r=="goto"?"jump":r,f=u.API[r],n.isFunction(f))return o=n.makeArray(e),o.shift(),f.apply(u.API,o);t.log("unknown command: ",r)}):t.apply(this,arguments)};n.extend(n.fn.cycle,t);n.extend(t.API,{next:function(){var n=this.opts(),t;(!n.busy||n.manualTrump)&&((t=n.reverse?-1:1,n.allowWrap===!1&&n.currSlide+t>=n.slideCount)||(n.API.advanceSlide(t),n.API.trigger("cycle-next",[n]).log("cycle-next")))},prev:function(){var n=this.opts(),t;(!n.busy||n.manualTrump)&&((t=n.reverse?1:-1,n.allowWrap===!1&&n.currSlide+t<0)||(n.API.advanceSlide(t),n.API.trigger("cycle-prev",[n]).log("cycle-prev")))},destroy:function(){this.stop();var t=this.opts(),i=n.isFunction(n._data)?n._data:n.noop;clearTimeout(t.timeoutId);t.timeoutId=0;t.API.stop();t.API.trigger("cycle-destroyed",[t]).log("cycle-destroyed");t.container.removeData();i(t.container[0],"parsedAttrs",!1);t.retainStylesOnDestroy||(t.container.removeAttr("style"),t.slides.removeAttr("style"),t.slides.removeClass(t.slideActiveClass));t.slides.each(function(){var r=n(this);r.removeData();r.removeClass(t.slideClass);i(this,"parsedAttrs",!1)})},jump:function(n,t){var u,i=this.opts(),r;if(!i.busy||i.manualTrump){if(r=parseInt(n,10),isNaN(r)||r<0||r>=i.slides.length){i.API.log("goto: invalid slide index: "+r);return}if(r==i.currSlide){i.API.log("goto: skipping, already on slide",r);return}i.nextSlide=r;clearTimeout(i.timeoutId);i.timeoutId=0;i.API.log("goto: ",r," (zero-index)");u=i.currSlide<i.nextSlide;i._tempFx=t;i.API.prepareTx(!0,u)}},stop:function(){var t=this.opts(),i=t.container;clearTimeout(t.timeoutId);t.timeoutId=0;t.API.stopTransition();t.pauseOnHover&&(t.pauseOnHover!==!0&&(i=n(t.pauseOnHover)),i.off("mouseenter mouseleave"));t.API.trigger("cycle-stopped",[t]).log("cycle-stopped")},reinit:function(){var n=this.opts();n.API.destroy();n.container.cycle()},remove:function(t){for(var i=this.opts(),r,u,e=[],o=1,f=0;f<i.slides.length;f++)r=i.slides[f],f==t?u=r:(e.push(r),n(r).data("cycle.opts").slideNum=o,o++);u&&(i.slides=n(e),i.slideCount--,n(u).remove(),t==i.currSlide?i.API.advanceSlide(1):t<i.currSlide?i.currSlide--:i.currSlide++,i.API.trigger("cycle-slide-removed",[i,t,u]).log("cycle-slide-removed"),i.API.updateView())}});n(document).on("click.cycle","[data-cycle-cmd]",function(t){t.preventDefault();var i=n(this),r=i.data("cycle-cmd"),u=i.data("cycle-context")||".cycle-slideshow";n(u).cycle(r,i.data("cycle-arg"))})})(jQuery);
/*! hash plugin for Cycle2;  version: 20130905 */
(function(n){"use strict";function t(t,i){var r;if(t._hashFence){t._hashFence=!1;return}r=window.location.hash.substring(1);t.slides.each(function(u){if(n(this).data("cycle-hash")==r){if(i===!0)t.startingSlide=u;else{var f=t.currSlide<u;t.nextSlide=u;t.API.prepareTx(!0,f)}return!1}})}n(document).on("cycle-pre-initialize",function(i,r){t(r,!0);r._onHashChange=function(){t(r,!1)};n(window).on("hashchange",r._onHashChange)});n(document).on("cycle-update-view",function(n,t,i){i.hash&&"#"+i.hash!=window.location.hash&&(t._hashFence=!0,window.location.hash=i.hash)});n(document).on("cycle-destroyed",function(t,i){i._onHashChange&&n(window).off("hashchange",i._onHashChange)})})(jQuery);
/*! loader plugin for Cycle2;  version: 20131121 */
(function(n){"use strict";n.extend(n.fn.cycle.defaults,{loader:!1});n(document).on("cycle-bootstrap",function(t,i){function u(t,u){function s(t){var o;i.loader=="wait"?(e.push(t),f===0&&(e.sort(h),r.apply(i.API,[e,u]),i.container.removeClass("cycle-loading"))):(o=n(i.slides[i.currSlide]),r.apply(i.API,[t,u]),o.show(),i.container.removeClass("cycle-loading"))}function h(n,t){return n.data("index")-t.data("index")}var e=[],o,f;if(n.type(t)=="string")t=n.trim(t);else if(n.type(t)==="array")for(o=0;o<t.length;o++)t[o]=n(t[o])[0];(t=n(t),f=t.length,f)&&(t.css("visibility","hidden").appendTo("body").each(function(t){function l(){--c==0&&(--f,s(o))}var c=0,o=n(this),h=o.is("img")?o:o.find("img");if(o.data("index",t),h=h.filter(":not(.cycle-loader-ignore)").filter(':not([src=""])'),!h.length){--f;e.push(o);return}c=h.length;h.each(function(){if(this.complete)l();else n(this).load(function(){l()}).on("error",function(){--c==0&&(i.API.log("slide skipped; img not loaded:",this.src),--f==0&&i.loader=="wait"&&r.apply(i.API,[e,u]))})})}),f&&i.container.addClass("cycle-loading"))}var r;i.loader&&(r=i.API.add,i.API.add=u)})})(jQuery);
/*! pager plugin for Cycle2;  version: 20140415 */
(function(n){"use strict";function t(t,i,r){var u,f=t.API.getComponent("pager");f.each(function(){var f=n(this),e;i.pagerTemplate?(e=t.API.tmpl(i.pagerTemplate,i,t,r[0]),u=n(e).appendTo(f)):u=f.children().eq(t.slideCount-1);u.on(t.pagerEvent,function(n){t.pagerEventBubble||n.preventDefault();t.API.page(f,n.currentTarget)})})}function i(n,t){var i=this.opts();if(!i.busy||i.manualTrump){var u=n.children().index(t),r=u,f=i.currSlide<r;i.currSlide!=r&&(i.nextSlide=r,i._tempFx=i.pagerFx,i.API.prepareTx(!0,f),i.API.trigger("cycle-pager-activated",[i,n,t]))}}n.extend(n.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerEventBubble:undefined,pagerTemplate:"<span>&bull;<\/span>"});n(document).on("cycle-bootstrap",function(n,i,r){r.buildPagerLink=t});n(document).on("cycle-slide-added",function(n,t,r,u){t.pager&&(t.API.buildPagerLink(t,r,u),t.API.page=i)});n(document).on("cycle-slide-removed",function(t,i,r){if(i.pager){var u=i.API.getComponent("pager");u.each(function(){var t=n(this);n(t.children()[r]).remove()})}});n(document).on("cycle-update-view",function(t,i){var r;i.pager&&(r=i.API.getComponent("pager"),r.each(function(){n(this).children().removeClass(i.pagerActiveClass).eq(i.currSlide).addClass(i.pagerActiveClass)}))});n(document).on("cycle-destroyed",function(n,t){var i=t.API.getComponent("pager");i&&(i.children().off(t.pagerEvent),t.pagerTemplate&&i.empty())})})(jQuery);
/*! prevnext plugin for Cycle2;  version: 20140408 */
(function(n){"use strict";n.extend(n.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1});n(document).on("cycle-initialized",function(n,t){t.API.getComponent("next").on(t.nextEvent,function(n){n.preventDefault();t.API.next()});t.API.getComponent("prev").on(t.prevEvent,function(n){n.preventDefault();t.API.prev()});if(t.swipe){var i=t.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",r=t.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";t.container.on(i,function(){t._tempFx=t.swipeFx;t.API.next()});t.container.on(r,function(){t._tempFx=t.swipeFx;t.API.prev()})}});n(document).on("cycle-update-view",function(n,t){if(!t.allowWrap){var i=t.disabledClass,r=t.API.getComponent("next"),u=t.API.getComponent("prev"),f=t._prevBoundry||0,e=t._nextBoundry!==undefined?t._nextBoundry:t.slideCount-1;t.currSlide==e?r.addClass(i).prop("disabled",!0):r.removeClass(i).prop("disabled",!1);t.currSlide===f?u.addClass(i).prop("disabled",!0):u.removeClass(i).prop("disabled",!1)}});n(document).on("cycle-destroyed",function(n,t){t.API.getComponent("prev").off(t.nextEvent);t.API.getComponent("next").off(t.prevEvent);t.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})})(jQuery);
/*! progressive loader plugin for Cycle2;  version: 20130315 */
(function(n){"use strict";n.extend(n.fn.cycle.defaults,{progressive:!1});n(document).on("cycle-pre-initialize",function(t,i){if(i.progressive){var u=i.API,f=u.next,s=u.prev,e=u.prepareTx,h=n.type(i.progressive),r,o;if(h=="array")r=i.progressive;else if(n.isFunction(i.progressive))r=i.progressive(i);else if(h=="string"){if(o=n(i.progressive),r=n.trim(o.html()),!r)return;if(/^(\[)/.test(r))try{r=n.parseJSON(r)}catch(c){u.log("error parsing progressive slides",c);return}else r=r.split(new RegExp(o.data("cycle-split")||"\n")),r[r.length-1]||r.pop()}e&&(u.prepareTx=function(n,t){var f,u;if(n||r.length===0){e.apply(i.API,[n,t]);return}if(t&&i.currSlide==i.slideCount-1){u=r[0];r=r.slice(1);i.container.one("cycle-slide-added",function(n,t){setTimeout(function(){t.API.advanceSlide(1)},50)});i.API.add(u)}else if(t||i.currSlide!==0)e.apply(i.API,[n,t]);else{f=r.length-1;u=r[f];r=r.slice(0,f);i.container.one("cycle-slide-added",function(n,t){setTimeout(function(){t.currSlide=1;t.API.advanceSlide(-1)},50)});i.API.add(u,!0)}});f&&(u.next=function(){var n=this.opts(),t;if(r.length&&n.currSlide==n.slideCount-1){t=r[0];r=r.slice(1);n.container.one("cycle-slide-added",function(n,t){f.apply(t.API);t.container.removeClass("cycle-loading")});n.container.addClass("cycle-loading");n.API.add(t)}else f.apply(n.API)});s&&(u.prev=function(){var n=this.opts(),t,i;if(r.length&&n.currSlide===0){t=r.length-1;i=r[t];r=r.slice(0,t);n.container.one("cycle-slide-added",function(n,t){t.currSlide=1;t.API.advanceSlide(-1);t.container.removeClass("cycle-loading")});n.container.addClass("cycle-loading");n.API.add(i,!0)}else s.apply(n.API)})}})})(jQuery);
/*! tmpl plugin for Cycle2;  version: 20121227 */
(function(n){"use strict";n.extend(n.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"});n.extend(n.fn.cycle.API,{tmpl:function(t,i){var u=new RegExp(i.tmplRegex||n.fn.cycle.defaults.tmplRegex,"g"),r=n.makeArray(arguments);return r.shift(),t.replace(u,function(t,i){for(var o,f,u,s=i.split("."),e=0;e<r.length;e++)if(f=r[e],f){if(s.length>1)for(u=f,o=0;o<s.length;o++)f=u,u=u[s[o]]||i;else u=f[i];if(n.isFunction(u))return u.apply(f,r);if(u!==undefined&&u!==null&&u!=i)return u}return i})}})})(jQuery);
/*! carousel transition plugin for Cycle2;  version: BETA-20121016 */
(function(n){"use strict";n(document).on("cycle-bootstrap",function(n,t,i){t.fx==="carousel"&&(i.getSlideIndex=function(n){var t=this.opts()._carouselWrap.children(),i=t.index(n);return i%t.length},i.next=function(){var n=t.reverse?-1:1;t.allowWrap===!1&&t.currSlide+n>t.slideCount-t.carouselVisible||(t.API.advanceSlide(n),t.API.trigger("cycle-next",[t]).log("cycle-next"))})});n.fn.cycle.transitions.carousel={preInit:function(t){t.hideNonActive=!1;t.container.on("cycle-destroyed",n.proxy(this.onDestroy,t.API));t.API.stopTransition=this.stopTransition},postInit:function(t){var u,i,f=t.carouselVertical,e,r;t.carouselVisible&&t.carouselVisible>t.slideCount&&(t.carouselVisible=t.slideCount-1);e=t.carouselVisible||t.slides.length;r={display:f?"block":"inline-block",position:"static"};t.container.css({position:"relative",overflow:"hidden"});t.slides.css(r);t._currSlide=t.currSlide;i=n('<div class="cycle-carousel-wrap"><\/div').prependTo(t.container).css({margin:0,padding:0,top:0,left:0,position:"absolute"}).append(t.slides);t._carouselWrap=i;f||i.css("white-space","nowrap");t.allowWrap!==!1&&(t.slides.slice(0,t.slideCount).clone().css(r).appendTo(i),t.carouselVisible===undefined&&t.slides.slice(0,t.slideCount).clone().css(r).appendTo(i),t.slides.slice(0,t.slideCount).clone().css(r).prependTo(i),t.carouselVisible===undefined&&t.slides.slice(0,t.slideCount).clone().css(r).prependTo(i));t.pager&&t.allowWrap===!1&&(u=t.slideCount-e,n(t.pager).children().filter(":gt("+u+")").hide());t._nextBoundry=t.slideCount-t.carouselVisible;this.prepareDimensions(t)},prepareDimensions:function(t){var r,u,e,i=t.carouselVertical,o=t.carouselVisible||t.slides.length,f;if(t.carouselFluid&&t.carouselVisible?t._carouselResizeThrottle||this.fluidSlides(t):t.carouselVisible&&t.carouselSlideDimension?(r=o*t.carouselSlideDimension,t.container[i?"height":"width"](r)):t.carouselVisible&&(r=o*n(t.slides[0])[i?"outerHeight":"outerWidth"](!0),t.container[i?"height":"width"](r)),u=t.carouselOffset||0,t.allowWrap!==!1)if(t.carouselSlideDimension)u-=(t.slideCount+t.currSlide)*t.carouselSlideDimension;else for(e=t._carouselWrap.children(),f=0;f<t.slideCount+t.currSlide;f++)u-=n(e[f])[i?"outerHeight":"outerWidth"](!0);t._carouselWrap.css(i?"top":"left",u)},fluidSlides:function(t){function u(){clearTimeout(i);i=setTimeout(f,20)}function f(){t._carouselWrap.stop(!1,!0);var n=t.container.width()/t.carouselVisible;n=Math.ceil(n-e);t._carouselWrap.children().width(n);t._sentinel&&t._sentinel.width(n);o(t)}var i,r=t.slides.eq(0),e=r.outerWidth()-r.width(),o=this.prepareDimensions;n(window).on("resize",u);t._carouselResizeThrottle=u;f()},transition:function(n,t,i,r,u){var s,c={},f=n.nextSlide-n.currSlide,o=n.carouselVertical,h,e;n.allowWrap===!1?(r=f>0,h=n._currSlide,e=n.slideCount-n.carouselVisible,f>0&&n.nextSlide>e&&h==e?f=0:f>0&&n.nextSlide>e?f=n.nextSlide-h-(n.nextSlide-e):f<0&&n.currSlide>e&&n.nextSlide>e?f=0:f<0&&n.currSlide>e?f+=n.currSlide-e:h=n.currSlide,s=this.getScroll(n,o,h,f),n.API.opts()._currSlide=n.nextSlide>e?e:n.nextSlide):r&&n.nextSlide===0?(s=this.getDim(n,n.currSlide,o),u=this.genCallback(n,r,o,u)):r||n.nextSlide!=n.slideCount-1?s=this.getScroll(n,o,n.currSlide,f):(s=this.getDim(n,n.currSlide,o),u=this.genCallback(n,r,o,u));c[o?"top":"left"]=r?"-="+s:"+="+s;n._carouselWrap.animate(c,n.speed,n.easing,u)},getDim:function(t,i,r){var u=n(t.slides[i]);return u[r?"outerHeight":"outerWidth"](!0)},getScroll:function(n,t,i,r){var u,f=0;if(r>0)for(u=i;u<i+r;u++)f+=this.getDim(n,u,t);else for(u=i;u>i+r;u--)f+=this.getDim(n,u,t);return f},genCallback:function(t,i,r,u){return function(){var i=n(t.slides[t.nextSlide]).position(),f=0-i[r?"top":"left"]-(t.carouselOffset||0);t._carouselWrap.css(t.carouselVertical?"top":"left",f);u()}},stopTransition:function(){var n=this.opts();n.slides.stop(!1,!0);n._carouselWrap.stop(!1,!0)},onDestroy:function(){var t=this.opts();t._carouselResizeThrottle&&n(window).off("resize",t._carouselResizeThrottle);t.slides.prependTo(t.container);t._carouselWrap.remove()}}})(jQuery);window.DD=window.DD||{};DD.SwiperCarousel=DD.SwiperCarousel||{};DD.SwiperCarousel.defaults={pagination:".swiper-pagination",centeredSlides:!1,slidesPerView:"auto",preventClicks:!0,roundLengths:!0,keyboardControl:!1,loop:!1,spaceBetween:10,autoplayDisableOnInteraction:!0,iOSEdgeSwipeDetection:!0,iOSEdgeSwipeThreshold:40};DD.SwiperCarousel.prepForSwiper=function(n){n.addClass("swiper-container");n.find(".item-list").addClass("swiper-wrapper");n.find(".list-item").addClass("swiper-slide");n.on("items-loaded",function(n,t){$(this).data("swiper").appendSlide(t.addClass("swiper-slide"))})};DL.Utilities.getDocumentElement().on("click",'*[data-track="event"]',DL.tracking);setTimeout(DL.Utilities.trackGptLoading,3e3);DL.Utilities.getWindowElement().one("load.checkGpt",DL.Utilities.trackGptLoading);if(DD.GalleryCollage=DD.GalleryCollage||{},DD.GalleryCollage.init=function(){var r=".gallery-collage",i,n;if($(r).length>0){i=768;n={container:r,containerClass:"gallery-collage",containerIdClass:"gallery-collage--",wrapper:".gallery-thumbs",slide:".gallery-thumb",swiperContainer:"swiper-container",swiperWrapper:"swiper-wrapper",swiperSlide:"swiper-slide",pagination:".swiper-pagination",paginationDOM:'<div class="swiper-pagination"><\/div>'};$(n.container).each(function(t){$(this).addClass(n.containerIdClass+(t+1))});var t=[],f=function(t){$(t).hasClass(n.swiperContainer)||($(t).addClass(n.swiperContainer),$(t).find(n.wrapper).addClass(n.swiperWrapper),$(t).find(n.slide).addClass(n.swiperSlide),$(t).append(n.paginationDOM))},u=function(t){f(t);var e={pagination:n.pagination,paginationClickable:!0},o=new Swiper(t,e),i=$(t).find(n.slide).last(),r=i.width(),u=40;i.css({width:r+u});$(window).on("resize",function(){setTimeout(function(){$(n.container).hasClass(n.swiperContainer)&&i.css({width:r+u})},200)});return o},e=function(t){$elem=$(t[0].container[0]);$elem.removeClass(n.swiperContainer);$elem.find(n.wrapper).removeClass(n.swiperWrapper);$elem.find(n.wrapper).removeAttr("style");$elem.find(n.slide).removeClass(n.swiperSlide);$elem.find(n.slide).removeAttr("style");$elem.find(n.pagination).remove();t[0].destroy()};$(window).width()<i&&t.push(u(n.container));$(window).on("resize",function(){t.length===0&&$(window).width()<i?$(n.container).each(function(){t.push(u($(this)))}):$(window).width()>=i&&t.length>0&&($(t).each(function(){e($(this))}),t=[])})}},DD.PopUpScroll=DD.PopUpScroll||{},DD.PopUpScroll.init=function(){var n=[{replaceCategory:"Charli XCX guest edit",cookieName:"charliXCXPopUpViewed",cookieDays:28,popupSelector:".popup",visibleClass:"popup--visible",popupCloseSelector:".popup__close",viewMoreSelector:".popup__view",viewMorePreserveRatioSelector:".preserve",listSelector:".popup .popup-article-list-container .item-list",listItemSelector:".popup .image-container",itemRatio:"66.6%",scrollContext:$(".article-wrapper"),scrollDepth:.5,delay:200}];$.each(n,function(n,t){var i,r;if($(t.popupSelector).length>0&&t.scrollContext.length>0){$(t.viewMoreSelector).detach().appendTo(t.listSelector);$(t.viewMoreSelector).find(t.viewMorePreserveRatioSelector).css({paddingTop:t.itemRatio});cookieValue=$.cookie(t.cookieName);i=cookieValue;i||t.scrollContext.waypoint(function(n){n==="down"&&(i||(setTimeout(function(){$(t.popupSelector).addClass(t.visibleClass)},t.delay),i=!0,r()))},{offset:-$("body").height()+$(window).height()+t.scrollContext.height()*t.scrollDepth+"px"});r=function(){$.cookie(t.cookieName,!0,{expires:t.cookieDays,secure:!0,path:"/"})};$(t.popupCloseSelector).on("click",function(){$(t.popupSelector).removeClass(t.visibleClass)})}})},DD.menu={stopScroll:function(){DL.Utilities.NoScrollToggle()},hideMenu:function(n){if(!$(n.target).hasClass("article-list-load-more")){var t=$(".navbar-checkbox");$.each(t,function(){$(this).prop("checked")===!0&&$(this).prop("checked",!1)})}}},DD.detectScrollbarWidth=function(){var n=$("body").prop("clientWidth"),t=$(window)[0].innerWidth;return t-n},DD.AutoVideos=DD.AutoVideos||{},DD.AutoVideos.init=function(){$("video").each(function(){$(this)[0].hasAttribute("playsinline")&&($(this)[0].play(),console.log("video now playing"))})},DD.headerInit=function(){var r=$("#header-big:visible"),i;if(r.length>0){var n=$("#header"),u=$("#menu-show-hide"),t=$("#menu-show-hide-scroll");t.on("change.headerScroll",function(){this.checked&&$(document.body).animate({scrollTop:0},400)});i=236;function f(){var r=DL.Utilities.getWindowElement().scrollTop();r<i?(n.removeAttr("data-show"),u[0].checked=!1):(n.attr("data-show",""),t[0].checked=!1)}DL.Utilities.getWindowElement().on("scroll",_.throttle(f,32))}},DD.footerInit=function(){var n=$("#body .footer-container"),t;n.find(".dazed-logo").maintainAspectRatio();DL.Utilities.isMobile()&&(t=n.find(".dazed-logo-top"),t.css("bottom",n.height()-t.height()+1))},DD.MailChimpSignUp=DD.MailChimpSignUp||{},DD.MailChimpSignUp.init=function(){if($(".mailchimp-signup").length>0)$(".mailchimp-signup").find("form").on("submit",function(n){var t=$(".mailchimp-signup").find("input[type='email']").val(),i=$(".mailchimp-signup").find("input[type='checkbox']:checked").length>0,r=$(".mailchimp-signup").find("input[type='hidden']").val();return t&&t.match(/@/g)?$.ajax({method:"POST",url:"/article/AddToMailchimpList",data:{email:t,addToDazedList:i,pageid:r},success:function(){$(".mailchimp-signup").removeClass("mailchimp-signup--error").addClass("mailchimp-signup--success");$(".mailchimp-signup").find("input[type='email']").val("");$(".mailchimp-signup").find("input[type='checkbox']:checked").prop("checked",!1);$(".mailchimp-signup").find("input[type='hidden']").val("")},error:function(){$(".mailchimp-signup").removeClass("mailchimp-signup--success").addClass("mailchimp-signup--error")}}):$(".mailchimp-signup").removeClass("mailchimp-signup--success").addClass("mailchimp-signup--error"),n.preventDefault(),n.stopPropagation(),!1})},DD.BlankTargetNoRef=DD.BlankTargetNoRef||{},DD.BlankTargetNoRef.init=function(){$("a").each(function(){$(this).attr("target")=="_blank"&&$(this).attr("rel","noopener noreferrer")})},DL.Utilities.getDocumentElement().ready(function(){function u(){t=$(window).scrollTop();n.on("mousewheel.stopScroll touchmove.stopScroll DOMMouseScroll.stopScroll",lockScroll);$(window).on("scroll.stopScroll",lockScroll);$('body[data-scroll-at-top="yes"]').length&&$(document).off("scroll.scrollAtTop")}function f(){if(n.off("mousewheel.stopScroll touchmove.stopScroll DOMMouseScroll.stopScroll"),$(window).off("scroll.stopScroll"),$('body[data-scroll-at-top="yes"]').length)$(document).on("scroll.scrollAtTop",_.throttle(e,100))}function e(){DL.Utilities.getBodyElement().attr("data-scroll-at-top",DL.Utilities.WindowScrollTop()==0?"yes":"no")}var t,n,i,r;if(DD.headerInit(),DD.footerInit(),DL.Utilities.isMobile()||DL.Utilities.isTablet())$(".header-navigation").on("touchmove scroll",function(n){return n.preventDefault(),n.stopPropagation(),!1});$(".menu-toggle").on("click",function(){$(".main-header-navigation").addClass("navslide");$(".navbar-secondary-overlay").addClass("main-nav-layer").append('<a style="width: 100%; height: 100%; display: block;"><\/a>')});$(".close-mainnav, .navbar-secondary-overlay").on("click",function(){$(".main-header-navigation").removeClass("navslide");$(".navbar-secondary-overlay").removeClass("main-nav-layer").empty()});if(n=$("body"),!DL.Utilities.isMobile()){function lockScroll(n){n.preventDefault();n.stopPropagation();$(window).scrollTop(t)}$(".icon-menu").on("click",function(){u()});$(".close-mainnav, .icon-menu-close").on("click",function(){f()})}if(DL.Utilities.isMobile()||$(window).scroll(function(){$scrolledDist=$(window).scrollTop();$scrolledDist>500&&$(".header-ad").addClass("scroll");$scrolledDist<658&&$(".header-ad").removeClass("scroll")}),!DL.Utilities.isMobile())$("#content").on("touchstart click",DD.menu.hideMenu);$.jStorage.get("dazed100-vote")==null&&$.jStorage.set("dazed100-vote",$.cookie("dazed100-vote"));$.removeCookie("dazed100-vote",{path:"/"});$.removeCookie("ddfacebook",{path:"/"});$.removeCookie("ddsubscribe",{path:"/"});$.removeCookie("ui-tabs-1",{path:"/"});$.removeCookie("ui-tabs-1",{path:window.location.pathname});$(".parallax-advert").length&&(i=$(".parallax-advert"),r=DD.detectScrollbarWidth()+"px",document.documentElement.style.setProperty("--scrollbarWidth",r),i.addClass("parallax-show"));DD.GalleryCollage.init();DD.AutoVideos.init();DD.PopUpScroll.init();DD.MailChimpSignUp.init();DD.BlankTargetNoRef.init()}),DL.Utilities.isMobile()){function ad_check(){var n=$('.article-wrapper[data-view-state="viewing"] .social-buttons-container-footer'),i=$(".article-wrapper[data-view-state='viewing'] .social-buttons-container-footer .mob-advert"),r=$(".article-wrapper:not([data-view-state='viewing']) .social-buttons-container-footer"),t;r.addClass("not-in-view");n.removeClass("not-in-view");n.hasClass("closed")||(t=i.attr("data-ad-width"),typeof t!="undefined"?n.show():n.hide())}$(document).on("touchmove scroll",function(){ad_check()});$("#content").on("click",".close",function(){$(this).parent().addClass("closed").hide()})}window.DD=window.DD||{};DD.d100=DD.d100||{};DD.d100.storedObject={};DD.d100.storedObject.Key="VoteEvent:"+DD.d100.voteEventId;DD.d100.storedObject.get=function(){return $.jStorage.get(DD.d100.storedObject.Key)||{items:[],votes:[]}};DD.d100.storedObject.set=function(n){$.jStorage.set(DD.d100.storedObject.Key,n);$.jStorage.setTTL(DD.d100.storedObject.Key,7776e6)};DD.d100.formatTitle=function(n){return n.replace(/^[#\d –-]+/g,"")};DD.d100.formatProfession=function(n){var i=n[3],r,t;return i?(r=/^dazed-100-([\w-]+)s$/g,t=r.exec(i),t==null)?"":t[1].replace("-"," ","g"):""};$(function(){$("#facebook-popup").remove();setTimeout(function(){$(".overlay-close").each(function(){var n=$(this);n.click(function(t){var i=n.closest('div[data-state="overlay"]').removeAttr("state"),i=n.closest('[state="overlay-active"]').removeAttr("state");t.preventDefault()})});$('[data-state="overlay"] .boxOverlay').click(function(){$('[data-state="overlay"]').removeAttr("state");$(document.body).removeAttr("state")})},1e3)});window.DD=window.DD||{};DD.d100=DD.d100||{};DD.d100.order=DD.d100.order||{};DD.d100.order.init=function(){DD.d100.order.applyToArticles();DD.d100.order.updateFromServer()};DD.d100.order.updateFromServer=function(){$.ajax({url:"/dazed100order/"+DD.d100.year,dataType:"json"}).done(function(n){var t=DD.d100.storedObject.get();t.items=n;DD.d100.storedObject.set(t);DD.d100.order.applyToArticles()}).fail(function(){DL.Utilities.AlertError("Dazed100 Vote order did not return successfully")})};DD.d100.order.applyToArticles=function(){if(DD.d100.storedObject!=null){var n=DD.d100.storedObject.get().items;n!=null&&n.length!=0&&($("#content [data-article-id]").each(function(){$article=$(this);var i=parseInt($article.attr("data-article-id")),t=$.grep(n,function(n){return n.id==i});t!=null&&t.length>0&&$article.attr("data-vote-order",t[0].order)}),DD.d100.prevnext(),DL.Utilities.executeIfFunction(DD.d100.gridUpdateSortData))}};DD.d100.prevnext=function(){var r=$("#content article[data-vote-order]"),n,u,t,i;if(r.length==1){if(n=DD.d100.storedObject.get().items,n==null||n.length==0)return;if(u=r.attr("data-vote-order"),u==null||u.length==0)return;if($order=parseInt(r.attr("data-vote-order")),isNaN($order))return;$prev=$order-1;$next=$order+1;$(".prev-ranking-number").attr("data-order-number",$prev);$(".next-ranking-number").attr("data-order-number",$next);$order!=n.length?(t=n[$next-1].url,$('a[data-type="order-next-link"]').show().attr("href",t),window.DL.deviceLoadOptimisation.prefetchAssets!=null&&window.DL.deviceLoadOptimisation.prefetchAssets.indexOf(t)<0&&window.DL.deviceLoadOptimisation.prefetchAssets.push(t)):$('a[data-type="order-next-link"]').hide();$order!=1?(i=n[$prev-1].url,$('a[data-type="order-prev-link"]').show().attr("href",i),window.DL.deviceLoadOptimisation.prefetchAssets!=null&&window.DL.deviceLoadOptimisation.prefetchAssets.indexOf(i)<0&&window.DL.deviceLoadOptimisation.prefetchAssets.push(i)):$('a[data-type="order-prev-link"]').hide()}};try{DD.d100.order.init()}catch(e){}$(DD.d100.order.init);window.DD=window.DD||{};DD.d100=DD.d100||{};DD.d100.voting={idKey:"dazed100-vote"};DD.d100.voting.voteInit=function(){var n=$.jStorage.get(DD.d100.voting.idKey);n!=null&&DD.d100.voting.showExistingVotes(n);$("#content .vote-action-2020").on("click.dazed100Vote",function(){var n=$(this),i=n.closest("[data-article-id]"),t=$.jStorage.get(DD.d100.voting.idKey),r;t!=null?n.attr("data-state")!="voted"?(DD.d100.voting.submitVote(i,t),DD.d100.order.updateFromServer()):n.attr("data-state")=="voted"&&(DD.d100.voting.deleteVote(i,t),DD.d100.order.updateFromServer()):t==null&&(n.attr("data-state","pending"),r=$(".voting-overlay"),$(document.body).attr("state","overlay-active"),r.attr("state","active"))})};DD.d100.voting.showVote=function(n){n.find(".vote-action-2020").attr("data-state","voted");n.find(".square").addClass("voted")};$(".article-body").attr("data-voting-state")=="Open"&&($(document.body).find(".footer-placeholder").attr("data-voting-state","Open"),$(document.body).find(".footer-container").attr("data-voting-state","Open"));DD.d100.voting.showExistingVotes=function(n){$.ajax({url:DD.d100.baseApiURL+"?voteEventId="+DD.d100.voteEventId+"&ignore=true",type:"GET",dataType:"json",headers:{"X-DAZEDMEDIA-UID":n}}).done(function(n){var i=[],r=DD.d100.storedObject.get(),t;($.each(n,function(n,t){i.push(t.itemId.toString())}),r.votes=i,DD.d100.storedObject.set(r),console.log("Successful fetched votes"),t=DD.d100.storedObject.get().votes,t!=null&&t.length!=0)&&$("#content [data-article-id]").each(function(){$article=$(this);var n=$article.attr("data-article-id");t.indexOf(n)>=0&&DD.d100.voting.showVote($article)})}).fail(function(n){DL.Utilities.AlertError(n.responseText)})};DD.d100.voting.submitVote=function(n,t){var i=n.attr("data-article-id"),r=DD.d100.storedObject.get();r.votes.indexOf(i)<0&&$.ajax({url:DD.d100.baseApiURL,data:{itemId:i,voteEventId:DD.d100.voteEventId},type:"POST",dataType:"json",headers:{"X-DAZEDMEDIA-UID":t}}).done(function(){n.find(".vote-action-2020").attr("data-state","voted");n.find(".square").addClass("voted");$(".thanks-notification").fadeIn(400);$(".thanks-notification").delay(2e3).fadeOut(400);var t=DD.d100.storedObject.get();t.votes.push(i);DD.d100.storedObject.set(t);console.log("Successful vote for: "+i)}).fail(function(n){DL.Utilities.AlertError(n.responseText)})};DD.d100.voting.deleteVote=function(n,t){var i=n.attr("data-article-id"),r=DD.d100.storedObject.get();r.votes.indexOf(i)>-1&&$.ajax({url:DD.d100.baseApiURL+"?itemId="+i+"&voteEventId="+DD.d100.voteEventId,type:"DELETE",dataType:"json",headers:{"X-DAZEDMEDIA-UID":t}}).done(function(){n.find(".vote-action-2020").attr("data-state","no-vote");n.find(".square").removeClass("voted");var t=DD.d100.storedObject.get();t.votes=$.grep(t.votes,function(n){return n!=i});DD.d100.storedObject.set(t);console.log("Successful delete for: "+i)}).fail(function(n){DL.Utilities.AlertError(n.responseText)})};$(DD.d100.voting.voteInit);
/*!
 * GSAP 3.5.1
 * https://greensock.com
 * 
 * @license Copyright 2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
 */
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n=n||self).window=n.window||{})}(this,function(n){"use strict";function we(n,t){n.prototype=Object.create(t.prototype);(n.prototype.constructor=n).__proto__=t}function ct(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function c(n){return"string"==typeof n}function s(n){return"function"==typeof n}function it(n){return"number"==typeof n}function bu(n){return void 0===n}function lt(n){return"object"==typeof n}function a(n){return!1!==n}function be(){return"undefined"!=typeof window}function ke(n){return s(n)||c(n)}function de(n){return(fu=pi(n,p))&&rt}function ku(n,t){return console.warn("Invalid property",n,"set to",t,"Missing plugin? gsap.registerPlugin()")}function ge(n,t){return!t&&console.warn(n)}function no(n,t){return n&&(p[n]=t)&&fu&&(fu[n]=t)||p}function ur(){return 0}function du(n){var r,t,i=n[0];if(lt(i)||s(i)||(n=[n]),!(r=(i._gsap||{}).harness)){for(t=hu.length;t--&&!hu[t].targetTest(i););r=hu[t]}for(t=n.length;t--;)n[t]&&(n[t]._gsap||(n[t]._gsap=new ie(n[t],r)))||n.splice(t,1);return n}function ti(n){return n._gsap||du(ot(n))[0]._gsap}function to(n,t,i){return(i=n[t])&&s(i)?n[t]():bu(i)&&n.getAttribute&&n.getAttribute(t)||i}function y(n,t){return(n=n.split(",")).forEach(t)||n}function t(n){return Math.round(1e5*n)/1e5||0}function nc(n,t){for(var r=t.length,i=0;n.indexOf(t[i])<0&&++i<r;);return i<r}function fr(n,t,i){var u,f=it(n[1]),e=(f?2:1)+(t<2?0:1),r=n[e];if(f&&(r.duration=n[1]),r.parent=i,t){for(u=r;i&&!("immediateRender"in u);)u=i.vars.defaults||{},i=a(i.vars.inherit)&&i.parent;r.immediateRender=a(u.immediateRender);t<2?r.runBackwards=1:r.startAt=n[e-1]}return r}function kr(){var t,n,i=pt.length,r=pt.slice(0);for(kf={},t=pt.length=0;t<i;t++)(n=r[t])&&n._lazy&&(n.render(n._lazy[0],n._lazy[1],!0)._lazy=0)}function io(n,t,i,r){pt.length&&kr();n.render(t,i,r);pt.length&&kr()}function ro(n){var t=parseFloat(n);return(t||0===t)&&(n+"").match(cs).length<2?t:c(n)?n.trim():n}function uo(n){return n}function d(n,t){for(var i in t)i in n||(n[i]=t[i]);return n}function tc(n,t){for(var i in t)i in n||"duration"===i||"ease"===i||(n[i]=t[i])}function gu(n,t){for(var i in t)n[i]=lt(t[i])?gu(n[i]||(n[i]={}),t[i]):t[i];return n}function nf(n,t){var i,r={};for(i in n)i in t||(r[i]=n[i]);return r}function dr(n){var t=n.parent||o,i=n.keyframes?tc:d;if(a(n.inherit))for(;t;)i(n,t.vars.defaults),t=t.parent||t._dp;return n}function gr(n,t,i,r){void 0===i&&(i="_first");void 0===r&&(r="_last");var u=t._prev,f=t._next;u?u._next=f:n[i]===t&&(n[i]=f);f?f._prev=u:n[r]===t&&(n[r]=u);t._next=t._prev=t.parent=null}function vt(n,t){n.parent&&(!t||n.parent.autoRemoveChildren)&&n.parent.remove(n);n._act=0}function ii(n,t){if(n&&(!t||t._end>n._dur||t._start<0))for(var i=n;i;)i._dirty=1,i=i.parent;return n}function fo(n){return n._repeat?wi(n._tTime,n=n.duration()+n._rDelay)*n:0}function nu(n,t){return(n-t._start)*t._ts+(0<=t._ts?0:t._dirty?t.totalDuration():t._tDur)}function tf(n){return n._end=t(n._start+(n._tDur/Math.abs(n._ts||n._rts||u)||0))}function eo(n,i){var r=n._dp;return r&&r.smoothChildTiming&&n._ts&&(n._start=t(n._dp._time-(0<n._ts?i/n._ts:((n._dirty?n.totalDuration():n._tDur)-i)/-n._ts)),tf(n),r._dirty||ii(r,n)),n}function rf(n,t){var i;if((t._time||t._initted&&!t._dur)&&(i=nu(n.rawTime(),t),(!t._dur||cr(0,t.totalDuration(),i)-t._tTime>u)&&t.render(i,!0)),ii(n,t)._dp&&n._initted&&n._time>=n._dur&&n._ts){if(n._dur<n.duration())for(i=n;i._dp;)0<=i.rawTime()&&i.totalTime(i._tTime),i=i._dp;n._zTime=-u}}function at(n,i,r,u){return i.parent&&vt(i),i._start=t(r+i._delay),i._end=t(i._start+(i.totalDuration()/Math.abs(i.timeScale())||0)),function(n,t,i,r,u){void 0===i&&(i="_first");void 0===r&&(r="_last");var e,f=n[r];if(u)for(e=t[u];f&&f[u]>e;)f=f._prev;f?(t._next=f._next,f._next=t):(t._next=n[i],n[i]=t);t._next?t._next._prev=t:n[r]=t;t._prev=f;t.parent=t._dp=n}(n,i,"_first","_last",n._sort?"_start":0),n._recent=i,u||rf(n,i),n}function oo(n,t){return(p.ScrollTrigger||ku("scrollTrigger",t))&&p.ScrollTrigger.create(t,n)}function so(n,t,i,r){return lc(n,t),n._initted?!i&&n._pt&&(n._dur&&!1!==n.vars.lazy||!n._dur&&n.vars.lazy)&&us!==tt.frame?(pt.push(n),n._lazy=[t,r],1):void 0:1}function ci(n,i,r,u){var f=n._repeat,e=t(i)||0,o=n._tTime/n._tDur;return o&&!u&&(n._time*=e/n._dur),n._dur=e,n._tDur=f?f<0?1e10:t(e*(f+1)+n._rDelay*f):e,o&&!u?eo(n,n._tTime=n._tDur*o):n.parent&&tf(n),r||ii(n.parent,n),n}function ho(n){return n instanceof h?ii(n):ci(n,n._dur)}function l(n,t){var i,f,r=n.labels,u=n._recent||oc,e=n.duration()>=et?u.endTime(!1):n._dur;return c(t)&&(isNaN(t)||t in r)?"<"===(i=t.charAt(0))||">"===i?("<"===i?u._start:u.endTime(0<=u._repeat))+(parseFloat(t.substr(1))||0):(i=t.indexOf("="))<0?(t in r||(r[t]=e),r[t]):(f=+(t.charAt(i-1)+t.substr(i+1)),1<i?l(n,t.substr(0,i-1))+f:e+f):null==t?e:+t}function yt(n,t){return n||0===n?t(n):t}function ut(n){return(n=(n+"").substr((parseFloat(n)+"").length))&&isNaN(n)?n:""}function co(n,t){return n&&lt(n)&&"length"in n&&(!t&&!n.length||n.length-1 in n&&lt(n[0]))&&!n.nodeType&&n!==ft}function lo(n){return n.sort(function(){return.5-Math.random()})}function ao(n){if(s(n))return n;var r=lt(n)?n:{each:n},u=di(r.ease),i=r.from||0,l=parseFloat(r.base)||0,a={},v=0<i&&i<1,e=isNaN(i)||v,f=r.axis,o=i,h=i;return c(i)?o=h={center:.5,edges:.5,end:1}[i]||0:!v&&e&&(o=i[0],h=i[1]),function(n,s,c){var tt,it,g,nt,k,b,w,d,y,v=(c||r).length,p=a[v];if(!p){if(!(y="auto"===r.grid?0:(r.grid||[1,et])[1])){for(w=-et;w<(w=c[y++].getBoundingClientRect().left)&&y<v;);y--}for(p=a[v]=[],tt=e?Math.min(y,v)*o-.5:i%y,it=e?v*h/y-.5:i/y|0,d=et,b=w=0;b<v;b++)g=b%y-tt,nt=it-(b/y|0),p[b]=k=f?Math.abs("y"===f?nt:g):es(g*g+nt*nt),w<k&&(w=k),k<d&&(d=k);"random"===i&&lo(p);p.max=w-d;p.min=d;p.v=v=(parseFloat(r.amount)||parseFloat(r.each)*(v<y?v-1:f?"y"===f?v/y:y:Math.max(y,v/y))||0)*("edges"===i?-1:1);p.b=v<0?l-v:l;p.u=ut(r.amount||r.each)||0;u=u&&v<0?vs(u):u}return v=(p[n]-p.min)/p.max||0,t(p.b+(u?u(v):v)*p.v)+p.u}}function uf(n){var t=n<1?Math.pow(10,(n+"").length-2):1;return function(i){return Math.floor(Math.round(parseFloat(i)/n)*n*t)/t+(it(i)?0:ut(i))}}function vo(n,t){var r,i,u=nt(n);return!u&&lt(n)&&(r=u=n.radius||et,n.values?(n=ot(n.values),(i=!it(n[0]))&&(r*=r)):n=uf(n.increment)),yt(t,u?s(n)?function(t){return i=n(t),Math.abs(i-t)<=r?i:t}:function(t){for(var e,s,h=parseFloat(i?t.x:t),c=parseFloat(i?t.y:0),o=et,u=0,f=n.length;f--;)(e=i?(e=n[f].x-h)*e+(s=n[f].y-c)*s:Math.abs(n[f]-h))<o&&(o=e,u=f);return u=!r||o<=r?n[u]:t,i||u===t||it(t)?u:u+ut(t)}:uf(n))}function yo(n,t,i,r){return yt(nt(n)?!t:!0===i?!!(i=0):!r,function(){return nt(n)?n[~~(Math.random()*n.length)]:(i=i||1e-5)&&(r=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((n+Math.random()*(t-n))/i)*i*r)/r})}function po(n,t,i){return yt(i,function(i){return n[~~t(i)]})}function tu(n){for(var t,r,f,u,i=0,e="";~(t=n.indexOf("random(",i));)f=n.indexOf(")",t),u="["===n.charAt(t+7),r=n.substr(t+7,f-t-7).match(u?cs:pf),e+=n.substr(i,t-i)+yo(u?r:+r[0],u?0:+r[1],+r[2]||1e-5),i=f+1;return e+n.substr(i,n.length-i)}function wo(n,t,i){var u,r,f,e=n.labels,o=et;for(u in e)(r=e[u]-t)<0==!!i&&r&&o>(r=Math.abs(r))&&(f=u,o=r);return f}function er(n){return vt(n),n.progress()<1&&b(n,"onInterrupt"),n}function ff(n,t,i){return(6*(n=n<0?n+1:1<n?n-1:n)<1?t+(i-t)*n*6:n<.5?i:3*n<2?t+(i-t)*(2/3-n)*6:t)*f+.5|0}function bo(n,t,i){var e,u,o,s,c,h,l,v,a,y,r=n?it(n)?[n>>16,n>>8&f,n&f]:0:lr.black;if(!r){if(","===n.substr(-1)&&(n=n.substr(0,n.length-1)),lr[n])r=lr[n];else if("#"===n.charAt(0))4===n.length&&(n="#"+(e=n.charAt(1))+e+(u=n.charAt(2))+u+(o=n.charAt(3))+o),r=[(n=parseInt(n.substr(1),16))>>16,n>>8&f,n&f];else if("hsl"===n.substr(0,3))if(r=y=n.match(pf),t){if(~n.indexOf("="))return r=n.match(ss),i&&r.length<4&&(r[3]=1),r}else s=+r[0]%360/360,c=r[1]/100,e=2*(h=r[2]/100)-(u=h<=.5?h*(c+1):h+c-h*c),3<r.length&&(r[3]*=1),r[0]=ff(s+1/3,e,u),r[1]=ff(s,e,u),r[2]=ff(s-1/3,e,u);else r=n.match(pf)||lr.transparent;r=r.map(Number)}return t&&!y&&(e=r[0]/f,u=r[1]/f,o=r[2]/f,h=((l=Math.max(e,u,o))+(v=Math.min(e,u,o)))/2,l===v?s=c=0:(a=l-v,c=.5<h?a/(2-l-v):a/(l+v),s=l===e?(u-o)/a+(u<o?6:0):l===u?(o-e)/a+2:(e-u)/a+4,s*=60),r[0]=~~(s+.5),r[1]=~~(100*c+.5),r[2]=~~(100*h+.5)),i&&r.length<4&&(r[3]=1),r}function ko(n){var t=[],i=[],r=-1;return n.split(bi).forEach(function(n){var u=n.match(yi)||[];t.push.apply(t,u);i.push(r+=u.length+1)}),t.c=i,t}function go(n,t,i){var h,f,s,o,e="",u=(n+e).match(bi),c=t?"hsla(":"rgba(",r=0;if(!u)return n;if(u=u.map(function(n){return(n=bo(n,t,1))&&c+(t?n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:n.join(","))+")"}),i&&(s=ko(n),(h=i.c).join(e)!==s.c.join(e)))for(o=(f=n.replace(bi,"1").split(yi)).length-1;r<o;r++)e+=f[r]+(~h.indexOf(r)?u.shift()||c+"0,0,0,0)":(s.length?s:u.length?u:i).shift());if(!f)for(o=(f=n.split(bi)).length-1;r<o;r++)e+=f[r]+u[r];return e+f[o]}function ns(n){var t,i=n.join(" ");if(bi.lastIndex=0,bi.test(i))return t=sc.test(i),n[1]=go(n[1],t),n[0]=go(n[0],t,ko(n[1])),!0}function ic(n){var r=(n+"").split("("),t=i[r[0]];return t&&1<r.length&&t.config?t.config.apply(null,~n.indexOf("{")?[function(n){for(var u,t,i,e={},f=n.substr(1,n.length-3).split(":"),o=f[0],r=1,s=f.length;r<s;r++)t=f[r],u=r!==s-1?t.lastIndexOf(","):t.length,i=t.substr(0,u),e[o]=isNaN(i)?i.replace(cc,"").trim():+i,o=t.substr(u+1).trim();return e}(r[1])]:function(n){var i=n.indexOf("(")+1,t=n.indexOf(")"),r=n.indexOf("(",i);return n.substring(i,~r&&r<t?n.indexOf(")",t+1):t)}(n).split(",").map(ro)):i._CE&&hc.test(n)?i._CE("",n):t}function iu(n,t){for(var r,i=n._first;i;)i instanceof h?iu(i,t):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===t||(i.timeline?iu(i.timeline,t):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=t)),i=i._next}function ri(n,t,r,u){void 0===r&&(r=function(n){return 1-t(1-n)});void 0===u&&(u=function(n){return n<.5?t(2*n)/2:1-t(2*(1-n))/2});var e,f={easeIn:t,easeOut:r,easeInOut:u};return y(n,function(n){for(var t in i[n]=p[n]=f,i[e=n.toLowerCase()]=r,f)i[e+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=i[n+"."+t]=f[t]}),f}function ts(n){return function(t){return t<.5?(1-n(1-2*t))/2:.5+n(2*(t-.5))/2}}function ru(n,t,i){function u(n){return 1===n?1:f*Math.pow(2,-10*n)*ec((n-o)*r)+1}var f=1<=t?t:1,r=(i||(n?.3:.45))/(t<1?t:1),o=r/yf*(Math.asin(1/f)||0),e="out"===n?u:"in"===n?function(n){return 1-u(1-n)}:ts(u);return r=yf/r,e.config=function(t,i){return ru(n,t,i)},e}function uu(n,t){function i(n){return n?--n*n*((t+1)*n+t)+1:0}void 0===t&&(t=1.70158);var r="out"===n?i:"in"===n?function(n){return 1-i(1-n)}:ts(i);return r.config=function(t){return uu(n,t)},r}function te(n){var t,u,i,f,r=lf()-vf,e=!0===n;if(ou<r&&(su+=r-af),(0<(t=(i=(vf+=r)-su)-sr)||e)&&(f=++ui.frame,cf=i-1e3*ui.time,ui.time=i/=1e3,sr+=t+(or<=t?4:or-t),u=1),e||(of=sf(te)),u)for(ai=0;ai<fi.length;ai++)fi[ai](i,cf,f,n)}function ys(n){return n<fs?hr*n*n:n<.72727272727272729?hr*Math.pow(n-1.5/2.75,2)+.75:n<.90909090909090917?hr*(n-=2.25/2.75)*n+.9375:hr*Math.pow(n-2.625/2.75,2)+.984375}function ps(n,t){var i=n.parent||o;this.vars=n;this._delay=+n.delay||0;(this._repeat=n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase);this._ts=1;ci(this,+n.duration,1,1);this.data=n.data;eu||tt.wake();i&&at(i,this,t||0===t?t:i._time,1);n.reversed&&this.reverse();n.paused&&this.paused(!0)}function ws(n,t,i,r,u,f){var e,h,l,o;if(w[n]&&!1!==(e=new w[n]).init(u,e.rawVars?t[n]:function(n,t,i,r,u){if(s(n)&&(n=ar(n,u,t,i,r)),!lt(n)||n.style&&n.nodeType||nt(n)||os(n))return c(n)?ar(n,u,t,i,r):n;var f,e={};for(f in n)e[f]=ar(n[f],u,t,i,r);return e}(t[n],r,u,f,i),i,r,f)&&(i._pt=h=new v(i._pt,u,n,0,1,e.render,e,0,e.priority),i!==li))for(l=i._ptLookup[i._targets.indexOf(u)],o=e._props.length;o--;)l[e._props[o]]=h;return e}function yc(n,t,i){return n.setAttribute(t,i)}function pc(n,t,i,r){r.mSet(n,t,r.m.call(r.tween,i,r.mt),r)}function th(n,t,i,r,u,f,e,o,s){this.t=t;this.s=r;this.c=u;this.p=i;this.r=f||ds;this.d=e||this;this.set=o||ue;this.pr=s||0;(this._next=n)&&(n._prev=this)}function il(n,t){for(var i=n._pt;i&&i.p!==t&&i.op!==t&&i.fp!==t;)i=i._next;return i}function oe(n,t){return{name:n,rawVars:1,init:function(n,i,r){r._onInit=function(n){var r,u;if(c(i)&&(r={},y(i,function(n){return r[n]=1}),i=r),t){for(u in r={},i)r[u]=t(i[u]);i=r}!function(n,t){var r,u,i,f=n._targets;for(r in t)for(u=f.length;u--;)(i=(i=n._ptLookup[u][r])&&i.d)&&(i._pt&&(i=il(i,r)),i&&i.modifier&&i.modifier(t[r],n,f[u],r))}(n,i)}}}}function ih(n,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*n))/1e4+t.u,t)}function rl(n,t){return t.set(t.t,t.p,1===n?t.e:Math.round(1e4*(t.s+t.c*n))/1e4+t.u,t)}function ul(n,t){return t.set(t.t,t.p,n?Math.round(1e4*(t.s+t.c*n))/1e4+t.u:t.b,t)}function fl(n,t){var i=t.s+t.c*n;t.set(t.t,t.p,~~(i+(i<0?-.5:.5))+t.u,t)}function rh(n,t){return t.set(t.t,t.p,n?t.e:t.b,t)}function uh(n,t){return t.set(t.t,t.p,1!==n?t.b:t.e,t)}function el(n,t,i){return n.style[t]=i}function ol(n,t,i){return n.style.setProperty(t,i)}function sl(n,t,i){return n._gsap[t]=i}function hl(n,t,i){return n._gsap.scaleX=n._gsap.scaleY=i}function cl(n,t,i,r,u){var f=n._gsap;f.scaleX=f.scaleY=i;f.renderTransform(u,f)}function ll(n,t,i,r,u){var f=n._gsap;f[t]=i;f.renderTransform(u,f)}function se(n,t){var i=ht.createElementNS?ht.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),n):ht.createElement(n);return i.style?i:ht.createElement(n)}function st(n,t,i){var r=getComputedStyle(n);return r[t]||r.getPropertyValue(t.replace(vh,"-$1").toLowerCase())||r.getPropertyValue(t)||!i&&st(n,rr(t)||t,1)||""}function he(){(function(){return"undefined"!=typeof window})()&&window.document&&(ch=window,ht=ch.document,nr=ht.documentElement,ei=se("div")||{style:{}},pr=se("div"),k=rr(k),ni=k+"Origin",ei.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ah=!!rr("perspective"),ve=1)}function cu(n){var t,i=se("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,u=this.nextSibling,f=this.style.cssText;if(nr.appendChild(i),i.appendChild(this),this.style.display="block",n)try{t=this.getBBox();this._gsapBBox=this.getBBox;this.getBBox=cu}catch(n){}else this._gsapBBox&&(t=this._gsapBBox());return r&&(u?r.insertBefore(this,u):r.appendChild(this)),nr.removeChild(i),this.style.cssText=f,t}function fh(n,t){for(var i=t.length;i--;)if(n.hasAttribute(t[i]))return n.getAttribute(t[i])}function eh(n){var t;try{t=n.getBBox()}catch(i){t=cu.call(n,!0)}return t&&(t.width||t.height)||n.getBBox===cu||(t=cu.call(n,!0)),!t||t.width||t.x||t.y?t:{x:+fh(n,["x","cx","x1"])||0,y:+fh(n,["y","cy","y1"])||0,width:0,height:0}}function oh(n){return!(!n.getCTM||n.parentNode&&!n.ownerSVGElement||!eh(n))}function lu(n,t){if(t){var i=n.style;t in dt&&t!==ni&&(t=k);i.removeProperty?("ms"!==t.substr(0,2)&&"webkit"!==t.substr(0,6)||(t="-"+t),i.removeProperty(t.replace(vh,"-$1").toLowerCase())):i.removeAttribute(t)}}function bt(n,t,i,r,u,f){var e=new v(n._pt,t,i,0,1,f?uh:rh);return(n._pt=e).b=r,e.e=u,n._props.push(i),e}function kt(n,i,r,u){var c,f,o,v,e=parseFloat(r)||0,s=(r+"").trim().substr((e+"").length)||"px",l=ei.style,h=ya.test(i),w="svg"===n.tagName.toLowerCase(),y=(w?"client":"offset")+(h?"Width":"Height"),p="px"===u,a="%"===u;return u===s||!e||ph[u]||ph[s]?e:("px"===s||p||(e=kt(n,i,r,"px")),v=n.getCTM&&oh(n),a&&(dt[i]||~i.indexOf("adius"))?t(e/(v?n.getBBox()[h?"width":"height"]:n[y])*100):(l[h?"width":"height"]=100+(p?s:u),f=~i.indexOf("adius")||"em"===u&&n.appendChild&&!w?n:n.parentNode,v&&(f=(n.ownerSVGElement||{}).parentNode),f&&f!==ht&&f.appendChild||(f=ht.body),(o=f._gsap)&&a&&o.width&&h&&o.time===tt.time?t(e/o.width*100):(!a&&"%"!==s||(l.position=st(n,"position")),f===n&&(l.position="static"),f.appendChild(ei),c=ei[y],f.removeChild(ei),l.position="absolute",h&&a&&((o=ti(f)).time=tt.time,o.width=f[y]),t(p?c*e/100:c&&e?100/c*e:0))))}function yr(n,t,i,r){var u;return ve||he(),t in gt&&"transform"!==t&&~(t=gt[t]).indexOf(",")&&(t=t.split(",")[0]),dt[t]&&"transform"!==t?(u=vu(n,r),u="transformOrigin"!==t?u[t]:yu(st(n,ni))+" "+u.zOrigin+"px"):(u=n.style[t])&&"auto"!==u&&!r&&!~(u+"").indexOf("calc(")||(u=au[t]&&au[t](n,t,i)||st(n,t)||to(n,t)||("opacity"===t?1:0)),i&&!~(u+"").indexOf(" ")?kt(n,t,u,i)+i:u}function al(n,t,i,r){var l,a;i&&"none"!==i||(l=rr(t,n,1),a=l&&st(n,l,1),a&&a!==i?(t=l,i=a):"borderColor"===t&&(i=st(n,"borderTopColor")));var w,b,nt,s,o,y,e,p,h,u,k,d,f=new v(this._pt,n.style,t,0,1,gs),c=0,tt=0;if(f.b=i,f.e=r,i+="","auto"==(r+="")&&(n.style[t]=r,r=st(n,t)||r,n.style[t]=i),ns(w=[i,r]),r=w[1],nt=(i=w[0]).match(yi)||[],(r.match(yi)||[]).length){for(;b=yi.exec(r);)e=b[0],h=r.substring(c,b.index),o?o=(o+1)%5:"rgba("!==h.substr(-5)&&"hsla("!==h.substr(-5)||(o=1),e!==(y=nt[tt++]||"")&&(s=parseFloat(y)||0,k=y.substr((s+"").length),(d="="===e.charAt(1)?+(e.charAt(0)+"1"):0)&&(e=e.substr(2)),p=parseFloat(e),u=e.substr((p+"").length),c=yi.lastIndex-u.length,u||(u=u||g.units[t]||k,c===r.length&&(r+=u,f.e+=u)),k!==u&&(s=kt(n,t,y,u)||0),f._pt={_next:f._pt,p:h||1===tt?h:",",s:s,c:d?d*p:p-s,m:o&&o<4?Math.round:0});f.c=c<r.length?r.substring(c,r.length):""}else f.r="display"===t&&"none"===r?uh:rh;return hs.test(r)&&(f.e=0),this._pt=f}function vl(n){var r=n.split(" "),t=r[0],i=r[1]||"50%";return"top"!==t&&"bottom"!==t&&"left"!==i&&"right"!==i||(n=t,t=i,i=n),r[0]=wh[t]||t,r[1]=wh[i]||i,r.join(" ")}function yl(n,t){if(t.tween&&t.tween._time===t.tween._dur){var r,f,e,i=t.t,s=i.style,u=t.u,o=i._gsap;if("all"===u||!0===u)s.cssText="",f=1;else for(e=(u=u.split(",")).length;-1<--e;)r=u[e],dt[r]&&(f=1,r="transformOrigin"===r?ni:k),lu(i,r);f&&(lu(i,k),o&&(o.svg&&i.removeAttribute("transform"),vu(i,1),o.uncache=1))}}function sh(n){return"matrix(1, 0, 0, 1, 0, 0)"===n||"none"===n||!n}function hh(n){var i=st(n,k);return sh(i)?wr:i.substr(7).match(ss).map(t)}function ce(n,t){var u,f,r,o,s=n._gsap||ti(n),e=n.style,i=hh(n);return s.svg&&n.getAttribute("transform")?"1,0,0,1,0,0"===(i=[(r=n.transform.baseVal.consolidate().matrix).a,r.b,r.c,r.d,r.e,r.f]).join(",")?wr:i:(i!==wr||n.offsetParent||n===nr||s.svg||(r=e.display,e.display="block",(u=n.parentNode)&&n.offsetParent||(o=1,f=n.nextSibling,nr.appendChild(n)),i=hh(n),r?e.display=r:lu(n,"display"),o&&(f?u.insertBefore(n,f):u?u.appendChild(n):nr.removeChild(n))),t&&6<i.length?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)}function le(n,t,i,r,u,f){var y,h,d,e=n._gsap,c=u||ce(n,!0),g=e.xOrigin||0,nt=e.yOrigin||0,tt=e.xOffset||0,it=e.yOffset||0,p=c[0],w=c[1],b=c[2],k=c[3],l=c[4],a=c[5],v=t.split(" "),o=parseFloat(v[0])||0,s=parseFloat(v[1])||0;i?c!==wr&&(h=p*k-w*b)&&(d=o*(-w/h)+s*(p/h)-(p*a-w*l)/h,o=o*(k/h)+s*(-b/h)+(b*a-k*l)/h,s=d):(o=(y=eh(n)).x+(~v[0].indexOf("%")?o/100*y.width:o),s=y.y+(~(v[1]||v[0]).indexOf("%")?s/100*y.height:s));r||!1!==r&&e.smooth?(l=o-g,a=s-nt,e.xOffset=tt+(l*p+a*b)-l,e.yOffset=it+(l*w+a*k)-a):e.xOffset=e.yOffset=0;e.xOrigin=o;e.yOrigin=s;e.smooth=!!r;e.origin=t;e.originIsAbsolute=!!i;n.style[ni]="0px 0px";f&&(bt(f,e,"xOrigin",g,o),bt(f,e,"yOrigin",nt,s),bt(f,e,"xOffset",tt,e.xOffset),bt(f,e,"yOffset",it,e.yOffset));n.setAttribute("data-svg-origin",o+" "+s)}function ae(n,i,r){var u=ut(i);return t(parseFloat(i)+parseFloat(kt(n,"x",r+"px",u)))+u}function pl(n,t,i,r,u,f){var h,s,o=360,l=c(u),a=parseFloat(u)*(l&&~u.indexOf("rad")?oi:1),e=f?a*f:a-r,y=r+e+"deg";return l&&("short"===(h=u.split("_")[1])&&(e%=o)!=e%180&&(e+=e<0?o:-o),"cw"===h&&e<0?e=(e+36e9)%o-~~(e/o)*o:"ccw"===h&&0<e&&(e=(e-36e9)%o-~~(e/o)*o)),n._pt=s=new v(n._pt,t,i,r,e,rl),s.e=y,s.u="deg",n._props.push(i),s}function wl(n,t,i){var s,r,u,f,e,h,o,c=pr.style,l=i._gsap;for(r in c.cssText=getComputedStyle(i).cssText+";position:absolute;display:block;",c[k]=t,ht.body.appendChild(pr),s=vu(pr,1),dt)(u=l[r])!==(f=s[r])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(r)<0&&(e=ut(u)!==(o=ut(f))?kt(i,r,u,o):parseFloat(u),h=parseFloat(f),n._pt=new v(n._pt,l,r,e,h-e,ih),n._pt.u=o||0,n._props.push(r));ht.body.removeChild(pr)}var o,ft,ef,is,fu,rs,us,li,eu,of,sf,hf,ui,cf,ai,lf,ou,af,su,vf,or,sr,fi,hr,fs,g={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},vi={duration:.5,overwrite:!1,delay:0},et=1e8,u=1/et,yf=2*Math.PI,rc=yf/4,uc=0,es=Math.sqrt,fc=Math.cos,ec=Math.sin,os="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},nt=Array.isArray,pf=/(?:-?\.?\d|\.)+/gi,ss=/[-+=.]*\d+[.e\-+]*\d*[e\-\+]*\d*/g,yi=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,wf=/[-+=.]*\d+(?:\.|e-|e)*\d*/gi,hs=/[+-]=-?[\.\d]+/,cs=/[#\-+.]*\b[a-z\d-=+%.]+/gi,p={},bf={},pt=[],kf={},w={},df={},ls=30,hu=[],gf="",pi=function(n,t){for(var i in t)n[i]=t[i];return n},wi=function(n,t){return(n/=t)&&~~n===n?~~n-1:~~n},oc={_start:0,endTime:ur},cr=function(n,t,i){return i<n?n:t<i?t:i},ne=[].slice,ot=function(n,t){return!c(n)||t||!ef&&ki()?nt(n)?function(n,t,i){return void 0===i&&(i=[]),n.forEach(function(n){return c(n)&&!t||co(n,1)?i.push.apply(i,ot(n)):i.push(n)})||i}(n,t):co(n)?ne.call(n,0):n?[n]:[]:ne.call(is.querySelectorAll(n),0)},as=function(n,t,i,r,u){var f=t-n,e=r-i;return yt(u,function(t){return i+((t-n)/f*e||0)})},b=function(n,t,i){var r,u,f=n.vars,e=f[t];if(e)return r=f[t+"Params"],u=f.callbackScope||n,i&&pt.length&&kr(),r?e.apply(u,r):e.call(u)},f=255,lr={aqua:[0,f,f],lime:[0,f,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,f],navy:[0,0,128],white:[f,f,f],olive:[128,128,0],yellow:[f,f,0],orange:[f,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[f,0,0],pink:[f,192,203],cyan:[0,f,f],transparent:[f,f,f,0]},bi=function(){var n,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(n in lr)t+="|"+n+"\\b";return new RegExp(t+")","gi")}(),sc=/hsl[a]?\(/,tt=(lf=Date.now,ou=500,af=33,su=lf(),vf=su,sr=or=1e3/240,ui={time:0,frame:0,tick:function(){te(!0)},deltaRatio:function(n){return cf/(1e3/(n||60))},wake:function(){rs&&(!ef&&be()&&(ft=ef=window,is=ft.document||{},p.gsap=rt,(ft.gsapVersions||(ft.gsapVersions=[])).push(rt.version),de(fu||ft.GreenSockGlobals||!ft.gsap&&ft||{}),hf=ft.requestAnimationFrame),of&&ui.sleep(),sf=hf||function(n){return setTimeout(n,sr-1e3*ui.time+1|0)},eu=1,te(2))},sleep:function(){(hf?ft.cancelAnimationFrame:clearTimeout)(of);eu=0;sf=ur},lagSmoothing:function(n,t){ou=n||1e8;af=Math.min(t,ou,0)},fps:function(n){or=1e3/(n||240);sr=1e3*ui.time+or},add:function(n){fi.indexOf(n)<0&&fi.push(n);ki()},remove:function(n){var t;~(t=fi.indexOf(n))&&fi.splice(t,1)&&t<=ai&&ai--},_listeners:fi=[]}),ki=function(){return!eu&&tt.wake()},i={},hc=/^[\d.\-M][\d.\-,\s]/,cc=/["']/g,vs=function(n){return function(t){return 1-n(1-t)}},di=function(n,t){return n&&(s(n)?n:i[n]||ic(n))||t},r,ie,gi,h,vr,rt,dh,ye,pe,pu,wu,gh;y("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,t){var i=t<5?t+1:t;ri(n+",Power"+(i-1),t?function(n){return Math.pow(n,i)}:function(n){return n},function(n){return 1-Math.pow(1-n,i)},function(n){return n<.5?Math.pow(2*n,i)/2:1-Math.pow(2*(1-n),i)/2})});i.Linear.easeNone=i.none=i.Linear.easeIn;ri("Elastic",ru("in"),ru("out"),ru());hr=7.5625;fs=1/2.75;ri("Bounce",function(n){return 1-ys(1-n)},ys);ri("Expo",function(n){return n?Math.pow(2,10*(n-1)):0});ri("Circ",function(n){return-(es(1-n*n)-1)});ri("Sine",function(n){return 1===n?1:1-fc(n*rc)});ri("Back",uu("in"),uu("out"),uu());i.SteppedEase=i.steps=p.SteppedEase={config:function(n,t){void 0===n&&(n=1);var i=1/n,r=n+(t?0:1),u=t?1:0;return function(n){return((r*cr(0,.99999999,n)|0)+u)*i}}};vi.ease=i["quad.out"];y("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(n){return gf+=n+","+n+"Params,"});ie=function(n,t){this.id=uc++;(n._gsap=this).target=n;this.harness=t;this.get=t?t.get:to;this.set=t?t.getSetter:fe};gi=((r=ps.prototype).delay=function(n){return n||0===n?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},r.duration=function(n){return arguments.length?this.totalDuration(0<this._repeat?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},r.totalDuration=function(n){return arguments.length?(this._dirty=0,ci(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},r.totalTime=function(n,t){if(ki(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(eo(this,n);i.parent;)i.parent._time!==i._start+(0<=i._ts?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&n<this._tDur||this._ts<0&&0<n||!this._tDur&&!n)&&at(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===u||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),io(this,n,t)),this},r.time=function(n,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+fo(this))%this._dur||(n?this._dur:0),t):this._time},r.totalProgress=function(n,t){return arguments.length?this.totalTime(this.totalDuration()*n,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},r.progress=function(n,t){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?n:1-n)+fo(this),t):this.duration()?Math.min(1,this._time/this._dur):this.ratio},r.iteration=function(n,t){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*i,t):this._repeat?wi(this._tTime,i)+1:1},r.timeScale=function(n){if(!arguments.length)return this._rts===-u?0:this._rts;if(this._rts===n)return this;var t=this.parent&&this._ts?nu(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-u?0:this._rts,function(n){for(var t=n.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return n}(this.totalTime(cr(-this._delay,this._tDur,t),!0))},r.paused=function(n){return arguments.length?(this._ps!==n&&((this._ps=n)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ki(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&(this._tTime-=u)&&Math.abs(this._zTime)!==u))),this):this._ps},r.startTime=function(n){if(arguments.length){this._start=n;var t=this.parent||this._dp;return!t||!t._sort&&this.parent||at(t,this,n-this._delay),this}return this._start},r.endTime=function(n){return this._start+(a(n)?this.totalDuration():this.duration())/Math.abs(this._ts)},r.rawTime=function(n){var t=this.parent||this._dp;return t?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?nu(t.rawTime(n),this):this._tTime:this._tTime},r.globalTime=function(n){for(var t=this,i=arguments.length?n:t.rawTime();t;)i=t._start+i/(t._ts||1),t=t._dp;return i},r.repeat=function(n){return arguments.length?(this._repeat=n,ho(this)):this._repeat},r.repeatDelay=function(n){return arguments.length?(this._rDelay=n,ho(this)):this._rDelay},r.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},r.seek=function(n,t){return this.totalTime(l(this,n),a(t))},r.restart=function(n,t){return this.play().totalTime(n?-this._delay:0,a(t))},r.play=function(n,t){return null!=n&&this.seek(n,t),this.reversed(!1).paused(!1)},r.reverse=function(n,t){return null!=n&&this.seek(n||this.totalDuration(),t),this.reversed(!0).paused(!1)},r.pause=function(n,t){return null!=n&&this.seek(n,t),this.paused(!0)},r.resume=function(){return this.paused(!1)},r.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-u:0)),this):this._rts<0},r.invalidate=function(){return this._initted=0,this._zTime=-u,this},r.isActive=function(){var t,n=this.parent||this._dp,i=this._start;return!(n&&!(this._ts&&this._initted&&n.isActive()&&(t=n.rawTime(!0))>=i&&t<this.endTime(!0)-u))},r.eventCallback=function(n,t,i){var r=this.vars;return 1<arguments.length?(t?(r[n]=t,i&&(r[n+"Params"]=i),"onUpdate"===n&&(this._onUpdate=t)):delete r[n],this):r[n]},r.then=function(n){var t=this;return new Promise(function(i){function u(){var n=t.then;t.then=null;s(r)&&(r=r(t))&&(r.then||r===t)&&(t.then=n);i(r);t.then=n}var r=s(n)?n:uo;t._initted&&1===t.totalProgress()&&0<=t._ts||!t._tTime&&t._ts<0?u():t._prom=u})},r.kill=function(){er(this)},ps);d(gi.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-u,_prom:0,_ps:!1,_rts:1});h=function(n){function r(t,i){var r;return void 0===t&&(t={}),(r=n.call(this,t,i)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=a(t.sortChildren),r.parent&&rf(r.parent,ct(r)),t.scrollTrigger&&oo(ct(r),t.scrollTrigger),r}we(r,n);var i=r.prototype;return i.to=function(n,t,i,r){return new e(n,fr(arguments,0,this),l(this,it(t)?r:i)),this},i.from=function(n,t,i,r){return new e(n,fr(arguments,1,this),l(this,it(t)?r:i)),this},i.fromTo=function(n,t,i,r,u){return new e(n,fr(arguments,2,this),l(this,it(t)?u:r)),this},i.set=function(n,t,i){return t.duration=0,t.parent=this,dr(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new e(n,t,l(this,i),1),this},i.call=function(n,t,i){return at(this,e.delayedCall(0,n,t),l(this,i))},i.staggerTo=function(n,t,i,r,u,f,o){return i.duration=t,i.stagger=i.stagger||r,i.onComplete=f,i.onCompleteParams=o,i.parent=this,new e(n,i,l(this,u)),this},i.staggerFrom=function(n,t,i,r,u,f,e){return i.runBackwards=1,dr(i).immediateRender=a(i.immediateRender),this.staggerTo(n,t,i,r,u,f,e)},i.staggerFromTo=function(n,t,i,r,u,f,e,o){return r.startAt=i,dr(r).immediateRender=a(r.immediateRender),this.staggerTo(n,t,r,u,f,e,o)},i.render=function(n,i,r){var e,f,y,l,p,d,v,it,rt,w,tt,g,s=this._time,a=this._dirty?this.totalDuration():this._tDur,c=this._dur,h=this!==o&&a-u<n&&0<=n?a:n<u?0:n,ut=this._zTime<0!=n<0&&(this._initted||!c),k,ft,nt;if(h!==this._tTime||r||ut){if(s!==this._time&&c&&(h+=this._time-s,n+=this._time-s),e=h,rt=this._start,d=!(it=this._ts),ut&&(c||(s=this._zTime),!n&&i||(this._zTime=n)),this._repeat&&(tt=this._yoyo,p=c+this._rDelay,e=t(h%p),h===a?(l=this._repeat,e=c):((l=~~(h/p))&&l===h/p&&(e=c,l--),c<e&&(e=c)),w=wi(this._tTime,p),!s&&this._tTime&&w!==l&&(w=l),tt&&1&l&&(e=c-e,g=1),l!==w&&!this._lock)){if((k=tt&&1&w,ft=k===(tt&&1&l),l<w&&(k=!k),s=k?0:c,this._lock=1,this.render(s||(g?0:t(l*p)),i,!c)._lock=0,!i&&this.parent&&b(this,"onRepeat"),this.vars.repeatRefresh&&!g&&(this.invalidate()._lock=1),s!==this._time||d!=!this._ts)||(c=this._dur,a=this._tDur,ft&&(this._lock=2,s=k?c:-.0001,this.render(s,!0),this.vars.repeatRefresh&&!g&&this.invalidate()),this._lock=0,!this._ts&&!d))return this;iu(this,g)}if(this._hasPause&&!this._forcing&&this._lock<2&&(v=function(n,t,i){var r;if(t<i)for(r=n._first;r&&r._start<=i;){if(!r._dur&&"isPause"===r.data&&r._start>t)return r;r=r._next}else for(r=n._last;r&&r._start>=i;){if(!r._dur&&"isPause"===r.data&&r._start<t)return r;r=r._prev}}(this,t(s),t(e)))&&(h-=e-(e=v._start)),this._tTime=h,this._time=e,this._act=!it,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=n),s||!e||i||b(this,"onStart"),s<=e&&0<=n)for(f=this._first;f;){if(y=f._next,(f._act||e>=f._start)&&f._ts&&v!==f){if(f.parent!==this)return this.render(n,i,r);if(f.render(0<f._ts?(e-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(e-f._start)*f._ts,i,r),e!==this._time||!this._ts&&!d){v=0;y&&(h+=this._zTime=-u);break}}f=y}else for(f=this._last,nt=n<0?n:e;f;){if(y=f._prev,(f._act||nt<=f._end)&&f._ts&&v!==f){if(f.parent!==this)return this.render(n,i,r);if(f.render(0<f._ts?(nt-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(nt-f._start)*f._ts,i,r),e!==this._time||!this._ts&&!d){v=0;y&&(h+=this._zTime=nt?-u:u);break}}f=y}if(v&&!i&&(this.pause(),v.render(s<=e?0:-u)._zTime=s<=e?1:-1,this._ts))return this._start=rt,tf(this),this.render(n,i,r);this._onUpdate&&!i&&b(this,"onUpdate",!0);(h===a&&a>=this.totalDuration()||!h&&s)&&(rt!==this._start&&Math.abs(it)===Math.abs(this._ts)||this._lock||(!n&&c||!(h===a&&0<this._ts||!h&&this._ts<0)||vt(this,1),i||n<0&&!s||!h&&!s||(b(this,h===a?"onComplete":"onReverseComplete",!0),!this._prom||h<a&&0<this.timeScale()||this._prom())))}return this},i.add=function(n,t){var i=this;if(it(t)||(t=l(this,t)),!(n instanceof gi)){if(nt(n))return n.forEach(function(n){return i.add(n,t)}),this;if(c(n))return this.addLabel(n,t);if(!s(n))return this;n=e.delayedCall(0,n)}return this!==n?at(this,n,t):this},i.getChildren=function(n,t,i,r){void 0===n&&(n=!0);void 0===t&&(t=!0);void 0===i&&(i=!0);void 0===r&&(r=-et);for(var f=[],u=this._first;u;)u._start>=r&&(u instanceof e?t&&f.push(u):(i&&f.push(u),n&&f.push.apply(f,u.getChildren(!0,t,i)))),u=u._next;return f},i.getById=function(n){for(var t=this.getChildren(1,1,1),i=t.length;i--;)if(t[i].vars.id===n)return t[i]},i.remove=function(n){return c(n)?this.removeLabel(n):s(n)?this.killTweensOf(n):(gr(this,n),n===this._recent&&(this._recent=this._last),ii(this))},i.totalTime=function(i,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=t(tt.time-(0<this._ts?i/this._ts:(this.totalDuration()-i)/-this._ts))),n.prototype.totalTime.call(this,i,r),this._forcing=0,this):this._tTime},i.addLabel=function(n,t){return this.labels[n]=l(this,t),this},i.removeLabel=function(n){return delete this.labels[n],this},i.addPause=function(n,t,i){var r=e.delayedCall(0,t||ur,i);return r.data="isPause",this._hasPause=1,at(this,r,l(this,n))},i.removePause=function(n){var t=this._first;for(n=l(this,n);t;)t._start===n&&"isPause"===t.data&&vt(t),t=t._next},i.killTweensOf=function(n,t,i){for(var r=this.getTweensOf(n,i),u=r.length;u--;)wt!==r[u]&&r[u].kill(n,t);return this},i.getTweensOf=function(n,t){for(var u,r=[],f=ot(n),i=this._first,o=it(t);i;)i instanceof e?nc(i._targets,f)&&(o?(!wt||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&r.push(i):(u=i.getTweensOf(f,t)).length&&r.push.apply(r,u),i=i._next;return r},i.tweenTo=function(n,t){t=t||{};var i=this,f=l(i,n),o=t.startAt,s=t.onStart,h=t.onStartParams,r=e.to(i,d(t,{ease:"none",lazy:!1,time:f,overwrite:"auto",duration:t.duration||Math.abs((f-(o&&"time"in o?o.time:i._time))/i.timeScale())||u,onStart:function(){i.pause();var n=t.duration||Math.abs((f-i._time)/i.timeScale());r._dur!==n&&ci(r,n,0,1).render(r._time,!0,!0);s&&s.apply(r,h||[])}}));return r},i.tweenFromTo=function(n,t,i){return this.tweenTo(t,d({startAt:{time:l(this,n)}},i))},i.recent=function(){return this._recent},i.nextLabel=function(n){return void 0===n&&(n=this._time),wo(this,l(this,n))},i.previousLabel=function(n){return void 0===n&&(n=this._time),wo(this,l(this,n),1)},i.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+u)},i.shiftChildren=function(n,t,i){void 0===i&&(i=0);for(var u,r=this._first,f=this.labels;r;)r._start>=i&&(r._start+=n,r._end+=n),r=r._next;if(t)for(u in f)f[u]>=i&&(f[u]+=n);return ii(this)},i.invalidate=function(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return n.prototype.invalidate.call(this)},i.clear=function(n){void 0===n&&(n=!0);for(var i,t=this._first;t;)i=t._next,this.remove(t),t=i;return this._time=this._tTime=this._pTime=0,n&&(this.labels={}),ii(this)},i.totalDuration=function(n){var s,r,f,u=0,t=this,i=t._last,e=et;if(arguments.length)return t.timeScale((t._repeat<0?t.duration():t.totalDuration())/(t.reversed()?-n:n));if(t._dirty){for(f=t.parent;i;)s=i._prev,i._dirty&&i.totalDuration(),e<(r=i._start)&&t._sort&&i._ts&&!t._lock?(t._lock=1,at(t,i,r-i._delay,1)._lock=0):e=r,r<0&&i._ts&&(u-=r,(!f&&!t._dp||f&&f.smoothChildTiming)&&(t._start+=r/t._ts,t._time-=r,t._tTime-=r),t.shiftChildren(-r,!1,-Infinity),e=0),i._end>u&&i._ts&&(u=i._end),i=s;ci(t,t===o&&t._time>u?t._time:u,1,1);t._dirty=0}return t._tDur},r.updateRoot=function(n){if(o._ts&&(io(o,nu(n,o)),us=tt.frame),tt.frame>=ls){ls+=g.autoSleep||120;var t=o._first;if((!t||!t._ts)&&g.autoSleep&&tt._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||tt.sleep()}}},r}(gi);d(h.prototype,{_lock:0,_hasPause:0,_forcing:0});var wt,re=function(n,t,i,r,u,f,e,o,h){s(r)&&(r=r(u||0,n,f));var y,a=n[t],l="get"!==i?i:s(a)?h?n[t.indexOf("set")||!s(n["get"+t.substr(3)])?t:"get"+t.substr(3)](h):n[t]():a,p=s(a)?h?wc:ks:ue;if(c(r)&&(~r.indexOf("random(")&&(r=tu(r)),"="===r.charAt(1)&&(r=parseFloat(l)+parseFloat(r.substr(2))*("-"===r.charAt(0)?-1:1)+(ut(l)||0))),l!==r)return isNaN(l*r)?(a||t in n||ku(t,r),function(n,t,i,r,u,f,e){var a,y,s,h,c,p,k,w,o=new v(this._pt,n,t,0,1,gs,null,u),l=0,b=0;for(o.b=i,o.e=r,i+="",(k=~(r+="").indexOf("random("))&&(r=tu(r)),f&&(f(w=[i,r],n,t),i=w[0],r=w[1]),y=i.match(wf)||[];a=wf.exec(r);)h=a[0],c=r.substring(l,a.index),s?s=(s+1)%5:"rgba("===c.substr(-5)&&(s=1),h!==y[b++]&&(p=parseFloat(y[b-1])||0,o._pt={_next:o._pt,p:c||1===b?c:",",s:p,c:"="===h.charAt(1)?parseFloat(h.substr(2))*("-"===h.charAt(0)?-1:1):parseFloat(h)-p,m:s&&s<4?Math.round:0},l=wf.lastIndex);return o.c=l<r.length?r.substring(l,r.length):"",o.fp=e,(hs.test(r)||k)&&(o.e=0),this._pt=o}.call(this,n,t,l,r,p,o||g.stringFilter,h)):(y=new v(this._pt,n,t,+l||0,r-(l||0),"boolean"==typeof a?bc:ds,0,p),h&&(y.fp=h),e&&y.modifier(e,this,n),this._pt=y)},lc=function ac(n,t){var l,r,f,ot,c,st,ht,y,s,it,rt,k,lt,i=n.vars,ut=i.ease,at=i.startAt,g=i.immediateRender,p=i.lazy,yt=i.onUpdate,kt=i.onUpdateParams,dt=i.callbackScope,gt=i.runBackwards,b=i.yoyoEase,ni=i.keyframes,bt=i.autoRevert,ft=n._dur,et=n._startAt,h=n._targets,nt=n.parent,tt=nt&&"nested"===nt.data?nt.parent._targets:h,ii="auto"===n._overwrite,ct=n.timeline;if(!ct||ni&&ut||(ut="none"),n._ease=di(ut,vi.ease),n._yEase=b?vs(di(!0===b?ut:b,vi.ease)):0,b&&n._yoyo&&!n._repeat&&(b=n._yEase,n._yEase=n._ease,n._ease=b),!ct){if(k=(y=h[0]?ti(h[0]).harness:0)&&i[y.prop],l=nf(i,bf),et&&et.render(-1,!0).kill(),at){if(vt(n._startAt=e.set(h,d({data:"isStart",overwrite:!1,parent:nt,immediateRender:!0,lazy:a(p),startAt:null,delay:0,onUpdate:yt,onUpdateParams:kt,callbackScope:dt,stagger:0},at))),g)if(0<t)bt||(n._startAt=0);else if(ft&&!(t<0&&et))return void(t&&(n._zTime=t))}else if(gt&&ft)if(et)bt||(n._startAt=0);else if(t&&(g=!1),f=d({overwrite:!1,data:"isFromStart",lazy:g&&a(p),immediateRender:g,stagger:0,parent:nt},l),k&&(f[y.prop]=k),vt(n._startAt=e.set(h,f)),g){if(!t)return}else ac(n._startAt,u);for(n._pt=0,p=ft&&a(p)||p&&!ft,r=0;r<h.length;r++){if(ht=(c=h[r])._gsap||du(h)[r]._gsap,n._ptLookup[r]=it={},kf[ht.id]&&pt.length&&kr(),rt=tt===h?r:tt.indexOf(c),y&&!1!==(s=new y).init(c,k||l,n,rt,tt)&&(n._pt=ot=new v(n._pt,c,s.name,0,1,s.render,s,0,s.priority),s._props.forEach(function(n){it[n]=ot}),s.priority&&(st=1)),!y||k)for(f in l)w[f]&&(s=ws(f,l,n,rt,c,tt))?s.priority&&(st=1):it[f]=ot=re.call(n,c,f,"get",l[f],rt,tt,0,i.stringFilter);n._op&&n._op[r]&&n.kill(c,n._op[r]);ii&&n._pt&&(wt=n,o.killTweensOf(c,it,n.globalTime(0)),lt=!n.parent,wt=0);n._pt&&p&&(kf[ht.id]=1)}st&&nh(n);n._onInit&&n._onInit(n)}n._from=!ct&&!!i.runBackwards;n._onUpdate=yt;n._initted=(!n._op||n._pt)&&!lt},ar=function(n,t,i,r,u){return s(n)?n.call(t,i,r,u):c(n)&&~n.indexOf("random(")?tu(n):n},bs=gf+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",vc=(bs+",id,stagger,delay,duration,paused,scrollTrigger").split(","),e=function(n){function i(i,r,f,e){var s;"number"==typeof r&&(f.duration=r,r=f,f=null);var p,w,c,st,y,rt,ht,ut,l=(s=n.call(this,e?r:dr(r),f)||this).vars,k=l.duration,tt=l.delay,at=l.immediateRender,b=l.stagger,vt=l.overwrite,ft=l.keyframes,bt=l.defaults,yt=l.scrollTrigger,pt=l.yoyoEase,et=s.parent,v=(nt(i)||os(i)?it(i[0]):"length"in r)?[i]:ot(i);if(s._targets=v.length?du(v):ge("GSAP target "+i+" not found. https://greensock.com",!g.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=vt,ft||b||ke(k)||ke(tt)){if(r=s.vars,(p=s.timeline=new h({data:"nested",defaults:bt||{}})).kill(),p.parent=ct(s),ft)d(p.vars.defaults,{ease:"none"}),ft.forEach(function(n){return p.to(v,n,">")});else{if(st=v.length,ht=b?ao(b):ur,lt(b))for(y in b)~bs.indexOf(y)&&((ut=ut||{})[y]=b[y]);for(w=0;w<st;w++){for(y in c={},r)vc.indexOf(y)<0&&(c[y]=r[y]);c.stagger=0;pt&&(c.yoyoEase=pt);ut&&pi(c,ut);rt=v[w];c.duration=+ar(k,ct(s),w,rt,v);c.delay=(+ar(tt,ct(s),w,rt,v)||0)-s._delay;!b&&1===st&&c.delay&&(s._delay=tt=c.delay,s._start+=tt,c.delay=0);p.to(rt,c,ht(w,rt,v))}p.duration()?k=tt=0:s.timeline=0}k||s.duration(k=p.duration())}else s.timeline=0;return!0===vt&&(wt=ct(s),o.killTweensOf(v),wt=0),et&&rf(et,ct(s)),(at||!k&&!ft&&s._start===t(et._time)&&a(at)&&function kt(n){return!n||n._ts&&kt(n.parent)}(ct(s))&&"nested"!==et.data)&&(s._tTime=-u,s.render(Math.max(0,-tt))),yt&&oo(ct(s),yt),s}we(i,n);var r=i.prototype;return r.render=function(n,i,r){var e,h,s,c,w,y,a,l,k,p=this._time,v=this._tDur,o=this._dur,f=v-u<n&&0<=n?v:n<u?0:n;if(o){if(f!==this._tTime||!n||r||this._startAt&&this._zTime<0!=n<0){if(e=f,l=this.timeline,this._repeat){if(c=o+this._rDelay,e=t(f%c),f===v?(s=this._repeat,e=o):((s=~~(f/c))&&s===f/c&&(e=o,s--),o<e&&(e=o)),(y=this._yoyo&&1&s)&&(k=this._yEase,e=o-e),w=wi(this._tTime,c),e===p&&!r&&this._initted)return this;s!==w&&(l&&this._yEase&&iu(l,y),!this.vars.repeatRefresh||y||this._lock||(this._lock=r=1,this.render(t(c*s),!0).invalidate()._lock=0))}if(!this._initted){if(so(this,n<0?n:e,r,i))return this._tTime=0,this;if(o!==this._dur)return this.render(n,i,r)}for(this._tTime=f,this._time=e,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=a=(k||this._ease)(e/o),this._from&&(this.ratio=a=1-a),!e||p||i||b(this,"onStart"),h=this._pt;h;)h.r(a,h.d),h=h._next;l&&l.render(n<0?n:!e&&y?-u:l._dur*a,i,r)||this._startAt&&(this._zTime=n);this._onUpdate&&!i&&(n<0&&this._startAt&&this._startAt.render(n,!0,r),b(this,"onUpdate"));this._repeat&&s!==w&&this.vars.onRepeat&&!i&&this.parent&&b(this,"onRepeat");f!==this._tDur&&f||this._tTime!==f||(n<0&&this._startAt&&!this._onUpdate&&this._startAt.render(n,!0,!0),!n&&o||!(f===this._tDur&&0<this._ts||!f&&this._ts<0)||vt(this,1),i||n<0&&!p||!f&&!p||(b(this,f===v?"onComplete":"onReverseComplete",!0),!this._prom||f<v&&0<this.timeScale()||this._prom()))}}else!function(n,t,i,r){var e,s,h=n.ratio,f=t<0||!t&&h&&!n._start&&n._zTime>u&&!n._dp._lock||(n._ts<0||n._dp._ts<0)&&"isFromStart"!==n.data&&"isStart"!==n.data?0:1,c=n._rDelay,o=0;if(c&&n._repeat&&(o=cr(0,n._tDur,t),wi(o,c)!==(s=wi(n._tTime,c))&&(h=1-f,n.vars.repeatRefresh&&n._initted&&n.invalidate())),f!==h||r||n._zTime===u||!t&&n._zTime){if(!n._initted&&so(n,t,r,i))return;for(s=n._zTime,n._zTime=t||(i?u:0),i=i||t&&!s,n.ratio=f,n._from&&(f=1-f),n._time=0,n._tTime=o,i||b(n,"onStart"),e=n._pt;e;)e.r(f,e.d),e=e._next;n._startAt&&t<0&&n._startAt.render(t,!0,!0);n._onUpdate&&!i&&b(n,"onUpdate");o&&n._repeat&&!i&&n.parent&&b(n,"onRepeat");(t>=n._tDur||t<0)&&n.ratio===f&&(f&&vt(n,1),i||(b(n,f?"onComplete":"onReverseComplete",!0),n._prom&&n._prom()))}else n._zTime||(n._zTime=t)}(this,n,i,r);return this},r.targets=function(){return this._targets},r.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),n.prototype.invalidate.call(this)},r.kill=function(n,t){var h;if(void 0===t&&(t="all"),!(n||t&&"all"!==t)&&(this._lazy=0,this.parent))return er(this);if(this.timeline)return h=this.timeline.totalDuration(),this.timeline.killTweensOf(n,t,wt&&!0!==wt.vars.overwrite)._first||er(this),this.parent&&h!==this.timeline.totalDuration()&&ci(this,this._dur*this.timeline._tDur/h,0,1),this;var e,u,o,l,i,s,r,f=this._targets,a=n?ot(n):f,v=this._ptLookup,p=this._pt;if((!t||"all"===t)&&function(n,t){for(var i=n.length,r=i===t.length;r&&i--&&n[i]===t[i];);return i<0}(f,a))return"all"===t&&(this._pt=0),er(this);for(e=this._op=this._op||[],"all"!==t&&(c(t)&&(i={},y(t,function(n){return i[n]=1}),t=i),t=function(n,t){var i,r,u,e,o=n[0]?ti(n[0]).harness:0,f=o&&o.aliases;if(!f)return t;for(r in i=pi({},t),f)if(r in i)for(u=(e=f[r].split(",")).length;u--;)i[e[u]]=i[r];return i}(f,t)),r=f.length;r--;)if(~a.indexOf(f[r]))for(i in u=v[r],"all"===t?(e[r]=t,l=u,o={}):(o=e[r]=e[r]||{},l=t),l)(s=u&&u[i])&&("kill"in s.d&&!0!==s.d.kill(i)||gr(this,s,"_pt"),delete u[i]),"all"!==o&&(o[i]=1);return this._initted&&!this._pt&&p&&er(this),this},i.to=function(n,t,r){return new i(n,t,r)},i.from=function(n){return new i(n,fr(arguments,1))},i.delayedCall=function(n,t,r,u){return new i(t,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:t,onReverseComplete:t,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:u})},i.fromTo=function(n){return new i(n,fr(arguments,2))},i.set=function(n,t){return t.duration=0,t.repeatDelay||(t.repeat=0),new i(n,t)},i.killTweensOf=function(n,t,i){return o.killTweensOf(n,t,i)},i}(gi);d(e.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});y("staggerTo,staggerFrom,staggerFromTo",function(n){e[n]=function(){var t=new h,i=ne.call(arguments,0);return i.splice("staggerFromTo"===n?5:4,0,0),t[n].apply(t,i)}});var ue=function(n,t,i){return n[t]=i},ks=function(n,t,i){return n[t](i)},wc=function(n,t,i,r){return n[t](r.fp,i)},fe=function(n,t){return s(n[t])?ks:bu(n[t])&&n.setAttribute?yc:ue},ds=function(n,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*n))/1e4,t)},bc=function(n,t){return t.set(t.t,t.p,!!(t.s+t.c*n),t)},gs=function(n,t){var i=t._pt,r="";if(!n&&t.b)r=t.b;else if(1===n&&t.e)r=t.e;else{for(;i;)r=i.p+(i.m?i.m(i.s+i.c*n):Math.round(1e4*(i.s+i.c*n))/1e4)+r,i=i._next;r+=t.c}t.set(t.t,t.p,r,t)},ee=function(n,t){for(var i=t._pt;i;)i.r(n,i.d),i=i._next},kc=function(n,t,i,r){for(var f,u=this._pt;u;)f=u._next,u.p===r&&u.modifier(n,t,i),u=f},dc=function(n){for(var i,r,t=this._pt;t;)r=t._next,t.p===n&&!t.op||t.op===n?gr(this,t,"_pt"):t.dep||(i=1),t=r;return!i},nh=function(n){for(var u,i,r,f,t=n._pt;t;){for(u=t._next,i=r;i&&i.pr>t.pr;)i=i._next;(t._prev=i?i._prev:f)?t._prev._next=t:r=t;(t._next=i)?i._prev=t:f=t;t=u}n._pt=r},v=(th.prototype.modifier=function(n,t,i){this.mSet=this.mSet||this.set;this.set=pc;this.m=n;this.mt=i;this.tween=t},th);y(gf+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(n){return bf[n]=1});p.TweenMax=p.TweenLite=e;p.TimelineLite=p.TimelineMax=h;o=new h({sortChildren:!1,defaults:vi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});g.stringFilter=ns;vr={registerPlugin:function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];i.forEach(function(n){return function(n){var t=(n=!n.name&&n.default||n).name,f=s(n),i=t&&!f&&n.init?function(){this._props=[]}:n,r={init:ur,render:ee,add:re,kill:dc,modifier:kc,rawVars:0},u={targetTest:0,get:0,getSetter:fe,aliases:{},register:0};if(ki(),n!==i){if(w[t])return;d(i,d(nf(n,r),u));pi(i.prototype,pi(r,nf(n,u)));w[i.prop=t]=i;n.targetTest&&(hu.push(i),bf[t]=1);t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}no(t,i);n.register&&n.register(rt,i,v)}(n)})},timeline:function(n){return new h(n)},getTweensOf:function(n,t){return o.getTweensOf(n,t)},getProperty:function(n,t,i,r){c(n)&&(n=ot(n)[0]);var u=ti(n||{}).get,f=i?uo:ro;return"native"===i&&(i=""),n?t?f((w[t]&&w[t].get||u)(n,t,i,r)):function(t,i,r){return f((w[t]&&w[t].get||u)(n,t,i,r))}:n},quickSetter:function(n,t,i){var u,e;if(1<(n=ot(n)).length)return u=n.map(function(n){return rt.quickSetter(n,t,i)}),e=u.length,function(n){for(var t=e;t--;)u[t](n)};n=n[0]||{};var f=w[t],r=ti(n),o=r.harness&&(r.harness.aliases||{})[t]||t,s=f?function(t){var r=new f;li._pt=0;r.init(n,i?t+i:t,li,0,[n]);r.render(1,r);li._pt&&ee(1,li)}:r.set(n,o);return f?s:function(t){return s(n,o,i?t+i:t,r,1)}},isTweening:function(n){return 0<o.getTweensOf(n,!0).length},defaults:function(n){return n&&n.ease&&(n.ease=di(n.ease,vi.ease)),gu(vi,n||{})},config:function(n){return gu(g,n||{})},registerEffect:function(n){var t=n.name,i=n.effect,r=n.plugins,u=n.defaults,f=n.extendTimeline;(r||"").split(",").forEach(function(n){return n&&!w[n]&&!p[n]&&ge(t+" effect requires "+n+" plugin.")});df[t]=function(n,t,r){return i(ot(n),d(t||{},u),r)};f&&(h.prototype[t]=function(n,i,r){return this.add(df[t](n,lt(i)?i:(r=i)&&{},this),r)})},registerEase:function(n,t){i[n]=di(t)},parseEase:function(n,t){return arguments.length?di(n,t):i},getById:function(n){return o.getById(n)},exportRoot:function(n,t){void 0===n&&(n={});var i,u,r=new h(n);for(r.smoothChildTiming=a(n.smoothChildTiming),o.remove(r),r._dp=0,r._time=r._tTime=o._time,i=o._first;i;)u=i._next,!t&&!i._dur&&i instanceof e&&i.vars.onComplete===i._targets[0]||at(r,i,i._start-i._delay),i=u;return at(o,r,0),r},utils:{wrap:function gc(n,t,i){var r=t-n;return nt(n)?po(n,gc(0,n.length),t):yt(i,function(t){return(r+(t-n)%r)%r+n})},wrapYoyo:function nl(n,t,i){var u=t-n,r=2*u;return nt(n)?po(n,nl(0,n.length-1),t):yt(i,function(t){return n+(u<(t=(r+(t-n)%r)%r||0)?r-t:t)})},distribute:ao,random:yo,snap:vo,normalize:function(n,t,i){return as(n,t,0,1,i)},getUnit:ut,clamp:function(n,t,i){return yt(i,function(i){return cr(n,t,i)})},splitColor:bo,toArray:ot,mapRange:as,pipe:function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return function(n){return i.reduce(function(n,t){return t(n)},n)}},unitize:function(n,t){return function(i){return n(parseFloat(i))+(t||ut(i))}},interpolate:function tl(n,t,i,r){var e=isNaN(n+t)?0:function(i){return(1-i)*n+i*t},s,u,o,f,a,h,l;if(!e){if(h=c(n),l={},!0===i&&(r=1)&&(i=null),h)n={p:n},t={p:t};else if(nt(n)&&!nt(t)){for(o=[],f=n.length,a=f-2,u=1;u<f;u++)o.push(tl(n[u-1],n[u]));f--;e=function(n){n*=f;var t=Math.min(a,~~n);return o[t](n-t)};i=t}else r||(n=pi(nt(n)?[]:{},n));if(!o){for(s in t)re.call(l,n,s,"get",t[s]);e=function(t){return ee(t,l)||(h?n.p:n)}}}return yt(i,e)},shuffle:lo},install:de,effects:df,ticker:tt,updateRoot:h.updateRoot,plugins:w,globalTimeline:o,core:{PropTween:v,globals:no,Tween:e,Timeline:h,Animation:gi,getCache:ti,_removeLinkedListItem:gr}};y("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return vr[n]=e[n]});tt.add(h.updateRoot);li=vr.to({},{duration:0});rt=vr.registerPlugin({name:"attr",init:function(n,t,i,r,u){var f,e;for(f in t)(e=this.add(n,"setAttribute",(n.getAttribute(f)||0)+"",t[f],r,u,0,0,f))&&(e.op=f),this._props.push(f)}},{name:"endArray",init:function(n,t){for(var i=t.length;i--;)this.add(n,i,n[i]||0,t[i])}},oe("roundProps",uf),oe("modifiers"),oe("snap",vo))||vr;e.version=h.version=rt.version="3.5.1";rs=1;be()&&ki();var ch,ht,nr,ve,ei,pr,lh,ah,bl=i.Power0,kl=i.Power1,dl=i.Power2,gl=i.Power3,na=i.Power4,ta=i.Linear,ia=i.Quad,ra=i.Cubic,ua=i.Quart,fa=i.Quint,ea=i.Strong,oa=i.Elastic,sa=i.Back,ha=i.SteppedEase,ca=i.Bounce,la=i.Sine,aa=i.Expo,va=i.Circ,dt={},oi=180/Math.PI,tr=Math.PI/180,ir=Math.atan2,vh=/([A-Z])/g,ya=/(?:left|right|width|margin|padding|x)/i,pa=/[\s,\(]\S/,gt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},k="transform",ni=k+"Origin",yh="O,Moz,ms,Ms,Webkit".split(","),rr=function(n,t,i){var u=(t||ei).style,r=5;if(n in u&&!i)return n;for(n=n.charAt(0).toUpperCase()+n.substr(1);r--&&!(yh[r]+n in u););return r<0?null:(3===r?"ms":0<=r?yh[r]:"")+n},ph={deg:1,rad:1,turn:1},wh={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},au={clearProps:function(n,t,i,r,u){if("isFromStart"!==u.data){var f=n._pt=new v(n._pt,t,i,0,0,yl);return f.u=r,f.pr=-10,f.tween=u,n._props.push(i),1}}},wr=[1,0,0,1,0,0],bh={},vu=function(n,i){var r=n._gsap||new ie(n);if("x"in r&&!i&&!r.uncache)return r;var b,d,yt,ft,rt,a,ut,et,v,kt,pt,at,vt,u,e,f,o,s,h,c,nt,w,y,l,ot,wt,ht,ct,tt,dt,p,it,gt=n.style,ti=r.scaleX<0,lt="deg",bt=st(n,ni)||"0";return b=d=yt=a=ut=et=v=kt=pt=0,ft=rt=1,r.svg=!(!n.getCTM||!oh(n)),u=ce(n,r.svg),r.svg&&(l=!r.uncache&&n.getAttribute("data-svg-origin"),le(n,l||bt,!!l||r.originIsAbsolute,!1!==r.smooth,u)),at=r.xOrigin||0,vt=r.yOrigin||0,u!==wr&&(s=u[0],h=u[1],c=u[2],nt=u[3],b=w=u[4],d=y=u[5],6===u.length?(ft=Math.sqrt(s*s+h*h),rt=Math.sqrt(nt*nt+c*c),a=s||h?ir(h,s)*oi:0,(v=c||nt?ir(c,nt)*oi+a:0)&&(rt*=Math.cos(v*tr)),r.svg&&(b-=at-(at*s+vt*c),d-=vt-(at*h+vt*nt))):(it=u[6],dt=u[7],ht=u[8],ct=u[9],tt=u[10],p=u[11],b=u[12],d=u[13],yt=u[14],ut=(e=ir(it,tt))*oi,e&&(l=w*(f=Math.cos(-e))+ht*(o=Math.sin(-e)),ot=y*f+ct*o,wt=it*f+tt*o,ht=w*-o+ht*f,ct=y*-o+ct*f,tt=it*-o+tt*f,p=dt*-o+p*f,w=l,y=ot,it=wt),et=(e=ir(-c,tt))*oi,e&&(f=Math.cos(-e),p=nt*(o=Math.sin(-e))+p*f,s=l=s*f-ht*o,h=ot=h*f-ct*o,c=wt=c*f-tt*o),a=(e=ir(h,s))*oi,e&&(l=s*(f=Math.cos(e))+h*(o=Math.sin(e)),ot=w*f+y*o,h=h*f-s*o,y=y*f-w*o,s=l,w=ot),ut&&359.9<Math.abs(ut)+Math.abs(a)&&(ut=a=0,et=180-et),ft=t(Math.sqrt(s*s+h*h+c*c)),rt=t(Math.sqrt(y*y+it*it)),e=ir(w,y),v=.0002<Math.abs(e)?e*oi:0,pt=p?1/(p<0?-p:p):0),r.svg&&(l=n.getAttribute("transform"),r.forceCSS=n.setAttribute("transform","")||!sh(st(n,k)),l&&n.setAttribute("transform",l))),90<Math.abs(v)&&Math.abs(v)<270&&(ti?(ft*=-1,v+=a<=0?180:-180,a+=a<=0?180:-180):(rt*=-1,v+=v<=0?180:-180)),r.x=((r.xPercent=b&&Math.round(n.offsetWidth/2)===Math.round(-b)?-50:0)?0:b)+"px",r.y=((r.yPercent=d&&Math.round(n.offsetHeight/2)===Math.round(-d)?-50:0)?0:d)+"px",r.z=yt+"px",r.scaleX=t(ft),r.scaleY=t(rt),r.rotation=t(a)+lt,r.rotationX=t(ut)+lt,r.rotationY=t(et)+lt,r.skewX=v+lt,r.skewY=kt+lt,r.transformPerspective=pt+"px",(r.zOrigin=parseFloat(bt.split(" ")[2])||0)&&(gt[ni]=yu(bt)),r.xOffset=r.yOffset=0,r.force3D=g.force3D,r.renderTransform=r.svg?ba:ah?kh:wa,r.uncache=0,r},yu=function(n){return(n=n.split(" "))[0]+" "+n[1]},wa=function(n,t){t.z="0px";t.rotationY=t.rotationX="0deg";t.force3D=0;kh(n,t)},si="0deg",br="0px",hi=") ",kh=function(n,t){var i=t||this,v=i.xPercent,y=i.yPercent,u=i.x,f=i.y,e=i.z,p=i.rotation,h=i.rotationY,c=i.rotationX,w=i.skewX,b=i.skewY,d=i.scaleX,g=i.scaleY,nt=i.transformPerspective,tt=i.force3D,l=i.target,o=i.zOrigin,r="",it="auto"===tt&&n&&1!==n||!0===tt;if(o&&(c!==si||h!==si)){var a,s=parseFloat(h)*tr,rt=Math.sin(s),ut=Math.cos(s);s=parseFloat(c)*tr;a=Math.cos(s);u=ae(l,u,rt*a*-o);f=ae(l,f,-Math.sin(s)*-o);e=ae(l,e,ut*a*-o+o)}nt!==br&&(r+="perspective("+nt+hi);(v||y)&&(r+="translate("+v+"%, "+y+"%) ");!it&&u===br&&f===br&&e===br||(r+=e!==br||it?"translate3d("+u+", "+f+", "+e+") ":"translate("+u+", "+f+hi);p!==si&&(r+="rotate("+p+hi);h!==si&&(r+="rotateY("+h+hi);c!==si&&(r+="rotateX("+c+hi);w===si&&b===si||(r+="skew("+w+", "+b+hi);1===d&&1===g||(r+="scale("+d+", "+g+hi);l.style[k]=r||"translate(0, 0)"},ba=function(n,i){var s,h,c,l,r,u=i||this,tt=u.xPercent,it=u.yPercent,b=u.x,d=u.y,f=u.rotation,e=u.skewX,o=u.skewY,g=u.scaleX,nt=u.scaleY,y=u.target,p=u.xOrigin,w=u.yOrigin,rt=u.xOffset,ut=u.yOffset,ft=u.forceCSS,a=parseFloat(b),v=parseFloat(d);f=parseFloat(f);e=parseFloat(e);(o=parseFloat(o))&&(e+=o=parseFloat(o),f+=o);f||e?(f*=tr,e*=tr,s=Math.cos(f)*g,h=Math.sin(f)*g,c=Math.sin(f-e)*-nt,l=Math.cos(f-e)*nt,e&&(o*=tr,r=Math.tan(e-o),c*=r=Math.sqrt(1+r*r),l*=r,o&&(r=Math.tan(o),s*=r=Math.sqrt(1+r*r),h*=r)),s=t(s),h=t(h),c=t(c),l=t(l)):(s=g,l=nt,h=c=0);(a&&!~(b+"").indexOf("px")||v&&!~(d+"").indexOf("px"))&&(a=kt(y,"x",b,"px"),v=kt(y,"y",d,"px"));(p||w||rt||ut)&&(a=t(a+p-(p*s+w*c)+rt),v=t(v+w-(p*h+w*l)+ut));(tt||it)&&(r=y.getBBox(),a=t(a+tt/100*r.width),v=t(v+it/100*r.height));r="matrix("+s+","+h+","+c+","+l+","+a+","+v+")";y.setAttribute("transform",r);ft&&(y.style[k]=r)};y("padding,margin,Width,Radius",function(n,t){var i="Right",r="Bottom",u="Left",f=(t<3?["Top",i,r,u]:["Top"+u,"Top"+i,r+i,r+u]).map(function(i){return t<2?n+i:"border"+i+n});au[1<t?"border"+n:n]=function(n,t,i,r,u){var e,o;if(arguments.length<4)return e=f.map(function(t){return yr(n,t,i)}),5===(o=e.join(" ")).split(e[0]).length?e[0]:o;e=(r+"").split(" ");o={};f.forEach(function(n,t){return o[n]=e[t]=e[t]||e[(t-1)/2|0]});n.init(t,o,u)}});pu={name:"css",register:he,targetTest:function(n){return n.style&&n.nodeType},init:function(n,t,i,r,u){var l,e,s,h,y,d,f,nt,a,p,b,it,o,tt,rt,ft=this._props,c=n.style;for(f in ve||he(),t)if("autoRound"!==f&&(e=t[f],!w[f]||!ws(f,t,i,r,n,u)))if(y=typeof e,d=au[f],"function"===y&&(y=typeof(e=e.call(i,r,n,u))),"string"===y&&~e.indexOf("random(")&&(e=tu(e)),d)d(this,n,f,e,i)&&(rt=1);else if("--"===f.substr(0,2))this.add(c,"setProperty",getComputedStyle(n).getPropertyValue(f)+"",e+"",r,u,0,0,f);else if("undefined"!==y){if(l=yr(n,f),h=parseFloat(l),(p="string"===y&&"="===e.charAt(1)?+(e.charAt(0)+"1"):0)&&(e=e.substr(2)),s=parseFloat(e),f in gt&&("autoAlpha"===f&&(1===h&&"hidden"===yr(n,"visibility")&&s&&(h=0),bt(this,c,"visibility",h?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==f&&"transform"!==f&&~(f=gt[f]).indexOf(",")&&(f=f.split(",")[0])),b=f in dt)if(it||((o=n._gsap).renderTransform||vu(n),tt=!1!==t.smoothOrigin&&o.smooth,(it=this._pt=new v(this._pt,c,k,0,1,o.renderTransform,o,0,-1)).dep=1),"scale"===f)this._pt=new v(this._pt,o,"scaleY",o.scaleY,p?p*s:s-o.scaleY),ft.push("scaleY",f),f+="X";else{if("transformOrigin"===f){e=vl(e);o.svg?le(n,e,0,tt,0,this):((a=parseFloat(e.split(" ")[2])||0)!==o.zOrigin&&bt(this,o,"zOrigin",o.zOrigin,a),bt(this,c,f,yu(l),yu(e)));continue}if("svgOrigin"===f){le(n,e,1,tt,0,this);continue}if(f in bh){pl(this,o,f,h,e,p);continue}if("smoothOrigin"===f){bt(this,o,"smooth",o.smooth,e);continue}if("force3D"===f){o[f]=e;continue}if("transform"===f){wl(this,e,n);continue}}else f in c||(f=rr(f)||f);if(b||(s||0===s)&&(h||0===h)&&!pa.test(e)&&f in c)s=s||0,(nt=(l+"").substr((h+"").length))!==(a=ut(e)||(f in g.units?g.units[f]:nt))&&(h=kt(n,f,l,a)),this._pt=new v(this._pt,b?o:c,f,h,p?p*s:s-h,"px"!==a||!1===t.autoRound||b?ih:fl),this._pt.u=a||0,nt!==a&&(this._pt.b=l,this._pt.r=ul);else if(f in c)al.call(this,n,f,l,e);else{if(!(f in n)){ku(f,e);continue}this.add(n,f,n[f],e,r,u)}ft.push(f)}rt&&nh(this)},get:yr,aliases:gt,getSetter:function(n,t,i){var r=gt[t];return r&&r.indexOf(",")<0&&(t=r),t in dt&&t!==ni&&(n._gsap.x||yr(n,"x"))?i&&lh===i?"scale"===t?hl:sl:(lh=i||{})&&("scale"===t?cl:ll):n.style&&!bu(n.style[t])?el:~t.indexOf("-")?ol:fe(n,t)},core:{_removeProperty:lu,_getMatrix:ce}};rt.utils.checkPrefix=rr;pe=y((dh="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(ye="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(n){dt[n]=1});y(ye,function(n){g.units[n]="deg";bh[n]=1});gt[pe[13]]=dh+","+ye;y("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(n){var t=n.split(":");gt[t[1]]=pe[t[0]]});y("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){g.units[n]="px"});rt.registerPlugin(pu);wu=rt.registerPlugin(pu)||rt;gh=wu.core.Tween;n.Back=sa;n.Bounce=ca;n.CSSPlugin=pu;n.Circ=va;n.Cubic=ra;n.Elastic=oa;n.Expo=aa;n.Linear=ta;n.Power0=bl;n.Power1=kl;n.Power2=dl;n.Power3=gl;n.Power4=na;n.Quad=ia;n.Quart=ua;n.Quint=fa;n.Sine=la;n.SteppedEase=ha;n.Strong=ea;n.TimelineLite=h;n.TimelineMax=h;n.TweenLite=e;n.TweenMax=gh;n.default=wu;n.gsap=wu;typeof window=="undefined"||window!==n?Object.defineProperty(n,"__esModule",{value:!0}):delete n.default});
/*!
 * ScrollTrigger 3.5.1
 * https://greensock.com
 * 
 * @license Copyright 2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
 */
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n=n||self).window=n.window||{})}(this,function(n){"use strict";function rr(n){return n}function iu(){return"undefined"!=typeof window}function ru(){return t||iu()&&(t=window.gsap)&&t.registerPlugin&&t}function ft(n){return!!~vu.indexOf(n)}function et(n,t){return~ht.indexOf(n)&&ht[ht.indexOf(n)+1][t]}function ri(n,t){var r=t.s,u=t.sc,i=ai.indexOf(n),f=u===c.sc?1:2;return~i||(i=ai.push(n)-1),ai[i+f]||(ai[i+f]=et(n,r)||(ft(n)?u:function(t){return arguments.length?n[r]=t:n[r]}))}function uu(n){return et(n,"getBoundingClientRect")||(ft(n)?function(){return ir.width=e.innerWidth,ir.height=e.innerHeight,ir}:function(){return ut(n)})}function ur(n,t){var i=t.s,r=t.d2,f=t.d,u=t.a;return(i="scroll"+r)&&(u=et(n,i))?u()-uu(n)()[f]:ft(n)?Math.max(g[i],s[i])-(e["inner"+r]||g["client"+r]||s["client"+r]):n[i]-n["offset"+r]}function fr(n,t){for(var i=0;i<ot.length;i+=3)t&&!~t.indexOf(ot[i+1])||n(ot[i],ot[i+1],ot[i+2])}function it(n){return"string"==typeof n}function tt(n){return"function"==typeof n}function er(n){return"number"==typeof n}function or(n){return"object"==typeof n}function ui(n){return tt(n)&&n()}function fu(n,t){return function(){var i=ui(n),r=ui(t);return function(){ui(i);ui(r)}}}function d(n){return e.getComputedStyle(n)}function eu(n,t){for(var i in t)i in n||(n[i]=t[i]);return n}function sr(n,t){var i=t.d2;return n["offset"+i]||n["client"+i]||0}function ou(n,t,i,r){return i.split(",").forEach(function(i){return n(t,i,r)})}function l(n,t,i){return n.addEventListener(t,i,{passive:!0})}function kt(n,t,i){return n.removeEventListener(t,i)}function fi(n,t){if(it(n)){var i=n.indexOf("="),r=~i?(n.charAt(i-1)+1)*parseFloat(n.substr(i+1)):0;r&&(n.indexOf("%")>i&&(r*=t/100),n=n.substr(0,i-1));n=r+(n in nf?nf[n]*t:~n.indexOf("%")?parseFloat(n)*t/100:parseFloat(n)||0)}return n}function ei(n,t,i,r,u,f,e){var b=u.startColor,k=u.endColor,d=u.fontSize,g=u.indent,nt=u.fontWeight,o=h.createElement("div"),a=ft(i)||"fixed"===et(i,"pinType"),y=-1!==n.indexOf("scroller"),p=a?s:i,v=-1!==n.indexOf("start"),w=v?b:k,l="border-color:"+w+";font-size:"+d+";color:"+w+";font-weight:"+nt+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return l+="position:"+(y&&a?"fixed;":"absolute;"),!y&&a||(l+=(r===c?wi:bi)+":"+(f+parseFloat(g))+"px;"),e&&(l+="box-sizing:border-box;text-align:left;width:"+e.offsetWidth+"px;"),o._isStart=v,o.setAttribute("class","gsap-marker-"+n),o.style.cssText=l,o.innerText=t||0===t?n+"-"+t:n,p.insertBefore(o,p.children[0]),o._offset=o["offset"+r.op.d2],ki(o,0,r,v),o}function su(){return gt=gt||vr(nu)}function oi(){gt||(gt=vr(nu),k||wt("scrollStart"),k=rt())}function dt(){return!y&&ar.restart(!0)}function hu(n){var r,o=t.ticker.frame,u=[],i=0;if(bu!==o||ni){for(di();i<f.length;i+=4)(r=e.matchMedia(f[i]).matches)!==f[i+3]&&((f[i+3]=r)?u.push(i):di(1,f[i])||tt(f[i+2])&&f[i+2]());for(tf(),i=0;i<u.length;i++)r=u[i],st=f[r],f[r+2]=f[r+1](n);bt(st=0,1);bu=o;wt("matchMedia")}}function hr(){return kt(r,"scrollEnd",hr)||bt(!0)}function cr(n,t,i,r){if(n.parentNode!==t){for(var e,s=tu.length,f=t.style,u=n.style;s--;)f[e=tu[s]]=i[e];f.position="absolute"===i.position?"absolute":"relative";"inline"===i.display&&(f.display="inline-block");u[bi]=u[wi]="auto";f.overflow="visible";f.boxSizing="border-box";f[ct]=sr(n,w)+a;f[lt]=sr(n,c)+a;f[o]=u[p]=u.top=u[kr]="0";tr(r);u[ct]=u.maxWidth=i[ct];u[lt]=u.maxHeight=i[lt];u[o]=i[o];n.parentNode.insertBefore(t,n);t.appendChild(n)}}function lr(n){for(var r=nr.length,u=n.style,i=[],t=0;t<r;t++)i.push(nr[t],u[nr[t]]);return i.t=n,i}function cu(n,t,i,r,u,f,e,o,h,c,l,v){var k,rt;if(tt(n)&&(n=n(o)),it(n)&&"max"===n.substr(0,3)&&(n=v+("="===n.charAt(4)?fi("0"+n.substr(3),i):0)),er(n))e&&ki(e,i,r,!0);else{tt(t)&&(t=t(o));var ft,p,nt,y=b(t)[0]||s,w=ut(y)||{},et=n.split(" ");w&&(w.left||w.top)||"none"!==d(y).display||(nt=y.style.display,y.style.display="block",w=ut(y),nt?y.style.display=nt:y.style.removeProperty("display"));ft=fi(et[0],w[r.d]);p=fi(et[1]||"0",i);n=w[r.p]-h[r.p]-c+ft+u-p;e&&ki(e,p,r,i-p<20||e._isStart&&20<p);i-=i-p}return f&&(k=n+i,rt=f._isStart,v="scroll"+r.d2,ki(f,k,r,rt&&20<k||!rt&&(l?Math.max(s[v],g[v]):f.parentNode[v])<=k+1),l&&(h=ut(e),l&&(f.style[r.op.p]=h[r.op.p]-r.op.m-f._offset+a))),Math.round(n)}function lu(n,i,r,u){if(n.parentNode!==i){var f,o,e=n.style;if(i===s){for(f in n._stOrig=e.cssText,o=d(n))+f||ef.test(f)||!o[f]||"string"!=typeof e[f]||"0"===f||(e[f]=o[f]);e.top=r;e.left=u}else e.cssText=n._stOrig;t.core.getCache(n).uncache=1;i.appendChild(n)}}function au(n,i){var r,e,o=ri(n,i),f="_scroll"+i.p2;return n[f]=o,function u(i,s,h,c,l){var a=u.tween,v=s.onComplete;return a&&a.kill(),r=Math.round(h),s[f]=i,(s.modifiers={})[f]=function(n){return(n=Math.round(o()))!==r&&n!==e?(a.kill(),u.tween=0):n=h+c*a.ratio+l*a.ratio*a.ratio,e=r,r=Math.round(n)},s.onComplete=function(){u.tween=0;v&&v.call(a)},a=u.tween=t.to(n,s)}}function v(n,i){si||v.register(t)||console.warn("Please gsap.registerPlugin(ScrollTrigger)");this.init(n,i)}var t,si,e,h,g,s,vu,ar,vr,gt,b,hi,ci,yr,y,li,pr,u,yu,pu,ot,wu,wr,st,bu,ni=1,ht=[],ai=[],rt=Date.now,br=rt(),k=0,ku=1,vi=Math.abs,yi="scrollLeft",pi="scrollTop",kr="left",wi="right",bi="bottom",ct="width",lt="height",at="Right",vt="Left",yt="Top",pt="Bottom",o="padding",p="margin",ti="Width",du="Height",a="px",w={s:yi,p:kr,p2:vt,os:wi,os2:at,d:ct,d2:ti,a:"x",sc:function(n){return arguments.length?e.scrollTo(n,c.sc()):e.pageXOffset||h[yi]||g[yi]||s[yi]||0}},c={s:pi,p:"top",p2:yt,os:bi,os2:pt,d:lt,d2:du,a:"y",op:w,sc:function(n){return arguments.length?e.scrollTo(w.sc(),n):e.pageYOffset||h[pi]||g[pi]||s[pi]||0}},ut=function(n,i){var r=i&&"matrix(1, 0, 0, 1, 0, 0)"!==d(n)[pr]&&t.to(n,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),u=n.getBoundingClientRect();return r&&r.progress(0).kill(),u},gu={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},dr={toggleActions:"play",anticipatePin:0},nf={top:0,left:0,center:.5,bottom:1,right:1},ki=function(n,i,r,u){var f={display:"block"},e=r[u?"os2":"p2"],o=r[u?"p2":"os2"];n._isFlipped=u;f[r.a+"Percent"]=u?-100:0;f[r.a]=u?1:0;f["border"+e+ti]=1;f["border"+o+ti]=0;f[r.p]=i;t.set(n,f)},i=[],gr={},ii={},uf=[],f=[],wt=function(n){return ii[n]&&ii[n].map(function(n){return n()})||uf},nt=[],tf=function(n){for(var t=0;t<nt.length;t+=4)n&&nt[t+3]!==n||(nt[t].style.cssText=nt[t+1],nt[t+2].uncache=1)},di=function(n,t){var r;for(u=0;u<i.length;u++)r=i[u],t&&r.media!==t||(n?r.kill(1):(r.scroll.rec||(r.scroll.rec=r.scroll()),r.revert()));tf(t);t||wt("revert")},bt=function(n,t){if(!k||n){var f=wt("refreshInit");for(wu&&r.sort(),t||di(),u=0;u<i.length;u++)i[u].refresh();for(f.forEach(function(n){return n&&n.render&&n.render(-1)}),u=i.length;u--;)i[u].scroll.rec=0;ar.pause();wt("refresh")}else l(r,"scrollEnd",hr)},rf=0,gi=1,nu=function(){var n=i.length,t=rt(),r=50<=t-br,f=n&&i[0].scroll();if(gi=f<rf?-1:1,rf=f,r&&(k&&!li&&200<t-k&&(k=0,wt("scrollEnd")),ci=br,br=t),gi<0){for(u=n;u--;)i[u]&&i[u].update(0,r);gi=1}else for(u=0;u<n;u++)i[u]&&i[u].update(0,r);gt=0},tu=[kr,"top",bi,wi,p+pt,p+at,p+yt,p+vt,"display","flexShrink","float"],nr=tu.concat([ct,lt,"boxSizing","max"+ti,"max"+du,"position",p,o,o+yt,o+at,o+pt,o+vt]),ff=/([A-Z])/g,tr=function(n){if(n)for(var t,r,u=n.t.style,f=n.length,i=0;i<f;i+=2)r=n[i+1],t=n[i],r?u[t]=r:u[t]&&u.removeProperty(t.replace(ff,"-$1").toLowerCase())},ir={left:0,top:0},ef=/(?:webkit|moz|length|cssText)/i,r;w.op=c;r=(v.prototype.init=function(n,r){if(this.progress=0,this.vars&&this.kill(1),ku){var ar,wi,gf,uf,su,hu,bt,pi,nr,tu,bi,br,iu,ui,vu,yu,ff,ai,ef,of,sf,pu,vr,ne,bu,te,hf,cf,du,lf,ki,af,fr,ru,nf,fu,vf,ot=(n=eu(it(n)||er(n)||n.nodeType?{trigger:n}:n,dr)).horizontal?w:c,kr=n.onUpdate,nu=n.toggleClass,si=n.id,ie=n.onToggle,re=n.onRefresh,tf=n.scrub,gt=n.trigger,nt=n.pin,yi=n.pinSpacing,oe=n.invalidateOnRefresh,yf=n.anticipatePin,ue=n.onScrubComplete,fe=n.onSnapComplete,pf=n.once,ii=n.snap,wf=n.pinReparent,di=!tf&&0!==tf,wt=b(n.scroller||e)[0],bf=t.core.getCache(wt),yr=ft(wt),pr="pinType"in n?"fixed"===n.pinType:yr||"fixed"===et(wt,"pinType"),ou=[n.onEnter,n.onLeave,n.onEnterBack,n.onLeaveBack],kf=di&&n.toggleActions.split(" "),df="markers"in n?n.markers:dr.markers,ee=yr?0:parseFloat(d(wt)["border"+ot.p2+ti])||0,f=this,rf=n.onRefreshInit&&function(){return n.onRefreshInit(f)},se=function(n,t,i){var f=i.d,r=i.d2,u=i.a;return(u=et(n,"getBoundingClientRect"))?function(){return u()[f]}:function(){return(t?e["inner"+r]:n["client"+r])||0}}(wt,yr,ot),he=function(n,t){return!t||~ht.indexOf(n)?uu(n):function(){return ir}}(wt,yr);f.media=st;yf*=45;i.push(f);f.scroller=wt;f.scroll=ri(wt,ot);su=f.scroll();f.vars=n;r=r||n.animation;"refreshPriority"in n&&(wu=1);bf.tweenScroll=bf.tweenScroll||{top:au(wt,c),left:au(wt,w)};f.tweenTo=ar=bf.tweenScroll[ot.p];r&&(r.vars.lazy=!1,r._initted||!1!==r.vars.immediateRender&&!1!==n.immediateRender&&r.render(0,!0,!0),f.animation=r.pause(),r.scrollTrigger=f,(af=er(tf)&&tf)&&(ki=t.to(r,{ease:"power3",duration:af,onComplete:function(){return ue&&ue(f)}})),du=0,si=si||r.vars.id);ii&&(or(ii)||(ii={snapTo:ii}),t.set(yr?[s,g]:wt,{scrollBehavior:"auto"}),gf=tt(ii.snapTo)?ii.snapTo:"labels"===ii.snapTo?function(n){return function(i){var r,u=[],f=n.labels,e=n.duration();for(r in f)u.push(f[r]/e);return t.utils.snap(u,i)}}(r):t.utils.snap(ii.snapTo),fr=ii.duration||{min:.1,max:2},fr=or(fr)?hi(fr.min,fr.max):hi(fr,fr),ru=t.delayedCall(ii.delay||af/2||.1,function(){if(Math.abs(f.getVelocity())<10&&!li){var i=r&&!di?r.totalProgress():f.progress,u=(i-lf)/(rt()-ci)*1e3||0,e=vi(u/2)*u/.185,s=i+e,h=hi(0,1,gf(s,f)),n=f.scroll(),t=Math.round(bt+h*ui),o=ar.tween;if(n<=pi&&bt<=n&&t!==n){if(o&&!o._initted&&o.data<=Math.abs(t-n))return;ar(t,{duration:fr(vi(.185*Math.max(vi(s-i),vi(h-i))/u/.05||0)),ease:ii.ease||"power3",data:Math.abs(t-n),onComplete:function(){du=lf=r&&!di?r.totalProgress():f.progress;fe&&fe(f)}},n,e*ui,t-n-e*ui)}}else f.isActive&&ru.restart(!0)}).pause());si&&(gr[si]=f);gt=f.trigger=b(gt||nt)[0];nt=!0===nt?gt:b(nt)[0];it(nu)&&(nu={targets:gt,className:nu});nt&&(!1===yi||yi===p||(yi=!(!yi&&"flex"===d(nt.parentNode).display)&&o),f.pin=nt,!1!==n.force3D&&t.set(nt,{force3D:!0}),(wi=t.core.getCache(nt)).spacer?vu=wi.pinState:(wi.spacer=ai=h.createElement("div"),ai.setAttribute("class","pin-spacer"+(si?" pin-spacer-"+si:"")),wi.pinState=vu=lr(nt)),f.spacer=ai=wi.spacer,cf=d(nt),ne=cf[yi+ot.os2],of=t.getProperty(nt),sf=t.quickSetter(nt,ot.a,a),cr(nt,ai,cf),ff=lr(nt));df&&(iu=or(df)?eu(df,gu):gu,bi=ei("scroller-start",si,wt,ot,iu,0),br=ei("scroller-end",si,wt,ot,iu,0,bi),ef=bi["offset"+ot.op.d2],nr=ei("start",si,wt,ot,iu,ef),tu=ei("end",si,wt,ot,iu,ef),pr||(function(n){n.style.position="absolute"===d(n).position?"absolute":"relative"}(wt),t.set([bi,br],{force3D:!0}),te=t.quickSetter(bi,ot.a,a),hf=t.quickSetter(br,ot.a,a)));f.revert=function(n){var t=!1!==n||!f.enabled,i=y;t!==uf&&(t&&(fu=Math.max(f.scroll(),f.scroll.rec||0),nf=f.progress,vf=r&&r.progress()),nr&&[nr,tu,bi,br].forEach(function(n){return n.style.display=t?"none":"block"}),t&&(y=1),f.update(t),y=i,nt&&(t?function(n,t,i){if(tr(i),n.parentNode===t){var r=t.parentNode;r&&(r.insertBefore(n,t),r.removeChild(t))}}(nt,ai,vu):wf&&f.isActive||cr(nt,ai,d(nt),bu)),uf=t)};f.refresh=function(u){if(!y&&f.enabled)if(nt&&u&&k)l(v,"scrollEnd",hr);else{y=1;ki&&ki.kill();oe&&r&&r.progress(0).invalidate();uf||f.revert();for(var g,h,ti,dt,e,et,st,ii,ei=se(),hi=he(),ni=ur(wt,ot),ft=0,ht=0,rt=n.end,oi=n.endTrigger||gt,kt=n.start||(0===n.start?0:nt||!gt?"0 0":"0 100%"),si=gt&&Math.max(0,i.indexOf(f))||0,b=si;b--;)(st=i[b].pin)&&(st===gt||st===nt)&&i[b].revert();for(bt=cu(kt,gt,ei,ot,f.scroll(),nr,bi,f,hi,ee,pr,ni)||(nt?-.001:0),tt(rt)&&(rt=rt(f)),it(rt)&&!rt.indexOf("+=")&&(~rt.indexOf(" ")?rt=(it(kt)?kt.split(" ")[0]:"")+rt:(ft=fi(rt.substr(2),ei),rt=it(kt)?kt:bt+ft,oi=gt)),pi=Math.max(bt,cu(rt||(oi?"100% 0":ni),oi,ei,ot,f.scroll()+ft,tu,br,f,hi,ee,pr,ni))||-.001,ui=pi-bt||(bt-=.01)&&.001,ft=0,b=si;b--;)(st=(et=i[b]).pin)&&et.start-et._pinPush<bt&&(g=et.end-et.start,st===gt&&(ft+=g),st===nt&&(ht+=g));if(bt+=ft,pi+=ft,f._pinPush=ht,nr&&ft&&((g={})[ot.a]="+="+ft,t.set([nr,tu],g)),nt)g=d(nt),dt=ot===c,ti=f.scroll(),pu=parseFloat(of(ot.a))+ht,!ni&&1<pi&&((yr?s:wt).style["overflow-"+ot.a]="scroll"),cr(nt,ai,g),ff=lr(nt),h=ut(nt,!0),ii=pr&&ri(wt,dt?w:c)(),yi&&((bu=[yi+ot.os2,ui+ht+a]).t=ai,(b=yi===o?sr(nt,ot)+ui+ht:0)&&bu.push(ot.d,b+a),tr(bu),pr&&f.scroll(fu)),pr&&((e={top:h.top+(dt?ti-bt:ii)+a,left:h.left+(dt?ii:ti-bt)+a,boxSizing:"border-box",position:"fixed"})[ct]=e.maxWidth=Math.ceil(h.width)+a,e[lt]=e.maxHeight=Math.ceil(h.height)+a,e[p]=e[p+yt]=e[p+at]=e[p+pt]=e[p+vt]="0",e[o]=g[o],e[o+yt]=g[o+yt],e[o+at]=g[o+at],e[o+pt]=g[o+pt],e[o+vt]=g[o+vt],yu=function(n,t,i){for(var r,f=[],e=n.length,u=i?8:0;u<e;u+=2)r=n[u],f.push(r,r in t?t[r]:n[u+1]);return f.t=n.t,f}(vu,e,wf)),r?(r.progress(1,!0),vr=of(ot.a)-pu+ui+ht,ui!==vr&&yu.splice(yu.length-2,2),r.progress(0,!0)):vr=ui;else if(gt&&f.scroll())for(h=gt.parentNode;h&&h!==s;)h._pinOffset&&(bt-=h._pinOffset,pi-=h._pinOffset),h=h.parentNode;for(b=0;b<si;b++)(et=i[b].pin)&&(et===gt||et===nt)&&i[b].revert(!1);f.start=bt;f.end=pi;(su=hu=f.scroll())<fu&&f.scroll(fu);f.revert(!1);y=0;vf&&di&&r.progress(vf,!0);nf!==f.progress&&(ki&&r.totalProgress(nf,!0),f.progress=nf,f.update());nt&&yi&&(ai._pinOffset=Math.round(f.progress*vr));re&&re(f)}};f.getVelocity=function(){return(f.scroll()-hu)/(rt()-ci)*1e3||0};f.update=function(n,t){var v,e,u,p,l,o=f.scroll(),w=n?0:(o-bt)/ui,i=w<0?0:1<w?1:w||0,h=f.progress,d,g;(t&&(hu=su,su=o,ii&&(lf=du,du=r&&!di?r.totalProgress():i)),yf&&!i&&nt&&!y&&!ni&&k&&bt<o+(o-hu)/(rt()-ci)*yf&&(i=.0001),i!==h&&f.enabled)&&((p=(l=(v=f.isActive=!!i&&i<1)!=(!!h&&h<1))||!!i!=!!h,f.direction=h<i?1:-1,f.progress=i,di||(!ki||y||ni?r&&r.totalProgress(i,!!y):(ki.vars.totalProgress=i,ki.invalidate().restart())),nt)&&((n&&yi&&(ai.style[yi+ot.os2]=ne),pr)?p&&((u=!n&&h<i&&o<pi+1&&o+1>=ur(wt,ot),wf)&&(!n&&(v||u)?(d=ut(nt,!0),g=o-bt,lu(nt,s,d.top+(ot===c?g:0)+a,d.left+(ot===c?0:g)+a)):lu(nt,ai)),tr(v||u?yu:ff),vr!==ui&&i<1&&v||sf(pu+(1!==i||u?0:vr))):sf(pu+vr*i)),!ii||ar.tween||y||ni||ru.restart(!0),nu&&(l||pf&&i&&(i<1||!wr))&&b(nu.targets).forEach(function(n){return n.classList[v||pf?"add":"remove"](nu.className)}),!kr||di||n||kr(f),p&&!y?(e=i&&!h?0:1===i?1:1===h?2:3,di&&(u=!l&&"none"!==kf[e+1]&&kf[e+1]||kf[e],r&&("complete"===u||"reset"===u||u in r)&&("complete"===u?r.pause().totalProgress(1):"reset"===u?r.restart(!0).pause():r[u]()),kr&&kr(f)),!l&&wr||(ie&&l&&ie(f),ou[e]&&ou[e](f),pf&&(1===i?f.kill(!1,1):ou[e]=0),l||ou[e=1===i?1:3]&&ou[e](f))):di&&kr&&!y&&kr(f));hf&&(te(o+(bi._isFlipped?1:0)),hf(o))};f.enable=function(){f.enabled||(f.enabled=!0,l(wt,"resize",dt),l(wt,"scroll",oi),rf&&l(v,"refreshInit",rf),r&&r.add?t.delayedCall(.01,function(){return bt||pi||f.refresh()})&&(ui=.01)&&(bt=pi=0):f.refresh())};f.disable=function(n,t){if(f.enabled&&(!1!==n&&f.revert(),f.enabled=f.isActive=!1,t||ki&&ki.pause(),fu=0,wi&&(wi.uncache=1),rf&&kt(v,"refreshInit",rf),ru&&(ru.pause(),ar.tween&&ar.tween.kill()&&(ar.tween=0)),!yr)){for(var r=i.length;r--;)if(i[r].scroller===wt&&i[r]!==f)return;kt(wt,"resize",dt);kt(wt,"scroll",oi)}};f.kill=function(n,t){f.disable(n,t);si&&delete gr[si];var e=i.indexOf(f);i.splice(e,1);e===u&&0<gi&&u--;r&&(r.scrollTrigger=null,n&&r.render(-1),t||r.kill());nr&&[nr,tu,bi,br].forEach(function(n){return n.parentNode.removeChild(n)});wi&&(wi.uncache=1)};f.enable()}else this.update=this.refresh=this.kill=rr},v.register=function(n){if(!si&&(t=n||ru(),iu()&&window.document&&(e=window,h=document,g=h.documentElement,s=h.body),t&&(b=t.utils.toArray,hi=t.utils.clamp,t.core.globals("ScrollTrigger",v),s))){vr=e.requestAnimationFrame||function(n){return setTimeout(n,16)};l(e,"mousewheel",oi);vu=[e,h,g,s];l(h,"scroll",oi);var r,i=s.style,u=i.borderTop;i.borderTop="1px solid #000";r=ut(s);c.m=Math.round(r.top+c.sc())||0;w.m=Math.round(r.left+w.sc())||0;u?i.borderTop=u:i.removeProperty("border-top");yr=setInterval(su,200);t.delayedCall(.5,function(){return ni=0});l(h,"touchcancel",rr);l(s,"touchstart",rr);ou(l,h,"pointerdown,touchstart,mousedown",function(){return li=1});ou(l,h,"pointerup,touchend,mouseup",function(){return li=0});pr=t.utils.checkPrefix("transform");nr.push(pr);si=rt();ar=t.delayedCall(.2,bt).pause();ot=[h,"visibilitychange",function(){var n=e.innerWidth,t=e.innerHeight;h.hidden?(yu=n,pu=t):yu===n&&pu===t||dt()},h,"DOMContentLoaded",bt,e,"load",function(){return k||bt()},e,"resize",dt];fr(l)}return si},v.defaults=function(n){for(var t in n)dr[t]=n[t]},v.kill=function(){ku=0;i.slice(0).forEach(function(n){return n.kill(1)})},v.config=function(n){"limitCallbacks"in n&&(wr=!!n.limitCallbacks);var t=n.syncInterval;t&&clearInterval(yr)||(yr=t)&&setInterval(su,t);"autoRefreshEvents"in n&&(fr(kt)||fr(l,n.autoRefreshEvents||"none"))},v.scrollerProxy=function(n,t){var i=b(n)[0];ft(i)?ht.unshift(e,t,s,t,g,t):ht.unshift(i,t)},v.matchMedia=function(n){var i,r,t,u,o;for(r in n)t=f.indexOf(r),u=n[r],"all"===(st=r)?u():(i=e.matchMedia(r))&&(i.matches&&(o=u()),~t?(f[t+1]=fu(f[t+1],u),f[t+2]=fu(f[t+2],o)):(t=f.length,f.push(r,u,o),i.addListener?i.addListener(hu):i.addEventListener("change",hu)),f[t+3]=i.matches),st=0;return f},v.clearMatchMedia=function(n){n||(f.length=0);0<=(n=f.indexOf(n))&&f.splice(n,4)},v);r.version="3.5.1";r.saveStyles=function(n){return n?b(n).forEach(function(n){var i=nt.indexOf(n);0<=i&&nt.splice(i,4);nt.push(n,n.style.cssText,t.core.getCache(n),st)}):nt};r.revert=function(n,t){return di(!n,t)};r.create=function(n,t){return new r(n,t)};r.refresh=function(n){return n?dt():bt(!0)};r.update=nu;r.maxScroll=function(n,t){return ur(n,t?w:c)};r.getScrollFunc=function(n,t){return ri(b(n)[0],t?w:c)};r.getById=function(n){return gr[n]};r.getAll=function(){return i.slice(0)};r.isScrolling=function(){return!!k};r.addEventListener=function(n,t){var i=ii[n]||(ii[n]=[]);~i.indexOf(t)||i.push(t)};r.removeEventListener=function(n,t){var i=ii[n],r=i&&i.indexOf(t);0<=r&&i.splice(r,1)};r.batch=function(n,i){function s(n,i){var r=[],u=[],e=t.delayedCall(h,function(){i(r,u);r=[];u=[]}).pause();return function(n){r.length||e.restart(!0);r.push(n.trigger);u.push(n);f<=r.length&&e.progress(1)}}var u,o=[],e={},h=i.interval||.016,f=i.batchMax||1e9;for(u in i)e[u]="on"===u.substr(0,2)&&tt(i[u])&&"onRefreshInit"!==u?s(0,i[u]):i[u];return tt(f)&&(f=f(),l(r,"refresh",function(){return f=i.batchMax()})),b(n).forEach(function(n){var t={};for(u in e)t[u]=e[u];t.trigger=n;o.push(r.create(t))}),o};r.sort=function(n){return i.sort(n||function(n,t){return-1e6*(n.vars.refreshPriority||0)+n.start-(t.start+-1e6*(t.vars.refreshPriority||0))})};ru()&&t.registerPlugin(r);n.ScrollTrigger=r;n.default=r;typeof window=="undefined"||window!==n?Object.defineProperty(n,"__esModule",{value:!0}):delete n.default});
/*!
 * Isotope PACKAGED v2.2.2
 *
 * Licensed GPLv3 for open source use
 * or Isotope Commercial License for commercial use
 *
 * http://isotope.metafizzy.co
 * Copyright 2015 Metafizzy
 */
(function(n){function r(){}function t(n){function u(t){t.prototype.option||(t.prototype.option=function(t){n.isPlainObject(t)&&(this.options=n.extend(!0,this.options,t))})}function f(r,u){n.fn[r]=function(f){var h,o,c,l,e,s;if(typeof f=="string"){for(h=i.call(arguments,1),o=0,c=this.length;o<c;o++){if(l=this[o],e=n.data(l,r),!e){t("cannot call methods on "+r+" prior to initialization; attempted to call '"+f+"'");continue}if(!n.isFunction(e[f])||f.charAt(0)==="_"){t("no such method '"+f+"' for "+r+" instance");continue}if(s=e[f].apply(e,h),s!==undefined)return s}return this}return this.each(function(){var t=n.data(this,r);t?(t.option(f),t._init()):(t=new u(this,f),n.data(this,r,t))})}}if(n){var t=typeof console=="undefined"?r:function(n){console.error(n)};return n.bridget=function(n,t){u(t);f(n,t)},n.bridget}}var i=Array.prototype.slice;typeof define=="function"&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],t):typeof exports=="object"?t(require("jquery")):t(n.jQuery)})(window);
/*!
 * eventie v1.0.6
 * event binding helper
 *   eventie.bind( elem, 'click', myFn )
 *   eventie.unbind( elem, 'click', myFn )
 * MIT license
 */
(function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,u=function(){},i,r;t.addEventListener?u=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(u=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)};n.attachEvent("on"+t,n[t+i])});i=function(){};t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=undefined}});r={bind:u,unbind:i};typeof define=="function"&&define.amd?define("eventie/eventie",r):typeof exports=="object"?module.exports=r:n.eventie=r})(window);
/*!
 * EventEmitter v4.2.11 - git.io/ee
 * Unlicense - http://unlicense.org/
 * Oliver Caldwell - http://oli.me.uk/
 * @preserve
 */
(function(){"use strict";function t(){}function u(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function i(n){return function(){return this[n].apply(this,arguments)}}var n=t.prototype,r=this,f=r.EventEmitter;n.getListeners=function(n){var t=this._getEvents(),r,i;if(n instanceof RegExp){r={};for(i in t)t.hasOwnProperty(i)&&n.test(i)&&(r[i]=t[i])}else r=t[n]||(t[n]=[]);return r};n.flattenListeners=function(n){for(var i=[],t=0;t<n.length;t+=1)i.push(n[t].listener);return i};n.getListenersAsObject=function(n){var t=this.getListeners(n),i;return t instanceof Array&&(i={},i[n]=t),i||t};n.addListener=function(n,t){var i=this.getListenersAsObject(n),f=typeof t=="object";for(var r in i)i.hasOwnProperty(r)&&u(i[r],t)===-1&&i[r].push(f?t:{listener:t,once:!1});return this};n.on=i("addListener");n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})};n.once=i("addOnceListener");n.defineEvent=function(n){return this.getListeners(n),this};n.defineEvents=function(n){for(var t=0;t<n.length;t+=1)this.defineEvent(n[t]);return this};n.removeListener=function(n,t){var i=this.getListenersAsObject(n),r;for(var f in i)i.hasOwnProperty(f)&&(r=u(i[f],t),r!==-1&&i[f].splice(r,1));return this};n.off=i("removeListener");n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)};n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)};n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if(typeof t!="object"||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&(typeof u=="function"?f.call(this,r,u):e.call(this,r,u));return this};n.removeEvent=function(n){var r=typeof n,t=this._getEvents(),i;if(r==="string")delete t[n];else if(n instanceof RegExp)for(i in t)t.hasOwnProperty(i)&&n.test(i)&&delete t[i];else delete this._events;return this};n.removeAllListeners=i("removeEvent");n.emitEvent=function(n,t){var r=this.getListenersAsObject(n),i,f,u,e;for(u in r)if(r.hasOwnProperty(u))for(f=r[u].length;f--;)i=r[u][f],i!=null&&(i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener));return this};n.trigger=i("emitEvent");n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)};n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this};n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0};n._getEvents=function(){return this._events||(this._events={})};t.noConflict=function(){return r.EventEmitter=f,t};typeof define=="function"&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):typeof module=="object"&&module.exports?module.exports=t:r.EventEmitter=t}).call(this);
/*!
 * getStyleProperty v1.0.4
 * original by kangax
 * http://perfectionkills.com/feature-testing-css-properties/
 * MIT license
 */
(function(n){function t(n){var u,t,f;if(n){if(typeof r[n]=="string")return n;for(n=n.charAt(0).toUpperCase()+n.slice(1),t=0,f=i.length;t<f;t++)if(u=i[t]+n,typeof r[u]=="string")return u}}var i="Webkit Moz ms Ms O".split(" "),r=document.documentElement.style;typeof define=="function"&&define.amd?define("get-style-property/get-style-property",[],function(){return t}):typeof exports=="object"?module.exports=t:n.getStyleProperty=t})(window);
/*!
 * getSize v1.2.2
 * measure size of elements
 * MIT license
 */
(function(n){function i(n){var t=parseFloat(n),i=n.indexOf("%")===-1&&!isNaN(t);return i&&t}function u(){}function e(){for(var r,i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0,u=t.length;n<u;n++)r=t[n],i[r]=0;return i}function r(r){function c(){var e,t,c,l;s||(s=!0,e=n.getComputedStyle,o=function(){var n=e?function(n){return e(n,null)}:function(n){return n.currentStyle};return function(t){var i=n(t);return i||f("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),i}}(),u=r("boxSizing"),u&&(t=document.createElement("div"),t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style[u]="border-box",c=document.body||document.documentElement,c.appendChild(t),l=o(t),h=i(l.width)===200,c.removeChild(t)))}function l(n){var f,r,w,s,b,v,l,y,p;if(c(),typeof n=="string"&&(n=document.querySelector(n)),n&&typeof n=="object"&&n.nodeType){if(f=o(n),f.display==="none")return e();for(r={},r.width=n.offsetWidth,r.height=n.offsetHeight,w=r.isBorderBox=!!(u&&f[u]&&f[u]==="border-box"),s=0,b=t.length;s<b;s++)v=t[s],l=f[v],l=a(n,l),y=parseFloat(l),r[v]=isNaN(y)?0:y;var k=r.paddingLeft+r.paddingRight,d=r.paddingTop+r.paddingBottom,rt=r.marginLeft+r.marginRight,ut=r.marginTop+r.marginBottom,g=r.borderLeftWidth+r.borderRightWidth,nt=r.borderTopWidth+r.borderBottomWidth,tt=w&&h,it=i(f.width);return it!==!1&&(r.width=it+(tt?0:k+g)),p=i(f.height),p!==!1&&(r.height=p+(tt?0:d+nt)),r.innerWidth=r.width-(k+g),r.innerHeight=r.height-(d+nt),r.outerWidth=r.width+rt,r.outerHeight=r.height+ut,r}}function a(t,i){if(n.getComputedStyle||i.indexOf("%")===-1)return i;var r=t.style,e=r.left,u=t.runtimeStyle,f=u&&u.left;return f&&(u.left=t.currentStyle.left),r.left=i,i=r.pixelLeft,r.left=e,f&&(u.left=f),i}var s=!1,o,u,h;return l}var f=typeof console=="undefined"?u:function(n){console.error(n)},t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];typeof define=="function"&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],r):typeof exports=="object"?module.exports=r(require("desandro-get-style-property")):n.getSize=r(n.getStyleProperty)})(window);
/*!
 * docReady v1.0.4
 * Cross browser DOMContentLoaded event emitter
 * MIT license
 */
(function(n){function t(n){typeof n=="function"&&(t.isReady?n():r.push(n))}function u(n){var r=n.type==="readystatechange"&&i.readyState!=="complete";t.isReady||r||e()}function e(){var n,i,u;for(t.isReady=!0,n=0,i=r.length;n<i;n++)u=r[n],u()}function f(r){return i.readyState==="complete"?e():(r.bind(i,"DOMContentLoaded",u),r.bind(i,"readystatechange",u),r.bind(n,"load",u)),t}var i=n.document,r=[];t.isReady=!1;typeof define=="function"&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],f):typeof exports=="object"?module.exports=f(require("eventie")):n.docReady=f(n.eventie)})(window),function(n){"use strict";function i(n,t){return n[r](t)}function u(n){if(!n.parentNode){var t=document.createDocumentFragment();t.appendChild(n)}}function o(n,t){var r,i,f;for(u(n),r=n.parentNode.querySelectorAll(t),i=0,f=r.length;i<f;i++)if(r[i]===n)return!0;return!1}function s(n,t){return u(n),i(n,t)}var r=function(){var i,t,u,f,r;if(n.matches)return"matches";if(n.matchesSelector)return"matchesSelector";for(i=["webkit","moz","ms","o"],t=0,u=i.length;t<u;t++)if(f=i[t],r=f+"MatchesSelector",n[r])return r}(),t,f,e;r?(f=document.createElement("div"),e=i(f,"div"),t=e?i:s):t=o;typeof define=="function"&&define.amd?define("matches-selector/matches-selector",[],function(){return t}):typeof exports=="object"?module.exports=t:window.matchesSelector=t}(Element.prototype),function(n,t){"use strict";typeof define=="function"&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(i,r){return t(n,i,r)}):typeof exports=="object"?module.exports=t(n,require("doc-ready"),require("desandro-matches-selector")):n.fizzyUIUtils=t(n,n.docReady,n.matchesSelector)}(window,function(n,t,i){var r={},f,u;return r.extend=function(n,t){for(var i in t)n[i]=t[i];return n},r.modulo=function(n,t){return(n%t+t)%t},f=Object.prototype.toString,r.isArray=function(n){return f.call(n)=="[object Array]"},r.makeArray=function(n){var t=[],i,u;if(r.isArray(n))t=n;else if(n&&typeof n.length=="number")for(i=0,u=n.length;i<u;i++)t.push(n[i]);else t.push(n);return t},r.indexOf=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},r.removeFrom=function(n,t){var i=r.indexOf(n,t);i!=-1&&n.splice(i,1)},r.isElement=typeof HTMLElement=="function"||typeof HTMLElement=="object"?function(n){return n instanceof HTMLElement}:function(n){return n&&typeof n=="object"&&n.nodeType==1&&typeof n.nodeName=="string"},r.setText=function(){function t(t,i){n=n||(document.documentElement.textContent!==undefined?"textContent":"innerText");t[n]=i}var n;return t}(),r.getParent=function(n,t){while(n!=document.body)if(n=n.parentNode,i(n,t))return n},r.getQueryElement=function(n){return typeof n=="string"?document.querySelector(n):n},r.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},r.filterFindElements=function(n,t){var f,e,h,u,s,o,c;for(n=r.makeArray(n),f=[],e=0,h=n.length;e<h;e++)if(u=n[e],r.isElement(u))if(t)for(i(u,t)&&f.push(u),s=u.querySelectorAll(t),o=0,c=s.length;o<c;o++)f.push(s[o]);else f.push(u);return f},r.debounceMethod=function(n,t,i){var u=n.prototype[t],r=t+"Timeout";n.prototype[t]=function(){var t=this[r],f,n;t&&clearTimeout(t);f=arguments;n=this;this[r]=setTimeout(function(){u.apply(n,f);delete n[r]},i||100)}},r.toDashed=function(n){return n.replace(/(.)([A-Z])/g,function(n,t,i){return t+"-"+i}).toLowerCase()},u=n.console,r.htmlInit=function(i,f){t(function(){for(var t,o,a,v,s,h=r.toDashed(f),c=document.querySelectorAll(".js-"+h),l="data-"+h+"-options",e=0,y=c.length;e<y;e++){t=c[e];o=t.getAttribute(l);try{a=o&&JSON.parse(o)}catch(p){u&&u.error("Error parsing "+l+" on "+t.nodeName.toLowerCase()+(t.id?"#"+t.id:"")+": "+p);continue}v=new i(t,a);s=n.jQuery;s&&s.data(t,f,v)}})},r}),function(n,t){"use strict";typeof define=="function"&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(i,r,u,f){return t(n,i,r,u,f)}):typeof exports=="object"?module.exports=t(n,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(n.Outlayer={},n.Outlayer.Item=t(n,n.EventEmitter,n.getSize,n.getStyleProperty,n.fizzyUIUtils))}(window,function(n,t,i,r,u){"use strict";function p(n){for(var t in n)return!1;return t=null,!0}function f(n,t){n&&(this.element=n,this.layout=t,this.position={x:0,y:0},this._create())}function d(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}var o=n.getComputedStyle,y=o?function(n){return o(n,null)}:function(n){return n.currentStyle},e=r("transition"),w=r("transform"),b=e&&w,k=!!r("perspective"),s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[e],h=["transform","transition","transitionDuration","transitionProperty"],c=function(){for(var n,t,u={},i=0,f=h.length;i<f;i++)n=h[i],t=r(n),t&&t!==n&&(u[n]=t);return u}(),l,a,v;return u.extend(f.prototype,t.prototype),f.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},f.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},f.prototype.getSize=function(){this.size=i(this.element)},f.prototype.css=function(n){var r=this.element.style,t,i;for(t in n)i=c[t]||t,r[i]=n[t]},f.prototype.getPosition=function(){var f=y(this.element),e=this.layout.options,o=e.isOriginLeft,s=e.isOriginTop,r=f[o?"left":"right"],u=f[s?"top":"bottom"],n=this.layout.size,t=r.indexOf("%")!=-1?parseFloat(r)/100*n.width:parseInt(r,10),i=u.indexOf("%")!=-1?parseFloat(u)/100*n.height:parseInt(u,10);t=isNaN(t)?0:t;i=isNaN(i)?0:i;t-=o?n.paddingLeft:n.paddingRight;i-=s?n.paddingTop:n.paddingBottom;this.position.x=t;this.position.y=i},f.prototype.layoutPosition=function(){var i=this.layout.size,n=this.layout.options,t={},r=n.isOriginLeft?"paddingLeft":"paddingRight",u=n.isOriginLeft?"left":"right",f=n.isOriginLeft?"right":"left",e=this.position.x+i[r];t[u]=this.getXValue(e);t[f]="";var o=n.isOriginTop?"paddingTop":"paddingBottom",s=n.isOriginTop?"top":"bottom",h=n.isOriginTop?"bottom":"top",c=this.position.y+i[o];t[s]=this.getYValue(c);t[h]="";this.css(t);this.emitEvent("layout",[this])},f.prototype.getXValue=function(n){var t=this.layout.options;return t.percentPosition&&!t.isHorizontal?n/this.layout.size.width*100+"%":n+"px"},f.prototype.getYValue=function(n){var t=this.layout.options;return t.percentPosition&&t.isHorizontal?n/this.layout.size.height*100+"%":n+"px"},f.prototype._transitionTo=function(n,t){this.getPosition();var r=this.position.x,u=this.position.y,f=parseInt(n,10),e=parseInt(t,10),o=f===this.position.x&&e===this.position.y;if(this.setPosition(n,t),o&&!this.isTransitioning){this.layoutPosition();return}var s=n-r,h=t-u,i={};i.transform=this.getTranslate(s,h);this.transition({to:i,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},f.prototype.getTranslate=function(n,t){var i=this.layout.options;return(n=i.isOriginLeft?n:-n,t=i.isOriginTop?t:-t,k)?"translate3d("+n+"px, "+t+"px, 0)":"translate("+n+"px, "+t+"px)"},f.prototype.goTo=function(n,t){this.setPosition(n,t);this.layoutPosition()},f.prototype.moveTo=b?f.prototype._transitionTo:f.prototype.goTo,f.prototype.setPosition=function(n,t){this.position.x=parseInt(n,10);this.position.y=parseInt(t,10)},f.prototype._nonTransition=function(n){this.css(n.to);n.isCleaning&&this._removeStyles(n.to);for(var t in n.onTransitionEnd)n.onTransitionEnd[t].call(this)},f.prototype._transition=function(n){var i,t,r;if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(n);return}i=this._transn;for(t in n.onTransitionEnd)i.onEnd[t]=n.onTransitionEnd[t];for(t in n.to)i.ingProperties[t]=!0,n.isCleaning&&(i.clean[t]=!0);n.from&&(this.css(n.from),r=this.element.offsetHeight,r=null);this.enableTransition(n.to);this.css(n.to);this.isTransitioning=!0},l="opacity,"+d(c.transform||"transform"),f.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:l,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(s,this,!1))},f.prototype.transition=f.prototype[e?"_transition":"_nonTransition"],f.prototype.onwebkitTransitionEnd=function(n){this.ontransitionend(n)},f.prototype.onotransitionend=function(n){this.ontransitionend(n)},a={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"},f.prototype.ontransitionend=function(n){var t,i,r;n.target===this.element&&(t=this._transn,i=a[n.propertyName]||n.propertyName,delete t.ingProperties[i],p(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[n.propertyName]="",delete t.clean[i]),i in t.onEnd&&(r=t.onEnd[i],r.call(this),delete t.onEnd[i]),this.emitEvent("transitionEnd",[this]))},f.prototype.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(s,this,!1);this.isTransitioning=!1},f.prototype._removeStyles=function(n){var t={};for(var i in n)t[i]="";this.css(t)},v={transitionProperty:"",transitionDuration:""},f.prototype.removeTransitionStyles=function(){this.css(v)},f.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:""});this.emitEvent("remove",[this])},f.prototype.remove=function(){if(!e||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}var n=this;this.once("transitionEnd",function(){n.removeElem()});this.hide()},f.prototype.reveal=function(){delete this.isHidden;this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("visibleStyle");t[i]=this.onRevealTransitionEnd;this.transition({from:n.hiddenStyle,to:n.visibleStyle,isCleaning:!0,onTransitionEnd:t})},f.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},f.prototype.getHideRevealTransitionEndProperty=function(n){var t=this.layout.options[n],i;if(t.opacity)return"opacity";for(i in t)return i},f.prototype.hide=function(){this.isHidden=!0;this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");t[i]=this.onHideTransitionEnd;this.transition({from:n.visibleStyle,to:n.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},f.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},f.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},f});
/*!
 * Outlayer v1.4.2
 * the brains and guts of a layout library
 * MIT license
 */
(function(n,t){"use strict";typeof define=="function"&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,r,u,f,e){return t(n,i,r,u,f,e)}):typeof exports=="object"?module.exports=t(n,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):n.Outlayer=t(n,n.eventie,n.EventEmitter,n.getSize,n.fizzyUIUtils,n.Outlayer.Item)})(window,function(n,t,i,r,u,f){"use strict";function e(n,t){var i=u.getQueryElement(n),r;if(!i){h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||n));return}this.element=i;o&&(this.$element=o(this.element));this.options=u.extend({},this.constructor.defaults);this.option(t);r=++l;this.element.outlayerGUID=r;s[r]=this;this._create();this.options.isInitLayout&&this.layout()}var h=n.console,o=n.jQuery,c=function(){},l=0,s={};return e.namespace="outlayer",e.Item=f,e.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},u.extend(e.prototype,i.prototype),e.prototype.option=function(n){u.extend(this.options,n)},e.prototype._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);u.extend(this.element.style,this.options.containerStyle);this.options.isResizeBound&&this.bindResize()},e.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},e.prototype._itemize=function(n){for(var u,f,i=this._filterFindItemElements(n),e=this.constructor.Item,r=[],t=0,o=i.length;t<o;t++)u=i[t],f=new e(u,this),r.push(f);return r},e.prototype._filterFindItemElements=function(n){return u.filterFindElements(n,this.options.itemSelector)},e.prototype.getItemElements=function(){for(var t=[],n=0,i=this.items.length;n<i;n++)t.push(this.items[n].element);return t},e.prototype.layout=function(){this._resetLayout();this._manageStamps();var n=this.options.isLayoutInstant!==undefined?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,n);this._isLayoutInited=!0},e.prototype._init=e.prototype.layout,e.prototype._resetLayout=function(){this.getSize()},e.prototype.getSize=function(){this.size=r(this.element)},e.prototype._getMeasurement=function(n,t){var i=this.options[n],f;i?(typeof i=="string"?f=this.element.querySelector(i):u.isElement(i)&&(f=i),this[n]=f?r(f)[t]:i):this[n]=0},e.prototype.layoutItems=function(n,t){n=this._getItemsForLayout(n);this._layoutItems(n,t);this._postLayout()},e.prototype._getItemsForLayout=function(n){for(var i,r=[],t=0,u=n.length;t<u;t++)i=n[t],i.isIgnored||r.push(i);return r},e.prototype._layoutItems=function(n,t){var f,i,e,r,u;if(this._emitCompleteOnItems("layout",n),n&&n.length){for(f=[],i=0,e=n.length;i<e;i++)r=n[i],u=this._getItemLayoutPosition(r),u.item=r,u.isInstant=t||r.isLayoutInstant,f.push(u);this._processLayoutQueue(f)}},e.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},e.prototype._processLayoutQueue=function(n){for(var t,i=0,r=n.length;i<r;i++)t=n[i],this._positionItem(t.item,t.x,t.y,t.isInstant)},e.prototype._positionItem=function(n,t,i,r){r?n.goTo(t,i):n.moveTo(t,i)},e.prototype._postLayout=function(){this.resizeContainer()},e.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var n=this._getContainerSize();n&&(this._setContainerMeasure(n.width,!0),this._setContainerMeasure(n.height,!1))}},e.prototype._getContainerSize=c,e.prototype._setContainerMeasure=function(n,t){if(n!==undefined){var i=this.size;i.isBorderBox&&(n+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth);n=Math.max(n,0);this.element.style[t?"width":"height"]=n+"px"}},e.prototype._emitCompleteOnItems=function(n,t){function u(){s.dispatchEvent(n+"Complete",null,[t])}function h(){r++;r===f&&u()}var s=this,f=t.length,r,i,e,o;if(!t||!f){u();return}for(r=0,i=0,e=t.length;i<e;i++){o=t[i];o.once(n,h)}},e.prototype.dispatchEvent=function(n,t,i){var u=t?[t].concat(i):i,r;this.emitEvent(n,u);o&&(this.$element=this.$element||o(this.element),t?(r=o.Event(t),r.type=n,this.$element.trigger(r,i)):this.$element.trigger(n,i))},e.prototype.ignore=function(n){var t=this.getItem(n);t&&(t.isIgnored=!0)},e.prototype.unignore=function(n){var t=this.getItem(n);t&&delete t.isIgnored},e.prototype.stamp=function(n){var t,i,r;if(n=this._find(n),n)for(this.stamps=this.stamps.concat(n),t=0,i=n.length;t<i;t++)r=n[t],this.ignore(r)},e.prototype.unstamp=function(n){var t,r,i;if(n=this._find(n),n)for(t=0,r=n.length;t<r;t++)i=n[t],u.removeFrom(this.stamps,i),this.unignore(i)},e.prototype._find=function(n){if(n)return typeof n=="string"&&(n=this.element.querySelectorAll(n)),u.makeArray(n)},e.prototype._manageStamps=function(){var n,t,i;if(this.stamps&&this.stamps.length)for(this._getBoundingRect(),n=0,t=this.stamps.length;n<t;n++)i=this.stamps[n],this._manageStamp(i)},e.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),n=this.size;this._boundingRect={left:t.left+n.paddingLeft+n.borderLeftWidth,top:t.top+n.paddingTop+n.borderTopWidth,right:t.right-(n.paddingRight+n.borderRightWidth),bottom:t.bottom-(n.paddingBottom+n.borderBottomWidth)}},e.prototype._manageStamp=c,e.prototype._getElementOffset=function(n){var t=n.getBoundingClientRect(),i=this._boundingRect,u=r(n);return{left:t.left-i.left-u.marginLeft,top:t.top-i.top-u.marginTop,right:i.right-t.right-u.marginRight,bottom:i.bottom-t.bottom-u.marginBottom}},e.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},e.prototype.bindResize=function(){this.isResizeBound||(t.bind(n,"resize",this),this.isResizeBound=!0)},e.prototype.unbindResize=function(){this.isResizeBound&&t.unbind(n,"resize",this);this.isResizeBound=!1},e.prototype.onresize=function(){function t(){n.resize();delete n.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var n=this;this.resizeTimeout=setTimeout(t,100)},e.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},e.prototype.needsResizeLayout=function(){var n=r(this.element),t=this.size&&n;return t&&n.innerWidth!==this.size.innerWidth},e.prototype.addItems=function(n){var t=this._itemize(n);return t.length&&(this.items=this.items.concat(t)),t},e.prototype.appended=function(n){var t=this.addItems(n);t.length&&(this.layoutItems(t,!0),this.reveal(t))},e.prototype.prepended=function(n){var t=this._itemize(n),i;t.length&&(i=this.items.slice(0),this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i))},e.prototype.reveal=function(n){var i,t,r;for(this._emitCompleteOnItems("reveal",n),i=n&&n.length,t=0;i&&t<i;t++)r=n[t],r.reveal()},e.prototype.hide=function(n){var i,t,r;for(this._emitCompleteOnItems("hide",n),i=n&&n.length,t=0;i&&t<i;t++)r=n[t],r.hide()},e.prototype.revealItemElements=function(n){var t=this.getItems(n);this.reveal(t)},e.prototype.hideItemElements=function(n){var t=this.getItems(n);this.hide(t)},e.prototype.getItem=function(n){for(var i,t=0,r=this.items.length;t<r;t++)if(i=this.items[t],i.element===n)return i},e.prototype.getItems=function(n){var i,t,f,e,r;for(n=u.makeArray(n),i=[],t=0,f=n.length;t<f;t++)e=n[t],r=this.getItem(e),r&&i.push(r);return i},e.prototype.remove=function(n){var t=this.getItems(n),i,f,r;if(this._emitCompleteOnItems("remove",t),t&&t.length)for(i=0,f=t.length;i<f;i++)r=t[i],r.remove(),u.removeFrom(this.items,r)},e.prototype.destroy=function(){var t=this.element.style,n,i,r,u;for(t.height="",t.position="",t.width="",n=0,i=this.items.length;n<i;n++)r=this.items[n],r.destroy();this.unbindResize();u=this.element.outlayerGUID;delete s[u];delete this.element.outlayerGUID;o&&o.removeData(this.element,this.constructor.namespace)},e.data=function(n){n=u.getQueryElement(n);var t=n&&n.outlayerGUID;return t&&s[t]},e.create=function(n,t){function i(){e.apply(this,arguments)}return Object.create?i.prototype=Object.create(e.prototype):u.extend(i.prototype,e.prototype),i.prototype.constructor=i,i.defaults=u.extend({},e.defaults),u.extend(i.defaults,t),i.prototype.settings={},i.namespace=n,i.data=e.data,i.Item=function(){f.apply(this,arguments)},i.Item.prototype=new f,u.htmlInit(i,n),o&&o.bridget&&o.bridget(n,i),i},e.Item=f,e}),function(n,t){"use strict";typeof define=="function"&&define.amd?define("isotope/js/item",["outlayer/outlayer"],t):typeof exports=="object"?module.exports=t(require("outlayer")):(n.Isotope=n.Isotope||{},n.Isotope.Item=t(n.Outlayer))}(window,function(n){"use strict";function t(){n.Item.apply(this,arguments)}t.prototype=new n.Item;t.prototype._create=function(){this.id=this.layout.itemGUID++;n.Item.prototype._create.call(this);this.sortData={}};t.prototype.updateSortData=function(){var t,i,n,r;if(!this.isIgnored){this.sortData.id=this.id;this.sortData["original-order"]=this.id;this.sortData.random=Math.random();t=this.layout.options.getSortData;i=this.layout._sorters;for(n in t)r=i[n],this.sortData[n]=r(this.element,this)}};var i=t.prototype.destroy;return t.prototype.destroy=function(){i.apply(this,arguments);this.css({display:""})},t}),function(n,t){"use strict";typeof define=="function"&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],t):typeof exports=="object"?module.exports=t(require("get-size"),require("outlayer")):(n.Isotope=n.Isotope||{},n.Isotope.LayoutMode=t(n.getSize,n.Outlayer))}(window,function(n,t){"use strict";function i(n){this.isotope=n;n&&(this.options=n.options[this.namespace],this.element=n.element,this.items=n.filteredItems,this.size=n.size)}return function(){function e(n){return function(){return t.prototype[n].apply(this.isotope,arguments)}}for(var r,u=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],n=0,f=u.length;n<f;n++)r=u[n],i.prototype[r]=e(r)}(),i.prototype.needsVerticalResizeLayout=function(){var t=n(this.isotope.element),i=this.isotope.size&&t;return i&&t.innerHeight!=this.isotope.size.innerHeight},i.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},i.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},i.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},i.prototype.getSegmentSize=function(n,t){var i=n+t,u="outer"+t,r;(this._getMeasurement(i,u),this[i])||(r=this.getFirstItemSize(),this[i]=r&&r[u]||this.isotope.size["inner"+t])},i.prototype.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&n(t.element)},i.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},i.prototype.getSize=function(){this.isotope.getSize();this.size=this.isotope.size},i.modes={},i.create=function(n,t){function r(){i.apply(this,arguments)}return r.prototype=new i,t&&(r.options=t),r.prototype.namespace=n,i.modes[n]=r,r},i});
/*!
 * Masonry v3.3.1
 * Cascading grid layout library
 * http://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */
(function(n,t){"use strict";typeof define=="function"&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],t):typeof exports=="object"?module.exports=t(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):n.Masonry=t(n.Outlayer,n.getSize,n.fizzyUIUtils)})(window,function(n,t,i){var r=n.create("masonry");return r.prototype._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();var n=this.cols;for(this.colYs=[];n--;)this.colYs.push(0);this.maxY=0},r.prototype.measureColumns=function(){var n,i;this.getContainerWidth();this.columnWidth||(n=this.items[0],i=n&&n.element,this.columnWidth=i&&t(i).outerWidth||this.containerWidth);var r=this.columnWidth+=this.gutter,f=this.containerWidth+this.gutter,u=f/r,e=r-f%r,o=e&&e<1?"round":"floor";u=Math[o](u);this.cols=Math.max(u,1)},r.prototype.getContainerWidth=function(){var i=this.options.isFitWidth?this.element.parentNode:this.element,n=t(i);this.containerWidth=n&&n.innerWidth},r.prototype._getItemLayoutPosition=function(n){var t;n.getSize();var e=n.size.outerWidth%this.columnWidth,s=e&&e<1?"round":"ceil",r=Math[s](n.size.outerWidth/this.columnWidth);r=Math.min(r,this.cols);var u=this._getColGroup(r),f=Math.min.apply(Math,u),o=i.indexOf(u,f),h={x:this.columnWidth*o,y:f},c=f+n.size.outerHeight,l=this.cols+1-u.length;for(t=0;t<l;t++)this.colYs[o+t]=c;return h},r.prototype._getColGroup=function(n){var i,r,t,u;if(n<2)return this.colYs;for(i=[],r=this.cols+1-n,t=0;t<r;t++)u=this.colYs.slice(t,t+n),i[t]=Math.max.apply(Math,u);return i},r.prototype._manageStamp=function(n){var e=t(n),u=this._getElementOffset(n),o=this.options.isOriginLeft?u.left:u.right,s=o+e.outerWidth,f=Math.floor(o/this.columnWidth),i,h,r;for(f=Math.max(0,f),i=Math.floor(s/this.columnWidth),i-=s%this.columnWidth?0:1,i=Math.min(this.cols-1,i),h=(this.options.isOriginTop?u.top:u.bottom)+e.outerHeight,r=f;r<=i;r++)this.colYs[r]=Math.max(h,this.colYs[r])},r.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var n={height:this.maxY};return this.options.isFitWidth&&(n.width=this._getContainerFitWidth()),n},r.prototype._getContainerFitWidth=function(){for(var n=0,t=this.cols;--t;){if(this.colYs[t]!==0)break;n++}return(this.cols-n)*this.columnWidth-this.gutter},r.prototype.needsResizeLayout=function(){var n=this.containerWidth;return this.getContainerWidth(),n!==this.containerWidth},r});
/*!
 * Masonry layout mode
 * sub-classes Masonry
 * http://masonry.desandro.com
 */
(function(n,t){"use strict";typeof define=="function"&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],t):typeof exports=="object"?module.exports=t(require("../layout-mode"),require("masonry-layout")):t(n.Isotope.LayoutMode,n.Masonry)})(window,function(n,t){"use strict";function f(n,t){for(var i in t)n[i]=t[i];return n}var i=n.create("masonry"),e=i.prototype._getElementOffset,o=i.prototype.layout,s=i.prototype._getMeasurement,r,u;return f(i.prototype,t.prototype),i.prototype._getElementOffset=e,i.prototype.layout=o,i.prototype._getMeasurement=s,r=i.prototype.measureColumns,i.prototype.measureColumns=function(){this.items=this.isotope.filteredItems;r.call(this)},u=i.prototype._manageStamp,i.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft;this.options.isOriginTop=this.isotope.options.isOriginTop;u.apply(this,arguments)},i}),function(n,t){"use strict";typeof define=="function"&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],t):typeof exports=="object"?module.exports=t(require("../layout-mode")):t(n.Isotope.LayoutMode)}(window,function(n){"use strict";var t=n.create("fitRows");return t.prototype._resetLayout=function(){this.x=0;this.y=0;this.maxY=0;this._getMeasurement("gutter","outerWidth")},t.prototype._getItemLayoutPosition=function(n){var t,i,r;return n.getSize(),t=n.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter,this.x!==0&&t+this.x>i&&(this.x=0,this.y=this.maxY),r={x:this.x,y:this.y},this.maxY=Math.max(this.maxY,this.y+n.size.outerHeight),this.x+=t,r},t.prototype._getContainerSize=function(){return{height:this.maxY}},t}),function(n,t){"use strict";typeof define=="function"&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],t):typeof exports=="object"?module.exports=t(require("../layout-mode")):t(n.Isotope.LayoutMode)}(window,function(n){"use strict";var t=n.create("vertical",{horizontalAlignment:0});return t.prototype._resetLayout=function(){this.y=0},t.prototype._getItemLayoutPosition=function(n){n.getSize();var t=(this.isotope.size.innerWidth-n.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=n.size.outerHeight,{x:t,y:i}},t.prototype._getContainerSize=function(){return{height:this.y}},t});
/*!
 * Isotope v2.2.2
 *
 * Licensed GPLv3 for open source use
 * or Isotope Commercial License for commercial use
 *
 * http://isotope.metafizzy.co
 * Copyright 2015 Metafizzy
 */
(function(n,t){"use strict";typeof define=="function"&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(i,r,u,f,e,o){return t(n,i,r,u,f,e,o)}):typeof exports=="object"?module.exports=t(n,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):n.Isotope=t(n,n.Outlayer,n.getSize,n.matchesSelector,n.fizzyUIUtils,n.Isotope.Item,n.Isotope.LayoutMode)})(window,function(n,t,i,r,u,f,e){function y(n,t){return function(i,r){for(var h,c,u=0,s=n.length;u<s;u++){var f=n[u],e=i.sortData[f],o=r.sortData[f];if(e>o||e<o)return h=t[f]!==undefined?t[f]:t,c=h?1:-1,(e>o?1:-1)*c}return 0}}var s=n.jQuery,l=String.prototype.trim?function(n){return n.trim()}:function(n){return n.replace(/^\s+|\s+$/g,"")},a=document.documentElement,v=a.textContent?function(n){return n.textContent}:function(n){return n.innerText},o=t.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0}),h,c;return o.Item=f,o.LayoutMode=e,o.prototype._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();t.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=["original-order"];for(var n in e.modes)this._initLayoutMode(n)},o.prototype.reloadItems=function(){this.itemGUID=0;t.prototype.reloadItems.call(this)},o.prototype._itemize=function(){for(var r,n=t.prototype._itemize.apply(this,arguments),i=0,u=n.length;i<u;i++)r=n[i],r.id=this.itemGUID++;return this._updateItemsSortData(n),n},o.prototype._initLayoutMode=function(n){var t=e.modes[n],i=this.options[n]||{};this.options[n]=t.options?u.extend(t.options,i):i;this.modes[n]=new t(this)},o.prototype.layout=function(){if(!this._isLayoutInited&&this.options.isInitLayout){this.arrange();return}this._layout()},o.prototype._layout=function(){var n=this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,n);this._isLayoutInited=!0},o.prototype.arrange=function(n){function r(){i.reveal(t.needReveal);i.hide(t.needHide)}var t,i;this.option(n);this._getIsInstant();t=this._filter(this.items);this.filteredItems=t.matches;i=this;this._bindArrangeComplete();this._isInstant?this._noTransition(r):r();this._sort();this._layout()},o.prototype._init=o.prototype.arrange,o.prototype._getIsInstant=function(){var n=this.options.isLayoutInstant!==undefined?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=n,n},o.prototype._bindArrangeComplete=function(){function n(){t&&i&&r&&u.dispatchEvent("arrangeComplete",null,[u.filteredItems])}var t,i,r,u=this;this.once("layoutComplete",function(){t=!0;n()});this.once("hideComplete",function(){i=!0;n()});this.once("revealComplete",function(){r=!0;n()})},o.prototype._filter=function(n){var u=this.options.filter,i,s,t,r;u=u||"*";var f=[],e=[],o=[],h=this._getFilterTest(u);for(i=0,s=n.length;i<s;i++)(t=n[i],t.isIgnored)||(r=h(t),r&&f.push(t),r&&t.isHidden?e.push(t):r||t.isHidden||o.push(t));return{matches:f,needReveal:e,needHide:o}},o.prototype._getFilterTest=function(n){return s&&this.options.isJQueryFiltering?function(t){return s(t.element).is(n)}:typeof n=="function"?function(t){return n(t.element)}:function(t){return r(t.element,n)}},o.prototype.updateSortData=function(n){var t;n?(n=u.makeArray(n),t=this.getItems(n)):t=this.items;this._getSorters();this._updateItemsSortData(t)},o.prototype._getSorters=function(){var t=this.options.getSortData,n,i;for(n in t)i=t[n],this._sorters[n]=h(i)},o.prototype._updateItemsSortData=function(n){for(var r,i=n&&n.length,t=0;i&&t<i;t++)r=n[t],r.updateSortData()},h=function(){function n(n){if(typeof n!="string")return n;var i=l(n).split(" "),r=i[0],u=r.match(/^\[(.+)\]$/),s=u&&u[1],f=t(s,r),e=o.sortDataParsers[i[1]];return e?function(n){return n&&e(f(n))}:function(n){return n&&f(n)}}function t(n,t){return n?function(t){return t.getAttribute(n)}:function(n){var i=n.querySelector(t);return i&&v(i)}}return n}(),o.sortDataParsers={parseInt:function(n){return parseInt(n,10)},parseFloat:function(n){return parseFloat(n)}},o.prototype._sort=function(){var n=this.options.sortBy,t,i;n&&(t=[].concat.apply(n,this.sortHistory),i=y(t,this.options.sortAscending),this.filteredItems.sort(i),n!=this.sortHistory[0]&&this.sortHistory.unshift(n))},o.prototype._mode=function(){var n=this.options.layoutMode,t=this.modes[n];if(!t)throw new Error("No layout mode: "+n);return t.options=this.options[n],t},o.prototype._resetLayout=function(){t.prototype._resetLayout.call(this);this._mode()._resetLayout()},o.prototype._getItemLayoutPosition=function(n){return this._mode()._getItemLayoutPosition(n)},o.prototype._manageStamp=function(n){this._mode()._manageStamp(n)},o.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},o.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},o.prototype.appended=function(n){var t=this.addItems(n),i;t.length&&(i=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(i))},o.prototype.prepended=function(n){var t=this._itemize(n),i;t.length&&(this._resetLayout(),this._manageStamps(),i=this._filterRevealAdded(t),this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=t.concat(this.items))},o.prototype._filterRevealAdded=function(n){var t=this._filter(n);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},o.prototype.insert=function(n){var i=this.addItems(n),t,u,r,f;if(i.length){for(r=i.length,t=0;t<r;t++)u=i[t],this.element.appendChild(u.element);for(f=this._filter(i).matches,t=0;t<r;t++)i[t].isLayoutInstant=!0;for(this.arrange(),t=0;t<r;t++)delete i[t].isLayoutInstant;this.reveal(f)}},c=o.prototype.remove,o.prototype.remove=function(n){var t,r,i,f;if(n=u.makeArray(n),t=this.getItems(n),c.call(this,n),r=t&&t.length,r)for(i=0;i<r;i++)f=t[i],u.removeFrom(this.filteredItems,f)},o.prototype.shuffle=function(){for(var i,n=0,t=this.items.length;n<t;n++)i=this.items[n],i.sortData.random=Math.random();this.options.sortBy="random";this._sort();this._layout()},o.prototype._noTransition=function(n){var i=this.options.transitionDuration,t;return this.options.transitionDuration=0,t=n.call(this),this.options.transitionDuration=i,t},o.prototype.getFilteredItemElements=function(){for(var t=[],n=0,i=this.filteredItems.length;n<i;n++)t.push(this.filteredItems[n].element);return t},o});
/*!
 * Packery layout mode PACKAGED v1.1.3
 * sub-classes Packery
 * http://packery.metafizzy.co
 */
/*!
 * classie v1.0.1
 * class helper functions
 * from bonzo https://github.com/ded/bonzo
 * MIT license
 * 
 * classie.has( elem, 'my-class' ) -> true/false
 * classie.add( elem, 'my-new-class' )
 * classie.remove( elem, 'my-unwanted-class' )
 * classie.toggle( elem, 'my-class' )
 */
(function(n){function f(n){return new RegExp("(^|\\s+)"+n+"(\\s+|$)")}function e(n,u){var f=t(n,u)?r:i;f(n,u)}var t,i,r,u;"classList"in document.documentElement?(t=function(n,t){return n.classList.contains(t)},i=function(n,t){n.classList.add(t)},r=function(n,t){n.classList.remove(t)}):(t=function(n,t){return f(t).test(n.className)},i=function(n,i){t(n,i)||(n.className=n.className+" "+i)},r=function(n,t){n.className=n.className.replace(f(t)," ")});u={hasClass:t,addClass:i,removeClass:r,toggleClass:e,has:t,add:i,remove:r,toggle:e};typeof define=="function"&&define.amd?define("classie/classie",u):typeof exports=="object"?module.exports=u:n.classie=u})(window),function(n,t){typeof define=="function"&&define.amd?define("packery/js/rect",t):typeof exports=="object"?module.exports=t():(n.Packery=n.Packery||{},n.Packery.Rect=t())}(window,function(){function n(t){for(var i in n.defaults)this[i]=n.defaults[i];for(i in t)this[i]=t[i]}var t=window.Packery=function(){};return t.Rect=n,n.defaults={x:0,y:0,width:0,height:0},n.prototype.contains=function(n){var t=n.width||0,i=n.height||0;return this.x<=n.x&&this.y<=n.y&&this.x+this.width>=n.x+t&&this.y+this.height>=n.y+i},n.prototype.overlaps=function(n){var t=this.x+this.width,i=this.y+this.height,r=n.x+n.width,u=n.y+n.height;return this.x<r&&t>n.x&&this.y<u&&i>n.y},n.prototype.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var r=[],i,e=this.x+this.width,o=this.y+this.height,u=t.x+t.width,f=t.y+t.height;return this.y<t.y&&(i=new n({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),r.push(i)),e>u&&(i=new n({x:u,y:this.y,width:e-u,height:this.height}),r.push(i)),o>f&&(i=new n({x:this.x,y:f,width:this.width,height:o-f}),r.push(i)),this.x<t.x&&(i=new n({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),r.push(i)),r},n.prototype.canFit=function(n){return this.width>=n.width&&this.height>=n.height},n}),function(n,t){if(typeof define=="function"&&define.amd)define("packery/js/packer",["./rect"],t);else if(typeof exports=="object")module.exports=t(require("./rect"));else{var i=n.Packery=n.Packery||{};i.Packer=t(i.Rect)}}(window,function(n){function t(n,t,i){this.width=n||0;this.height=t||0;this.sortDirection=i||"downwardLeftToRight";this.reset()}t.prototype.reset=function(){this.spaces=[];this.newSpaces=[];var t=new n({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t);this.sorter=i[this.sortDirection]||i.downwardLeftToRight};t.prototype.pack=function(n){for(var i,t=0,r=this.spaces.length;t<r;t++)if(i=this.spaces[t],i.canFit(n)){this.placeInSpace(n,i);break}};t.prototype.placeInSpace=function(n,t){n.x=t.x;n.y=t.y;this.placed(n)};t.prototype.placed=function(n){for(var r,u,t=[],i=0,f=this.spaces.length;i<f;i++)r=this.spaces[i],u=r.getMaximalFreeRects(n),u?t.push.apply(t,u):t.push(r);this.spaces=t;this.mergeSortSpaces()};t.prototype.mergeSortSpaces=function(){t.mergeRects(this.spaces);this.spaces.sort(this.sorter)};t.prototype.addSpace=function(n){this.spaces.push(n);this.mergeSortSpaces()};t.mergeRects=function(n){for(var u,r,f,i,o,s,h,t=0,e=n.length;t<e;t++)if(u=n[t],u)for(r=n.slice(0),r.splice(t,1),f=0,i=0,o=r.length;i<o;i++)s=r[i],h=t>i?0:1,u.contains(s)&&(n.splice(i+h-f,1),f++);return n};var i={downwardLeftToRight:function(n,t){return n.y-t.y||n.x-t.x},rightwardTopToBottom:function(n,t){return n.x-t.x||n.y-t.y}};return t}),function(n,t){typeof define=="function"&&define.amd?define("packery/js/item",["get-style-property/get-style-property","outlayer/outlayer","./rect"],t):typeof exports=="object"?module.exports=t(require("desandro-get-style-property"),require("outlayer"),require("./rect")):n.Packery.Item=t(n.getStyleProperty,n.Outlayer,n.Packery.Rect)}(window,function(n,t,i){var u=n("transform"),r=function(){t.Item.apply(this,arguments)},f;return r.prototype=new t.Item,f=r.prototype._create,r.prototype._create=function(){f.call(this);this.rect=new i;this.placeRect=new i},r.prototype.dragStart=function(){this.getPosition();this.removeTransitionStyles();this.isTransitioning&&u&&(this.element.style[u]="none");this.getSize();this.isPlacing=!0;this.needsPositioning=!1;this.positionPlaceRect(this.position.x,this.position.y);this.isTransitioning=!1;this.didDrag=!1},r.prototype.dragMove=function(n,t){this.didDrag=!0;var i=this.layout.size;n-=i.paddingLeft;t-=i.paddingTop;this.positionPlaceRect(n,t)},r.prototype.dragStop=function(){this.getPosition();var n=this.position.x!=this.placeRect.x,t=this.position.y!=this.placeRect.y;this.needsPositioning=n||t;this.didDrag=!1},r.prototype.positionPlaceRect=function(n,t,i){this.placeRect.x=this.getPlaceRectCoord(n,!0);this.placeRect.y=this.getPlaceRectCoord(t,!1,i)},r.prototype.getPlaceRectCoord=function(n,t,i){var o=t?"Width":"Height",s=this.size["outer"+o],r=this.layout[t?"columnWidth":"rowHeight"],u=this.layout.size["inner"+o],f,h,e;return t||(u=Math.max(u,this.layout.maxY),this.layout.rowHeight||(u-=this.layout.gutter)),r?(r+=this.layout.gutter,u+=t?this.layout.gutter:0,n=Math.round(n/r),h=this.layout.options.isHorizontal?t?"ceil":"floor":t?"floor":"ceil",e=Math[h](u/r),e-=Math.ceil(s/r),f=e):f=u-s,n=i?n:Math.min(n,f),n*=r||1,Math.max(0,n)},r.prototype.copyPlaceRectPosition=function(){this.rect.x=this.placeRect.x;this.rect.y=this.placeRect.y},r.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element);this.layout.packer.addSpace(this.rect);this.emitEvent("remove",[this])},r});
/*!
 * Packery v1.4.1
 * bin-packing layout library
 *
 * Licensed GPLv3 for open source use
 * or Flickity Commercial License for commercial use
 *
 * http://packery.metafizzy.co
 * Copyright 2015 Metafizzy
 */
(function(n,t){typeof define=="function"&&define.amd?define("packery/js/packery",["classie/classie","get-size/get-size","outlayer/outlayer","./rect","./packer","./item"],t):typeof exports=="object"?module.exports=t(require("desandro-classie"),require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):n.Packery=t(n.classie,n.getSize,n.Outlayer,n.Packery.Rect,n.Packery.Packer,n.Packery.Item)})(window,function(n,t,i,r,u,f){function o(n,t){return n.position.y-t.position.y||n.position.x-t.position.x}function s(n,t){return n.position.x-t.position.x||n.position.y-t.position.y}r.prototype.canFit=function(n){return this.width>=n.width-1&&this.height>=n.height-1};var e=i.create("packery");return e.Item=f,e.prototype._create=function(){i.prototype._create.call(this);this.packer=new u;this.stamp(this.options.stamped);var n=this;this.handleDraggabilly={dragStart:function(){n.itemDragStart(this.element)},dragMove:function(){n.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){n.itemDragEnd(this.element)}};this.handleUIDraggable={start:function(t){n.itemDragStart(t.currentTarget)},drag:function(t,i){n.itemDragMove(t.currentTarget,i.position.left,i.position.top)},stop:function(t){n.itemDragEnd(t.currentTarget)}}},e.prototype._resetLayout=function(){this.getSize();this._getMeasurements();var n=this.packer;this.options.isHorizontal?(n.width=Number.POSITIVE_INFINITY,n.height=this.size.innerHeight+this.gutter,n.sortDirection="rightwardTopToBottom"):(n.width=this.size.innerWidth+this.gutter,n.height=Number.POSITIVE_INFINITY,n.sortDirection="downwardLeftToRight");n.reset();this.maxY=0;this.maxX=0},e.prototype._getMeasurements=function(){this._getMeasurement("columnWidth","width");this._getMeasurement("rowHeight","height");this._getMeasurement("gutter","width")},e.prototype._getItemLayoutPosition=function(n){return this._packItem(n),n.rect},e.prototype._packItem=function(n){this._setRectSize(n.element,n.rect);this.packer.pack(n.rect);this._setMaxXY(n.rect)},e.prototype._setMaxXY=function(n){this.maxX=Math.max(n.x+n.width,this.maxX);this.maxY=Math.max(n.y+n.height,this.maxY)},e.prototype._setRectSize=function(n,i){var f=t(n),r=f.outerWidth,u=f.outerHeight;(r||u)&&(r=this._applyGridGutter(r,this.columnWidth),u=this._applyGridGutter(u,this.rowHeight));i.width=Math.min(r,this.packer.width);i.height=Math.min(u,this.packer.height)},e.prototype._applyGridGutter=function(n,t){if(!t)return n+this.gutter;t+=this.gutter;var i=n%t,r=i&&i<1?"round":"ceil";return Math[r](n/t)*t},e.prototype._getContainerSize=function(){return this.options.isHorizontal?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},e.prototype._manageStamp=function(n){var u=this.getItem(n),t,i;u&&u.isPlacing?t=u.placeRect:(i=this._getElementOffset(n),t=new r({x:this.options.isOriginLeft?i.left:i.right,y:this.options.isOriginTop?i.top:i.bottom}));this._setRectSize(n,t);this.packer.placed(t);this._setMaxXY(t)},e.prototype.sortItemsByPosition=function(){var n=this.options.isHorizontal?s:o;this.items.sort(n)},e.prototype.fit=function(n,t,i){var r=this.getItem(n);r&&(this._getMeasurements(),this.stamp(r.element),r.getSize(),r.isPlacing=!0,t=t===undefined?r.rect.x:t,i=i===undefined?r.rect.y:i,r.positionPlaceRect(t,i,!0),this._bindFitEvents(r),r.moveTo(r.placeRect.x,r.placeRect.y),this.layout(),this.unstamp(r.element),this.sortItemsByPosition(),r.isPlacing=!1,r.copyPlaceRectPosition())},e.prototype._bindFitEvents=function(n){function i(){(t++,t==2)&&r.emitEvent("fitComplete",[n])}var r=this,t=0;n.on("layout",function(){return i(),!0});this.on("layoutComplete",function(){return i(),!0})},e.prototype.resize=function(){var n=t(this.element),r=this.size&&n,i=this.options.isHorizontal?"innerHeight":"innerWidth";r&&n[i]==this.size[i]||this.layout()},e.prototype.itemDragStart=function(n){this.stamp(n);var t=this.getItem(n);t&&t.dragStart()},e.prototype.itemDragMove=function(n,t,i){function f(){r.layout();delete r.dragTimeout}var u=this.getItem(n),r;u&&u.dragMove(t,i);r=this;this.clearDragTimeout();this.dragTimeout=setTimeout(f,40)},e.prototype.clearDragTimeout=function(){this.dragTimeout&&clearTimeout(this.dragTimeout)},e.prototype.itemDragEnd=function(t){var i=this.getItem(t),u,r;if(i&&(u=i.didDrag,i.dragStop()),!i||!u&&!i.needsPositioning){this.unstamp(t);return}if(n.add(i.element,"is-positioning-post-drag"),r=this._getDragEndLayoutComplete(t,i),i.needsPositioning){i.on("layout",r);i.moveTo(i.placeRect.x,i.placeRect.y)}else i&&i.copyPlaceRectPosition();this.clearDragTimeout();this.on("layoutComplete",r);this.layout()},e.prototype._getDragEndLayoutComplete=function(t,i){var u=i&&i.needsPositioning,f=0,e=u?2:1,r=this;return function(){return(f++,f!=e)?!0:(i&&(n.remove(i.element,"is-positioning-post-drag"),i.isPlacing=!1,i.copyPlaceRectPosition()),r.unstamp(t),r.sortItemsByPosition(),u&&r.emitEvent("dragItemPositioned",[i]),!0)}},e.prototype.bindDraggabillyEvents=function(n){n.on("dragStart",this.handleDraggabilly.dragStart);n.on("dragMove",this.handleDraggabilly.dragMove);n.on("dragEnd",this.handleDraggabilly.dragEnd)},e.prototype.bindUIDraggableEvents=function(n){n.on("dragstart",this.handleUIDraggable.start).on("drag",this.handleUIDraggable.drag).on("dragstop",this.handleUIDraggable.stop)},e.Rect=r,e.Packer=u,e});
/*!
 * Packery layout mode v1.1.3
 * sub-classes Packery
 * http://packery.metafizzy.co
 */
(function(n,t){typeof define=="function"&&define.amd?define(["isotope/js/layout-mode","packery/js/packery","get-size/get-size"],t):typeof exports=="object"?module.exports=t(require("isotope-layout/js/layout-mode"),require("packery"),require("get-size")):t(n.Isotope.LayoutMode,n.Packery,n.getSize)})(window,function(n,t,i){function o(n,t){for(var i in t)n[i]=t[i];return n}var r=n.create("packery"),s=r.prototype._getElementOffset,h=r.prototype._getMeasurement,u,f,e;return o(r.prototype,t.prototype),r.prototype._getElementOffset=s,r.prototype._getMeasurement=h,u=r.prototype._resetLayout,r.prototype._resetLayout=function(){this.packer=this.packer||new t.Packer;u.apply(this,arguments)},f=r.prototype._getItemLayoutPosition,r.prototype._getItemLayoutPosition=function(n){return n.rect=n.rect||new t.Rect,f.call(this,n)},e=r.prototype._manageStamp,r.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft;this.options.isOriginTop=this.isotope.options.isOriginTop;e.apply(this,arguments)},r.prototype.needsResizeLayout=function(){var n=i(this.element),r=this.size&&n,t=this.options.isHorizontal?"innerHeight":"innerWidth";return r&&n[t]!=this.size[t]},r});window.DD=window.DD||{};DD.d100=DD.d100||{};DD.d100.localVariables=DD.d100.localVariables||[];DD.d100.sizeDependantVariables=DD.d100.sizeDependantVariables||[];DD.d100.getDazed100Grid=function(){return DD.d100.localVariables.getDazed100Grid!=null?DD.d100.localVariables.getDazed100Grid:DD.d100.localVariables.getDazed100Grid=$("#dazed100grid")};DD.d100.getDazed100GridContainer=function(){return DD.d100.localVariables.getDazed100GridContainer!=null?DD.d100.localVariables.getDazed100GridContainer:DD.d100.localVariables.getDazed100GridContainer=$("#content .dazed100-grid-container")};DD.d100.getDazed100GridAds=function(){return DD.d100.localVariables.getDazed100GridAds!=null?DD.d100.localVariables.getDazed100GridAds:DD.d100.localVariables.getDazed100GridAds=DD.d100.getDazed100Grid().find(".advert-outer")};DD.d100.getFixedHeaderHeight=function(){return DD.d100.sizeDependantVariables.getFixedHeaderHeight!=null?DD.d100.sizeDependantVariables.getFixedHeaderHeight:DD.d100.sizeDependantVariables.getFixedHeaderHeight=$("#header").outerHeight(!0)};DD.d100.getFilterFixAtTop=function(){return DD.d100.sizeDependantVariables.getFilterFixAtTop!=null?DD.d100.sizeDependantVariables.getFilterFixAtTop:DD.d100.sizeDependantVariables.getFilterFixAtTop=$("#dazed100-filters-container").offset().top-DD.d100.getFixedHeaderHeight()};DD.d100.indexInit=function(){DD.d100.gridInit();DD.d100.hideAdsNotInList();DD.d100.getDazed100Grid().on("arrangeComplete",DD.d100.hideAdsNotInList);DD.d100.buttonsInit();DD.d100.getDazed100Grid().find(".popup-link [data-social-share-source]").on("click",DL.popupClick);DD.d100.voting&&DL.Utilities.executeIfFunction(DD.d100.voting.getOrAddUserIdentifier);DD.d100.getDazed100Grid().find(".dazed100-grid-item").each(function(){var n=$(this),t=n.find("a.grid-item-link").attr("href"),i=n.find("span.title").text(),r=n.find(".dazed100-ranking-info"),u=r.find(".vote-action").attr("data-state");r.click(function(){u!="voted"&&(u="voted",$(".voting-overlay span.share-title").empty().append(i),$(".voting-overlay .voting-overlay-share .facebook-button-container a").attr("href","http://www.facebook.com/sharer.php?u=http://www.dazeddigital.com"+t+""),$(".voting-overlay .voting-overlay-share .twitter-button-container a").attr("href","http://twitter.com/intent/tweet?status=I+just+voted+for+"+i+"+to+top+the+%23Dazed100.+Cast+your+vote+now+http://www.dazeddigital.com/dazed100+via+%40Dazed"),DL.analytics.trackEvent("Dazed100: Vote from current position",n.attr("data-vote-order"),t),DL.analytics.trackEvent("Dazed100: Vote from grid position",n.attr("data-current-position"),t))})})};DD.d100.viewbymenutriggerDesktop=function(){DL.Utilities.getDocumentElement().on("click",function(n){var t=n.target!=null&&$(n.target).hasClass("dropdown-activation-link");t?($("li.dropdown-parent ul").toggleClass("menu-open"),$("body, .dazed100-dropdown").toggleClass("dropdown-open")):($("li.dropdown-parent ul").removeClass("menu-open"),$("body, .dazed100-dropdown").removeClass("dropdown-open"))})};DD.d100.filterName=function(){DD.d100.filterscontainer=$("#dazed100-filters-container");$defaultText=$(".dropdown-parent:after").text();DD.d100.filterscontainer.find("button").click(function(){$this=$(this);$filter=$this.find(".viewby-name").text();$filter=="All"||$filter.length==0?($(".dropdown-header span.parent-name").text("View By"),$(".dropdown-parent").removeClass("filtered")):($(".dropdown-parent").addClass("filtered"),$(".dropdown-header span.parent-name").text($filter))})};DD.d100.viewbymenutriggerMobile=function(){$(".dropdown-activation-link").click(function(){$("li.dropdown-parent ul").addClass("menu-open");$("body, .dazed100-dropdown").addClass("dropdown-open");$(".navbar-secondary-show-hide").toggleClass("hidden");DL.Utilities.NoScrollToggle()});$("li.dropdown-parent ul").click(function(){$("li.dropdown-parent ul").removeClass("menu-open");$("body, .dazed100-dropdown").removeClass("dropdown-open");$(".navbar-secondary-show-hide").removeClass("hidden");DL.Utilities.NoScrollToggle()})};DD.d100.viewbymenu=function(){DL.Utilities.isMobile()?DD.d100.viewbymenutriggerMobile():DD.d100.viewbymenutriggerDesktop()};DD.d100.isFilterFixed=!1;DD.d100.fixedfilter=function(){var i=window.pageYOffset,n=window.pageYOffset>DD.d100.getFilterFixAtTop(),t;n!=DD.d100.isFilterFixed&&(t=n?"addClass":"removeClass",DD.d100.getDazed100GridContainer()[t]("fixed-filter"),DD.d100.isFilterFixed=n);return};DD.d100.gridInit=function(){DD.d100.getDazed100Grid().isotope({layoutMode:"packery",itemSelector:"article.dazed100-grid-item",isResizeBound:!0,stamp:".advert-outer",gutterSize:0,transitionDuration:"0.2s",percentPosition:!0});DD.d100.getDazed100Grid().imagesLoaded().done(function(){console.log("DONE  - all images have been successfully loaded");DD.d100.getDazed100Grid().isotope("layout")})};DD.d100.gridUpdateSortData=function(){DD.d100.getDazed100Grid().data("isotope")!=null&&DD.d100.getDazed100Grid().isotope("updateSortData")};DD.d100.loadBestImageSizes=function(){DL.deviceLoadOptimisation.loadBestImageSizes(DD.d100.getDazed100Grid())};DD.d100.setCurrentOrder=function(){DD.d100.getDazed100Grid().data("isotope").filteredItems.forEach(function(n,t){var i=$(n.element);i.attr("data-current-position",t+1)});DD.d100.getDazed100Grid().isotope("layout");DD.d100.loadBestImageSizes()};DD.d100.hideAdsNotInList=function(){var n=DD.d100.getDazed100Grid().data("isotope").filteredItems,r=0,t,i;n!=null&&n.length>0&&(t=n[n.length-1].element,i=$(t).position().top,r=i+$(t).outerHeight(!0));DD.d100.getDazed100GridAds().each(function(){var n=$(this);n.position().top>i?n.css({"z-index":-1,top:-1*n.outerHeight(!0),visibility:"hidden",opacity:"0"}):n.css({"z-index":"",visibility:"",opacity:""})});DD.d100.getDazed100Grid().isotope("layout",{masonry:{transitionDuration:0}})};DD.d100.indexcarousel=function(){var t=$("#dazed100-cycle"),n;t.cycle({random:!1,speed:1200,timeout:4e3,autoHeight:null,slides:".dazed100-header-image-container",fx:"scrollHorz"});n=1;t.find("[data-bg-imgsrc]").each(function(){var t=$(this);setTimeout(function(){t.css("background-image",t.attr("data-bg-imgsrc")).removeAttr("data-bg-imgsrc")},350*n);n++})};DD.d100.buttonsInit=function(){$buttonContainer=$(".dazed100-filters-container");$buttonContainer.find(".dazed100-filter").off("click.dazed100Filter").on("click.dazed100Filter",function(){var t;DD.d100.getDazed100GridAds().css({top:""});var i=$(this).attr("data-sort-value"),n=$(this).attr("data-filter-value"),f=$(this).attr("data-value");n==null&&f=="order"&&i=="vote"?DL.analytics.trackEvent("Dazed100: Buttons","Current Position"):n==null?n="*":(DL.analytics.trackEvent("Dazed100: Buttons","Filter",n),t=n.split(","),t.forEach(function(n,i){t[i]="[data-category~="+n+"]"}),n=t.join(","));var e=$(".dazed100-intro-filters").outerHeight(),o=DD.d100.getDazed100GridContainer().offset().top,r=o-e,u=Math.min(500,Math.abs(DL.Utilities.getWindowElement().scrollTop()-r));(DL.Utilities.isMobile()||DL.Utilities.isTablet())&&(u=0);$("html, body").animate({scrollTop:r},u);DD.d100.getDazed100Grid().isotope({sortBy:i,filter:n});i=="shuffle"&&(DD.d100.getDazed100Grid().isotope("shuffle",function(){}),$('[data-sort-value="shuffle"] span.icon').toggleClass("rotate"),DL.analytics.trackEvent("Dazed100: Buttons","Discover"));DD.d100.setCurrentOrder()})};DD.d100.overlayheight=function(){$('[data-state="overlay"]').css({height:window.screen.height})};DD.d100.resize=function(){DD.d100.sizeDependantVariables=[];DD.d100.loadBestImageSizes()};DD.d100.history=DD.d100.history||{};DD.d100.history.pushState=function(n){n=n.replace("http://www.dazeddigital.com","");Modernizr.history&&history.pushState(null,"",n);DL.analytics.trackPageview(n,document.title)};DD.d100.socialButtonsinit=function(){$(".popup-link [data-social-share-source] ").click(function(n){var t=$(this).attr("data-social-share-source"),i,r;t=="Facebook"?(height=601,width=505):t=="Twitter"&&(width=1160,height=625);i=(screen.width-width)/2;r=(screen.height-height)/2;popupWindow=window.open($(this).attr("href"),"","height="+height+",scrollbars=1,width="+width+",left="+i+",top="+r);$(this).parents(".dazed100-header-inner").length==1?DL.analytics.trackEvent("Dazed100: Header ",t):$(this).parents(".voting-overlay").length==1&&DL.analytics.trackEvent("Dazed100: Share vote from index ",t,$(this).attr("href"));n.preventDefault();n.stopPropagation()})};$("html").removeClass("csssticky");$(document).on("scroll",function(){$(window).scrollTop()>1600?($(".dazed100-filters").addClass("scrollmenu"),$(".scroll-div").addClass("scrollmenu")):($(".dazed100-filters").removeClass("scrollmenu"),$(".scroll-div").removeClass("scrollmenu"));DL.Utilities.isMobile()&&($(window).scrollTop()>4e3?$(".dazed100-filters").addClass("scrollmenu"):$(".dazed100-filters").removeClass("scrollmenu"));var n=$(window).scrollTop(),t=$(".dazed100-grid-container").offset().top,i=t-n;i>44&&$("body").removeClass("shuffled")});$(DD.d100.indexInit);$(DD.d100.socialButtonsinit);$(DD.d100.filterName);$(DD.d100.viewbymenu);$(DD.d100.indexcarousel);!Modernizr.csssticky;DL.Utilities.getWindowElement().on("resize.dazed100Index",_.debounce(DD.d100.resize,50));gsap.registerPlugin(ScrollTrigger);timeline=gsap.timeline();timeline.from(".sticker",{autoAlpha:0,stagger:.06,transformOrigin:"50% 50%",scale:.5,ease:"elastic.out(1, 0.4)"});ScrollTrigger.create({trigger:".sticker",animation:timeline,start:"top 90%"})