\").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.each([\"ajaxStart\",\"ajaxStop\",\"ajaxComplete\",\"ajaxError\",\"ajaxSuccess\",\"ajaxSend\"],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cc=a.document.documentElement;function dc(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,\"position\"),l=m(a),n={};\"static\"===k&&(a.style.position=\"relative\"),h=l.offset(),f=m.css(a,\"top\"),i=m.css(a,\"left\"),j=(\"absolute\"===k||\"fixed\"===k)&&m.inArray(\"auto\",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),\"using\"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return\"fixed\"===m.css(d,\"position\")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],\"html\")||(c=a.offset()),c.top+=m.css(a[0],\"borderTopWidth\",!0),c.left+=m.css(a[0],\"borderLeftWidth\",!0)),{top:b.top-c.top-m.css(d,\"marginTop\",!0),left:b.left-c.left-m.css(d,\"marginLeft\",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cc;while(a&&!m.nodeName(a,\"html\")&&\"static\"===m.css(a,\"position\"))a=a.offsetParent;return a||cc})}}),m.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each([\"top\",\"left\"],function(a,b){m.cssHooks[b]=La(k.pixelPosition,function(a,c){return c?(c=Ja(a,b),Ha.test(c)?m(a).position()[b]+\"px\":c):void 0})}),m.each({Height:\"height\",Width:\"width\"},function(a,b){m.each({padding:\"inner\"+a,content:b,\"\":\"outer\"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||\"boolean\"!=typeof d),g=c||(d===!0||e===!0?\"margin\":\"border\");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement[\"client\"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body[\"scroll\"+a],e[\"scroll\"+a],b.body[\"offset\"+a],e[\"offset\"+a],e[\"client\"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,\"function\"==typeof define&&define.amd&&define(\"jquery\",[],function(){return m});var ec=a.jQuery,fc=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fc),b&&a.jQuery===m&&(a.jQuery=ec),m},typeof b===K&&(a.jQuery=a.$=m),m});\r\n","/*! jQuery Validation Plugin - v1.14.0 - 6/30/2015\r\n * http://jqueryvalidation.org/\r\n * Copyright (c) 2015 Jörn Zaefferer; Licensed MIT */\r\n!function(a){\"function\"==typeof define&&define.amd?define([\"jquery\"],a):a(jQuery)}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn(\"Nothing selected, can't validate, returning nothing.\"));var c=a.data(this[0],\"validator\");return c?c:(this.attr(\"novalidate\",\"novalidate\"),c=new a.validator(b,this[0]),a.data(this[0],\"validator\",c),c.settings.onsubmit&&(this.on(\"click.validate\",\":submit\",function(b){c.settings.submitHandler&&(c.submitButton=b.target),a(this).hasClass(\"cancel\")&&(c.cancelSubmit=!0),void 0!==a(this).attr(\"formnovalidate\")&&(c.cancelSubmit=!0)}),this.on(\"submit.validate\",function(b){function d(){var d,e;return c.settings.submitHandler?(c.submitButton&&(d=a(\"
\").attr(\"name\",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),e=c.settings.submitHandler.call(c,c.currentForm,b),c.submitButton&&d.remove(),void 0!==e?e:!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,d;return a(this[0]).is(\"form\")?b=this.validate().form():(d=[],b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b,d=d.concat(c.errorList)}),c.errorList=d),b},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\",focusCleanup:!1,focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:\":hidden\",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(b,c){var d=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===c.which&&\"\"===this.elementValue(b)||-1!==a.inArray(c.keyCode,d)||(b.name in this.submitted||b===this.lastElement)&&this.element(b)},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.form,\"validator\"),d=\"on\"+b.type.replace(/^validate/,\"\"),e=c.settings;e[d]&&!a(this).is(e.ignore)&&e[d].call(c,this,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).on(\"focusin.validate focusout.validate keyup.validate\",\":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'], [type='radio'], [type='checkbox']\",b).on(\"click.validate\",\"select, option, [type='radio'], [type='checkbox']\",b),this.settings.invalidHandler&&a(this.currentForm).on(\"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();var b,c=this.elements().removeData(\"previousValue\").removeAttr(\"aria-invalid\");if(this.settings.unhighlight)for(b=0;c[b];b++)this.settings.unhighlight.call(this,c[b],this.settings.errorClass,\"\");else c.removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)c++;return c},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(a){a.not(this.containers).text(\"\"),this.addWrapper(a).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=b.type;return\"radio\"===e||\"checkbox\"===e?this.findByName(b.name).filter(\":checked\").val():\"number\"===e&&\"undefined\"!=typeof b.validity?b.validity.badInput?!1:d.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 instanceof TypeError&&(j.message+=\". Exception occurred when checking element \"+b.id+\", check the '\"+e.method+\"' method.\"),j}}if(!h)return this.objectLength(f)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data(\"msg\"+c.charAt(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;a
Warning: 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,e,f,g=this.errorsFor(b),h=this.idOrName(b),i=a(b).attr(\"aria-describedby\");g.length?(g.removeClass(this.settings.validClass).addClass(this.settings.errorClass),g.html(c)):(g=a(\"<\"+this.settings.errorElement+\">\").attr(\"id\",h+\"-error\").addClass(this.settings.errorClass).html(c||\"\"),d=g,this.settings.wrapper&&(d=g.hide().show().wrap(\"<\"+this.settings.wrapper+\"/>\").parent()),this.labelContainer.length?this.labelContainer.append(d):this.settings.errorPlacement?this.settings.errorPlacement(d,a(b)):d.insertAfter(b),g.is(\"label\")?g.attr(\"for\",h):0===g.parents(\"label[for='\"+h+\"']\").length&&(f=g.attr(\"id\").replace(/(:|\\.|\\[|\\]|\\$)/g,\"\\\\$1\"),i?i.match(new RegExp(\"\\\\b\"+f+\"\\\\b\"))||(i+=\" \"+f):i=f,a(b).attr(\"aria-describedby\",i),e=this.groups[b.name],e&&a.each(this.groups,function(b,c){c===e&&a(\"[name='\"+b+\"']\",this.currentForm).attr(\"aria-describedby\",g.attr(\"id\"))}))),!c&&this.settings.success&&(g.text(\"\"),\"string\"==typeof this.settings.success?g.addClass(this.settings.success):this.settings.success(g,b)),this.toShow=this.toShow.add(g)},errorsFor:function(b){var c=this.idOrName(b),d=a(b).attr(\"aria-describedby\"),e=\"label[for='\"+c+\"'], label[for='\"+c+\"'] *\";return d&&(e=e+\", #\"+d.replace(/\\s+/g,\", #\")),this.errors().filter(e)},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(b){return this.checkable(b)&&(b=this.findByName(b.name)),a(b).not(this.settings.ignore)[0]},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\")})},destroy:function(){this.resetForm(),a(this.currentForm).off(\".validate\").removeData(\"validator\")}},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},normalizeAttributeRule:function(a,b,c,d){/min|max/.test(c)&&(null===b||/number|range|text/.test(b))&&(d=Number(d),isNaN(d)&&(d=void 0)),d||0===d?a[c]=d:b===c&&\"range\"!==b&&(a[c]=!0)},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),this.normalizeAttributeRule(e,g,c,d);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute(\"type\");for(c in a.validator.methods)d=f.data(\"rule\"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),this.normalizeAttributeRule(e,g,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].replace(/[\\[\\]]/g,\"\").split(/[\\s,]+/),b[this]=[Number(c[0]),Number(c[1])]))}),a.validator.autoCreateRanges&&(null!=b.min&&null!=b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),null!=b.minlength&&null!=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: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?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})).?)(?::\\d{2,5})?(?:[/?#]\\S*)?$/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}[\\/\\-](0?[1-9]|1[012])[\\/\\-](0?[1-9]|[12][0-9]|3[01])$/.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(b,c);return this.optional(c)||e>=d},maxlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||d>=e},rangelength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(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.off(\".validate-equalTo\").on(\"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,{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\")}}});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)})});","/* NUGET: BEGIN LICENSE TEXT\r\n *\r\n * Microsoft grants you the right to use these script files for the sole\r\n * purpose of either: (i) interacting through your browser with the Microsoft\r\n * website or online service, subject to the applicable licensing or use\r\n * terms; or (ii) using the files as included with a Microsoft product subject\r\n * to that product's license terms. Microsoft reserves all other rights to the\r\n * files not expressly granted by Microsoft, whether by implication, estoppel\r\n * or otherwise. Insofar as a script file is dual licensed under GPL,\r\n * Microsoft neither took the code under GPL nor distributes it thereunder but\r\n * under the terms set out in this paragraph. All notices and licenses\r\n * below are for informational purposes only.\r\n *\r\n * NUGET: END LICENSE TEXT */\r\n/*\r\n** Unobtrusive validation support library for jQuery and jQuery Validate\r\n** Copyright (C) Microsoft Corporation. All rights reserved.\r\n*/\r\n(function(a){var d=a.validator,b,e=\"unobtrusiveValidation\";function c(a,b,c){a.rules[b]=c;if(a.message)a.messages[b]=a.message}function j(a){return a.replace(/^\\s+|\\s+$/g,\"\").split(/\\s*,\\s*/g)}function f(a){return a.replace(/([!\"#$%&'()*+,./:;<=>?@\\[\\\\\\]^`{|}~])/g,\"\\\\$1\")}function h(a){return a.substr(0,a.lastIndexOf(\".\")+1)}function g(a,b){if(a.indexOf(\"*.\")===0)a=a.replace(\"*.\",b);return a}function m(c,e){var b=a(this).find(\"[data-valmsg-for='\"+f(e[0].name)+\"']\"),d=b.attr(\"data-valmsg-replace\"),g=d?a.parseJSON(d)!==false:null;b.removeClass(\"field-validation-valid\").addClass(\"field-validation-error\");c.data(\"unobtrusiveContainer\",b);if(g){b.empty();c.removeClass(\"input-validation-error\").appendTo(b)}else c.hide()}function l(e,d){var c=a(this).find(\"[data-valmsg-summary=true]\"),b=c.find(\"ul\");if(b&&b.length&&d.errorList.length){b.empty();c.addClass(\"validation-summary-errors\").removeClass(\"validation-summary-valid\");a.each(d.errorList,function(){a(\"\").html(this.message).appendTo(b)})}}function k(d){var b=d.data(\"unobtrusiveContainer\"),c=b.attr(\"data-valmsg-replace\"),e=c?a.parseJSON(c):null;if(b){b.addClass(\"field-validation-valid\").removeClass(\"field-validation-error\");d.removeData(\"unobtrusiveContainer\");e&&b.empty()}}function n(){var b=a(this),c=\"__jquery_unobtrusive_validation_form_reset\";if(b.data(c))return;b.data(c,true);try{b.data(\"validator\").resetForm()}finally{b.removeData(c)}b.find(\".validation-summary-errors\").addClass(\"validation-summary-valid\").removeClass(\"validation-summary-errors\");b.find(\".field-validation-error\").addClass(\"field-validation-valid\").removeClass(\"field-validation-error\").removeData(\"unobtrusiveContainer\").find(\">*\").removeData(\"unobtrusiveContainer\")}function i(b){var c=a(b),f=c.data(e),i=a.proxy(n,b),g=d.unobtrusive.options||{},h=function(e,d){var c=g[e];c&&a.isFunction(c)&&c.apply(b,d)};if(!f){f={options:{errorClass:g.errorClass||\"input-validation-error\",errorElement:g.errorElement||\"span\",errorPlacement:function(){m.apply(b,arguments);h(\"errorPlacement\",arguments)},invalidHandler:function(){l.apply(b,arguments);h(\"invalidHandler\",arguments)},messages:{},rules:{},success:function(){k.apply(b,arguments);h(\"success\",arguments)}},attachValidation:function(){c.off(\"reset.\"+e,i).on(\"reset.\"+e,i).validate(this.options)},validate:function(){c.validate();return c.valid()}};c.data(e,f)}return f}d.unobtrusive={adapters:[],parseElement:function(b,h){var d=a(b),f=d.parents(\"form\")[0],c,e,g;if(!f)return;c=i(f);c.options.rules[b.name]=e={};c.options.messages[b.name]=g={};a.each(this.adapters,function(){var c=\"data-val-\"+this.name,i=d.attr(c),h={};if(i!==undefined){c+=\"-\";a.each(this.params,function(){h[this]=d.attr(c+this)});this.adapt({element:b,form:f,message:i,params:h,rules:e,messages:g})}});a.extend(e,{__dummy__:true});!h&&c.attachValidation()},parse:function(c){var b=a(c),e=b.parents().addBack().filter(\"form\").add(b.find(\"form\")).has(\"[data-val=true]\");b.find(\"[data-val=true]\").each(function(){d.unobtrusive.parseElement(this,true)});e.each(function(){var a=i(this);a&&a.attachValidation()})}};b=d.unobtrusive.adapters;b.add=function(c,a,b){if(!b){b=a;a=[]}this.push({name:c,params:a,adapt:b});return this};b.addBool=function(a,b){return this.add(a,function(d){c(d,b||a,true)})};b.addMinMax=function(e,g,f,a,d,b){return this.add(e,[d||\"min\",b||\"max\"],function(b){var e=b.params.min,d=b.params.max;if(e&&d)c(b,a,[e,d]);else if(e)c(b,g,e);else d&&c(b,f,d)})};b.addSingleVal=function(a,b,d){return this.add(a,[b||\"val\"],function(e){c(e,d||a,e.params[b])})};d.addMethod(\"__dummy__\",function(){return true});d.addMethod(\"regex\",function(b,c,d){var a;if(this.optional(c))return true;a=(new RegExp(d)).exec(b);return a&&a.index===0&&a[0].length===b.length});d.addMethod(\"nonalphamin\",function(c,d,b){var a;if(b){a=c.match(/\\W/g);a=a&&a.length>=b}return a});if(d.methods.extension){b.addSingleVal(\"accept\",\"mimtype\");b.addSingleVal(\"extension\",\"extension\")}else b.addSingleVal(\"extension\",\"extension\",\"accept\");b.addSingleVal(\"regex\",\"pattern\");b.addBool(\"creditcard\").addBool(\"date\").addBool(\"digits\").addBool(\"email\").addBool(\"number\").addBool(\"url\");b.addMinMax(\"length\",\"minlength\",\"maxlength\",\"rangelength\").addMinMax(\"range\",\"min\",\"max\",\"range\");b.addMinMax(\"minlength\",\"minlength\").addMinMax(\"maxlength\",\"minlength\",\"maxlength\");b.add(\"equalto\",[\"other\"],function(b){var i=h(b.element.name),j=b.params.other,d=g(j,i),e=a(b.form).find(\":input\").filter(\"[name='\"+f(d)+\"']\")[0];c(b,\"equalTo\",e)});b.add(\"required\",function(a){(a.element.tagName.toUpperCase()!==\"INPUT\"||a.element.type.toUpperCase()!==\"CHECKBOX\")&&c(a,\"required\",true)});b.add(\"remote\",[\"url\",\"type\",\"additionalfields\"],function(b){var d={url:b.params.url,type:b.params.type||\"GET\",data:{}},e=h(b.element.name);a.each(j(b.params.additionalfields||b.element.name),function(i,h){var c=g(h,e);d.data[c]=function(){var d=a(b.form).find(\":input\").filter(\"[name='\"+f(c)+\"']\");return d.is(\":checkbox\")?d.filter(\":checked\").val()||d.filter(\":hidden\").val()||\"\":d.is(\":radio\")?d.filter(\":checked\").val()||\"\":d.val()}});c(b,\"remote\",d)});b.add(\"password\",[\"min\",\"nonalphamin\",\"regex\"],function(a){a.params.min&&c(a,\"minlength\",a.params.min);a.params.nonalphamin&&c(a,\"nonalphamin\",a.params.nonalphamin);a.params.regex&&c(a,\"regex\",a.params.regex)});a(function(){d.unobtrusive.parse(document)})})(jQuery);","/*! VelocityJS.org (1.2.3). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */\r\n/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */\r\n!function(a){function b(a){var b=a.length,d=c.type(a);return\"function\"===d||c.isWindow(a)?!1:1===a.nodeType&&b?!0:\"array\"===d||0===b||\"number\"==typeof b&&b>0&&b-1 in a}if(!a.jQuery){var c=function(a,b){return new c.fn.init(a,b)};c.isWindow=function(a){return null!=a&&a==a.window},c.type=function(a){return null==a?a+\"\":\"object\"==typeof a||\"function\"==typeof a?e[g.call(a)]||\"object\":typeof a},c.isArray=Array.isArray||function(a){return\"array\"===c.type(a)},c.isPlainObject=function(a){var b;if(!a||\"object\"!==c.type(a)||a.nodeType||c.isWindow(a))return!1;try{if(a.constructor&&!f.call(a,\"constructor\")&&!f.call(a.constructor.prototype,\"isPrototypeOf\"))return!1}catch(d){return!1}for(b in a);return void 0===b||f.call(a,b)},c.each=function(a,c,d){var e,f=0,g=a.length,h=b(a);if(d){if(h)for(;g>f&&(e=c.apply(a[f],d),e!==!1);f++);else for(f in a)if(e=c.apply(a[f],d),e===!1)break}else if(h)for(;g>f&&(e=c.call(a[f],f,a[f]),e!==!1);f++);else for(f in a)if(e=c.call(a[f],f,a[f]),e===!1)break;return a},c.data=function(a,b,e){if(void 0===e){var f=a[c.expando],g=f&&d[f];if(void 0===b)return g;if(g&&b in g)return g[b]}else if(void 0!==b){var f=a[c.expando]||(a[c.expando]=++c.uuid);return d[f]=d[f]||{},d[f][b]=e,e}},c.removeData=function(a,b){var e=a[c.expando],f=e&&d[e];f&&c.each(b,function(a,b){delete f[b]})},c.extend=function(){var a,b,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;for(\"boolean\"==typeof h&&(k=h,h=arguments[i]||{},i++),\"object\"!=typeof h&&\"function\"!==c.type(h)&&(h={}),i===j&&(h=this,i--);j>i;i++)if(null!=(f=arguments[i]))for(e in f)a=h[e],d=f[e],h!==d&&(k&&d&&(c.isPlainObject(d)||(b=c.isArray(d)))?(b?(b=!1,g=a&&c.isArray(a)?a:[]):g=a&&c.isPlainObject(a)?a:{},h[e]=c.extend(k,g,d)):void 0!==d&&(h[e]=d));return h},c.queue=function(a,d,e){function f(a,c){var d=c||[];return null!=a&&(b(Object(a))?!function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;)a[e++]=b[d++];if(c!==c)for(;void 0!==b[d];)a[e++]=b[d++];return a.length=e,a}(d,\"string\"==typeof a?[a]:a):[].push.call(d,a)),d}if(a){d=(d||\"fx\")+\"queue\";var g=c.data(a,d);return e?(!g||c.isArray(e)?g=c.data(a,d,f(e)):g.push(e),g):g||[]}},c.dequeue=function(a,b){c.each(a.nodeType?[a]:a,function(a,d){b=b||\"fx\";var e=c.queue(d,b),f=e.shift();\"inprogress\"===f&&(f=e.shift()),f&&(\"fx\"===b&&e.unshift(\"inprogress\"),f.call(d,function(){c.dequeue(d,b)}))})},c.fn=c.prototype={init:function(a){if(a.nodeType)return this[0]=a,this;throw new Error(\"Not a DOM node.\")},offset:function(){var b=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:b.top+(a.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:b.left+(a.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function a(){for(var a=this.offsetParent||document;a&&\"html\"===!a.nodeType.toLowerCase&&\"static\"===a.style.position;)a=a.offsetParent;return a||document}var b=this[0],a=a.apply(b),d=this.offset(),e=/^(?:body|html)$/i.test(a.nodeName)?{top:0,left:0}:c(a).offset();return d.top-=parseFloat(b.style.marginTop)||0,d.left-=parseFloat(b.style.marginLeft)||0,a.style&&(e.top+=parseFloat(a.style.borderTopWidth)||0,e.left+=parseFloat(a.style.borderLeftWidth)||0),{top:d.top-e.top,left:d.left-e.left}}};var d={};c.expando=\"velocity\"+(new Date).getTime(),c.uuid=0;for(var e={},f=e.hasOwnProperty,g=e.toString,h=\"Boolean Number String Function Array Date RegExp Object Error\".split(\" \"),i=0;ie;++e){var f=j(c,a,d);if(0===f)return c;var g=i(c,a,d)-b;c-=g/f}return c}function l(){for(var b=0;t>b;++b)x[b]=i(b*u,a,d)}function m(b,c,e){var f,g,h=0;do g=c+(e-c)/2,f=i(g,a,d)-b,f>0?e=g:c=g;while(Math.abs(f)>r&&++h=q?k(b,h):0==i?h:m(b,c,c+u)}function o(){y=!0,(a!=c||d!=e)&&l()}var p=4,q=.001,r=1e-7,s=10,t=11,u=1/(t-1),v=\"Float32Array\"in b;if(4!==arguments.length)return!1;for(var w=0;4>w;++w)if(\"number\"!=typeof arguments[w]||isNaN(arguments[w])||!isFinite(arguments[w]))return!1;a=Math.min(a,1),d=Math.min(d,1),a=Math.max(a,0),d=Math.max(d,0);var x=v?new Float32Array(t):new Array(t),y=!1,z=function(b){return y||o(),a===c&&d===e?b:0===b?0:1===b?1:i(n(b),c,e)};z.getControlPoints=function(){return[{x:a,y:c},{x:d,y:e}]};var A=\"generateBezier(\"+[a,c,d,e]+\")\";return z.toString=function(){return A},z}function j(a,b){var c=a;return p.isString(a)?t.Easings[a]||(c=!1):c=p.isArray(a)&&1===a.length?h.apply(null,a):p.isArray(a)&&2===a.length?u.apply(null,a.concat([b])):p.isArray(a)&&4===a.length?i.apply(null,a):!1,c===!1&&(c=t.Easings[t.defaults.easing]?t.defaults.easing:s),c}function k(a){if(a){var b=(new Date).getTime(),c=t.State.calls.length;c>1e4&&(t.State.calls=e(t.State.calls));for(var f=0;c>f;f++)if(t.State.calls[f]){var h=t.State.calls[f],i=h[0],j=h[2],n=h[3],o=!!n,q=null;n||(n=t.State.calls[f][3]=b-16);for(var r=Math.min((b-n)/j.duration,1),s=0,u=i.length;u>s;s++){var w=i[s],y=w.element;if(g(y)){var z=!1;if(j.display!==d&&null!==j.display&&\"none\"!==j.display){if(\"flex\"===j.display){var A=[\"-webkit-box\",\"-moz-box\",\"-ms-flexbox\",\"-webkit-flex\"];m.each(A,function(a,b){v.setPropertyValue(y,\"display\",b)})}v.setPropertyValue(y,\"display\",j.display)}j.visibility!==d&&\"hidden\"!==j.visibility&&v.setPropertyValue(y,\"visibility\",j.visibility);for(var B in w)if(\"element\"!==B){var C,D=w[B],E=p.isString(D.easing)?t.Easings[D.easing]:D.easing;if(1===r)C=D.endValue;else{var F=D.endValue-D.startValue;if(C=D.startValue+F*E(r,j,F),!o&&C===D.currentValue)continue}if(D.currentValue=C,\"tween\"===B)q=C;else{if(v.Hooks.registered[B]){var G=v.Hooks.getRoot(B),H=g(y).rootPropertyValueCache[G];H&&(D.rootPropertyValue=H)}var I=v.setPropertyValue(y,B,D.currentValue+(0===parseFloat(C)?\"\":D.unitType),D.rootPropertyValue,D.scrollData);v.Hooks.registered[B]&&(g(y).rootPropertyValueCache[G]=v.Normalizations.registered[G]?v.Normalizations.registered[G](\"extract\",null,I[1]):I[1]),\"transform\"===I[0]&&(z=!0)}}j.mobileHA&&g(y).transformCache.translate3d===d&&(g(y).transformCache.translate3d=\"(0px, 0px, 0px)\",z=!0),z&&v.flushTransformCache(y)}}j.display!==d&&\"none\"!==j.display&&(t.State.calls[f][2].display=!1),j.visibility!==d&&\"hidden\"!==j.visibility&&(t.State.calls[f][2].visibility=!1),j.progress&&j.progress.call(h[1],h[1],r,Math.max(0,n+j.duration-b),n,q),1===r&&l(f)}}t.State.isTicking&&x(k)}function l(a,b){if(!t.State.calls[a])return!1;for(var c=t.State.calls[a][0],e=t.State.calls[a][1],f=t.State.calls[a][2],h=t.State.calls[a][4],i=!1,j=0,k=c.length;k>j;j++){var l=c[j].element;if(b||f.loop||(\"none\"===f.display&&v.setPropertyValue(l,\"display\",f.display),\"hidden\"===f.visibility&&v.setPropertyValue(l,\"visibility\",f.visibility)),f.loop!==!0&&(m.queue(l)[1]===d||!/\\.velocityQueueEntryFlag/i.test(m.queue(l)[1]))&&g(l)){g(l).isAnimating=!1,g(l).rootPropertyValueCache={};var n=!1;m.each(v.Lists.transforms3D,function(a,b){var c=/^scale/.test(b)?1:0,e=g(l).transformCache[b];g(l).transformCache[b]!==d&&new RegExp(\"^\\\\(\"+c+\"[^.]\").test(e)&&(n=!0,delete g(l).transformCache[b])}),f.mobileHA&&(n=!0,delete g(l).transformCache.translate3d),n&&v.flushTransformCache(l),v.Values.removeClass(l,\"velocity-animating\")}if(!b&&f.complete&&!f.loop&&j===k-1)try{f.complete.call(e,e)}catch(o){setTimeout(function(){throw o},1)}h&&f.loop!==!0&&h(e),g(l)&&f.loop===!0&&!b&&(m.each(g(l).tweensContainer,function(a,b){/^rotate/.test(a)&&360===parseFloat(b.endValue)&&(b.endValue=0,b.startValue=360),/^backgroundPosition/.test(a)&&100===parseFloat(b.endValue)&&\"%\"===b.unitType&&(b.endValue=0,b.startValue=100)}),t(l,\"reverse\",{loop:!0,delay:f.delay})),f.queue!==!1&&m.dequeue(l,f.queue)}t.State.calls[a]=!1;for(var p=0,q=t.State.calls.length;q>p;p++)if(t.State.calls[p]!==!1){i=!0;break}i===!1&&(t.State.isTicking=!1,delete t.State.calls,t.State.calls=[])}var m,n=function(){if(c.documentMode)return c.documentMode;for(var a=7;a>4;a--){var b=c.createElement(\"div\");if(b.innerHTML=\"\",b.getElementsByTagName(\"span\").length)return b=null,a}return d}(),o=function(){var a=0;return b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||function(b){var c,d=(new Date).getTime();return c=Math.max(0,16-(d-a)),a=d+c,setTimeout(function(){b(d+c)},c)}}(),p={isString:function(a){return\"string\"==typeof a},isArray:Array.isArray||function(a){return\"[object Array]\"===Object.prototype.toString.call(a)},isFunction:function(a){return\"[object Function]\"===Object.prototype.toString.call(a)},isNode:function(a){return a&&a.nodeType},isNodeList:function(a){return\"object\"==typeof a&&/^\\[object (HTMLCollection|NodeList|Object)\\]$/.test(Object.prototype.toString.call(a))&&a.length!==d&&(0===a.length||\"object\"==typeof a[0]&&a[0].nodeType>0)},isWrapped:function(a){return a&&(a.jquery||b.Zepto&&b.Zepto.zepto.isZ(a))},isSVG:function(a){return b.SVGElement&&a instanceof b.SVGElement},isEmptyObject:function(a){for(var b in a)return!1;return!0}},q=!1;if(a.fn&&a.fn.jquery?(m=a,q=!0):m=b.Velocity.Utilities,8>=n&&!q)throw new Error(\"Velocity: IE8 and below require jQuery to be loaded before Velocity.\");if(7>=n)return void(jQuery.fn.velocity=jQuery.fn.animate);var r=400,s=\"swing\",t={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\\.3\\.[3-7]/i.test(navigator.userAgent),isChrome:b.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:c.createElement(\"div\"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:m,Redirects:{},Easings:{},Promise:b.Promise,defaults:{queue:\"\",duration:r,easing:s,begin:d,complete:d,progress:d,display:d,visibility:d,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(a){m.data(a,\"velocity\",{isSVG:p.isSVG(a),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};b.pageYOffset!==d?(t.State.scrollAnchor=b,t.State.scrollPropertyLeft=\"pageXOffset\",t.State.scrollPropertyTop=\"pageYOffset\"):(t.State.scrollAnchor=c.documentElement||c.body.parentNode||c.body,t.State.scrollPropertyLeft=\"scrollLeft\",t.State.scrollPropertyTop=\"scrollTop\");var u=function(){function a(a){return-a.tension*a.x-a.friction*a.v}function b(b,c,d){var e={x:b.x+d.dx*c,v:b.v+d.dv*c,tension:b.tension,friction:b.friction};return{dx:e.v,dv:a(e)}}function c(c,d){var e={dx:c.v,dv:a(c)},f=b(c,.5*d,e),g=b(c,.5*d,f),h=b(c,d,g),i=1/6*(e.dx+2*(f.dx+g.dx)+h.dx),j=1/6*(e.dv+2*(f.dv+g.dv)+h.dv);return c.x=c.x+i*d,c.v=c.v+j*d,c}return function d(a,b,e){var f,g,h,i={x:-1,v:0,tension:null,friction:null},j=[0],k=0,l=1e-4,m=.016;for(a=parseFloat(a)||500,b=parseFloat(b)||20,e=e||null,i.tension=a,i.friction=b,f=null!==e,f?(k=d(a,b),g=k/e*m):g=m;;)if(h=c(h||i,g),j.push(1+h.x),k+=16,!(Math.abs(h.x)>l&&Math.abs(h.v)>l))break;return f?function(a){return j[a*(j.length-1)|0]}:k}}();t.Easings={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},spring:function(a){return 1-Math.cos(4.5*a*Math.PI)*Math.exp(6*-a)}},m.each([[\"ease\",[.25,.1,.25,1]],[\"ease-in\",[.42,0,1,1]],[\"ease-out\",[0,0,.58,1]],[\"ease-in-out\",[.42,0,.58,1]],[\"easeInSine\",[.47,0,.745,.715]],[\"easeOutSine\",[.39,.575,.565,1]],[\"easeInOutSine\",[.445,.05,.55,.95]],[\"easeInQuad\",[.55,.085,.68,.53]],[\"easeOutQuad\",[.25,.46,.45,.94]],[\"easeInOutQuad\",[.455,.03,.515,.955]],[\"easeInCubic\",[.55,.055,.675,.19]],[\"easeOutCubic\",[.215,.61,.355,1]],[\"easeInOutCubic\",[.645,.045,.355,1]],[\"easeInQuart\",[.895,.03,.685,.22]],[\"easeOutQuart\",[.165,.84,.44,1]],[\"easeInOutQuart\",[.77,0,.175,1]],[\"easeInQuint\",[.755,.05,.855,.06]],[\"easeOutQuint\",[.23,1,.32,1]],[\"easeInOutQuint\",[.86,0,.07,1]],[\"easeInExpo\",[.95,.05,.795,.035]],[\"easeOutExpo\",[.19,1,.22,1]],[\"easeInOutExpo\",[1,0,0,1]],[\"easeInCirc\",[.6,.04,.98,.335]],[\"easeOutCirc\",[.075,.82,.165,1]],[\"easeInOutCirc\",[.785,.135,.15,.86]]],function(a,b){t.Easings[b[0]]=i.apply(null,b[1])});var v=t.CSS={RegEx:{isHex:/^#([A-f\\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\\((.*)\\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\\(.+\\))|(([A-z0-9#-.]+?)(?=\\s|$))/gi},Lists:{colors:[\"fill\",\"stroke\",\"stopColor\",\"color\",\"backgroundColor\",\"borderColor\",\"borderTopColor\",\"borderRightColor\",\"borderBottomColor\",\"borderLeftColor\",\"outlineColor\"],transformsBase:[\"translateX\",\"translateY\",\"scale\",\"scaleX\",\"scaleY\",\"skewX\",\"skewY\",\"rotateZ\"],transforms3D:[\"transformPerspective\",\"translateZ\",\"scaleZ\",\"rotateX\",\"rotateY\"]},Hooks:{templates:{textShadow:[\"Color X Y Blur\",\"black 0px 0px 0px\"],boxShadow:[\"Color X Y Blur Spread\",\"black 0px 0px 0px 0px\"],clip:[\"Top Right Bottom Left\",\"0px 0px 0px 0px\"],backgroundPosition:[\"X Y\",\"0% 0%\"],transformOrigin:[\"X Y Z\",\"50% 50% 0px\"],perspectiveOrigin:[\"X Y\",\"50% 50%\"]},registered:{},register:function(){for(var a=0;a=n)switch(a){case\"name\":return\"filter\";case\"extract\":var d=c.toString().match(/alpha\\(opacity=(.*)\\)/i);return c=d?d[1]/100:1;case\"inject\":return b.style.zoom=1,parseFloat(c)>=1?\"\":\"alpha(opacity=\"+parseInt(100*parseFloat(c),10)+\")\"}else switch(a){case\"name\":return\"opacity\";case\"extract\":return c;case\"inject\":return c}}},register:function(){9>=n||t.State.isGingerbread||(v.Lists.transformsBase=v.Lists.transformsBase.concat(v.Lists.transforms3D));for(var a=0;ae&&(e=1),f=!/(\\d)$/i.test(e);break;case\"skew\":f=!/(deg|\\d)$/i.test(e);break;case\"rotate\":f=!/(deg|\\d)$/i.test(e)}return f||(g(c).transformCache[b]=\"(\"+e+\")\"),g(c).transformCache[b]}}}();for(var a=0;a=n||3!==f.split(\" \").length||(f+=\" 1\"),f;case\"inject\":return 8>=n?4===e.split(\" \").length&&(e=e.split(/\\s+/).slice(0,3).join(\" \")):3===e.split(\" \").length&&(e+=\" 1\"),(8>=n?\"rgb\":\"rgba\")+\"(\"+e.replace(/\\s+/g,\",\").replace(/\\.(\\d)+(?=,)/g,\"\")+\")\"}}}()}},Names:{camelCase:function(a){return a.replace(/-(\\w)/g,function(a,b){return b.toUpperCase()})},SVGAttribute:function(a){var b=\"width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2\";return(n||t.State.isAndroid&&!t.State.isChrome)&&(b+=\"|transform\"),new RegExp(\"^(\"+b+\")$\",\"i\").test(a)},prefixCheck:function(a){if(t.State.prefixMatches[a])return[t.State.prefixMatches[a],!0];for(var b=[\"\",\"Webkit\",\"Moz\",\"ms\",\"O\"],c=0,d=b.length;d>c;c++){var e;if(e=0===c?a:b[c]+a.replace(/^\\w/,function(a){return a.toUpperCase()}),p.isString(t.State.prefixElement.style[e]))return t.State.prefixMatches[a]=e,[e,!0]}return[a,!1]}},Values:{hexToRgb:function(a){var b,c=/^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i,d=/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i;return a=a.replace(c,function(a,b,c,d){return b+b+c+c+d+d}),b=d.exec(a),b?[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]:[0,0,0]},isCSSNullValue:function(a){return 0==a||/^(none|auto|transparent|(rgba\\(0, ?0, ?0, ?0\\)))$/i.test(a)},getUnitType:function(a){return/^(rotate|skew)/i.test(a)?\"deg\":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(a)?\"\":\"px\"},getDisplayType:function(a){var b=a&&a.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(b)?\"inline\":/^(li)$/i.test(b)?\"list-item\":/^(tr)$/i.test(b)?\"table-row\":/^(table)$/i.test(b)?\"table\":/^(tbody)$/i.test(b)?\"table-row-group\":\"block\"},addClass:function(a,b){a.classList?a.classList.add(b):a.className+=(a.className.length?\" \":\"\")+b},removeClass:function(a,b){a.classList?a.classList.remove(b):a.className=a.className.toString().replace(new RegExp(\"(^|\\\\s)\"+b.split(\" \").join(\"|\")+\"(\\\\s|$)\",\"gi\"),\" \")}},getPropertyValue:function(a,c,e,f){function h(a,c){function e(){j&&v.setPropertyValue(a,\"display\",\"none\")}var i=0;if(8>=n)i=m.css(a,c);else{var j=!1;if(/^(width|height)$/.test(c)&&0===v.getPropertyValue(a,\"display\")&&(j=!0,v.setPropertyValue(a,\"display\",v.Values.getDisplayType(a))),!f){if(\"height\"===c&&\"border-box\"!==v.getPropertyValue(a,\"boxSizing\").toString().toLowerCase()){var k=a.offsetHeight-(parseFloat(v.getPropertyValue(a,\"borderTopWidth\"))||0)-(parseFloat(v.getPropertyValue(a,\"borderBottomWidth\"))||0)-(parseFloat(v.getPropertyValue(a,\"paddingTop\"))||0)-(parseFloat(v.getPropertyValue(a,\"paddingBottom\"))||0);return e(),k}if(\"width\"===c&&\"border-box\"!==v.getPropertyValue(a,\"boxSizing\").toString().toLowerCase()){var l=a.offsetWidth-(parseFloat(v.getPropertyValue(a,\"borderLeftWidth\"))||0)-(parseFloat(v.getPropertyValue(a,\"borderRightWidth\"))||0)-(parseFloat(v.getPropertyValue(a,\"paddingLeft\"))||0)-(parseFloat(v.getPropertyValue(a,\"paddingRight\"))||0);return e(),l}}var o;o=g(a)===d?b.getComputedStyle(a,null):g(a).computedStyle?g(a).computedStyle:g(a).computedStyle=b.getComputedStyle(a,null),\"borderColor\"===c&&(c=\"borderTopColor\"),i=9===n&&\"filter\"===c?o.getPropertyValue(c):o[c],(\"\"===i||null===i)&&(i=a.style[c]),e()}if(\"auto\"===i&&/^(top|right|bottom|left)$/i.test(c)){var p=h(a,\"position\");(\"fixed\"===p||\"absolute\"===p&&/top|left/i.test(c))&&(i=m(a).position()[c]+\"px\")}return i}var i;if(v.Hooks.registered[c]){var j=c,k=v.Hooks.getRoot(j);e===d&&(e=v.getPropertyValue(a,v.Names.prefixCheck(k)[0])),v.Normalizations.registered[k]&&(e=v.Normalizations.registered[k](\"extract\",a,e)),i=v.Hooks.extractValue(j,e)}else if(v.Normalizations.registered[c]){var l,o;l=v.Normalizations.registered[c](\"name\",a),\"transform\"!==l&&(o=h(a,v.Names.prefixCheck(l)[0]),v.Values.isCSSNullValue(o)&&v.Hooks.templates[c]&&(o=v.Hooks.templates[c][1])),i=v.Normalizations.registered[c](\"extract\",a,o)}if(!/^[\\d-]/.test(i))if(g(a)&&g(a).isSVG&&v.Names.SVGAttribute(c))if(/^(height|width)$/i.test(c))try{i=a.getBBox()[c]}catch(p){i=0}else i=a.getAttribute(c);else i=h(a,v.Names.prefixCheck(c)[0]);return v.Values.isCSSNullValue(i)&&(i=0),t.debug>=2&&console.log(\"Get \"+c+\": \"+i),i},setPropertyValue:function(a,c,d,e,f){var h=c;if(\"scroll\"===c)f.container?f.container[\"scroll\"+f.direction]=d:\"Left\"===f.direction?b.scrollTo(d,f.alternateValue):b.scrollTo(f.alternateValue,d);else if(v.Normalizations.registered[c]&&\"transform\"===v.Normalizations.registered[c](\"name\",a))v.Normalizations.registered[c](\"inject\",a,d),h=\"transform\",d=g(a).transformCache[c];else{if(v.Hooks.registered[c]){var i=c,j=v.Hooks.getRoot(c);e=e||v.getPropertyValue(a,j),d=v.Hooks.injectValue(i,d,e),c=j}if(v.Normalizations.registered[c]&&(d=v.Normalizations.registered[c](\"inject\",a,d),c=v.Normalizations.registered[c](\"name\",a)),h=v.Names.prefixCheck(c)[0],8>=n)try{a.style[h]=d}catch(k){t.debug&&console.log(\"Browser does not support [\"+d+\"] for [\"+h+\"]\")}else g(a)&&g(a).isSVG&&v.Names.SVGAttribute(c)?a.setAttribute(c,d):a.style[h]=d;t.debug>=2&&console.log(\"Set \"+c+\" (\"+h+\"): \"+d)}return[h,d]},flushTransformCache:function(a){function b(b){return parseFloat(v.getPropertyValue(a,b))}var c=\"\";if((n||t.State.isAndroid&&!t.State.isChrome)&&g(a).isSVG){var d={translate:[b(\"translateX\"),b(\"translateY\")],skewX:[b(\"skewX\")],skewY:[b(\"skewY\")],scale:1!==b(\"scale\")?[b(\"scale\"),b(\"scale\")]:[b(\"scaleX\"),b(\"scaleY\")],rotate:[b(\"rotateZ\"),0,0]};m.each(g(a).transformCache,function(a){/^translate/i.test(a)?a=\"translate\":/^scale/i.test(a)?a=\"scale\":/^rotate/i.test(a)&&(a=\"rotate\"),d[a]&&(c+=a+\"(\"+d[a].join(\" \")+\") \",delete d[a])})}else{var e,f;m.each(g(a).transformCache,function(b){return e=g(a).transformCache[b],\"transformPerspective\"===b?(f=e,!0):(9===n&&\"rotateZ\"===b&&(b=\"rotate\"),void(c+=b+e+\" \"))}),f&&(c=\"perspective\"+f+\" \"+c)}v.setPropertyValue(a,\"transform\",c)}};v.Hooks.register(),v.Normalizations.register(),t.hook=function(a,b,c){var e=d;return a=f(a),m.each(a,function(a,f){if(g(f)===d&&t.init(f),c===d)e===d&&(e=t.CSS.getPropertyValue(f,b));else{var h=t.CSS.setPropertyValue(f,b,c);\"transform\"===h[0]&&t.CSS.flushTransformCache(f),e=h}}),e};var w=function(){function a(){return h?B.promise||null:i}function e(){function a(){function a(a,b){var c=d,e=d,g=d;return p.isArray(a)?(c=a[0],!p.isArray(a[1])&&/^[\\d-]/.test(a[1])||p.isFunction(a[1])||v.RegEx.isHex.test(a[1])?g=a[1]:(p.isString(a[1])&&!v.RegEx.isHex.test(a[1])||p.isArray(a[1]))&&(e=b?a[1]:j(a[1],h.duration),a[2]!==d&&(g=a[2]))):c=a,b||(e=e||h.easing),p.isFunction(c)&&(c=c.call(f,y,x)),p.isFunction(g)&&(g=g.call(f,y,x)),[c||0,e,g]}function l(a,b){var c,d;return d=(b||\"0\").toString().toLowerCase().replace(/[%A-z]+$/,function(a){return c=a,\"\"}),c||(c=v.Values.getUnitType(a)),[d,c]}function n(){var a={myParent:f.parentNode||c.body,position:v.getPropertyValue(f,\"position\"),fontSize:v.getPropertyValue(f,\"fontSize\")},d=a.position===I.lastPosition&&a.myParent===I.lastParent,e=a.fontSize===I.lastFontSize;I.lastParent=a.myParent,I.lastPosition=a.position,I.lastFontSize=a.fontSize;var h=100,i={};if(e&&d)i.emToPx=I.lastEmToPx,i.percentToPxWidth=I.lastPercentToPxWidth,i.percentToPxHeight=I.lastPercentToPxHeight;else{var j=g(f).isSVG?c.createElementNS(\"http://www.w3.org/2000/svg\",\"rect\"):c.createElement(\"div\");t.init(j),a.myParent.appendChild(j),m.each([\"overflow\",\"overflowX\",\"overflowY\"],function(a,b){t.CSS.setPropertyValue(j,b,\"hidden\")}),t.CSS.setPropertyValue(j,\"position\",a.position),t.CSS.setPropertyValue(j,\"fontSize\",a.fontSize),t.CSS.setPropertyValue(j,\"boxSizing\",\"content-box\"),m.each([\"minWidth\",\"maxWidth\",\"width\",\"minHeight\",\"maxHeight\",\"height\"],function(a,b){t.CSS.setPropertyValue(j,b,h+\"%\")}),t.CSS.setPropertyValue(j,\"paddingLeft\",h+\"em\"),i.percentToPxWidth=I.lastPercentToPxWidth=(parseFloat(v.getPropertyValue(j,\"width\",null,!0))||1)/h,i.percentToPxHeight=I.lastPercentToPxHeight=(parseFloat(v.getPropertyValue(j,\"height\",null,!0))||1)/h,i.emToPx=I.lastEmToPx=(parseFloat(v.getPropertyValue(j,\"paddingLeft\"))||1)/h,a.myParent.removeChild(j)}return null===I.remToPx&&(I.remToPx=parseFloat(v.getPropertyValue(c.body,\"fontSize\"))||16),null===I.vwToPx&&(I.vwToPx=parseFloat(b.innerWidth)/100,I.vhToPx=parseFloat(b.innerHeight)/100),i.remToPx=I.remToPx,i.vwToPx=I.vwToPx,i.vhToPx=I.vhToPx,t.debug>=1&&console.log(\"Unit ratios: \"+JSON.stringify(i),f),i}if(h.begin&&0===y)try{h.begin.call(o,o)}catch(r){setTimeout(function(){throw r},1)}if(\"scroll\"===C){var u,w,z,A=/^x$/i.test(h.axis)?\"Left\":\"Top\",D=parseFloat(h.offset)||0;h.container?p.isWrapped(h.container)||p.isNode(h.container)?(h.container=h.container[0]||h.container,u=h.container[\"scroll\"+A],z=u+m(f).position()[A.toLowerCase()]+D):h.container=null:(u=t.State.scrollAnchor[t.State[\"scrollProperty\"+A]],w=t.State.scrollAnchor[t.State[\"scrollProperty\"+(\"Left\"===A?\"Top\":\"Left\")]],z=m(f).offset()[A.toLowerCase()]+D),i={scroll:{rootPropertyValue:!1,startValue:u,currentValue:u,endValue:z,unitType:\"\",easing:h.easing,scrollData:{container:h.container,direction:A,alternateValue:w}},element:f},t.debug&&console.log(\"tweensContainer (scroll): \",i.scroll,f)}else if(\"reverse\"===C){if(!g(f).tweensContainer)return void m.dequeue(f,h.queue);\"none\"===g(f).opts.display&&(g(f).opts.display=\"auto\"),\"hidden\"===g(f).opts.visibility&&(g(f).opts.visibility=\"visible\"),g(f).opts.loop=!1,g(f).opts.begin=null,g(f).opts.complete=null,s.easing||delete h.easing,s.duration||delete h.duration,h=m.extend({},g(f).opts,h);var E=m.extend(!0,{},g(f).tweensContainer);for(var F in E)if(\"element\"!==F){var G=E[F].startValue;E[F].startValue=E[F].currentValue=E[F].endValue,E[F].endValue=G,p.isEmptyObject(s)||(E[F].easing=h.easing),t.debug&&console.log(\"reverse tweensContainer (\"+F+\"): \"+JSON.stringify(E[F]),f)}i=E}else if(\"start\"===C){var E;g(f).tweensContainer&&g(f).isAnimating===!0&&(E=g(f).tweensContainer),m.each(q,function(b,c){if(RegExp(\"^\"+v.Lists.colors.join(\"$|^\")+\"$\").test(b)){var e=a(c,!0),f=e[0],g=e[1],h=e[2];if(v.RegEx.isHex.test(f)){for(var i=[\"Red\",\"Green\",\"Blue\"],j=v.Values.hexToRgb(f),k=h?v.Values.hexToRgb(h):d,l=0;lL;L++){var M={delay:E.delay,progress:E.progress};L===K-1&&(M.display=E.display,M.visibility=E.visibility,M.complete=E.complete),w(o,\"reverse\",M)}return a()}};t=m.extend(w,t),t.animate=w;var x=b.requestAnimationFrame||o;return t.State.isMobile||c.hidden===d||c.addEventListener(\"visibilitychange\",function(){c.hidden?(x=function(a){return setTimeout(function(){a(!0)},16)},k()):x=b.requestAnimationFrame||o}),a.Velocity=t,a!==b&&(a.fn.velocity=w,a.fn.velocity.defaults=t.defaults),m.each([\"Down\",\"Up\"],function(a,b){t.Redirects[\"slide\"+b]=function(a,c,e,f,g,h){var i=m.extend({},c),j=i.begin,k=i.complete,l={height:\"\",marginTop:\"\",marginBottom:\"\",paddingTop:\"\",paddingBottom:\"\"},n={};i.display===d&&(i.display=\"Down\"===b?\"inline\"===t.CSS.Values.getDisplayType(a)?\"inline-block\":\"block\":\"none\"),i.begin=function(){j&&j.call(g,g);for(var c in l){n[c]=a.style[c];var d=t.CSS.getPropertyValue(a,c);l[c]=\"Down\"===b?[d,0]:[0,d]}n.overflow=a.style.overflow,a.style.overflow=\"hidden\"},i.complete=function(){for(var b in n)a.style[b]=n[b];k&&k.call(g,g),h&&h.resolver(g)},t(a,l,i)}}),m.each([\"In\",\"Out\"],function(a,b){t.Redirects[\"fade\"+b]=function(a,c,e,f,g,h){var i=m.extend({},c),j={opacity:\"In\"===b?1:0},k=i.complete;i.complete=e!==f-1?i.begin=null:function(){k&&k.call(g,g),h&&h.resolver(g)},i.display===d&&(i.display=\"In\"===b?\"auto\":\"none\"),t(this,j,i)}}),t}(window.jQuery||window.Zepto||window,window,document)});\r\n","/**\r\n * @license\r\n * lodash 3.10.1 (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE\r\n * Build: `lodash modern -o ./lodash.js`\r\n */\r\n;(function(){function n(n,t){if(n!==t){var r=null===n,e=n===w,u=n===n,o=null===t,i=t===w,f=t===t;if(n>t&&!o||!u||r&&!i&&f||e&&f)return 1;if(n=n&&9<=n&&13>=n||32==n||160==n||5760==n||6158==n||8192<=n&&(8202>=n||8232==n||8233==n||8239==n||8287==n||12288==n||65279==n);\r\n}function v(n,t){for(var r=-1,e=n.length,u=-1,o=[];++r=F&&gu&&lu?new Dn(t):null,c=t.length;a&&(i=Mn,f=false,t=a);n:for(;++oi(t,a,0)&&u.push(a);return u}function at(n,t){var r=true;return Su(n,function(n,e,u){return r=!!t(n,e,u)}),r}function ct(n,t,r,e){var u=e,o=u;return Su(n,function(n,i,f){i=+t(n,i,f),(r(i,u)||i===e&&i===o)&&(u=i,\r\no=n)}),o}function lt(n,t){var r=[];return Su(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function st(n,t,r,e){var u;return r(n,function(n,r,o){return t(n,r,o)?(u=e?r:n,false):void 0}),u}function pt(n,t,r,e){e||(e=[]);for(var u=-1,o=n.length;++ut&&(t=-t>u?0:u+t),r=r===w||r>u?u:+r||0,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Be(u);++e=c)break n;o=e[o],u*=\"asc\"===o||true===o?1:-1;break n}u=t.b-r.b}return u})}function $t(n,t){\r\nvar r=0;return Su(n,function(n,e,u){r+=+t(n,e,u)||0}),r}function St(n,t){var e=-1,u=xr(),o=n.length,i=u===r,f=i&&o>=F,a=f&&gu&&lu?new Dn(void 0):null,c=[];a?(u=Mn,i=false):(f=false,a=t?[]:c);n:for(;++eu(a,s,0)&&((t||f)&&a.push(s),c.push(l))}return c}function Ft(n,t){for(var r=-1,e=t.length,u=Be(e);++r>>1,i=n[o];(r?i<=t:iu?w:o,u=1);++e=F)return t.plant(e).value();for(var u=0,n=r?o[u].apply(this,n):e;++uarguments.length;return typeof e==\"function\"&&o===w&&Oo(r)?n(r,e,u,i):Ot(r,wr(e,o,4),u,i,t)}}function sr(n,t,r,e,u,o,i,f,a,c){function l(){for(var m=arguments.length,b=m,j=Be(m);b--;)j[b]=arguments[b];if(e&&(j=Mt(j,e,u)),o&&(j=qt(j,o,i)),_||y){var b=l.placeholder,k=v(j,b),m=m-k.length;if(mt?0:t)):[]}function Pr(n,t,r){var e=n?n.length:0;return e?((r?Ur(n,t,r):null==t)&&(t=1),t=e-(+t||0),Et(n,0,0>t?0:t)):[]}function Kr(n){return n?n[0]:w}function Vr(n,t,e){var u=n?n.length:0;if(!u)return-1;if(typeof e==\"number\")e=0>e?bu(u+e,0):e;else if(e)return e=Lt(n,t),\r\ner?bu(u+r,0):r||0,typeof n==\"string\"||!Oo(n)&&be(n)?r<=u&&-1t?0:+t||0,e);++r=n&&(t=w),r}}function ae(n,t,r){function e(t,r){r&&iu(r),a=p=h=w,t&&(_=ho(),c=n.apply(s,f),p||a||(f=s=w))}function u(){var n=t-(ho()-l);0>=n||n>t?e(h,a):p=su(u,n)}function o(){e(g,p);\r\n}function i(){if(f=arguments,l=ho(),s=this,h=g&&(p||!y),false===v)var r=y&&!p;else{a||y||(_=l);var e=v-(l-_),i=0>=e||e>v;i?(a&&(a=iu(a)),_=l,c=n.apply(s,f)):a||(a=su(o,e))}return i&&p?p=iu(p):p||t===v||(p=su(u,t)),r&&(i=true,c=n.apply(s,f)),!i||p||a||(f=s=w),c}var f,a,c,l,s,p,h,_=0,v=false,g=true;if(typeof n!=\"function\")throw new Ge(L);if(t=0>t?0:+t||0,true===r)var y=true,g=false;else ge(r)&&(y=!!r.leading,v=\"maxWait\"in r&&bu(+r.maxWait||0,t),g=\"trailing\"in r?!!r.trailing:g);return i.cancel=function(){p&&iu(p),a&&iu(a),\r\n_=0,a=p=h=w},i}function ce(n,t){function r(){var e=arguments,u=t?t.apply(this,e):e[0],o=r.cache;return o.has(u)?o.get(u):(e=n.apply(this,e),r.cache=o.set(u,e),e)}if(typeof n!=\"function\"||t&&typeof t!=\"function\")throw new Ge(L);return r.cache=new ce.Cache,r}function le(n,t){if(typeof n!=\"function\")throw new Ge(L);return t=bu(t===w?n.length-1:+t||0,0),function(){for(var r=arguments,e=-1,u=bu(r.length-t,0),o=Be(u);++et}function pe(n){return h(n)&&Er(n)&&nu.call(n,\"callee\")&&!cu.call(n,\"callee\")}function he(n,t,r,e){return e=(r=typeof r==\"function\"?Bt(r,e,3):w)?r(n,t):w,e===w?dt(n,t,r):!!e}function _e(n){return h(n)&&typeof n.message==\"string\"&&ru.call(n)==P}function ve(n){return ge(n)&&ru.call(n)==K}function ge(n){var t=typeof n;return!!n&&(\"object\"==t||\"function\"==t)}function ye(n){\r\nreturn null==n?false:ve(n)?uu.test(Qe.call(n)):h(n)&&Rn.test(n)}function de(n){return typeof n==\"number\"||h(n)&&ru.call(n)==V}function me(n){var t;if(!h(n)||ru.call(n)!=Z||pe(n)||!(nu.call(n,\"constructor\")||(t=n.constructor,typeof t!=\"function\"||t instanceof t)))return false;var r;return ht(n,function(n,t){r=t}),r===w||nu.call(n,r)}function we(n){return ge(n)&&ru.call(n)==Y}function be(n){return typeof n==\"string\"||h(n)&&ru.call(n)==G}function xe(n){return h(n)&&Sr(n.length)&&!!Sn[ru.call(n)]}function Ae(n,t){\r\nreturn nt||!n||!mu(t))return r;do t%2&&(r+=n),t=yu(t/2),n+=n;while(t);return r}function We(n,t,r){var e=n;return(n=u(n))?(r?Ur(e,t,r):null==t)?n.slice(g(n),y(n)+1):(t+=\"\",n.slice(o(n,t),i(n,t)+1)):n}function $e(n,t,r){return r&&Ur(n,t,r)&&(t=w),n=u(n),n.match(t||Wn)||[]}function Se(n,t,r){return r&&Ur(n,t,r)&&(t=w),h(n)?Ne(n):ut(n,t)}function Fe(n){\r\nreturn n}function Ne(n){return bt(ot(n,true))}function Te(n,t,r){if(null==r){var e=ge(t),u=e?zo(t):w;((u=u&&u.length?gt(t,u):w)?u.length:e)||(u=false,r=t,t=n,n=this)}u||(u=gt(t,zo(t)));var o=true,e=-1,i=ve(n),f=u.length;false===r?o=false:ge(r)&&\"chain\"in r&&(o=r.chain);for(;++e=$)return r}else n=0;return Lu(r,e)}}(),Mu=le(function(n,t){\r\nreturn h(n)&&Er(n)?ft(n,pt(t,false,true)):[]}),qu=tr(),Pu=tr(true),Ku=le(function(n){for(var t=n.length,e=t,u=Be(l),o=xr(),i=o===r,f=[];e--;){var a=n[e]=Er(a=n[e])?a:[];u[e]=i&&120<=a.length&&gu&&lu?new Dn(e&&a):null}var i=n[0],c=-1,l=i?i.length:0,s=u[0];n:for(;++c(s?Mn(s,a):o(f,a,0))){for(e=t;--e;){var p=u[e];if(0>(p?Mn(p,a):o(n[e],a,0)))continue n}s&&s.push(a),f.push(a)}return f}),Vu=le(function(t,r){r=pt(r);var e=rt(t,r);return It(t,r.sort(n)),e}),Zu=vr(),Yu=vr(true),Gu=le(function(n){return St(pt(n,false,true));\r\n}),Ju=le(function(n,t){return Er(n)?ft(n,t):[]}),Xu=le(Jr),Hu=le(function(n){var t=n.length,r=2--n?t.apply(this,arguments):void 0}},Nn.ary=function(n,t,r){return r&&Ur(n,t,r)&&(t=w),t=n&&null==t?n.length:bu(+t||0,0),gr(n,E,w,w,w,w,t)},Nn.assign=Co,Nn.at=no,Nn.before=fe,Nn.bind=_o,Nn.bindAll=vo,Nn.bindKey=go,Nn.callback=Se,Nn.chain=Qr,Nn.chunk=function(n,t,r){t=(r?Ur(n,t,r):null==t)?1:bu(yu(t)||1,1),r=0;for(var e=n?n.length:0,u=-1,o=Be(vu(e/t));rr&&(r=-r>u?0:u+r),e=e===w||e>u?u:+e||0,0>e&&(e+=u),u=r>e?0:e>>>0,r>>>=0;rt?0:t)):[]},Nn.takeRight=function(n,t,r){var e=n?n.length:0;return e?((r?Ur(n,t,r):null==t)&&(t=1),t=e-(+t||0),Et(n,0>t?0:t)):[]},Nn.takeRightWhile=function(n,t,r){\r\nreturn n&&n.length?Nt(n,wr(t,r,3),false,true):[]},Nn.takeWhile=function(n,t,r){return n&&n.length?Nt(n,wr(t,r,3)):[]},Nn.tap=function(n,t,r){return t.call(r,n),n},Nn.throttle=function(n,t,r){var e=true,u=true;if(typeof n!=\"function\")throw new Ge(L);return false===r?e=false:ge(r)&&(e=\"leading\"in r?!!r.leading:e,u=\"trailing\"in r?!!r.trailing:u),ae(n,t,{leading:e,maxWait:+t,trailing:u})},Nn.thru=ne,Nn.times=function(n,t,r){if(n=yu(n),1>n||!mu(n))return[];var e=-1,u=Be(xu(n,4294967295));for(t=Bt(t,r,1);++ee?u[e]=t(e):t(e);\r\nreturn u},Nn.toArray=je,Nn.toPlainObject=ke,Nn.transform=function(n,t,r,e){var u=Oo(n)||xe(n);return t=wr(t,e,4),null==r&&(u||ge(n)?(e=n.constructor,r=u?Oo(n)?new e:[]:$u(ve(e)?e.prototype:w)):r={}),(u?Pn:_t)(n,function(n,e,u){return t(r,n,e,u)}),r},Nn.union=Gu,Nn.uniq=Gr,Nn.unzip=Jr,Nn.unzipWith=Xr,Nn.values=Ee,Nn.valuesIn=function(n){return Ft(n,Re(n))},Nn.where=function(n,t){return re(n,bt(t))},Nn.without=Ju,Nn.wrap=function(n,t){return t=null==t?Fe:t,gr(t,R,w,[n],[])},Nn.xor=function(){for(var n=-1,t=arguments.length;++nr?0:+r||0,e),r-=t.length,0<=r&&n.indexOf(t,r)==r},Nn.escape=function(n){return(n=u(n))&&hn.test(n)?n.replace(sn,c):n},Nn.escapeRegExp=function(n){return(n=u(n))&&bn.test(n)?n.replace(wn,l):n||\"(?:)\"},Nn.every=te,Nn.find=ro,Nn.findIndex=qu,Nn.findKey=$o,Nn.findLast=eo,\r\nNn.findLastIndex=Pu,Nn.findLastKey=So,Nn.findWhere=function(n,t){return ro(n,bt(t))},Nn.first=Kr,Nn.floor=ni,Nn.get=function(n,t,r){return n=null==n?w:yt(n,Dr(t),t+\"\"),n===w?r:n},Nn.gt=se,Nn.gte=function(n,t){return n>=t},Nn.has=function(n,t){if(null==n)return false;var r=nu.call(n,t);if(!r&&!Wr(t)){if(t=Dr(t),n=1==t.length?n:yt(n,Et(t,0,-1)),null==n)return false;t=Zr(t),r=nu.call(n,t)}return r||Sr(n.length)&&Cr(t,n.length)&&(Oo(n)||pe(n))},Nn.identity=Fe,Nn.includes=ee,Nn.indexOf=Vr,Nn.inRange=function(n,t,r){\r\nreturn t=+t||0,r===w?(r=t,t=0):r=+r||0,n>=xu(t,r)&&nr?bu(e+r,0):xu(r||0,e-1))+1;else if(r)return u=Lt(n,t,true)-1,n=n[u],(t===t?t===n:n!==n)?u:-1;\r\nif(t!==t)return p(n,u,true);for(;u--;)if(n[u]===t)return u;return-1},Nn.lt=Ae,Nn.lte=function(n,t){return n<=t},Nn.max=ti,Nn.min=ri,Nn.noConflict=function(){return Zn._=eu,this},Nn.noop=Le,Nn.now=ho,Nn.pad=function(n,t,r){n=u(n),t=+t;var e=n.length;return er?0:+r||0,n.length),n.lastIndexOf(t,r)==r},Nn.sum=function(n,t,r){if(r&&Ur(n,t,r)&&(t=w),t=wr(t,r,3),1==t.length){n=Oo(n)?n:zr(n),r=n.length;for(var e=0;r--;)e+=+t(n[r])||0;n=e}else n=$t(n,t);return n},Nn.template=function(n,t,r){var e=Nn.templateSettings;r&&Ur(n,t,r)&&(t=r=w),n=u(n),t=nt(tt({},r||t),e,Qn),r=nt(tt({},t.imports),e.imports,Qn);\r\nvar o,i,f=zo(r),a=Ft(r,f),c=0;r=t.interpolate||Cn;var l=\"__p+='\";r=Ze((t.escape||Cn).source+\"|\"+r.source+\"|\"+(r===gn?jn:Cn).source+\"|\"+(t.evaluate||Cn).source+\"|$\",\"g\");var p=\"sourceURL\"in t?\"//# sourceURL=\"+t.sourceURL+\"\\n\":\"\";if(n.replace(r,function(t,r,e,u,f,a){return e||(e=u),l+=n.slice(c,a).replace(Un,s),r&&(o=true,l+=\"'+__e(\"+r+\")+'\"),f&&(i=true,l+=\"';\"+f+\";\\n__p+='\"),e&&(l+=\"'+((__t=(\"+e+\"))==null?'':__t)+'\"),c=a+t.length,t}),l+=\"';\",(t=t.variable)||(l=\"with(obj){\"+l+\"}\"),l=(i?l.replace(fn,\"\"):l).replace(an,\"$1\").replace(cn,\"$1;\"),\r\nl=\"function(\"+(t||\"obj\")+\"){\"+(t?\"\":\"obj||(obj={});\")+\"var __t,__p=''\"+(o?\",__e=_.escape\":\"\")+(i?\",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}\":\";\")+l+\"return __p}\",t=Jo(function(){return qe(f,p+\"return \"+l).apply(w,a)}),t.source=l,_e(t))throw t;return t},Nn.trim=We,Nn.trimLeft=function(n,t,r){var e=n;return(n=u(n))?n.slice((r?Ur(e,t,r):null==t)?g(n):o(n,t+\"\")):n},Nn.trimRight=function(n,t,r){var e=n;return(n=u(n))?(r?Ur(e,t,r):null==t)?n.slice(0,y(n)+1):n.slice(0,i(n,t+\"\")+1):n;\r\n},Nn.trunc=function(n,t,r){r&&Ur(n,t,r)&&(t=w);var e=U;if(r=W,null!=t)if(ge(t)){var o=\"separator\"in t?t.separator:o,e=\"length\"in t?+t.length||0:e;r=\"omission\"in t?u(t.omission):r}else e=+t||0;if(n=u(n),e>=n.length)return n;if(e-=r.length,1>e)return r;if(t=n.slice(0,e),null==o)return t+r;if(we(o)){if(n.slice(e).search(o)){var i,f=n.slice(0,e);for(o.global||(o=Ze(o.source,(kn.exec(o)||\"\")+\"g\")),o.lastIndex=0;n=o.exec(f);)i=n.index;t=t.slice(0,null==i?e:i)}}else n.indexOf(o,e)!=e&&(o=t.lastIndexOf(o),\r\n-1u.__dir__?\"Right\":\"\")}),u},zn.prototype[n+\"Right\"]=function(t){return this.reverse()[n](t).reverse()}}),Pn([\"filter\",\"map\",\"takeWhile\"],function(n,t){\r\nvar r=t+1,e=r!=T;zn.prototype[n]=function(n,t){var u=this.clone();return u.__iteratees__.push({iteratee:wr(n,t,1),type:r}),u.__filtered__=u.__filtered__||e,u}}),Pn([\"first\",\"last\"],function(n,t){var r=\"take\"+(t?\"Right\":\"\");zn.prototype[n]=function(){return this[r](1).value()[0]}}),Pn([\"initial\",\"rest\"],function(n,t){var r=\"drop\"+(t?\"\":\"Right\");zn.prototype[n]=function(){return this.__filtered__?new zn(this):this[r](1)}}),Pn([\"pluck\",\"where\"],function(n,t){var r=t?\"filter\":\"map\",e=t?bt:ze;zn.prototype[n]=function(n){\r\nreturn this[r](e(n))}}),zn.prototype.compact=function(){return this.filter(Fe)},zn.prototype.reject=function(n,t){return n=wr(n,t,1),this.filter(function(t){return!n(t)})},zn.prototype.slice=function(n,t){n=null==n?0:+n||0;var r=this;return r.__filtered__&&(0t)?new zn(r):(0>n?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==w&&(t=+t||0,r=0>t?r.dropRight(-t):r.take(t-n)),r)},zn.prototype.takeRightWhile=function(n,t){return this.reverse().takeWhile(n,t).reverse()},zn.prototype.toArray=function(){return this.take(Ru);\r\n},_t(zn.prototype,function(n,t){var r=/^(?:filter|map|reject)|While$/.test(t),e=/^(?:first|last)$/.test(t),u=Nn[e?\"take\"+(\"last\"==t?\"Right\":\"\"):t];u&&(Nn.prototype[t]=function(){function t(n){return e&&i?u(n,1)[0]:u.apply(w,Jn([n],o))}var o=e?[1]:arguments,i=this.__chain__,f=this.__wrapped__,a=!!this.__actions__.length,c=f instanceof zn,l=o[0],s=c||Oo(f);return s&&r&&typeof l==\"function\"&&1!=l.length&&(c=s=false),l={func:ne,args:[t],thisArg:w},a=c&&!a,e&&!i?a?(f=f.clone(),f.__actions__.push(l),n.call(f)):u.call(w,this.value())[0]:!e&&s?(f=a?f:new zn(this),\r\nf=n.apply(f,o),f.__actions__.push(l),new Ln(f,i)):this.thru(t)})}),Pn(\"join pop push replace shift sort splice split unshift\".split(\" \"),function(n){var t=(/^(?:replace|split)$/.test(n)?He:Je)[n],r=/^(?:push|sort|unshift)$/.test(n)?\"tap\":\"thru\",e=/^(?:join|pop|replace|shift)$/.test(n);Nn.prototype[n]=function(){var n=arguments;return e&&!this.__chain__?t.apply(this.value(),n):this[r](function(r){return t.apply(r,n)})}}),_t(zn.prototype,function(n,t){var r=Nn[t];if(r){var e=r.name+\"\";(Wu[e]||(Wu[e]=[])).push({\r\nname:t,func:r})}}),Wu[sr(w,A).name]=[{name:\"wrapper\",func:w}],zn.prototype.clone=function(){var n=new zn(this.__wrapped__);return n.__actions__=qn(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=qn(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=qn(this.__views__),n},zn.prototype.reverse=function(){if(this.__filtered__){var n=new zn(this);n.__dir__=-1,n.__filtered__=true}else n=this.clone(),n.__dir__*=-1;return n},zn.prototype.value=function(){\r\nvar n,t=this.__wrapped__.value(),r=this.__dir__,e=Oo(t),u=0>r,o=e?t.length:0;n=o;for(var i=this.__views__,f=0,a=-1,c=i.length;++a\"'`]/g,pn=RegExp(ln.source),hn=RegExp(sn.source),_n=/<%-([\\s\\S]+?)%>/g,vn=/<%([\\s\\S]+?)%>/g,gn=/<%=([\\s\\S]+?)%>/g,yn=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?\\1)\\]/,dn=/^\\w*$/,mn=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g,wn=/^[:!,]|[\\\\^$.*+?()[\\]{}|\\/]|(^[0-9a-fA-Fnrtuvx])|([\\n\\r\\u2028\\u2029])/g,bn=RegExp(wn.source),xn=/[\\u0300-\\u036f\\ufe20-\\ufe23]/g,An=/\\\\(\\\\)?/g,jn=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,kn=/\\w*$/,In=/^0[xX]/,Rn=/^\\[object .+?Constructor\\]$/,On=/^\\d+$/,En=/[\\xc0-\\xd6\\xd8-\\xde\\xdf-\\xf6\\xf8-\\xff]/g,Cn=/($^)/,Un=/['\\n\\r\\u2028\\u2029\\\\]/g,Wn=RegExp(\"[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]+(?=[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde][a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff]+)|[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]?[a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff]+|[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]+|[0-9]+\",\"g\"),$n=\"Array ArrayBuffer Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Math Number Object RegExp Set String _ clearTimeout isFinite parseFloat parseInt setTimeout TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap\".split(\" \"),Sn={};\r\nSn[X]=Sn[H]=Sn[Q]=Sn[nn]=Sn[tn]=Sn[rn]=Sn[en]=Sn[un]=Sn[on]=true,Sn[B]=Sn[D]=Sn[J]=Sn[M]=Sn[q]=Sn[P]=Sn[K]=Sn[\"[object Map]\"]=Sn[V]=Sn[Z]=Sn[Y]=Sn[\"[object Set]\"]=Sn[G]=Sn[\"[object WeakMap]\"]=false;var Fn={};Fn[B]=Fn[D]=Fn[J]=Fn[M]=Fn[q]=Fn[X]=Fn[H]=Fn[Q]=Fn[nn]=Fn[tn]=Fn[V]=Fn[Z]=Fn[Y]=Fn[G]=Fn[rn]=Fn[en]=Fn[un]=Fn[on]=true,Fn[P]=Fn[K]=Fn[\"[object Map]\"]=Fn[\"[object Set]\"]=Fn[\"[object WeakMap]\"]=false;var Nn={\"\\xc0\":\"A\",\"\\xc1\":\"A\",\"\\xc2\":\"A\",\"\\xc3\":\"A\",\"\\xc4\":\"A\",\"\\xc5\":\"A\",\"\\xe0\":\"a\",\"\\xe1\":\"a\",\"\\xe2\":\"a\",\r\n\"\\xe3\":\"a\",\"\\xe4\":\"a\",\"\\xe5\":\"a\",\"\\xc7\":\"C\",\"\\xe7\":\"c\",\"\\xd0\":\"D\",\"\\xf0\":\"d\",\"\\xc8\":\"E\",\"\\xc9\":\"E\",\"\\xca\":\"E\",\"\\xcb\":\"E\",\"\\xe8\":\"e\",\"\\xe9\":\"e\",\"\\xea\":\"e\",\"\\xeb\":\"e\",\"\\xcc\":\"I\",\"\\xcd\":\"I\",\"\\xce\":\"I\",\"\\xcf\":\"I\",\"\\xec\":\"i\",\"\\xed\":\"i\",\"\\xee\":\"i\",\"\\xef\":\"i\",\"\\xd1\":\"N\",\"\\xf1\":\"n\",\"\\xd2\":\"O\",\"\\xd3\":\"O\",\"\\xd4\":\"O\",\"\\xd5\":\"O\",\"\\xd6\":\"O\",\"\\xd8\":\"O\",\"\\xf2\":\"o\",\"\\xf3\":\"o\",\"\\xf4\":\"o\",\"\\xf5\":\"o\",\"\\xf6\":\"o\",\"\\xf8\":\"o\",\"\\xd9\":\"U\",\"\\xda\":\"U\",\"\\xdb\":\"U\",\"\\xdc\":\"U\",\"\\xf9\":\"u\",\"\\xfa\":\"u\",\"\\xfb\":\"u\",\"\\xfc\":\"u\",\"\\xdd\":\"Y\",\r\n\"\\xfd\":\"y\",\"\\xff\":\"y\",\"\\xc6\":\"Ae\",\"\\xe6\":\"ae\",\"\\xde\":\"Th\",\"\\xfe\":\"th\",\"\\xdf\":\"ss\"},Tn={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\",\"`\":\"`\"},Ln={\"&\":\"&\",\"<\":\"<\",\">\":\">\",\""\":'\"',\"'\":\"'\",\"`\":\"`\"},zn={\"function\":true,object:true},Bn={0:\"x30\",1:\"x31\",2:\"x32\",3:\"x33\",4:\"x34\",5:\"x35\",6:\"x36\",7:\"x37\",8:\"x38\",9:\"x39\",A:\"x41\",B:\"x42\",C:\"x43\",D:\"x44\",E:\"x45\",F:\"x46\",a:\"x61\",b:\"x62\",c:\"x63\",d:\"x64\",e:\"x65\",f:\"x66\",n:\"x6e\",r:\"x72\",t:\"x74\",u:\"x75\",v:\"x76\",x:\"x78\"},Dn={\"\\\\\":\"\\\\\",\r\n\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},Mn=zn[typeof exports]&&exports&&!exports.nodeType&&exports,qn=zn[typeof module]&&module&&!module.nodeType&&module,Pn=zn[typeof self]&&self&&self.Object&&self,Kn=zn[typeof window]&&window&&window.Object&&window,Vn=qn&&qn.exports===Mn&&Mn,Zn=Mn&&qn&&typeof global==\"object\"&&global&&global.Object&&global||Kn!==(this&&this.window)&&Kn||Pn||this,Yn=m();typeof define==\"function\"&&typeof define.amd==\"object\"&&define.amd?(Zn._=Yn, define(function(){\r\nreturn Yn})):Mn&&qn?Vn?(qn.exports=Yn)._=Yn:Mn._=Yn:Zn._=Yn}).call(this);\r\n","/*!\r\n * Flickity PACKAGED v1.1.1\r\n * Touch, responsive, flickable galleries\r\n *\r\n * Licensed GPLv3 for open source use\r\n * or Flickity Commercial License for commercial use\r\n *\r\n * http://flickity.metafizzy.co\r\n * Copyright 2015 Metafizzy\r\n */\r\n\r\n!function(t){function e(){}function i(t){function i(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}function o(e,i){t.fn[e]=function(o){if(\"string\"==typeof o){for(var s=n.call(arguments,1),a=0,l=this.length;l>a;a++){var h=this[a],c=t.data(h,e);if(c)if(t.isFunction(c[o])&&\"_\"!==o.charAt(0)){var p=c[o].apply(c,s);if(void 0!==p)return p}else r(\"no such method '\"+o+\"' for \"+e+\" instance\");else r(\"cannot call methods on \"+e+\" prior to initialization; attempted to call '\"+o+\"'\")}return this}return this.each(function(){var n=t.data(this,e);n?(n.option(o),n._init()):(n=new i(this,o),t.data(this,e,n))})}}if(t){var r=\"undefined\"==typeof console?e:function(t){console.error(t)};return t.bridget=function(t,e){i(e),o(t,e)},t.bridget}}var n=Array.prototype.slice;\"function\"==typeof define&&define.amd?define(\"jquery-bridget/jquery.bridget\",[\"jquery\"],i):i(\"object\"==typeof exports?require(\"jquery\"):t.jQuery)}(window),function(t){function e(t){return new RegExp(\"(^|\\\\s+)\"+t+\"(\\\\s+|$)\")}function i(t,e){var i=n(t,e)?r:o;i(t,e)}var n,o,r;\"classList\"in document.documentElement?(n=function(t,e){return t.classList.contains(e)},o=function(t,e){t.classList.add(e)},r=function(t,e){t.classList.remove(e)}):(n=function(t,i){return e(i).test(t.className)},o=function(t,e){n(t,e)||(t.className=t.className+\" \"+e)},r=function(t,i){t.className=t.className.replace(e(i),\" \")});var s={hasClass:n,addClass:o,removeClass:r,toggleClass:i,has:n,add:o,remove:r,toggle:i};\"function\"==typeof define&&define.amd?define(\"classie/classie\",s):\"object\"==typeof exports?module.exports=s:t.classie=s}(window),function(){\"use strict\";function t(){}function e(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}var n=t.prototype,o=this,r=o.EventEmitter;n.getListeners=function(t){var e,i,n=this._getEvents();if(t instanceof RegExp){e={};for(i in n)n.hasOwnProperty(i)&&t.test(i)&&(e[i]=n[i])}else e=n[t]||(n[t]=[]);return e},n.flattenListeners=function(t){var e,i=[];for(e=0;eo;o++)if(e=i[o]+t,\"string\"==typeof n[e])return e}}var i=\"Webkit Moz ms Ms O\".split(\" \"),n=document.documentElement.style;\"function\"==typeof define&&define.amd?define(\"get-style-property/get-style-property\",[],function(){return e}):\"object\"==typeof exports?module.exports=e:t.getStyleProperty=e}(window),function(t,e){function i(t){var e=parseFloat(t),i=-1===t.indexOf(\"%\")&&!isNaN(e);return i&&e}function n(){}function o(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=a.length;i>e;e++){var n=a[e];t[n]=0}return t}function r(e){function n(){if(!d){d=!0;var n=t.getComputedStyle;if(h=function(){var t=n?function(t){return n(t,null)}:function(t){return t.currentStyle};return function(e){var i=t(e);return i||s(\"Style returned \"+i+\". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1\"),i}}(),c=e(\"boxSizing\")){var o=document.createElement(\"div\");o.style.width=\"200px\",o.style.padding=\"1px 2px 3px 4px\",o.style.borderStyle=\"solid\",o.style.borderWidth=\"1px 2px 3px 4px\",o.style[c]=\"border-box\";var r=document.body||document.documentElement;r.appendChild(o);var a=h(o);p=200===i(a.width),r.removeChild(o)}}}function r(t){if(n(),\"string\"==typeof t&&(t=document.querySelector(t)),t&&\"object\"==typeof t&&t.nodeType){var e=h(t);if(\"none\"===e.display)return o();var r={};r.width=t.offsetWidth,r.height=t.offsetHeight;for(var s=r.isBorderBox=!(!c||!e[c]||\"border-box\"!==e[c]),d=0,u=a.length;u>d;d++){var f=a[d],v=e[f];v=l(t,v);var y=parseFloat(v);r[f]=isNaN(y)?0:y}var g=r.paddingLeft+r.paddingRight,m=r.paddingTop+r.paddingBottom,b=r.marginLeft+r.marginRight,S=r.marginTop+r.marginBottom,x=r.borderLeftWidth+r.borderRightWidth,C=r.borderTopWidth+r.borderBottomWidth,w=s&&p,E=i(e.width);E!==!1&&(r.width=E+(w?0:g+x));var P=i(e.height);return P!==!1&&(r.height=P+(w?0:m+C)),r.innerWidth=r.width-(g+x),r.innerHeight=r.height-(m+C),r.outerWidth=r.width+b,r.outerHeight=r.height+S,r}}function l(e,i){if(t.getComputedStyle||-1===i.indexOf(\"%\"))return i;var n=e.style,o=n.left,r=e.runtimeStyle,s=r&&r.left;return s&&(r.left=e.currentStyle.left),n.left=i,i=n.pixelLeft,n.left=o,s&&(r.left=s),i}var h,c,p,d=!1;return r}var s=\"undefined\"==typeof console?n:function(t){console.error(t)},a=[\"paddingLeft\",\"paddingRight\",\"paddingTop\",\"paddingBottom\",\"marginLeft\",\"marginRight\",\"marginTop\",\"marginBottom\",\"borderLeftWidth\",\"borderRightWidth\",\"borderTopWidth\",\"borderBottomWidth\"];\"function\"==typeof define&&define.amd?define(\"get-size/get-size\",[\"get-style-property/get-style-property\"],r):\"object\"==typeof exports?module.exports=r(require(\"desandro-get-style-property\")):t.getSize=r(t.getStyleProperty)}(window),function(t){function e(t){\"function\"==typeof t&&(e.isReady?t():s.push(t))}function i(t){var i=\"readystatechange\"===t.type&&\"complete\"!==r.readyState;e.isReady||i||n()}function n(){e.isReady=!0;for(var t=0,i=s.length;i>t;t++){var n=s[t];n()}}function o(o){return\"complete\"===r.readyState?n():(o.bind(r,\"DOMContentLoaded\",i),o.bind(r,\"readystatechange\",i),o.bind(t,\"load\",i)),e}var r=t.document,s=[];e.isReady=!1,\"function\"==typeof define&&define.amd?define(\"doc-ready/doc-ready\",[\"eventie/eventie\"],o):\"object\"==typeof exports?module.exports=o(require(\"eventie\")):t.docReady=o(t.eventie)}(window),function(t){\"use strict\";function e(t,e){return t[s](e)}function i(t){if(!t.parentNode){var e=document.createDocumentFragment();e.appendChild(t)}}function n(t,e){i(t);for(var n=t.parentNode.querySelectorAll(e),o=0,r=n.length;r>o;o++)if(n[o]===t)return!0;return!1}function o(t,n){return i(t),e(t,n)}var r,s=function(){if(t.matches)return\"matches\";if(t.matchesSelector)return\"matchesSelector\";for(var e=[\"webkit\",\"moz\",\"ms\",\"o\"],i=0,n=e.length;n>i;i++){var o=e[i],r=o+\"MatchesSelector\";if(t[r])return r}}();if(s){var a=document.createElement(\"div\"),l=e(a,\"div\");r=l?e:o}else r=n;\"function\"==typeof define&&define.amd?define(\"matches-selector/matches-selector\",[],function(){return r}):\"object\"==typeof exports?module.exports=r:window.matchesSelector=r}(Element.prototype),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"fizzy-ui-utils/utils\",[\"doc-ready/doc-ready\",\"matches-selector/matches-selector\"],function(i,n){return e(t,i,n)}):\"object\"==typeof exports?module.exports=e(t,require(\"doc-ready\"),require(\"desandro-matches-selector\")):t.fizzyUIUtils=e(t,t.docReady,t.matchesSelector)}(window,function(t,e,i){var n={};n.extend=function(t,e){for(var i in e)t[i]=e[i];return t},n.modulo=function(t,e){return(t%e+e)%e};var o=Object.prototype.toString;n.isArray=function(t){return\"[object Array]\"==o.call(t)},n.makeArray=function(t){var e=[];if(n.isArray(t))e=t;else if(t&&\"number\"==typeof t.length)for(var i=0,o=t.length;o>i;i++)e.push(t[i]);else e.push(t);return e},n.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i;return-1},n.removeFrom=function(t,e){var i=n.indexOf(t,e);-1!=i&&t.splice(i,1)},n.isElement=\"function\"==typeof HTMLElement||\"object\"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&\"object\"==typeof t&&1==t.nodeType&&\"string\"==typeof t.nodeName},n.setText=function(){function t(t,i){e=e||(void 0!==document.documentElement.textContent?\"textContent\":\"innerText\"),t[e]=i}var e;return t}(),n.getParent=function(t,e){for(;t!=document.body;)if(t=t.parentNode,i(t,e))return t},n.getQueryElement=function(t){return\"string\"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var e=\"on\"+t.type;this[e]&&this[e](t)},n.filterFindElements=function(t,e){t=n.makeArray(t);for(var o=[],r=0,s=t.length;s>r;r++){var a=t[r];if(n.isElement(a))if(e){i(a,e)&&o.push(a);for(var l=a.querySelectorAll(e),h=0,c=l.length;c>h;h++)o.push(l[h])}else o.push(a)}return o},n.debounceMethod=function(t,e,i){var n=t.prototype[e],o=e+\"Timeout\";t.prototype[e]=function(){var t=this[o];t&&clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i||100)}},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+\"-\"+i}).toLowerCase()};var r=t.console;return n.htmlInit=function(i,o){e(function(){for(var e=n.toDashed(o),s=document.querySelectorAll(\".js-\"+e),a=\"data-\"+e+\"-options\",l=0,h=s.length;h>l;l++){var c,p=s[l],d=p.getAttribute(a);try{c=d&&JSON.parse(d)}catch(u){r&&r.error(\"Error parsing \"+a+\" on \"+p.nodeName.toLowerCase()+(p.id?\"#\"+p.id:\"\")+\": \"+u);continue}var f=new i(p,c),v=t.jQuery;v&&v.data(p,o,f)}})},n}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"flickity/js/cell\",[\"get-size/get-size\"],function(i){return e(t,i)}):\"object\"==typeof exports?module.exports=e(t,require(\"get-size\")):(t.Flickity=t.Flickity||{},t.Flickity.Cell=e(t,t.getSize))}(window,function(t,e){function i(t,e){this.element=t,this.parent=e,this.create()}var n=\"attachEvent\"in t;return i.prototype.create=function(){this.element.style.position=\"absolute\",n&&this.element.setAttribute(\"unselectable\",\"on\"),this.x=0,this.shift=0},i.prototype.destroy=function(){this.element.style.position=\"\";var t=this.parent.originSide;this.element.style[t]=\"\"},i.prototype.getSize=function(){this.size=e(this.element)},i.prototype.setPosition=function(t){this.x=t,this.setDefaultTarget(),this.renderPosition(t)},i.prototype.setDefaultTarget=function(){var t=\"left\"==this.parent.originSide?\"marginLeft\":\"marginRight\";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},i.prototype.renderPosition=function(t){var e=this.parent.originSide;this.element.style[e]=this.parent.getPositionValue(t)},i.prototype.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},i.prototype.remove=function(){this.element.parentNode.removeChild(this.element)},i}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"flickity/js/animate\",[\"get-style-property/get-style-property\",\"fizzy-ui-utils/utils\"],function(i,n){return e(t,i,n)}):\"object\"==typeof exports?module.exports=e(t,require(\"desandro-get-style-property\"),require(\"fizzy-ui-utils\")):(t.Flickity=t.Flickity||{},t.Flickity.animatePrototype=e(t,t.getStyleProperty,t.fizzyUIUtils))}(window,function(t,e,i){for(var n,o=0,r=\"webkit moz ms o\".split(\" \"),s=t.requestAnimationFrame,a=t.cancelAnimationFrame,l=0;l1&&(t=i.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),t+=this.cursorPosition,t=this.options.rightToLeft&&c?-t:t;var e=this.getPositionValue(t);c?this.slider.style[c]=p&&this.isAnimating?\"translate3d(\"+e+\",0,0)\":\"translateX(\"+e+\")\":this.slider.style[this.originSide]=e},h.positionSliderAtSelected=function(){if(this.cells.length){var t=this.cells[this.selectedIndex];this.x=-t.target,this.positionSlider()}},h.getPositionValue=function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+\"%\":Math.round(t)+\"px\"},h.settle=function(t){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*t)||this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,p&&this.positionSlider(),this.dispatchEvent(\"settle\"))},h.shiftWrapCells=function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},h._shiftCells=function(t,e,i){for(var n=0,o=t.length;o>n;n++){var r=t[n],s=e>0?i:0;r.wrapShift(s),e-=r.size.outerWidth}},h._unshiftCells=function(t){if(t&&t.length)for(var e=0,i=t.length;i>e;e++)t[e].wrapShift(0)},h.integratePhysics=function(){this.velocity+=this.accel,this.x+=this.velocity,this.velocity*=this.getFrictionFactor(),this.accel=0},h.applyForce=function(t){this.accel+=t},h.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?\"freeScrollFriction\":\"friction\"]},h.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},h.applyDragForce=function(){if(this.isPointerDown){var t=this.dragX-this.x,e=t-this.velocity;this.applyForce(e)}},h.applySelectedAttraction=function(){var t=this.cells.length;if(!this.isPointerDown&&!this.isFreeScrolling&&t){var e=this.cells[this.selectedIndex],i=this.options.wrapAround&&t>1?this.slideableWidth*Math.floor(this.selectedIndex/t):0,n=-1*(e.target+i)-this.x,o=n*this.options.selectedAttraction;this.applyForce(o)}},h}),function(t,e){\"use strict\";if(\"function\"==typeof define&&define.amd)define(\"flickity/js/flickity\",[\"classie/classie\",\"eventEmitter/EventEmitter\",\"eventie/eventie\",\"get-size/get-size\",\"fizzy-ui-utils/utils\",\"./cell\",\"./animate\"],function(i,n,o,r,s,a,l){return e(t,i,n,o,r,s,a,l)});else if(\"object\"==typeof exports)module.exports=e(t,require(\"desandro-classie\"),require(\"wolfy87-eventemitter\"),require(\"eventie\"),require(\"get-size\"),require(\"fizzy-ui-utils\"),require(\"./cell\"),require(\"./animate\"));else{var i=t.Flickity;t.Flickity=e(t,t.classie,t.EventEmitter,t.eventie,t.getSize,t.fizzyUIUtils,i.Cell,i.animatePrototype)}}(window,function(t,e,i,n,o,r,s,a){function l(t,e){for(t=r.makeArray(t);t.length;)e.appendChild(t.shift())}function h(t,e){var i=r.getQueryElement(t);return i?(this.element=i,c&&(this.$element=c(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(e),void this._create()):void(d&&d.error(\"Bad element for Flickity: \"+(i||t)))}var c=t.jQuery,p=t.getComputedStyle,d=t.console,u=0,f={};h.defaults={accessibility:!0,cellAlign:\"center\",freeScrollFriction:.075,friction:.28,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},h.createMethods=[],r.extend(h.prototype,i.prototype),h.prototype._create=function(){var e=this.guid=++u;this.element.flickityGUID=e,f[e]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.accel=0,this.originSide=this.options.rightToLeft?\"right\":\"left\",this.viewport=document.createElement(\"div\"),this.viewport.className=\"flickity-viewport\",h.setUnselectable(this.viewport),this._createSlider(),(this.options.resize||this.options.watchCSS)&&(n.bind(t,\"resize\",this),this.isResizeBound=!0);for(var i=0,o=h.createMethods.length;o>i;i++){var r=h.createMethods[i];this[r]()}this.options.watchCSS?this.watchCSS():this.activate()},h.prototype.option=function(t){r.extend(this.options,t)},h.prototype.activate=function(){if(!this.isActive){this.isActive=!0,e.add(this.element,\"flickity-enabled\"),this.options.rightToLeft&&e.add(this.element,\"flickity-rtl\"),this.getSize();var t=this._filterFindCellElements(this.element.children);l(t,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,n.bind(this.element,\"keydown\",this)),this.emit(\"activate\");var i,o=this.options.initialIndex;i=this.isInitActivated?this.selectedIndex:void 0!==o&&this.cells[o]?o:0,this.select(i,!1,!0),this.isInitActivated=!0}},h.prototype._createSlider=function(){var t=document.createElement(\"div\");t.className=\"flickity-slider\",t.style[this.originSide]=0,this.slider=t},h.prototype._filterFindCellElements=function(t){return r.filterFindElements(t,this.options.cellSelector)},h.prototype.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},h.prototype._makeCells=function(t){for(var e=this._filterFindCellElements(t),i=[],n=0,o=e.length;o>n;n++){var r=e[n],a=new s(r,this);i.push(a)}return i},h.prototype.getLastCell=function(){return this.cells[this.cells.length-1]},h.prototype.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},h.prototype._positionCells=function(t){t=t||0,this.maxCellHeight=t?this.maxCellHeight||0:0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}for(var n,o=this.cells.length,r=t;o>r;r++)n=this.cells[r],n.setPosition(e),e+=n.size.outerWidth,this.maxCellHeight=Math.max(n.size.outerHeight,this.maxCellHeight);this.slideableWidth=e,this._containCells()},h.prototype._sizeCells=function(t){for(var e=0,i=t.length;i>e;e++){var n=t[e];n.getSize()}},h.prototype._init=h.prototype.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},h.prototype.getSize=function(){this.size=o(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var v={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};h.prototype.setCellAlign=function(){var t=v[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},h.prototype.setGallerySize=function(){this.options.setGallerySize&&(this.viewport.style.height=this.maxCellHeight+\"px\")},h.prototype._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)}},h.prototype._getGapCells=function(t,e,i){for(var n=[];t>0;){var o=this.cells[e];if(!o)break;n.push(o),e+=i,t-=o.size.outerWidth}return n},h.prototype._containCells=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length)for(var t=this.options.rightToLeft?\"marginRight\":\"marginLeft\",e=this.options.rightToLeft?\"marginLeft\":\"marginRight\",i=this.cells[0].size[t],n=this.getLastCell(),o=this.slideableWidth-n.size[e],r=o-this.size.innerWidth*(1-this.cellAlign),s=oa;a++){var h=this.cells[a];h.setDefaultTarget(),s?h.target=o*this.cellAlign:(h.target=Math.max(h.target,this.cursorPosition+i),h.target=Math.min(h.target,r))}},h.prototype.dispatchEvent=function(t,e,i){var n=[e].concat(i);if(this.emitEvent(t,n),c&&this.$element)if(e){var o=c.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},h.prototype.select=function(t,e,i){if(this.isActive){t=parseInt(t,10);var n=this.cells.length;this.options.wrapAround&&n>1&&(0>t?this.x-=this.slideableWidth:t>=n&&(this.x+=this.slideableWidth)),(this.options.wrapAround||e)&&(t=r.modulo(t,n)),this.cells[t]&&(this.selectedIndex=t,this.setSelectedCell(),i?this.positionSliderAtSelected():this.startAnimation(),this.dispatchEvent(\"cellSelect\"))}},h.prototype.previous=function(t){this.select(this.selectedIndex-1,t)},h.prototype.next=function(t){this.select(this.selectedIndex+1,t)},h.prototype.setSelectedCell=function(){this._removeSelectedCellClass(),this.selectedCell=this.cells[this.selectedIndex],this.selectedElement=this.selectedCell.element,e.add(this.selectedElement,\"is-selected\")},h.prototype._removeSelectedCellClass=function(){this.selectedCell&&e.remove(this.selectedCell.element,\"is-selected\")},h.prototype.getCell=function(t){for(var e=0,i=this.cells.length;i>e;e++){var n=this.cells[e];if(n.element==t)return n}},h.prototype.getCells=function(t){t=r.makeArray(t);for(var e=[],i=0,n=t.length;n>i;i++){var o=t[i],s=this.getCell(o);s&&e.push(s)}return e},h.prototype.getCellElements=function(){for(var t=[],e=0,i=this.cells.length;i>e;e++)t.push(this.cells[e].element);return t},h.prototype.getParentCell=function(t){var e=this.getCell(t);return e?e:(t=r.getParent(t,\".flickity-slider > *\"),this.getCell(t))},h.prototype.getAdjacentCellElements=function(t,e){if(!t)return[this.selectedElement];e=void 0===e?this.selectedIndex:e;var i=this.cells.length;if(1+2*t>=i)return this.getCellElements();for(var n=[],o=e-t;e+t>=o;o++){var s=this.options.wrapAround?r.modulo(o,i):o,a=this.cells[s];a&&n.push(a.element)}return n},h.prototype.uiChange=function(){this.emit(\"uiChange\")},h.prototype.childUIPointerDown=function(t){this.emitEvent(\"childUIPointerDown\",[t])},h.prototype.onresize=function(){this.watchCSS(),this.resize()},r.debounceMethod(h,\"onresize\",150),h.prototype.resize=function(){this.isActive&&(this.getSize(),this.options.wrapAround&&(this.x=r.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.positionSliderAtSelected())};var y=h.supportsConditionalCSS=function(){var t;return function(){if(void 0!==t)return t;if(!p)return void(t=!1);var e=document.createElement(\"style\"),i=document.createTextNode('body:after { content: \"foo\"; display: none; }');e.appendChild(i),document.head.appendChild(e);var n=p(document.body,\":after\").content;return t=-1!=n.indexOf(\"foo\"),document.head.removeChild(e),t}}();h.prototype.watchCSS=function(){var t=this.options.watchCSS;if(t){var e=y();if(!e){var i=\"fallbackOn\"==t?\"activate\":\"deactivate\";return void this[i]()}var n=p(this.element,\":after\").content;-1!=n.indexOf(\"flickity\")?this.activate():this.deactivate()}},h.prototype.onkeydown=function(t){if(this.options.accessibility&&(!document.activeElement||document.activeElement==this.element))if(37==t.keyCode){var e=this.options.rightToLeft?\"next\":\"previous\";this.uiChange(),this[e]()}else if(39==t.keyCode){var i=this.options.rightToLeft?\"previous\":\"next\";this.uiChange(),this[i]()}},h.prototype.deactivate=function(){if(this.isActive){e.remove(this.element,\"flickity-enabled\"),e.remove(this.element,\"flickity-rtl\");for(var t=0,i=this.cells.length;i>t;t++){var o=this.cells[t];o.destroy()}this._removeSelectedCellClass(),this.element.removeChild(this.viewport),l(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute(\"tabIndex\"),n.unbind(this.element,\"keydown\",this)),this.isActive=!1,this.emit(\"deactivate\")}},h.prototype.destroy=function(){this.deactivate(),this.isResizeBound&&n.unbind(t,\"resize\",this),this.emit(\"destroy\"),c&&this.$element&&c.removeData(this.element,\"flickity\"),delete this.element.flickityGUID,delete f[this.guid]},r.extend(h.prototype,a);var g=\"attachEvent\"in t;return h.setUnselectable=function(t){g&&t.setAttribute(\"unselectable\",\"on\")},h.data=function(t){t=r.getQueryElement(t);var e=t&&t.flickityGUID;return e&&f[e]},r.htmlInit(h,\"flickity\"),c&&c.bridget&&c.bridget(\"flickity\",h),h.Cell=s,h}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"unipointer/unipointer\",[\"eventEmitter/EventEmitter\",\"eventie/eventie\"],function(i,n){return e(t,i,n)}):\"object\"==typeof exports?module.exports=e(t,require(\"wolfy87-eventemitter\"),require(\"eventie\")):t.Unipointer=e(t,t.EventEmitter,t.eventie)}(window,function(t,e,i){function n(){}function o(){}o.prototype=new e,o.prototype.bindStartEvent=function(t){this._bindStartEvent(t,!0)},o.prototype.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},o.prototype._bindStartEvent=function(e,n){n=void 0===n?!0:!!n;var o=n?\"bind\":\"unbind\";t.navigator.pointerEnabled?i[o](e,\"pointerdown\",this):t.navigator.msPointerEnabled?i[o](e,\"MSPointerDown\",this):(i[o](e,\"mousedown\",this),i[o](e,\"touchstart\",this))},o.prototype.handleEvent=function(t){var e=\"on\"+t.type;this[e]&&this[e](t)},o.prototype.getTouch=function(t){for(var e=0,i=t.length;i>e;e++){var n=t[e];if(n.identifier==this.pointerIdentifier)return n}},o.prototype.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},o.prototype.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},o.prototype.onMSPointerDown=o.prototype.onpointerdown=function(t){this._pointerDown(t,t)},o.prototype._pointerDown=function(t,e){this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},o.prototype.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent(\"pointerDown\",[t,e])};var r={mousedown:[\"mousemove\",\"mouseup\"],touchstart:[\"touchmove\",\"touchend\",\"touchcancel\"],pointerdown:[\"pointermove\",\"pointerup\",\"pointercancel\"],MSPointerDown:[\"MSPointerMove\",\"MSPointerUp\",\"MSPointerCancel\"]};return o.prototype._bindPostStartEvents=function(e){if(e){for(var n=r[e.type],o=e.preventDefault?t:document,s=0,a=n.length;a>s;s++){var l=n[s];i.bind(o,l,this)}this._boundPointerEvents={events:n,node:o}}},o.prototype._unbindPostStartEvents=function(){var t=this._boundPointerEvents;if(t&&t.events){for(var e=0,n=t.events.length;n>e;e++){var o=t.events[e];i.unbind(t.node,o,this)}delete this._boundPointerEvents}},o.prototype.onmousemove=function(t){this._pointerMove(t,t)},o.prototype.onMSPointerMove=o.prototype.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},o.prototype.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},o.prototype._pointerMove=function(t,e){this.pointerMove(t,e)},o.prototype.pointerMove=function(t,e){this.emitEvent(\"pointerMove\",[t,e])},o.prototype.onmouseup=function(t){this._pointerUp(t,t)},o.prototype.onMSPointerUp=o.prototype.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},o.prototype.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},o.prototype._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},o.prototype.pointerUp=function(t,e){this.emitEvent(\"pointerUp\",[t,e])},o.prototype._pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this._unbindPostStartEvents(),this.pointerDone()},o.prototype.pointerDone=n,o.prototype.onMSPointerCancel=o.prototype.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},o.prototype.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},o.prototype._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},o.prototype.pointerCancel=function(t,e){this.emitEvent(\"pointerCancel\",[t,e])},o.getPointerPoint=function(t){return{x:void 0!==t.pageX?t.pageX:t.clientX,y:void 0!==t.pageY?t.pageY:t.clientY}},o}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"unidragger/unidragger\",[\"eventie/eventie\",\"unipointer/unipointer\"],function(i,n){return e(t,i,n)}):\"object\"==typeof exports?module.exports=e(t,require(\"eventie\"),require(\"unipointer\")):t.Unidragger=e(t,t.eventie,t.Unipointer)}(window,function(t,e,i){function n(){}function o(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function r(){}function s(){return!1}r.prototype=new i,r.prototype.bindHandles=function(){this._bindHandles(!0)},r.prototype.unbindHandles=function(){this._bindHandles(!1)};var a=t.navigator;r.prototype._bindHandles=function(t){t=void 0===t?!0:!!t;var i;i=a.pointerEnabled?function(e){e.style.touchAction=t?\"none\":\"\"}:a.msPointerEnabled?function(e){e.style.msTouchAction=t?\"none\":\"\"}:function(){t&&h(s)};for(var n=t?\"bind\":\"unbind\",o=0,r=this.handles.length;r>o;o++){var s=this.handles[o];this._bindStartEvent(s,t),i(s),e[n](s,\"click\",this)}};var l=\"attachEvent\"in document.documentElement,h=l?function(t){\"IMG\"==t.nodeName&&(t.ondragstart=s);for(var e=t.querySelectorAll(\"img\"),i=0,n=e.length;n>i;i++){var o=e[i];o.ondragstart=s}}:n;r.prototype.pointerDown=function(i,n){if(\"INPUT\"==i.target.nodeName&&\"range\"==i.target.type)return this.isPointerDown=!1,void delete this.pointerIdentifier;this._dragPointerDown(i,n);var o=document.activeElement;o&&o.blur&&o.blur(),this._bindPostStartEvents(i),this.pointerDownScroll=r.getScrollPosition(),e.bind(t,\"scroll\",this),this.emitEvent(\"pointerDown\",[i,n])},r.prototype._dragPointerDown=function(t,e){this.pointerDownPoint=i.getPointerPoint(e);var n=\"touchstart\"==t.type,r=t.target.nodeName;n||\"SELECT\"==r||o(t)},r.prototype.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent(\"pointerMove\",[t,e,i]),this._dragMove(t,e,i)},r.prototype._dragPointerMove=function(t,e){var n=i.getPointerPoint(e),o={x:n.x-this.pointerDownPoint.x,y:n.y-this.pointerDownPoint.y};return!this.isDragging&&this.hasDragStarted(o)&&this._dragStart(t,e),o},r.prototype.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},r.prototype.pointerUp=function(t,e){this.emitEvent(\"pointerUp\",[t,e]),this._dragPointerUp(t,e)},r.prototype._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},r.prototype.pointerDone=function(){e.unbind(t,\"scroll\",this)},r.prototype._dragStart=function(t,e){\r\nthis.isDragging=!0,this.dragStartPoint=r.getPointerPoint(e),this.isPreventingClicks=!0,this.dragStart(t,e)},r.prototype.dragStart=function(t,e){this.emitEvent(\"dragStart\",[t,e])},r.prototype._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},r.prototype.dragMove=function(t,e,i){o(t),this.emitEvent(\"dragMove\",[t,e,i])},r.prototype._dragEnd=function(t,e){this.isDragging=!1;var i=this;setTimeout(function(){delete i.isPreventingClicks}),this.dragEnd(t,e)},r.prototype.dragEnd=function(t,e){this.emitEvent(\"dragEnd\",[t,e])},r.prototype.pointerDone=function(){e.unbind(t,\"scroll\",this),delete this.pointerDownScroll},r.prototype.onclick=function(t){this.isPreventingClicks&&o(t)},r.prototype._staticClick=function(t,e){if(!this.isIgnoringMouseUp||\"mouseup\"!=t.type){var i=t.target.nodeName;if((\"INPUT\"==i||\"TEXTAREA\"==i)&&t.target.focus(),this.staticClick(t,e),\"mouseup\"!=t.type){this.isIgnoringMouseUp=!0;var n=this;setTimeout(function(){delete n.isIgnoringMouseUp},400)}}},r.prototype.staticClick=function(t,e){this.emitEvent(\"staticClick\",[t,e])},r.prototype.onscroll=function(){var t=r.getScrollPosition(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(Math.abs(e)>3||Math.abs(i)>3)&&this._pointerDone()},r.getPointerPoint=function(t){return{x:void 0!==t.pageX?t.pageX:t.clientX,y:void 0!==t.pageY?t.pageY:t.clientY}};var c=void 0!==t.pageYOffset;return r.getScrollPosition=function(){return{x:c?t.pageXOffset:document.body.scrollLeft,y:c?t.pageYOffset:document.body.scrollTop}},r.getPointerPoint=i.getPointerPoint,r}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"flickity/js/drag\",[\"classie/classie\",\"eventie/eventie\",\"./flickity\",\"unidragger/unidragger\",\"fizzy-ui-utils/utils\"],function(i,n,o,r,s){return e(t,i,n,o,r,s)}):\"object\"==typeof exports?module.exports=e(t,require(\"desandro-classie\"),require(\"eventie\"),require(\"./flickity\"),require(\"unidragger\"),require(\"fizzy-ui-utils\")):t.Flickity=e(t,t.classie,t.eventie,t.Flickity,t.Unidragger,t.fizzyUIUtils)}(window,function(t,e,i,n,o,r){function s(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function a(e){var i=o.getPointerPoint(e);return i.y-t.pageYOffset}r.extend(n.defaults,{draggable:!0,touchVerticalScroll:!0}),n.createMethods.push(\"_createDrag\"),r.extend(n.prototype,o.prototype),n.prototype._createDrag=function(){this.on(\"activate\",this.bindDrag),this.on(\"uiChange\",this._uiChangeDrag),this.on(\"childUIPointerDown\",this._childUIPointerDownDrag),this.on(\"deactivate\",this.unbindDrag)},n.prototype.bindDrag=function(){this.options.draggable&&!this.isDragBound&&(e.add(this.element,\"is-draggable\"),this.handles=[this.viewport],this.bindHandles(),this.isDragBound=!0)},n.prototype.unbindDrag=function(){this.isDragBound&&(e.remove(this.element,\"is-draggable\"),this.unbindHandles(),delete this.isDragBound)},n.prototype._uiChangeDrag=function(){delete this.isFreeScrolling},n.prototype._childUIPointerDownDrag=function(t){s(t),this.pointerDownFocus(t)},n.prototype.pointerDown=function(n,r){if(\"INPUT\"==n.target.nodeName&&\"range\"==n.target.type)return this.isPointerDown=!1,void delete this.pointerIdentifier;this._dragPointerDown(n,r);var s=document.activeElement;s&&s.blur&&s!=this.element&&s!=document.body&&s.blur(),this.pointerDownFocus(n),this.dragX=this.x,e.add(this.viewport,\"is-pointer-down\"),this._bindPostStartEvents(n),this.pointerDownScroll=o.getScrollPosition(),i.bind(t,\"scroll\",this),this.dispatchEvent(\"pointerDown\",n,[r])};var l={touchstart:!0,MSPointerDown:!0},h={INPUT:!0,SELECT:!0};n.prototype.pointerDownFocus=function(e){if(this.options.accessibility&&!l[e.type]&&!h[e.target.nodeName]){var i=t.pageYOffset;this.element.focus(),t.pageYOffset!=i&&t.scrollTo(t.pageXOffset,i)}},n.prototype.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.touchVerticalScrollMove(t,e,i),this._dragMove(t,e,i),this.dispatchEvent(\"pointerMove\",t,[e,i])},n.prototype.hasDragStarted=function(t){return!this.isTouchScrolling&&Math.abs(t.x)>3},n.prototype.pointerUp=function(t,i){delete this.isTouchScrolling,e.remove(this.viewport,\"is-pointer-down\"),this.dispatchEvent(\"pointerUp\",t,[i]),this._dragPointerUp(t,i)};var c={touchmove:!0,MSPointerMove:!0};return n.prototype.touchVerticalScrollMove=function(e,i,n){var o=this.options.touchVerticalScroll,r=\"withDrag\"==o?!o:this.isDragging||!o;!r&&c[e.type]&&!this.isTouchScrolling&&Math.abs(n.y)>10&&(this.startScrollY=t.pageYOffset,this.pointerWindowStartY=a(i),this.isTouchScrolling=!0)},n.prototype.dragStart=function(t,e){this.dragStartPosition=this.x,this.startAnimation(),this.dispatchEvent(\"dragStart\",t,[e])},n.prototype.dragMove=function(t,e,i){s(t),this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1,o=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.cells.length){var r=Math.max(-this.cells[0].target,this.dragStartPosition);o=o>r?.5*(o+r):o;var a=Math.min(-this.getLastCell().target,this.dragStartPosition);o=a>o?.5*(o+a):o}this.dragX=o,this.dragMoveTime=new Date,this.dispatchEvent(\"dragMove\",t,[e,i])},n.prototype.dragEnd=function(t,e){this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var n=this.getRestingPosition();this.isFreeScrolling=-n>this.cells[0].target&&-n=t}:function(t,e){return e>t};r(e,o)&&(n+=i,o=e,e=this.getCellDistance(-t,n),null!==e);)e=Math.abs(e);return{distance:o,index:n-i}},n.prototype.getCellDistance=function(t,e){var i=this.cells.length,n=this.options.wrapAround&&i>1,o=n?r.modulo(e,i):e,s=this.cells[o];if(!s)return null;var a=n?this.slideableWidth*Math.floor(e/i):0;return t-(s.target+a)},n.prototype.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var t=this.getCellDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return t>0&&e>0?1:0>t&&0>e?-1:0},n.prototype.staticClick=function(t,e){var i=this.getParentCell(t.target),n=i&&i.element,o=i&&r.indexOf(this.cells,i);this.dispatchEvent(\"staticClick\",t,[e,n,o])},n}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"tap-listener/tap-listener\",[\"unipointer/unipointer\"],function(i){return e(t,i)}):\"object\"==typeof exports?module.exports=e(t,require(\"unipointer\")):t.TapListener=e(t,t.Unipointer)}(window,function(t,e){function i(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function n(t){this.bindTap(t)}n.prototype=new e,n.prototype.bindTap=function(t){t&&(this.unbindTap(),this.tapElement=t,this._bindStartEvent(t,!0))},n.prototype.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)};var o=n.prototype.pointerDown;n.prototype.pointerDown=function(t){\"touchstart\"==t.type&&i(t),o.apply(this,arguments)};var r=void 0!==t.pageYOffset;return n.prototype.pointerUp=function(i,n){var o=e.getPointerPoint(n),s=this.tapElement.getBoundingClientRect(),a=r?t.pageXOffset:document.body.scrollLeft,l=r?t.pageYOffset:document.body.scrollTop,h=o.x>=s.left+a&&o.x<=s.right+a&&o.y>=s.top+l&&o.y<=s.bottom+l;h&&this.emitEvent(\"tap\",[i,n])},n.prototype.destroy=function(){this.pointerDone(),this.unbindTap()},n}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"flickity/js/prev-next-button\",[\"eventie/eventie\",\"./flickity\",\"tap-listener/tap-listener\",\"fizzy-ui-utils/utils\"],function(i,n,o,r){return e(t,i,n,o,r)}):\"object\"==typeof exports?module.exports=e(t,require(\"eventie\"),require(\"./flickity\"),require(\"tap-listener\"),require(\"fizzy-ui-utils\")):e(t,t.eventie,t.Flickity,t.TapListener,t.fizzyUIUtils)}(window,function(t,e,i,n,o){function r(t,e){this.direction=t,this.parent=e,this._create()}function s(t){return\"string\"==typeof t?t:\"M \"+t.x0+\",50 L \"+t.x1+\",\"+(t.y1+50)+\" L \"+t.x2+\",\"+(t.y2+50)+\" L \"+t.x3+\",50 L \"+t.x2+\",\"+(50-t.y2)+\" L \"+t.x1+\",\"+(50-t.y1)+\" Z\"}var a=\"http://www.w3.org/2000/svg\",l=function(){function t(){if(void 0!==e)return e;var t=document.createElement(\"div\");return t.innerHTML=\"\",e=(t.firstChild&&t.firstChild.namespaceURI)==a}var e;return t}();return r.prototype=new n,r.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement(\"button\");if(e.className=\"flickity-prev-next-button\",e.className+=this.isPrevious?\" previous\":\" next\",e.setAttribute(\"type\",\"button\"),e.setAttribute(\"tabindex\",\"-1\"),this.disable(),i.setUnselectable(e),l()){var n=this.createSVG();e.appendChild(n)}else this.setArrowText(),e.className+=\" no-svg\";var o=this;this.onCellSelect=function(){o.update()},this.parent.on(\"cellSelect\",this.onCellSelect),this.on(\"tap\",this.onTap),this.on(\"pointerDown\",function(t,e){o.parent.childUIPointerDown(e)})},r.prototype.activate=function(){this.bindTap(this.element),e.bind(this.element,\"click\",this),this.parent.element.appendChild(this.element)},r.prototype.deactivate=function(){this.parent.element.removeChild(this.element),n.prototype.destroy.call(this),e.unbind(this.element,\"click\",this)},r.prototype.createSVG=function(){var t=document.createElementNS(a,\"svg\");t.setAttribute(\"viewBox\",\"0 0 100 100\");var e=document.createElementNS(a,\"path\"),i=s(this.parent.options.arrowShape);return e.setAttribute(\"d\",i),e.setAttribute(\"class\",\"arrow\"),this.isLeft||e.setAttribute(\"transform\",\"translate(100, 100) rotate(180) \"),t.appendChild(e),t},r.prototype.setArrowText=function(){var t=this.parent.options,e=this.isLeft?t.leftArrowText:t.rightArrowText;o.setText(this.element,e)},r.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?\"previous\":\"next\";this.parent[t]()}},r.prototype.handleEvent=o.handleEvent,r.prototype.onclick=function(){var t=document.activeElement;t&&t==this.element&&this.onTap()},r.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},r.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},r.prototype.update=function(){var t=this.parent.cells;if(this.parent.options.wrapAround&&t.length>1)return void this.enable();var e=t.length?t.length-1:0,i=this.isPrevious?0:e,n=this.parent.selectedIndex==i?\"disable\":\"enable\";this[n]()},r.prototype.destroy=function(){this.deactivate()},o.extend(i.defaults,{prevNextButtons:!0,leftArrowText:\"‹\",rightArrowText:\"›\",arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),i.createMethods.push(\"_createPrevNextButtons\"),i.prototype._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new r(-1,this),this.nextButton=new r(1,this),this.on(\"activate\",this.activatePrevNextButtons))},i.prototype.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on(\"deactivate\",this.deactivatePrevNextButtons)},i.prototype.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off(\"deactivate\",this.deactivatePrevNextButtons)},i.PrevNextButton=r,i}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"flickity/js/page-dots\",[\"eventie/eventie\",\"./flickity\",\"tap-listener/tap-listener\",\"fizzy-ui-utils/utils\"],function(i,n,o,r){return e(t,i,n,o,r)}):\"object\"==typeof exports?module.exports=e(t,require(\"eventie\"),require(\"./flickity\"),require(\"tap-listener\"),require(\"fizzy-ui-utils\")):e(t,t.eventie,t.Flickity,t.TapListener,t.fizzyUIUtils)}(window,function(t,e,i,n,o){function r(t){this.parent=t,this._create()}return r.prototype=new n,r.prototype._create=function(){this.holder=document.createElement(\"ol\"),this.holder.className=\"flickity-page-dots\",i.setUnselectable(this.holder),this.dots=[];var t=this;this.onCellSelect=function(){t.updateSelected()},this.parent.on(\"cellSelect\",this.onCellSelect),this.on(\"tap\",this.onTap),this.on(\"pointerDown\",function(e,i){t.parent.childUIPointerDown(i)})},r.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},r.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),n.prototype.destroy.call(this)},r.prototype.setDots=function(){var t=this.parent.cells.length-this.dots.length;t>0?this.addDots(t):0>t&&this.removeDots(-t)},r.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[];t;){var n=document.createElement(\"li\");n.className=\"dot\",e.appendChild(n),i.push(n),t--}this.holder.appendChild(e),this.dots=this.dots.concat(i)},r.prototype.removeDots=function(t){for(var e=this.dots.splice(this.dots.length-t,t),i=0,n=e.length;n>i;i++){var o=e[i];this.holder.removeChild(o)}},r.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className=\"dot\"),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className=\"dot is-selected\")},r.prototype.onTap=function(t){var e=t.target;if(\"LI\"==e.nodeName){this.parent.uiChange();var i=o.indexOf(this.dots,e);this.parent.select(i)}},r.prototype.destroy=function(){this.deactivate()},i.PageDots=r,o.extend(i.defaults,{pageDots:!0}),i.createMethods.push(\"_createPageDots\"),i.prototype._createPageDots=function(){this.options.pageDots&&(this.pageDots=new r(this),this.on(\"activate\",this.activatePageDots),this.on(\"cellAddedRemoved\",this.onCellAddedRemovedPageDots),this.on(\"deactivate\",this.deactivatePageDots))},i.prototype.activatePageDots=function(){this.pageDots.activate()},i.prototype.onCellAddedRemovedPageDots=function(){this.pageDots.setDots()},i.prototype.deactivatePageDots=function(){this.pageDots.deactivate()},i.PageDots=r,i}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"flickity/js/player\",[\"eventEmitter/EventEmitter\",\"eventie/eventie\",\"fizzy-ui-utils/utils\",\"./flickity\"],function(t,i,n,o){return e(t,i,n,o)}):\"object\"==typeof exports?module.exports=e(require(\"wolfy87-eventemitter\"),require(\"eventie\"),require(\"fizzy-ui-utils\"),require(\"./flickity\")):e(t.EventEmitter,t.eventie,t.fizzyUIUtils,t.Flickity)}(window,function(t,e,i,n){function o(t){if(this.isPlaying=!1,this.parent=t,s){var e=this;this.onVisibilityChange=function(){e.visibilityChange()}}}var r,s;return\"hidden\"in document?(r=\"hidden\",s=\"visibilitychange\"):\"webkitHidden\"in document&&(r=\"webkitHidden\",s=\"webkitvisibilitychange\"),o.prototype=new t,o.prototype.play=function(){this.isPlaying=!0,delete this.isPaused,s&&document.addEventListener(s,this.onVisibilityChange,!1),this.tick()},o.prototype.tick=function(){if(this.isPlaying&&!this.isPaused){this.tickTime=new Date;var t=this.parent.options.autoPlay;t=\"number\"==typeof t?t:3e3;var e=this;this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t)}},o.prototype.stop=function(){this.isPlaying=!1,delete this.isPaused,this.clear(),s&&document.removeEventListener(s,this.onVisibilityChange,!1)},o.prototype.clear=function(){clearTimeout(this.timeout)},o.prototype.pause=function(){this.isPlaying&&(this.isPaused=!0,this.clear())},o.prototype.unpause=function(){this.isPaused&&this.play()},o.prototype.visibilityChange=function(){var t=document[r];this[t?\"pause\":\"unpause\"]()},i.extend(n.defaults,{pauseAutoPlayOnHover:!0}),n.createMethods.push(\"_createPlayer\"),n.prototype._createPlayer=function(){this.player=new o(this),this.on(\"activate\",this.activatePlayer),this.on(\"uiChange\",this.stopPlayer),this.on(\"pointerDown\",this.stopPlayer),this.on(\"deactivate\",this.deactivatePlayer)},n.prototype.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),e.bind(this.element,\"mouseenter\",this),this.isMouseenterBound=!0)},n.prototype.stopPlayer=function(){this.player.stop()},n.prototype.deactivatePlayer=function(){this.player.stop(),this.isMouseenterBound&&(e.unbind(this.element,\"mouseenter\",this),delete this.isMouseenterBound)},n.prototype.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),e.bind(this.element,\"mouseleave\",this))},n.prototype.onmouseleave=function(){this.player.unpause(),e.unbind(this.element,\"mouseleave\",this)},n.Player=o,n}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"flickity/js/add-remove-cell\",[\"./flickity\",\"fizzy-ui-utils/utils\"],function(i,n){return e(t,i,n)}):\"object\"==typeof exports?module.exports=e(t,require(\"./flickity\"),require(\"fizzy-ui-utils\")):e(t,t.Flickity,t.fizzyUIUtils)}(window,function(t,e,i){function n(t){for(var e=document.createDocumentFragment(),i=0,n=t.length;n>i;i++){var o=t[i];e.appendChild(o.element)}return e}return e.prototype.insert=function(t,e){var i=this._makeCells(t);if(i&&i.length){var o=this.cells.length;e=void 0===e?o:e;var r=n(i),s=e==o;if(s)this.slider.appendChild(r);else{var a=this.cells[e].element;this.slider.insertBefore(r,a)}if(0===e)this.cells=i.concat(this.cells);else if(s)this.cells=this.cells.concat(i);else{var l=this.cells.splice(e,o-e);this.cells=this.cells.concat(i).concat(l)}this._sizeCells(i);var h=e>this.selectedIndex?0:i.length;this._cellAddedRemoved(e,h)}},e.prototype.append=function(t){this.insert(t,this.cells.length)},e.prototype.prepend=function(t){this.insert(t,0)},e.prototype.remove=function(t){var e,n,o,r=this.getCells(t),s=0;for(e=0,n=r.length;n>e;e++){o=r[e];var a=i.indexOf(this.cells,o)e;e++)o=r[e],o.remove(),i.removeFrom(this.cells,o);r.length&&this._cellAddedRemoved(0,s)},e.prototype._cellAddedRemoved=function(t,e){e=e||0,this.selectedIndex+=e,this.selectedIndex=Math.max(0,Math.min(this.cells.length-1,this.selectedIndex)),this.emitEvent(\"cellAddedRemoved\",[t,e]),this.cellChange(t,!0)},e.prototype.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var n=i.indexOf(this.cells,e);this.cellChange(n)}},e.prototype.cellChange=function(t,e){var i=this.slideableWidth;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize(),this.options.freeScroll?(this.x+=i-this.slideableWidth,this.positionSlider()):(e&&this.positionSliderAtSelected(),this.select(this.selectedIndex))},e}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"flickity/js/lazyload\",[\"classie/classie\",\"eventie/eventie\",\"./flickity\",\"fizzy-ui-utils/utils\"],function(i,n,o,r){return e(t,i,n,o,r)}):\"object\"==typeof exports?module.exports=e(t,require(\"desandro-classie\"),require(\"eventie\"),require(\"./flickity\"),require(\"fizzy-ui-utils\")):e(t,t.classie,t.eventie,t.Flickity,t.fizzyUIUtils)}(window,function(t,e,i,n,o){\"use strict\";function r(t){if(\"IMG\"==t.nodeName&&t.getAttribute(\"data-flickity-lazyload\"))return[t];var e=t.querySelectorAll(\"img[data-flickity-lazyload]\");return o.makeArray(e)}function s(t,e){this.img=t,this.flickity=e,this.load()}return n.createMethods.push(\"_createLazyload\"),n.prototype._createLazyload=function(){this.on(\"cellSelect\",this.lazyLoad)},n.prototype.lazyLoad=function(){var t=this.options.lazyLoad;if(t){for(var e=\"number\"==typeof t?t:0,i=this.getAdjacentCellElements(e),n=[],o=0,a=i.length;a>o;o++){var l=i[o],h=r(l);n=n.concat(h)}for(o=0,a=n.length;a>o;o++){var c=n[o];new s(c,this)}}},s.prototype.handleEvent=o.handleEvent,s.prototype.load=function(){i.bind(this.img,\"load\",this),i.bind(this.img,\"error\",this),this.img.src=this.img.getAttribute(\"data-flickity-lazyload\"),this.img.removeAttribute(\"data-flickity-lazyload\")},s.prototype.onload=function(t){this.complete(t,\"flickity-lazyloaded\")},s.prototype.onerror=function(t){this.complete(t,\"flickity-lazyerror\")},s.prototype.complete=function(t,n){i.unbind(this.img,\"load\",this),i.unbind(this.img,\"error\",this);var o=this.flickity.getParentCell(this.img),r=o&&o.element;this.flickity.cellSizeChange(r),e.add(this.img,n),this.flickity.dispatchEvent(\"lazyLoad\",t,r)},n.LazyLoader=s,n}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"flickity/js/index\",[\"./flickity\",\"./drag\",\"./prev-next-button\",\"./page-dots\",\"./player\",\"./add-remove-cell\",\"./lazyload\"],e):\"object\"==typeof exports&&(module.exports=e(require(\"./flickity\"),require(\"./drag\"),require(\"./prev-next-button\"),require(\"./page-dots\"),require(\"./player\"),require(\"./add-remove-cell\"),require(\"./lazyload\")))}(window,function(t){return t}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"flickity-as-nav-for/as-nav-for\",[\"classie/classie\",\"flickity/js/index\",\"fizzy-ui-utils/utils\"],function(i,n,o){return e(t,i,n,o)}):\"object\"==typeof exports?module.exports=e(t,require(\"desandro-classie\"),require(\"flickity\"),require(\"fizzy-ui-utils\")):t.Flickity=e(t,t.classie,t.Flickity,t.fizzyUIUtils)}(window,function(t,e,i,n){return i.createMethods.push(\"_createAsNavFor\"),i.prototype._createAsNavFor=function(){this.on(\"activate\",this.activateAsNavFor),this.on(\"deactivate\",this.deactivateAsNavFor),this.on(\"destroy\",this.destroyAsNavFor);var t=this.options.asNavFor;if(t){var e=this;setTimeout(function(){e.setNavCompanion(t)})}},i.prototype.setNavCompanion=function(t){t=n.getQueryElement(t);var e=i.data(t);if(e&&e!=this){this.navCompanion=e;var o=this;this.onNavCompanionSelect=function(){o.navCompanionSelect()},e.on(\"cellSelect\",this.onNavCompanionSelect),this.on(\"staticClick\",this.onNavStaticClick),this.navCompanionSelect()}},i.prototype.navCompanionSelect=function(){if(this.navCompanion){var t=this.navCompanion.selectedIndex;this.select(t),this.removeNavSelectedElement(),this.selectedIndex==t&&(this.navSelectedElement=this.cells[t].element,e.add(this.navSelectedElement,\"is-nav-selected\"))}},i.prototype.activateAsNavFor=function(){this.navCompanionSelect()},i.prototype.removeNavSelectedElement=function(){this.navSelectedElement&&(e.remove(this.navSelectedElement,\"is-nav-selected\"),delete this.navSelectedElement)},i.prototype.onNavStaticClick=function(t,e,i,n){\"number\"==typeof n&&this.navCompanion.select(n)},i.prototype.deactivateAsNavFor=function(){this.removeNavSelectedElement()},i.prototype.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off(\"cellSelect\",this.onNavCompanionSelect),this.off(\"staticClick\",this.onNavStaticClick),delete this.navCompanion)},i}),function(t,e){\"use strict\";\"function\"==typeof define&&define.amd?define(\"imagesloaded/imagesloaded\",[\"eventEmitter/EventEmitter\",\"eventie/eventie\"],function(i,n){return e(t,i,n)}):\"object\"==typeof module&&module.exports?module.exports=e(t,require(\"wolfy87-eventemitter\"),require(\"eventie\")):t.imagesLoaded=e(t,t.EventEmitter,t.eventie)}(window,function(t,e,i){function n(t,e){for(var i in e)t[i]=e[i];return t}function o(t){return\"[object Array]\"==p.call(t)}function r(t){var e=[];if(o(t))e=t;else if(\"number\"==typeof t.length)for(var i=0;i 1 ? this.eq(0) : this,\r\n t = $t.get(0),\r\n vpWidth = $w.width(),\r\n vpHeight = $w.height(),\r\n direction = (direction) ? direction : 'both',\r\n clientSize = hidden === true ? t.offsetWidth * t.offsetHeight : true;\r\n\r\n if (typeof t.getBoundingClientRect === 'function'){\r\n\r\n // Use this native browser method, if available.\r\n var rec = t.getBoundingClientRect(),\r\n tViz = rec.top >= 0 && rec.top < vpHeight,\r\n bViz = rec.bottom > 0 && rec.bottom <= vpHeight,\r\n lViz = rec.left >= 0 && rec.left < vpWidth,\r\n rViz = rec.right > 0 && rec.right <= vpWidth,\r\n vVisible = partial ? tViz || bViz : tViz && bViz,\r\n hVisible = partial ? lViz || rViz : lViz && rViz;\r\n\r\n if(direction === 'both')\r\n return clientSize && vVisible && hVisible;\r\n else if(direction === 'vertical')\r\n return clientSize && vVisible;\r\n else if(direction === 'horizontal')\r\n return clientSize && hVisible;\r\n } else {\r\n\r\n var viewTop = $w.scrollTop(),\r\n viewBottom = viewTop + vpHeight,\r\n viewLeft = $w.scrollLeft(),\r\n viewRight = viewLeft + vpWidth,\r\n offset = $t.offset(),\r\n _top = offset.top,\r\n _bottom = _top + $t.height(),\r\n _left = offset.left,\r\n _right = _left + $t.width(),\r\n compareTop = partial === true ? _bottom : _top,\r\n compareBottom = partial === true ? _top : _bottom,\r\n compareLeft = partial === true ? _right : _left,\r\n compareRight = partial === true ? _left : _right;\r\n\r\n if(direction === 'both')\r\n return !!clientSize && ((compareBottom <= viewBottom) && (compareTop >= viewTop)) && ((compareRight <= viewRight) && (compareLeft >= viewLeft));\r\n else if(direction === 'vertical')\r\n return !!clientSize && ((compareBottom <= viewBottom) && (compareTop >= viewTop));\r\n else if(direction === 'horizontal')\r\n return !!clientSize && ((compareRight <= viewRight) && (compareLeft >= viewLeft));\r\n }\r\n };\r\n\r\n})(jQuery);\r\n","(function () {\r\n // TODO: Remove jQuery dependency\r\n\r\n var elements = {\r\n accordionTrigger: $('[data-accordion-trigger]')\r\n };\r\n\r\n var events = function () {\r\n elements.accordionTrigger.on('click', toggleAccordionItem);\r\n };\r\n\r\n var toggleAccordionItem = function (e) {\r\n e.preventDefault();\r\n\r\n var selectedTarget = $('.active[data-accordion-target]');\r\n var accordionItem = $(this).closest('[data-accordion-item]');\r\n var accordionTarget = accordionItem.next().find('[data-accordion-target]').first();\r\n\r\n var accordionTrigger = $(this).closest('[data-accordion-trigger]');\r\n\r\n $('.order-list__collapse').removeClass('order-list__collapse').addClass('order-list__tmp');\r\n if (accordionTrigger.hasClass('order-list__expand')) {\r\n accordionTrigger.removeClass('order-list__expand').addClass('order-list__collapse').removeClass('order-list__tmp');;\r\n } else {\r\n accordionTrigger.addClass('order-list__expand').removeClass('order-list__collapse').removeClass('order-list__tmp');;\r\n }\r\n $('.order-list__tmp').removeClass('order-list__tmp').addClass('order-list__expand');\r\n\r\n if (accordionTarget.hasClass('active')) {\r\n accordionTarget.velocity('slideUp', {duration: 300});\r\n accordionTarget.removeClass('active');\r\n return;\r\n }\r\n\r\n if (selectedTarget) {\r\n selectedTarget.velocity('slideUp', {duration: 300});\r\n selectedTarget.removeClass('active');\r\n }\r\n\r\n accordionTarget.velocity('slideDown', {duration: 300, complete:function() {\r\n\r\n delivery.FlickityResize();\r\n if (accordionTrigger.visible() == false)\r\n {\r\n $('html, body').animate({\r\n scrollTop: (accordionTrigger.offset().top - 40)\r\n }, 100);\r\n }\r\n }});\r\n accordionTarget.addClass('active');\r\n };\r\n\r\n var init = function () {\r\n events();\r\n };\r\n\r\n init();\r\n}());\r\n","(function () {\r\n var remainingChars = 255;\r\n var inputLength = 0;\r\n\r\n var elements = {\r\n input: document.querySelector('.char-limit'),\r\n limitDisplay: document.querySelector('.char-limit-value')\r\n };\r\n\r\n var events = function () {\r\n elements.input.onkeyup = updateChars;\r\n };\r\n\r\n var updateChars = function (e) {\r\n var newInputLength = e.target.value.length;\r\n\r\n if (newInputLength > inputLength) {\r\n remainingChars -= (newInputLength - inputLength);\r\n }\r\n else if (newInputLength < inputLength) {\r\n remainingChars += (inputLength - newInputLength);\r\n }\r\n inputLength = newInputLength;\r\n elements.limitDisplay.textContent = remainingChars;\r\n };\r\n\r\n var init = function () {\r\n if (elements.input) {\r\n inputLength = elements.input.value.length;\r\n remainingChars -= inputLength;\r\n\r\n events();\r\n }\r\n\r\n if (elements.limitDisplay) {\r\n elements.limitDisplay.textContent = remainingChars;\r\n }\r\n };\r\n\r\n init();\r\n}());\r\n","var delivery = {\r\n\r\n settings : {\r\n checkboxes: document.querySelectorAll('.delivery__checkbox'),\r\n balanceSelector : '.balance',\r\n originalBalanceSelector : 'input[name=\"original-balance\"]',\r\n currentBalanceSelector : 'input[name=\"current-balance\"]',\r\n waiverBalanceSelector : 'input[name=\"waiver-balance\"]',\r\n ElementsToValidate : [\r\n [ 'input[name=\"SelectedDelSchedIDX\"]' ],\r\n [ 'input[name=\"UserDetails.Telephone\"]' ],\r\n [],\r\n [ 'input[name=\"PaymentDetailsViewModel.CardDetails.CardType\"]', 'input[name=\"PaymentDetailsViewModel.CardDetails.CardHolderName\"]', 'input[name=\"PaymentDetailsViewModel.CardDetails.CardNumber\"]', 'input[name=\"PaymentDetailsViewModel.CardDetails.ExpiresMonth\"]', 'input[name=\"PaymentDetailsViewModel.CardDetails.ExpiresYear\"]', 'input[name=\"PaymentDetailsViewModel.CardDetails.CV2\"]']\r\n ]\r\n },\r\n\r\n Init: function() {\r\n\r\n // Prevents the validation from zooming to an invalid element on a different slide.\r\n $.validator.setDefaults({\r\n focusInvalid: false\r\n });\r\n\r\n this.InitCarousels();\r\n this.HandleResize();\r\n this.InitCarouselNavigation();\r\n this.InitDateSelector();\r\n this.InitValueAdds();\r\n this.InitSpecialRequirements();\r\n this.FlickityResize();\r\n\r\n var backupResize = setTimeout(function(){\r\n delivery.FlickityResize();\r\n }, 1500);\r\n },\r\n\r\n InitCarousels: function () {\r\n\r\n // Initialise the carousel\r\n $('.delivery-payment-carousel').each(function() {\r\n\r\n $thisCarousel = $(this);\r\n\r\n var $form = $thisCarousel.closest('form');\r\n var $container = $('.full-delivery-container', $form);\r\n\r\n var currentStep = parseInt($form.find('input[name=\"CurrentStep\"]').val());\r\n var carouselIndex = currentStep - 1;\r\n var calendarCarouselIndex = parseInt($form.find('input[name=\"CalendarCarouselIndex\"]').val());\r\n $container.attr('class', 'full-delivery-container current-step-' + currentStep);\r\n\r\n $thisCarousel.flickity({\r\n // options\r\n cellAlign: 'left',\r\n contain: true,\r\n freeScroll: true,\r\n cellSelector: '.step',\r\n initialIndex: carouselIndex,\r\n prevNextButtons: false,\r\n draggable: false,\r\n accessiblity: false\r\n });\r\n\r\n var $calendarCarousel = $thisCarousel.find('.available-dates__table-row-dates');\r\n\r\n var calendarCarousel = $calendarCarousel.flickity({\r\n // options\r\n cellAlign: 'left',\r\n contain: true,\r\n freeScroll: true,\r\n cellSelector: '.available-dates__table-table-row',\r\n initialIndex: calendarCarouselIndex,\r\n prevNextButtons: true,\r\n pageDots: false,\r\n accessiblity: false\r\n });\r\n\r\n calendarCarousel.on('cellSelect', function() {\r\n var flkty = $('.available-dates__table-row-dates').data('flickity');\r\n $firstDate = $('.available-dates__table-table-row:eq(' + flkty.selectedIndex + ')').find('.available-dates__table-table-cell:first-child');\r\n $lastDate = $('.available-dates__table-table-row:eq(' + flkty.selectedIndex + ')').find('.available-dates__table-table-cell:last-child');\r\n if ($firstDate.data('month') == $lastDate.data('month')) {\r\n $('.available-dates h4').text($lastDate.data('month'));\r\n } else {\r\n $('.available-dates h4').text($firstDate.data('month') + ' / ' + $lastDate.data('month'));\r\n }\r\n });\r\n });\r\n },\r\n\r\n FlickityResize: function() {\r\n $('.delivery-payment-carousel').flickity('resize');\r\n $('.available-dates__table-row-dates').flickity('resize');\r\n },\r\n\r\n HandleResize: function() {\r\n\r\n $('.button').on('mouseup touchend', function () {\r\n delivery.FlickityResize();\r\n });\r\n },\r\n\r\n InitCarouselNavigation: function() {\r\n\r\n var me = this;\r\n\r\n $('.carousel-step-nav button.next').on('click', function(e) {\r\n\r\n var $form = $(this).closest('form');\r\n var $carousel = $('.delivery-payment-carousel', $form);\r\n var $container = $('.full-delivery-container', $form);\r\n var validator = $form.validate();\r\n var flkty = $carousel.data('flickity');\r\n var $loader = $('.loader', $form);\r\n\r\n var $time = $('.order-status-time', $form);\r\n\r\n $('.value-add__item-selector').removeClass('show-info');\r\n delivery.FlickityResize();\r\n\r\n if (flkty.selectedIndex == 2) {\r\n var balance = $(delivery.settings.currentBalanceSelector, $form).val();\r\n\t\t var waiverBalance = $(delivery.settings.waiverBalanceSelector, $form).val();\r\n\r\n if (parseFloat(balance) <= parseFloat(waiverBalance)) {\r\n // Prevents validation of an empty unneeded payment screen\r\n $('#step-4', $form).remove();\r\n $form.submit();\r\n }\r\n }\r\n\r\n if(me.CheckIfValid(validator, $form.attr('id'), me.settings.ElementsToValidate[flkty.selectedIndex])) {\r\n // Submit form if valid and submitting payment\r\n if (flkty.selectedIndex == 3) {\r\n $loader.show();\r\n $('.button.back', $form).prop('disabled', true);\r\n $(this).prop('disabled', true);\r\n $form.submit();\r\n }\r\n\r\n validator.resetForm();\r\n $carousel.flickity().flickity('next');\r\n var currentStep = flkty.selectedIndex + 1;\r\n $container.attr('class', 'full-delivery-container current-step-' + currentStep);\r\n $form.find('input[name=\"CurrentStep\"]').val(currentStep);\r\n }\r\n\r\n if ($time.visible() == false) {\r\n $('html, body').animate({\r\n scrollTop: ($time.offset().top - 10)\r\n }, 300);\r\n }\r\n\r\n e.preventDefault();\r\n return false;\r\n });\r\n\r\n $('.carousel-step-nav button.back').on('click', function(e) {\r\n\r\n var $form = $(this).closest('form');\r\n var $carousel = $('.delivery-payment-carousel', $form);\r\n var $container = $('.full-delivery-container', $form);\r\n var validator = $form.validate();\r\n var flkty = $carousel.data('flickity');\r\n var $time = $('.order-status-time', $form);\r\n\r\n $('.value-add__item-selector').removeClass('show-info');\r\n delivery.FlickityResize();\r\n \r\n if (flkty.selectedIndex != 0) {\r\n $carousel.flickity().flickity('previous');\r\n var currentStep = flkty.selectedIndex + 1;\r\n $container.attr('class', 'full-delivery-container current-step-' + currentStep);\r\n $form.find('input[name=\"CurrentStep\"]').val(currentStep);\r\n }\r\n\r\n if ($time.visible() == false) {\r\n $('html, body').animate({\r\n scrollTop: ($time.offset().top - 10)\r\n }, 300);\r\n }\r\n\r\n e.preventDefault();\r\n return false;\r\n });\r\n },\r\n\r\n CheckIfValid: function(validator, formId, arrayOfIds) {\r\n\r\n var valid = true;\r\n\r\n if (arrayOfIds.length > 0) {\r\n\r\n for (var i = 0; i < arrayOfIds.length; i++) {\r\n\r\n var elementId = '#' + formId + ' ' + arrayOfIds[i];\r\n if (!validator.element(elementId)) {\r\n valid = false;\r\n }\r\n }\r\n }\r\n\r\n return valid;\r\n },\r\n\r\n InitSpecialRequirements: function() {\r\n\r\n $('input[type=radio][name=SpecialRequirements]').on('change', function() {\r\n\r\n var $form = $(this).closest('form');\r\n\r\n if ($(this).val() == \"true\")\r\n {\r\n $('.special-requirements .form__input--textarea-toggle', $form).show(100,function(){\r\n delivery.FlickityResize();\r\n });\r\n }\r\n else\r\n {\r\n $('.special-requirements .form__input--textarea-toggle', $form).hide(100, function(){\r\n delivery.FlickityResize();\r\n });\r\n }\r\n });\r\n },\r\n\r\n InitDateSelector: function() {\r\n\r\n // Update selected date on final screen\r\n // Current selected, if any\r\n var $selectedDate = $('input[name=\"SelectedDelSchedIDX\"]:checked');\r\n if ($selectedDate.size() > 0) {\r\n var $form = $selectedDate.closest('form');\r\n delivery.CalculateTotal($form);\r\n }\r\n\r\n $('input[type=radio][name=SelectedDelSchedIDX]').on('change', function() {\r\n var $form = $(this).closest('form');\r\n delivery.CalculateTotal($form);\r\n });\r\n },\r\n\r\n InitValueAdds: function() {\r\n\r\n $('input[type=checkbox].delivery__checkbox').on('change', function() {\r\n var $form = $(this).closest('form');\r\n delivery.CalculateTotal($form);\r\n });\r\n\r\n $('.value-add__info-toggle').on('click', function() {\r\n $(this).closest('.value-add__item-selector').toggleClass('show-info');\r\n delivery.FlickityResize();\r\n });\r\n },\r\n\r\n CalculateTotal : function(context) {\r\n\r\n var originalBalance = parseFloat($(delivery.settings.originalBalanceSelector, context).val());\r\n var currentBalance = parseFloat($(delivery.settings.currentBalanceSelector, context).val());\r\n\r\n // Delivery surcharge\r\n\r\n // Current selected, if any\r\n $selectedDate = $('input[name=\"SelectedDelSchedIDX\"]:checked', context);\r\n var deliverySurcharge = ($selectedDate.size() > 0) ? $selectedDate.data('amount') : 0;\r\n var newbalance = originalBalance + parseFloat(deliverySurcharge);\r\n\r\n // Update selected date on final screen\r\n if ($selectedDate.size() > 0) {\r\n $('.final-summary span', context).text($selectedDate.data('date'));\r\n }\r\n\r\n // Value Add Items\r\n $('.delivery__checkbox').each(function() {\r\n var $checkbox = $(this);\r\n if ($checkbox.is(':checked')) {\r\n var itemAmount = (parseFloat($checkbox.data('amount')) * parseInt($checkbox.data('quantity')));\r\n newbalance += parseFloat(itemAmount);\r\n }\r\n });\r\n\r\n // Update Balance\r\n if (newbalance != currentBalance)\r\n {\r\n delivery.UpdateBalance(newbalance, context);\r\n }\r\n },\r\n\r\n UpdateBalance: function(balance, context) {\r\n\r\n var waiverBalance = parseFloat($(delivery.settings.waiverBalanceSelector, context).val());\r\n\r\n $('#submit-step-3-button', context).text((parseFloat(balance) <= parseFloat(waiverBalance)) ? 'Complete Booking' : 'Pay Balance');\r\n\r\n $(delivery.settings.balanceSelector, context).text(balance.toFixed(2));\r\n $(delivery.settings.currentBalanceSelector, context).val(balance.toFixed(2));\r\n }\r\n};\r\n\r\n(function () {\r\n delivery.Init();\r\n})();\r\n","$('.expand-button').on('click', function () {\r\n\t$(this).closest('.card').toggleClass('show-expanded-text');\r\n});\r\n","// Controls logic for when clicking on data-mode handlers (Youtube, etc.)\r\nwindow.templates = {\r\n\toverlay: [\r\n\t\t'',\r\n\t\t\t'
',\r\n\t\t\t'
',\r\n\t\t\t\t'
; max-width: <%= width %>;\">',\r\n\t\t\t\t\t'
',\r\n\t\t\t\t\t'<%= content %>',\r\n\t\t\t\t'
',\r\n\t\t\t'
',\r\n\t\t'
'\r\n\t],\r\n\tyoutube: [\r\n\t\t''\r\n\t]\r\n};\r\n\r\n$(document).on('ready', function () {\r\n\t$('body').on('click', 'a[data-link-mode=\"overlay\"]', function (e) {\r\n\t\te.preventDefault();\r\n\r\n\t\tvar $this = $(this);\r\n\t\tvar data = $this.data();\r\n\t\tvar src = $this.attr('href');\r\n\r\n\t\tvar $content;\r\n\r\n\t\tif (data.linkType == \"youtube\") {\r\n\t\t\t$content = _.template(window.templates.youtube.join(''))({\r\n\t\t\t\tsrc: src,\r\n\t\t\t\theight: data.contentHeight,\r\n\t\t\t\twidth: data.contentWidth\r\n\t\t\t});\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn console.warn(data.linkType, 'is not supported')\r\n\t\t}\r\n\r\n\t\tvar $overlay = $(_.template(window.templates.overlay.join(''))({\r\n\t\t\tcontent: $content,\r\n\t\t\theight: data.contentHeight,\r\n\t\t\twidth: data.contentWidth\r\n\t\t}));\r\n\r\n\t\t$overlay.on('click', '.overlay__mask, .overlay__close', function () {\r\n\t\t\tvar $this = $(this);\r\n\r\n\t\t\t$this.closest('.overlay').remove();\r\n\t\t})\r\n\r\n\t\t$('body').append($overlay);\r\n\t});\r\n\r\n\t$('body').on('click', '[data-link-mode=\"ajax\"]', function(e){\r\n\t var element = e.target;\r\n\t //ajax submit\r\n\r\n\t if(element.tagName == 'A'){\r\n\t //ajax href\r\n\t var url = $(element).attr('href');\r\n\t var data = '';\r\n\t var action = null;\r\n\t var method = 'GET';\r\n\t } else {\r\n\t var url = $(element).parents('form').attr('action') || window.location.href;\r\n\t var data = $(element).parents('form').serialize();\r\n\t var method = $(element).parents('form').attr('method') || 'GET';\r\n\t var action = $(element).attr('value');\r\n\t }\r\n\r\n\t $(element).attr('disabled',true).toggleClass('active');\r\n\r\n\t $.ajax({\r\n\t method : method,\r\n\t url: url,\r\n\t data: data+'&action='+action,\r\n\t success: function(r){\r\n\t\t $(element).trigger( action );\r\n\t\t $(element).attr('disabled',false).toggleClass('active');\r\n\t },\r\n\t error: function(e,response){\r\n\t\tconsole.log(e,response);\r\n\t\t$(element).attr('disabled',false).toggleClass('active');\r\n\t }\r\n\t });\r\n\r\n\r\n\t e.preventDefault();\r\n\r\n\t});\r\n\r\n\t/*\r\n\t* If you want a UI change on success\r\n\t* register an event handler here based on the action attribute of the element\r\n\t*/\r\n\r\n\t$('button[data-link-mode=\"ajax\"][value=confirm-order]').on('confirm-order',function(e){\r\n\t \r\n\t $('button[value=confirm-order]').parents('ul').find('li a').remove();\r\n\t $(this).replaceWith('ORDER CONFIRMED');\r\n\t \r\n\t});\r\n\r\n\t$('button[data-link-mode=\"ajax\"]').on('save-telephone',function(e){\r\n\t //$(this).replaceWith('ORDER CONFIRMED');\r\n\t \r\n\t var newNumber = $('input[name=\"UserDetails.Telephone\"]').val();\r\n\r\n\t $('[data-toggle-edit-field=telephone]').toggleClass('hidden');\r\n\r\n\t $('[data-toggle-edit-display=telephone] .user-details-field__value').text(newNumber);\r\n\t $('[data-toggle-edit-display=telephone]').toggleClass('hidden');\r\n\t \r\n\t $('[data-toggle-edit-display=telephone]').toggleClass('hidden');\r\n\t \r\n\t //Crappy carousel event handler hack\r\n\t //Basically it's hard to identify the phone number field without retagging stuff and breaking other Degree 53 scripts\r\n\t try {\r\n\t\tvar fieldTag = $('button[value=save-telephone]').parents('[data-toggle-edit-field]').attr('data-toggle-edit-field');\r\n\t\t\r\n\t\t$('[data-toggle-edit-display='+fieldTag+'] .user-details-field__value').text(newNumber);\r\n\t\t$('a[data-toggle-edit-for='+fieldTag+']:visible').click();\r\n\t }catch (ex){}\r\n\t \r\n\t});\r\n});","$('body').on('click', '.site-header__nav-toggle', function() {\r\n $('body').toggleClass('open');\r\n});\r\n","$(document).on('ready', function () {\r\n $('body').on('mousedown touchstart', '.password-preview', function() {\r\n var passwordFieldFor = $(this).data('for');\r\n $('#' + passwordFieldFor).attr('type', 'text');\r\n }).on('mouseup touchend touchcancel', '.password-preview', function() {\r\n var passwordFieldFor = $(this).data('for');\r\n $('#' + passwordFieldFor).attr('type', 'password');\r\n });\r\n});\r\n","(function () {\r\n var rules = [\r\n {\r\n description: 'Min number of characters',\r\n regex: new RegExp('^.{6,}$'),\r\n required: true\r\n },{\r\n description: 'At least one special character',\r\n regex: new RegExp('^.*[^a-zA-Z0-9]+.*$'),\r\n required: false\r\n },{\r\n description: 'At least one numeric',\r\n regex: new RegExp('^.*[0-9]+.*$'),\r\n required: false\r\n },{\r\n description: 'Must contain at least one upper and lowercase character',\r\n regex: new RegExp('^.*(?=.*[a-z])(?=.*[A-Z]).*$'),\r\n required: false\r\n }\r\n ];\r\n\r\n var strengths = {\r\n Weak: {\r\n text: 'Weak',\r\n cssClass: 'weak'\r\n },\r\n OK: {\r\n text: 'OK',\r\n cssClass: 'ok'\r\n },\r\n Strong: {\r\n text: 'Good',\r\n cssClass: 'strong'\r\n },\r\n VeryStrong: {\r\n text: 'Very Good',\r\n cssClass: 'very-strong'\r\n }\r\n };\r\n\r\n var elements = {\r\n passwordInput: document.querySelector('input[type=password].check-strength'),\r\n passwordStrengthMeter: document.querySelector('.password-strength__meter'),\r\n passwordStrengthText: document.querySelector('.password-strength__text')\r\n };\r\n\r\n var strength;\r\n\r\n var checkPassword = function () {\r\n // Get current password value\r\n var password = elements.passwordInput.value;\r\n var matches = 0;\r\n\r\n // Loop through all regex rules\r\n for (var i = 0; i < rules.length; i++) {\r\n\r\n // Increment number of matches if password matches rule\r\n if (rules[i].regex.test(password)) {\r\n matches += 1;\r\n continue;\r\n }\r\n\r\n // If password does not match rule but is required,\r\n // reset number of matches to 0 to result in a weak strength\r\n if (rules[i].required) {\r\n matches = 0;\r\n break;\r\n }\r\n }\r\n\r\n // Set strength by number of rule matches\r\n switch (matches) {\r\n case 1: strength = strengths.Weak;\r\n break;\r\n case 2: strength = strengths.OK;\r\n break;\r\n case 3: strength = strengths.Strong;\r\n break;\r\n case 4: strength = strengths.VeryStrong;\r\n break;\r\n default: strength = strengths.Weak;\r\n }\r\n\r\n // Set the css class for the strength meter and the strength display text\r\n elements.passwordStrengthMeter.className = 'password-strength__meter ' + strength.cssClass;\r\n elements.passwordStrengthText.textContent = strength.text;\r\n };\r\n\r\n var init = function () {\r\n if (elements.passwordInput) {\r\n elements.passwordInput.onkeyup = checkPassword;\r\n }\r\n };\r\n\r\n init();\r\n})();\r\n","$(document).on('ready', function () {\r\n\r\n var submitCount = 0;\r\n\r\n $('form').submit(function(e){\r\n\r\n if (submitCount == 1)\r\n {\r\n e.preventDefault();\r\n return;\r\n }\r\n submitCount++;\r\n\r\n setTimeout(function(){\r\n submitCount = 0;\r\n }, 500);\r\n });\r\n\r\n});\r\n","(function () {\r\n var elements = {\r\n triggers: document.querySelectorAll('[data-toggle-change-for]')\r\n };\r\n\r\n var events = function () {\r\n Array.prototype.forEach.call(elements.triggers, function (el) {\r\n el.onclick = toggleChange;\r\n });\r\n };\r\n\r\n var toggleChange = function (e) {\r\n e.preventDefault();\r\n\r\n var targetName = e.target.getAttribute('data-toggle-change-for');\r\n var toggleButtonText = e.target.getAttribute('data-toggle-change-text');\r\n\r\n var target = document.querySelector('[data-toggle-change=' + targetName + ']');\r\n var targetIsActive = target.className.indexOf(' hidden') == -1;\r\n\r\n e.target.setAttribute('data-toggle-change-text', e.target.textContent);\r\n\r\n if (targetIsActive) {\r\n target.className += ' hidden';\r\n }\r\n else {\r\n target.className = target.className.replace(' hidden', '');\r\n }\r\n\r\n if (toggleButtonText) {\r\n e.target.textContent = toggleButtonText;\r\n }\r\n\r\n delivery.FlickityResize();\r\n };\r\n\r\n var init = function () {\r\n events();\r\n };\r\n\r\n init();\r\n}());\r\n","(function () {\r\n var elements = {\r\n triggers: document.querySelectorAll('[data-toggle-edit-for]'),\r\n displayFields: document.querySelectorAll('[data-toggle-edit-display]'),\r\n editFields: document.querySelectorAll('[data-toggle-edit-field]')\r\n };\r\n\r\n var events = function () {\r\n Array.prototype.forEach.call(elements.triggers, function (el) {\r\n el.onclick = toggleEditField;\r\n });\r\n };\r\n\r\n var toggleEditField = function (e) {\r\n e.preventDefault();\r\n\r\n //resetDisplays();\r\n //resetFields();\r\n\r\n var targetName = e.target.getAttribute('data-toggle-edit-for');\r\n var displayField = document.querySelector('[data-toggle-edit-display=' + targetName + ']');\r\n var editField = document.querySelector('[data-toggle-edit-field=' + targetName + ']');\r\n\r\n if (displayField.classList.contains('hidden')) {\r\n editField.className += ' hidden';\r\n displayField.className = displayField.className.replace(' hidden', '');\r\n\r\n } else {\r\n displayField.className += ' hidden';\r\n editField.className = editField.className.replace(' hidden', '');\r\n }\r\n delivery.FlickityResize();\r\n };\r\n\r\n var resetDisplays = function () {\r\n Array.prototype.forEach.call(elements.displayFields, function (el) {\r\n if (el.className.indexOf(' hidden')) {\r\n el.className = el.className.replace(' hidden', '');\r\n }\r\n });\r\n delivery.FlickityResize();\r\n };\r\n\r\n var resetFields = function () {\r\n Array.prototype.forEach.call(elements.editFields, function (el) {\r\n if (el.className.indexOf(' hidden') == -1) {\r\n el.className += ' hidden';\r\n }\r\n });\r\n delivery.FlickityResize();\r\n };\r\n\r\n var init = function () {\r\n events();\r\n };\r\n\r\n init();\r\n}());\r\n","(function () {\r\n var elements = {\r\n triggers: document.querySelectorAll('[data-name-for]')\r\n };\r\n\r\n var events = function () {\r\n Array.prototype.forEach.call(elements.triggers, function (el) {\r\n el.onclick = toggleElement;\r\n });\r\n };\r\n\r\n var toggleElement = function (e) {\r\n e.preventDefault();\r\n\r\n var targetName = e.target.getAttribute('data-name-for');\r\n var target = document.querySelector('[data-name=' + targetName + ']');\r\n var targetIsActive = target.className.indexOf('active') > -1;\r\n\r\n if (targetIsActive) {\r\n target.className = target.className.replace(' active', '');\r\n } else {\r\n target.className += ' active';\r\n }\r\n };\r\n\r\n var init = function () {\r\n events();\r\n };\r\n\r\n init();\r\n}());"]}