/*! Modernizr */ ;window.Modernizr=function(a,b,c){function B(a){j.cssText=a}function C(a,b){return B(n.join(a+";")+(b||""))}function D(a,b){return typeof a===b}function E(a,b){return!!~(""+a).indexOf(b)}function F(a,b){for(var d in a){var e=a[d];if(!E(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function G(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:D(f,"function")?f.bind(d||b):f}return!1}function H(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return D(b,"string")||D(b,"undefined")?F(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),G(e,b,c))}function I(){e.input=function(c){for(var d=0,e=c.length;d',a,""].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},y=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=D(e[d],"function"),D(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),z={}.hasOwnProperty,A;!D(z,"undefined")&&!D(z.call,"undefined")?A=function(a,b){return z.call(a,b)}:A=function(a,b){return b in a&&D(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=v.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(v.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(v.call(arguments)))};return e}),r.flexbox=function(){return H("flexWrap")},r.flexboxlegacy=function(){return H("boxDirection")},r.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},r.canvastext=function(){return!!e.canvas&&!!D(b.createElement("canvas").getContext("2d").fillText,"function")},r.postmessage=function(){return!!a.postMessage},r.websqldatabase=function(){return!!a.openDatabase},r.indexedDB=function(){return!!H("indexedDB",a)},r.hashchange=function(){return y("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},r.history=function(){return!!a.history&&!!history.pushState},r.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},r.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},r.rgba=function(){return B("background-color:rgba(150,255,150,.5)"),E(j.backgroundColor,"rgba")},r.hsla=function(){return B("background-color:hsla(120,40%,100%,.5)"),E(j.backgroundColor,"rgba")||E(j.backgroundColor,"hsla")},r.multiplebgs=function(){return B("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},r.backgroundsize=function(){return H("backgroundSize")},r.borderimage=function(){return H("borderImage")},r.borderradius=function(){return H("borderRadius")},r.boxshadow=function(){return H("boxShadow")},r.textshadow=function(){return b.createElement("div").style.textShadow===""},r.opacity=function(){return C("opacity:.55"),/^0.55$/.test(j.opacity)},r.cssanimations=function(){return H("animationName")},r.csscolumns=function(){return H("columnCount")},r.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return B((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),E(j.backgroundImage,"gradient")},r.cssreflections=function(){return H("boxReflect")},r.csstransforms=function(){return!!H("transform")},r.csstransforms3d=function(){var a=!!H("perspective");return a&&"webkitPerspective"in g.style&&x("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},r.csstransitions=function(){return H("transition")},r.fontface=function(){var a;return x('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&g.indexOf(d.split(" ")[0])===0}),a},r.generatedcontent=function(){var a;return x(["#",h,"{font:0/0 a}#",h,':after{content:"',l,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},r.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(d){}return c},r.audio=function(){var a=b.createElement("audio"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(d){}return c},r.localstorage=function(){try{return localStorage.setItem(h,h),localStorage.removeItem(h),!0}catch(a){return!1}},r.sessionstorage=function(){try{return sessionStorage.setItem(h,h),sessionStorage.removeItem(h),!0}catch(a){return!1}},r.webworkers=function(){return!!a.Worker},r.applicationcache=function(){return!!a.applicationCache};for(var J in r)A(r,J)&&(w=J.toLowerCase(),e[w]=r[J](),u.push((e[w]?"":"no-")+w));return e.input||I(),e.addTest=function(a,b){if(typeof a=="object")for(var d in a)A(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},B(""),i=k=null,function(a,b){function l(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function m(){var a=s.elements;return typeof a=="string"?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){c||(c=b);if(k)return c.createElement(a);d||(d=n(c));var g;return d.cache[a]?g=d.cache[a].cloneNode():f.test(a)?g=(d.cache[a]=d.createElem(a)).cloneNode():g=d.createElem(a),g.canHaveChildren&&!e.test(a)&&!g.tagUrn?d.frag.appendChild(g):g}function p(a,c){a||(a=b);if(k)return a.createDocumentFragment();c=c||n(a);var d=c.frag.cloneNode(),e=0,f=m(),g=f.length;for(;e",g="hidden"in a,k=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){g=!0,k=!0}})();var s={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivCSS:d.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p};a.html5=s,r(b)}(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.hasEvent=y,e.testProp=function(a){return F([a])},e.testAllProps=H,e.testStyles=x,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+u.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f(t/=r/2)?o/2*t*t+n:-o/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,o,r){return o*(t/=r)*t*t+n},easeOutCubic:function(e,t,n,o,r){return o*((t=t/r-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,o,r){return 1>(t/=r/2)?o/2*t*t*t+n:o/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,o,r){return o*(t/=r)*t*t*t+n},easeOutQuart:function(e,t,n,o,r){return-o*((t=t/r-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,o,r){return 1>(t/=r/2)?o/2*t*t*t*t+n:-o/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,o,r){return o*(t/=r)*t*t*t*t+n},easeOutQuint:function(e,t,n,o,r){return o*((t=t/r-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,o,r){return 1>(t/=r/2)?o/2*t*t*t*t*t+n:o/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,o,r){return-o*Math.cos(t/r*(Math.PI/2))+o+n},easeOutSine:function(e,t,n,o,r){return o*Math.sin(t/r*(Math.PI/2))+n},easeInOutSine:function(e,t,n,o,r){return-o/2*(Math.cos(Math.PI*t/r)-1)+n},easeInExpo:function(e,t,n,o,r){return 0==t?n:o*Math.pow(2,10*(t/r-1))+n},easeOutExpo:function(e,t,n,o,r){return t==r?n+o:o*(-Math.pow(2,-10*t/r)+1)+n},easeInOutExpo:function(e,t,n,o,r){return 0==t?n:t==r?n+o:1>(t/=r/2)?o/2*Math.pow(2,10*(t-1))+n:o/2*(-Math.pow(2,-10*--t)+2)+n},easeInCirc:function(e,t,n,o,r){return-o*(Math.sqrt(1-(t/=r)*t)-1)+n},easeOutCirc:function(e,t,n,o,r){return o*Math.sqrt(1-(t=t/r-1)*t)+n},easeInOutCirc:function(e,t,n,o,r){return 1>(t/=r/2)?-o/2*(Math.sqrt(1-t*t)-1)+n:o/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,o,r){var i=1.70158,s=0,a=o;if(0==t)return n;if(1==(t/=r))return n+o;if(s||(s=.3*r),Math.abs(o)>a){a=o;var i=s/4}else var i=s/(2*Math.PI)*Math.asin(o/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*r-i)*2*Math.PI/s))+n},easeOutElastic:function(e,t,n,o,r){var i=1.70158,s=0,a=o;if(0==t)return n;if(1==(t/=r))return n+o;if(s||(s=.3*r),Math.abs(o)>a){a=o;var i=s/4}else var i=s/(2*Math.PI)*Math.asin(o/a);return a*Math.pow(2,-10*t)*Math.sin((t*r-i)*2*Math.PI/s)+o+n},easeInOutElastic:function(e,t,n,o,r){var i=1.70158,s=0,a=o;if(0==t)return n;if(2==(t/=r/2))return n+o;if(s||(s=r*.3*1.5),Math.abs(o)>a){a=o;var i=s/4}else var i=s/(2*Math.PI)*Math.asin(o/a);return 1>t?-.5*a*Math.pow(2,10*(t-=1))*Math.sin((t*r-i)*2*Math.PI/s)+n:.5*a*Math.pow(2,-10*(t-=1))*Math.sin((t*r-i)*2*Math.PI/s)+o+n},easeInBack:function(e,t,n,o,r,i){return void 0==i&&(i=1.70158),o*(t/=r)*t*((i+1)*t-i)+n},easeOutBack:function(e,t,n,o,r,i){return void 0==i&&(i=1.70158),o*((t=t/r-1)*t*((i+1)*t+i)+1)+n},easeInOutBack:function(e,t,n,o,r,i){return void 0==i&&(i=1.70158),1>(t/=r/2)?o/2*t*t*(((i*=1.525)+1)*t-i)+n:o/2*((t-=2)*t*(((i*=1.525)+1)*t+i)+2)+n},easeInBounce:function(e,t,n,o,r){return o-jQuery.easing.easeOutBounce(e,r-t,0,o,r)+n},easeOutBounce:function(e,t,n,o,r){return 1/2.75>(t/=r)?o*7.5625*t*t+n:2/2.75>t?o*(7.5625*(t-=1.5/2.75)*t+.75)+n:2.5/2.75>t?o*(7.5625*(t-=2.25/2.75)*t+.9375)+n:o*(7.5625*(t-=2.625/2.75)*t+.984375)+n},easeInOutBounce:function(e,t,n,o,r){return r/2>t?.5*jQuery.easing.easeInBounce(e,2*t,0,o,r)+n:.5*jQuery.easing.easeOutBounce(e,2*t-r,0,o,r)+.5*o+n}}),function(e,t,n,o){function r(t,n){this.element=t,this.options=e.extend({},f,n),this._defaults=f,this._name=h,this.init()}function i(){var e,r=n.createElement("p"),i={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};n.body.insertBefore(r,null);for(var s in i)r.style[s]!==o&&(r.style[s]="translate3d(1px,1px,1px)",e=t.getComputedStyle(r).getPropertyValue(i[s]));return n.body.removeChild(r),e!==o&&e.length>0&&"none"!==e}function s(e,t){var n=e.indexOf(t);return-1!==n?!0:!1}function a(e){return e===!0}function l(e){return"number"==typeof e}function c(e){return"function"==typeof e}function u(e){return"object"==typeof e}var h="pofloor",f={pofloorFloorName:!1,childType:"div",windowsOn:0,direction:"y",loop:!1,width:"100%",height:"100%",time:250,easing:"linear",keyNavigation:!0,queued:!1,jump:!1,ready:!1,swipeNavigation:"mobile-only",swipeVelocity:.7};Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=this.length>>>0,n=Number(arguments[1])||0;for(n=0>n?Math.ceil(n):Math.floor(n),0>n&&(n+=t);t>n;n++)if(n in this&&this[n]===e)return n;return-1}),r.prototype={init:function(){return this.AXIS_X=1,this.AXIS_Y=0,this.dataAttributeMap={next:"pofloor-next",prev:"pofloor-prev",down:"pofloor-down",up:"pofloor-up",left:"pofloor-left",right:"pofloor-right"},this.node=e(this.element),this.nodeChildren=this.node.children(this.options.childType),this.floorActive=l(this._getFloorFromHash())?this._getFloorFromHash():this.options.windowsOn,this.NH=this.node.height(),this.NW=this.node.width(),this.directionIsArray=u(this.options.direction),this.supportTransform=i(),u(this.options.pofloorFloorName)&&this.options.pofloorFloorName.lengthr.nodeChildren.length)return;r.scrollToFloor(n)}}),this.node.on("next",function(){var e=r.nodeChildren.eq(r.floorActive).data(r.dataAttributeMap.next);return e?r.scrollToFloor(e):(r.next(),o)}),this.node.on("prev",function(){var e=r.nodeChildren.eq(r.floorActive).data(r.dataAttributeMap.prev);return e?r.scrollToFloor(e):(r.prev(),o)}),this.node.on("refresh",function(){r.refresh()}),this.node.on("remove",function(){r.destroy()}),e(t).on("resize.pofloor",function(){r.scrollToFloor(r.floorActive,!1)}),u(this.options.pofloorFloorName)&&e(t).on("hashchange.pofloor",function(e){r._hashchangeHandler(e)}),t.DeviceOrientationEvent&&e(t).on("orientationchange.pofloor",function(){r.scrollToFloor(r.floorActive)}),this.options.keyNavigation&&e(n).on("keydown.pofloor",function(e){r._keypressHandler(e)}),this.options.swipeNavigation){var i="touchstart.pofloor touchend.pofloor";"mobile-only"!==this.options.swipeNavigation&&(i+=" mousedown.pofloor mouseup.pofloor"),this.node.on(i,function(e){r._handleTouchEvent(e)})}},refresh:function(){this.nodeChildren=this.node.children(this.options.childType),this._positionElement()},destroy:function(){this.node.off("scrollToDirection scrollToStage next prev refresh remove touchstart.pofloor touchend.pofloor mousedown.pofloor mouseup.pofloor"),e(t).off("resize.pofloor hashchange.pofloor orientationchange.pofloor"),e(n).off("keydown.pofloor"),this.node.css({position:"",overflow:"",top:"",left:"",width:"",height:""}),this.nodeChildren.css({position:"",overflow:"",top:"",left:"",width:"",height:"",transform:""}),this.node.removeData()},_handleTouchEvent:function(e){switch(e.type){case"touchstart":case"mousedown":this.touchStartTime=(new Date).getTime(),this.touchStartX="touchstart"==e.type?e.originalEvent.touches[0].pageX:e.pageX,this.touchStartY="touchstart"==e.type?e.originalEvent.touches[0].pageY:e.pageY;break;case"touchend":case"mouseup":this.touchEndTime=(new Date).getTime(),this.touchEndX="touchend"==e.type?e.originalEvent.changedTouches[0].pageX:e.pageX,this.touchEndY="touchend"==e.type?e.originalEvent.changedTouches[0].pageY:e.pageY;var t=this.touchStartX-this.touchEndX,n=this.touchStartY-this.touchEndY,o=this.touchEndTime-this.touchStartTime,r=Math.abs(t)/o,i=Math.abs(n)/o;r>this.options.swipeVelocity&&Math.abs(t)>Math.abs(n)&&0>t&&this.scrollToDirection("left"),r>this.options.swipeVelocity&&Math.abs(t)>Math.abs(n)&&t>0&&this.scrollToDirection("right"),i>this.options.swipeVelocity&&Math.abs(t)n&&this.scrollToDirection("up"),i>this.options.swipeVelocity&&Math.abs(t)0&&this.scrollToDirection("down")}},_positionElement:function(){var t=this;this.directionIsArray&&this._generateFloorMap(),this.node.css({position:"absolute",overflow:"hidden",top:"0",left:"0",width:this.options.width,height:this.options.height}),this.nodeChildren.css({position:"absolute",overflow:"auto",top:"0",left:"0",width:"100%",height:"100%"}),this.nodeChildren.each(function(n){t.supportTransform?e(this).css({transform:function(){return"y"===t.options.direction?"translateY("+100*n+"%)":"x"===t.options.direction?"translateX("+100*n+"%)":t.directionIsArray?"translateY("+100*t.options.direction[n][t.AXIS_Y]+"%) translateX("+100*t.options.direction[n][t.AXIS_X]+"%)":o}}):e(this).css({top:function(){return"y"===t.options.direction?100*n+"%":t.directionIsArray?100*t.options.direction[n][t.AXIS_Y]+"%":o},left:function(){return"x"===t.options.direction?100*n+"%":t.directionIsArray?100*t.options.direction[n][t.AXIS_X]+"%":o}})})},_getFloorFromHash:function(){return this._getHash()&&this.options.pofloorFloorName&&s(this.options.pofloorFloorName,this._getHash())?this.options.pofloorFloorName.indexOf(this._getHash()):!1},_getHash:function(){if(t.location.hash){var e=t.location.hash.split("#").pop();return e}return!1},_hashchangeHandler:function(){l(this._getFloorFromHash())&&this._getFloorFromHash()!==this.floorActive&&!this.node.is(":animated")&&this.scrollToFloor(this._getFloorFromHash())},_updateHash:function(e){u(this.options.pofloorFloorName)&&this._getHash()!==this.options.pofloorFloorName[e]&&t.location.replace((""+t.location).split("#")[0]+"#"+this.options.pofloorFloorName[e])},_emitEvent:function(e,t,n){this.node.trigger(e,floor={from:t,to:n})},_emitConsoleMessage:function(e,t){"error"==e&&console.error("pofloor.js: "+t),"warn"==e&&console.warn("pofloor.js: "+t)},_keypressHandler:function(t){var n=this,o=t.keyCode||t.which;if(!e("input, textarea, button").is(":focus"))switch(o){case 40:case 83:n.scrollToDirection("down");break;case 38:case 87:n.scrollToDirection("up");break;case 37:case 65:n.scrollToDirection("left");break;case 39:case 68:n.scrollToDirection("right")}},scrollToFloor:function(e){var t=this,n=e===this.floorActive?!1:!0;this.NW!==this.node.width()&&(this.NW=this.node.width()),this.NH!==this.node.height()&&(this.NH=this.node.height());var o=this._getAnimationSettings(e);n?(this._emitEvent("scrollStart",t.floorActive,e),this.node.stop().animate(o.property,t.options.time,t.options.easing,o.callback)):this.node.stop().scrollTop(o.defaults.scrollTop).scrollLeft(o.defaults.scrollLeft),this.floorActive=e,this.node.data("current-floor",this.floorActive)},prev:function(){var e=this.floorActive-1;if(0>e){if(!this.options.loop)return;e=this.nodeChildren.length-1}this.scrollToFloor(e)},next:function(){var e=this.floorActive+1;if(e>this.nodeChildren.length-1){if(!this.options.loop)return;e=0}this.scrollToFloor(e)},_getAnimationSettings:function(e){var t=this,n={property:{},callback:function(){t._emitEvent("scrollEnd",t.floorActive,e),t._updateHash(e)},defaults:{}},o={property:{},callback:function(){t._emitEvent("scrollEnd",t.floorActive,e),t._updateHash(e)}};if(n.defaults.scrollTop=e*t.NH,n.defaults.scrollLeft=e*t.NW,"y"===t.options.direction)return n.property.scrollTop=e*t.NH,n;if("x"===t.options.direction)return n.property.scrollLeft=e*t.NW,n;if(t.directionIsArray){var r=t.options.direction[e][t.AXIS_Y]*t.NH,i=t.options.direction[e][t.AXIS_X]*t.NW;if(n.defaults.scrollTop=r,n.defaults.scrollLeft=i,t.options.queued){{var s=this.node.scrollLeft()===i;this.node.scrollTop()===r}return"x"===t.options.queued&&s?(n.property.scrollTop=r,n):(n.property.scrollLeft=i,o.property.scrollTop=r,n.callback=function(){t.node.stop().animate(o.property,t.options.time,t.options.easing,o.callback)},n)}return n.property.scrollTop=r,n.property.scrollLeft=i,n}return n},scrollToDirection:function(e){var t=this,n=this.nodeChildren.eq(this.floorActive).data(this.dataAttributeMap[e]);if(n)return t.scrollToFloor(n);var o="right"==e||"left"==e,r="down"==e||"up"==e;if(!("y"==t.options.direction&&o||"x"==t.options.direction&&r)){if("y"==t.options.direction&&"down"==e||"x"==t.options.direction&&"right"==e)return t.next();if("y"==t.options.direction&&"up"==e||"x"==t.options.direction&&"left"==e)return t.prev();if(t.directionIsArray){var i=t.floorMap[t.floorActive],s=i[e];if(l(s))return t.scrollToFloor(s);var c=i.closest[e];if(a(t.options.jump)&&l(c))return t.scrollToFloor(c);var u=i.furthest[e];if(l(u)&&(a(t.options.loop)||o&&"loop-x"==t.options.loop||r&&"loop-y"==t.options.loop))return t.scrollToFloor(u);var h=i.increment[e];if(l(h)&&("increment"==t.options.loop||r&&"increment-y"==t.options.loop||o&&"increment-x"==t.options.loop))return t.scrollToFloor(h);if("increment-x"==t.options.loop&&o||"increment"==t.options.loop){if(t.floorActive==t.floorMap.furthest_x)return t.scrollToFloor(t.floorMap.closest_x);if(t.floorActive==t.floorMap.closest_x)return t.scrollToFloor(t.floorMap.furthest_x)}if("increment-y"==t.options.loop&&r||"increment"==t.options.loop){if(t.floorActive==t.floorMap.furthest_y)return t.scrollToFloor(t.floorMap.closest_y);if(t.floorActive==t.floorMap.closest_y)return t.scrollToFloor(t.floorMap.furthest_y)}}}},_getDirectFloorIndex:function(t,n,r){var i=this,s=[this.options.direction[n][this.AXIS_Y],this.options.direction[n][this.AXIS_X]];"right"==r&&(s[this.AXIS_X]+=1),"left"==r&&(s[this.AXIS_X]-=1),"up"==r&&(s[this.AXIS_Y]-=1),"down"==r&&(s[this.AXIS_Y]+=1);var a=!1;return e.each(t,function(e,t){return t[i.AXIS_Y]==s[i.AXIS_Y]&&t[i.AXIS_X]==s[i.AXIS_X]?(a=e,!1):o}),a},_getAxisFromDirection:function(e){var t,n=this;switch(e){case"up":case"down":t=n.AXIS_Y;break;case"left":case"right":t=n.AXIS_X}return t},_getClosestFloorIndex:function(t,n,o,r){r=r||0;var i=this._getAxisFromDirection(o),s=t[n][i],a=i==this.AXIS_Y?this.AXIS_X:this.AXIS_Y,l=!1,c=!1;return e.each(t,function(e,u){u[a]==t[n][a]+r&&(("right"==o||"down"==o)&&u[i]>s||("left"==o||"up"==o)&&s>u[i])&&(!c||Math.abs(u[i]-s)Math.abs(l[i]-s))&&(l=o,c=e)}),c},_generateFloorMap:function(){function t(e,t){var n=!1;return jQuery.each(e,function(e,o){(n===!1||n[t]o[t])&&(n=o)}),n}function o(e,t){return jQuery.grep(i,function(n){var o=n[t]==e[t];return o})}var r=this;this.floorMap=[];var i=jQuery.grep(r.options.direction,function(e,t){return r.nodeChildren.length>t});e.each(i,function(e){r.floorMap[e]={down:r._getDirectFloorIndex(i,e,"down"),up:r._getDirectFloorIndex(i,e,"up"),right:r._getDirectFloorIndex(i,e,"right"),left:r._getDirectFloorIndex(i,e,"left"),increment:{down:r._getFurthestFloorIndex(i,e,"down",1),up:r._getFurthestFloorIndex(i,e,"up",-1),right:r._getFurthestFloorIndex(i,e,"right",1),left:r._getFurthestFloorIndex(i,e,"left",-1)},closest:{down:r._getClosestFloorIndex(i,e,"down"),up:r._getClosestFloorIndex(i,e,"up"),right:r._getClosestFloorIndex(i,e,"right"),left:r._getClosestFloorIndex(i,e,"left")},furthest:{down:r._getFurthestFloorIndex(i,e,"down"),up:r._getFurthestFloorIndex(i,e,"up"),right:r._getFurthestFloorIndex(i,e,"right"),left:r._getFurthestFloorIndex(i,e,"left")}}});var s=t(i,r.AXIS_X),a=o(s,r.AXIS_X),l=t(a,r.AXIS_Y),c=t(i,r.AXIS_Y),u=o(c,r.AXIS_Y),h=t(u,r.AXIS_X);r.floorMap.furthest_x=i.indexOf(h),r.floorMap.furthest_y=i.indexOf(l);var f=n(i,r.AXIS_X),p=o(f,r.AXIS_X),d=n(p,r.AXIS_Y),g=n(i,r.AXIS_Y),m=o(g,r.AXIS_Y),v=n(m,r.AXIS_X);r.floorMap.closest_x=i.indexOf(v),r.floorMap.closest_y=i.indexOf(d)}},e.fn[h]=function(t){return this.each(function(){e.data(this,h)||e.data(this,h,new r(this,t))}),this}}(jQuery,window,document),window.PR_SHOULD_USE_CONTINUATION=!0,window.PR_TAB_WIDTH=8,window.PR_normalizedHtml=window.PR=window.prettyPrintOne=window.prettyPrint=void 0,window._pr_isIE6=function(){var e=navigator&&navigator.userAgent&&navigator.userAgent.match(/\bMSIE ([678])\./);return e=e?+e[1]:!1,window._pr_isIE6=function(){return e},e},function(){function e(e){return e.replace(_,"&").replace(x,"<").replace(A,">")}function t(n,o,r){switch(n.nodeType){case 1:var i=n.tagName.toLowerCase();o.push("<",i);var s=n.attributes,a=s.length;if(a){if(r){for(var l=[],c=a;--c>=0;)l[c]=s[c];l.sort(function(e,t){return e.namec;++c)l=s[c],l.specified&&o.push(" ",l.name.toLowerCase(),'="',l.value.replace(_,"&").replace(x,"<").replace(A,">").replace(I,"""),'"')}for(o.push(">"),s=n.firstChild;s;s=s.nextSibling)t(s,o,r);(n.firstChild||!/^(?:br|link|img)$/.test(i))&&o.push("");break;case 3:case 4:o.push(e(n.nodeValue))}}function n(e){function t(e){if("\\"!==e.charAt(0))return e.charCodeAt(0);switch(e.charAt(1)){case"b":return 8;case"t":return 9;case"n":return 10;case"v":return 11;case"f":return 12;case"r":return 13;case"u":case"x":return parseInt(e.substring(2),16)||e.charCodeAt(1);case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":return parseInt(e.substring(1),8);default:return e.charCodeAt(1)}}function n(e){return 32>e?(16>e?"\\x0":"\\x")+e.toString(16):(e=String.fromCharCode(e),("\\"===e||"-"===e||"["===e||"]"===e)&&(e="\\"+e),e)}function o(e){var o=e.substring(1,e.length-1).match(RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g"));e=[];for(var r=[],i="^"===o[0],s=i?1:0,a=o.length;a>s;++s){var l=o[s];switch(l){case"\\B":case"\\b":case"\\D":case"\\d":case"\\S":case"\\s":case"\\W":case"\\w":e.push(l);continue}l=t(l);var c;a>s+2&&"-"===o[s+1]?(c=t(o[s+2]),s+=2):c=l,r.push([l,c]),65>c||l>122||(65>c||l>90||r.push([32|Math.max(65,l),32|Math.min(c,90)]),97>c||l>122||r.push([-33&Math.max(97,l),-33&Math.min(c,122)]))}for(r.sort(function(e,t){return e[0]-t[0]||t[1]-e[1]}),o=[],l=[0/0,0/0],s=0;r.length>s;++s)a=r[s],a[0]<=l[1]+1?l[1]=Math.max(l[1],a[1]):o.push(l=a);for(r=["["],i&&r.push("^"),r.push.apply(r,e),s=0;o.length>s;++s)a=o[s],r.push(n(a[0])),a[1]>a[0]&&(a[1]+1>a[0]&&r.push("-"),r.push(n(a[1])));return r.push("]"),r.join("")}function r(e){for(var t=e.source.match(RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),n=t.length,r=[],a=0,l=0;n>a;++a){var c=t[a];"("===c?++l:"\\"===c.charAt(0)&&(c=+c.substring(1))&&l>=c&&(r[c]=-1)}for(a=1;r.length>a;++a)-1===r[a]&&(r[a]=++i);for(l=a=0;n>a;++a)c=t[a],"("===c?(++l,void 0===r[l]&&(t[a]="(?:")):"\\"===c.charAt(0)&&(c=+c.substring(1))&&l>=c&&(t[a]="\\"+r[l]);for(l=a=0;n>a;++a)"^"===t[a]&&"^"!==t[a+1]&&(t[a]="");if(e.ignoreCase&&s)for(a=0;n>a;++a)c=t[a],e=c.charAt(0),c.length>=2&&"["===e?t[a]=o(c):"\\"!==e&&(t[a]=c.replace(/[a-zA-Z]/g,function(e){return e=e.charCodeAt(0),"["+String.fromCharCode(-33&e,32|e)+"]"}));return t.join("")}for(var i=0,s=!1,a=!1,l=0,c=e.length;c>l;++l){var u=e[l];if(u.ignoreCase)a=!0;else if(/[a-z]/i.test(u.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){s=!0,a=!1;break}}var h=[];for(l=0,c=e.length;c>l;++l){if(u=e[l],u.global||u.multiline)throw Error(""+u);h.push("(?:"+r(u)+")")}return RegExp(h.join("|"),a?"gi":"g")}function o(e){var t=0;return function(n){for(var o=null,r=0,i=0,s=n.length;s>i;++i)switch(n.charAt(i)){case" ":for(o||(o=[]),o.push(n.substring(r,i)),r=e-t%e,t+=r;r>=0;r-=16)o.push(" ".substring(0,r));r=i+1;break;case"\n":t=0;break;default:++t}return o?(o.push(n.substring(r)),o.join("")):n}}function r(e,t,n,o){t&&(e={source:t,c:e},n(e),o.push.apply(o,e.d))}function i(e,t){function o(e){for(var n=e.c,l=[n,v],u=0,h=e.source.match(i)||[],f={},p=0,d=h.length;d>p;++p){var g,m=h[p],y=f[m],b=void 0;if("string"==typeof y)g=!1;else{var _=s[m.charAt(0)];if(_)b=m.match(_[1]),y=_[0];else{for(g=0;a>g;++g)if(_=t[g],b=m.match(_[1])){y=_[0];break}b||(y=v)}!(g=y.length>=5&&"lang-"===y.substring(0,5))||b&&"string"==typeof b[1]||(g=!1,y=w),g||(f[m]=y)}if(_=u,u+=m.length,g){g=b[1];var x=m.indexOf(g),A=x+g.length;b[2]&&(A=m.length-b[2].length,x=A-g.length),y=y.substring(5),r(n+_,m.substring(0,x),o,l),r(n+_+x,g,c(y,g),l),r(n+_+A,m.substring(A),o,l)}else l.push(n+_,y)}e.d=l}var i,s={};(function(){for(var o=e.concat(t),r=[],a={},l=0,c=o.length;c>l;++l){var u=o[l],h=u[3];if(h)for(var f=h.length;--f>=0;)s[h.charAt(f)]=u;u=u[1],h=""+u,a.hasOwnProperty(h)||(r.push(u),a[h]=null)}r.push(/[\0-\uffff]/),i=n(r)})();var a=t.length;return o}function s(e){var t=[],n=[];return e.tripleQuotedStrings?t.push([h,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]):e.multiLineStrings?t.push([h,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):t.push([h,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),e.verbatimStrings&&n.push([h,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]),e.hashComments&&(e.cStyleComments?(t.push([p,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),n.push([h,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])):t.push([p,/^#[^\r\n]*/,null,"#"])),e.cStyleComments&&(n.push([p,/^\/\/[^\r\n]*/,null]),n.push([p,/^\/\*[\s\S]*?(?:\*\/|$)/,null])),e.regexLiterals&&n.push(["lang-regex",RegExp("^"+b+"(/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/)")]),e=e.keywords.replace(/^\s+|\s+$/g,""),e.length&&n.push([f,RegExp("^(?:"+e.replace(/\s+/g,"|")+")\\b"),null]),t.push([v,/^\s+/,null," \r\n "]),n.push([g,/^@[a-z_$][a-z_$@0-9]*/i,null],[d,/^@?[A-Z]+[a-z][A-Za-z_$@0-9]*/,null],[v,/^[a-z_$][a-z_$@0-9]*/i,null],[g,/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,null,"0123456789"],[m,/^.[^\s\w\.$@\'\"\`\/\#]*/,null]),i(t,n)}function a(t){function n(t){if(t>l){c&&c!==u&&(a.push(""),c=null),!c&&u&&(c=u,a.push(''));var n=e(p(r.substring(l,t))).replace(w?g:d,"$1 ");w=v.test(n),a.push(n.replace(m,b)),l=t}}var r=t.source,i=t.g,s=t.d,a=[],l=0,c=null,u=null,h=0,f=0,p=o(window.PR_TAB_WIDTH),d=/([\r\n ]) /g,g=/(^| ) /gm,m=/\r\n?|\n/g,v=/[ \r\n]$/,w=!0,y=window._pr_isIE6();y=y?"PRE"===t.b.tagName?6===y?" \r\n":7===y?" 
\r":" \r":" 
":"
";var b,_=t.b.className.match(/\blinenums\b(?::(\d+))?/);if(_){for(var x=[],A=0;10>A;++A)x[A]=y+'
  • ';var I=_[1]&&_[1].length?_[1]-1:0;a.push('
    1. "),b=function(){var e=x[++I%10];return c?""+e+'':e}}else b=y;for(;;)if(i.length>h?s.length>f?i[h]<=s[f]:!0:!1)n(i[h]),c&&(a.push(""),c=null),a.push(i[h+1]),h+=2;else{if(!(s.length>f))break;n(s[f]),u=s[f+1],f+=2}n(r.length),c&&a.push(""),_&&a.push("
    "),t.a=a.join("")}function l(e,t){for(var n=t.length;--n>=0;){var o=t[n];R.hasOwnProperty(o)?"console"in window&&console.warn("cannot override language handler %s",o):R[o]=e}}function c(e,t){return e&&R.hasOwnProperty(e)||(e=/^\s*l;++l){var h=r[l];if(h.length>1&&"<"===h.charAt(0)){if(!O.test(h))if(P.test(h))t.push(h.substring(9,h.length-3)),i+=h.length-12;else if(D.test(h))t.push("\n"),++i;else if(h.indexOf(y)>=0&&h.replace(/\s(\w+)\s*=\s*(?:\"([^\"]*)\"|'([^\']*)'|(\S+))/g,' $1="$2$3$4"').match(/[cC][lL][aA][sS][sS]=\"[^\"]*\bnocode\b/)){var f,p=h.match($)[2],d=1;f=l+1;e:for(;u>f;++f){var g=r[f].match($);if(g&&g[2]===p)if("/"===g[1]){if(0===--d)break e}else++d}u>f?(s.push(i,r.slice(l,f+1).join("")),l=f):s.push(i,h)}else s.push(i,h)}else{var m;d=h;var v=d.indexOf("&");if(0>v)m=d;else{for(--v;(v=d.indexOf("&#",v+1))>=0;){var w=d.indexOf(";",v);if(w>=0){var b=d.substring(v+3,w),_=10;b&&"x"===b.charAt(0)&&(b=b.substring(1),_=16);var x=parseInt(b,_);isNaN(x)||(d=d.substring(0,v)+String.fromCharCode(x)+d.substring(w+1))}}m=d.replace(S,"<").replace(T,">").replace(M,"'").replace(C,'"').replace(N," ").replace(k,"&")}t.push(m),i+=m.length}}o={source:t.join(""),h:s};var A=o.source;e.source=A,e.c=0,e.g=o.h,c(n,A)(e),a(e)}catch(I){"console"in window&&console.log(I&&I.stack?I.stack:I)}}var h="str",f="kwd",p="com",d="typ",g="lit",m="pun",v="pln",w="src",y="nocode",b=function(){for(var e=["!","!=","!==","#","%","%=","&","&&","&&=","&=","(","*","*=","+=",",","-=","->","/","/=",":","::",";","<","<<","<<=","<=","=","==","===",">",">=",">>",">>=",">>>",">>>=","?","@","[","^","^=","^^","^^=","{","|","|=","||","||=","~","break","case","continue","delete","do","else","finally","instanceof","return","throw","try","typeof"],t="(?:^^|[+-]",n=0;e.length>n;++n)t+="|"+e[n].replace(/([^=<>:&a-z])/g,"\\$1");return t+=")\\s*"}(),_=/&/g,x=//g,I=/\"/g,S=/</g,T=/>/g,M=/'/g,C=/"/g,k=/&/g,N=/ /g,F=/[\r\n]/g,E=null,X=RegExp("[^<]+|||\"']|'[^']*'|\"[^\"]*\")*>|<","g"),O=/^<\!--/,P=/^]*(?:>|$)/],[p,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[m,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),l(i([[v,/^[\s]+/,null," \r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[m,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),l(i([],[["atv",/^[\s\S]+/]]),["uq.val"]),l(s({keywords:"break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try typeof alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename using virtual wchar_t where ",hashComments:!0,cStyleComments:!0}),["c","cc","cpp","cxx","cyc","m"]),l(s({keywords:"null true false"}),["json"]),l(s({keywords:"break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try typeof abstract boolean byte extends final finally implements import instanceof null native package strictfp Luxury synchronized throws transient as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params partial readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var ",hashComments:!0,cStyleComments:!0,verbatimStrings:!0}),["cs"]),l(s({keywords:"break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try typeof abstract boolean byte extends final finally implements import instanceof null native package strictfp Luxury synchronized throws transient ",cStyleComments:!0}),["java"]),l(s({keywords:"break continue do else for if return while case done elif esac eval fi function in local set then until ",hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]),l(s({keywords:"break continue do else for if return while and as assert class def del elif except exec finally from global import in is lambda nonlocal not or pass print raise try with yield False True None ",hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py"]),l(s({keywords:"caller delete die do dump elsif eval exit foreach for goto if import last local my next no our print package redo require sub undef unless until use wantarray while BEGIN END ",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]),l(s({keywords:"break continue do else for if return while alias and begin case class def defined elsif end ensure false in module next nil not or redo rescue retry self Luxury then true undef unless until when yield BEGIN END ",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]),l(s({keywords:"break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try typeof debugger eval export function get null set undefined var with Infinity NaN ",cStyleComments:!0,regexLiterals:!0}),["js"]),l(i([],[[h,/^[\s\S]+/]]),["regex"]),window.PR_normalizedHtml=t,window.prettyPrintOne=function(e,t){var n={f:e,e:t}; return u(n),n.a},window.prettyPrint=function(n){function o(){for(var r=window.PR_SHOULD_USE_CONTINUATION?c.now()+250:1/0;i.length>f&&r>c.now();f++){var s=i[f];if(s.className&&s.className.indexOf("prettyprint")>=0){var a=s.className.match(/\blang-(\w+)\b/);a&&(a=a[1]);for(var l=!1,p=s.parentNode;p;p=p.parentNode)if(("pre"===p.tagName||"code"===p.tagName||"xmp"===p.tagName)&&p.className&&p.className.indexOf("prettyprint")>=0){l=!0;break}if(!l){if(p=s,null===E&&(l=document.createElement("PRE"),l.appendChild(document.createTextNode('\n')),E=!/)[\r\n]+/g,"$1").replace(/(?:[\r\n]+[ \t]*)+/g," "))}l=l}else{for(l=[],p=p.firstChild;p;p=p.nextSibling)t(p,l);l=l.join("")}if(l=l.replace(/(?:\r\n?|\n)$/,""),h={f:l,e:a,b:s},u(h),s=h.a)if(a=h.b,"XMP"===a.tagName){for(l=document.createElement("PRE"),p=0;a.attributes.length>p;++p)d=a.attributes[p],d.specified&&("class"===d.name.toLowerCase()?l.className=d.value:l.setAttribute(d.name,d.value));l.innerHTML=s,a.parentNode.replaceChild(l,a)}else a.innerHTML=s}}}i.length>f?setTimeout(o,250):n&&n()}for(var r=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],i=[],s=0;r.length>s;++s)for(var a=0,l=r[s].length;l>a;++a)i.push(r[s][a]);r=null;var c=Date;c.now||(c={now:function(){return(new Date).getTime()}});var h,f=0;o()},window.PR={combinePrefixPatterns:n,createSimpleLexer:i,registerLangHandler:l,sourceDecorator:s,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:p,PR_DECLARATION:"dec",PR_KEYWORD:f,PR_LITERAL:g,PR_NOCODE:y,PR_PLAIN:v,PR_PUNCTUATION:m,PR_SOURCE:w,PR_STRING:h,PR_TAG:"tag",PR_TYPE:d}}(); (function($){"use strict";$.ajaxChimp={responses:{"We have sent you a confirmation email":0,"Please enter a value":1,"An email address must contain a single @":2,"The domain portion of the email address is invalid (the portion after the @: )":3,"The username portion of the email address is invalid (the portion before the @: )":4,"This email address looks fake or invalid. Please enter a real email address":5},translations:{en:null},init:function(selector,options){$(selector).ajaxChimp(options)}};$.fn.ajaxChimp=function(options){$(this).each(function(i,elem){var form=$(elem);var email=form.find("input[type=email]");var label=form.find("label[for="+email.attr("id")+"]");var settings=$.extend({url:form.attr("action"),language:"en"},options);var url=settings.url.replace("/post?","/post-json?").concat("&c=?");form.attr("novalidate","true");email.attr("name","EMAIL");form.submit(function(){var msg;function successCallback(resp){if(resp.result==="success"){msg="We have sent you a confirmation email";label.removeClass("error").addClass("valid");email.removeClass("error").addClass("valid")}else{email.removeClass("valid").addClass("error");label.removeClass("valid").addClass("error");var index=-1;try{var parts=resp.msg.split(" - ",2);if(parts[1]===undefined){msg=resp.msg}else{var i=parseInt(parts[0],10);if(i.toString()===parts[0]){index=parts[0];msg=parts[1]}else{index=-1;msg=resp.msg}}}catch(e){index=-1;msg=resp.msg}}if(settings.language!=="en"&&$.ajaxChimp.responses[msg]!==undefined&&$.ajaxChimp.translations&&$.ajaxChimp.translations[settings.language]&&$.ajaxChimp.translations[settings.language][$.ajaxChimp.responses[msg]]){msg=$.ajaxChimp.translations[settings.language][$.ajaxChimp.responses[msg]]}label.html(msg);label.show(2e3);if(settings.callback){settings.callback(resp)}}var data={};var dataArray=form.serializeArray();$.each(dataArray,function(index,item){data[item.name]=item.value});$.ajax({url:url,data:data,success:successCallback,dataType:"jsonp",error:function(resp,text){console.log("mailchimp ajax submit error: "+text)}});var submitMsg="Submitting...";if(settings.language!=="en"&&$.ajaxChimp.translations&&$.ajaxChimp.translations[settings.language]&&$.ajaxChimp.translations[settings.language]["submit"]){submitMsg=$.ajaxChimp.translations[settings.language]["submit"]}label.html(submitMsg).show(2e3);return false})});return this}})(jQuery); /*! form */ (function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else{factory((typeof(jQuery)!="undefined")?jQuery:window.Zepto)}}(function($){var feature={};feature.fileapi=$("").get(0).files!==undefined;feature.formdata=window.FormData!==undefined;var hasProp=!!$.fn.prop;$.fn.attr2=function(){if(!hasProp){return this.attr.apply(this,arguments)}var val=this.prop.apply(this,arguments);if((val&&val.jquery)||typeof val==="string"){return val}return this.attr.apply(this,arguments)};$.fn.ajaxSubmit=function(options){if(!this.length){log("ajaxSubmit: skipping submit process - no element selected");return this}var method,action,url,$form=this;if(typeof options=="function"){options={success:options}}else{if(options===undefined){options={}}}method=options.type||this.attr2("method");action=options.url||this.attr2("action");url=(typeof action==="string")?$.trim(action):"";url=url||window.location.href||"";if(url){url=(url.match(/^([^#]+)/)||[])[1]}options=$.extend(true,{url:url,success:$.ajaxSettings.success,type:method||$.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},options);var veto={};this.trigger("form-pre-serialize",[this,options,veto]);if(veto.veto){log("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var traditional=options.traditional;if(traditional===undefined){traditional=$.ajaxSettings.traditional}var elements=[];var qx,a=this.formToArray(options.semantic,elements);if(options.data){options.extraData=options.data;qx=$.param(options.data,traditional)}if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[a,this,options,veto]);if(veto.veto){log("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var q=$.param(a,traditional);if(qx){q=(q?(q+"&"+qx):qx)}if(options.type.toUpperCase()=="GET"){options.url+=(options.url.indexOf("?")>=0?"&":"?")+q;options.data=null}else{options.data=q}var callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm()})}if(options.clearForm){callbacks.push(function(){$form.clearForm(options.includeHidden)})}if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data){var fn=options.replaceTarget?"replaceWith":"html";$(options.target)[fn](data).each(oldSuccess,arguments)})}else{if(options.success){callbacks.push(options.success)}}options.success=function(data,status,xhr){var context=options.context||this;for(var i=0,max=callbacks.length;i0;var mp="multipart/form-data";var multipart=($form.attr("enctype")==mp||$form.attr("encoding")==mp);var fileAPI=feature.fileapi&&feature.formdata;log("fileAPI :"+fileAPI);var shouldUseFrame=(hasFileInputs||multipart)&&!fileAPI;var jqxhr;if(options.iframe!==false&&(options.iframe||shouldUseFrame)){if(options.closeKeepAlive){$.get(options.closeKeepAlive,function(){jqxhr=fileUploadIframe(a)})}else{jqxhr=fileUploadIframe(a)}}else{if((hasFileInputs||multipart)&&fileAPI){jqxhr=fileUploadXhr(a)}else{jqxhr=$.ajax(options)}}$form.removeData("jqxhr").data("jqxhr",jqxhr);for(var k=0;k');$io.css({position:"absolute",top:"-1000px",left:"-1000px"})}io=$io[0];xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(status){var e=(status==="timeout"?"timeout":"aborted");log("aborting upload... "+e);this.aborted=1;try{if(io.contentWindow.document.execCommand){io.contentWindow.document.execCommand("Stop")}}catch(ignore){}$io.attr("src",s.iframeSrc);xhr.error=e;if(s.error){s.error.call(s.context,xhr,e,status)}if(g){$.event.trigger("ajaxError",[xhr,s,e])}if(s.complete){s.complete.call(s.context,xhr,e)}}};g=s.global;if(g&&0===$.active++){$.event.trigger("ajaxStart")}if(g){$.event.trigger("ajaxSend",[xhr,s])}if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){if(s.global){$.active--}deferred.reject();return deferred}if(xhr.aborted){deferred.reject();return deferred}sub=form.clk;if(sub){n=sub.name;if(n&&!sub.disabled){s.extraData=s.extraData||{};s.extraData[n]=sub.value;if(sub.type=="image"){s.extraData[n+".x"]=form.clk_x;s.extraData[n+".y"]=form.clk_y}}}var CLIENT_TIMEOUT_ABORT=1;var SERVER_ABORT=2;function getDoc(frame){var doc=null;try{if(frame.contentWindow){doc=frame.contentWindow.document}}catch(err){log("cannot get iframe.contentWindow document: "+err)}if(doc){return doc}try{doc=frame.contentDocument?frame.contentDocument:frame.document}catch(err){log("cannot get iframe.contentDocument: "+err);doc=frame.document}return doc}var csrf_token=$("meta[name=csrf-token]").attr("content");var csrf_param=$("meta[name=csrf-param]").attr("content");if(csrf_param&&csrf_token){s.extraData=s.extraData||{};s.extraData[csrf_param]=csrf_token}function doSubmit(){var t=$form.attr2("target"),a=$form.attr2("action"),mp="multipart/form-data",et=$form.attr("enctype")||$form.attr("encoding")||mp;form.setAttribute("target",id);if(!method||/post/i.test(method)){form.setAttribute("method","POST")}if(a!=s.url){form.setAttribute("action",s.url)}if(!s.skipEncodingOverride&&(!method||/post/i.test(method))){$form.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(s.timeout){timeoutHandle=setTimeout(function(){timedOut=true;cb(CLIENT_TIMEOUT_ABORT)},s.timeout)}function checkState(){try{var state=getDoc(io).readyState;log("state = "+state);if(state&&state.toLowerCase()=="uninitialized"){setTimeout(checkState,50)}}catch(e){log("Server abort: ",e," (",e.name,")");cb(SERVER_ABORT);if(timeoutHandle){clearTimeout(timeoutHandle)}timeoutHandle=undefined}}var extraInputs=[];try{if(s.extraData){for(var n in s.extraData){if(s.extraData.hasOwnProperty(n)){if($.isPlainObject(s.extraData[n])&&s.extraData[n].hasOwnProperty("name")&&s.extraData[n].hasOwnProperty("value")){extraInputs.push($('').val(s.extraData[n].value).appendTo(form)[0])}else{extraInputs.push($('').val(s.extraData[n]).appendTo(form)[0])}}}}if(!s.iframeTarget){$io.appendTo("body")}if(io.attachEvent){io.attachEvent("onload",cb)}else{io.addEventListener("load",cb,false)}setTimeout(checkState,15);try{form.submit()}catch(err){var submitFn=document.createElement("form").submit;submitFn.apply(form)}}finally{form.setAttribute("action",a);form.setAttribute("enctype",et);if(t){form.setAttribute("target",t)}else{$form.removeAttr("target")}$(extraInputs).remove()}}if(s.forceSync){doSubmit()}else{setTimeout(doSubmit,10)}var data,doc,domCheckCount=50,callbackProcessed;function cb(e){if(xhr.aborted||callbackProcessed){return}doc=getDoc(io);if(!doc){log("cannot access response document");e=SERVER_ABORT}if(e===CLIENT_TIMEOUT_ABORT&&xhr){xhr.abort("timeout");deferred.reject(xhr,"timeout");return}else{if(e==SERVER_ABORT&&xhr){xhr.abort("server abort");deferred.reject(xhr,"error","server abort");return}}if(!doc||doc.location.href==s.iframeSrc){if(!timedOut){return}}if(io.detachEvent){io.detachEvent("onload",cb)}else{io.removeEventListener("load",cb,false)}var status="success",errMsg;try{if(timedOut){throw"timeout"}var isXml=s.dataType=="xml"||doc.XMLDocument||$.isXMLDoc(doc);log("isXml="+isXml);if(!isXml&&window.opera&&(doc.body===null||!doc.body.innerHTML)){if(--domCheckCount){log("requeing onLoad callback, DOM not available");setTimeout(cb,250);return}}var docRoot=doc.body?doc.body:doc.documentElement;xhr.responseText=docRoot?docRoot.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(isXml){s.dataType="xml"}xhr.getResponseHeader=function(header){var headers={"content-type":s.dataType};return headers[header.toLowerCase()]};if(docRoot){xhr.status=Number(docRoot.getAttribute("status"))||xhr.status;xhr.statusText=docRoot.getAttribute("statusText")||xhr.statusText}var dt=(s.dataType||"").toLowerCase();var scr=/(json|script|text)/.test(dt);if(scr||s.textarea){var ta=doc.getElementsByTagName("textarea")[0];if(ta){xhr.responseText=ta.value;xhr.status=Number(ta.getAttribute("status"))||xhr.status;xhr.statusText=ta.getAttribute("statusText")||xhr.statusText}else{if(scr){var pre=doc.getElementsByTagName("pre")[0];var b=doc.getElementsByTagName("body")[0];if(pre){xhr.responseText=pre.textContent?pre.textContent:pre.innerText}else{if(b){xhr.responseText=b.textContent?b.textContent:b.innerText}}}}}else{if(dt=="xml"&&!xhr.responseXML&&xhr.responseText){xhr.responseXML=toXml(xhr.responseText)}}try{data=httpData(xhr,dt,s)}catch(err){status="parsererror";xhr.error=errMsg=(err||status)}}catch(err){log("error caught: ",err);status="error";xhr.error=errMsg=(err||status)}if(xhr.aborted){log("upload aborted");status=null}if(xhr.status){status=(xhr.status>=200&&xhr.status<300||xhr.status===304)?"success":"error"}if(status==="success"){if(s.success){s.success.call(s.context,data,"success",xhr)}deferred.resolve(xhr.responseText,"success",xhr);if(g){$.event.trigger("ajaxSuccess",[xhr,s])}}else{if(status){if(errMsg===undefined){errMsg=xhr.statusText}if(s.error){s.error.call(s.context,xhr,status,errMsg)}deferred.reject(xhr,"error",errMsg);if(g){$.event.trigger("ajaxError",[xhr,s,errMsg])}}}if(g){$.event.trigger("ajaxComplete",[xhr,s])}if(g&&!--$.active){$.event.trigger("ajaxStop")}if(s.complete){s.complete.call(s.context,xhr,status)}callbackProcessed=true;if(s.timeout){clearTimeout(timeoutHandle)}setTimeout(function(){if(!s.iframeTarget){$io.remove()}else{$io.attr("src",s.iframeSrc)}xhr.responseXML=null},100)}var toXml=$.parseXML||function(s,doc){if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM");doc.async="false";doc.loadXML(s)}else{doc=(new DOMParser()).parseFromString(s,"text/xml")}return(doc&&doc.documentElement&&doc.documentElement.nodeName!="parsererror")?doc:null};var parseJSON=$.parseJSON||function(s){return window["eval"]("("+s+")")};var httpData=function(xhr,type,s){var ct=xhr.getResponseHeader("content-type")||"",xml=type==="xml"||!type&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==="parsererror"){if($.error){$.error("parsererror")}}if(s&&s.dataFilter){data=s.dataFilter(data,type)}if(typeof data==="string"){if(type==="json"||!type&&ct.indexOf("json")>=0){data=parseJSON(data)}else{if(type==="script"||!type&&ct.indexOf("javascript")>=0){$.globalEval(data)}}}return data};return deferred}};$.fn.ajaxForm=function(options){options=options||{};options.delegation=options.delegation&&$.isFunction($.fn.on);if(!options.delegation&&this.length===0){var o={s:this.selector,c:this.context};if(!$.isReady&&o.s){log("DOM not ready, queuing ajaxForm");$(function(){$(o.s,o.c).ajaxForm(options)});return this}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this}if(options.delegation){$(document).off("submit.form-plugin",this.selector,doAjaxSubmit).off("click.form-plugin",this.selector,captureSubmittingElement).on("submit.form-plugin",this.selector,options,doAjaxSubmit).on("click.form-plugin",this.selector,options,captureSubmittingElement);return this}return this.ajaxFormUnbind().bind("submit.form-plugin",options,doAjaxSubmit).bind("click.form-plugin",options,captureSubmittingElement)};function doAjaxSubmit(e){var options=e.data;if(!e.isDefaultPrevented()){e.preventDefault();$(e.target).ajaxSubmit(options)}}function captureSubmittingElement(e){var target=e.target;var $el=$(target);if(!($el.is("[type=submit],[type=image]"))){var t=$el.closest("[type=submit]");if(t.length===0){return}target=t[0]}var form=this;form.clk=target;if(target.type=="image"){if(e.offsetX!==undefined){form.clk_x=e.offsetX;form.clk_y=e.offsetY}else{if(typeof $.fn.offset=="function"){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop}}}setTimeout(function(){form.clk=form.clk_x=form.clk_y=null},100)}$.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};$.fn.formToArray=function(semantic,elements){var a=[];if(this.length===0){return a}var form=this[0];var formId=this.attr("id");var els=semantic?form.getElementsByTagName("*"):form.elements;var els2;if(els&&!/MSIE [678]/.test(navigator.userAgent)){els=$(els).get()}if(formId){els2=$(":input[form="+formId+"]").get();if(els2.length){els=(els||[]).concat(els2)}}if(!els||!els.length){return a}var i,j,n,v,el,max,jmax;for(i=0,max=els.length;i").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),c.settings.submitHandler.call(c,c.currentForm,b),c.submitButton&&d.remove(),!1):!0}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c;return a(this[0]).is("form")?b=this.validate().form():(b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b})),b},removeAttrs:function(b){var c={},d=this;return a.each(b.split(/\s/),function(a,b){c[b]=d.attr(b),d.removeAttr(b)}),c},rules:function(b,c){var d,e,f,g,h,i,j=this[0];if(b)switch(d=a.data(j.form,"validator").settings,e=d.rules,f=a.validator.staticRules(j),b){case"add":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case"remove":return c?(i={},a.each(c.split(/\s/),function(b,c){i[c]=f[c],delete f[c],"required"===c&&a(j).removeAttr("aria-required")}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g),a(j).attr("aria-required","true")),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}),a.extend(a.expr[":"],{blank:function(b){return!a.trim(""+a(b).val())},filled:function(b){return!!a.trim(""+a(b).val())},unchecked:function(b){return!a(b).prop("checked")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(a)).hide())},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(a,b){(9!==b.which||""!==this.elementValue(a))&&(a.name in this.submitted||a===this.lastElement)&&this.element(a)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){var c=a.data(this[0].form,"validator"),d="on"+b.type.replace(/^validate/,""),e=c.settings;e[d]&&!this.is(e.ignore)&&e[d].call(c,this[0],b)}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c,d=this.groups={};a.each(this.settings.groups,function(b,c){"string"==typeof c&&(c=c.split(/\s/)),a.each(c,function(a,c){d[c]=b})}),c=this.settings.rules,a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)}),a(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",b).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",b),this.settings.invalidHandler&&a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler),a(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){var c=this.clean(b),d=this.validationTargetFor(c),e=!0;return this.lastElement=d,void 0===d?delete this.invalid[c.name]:(this.prepareElement(d),this.currentElements=a(d),e=this.check(d)!==!1,e?delete this.invalid[d.name]:this.invalid[d.name]=!0),a(b).attr("aria-invalid",!e),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),e},showErrors:function(b){if(b){a.extend(this.errorMap,b),this.errorList=[];for(var c in b)this.errorList.push({message:b[c],element:this.findByName(c)[0]});this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)c++;return c},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&1===a.grep(this.errorList,function(a){return a.element.name===b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in c||!b.objectLength(a(this).rules())?!1:(c[this.name]=!0,!0)})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.split(" ").join(".");return a(this.settings.errorElement+"."+b,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([]),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},elementValue:function(b){var c,d=a(b),e=d.attr("type");return"radio"===e||"checkbox"===e?a("input[name='"+d.attr("name")+"']:checked").val():(c=d.val(),"string"==typeof c?c.replace(/\r/g,""):c)},check:function(b){b=this.validationTargetFor(this.clean(b));var c,d,e,f=a(b).rules(),g=a.map(f,function(a,b){return b}).length,h=!1,i=this.elementValue(b);for(d in f){e={method:d,parameters:f[d]};try{if(c=a.validator.methods[d].call(this,i,b,e.parameters),"dependency-mismatch"===c&&1===g){h=!0;continue}if(h=!1,"pending"===c)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!c)return this.formatAndAdd(b,e),!1}catch(j){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+b.id+", check the '"+e.method+"' method.",j),j}}if(!h)return this.objectLength(f)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data("msg"+c[0].toUpperCase()+c.substring(1).toLowerCase())||a(b).data("msg")},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor===String?c:c[b])},findDefined:function(){for(var a=0;aWarning: No message defined for "+b.name+"")},formatAndAdd:function(b,c){var d=this.defaultMessage(b,c.method),e=/\$?\{(\d+)\}/g;"function"==typeof d?d=d.call(this,c.parameters,b):e.test(d)&&(d=a.validator.format(d.replace(e,"{$1}"),c.parameters)),this.errorList.push({message:d,element:b,method:c.method}),this.errorMap[b.name]=d,this.submitted[b.name]=d},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){var a,b,c;for(a=0;this.errorList[a];a++)c=this.errorList[a],this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass),this.showLabel(c.element,c.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d=this.errorsFor(b);d.length?(d.removeClass(this.settings.validClass).addClass(this.settings.errorClass),d.html(c)):(d=a("<"+this.settings.errorElement+">").attr("for",this.idOrName(b)).addClass(this.settings.errorClass).html(c||""),this.settings.wrapper&&(d=d.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(d).length||(this.settings.errorPlacement?this.settings.errorPlacement(d,a(b)):d.insertAfter(b))),!c&&this.settings.success&&(d.text(""),"string"==typeof this.settings.success?d.addClass(this.settings.success):this.settings.success(d,b)),this.toShow=this.toShow.add(d)},errorsFor:function(b){var c=this.idOrName(b);return this.errors().filter(function(){return a(this).attr("for")===c})},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(a){return this.checkable(a)&&(a=this.findByName(a.name).not(this.settings.ignore)[0]),a},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){return a(this.currentForm).find("[name='"+b+"']")},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):!0},dependTypes:{"boolean":function(a){return a},string:function(b,c){return!!a(b,c.form).length},"function":function(a,b){return a(b)}},optional:function(b){var c=this.elementValue(b);return!a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},startRequest:function(a){this.pending[a.name]||(this.pendingRequest++,this.pending[a.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],c&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!c&&0===this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},attributeRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)"required"===c?(d=b.getAttribute(c),""===d&&(d=!0),d=!!d):d=f.attr(c),/min|max/.test(c)&&(null===g||/number|range|text/.test(g))&&(d=Number(d)),d||0===d?e[c]=d:g===c&&"range"!==g&&(e[c]=!0);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b);for(c in a.validator.methods)d=f.data("rule"+c[0].toUpperCase()+c.substring(1).toLowerCase()),void 0!==d&&(e[c]=d);return e},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0!==e.param?e.param:!0:delete b[d]}}),a.each(b,function(d,e){b[d]=a.isFunction(e)?e(c):e}),a.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){var c;b[this]&&(a.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:"string"==typeof b[this]&&(c=b[this].split(/[\s,]+/),b[this]=[Number(c[0]),Number(c[1])]))}),a.validator.autoCreateRanges&&(b.min&&b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),b.minlength&&b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!==d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";if("select"===c.nodeName.toLowerCase()){var e=a(c).val();return e&&e.length>0}return this.checkable(c)?this.getLength(b,c)>0:a.trim(b).length>0},email:function(a,b){return this.optional(b)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)},url:function(a,b){return this.optional(b)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)},date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a).toString())},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9 \-]+/.test(a))return!1;var c,d,e=0,f=0,g=!1;if(a=a.replace(/\D/g,""),a.length<13||a.length>19)return!1;for(c=a.length-1;c>=0;c--)d=a.charAt(c),f=parseInt(d,10),g&&(f*=2)>9&&(f-=9),e+=f,g=!g;return e%10===0},minlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(a.trim(b),c);return this.optional(c)||e>=d},maxlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(a.trim(b),c);return this.optional(c)||d>=e},rangelength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(a.trim(b),c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||c>=a},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},equalTo:function(b,c,d){var e=a(d);return this.settings.onfocusout&&e.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(c).valid()}),b===e.val()},remote:function(b,c,d){if(this.optional(c))return"dependency-mismatch";var e,f,g=this.previousValue(c);return this.settings.messages[c.name]||(this.settings.messages[c.name]={}),g.originalMessage=this.settings.messages[c.name].remote,this.settings.messages[c.name].remote=g.message,d="string"==typeof d&&{url:d}||d,g.old===b?g.valid:(g.old=b,e=this,this.startRequest(c),f={},f[c.name]=b,a.ajax(a.extend(!0,{url:d,mode:"abort",port:"validate"+c.name,dataType:"json",data:f,context:e.currentForm,success:function(d){var f,h,i,j=d===!0||"true"===d;e.settings.messages[c.name].remote=g.originalMessage,j?(i=e.formSubmitted,e.prepareElement(c),e.formSubmitted=i,e.successList.push(c),delete e.invalid[c.name],e.showErrors()):(f={},h=d||e.defaultMessage(c,"remote"),f[c.name]=g.message=a.isFunction(h)?h(b):h,e.invalid[c.name]=!0,e.showErrors(f)),g.valid=j,e.stopRequest(c,j)}},d)),"pending")}}}),a.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead."}}(jQuery),function(a){var b,c={};a.ajaxPrefilter?a.ajaxPrefilter(function(a,b,d){var e=a.port;"abort"===a.mode&&(c[e]&&c[e].abort(),c[e]=d)}):(b=a.ajax,a.ajax=function(d){var e=("mode"in d?d:a.ajaxSettings).mode,f=("port"in d?d:a.ajaxSettings).port;return"abort"===e?(c[f]&&c[f].abort(),c[f]=b.apply(this,arguments),c[f]):b.apply(this,arguments)})}(jQuery),function(a){a.extend(a.fn,{validateDelegate:function(b,c,d){return this.bind(c,function(c){var e=a(c.target);return e.is(b)?d.apply(e,arguments):void 0})}})}(jQuery); /*! countdown */ !function(e){function t(t,a){this.element=t,this.settings=e.extend({},s,a),this._defaults=s,this._name=n,this.targetDate=null,this.days=null,this.hours=null,this.minutes=null,this.seconds=null,this.milliseconds=null,this.deciseconds=null,this.intervalId=null,this.dim=864e5,this.him=36e5,this.iim=6e4,this.seim=1e3,this.deim=100,this.wrapsExists=new Array,this.oldValues=new Array,this.changed=!1,this.init()}var n="countEverest",s={day:19,month:1,year:2038,hour:3,minute:14,second:8,millisecond:0,daysWrapper:".ce-days",hoursWrapper:".ce-hours",minutesWrapper:".ce-minutes",secondsWrapper:".ce-seconds",decisecondsWrapper:".ce-dseconds",millisecondsWrapper:".ce-mseconds",daysLabelWrapper:".ce-days-label",hoursLabelWrapper:".ce-hours-label",minutesLabelWrapper:".ce-minutes-label",secondsLabelWrapper:".ce-seconds-label",decisecondsLabelWrapper:".ce-dseconds-label",millisecondsLabelWrapper:".ce-mseconds-label",daysLabel:"Days",dayLabel:"Day",hoursLabel:"Hours",hourLabel:"Hour",minutesLabel:"Minutes",minuteLabel:"Minute",secondsLabel:"Seconds",secondLabel:"Second",decisecondsLabel:"Deciseconds",decisecondLabel:"Decisecond",millisecondsLabel:"Milliseconds",millisecondLabel:"Millisecond",timeout:1e3,highspeedTimeout:4,leftHandZeros:!0,wrapDigits:!0,onInit:null,beforeCalculation:null,afterCalculation:null,onCalculation:null,onChange:null,onComplete:null};t.prototype={init:function(){var t=this,n=t.element,s=t.settings;t.setTargetDate(new Date(s.year,s.month-1,s.day,s.hour,s.minute,s.second)),(e(n).find(s.decisecondsWrapper).length>0||e(n).find(s.millisecondsWrapper).length>0)&&(s.timeout=s.highspeedTimeout),e.isFunction(s.onInit)&&s.onInit.call(t),t.intervalId=setInterval(function(){t.calculate()},t.timeout),t.calculate()},calculate:function(){var t=this,n=t.settings,s=t.getCurrentDate(),a=t.getTargetDate(),i=a-s,l=i,r=!1;e.isFunction(n.beforeCalculation)&&n.beforeCalculation.call(t),t.changed=!1;var o=Math.floor(l/t.dim);l%=t.dim;var c=Math.floor(l/t.him);l%=t.him;var u=Math.floor(l/t.iim);l%=t.iim;var d=Math.floor(l/t.seim),m=l%t.seim,h=Math.floor(m/t.deim);o=t.naturalNum(o),c=t.naturalNum(c),u=t.naturalNum(u),d=t.naturalNum(d),m=t.naturalNum(m),h=t.naturalNum(h),t.days=o,t.hours=c,t.minutes=u,t.seconds=d,t.milliseconds=m,t.deciseconds=h,t.output(),Math.floor(i/n.timeout)<=0&&(r=!0,(null!=n.millisecondsWrapper||null!=n.decisecondsWrapper)&&(r=0>=i?!0:!1)),1==r&&(e.isFunction(n.onComplete)&&n.onComplete.call(t),clearInterval(t.intervalId)),e.isFunction(n.onCalculation)&&n.onCalculation.call(t),e.isFunction(n.afterCalculation)&&n.afterCalculation.call(t)},output:function(){var t=this,n=t.element,s=(e(n),t.settings),a=t.days,i=t.hours,l=t.minutes,r=t.seconds,o=t.deciseconds,c=t.milliseconds,u=s.dayLabel,d=s.hourLabel,m=s.minuteLabel,h=s.secondLabel,p=s.decisecondLabel,b=s.millisecondsLabel,g=1==a&&null!==u?u:s.daysLabel,f=1==i&&null!==d?d:s.hoursLabel,L=1==l&&null!==m?m:s.minutesLabel,w=1==r&&null!==h?h:s.secondsLabel,D=1==o&&null!==p?p:s.decisecondsLabel,W=1==c&&null!==b?b:s.millisecondsLabel;t.writeToDom(s.daysLabelWrapper,g),t.writeToDom(s.hoursLabelWrapper,f),t.writeToDom(s.minutesLabelWrapper,L),t.writeToDom(s.secondsLabelWrapper,w),t.writeToDom(s.decisecondsLabelWrapper,D),t.writeToDom(s.millisecondsLabelWrapper,W),1==s.leftHandZeros&&(i=t.strPad(i,2),l=t.strPad(l,2),r=t.strPad(r,2),c=t.strPad(c,3)),1==s.wrapDigits&&(a=t.wrapChars(a,"ce-days-digit"),i=t.wrapChars(i,"ce-hours-digit"),l=t.wrapChars(l,"ce-minutes-digit"),r=t.wrapChars(r,"ce-seconds-digit"),o=t.wrapChars(o,"ce-dseconds-digit"),c=t.wrapChars(c,"ce-mseconds-digit")),t.writeToDom(s.daysWrapper,a),t.writeToDom(s.hoursWrapper,i),t.writeToDom(s.minutesWrapper,l),t.writeToDom(s.secondsWrapper,r),t.writeToDom(s.decisecondsWrapper,o),t.writeToDom(s.millisecondsWrapper,c),e.isFunction(s.onChange)&&1==t.changed&&s.onChange.call(t)},setTargetDate:function(e){this.targetDate=e},getTargetDate:function(){return this.targetDate},getCurrentDate:function(){return new Date},getOptions:function(){return this.settings},naturalNum:function(e){return 0>e?0:e},strPad:function(e,t,n){var s=e.toString();for(n||(n="0");s.length'+e[s]+"";return n},writeToDom:function(t,n){var s=this,a=e(s.element);s.settings,null==s.wrapsExists[t]&&(s.wrapsExists[t]=a.find(t).length>0?!0:!1),s.oldValues[t]!=n&&s.wrapsExists[t]&&(s.oldValues[t]=n,a.find(t).html(n),s.changed=!0)}},e.fn[n]=function(s){return this.each(function(){var a="plugin_";e.data(this,a+n)||e.data(this,a+n,new t(this,s))})}}(jQuery,window,document); /*! slider */ (function(window,$){var Luxuryslides,plugin='Luxuryslides';Luxuryslides=function(el,options){this.options=$.extend({play:false,animation_speed:600,animation_easing:'swing',animation:'slide',inherit_width_from:window,inherit_height_from:window,usekeyboard:true,pagination:true,hashchange:false,scrollable:true,elements:{preserve:'.preserve',nav:'.slides-navigation',container:'.slides-container',pagination:'.slides-pagination'}},options);var that=this,$control=$('
    ',{"class":'slides-control'}),multiplier=1;this.$el=$(el);this.$container=this.$el.find(this.options.elements.container);var initialize=function(){multiplier=that._findMultiplier();that.$el.on('click',that.options.elements.nav+" a",function(e){e.preventDefault();that.stop();if($(this).hasClass('next')){that.animate('next',function(){that.start();});}else{that.animate('prev',function(){that.start();});}});$(document).on('keyup',function(e){if(that.options.usekeyboard){if(e.keyCode===37){that.animate('prev');} if(e.keyCode===39){that.animate('next');}}});$(window).on('resize',function(){setTimeout(function(){var $children=that.$container.children();that.width=that._findWidth();that.height=that._findHeight();$children.css({width:that.width,left:that.width});that.css.containers();that.css.images();},10);});if(that.options.hashchange){$(window).on('hashchange',function(){var hash=that._parseHash(),index;index=that._upcomingSlide(hash);if(index>=0&&index!==that.current){that.animate(index);}});} that.pagination._events();that.start();return that;};var css={containers:function(){if(that.init){that.$el.css({height:that.height});that.$control.css({width:that.width*multiplier,left:-that.width});that.$container.css({});}else{$('body').css({margin:0});that.$el.css({position:'relative',overflow:'hidden',width:'100%',height:that.height});that.$control.css({position:'relative',transform:'translate3d(0)',height:'100%',width:that.width*multiplier,left:-that.width});that.$container.css({display:'none',margin:'0',padding:'0',listStyle:'none',position:'relative',height:'100%'});} if(that.size()===1){that.$el.find(that.options.elements.nav).hide();}},images:function(){var $images=that.$container.find('img').not(that.options.elements.preserve) $images.removeAttr('width').removeAttr('height').css({"-webkit-backface-visibility":'hidden',"-ms-interpolation-mode":'bicubic',"position":'absolute',"left":'0',"top":'0',"z-index":'-1',"max-width":'none'});$images.each(function(){var image_aspect_ratio=that.image._aspectRatio(this),image=this;if(!$.data(this,'processed')){var img=new Image();img.onload=function(){that.image._scale(image,image_aspect_ratio);that.image._center(image,image_aspect_ratio);$.data(image,'processed',true);};img.src=this.src;}else{that.image._scale(image,image_aspect_ratio);that.image._center(image,image_aspect_ratio);}});},children:function(){var $children=that.$container.children();if($children.is('img')){$children.each(function(){if($(this).is('img')){$(this).wrap('
    ');var id=$(this).attr('id');$(this).removeAttr('id');$(this).parent().attr('id',id);}});$children=that.$container.children();} if(!that.init){$children.css({display:'none',left:that.width*2});} $children.css({position:'absolute',overflow:'hidden',height:'100%',width:that.width,top:0,zIndex:0});}} var fx={slide:function(orientation,complete){var $children=that.$container.children(),$target=$children.eq(orientation.upcoming_slide);$target.css({left:orientation.upcoming_position,display:'block'});that.$control.animate({left:orientation.offset},that.options.animation_speed,that.options.animation_easing,function(){if(that.size()>1){that.$control.css({left:-that.width});$children.eq(orientation.upcoming_slide).css({left:that.width,zIndex:2});if(orientation.outgoing_slide>=0){$children.eq(orientation.outgoing_slide).css({left:that.width,display:'none',zIndex:0});}} complete();});},fade:function(orientation,complete){var that=this,$children=that.$container.children(),$outgoing=$children.eq(orientation.outgoing_slide),$target=$children.eq(orientation.upcoming_slide);$target.css({left:this.width,opacity:0,display:'block'}).animate({opacity:1},that.options.animation_speed,that.options.animation_easing);if(orientation.outgoing_slide>=0){$outgoing.animate({opacity:0},that.options.animation_speed,that.options.animation_easing,function(){if(that.size()>1){$children.eq(orientation.upcoming_slide).css({zIndex:2});if(orientation.outgoing_slide>=0){$children.eq(orientation.outgoing_slide).css({opacity:1,display:'none',zIndex:0});}} complete();});}else{$target.css({zIndex:2});complete();}}};fx=$.extend(fx,$.fn.Luxuryslides.fx);var image={_centerY:function(image){var $img=$(image);$img.css({top:(that.height-$img.height())/2});},_centerX:function(image){var $img=$(image);$img.css({left:(that.width-$img.width())/2});},_center:function(image){that.image._centerX(image);that.image._centerY(image);},_aspectRatio:function(image){if(!image.naturalHeight&&!image.naturalWidth){var img=new Image();img.src=image.src;image.naturalHeight=img.height;image.naturalWidth=img.width;} return image.naturalHeight/image.naturalWidth;},_scale:function(image,image_aspect_ratio){image_aspect_ratio=image_aspect_ratio||that.image._aspectRatio(image);var container_aspect_ratio=that.height/that.width,$img=$(image);if(container_aspect_ratio>image_aspect_ratio){$img.css({height:that.height,width:that.height/image_aspect_ratio});}else{$img.css({height:that.width*image_aspect_ratio,width:that.width});}}};var pagination={_setCurrent:function(i){if(!that.$pagination){return;} var $pagination_children=that.$pagination.children();$pagination_children.removeClass('current');$pagination_children.eq(i).addClass('current');},_addItem:function(i){var slide_number=i+1,href=slide_number,$slide=that.$container.children().eq(i),slide_id=$slide.attr('id');if(slide_id){href=slide_id;} var $item=$("",{'href':"#"+href,'text':href});$item.appendTo(that.$pagination);},_setup:function(){if(!that.options.pagination||that.size()===1){return;} var $pagination=$("