(function(n){function i(n,t){for(var i=window,r=(n||"").split(".");i&&r.length;)i=i[r.shift()];return typeof i=="function"?i:(t.push(n),Function.constructor.apply(null,t))}function u(n){return n==="GET"||n==="POST"}function e(n,t){u(t)||n.setRequestHeader("X-HTTP-Method-Override",t)}function o(t,i,r){var u;r.indexOf("application/x-javascript")===-1&&(u=(t.getAttribute("data-ajax-mode")||"").toUpperCase(),n(t.getAttribute("data-ajax-update")).each(function(t,r){var f;switch(u){case"BEFORE":f=r.firstChild;n("<div />").html(i).contents().each(function(){r.insertBefore(this,f)});break;case"AFTER":n("<div />").html(i).contents().each(function(){r.appendChild(this)});break;default:n(r).html(i)}}))}function f(t,r){var s,h,f,c;(s=t.getAttribute("data-ajax-confirm"),!s||window.confirm(s))&&(h=n(t.getAttribute("data-ajax-loading")),c=parseInt(t.getAttribute("data-ajax-loading-duration"),10)||0,n.extend(r,{context:t,type:t.getAttribute("data-ajax-method")||undefined,url:t.getAttribute("data-ajax-url")||undefined,beforeSend:function(n){var r;return e(n,f),r=i(t.getAttribute("data-ajax-begin"),["xhr"]).apply(this,arguments),r!==!1&&h.show(c),r},complete:function(){h.hide(c);i(t.getAttribute("data-ajax-complete"),["xhr","status"]).apply(this,arguments)},success:function(n,r,u){o(t,n,u.getResponseHeader("Content-Type")||"text/html");i(t.getAttribute("data-ajax-success"),["data","status","xhr"]).apply(this,arguments)},error:i(t.getAttribute("data-ajax-failure"),["xhr","status","error"])}),r.data.push({name:"X-Requested-With",value:"XMLHttpRequest"}),f=r.type.toUpperCase(),u(f)||(r.type="POST",r.data.push({name:"X-HTTP-Method-Override",value:f})),n.ajax(r))}function s(t){var i=n(t).data(data_validation);return!i||!i.validate||i.validate()}var t="unobtrusiveAjaxClick",r="unobtrusiveAjaxClickTarget";data_validation="unobtrusiveValidation";n(document).on("click","a[data-ajax=true]",function(n){n.preventDefault();f(this,{url:this.href,type:"GET",data:[]})});n(document).on("click","form[data-ajax=true] input[type=image]",function(i){var r=i.target.name,u=n(i.target),f=n(u.parents("form")[0]),e=u.offset();f.data(t,[{name:r+".x",value:Math.round(i.pageX-e.left)},{name:r+".y",value:Math.round(i.pageY-e.top)}]);setTimeout(function(){f.removeData(t)},0)});n(document).on("click","form[data-ajax=true] :submit",function(i){var f=i.currentTarget.name,e=n(i.target),u=n(e.parents("form")[0]);u.data(t,f?[{name:f,value:i.currentTarget.value}]:[]);u.data(r,e);setTimeout(function(){u.removeData(t);u.removeData(r)},0)});n(document).on("submit","form[data-ajax=true]",function(i){var e=n(this).data(t)||[],u=n(this).data(r),o=u&&u.hasClass("cancel");(i.preventDefault(),o||s(this))&&f(this,{url:this.action,type:this.method||"GET",data:e.concat(n(this).serializeArray())})})})(jQuery);!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){n.extend(n.fn,{validate:function(t){if(!this.length)return void(t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var i=n.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",function(t){i.settings.submitHandler&&(i.submitButton=t.target);n(this).hasClass("cancel")&&(i.cancelSubmit=!0);void 0!==n(this).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.on("submit.validate",function(t){function r(){var u,r;return i.settings.submitHandler?(i.submitButton&&(u=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(n(i.submitButton).val()).appendTo(i.currentForm)),r=i.settings.submitHandler.call(i,i.currentForm,t),i.submitButton&&u.remove(),void 0!==r?r:!1):!0}return i.settings.debug&&t.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})),i)},valid:function(){var t,i,r;return n(this[0]).is("form")?t=this.validate().form():(r=[],t=!0,i=n(this[0].form).validate(),this.each(function(){t=i.element(this)&&t;t||(r=r.concat(i.errorList))}),i.errorList=r),t},rules:function(t,i){if(this.length){var e,s,f,u,o,h,r=this[0];if(t)switch(e=n.data(r.form,"validator").settings,s=e.rules,f=n.validator.staticRules(r),t){case"add":n.extend(f,n.validator.normalizeRule(i));delete f.messages;s[r.name]=f;i.messages&&(e.messages[r.name]=n.extend(e.messages[r.name],i.messages));break;case"remove":return i?(h={},n.each(i.split(/\s/),function(t,i){h[i]=f[i];delete f[i];"required"===i&&n(r).removeAttr("aria-required")}),h):(delete s[r.name],f)}return u=n.validator.normalizeRules(n.extend({},n.validator.classRules(r),n.validator.attributeRules(r),n.validator.dataRules(r),n.validator.staticRules(r)),r),u.required&&(o=u.required,delete u.required,u=n.extend({required:o},u),n(r).attr("aria-required","true")),u.remote&&(o=u.remote,delete u.remote,u=n.extend(u,{remote:o})),u}}});n.extend(n.expr[":"],{blank:function(t){return!n.trim(""+n(t).val())},filled:function(t){var i=n(t).val();return null!==i&&!!n.trim(""+i)},unchecked:function(t){return!n(t).prop("checked")}});n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t);this.currentForm=i;this.init()};n.validator.format=function(t,i){return 1===arguments.length?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:void 0===i?t:(arguments.length>2&&i.constructor!==Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(new RegExp("\\{"+n+"\\}","g"),function(){return i})}),t)};n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(n){this.lastActive=n;this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(n)))},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(t,i){9===i.which&&""===this.elementValue(t)||-1!==n.inArray(i.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(t.name in this.submitted||t.name in this.invalid)&&this.element(t)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){"radio"===t.type?this.findByName(t.name).addClass(i).removeClass(r):n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){"radio"===t.type?this.findByName(t.name).removeClass(i).addClass(r):n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},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.",equalTo:"Please enter the same value again.",maxlength:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}."),step:n.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function i(t){var r=n.data(this.form,"validator"),u="on"+t.type.replace(/^validate/,""),i=r.settings;i[u]&&!n(this).is(i.ignore)&&i[u].call(r,this,t)}this.labelContainer=n(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm);this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var t,r=this.groups={};n.each(this.settings.groups,function(t,i){"string"==typeof i&&(i=i.split(/\s/));n.each(i,function(n,i){r[i]=t})});t=this.settings.rules;n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)});n(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'], [contenteditable]",i).on("click.validate","select, option, [type='radio'], [type='checkbox']",i);this.settings.invalidHandler&&n(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler);n(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){var e,o,i=this.clean(t),r=this.validationTargetFor(i),u=this,f=!0;return void 0===r?delete this.invalid[i.name]:(this.prepareElement(r),this.currentElements=n(r),o=this.groups[r.name],o&&n.each(this.groups,function(n,t){t===o&&n!==r.name&&(i=u.validationTargetFor(u.clean(u.findByName(n))),i&&i.name in u.invalid&&(u.currentElements.push(i),f=f&&u.check(i)))}),e=this.check(r)!==!1,f=f&&e,this.invalid[r.name]=e?!1:!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),n(t).attr("aria-invalid",!e)),f},showErrors:function(t){if(t){var i=this;n.extend(this.errorMap,t);this.errorList=n.map(this.errorMap,function(n,t){return{message:n,element:i.findByName(t)[0]}});this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(this.currentForm).resetForm();this.invalid={};this.submitted={};this.prepareForm();this.hideErrors();var t=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(t)},resetElements:function(n){var t;if(this.settings.unhighlight)for(t=0;n[t];t++)this.settings.unhighlight.call(this,n[t],this.settings.errorClass,""),this.findByName(n[t].name).removeClass(this.settings.validClass);else n.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(n){var t,i=0;for(t in n)n[t]&&i++;return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(n){n.not(this.containers).text("");this.addWrapper(n).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&1===n.grep(this.errorList,function(n){return n.element.name===t.name}).length&&t},elements:function(){var t=this,i={};return n(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var r=this.name||n(this).attr("name");return!r&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=n(this).closest("form")[0]),r in i||!t.objectLength(n(this).rules())?!1:(i[r]=!0,!0)})},clean:function(t){return n(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return n(this.settings.errorElement+"."+t,this.errorContext)},resetInternals:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=n([]);this.toHide=n([])},reset:function(){this.resetInternals();this.currentElements=n([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset();this.toHide=this.errorsFor(n)},elementValue:function(t){var i,r,f=n(t),u=t.type;return"radio"===u||"checkbox"===u?this.findByName(t.name).filter(":checked").val():"number"===u&&"undefined"!=typeof t.validity?t.validity.badInput?"NaN":f.val():(i=t.hasAttribute("contenteditable")?f.text():f.val(),"file"===u?"C:\\fakepath\\"===i.substr(0,12)?i.substr(12):(r=i.lastIndexOf("/"),r>=0?i.substr(r+1):(r=i.lastIndexOf("\\"),r>=0?i.substr(r+1):i)):"string"==typeof i?i.replace(/\r/g,""):i)},check:function(t){t=this.validationTargetFor(this.clean(t));var u,f,r,i=n(t).rules(),h=n.map(i,function(n,t){return t}).length,s=!1,e=this.elementValue(t);if("function"==typeof i.normalizer){if(e=i.normalizer.call(t,e),"string"!=typeof e)throw new TypeError("The normalizer should return a string value.");delete i.normalizer}for(f in i){r={method:f,parameters:i[f]};try{if(u=n.validator.methods[f].call(this,e,t,r.parameters),"dependency-mismatch"===u&&1===h){s=!0;continue}if(s=!1,"pending"===u)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!u)return this.formatAndAdd(t,r),!1}catch(o){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.",o),o instanceof TypeError&&(o.message+=".  Exception occurred when checking element "+t.id+", check the '"+r.method+"' method."),o;}}if(!s)return this.objectLength(i)&&this.successList.push(t),!0},customDataMessage:function(t,i){return n(t).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||n(t).data("msg")},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var n=0;n<arguments.length;n++)if(void 0!==arguments[n])return arguments[n]},defaultMessage:function(t,i){var r=this.findDefined(this.customMessage(t.name,i.method),this.customDataMessage(t,i.method),!this.settings.ignoreTitle&&t.title||void 0,n.validator.messages[i.method],"<strong>Warning: No message defined for "+t.name+"<\/strong>"),u=/\$?\{(\d+)\}/g;return"function"==typeof r?r=r.call(this,i.parameters,t):u.test(r)&&(r=n.validator.format(r.replace(u,"{$1}"),i.parameters)),r},formatAndAdd:function(n,t){var i=this.defaultMessage(n,t);this.errorList.push({message:i,element:n,method:t.method});this.errorMap[n.name]=i;this.submitted[n.name]=i},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var i,t,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,i=this.validElements();i[n];n++)this.settings.unhighlight.call(this,i[n],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 n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var u,s,e,o,r=this.errorsFor(t),h=this.idOrName(t),f=n(t).attr("aria-describedby");r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.html(i)):(r=n("<"+this.settings.errorElement+">").attr("id",h+"-error").addClass(this.settings.errorClass).html(i||""),u=r,this.settings.wrapper&&(u=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(u):this.settings.errorPlacement?this.settings.errorPlacement(u,n(t)):u.insertAfter(t),r.is("label")?r.attr("for",h):0===r.parents("label[for='"+this.escapeCssMeta(h)+"']").length&&(e=r.attr("id"),f?f.match(new RegExp("\\b"+this.escapeCssMeta(e)+"\\b"))||(f+=" "+e):f=e,n(t).attr("aria-describedby",f),s=this.groups[t.name],s&&(o=this,n.each(o.groups,function(t,i){i===s&&n("[name='"+o.escapeCssMeta(t)+"']",o.currentForm).attr("aria-describedby",r.attr("id"))}))));!i&&this.settings.success&&(r.text(""),"string"==typeof this.settings.success?r.addClass(this.settings.success):this.settings.success(r,t));this.toShow=this.toShow.add(r)},errorsFor:function(t){var r=this.escapeCssMeta(this.idOrName(t)),u=n(t).attr("aria-describedby"),i="label[for='"+r+"'], label[for='"+r+"'] *";return u&&(i=i+", #"+this.escapeCssMeta(u).replace(/\s+/g,", #")),this.errors().filter(i)},escapeCssMeta:function(n){return n.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),n(t).not(this.settings.ignore)[0]},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){return n(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return this.dependTypes[typeof n]?this.dependTypes[typeof n](n,t):!0},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){var i=this.elementValue(t);return!n.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,n(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,i){this.pendingRequest--;this.pendingRequest<0&&(this.pendingRequest=0);delete this.pending[t.name];n(t).removeClass(this.settings.pendingClass);i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,i){return n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:i})})},destroy:function(){this.resetForm();n(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},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(t,i){t.constructor===String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=n(t).attr("class");return r&&n.each(r.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},normalizeAttributeRule:function(n,t,i,r){/min|max|step/.test(i)&&(null===t||/number|range|text/.test(t))&&(r=Number(r),isNaN(r)&&(r=void 0));r||0===r?n[i]=r:t===i&&"range"!==t&&(n[i]=!0)},attributeRules:function(t){var r,i,u={},f=n(t),e=t.getAttribute("type");for(r in n.validator.methods)"required"===r?(i=t.getAttribute(r),""===i&&(i=!0),i=!!i):i=f.attr(r),this.normalizeAttributeRule(u,e,r,i);return u.maxlength&&/-1|2147483647|524288/.test(u.maxlength)&&delete u.maxlength,u},dataRules:function(t){var i,r,u={},f=n(t),e=t.getAttribute("type");for(i in n.validator.methods)r=f.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),this.normalizeAttributeRule(u,e,i,r);return u},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1)return void delete t[r];if(u.param||u.depends){var f=!0;switch(typeof u.depends){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=void 0!==u.param?u.param:!0:(n.data(i.form,"validator").resetElements(n(i)),delete t[r])}}),n.each(t,function(r,u){t[r]=n.isFunction(u)&&"normalizer"!==r?u(i):u}),n.each(["minlength","maxlength"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){var i;t[this]&&(n.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:"string"==typeof t[this]&&(i=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(i[0]),Number(i[1])]))}),n.validator.autoCreateRanges&&(null!=t.min&&null!=t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),null!=t.minlength&&null!=t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if("string"==typeof t){var i={};n.each(t.split(/\s/),function(){i[this]=!0});t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i;n.validator.messages[t]=void 0!==r?r:n.validator.messages[t];i.length<3&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var u=n(i).val();return u&&u.length>0}return this.checkable(i)?this.getLength(t,i)>0:t.length>0},email:function(n,t){return this.optional(t)||/^[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(n)},url:function(n,t){return this.optional(t)||/^(?:(?:(?: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(n)},date:function(n,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(n).toString())},dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(n)},number:function(n,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},minlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u>=r},maxlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||r>=u},rangelength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u>=r[0]&&u<=r[1]},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||i>=n},range:function(n,t,i){return this.optional(t)||n>=i[0]&&n<=i[1]},step:function(t,i,r){var u=n(i).attr("type"),f="Step attribute on input type "+u+" is not supported.",e=new RegExp("\\b"+u+"\\b"),o=u&&!e.test("text,number,range");if(o)throw new Error(f);return this.optional(i)||t%r==0},equalTo:function(t,i,r){var u=n(r);return this.settings.onfocusout&&u.not(".validate-equalTo-blur").length&&u.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){n(i).valid()}),t===u.val()},remote:function(t,i,r,u){if(this.optional(i))return"dependency-mismatch";u="string"==typeof u&&u||"remote";var f,o,s,e=this.previousValue(i,u);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),e.originalMessage=e.originalMessage||this.settings.messages[i.name][u],this.settings.messages[i.name][u]=e.message,r="string"==typeof r&&{url:r}||r,s=n.param(n.extend({data:t},r.data)),e.old===s?e.valid:(e.old=s,f=this,this.startRequest(i),o={},o[i.name]=t,n.ajax(n.extend(!0,{mode:"abort",port:"validate"+i.name,dataType:"json",data:o,context:f.currentForm,success:function(n){var r,s,h,o=n===!0||"true"===n;f.settings.messages[i.name][u]=e.originalMessage;o?(h=f.formSubmitted,f.resetInternals(),f.toHide=f.errorsFor(i),f.formSubmitted=h,f.successList.push(i),f.invalid[i.name]=!1,f.showErrors()):(r={},s=n||f.defaultMessage(i,{method:u,parameters:t}),r[i.name]=e.message=s,f.invalid[i.name]=!0,f.showErrors(r));e.valid=o;f.stopRequest(i,o)}},r)),"pending")}}});var i,t={};n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;"abort"===n.mode&&(t[u]&&t[u].abort(),t[u]=r)}):(i=n.ajax,n.ajax=function(r){var f=("mode"in r?r:n.ajaxSettings).mode,u=("port"in r?r:n.ajaxSettings).port;return"abort"===f?(t[u]&&t[u].abort(),t[u]=i.apply(this,arguments),t[u]):i.apply(this,arguments)})}),function(n){function i(n,t,i){n.rules[t]=i;n.message&&(n.messages[t]=n.message)}function h(n){return n.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function f(n){return n.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function e(n){return n.substr(0,n.lastIndexOf(".")+1)}function o(n,t){return n.indexOf("*.")===0&&(n=n.replace("*.",t)),n}function c(t,i){var r=n(this).find("[data-valmsg-for='"+f(i[0].name)+"']"),u=r.attr("data-valmsg-replace"),e=u?n.parseJSON(u)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error");t.data("unobtrusiveContainer",r);e?(r.empty(),t.removeClass("input-validation-error").appendTo(r)):t.hide()}function l(t,i){var u=n(this).find("[data-valmsg-summary=true]"),r=u.find("ul");r&&r.length&&i.errorList.length&&(r.empty(),u.addClass("validation-summary-errors").removeClass("validation-summary-valid"),n.each(i.errorList,function(){n("<li />").html(this.message).appendTo(r)}))}function a(t){var i=t.data("unobtrusiveContainer"),r=i.attr("data-valmsg-replace"),u=r?n.parseJSON(r):null;i&&(i.addClass("field-validation-valid").removeClass("field-validation-error"),t.removeData("unobtrusiveContainer"),u&&i.empty())}function v(){var t=n(this);t.data("validator").resetForm();t.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");t.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}function s(t){var i=n(t),r=i.data(u),f=n.proxy(v,t);return r||(r={options:{errorClass:"input-validation-error",errorElement:"span",errorPlacement:n.proxy(c,t),invalidHandler:n.proxy(l,t),messages:{},rules:{},success:n.proxy(a,t)},attachValidation:function(){i.unbind("reset."+u,f).bind("reset."+u,f).validate(this.options)},validate:function(){return i.validate(),i.valid()}},i.data(u,r)),r}var r=n.validator,t,u="unobtrusiveValidation";r.unobtrusive={adapters:[],parseElement:function(t,i){var u=n(t),f=u.parents("form")[0],r,e,o;f&&(r=s(f),r.options.rules[t.name]=e={},r.options.messages[t.name]=o={},n.each(this.adapters,function(){var i="data-val-"+this.name,r=u.attr(i),s={};r!==undefined&&(i+="-",n.each(this.params,function(){s[this]=u.attr(i+this)}),this.adapt({element:t,form:f,message:r,params:s,rules:e,messages:o}))}),n.extend(e,{__dummy__:!0}),i||r.attachValidation())},parse:function(t){var i=n(t).parents("form").andSelf().add(n(t).find("form")).filter("form");n(t).find(":input[data-val=true]").each(function(){r.unobtrusive.parseElement(this,!0)});i.each(function(){var n=s(this);n&&n.attachValidation()})}};t=r.unobtrusive.adapters;t.add=function(n,t,i){return i||(i=t,t=[]),this.push({name:n,params:t,adapt:i}),this};t.addBool=function(n,t){return this.add(n,function(r){i(r,t||n,!0)})};t.addMinMax=function(n,t,r,u,f,e){return this.add(n,[f||"min",e||"max"],function(n){var f=n.params.min,e=n.params.max;f&&e?i(n,u,[f,e]):f?i(n,t,f):e&&i(n,r,e)})};t.addSingleVal=function(n,t,r){return this.add(n,[t||"val"],function(u){i(u,r||n,u.params[t])})};r.addMethod("__dummy__",function(){return!0});r.addMethod("regex",function(n,t,i){var r;return this.optional(t)?!0:(r=new RegExp(i).exec(n),r&&r.index===0&&r[0].length===n.length)});r.addMethod("nonalphamin",function(n,t,i){var r;return i&&(r=n.match(/\W/g),r=r&&r.length>=i),r});t.addSingleVal("accept","exts").addSingleVal("regex","pattern");t.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");t.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");t.add("equalto",["other"],function(t){var r=e(t.element.name),u=t.params.other,s=o(u,r),h=n(t.form).find(":input[name='"+f(s)+"']")[0];i(t,"equalTo",h)});t.add("required",function(n){(n.element.tagName.toUpperCase()!=="INPUT"||n.element.type.toUpperCase()!=="CHECKBOX")&&i(n,"required",!0)});t.add("remote",["url","type","additionalfields"],function(t){var r={url:t.params.url,type:t.params.type||"GET",data:{}},u=e(t.element.name);n.each(h(t.params.additionalfields||t.element.name),function(i,e){var s=o(e,u);r.data[s]=function(){return n(t.form).find(":input[name='"+f(s)+"']").val()}});i(t,"remote",r)});t.add("password",["min","nonalphamin","regex"],function(n){n.params.min&&i(n,"minlength",n.params.min);n.params.nonalphamin&&i(n,"nonalphamin",n.params.nonalphamin);n.params.regex&&i(n,"regex",n.params.regex)});n(function(){r.unobtrusive.parse(document)})}(jQuery),function(n){"use strict";n.fn.validateInput=function(n,t,i,r){return this.bindValidators({events:[{event:"keydown",validate:n},{event:"paste",validate:t}],setValidState:i,setInvalidState:r})};n.fn.bindValidators=function(t){return this.each(function(){var i=n(this);n.each(t.events,function(n,r){i.on(r.event,function(n){r.validate&&r.validate.call(this,n)?t.setValidState&&t.setValidState.call(this,n):t.setInvalidState&&t.setInvalidState.call(this,n)})})})};n.fn.bindInputSingleValidator=function(n,t,i){return this.bindValidators({events:[{event:"focus",validate:n},{event:"blur",validate:n},{event:"input",validate:n},{event:"propertychange",validate:n}],setValidState:t,setInvalidState:i})}}(window.jQuery),function(n){"use strict";n.fn.limitLength=function(n){return n=Number(n),this.attr("maxlength",n)}}(window.jQuery),function(n,t){"use strict";function u(n,t){return t<0||t>=n.length?n:t===0?n.slice(1):t===n.length-1?n.slice(0,n.length-1):n.slice(0,t)+n.slice(t+1)}var f=1e3,e=9999,i={validateValue:function(n){switch(typeof n){case"string":var t=n.length;return t===0?!0:t===4?this.validateValue(parseInt(n)):!1;case"number":return isFinite(n)&&f<=n&&n<=e;default:return!1}},elementValueIsSelectable:function(n){return"value"in n&&"selectionStart"in n&&"selectionEnd"in n},elementHasSelectedText:function(n){return this.elementValueIsSelectable(n)&&n.selectionEnd-n.selectionStart!=0},elementValueLengthIsMaximum:function(n){return n.value.length===4},elementFutureValue:function(n,t){return this.elementValueIsSelectable(n)?n.value.substr(0,n.selectionStart)+t+n.value.substr(n.selectionEnd):n.value+t},elementFutureValueByRemovingSelection:function(n){return this.elementFutureValue(n,"")},elementFutureValueByPressingBackspace:function(n){return this.elementHasSelectedText(n)?this.elementFutureValueByRemovingSelection(n):u(n.value,n.selectionStart-1)},elementFutureValueByPressingDelete:function(n){return this.elementHasSelectedText(elment)?this.elementFutureValueByRemovingSelection(n):u(n.value,n.selectionStart+1)}},r={validateField:function(){return i.validateValue(this.value)},validateKeyPress:function(n){return r.validateInsertion.call(this,n,String.fromCharCode(n.which))},validatePaste:function(n){return r.validateInsertion.call(this,n,n.getClipboardText())},validateInsertion:function(n,r){if(/^[\d]{1,4}$/.test(r)){var u=i.elementFutureValue(this,r);return u.length>4?(n.preventDefault(),i.validateValue(this.value)):i.validateValue(u)}if(t){if(n.isBackSpace()||n.isDelete())return!1;if(n.which===0||n.isCommandKeyPressed())return i.validateValue(this.value)}return n.preventDefault(),i.validateValue(this.value)},validateCut:function(){return i.validateValue(i.elementFutureValueByRemovingSelection(this))},validateKeyDown:function(n){return n.isBackSpace()?i.validateValue(i.elementFutureValueByPressingBackspace(this)):n.isDelete()?i.validateValue(i.elementFutureValueByPressingDelete(this)):i.validateValue(this.value)}};n.fn.validateZIPCode=function(n,t){return this.bindValidators({events:[{event:"focus",validate:r.validateField},{event:"blur",validate:r.validateField},{event:"keypress",validate:r.validateKeyPress},{event:"paste",validate:r.validatePaste},{event:"cut",validate:r.validateCut},{event:"keydown",validate:r.validateKeyDown}],setValidState:n,setInvalidState:t})}}(window.jQuery,RIC.TestPlatform.firefox),function(n){"use strict";function t(){return!!n(this).val().length}n.fn.validateRequired=function(n,i){return this.bindInputSingleValidator(t,n,i)};n.fn.isValidRequired=function(){return t.call(this.get(0))}}(window.jQuery),function(n){"use strict";function t(){return i.test(n(this).val())}var i=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;n.fn.validateRequiredEmail=function(n,i){return this.bindInputSingleValidator(t,n,i)};n.fn.isValidRequiredEmail=function(){return t.call(this.get(0))}}(window.jQuery),function(n,t){"use strict";t.languageIdFromHost()==t.languageIds.french?Object.assign(n,{email:"Veuillez saisir une adresse e-mail valable."}):Object.assign(n,{email:"Geben Sie bitte eine gültige E-Mail Adresse ein."})}(window.jQuery.validator.messages,RIC.Enums),function(n){"use strict";n.validator.unobtrusive.parseDynamicContent=function(t){n.validator.unobtrusive.parse(t);var r=n(t).first().closest("form"),i=r.data("unobtrusiveValidation"),u=r.validate();n.each(i.options.rules,function(t,r){if(u.settings.rules[t]==undefined){var f={};n.extend(f,r);f.messages=i.options.messages[t];n("[name='"+t+"']").rules("add",f)}else n.each(r,function(r,e){u.settings.rules[t][r]==undefined&&(f={},f[r]=e,f.messages=i.options.messages[t][r],n("[name='"+t+"']").rules("add",f))})})}}($),function(n,t){"use strict";function e(n,i,r){return function(){t.data.control.showAutoTrackLogs&&console.log("Auto Tracking : "+n+" > "+i);t.trackEvent(n,i,"",r,1)}}function o(n,i){var r=i.dataset.trcLabel,f=typeof r=="string"&&r.length>0,u="Nested Group-Tracking > "+n+(f?" > "+r:"");t.trackEvent("Tracking-Error",u,"","A",1);t.data.control.showAutoTrackLogs&&console.log("Tracking-Error : "+u)}function s(n){return n.querySelectorAll("[data-trc-autotrack],[data-trc-label]").length>0}function u(i,r){if(s(r))o(i,r);else n(r).off(t.data.control.defaultClickTypes).on(t.data.control.defaultClickTypes,e(i,r.dataset.trcLabel||"",r.dataset.trcType||"A"))}function h(n,t){[].slice.call(t).forEach(function(t){u(n,t)})}function i(n){var t=n.dataset.trcAutotrack;typeof n.dataset.trcLabel=="string"?u(t,n):h(t,n.querySelectorAll("[data-trc-label]"))}var r=document.documentElement.classList,c=r.contains("WinYourCarCampaignFeature"),f=r.contains("AUTO26");f&&(t.trackBrandMigration=function(n,i){t.trackEventBase({trackCatLvl1:"Brand Migration",eventAction:n,eventLabel:i||"Link",eventValue:"",elementType:"A",hitType:1})});t.trackEventBase=function(n){t.data.event={event:"click",trackCatLvl1:t.getTrackCatLvl1OrDefault(t.data.control,n.trackCatLvl1),trackCatLvl2:t.getTrackCatLvl2OrDefault(t.data.control,n.trackCatLvl2),eventAction:n.eventAction,eventLabel:n.eventLabel,eventValue:n.eventValue,elementType:n.elementType,hitType:typeof n.hitType!="undefined"?n.hitType:0};t.data.control.hasUserId&&(t.data.event.userId=t.data.page.userId);t.data.control.consoleOutput&&(console.log("Event : "+t.data.control.defaultClickTypes),console.dir(t.data.event));t.data.control.hasDataLayer&&window.dataLayer.push(t.data.event)};t.trackEvent=function(n,i,r,u,f){t.trackEventBase({eventAction:n,eventLabel:i,eventValue:r,elementType:u,hitType:f})};t.autotrack=function(t){t instanceof HTMLElement?i(t):t instanceof n&&t.length>0&&i(t.get(0))};t.trackACPEvent=function(n,i){t.trackEventBase({trackCatLvl1:"Auto Aftercall",eventAction:n,eventLabel:i,eventValue:"",elementType:"A",hitType:1})};t.trackVirtualPage=function(n){t.data.vpage={event:"pageview",virtualPage:n};t.data.control.hasUserId&&(t.data.vpage.userId=t.data.page.userId);t.data.control.consoleOutput&&(console.log("Event : "+t.data.vpage.event),console.dir(t.data.vpage));t.data.control.hasDataLayer&&window.dataLayer.push(t.data.vpage)};t.trackLogin=function(i){switch(i){case 0:t.trackEvent("Login","Successful","","A");var r=n("#KeepMeLoggedIn").prop("checked")?"StayLoggedIn-Yes":"StayLoggedIn-No";t.trackEvent("Login_Success",r,"","A");break;case 1:t.trackEvent("Login","WrongLoginData","","A");break;case 2:t.trackEvent("Login","PendingValidation","","A");break;case 3:t.trackEvent("Login","SecurityIssue","","A");break;case 4:t.trackEvent("Login","UnknownServerIssue","","A");break;case 5:t.trackEvent("Login","BannedCustomer","","A");break;default:t.trackEvent("Login","UnknownError","","A")}};t.trackConversion=function(n,i,r,u,f,e,o,s){var h=(new Date).getTime(),c=o&&n!=="Contact"&&i!=="Successful-Again";t.data.conversion={event:"Conversion",conversionCategory:n,conversionType:i,conversionTime:h};t.data.control.hasUserId&&(t.data.conversion.userId=t.data.page.userId);t.data.page.articleId&&(t.data.conversion.articleId=t.data.page.articleId);u&&(t.data.conversion.price=u);f&&(t.data.conversion.quantity=f);e&&(t.data.conversion.transactionId=e)&&(t.data.conversion.first=s);t.data.control.hasEcommerceVars&&c&&(Object.assign(t.data.ecommerce,{product_quantity:o.ProductQuantity||"",product_revenue:o.DeltaGMV||"",product_price:o.DeltaGMV&&o.ProductQuantity?o.DeltaGMV/o.ProductQuantity:"",transaction_id:o.TransactionId||"",action_data_affiliation:o.ActionDataAffiliation||""}),t.data.conversion.ecommerce={purchase:{actionField:{id:t.data.ecommerce.transaction_id,affiliation:t.data.ecommerce.action_data_affiliation,revenue:t.data.ecommerce.product_revenue},products:[{name:t.data.ecommerce.product_name,id:t.data.ecommerce.product_id,price:t.data.ecommerce.product_price,brand:t.data.ecommerce.product_brand,category:t.data.ecommerce.product_category,variant:t.data.ecommerce.product_variant,quantity:t.data.ecommerce.product_quantity}]}});t.data.control.consoleOutput&&(console.log("Event : "+t.data.conversion.event),console.dir(t.data.conversion));t.data.control.hasDataLayer&&window.dataLayer.push(t.data.conversion)};n(function(){[].slice.call(document.querySelectorAll("[data-trc-autotrack]")).forEach(i)})}(window.jQuery,RIC.Tracking||{}),function(n,t){"use strict";var e={"À":"A","Ä":"A","Ç":"C","Œ":"OE","È":"E","É":"E","Ê":"E","Î":"I","Ï":"I","Ö":"O","Ù":"U","Ú":"U","Ü":"U","Û":"U","à":"a","ä":"a","ç":"c","œ":"oe","è":"e","é":"e","ê":"e","ï":"i","î":"i","ö":"o","ù":"u","ú":"u","ü":"u","û":"u"},u=!0,r="",f=500,o=f,i=null;t.KeyBuffer={setConvertDiacritics:function(n){u=!!n},getConvertDiacritics:function(){return u},setTimeout:function(n){i=typeof n=="number"?n:f},getTimeout:function(){return o},add:function(u){switch(typeof u){case"string":u.length===1?r=r+(this.getConvertDiacritics()?e[u]||u:u):n.each(u.split(""),function(n,i){t.KeyBuffer.add(i)});i&&clearTimeout(i);i=setTimeout(function(){r="";i=null},this.getTimeout());break;case"number":this.add(String.fromCharCode(u));break;case"object":"keyCode"in u&&typeof u.keyCode=="number"&&this.add(String.fromCharCode(u.keyCode))}},getBuffer:function(){return r||""}}}(window.jQuery,window.BS=window.BS||{});+function(n){"use strict";var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.prototype.close=function(t){function f(){i.trigger("closed.bs.alert").remove()}var u=n(this),r=u.attr("data-target"),i;(r||(r=u.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=n(r),t&&t.preventDefault(),i.length||(i=u.hasClass("alert")?u:u.parent()),i.trigger(t=n.Event("close.bs.alert")),t.isDefaultPrevented())||(i.removeClass("in"),n.support.transition&&i.hasClass("fade")?i.one(n.support.transition.end,f).emulateTransitionEnd(150):f())};r=n.fn.alert;n.fn.alert=function(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));typeof i=="string"&&u[i].call(r)})};n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},i;t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,u=i.is("input")?"val":"html",f=i.data();t=t+"Text";f.resetText||i.data("resetText",i[u]());i[u](f[t]||this.options[t]);setTimeout(n.proxy(function(){t=="loadingText"?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length&&(n=this.$element.find("input"),n.prop("type")=="radio"&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change"));t&&this.$element.toggleClass("active")};i=n.fn.button;n.fn.button=function(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f));i=="toggle"?r.toggle():i&&r.setState(i)})};n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=i,this};n(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var i=n(t.target);i.hasClass("btn")||(i=i.closest(".btn"));i.button("toggle");t.preventDefault()})}(jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.transitioning=null;this.options.parent&&(this.$parent=n(this.options.parent));this.options.toggle&&this.toggle()},i;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var u,t,r,i,f,e;if(!this.transitioning&&!this.$element.hasClass("in")&&(u=n.Event("show.bs.collapse"),this.$element.trigger(u),!u.isDefaultPrevented())){if(t=this.$parent&&this.$parent.find("> .panel > .in"),t&&t.length){if(r=t.data("bs.collapse"),r&&r.transitioning)return;t.collapse("hide");r||t.data("bs.collapse",null)}if(i=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[i](0),this.transitioning=1,f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i]("auto");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return f.call(this);e=n.camelCase(["scroll",i].join("-"));this.$element.one(n.support.transition.end,n.proxy(f,this)).emulateTransitionEnd(350)[i](this.$element[0][e])}};t.prototype.hide=function(){var i,t,r;if(!this.transitioning&&this.$element.hasClass("in")&&(i=n.Event("hide.bs.collapse"),this.$element.trigger(i),!i.isDefaultPrevented())){if(t=this.dimension(),this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1,r=function(){this.transitioning=0;this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")},!n.support.transition)return r.call(this);this.$element[t](0).one(n.support.transition.end,n.proxy(r,this)).emulateTransitionEnd(350)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};i=n.fn.collapse;n.fn.collapse=function(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i);!r&&f.toggle&&i=="show"&&(i=!i);r||u.data("bs.collapse",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=i,this};n(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var i=n(this),e,s=i.attr("data-target")||t.preventDefault()||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),r=n(s),u=r.data("bs.collapse"),h=u?"toggle":i.data(),f=i.attr("data-parent"),o=f&&n(f);u&&u.transitioning||(o&&o.find('[data-toggle=collapse][data-parent="'+f+'"]').not(i).addClass("collapsed"),i[r.hasClass("in")?"addClass":"removeClass"]("collapsed"));r.collapse(h)})}(jQuery),function(n,t,i){"use strict";function w(){if(!s){var i=!0,t="";n.each(r,function(n,r){i?(t=r.toString(),i=!1):t=t+"|"+r.toString()});s=new RegExp("("+t+")","gi")}return s}function h(){var t=!1;n(f).each(function(i){var r=o(n(this)),e=i.target,f={relatedTarget:this};r.hasClass(u)&&(r.trigger(i=n.Event("hide.bs.dropdown",f)),i.isDefaultPrevented()||(r.removeClass(u).trigger("hidden.bs.dropdown",f),r.find(e).length&&this.focus(),t=!0))});t&&n(b).remove()}function o(t){function u(n){return/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")}var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&u(i)),r=i&&n(i),r&&r.length?r:t.parent()}function k(n){var t=" li:not(.divider):visible [role=menuitem]";return n.find("[role=menu]"+t+", [role=listbox]"+t)}function d(n){var t=" li[role=presentation]:not(.divider):visible";return n.find("[role=menu]"+t+", [role=listbox]"+t)}function g(n){return n.index(n.filter(":focus"))}var r={escape:27,arrowLeft:37,arrowUp:38,arrowRight:39,arrowDown:40},s,v=9,y=13,p=32,c="dropdown-backdrop",b="."+c,u="open",f="[data-toggle=dropdown]",e="click.bs.dropdown.data-api",l="keydown.bs.dropdown.data-api",a;t.Dropdown=function(t){n(t).on("click.bs.dropdown",this.toggle)};n.extend(t.Dropdown.prototype,{toggle:function(t){function v(n){return"ontouchstart"in document.documentElement&&n.closest(".navbar-nav").length===0}function y(t){n('<div class="'+c+'"/>').insertAfter(t).on(e,h)}var r=n(this),l,f;if(!r.is(".disabled, :disabled")){var i=o(r),a=i.hasClass(u),s={relatedTarget:this};return h(t),a||(i.trigger(t=n.Event("show.bs.dropdown",s)),t.isDefaultPrevented()||(v(i)&&y(r),i.toggleClass(u).trigger("shown.bs.dropdown",s),l=d(i),f=l.filter(".selected"),f.length?n("a",f).get(0).focus():r.focus())),!1}},keydown:function(t){function a(n){var t=w(),i=t.test(n.toString());return t.lastIndex=0,i}var h,c,l,s,i;if(a(t.keyCode)&&(t.preventDefault(),t.stopPropagation(),h=n(this),h.is(".disabled, :disabled")===!1)){if(c=o(h),l=c.hasClass(u),!l||l&&t.keyCode===r.escape)return t.which===r.escape&&c.find(f).focus(),h.trigger(e);s=k(c);s.length&&(i=g(s),(t.keyCode===r.arrowUp||t.keyCode===r.arrowLeft)&&i>0&&i--,(t.keyCode===r.arrowDown||t.keyCode===r.arrowRight)&&i<s.length-1&&i++,~i||(i=0),s.eq(i).focus())}},keypress:function(t){function y(n){return/[àäçœèéêïîöùúüûÀÄÇÉÈÊŒÎÏÖÚÙÜÛ\s\d\w]/gi.test(n)&&/[^\f\n\r\t\v]/gi.test(n)}function p(n,t){return!n&&t!==" "}var r=String.fromCharCode(t.keyCode||t.which);if(y(r)){var f=n(this),e=f.is(".disabled, :disabled"),c=!e&&o(f),a=!e&&c.hasClass(u);if(!e){i.add(r);var v=i.getBuffer().toLowerCase(),l=" li:not(.divider) [role=menuitem]",s=c.find("[role=menu]"+l+", [role=listbox]"+l),h=-1;s.length&&(s.each(function(t){return n(this).html().toLowerCase().indexOf(v)===0?(h=t,!1):!0}),h!==-1&&(p(a,r)&&f.click(),s.eq(h).focus()))}}},menuItemKeydown:function(t){var r=t.keyCode===v||t.keyCode===y,s=t.keyCode===p,i,e;if((r||s)&&(t.preventDefault(),t.stopPropagation(),r)){if(i=n(this),e=i.is(".disabled, :disabled"),e)return;var o=i.parents(".dropdown").first(),h=o.find(f).first(),c=o.hasClass(u);c&&(i.click(),h.focus())}}});a=n.fn.dropdown;n.fn.dropdown=function(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t.Dropdown(this));typeof i=="string"&&u[i].call(r)})};n.fn.dropdown.Constructor=t.Dropdown;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=a,this};n(document).on(e,h).on(e,".dropdown form, .dropdown > div",function(n){n.stopPropagation()}).on(e,f,t.Dropdown.prototype.toggle).on(l,f+", [role=menu], [role=listbox]",t.Dropdown.prototype.keydown).on("keypress.bs.dropdown.data-api",f+", [role=menu], [role=listbox]",t.Dropdown.prototype.keypress).on(l,".dropdown-menu [role=menuitem]",t.Dropdown.prototype.menuItemKeydown)}(window.jQuery,window.BS=window.BS||{},BS.KeyBuffer||{}),function(n){"use strict";var t=function(t,i){this.options=i;this.$element=n(t);this.$backdrop=this.isShown=null;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},i;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(t){var i=this,r=n.Event("show.bs.modal",{relatedTarget:t});if(n(document.documentElement).addClass("modal-open"),this.$element.trigger(r),!this.isShown&&!r.isDefaultPrevented()){this.isShown=!0;this.escape();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.backdrop(function(){var u=n.support.transition&&i.$element.hasClass("fade"),r;i.$element.parent().length||i.$element.appendTo(document.body);i.$element.show().scrollTop(0);u&&i.$element[0].offsetWidth;i.$element.addClass("in").attr("aria-hidden",!1);i.enforceFocus();r=n.Event("shown.bs.modal",{relatedTarget:t});u?i.$element.find(".modal-dialog").one(n.support.transition.end,function(){i.$element.focus().trigger(r)}).emulateTransitionEnd(300):i.$element.focus().trigger(r)})}};t.prototype.hide=function(t){(t&&t.preventDefault(),t=n.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented())&&(this.isShown=!1,this.escape(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one(n.support.transition.end,n.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.focus()},this))};t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keyup.dismiss.bs.modal",n.proxy(function(n){n.which===27&&this.hide()},this));else this.isShown||this.$element.off("keyup.dismiss.bs.modal")};t.prototype.hideModal=function(){var t=this;this.$element.hide();this.backdrop(function(){t.removeBackdrop();n(document.documentElement).removeClass("modal-open");t.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(t){var r=this.$element.hasClass("fade")?"fade":"",i;if(this.isShown&&this.options.backdrop){i=n.support.transition&&r;this.$backdrop=n('<div class="modal-backdrop '+r+'" />').appendTo(document.body);this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){n.target===n.currentTarget&&(this.options.backdrop==="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this));if(i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};i=n.fn.modal;n.fn.modal=function(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e));typeof i=="string"?u[i](r):e.show&&u.show(r)})};n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=i,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var i=n(this),r=i.attr("href"),u=n(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),f=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(r)&&r},u.data(),i.data());i.is("a")&&t.preventDefault();u.modal(f,this).one("hide",function(){i.is(":visible")&&i.focus()})})}(window.jQuery);+function(n){"use strict";var t=function(t){this.element=n(t)},i;t.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),r,u,f;(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),t.parent("li").hasClass("active"))||(r=e.find(".active:last a")[0],u=n.Event("show.bs.tab",{relatedTarget:r}),t.trigger(u),u.isDefaultPrevented())||(f=n(i),this.activate(t.parent("li"),e),this.activate(f,f.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:r})}))};t.prototype.activate=function(t,i,r){function e(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");t.addClass("active");f?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade");t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active");r&&r()}var u=i.find("> .active"),f=r&&n.support.transition&&u.hasClass("fade");f?u.one(n.support.transition.end,e).emulateTransitionEnd(150):e();u.removeClass("in")};i=n.fn.tab;n.fn.tab=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));typeof i=="string"&&r[i]()})};n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=i,this};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault();n(this).tab("show")})}(jQuery);+function(n){"use strict";var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focusin";s=u=="hover"?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)};t.prototype.show=function(){var h=n.Event("show.bs."+this.type),u,i,v,s;if(this.hasContent()&&this.enabled){if(this.$element.trigger(h),h.isDefaultPrevented())return;u=this;i=this.tip();this.setContent();this.options.animation&&i.addClass("fade");var t=typeof this.options.placement=="function"?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,c=/\s?auto?\s?/i,l=c.test(t);l&&(t=t.replace(c,"")||"top");i.detach().css({top:0,left:0,display:"block"}).addClass(t);this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);var r=this.getPosition(),f=i[0].offsetWidth,e=i[0].offsetHeight;if(l){var o=this.$element.parent(),y=t,a=document.documentElement.scrollTop||document.body.scrollTop,p=this.options.container=="body"?window.innerWidth:o.outerWidth(),w=this.options.container=="body"?window.innerHeight:o.outerHeight(),b=this.options.container=="body"?0:o.offset().left;t=t=="bottom"&&r.top+r.height+e-a>w?"top":t=="top"&&r.top-a-e<0?"bottom":t=="right"&&r.right+f>p?"left":t=="left"&&r.left-f<b?"right":t;i.removeClass(y).addClass(t)}v=this.getCalculatedOffset(t,r,f,e);this.applyPlacement(v,t);this.hoverState=null;s=function(){u.$element.trigger("shown.bs."+u.type)};n.support.transition&&this.$tip.hasClass("fade")?i.one(n.support.transition.end,s).emulateTransitionEnd(150):s()}};t.prototype.applyPlacement=function(t,i){var c,r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),f,u,h;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top=t.top+o;t.left=t.left+s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");f=r[0].offsetWidth;u=r[0].offsetHeight;i=="top"&&u!=e&&(c=!0,t.top=t.top+e-u);/bottom|top/.test(i)?(h=0,t.left<0&&(h=t.left*-2,t.left=0,r.offset(t),f=r[0].offsetWidth,u=r[0].offsetHeight),this.replaceArrow(h-l+f,f,"left")):this.replaceArrow(u-e,u,"top");c&&r.offset(t)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i,n?50*(1-n/t)+"%":"")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(){function u(){t.hoverState!="in"&&i.detach();t.$element.trigger("hidden.bs."+t.type)}var t=this,i=this.tip(),r=n.Event("hide.bs."+this.type);if(this.$element.trigger(r),!r.isDefaultPrevented())return i.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?i.one(n.support.transition.end,u).emulateTransitionEnd(150):u(),this.hoverState=null,this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(){var t=this.$element[0];return n.extend({},typeof t.getBoundingClientRect=="function"?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())};t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=t?n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){clearTimeout(this.timeout);this.hide().$element.off("."+this.type).removeData("bs."+this.type)};i=n.fn.tooltip;n.fn.tooltip=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;(r||i!="destroy")&&(r||u.data("bs.tooltip",r=new t(this,f)),typeof i=="string"&&r[i]())})};n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(i.style[t]!==undefined)return{end:n[t]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one(n.support.transition.end,function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t()})}(jQuery),function(){"use strict";function n(t,r){function h(n,t){return function(){return n.apply(t,arguments)}}var o,f,e,u,s;if(r=r||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=r.touchBoundary||10,this.layer=t,this.tapDelay=r.tapDelay||200,this.tapTimeout=r.tapTimeout||700,!n.notNeeded(t)){for(f=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],e=this,u=0,s=f.length;u<s;u++)e[f[u]]=h(e[f[u]],e);i&&(t.addEventListener("mouseover",this.onMouse,!0),t.addEventListener("mousedown",this.onMouse,!0),t.addEventListener("mouseup",this.onMouse,!0));t.addEventListener("click",this.onClick,!0);t.addEventListener("touchstart",this.onTouchStart,!1);t.addEventListener("touchmove",this.onTouchMove,!1);t.addEventListener("touchend",this.onTouchEnd,!1);t.addEventListener("touchcancel",this.onTouchCancel,!1);Event.prototype.stopImmediatePropagation||(t.removeEventListener=function(n,i,r){var u=Node.prototype.removeEventListener;n==="click"?u.call(t,n,i.hijacked||i,r):u.call(t,n,i,r)},t.addEventListener=function(n,i,r){var u=Node.prototype.addEventListener;n==="click"?u.call(t,n,i.hijacked||(i.hijacked=function(n){n.propagationStopped||i(n)}),r):u.call(t,n,i,r)});typeof t.onclick=="function"&&(o=t.onclick,t.addEventListener("click",function(n){o(n)},!1),t.onclick=null)}}var r=navigator.userAgent.indexOf("Windows Phone")>=0,i=navigator.userAgent.indexOf("Android")>0&&!r,t=/iP(ad|hone|od)/.test(navigator.userAgent)&&!r,u=t&&/OS 4_\d(_\d)?/.test(navigator.userAgent),f=t&&/OS [6-7]_\d/.test(navigator.userAgent),e=navigator.userAgent.indexOf("BB10")>0;n.prototype.needsClick=function(n){switch(n.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(n.disabled)return!0;break;case"input":if(t&&n.type==="file"||n.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(n.className)};n.prototype.needsFocus=function(n){switch(n.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!i;case"input":switch(n.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":case"reset":return!1}return!n.disabled&&!n.readOnly;default:return/\bneedsfocus\b/.test(n.className)}};n.prototype.sendClick=function(n,t){var r,i;document.activeElement&&document.activeElement!==n&&document.activeElement.blur();i=t.changedTouches[0];r=document.createEvent("MouseEvents");r.initMouseEvent(this.determineEventType(n),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null);r.forwardedTouchEvent=!0;n.dispatchEvent(r)};n.prototype.determineEventType=function(n){return i&&n.tagName.toLowerCase()==="select"?"mousedown":"click"};n.prototype.focus=function(n){var i;t&&n.setSelectionRange&&n.type.indexOf("date")!==0&&n.type!=="time"&&n.type!=="month"?(i=n.value.length,n.setSelectionRange(i,i)):n.focus()};n.prototype.updateScrollParent=function(n){var i,t;if(i=n.fastClickScrollParent,!i||!i.contains(n)){t=n;do{if(t.scrollHeight>t.offsetHeight){i=t;n.fastClickScrollParent=t;break}t=t.parentElement}while(t)}i&&(i.fastClickLastScrollTop=i.scrollTop)};n.prototype.getTargetElementFromEventTarget=function(n){return n.nodeType===Node.TEXT_NODE?n.parentNode:n};n.prototype.onTouchStart=function(n){var r,i,f;if(n.targetTouches.length>1)return!0;if(r=this.getTargetElementFromEventTarget(n.target),i=n.targetTouches[0],t){if(f=window.getSelection(),f.rangeCount&&!f.isCollapsed)return!0;if(!u){if(i.identifier&&i.identifier===this.lastTouchIdentifier)return n.preventDefault(),!1;this.lastTouchIdentifier=i.identifier;this.updateScrollParent(r)}}return this.trackingClick=!0,this.trackingClickStart=n.timeStamp,this.targetElement=r,this.touchStartX=i.pageX,this.touchStartY=i.pageY,n.timeStamp-this.lastClickTime<this.tapDelay&&n.preventDefault(),!0};n.prototype.touchHasMoved=function(n){var t=n.changedTouches[0],i=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>i||Math.abs(t.pageY-this.touchStartY)>i?!0:!1};n.prototype.onTouchMove=function(n){return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(n.target)||this.touchHasMoved(n))&&(this.trackingClick=!1,this.targetElement=null),!0):!0};n.prototype.findControl=function(n){return n.control!==undefined?n.control:n.htmlFor?document.getElementById(n.htmlFor):n.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")};n.prototype.onTouchEnd=function(n){var s,c,e,o,h,r=this.targetElement;if(!this.trackingClick)return!0;if(n.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(n.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=n.timeStamp,c=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,f&&(h=n.changedTouches[0],r=document.elementFromPoint(h.pageX-window.pageXOffset,h.pageY-window.pageYOffset)||r,r.fastClickScrollParent=this.targetElement.fastClickScrollParent),e=r.tagName.toLowerCase(),e==="label"){if(s=this.findControl(r),s){if(this.focus(r),i)return!1;r=s}}else if(this.needsFocus(r))return n.timeStamp-c>100||t&&window.top!==window&&e==="input"?(this.targetElement=null,!1):(this.focus(r),this.sendClick(r,n),t&&e==="select"||(this.targetElement=null,n.preventDefault()),!1);return t&&!u&&(o=r.fastClickScrollParent,o&&o.fastClickLastScrollTop!==o.scrollTop)?!0:(this.needsClick(r)||(n.preventDefault(),this.sendClick(r,n)),!1)};n.prototype.onTouchCancel=function(){this.trackingClick=!1;this.targetElement=null};n.prototype.onMouse=function(n){return this.targetElement?n.forwardedTouchEvent?!0:n.cancelable?!this.needsClick(this.targetElement)||this.cancelNextClick?(n.stopImmediatePropagation?n.stopImmediatePropagation():n.propagationStopped=!0,n.stopPropagation(),n.preventDefault(),!1):!0:!0:!0};n.prototype.onClick=function(n){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):n.target.type==="submit"&&n.detail===0?!0:(t=this.onMouse(n),t||(this.targetElement=null),t)};n.prototype.destroy=function(){var n=this.layer;i&&(n.removeEventListener("mouseover",this.onMouse,!0),n.removeEventListener("mousedown",this.onMouse,!0),n.removeEventListener("mouseup",this.onMouse,!0));n.removeEventListener("click",this.onClick,!0);n.removeEventListener("touchstart",this.onTouchStart,!1);n.removeEventListener("touchmove",this.onTouchMove,!1);n.removeEventListener("touchend",this.onTouchEnd,!1);n.removeEventListener("touchcancel",this.onTouchCancel,!1)};n.notNeeded=function(n){var t,r,u,f;if(typeof ontouchstart=="undefined")return!0;if(r=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],r)if(i){if(t=document.querySelector("meta[name=viewport]"),t&&(t.content.indexOf("user-scalable=no")!==-1||r>31&&document.documentElement.scrollWidth<=window.outerWidth))return!0}else return!0;return e&&(u=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),u[1]>=10&&u[2]>=3&&(t=document.querySelector("meta[name=viewport]"),t&&(t.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))?!0:n.style.msTouchAction==="none"||n.style.touchAction==="manipulation"?!0:(f=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],f>=27&&(t=document.querySelector("meta[name=viewport]"),t&&(t.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))?!0:n.style.touchAction==="none"||n.style.touchAction==="manipulation"?!0:!1};n.attach=function(t,i){return new n(t,i)};typeof define=="function"&&typeof define.amd=="object"&&define.amd?define(function(){return n}):typeof module!="undefined"&&module.exports?(module.exports=n.attach,module.exports.FastClick=n):window.FastClick=n}(),function(n,t){n(function(){t.attach(document.body)})}(window.jQuery,window.FastClick),function(n){"use strict";n.fn.disable=function(){return this.each(function(){var t=n(this);this instanceof HTMLButtonElement?typeof t.button=="function"?t.button("loading"):t.attr("disabled","disabled"):this instanceof HTMLInputElement||this instanceof HTMLTextAreaElement?t.attr("disabled","disabled"):this instanceof HTMLAnchorElement&&t.data("href",t.attr("href")).attr("href","javascript:void(0)").attr("disabled","disabled").css("pointer-events","none")})};n.fn.enable=function(){return this.each(function(){var t=n(this);this instanceof HTMLButtonElement?(typeof t.button=="function"&&t.button("reset"),t.removeAttr("disabled")):this instanceof HTMLInputElement||this instanceof HTMLTextAreaElement?t.removeAttr("disabled"):this instanceof HTMLAnchorElement&&t.attr("href",t.data("href")).removeData("href").removeAttr("disabled").css("pointer-events","auto")})}}(window.jQuery),function(n){"use strict";var i={8:!0,9:!0,13:!1,16:!0,17:!0,18:!0,19:!0,20:!0,27:!0,33:!0,34:!0,35:!0,36:!0,37:!0,38:!0,39:!0,40:!0,45:!0,46:!0,91:!0,92:!0,93:!0,112:!0,113:!0,114:!0,115:!0,116:!0,117:!0,118:!0,119:!0,120:!0,121:!0,122:!0,123:!0,144:!0,145:!0,219:!0,220:!0,224:!0,contains:function(n){return this[n]===!0}},t={48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",contains:function(n){return typeof this[n]=="string"},getString:function(n){return this.contains(n)?this[n]:""}};n.extend(n.Event.prototype,{getClipboardText:function(){return window.clipboardData&&window.clipboardData.getData?window.clipboardData.getData("Text"):this.originalEvent.clipboardData&&this.originalEvent.clipboardData.getData?this.originalEvent.clipboardData.getData("text/plain"):""},isControlKeyCode:function(){return i.contains(this.keyCode)},isBackSpace:function(){return this.keyCode===8},isDelete:function(){return this.keyCode===46},isNumberKeyCode:function(){return t.contains(this.keyCode)},stringForNumberKeyCode:function(){return t.getString(this.keyCode)},isCommandKeyPressed:function(){return!this.isControlKeyCode()&&(this.ctrlKey||this.metaKey)}})}(window.jQuery),function(n){"use strict";n.fn.getSelection=function(){var t=this.first(),n=t.get(0);return t.length&&(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&"selectionStart"in n&&"selectionEnd"in n?t.val().substring(n.selectionStart,n.selectionEnd):""};n.fn.getSelectionLength=function(){return this.getSelection().length}}(window.jQuery),function(n){"use strict";var o=n(window),i=document.documentElement.style,r=document.body.style,t={htmlHeight:"",htmlOverflow:"",bodyHeight:"",bodyOverflow:""};n.pageDisableScroll=function(){t.htmlOverflow=i.overflow;t.htmlHeight=i.height;t.bodyOverflow=r.overflow;t.bodyHeight=r.height;i.overflow=r.overflow="hidden";i.height=r.height="100%"};n.pageEnableScroll=function(){i.height=t.htmlHeight;i.overflow=t.htmlOverflow;r.height=t.bodyHeight;r.overflow=t.bodyOverflow};var u="RIC.OldTouchMove",f="RIC.OldMouseWheel",e=function(n){n.preventDefault()};n.fn.disableScroll=function(){return n.pageDisableScroll(),this.each(function(){var t=n(this);RIC.TestPlatform.mobile&&"ontouchmove"in this?(t.data(u,this.ontouchmouve),this.ontouchmove=e):"onmousewheel"in this&&(t.data(f,this.onmousewheel),this.onmousewheel=e)})};n.fn.enableScroll=function(){return n.pageEnableScroll(),this.each(function(){var t=n(this);RIC.TestPlatform.mobile&&"ontouchmove"in this?(this.ontouchmove=t.data(u)||null,t.removeData(u)):"onmousewheel"in this&&(this.onmousewheel=t.data(f)||null,t.removeData(f))})}}(window.jQuery),function(n){"use strict";var t=n("body, html");n.fn.scrollTo=function(n,i,r){var u=this.first();t.animate({scrollTop:u.offset().top},n||250,i||"linear",r||null)}}(window.jQuery),function(n){n.extend(n.fn.serializeObject=function(){var t={},i=this.serializeArray();return n.each(i,function(){t[this.name]!==undefined?(t[this.name].push||(t[this.name]=[t[this.name]]),t[this.name].push(this.value||"")):t[this.name]=this.value||""}),t})}(jQuery);var foolproof=function(){};foolproof.is=function(n,t,i,r){if(r){var u=function(n){return n==null||n==undefined||n==""},f=u(n),e=u(i);if(f&&!e||e&&!f)return!0}var o=function(n){return+n==n&&n.length>0},s=function(n){var t=new RegExp(/(?=\d)^(?:(?!(?:10\D(?:0?[5-9]|1[0-4])\D(?:1582))|(?:0?9\D(?:0?[3-9]|1[0-3])\D(?:1752)))((?:0?[13578]|1[02])|(?:0?[469]|11)(?!\/31)(?!-31)(?!\.31)|(?:0?2(?=.?(?:(?:29.(?!000[04]|(?:(?:1[^0-6]|[2468][^048]|[3579][^26])00))(?:(?:(?:\d\d)(?:[02468][048]|[13579][26])(?!\x20BC))|(?:00(?:42|3[0369]|2[147]|1[258]|09)\x20BC))))))|(?:0?2(?=.(?:(?:\d\D)|(?:[01]\d)|(?:2[0-8])))))([-.\/])(0?[1-9]|[12]\d|3[01])\2(?!0000)((?=(?:00(?:4[0-5]|[0-3]?\d)\x20BC)|(?:\d{4}(?!\x20BC)))\d{4}(?:\x20BC)?)(?:$|(?=\x20\d)\x20))?((?:(?:0?[1-9]|1[012])(?::[0-5]\d){0,2}(?:\x20[aApP][mM]))|(?:[01]\d|2[0-3])(?::[0-5]\d){1,2})?$/);return t.test(n)},h=function(n){return n===!0||n===!1||n==="true"||n==="false"};s(n)?(n=Date.parse(n),i=Date.parse(i)):h(n)?(n=="false"&&(n=!1),i=="false"&&(i=!1),n=!!n,i=!!i):o(n)&&(n=parseFloat(n),i=parseFloat(i));switch(t){case"EqualTo":if(n==i)return!0;break;case"NotEqualTo":if(n!=i)return!0;break;case"GreaterThan":if(n>i)return!0;break;case"LessThan":if(n<i)return!0;break;case"GreaterThanOrEqualTo":if(n>=i)return!0;break;case"LessThanOrEqualTo":if(n<=i)return!0;break;case"RegExMatch":return new RegExp(i).test(n);case"NotRegExMatch":return!new RegExp(i).test(n)}return!1};foolproof.getId=function(n,t){var i=n.id.lastIndexOf("_")+1;return n.id.substr(0,i)+t.replace(/\./g,"_")};foolproof.getName=function(n,t){var i=n.name.lastIndexOf(".")+1;return n.name.substr(0,i)+t},function(){jQuery.validator.addMethod("is",function(n,t,i){var r=foolproof.getId(t,i.dependentproperty),u=i.operator,f=i.passonnull,e=document.getElementById(r).value;return foolproof.is(n,u,e,f)?!0:!1});jQuery.validator.addMethod("requiredif",function(n,t,i){var o=foolproof.getName(t,i.dependentproperty),s=i.dependentvalue,h=i.operator,e=i.pattern,r=document.getElementsByName(o),u=null,f;if(r.length>1){for(f=0;f!=r.length;f++)if(r[f].checked){u=r[f].value;break}u==null&&(u=!1)}else u=r[0].value;if(foolproof.is(u,h,s))if(e==null){if(n!=null&&n.toString().replace(/^\s\s*/,"").replace(/\s\s*$/,"")!="")return!0}else return new RegExp(e).test(n);else return!0;return!1});jQuery.validator.addMethod("requiredifempty",function(n,t,i){var u=foolproof.getId(t,i.dependentproperty),r=document.getElementById(u).value;if(r==null||r.toString().replace(/^\s\s*/,"").replace(/\s\s*$/,"")==""){if(n!=null&&n.toString().replace(/^\s\s*/,"").replace(/\s\s*$/,"")!="")return!0}else return!0;return!1});jQuery.validator.addMethod("requiredifnotempty",function(n,t,i){var u=foolproof.getId(t,i.dependentproperty),r=document.getElementById(u).value;if(r!=null&&r.toString().replace(/^\s\s*/,"").replace(/\s\s*$/,"")!=""){if(n!=null&&n.toString().replace(/^\s\s*/,"").replace(/\s\s*$/,"")!="")return!0}else return!0;return!1});var n=function(n,t,i){n.rules[t]=i;n.message&&(n.messages[t]=n.message)},t=$.validator.unobtrusive;t.adapters.add("requiredif",["dependentproperty","dependentvalue","operator","pattern"],function(t){var i={dependentproperty:t.params.dependentproperty,dependentvalue:t.params.dependentvalue,operator:t.params.operator,pattern:t.params.pattern};n(t,"requiredif",i)});t.adapters.add("is",["dependentproperty","operator","passonnull"],function(t){n(t,"is",{dependentproperty:t.params.dependentproperty,operator:t.params.operator,passonnull:t.params.passonnull})});t.adapters.add("requiredifempty",["dependentproperty"],function(t){n(t,"requiredifempty",{dependentproperty:t.params.dependentproperty})});t.adapters.add("requiredifnotempty",["dependentproperty"],function(t){n(t,"requiredifnotempty",{dependentproperty:t.params.dependentproperty})})}(),function(n){"use strict";n.DocumentCookies={getItem:function(n){return n?decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null:null},setItem:function(n,t,i,r,u,f,e){if(!n||/^(?:expires|max\-age|path|domain|secure)$/i.test(n))return!1;var o="";if(i)switch(i.constructor){case Number:o=i===Infinity?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+i;break;case String:o="; expires="+i;break;case Date:o="; expires="+i.toUTCString()}return document.cookie=encodeURIComponent(n)+"="+(e?t:encodeURIComponent(t))+o+(u?"; domain="+u:"")+(r?"; path="+r:"")+(f?"; secure":""),!0},removeItem:function(n,t,i){return this.hasItem(n)?(document.cookie=encodeURIComponent(n)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(i?"; domain="+i:"")+(t?"; path="+t:""),!0):!1},hasItem:function(n){return n?new RegExp("(?:^|;\\s*)"+encodeURIComponent(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie):!1},keys:function(){for(var n=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),i=n.length,t=0;t<i;t++)n[t]=decodeURIComponent(n[t]);return n}}}(window.RIC=window.RIC||{}),function(n,t,i){"use strict";function f(){function n(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()}function u(n){return typeof n=="string"&&n.length?n:f()}function r(t){this.options=Object.assign({},r.defaultOptions,typeof t=="object"?t:{});this.$modal=this.generateHTML();this.$body=n(document.body);this.$scrollDisabledElements=n(this.options.scrollDisabledElementsSelector);this.improveModalAccessibility()}r.defaultOptions={title:null,content:null,body:null,additionalClasses:null,primaryButton:null,secondaryButton:null,onPrimaryClick:null,onSecondaryClick:null,onShow:null,onShown:null,onHide:null,onHidden:null,context:null,modalHTML:"<div class='modal' role='dialog'><\/div>",modalDialogHTML:"<div class='modal-dialog'><\/div>",modalContentHTML:"<div class='modal-content'><\/div>",modalHeaderHTML:"<div class='modal-header'><\/div>",modalHeaderTitleHTML:"<h4><\/h4>",modalHeaderCloseButtonHTML:"<button type='button' class='close' data-dismiss='modal' role='button' aria-hidden='false' tabindex='0'><\/button>",modalHeaderCloseButtonContentHTML:"<span class='glyphicon glyphicon-remove'><\/span>",modalBodyHTML:"<div class='modal-body'><\/div>",modalFooterHTML:"<div class='modal-footer'><\/div>",modalFooterPrimaryButtonHTML:"<button type='button' class='btn btn-primary' aria-hidden='false' tabindex='0'><\/button>",modalFooterDefaultButtonHTML:"<button type='button' class='btn btn-default' data-dismiss='modal' aria-hidden='false' tabindex='0'><\/button>",$scrollDisabledElementsSelector:"#ric-side-menu, #ric-js-shiftable"};r.prototype.generateHTML=function(t){Object.assign(this.options,t||{});var u=n(this.options.modalHTML),f=n(this.options.modalDialogHTML),i=n(this.options.modalContentHTML),e=n(this.options.modalHeaderHTML),o=n(this.options.modalHeaderTitleHTML),s=n(this.options.modalHeaderCloseButtonHTML),a=n(this.options.modalHeaderCloseButtonContentHTML),h=n(this.options.modalBodyHTML);if(f.append(i),u.append(f).addClass(this.options.additionalClasses||""),this.options.content)i.html(this.options.content);else if(s.append(a),o.html(this.options.title||""),e.append(s).append(o),h.html(this.options.body||""),i.append(e).append(h),this.options.primaryButton||this.options.secondaryButton){var r=n(this.options.modalFooterHTML),c=this.options.primaryButton?n(this.options.modalFooterPrimaryButtonHTML).html(this.options.primaryButton):null,l=this.options.secondaryButton?n(this.options.modalFooterDefaultButtonHTML).html(this.options.secondaryButton):null;l&&r.append(l);c&&r.append(c);i.append(r)}return u};r.prototype.improveModalAccessibility=function(){var n=this.$modal,t=this.$modal.find(".modal-header h4").first(),i=this.$modal.find(".modal-body").first();n.attr("id",u(n.attr("id")));t.attr("id",u(t.attr("id")));i.attr("id",u(i.attr("id")));n.attr("aria-labelledby",t.attr("id"));n.attr("aria-describedby",i.attr("id"))};r.prototype.setContent=function(t){this.options.content=t||null;this.$modal&&(n(".modal-content",this.$modal).html(this.options.content||""),this.improveModalAccessibility())};r.prototype.setTitle=function(t){this.options.title=t||null;this.$modal&&n(".modal-header h4",this.$modal).html(this.options.title||"")};r.prototype.setBody=function(t){this.options.body=t||null;this.$modal&&n(".modal-body",this.$modal).html(this.options.body||"")};r.prototype.run=function(){function t(n,t,i){t&&(i?t.call(i,n):t(n))}if(this.$modal){if(this.options.secondaryButton&&this.options.onSecondaryClick)n("button.btn.btn-default",this.$modal).on("click",function(n){t(n,this.options.onSecondaryClick,this.options.context)}.bind(this));if(this.options.primaryButton&&this.options.onPrimaryClick)n("button.btn.btn-primary",this.$modal).on("click",function(n){t(n,this.options.onPrimaryClick,this.options.context)}.bind(this));this.$modal.on("show.bs.modal",function(n){t(n,this.options.onShow,this.options.context)}.bind(this));if(this.options.onShown)this.$modal.on("shown.bs.modal",function(n){function r(n){return n&&n.length?n:undefined}var i=[this.$modal.find("input:not([type=submit]), select, textarea"),this.$modal.find("[type=submit]"),this.$modal.find(".modal-header .close")].reduce(function(n,t){return n?n:r(t)},undefined);i&&i.first().focus();t(n,this.options.onShown,this.options.context)}.bind(this));if(this.options.onHide)this.$modal.on("hide.bs.modal",function(n){t(n,this.options.onHide,this.options.context)}.bind(this));this.$modal.on("hidden.bs.modal",function(n){t(n,this.options.onHidden,this.options.context)}.bind(this))}this.$modal.parents("body").length===0&&this.$body.append(this.$modal);this.show()};r.prototype.show=function(){this.$modal&&this.$modal.modal("show")};r.prototype.hide=function(){this.$modal&&this.$modal.modal("hide")};var e=n.fn.modal.Constructor.prototype.hide;r.prototype.block=function(){this.$modal&&(n("[data-dismiss=modal]",this.$modal).addClass("ric-temp-hidden"),n.fn.modal.Constructor.prototype.hide=function(n){n&&n.preventDefault()})};r.prototype.unblock=function(){this.$modal&&(n("[data-dismiss=modal]",this.$modal).removeClass("ric-temp-hidden"),n.fn.modal.Constructor.prototype.hide=e)};t[i]=r}(window.jQuery,window.RIC=window.RIC||{},"Modal"),function(n,t){"use strict";function u(n,t){var i=n.indexOf(t);return i>=0?n.splice(i,1):null}function f(n,t){var i=n.indexOf(t);i===-1&&n.push(t)}var i=[],r=[];t.LoginController={emitLogin:function(n){for(var r=i.length,t=0;t<r;t=t+1)i[t](n)},emitLogout:function(n){for(var i=r.length,t=0;t<i;t=t+1)r[t](n)},registerLoginListener:function(n){f(i,n)},unregisterLoginListener:function(n){u(i,n)},registerLogoutListener:function(n){f(r,n)},unregisterLogoutListener:function(n){u(r,n)}}}(window.jQuery,window.RIC=window.RIC||{}),function(n,t,i){"use strict";var f=window.location.hostname.match(/(ch\.betaqxl\.com|pre\.ricardo\.ch|ricardo\.ch)/),o=Array.isArray(f)&&f.length>0?f[0]:"localhost",s=function(n){this.build=function(){var t=i.getItem(n);this.favorites=t?t.split(","):[]};this.count=function(){return this.build(),this.favorites.length};this.remove=function(n){var t=this.indexOf(n);t!=-1&&(this.favorites.splice(t,1),this.favorites.length?this.apply():this.destroy())};this.add=function(n){this.exists(n)||(this.favorites.push(n),this.apply())};this.exists=function(n){return this.indexOf(n)!==-1};this.indexOf=function(n){return this.build(),this.favorites.indexOf(n)};this.apply=function(){i.setItem(n,this.favorites.join(","),Infinity,"/",o,!1)};this.merge=function(n){var i=n.count(),t;if(i){for(this.build(),t=0;t<i;t=t+1)this.favorites.indexOf(n.favorites[t])===-1&&this.favorites.push(n.favorites[t]);this.apply()}};this.destroy=function(t,r){i.removeItem(n,t||"/",r||o);this.build()};this.build()},h=5,c=function(n,t,i,r){this.articleId=n;this.title=t.toLowerCase();this.price=i;this.endDate=new Date(parseInt(r.match(/\d+/)[0],10));this.view=undefined;this.IsLoaded=function(){return this.view!==undefined};this.looksForTheView=function(n){var t,i;if(!this.IsLoaded())for(t=0;t<n.length;t++)i=n[t],i.ArticleId===this.articleId&&(this.view=i.View)}},u,r=[],e=[];t.Favorites={initialize:function(){var n=new s("QXLRicardoMyFavorites");u=new s("Favorites");r=[];u.merge(n);n.destroy("/",window.location.hostname);this.broadcast();this.defaultSorting="DateAsc"},getAll:function(){return u.build(),u.favorites},add:function(n){switch(typeof n){case"number":case"string":u.add(n.toString());this.broadcast()}},remove:function(n){switch(typeof n){case"number":case"string":u.remove(n.toString());this.broadcast()}},contains:function(n){switch(typeof n){case"number":case"string":return u.exists(n.toString())}return!1},registerListener:function(n){typeof n=="function"&&e.push(n)},broadcast:function(){for(var n=0;n<e.length;n=n+1)e[n](u.favorites)},handleBasicInformationArticles:function(t){this.screenBlockerHandler=t;var i=this.screenBlockerHandler.basicInformationUrl;i!=""&&n.ajax({url:i,type:"get",dataType:"json",cache:!1,context:this,success:this.handleBasicInformationArticlesSuccess,error:this.handleBasicInformationArticlesError})},handleBasicInformationArticlesError:function(n,t,i){this.screenBlockerHandler.stopBlock();console.log(t+" : "+i)},handleAjaxError:function(n,t,i){console.log(t+" : "+i)},handleRemoveFavoriteHandler:function(n){var t,f,i;if(u.remove(n),this.broadcast(),u.count()==0){this.modal.hide();return}for(t=0;t<r.length;t++)if(f=r[t],f.articleId==n){r.splice(t,1);break}i=this.countLoadedArticles();i<5&&i!=r.length?this.retrieveNextArticles(1):this.displayFavoriteArticles()},countLoadedArticles:function(){for(var i,t=0,n=0;n<r.length;n++)i=r[n],i.IsLoaded()&&t++;return t},modal:undefined,$modal:undefined,handleBasicInformationArticlesSuccess:function(n){if(this.screenBlockerHandler.stopBlock(),n.success){this.fromBasicInformationToCookie(n.articles);this.fromBasicInformationToFavoriteArticles(n.articles);this.sortFavoriteArticles(this.defaultSorting);var t=this.getArticleIdsToRetrieve();this.modal=new RIC.Modal({additionalClasses:"ric-favorites-modal",title:n.title,body:n.body,context:this,onShow:function(){this.handleModalOnShow(t)},onShown:function(){this.handleModalOnShown(t)},onHidden:this.handleModalOnHidden});this.modal.run()}},$articleList:undefined,articleViewsUrl:undefined,handleModalOnShow:function(t){this.$modal=this.modal.$modal;this.$articleList=n("ul.ric-article-list",this.$modal);this.articleViewsUrl=this.$articleList.attr("data-article-views-url");t.length==0&&(n(".ric-no-favorite",this.$modal).show(),n(".dropdown.ric-select",this.$modal).hide())},handleModalOnShown:function(t){n("[data-bind-to]",this.$modal).bindObjects();t.length>0&&(this.retrieveArticleViews(t,!0),this.$modal.bindObject("RIC.FavoriteScrollHandler"))},handleModalOnHidden:function(){this.$modal.remove()},fromBasicInformationToCookie:function(n){var t,i;if(n){for(u.destroy(),t=0;t<n.length;t++)i=n[t],u.add(i.id);this.broadcast()}},fromBasicInformationToFavoriteArticles:function(n){var i,t,u;if(r=[],n)for(i=0;i<n.length;i++)t=n[i],u=new c(t.id,t.title,t.price,t.enddate),r.push(u)},handleFavoriteArticlesSorting:function(n){this.sortFavoriteArticles(n);var t=this.getArticleIdsToRetrieve();t.length>0?this.retrieveArticleViews(t):this.displayFavoriteArticles()},sortFavoriteArticles:function(n){var t,i;switch(n){case"TitleAsc":case"TitleDesc":t=function(n,t){return n.title<t.title?-1:n.title>t.title?1:0};break;case"PriceAsc":case"PriceDesc":t=function(n,t){return n.price-t.price};break;case"DateAsc":case"DateDesc":t=function(n,t){return n.endDate.getTime()-t.endDate.getTime()};break;default:console.log(n+" is an unknown sorting.");return}r=r.sort(t);i=n.indexOf("Desc")>-1;i&&(r=r.reverse())},getArticleIdsToRetrieve:function(n){var i,u,t,f;for(n=n||h,i=[],u=0,t=0;t<r.length;t++)if(f=r[t],f.IsLoaded()||(i.push(f.articleId),u++),u>=n)break;return i},retrieveArticleViews:function(t){t.length>0&&n.ajax({url:this.articleViewsUrl,data:{articleIds:t},traditional:!0,type:"get",cache:!1,context:this,success:this.retrieveArticleViewsSuccess,error:this.handleAjaxError})},retrieveArticleViewsSuccess:function(n){this.loadArticlesViews(n.articles);this.displayFavoriteArticles()},loadArticlesViews:function(n){for(var i,t=0;t<r.length;t++)i=r[t],i.IsLoaded()||i.looksForTheView(n)},displayFavoriteArticles:function(){var f=!1,e=n(".ric-more-result-container"),i,t,u;for(this.$articleList.empty(),i="",t=0;t<r.length;t++)u=r[t],u.IsLoaded()?i+=u.view:f=!0;this.$articleList.append(i);e.hide();f&&this.$modal[0].scrollHeight<=n(window).height()&&e.show();n("[data-bind-to]",this.$articleList).bindObjects()},retrieveNextArticles:function(n){var t=this.getArticleIdsToRetrieve(n);this.retrieveArticleViews(t)}};t.Favorites.initialize()}(window.jQuery,window.RIC=window.RIC||{},RIC.DocumentCookies||{}),function(n,t,i){"use strict";var r=[];t.ResizeController={registerResizeHandler:function(n,i){r.push(new t.ResizeHandler(n,i))},dispatchResizeEvent:function(t){n.each(r,function(n,i){i.invoke(t)})}};t.ResizeHandler=function(n,t){this.handler=n;this.context=t||null;this.invoke=function(n){this.handler&&this.handler.call(this.context,n)}};i.on("resize orientationchange",t.ResizeController.dispatchResizeEvent)}(window.jQuery,window.RIC=window.RIC||{},$(window)),function(n,t,i){"use strict";var r=window.location.hostname.match(/(ch\.betaqxl\.com|pre\.ricardo\.ch|ricardo\.ch)/),u=Array.isArray(r)&&r.length>0?r[0]:"localhost";t.CookieController={CookieParser:function(t,r){this.build=function(){var n=i.getItem(t);this.cookies=r?n?JSON.parse(n):[]:n?n.split(","):[]};this.count=function(){return this.build(),this.cookies.length};this.remove=function(n){var t=this.indexOf(n);t!=-1&&(this.cookies.splice(t,1),this.cookies.length?this.apply():this.destroy())};this.removeWithId=function(t,i){if(r){this.build();var u=this.cookies.length;this.cookies=n.grep(this.cookies,function(n){return n[t]!=i});this.cookies.length!=u&&(this.cookies.length?this.apply():this.destroy())}};this.add=function(n){this.exists(n)||(this.cookies.push(n),this.apply())};this.exists=function(n){return this.indexOf(n)!==-1};this.indexOf=function(n){return this.build(),this.cookies.indexOf(n)};this.apply=function(n){r?i.setItem(t,JSON.stringify(this.cookies),undefined,"/",n||u,!1,!0):i.setItem(t,this.cookies.join(","),undefined,"/",n||u,!1,!0)};this.merge=function(n){var i=n.count(),t;if(i){for(this.build(),t=0;t<i;t=t+1)this.cookies.indexOf(n.cookies[t])===-1&&this.cookies.push(n.cookies[t]);this.apply()}};this.destroy=function(n,r){i.removeItem(t,n||"/",r||u);this.build()};this.build()}}}(window.jQuery,window.RIC=window.RIC||{},RIC.DocumentCookies||{}),function(n,t,i,r,u){"use strict";function f(n,t,i){this.$loginForm=n;this.$loginButton=t||null;this.modalInstance=i||null;this.$disabledElements=this.getElementsToDisable();this.actionType="post";this.dataType="json";this.forceCache=!1;this.isCrossDomain=!0;this.xhrFields={withCredentials:!0};this.privateSuccessEvent="RIC.LoginFormHandler.PrivateSuccess";this.privateWrongPasswordEvent="RIC.LoginFormHandler.PrivateWrongPassword";this.privatePendingEmailValidationEvent="RIC.LoginFormHandler.PrivatePendingEmailValidation";this.privateSecurityIssueEvent="RIC.LoginFormHandler.PrivateSecurityIssue";this.privateUnknownIssueEvent="RIC.LoginFormHandler.PrivateUnknownIssue";this.privateAjaxIssueEvent="RIC.LoginFormHandler.PrivateAjaxIssue";this.privateBannedUserEvent="RIC.LoginFormHandler.PrivateBannedUserIssue";this.dispatcher=[this.privateSuccessEvent,this.privateWrongPasswordEvent,this.privatePendingEmailValidationEvent,this.privateSecurityIssueEvent,this.privateUnknownIssueEvent,this.privateBannedUserEvent];this.initValidation();this.$loginForm.on(this.privateSuccessEvent,this.handlePrivateLoginSuccess.bind(this)).on(this.privateWrongPasswordEvent,this.handlePrivateWrongPassword.bind(this)).on(this.privatePendingEmailValidationEvent+" "+this.privateSecurityIssueEvent+" "+this.privateUnknownIssueEvent+" "+this.privateAjaxIssueEvent+" "+this.privateBannedUserEvent,this.handlePrivateLoginError.bind(this)).submit(this.sendLoginForm.bind(this))}f.loginSuccessEvent="RIC.LoginFormHandler.Success";f.loginErrorEvent="RIC.LoginFormHandler.Error";Object.assign(f.prototype,{sendLoginForm:function(t){t.preventDefault();this.hideIncorrectPasswordErrorMessage();this.isLoginFormValid()&&n.ajax({beforeSend:this.handleAjaxBeforeSend,url:this.getFormAction(),type:this.actionType,dataType:this.dataType,cache:this.forceCache,context:this,crossDomain:this.isCrossDomain,xhrFields:this.xhrFields,success:this.handleAjaxSuccess,error:this.handleAjaxError,data:this.$loginForm.serializeObject(),complete:this.handleAjaxComplete})},getFormAction:function(){return"https://"+window.location.hostname+this.$loginForm.attr("action")},handleAjaxBeforeSend:function(){this.$disabledElements&&this.$disabledElements.disable();this.modalInstance&&this.modalInstance.block()},handleAjaxSuccess:function(n){function t(n){window.pagevars=window.pagevars||{};n&&(pagevars.userId=n)}t(n.userId);u.trackLogin(n.state);this.$loginForm.trigger(this.dispatcher[n.state],{userId:n.userId,userNickName:n.userNickName,errorMessage:n.help,severity:n.severity})},handleAjaxError:function(){u.trackLogin();this.$loginForm.trigger(this.privateAjaxIssueEvent,{errorMessage:"Problem establishing a connection with the server. Please check your internet connection.",severity:"error"})},handleAjaxComplete:function(){this.modalInstance&&this.modalInstance.unblock();this.$disabledElements&&this.$disabledElements.enable()},handlePrivateLoginSuccess:function(n,i){r.emitLogin(i);this.$loginForm.trigger(t.LoginFormHandler.loginSuccessEvent,i)},handlePrivateWrongPassword:function(){this.showIncorrectPasswordErrorMessage()},handlePrivateLoginError:function(n,i){this.hideLoginForm();this.showErrorMessage(i.severity,i.errorMessage);this.$loginForm.trigger(t.LoginFormHandler.loginErrorEvent)},initValidation:function(){n.validator.unobtrusive.parseDynamicContent(this.$loginForm)},isLoginFormValid:function(){return this.$loginForm.valid()},getElementsToDisable:function(){var t=n(".modal-body.ric-login-form",this.$loginForm),i=n(".modal-footer.ric-login-form",this.$loginForm);return n("a, input",t).add("button.btn-primary",i)},hideLoginForm:function(){n(".modal-body.ric-login-form, .modal-footer.ric-login-form",this.$loginForm).hide()},showIncorrectPasswordErrorMessage:function(){n(".ric-incorrect-password",this.$loginForm).show()},hideIncorrectPasswordErrorMessage:function(){n(".ric-incorrect-password",this.$loginForm).hide()},showErrorMessage:function(t,i){var r=n(".ric-severity-icon");switch(t){case"warning":r.addClass("glyphicon-ban-circle ric-warning-icon");break;case"error":default:r.addClass("glyphicon-remove-circle ric-error-icon")}n(".ric-login-form-issue .ric-explanation").html(i);n(".ric-login-form-issue",this.$loginForm).show()}});t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"LoginFormHandler",RIC.LoginController||{},RIC.Tracking||{}),function(n,t,i,r,u){"use strict";function e(n){return r()&&u(n)&&n.length>0}function o(n){return n instanceof HTMLElement}function f(t){e(t)?(this.$element=t.first(),this.element=t.get(0)):o(t)?(this.$element=r()?n(t):null,this.element=t):(this.$element=null,this.element=null)}f.prototype.isJQueryAvailable=r();t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"BoundObject",function(){return typeof jQuery=="function"},function(n){return n instanceof window.jQuery}),function(n,t,i,r){"use strict";function f(){e.trigger("resize")}function o(){return"onbeforeprint"in window&&"onafterprint"in window}function s(){return Boolean(window.matchMedia)}function u(n){r.call(this,n);this.$element&&this.isJQueryAvailable&&this.bindEvents()}var e=n(window);u.prototype=Object.create(r.prototype);u.prototype.constructor=u;Object.assign(u.prototype,{bindEvents:function(){o()?(window.onbeforeprint=f,window.onafterprint=f):s()&&window.matchMedia("print").addListener(f)}});t[i]=u}(window.jQuery,window.RIC=window.RIC||{},"PrintManager",RIC.BoundObject||function(){throw new Error("RIC.PrintManager : RIC.BoundObject is undefined.");}),function(n,t,i,r,u,f){"use strict";function a(){return JSON.parse(c.getItem(h)||"[]")}function l(n){Array.isArray(n)&&n.length?c.setItem(h,JSON.stringify(n)):c.removeItem(h)}function o(n){return s===null&&(r.call(this,n),e=a(),s=this),s}var s=null,e=null,h="startupEvents",c=u?window.sessionStorage:f;o.prototype=Object.create(r.prototype);o.prototype.constructor=o;o.uniqueInstance=function(){return s};Object.assign(o.prototype,{push:function(n){e.push(n);l(e)},pop:function(t){var i=n.inArray(t,e);return~i&&e.splice(i,1),l(e),~i}});t[i]=o}(window.jQuery,window.RIC=window.RIC||{},"StartupActions",RIC.BoundObject||function(){throw new Error("RIC.StartupActions: RIC.BoundObject is undefined.");},RIC.TestStorage.hasSessionStorage(),RIC.DocumentCookies||{}),function(n,t,i,r,u){"use strict";function f(n){if(i.call(this,n),this.element){var t=this.element;r.registerLoginListener(function(){t.classList.remove(u)});r.registerLogoutListener(function(){t.classList.add(u)})}}f.prototype=Object.create(i.prototype);f.prototype.constructor=f;n[t]=f}(window.RIC=window.RIC||{},"ShowOnLogin",RIC.BoundObject||function(){throw new Error("RIC.ShowOnLogin : RIC.BoundObject is undefined.");},RIC.LoginController||{},"hidden"),function(n,t,i,r,u){"use strict";function f(n){if(i.call(this,n),this.element){var t=this.element;r.registerLoginListener(function(){t.classList.add(u)});r.registerLogoutListener(function(){t.classList.remove(u)})}}f.prototype=Object.create(i.prototype);f.prototype.constructor=f;n[t]=f}(window.RIC=window.RIC||{},"ShowOnLogout",RIC.BoundObject||function(){throw new Error("RIC.ShowOnLogout : RIC.BoundObject is undefined.");},RIC.LoginController||{},"hidden"),function(n,t,i,r){"use strict";function u(n){if(i.call(this,n),this.element){var t=this.element;r.registerLoginListener(function(n){t.textContent=n.userNickName});r.registerLogoutListener(function(){t.textContent=""})}}u.prototype=Object.create(i.prototype);u.prototype.constructor=u;n[t]=u}(window.RIC=window.RIC||{},"NickNameOnLogin",RIC.BoundObject||function(){throw new Error("RIC.ShowOnLogin : RIC.BoundObject is undefined.");},RIC.LoginController),function(n,t,i,r){"use strict";function u(n){if(r.call(this,n),this.element instanceof HTMLFormElement)this.element.addEventListener("submit",this.handleSubmit.bind(this));else throw new Error("RIC.FormInterface : the bound object is not a form DOM element.");}var f="loadingText",e="resetText",o="<span class='glyphicon glyphicon-refresh ric-infinite-rotation'><\/span>";u.prototype=Object.create(r.prototype);u.prototype.constructor=u;Object.assign(u.prototype,{handleSubmit:function(){throw new Error("ns.FormInterface.handleSubmit method : subclasses must override.");},submit:function(){this.$element.submit()},getSerializedData:function(){return this.$element.serializeObject()},hasActionAttribute:function(){return Boolean(this.$element.attr("action"))},getAction:function(){return this.$element.attr("action")},setAction:function(n){this.$element.attr("action",n||"")},hasAutocompleteAttribute:function(){return Boolean(this.$element.attr("autocomplete"))},isAutocompleteOn:function(){return!this.hasAutocompleteAttribute()||this.$element.attr("autocomplete").toLowerCase()==="on"},isAutocompleteOff:function(){return this.$element.attr("autocomplete").toLowerCase()==="off"},setAutocompleteOn:function(){this.$element.attr("autocomplete","on")},setAutocompleteOff:function(){this.$element.attr("autocomplete","off")},hasMethodAttribute:function(){return Boolean(this.$element.attr("method"))},getMethod:function(){return this.isMethodGet()?"get":this.isMethodPost()?"post":this.$element.attr("method")},isMethodGet:function(){return!this.hasMethodAttribute()||this.$element.attr("method").toLowerCase()==="get"},isMethodPost:function(){return this.$element.attr("method").toLowerCase()==="post"},setMethodGet:function(){this.$element.attr("method","get")},setMethodPost:function(){this.$element.attr("method","post")},getInputElements:function(){return n("input, textarea",this.$element)},getButtonElements:function(){return n("button",this.$element)},getSubmitElements:function(){return n("[type=submit]",this.$element)},getFormElementsToDisable:function(){return this.$element.find("input, button, textarea, a")},disable:function(){n.fn.disable&&this.getFormElementsToDisable().disable()},enable:function(){n.fn.enable&&this.getFormElementsToDisable().enable()},rotateSubmitButtons:function(){this.getSubmitElements().each(function(t,i){n(i).data(f,o).data(e,i.innerHTML)})},neutralizeSubmitButtons:function(){this.getSubmitElements().each(function(t,i){n(i).data(f,i.innerHTML).removeData(e)})}});t[i]=u}(window.jQuery,window.RIC=window.RIC||{},"FormInterface",RIC.BoundObject||function(){throw new Error("RIC.FormInterface : RIC.BoundObject is undefined.");}),function(n,t,i,r){"use strict";function u(n){if(i.call(this,n),this.$element&&this.isJQueryAvailable){var t=this.$element;r.registerResizeHandler(function(){t.hasClass("open")&&t.children("[data-toggle=dropdown]").blur().dropdown("toggle")})}}u.prototype=Object.create(i.prototype);u.prototype.constructor=u;n[t]=u}(window.RIC=window.RIC||{},"DropDownToggler",RIC.BoundObject||function(){throw new Error("RIC.DropDownToggler : RIC.BoundObject is undefined.");},RIC.ResizeController||{}),function(n,t,i,r,u){function e(n){function t(t,i){var r=parseInt(i.dataset.ricForcebreak===undefined?n:i.dataset.ricForcebreak),u;eWords=(i.innerText||i.textContent).trim().split(" ");u=eWords.map(function(n){return n.trim()}).filter(function(n){return n.length>0}).reduce(function(n,t){return n+(!isNaN(r)&&t.length>=r?'<span class="ric-forcebreak">'+t+"<\/span> ":"<span>"+t+"<\/span> ")},"");i.innerHTML=u}return t}function o(t){function i(i,r){var u=r.getBoundingClientRect(),e=u.height,o=u.width,f=parseInt(r.style.fontSize),s=isNaN(t)?f/5:t;n(r).find("span").each(function(t,i){var u,h;if(i.classList.remove("ric-hellip"),i.style.display="",u=i.getBoundingClientRect(),h=u.top+u.height,t>=1&&h-s>e){var r=n(i).prev(),l=r.position().left+r.width()+f,c=r.text();return l>=o&&(r=r.removeClass("ric-hellip").prev()),c.match(/,$/)&&r.text(c.slice(0,-1)),r.addClass("ric-hellip").nextAll().hide(),!1}})}return i}function f(n){if(r.call(this,n),this.$element&&this.isJQueryAvailable){var t=this.$element;function i(){t.floatEllipsis()}window.requestAnimationFrame(function(){if(t.buildEllipsis(),t.height()>0)t.floatEllipsis();else t.closest(".collapse").on("shown.bs.collapse",i);u.registerResizeHandler(i)})}}n.fn.buildEllipsis=function(n){return this.each(e(n))};n.fn.floatEllipsis=function(n){return this.each(o(n))};f.prototype=Object.create(r.prototype);f.prototype.constructor=f;t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"FloatEllipsis",RIC.BoundObject||function(){throw new Error("RIC.FloatEllipsis : RIC.BoundObject is undefined.");},RIC.ResizeController),function(n,t,i){"use strict";function f(n,t,i){i[n]!==undefined?(t.push(this),i[n].apply(i,t)):console.error("Function '"+n+"' does not exist in the controller")}function e(n){var t={name:n,args:[]},i=/\((.*?)\)/.exec(n);return i!=null&&(t.name=t.name.replace(i[0],""),t.args=i[1].split(","),t.args.forEach(function(n,i){isNaN(Number(n))?(t.args[i]=n.trim(),t.args[i]=t.args[i].substring(1,t.args[i].length-1)):t.args[i]=Number(n)})),t}function o(n,t){var r=t.attr("ric-init"),i;r!==undefined&&(i=e(r),f(i.name,i.args,n))}function s(t,i){var o=[],s;u.forEach(function(n){o.push("["+r+"-"+n+"]")});s=o.join(",");n.each(i.find(s),function(i,o){u.forEach(function(i){var u=n(o).attr(r+"-"+i);if(u)switch(i){case"bind":Array.isArray(t[u])?t[u].push(o):t[u]=o;break;default:n(o).on(i,function(){var n=e(u);f(n.name,n.args,t)})}})})}var r="ric",u=["bind","click","change"];t.Controller=function(n){i.call(this,n);o(this,n);s(this,n)};t.Controller.prototype={init:function(){}}}(window.jQuery,window.RIC=window.RIC||{},RIC.BoundObject||{}),function(n,t,i,r){"use strict";function o(n){var t=n.x||n.clientX,i=n.y||n.clientY;return t<=0&&i<=0}function s(n){return!o(n)}function h(n,t){function i(i){(i.which===f||i.which===e)&&(n&&i.preventDefault(),t(i))}return i}function c(n,t){function i(i){n&&i.preventDefault();s(i)&&t(i)}return i}function l(n){return typeof n=="boolean"||n instanceof Boolean?n:!0}function u(n,t){if(r.call(this,n),this.element&&this.$element){var i=l(t),u=this.handleClick.bind(this);this.element.addEventListener("keyup",h(i,u));this.$element.on("click",c(i,u))}}var f=13,e=32;u.prototype=Object.create(r.prototype);u.prototype.constructor=u;u.prototype.handleClick=function(){return!1};u.prototype.handleRedirect=function(n,t){typeof t=="string"&&t.length&&(n&&(n.ctrlKey||n.metaKey)?window.open(t,"_blank"):window.location=t)};t[i]=u}(window.jQuery,window.RIC=window.RIC||{},"ClickHandler",RIC.BoundObject||function(){throw new Error("RIC.ClickHandler : RIC.BoundObject is undefined.");}),function(n,t,i){"use strict";function r(n){i.call(this,n)}r.prototype=Object.create(i.prototype);r.prototype.constructor=r;r.prototype.handleClick=function(){this.element&&(window.location=this.element.dataset.fakeHref)};n[t]=r}(window.RIC=window.RIC||{},"FakeLinkClickHandler",RIC.ClickHandler||function(){throw new Error("RIC.FakeLinkClickHandler : RIC.ClickHandler is undefined.");}),function(n,t,i,r,u){"use strict";function e(n){return n instanceof HTMLSpanElement&&n.classList.contains("icon")&&n.classList.contains("ric-remove-favorites")}function o(n){typeof n=="string"&&n.length>0&&n!=="undefined"&&(window.location.href=n)}function f(n){r.call(this,n)}f.prototype=Object.create(r.prototype);f.prototype.constructor=f;f.prototype.handleClick=function(t){e(t.target)?u.handleRemoveFavoriteHandler(t.target.dataset.articleId):o(n(t.target).closest("li").attr("data-target"))};t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"FavoriteArticleHandler",RIC.ClickHandler||function(){throw new Error("RIC.FavoriteArticleHandler : RIC.ClickHandler is undefined.");},RIC.Favorites||{}),function(n,t,i,r){"use strict";function u(n){i.call(this,n)}u.prototype=Object.create(i.prototype);u.prototype.constructor=u;u.prototype.handleClick=function(n){n.preventDefault();r.retrieveNextArticles()};n[t]=u}(window.RIC=window.RIC||{},"SeeMoreFavoriteHandler",RIC.ClickHandler||function(){throw new Error("RIC.SeeMoreFavoriteHandler : RIC.ClickHandler is undefined.");},RIC.Favorites||{}),function(n,t,i,r,u,f){"use strict";function b(){e.appendChild(c);f()}function k(){u();e.removeChild(c)}function d(){h.classList.add(v);h.classList.remove(y);e.classList.add(a);e.classList.remove(l);setTimeout(b,0)}function p(){h.classList.add(y);h.classList.remove(v);e.classList.add(l);e.classList.remove(a);setTimeout(k,w)}function g(){return e.classList.contains(a)}function nt(){return e.classList.contains(l)}function o(n){i.call(this,n)}var l="ric-not-shifted",a="ric-shifted",v="ric-opaque",y="ric-transparent",e=document.querySelector("#ric-js-shiftable"),h=document.querySelector("#ric-side-menu"),w=200*1.5,c=document.createElement("div"),s=c.style;s.position="absolute";s.width="100%";s.height="100%";s.top="0";s.zIndex="2000";o.prototype=Object.create(i.prototype);o.prototype.constructor=o;o.prototype.handleClick=function(){nt()?d():p()};n[t]=o;new o(c);r.registerResizeHandler(function(){g()&&p()})}(window.RIC=window.RIC||{},"MobileMenuHandler",RIC.ClickHandler||function(){throw new Error("RIC.MobileMenuHandler : RIC.ClickHandler is undefined.");},RIC.ResizeController||{},window.jQuery.pageEnableScroll||function(){throw new Error("RIC.MobileMenuHandler : $.pageEnableScroll is undefined.");},window.jQuery.pageDisableScroll||function(){throw new Error("RIC.MobileMenuHandler : $.pageDisableScroll is undefined.");}),function(n,t,i,r){"use strict";function o(n){return n instanceof HTMLElement}function e(n){return o(n)?n:null}function f(n,t){return o(n)?n.classList.contains(t):!1}function h(n){return(typeof n=="string"||n instanceof String)&&/^#[A-Aa-z]+[\w\-\:\.]*$/.test(n)}function s(n,t,i){this.navTabs=e(n);this.navTabLine=e(t);this.navTabContent=e(i);this.active=f(this.navTabLine,"active")&&f(this.navTabContent,"active")}function u(n){r.call(this,n);this.$element&&(this.navTabs=this.getNavTabs())}Object.assign(s.prototype,{activate:function(){this.navTabLine.classList.add("active");this.navTabContent.classList.add("active");this.active=!0},deactivate:function(){this.navTabLine.classList.remove("active");this.navTabContent.classList.remove("active");this.active=!1},isActive:function(){return f(this.navTabLine,"active")&&f(this.navTabContent,"active")&&this.active},hasContent:function(){return this.navTabContent!==null},isNavTabLine:function(n){return this.navTabLine===n.get(0)},belongsToNavTabLine:function(t){return n(this.navTabLine).find(t).length===1}});u.prototype=Object.create(r.prototype);u.prototype.constructor=u;Object.assign(u.prototype,{handleClick:function(t){var r=this.indexForEventTarget(n(t.target)),i=r>=0?this.navTabs[r]:null;i&&i.hasContent()&&(i.isActive()?i.deactivate():(this.deactivateNavTabs(),i.activate()))},getNavTabs:function(){var t=Array.prototype.slice.call(this.element.children).filter(function(n){return n instanceof HTMLLIElement}),n=Array.prototype.slice.call(this.element.parentElement.children).reduce(function(n,t){return n===null&&t.classList.contains("tab-content")?t:n},null),i=this.element;return t.map(function(t){var r=Array.prototype.slice.call(t.children).reduce(function(n,t){return n===null&&t instanceof HTMLAnchorElement?t:n},null);return n&&r&&h(r.getAttribute("href"))?new s(i,t,n.querySelector(r.getAttribute("href"))):null}).filter(function(n){return n!==null})},deactivateNavTabs:function(){this.navTabs.forEach(function(n){n.deactivate()})},activateNavTab:function(n){isFinite(n)&&n>=0&&n<this.navTabs.length&&this.navTabs[n].activate()},indexForEventTarget:function(n){function t(t,i,r){return t===-1&&(i.isNavTabLine(n)||i.belongsToNavTabLine(n))?r:t}return this.navTabs.reduce(t,-1)}});t[i]=u}(window.jQuery,window.RIC=window.RIC||{},"NavTabsHandler",RIC.ClickHandler||function(){throw new Error("RIC.NavTabsHandler : RIC.ClickHandler is undefined");}),function(n,t,i,r,u){"use strict";function l(){return e.width()<c?s.offset().top+s.height():(window.innerHeight||e.height())/2}function f(n){if(r.call(this,n),this.$element){var t=this.toggleScrollButton.bind(this);e.scroll(t);u(t)}}var h=n("html, body"),e=n(window),s=n("#ric-js-shiftable > header").first(),o="visible",c=1024;f.prototype=Object.create(r.prototype);f.prototype.constructor=f;f.prototype.handleClick=function(){h.animate({scrollTop:0},{ease:"easeInOutCubic"})};f.prototype.toggleScrollButton=function(){var n=e.scrollTop(),t=l();this.element.classList.contains(o)?n<=t&&this.element.classList.remove(o):n>t&&this.element.classList.add(o)};t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"ScrollPageHandler",RIC.ClickHandler||function(){throw new Error("RIC.ScrollPageHandler : RIC.ClickHandler is undefined");},RIC.ResizeController.registerResizeHandler||function(){throw new Error("RIC.ScrollPageHandler : RIC.ResizeController.registerResizeHanlder is undefined.");}),function(n,t,i){"use strict";function r(n){i.call(this,n)}r.prototype=Object.create(i.prototype);r.prototype.constructor=r;r.prototype.handleClick=function(n){n.preventDefault();document.referrer.indexOf(document.domain)>=0?window.history.back():window.location.assign(document.location.origin)};n[t]=r}(window.RIC=window.RIC||{},"HistoryBack",RIC.ClickHandler||function(){throw new Error("RIC.HistoryBack : RIC.ClickHandler is undefined.");}),function(n,t,i,r){"use strict";function s(n){return n.length===1}function h(n){return n.length===1&&n.get(0).tagName.toLowerCase()==="ul"}var u=-1,f="data-label",e="data-list",o="data-list-handler";t.DropDown=function(t){if(i.call(this,t),this.$label=n(this.$element.attr(f),this.$element),this.$list=n(this.$element.attr(e),this.$element),!s(this.$label)||!h(this.$list))throw new Error("RIC.DropDown bad markup error : label and/or list is malformed");this.setValue(this.getValue());var u=this.$element.attr(o)||r;this.$list.bindObject(u);this.$list.data(u).setDropDownHandler(this)};n.extend(t.DropDown.prototype,i.prototype,{constructor:t.DropDown});n.extend(t.DropDown.prototype,{getValues:function(){var t=[];return this.$list.children("li.option").each(function(i,r){var f=n(r),u=parseInt(f.attr("data-value"),10);isNaN(u)||t.push(u)}),t},getMaximumValue:function(t){var r=this.getValues(),i=0;return t=t===undefined?!0:Boolean(t),n.each(r,function(n,r){(t&&r!==this.getDefaultValue()||!t)&&i<r&&(i=r)}),i},getMinimumValue:function(t){var r=this.getValues(),i=0;return t=t===undefined||Boolean(t),n.each(r,function(n,r){t&&r===this.getDefaultValue()||i>r&&(i=r)}),i},isValueInRange:function(n){for(var i=this.getValues(),t=0;t<i.length;t=t+1)if(n===i[t])return!0;return!1},isValueDefaultValue:function(n){return n===this.getDefaultValue()}});n.extend(t.DropDown.prototype,{conditionnalyDisableOptions:function(t){this.$list.children("li.option").each(function(i,r){var u=n(r);u[t(i,u)?"addClass":"removeClass"]("hidden")})},enableAllOptions:function(){this.conditionnalyDisableOptions(function(){return!1})},disableAllOptions:function(){this.conditionnalyDisableOptions(function(){return!0})},disableAllOptionsWithValuesUpOrEqualsTo:function(n){if(!isNaN(n=Number(n))){var t=this.getDefaultValue();this.conditionnalyDisableOptions(function(i,r){var u=Number(r.attr("data-value"));return isNaN(u)||u<=n&&u!==t})}},disableAllOptionsWithValuesUpTo:function(n){if(!isNaN(n=Number(n))){var t=this.getDefaultValue();this.conditionnalyDisableOptions(function(i,r){var u=Number(r.attr("data-value"));return isNaN(u)||u<n&&u!==t})}},disableAllOptionsWithValuesAboveOrEqualsTo:function(n){if(!isNaN(n=Number(n))){var t=this.getDefaultValue();this.conditionnalyDisableOptions(function(i,r){var u=Number(r.attr("data-value"));return isNaN(u)||u>=n&&u!==t})}},disableAllOptionsWithValuesAbove:function(n){if(!isNaN(n=Number(n))){var t=this.getDefaultValue();this.conditionnalyDisableOptions(function(i,r){var u=Number(r.attr("data-value"));return isNaN(u)||u>n&&u!==t})}}});n.extend(t.DropDown.prototype,{getValue:function(){return parseInt(this.$element.attr("data-value"))},setValue:function(n,t){var i=this.$list.children("[data-value="+n+"]").first(),r=!(t||!1);i.length===1&&(this.$list.children("li.option").removeClass("selected"),this.$label.children("span.ric-caption").text(i.text()+" "),this.$element.attr("data-value",n.toString()),i.addClass("selected"),r&&this.$element.trigger("change"))},setValueToDefaultValue:function(){this.setValue(this.getDefaultValue())},getDefaultValue:function(){return u},getAllValues:function(){for(var i=[],r=this.$list.children("li"),u=r.length,t=0;t<u;t=t+1)i.push(n(r[t]).attr("data-value"));return i}})}(window.jQuery,window.RIC=window.RIC||{},RIC.BoundObject||function(){throw new Error("RIC.DropDown : RIC.BoundObject is undefined.");},"RIC.SelectOptionHandler"),function(){"use strict";window.RIC=window.RIC||{};RIC.EventEmitter=function(n){RIC.BoundObject.call(this,n);this.eventName=this.getEventName();this.initialize()};RIC.EventEmitter.prototype=Object.create(RIC.BoundObject.prototype);RIC.EventEmitter.prototype.constructor=RIC.EventEmitter;RIC.EventEmitter.emitEvent=function(n){n.data.emitter.emitEvent.call(n.data.emitter,n)};RIC.EventEmitter.eventName="RIC.event";RIC.EventEmitter.prototype.getEventName=function(){return RIC.EventEmitter.eventName};RIC.EventEmitter.prototype.initialize=function(){this.emitEvent()};RIC.EventEmitter.prototype.emitEvent=function(){this.$element&&this.eventName&&this.$element.trigger(this.eventName)}}(),function(n,t){"use strict";t.ContentChangeEmitter=function(n){RIC.EventEmitter.call(this,n)};t.ContentChangeEmitter.prototype=Object.create(t.EventEmitter.prototype);t.ContentChangeEmitter.prototype.constructor=t.ContentChangeEmitter;t.ContentChangeEmitter.eventName="RIC.contentHasChanged";t.ContentChangeEmitter.prototype.getEventName=function(){return t.ContentChangeEmitter.eventName};t.ContentChangeEmitter.prototype.initialize=function(){function n(n){return n instanceof HTMLTextAreaElement?!0:n instanceof HTMLInputElement?n.type==="text":!1}if(this.$element&&n(this.element))this.$element.on("input paste",{emitter:this},RIC.EventEmitter.emitEvent)}}(window.jQuery,function(){return window.RIC=window.RIC||{},window.RIC}()),function(n,t,i){"use strict";var r="data-listen-to";t.EventListener=function(n){i.call(this,n);this.$listenTo=this.getEventEmitter();this.initialize()};n.extend(t.EventListener.prototype,i.prototype,{constructor:t.EventListener,initialize:function(){this.$listenTo&&this.$listenTo.on(this.getEventName(),n.proxy(this.handleEvent,this))},getEventEmitter:function(){var t=this.$element.attr(r);return t&&typeof t=="string"&&t.length?n(t).first():this.$element},handleEvent:function(){throw new Error("ns.EventListener.prototype.handleEvent must be implemented by subclass.");},getEventName:function(){throw new Error("ns.EventListener.prototype.getEventName must be implemented by subclass.");}})}(window.jQuery,window.RIC=window.RIC||{},RIC.BoundObject||function(){throw new Error("RIC.EventListener : RIC.BoundObject is undefined.");}),function(n,t,i,r){"use strict";t.FavoriteScrollHandler=function(n){i.call(this,n)};n.extend(t.FavoriteScrollHandler.prototype,i.prototype,{constructor:t.FavoriteScrollHandler,handleEvent:function(t){var i=n(t.currentTarget);i.scrollTop()+i.innerHeight()>=t.currentTarget.scrollHeight&&r.retrieveNextArticles()},getEventName:function(){return"scroll"}})}(window.jQuery,window.RIC=window.RIC||{},RIC.EventListener||function(){throw new Error("RIC.FavoriteScrollHandler : RIC.EventListener is undefined.");},RIC.Favorites||{}),function(){"use strict";window.RIC=window.RIC||{};RIC.Replicator=function(n,t){if(RIC.BoundObject.call(this,n),this.$element!=null&&(this.$replicatedElement=this.replicatedElementFromSelector(t||this.$element.attr("data-replicate")),this.$replicatedElement!=null)){this.replicatedElement=this.$replicatedElement.get(0);this.$replicatedElement.on(RIC.Replicator.replicateEvent,{replicator:this},RIC.Replicator.replicate);this.replicate()}};RIC.Replicator.prototype=Object.create(RIC.BoundObject.prototype);RIC.Replicator.prototype.constructor=RIC.Replicator;RIC.Replicator.replicateEvent="RIC.Replicator.replicateEvent";RIC.Replicator.replicate=function(n){n.data.replicator.replicate.call(n.data.replicator,n)};RIC.Replicator.prototype.replicate=function(){};RIC.Replicator.prototype.replicatedElementFromSelector=function(){return null}}(window.jQuery),function(n,t,i,r){"use strict";t.ScreenBlocker=function(t){i.call(this,t);this.inProcess=!1;this.maxTimeBeforeDisplayingOverlay=300;this.minTimeDisplayingOverlay=500;this.startTimeDisplayingOverlay=0;this.$overlay=n("<div/>").css({"z-index":"2000",border:"none",margin:"0px",padding:"0px",width:"100%",height:"100%",top:"0px",left:"0px",opacity:"0.6",cursor:"wait",position:"fixed","background-color":"rgb(0, 0, 0)"});this.$throbber=n("<div><\/div>").addClass("ric-throbber ric-blue-on-black").css({width:"100px",height:"100px",margin:"70px auto auto"})};n.extend(t.ScreenBlocker.prototype,i.prototype,{constructor:t.ScreenBlocker,handleClick:function(n){this.inProcess===!1&&(this.inProcess=!0,setTimeout(this.displayOverlay.bind(this),this.maxTimeBeforeDisplayingOverlay),this.processCall(n))},processCall:function(){throw new Error("RIC.ScreenBlocker : subclasses must override processCall method.");},displayOverlay:function(){this.inProcess&&(this.startTimeDisplayingOverlay=n.now(),r.append(this.$overlay),this.displayThrobber())},displayThrobber:function(){this.$overlay&&this.$overlay.append(this.$throbber)},stopBlock:function(){this.inProcess=!1;this.startTimeDisplayingOverlay&&setTimeout(n.proxy(this.removeOverlay,this),Math.max(this.minTimeDisplayingOverlay-(n.now()-this.startTimeDisplayingOverlay),0))},removeOverlay:function(){this.$overlay.remove();this.startTimeDisplayingOverlay=0}})}(window.jQuery,window.RIC=window.RIC||{},RIC.ClickHandler||function(){throw new Error("ns.ScreenBlocker : RIC.ClickHandler is undefined.");},window.jQuery("body")),function(n,t,i,r,u,f,e,o){"use strict";function h(n){r.call(this,n);this.modal=null;this.actionType="get";this.dataType="json";this.element instanceof HTMLElement?(this.signInUrlAction=this.element.dataset.fakeHref,this.signInUrlTarget=this.element.dataset.targetUrl):(this.signInUrlAction=null,this.signInUrlTarget=null);s&&!t[e]&&(t[e]=!0,this.successfulLogin=!1,this.$element.click())}var s=n("html").hasClass("AUTO26")&&window.AUTO26;t[e]=!1;Object.assign(h,{loginForm:"form.ric-login-form",loginButton:"input.ric-login-action",privateSuccessEvent:"ns.LoginHandler.PrivateSuccess",privateWrongPasswordEvent:"ns.LoginHandler.PrivateWrongPassword",privatePendingEmailValidationEvent:"ns.LoginHandler.PrivatePendingEmailValidation",privateSecurityIssueEvent:"ns.LoginHandler.PrivateSecurityIssue",privateUnknownIssueEvent:"ns.LoginHandler.PrivateUnknownIssue",privateAjaxIssueEvent:"ns.LoginHandler.PrivateAjaxIssue",privateBannedUserEvent:"ns.LoginHandler.PrivateBannedUserIssue",loginSuccessEvent:"ns.LoginHandler.Success",loginErrorEvent:"ns.LoginHandler.Error"});Object.assign(h.prototype,r.prototype,{constructor:h,processCall:function(){function i(n){switch(n.state){case 0:window.location.reload(!0);break;case 1:this.handleSignInProcess(n);break;default:t(n)}}function t(n){this.stopBlock();console.error("ns.LoginHandler.prototype.processCall - ajaxError function : ",n)}return this.signInUrlAction&&n.ajax({url:this.signInUrlAction,type:this.actionType,dataType:this.dataType,cache:!1,context:this,success:i,error:t}),!1},handleSignInProcess:function(n){var i={content:n.loginViewHtml,context:this,onShown:this.handleOnShown,onHidden:this.handleOnHidden};s&&t[e]&&(i.onShow=function(){this.modal.$modal.find(".alert.alert-success").removeClass("hidden");typeof AUTO26Email=="string"&&window.AUTO26Email.length&&this.modal.$modal.find("#UserName").val(window.AUTO26Email)});this.stopBlock();this.modal=new u(i);this.modal.run()},handleOnShown:function(){var i=n(t.LoginHandler.loginForm,this.modal.$modal),r=n(t.LoginHandler.loginButton,this.modal.$modal);i.data("RIC.LoginFormHandler",new f(i,r,this.modal));i.on(RIC.LoginFormHandler.loginSuccessEvent,this.handleLoginFormSuccess.bind(this));i.on(RIC.LoginFormHandler.loginErrorEvent,this.handleLoginFormError.bind(this));if(t[e]){o("Display Login","Automatic");n(".lost-password a",this.modal.$modal).on("click",function(){o("Forgot Password")});n(".ric-register",this.modal.$modal).on("click",function(){o("Register")})}},handleOnHidden:function(){this.modal.$modal.remove();this.modal=null;s&&t[e]&&(s=!1,this.successfulLogin===!1&&o("Abandon","Click"))},handleLoginFormSuccess:function(){t[e]&&(o("Login Success","Button"),this.successfulLogin=!0);this.modal.$modal.hide();this.signInUrlTarget?window.location=this.signInUrlTarget:window.location.reload(!0)},handleLoginFormError:function(){console.error("ns.LoginHandler.prototype.handleSignInProcess - handleLoginFormError")}});t[i]=h}(window.jQuery,window.RIC=window.RIC||{},"LoginHandler",RIC.ScreenBlocker||function(){throw new Error("RIC.LoginHandler : RIC.ScreenBlocker is undefined.");},RIC.Modal||function(){throw new Error("RIC.LoginHandler: RIC.Modal is undefined.");},RIC.LoginFormHandler||function(){throw new Error("RIC.LoginHandler: RIC.LoginFormHandler is undefined.");},"brandMigrationLoginModalOpened",RIC.Tracking.trackBrandMigration||function(){throw new Error("RIC.LoginHandler : RIC.Tracking.trackBrandMigration is undefined");}),function(n,t,i,r,u){"use strict";function f(n){r.call(this,n);this.basicInformationUrl=this.element.dataset.articleListUrl;this.updateFavoritesCount=this.updateFavoritesCount.bind(this);this.updateFavoritesCount(u.getAll());u.registerListener(this.updateFavoritesCount)}var e=Array.prototype.slice.call(document.querySelectorAll(".ric-favorites-quantity"));Object.assign(f.prototype,r.prototype,{constructor:f,processCall:function(){u.handleBasicInformationArticles(this)},updateFavoritesCount:function(n){var t=n.length.toString();e.forEach(function(n){n.textContent=t})}});t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"FavoritesHandler",RIC.ScreenBlocker||function(){throw new Error("RIC.FavoritesHandler : RIC.ScreenBlocker is undefined.");},RIC.Favorites||{}),function(n,t,i,r){"use strict";t.SizeReplicator=function(t,u){if(i.call(this,t,u),this.$replicatedElement!=null){this.replicatedWidth=0;this.replicatedHeight=0;r.registerResizeHandler(this.replicate,this);var f=n.proxy(this.replicate,this);n(window).on("forceresize.ric",f);n(document).on("hidden.bs.modal",f)}};n.extend(t.SizeReplicator,{replicatedSizeEvent:"ns.SizeReplicator.replicatedSizeEvent"});n.extend(t.SizeReplicator.prototype,i.prototype,{constructor:t.SizeReplicator,replicate:function(){this.$element&&this.$replicatedElement&&function(n){var r=n.getPropertyValue("width"),u=parseFloat(r),i=n.getPropertyValue("height"),f=parseFloat(i);(this.replicatedHeight!=f||this.replicatedWidth!=u)&&(this.replicatedHeight=f,this.replicatedWidth=u,this.element.style.width=r,this.element.style.height=i,this.element.style.lineHeight=i,this.$element.trigger(t.SizeReplicator.replicatedSizeEvent))}.call(this,window.getComputedStyle(this.replicatedElement,null))},replicatedElementFromSelector:function(t){return this.$element&&typeof t=="string"&&t.length>0?n(t).first():null}})}(window.jQuery,window.RIC=window.RIC||{},RIC.Replicator||function(){throw new Error("RIC.ResizeReplicator : RIC.Replicator is undefined.");},RIC.ResizeController||{}),function(n,t,i){"use strict";t.ParentSizeReplicator=function(n,t){i.call(this,n,t)};n.extend(t.ParentSizeReplicator.prototype,i.prototype,{constructor:t.ParentSizeReplicator,replicatedElementFromSelector:function(n){return this.$element&&typeof n=="string"&&n.length>0?this.$element.parents(n).first():null}})}(window.jQuery,window.RIC=window.RIC||{},RIC.SizeReplicator||function(){throw new Error("RIC.ParentSizeReplicator : RIC.SizeReplicator is undefined.");}),function(n,t,i){"use strict";t.SelectOptionHandler=function(n){i.call(this,n)};n.extend(t.SelectOptionHandler.prototype,i.prototype,{constructor:t.SelectOptionHandler,setDropDownHandler:function(n){this.dropDownHandler=n},getDropDownHandler:function(){return this.dropDownHandler},handleClick:function(n){var i=this.getSelectedValue(n),t=this.getDropDownHandler();t&&t.setValue(i)},getSelectedValue:function(t,i){var r=this.normalizeTarget(n("gesture"in t?t.gesture.target:t.target));return r&&r.length&&!r.hasClass("disabled")?i?r.attr("data-value"):parseInt(r.attr("data-value")):!1},normalizeTarget:function(n){function t(n){return n&&n.get(0).tagName.toLowerCase()==="li"&&n.hasClass("option")}return t(n)?n:t(n.parent())?n.parent():null}})}(window.jQuery,window.RIC=window.RIC||{},RIC.ClickHandler||function(){throw new Error("RIC.SelectOptionHandler : RIC.ClickHandler is undefined.");}),function(n,t,i,r){"use strict";t.FavoriteSelectOptionHandler=function(n){i.call(this,n)};n.extend(t.FavoriteSelectOptionHandler.prototype,i.prototype,{constructor:t.FavoriteSelectOptionHandler,handleClick:function(t){var i=this.normalizeTarget(n("gesture"in t?t.gesture.target:t.target)),u=this.getDropDownHandler();i&&i.length&&!i.hasClass("disabled")&&u&&(u.setValue(i.attr("data-value")),r.handleFavoriteArticlesSorting(i.attr("data-value")))}})}(window.jQuery,window.RIC=window.RIC||{},RIC.SelectOptionHandler||function(){throw new Error("RIC.FavoriteSelectOptionHandler : RIC.SelectOptionHandler is undefined.");},RIC.Favorites||{}),function(n,t,i){"use strict";function u(n,t){var i=n.getBoundingClientRect();return i.top>=0-t&&i.left>=0&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&i.right<=(window.innerWidth||document.documentElement.clientWidth)}function f(n){return n.offsetWidth>0||n.offsetHeight>0}function r(n){i.call(this,n);var r=this,e=this.element.parentElement,t=function(){r.element&&u(r.element,e.offsetHeight)&&f(r.element)&&(r.transform(),window.removeEventListener("resize",t),window.removeEventListener("scroll",t),window.removeEventListener("adload.ric",t))};this.element&&(u(this.element,e.offsetHeight)||this.$element.parents(".modal").length)&&f(this.element)?r.transform():(window.addEventListener("resize",t),window.addEventListener("scroll",t),window.addEventListener("adload.ric",t))}Object.assign(r.prototype,i.prototype,{constructor:r,transform:function(){function i(){t.replaceWith(n);n.bindObjects()}var n=this.transformedElement()||null,t=this.$element;n&&window.requestAnimationFrame(i)},transformedElement:function(){throw new Error("RIC.Transformer : subclasses should override.");}});n[t]=r}(window.RIC=window.RIC||{},"Transformer",window.RIC.BoundObject||function(){throw new Error("RIC.Transformer : RIC.BoundObject is undefined.");}),function(n,t,i,r){"use strict";function u(n){r.call(this,n)}var f=[{srcAttrName:"data-image-srcset",destAttrName:"srcset"},{srcAttrName:"data-image-src",destAttrName:"src"},{srcAttrName:"data-image-class",destAttrName:"class"},{srcAttrName:"data-image-alt",destAttrName:"alt"},{srcAttrName:"data-image-width",destAttrName:"width"},{srcAttrName:"data-image-height",destAttrName:"height"},{srcAttrName:"data-image-bind-to",destAttrName:"data-bind-to"},{srcAttrName:"data-image-timeout",destAttrName:"data-timeout"}];Object.assign(u.prototype,r.prototype,{constructor:u,loadEvent:"RIC.ImageLoaded",errorEvent:"RIC.ImageError",transformedElement:function(){var u={},r=n(document.createElement("img")),e=this.element;return f.forEach(function(n){var i=n.srcAttrName,r=n.destAttrName,t=e.getAttribute(i);t&&(u[r]=t)}),r.on("load",function(){r.off("load").trigger(t[i].prototype.loadEvent)}).on("error",function(){r.off("error").trigger(t[i].prototype.errorEvent)}).attr(u),r}});t[i]=u}(window.jQuery,window.RIC=window.RIC||{},"ToImageTransformer",window.RIC.Transformer||function(){throw new Error("RIC.ToImageTransformer : RIC.Transformer is undefined.");});window.format=function(n,t){var o,i,f,s,e,u,l;if(!n||isNaN(+t))return t;var t=n.charAt(0)=="-"?-t:+t,y=t<0?t=-t:0,r=n.match(/[^\d\-\+#]/g),a=r&&r[r.length-1]||".",v=r&&r[1]&&r[0]||",",n=n.split(a);if(t=t.toFixed(n[1]&&n[1].length),t=+t+"",o=n[1]&&n[1].lastIndexOf("0"),i=t.split("."),(!i[1]||i[1]&&i[1].length<=o)&&(t=(+t).toFixed(o+1)),f=n[0].split(v),n[0]=f.join(""),s=n[0]&&n[0].indexOf("0"),s>-1)while(i[0].length<n[0].length-s)i[0]="0"+i[0];else+i[0]==0&&(i[0]="");if(t=t.split("."),t[0]=i[0],e=f[1]&&f[f.length-1].length,e){var h=t[0],c="",p=h.length%e;for(u=0,l=h.length;u<l;u++)c+=h.charAt(u),!((u-p+1)%e)&&u<l-e&&(c+=v);t[0]=c}return t[1]=n[1]&&t[1]?a+t[1]:"",(y?"-":"")+t[0]+t[1]},function(n,t,i,r,u){"use strict";var e="<div class='ric-throbber ric-blue-on-light-grey ric-opaque'><\/div>",o={width:"100%",height:"100%"},s="<div class='ric-image-in-progress'><\/div>",h={},f="complete";t.ImageLoader=function(t){if(i.call(this,t),this.millisecondsTimeout=parseInt(this.$element.attr("data-timeout")),this.timeoutIdentifier=isFinite(this.timeoutIdentifier)?setTimeout(n.proxy(this.dispatchErrorEvent,this),this.millisecondsTimeout):undefined,this.element.complete)this.$element.on(f,n.proxy(this.dispatchLoadEvent,this)).trigger(f);else{this.setLoadingFeedback();this.$element.on(r,n.proxy(this.dispatchLoadEvent,this));this.$element.on(u,n.proxy(this.dispatchErrorEvent,this))}};n.extend(t.ImageLoader.prototype,i.prototype,{constructor:t.ImageLoader,dispatchLoadEvent:function(n){function t(n){return n.naturalWidth<=70&&n.naturalHeight<=70}this.timeoutIdentifier&&clearTimeout(this.timeoutIdentifier);t(this.element)?this.dispatchErrorEvent(n):(this.removeLoadingFeedback(),this.handleLoadEvent(n))},handleLoadEvent:function(){throw new Error("ns.ImageLoader.prototype.handleLoadEvent : subclass should override.");},setLoadingFeedback:function(){function t(){return n(e).css(o)}this.$loader=t();this.$loader&&this.$element.before(this.$loader)},removeLoadingFeedback:function(){this.$loader&&this.$loader.remove()},dispatchErrorEvent:function(n){this.timeoutIdentifier&&clearTimeout(this.timeoutIdentifier);this.removeLoadingFeedback();this.handleErrorEvent(n)},handleErrorEvent:function(){this.setErrorFeedback();this.$element.remove()},setErrorFeedback:function(){function t(){return n(s).css(h)}this.$inProgress=t();this.$inProgress&&this.$element.before(this.$inProgress)},removeErrorFeedback:function(){this.$inProgress&&this.$inProgress.remove()}})}(window.jQuery,window.RIC=window.RIC||{},RIC.BoundObject||function(){throw new Error("RIC.ImageLoader : RIC.BoundObject is undefined.");},"load "+RIC.ToImageTransformer.loadEvent,"error "+RIC.ToImageTransformer.errorEvent),function(n,t,i,r,u,f){"use strict";t.CenteredContent=function(u,f){i.call(this,u);this.centerMethod=f||t.CenteredContent.fullCenterMethod;r.registerResizeHandler(function(){this.center(!1)},this);var e=n.proxy(function(){this.center(!0)},this);n(window).on("load forceresize.ric",e);n(document).on("hidden.bs.modal",e)};t.CenteredContent.flexCenterMethod="flex";t.CenteredContent.fullCenterMethod="full";n.extend(t.CenteredContent.prototype,i.prototype,{constructor:t.CenteredContent,center:function(n){function r(){t.centerIntoParent(i);n&&t.removeClass(u).addClass(f)}var t=this.$element,i=this.centerMethod;t&&window.requestAnimationFrame(r)}});t.FlexCenteredImageContent=function(n){t.CenteredContent.call(this,n&&n.isHTMLImageElement()?n:null,t.CenteredContent.flexCenterMethod)};n.extend(t.FlexCenteredImageContent.prototype,t.CenteredContent.prototype,{constructor:t.FlexCenteredImageContent});t.FullCenteredImageContent=function(n){t.CenteredContent.call(this,n&&n.isHTMLImageElement()?n:null,t.CenteredContent.fullCenterMethod)};n.extend(t.FullCenteredImageContent.prototype,t.CenteredContent.prototype,{constructor:t.FullCenteredImageContent})}(window.jQuery,window.RIC=window.RIC||{},RIC.BoundObject||function(){throw new Error("RIC.CenteredContent : RIC.BoundObject is undefined");},RIC.ResizeController||{},"ric-fadeout","ric-fadein"),function(n,t,i,r){"use strict";t.FlexCenteredImageLoader=function(n){i.call(this,n);this.$container=this.$element.parent();this.flexCenteredImageContent=null};n.extend(t.FlexCenteredImageLoader.prototype,i.prototype,{constructor:t.FlexCenteredImageLoader,handleLoadEvent:function(){this.$element&&this.$element.bindObject(r).data(r).center(!0)}})}(window.jQuery,window.RIC=window.RIC||{},RIC.ImageLoader||function(){throw new Error("RIC.FlexCenteredImageLoader : RIC.ImageLoader is undefined.");},"RIC.FlexCenteredImageContent"),function(n,t,i,r){"use strict";t.FullCenteredImageLoader=function(n){i.call(this,n);this.$container=this.$element.parent();this.fullCenteredImageContent=null};n.extend(t.FullCenteredImageLoader.prototype,i.prototype,{constructor:t.FullCenteredImageLoader,handleLoadEvent:function(){this.$element&&this.$element.bindObject(r).data(r).center(!0)}})}(window.jQuery,window.RIC=window.RIC||{},RIC.ImageLoader||function(){throw new Error("RIC.FullCenteredImageLoader : RIC.ImageLoader is undefined.");},"RIC.FullCenteredImageContent");isAdBlocked=!1,function(n,t,i,r){"use strict";function u(n){return(typeof n=="string"||n instanceof String)&&n.length>0}function f(t){return n.Deferred(function(i){function o(n){r&&window.sessionStorage.setItem(f,n);i.resolve(n)}function s(n,t,r){i.reject(t,r)}var f=u(t)?t.toLowerCase():"",e=r?window.sessionStorage.getItem(f):null;e?i.resolve(e):n.ajax(f).done(o).fail(s)}).promise()}t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"cachedAjax",RIC.TestStorage.hasSessionStorage()||!1),function(n,t,i,r,u){"use strict";var f={LGMin:1200,MDMax:1199,MDMin:1024,SMMax:1023,SMMin:768,MSMax:767,MSMin:480,XSMax:479,XSMin:320},e={enteredXS:"enteredXS",exitedXS:"exitedXS",enteredMS:"enteredMS",exitedMS:"exitedMS",enteredSM:"enteredSM",exitedSM:"exitedSM",enteredMD:"enteredMD",exitedMD:"exitedMD",enteredLG:"enteredLG"},o=u.width();r.registerResizeHandler(function(){var n=u.width();o<=f.MSMax&&n>=f.SMMin?u.trigger(e.enteredSM):n<=f.MSMax&&o>=f.SMMin&&u.trigger(e.enteredMS);o=n});n[t]=f;n[i]=e}(window.RIC=window.RIC||{},"MediaBreakpoints","MediaEvents",RIC.ResizeController||{},window.jQuery(window)),function(n,t,i,r,u,f){"use strict";function s(i){function h(t){var i=-1;return n.each(e,function(n,r){return r.hasQueryStringKey()&&r.getQueryStringKey()===t?(i=n,!1):!0}),i}function c(n){return n.hasQueryStringKey()?h(n.getQueryStringKey()):-1}function v(n){return function(n){return n>=0?e[n]:null}(h(n))}function y(n){c(n)===-1&&e.push(n)}function p(n){(function(n){n!==-1&&e.splice(n,1)})(c(n))}function s(n,t){n!==t&&(window.location=window.location.protocol+"//"+window.location.host+(pagevars.matchingListingPath||window.location.pathname)+t)}function l(n){return n.toString(16)}var e=[],o=[],a=i;return{getName:function(){return a},registerFilterBoxHandler:function(n){y(n)},unregisterFilterBoxHandler:function(n){p(n)},registerTransientQueryStringKey:function(n){o.indexOf(n)===-1&&o.push(n)},newQueryStringForCurrentPage:function(){return new r(pagevars.matchingListingSearch||window.location.search)},addQueryStringForKeyAndRefreshPage:function(n,t){this.processQueryStringsForKeyAndRefreshPage(n,r.prototype.setValueForKey,t?null:l)},addMultipleQueryStringsForKeyAndRefreshPage:function(n,t){this.processQueryStringsForKeyAndRefreshPage(n,r.prototype.setMultipleValuesForKey,t?null:l)},processQueryStringsForKeyAndRefreshPage:function(t,i,r){function h(t,i){return typeof i=="function"&&(n.isArray(t)?n.each(t,function(n){t[n]=i(t[n])}):t=i(t)),t}var f=v(t),u,e;f&&(u=this.newQueryStringForCurrentPage(),e=u.getString(),u.filterKeyValuePairsExcludingKeys(o),function(n){n?i.call(u,t,h(n,r),!0):u.setValueForKey(t);s(e,u.getString())}(f.getQueryStringValue()))},removeQueryStringForKeyAndRefreshPage:function(n){var t=this.newQueryStringForCurrentPage(),i;t.filterKeyValuePairsExcludingKeys(o);i=t.getString();t.removeKeyValuePairForKey(n);s(i,t.getString())},removeAllQueryStrings:function(){var n=this.newQueryStringForCurrentPage(),t=new r;return["po","qcn","smm"].forEach(function(i){(i!=="smm"||pagevars.shouldPreserveMakeModel)&&n.hasValueForKey(i)&&t.setValueForKey(i,n.getValueForKey(i))}),t},removeAllQueryStringsAndRefreshPage:function(){var n=this.removeAllQueryStrings();s(window.location.search,n.getString())},rebuildAllQueryStringsAndRefreshPage:function(){var t=this.removeAllQueryStrings(),i=t.getString();n.each(e,function(n,i){if(i.hasQueryStringKey())if(i.hasMultipleQueryStringValues())t.setMultipleValuesForKey(i.getQueryStringKey(),i.getQueryStringValue());else if(i.hasNotNullQueryStringValue()){var r=i.getQueryStringValue();typeof r=="string"?t.setValueForKey(i.getQueryStringKey(),r):typeof r=="number"&&t.setValueForKey(i.getQueryStringKey(),r.toString(i.shouldConvertToHex()?16:10))}});s(i,t.getString())},performTrackingBeforeUnload:function(){var n=0;e.filter(function(n){return n instanceof t[u]&&n.valueHasChanged()}).forEach(function(t){n=n+1;t.performTrackingBeforeUnload()});f("Filter","ApplyBtn",n,"A","1")}}}var e={},o="default";t[i]={getFacetedSearchControllerForName:function(n){return n in e==!1&&(e[n]=s(n)),e[n]},getDefaultFacetedSearchController:function(){return this.getFacetedSearchControllerForName(o)}}}(window.jQuery,window.RIC=window.RIC||{},"FacetedSearchControllerFactory",RIC.QueryString||function(){throw new Error("RIC.FacetedSearchControllerFactory : RIC.QueryString is undefined.");},"FilterBoxHandler",RIC.Tracking.trackEvent||function(){throw new Error("RIC.FacetedSearchControllerFactory : RIC.Tracking.trackEvent is undefined.");}),function(n,t,i,r,u,f){"use strict";function s(){var n=new r({additionalClasses:"ric-categorymap-overlay-xs",modalHTML:"<div class='modal' tabindex='-1'><\/div>"});return n.$modal.bindObject(u),n}var e=null,o={getModal:function(){return this.isModalInitialized()?e:e=s()},isModalInitialized:function(){return e&&e.$modal.length},openModal:function(){this.isModalInitialized()?e.run():e.show()},closeModal:function(){this.getModal().hide()},setModalContent:function(n){this.getModal().setContent(n);e.$modal.scrollTop(0)},deleteModal:function(){this.isModalInitialized()&&(e.$modal.remove(),e=null)},blockModal:function(){this.getModal().block()},unblockModal:function(){this.getModal().unblock()}};t[i]=o;n(window).on(f.enteredSM,function(){o.isModalInitialized()&&(o.closeModal(),o.deleteModal())})}(window.jQuery,window.RIC=window.RIC||{},"CategoryButtonController",RIC.Modal||function(){throw new Error("RIC.CategoryButtonController : RIC.Modal is undefined.");},"RIC.CategoryOverlayHandler",RIC.MediaEvents||{}),function(n,t,i,r,u,f){"use strict";function ut(n){function t(t){return t.parentElement===n}return t}function ft(n){var t,i;if(n instanceof HTMLElement&&(t=[].filter.call(n.querySelectorAll(".dropdown ul"),ut(n)),i=n.querySelector(".ric-slider-handles"),t.length===2&&i instanceof HTMLElement)){var r=t[0].querySelector(".option"),u=t[1].querySelector(".option"),f=r?r.textContent:"",e=u?u.textContent:"",o=[parseInt(f),parseInt(e)];i.noUiSlider.set(o)}}function et(t){var i=n(t).data(r);i&&"setValueToDefaultValue"in i&&i.setValueToDefaultValue()}function ot(n){n&&"clear"in n&&n.clear()}function st(n){n instanceof HTMLInputElement&&(n.value="0")}var a=document.querySelector.bind(document),c=a("#vehicle-qs-form"),tt=a(".panel-quicksearch"),g=a("#ric-toggle-qs"),v=function(n){return n?[].slice.call(n):[]},b,y;if(c){var p=c.querySelectorAll.bind(c),it=v(p("input.qs-clear")),rt=v(p(".ric-qs-slider")),w=v(p("div.dropdown")),l;w.length>0?(b=w[0].querySelector("ul"),l=b?b.dataset.ajaxTarget||"":""):l=""}var nt=[],h=null,s=null,k=null,e=null,o=null,d=null;y={submitForm:function(t,i){function r(n){n&&typeof n.url=="string"&&(window.location=n.url)}function u(n,t,i){console.log(i)}n.ajax({url:t,data:i,type:"post",dataType:"json",success:r,error:u})},resetForm:function(){c instanceof HTMLFormElement&&c.reset();it.forEach(st);this.hideOtherMakeInputField();this.hideOtherModelInputField()},deselectForm:function(){var n,t;this.resetForm();w.forEach(et);rt.forEach(ft);nt.forEach(ot);typeof l=="string"&&l.length>0&&(n=a("#list_"+l),n instanceof HTMLElement&&(t=v(n.querySelectorAll("li")).filter(function(n){return n.dataset.value!=="-1"}).forEach(function(n){n.parentNode.removeChild(n)})))},openForm:function(){n(g).collapse("show")},isFormOpened:function(){return g.classList.contains("in")},registerInputField:function(n){n&&nt.push(n)},registerMakeDropdown:function(n){n&&(h=n)},registerModelDropdown:function(n){n&&(e=n)},registerOtherMakeInputField:function(n){n&&(s=n)},registerOtherModelInputField:function(n){n&&(o=n)},registerOtherMakeCloseHandler:function(n){n&&(k=n)},registerOtherModelCloseHandler:function(n){n&&(d=n)},displayOtherMakeInputField:function(){h&&s&&e&&o&&(h.hide(),s.showAndFocus(),k.show())},displayOtherModelInputField:function(){e&&o&&(e.hide(),o.showAndFocus(),d.show())},hideOtherMakeAndModelInputFields:function(){this.hideOtherMakeInputField();this.hideOtherModelInputField()},hideOtherMakeInputField:function(){h&&s&&(k.hide(),s.empty(),s.hide(),h.show(),h.setValueToDefaultValue())},hideOtherModelInputField:function(){e&&o&&(o.empty(),e.setValueToDefaultValue(),s.$element.is(":hidden")?(d.hide(),o.hide(),e.show()):o.focus())},updateModelDropdownForMake:function(t,i){typeof i=="string"&&i.length>0&&n.ajax({url:i,data:{universeId:u,makeId:t},type:"get",dataType:"json",cache:!0,context:this,success:function(n){e.setHtml(n.html);e.setValueToDefaultValue();f(tt)},error:function(n,t,i){console.log(i)}})}};t[i]=y;n(y.resetForm.bind(y))}(window.jQuery,window.RIC=window.RIC||{},"QuickSearchController","RIC.DropDown",window.pagevars.universeId,RIC.Tracking.autotrack||function(){throw new Error("RIC.QuickSearchController : RIC.Tracking.autotrack is undefined.");}),function(n,t,i,r,u){"use strict";var f=new r.CookieParser("SearchHistory",!0);t.LastSearchController={getLastSearchQueries:function(){return f},registerLastSearchOverlayHandler:function(n){this.lastSearchHandlers=n},getLastSearchOverlay:function(t){function r(n){this.modal=new i({additionalClasses:"ric-lastsearch",title:n.ModalTitle,body:n.ModalBody,context:this,secondaryButton:n.ModalButton,onHidden:e,onShown:o});this.modal.run();t.stopBlock()}function f(n){console.log("RIC.LastSearchController Error :",n);t.stopBlock()}function e(){this.modal.$modal.remove();this.modal=null}function o(){n("[data-bind-to]",this.modal.$modal).bindObjects();n(".ric-lastsearch .modal-body").find("[data-trc-autotrack]").each(function(){u(n(this))})}n.ajax({method:"GET",context:this,url:t.getLastSearchOverlayUrl(),data:{universeId:window.pagevars.universeId},success:r,error:f,cache:!1})},handleRemoveLastSearch:function(t,i){f.removeWithId("ItemId",t);var r=f.count();r==0?i.addClass("hidden"):(n("#q"+t).hide(),i.find("tr.ric-query-block.hidden").first().removeClass("hidden"),n(".ric-lastsearch-count").text(r),r<=3&&n("tr.ric-lastsearch-see-all").hide())}}}(window.jQuery,window.RIC=window.RIC||{},RIC.Modal=RIC.Modal||{},RIC.CookieController||{},RIC.Tracking.autotrack||function(){throw new Error("RIC.LastSearchController : RIC.Tracking.autotrack is undefined.");}),function(n,t,i){"use strict";function u(n){r=n||null}function f(){r&&r.handleShown()}var r=null;t[i]={registerSeoBoxHandler:u,handleSeoBoxVisibility:f}}(window.jQuery,window.RIC=window.RIC||{},"SEOBoxController"),function(n,t,i,r){"use strict";function u(n){i.call(this,n);this.$element&&(r.registerInputField(this),this.clear())}u.prototype=Object.create(i.prototype);u.prototype.constructor=u;u.prototype.clear=function(){this.$element.val("")};n[t]=u}(window.RIC=window.RIC||{},"AccessoryInputField",RIC.BoundObject||function(){throw new Error("RIC.AccessoryInputField : RIC.BoundObject is undefined.");},RIC.QuickSearchController||{}),function(n,t,i,r,u,f,e){"use strict";function o(n){u.call(this,n);this.$element&&this.empty()}function s(n){o.call(this,n);this.$element&&f.registerOtherMakeInputField(this)}function h(n){o.call(this,n);this.$element&&f.registerOtherModelInputField(this)}o.prototype=Object.create(u.prototype);o.prototype.constructor=o;Object.assign(o.prototype,{hide:function(){this.element.classList.add(e)},show:function(){this.element.classList.remove(e)},focus:function(){this.element.focus()},showAndFocus:function(){this.show();this.focus()},empty:function(){this.$element.val("")}});s.prototype=Object.create(o.prototype);s.prototype.constructor=s;h.prototype=Object.create(o.prototype);h.prototype.constructor=h;n[t]=o;n[i]=s;n[r]=h}(window.RIC=window.RIC||{},"OtherInputField","OtherMakeInputField","OtherModelInputField",RIC.BoundObject||function(){throw new Error("RIC.OtherInputField : RIC.BoundObject is undefined.");},RIC.QuickSearchController||{},"hidden"),function(n,t,i,r,u,f){"use strict";function o(t){var i=t.target,r;return i instanceof HTMLLIElement?i:i.classList.contains("glyphicon")&&i.classList.contains("glyphicon-remove")?(u.closeModal(),t.stopPropagation(),null):(r=n(i).closest("li"),r.length===1)?r.get(0):null}function s(n){return n?{href:n.dataset.href,url:n.dataset.url}:null}function h(n,t){n?c(n):t&&l(t)}function c(n){u.closeModal();window.location.href=n}function l(n){u.blockModal();f(n).done(function(n){u.setModalContent(n)}).fail(function(n,t){console.log(n);console.log(t)}).always(function(){u.unblockModal()})}function a(n){n&&h(n.href,n.url)}function e(n){r.call(this,n)}e.prototype=Object.create(r.prototype);e.prototype.constructor=e;e.prototype.handleClick=function(n){a(s(o(n)))};t[i]=e}(window.jQuery,window.RIC=window.RIC||{},"CategoryOverlayHandler",RIC.ClickHandler||function(){throw new Error("RIC.CategoryOverlayHandler : RIC.ClickHandler is undefined.");},RIC.CategoryButtonController||{},RIC.cachedAjax||function(){throw new Error("RIC.CategoryOverlayHandler : RIC.cachedAjax is undefined.");}),function(n,t,i,r){"use strict";function u(n){i.call(this,n)}u.prototype=Object.create(i.prototype);u.prototype.constructor=u;u.prototype.handleClick=function(){r.deselectForm()};n[t]=u}(window.RIC=window.RIC||{},"QuickSearchClearDropDownSliderHandler",RIC.ClickHandler||function(){throw new Error("RIC.QuickSearchClearDropDownSliderHandler : RIC.ClickHandler is undefined.");},RIC.QuickSearchController),function(n,t,i,r,u,f,e,o,s,h){"use strict";function c(n,t,i){r.call(this,n);this.hideCallback=i;t.call(u,this)}function l(n){c.call(this,n,f,o)}function a(n){c.call(this,n,e,s)}c.prototype=Object.create(r.prototype);c.prototype.constructor=c;Object.assign(c.prototype,{handleClick:function(){this.hideCallback.call(u)},hide:function(){this.element&&this.element.classList.add(h)},show:function(){this.element&&this.element.classList.remove(h)}});l.prototype=Object.create(c.prototype);l.prototype.constructor=l;a.prototype=Object.create(c.prototype);a.prototype.constructor=a;n[t]=l;n[i]=a}(window.RIC=window.RIC||{},"OtherMakeFieldClose","OtherModelFieldClose",RIC.ClickHandler||function(){throw new Error("OtherInputFieldCloseHandler : RIC.ClickHandler is undefined.");},RIC.QuickSearchController||{},RIC.QuickSearchController.registerOtherMakeCloseHandler||function(){},RIC.QuickSearchController.registerOtherModelCloseHandler||function(){},RIC.QuickSearchController.hideOtherMakeAndModelInputFields||function(){},RIC.QuickSearchController.hideOtherModelInputField||function(){},"hidden"),function(n,t,i,r,u,f){"use strict";function v(t){return t instanceof n&&t.length===1}function h(n,t){v(n)&&n.val(t)}function o(n){return v(n)?n.find("li.selected").attr("data-value"):""}function l(n){return v(n)?n.find("li.selected").text().trim():""}function a(n){return typeof n=="string"&&n.length&&n!=="-1"?n:"0"}function tt(){h(n("#FromPriceFlag"),o(n("#list_price_bottom")));h(n("#ToPriceFlag"),o(n("#list_price_top")));h(n("#FromMileAgeFlag"),o(n("#list_mileage_bottom")));h(n("#ToMileAgeFlag"),o(n("#list_mileage_top")));h(n("#FromRegistrationFlag"),a(o(n("#list_registration_bottom"))));h(n("#ToRegistrationFlag"),a(o(n("#list_registration_top"))))}function it(n){return s?n==="1"&&p&&s.variation("auto-srp-quicksearch",!1)||n==="2"&&w&&s.variation("auto-srp-quicksearch",!1)||n==="3"&&s.variation("auto-srp-utility",!1)||n==="5"&&s.variation("auto-srp-other",!1):!1}function e(n,t,i){return n+=n.length===0?"?":"&",n+(t+"="+i)}function rt(){return window.location.host.indexOf("auto.fr.")>-1?"fr":"de"}function ut(t,i){var w="https://"+window.pagevars.newPlatformDomain+"/{1}/s",y,p,k;switch(i){case"2":w+="/moto"}var r="",u=l(n("#list_price_bottom")),f=l(n("#list_price_top")),s=l(n("#list_mileage_bottom")),h=l(n("#list_mileage_top")),c=a(o(n("#list_registration_bottom"))),v=a(o(n("#list_registration_top"))),b=t[0].elements.MakeId.value;return b>0&&(r=e(r,"make",b)),y=t[0].elements.ModelId.value,y>0&&(r=e(r,"model",y)),p=t[0].elements.BodyTypeId.value,p>0&&(r=e(r,"body_type",p)),u&&parseInt(u,10)>0&&(r=e(r,"price_min",u)),f&&parseInt(f,10)>0&&(r=e(r,"price_max",f)),s&&parseInt(s,10)>0&&(r=e(r,"mileage_min",s)),h&&parseInt(h,10)>0&&(r=e(r,"mileage_max",h)),c&&c>0&&(r=e(r,"registration_year_min",c)),v&&v>0&&(r=e(r,"registration_year_max",v)),k=w.replace("{1}",rt()),k+r}function c(n){r.call(this,n)}var g="data-form",nt="data-submit-action",p=n("html").hasClass("SRP24"),w=n("html").hasClass("SRP30"),b=p||w,s,y,k,d;if(b){k={key:window.pagevars.launchDarklyUserID};d={bootstrap:"localStorage"};s=LDClient.initialize(window.pagevars.launchDarklyClientID,k,d);y=n.Callbacks("memory");s.on("ready",function(){y.fire()})}c.prototype=Object.create(r.prototype);c.prototype.constructor=c;c.prototype.handleClick=function(){if(this.$element){f("Quick Search","Apply","","A","1");tt();var i=this.$element.attr(nt),t=n(this.$element.attr(g)),r=t[0].elements.UniverseId.value,e=this.$element.attr("type")==="submit"&&this.$element.prop("tagName")==="INPUT";b&&e?y.add(function(){it(r)?window.location=ut(t,r):u.submitForm(i,t.serialize())}):u.submitForm(i,t.serialize())}};t[i]=c}(window.jQuery,window.RIC=window.RIC||{},"SubmitSearchFormHandler",RIC.ClickHandler||function(){throw new Error("RIC.SubmitSearchFormHandler : RIC.ClickHandler is undefined.");},RIC.QuickSearchController||{},RIC.Tracking.trackEvent||function(){throw new Error("RIC.SubmitSearchFormHandler : RIC.Tracking.trackEvent is undefined.");}),function(n,t,i,r){"use strict";function f(t){t.dataset.url||e(n(t).closest("tr.ric-query-block").get(0).dataset.target)}function e(n){typeof n=="string"&&n.length>0&&n!=="undefined"&&(window.location.href=n)}function u(n){r.call(this,n)}u.prototype=Object.create(r.prototype);u.prototype.constructor=u;u.prototype.handleClick=function(n){f(n.target)};t[i]=u}(window.jQuery,window.RIC=window.RIC||{},"LastSearchQueryHandler",RIC.ClickHandler||function(){throw new Error("RIC.LastSearchQueryHandler : RIC.ClickHandler is undefined.");}),function(n,t,i,r,u){"use strict";function f(n){i.call(this,n);this.element&&r.getLastSearchQueries().count()>1&&this.element.classList.remove("hidden")}f.prototype=Object.create(i.prototype);f.prototype.constructor=f;Object.assign(f.prototype,{getLastSearchOverlayUrl:function(){return this.element?this.element.dataset.url||"":""},processCall:function(){u("Latest Viewed","LV_ShowModal","","A",1);r.getLastSearchOverlay(this)}});n[t]=f}(window.RIC=window.RIC||{},"LastSearchOverlayHandler",RIC.ScreenBlocker||function(){throw new Error("RIC.LastSearchOverlayHandler : RIC.ScreenBlocker is undefined.");},RIC.LastSearchController||{},RIC.Tracking.trackEvent||function(){throw new Error("RIC.LastSearchOverlayHandler : RIC.Tracking.trackEvent is undefined.");}),function(n,t,i,r,u,f){"use strict";function e(t){var i,f,e;if(r.call(this,t),this.$element){u.registerSeoBoxHandler(this);i=this.$element.data();this.$seoBox=this.$element.closest(i.container);this.$seoCommand=n(i.command);this.$content=this.$seoBox.find(i.target);this.defaultText=i.defaultText;this.expandedText=i.expandedText;f=this.$seoBox.data();this.dataTrcAutotrack=f.trcAutotrack||"";this.dataTrcPrefix=f.trcPrefix||"";e=this.handleShown.bind(this);this.$seoBox.on("shown.bs.collapse",e);this.$seoCommand.on("click",e);this.insertText();this.handleShown()}}e.prototype=Object.create(r.prototype);e.prototype.constructor=e;Object.assign(e.prototype,{handleClick:function(){this.$content.get(0).classList.toggle("collapsed");this.insertText()},handleShown:function(){var i=this.$content,n=this.$content.get(0);if(n){var r=this.$seoBox,t=n.children[0],u=t instanceof HTMLUListElement,f=this.element;window.requestAnimationFrame(function(){if(r.is(":visible")){var e=u?t.scrollHeight:n.scrollHeight;i.height()<e?f.classList.remove("hidden"):n.classList.remove("collapsed")}})}},insertText:function(){this.$content.hasClass("collapsed")?this.element.textContent=this.defaultText:(this.element.textContent=this.expandedText,this.dataTrcAutotrack!==""&&this.dataTrcPrefix!==""&&f.trackEvent(this.dataTrcAutotrack,this.dataTrcPrefix+"_Expand","","A",1))}});t[i]=e}(window.jQuery,window.RIC=window.RIC||{},"SEOBoxClickHandler",RIC.ClickHandler||function(){throw new Error("RIC.SEOBoxClickHandler : RIC.ClickHandler is undefined.");},RIC.SEOBoxController,RIC.Tracking),function(n,t,i,r,u){"use strict";t.CategoryButtonHandler=function(n){i.call(this,n);this.url=this.$element.attr("data-url")};n.extend(t.CategoryButtonHandler.prototype,i.prototype,{constructor:t.CategoryButtonHandler,processCall:function(){u(this.url).done(n.proxy(this.handleCachedAjaxSuccess,this)).fail(n.proxy(this.handleCachedAjaxFail,this))},handleCachedAjaxSuccess:function(n){this.stopBlock();r.setModalContent(n);r.openModal()},handleCachedAjaxFail:function(){this.stopBlock();r.deleteModal()}})}(window.jQuery,window.RIC=window.RIC||{},RIC.ScreenBlocker||function(){throw new Error("RIC.CategoryButtonHandler : RIC.ScreenBlocker is undefined.");},RIC.CategoryButtonController||{},RIC.cachedAjax||function(){throw new Error("RIC.CategoryButtonHandler : RIC.cachedAjax is undefined.");}),function(n,t,i,r,u){"use strict";function f(n){r.call(this,n)}f.prototype=Object.create(r.prototype);f.prototype.constructor=f;f.prototype.handleEvent=function(){this.$element&&this.$element.hasClass("in")&&this.$element.modal("hide")};f.prototype.getEventName=function(){return u};f.prototype.getEventEmitter=function(){return n(window)};t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"AutomaticHide",RIC.EventListener||function(){throw new Error("RIC.AutomaticHide : RIC.EventListener is undefined.");},RIC.MediaEvents.enteredMS),function(n,t,i,r,u){"use strict";function f(n){r.call(this,n);this.$element&&(u.registerInputField(this),this.clear())}f.prototype=Object.create(r.prototype);f.prototype.constructor=f;Object.assign(f.prototype,{handleEvent:function(){u.openForm()},getEventName:function(){return"focus"},clear:function(){this.element instanceof HTMLInputElement&&(this.element.value="")}});t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"FocusListener",RIC.EventListener||function(){throw new Error("RIC.FocusListener : RIC.EventListener is undefined.");},RIC.QuickSearchController||{}),function(n,t,i,r){"use strict";function u(n){r.call(this,n);this.$element&&(this.$form=this.$element.parents("form"))}u.prototype=Object.create(r.prototype);u.prototype.constructor=u;Object.assign(u.prototype,{handleEvent:function(n){this.$form.length>0&&n.keyCode===13&&this.$form.submit()},getEventName:function(){return"keyup"}});t[i]=u}(window.jQuery,window.RIC=window.RIC||{},"TextFieldListener",RIC.EventListener||function(){throw new Error("RIC.TextFieldListener : RIC.EventListener is undefined.");}),function(n,t,i,r,u,f){"use strict";function e(t){r.call(this,t);this.element&&this.isJQueryAvailable&&(this.$dataHolder=n(this.element.dataset.label))}e.prototype=Object.create(r.prototype);e.prototype.constructor=e;Object.assign(e.prototype,{handleClick:function(n){r.prototype.handleClick.call(this,n);this.updateDataHolder(this.getSelectedValue(n,!0)||"0");this.openQuickSearchForm()},updateDataHolder:function(n){this.$dataHolder.val(n)},openQuickSearchForm:function(){u.openForm()},hide:function(){this.$element.parent().addClass(f)},show:function(){this.$element.parent().removeClass(f)},setValueToDefaultValue:function(){var n=this.getDropDownHandler();n&&(n.setValueToDefaultValue(),this.updateDataHolder(n.getDefaultValue()||0))}});t[i]=e}(window.jQuery,window.RIC=window.RIC||{},"MakeModelSelectOptionHandler",RIC.SelectOptionHandler||function(){throw new Error("RIC.MakeModelSelectOptionHandler : RIC.SelectOptionHandler is undefined.");},RIC.QuickSearchController||{},"hidden"),function(n,t,i,r,u){"use strict";function f(n){r.call(this,n);this.$element&&(this.updateModelDropdownUrl=this.$element.closest("[data-url]").attr("data-url"),u.registerMakeDropdown(this))}f.prototype=Object.create(r.prototype);f.prototype.constructor=f;f.prototype.handleClick=function(n){r.prototype.handleClick.call(this,n);var t=this.getSelectedValue(n,!0),i=parseInt(t)||0;typeof t=="string"&&t.toLowerCase()==="other"?(u.displayOtherModelInputField(),u.displayOtherMakeInputField(),u.updateModelDropdownForMake(i,this.updateModelDropdownUrl)):(u.hideOtherModelInputField(),u.updateModelDropdownForMake(i,this.updateModelDropdownUrl))};t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"MakeSelectOptionHandler",RIC.MakeModelSelectOptionHandler||function(){throw new Error("RIC.MakeSelectOptionHandler : RIC.MakeModelSelectOptionHandler is undefined.");},RIC.QuickSearchController||{}),function(n,t,i,r,u){"use strict";function f(n){r.call(this,n);this.$element&&u.registerModelDropdown(this)}f.prototype=Object.create(r.prototype);f.prototype.constructor=f;f.prototype.handleClick=function(n){var t=this.getSelectedValue(n,!0);typeof t=="string"&&t.toLowerCase()==="other"?u.displayOtherModelInputField():r.prototype.handleClick.call(this,n)};f.prototype.setHtml=function(n){this.$element.html(n)};t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"ModelSelectOptionHandler",RIC.MakeModelSelectOptionHandler||function(){throw new Error("RIC.ModelSelectOptionHandler : RIC.MakeModelSelectOptionHandler is undefined.");},RIC.QuickSearchController||{}),function(n,t,i,r,u){"use strict";function f(t){r.call(this,t);this.$element&&(this.$dataHolder=n(this.element.dataset.label))}f.prototype=Object.create(r.prototype);f.prototype.constructor=f;f.prototype.handleClick=function(n){r.prototype.handleClick.call(this,n);this.$dataHolder.val(this.getSelectedValue(n));u.openForm()};t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"QuickSearchSelectOptionHandler",RIC.SelectOptionHandler||function(){throw new Error("RIC.QuickSearchSelectOptionHandler : RIC.SelectOptionHandler is undefined.");},RIC.QuickSearchController||{}),function(n,t,i,r){"use strict";function u(n){i.call(this,n);this.element&&(this.queryStringKey=this.element.dataset.queryStringKey||"",this.facetedSearchController=this.getFacetedSearchController(this.element.dataset.namespace||""),this.facetedSearchController.registerFilterBoxHandler(this))}u.prototype=Object.create(i.prototype);u.prototype.constructor=u;Object.assign(u.prototype,{hasQueryStringKey:function(){return this.queryStringKey.length>0},getQueryStringKey:function(){return this.queryStringKey||""},hasNotNullQueryStringValue:function(){return!1},hasMultipleQueryStringValues:function(){return!1},shouldConvertToHex:function(){return!1},getQueryStringValue:function(){return 0},getFacetedSearchController:function(n){return typeof n=="string"&&n.length>0?r.getFacetedSearchControllerForName(n):r.getDefaultFacetedSearchController()},valueHasChanged:function(){return!1},performTrackingBeforeUnload:function(){}});n[t]=u}(window.RIC=window.RIC||{},"FilterBoxHandler",RIC.BoundObject||function(){throw new Error("RIC.FilterBoxHandler : RIC.BoundObject is undefined.");},RIC.FacetedSearchControllerFactory||{}),function(n,t,i,r){"use strict";function u(t){if(r.call(this,t),this.element&&this.isJQueryAvailable&&(this.$collapsible=n(this.element.dataset.target||""),this.$collapsible.length!==1))throw new Error("RIC.CollapsibleFilterBoxHandler : missing collapsible.");}u.prototype=Object.create(r.prototype);u.prototype.constructor=u;Object.assign(u.prototype,{isCollapsedOut:function(){return this.$collapsible.hasClass("collapse")&&!this.$collapsible.hasClass("in")},isCollapsedIn:function(){return!this.isCollapsedOut()},isCollapsing:function(){return this.$collapsible.hasClass("collapsing")},collapseIn:function(){this.isCollapsedOut()&&this.$collapsible.collapse("show")},collapseOut:function(){this.isCollapsedIn()&&this.$collapsible.collapse("hide")},collapseToggle:function(){this.$collapsible.collapse("toggle")}});t[i]=u}(window.jQuery,window.RIC=window.RIC||{},"CollapsibleFilterBoxHandler",RIC.FilterBoxHandler||function(){throw new Error("RIC.CollapsibleFilterBoxHandler : RIC.FilterBoxHandler is undefined.");}),function(n,t,i,r){"use strict";function u(n){if(i.call(this,n),this.$element&&this.isJQueryAvailable){if(this.$dropdown=this.$element.children(".dropdown.ric-select").first(),this.$dropdown.length===0)throw new Error(t+" : missing dropdown.");if(this.$dropdown.bindObject(r),this.dropdownInstance=this.$dropdown.data(r),!this.dropdownInstance)throw new Error(t+" : missing "+r+" instance.");}}u.prototype=Object.create(i.prototype);u.prototype.constructor=u;Object.assign(u.prototype,{hasNotNullQueryStringValue:function(){return this.dropdownInstance.getValue()!==0},getQueryStringValue:function(){return this.dropdownInstance.getValue().toString(10)}});n[t]=u}(window.RIC=window.RIC||{},"DropDownFilterBoxHandler",RIC.FilterBoxHandler||function(){throw new Error("RIC.DropDownFilterBoxHandler : RIC.FilterBoxHandler is undefined.");},"RIC.DropDown"),function(n,t,i,r){"use strict";function u(t){if(r.call(this,t),this.isJQueryAvailable&&(this.$checkBoxes=n("input[type=checkbox]",this.$collapsible),this.$checkBoxes.length===0))throw new Error("RIC.BasicFilterBoxHandler : missing checkboxes.");}u.prototype=Object.create(r.prototype);u.prototype.constructor=u;Object.assign(u.prototype,{hasNotNullQueryStringValue:function(){var n=this.$checkBoxes.filter(function(){return this.checked===!0});return n.length>0},shouldConvertToHex:function(){return!0},getQueryStringValue:function(){var n=0;return this.$checkBoxes.each(function(){if(this.checked===!0){var t=parseInt(this.value,10);isNaN(t)||(n=n|t)}}),n}});t[i]=u}(window.jQuery,window.RIC=window.RIC||{},"BasicFilterBoxHandler",RIC.CollapsibleFilterBoxHandler||function(){throw new Error("RIC.BasicFilterBoxHandler : RIC.CollapsibleFilterBoxHandler is undefined.");}),function(n,t,i,r,u){"use strict";function f(n,t){r.call(this,n,!1);this.$element&&(this.filterBoxHandler=t)}function e(n){i.call(this,n);this.$element&&this.isJQueryAvailable&&(this.$collapsible.data("RIC.UncheckAllHandler",new f(this.$collapsible,this)),this.startValue=this.getQueryStringValue())}f.prototype=Object.create(r.prototype);f.prototype.constructor=f;f.prototype.handleClick=function(n){n.target instanceof HTMLInputElement&&n.target.type==="checkbox"&&this.filterBoxHandler.uncheckOtherCheckboxes(n.target)};e.prototype=Object.create(i.prototype);e.prototype.constructor=e;Object.assign(e.prototype,{hasNotNullQueryStringValue:function(){function n(n,t){return n===0?t!==0:!0}return n(this.startValue,this.getQueryStringValue())},uncheckOtherCheckboxes:function(n){this.$checkBoxes.each(function(){this!==n&&(this.checked=!1)})},shouldConvertToHex:function(){return!1},valueHasChanged:function(){return this.startValue!==this.getQueryStringValue()},performTrackingBeforeUnload:function(){u("Filter","ArticleType_"+this.getQueryStringValue(),"","A",1)}});n[t]=e}(window.RIC=window.RIC||{},"BasicExclusiveFilterBoxHandler",RIC.BasicFilterBoxHandler||function(){throw new Error("RIC.BasicExclusiveFilterBoxHandler : RIC.BasicFilterBoxHandler is undefined.");},RIC.ClickHandler||function(){throw new Error("RIC.BasicExclusiveFilterBoxHandler : RIC.ClickHandler is undefined.");},RIC.Tracking.trackEvent||function(){throw new Error("RIC.BasicExclusiveFilterBoxHandler : RIC.Tracking.trackEvent is undefined.");}),function(n,t){"use strict";function s(n){return typeof n=="string"&&n!=="-1"}function h(n,t){for(var i=[];n<=t;)i.push(Math.pow(2,n++));return i}function c(n,t,c){var v=n.getAllValues(),p=t.getAllValues(),y=v.length,l=null,a=null;return{bottomDefaultValue:i,bottomDummyValue:r,bottomMinExponent:u,bottomMaxExponent:y-1,topDefaultValue:f,topDummyValue:e,topMinExponent:o,topMaxExponent:y-2,bottomValues:function(n,t,f){return l===null&&(l=[n||i].concat(c?h(t||u,f||this.bottomMaxExponent):v.filter(s)),l.push(r)),l},topValues:function(n,t,i){return a===null&&(a=[e].concat(c?h(t||o,i||this.topMaxExponent):p.filter(s)),a.push(n||f)),a},valuesToSliderValues:function(n,t){var i={};return n.forEach(function(n,r){i[n.toString()]=r*t}),i},bottomValuesToSliderValues:function(n){return this.valuesToSliderValues(this.bottomValues(),n)},topValuesToSliderValues:function(n){return this.valuesToSliderValues(this.topValues(),n)},sliderValuesToValues:function(n,t){var i={};return n.forEach(function(n,r){i[(r*t).toString()]=n}),i},sliderValuesToBottomValues:function(n){return this.sliderValuesToValues(this.bottomValues(),n)},sliderValuesToTopValues:function(n){return this.sliderValuesToValues(this.topValues(),n)}}}var i=-1,r=-2,u=1,f=-1,e=-2,o=0;n[t]=c}(window.RIC=window.RIC||{},"generateTables"),function(n,t,i,r,u,f,e){"use strict";function c(n){return n.data(u)}function s(n){return n===-1?parseInt("7FFFFFFF",16):n+(n-1)&parseInt("7FFFFFFF",16)}function o(t){var o,y,i,f,s,p;if(r.call(this,t),this.element&&this.$element&&this.isJQueryAvailable){var v=this.$collapsible.get(0),w=v.querySelector(".dropdown["+h+"="+l+"]"),b=v.querySelector(".dropdown["+h+"="+a+"]");if(this.$bottomSelect=n(w),this.$topSelect=n(b),this.$bottomSelect.length!==1||this.$topSelect.length!==1)throw new Error("RIC.PriceFilterBoxHandler : missing bottom and/or top select element.");this.$selects=n([w,b]);this.$selects.on("change",function(){this.normalizeSelectElements();this.normalizeSlider()}.bind(this));if(this.$bottomSelect.bindObject(u),this.$topSelect.bindObject(u),this.bottomSelectInstance=c(this.$bottomSelect),this.topSelectInstance=c(this.$topSelect),o=this.element.dataset.slider,y=typeof o=="string"&&o.length>0?v.querySelector(o):null,this.hasSlider=y!==null,this.useHexadecimal=this.element.dataset.useHexadecimal==="true",this.hasSlider){if(this.sliderContainer=y,i=e(this.bottomSelectInstance,this.topSelectInstance,this.useHexadecimal),i.bottomMaxExponent-i.bottomMinExponent!=i.topMaxExponent-i.topMinExponent)throw new Error("RIC.PriceFilterBoxHandler : the counts of bottom and top values are different");f=10;this.bottomToSliderValues=i.bottomValuesToSliderValues(f);this.sliderToBottomValues=i.sliderValuesToBottomValues(f);this.topToSliderValues=i.topValuesToSliderValues(f);this.sliderToTopValues=i.sliderValuesToTopValues(f);var k=f*(i.bottomMaxExponent-i.bottomMinExponent+2),d=this.bottomToSliderValues[this.bottomSelectInstance.getValue().toString()],g=this.topToSliderValues[this.topSelectInstance.getValue().toString()];if(this.createSlider([d,g],f,f,{min:[0],max:[k]}),s=this.sliderContainer.noUiSlider,s){p=function(){this.handleSliderEvent();this.normalizeSelectElements()}.bind(this);s.on("slide",p);s.on("change",p)}}this.normalizeSelectElements();this.normalizeSlider()}}var h="data-range",l="bottom",a="top";o.prototype=Object.create(r.prototype);o.prototype.constructor=o;Object.assign(o.prototype,{createSlider:function(t,i,r,u){window.noUiSlider.create(this.sliderContainer,{start:t,connect:!0,margin:i,step:r,range:u});n(this.sliderContainer).trigger(f)},handleSliderEvent:function(){var n=this.sliderContainer.noUiSlider.get(),t=parseInt(n[0]),i=parseInt(n[1]);this.bottomSelectInstance&&this.bottomSelectInstance.setValue(this.sliderToBottomValues[t.toString()],!0);this.topSelectInstance&&this.topSelectInstance.setValue(this.sliderToTopValues[i.toString()],!0)},normalizeSlider:function(){if(this.bottomSelectInstance&&this.topSelectInstance&&this.hasSlider){var n=this.bottomSelectInstance.getValue(),t=this.topSelectInstance.getValue();this.sliderContainer.noUiSlider.set([this.bottomToSliderValues[n.toString()],this.topToSliderValues[t.toString()]])}},normalizeSelectElements:function(){if(this.bottomSelectInstance&&this.topSelectInstance){var n=this.bottomSelectInstance.getValue(),i=this.bottomSelectInstance.getDefaultValue(),t=this.topSelectInstance.getValue(),r=this.topSelectInstance.getDefaultValue();n!==i?this.useHexadecimal?this.topSelectInstance.disableAllOptionsWithValuesUpTo(n):this.topSelectInstance.disableAllOptionsWithValuesUpOrEqualsTo(n):this.topSelectInstance.enableAllOptions();t!==r?this.useHexadecimal?this.bottomSelectInstance.disableAllOptionsWithValuesAbove(t):this.bottomSelectInstance.disableAllOptionsWithValuesAboveOrEqualsTo(t):this.bottomSelectInstance.enableAllOptions()}},hasNotNullQueryStringValue:function(){return this.bottomSelectInstance&&this.topSelectInstance?this.bottomSelectInstance.getValue()!==this.bottomSelectInstance.getDefaultValue()||this.topSelectInstance.getValue()!==this.topSelectInstance.getDefaultValue():r.prototype.hasNotNullQueryStringValue.call(this)},shouldConvertToHex:function(){return this.useHexadecimal},getQueryStringValue:function(){if(this.bottomSelectInstance&&this.topSelectInstance){var i=this.bottomSelectInstance.getDefaultValue(),n=this.bottomSelectInstance.getValue(),u=this.topSelectInstance.getDefaultValue(),t=this.topSelectInstance.getValue();return n===i&&t===u?r.prototype.getQueryStringValue.call(this):this.shouldConvertToHex()?n===i?parseInt("7FFFFFFF",16)&s(t):t===u?parseInt("7FFFFFFF",16)&~s(n)|n:parseInt("7FFFFFFF",16)&s(t)&~s(n)|n:(n===i?0:n)+"|"+(t===u?0:t)}return r.prototype.getQueryStringValue.call(this)}});t[i]=o}(window.jQuery,window.RIC=window.RIC||{},"SliderDropDownFilterBoxHandler",RIC.CollapsibleFilterBoxHandler||function(){throw new Error("RIC.SliderDropDownFilterBoxHandler : RIC.CollapsibleFilterBoxHandler is undefined.");},"RIC.DropDown","createslider.ric",RIC.generateTables||function(){throw new Error("RIC.SliderDropDownFilterBoxHandler : RIC.generateTables is undefined.");}),function(n,t,i,r,u){"use strict";function f(n){r.call(this,n);this.element&&u.setQueryStringKey(this.element.dataset.queryStringKey)}f.prototype=Object.create(r.prototype);f.prototype.constructor=f;f.prototype.getQueryStringValue=function(){return u.getQueryStringValue()};t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"SimpleSearchFilterBoxHandler",RIC.FilterBoxHandler||function(){throw new Error("RIC.SimpleSearchFilterBoxHandler : RIC.FilterBoxHandler is undefined.");},RIC.SimpleSearchController||{}),function(n,t,i,r,u,f,e,o){"use strict";function h(n,i,r,u,f){return function(){t(n,i,r,u,f)}}function w(n){return function(){s=n.get()}}function a(t){return n(t.target).closest("["+c+"]").attr(c)}function b(n){return function(){if(Array.isArray(s)){var i=n.get();s[0]!==i[0]?t(l,a(n)+y,"","A",1):s[1]!==i[1]&&t(l,a(n)+p,"","A",1);s=null}}}var v=".ric-slider-handles",c="data-trc-id",l="Quick Search",y="_Min",p="_Max",s=null;n(function(){n(".trackelement").on(i,function(){var i=n(this).attr("data-trc-title");t("TrackingAction",i,"","A",1)});n(v).on(o,function(){var n=this.noUiSlider;n.on(f,w(n));n.on(e,b(n))});n(".ric-trc-lastsearch-collapse").on(r,h("Latest Viewed","LV_Unfold","","A",1)).on(u,h("Latest Viewed","LV_Fold","","A",1));n(".ric-seobox .panel-collapse").on(r,h("Best Brands","BB_Unfold","","A",1)).on(u,h("Best Brands","BB_Fold","","A",1))})}(window.jQuery,RIC.Tracking.trackEvent||function(){throw new Error("ric.tracking.homesearch : RIC.Tracking.trackEvent is undefined");},RIC.Tracking.trackClick||function(){throw new Error("ric.tracking.homesearch : RIC.Tracking.trackClick is undefined");},"show.bs.collapse","hide.bs.collapse","start","end","createslider.ric"),function(n,t){"use strict";n[t]={"205":{"55":["16","17","15"],"50":["17","16","15"],"60":["16","15","13","14"],"65":["15","16"],"45":["17","16","18","15"],"40":["17","18","16"],"70":["15","14","13","16"],"--":["14","15"],"75":["15","14"],"35":["18"],"80":["16"]},"225":{"45":["17","18","16","19","15","13"],"50":["17","16","15","18","14"],"40":["18","19","16","14"],"55":["16","17","18","19"],"35":["19","18","20","17"],"60":["16","15","17","18"],"30":["20"],"65":["17","16"],"70":["15","16"],"75":["15"]},"195":{"65":["15","14","16"],"55":["16","15","13","14"],"60":["15","14","16","13"],"50":["15","16"],"45":["16","15","17","14"],"70":["14","15"],"40":["17","16","14"],"75":["14"],"80":["15"],"620":["420A"],"--":["15"]},"215":{"55":["16","17","18","15"],"45":["17","18","16","15"],"50":["17","18","15","16"],"60":["16","17","15","14"],"40":["17","16","18"],"65":["15","16","17","14"],"35":["18","19","17","16"],"70":["15","16","14"],"30":["20"],"75":["15"]},"185":{"65":["15","14","13"],"60":["15","14","13","16"],"55":["15","14","16","13"],"70":["14","13","15"],"80":["14","15","13"],"50":["16","14"],"--":["15","16","14","400","13"],"35":["17"],"75":["14"],"45":["15"]},"245":{"40":["18","17","19","20","13","21"],"45":["17","18","19","16","20"],"35":["19","20","18","21","17"],"50":["18","16","17"],"30":["20","19","22","21"],"55":["17","16"],"70":["16"],"75":["16"],"65":["17"]},"235":{"45":["17","18","19","20"],"40":["18","17","19","20"],"35":["19","20","18"],"55":["17","18","19","20"],"50":["18","17","19","16"],"60":["16","18","17","15"],"30":["20","22","18","19"],"70":["15","16"],"75":["15"],"65":["17","16","18"]},"175":{"65":["14","15","13"],"70":["14","13","15"],"60":["15","14","13","16"],"55":["15","20","16","17"],"80":["14","16","15","13"],"50":["15","13","14","16"],"--":["14","13"]},"255":{"35":["19","18","20","21"],"40":["19","17","18","20","21"],"45":["18","17","19","20","15"],"30":["19","20","22","21","18"],"55":["18","17","16","19"],"50":["19","16","20","18","21"],"60":["17","18","16"],"65":["15"],"70":["15"]},"165":{"70":["14","13","12","10"],"60":["14","15","12"],"65":["14","13","15"],"80":["13","15","14"],"45":["16","15","17"],"--":["15","13","400","16","14"],"50":["15","16"],"55":["13","15","14"],"35":["17","18"],"40":["17","16"],"75":["13"]},"265":{"35":["18","19","20","21","22"],"30":["19","22","20","21"],"40":["18","19","17","21","20","15","22"],"50":["19","20"],"70":["17","15"],"45":["20","18"],"25":["20"],"65":["17"],"60":["18"]},"155":{"70":["13","12","14"],"65":["14","13"],"80":["13","12","15","14"],"60":["15"],"55":["14"],"--":["15","400","13","12","14"]},"275":{"40":["19","20","18","17"],"35":["20","18","19","21"],"30":["19","20","21"],"45":["18","20","19"],"70":["16"],"25":["20","24","22"],"55":["20","17"],"50":["19"]},"145":{"70":["13","12"],"80":["13","12","14","10","15"],"65":["15","14"],"60":["13"],"--":["15","400","13"]},"295":{"30":["19","20","18","21","22"],"35":["20","18","21","19"],"25":["21","20","22"],"40":["20","15"]},"285":{"35":["19","18","20","21"],"30":["19","20","18","21"],"40":["19","17","18","20"],"25":["20","22"],"45":["19","21","18"],"50":["20"]},"135":{"80":["13","12","15"],"--":["15","400","14"],"70":["15","13"]},"305":{"30":["19","20","21"],"25":["20","21","19","22"],"35":["20"],"40":["22"],"45":["22"]},"315":{"35":["20","17","21"],"30":["18","20","19"],"25":["19","20","23"]},"6.40":{"--":["13"]},"335":{"30":["20","18"],"35":["17","15"],"25":["22"]},"6.00":{"--":["16"]},"190":{"65":["390"],"55":["340"]},"325":{"30":["19","20","21"],"25":["20","21"]},"7.25":{"--":["13"]},"125":{"--":["15","400"],"80":["15","13","12"]},"240":{"55":["415","390"]},"6.40/7.00":{"--":["13"]},"13":{"--":["45"]},T135:{"90":["16","17"],"80":["17","18","16"],"70":["16","15"]},"5.50":{"--":["18","16"]},"4.75/5.00":{"--":["18","19"]},"200":{"60":["390"]},"4.00/4.50":{"--":["19"]},"12":{"--":["45"]},"4.75/5.25":{"--":["18"]},"220":{"55":["390","365"],"65":["390"]},"270":{"45":["15"]},"210":{"55":["390"]},"345":{"35":["19","15"],"30":["19","20"],"25":["20","21"]},T125:{"80":["16","17"],"85":["16"],"70":["19","17","18","15"],"60":["18"],"90":["15"]},T115:{"70":["15","14"]},"6.50/7.00":{"--":["17","20"]},T155:{"90":["16","18"],"70":["19","17"],"85":["18"],"80":["19"],"60":["18"]},T145:{"80":["19","18"],"70":["17"],"90":["16"],"60":["20"]},"355":{"30":["19"]},"5.00":{"5.25":["16"],"--":["16"]},"5.60":{"--":["15"]},"14":{"--":["45"]},"6.00/6.50":{"--":["18"]},"150/160":{"--":["40"]},"17":{"--":["400"]},"5.25/6.00":{"--":["19"]},"170":{"65":["15"]},"130":{"140":["40"]},"5.00/5.25":{"--":["16"]},"150":{"160":["40"]},"5.50/6.00":{"--":["21"]},"5.20":{"--":["12"]},"550":{"600":["21"]},T165:{"60":["20"]},"17R400":{"--":["--"]},"31x10.50":{"--":["15"]},T175:{"80":["19"]},"30x9.50":{"--":["15"]},"475":{"500":["19"]},"400":{"450":["19"]},"7.00":{"--":["21"]},"230":{"55":["390"]},"6.50":{"7.00":["17"]},"15/16":{"--":["45"]},T185:{"65":["16"]}}}(window.RIC=window.RIC||{},"TireDimensionsModel"),function(n,t){"use strict";n[t]=["Achilles","Advance","Aeolus","Agrostar","Alliance","Altura","Anlas","Armour","Atturo","Aurora","Avon","Avon Vintage","BF Goodrich","BKT","Bandag","Barum","Belarus","Belshina","Boto","Bridgestone","Camac","Carlisle","Ceat","Chaoyang","Cheng Shin","Continental","Contire","Cover","Cultor","Dayton","Debica","Deli","Dneproshina","Double Coin","Double Star","Dunlop","Duration","Duro","Effiplus","Euro-Grip","Excelsior","Falken","Farm King","Federal","Firenza","Firestone","Fortuna","Fulda","Fullrun","GT Radial","Galaxy","General","GoldenTyre","Goodride","Goodyear","Hankook","Heidenau","Heissrunderneuerung BRW","High Performer","Import","Interstate","Ironman","Jinyu","Kaltrunderneuerung","Kama","Kelly","Kenda","King Meiler","Kings","Kings Tire","Kleber","Kormoran","Kumho","Leao","Linglong","Luhe","Maloya","Marangoni","Marix","Marshal","Master","Mastercraft","Matador","Maxxis","Mentor","Michelin","Michelin Collection","Michelin Collection Tubes","Michelin Remix","Mickey Thompson","Mitas","Nankang","Nexen","Next Tread","Nokian","Novex","Ornet","Petlas","Pirelli","Pneu Laurent","Pneumant","Protector","Recamax","Regal","Riken","Roadstone","Rockstone","Rosava","Rotalla","Rotex","Rovelo","Sailun","Sava","Security","Seha","Semperit","Sibur","Solideal","Sonar","Sonny","Special Tubes","Speedways","Star","Star Performer","Starco","Starmaxx","Stomil","Sunny","Super King","Taifa","Taurus","Teamstar","Techking","Tianli","Tigar","Titan","Toyo","Trayal","Trelleborg","Triangle","Tyrex","Uniroyal","VeeRubber","Veloce","Viking","Voltyre","Vredestein","Wanli","Waymaster","Westlake","Winter Tact","Xin","Yokohama"]}(window.RIC=window.RIC||{},"TireBrandsModel"),function(n,t,i,r,u){"use strict";function f(n){return l[n]||{}}function a(n){return typeof n=="number"&&!isNaN(n)&&n>=125&&n<=640}function e(n){return Object.keys(f(n)).filter(function(n){return a(Number(n))})}function o(n,t){return e(n).indexOf(t)!==-1}function s(n,t){return o(n,t)?Object.keys(f(n)[t]).filter(function(n){return!isNaN(Number(n))}):[]}function h(n,t,i){return s(n,t).indexOf(i)!==-1}function c(n,t,i){return h(n,t,i)?f(n)[t][i]:[]}function v(n,t,i,r){return c(n,t,i).indexOf(r)!==-1}function y(){return u||[]}var l={winter:r,summer:i};n[t]={winterTires:"winter",summerTires:"summer",getTireWidths:e,tireWidthExists:o,getTireDiameters:s,tireDiameterExists:h,getTireSeries:c,tireSerieExists:v,getTireBrands:y}}(window.RIC=window.RIC||{},"TireDataSource",RIC.TireDimensionsModel,RIC.TireDimensionsModel||function(){throw new Error("RIC.TireDataSource : RIC.TireDimensionsModel is undefined.");},RIC.TireBrandsModel||function(){throw new Error("RIC.TireDataSource : RIC.TireBrandsModel is undefined.");}),function(n,t,i){"use strict";function r(n){return'<a href="#" role="menuitem">'+n+"<\/a>"}function u(n){return'<li class="option" role="presentation" data-value="'+n+'">'+r(n)+"<\/li>"}function f(t){return Object.prototype.toString.call(t)==="[object Array]"&&t.length?n(t.reduce(function(n,t){return typeof t=="string"?n+u(t):n},"")):n()}t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"buildMenuItems"),function(n,t,i,r,u){"use strict";function e(n){return new r(y).getValueForKey(n)}function p(n){var s=o.length,i="",r,u,f,t;for(n&&(u="pft",f=e(u),f.length>0&&(i+="&"+u+"="+f)),t=0;t<s;t++)r=e(o[t]),r.length>0&&(i+="&"+o[t]+"="+r);return i}function s(n){return"("+n.join("|")+")"}function f(n){var i=new RegExp(n,"i"),t=h.match(i);return t?t[0]:""}function w(n){var r="",t,i;if(n.length>0)for(i=0;i<n.length;i++)t=f(n[i]),t!=null&&t.length>r.length&&(r=t);return r}function c(){return w(u.getTireBrands())}function l(n){return f(s(u.getTireWidths(n)))}function a(n,t){var i=t+"/",r=f(i+s(u.getTireDiameters(n,t)));return r.substring(i.length,r.length)}function v(n,t,i){var r=t+"/"+i+" ",e=f(r+s(u.getTireSeries(n,t,i)));return e.substring(r.length,e.length)}function b(n){var t=l(n),i=a(n,t),r=v(n,t,i);return t+"/"+i+" "+r}function k(n){return h.replace(b(n),"").replace(c(),"").trim()}var y=window.location.search,h=decodeURIComponent(e("kw")),o=["po","zr","fc4","at"];t[i]={getRequestedWidth:l,getRequestedDiameter:a,getRequestedSerie:v,getRequestedBrand:c,getRequestedKeywords:k,getPreservedQueryString:p}}(window.jQuery,window.RIC=window.RIC||{},"getDataFromQueryString",RIC.QueryString||function(){throw new Error("RIC.getDataFromQueryString : RIC.QueryString is undefined.");},RIC.TireDataSource||function(){throw new Error("RIC.getDataFromQueryString : RIC.TireDataSource is undefined.");}),function(n,t,i,r,u){"use strict";function s(n){return n>=e&&n<o?r.summerTires:r.winterTires}function h(){return this.seasonDropdown&&this.widthDropdown&&this.diameterDropdown&&this.serieDropdown}function f(n){typeof n=="string"&&n.length&&(this.namespace=n)}var e=2,o=8;f.defaultNamespace="default";n.extend(f.prototype,{constructor:f,namespace:f.defaultNamespace,seasonDropdown:null,widthDropdown:null,diameterDropdown:null,serieDropdown:null,brandDropdown:null,otherKeywordsTextbox:null,registerSeasonDropdown:function(n){this.seasonDropdown=n||null;this.initialize()},registerWidthDropdown:function(n){this.widthDropdown=n||null;this.initialize()},registerDiameterDropdown:function(n){this.diameterDropdown=n||null;this.initialize()},registerSerieDropdown:function(n){this.serieDropdown=n||null;this.initialize()},selectedSeason:"",selectedWidth:"",selectedDiameter:"",selectedSerie:"",selectedBrand:"",selectedKeywords:"",selectedBottomPrice:-1,selectedTopPrice:-1,initialize:function(){if(h.call(this))if(this.seasonDropdown.autofill())this.seasonDropdown.setSeason(s((new Date).getMonth()));else{var n=this.seasonDropdown.getValue();this.handleSeasonHasChanged(n,u.getRequestedWidth(n))}},handleSeasonHasChanged:function(n,t){(n===r.summerTires||n===r.winterTires)&&(this.selectedSeason=n,this.widthDropdown&&this.widthDropdown.setWidths(r.getTireWidths(n),t))},handleWidthHasChanged:function(n){r.tireWidthExists(this.selectedSeason,n)&&(this.selectedWidth=n,this.diameterDropdown&&this.diameterDropdown.setDiameters(r.getTireDiameters(this.selectedSeason,n),u.getRequestedDiameter(this.selectedSeason,this.selectedWidth)))},handleDiameterHasChanged:function(n){r.tireDiameterExists(this.selectedSeason,this.selectedWidth,n)&&(this.selectedDiameter=n,this.serieDropdown&&this.serieDropdown.setSeries(r.getTireSeries(this.selectedSeason,this.selectedWidth,n),u.getRequestedSerie(this.selectedSeason,this.selectedWidth,this.selectedDiameter)))},handleSerieHasChanged:function(n){r.tireSerieExists(this.selectedSeason,this.selectedWidth,this.selectedDiameter,n)&&(this.selectedSerie=n)},handleBrandHasChanged:function(n){this.selectedBrand=n==="-1"?"":n},handleOtherKeywordsHasChanged:function(n){this.selectedKeywords=n},getSeason:function(){return this.selectedSeason},getSeasonQueryStringValue:function(){switch(this.selectedSeason){case r.summerTires:return"70092";case r.winterTires:return"70093";default:return""}},getBrand:function(){return this.selectedBrand},getPriceQueryStringValue:function(){if(this.selectedBottomPrice>0||this.selectedTopPrice>0){var n=this.selectedBottomPrice>=0?this.selectedBottomPrice:0,t=this.selectedTopPrice>=0?this.selectedTopPrice:0;return n.toString()+"|"+t.toString()}return""},getQueryStringValue:function(){var n=this.selectedWidth+"/"+this.selectedDiameter+" "+this.selectedSerie;return this.selectedBrand.length>0&&(n+=" "+this.selectedBrand),this.selectedKeywords.length>0&&(n+=" "+this.selectedKeywords),n},getEncodedQueryStringValue:function(){return encodeURIComponent(this.getQueryStringValue())}});t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"TireSearchController",RIC.TireDataSource||function(){throw new Error("RIC.TireSearchController : RIC.TireDataSource is undefined.");},RIC.getDataFromQueryString||function(){throw new Error("RIC.TireSearchController : RIC.DataFromQueryString is undefined.");}),function(n,t,i){"use strict";function f(n){return typeof n=="string"&&n.length?n:""}function u(n){return n.length?(n in r==!1&&(r[n]=new i(n)),r[n]):u(i.defaultNamespace)}function e(n){return u(f(n))}var r={};$(document).ready(function(){var n="#accessory-search-tires";window.location.hash===n&&($(".nav-quicksearch li:eq(1) a").tab("show"),$("#ric-desktop-metanav a.lang").each(function(){this.href+=n}))});n[t]=e}(window.RIC=window.RIC||{},"getTireSearchController",RIC.TireSearchController||function(){throw new Error("RIC.getTireSearchController : RIC.TireSearchController is undefined.");}),function(n,t,i,r,u,f){"use strict";function e(n){r.call(this,n);this.$element&&(this.namespace=this.$element.attr(o)||"",this.controller=u(this.namespace),this.action=window.pagevars&&window.pagevars.matchingListingPath?window.pagevars.matchingListingPath:this.$element.attr("action"))}var o="data-namespace";n.extend(e.prototype,r.prototype,{constructor:e,handleEvent:function(n){n.preventDefault();var t=this.action+"?qcn="+this.controller.getSeasonQueryStringValue()+"&kw="+this.controller.getEncodedQueryStringValue(),i=this.controller.getPriceQueryStringValue();t+=i.length>0?"&pft="+i+f.getPreservedQueryString(!1):f.getPreservedQueryString(!0);window.location.href=t},getEventName:function(){return"submit"}});t[i]=e}(window.jQuery,window.RIC=window.RIC||{},"TireSearchSubmitHandler",RIC.EventListener||function(){throw new Error("RIC.TireSearchSubmitHandler : RIC.EventListener is undefined.");},RIC.getTireSearchController||function(){throw new Error("RIC.TireSearchSubmitHandler : RIC.getTireSearchController is undefined.");},RIC.getDataFromQueryString||function(){throw new Error("RIC.TireSearchSubmitHandler : RIC.getDataFromQueryString is undefined.");}),function(n,t,i,r,u,f){"use strict";function e(n){r.call(this,n);this.$element&&(this.namespace=this.$element.attr(o)||"",this.controller=u(this.namespace))}var o="data-namespace";n.extend(e.prototype,r.prototype,{constructor:e,handleClick:function(){window.location.href=window.location.pathname+"?qcn="+this.controller.getSeasonQueryStringValue()+f.getPreservedQueryString(!0)}});t[i]=e}(window.jQuery,window.RIC=window.RIC||{},"TireSearchClearClickHandler",RIC.ClickHandler||function(){throw new Error("RIC.TireSearchClearClickHandler : RIC.ClickHandler is undefined.");},RIC.getTireSearchController||function(){throw new Error("RIC.TireSearchClearClickHandler : RIC.getTireSearchController is undefined.");},RIC.getDataFromQueryString||function(){throw new Error("RIC.TireSearchClearClickHandler : RIC.getDataFromQueryString is undefined.");}),function(n,t,i,r,u){"use strict";function e(t){return typeof t=="string"&&t.length?this.$list.children("[role=presentation]").filter('[data-value="'+t+'"]').first():n()}function l(n){return e.call(this,n).children("[role=menuitem]").first().text()||""}function a(n){return n&&n.length&&n.is("[role=presentation]")?n.attr("data-value")||"":""}function o(){return this.$list.children("[role=presentation]").filter(".selected").first()}function v(){return o.call(this).attr("data-value")}function y(n){this.$buttonCaption.text(n)}function s(){this.$list.children("[role=presentation]").removeClass("selected")}function h(t){return t.is("[role=presentation]")?t:t.is("[role=menuitem]")?t.closest("[role=presentation]"):n()}function p(t){t.preventDefault();this.setValue(a.call(this,h.call(this,n(t.target))))}function f(n){if(r.call(this,n),this.$element&&this.$element.length===1){this.namespace=this.$element.attr(c)||"";this.controller=u(this.namespace);this.$button=this.$element.children("[data-toggle=dropdown]");this.$buttonCaption=this.$button.children(".ric-caption");this.$list=this.$element.children("[role=menu]");this.$element.on("click","[role=menuitem]",p.bind(this))}}var c="data-namespace";n.extend(f.prototype,r.prototype,{constructor:f,setValue:function(n){if(typeof n=="string"&&n.length){var t=e.call(this,n);t.length&&t.hasClass("selected")===!1&&(s.call(this),t.addClass("selected"),y.call(this,l.call(this,n)),this.handleChange(n))}},getValue:function(){return v.call(this)},autofill:function(){return this.$element.attr("data-fill")==="auto"},handleChange:function(){}});t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"TireSearchFilter",RIC.BoundObject||function(){throw new Error("RIC.TireSearchFilter : RIC.BoundObject is undefined.");},RIC.getTireSearchController||function(){throw new Error("RIC.TireSearchFilter : RIC.getTireSearchController is undefined.");}),function(n,t,i,r,u){"use strict";function f(t){r.call(this,t);this.$element=n(this.element);this.setValue(u.getRequestedKeywords(this.controller.selectedSeason))}n.extend(f.prototype,r.prototype,{constructor:f,setValue:function(n){var t=this;t.$element.val(n);t.handleChange(n);t.$element.on("focusout",function(){t.handleChange(this.value)})},handleChange:function(n){this.controller.handleOtherKeywordsHasChanged(n)}});t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"TireSearchOtherKeywordsHandler",RIC.TireSearchFilter||function(){throw new Error("RIC.TireSearchOtherKeywords : RIC.TireSearchFilter is undefined.");},RIC.getDataFromQueryString||function(){throw new Error("RIC.TireSearchOtherKeywords : RIC.getDataFromQueryString is undefined.");}),function(n,t,i,r,u){"use strict";function f(t){r.call(this,t);this.namespace="default";this.controller=u(this.namespace);this.bottomPrice=-1;this.topPrice=-1;this.$tireTopPrice=n(e);this.$tireBottomPrice=n(o)}var e=".tire-price-top",o=".tire-price-bottom";n.extend(f.prototype,r.prototype,{constructor:f,handleSliderEvent:function(){r.prototype.handleSliderEvent.call(this);var n=this.bottomSelectInstance.getValue(),t=this.topSelectInstance.getValue();this.bottomPrice!==n&&(this.controller.selectedBottomPrice=this.bottomPrice=n,this.$tireBottomPrice.text(this.bottomSelectInstance.$label.text()));this.topPrice!==t&&(this.controller.selectedTopPrice=this.topPrice=t,this.$tireTopPrice.text(this.topSelectInstance.$label.text()))}});t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"TireSearchPriceHandler",RIC.SliderDropDownFilterBoxHandler||function(){throw new Error("RIC.TireSearchPrice : RIC.SliderDropDownFilterBoxHandler is undefined.");},RIC.getTireSearchController||function(){throw new Error("RIC.TireSearchPrice : RIC.getTireSearchController is undefined.");}),function(n,t,i,r){"use strict";function u(n){r.call(this,n);this.controller.registerSeasonDropdown(this)}n.extend(u.prototype,r.prototype,{constructor:u,setSeason:function(n){this.setValue(n)},handleChange:function(){this.controller.handleSeasonHasChanged(this.getValue())}});t[i]=u}(window.jQuery,window.RIC=window.RIC||{},"TireSearchSeasonDropdown",RIC.TireSearchFilter||function(){throw new Error("RIC.TireSearchSeasonDropdown : RIC.TireSearchFilter is undefined.");}),function(n,t,i,r,u){"use strict";function f(n){r.call(this,n);this.controller.registerWidthDropdown(this)}n.extend(f.prototype,r.prototype,{constructor:f,setWidths:function(n,t){this.$list.empty().append(u(n));n.length&&this.setValue(t||n[0])},handleChange:function(){this.controller.handleWidthHasChanged(this.getValue())}});t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"TireSearchWidthDropdown",RIC.TireSearchFilter||function(){throw new Error("RIC.TireSearchWidthDropdown : RIC.TireSearchFilter is undefined.");},RIC.buildMenuItems||function(){throw new Error("RIC.TireSearchWidthDropdown : RIC.buildMenuItems is undefined.");}),function(n,t,i,r,u){"use strict";function f(n){r.call(this,n);this.controller.registerDiameterDropdown(this)}n.extend(f.prototype,r.prototype,{constructor:f,setDiameters:function(n,t){this.$list.empty().append(u(n));n.length&&this.setValue(t||n[0])},handleChange:function(){this.controller.handleDiameterHasChanged(this.getValue())}});t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"TireSearchDiameterDropdown",RIC.TireSearchFilter||function(){throw new Error("RIC.TireSearchDiameterDropdown : RIC.TireSearchFilter is undefined.");},RIC.buildMenuItems||function(){throw new Error("RIC.TireSearchDiameterDropdown : RIC.buildMenuItems is undefined.");}),function(n,t,i,r,u){"use strict";function f(n){r.call(this,n);this.controller.registerSerieDropdown(this)}n.extend(f.prototype,r.prototype,{constructor:f,setSeries:function(n,t){this.$list.empty().append(u(n));n.length&&this.setValue(t||n[0])},handleChange:function(){this.controller.handleSerieHasChanged(this.getValue())}});t[i]=f}(window.jQuery,window.RIC=window.RIC||{},"TireSearchSerieDropdown",RIC.TireSearchFilter||function(){throw new Error("RIC.TireSearchSerieDropdown : RIC.TireSearchFilter is undefined.");},RIC.buildMenuItems||function(){throw new Error("RIC.TireSearchSerieDropdown : RIC.buildMenuItems is undefined.");}),function(n,t,i,r,u,f,e){"use strict";function o(n){r.call(this,n);this.setBrands(u.getTireBrands(),e.getRequestedBrand())}n.extend(o.prototype,r.prototype,{constructor:o,setBrands:function(n,t){this.$list.append(f(n));n.length&&this.setValue(t)},handleChange:function(){this.controller.handleBrandHasChanged(this.getValue())}});t[i]=o}(window.jQuery,window.RIC=window.RIC||{},"TireSearchBrandDropdown",RIC.TireSearchFilter||function(){throw new Error("RIC.TireSearchBrandDropdown : RIC.TireSearchFilter is undefined.");},RIC.TireDataSource||function(){throw new Error("RIC.TireSearchBrandDropdown : RIC.TireDataSource is undefined.");},RIC.buildMenuItems||function(){throw new Error("RIC.TireSearchBrandDropdown : RIC.buildMenuItems is undefined.");},RIC.getDataFromQueryString||function(){throw new Error("RIC.TireSearchBrandDropdown : RIC.getDataFromQueryString is undefined.");}),function(n){"use strict";function r(n){return typeof n=="function"}function c(n){return n instanceof HTMLElement}function l(t){return t instanceof n}function a(n){return l(n)&&n.length>0}function s(n){return typeof n=="string"||n instanceof String}function i(n){return s(n)&&n.length>0}function v(n,t){return r(n.data(t))}function u(n,i){var r=f(n.getAttribute(t));r.indexOf(i)===-1&&n.setAttribute(t,r.join(" ")+" "+i)}function y(t,i){var o=e(i),f;r(o)&&(f=n(t),f.data(i,new o(f)),u(t,i))}function h(n,t){return i(n)?n+(i(t)?" "+t:""):i(t)?t:""}function p(n,t){var i=e(t);return c(n)&&r(i)?{element:n,ctor:i,ctorName:t}:null}function w(n,i){var r=[];return n.each(function(n,u){var o=f(h(u.getAttribute(t),i)),e;o.forEach(function(n){(e=p(u,n))&&r.push(e)})}),r}function b(t){t.forEach(function(t){var i=n(t.element);i.data(t.ctorName,new t.ctor(i));u(t.element,t.ctorName)})}function f(t){return s(t)?n.trim(t.replace(/[,\s]+/g," ")).split(" "):[]}function k(n){return typeof n=="undefined"||n===null?null:n}function e(n){var f,u,e,t,i;if(f=o[n])return f;for(u=n.split("."),e=u.length,t=window,i=0;i<e&&t!==null;++i)t=k(t[u[i]]);return r(t)?(o[n]=t,t):null}var o={},t="data-bind-to";n.fn.hasBoundObject=function(n){return a(this)&&i(n)&&v(this.first(),n)?(u(this.get(0),n),!0):!1};n.fn.unbindObject=function(r){return i(r)?this.each(function(i,u){var s=n(u),e,o;s.data(r)&&s.removeData(r);e=f(u.getAttribute(t));o=e.indexOf(r);o!==-1&&(e.splice(o,1),u.setAttribute(t,e.join(" ")))}):this};n.fn.bindObject=function(t){if(i(t)){var f=e(t);if(r(f))return this.each(function(i,r){var e=n(r);e.data(t,new f(e));u(r,t)})}return this};n.fn.bindObjects=function(n){return this.each(function(i,r){var u=f(h(r.getAttribute(t),n));u.forEach(function(n){y(r,n)})})};n.fn.asynchronouslyBindObjects=function(n,t){var i=w(this,n);return setImmediate(function(){b(i);r(t)&&t()}),this};n.constructorFromClassName=function(n){return i(n)?e(n):null};n(function(){n("["+t+"]").asynchronouslyBindObjects([],function(){window.newrelic&&window.newrelic.finished();window.location.href.indexOf("Auction")>-1&&document.location.href.indexOf("AuctionWithBuyNow")===-1&&n(".ric-buybox .btn-bid:first").click();window.location.href.indexOf("BuyNow")>-1&&document.location.href.indexOf("AuctionWithBuyNow")===-1&&n(".ric-buybox .btn-buy:first").click();window.location.href.indexOf("qa")>-1?(n(".ric-qna-question-button button").click(),window.location.hash="ric-dqa",n("#ric-dqa .panel-heading").click()):window.location.href.indexOf("wl")>-1&&n(".ric-trc-addobserver").click()})})}(window.jQuery),function(n,t,i,r,u){"use strict";function o(n,t){return function(){n.owlCarousel(t)}}function e(n){r.call(this,n);this.$element&&(f.dotsContainer=this.element.dataset.carouselBullets||"",f.navContainer=this.element.dataset.carouselCtrl||"",window.requestIdleCallback(o(this.$element,f)))}var f={dotsContainer:null,lazyLoad:!0,loop:!0,nav:!0,navContainer:null,navText:["",""],responsive:{},slideBy:"page"};f.responsive[0]={items:0};f.responsive[u.XSMin]={items:2};f.responsive[u.MSMin]={items:4};f.responsive[u.MDMin]={items:6};e.prototype=Object.create(r.prototype);e.prototype.constructor=e;t[i]=e}(window.jQuery,window.RIC=window.RIC||{},"OwlCarousel",RIC.BoundObject||function(){throw new Error("RIC.OwlCarousel : RIC.BoundObject is undefined");},RIC.MediaBreakpoints||{});!function(n){"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?module.exports=n():window.noUiSlider=n()}(function(){"use strict";function v(n){return n.filter(function(n){return this[n]?!1:this[n]=!0},{})}function y(n,t){return Math.round(n/t)*t}function e(n){var i=n.getBoundingClientRect(),u=n.ownerDocument,r=u.documentElement,t=l();return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(t.x=0),{top:i.top+t.y-r.clientTop,left:i.left+t.x-r.clientLeft}}function i(n){return"number"==typeof n&&!isNaN(n)&&isFinite(n)}function c(t,i,r){n(t,i);setTimeout(function(){u(t,i)},r)}function o(n){return Math.max(Math.min(n,100),0)}function r(n){return Array.isArray(n)?n:[n]}function p(n){var t=n.split(".");return t.length>1?t[1].length:0}function n(n,t){n.classList?n.classList.add(t):n.className+=" "+t}function u(n,t){n.classList?n.classList.remove(t):n.className=n.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function w(n,t){return n.classList?n.classList.contains(t):new RegExp("\\b"+t+"\\b").test(n.className)}function l(){var n=void 0!==window.pageXOffset,t="CSS1Compat"===(document.compatMode||""),i=n?window.pageXOffset:t?document.documentElement.scrollLeft:document.body.scrollLeft,r=n?window.pageYOffset:t?document.documentElement.scrollTop:document.body.scrollTop;return{x:i,y:r}}function b(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function s(n,t){return 100/(t-n)}function h(n,t){return 100*t/(n[1]-n[0])}function k(n,t){return h(n,n[0]<0?t+Math.abs(n[0]):t-n[0])}function d(n,t){return t*(n[1]-n[0])/100+n[0]}function f(n,t){for(var i=1;n>=t[i];)i+=1;return i}function g(n,t,i){if(i>=n.slice(-1)[0])return 100;var e,o,u,h,r=f(i,n);return e=n[r-1],o=n[r],u=t[r-1],h=t[r],u+k([e,o],i)/s(u,h)}function nt(n,t,i){if(i>=100)return n.slice(-1)[0];var e,o,u,h,r=f(i,t);return e=n[r-1],o=n[r],u=t[r-1],h=t[r],d([e,o],(i-u)*s(u,h))}function tt(n,t,i,r){if(100===r)return r;var e,o,u=f(r,n);return i?(e=n[u-1],o=n[u],r-e>(o-e)/2?o:e):t[u-1]?n[u-1]+y(r-n[u-1],t[u-1]):r}function it(n,t,r){var u;if("number"==typeof t&&(t=[t]),"[object Array]"!==Object.prototype.toString.call(t))throw new Error("noUiSlider: 'range' contains invalid value.");if(u="min"===n?0:"max"===n?100:parseFloat(n),!i(u)||!i(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");r.xPct.push(u);r.xVal.push(t[0]);u?r.xSteps.push(isNaN(t[1])?!1:t[1]):isNaN(t[1])||(r.xSteps[0]=t[1])}function rt(n,t,i){return t?void(i.xSteps[n]=h([i.xVal[n],i.xVal[n+1]],t)/s(i.xPct[n],i.xPct[n+1])):!0}function t(n,t,i,r){this.xPct=[];this.xVal=[];this.xSteps=[r||!1];this.xNumSteps=[!1];this.snap=t;this.direction=i;var u,f=[];for(u in n)n.hasOwnProperty(u)&&f.push([n[u],u]);for(f.length&&"object"==typeof f[0][0]?f.sort(function(n,t){return n[0][0]-t[0][0]}):f.sort(function(n,t){return n[0]-t[0]}),u=0;u<f.length;u++)it(f[u][1],f[u][0],this);for(this.xNumSteps=this.xSteps.slice(0),u=0;u<this.xNumSteps.length;u++)rt(u,this.xNumSteps[u],this)}function ut(n,t){if(!i(t))throw new Error("noUiSlider: 'step' is not numeric.");n.singleStep=t}function ft(n,i){if("object"!=typeof i||Array.isArray(i))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===i.min||void 0===i.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");if(i.min===i.max)throw new Error("noUiSlider: 'range' 'min' and 'max' cannot be equal.");n.spectrum=new t(i,n.snap,n.dir,n.singleStep)}function et(n,t){if(t=r(t),!Array.isArray(t)||!t.length||t.length>2)throw new Error("noUiSlider: 'start' option is incorrect.");n.handles=t.length;n.start=t}function ot(n,t){if(n.snap=t,"boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");}function st(n,t){if(n.animate=t,"boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");}function ht(n,t){if(n.animationDuration=t,"number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");}function ct(n,t){if("lower"===t&&1===n.handles)n.connect=1;else if("upper"===t&&1===n.handles)n.connect=2;else if(t===!0&&2===n.handles)n.connect=3;else{if(t!==!1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");n.connect=0}}function lt(n,t){switch(t){case"horizontal":n.ort=0;break;case"vertical":n.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.");}}function at(n,t){if(!i(t))throw new Error("noUiSlider: 'margin' option must be numeric.");if(0!==t&&(n.margin=n.spectrum.getMargin(t),!n.margin))throw new Error("noUiSlider: 'margin' option is only supported on linear sliders.");}function vt(n,t){if(!i(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(n.limit=n.spectrum.getMargin(t),!n.limit)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders.");}function yt(n,t){switch(t){case"ltr":n.dir=0;break;case"rtl":n.dir=1;n.connect=[0,2,1,3][n.connect];break;default:throw new Error("noUiSlider: 'direction' option was not recognized.");}}function pt(n,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var u=t.indexOf("tap")>=0,i=t.indexOf("drag")>=0,f=t.indexOf("fixed")>=0,r=t.indexOf("snap")>=0,e=t.indexOf("hover")>=0;if(i&&!n.connect)throw new Error("noUiSlider: 'drag' behaviour must be used with 'connect': true.");n.events={tap:u||r,drag:i,fixed:f,snap:r,hover:e}}function wt(n,t){var i;if(t!==!1)if(t===!0)for(n.tooltips=[],i=0;i<n.handles;i++)n.tooltips.push(!0);else{if(n.tooltips=r(t),n.tooltips.length!==n.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");n.tooltips.forEach(function(n){if("boolean"!=typeof n&&("object"!=typeof n||"function"!=typeof n.to))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.");})}}function bt(n,t){if(n.format=t,"function"==typeof t.to&&"function"==typeof t.from)return!0;throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");}function kt(n,t){if(void 0!==t&&"string"!=typeof t&&t!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");n.cssPrefix=t}function dt(n,t){if(void 0!==t&&"object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");if("string"==typeof n.cssPrefix){n.cssClasses={};for(var i in t)t.hasOwnProperty(i)&&(n.cssClasses[i]=n.cssPrefix+t[i])}else n.cssClasses=t}function a(n){var i,t={margin:0,limit:0,animate:!0,animationDuration:300,format:ti},r;return i={step:{r:!1,t:ut},start:{r:!0,t:et},connect:{r:!0,t:ct},direction:{r:!0,t:yt},snap:{r:!1,t:ot},animate:{r:!1,t:st},animationDuration:{r:!1,t:ht},range:{r:!0,t:ft},orientation:{r:!1,t:lt},margin:{r:!1,t:at},limit:{r:!1,t:vt},behaviour:{r:!0,t:pt},format:{r:!1,t:bt},tooltips:{r:!1,t:wt},cssPrefix:{r:!1,t:kt},cssClasses:{r:!1,t:dt}},r={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",stacking:"stacking",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"}},Object.keys(i).forEach(function(u){if(void 0===n[u]&&void 0===r[u]){if(i[u].r)throw new Error("noUiSlider: '"+u+"' is required.");return!0}i[u].t(t,void 0===n[u]?r[u]:n[u])}),t.pips=n.pips,t.style=t.ort?"top":"left",t}function gt(t,i,f){function yt(n,t,i){var r=n+t[0],u=n+t[1];return i?(0>r&&(u+=Math.abs(r)),u>100&&(r-=u-100),[o(r),o(u)]):[r,u]}function pt(n,t){n.preventDefault();var r,u,o=0===n.type.indexOf("touch"),e=0===n.type.indexOf("mouse"),f=0===n.type.indexOf("pointer"),i=n;return 0===n.type.indexOf("MSPointer")&&(f=!0),o&&(r=n.changedTouches[0].pageX,u=n.changedTouches[0].pageY),t=t||l(),(e||f)&&(r=n.clientX+t.x,u=n.clientY+t.y),i.pageOffset=t,i.points=[r,u],i.cursor=e||f,i}function wt(t,r){var u=document.createElement("div"),f=document.createElement("div"),e=[i.cssClasses.handleLower,i.cssClasses.handleUpper];return t&&e.reverse(),n(f,i.cssClasses.handle),n(f,e[r]),n(u,i.cssClasses.origin),u.appendChild(f),u}function bt(t,r,u){switch(t){case 1:n(r,i.cssClasses.connect);n(u[0],i.cssClasses.background);break;case 3:n(u[1],i.cssClasses.background);case 2:n(u[0],i.cssClasses.connect);case 0:n(r,i.cssClasses.background)}}function kt(n,t,i){for(var u=[],r=0;n>r;r+=1)u.push(i.appendChild(wt(t,r)));return u}function dt(t,r,u){n(u,i.cssClasses.target);0===t?n(u,i.cssClasses.ltr):n(u,i.cssClasses.rtl);0===r?n(u,i.cssClasses.horizontal):n(u,i.cssClasses.vertical);var f=document.createElement("div");return n(f,i.cssClasses.base),u.appendChild(f),f}function gt(n,t){if(!i.tooltips[t])return!1;var r=document.createElement("div");return r.className=i.cssClasses.tooltip,n.firstChild.appendChild(r)}function ni(){i.dir&&i.tooltips.reverse();var n=s.map(gt);i.dir&&(n.reverse(),i.tooltips.reverse());vt("update",function(t,r,u){n[r]&&(n[r].innerHTML=i.tooltips[r]===!0?t[r]:i.tooltips[r].to(u[r]))})}function ti(n,t,i){if("range"===n||"steps"===n)return h.xVal;if("count"===n){var r,u=100/(t-1),f=0;for(t=[];(r=f++*u)<=100;)t.push(r);n="positions"}return"positions"===n?t.map(function(n){return h.fromStepping(i?h.getStep(n):n)}):"values"===n?i?t.map(function(n){return h.fromStepping(h.getStep(h.toStepping(n)))}):t:void 0}function ii(n,t,i){function c(n,t){return(n+t).toFixed(7)/1}var l=h.direction,r={},f=h.xVal[0],e=h.xVal[h.xVal.length-1],o=!1,s=!1,u=0;return h.direction=0,i=v(i.slice().sort(function(n,t){return n-t})),i[0]!==f&&(i.unshift(f),o=!0),i[i.length-1]!==e&&(i.push(e),s=!0),i.forEach(function(f,e){var a,l,v,y,w,g,b,nt,k,tt,d=f,p=i[e+1];if("steps"===t&&(a=h.xNumSteps[e]),a||(a=p-d),d!==!1&&void 0!==p)for(l=d;p>=l;l=c(l,a)){for(y=h.toStepping(l),w=y-u,nt=w/n,k=Math.round(nt),tt=w/k,v=1;k>=v;v+=1)g=u+v*tt,r[g.toFixed(5)]=["x",0];b=i.indexOf(l)>-1?1:"steps"===t?2:0;!e&&o&&(b=0);l===p&&s||(r[y.toFixed(5)]=[l,b]);u=y}}),h.direction=l,r}function ri(t,r,u){function s(n,t){var r=t===i.cssClasses.value,u=r?v:y,f=r?l:a;return t+" "+u[i.ort]+" "+f[n]}function o(n,t,r){return'class="'+s(r[1],t)+'" style="'+i.style+": "+n+'%"'}function c(n,t){h.direction&&(n=100-n);t[1]=t[1]&&r?r(t[0],t[1]):t[1];e+="<div "+o(n,i.cssClasses.marker,t)+"><\/div>";t[1]&&(e+="<div "+o(n,i.cssClasses.value,t)+">"+u.to(t[0])+"<\/div>")}var f=document.createElement("div"),e="",l=[i.cssClasses.valueNormal,i.cssClasses.valueLarge,i.cssClasses.valueSub],a=[i.cssClasses.markerNormal,i.cssClasses.markerLarge,i.cssClasses.markerSub],v=[i.cssClasses.valueHorizontal,i.cssClasses.valueVertical],y=[i.cssClasses.markerHorizontal,i.cssClasses.markerVertical];return n(f,i.cssClasses.pips),n(f,0===i.ort?i.cssClasses.pipsHorizontal:i.cssClasses.pipsVertical),Object.keys(t).forEach(function(n){c(n,t[n])}),f.innerHTML=e,f}function lt(n){var t=n.mode,i=n.density||1,r=n.filter||!1,u=n.values||!1,f=n.stepped||!1,e=ti(t,u,f),o=ii(i,t,e),s=n.format||{to:Math.round};return y.appendChild(ri(o,r,s))}function et(){var n=g.getBoundingClientRect(),t="offset"+["Width","Height"][i.ort];return 0===i.ort?n.width||g[t]:n.height||g[t]}function k(n,t,u){for(var f=0;f<i.handles;f++)if(-1===d[f])return;void 0!==t&&1!==i.handles&&(t=Math.abs(t-i.dir));Object.keys(nt).forEach(function(i){var f=i.split(".")[0];n===f&&nt[i].forEach(function(n){n.call(ut,r(ct()),t,r(ot(Array.prototype.slice.call(ft))),u||!1,d)})})}function ot(n){return 1===n.length?n[0]:i.dir?n.reverse():n}function tt(n,t,r,u){var f=function(t){return y.hasAttribute("disabled")?!1:w(y,i.cssClasses.tap)?!1:(t=pt(t,u.pageOffset),n===it.start&&void 0!==t.buttons&&t.buttons>1?!1:u.hover&&t.buttons?!1:(t.calcPoint=t.points[i.ort],void r(t,u)))},e=[];return n.split(" ").forEach(function(n){t.addEventListener(n,f,!1);e.push([n,f])}),e}function ui(n,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===n.buttons&&0!==t.buttonsProperty)return st(n,t);var f,r,i=t.handles||s,u=!1,o=100*(n.calcPoint-t.start)/t.baseSize,e=i[0]===s[0]?0:1;if(f=yt(o,t.positions,i.length>1),u=rt(i[0],f[e],1===i.length),i.length>1){if(u=rt(i[1],f[e?0:1],!1)||u)for(r=0;r<t.handles.length;r++)k("slide",r)}else u&&k("slide",e)}function st(n,t){var f=g.querySelector("."+i.cssClasses.active),e=t.handles[0]===s[0]?0:1,r;null!==f&&u(f,i.cssClasses.active);n.cursor&&(document.body.style.cursor="",document.body.removeEventListener("selectstart",document.body.noUiListener));r=document.documentElement;r.noUiListeners.forEach(function(n){r.removeEventListener(n[0],n[1])});u(y,i.cssClasses.drag);k("set",e);k("change",e);void 0!==t.handleNumber&&k("end",t.handleNumber)}function fi(n,t){"mouseout"===n.type&&"HTML"===n.target.nodeName&&null===n.relatedTarget&&st(n,t)}function ht(t,r){var u=document.documentElement,f;if(1===r.handles.length){if(r.handles[0].hasAttribute("disabled"))return!1;n(r.handles[0].children[0],i.cssClasses.active)}t.preventDefault();t.stopPropagation();var e=tt(it.move,u,ui,{start:t.calcPoint,baseSize:et(),pageOffset:t.pageOffset,handles:r.handles,handleNumber:r.handleNumber,buttonsProperty:t.buttons,positions:[d[0],d[s.length-1]]}),o=tt(it.end,u,st,{handles:r.handles,handleNumber:r.handleNumber}),h=tt("mouseout",u,fi,{handles:r.handles,handleNumber:r.handleNumber});(u.noUiListeners=e.concat(o,h),t.cursor)&&(document.body.style.cursor=getComputedStyle(t.target).cursor,s.length>1&&n(y,i.cssClasses.drag),f=function(){return!1},document.body.noUiListener=f,document.body.addEventListener("selectstart",f,!1));void 0!==r.handleNumber&&k("start",r.handleNumber)}function ei(n){var t,u,r=n.calcPoint,f=0;return n.stopPropagation(),s.forEach(function(n){f+=e(n)[i.style]}),t=f/2>r||1===s.length?0:1,s[t].hasAttribute("disabled")&&(t=t?0:1),r-=e(g)[i.style],u=100*r/et(),i.events.snap||c(y,i.cssClasses.tap,i.animationDuration),s[t].hasAttribute("disabled")?!1:(rt(s[t],u),k("slide",t,!0),k("set",t,!0),k("change",t,!0),void(i.events.snap&&ht(n,{handles:[s[t]]})))}function oi(n){var t=n.calcPoint-e(g)[i.style],r=h.getStep(100*t/et()),u=h.fromStepping(r);Object.keys(nt).forEach(function(n){"hover"===n.split(".")[0]&&nt[n].forEach(function(n){n.call(ut,u)})})}function si(t){if(t.fixed||s.forEach(function(n,t){tt(it.start,n.children[0],ht,{handles:[n],handleNumber:t})}),t.tap&&tt(it.start,g,ei,{handles:s}),t.hover&&tt(it.move,g,oi,{hover:!0}),t.drag){var r=[g.querySelector("."+i.cssClasses.connect)];n(r[0],i.cssClasses.draggable);t.fixed&&r.push(s[r[0]===s[0]?1:0].children[0]);r.forEach(function(n){tt(it.start,n,ht,{handles:s})})}}function rt(t,r,f){var e=t!==s[0]?1:0,c=d[0]+i.margin,l=d[1]-i.margin,a=d[0]+i.limit,v=d[1]-i.limit;return s.length>1&&(r=e?Math.max(r,c):Math.min(r,l)),f!==!1&&i.limit&&s.length>1&&(r=e?Math.min(r,a):Math.max(r,v)),r=h.getStep(r),r=o(r),r===d[e]?!1:(window.requestAnimationFrame?window.requestAnimationFrame(function(){t.style[i.style]=r+"%"}):t.style[i.style]=r+"%",t.previousSibling||(u(t,i.cssClasses.stacking),r>50&&n(t,i.cssClasses.stacking)),d[e]=r,ft[e]=h.fromStepping(r),k("update",e),!0)}function hi(n,t){var u,f,r;for(i.limit&&(n+=1),u=0;n>u;u+=1)f=u%2,r=t[f],null!==r&&r!==!1&&("number"==typeof r&&(r=String(r)),r=i.format.from(r),(r===!1||isNaN(r)||rt(s[f],h.toStepping(r),u===3-i.dir)===!1)&&k("update",f))}function at(n,t){var e,u,f=r(n);for(t=void 0===t?!0:!!t,i.dir&&i.handles>1&&f.reverse(),i.animate&&-1!==d[0]&&c(y,i.cssClasses.tap,i.animationDuration),e=s.length>1?3:1,1===f.length&&(e=1),hi(e,f),u=0;u<s.length;u++)null!==f[u]&&t&&k("set",u)}function ct(){for(var t=[],n=0;n<i.handles;n+=1)t[n]=i.format.to(ft[n]);return ot(t)}function ci(){for(var n in i.cssClasses)i.cssClasses.hasOwnProperty(n)&&u(y,i.cssClasses[n]);for(;y.firstChild;)y.removeChild(y.firstChild);delete y.noUiSlider}function li(){var n=d.map(function(n,t){var i=h.getApplicableStep(n),r=p(String(i[2])),u=ft[t],f=100===n?null:i[2],e=Number((u-i[2]).toFixed(r)),o=0===n?null:e>=i[1]?i[2]:i[0]||!1;return[o,f]});return ot(n)}function vt(n,t){nt[n]=nt[n]||[];nt[n].push(t);"update"===n.split(".")[0]&&s.forEach(function(n,t){k("update",t)})}function ai(n){var t=n&&n.split(".")[0],i=t&&n.substring(t.length);Object.keys(nt).forEach(function(n){var r=n.split(".")[0],u=n.substring(r.length);t&&t!==r||i&&i!==u||delete nt[n]})}function vi(n,t){var u=ct(),r=a({start:[0,0],margin:n.margin,limit:n.limit,step:void 0===n.step?i.singleStep:n.step,range:n.range,animate:n.animate,snap:void 0===n.snap?i.snap:n.snap});["margin","limit","range","animate"].forEach(function(t){void 0!==n[t]&&(i[t]=n[t])});r.spectrum.direction=h.direction;h=r.spectrum;d=[-1,-1];at(n.start||u,t)}var g,s,ut,it=b(),y=t,d=[-1,-1],h=i.spectrum,ft=[],nt={};if(y.noUiSlider)throw new Error("Slider was already initialized.");return g=dt(i.dir,i.ort,y),s=kt(i.handles,i.dir,g),bt(i.connect,y,s),i.pips&&lt(i.pips),i.tooltips&&ni(),ut={destroy:ci,steps:li,on:vt,off:ai,get:ct,set:at,updateOptions:vi,options:f,target:y,pips:lt},si(i.events),ut}function ni(n,t){if(!n.nodeName)throw new Error("noUiSlider.create requires a single element.");var r=a(t,n),i=gt(n,r,t);return i.set(r.start),n.noUiSlider=i,i}t.prototype.getMargin=function(n){return 2===this.xPct.length?h(this.xVal,n):!1};t.prototype.toStepping=function(n){return n=g(this.xVal,this.xPct,n),this.direction&&(n=100-n),n};t.prototype.fromStepping=function(n){return this.direction&&(n=100-n),nt(this.xVal,this.xPct,n)};t.prototype.getStep=function(n){return this.direction&&(n=100-n),n=tt(this.xPct,this.xSteps,this.snap,n),this.direction&&(n=100-n),n};t.prototype.getApplicableStep=function(n){var t=f(n,this.xPct),i=100===n?2:1;return[this.xNumSteps[t-2],this.xVal[t-i],this.xNumSteps[t-i]]};t.prototype.convert=function(n){return this.getStep(this.toStepping(n))};var ti={to:function(n){return void 0!==n&&n.toFixed(2)},from:Number};return{create:ni}});!function(n,t,i,r){function u(t,i){this.settings=null;this.options=n.extend({},u.Defaults,i);this.$element=n(t);this._handlers={};this._plugins={};this._supress={};this._current=null;this._speed=null;this._coordinates=[];this._breakpoint=null;this._width=null;this._items=[];this._clones=[];this._mergers=[];this._widths=[];this._invalidated={};this._pipe=[];this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null};this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}};n.each(["onResize","onThrottledResize"],n.proxy(function(t,i){this._handlers[i]=n.proxy(this[i],this)},this));n.each(u.Plugins,n.proxy(function(n,t){this._plugins[n.charAt(0).toLowerCase()+n.slice(1)]=new t(this)},this));n.each(u.Workers,n.proxy(function(t,i){this._pipe.push({filter:i.filter,run:n.proxy(i.run,this)})},this));this.setup();this.initialize()}u.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:t,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"};u.Width={Default:"default",Inner:"inner",Outer:"outer"};u.Type={Event:"event",State:"state"};u.Plugins={};u.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(n){n.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(n){var t=this.settings.margin||"",u=!this.settings.autoWidth,i=this.settings.rtl,r={width:"auto","margin-left":i?t:"","margin-right":i?"":t};u||this.$stage.children().css(r);n.css=r}},{filter:["width","items","settings"],run:function(n){var r=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,t=null,i=this._items.length,f=!this.settings.autoWidth,u=[];for(n.items={merge:!1,width:r};i--;)t=this._mergers[i],t=this.settings.mergeFit&&Math.min(t,this.settings.items)||t,n.items.merge=t>1||n.items.merge,u[i]=f?r*t:this._items[i].width();this._widths=u}},{filter:["items","settings"],run:function(){var t=[],i=this._items,r=this.settings,f=Math.max(2*r.items,4),s=2*Math.ceil(i.length/2),e=r.loop&&i.length?r.rewind?f:Math.max(f,s):0,o="",u="";for(e/=2;e--;)t.push(this.normalize(t.length/2,!0)),o+=i[t[t.length-1]][0].outerHTML,t.push(this.normalize(i.length-1-(t.length-1)/2,!0)),u=i[t[t.length-1]][0].outerHTML+u;this._clones=t;n(o).addClass("cloned").appendTo(this.$stage);n(u).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var u=this.settings.rtl?1:-1,f=this._clones.length+this._items.length,n=-1,i=0,r=0,t=[];++n<f;)i=t[n-1]||0,r=this._widths[this.relative(n)]+this.settings.margin,t.push(i+r*u);this._coordinates=t}},{filter:["width","items","settings"],run:function(){var n=this.settings.stagePadding,t=this._coordinates,i={width:Math.ceil(Math.abs(t[t.length-1]))+2*n,"padding-left":n||"","padding-right":n||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(n){var t=this._coordinates.length,i=!this.settings.autoWidth,r=this.$stage.children();if(i&&n.items.merge)for(;t--;)n.css.width=this._widths[this.relative(t)],r.eq(t).css(n.css);else i&&(n.css.width=n.items.width,r.css(n.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(n){n.current=n.current?this.$stage.children().index(n.current):0;n.current=Math.max(this.minimum(),Math.min(this.maximum(),n.current));this.reset(n.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){for(var t,i,f=this.settings.rtl?1:-1,e=2*this.settings.stagePadding,r=this.coordinates(this.current())+e,o=r+this.width()*f,s=[],n=0,u=this._coordinates.length;u>n;n++)t=this._coordinates[n-1]||0,i=Math.abs(this._coordinates[n])+e*f,(this.op(t,"<=",r)&&this.op(t,">",o)||this.op(i,"<",r)&&this.op(i,">",o))&&s.push(n);this.$stage.children(".active").removeClass("active");this.$stage.children(":eq("+s.join("), :eq(")+")").addClass("active");this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}];u.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var t,i,u;t=this.$element.find("img");i=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:r;u=this.$element.children(i).width();t.length&&0>=u&&this.preloadAutoWidthImages(t)}this.$element.addClass(this.options.loadingClass);this.$stage=n("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>');this.$element.append(this.$stage.parent());this.replace(this.$element.children().not(this.$stage.parent()));this.$element.is(":visible")?this.refresh():this.invalidate("width");this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass);this.registerEventHandlers();this.leave("initializing");this.trigger("initialized")};u.prototype.setup=function(){var u=this.viewport(),r=this.options.responsive,t=-1,i=null;r?(n.each(r,function(n){u>=n&&n>t&&(t=Number(n))}),i=n.extend({},this.options,r[t]),delete i.responsive,i.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+t))):i=n.extend({},this.options);null!==this.settings&&this._breakpoint===t||(this.trigger("change",{property:{name:"settings",value:i}}),this._breakpoint=t,this.settings=i,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))};u.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)};u.prototype.prepare=function(t){var i=this.trigger("prepare",{content:t});return i.data||(i.data=n("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:i.data}),i.data};u.prototype.update=function(){for(var t=0,i=this._pipe.length,r=n.proxy(function(n){return this[n]},this._invalidated),u={};i>t;)(this._invalidated.all||n.grep(this._pipe[t].filter,r).length>0)&&this._pipe[t].run(u),t++;this._invalidated={};this.is("valid")||this.enter("valid")};u.prototype.width=function(n){switch(n=n||u.Width.Default){case u.Width.Inner:case u.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}};u.prototype.refresh=function(){this.enter("refreshing");this.trigger("refresh");this.setup();this.optionsLogic();this.$element.addClass(this.options.refreshClass);this.update();this.$element.removeClass(this.options.refreshClass);this.leave("refreshing");this.trigger("refreshed")};u.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer);this.resizeTimer=t.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)};u.prototype.onResize=function(){return this._items.length?this._width===this.$element.width()?!1:this.$element.is(":visible")?(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized"))):!1:!1};u.prototype.registerEventHandlers=function(){n.support.transition&&this.$stage.on(n.support.transition.end+".owl.core",n.proxy(this.onTransitionEnd,this));this.settings.responsive!==!1&&this.on(t,"resize",this._handlers.onThrottledResize);this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",n.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1}));this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",n.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",n.proxy(this.onDragEnd,this)))};u.prototype.onDragStart=function(t){var r=null;3!==t.which&&(n.support.transform?(r=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),r={x:r[16===r.length?12:4],y:r[16===r.length?13:5]}):(r=this.$stage.position(),r={x:this.settings.rtl?r.left+this.$stage.width()-this.width()+this.settings.margin:r.left,y:r.top}),this.is("animating")&&(n.support.transform?this.animate(r.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=n(t.target),this._drag.stage.start=r,this._drag.stage.current=r,this._drag.pointer=this.pointer(t),n(i).on("mouseup.owl.core touchend.owl.core",n.proxy(this.onDragEnd,this)),n(i).one("mousemove.owl.core touchmove.owl.core",n.proxy(function(t){var r=this.difference(this._drag.pointer,this.pointer(t));n(i).on("mousemove.owl.core touchmove.owl.core",n.proxy(this.onDragMove,this));Math.abs(r.x)<Math.abs(r.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))};u.prototype.onDragMove=function(n){var t=null,i=null,u=null,f=this.difference(this._drag.pointer,this.pointer(n)),r=this.difference(this._drag.stage.start,f);this.is("dragging")&&(n.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-t,r.x=((r.x-t)%i+i)%i+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),u=this.settings.pullDrag?f.x/-5:0,r.x=Math.max(Math.min(r.x,t+u),i+u)),this._drag.stage.current=r,this.animate(r.x))};u.prototype.onDragEnd=function(t){var r=this.difference(this._drag.pointer,this.pointer(t)),f=this._drag.stage.current,u=r.x>0^this.settings.rtl?"left":"right";n(i).off(".owl.core");this.$element.removeClass(this.options.grabClass);(0!==r.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(f.x,0!==r.x?u:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=u,(Math.abs(r.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1}));this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))};u.prototype.closest=function(t,i){var r=-1,u=30,e=this.width(),f=this.coordinates();return this.settings.freeDrag||n.each(f,n.proxy(function(n,o){return"left"===i&&t>o-u&&o+u>t?r=n:"right"===i&&t>o-e-u&&o-e+u>t?r=n+1:this.op(t,"<",o)&&this.op(t,">",f[n+1]||o-e)&&(r="left"===i?n+1:n),-1===r},this)),this.settings.loop||(this.op(t,">",f[this.minimum()])?r=t=this.minimum():this.op(t,"<",f[this.maximum()])&&(r=t=this.maximum())),r};u.prototype.animate=function(t){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd();i&&(this.enter("animating"),this.trigger("translate"));n.support.transform3d&&n.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"}):i?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,n.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})};u.prototype.is=function(n){return this._states.current[n]&&this._states.current[n]>0};u.prototype.current=function(n){if(n===r)return this._current;if(0===this._items.length)return r;if(n=this.normalize(n),this._current!==n){var t=this.trigger("change",{property:{name:"position",value:n}});t.data!==r&&(n=this.normalize(t.data));this._current=n;this.invalidate("position");this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current};u.prototype.invalidate=function(t){return"string"===n.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),n.map(this._invalidated,function(n,t){return t})};u.prototype.reset=function(n){n=this.normalize(n);n!==r&&(this._speed=0,this._current=n,this.suppress(["translate","translated"]),this.animate(this.coordinates(n)),this.release(["translate","translated"]))};u.prototype.normalize=function(n,t){var i=this._items.length,u=t?0:this._clones.length;return!this.isNumeric(n)||1>i?n=r:(0>n||n>=i+u)&&(n=((n-u/2)%i+i)%i+u/2),n};u.prototype.relative=function(n){return n-=this._clones.length/2,this.normalize(n,!0)};u.prototype.maximum=function(n){var r,i=this.settings,t=this._coordinates.length,f=Math.abs(this._coordinates[t-1])-this._width,u=-1;if(i.loop)t=this._clones.length/2+this._items.length-1;else if(i.autoWidth||i.merge)for(;t-u>1;)Math.abs(this._coordinates[r=t+u>>1])<f?u=r:t=r;else t=i.center?this._items.length-1:this._items.length-i.items;return n&&(t-=this._clones.length/2),Math.max(t,0)};u.prototype.minimum=function(n){return n?0:this._clones.length/2};u.prototype.items=function(n){return n===r?this._items.slice():(n=this.normalize(n,!0),this._items[n])};u.prototype.mergers=function(n){return n===r?this._mergers.slice():(n=this.normalize(n,!0),this._mergers[n])};u.prototype.clones=function(t){var i=this._clones.length/2,f=i+this._items.length,u=function(n){return n%2==0?f+n/2:i-(n+1)/2};return t===r?n.map(this._clones,function(n,t){return u(t)}):n.map(this._clones,function(n,i){return n===t?u(i):null})};u.prototype.speed=function(n){return n!==r&&(this._speed=n),this._speed};u.prototype.coordinates=function(t){var i,f=1,u=t-1;return t===r?n.map(this._coordinates,n.proxy(function(n,t){return this.coordinates(t)},this)):(this.settings.center?(this.settings.rtl&&(f=-1,u=t+1),i=this._coordinates[t],i+=(this.width()-i+(this._coordinates[u]||0))/2*f):i=this._coordinates[u]||0,i=Math.ceil(i))};u.prototype.duration=function(n,t,i){return 0===i?0:Math.min(Math.max(Math.abs(t-n),1),6)*Math.abs(i||this.settings.smartSpeed)};u.prototype.to=function(n,t){var f=this.current(),r=null,i=n-this.relative(f),s=(i>0)-(0>i),e=this._items.length,o=this.minimum(),u=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(i)>e/2&&(i+=-1*s*e),n=f+i,r=((n-o)%e+e)%e+o,r!==n&&u>=r-i&&r-i>0&&(f=r-i,n=r,this.reset(f))):this.settings.rewind?(u+=1,n=(n%u+u)%u):n=Math.max(o,Math.min(u,n));this.speed(this.duration(f,n,t));this.current(n);this.$element.is(":visible")&&this.update()};u.prototype.next=function(n){n=n||!1;this.to(this.relative(this.current())+1,n)};u.prototype.prev=function(n){n=n||!1;this.to(this.relative(this.current())-1,n)};u.prototype.onTransitionEnd=function(n){return n!==r&&(n.stopPropagation(),(n.target||n.srcElement||n.originalTarget)!==this.$stage.get(0))?!1:(this.leave("animating"),void this.trigger("translated"))};u.prototype.viewport=function(){var r;if(this.options.responsiveBaseElement!==t)r=n(this.options.responsiveBaseElement).width();else if(t.innerWidth)r=t.innerWidth;else{if(!i.documentElement||!i.documentElement.clientWidth)throw"Can not detect viewport width.";r=i.documentElement.clientWidth}return r};u.prototype.replace=function(t){this.$stage.empty();this._items=[];t&&(t=t instanceof jQuery?t:n(t));this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector));t.filter(function(){return 1===this.nodeType}).each(n.proxy(function(n,t){t=this.prepare(t);this.$stage.append(t);this._items.push(t);this._mergers.push(1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this));this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0);this.invalidate("items")};u.prototype.add=function(t,i){var u=this.relative(this._current);i=i===r?this._items.length:this.normalize(i,!0);t=t instanceof jQuery?t:n(t);this.trigger("add",{content:t,position:i});t=this.prepare(t);0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[i-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[i].before(t),this._items.splice(i,0,t),this._mergers.splice(i,0,1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1));this._items[u]&&this.reset(this._items[u].index());this.invalidate("items");this.trigger("added",{content:t,position:i})};u.prototype.remove=function(n){n=this.normalize(n,!0);n!==r&&(this.trigger("remove",{content:this._items[n],position:n}),this._items[n].remove(),this._items.splice(n,1),this._mergers.splice(n,1),this.invalidate("items"),this.trigger("removed",{content:null,position:n}))};u.prototype.preloadAutoWidthImages=function(t){t.each(n.proxy(function(t,i){this.enter("pre-loading");i=n(i);n(new Image).one("load",n.proxy(function(n){i.attr("src",n.target.src);i.css("opacity",1);this.leave("pre-loading");!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))},this))};u.prototype.destroy=function(){this.$element.off(".owl.core");this.$stage.off(".owl.core");n(i).off(".owl.core");this.settings.responsive!==!1&&(t.clearTimeout(this.resizeTimer),this.off(t,"resize",this._handlers.onThrottledResize));for(var r in this._plugins)this._plugins[r].destroy();this.$stage.children(".cloned").remove();this.$stage.unwrap();this.$stage.children().contents().unwrap();this.$stage.children().unwrap();this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")};u.prototype.op=function(n,t,i){var r=this.settings.rtl;switch(t){case"<":return r?n>i:i>n;case">":return r?i>n:n>i;case">=":return r?i>=n:n>=i;case"<=":return r?n>=i:i>=n}};u.prototype.on=function(n,t,i,r){n.addEventListener?n.addEventListener(t,i,r):n.attachEvent&&n.attachEvent("on"+t,i)};u.prototype.off=function(n,t,i,r){n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent&&n.detachEvent("on"+t,i)};u.prototype.trigger=function(t,i,r){var o={item:{count:this._items.length,index:this.current()}},e=n.camelCase(n.grep(["on",t,r],function(n){return n}).join("-").toLowerCase()),f=n.Event([t,"owl",r||"carousel"].join(".").toLowerCase(),n.extend({relatedTarget:this},o,i));return this._supress[t]||(n.each(this._plugins,function(n,t){t.onTrigger&&t.onTrigger(f)}),this.register({type:u.Type.Event,name:t}),this.$element.trigger(f),this.settings&&"function"==typeof this.settings[e]&&this.settings[e].call(this,f)),f};u.prototype.enter=function(t){n.each([t].concat(this._states.tags[t]||[]),n.proxy(function(n,t){this._states.current[t]===r&&(this._states.current[t]=0);this._states.current[t]++},this))};u.prototype.leave=function(t){n.each([t].concat(this._states.tags[t]||[]),n.proxy(function(n,t){this._states.current[t]--},this))};u.prototype.register=function(t){if(t.type===u.Type.Event){if(n.event.special[t.name]||(n.event.special[t.name]={}),!n.event.special[t.name].owl){var i=n.event.special[t.name]._default;n.event.special[t.name]._default=function(n){return!i||!i.apply||n.namespace&&-1!==n.namespace.indexOf("owl")?n.namespace&&n.namespace.indexOf("owl")>-1:i.apply(this,arguments)};n.event.special[t.name].owl=!0}}else t.type===u.Type.State&&(this._states.tags[t.name]=this._states.tags[t.name]?this._states.tags[t.name].concat(t.tags):t.tags,this._states.tags[t.name]=n.grep(this._states.tags[t.name],n.proxy(function(i,r){return n.inArray(i,this._states.tags[t.name])===r},this)))};u.prototype.suppress=function(t){n.each(t,n.proxy(function(n,t){this._supress[t]=!0},this))};u.prototype.release=function(t){n.each(t,n.proxy(function(n,t){delete this._supress[t]},this))};u.prototype.pointer=function(n){var i={x:null,y:null};return n=n.originalEvent||n||t.event,n=n.touches&&n.touches.length?n.touches[0]:n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,n.pageX?(i.x=n.pageX,i.y=n.pageY):(i.x=n.clientX,i.y=n.clientY),i};u.prototype.isNumeric=function(n){return!isNaN(parseFloat(n))};u.prototype.difference=function(n,t){return{x:n.x-t.x,y:n.y-t.y}};n.fn.owlCarousel=function(t){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var f=n(this),r=f.data("owl.carousel");r||(r=new u(this,"object"==typeof t&&t),f.data("owl.carousel",r),n.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,i){r.register({type:u.Type.Event,name:i});r.$element.on(i+".owl.carousel.core",n.proxy(function(n){n.namespace&&n.relatedTarget!==this&&(this.suppress([i]),r[i].apply(this,[].slice.call(arguments,1)),this.release([i]))},r))}));"string"==typeof t&&"_"!==t.charAt(0)&&r[t].apply(r,i)})};n.fn.owlCarousel.Constructor=u}(window.Zepto||window.jQuery,window,document),function(n,t){var i=function(t){this._core=t;this._interval=null;this._visible=null;this._handlers={"initialized.owl.carousel":n.proxy(function(n){n.namespace&&this._core.settings.autoRefresh&&this.watch()},this)};this._core.options=n.extend({},i.Defaults,this._core.options);this._core.$element.on(this._handlers)};i.Defaults={autoRefresh:!0,autoRefreshInterval:500};i.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=t.setInterval(n.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))};i.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())};i.prototype.destroy=function(){var n,i;t.clearInterval(this._interval);for(n in this._handlers)this._core.$element.off(n,this._handlers[n]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)};n.fn.owlCarousel.Constructor.Plugins.AutoRefresh=i}(window.Zepto||window.jQuery,window,document),function(n,t,i,r){var u=function(t){this._core=t;this._loaded=[];this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":n.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type))for(var i=this._core.settings,f=i.center&&Math.ceil(i.items/2)||i.items,e=i.center&&-1*f||0,u=(t.property&&t.property.value!==r?t.property.value:this._core.current())+e,o=this._core.clones().length,s=n.proxy(function(n,t){this.load(t)},this);e++<f;)this.load(o/2+this._core.relative(u)),o&&n.each(this._core.clones(this._core.relative(u)),s),u++},this)};this._core.options=n.extend({},u.Defaults,this._core.options);this._core.$element.on(this._handlers)};u.Defaults={lazyLoad:!1};u.prototype.load=function(i){var r=this._core.$stage.children().eq(i),u=r&&r.find(".owl-lazy");!u||n.inArray(r.get(0),this._loaded)>-1||(u.each(n.proxy(function(i,r){var e,u=n(r),f=t.devicePixelRatio>1&&u.attr("data-src-retina")||u.attr("data-src");this._core.trigger("load",{element:u,url:f},"lazy");u.is("img")?u.one("load.owl.lazy",n.proxy(function(){u.css("opacity",1);this._core.trigger("loaded",{element:u,url:f},"lazy")},this)).attr("src",f):(e=new Image,e.onload=n.proxy(function(){u.css({"background-image":"url("+f+")",opacity:"1"});this._core.trigger("loaded",{element:u,url:f},"lazy")},this),e.src=f)},this)),this._loaded.push(r.get(0)))};u.prototype.destroy=function(){var n,t;for(n in this.handlers)this._core.$element.off(n,this.handlers[n]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.Lazy=u}(window.Zepto||window.jQuery,window,document),function(n){var t=function(i){this._core=i;this._handlers={"initialized.owl.carousel refreshed.owl.carousel":n.proxy(function(n){n.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":n.proxy(function(n){n.namespace&&this._core.settings.autoHeight&&"position"==n.property.name&&this.update()},this),"loaded.owl.lazy":n.proxy(function(n){n.namespace&&this._core.settings.autoHeight&&n.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)};this._core.options=n.extend({},t.Defaults,this._core.options);this._core.$element.on(this._handlers)};t.Defaults={autoHeight:!1,autoHeightClass:"owl-height"};t.prototype.update=function(){var t=this._core._current,u=t+this._core.settings.items,f=this._core.$stage.children().toArray().slice(t,u),i=[],r=0;n.each(f,function(t,r){i.push(n(r).height())});r=Math.max.apply(null,i);this._core.$stage.parent().height(r).addClass(this._core.settings.autoHeightClass)};t.prototype.destroy=function(){var n,t;for(n in this._handlers)this._core.$element.off(n,this._handlers[n]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.AutoHeight=t}(window.Zepto||window.jQuery,window,document),function(n,t,i){var r=function(t){this._core=t;this._videos={};this._playing=null;this._handlers={"initialized.owl.carousel":n.proxy(function(n){n.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":n.proxy(function(n){n.namespace&&this._core.settings.video&&this.isInFullScreen()&&n.preventDefault()},this),"refreshed.owl.carousel":n.proxy(function(n){n.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":n.proxy(function(n){n.namespace&&"position"===n.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":n.proxy(function(t){if(t.namespace){var i=n(t.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,n(t.content)))}},this)};this._core.options=n.extend({},r.Defaults,this._core.options);this._core.$element.on(this._handlers);this._core.$element.on("click.owl.video",".owl-video-play-icon",n.proxy(function(n){this.play(n)},this))};r.Defaults={video:!1,videoHeight:!1,videoWidth:!1};r.prototype.fetch=function(n,t){var u=function(){return n.attr("data-vimeo-id")?"vimeo":n.attr("data-vzaar-id")?"vzaar":"youtube"}(),i=n.attr("data-vimeo-id")||n.attr("data-youtube-id")||n.attr("data-vzaar-id"),f=n.attr("data-width")||this._core.settings.videoWidth,e=n.attr("data-height")||this._core.settings.videoHeight,r=n.attr("href");if(!r)throw new Error("Missing video URL.");if(i=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),i[3].indexOf("youtu")>-1)u="youtube";else if(i[3].indexOf("vimeo")>-1)u="vimeo";else{if(!(i[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");u="vzaar"}i=i[6];this._videos[r]={type:u,id:i,width:f,height:e};t.attr("data-video",r);this.thumbnail(n,this._videos[r])};r.prototype.thumbnail=function(t,i){var o,s,r,c=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",f=t.find("img"),e="src",h="",l=this._core.settings,u=function(n){s='<div class="owl-video-play-icon"><\/div>';o=l.lazyLoad?'<div class="owl-video-tn '+h+'" '+e+'="'+n+'"><\/div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+n+')"><\/div>';t.after(o);t.after(s)};return t.wrap('<div class="owl-video-wrapper"'+c+"><\/div>"),this._core.settings.lazyLoad&&(e="data-src",h="owl-lazy"),f.length?(u(f.attr(e)),f.remove(),!1):void("youtube"===i.type?(r="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",u(r)):"vimeo"===i.type?n.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(n){r=n[0].thumbnail_large;u(r)}}):"vzaar"===i.type&&n.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(n){r=n.framegrab_url;u(r)}}))};r.prototype.stop=function(){this._core.trigger("stop",null,"video");this._playing.find(".owl-video-frame").remove();this._playing.removeClass("owl-video-playing");this._playing=null;this._core.leave("playing");this._core.trigger("stopped",null,"video")};r.prototype.play=function(t){var u,o=n(t.target),r=o.closest("."+this._core.settings.itemClass),i=this._videos[r.attr("data-video")],f=i.width||"100%",e=i.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),r=this._core.items(this._core.relative(r.index())),this._core.reset(r.index()),"youtube"===i.type?u='<iframe width="'+f+'" height="'+e+'" src="//www.youtube.com/embed/'+i.id+"?autoplay=1&v="+i.id+'" frameborder="0" allowfullscreen><\/iframe>':"vimeo"===i.type?u='<iframe src="//player.vimeo.com/video/'+i.id+'?autoplay=1" width="'+f+'" height="'+e+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>':"vzaar"===i.type&&(u='<iframe frameborder="0"height="'+e+'"width="'+f+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+i.id+'/player?autoplay=true"><\/iframe>'),n('<div class="owl-video-frame">'+u+"<\/div>").insertAfter(r.find(".owl-video")),this._playing=r.addClass("owl-video-playing"))};r.prototype.isInFullScreen=function(){var t=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return t&&n(t).parent().hasClass("owl-video-frame")};r.prototype.destroy=function(){var n,t;this._core.$element.off("click.owl.video");for(n in this._handlers)this._core.$element.off(n,this._handlers[n]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.Video=r}(window.Zepto||window.jQuery,window,document),function(n,t,i,r){var u=function(t){this.core=t;this.core.options=n.extend({},u.Defaults,this.core.options);this.swapping=!0;this.previous=r;this.next=r;this.handlers={"change.owl.carousel":n.proxy(function(n){n.namespace&&"position"==n.property.name&&(this.previous=this.core.current(),this.next=n.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":n.proxy(function(n){n.namespace&&(this.swapping="translated"==n.type)},this),"translate.owl.carousel":n.proxy(function(n){n.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)};this.core.$element.on(this.handlers)};u.Defaults={animateOut:!1,animateIn:!1};u.prototype.swap=function(){if(1===this.core.settings.items&&n.support.animation&&n.support.transition){this.core.speed(0);var t,i=n.proxy(this.clear,this),f=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),r=this.core.settings.animateIn,u=this.core.settings.animateOut;this.core.current()!==this.previous&&(u&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),f.one(n.support.animation.end,i).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(u)),r&&e.one(n.support.animation.end,i).addClass("animated owl-animated-in").addClass(r))}};u.prototype.clear=function(t){n(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut);this.core.onTransitionEnd()};u.prototype.destroy=function(){var n,t;for(n in this.handlers)this.core.$element.off(n,this.handlers[n]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.Animate=u}(window.Zepto||window.jQuery,window,document),function(n,t,i){var r=function(t){this._core=t;this._timeout=null;this._paused=!1;this._handlers={"changed.owl.carousel":n.proxy(function(n){n.namespace&&"settings"===n.property.name?this._core.settings.autoplay?this.play():this.stop():n.namespace&&"position"===n.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":n.proxy(function(n){n.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":n.proxy(function(n,t,i){n.namespace&&this.play(t,i)},this),"stop.owl.autoplay":n.proxy(function(n){n.namespace&&this.stop()},this),"mouseover.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)};this._core.$element.on(this._handlers);this._core.options=n.extend({},r.Defaults,this._core.options)};r.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1};r.prototype.play=function(){this._paused=!1;this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())};r.prototype._getNextTimeout=function(r,u){return this._timeout&&t.clearTimeout(this._timeout),t.setTimeout(n.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||i.hidden||this._core.next(u||this._core.settings.autoplaySpeed)},this),r||this._core.settings.autoplayTimeout)};r.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()};r.prototype.stop=function(){this._core.is("rotating")&&(t.clearTimeout(this._timeout),this._core.leave("rotating"))};r.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)};r.prototype.destroy=function(){var n,t;this.stop();for(n in this._handlers)this._core.$element.off(n,this._handlers[n]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.autoplay=r}(window.Zepto||window.jQuery,window,document),function(n){"use strict";var t=function(i){this._core=i;this._initialized=!1;this._pages=[];this._controls={};this._templates=[];this.$element=this._core.$element;this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to};this._handlers={"prepared.owl.carousel":n.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+n(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"<\/div>")},this),"added.owl.carousel":n.proxy(function(n){n.namespace&&this._core.settings.dotsData&&this._templates.splice(n.position,0,this._templates.pop())},this),"remove.owl.carousel":n.proxy(function(n){n.namespace&&this._core.settings.dotsData&&this._templates.splice(n.position,1)},this),"changed.owl.carousel":n.proxy(function(n){n.namespace&&"position"==n.property.name&&this.draw()},this),"initialized.owl.carousel":n.proxy(function(n){n.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":n.proxy(function(n){n.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)};this._core.options=n.extend({},t.Defaults,this._core.options);this.$element.on(this._handlers)};t.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1};t.prototype.initialize=function(){var i,t=this._core.settings;this._controls.$relative=(t.navContainer?n(t.navContainer):n("<div>").addClass(t.navContainerClass).appendTo(this.$element)).addClass("disabled");this._controls.$previous=n("<"+t.navElement+">").addClass(t.navClass[0]).html(t.navText[0]).prependTo(this._controls.$relative).on("click",n.proxy(function(){this.prev(t.navSpeed)},this));this._controls.$next=n("<"+t.navElement+">").addClass(t.navClass[1]).html(t.navText[1]).appendTo(this._controls.$relative).on("click",n.proxy(function(){this.next(t.navSpeed)},this));t.dotsData||(this._templates=[n("<div>").addClass(t.dotClass).append(n("<span>")).prop("outerHTML")]);this._controls.$absolute=(t.dotsContainer?n(t.dotsContainer):n("<div>").addClass(t.dotsClass).appendTo(this.$element)).addClass("disabled");this._controls.$absolute.on("click","div",n.proxy(function(i){var r=n(i.target).parent().is(this._controls.$absolute)?n(i.target).index():n(i.target).parent().index();i.preventDefault();this.to(r,t.dotsSpeed)},this));for(i in this._overrides)this._core[i]=n.proxy(this[i],this)};t.prototype.destroy=function(){var n,r,t,i;for(n in this._handlers)this.$element.off(n,this._handlers[n]);for(r in this._controls)this._controls[r].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};t.prototype.update=function(){var t,i,f,r=this._core.clones().length/2,o=r+this._core.items().length,u=this._core.maximum(!0),n=this._core.settings,e=n.center||n.autoWidth||n.dotsData?1:n.dotsEach||n.items;if("page"!==n.slideBy&&(n.slideBy=Math.min(n.slideBy,n.items)),n.dots||"page"==n.slideBy)for(this._pages=[],t=r,i=0,f=0;o>t;t++){if(i>=e||0===i){if(this._pages.push({start:Math.min(u,t-r),end:t-r+e-1}),Math.min(u,t-r)===u)break;i=0;++f}i+=this._core.mergers(this._core.relative(t))}};t.prototype.draw=function(){var i,t=this._core.settings,r=this._core.items().length<=t.items,u=this._core.relative(this._core.current()),f=t.loop||t.rewind;this._controls.$relative.toggleClass("disabled",!t.nav||r);t.nav&&(this._controls.$previous.toggleClass("disabled",!f&&u<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&u>=this._core.maximum(!0)));this._controls.$absolute.toggleClass("disabled",!t.dots||r);t.dots&&(i=this._pages.length-this._controls.$absolute.children().length,t.dotsData&&0!==i?this._controls.$absolute.html(this._templates.join("")):i>0?this._controls.$absolute.append(new Array(i+1).join(this._templates[0])):0>i&&this._controls.$absolute.children().slice(i).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(n.inArray(this.current(),this._pages)).addClass("active"))};t.prototype.onTrigger=function(t){var i=this._core.settings;t.page={index:n.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}};t.prototype.current=function(){var t=this._core.relative(this._core.current());return n.grep(this._pages,n.proxy(function(n){return n.start<=t&&n.end>=t},this)).pop()};t.prototype.getPosition=function(t){var i,r,u=this._core.settings;return"page"==u.slideBy?(i=n.inArray(this.current(),this._pages),r=this._pages.length,t?++i:--i,i=this._pages[(i%r+r)%r].start):(i=this._core.relative(this._core.current()),r=this._core.items().length,t?i+=u.slideBy:i-=u.slideBy),i};t.prototype.next=function(t){n.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)};t.prototype.prev=function(t){n.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)};t.prototype.to=function(t,i,r){var u;!r&&this._pages.length?(u=this._pages.length,n.proxy(this._overrides.to,this._core)(this._pages[(t%u+u)%u].start,i)):n.proxy(this._overrides.to,this._core)(t,i)};n.fn.owlCarousel.Constructor.Plugins.Navigation=t}(window.Zepto||window.jQuery,window,document),function(n,t,i,r){"use strict";var u=function(i){this._core=i;this._hashes={};this.$element=this._core.$element;this._handlers={"initialized.owl.carousel":n.proxy(function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&n(t).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":n.proxy(function(t){if(t.namespace){var i=n(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=t.content}},this),"changed.owl.carousel":n.proxy(function(i){if(i.namespace&&"position"===i.property.name){var u=this._core.items(this._core.relative(this._core.current())),r=n.map(this._hashes,function(n,t){return n===u?t:null}).join();if(!r||t.location.hash.slice(1)===r)return;t.location.hash=r}},this)};this._core.options=n.extend({},u.Defaults,this._core.options);this.$element.on(this._handlers);n(t).on("hashchange.owl.navigation",n.proxy(function(){var i=t.location.hash.substring(1),u=this._core.$stage.children(),n=this._hashes[i]&&u.index(this._hashes[i]);n!==r&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)},this))};u.Defaults={URLhashListener:!1};u.prototype.destroy=function(){var i,r;n(t).off("hashchange.owl.navigation");for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(r in Object.getOwnPropertyNames(this))"function"!=typeof this[r]&&(this[r]=null)};n.fn.owlCarousel.Constructor.Plugins.Hash=u}(window.Zepto||window.jQuery,window,document),function(n,t,i,r){function u(t,i){var u=!1,f=t.charAt(0).toUpperCase()+t.slice(1);return n.each((t+" "+h.join(f+" ")+f).split(" "),function(n,t){if(s[t]!==r)return(u=i?t:!0,!1)}),u}function e(n){return u(n,!0)}var s=n("<support>").get(0).style,h="Webkit Moz O ms".split(" "),o={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},f={csstransforms:function(){return!!u("transform")},csstransforms3d:function(){return!!u("perspective")},csstransitions:function(){return!!u("transition")},cssanimations:function(){return!!u("animation")}};f.csstransitions()&&(n.support.transition=new String(e("transition")),n.support.transition.end=o.transition.end[n.support.transition]);f.cssanimations()&&(n.support.animation=new String(e("animation")),n.support.animation.end=o.animation.end[n.support.animation]);f.csstransforms()&&(n.support.transform=new String(e("transform")),n.support.transform3d=f.csstransforms3d())}(window.Zepto||window.jQuery,window,document)