/*! For license information please see app.js.LICENSE.txt */ (()=>{var __webpack_modules__={1780:()=>{!function(e){"use strict";void 0===e.oc&&(e.oc={});var t="oc-loading";e(document).on("ajaxSetup","[data-request][data-request-flash]",(function(t,n){n.options.handleErrorMessage=function(t){e.oc.flashMsg({text:t,class:"error"})},n.options.handleFlashMessage=function(t,n){e.oc.flashMsg({text:t,class:n})}})),e(document).on("ajaxValidation","[data-request][data-request-validate]",(function(t,n,i,r){var s,a=e(this).closest("form"),o=e("[data-validate-error]",a),u=[];if(e.each(r,(function(t,n){s=e('[data-validate-for="'+t+'"]',a),u=e.merge(u,n),s.length&&(s.text().length&&1!=s.data("emptyMode")||s.data("emptyMode",!0).text(n.join(", ")),s.addClass("visible"))})),o.length&&(o=e("[data-validate-error]",a)),o.length){var d=e("[data-message]",o);if(o.addClass("visible"),d.length){var l=d.first();e.each(u,(function(e,t){l.clone().text(t).insertAfter(l)})),d.remove()}else o.text(i)}a.one("ajaxError",(function(e){e.preventDefault()}))})),e(document).on("ajaxPromise","[data-request][data-request-validate]",(function(){var t=e(this).closest("form");e("[data-validate-for]",t).removeClass("visible"),e("[data-validate-error]",t).removeClass("visible")})),e(document).on("ajaxPromise","[data-request]",(function(){var n=e(this);void 0!==n.data("attach-loading")&&n.addClass(t).prop("disabled",!0),n.is("form")&&e("[data-attach-loading]",n).addClass(t).prop("disabled",!0)})).on("ajaxFail ajaxDone","[data-request]",(function(){var n=e(this);void 0!==n.data("attach-loading")&&n.removeClass(t).prop("disabled",!1),n.is("form")&&e("[data-attach-loading]",n).removeClass(t).prop("disabled",!1)}));var n=function(){var t=this;this.counter=0,this.indicator=e("
").addClass("stripe-loading-indicator loaded").append(e("
").addClass("stripe")).append(e("
").addClass("stripe-loaded")),this.stripe=this.indicator.find(".stripe"),e(document).ready((function(){e(document.body).append(t.indicator)}))};n.prototype.show=function(){this.counter++,this.stripe.after(this.stripe=this.stripe.clone()).remove(),this.counter>1||(this.indicator.removeClass("loaded"),e(document.body).addClass("oc-loading"))},n.prototype.hide=function(t){this.counter--,void 0!==t&&t&&(this.counter=0),this.counter<=0&&(this.indicator.addClass("loaded"),e(document.body).removeClass("oc-loading"))},e.oc.stripeLoadIndicator=new n,e(document).on("ajaxPromise","[data-request]",(function(t){t.stopPropagation(),e.oc.stripeLoadIndicator.show();var n=e(this);e(window).one("ajaxUpdateComplete",(function(){0===n.closest("html").length&&e.oc.stripeLoadIndicator.hide()}))})).on("ajaxFail ajaxDone","[data-request]",(function(t){t.stopPropagation(),e.oc.stripeLoadIndicator.hide()}));var i=function t(n,i){n=e.extend({},t.DEFAULTS,n);var r=e(i);e("body > p.flash-message").remove(),0==r.length&&(r=e("

").addClass(n.class).html(n.text)),r.addClass("flash-message fade").attr("data-control",null).on("click","button",o).on("click",o).append(''),e(document.body).append(r),setTimeout((function(){r.addClass("in")}),100);var s=window.setTimeout(o,1e3*n.interval);function a(){r.remove()}function o(){window.clearInterval(s),r.removeClass("in"),e.support.transition&&r.hasClass("fade")?r.one(e.support.transition.end,a).emulateTransitionEnd(500):a()}};i.DEFAULTS={class:"success",text:"Default text",interval:5},void 0===e.oc&&(e.oc={}),e.oc.flashMsg=i,e(document).render((function(){e("[data-control=flash-message]").each((function(){e.oc.flashMsg(e(this).data(),this)}))}))}(window.jQuery)},4687:()=>{function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}if(void 0===window.jQuery)throw new Error("The jQuery library is not loaded. The OctoberCMS framework cannot be initialized.");if(void 0!==window.jQuery.request)throw new Error("The OctoberCMS framework is already loaded.");!function($){"use strict";var Request=function Request(element,handler,options){var $el=this.$el=$(element);if(this.options=options||{},void 0===handler)throw new Error("The request handler name is not specified.");if(!handler.match(/^(?:\w+\:{2})?on*/))throw new Error('Invalid handler name. The correct handler name format is: "onEvent".');var $form=options.form?$(options.form):$el.closest("form"),$triggerEl=$form.length?$form:$el,context={handler,options};if(void 0!==options.browserValidate&&"function"==typeof document.createElement("input").reportValidity&&$form&&$form[0]&&!$form[0].checkValidity())return $form[0].reportValidity(),!1;$el.trigger("ajaxSetup",[context]);var _event=jQuery.Event("oc.beforeRequest");if($triggerEl.trigger(_event,context),!_event.isDefaultPrevented()){var loading=void 0!==options.loading?options.loading:null,url=void 0!==options.url?options.url:window.location.href,isRedirect=void 0!==options.redirect&&options.redirect.length,useFlash=void 0!==options.flash,useFiles=void 0!==options.files;useFiles&&"undefined"==typeof FormData&&(console.warn("This browser does not support file uploads via FormData"),useFiles=!1),"string"==$.type(loading)&&(loading=$(loading));var requestHeaders={"X-OCTOBER-REQUEST-HANDLER":handler,"X-OCTOBER-REQUEST-PARTIALS":this.extractPartials(options.update)};useFlash&&(requestHeaders["X-OCTOBER-REQUEST-FLASH"]=1);var csrfToken=getXSRFToken();csrfToken&&(requestHeaders["X-XSRF-TOKEN"]=csrfToken);var requestData,inputName,data={};$.each($el.parents("[data-request-data]").toArray().reverse(),(function(){$.extend(data,paramToObj("data-request-data",$(this).data("request-data")))})),$el.is(":input")&&!$form.length&&(inputName=$el.attr("name"),void 0!==inputName&&void 0===options.data[inputName]&&(options.data[inputName]=$el.val())),void 0===options.data||$.isEmptyObject(options.data)||$.extend(data,options.data),useFiles?(requestData=new FormData($form.length?$form.get(0):void 0),$el.is(":file")&&inputName&&($.each($el.prop("files"),(function(){requestData.append(inputName,this)})),delete data[inputName]),$.each(data,(function(e){"undefined"!=typeof Blob&&this instanceof Blob&&this.filename?requestData.append(e,this,this.filename):requestData.append(e,this)}))):requestData=[$form.serialize(),$.param(data)].filter(Boolean).join("&");var requestOptions={url,crossDomain:!1,global:options.ajaxGlobal,context,headers:requestHeaders,success:function success(data,textStatus,jqXHR){if(!1!==this.options.beforeUpdate.apply(this,[data,textStatus,jqXHR])&&(!options.evalBeforeUpdate||!1!==eval("(function($el, context, data, textStatus, jqXHR) {"+options.evalBeforeUpdate+"}.call($el.get(0), $el, context, data, textStatus, jqXHR))"))){var _event=jQuery.Event("ajaxBeforeUpdate");if($triggerEl.trigger(_event,[context,data,textStatus,jqXHR]),!_event.isDefaultPrevented()){useFlash&&data.X_OCTOBER_FLASH_MESSAGES&&$.each(data.X_OCTOBER_FLASH_MESSAGES,(function(e,t){requestOptions.handleFlashMessage(t,e)}));var updatePromise=requestOptions.handleUpdateResponse(data,textStatus,jqXHR);return updatePromise.done((function(){$triggerEl.trigger("ajaxSuccess",[context,data,textStatus,jqXHR]),options.evalSuccess&&eval("(function($el, context, data, textStatus, jqXHR) {"+options.evalSuccess+"}.call($el.get(0), $el, context, data, textStatus, jqXHR))")})),updatePromise}}},error:function error(jqXHR,textStatus,errorThrown){var errorMsg,updatePromise=$.Deferred();if(!(void 0!==window.ocUnloading&&window.ocUnloading||"abort"==errorThrown))return isRedirect=!1,options.redirect=null,406==jqXHR.status&&jqXHR.responseJSON?(errorMsg=jqXHR.responseJSON.X_OCTOBER_ERROR_MESSAGE,updatePromise=requestOptions.handleUpdateResponse(jqXHR.responseJSON,textStatus,jqXHR)):(errorMsg=jqXHR.responseText?jqXHR.responseText:jqXHR.statusText,updatePromise.resolve()),updatePromise.done((function(){$el.data("error-message",errorMsg);var _event=jQuery.Event("ajaxError");$triggerEl.trigger(_event,[context,errorMsg,textStatus,jqXHR]),_event.isDefaultPrevented()||options.evalError&&!1===eval("(function($el, context, errorMsg, textStatus, jqXHR) {"+options.evalError+"}.call($el.get(0), $el, context, errorMsg, textStatus, jqXHR))")||requestOptions.handleErrorMessage(errorMsg)})),updatePromise},complete:function complete(data,textStatus,jqXHR){$triggerEl.trigger("ajaxComplete",[context,data,textStatus,jqXHR]),options.evalComplete&&eval("(function($el, context, data, textStatus, jqXHR) {"+options.evalComplete+"}.call($el.get(0), $el, context, data, textStatus, jqXHR))")},handleConfirmMessage:function(e){var t=jQuery.Event("ajaxConfirmMessage");return t.promise=$.Deferred(),void 0!==$(window).triggerHandler(t,[e])?(t.promise.done((function(){options.confirm=null,new Request(element,handler,options)})),!1):t.isDefaultPrevented()?void 0:e?confirm(e):void 0},handleErrorMessage:function(e){var t=jQuery.Event("ajaxErrorMessage");$(window).trigger(t,[e]),t.isDefaultPrevented()||e&&alert(e)},handleValidationMessage:function(e,t){$triggerEl.trigger("ajaxValidation",[context,e,t]);var n=!0;$.each(t,(function(e,t){e=e.replace(/\.(\w+)/g,"[$1]");var i=$form.find('[name="'+e+'"], [name="'+e+'[]"], [name$="['+e+']"], [name$="['+e+'][]"]').filter(":enabled").first();if(i.length>0){var r=jQuery.Event("ajaxInvalidField");$(window).trigger(r,[i.get(0),e,t,n]),n&&(r.isDefaultPrevented()||i.focus(),n=!1)}}))},handleFlashMessage:function(e,t){},handleRedirectResponse:function(e){window.location.assign(e),$el.trigger("ajaxDone")},handleUpdateResponse:function(e,t,n){var i=$.Deferred().done((function(){for(var i in e){var r=options.update[i]?options.update[i]:i;"string"==$.type(r)&&"@"==r.charAt(0)?$(r.substring(1)).append(e[i]).trigger("ajaxUpdate",[context,e,t,n]):"string"==$.type(r)&&"^"==r.charAt(0)?$(r.substring(1)).prepend(e[i]).trigger("ajaxUpdate",[context,e,t,n]):($(r).trigger("ajaxBeforeReplace"),$(r).html(e[i]).trigger("ajaxUpdate",[context,e,t,n]))}setTimeout((function(){$(window).trigger("ajaxUpdateComplete",[context,e,t,n]).trigger("resize")}),0)}));return e.X_OCTOBER_REDIRECT&&(options.redirect=e.X_OCTOBER_REDIRECT,isRedirect=!0),isRedirect&&requestOptions.handleRedirectResponse(options.redirect),e.X_OCTOBER_ERROR_FIELDS&&requestOptions.handleValidationMessage(e.X_OCTOBER_ERROR_MESSAGE,e.X_OCTOBER_ERROR_FIELDS),e.X_OCTOBER_ASSETS?assetManager.load(e.X_OCTOBER_ASSETS,$.proxy(i.resolve,i)):i.resolve(),i}};if(useFiles&&(requestOptions.processData=requestOptions.contentType=!1),context.success=requestOptions.success,context.error=requestOptions.error,context.complete=requestOptions.complete,requestOptions=$.extend(requestOptions,options),requestOptions.data=requestData,!options.confirm||requestOptions.handleConfirmMessage(options.confirm))return loading&&loading.show(),$(window).trigger("ajaxBeforeSend",[context]),$el.trigger("ajaxPromise",[context]),$.ajax(requestOptions).fail((function(e,t,n){isRedirect||$el.trigger("ajaxFail",[context,t,e]),loading&&loading.hide()})).done((function(e,t,n){isRedirect||$el.trigger("ajaxDone",[context,e,t,n]),loading&&loading.hide()})).always((function(e,t,n){$el.trigger("ajaxAlways",[context,e,t,n])}))}};Request.DEFAULTS={update:{},type:"POST",beforeUpdate:function(e,t,n){},evalBeforeUpdate:null,evalSuccess:null,evalError:null,evalComplete:null,ajaxGlobal:!1},Request.prototype.extractPartials=function(e){var t=[];for(var n in e)t.push(n);return t.join("&")};var old=$.fn.request;function paramToObj(e,t){if(void 0===t&&(t=""),"object"==_typeof(t))return t;try{return ocJSON("{"+t+"}")}catch(t){throw new Error("Error parsing the "+e+" attribute value. "+t)}}function getXSRFToken(){var e=null;if(document.cookie&&""!=document.cookie)for(var t=document.cookie.split(";"),n=0;n="0"&&e[t]<="9"){for(n="",i=t;i="0"&&e[i]<="9"))return{originLength:n.length,body:n};n+=e[i]}throw new Error("Broken JSON number body near "+n)}if("{"===e[t]||"["===e[t]){var r=[e[t]];for(n=e[t],i=t+1;i=0?t-5:0,50))}function i(e){return" "===e||"\n"===e||"\t"===e}function r(e){if(!(e=e.trim()).length)throw new Error("Broken JSON object.");for(var s="";e&&","===e[0];)e=e.substr(1);if('"'===e[0]||"'"===e[0]){if(e[e.length-1]!==e[0])throw new Error("Invalid string JSON object.");for(var a='"',o=1;o="a"&&u[0]<="z"||u[0]>="A"&&u[0]<="Z"||"_"===u[0]||u[0]>="0"&&u[0]<="9"||"$"===u[0]||u.charCodeAt(0)>255))){var c;s+='"',s+=c=t(e,o),s+='"',o+=c.length-1,l="afterKey"}else if("afterKey"===l&&":"===e[o])s+=":",l=":";else if(":"===l){o=o+(a=n(e,o)).originLength-1,s+=r(a.body),l="afterBody"}else if("afterBody"===l||"needKey"===l){for(var h=o;","===e[h]||i(e[h]);)h++;if("}"===e[h]&&h===e.length-1){for(;","===s[s.length-1];)s=s.substr(0,s.length-1);return s+="}"}h!==o&&"{"!==s&&(s+=",",l="needKey",o=h-1)}}else s+='"'+(c=t(e,o+1,e[o]))+'"',o+=c.length,o+=1,l="afterKey"}throw new Error("Broken JSON object near "+s)}if("["===e[0]){for(s="[",l="needBody",o=1;o"+e+"

",null,!1));return t.find("*").each((function(){var e;e=this,$.each(e.attributes,(function(){var t=this.name,n=this.value;0!=t.indexOf("on")&&0!=n.indexOf("javascript:")||$(e).removeAttr(t)}))})),t.html()}e.ocSanitize=function(e){return t(e)}}(window)},5612:(e,t,n)=>{window.$=window.jQuery=n(9755),n(9342)},9342:(e,t,n)=>{"use strict";n.r(t);var i=n(6612),r=n.n(i),s=n(1628),a=n.n(s);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function g(e,t,n){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=p(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function v(e,t,n,i){return(v="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,i){var r,s=p(e,t);if(s){if((r=Object.getOwnPropertyDescriptor(s,t)).set)return r.set.call(i,n),!0;if(!r.writable)return!1}if(r=Object.getOwnPropertyDescriptor(i,t)){if(!r.writable)return!1;r.value=n,Object.defineProperty(i,t,r)}else!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(i,t,n);return!0})(e,t,n,i)}function y(e,t,n,i,r){if(!v(e,t,n,i||e)&&r)throw new Error("failed to set property");return n}function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],i=!0,r=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(i=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,s=e}finally{try{i||null==o.return||o.return()}finally{if(r)throw s}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function w(e){return"string"==typeof e||e instanceof String}var L="NONE",k="LEFT",Y="FORCE_LEFT",b="RIGHT",x="FORCE_RIGHT";function D(e){switch(e){case k:return Y;case b:return x;default:return e}}function T(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function S(e,t){if(t===e)return!0;var n,i=Array.isArray(t),r=Array.isArray(e);if(i&&r){if(t.length!=e.length)return!1;for(n=0;n0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;u(this,e),this.value=t,this.from=n,this.stop=i}return l(e,[{key:"toString",value:function(){return this.value}},{key:"extend",value:function(e){this.value+=String(e)}},{key:"appendTo",value:function(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}},{key:"shiftBefore",value:function(e){if(this.from>=e||!this.value.length)return"";var t=this.value[0];return this.value=this.value.slice(1),t}},{key:"state",get:function(){return{value:this.value,from:this.from,stop:this.stop}},set:function(e){Object.assign(this,e)}}]),e}();const E=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new e.InputMask(t,n)};var A=function(){function e(t){u(this,e),this._value="",this._update(Object.assign({},e.DEFAULTS,{},t)),this.isInitialized=!0}return l(e,[{key:"updateOptions",value:function(e){Object.keys(e).length&&this.withValueRefresh(this._update.bind(this,e))}},{key:"_update",value:function(e){Object.assign(this,e)}},{key:"reset",value:function(){this._value=""}},{key:"resolve",value:function(e){return this.reset(),this.append(e,{input:!0},""),this.doCommit(),this.value}},{key:"nearestInputPos",value:function(e,t){return e}},{key:"extractInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(e,t)}},{key:"extractTail",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return new j(this.extractInput(e,t),e)}},{key:"appendTail",value:function(e){return w(e)&&(e=new j(String(e))),e.appendTo(this)}},{key:"_appendCharRaw",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e=this.doPrepare(e,t))?(this._value+=e,new H({inserted:e,rawInserted:e})):new H}},{key:"_appendChar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=this.state,r=this._appendCharRaw(e,t);if(r.inserted){var s,a=!1!==this.doValidate(t);if(a&&null!=n){var o=this.state;this.overwrite&&(s=n.state,n.shiftBefore(this.value.length));var u=this.appendTail(n);(a=u.rawInserted===n.toString())&&u.inserted&&(this.state=o)}a||(r=new H,this.state=i,n&&s&&(n.state=s))}return r}},{key:"_appendPlaceholder",value:function(){return new H}},{key:"append",value:function(e,t,n){if(!w(e))throw new Error("value should be string");var i=new H,r=w(n)?new j(String(n)):n;t.tail&&(t._beforeTailState=this.state);for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this._value=this.value.slice(0,e)+this.value.slice(t),new H}},{key:"withValueRefresh",value:function(e){if(this._refreshing||!this.isInitialized)return e();this._refreshing=!0;var t=this.rawInputValue,n=this.value,i=e();return this.rawInputValue=t,this.value!==n&&0===n.indexOf(this.value)&&this.append(n.slice(this.value.length),{},""),delete this._refreshing,i}},{key:"runIsolated",value:function(e){if(this._isolated||!this.isInitialized)return e(this);this._isolated=!0;var t=this.state,n=e(this);return this.state=t,delete this._isolated,n}},{key:"doPrepare",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.prepare?this.prepare(e,this,t):e}},{key:"doValidate",value:function(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}},{key:"doCommit",value:function(){this.commit&&this.commit(this.value,this)}},{key:"doFormat",value:function(e){return this.format?this.format(e,this):e}},{key:"doParse",value:function(e){return this.parse?this.parse(e,this):e}},{key:"splice",value:function(e,t,n,i){var r=e+t,s=this.extractTail(r),a=this.nearestInputPos(e,i);return new H({tailShift:a-e}).aggregate(this.remove(a)).aggregate(this.append(n,{input:!0},s))}},{key:"state",get:function(){return{_value:this.value}},set:function(e){this._value=e._value}},{key:"value",get:function(){return this._value},set:function(e){this.resolve(e)}},{key:"unmaskedValue",get:function(){return this.value},set:function(e){this.reset(),this.append(e,{},""),this.doCommit()}},{key:"typedValue",get:function(){return this.doParse(this.value)},set:function(e){this.value=this.doFormat(e)}},{key:"rawInputValue",get:function(){return this.extractInput(0,this.value.length,{raw:!0})},set:function(e){this.reset(),this.append(e,{raw:!0},""),this.doCommit()}},{key:"isComplete",get:function(){return!0}}]),e}();A.DEFAULTS={format:function(e){return e},parse:function(e){return e}},E.Masked=A;const O=A;function P(e){if(null==e)throw new Error("mask property should be defined");return e instanceof RegExp?E.MaskedRegExp:w(e)?E.MaskedPattern:e instanceof Date||e===Date?E.MaskedDate:e instanceof Number||"number"==typeof e||e===Number?E.MaskedNumber:Array.isArray(e)||e===Array?E.MaskedDynamic:E.Masked&&e.prototype instanceof E.Masked?e:e instanceof Function?E.MaskedFunction:e instanceof E.Masked?e.constructor:(console.warn("Mask not found for mask",e),E.Masked)}function F(e){if(E.Masked&&e instanceof E.Masked)return e;var t=(e=Object.assign({},e)).mask;if(E.Masked&&t instanceof E.Masked)return t;var n=P(t);if(!n)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new n(e)}E.createMask=F;const B=F;var W={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};const N=function(){function e(t){u(this,e);var n=t.mask,i=_(t,["mask"]);this.masked=B({mask:n}),Object.assign(this,i)}return l(e,[{key:"reset",value:function(){this._isFilled=!1,this.masked.reset()}},{key:"remove",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return 0===e&&t>=1?(this._isFilled=!1,this.masked.remove(e,t)):new H}},{key:"_appendChar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._isFilled)return new H;var n=this.masked.state,i=this.masked._appendChar(e,t);return i.inserted&&!1===this.doValidate(t)&&(i.inserted=i.rawInserted="",this.masked.state=n),i.inserted||this.isOptional||this.lazy||t.input||(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this._isFilled=Boolean(i.inserted),i}},{key:"append",value:function(){var e;return(e=this.masked).append.apply(e,arguments)}},{key:"_appendPlaceholder",value:function(){var e=new H;return this._isFilled||this.isOptional||(this._isFilled=!0,e.inserted=this.placeholderChar),e}},{key:"extractTail",value:function(){var e;return(e=this.masked).extractTail.apply(e,arguments)}},{key:"appendTail",value:function(){var e;return(e=this.masked).appendTail.apply(e,arguments)}},{key:"extractInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(e,t,n)}},{key:"nearestInputPos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L,n=0,i=this.value.length,r=Math.min(Math.max(e,n),i);switch(t){case k:case Y:return this.isComplete?r:n;case b:case x:return this.isComplete?r:i;case L:default:return r}}},{key:"doValidate",value:function(){var e,t;return(e=this.masked).doValidate.apply(e,arguments)&&(!this.parent||(t=this.parent).doValidate.apply(t,arguments))}},{key:"doCommit",value:function(){this.masked.doCommit()}},{key:"value",get:function(){return this.masked.value||(this._isFilled&&!this.isOptional?this.placeholderChar:"")}},{key:"unmaskedValue",get:function(){return this.masked.unmaskedValue}},{key:"isComplete",get:function(){return Boolean(this.masked.value)||this.isOptional}},{key:"state",get:function(){return{masked:this.masked.state,_isFilled:this._isFilled}},set:function(e){this.masked.state=e.masked,this._isFilled=e._isFilled}}]),e}();const I=function(){function e(t){u(this,e),Object.assign(this,t),this._value=""}return l(e,[{key:"reset",value:function(){this._isRawInput=!1,this._value=""}},{key:"remove",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new H}},{key:"nearestInputPos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L,n=0,i=this._value.length;switch(t){case k:case Y:return n;case L:case b:case x:default:return i}}},{key:"extractInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.raw&&this._isRawInput&&this._value.slice(e,t)||""}},{key:"_appendChar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new H;if(this._value)return n;var i=this.char===e[0],r=i&&(this.isUnmasking||t.input||t.raw)&&!t.tail;return r&&(n.rawInserted=this.char),this._value=n.inserted=this.char,this._isRawInput=r&&(t.raw||t.input),n}},{key:"_appendPlaceholder",value:function(){var e=new H;return this._value||(this._value=e.inserted=this.char),e}},{key:"extractTail",value:function(){arguments.length>1&&void 0!==arguments[1]||this.value.length;return new j("")}},{key:"appendTail",value:function(e){return w(e)&&(e=new j(String(e))),e.appendTo(this)}},{key:"append",value:function(e,t,n){var i=this._appendChar(e,t);return null!=n&&(i.tailShift+=this.appendTail(n).tailShift),i}},{key:"doCommit",value:function(){}},{key:"value",get:function(){return this._value}},{key:"unmaskedValue",get:function(){return this.isUnmasking?this.value:""}},{key:"isComplete",get:function(){return!0}},{key:"state",get:function(){return{_value:this._value,_isRawInput:this._isRawInput}},set:function(e){Object.assign(this,e)}}]),e}();const z=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;u(this,e),this.chunks=t,this.from=n}return l(e,[{key:"toString",value:function(){return this.chunks.map(String).join("")}},{key:"extend",value:function(t){if(String(t)){w(t)&&(t=new j(String(t)));var n=this.chunks[this.chunks.length-1],i=n&&(n.stop===t.stop||null==t.stop)&&t.from===n.from+n.toString().length;if(t instanceof j)i?n.extend(t.toString()):this.chunks.push(t);else if(t instanceof e){if(null==t.stop)for(var r;t.chunks.length&&null==t.chunks[0].stop;)(r=t.chunks.shift()).from+=t.from,this.extend(r);t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}}},{key:"appendTo",value:function(t){if(!(t instanceof E.MaskedPattern))return new j(this.toString()).appendTo(t);for(var n=new H,i=0;i=0)&&n.aggregate(t._appendPlaceholder(a)),o=r instanceof e&&t._blocks[a]),o){var u=o.appendTail(r);u.skip=!1,n.aggregate(u),t._value+=u.inserted;var d=r.toString().slice(u.rawInserted.length);d&&n.aggregate(t.append(d,{tail:!0}))}else n.aggregate(t.append(r.toString(),{tail:!0}))}return n}},{key:"shiftBefore",value:function(e){if(this.from>=e||!this.chunks.length)return"";for(var t=e-this.from,n=0;n=0}),g(h(t.prototype),"_update",this).call(this,e)}}]),t}(O);E.MaskedRegExp=R;var q=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u(this,t),e.definitions=Object.assign({},W,e.definitions),f(this,h(t).call(this,Object.assign({},t.DEFAULTS,{},e)))}return c(t,e),l(t,[{key:"_update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.definitions=Object.assign({},this.definitions,e.definitions),g(h(t.prototype),"_update",this).call(this,e),this._rebuildMask()}},{key:"_rebuildMask",value:function(){var e=this,n=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};var i=this.mask;if(i&&n)for(var r=!1,s=!1,a=0;a1&&void 0!==arguments[1]?arguments[1]:{};e=this.doPrepare(e,t);var n=this._mapPosToBlock(this.value.length),i=new H;if(!n)return i;for(var r=n.index;;++r){var s=this._blocks[r];if(!s)break;var a=s._appendChar(e,t),o=a.skip;if(i.aggregate(a),o||a.rawInserted)break}return i}},{key:"extractTail",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=new z;return t===n||this._forEachBlocksInRange(t,n,(function(t,n,r,s){var a=t.extractTail(r,s);a.stop=e._findStopBefore(n),a.from=e._blockStartPos(n),a instanceof z&&(a.blockIndex=n),i.extend(a)})),i}},{key:"extractInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return"";var i="";return this._forEachBlocksInRange(e,t,(function(e,t,r,s){i+=e.extractInput(r,s,n)})),i}},{key:"_findStopBefore",value:function(e){for(var t,n=0;n1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0,i=this._mapPosToBlock(e);if(i){var r=this._mapPosToBlock(t),s=r&&i.index===r.index,a=i.offset,o=r&&s?r.offset:this._blocks[i.index].value.length;if(n(this._blocks[i.index],i.index,a,o),r&&!s){for(var u=i.index+1;u0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=g(h(t.prototype),"remove",this).call(this,e,n);return this._forEachBlocksInRange(e,n,(function(e,t,n,r){i.aggregate(e.remove(n,r))})),i}},{key:"nearestInputPos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L,n=this._mapPosToBlock(e)||{index:0,offset:0},i=n.offset,r=n.index,s=this._blocks[r];if(!s)return e;var a=i;0!==a&&a0){var l=d-1,c=this._blocks[l],h=c.nearestInputPos(0,L);if(!c.value.length||h!==c.value.length)return this._blockStartPos(d)}for(var m=d,_=m;_=0;--g){var v=this._blocks[g],y=v.nearestInputPos(0,L);if(!v.value.length||y!==v.value.length)return this._blockStartPos(g)+v.value.length}return e}if(t===k||t===Y){for(var M,w=d;w=0;--j){var E=this._blocks[j],A=E.nearestInputPos(E.value.length,Y);if(E.value&&0===A||(C=j),0!==A){if(A!==E.value.length)return this._blockStartPos(j)+A;H=j;break}}if(t===k)for(var O=H+1;O<=Math.min(d,this._blocks.length-1);++O){var P=this._blocks[O],F=P.nearestInputPos(0,L),B=this._blockStartPos(O)+F;if(B>e)break;if(F!==P.value.length)return B}if(H>=0)return this._blockStartPos(H)+this._blocks[H].value.length;if(t===Y||this.lazy&&!this.extractInput()&&!V(this._blocks[d]))return 0;if(null!=C)return this._blockStartPos(C);for(var $=d;$=0;--X){var K=this._blocks[X],Q=K.nearestInputPos(K.value.length,k);if(0!==Q){var ee=this._blockStartPos(X)+Q;if(ee>=e)return ee;break}}}return e}},{key:"maskedBlock",value:function(e){return this.maskedBlocks(e)[0]}},{key:"maskedBlocks",value:function(e){var t=this,n=this._maskedBlocks[e];return n?n.map((function(e){return t._blocks[e]})):[]}},{key:"state",get:function(){return Object.assign({},g(h(t.prototype),"state",this),{_blocks:this._blocks.map((function(e){return e.state}))})},set:function(e){var n=e._blocks,i=_(e,["_blocks"]);this._blocks.forEach((function(e,t){return e.state=n[t]})),y(h(t.prototype),"state",i,this,!0)}},{key:"isComplete",get:function(){return this._blocks.every((function(e){return e.isComplete}))}},{key:"unmaskedValue",get:function(){return this._blocks.reduce((function(e,t){return e+t.unmaskedValue}),"")},set:function(e){y(h(t.prototype),"unmaskedValue",e,this,!0)}},{key:"value",get:function(){return this._blocks.reduce((function(e,t){return e+t.value}),"")},set:function(e){y(h(t.prototype),"value",e,this,!0)}}]),t}(O);function V(e){if(!e)return!1;var t=e.value;return!t||e.nearestInputPos(0,L)!==t.length}q.DEFAULTS={lazy:!0,placeholderChar:"_"},q.STOP_CHAR="`",q.ESCAPE_CHAR="\\",q.InputDefinition=N,q.FixedDefinition=I,E.MaskedPattern=q;const J=q;var U=function(e){function t(){return u(this,t),f(this,h(t).apply(this,arguments))}return c(t,e),l(t,[{key:"_update",value:function(e){e=Object.assign({to:this.to||0,from:this.from||0},e);var n=String(e.to).length;null!=e.maxLength&&(n=Math.max(n,e.maxLength)),e.maxLength=n;for(var i=String(e.from).padStart(n,"0"),r=String(e.to).padStart(n,"0"),s=0;s1&&void 0!==arguments[1]?arguments[1]:{};if(e=g(h(t.prototype),"doPrepare",this).call(this,e,n).replace(/\D/g,""),!this.autofix)return e;for(var i=String(this.from).padStart(this.maxLength,"0"),r=String(this.to).padStart(this.maxLength,"0"),s=this.value,a="",o=0;othis.to?a+=r[u.length-1]:a+=e[o]}return a}},{key:"doValidate",value:function(){var e,n=this.value,i=n.search(/[^0]/);if(-1===i&&n.length<=this._matchFrom)return!0;for(var r=this.boundaries(n),s=M(r,2),a=s[0],o=s[1],u=arguments.length,d=new Array(u),l=0;l=0}},{key:"date",get:function(){return this.typedValue},set:function(e){this.typedValue=e}},{key:"typedValue",get:function(){return this.isComplete?g(h(t.prototype),"typedValue",this):null},set:function(e){y(h(t.prototype),"typedValue",e,this,!0)}}]),t}(J);Z.DEFAULTS={pattern:"d{.}`m{.}`Y",format:function(e){return[String(e.getDate()).padStart(2,"0"),String(e.getMonth()+1).padStart(2,"0"),e.getFullYear()].join(".")},parse:function(e){var t=M(e.split("."),3),n=t[0],i=t[1],r=t[2];return new Date(r,i-1,n)}},Z.GET_DEFAULT_BLOCKS=function(){return{d:{mask:G,from:1,to:31,maxLength:2},m:{mask:G,from:1,to:12,maxLength:2},Y:{mask:G,from:1900,to:9999}}},E.MaskedDate=Z;const X=Z;var K=function(){function e(){u(this,e)}return l(e,[{key:"select",value:function(e,t){if(null!=e&&null!=t&&(e!==this.selectionStart||t!==this.selectionEnd))try{this._unsafeSelect(e,t)}catch(e){}}},{key:"_unsafeSelect",value:function(e,t){}},{key:"bindEvents",value:function(e){}},{key:"unbindEvents",value:function(){}},{key:"selectionStart",get:function(){var e;try{e=this._unsafeSelectionStart}catch(e){}return null!=e?e:this.value.length}},{key:"selectionEnd",get:function(){var e;try{e=this._unsafeSelectionEnd}catch(e){}return null!=e?e:this.value.length}},{key:"isActive",get:function(){return!1}}]),e}();E.MaskElement=K;const Q=K;var ee=function(e){function t(e){var n;return u(this,t),(n=f(this,h(t).call(this))).input=e,n._handlers={},n}return c(t,e),l(t,[{key:"_unsafeSelect",value:function(e,t){this.input.setSelectionRange(e,t)}},{key:"bindEvents",value:function(e){var n=this;Object.keys(e).forEach((function(i){return n._toggleEventHandler(t.EVENTS_MAP[i],e[i])}))}},{key:"unbindEvents",value:function(){var e=this;Object.keys(this._handlers).forEach((function(t){return e._toggleEventHandler(t)}))}},{key:"_toggleEventHandler",value:function(e,t){this._handlers[e]&&(this.input.removeEventListener(e,this._handlers[e]),delete this._handlers[e]),t&&(this.input.addEventListener(e,t),this._handlers[e]=t)}},{key:"rootElement",get:function(){return this.input.getRootNode?this.input.getRootNode():document}},{key:"isActive",get:function(){return this.input===this.rootElement.activeElement}},{key:"_unsafeSelectionStart",get:function(){return this.input.selectionStart}},{key:"_unsafeSelectionEnd",get:function(){return this.input.selectionEnd}},{key:"value",get:function(){return this.input.value},set:function(e){this.input.value=e}}]),t}(Q);ee.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},E.HTMLMaskElement=ee;const te=ee;var ne=function(e){function t(){return u(this,t),f(this,h(t).apply(this,arguments))}return c(t,e),l(t,[{key:"_unsafeSelect",value:function(e,t){if(this.rootElement.createRange){var n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,e),n.setEnd(this.input.lastChild||this.input,t);var i=this.rootElement,r=i.getSelection&&i.getSelection();r&&(r.removeAllRanges(),r.addRange(n))}}},{key:"_unsafeSelectionStart",get:function(){var e=this.rootElement,t=e.getSelection&&e.getSelection();return t&&t.anchorOffset}},{key:"_unsafeSelectionEnd",get:function(){var e=this.rootElement,t=e.getSelection&&e.getSelection();return t&&this._unsafeSelectionStart+String(t).length}},{key:"value",get:function(){return this.input.textContent},set:function(e){this.input.textContent=e}}]),t}(te);E.HTMLContenteditableMaskElement=ne;const ie=ne;var re=function(){function e(t,n){u(this,e),this.el=t instanceof Q?t:t.isContentEditable&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName?new ie(t):new te(t),this.masked=B(n),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}return l(e,[{key:"maskEquals",value:function(e){return null==e||e===this.masked.mask||e===Date&&this.masked instanceof X}},{key:"_bindEvents",value:function(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}},{key:"_unbindEvents",value:function(){this.el&&this.el.unbindEvents()}},{key:"_fireEvent",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&this._listeners[e].splice(n,1),this}},{key:"_onInput",value:function(e){if(this._inputEvent=e,this._abortUpdateCursor(),!this._selection)return this.updateValue();var t=new C(this.el.value,this.cursorPos,this.value,this._selection),n=this.masked.rawInputValue,i=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection).offset,r=n===this.masked.rawInputValue?t.removeDirection:L,s=this.masked.nearestInputPos(t.startChangePos+i,r);this.updateControl(),this.updateCursor(s),delete this._inputEvent}},{key:"_onChange",value:function(){this.value!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}},{key:"_onDrop",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"_onFocus",value:function(e){this.alignCursorFriendly()}},{key:"_onClick",value:function(e){this.alignCursorFriendly()}},{key:"destroy",value:function(){this._unbindEvents(),this._listeners.length=0,delete this.el}},{key:"mask",get:function(){return this.masked.mask},set:function(e){if(!this.maskEquals(e))if(e instanceof E.Masked||this.masked.constructor!==P(e)){var t=B({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}else this.masked.updateOptions({mask:e})}},{key:"value",get:function(){return this._value},set:function(e){this.masked.value=e,this.updateControl(),this.alignCursor()}},{key:"unmaskedValue",get:function(){return this._unmaskedValue},set:function(e){this.masked.unmaskedValue=e,this.updateControl(),this.alignCursor()}},{key:"typedValue",get:function(){return this.masked.typedValue},set:function(e){this.masked.typedValue=e,this.updateControl(),this.alignCursor()}},{key:"selectionStart",get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}},{key:"cursorPos",get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd},set:function(e){this.el&&this.el.isActive&&(this.el.select(e,e),this._saveSelection())}}]),e}();E.InputMask=re;const se=E;var ae=function(e){function t(){return u(this,t),f(this,h(t).apply(this,arguments))}return c(t,e),l(t,[{key:"_update",value:function(e){e.enum&&(e.mask="*".repeat(e.enum[0].length)),g(h(t.prototype),"_update",this).call(this,e)}},{key:"doValidate",value:function(){for(var e,n=this,i=arguments.length,r=new Array(i),s=0;s=0}))&&(e=g(h(t.prototype),"doValidate",this)).call.apply(e,[this].concat(r))}}]),t}(J);E.MaskedEnum=ae;var oe=function(e){function t(e){return u(this,t),f(this,h(t).call(this,Object.assign({},t.DEFAULTS,{},e)))}return c(t,e),l(t,[{key:"_update",value:function(e){g(h(t.prototype),"_update",this).call(this,e),this._updateRegExps()}},{key:"_updateRegExps",value:function(){var e="^"+(this.allowNegative?"[+|\\-]?":""),t=(this.scale?"("+T(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExpInput=new RegExp(e+"(0|([1-9]+\\d*))?"+t),this._numberRegExp=new RegExp(e+"\\d*"+t),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(T).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(T(this.thousandsSeparator),"g")}},{key:"_removeThousandsSeparators",value:function(e){return e.replace(this._thousandsSeparatorRegExp,"")}},{key:"_insertThousandsSeparators",value:function(e){var t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}},{key:"doPrepare",value:function(e){for(var n,i=arguments.length,r=new Array(i>1?i-1:0),s=1;s1&&void 0!==arguments[1]&&arguments[1],n=0,i=0;i0&&void 0!==arguments[0]?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}},{key:"extractInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,i=arguments.length>2?arguments[2]:void 0,r=this._adjustRangeWithSeparators(e,n),s=M(r,2);return e=s[0],n=s[1],this._removeThousandsSeparators(g(h(t.prototype),"extractInput",this).call(this,e,n,i))}},{key:"_appendCharRaw",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.thousandsSeparator)return g(h(t.prototype),"_appendCharRaw",this).call(this,e,n);var i=n.tail&&n._beforeTailState?n._beforeTailState._value:this._value,r=this._separatorsCountFromSlice(i);this._value=this._removeThousandsSeparators(this.value);var s=g(h(t.prototype),"_appendCharRaw",this).call(this,e,n);this._value=this._insertThousandsSeparators(this._value);var a=n.tail&&n._beforeTailState?n._beforeTailState._value:this._value,o=this._separatorsCountFromSlice(a);return s.tailShift+=(o-r)*this.thousandsSeparator.length,s.skip=!s.rawInserted&&e===this.thousandsSeparator,s}},{key:"_findSeparatorAround",value:function(e){if(this.thousandsSeparator){var t=e-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,t);if(n<=e)return n}return-1}},{key:"_adjustRangeWithSeparators",value:function(e,t){var n=this._findSeparatorAround(e);n>=0&&(e=n);var i=this._findSeparatorAround(t);return i>=0&&(t=i+this.thousandsSeparator.length),[e,t]}},{key:"remove",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=this._adjustRangeWithSeparators(e,t),i=M(n,2);e=i[0],t=i[1];var r=this.value.slice(0,e),s=this.value.slice(t),a=this._separatorsCount(r.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(r+s));var o=this._separatorsCountFromSlice(r);return new H({tailShift:(o-a)*this.thousandsSeparator.length})}},{key:"nearestInputPos",value:function(e,t){if(!this.thousandsSeparator)return e;switch(t){case L:case k:case Y:var n=this._findSeparatorAround(e-1);if(n>=0){var i=n+this.thousandsSeparator.length;if(e=0)return r+this.thousandsSeparator.length}return e}},{key:"doValidate",value:function(e){var n=(e.input?this._numberRegExpInput:this._numberRegExp).test(this._removeThousandsSeparators(this.value));if(n){var i=this.number;n=n&&!isNaN(i)&&(null==this.min||this.min>=0||this.min<=this.number)&&(null==this.max||this.max<=0||this.number<=this.max)}return n&&g(h(t.prototype),"doValidate",this).call(this,e)}},{key:"doCommit",value:function(){if(this.value){var e=this.number,n=e;null!=this.min&&(n=Math.max(n,this.min)),null!=this.max&&(n=Math.min(n,this.max)),n!==e&&(this.unmaskedValue=String(n));var i=this.value;this.normalizeZeros&&(i=this._normalizeZeros(i)),this.padFractionalZeros&&(i=this._padFractionalZeros(i)),this._value=i}g(h(t.prototype),"doCommit",this).call(this)}},{key:"_normalizeZeros",value:function(e){var t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(function(e,t,n,i){return t+i})),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}},{key:"_padFractionalZeros",value:function(e){if(!e)return e;var t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}},{key:"unmaskedValue",get:function(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,".")},set:function(e){y(h(t.prototype),"unmaskedValue",e.replace(".",this.radix),this,!0)}},{key:"typedValue",get:function(){return Number(this.unmaskedValue)},set:function(e){y(h(t.prototype),"unmaskedValue",String(e),this,!0)}},{key:"number",get:function(){return this.typedValue},set:function(e){this.typedValue=e}},{key:"allowNegative",get:function(){return this.signed||null!=this.min&&this.min<0||null!=this.max&&this.max<0}}]),t}(O);oe.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:["."],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1},E.MaskedNumber=oe;var ue=function(e){function t(){return u(this,t),f(this,h(t).apply(this,arguments))}return c(t,e),l(t,[{key:"_update",value:function(e){e.mask&&(e.validate=e.mask),g(h(t.prototype),"_update",this).call(this,e)}}]),t}(O);E.MaskedFunction=ue;var de=function(e){function t(e){var n;return u(this,t),(n=f(this,h(t).call(this,Object.assign({},t.DEFAULTS,{},e)))).currentMask=null,n}return c(t,e),l(t,[{key:"_update",value:function(e){g(h(t.prototype),"_update",this).call(this,e),"mask"in e&&(this.compiledMasks=Array.isArray(e.mask)?e.mask.map((function(e){return B(e)})):[])}},{key:"_appendCharRaw",value:function(){var e,t=this._applyDispatch.apply(this,arguments);this.currentMask&&t.aggregate((e=this.currentMask)._appendChar.apply(e,arguments));return t}},{key:"_applyDispatch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.tail&&null!=t._beforeTailState?t._beforeTailState._value:this.value,i=this.rawInputValue,r=t.tail&&null!=t._beforeTailState?t._beforeTailState._rawInputValue:i,s=i.slice(r.length),a=this.currentMask,o=new H,u=a&&a.state;if(this.currentMask=this.doDispatch(e,Object.assign({},t)),this.currentMask)if(this.currentMask!==a){this.currentMask.reset();var d=this.currentMask.append(r,{raw:!0});o.tailShift=d.inserted.length-n.length,s&&(o.tailShift+=this.currentMask.append(s,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=u;return o}},{key:"_appendPlaceholder",value:function(){var e=this._applyDispatch.apply(this,arguments);return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}},{key:"doDispatch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatch(e,this,t)}},{key:"doValidate",value:function(){for(var e,n,i=arguments.length,r=new Array(i),s=0;s1&&void 0!==arguments[1]?arguments[1]:le.MASKED,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:le.MASKED,i=B(e);return function(e){return i.runIsolated((function(i){return i[t]=e,i[n]}))}}E.PIPE_TYPE=le,E.createPipe=ce,E.pipe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i'):$(this).html('Скрыть ')}));var e=_e()().hours(),t=_e()().add(2,"hours").hours();$(".hero__sticky--from").html("".concat(e,":00")),$(".hero__sticky--till").html("".concat(t,":00")),$(".hero__sticky--timer").attr("data-uk-countdown","date: ".concat(_e()().startOf("hours").add(2,"hours"))),$("form").on("submit",(function(e){e.preventDefault();var t=$(this).find("input").val();fetch("https://api.zoola.ru/send_order",{method:"POST",body:JSON.stringify({phone:t})});try{ComagicWidget.sitePhoneCall({phone:t})}catch(err){console.log("No UIS")};r().notification({message:"Ваше сообщение было отправлено, спасибо!",status:"success",pos:"top-right",timeout:3e3}),$(this).trigger("reset"),r().modal($(".modal-contact")).hide(),ym(21066112,"reachGoal","callback")})),$(".prices__table--button").on("click","button",(function(){var e=this;setTimeout((function(){"true"==$(e).attr("aria-expanded")?$(e).html('Скрыть '):"false"==$(e).attr("aria-expanded")&&$(e).html('Показать все ')}),300)}))}))},9755:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var s=[],a=Object.getPrototypeOf,o=s.slice,u=s.flat?function(e){return s.flat.call(e)}:function(e){return s.concat.apply([],e)},d=s.push,l=s.indexOf,c={},h=c.toString,m=c.hasOwnProperty,_=m.toString,f=_.call(Object),p={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},v=function(e){return null!=e&&e===e.window},y=i.document,M={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var i,r,s=(n=n||y).createElement("script");if(s.text=e,t)for(i in M)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&s.setAttribute(i,r);n.head.appendChild(s).parentNode.removeChild(s)}function L(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[h.call(e)]||"object":typeof e}var k="3.5.1",Y=function(e,t){return new Y.fn.init(e,t)};function b(e){var t=!!e&&"length"in e&&e.length,n=L(e);return!g(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}Y.fn=Y.prototype={jquery:k,constructor:Y,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=Y.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return Y.each(this,e)},map:function(e){return this.pushStack(Y.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(Y.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(Y.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),q=new RegExp(F+"|>"),V=new RegExp(W),J=new RegExp("^"+B+"$"),U={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+$),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},se=function(){h()},ae=Me((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{E.apply(C=A.call(w.childNodes),w.childNodes),C[w.childNodes.length].nodeType}catch(e){E={apply:C.length?function(e,t){j.apply(e,A.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function oe(e,t,i,r){var s,o,d,l,c,_,g,v=t&&t.ownerDocument,w=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return i;if(!r&&(h(t),t=t||m,f)){if(11!==w&&(c=Q.exec(e)))if(s=c[1]){if(9===w){if(!(d=t.getElementById(s)))return i;if(d.id===s)return i.push(d),i}else if(v&&(d=v.getElementById(s))&&y(t,d)&&d.id===s)return i.push(d),i}else{if(c[2])return E.apply(i,t.getElementsByTagName(e)),i;if((s=c[3])&&n.getElementsByClassName&&t.getElementsByClassName)return E.apply(i,t.getElementsByClassName(s)),i}if(n.qsa&&!D[e+" "]&&(!p||!p.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(g=e,v=t,1===w&&(q.test(e)||R.test(e))){for((v=ee.test(e)&&ge(t.parentNode)||t)===t&&n.scope||((l=t.getAttribute("id"))?l=l.replace(ie,re):t.setAttribute("id",l=M)),o=(_=a(e)).length;o--;)_[o]=(l?"#"+l:":scope")+" "+ye(_[o]);g=_.join(",")}try{return E.apply(i,v.querySelectorAll(g)),i}catch(t){D(e,!0)}finally{l===M&&t.removeAttribute("id")}}}return u(e.replace(I,"$1"),t,i,r)}function ue(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function de(e){return e[M]=!0,e}function le(e){var t=m.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function he(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function me(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function _e(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function pe(e){return de((function(t){return t=+t,de((function(n,i){for(var r,s=e([],n.length,t),a=s.length;a--;)n[r=s[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=oe.support={},s=oe.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},h=oe.setDocument=function(e){var t,r,a=e?e.ownerDocument||e:w;return a!=m&&9===a.nodeType&&a.documentElement?(_=(m=a).documentElement,f=!s(m),w!=m&&(r=m.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",se,!1):r.attachEvent&&r.attachEvent("onunload",se)),n.scope=le((function(e){return _.appendChild(e).appendChild(m.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=le((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=le((function(e){return e.appendChild(m.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(m.getElementsByClassName),n.getById=le((function(e){return _.appendChild(e).id=M,!m.getElementsByName||!m.getElementsByName(M).length})),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var n,i,r,s=t.getElementById(e);if(s){if((n=s.getAttributeNode("id"))&&n.value===e)return[s];for(r=t.getElementsByName(e),i=0;s=r[i++];)if((n=s.getAttributeNode("id"))&&n.value===e)return[s]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,s=t.getElementsByTagName(e);if("*"===e){for(;n=s[r++];)1===n.nodeType&&i.push(n);return i}return s},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&f)return t.getElementsByClassName(e)},g=[],p=[],(n.qsa=K.test(m.querySelectorAll))&&(le((function(e){var t;_.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&p.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||p.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+P+")"),e.querySelectorAll("[id~="+M+"-]").length||p.push("~="),(t=m.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||p.push(":checked"),e.querySelectorAll("a#"+M+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll("\\\f"),p.push("[\\r\\n\\f]")})),le((function(e){e.innerHTML="";var t=m.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&p.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&p.push(":enabled",":disabled"),_.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),p.push(",.*:")}))),(n.matchesSelector=K.test(v=_.matches||_.webkitMatchesSelector||_.mozMatchesSelector||_.oMatchesSelector||_.msMatchesSelector))&&le((function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),g.push("!=",W)})),p=p.length&&new RegExp(p.join("|")),g=g.length&&new RegExp(g.join("|")),t=K.test(_.compareDocumentPosition),y=t||K.test(_.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return c=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==m||e.ownerDocument==w&&y(w,e)?-1:t==m||t.ownerDocument==w&&y(w,t)?1:l?O(l,e)-O(l,t):0:4&i?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,i=0,r=e.parentNode,s=t.parentNode,a=[e],o=[t];if(!r||!s)return e==m?-1:t==m?1:r?-1:s?1:l?O(l,e)-O(l,t):0;if(r===s)return he(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)o.unshift(n);for(;a[i]===o[i];)i++;return i?he(a[i],o[i]):a[i]==w?-1:o[i]==w?1:0},m):m},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if(h(e),n.matchesSelector&&f&&!D[t+" "]&&(!g||!g.test(t))&&(!p||!p.test(t)))try{var i=v.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){D(t,!0)}return oe(t,m,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!=m&&h(e),y(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!=m&&h(e);var r=i.attrHandle[t.toLowerCase()],s=r&&S.call(i.attrHandle,t.toLowerCase())?r(e,t,!f):void 0;return void 0!==s?s:n.attributes||!f?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},oe.escape=function(e){return(e+"").replace(ie,re)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,i=[],r=0,s=0;if(c=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(T),c){for(;t=e[s++];)t===e[s]&&(r=i.push(s));for(;r--;)e.splice(i[r],1)}return l=null,e},r=oe.getText=function(e){var t,n="",i=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(i=oe.selectors={cacheLength:50,createPseudo:de,match:U,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return U.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Y[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+F+"|$)"))&&Y(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=oe.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(N," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var s="nth"!==e.slice(0,3),a="last"!==e.slice(-4),o="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,u){var d,l,c,h,m,_,f=s!==a?"nextSibling":"previousSibling",p=t.parentNode,g=o&&t.nodeName.toLowerCase(),v=!u&&!o,y=!1;if(p){if(s){for(;f;){for(h=t;h=h[f];)if(o?h.nodeName.toLowerCase()===g:1===h.nodeType)return!1;_=f="only"===e&&!_&&"nextSibling"}return!0}if(_=[a?p.firstChild:p.lastChild],a&&v){for(y=(m=(d=(l=(c=(h=p)[M]||(h[M]={}))[h.uniqueID]||(c[h.uniqueID]={}))[e]||[])[0]===L&&d[1])&&d[2],h=m&&p.childNodes[m];h=++m&&h&&h[f]||(y=m=0)||_.pop();)if(1===h.nodeType&&++y&&h===t){l[e]=[L,m,y];break}}else if(v&&(y=m=(d=(l=(c=(h=t)[M]||(h[M]={}))[h.uniqueID]||(c[h.uniqueID]={}))[e]||[])[0]===L&&d[1]),!1===y)for(;(h=++m&&h&&h[f]||(y=m=0)||_.pop())&&((o?h.nodeName.toLowerCase()!==g:1!==h.nodeType)||!++y||(v&&((l=(c=h[M]||(h[M]={}))[h.uniqueID]||(c[h.uniqueID]={}))[e]=[L,y]),h!==t)););return(y-=r)===i||y%i==0&&y/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return r[M]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?de((function(e,n){for(var i,s=r(e,t),a=s.length;a--;)e[i=O(e,s[a])]=!(n[i]=s[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:de((function(e){var t=[],n=[],i=o(e.replace(I,"$1"));return i[M]?de((function(e,t,n,r){for(var s,a=i(e,null,r,[]),o=e.length;o--;)(s=a[o])&&(e[o]=!(t[o]=s))})):function(e,r,s){return t[0]=e,i(t,null,s,n),t[0]=null,!n.pop()}})),has:de((function(e){return function(t){return oe(e,t).length>0}})),contains:de((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||r(t)).indexOf(e)>-1}})),lang:de((function(e){return J.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=f?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===_},focus:function(e){return e===m.activeElement&&(!m.hasFocus||m.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pe((function(){return[0]})),last:pe((function(e,t){return[t-1]})),eq:pe((function(e,t,n){return[n<0?n+t:n]})),even:pe((function(e,t){for(var n=0;nt?t:n;--i>=0;)e.push(i);return e})),gt:pe((function(e,t,n){for(var i=n<0?n+t:n;++i1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function Le(e,t,n,i,r){for(var s,a=[],o=0,u=e.length,d=null!=t;o-1&&(s[d]=!(a[d]=c))}}else g=Le(g===a?g.splice(_,g.length):g),r?r(null,a,g,u):E.apply(a,g)}))}function Ye(e){for(var t,n,r,s=e.length,a=i.relative[e[0].type],o=a||i.relative[" "],u=a?1:0,l=Me((function(e){return e===t}),o,!0),c=Me((function(e){return O(t,e)>-1}),o,!0),h=[function(e,n,i){var r=!a&&(i||n!==d)||((t=n).nodeType?l(e,n,i):c(e,n,i));return t=null,r}];u1&&we(h),u>1&&ye(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(I,"$1"),n,u0,r=e.length>0,s=function(s,a,o,u,l){var c,_,p,g=0,v="0",y=s&&[],M=[],w=d,k=s||r&&i.find.TAG("*",l),Y=L+=null==w?1:Math.random()||.1,b=k.length;for(l&&(d=a==m||a||l);v!==b&&null!=(c=k[v]);v++){if(r&&c){for(_=0,a||c.ownerDocument==m||(h(c),o=!f);p=e[_++];)if(p(c,a||m,o)){u.push(c);break}l&&(L=Y)}n&&((c=!p&&c)&&g--,s&&y.push(c))}if(g+=v,n&&v!==g){for(_=0;p=t[_++];)p(y,M,a,o);if(s){if(g>0)for(;v--;)y[v]||M[v]||(M[v]=H.call(u));M=Le(M)}E.apply(u,M),l&&!s&&M.length>0&&g+t.length>1&&oe.uniqueSort(u)}return l&&(L=Y,d=w),y};return n?de(s):s}(s,r))).selector=e}return o},u=oe.select=function(e,t,n,r){var s,u,d,l,c,h="function"==typeof e&&e,m=!r&&a(e=h.selector||e);if(n=n||[],1===m.length){if((u=m[0]=m[0].slice(0)).length>2&&"ID"===(d=u[0]).type&&9===t.nodeType&&f&&i.relative[u[1].type]){if(!(t=(i.find.ID(d.matches[0].replace(te,ne),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(s=U.needsContext.test(e)?0:u.length;s--&&(d=u[s],!i.relative[l=d.type]);)if((c=i.find[l])&&(r=c(d.matches[0].replace(te,ne),ee.test(u[0].type)&&ge(t.parentNode)||t))){if(u.splice(s,1),!(e=r.length&&ye(u)))return E.apply(n,r),n;break}}return(h||o(e,m))(r,t,!f,n,!t||ee.test(e)&&ge(t.parentNode)||t),n},n.sortStable=M.split("").sort(T).join("")===M,n.detectDuplicates=!!c,h(),n.sortDetached=le((function(e){return 1&e.compareDocumentPosition(m.createElement("fieldset"))})),le((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||ce("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&le((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ce("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),le((function(e){return null==e.getAttribute("disabled")}))||ce(P,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),oe}(i);Y.find=x,Y.expr=x.selectors,Y.expr[":"]=Y.expr.pseudos,Y.uniqueSort=Y.unique=x.uniqueSort,Y.text=x.getText,Y.isXMLDoc=x.isXML,Y.contains=x.contains,Y.escapeSelector=x.escape;var D=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&Y(e).is(n))break;i.push(e)}return i},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=Y.expr.match.needsContext;function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var H=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return g(t)?Y.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?Y.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?Y.grep(e,(function(e){return l.call(t,e)>-1!==n})):Y.filter(t,e,n)}Y.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?Y.find.matchesSelector(i,e)?[i]:[]:Y.find.matches(e,Y.grep(t,(function(e){return 1===e.nodeType})))},Y.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(Y(e).filter((function(){for(t=0;t1?Y.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&S.test(e)?Y(e):e||[],!1).length}});var E,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(Y.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||E,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof Y?t[0]:t,Y.merge(this,Y.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),H.test(i[1])&&Y.isPlainObject(t))for(i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=y.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(Y):Y.makeArray(e,this)}).prototype=Y.fn,E=Y(y);var O=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function F(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}Y.fn.extend({has:function(e){var t=Y(e,this),n=t.length;return this.filter((function(){for(var e=0;e-1:1===n.nodeType&&Y.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?Y.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?l.call(Y(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Y.uniqueSort(Y.merge(this.get(),Y(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Y.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return D(e,"parentNode")},parentsUntil:function(e,t,n){return D(e,"parentNode",n)},next:function(e){return F(e,"nextSibling")},prev:function(e){return F(e,"previousSibling")},nextAll:function(e){return D(e,"nextSibling")},prevAll:function(e){return D(e,"previousSibling")},nextUntil:function(e,t,n){return D(e,"nextSibling",n)},prevUntil:function(e,t,n){return D(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(C(e,"template")&&(e=e.content||e),Y.merge([],e.childNodes))}},(function(e,t){Y.fn[e]=function(n,i){var r=Y.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=Y.filter(i,r)),this.length>1&&(P[e]||Y.uniqueSort(r),O.test(e)&&r.reverse()),this.pushStack(r)}}));var B=/[^\x20\t\r\n\f]+/g;function $(e){return e}function W(e){throw e}function N(e,t,n,i){var r;try{e&&g(r=e.promise)?r.call(e).done(t).fail(n):e&&g(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}Y.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return Y.each(e.match(B)||[],(function(e,n){t[n]=!0})),t}(e):Y.extend({},e);var t,n,i,r,s=[],a=[],o=-1,u=function(){for(r=r||e.once,i=t=!0;a.length;o=-1)for(n=a.shift();++o-1;)s.splice(n,1),n<=o&&o--})),this},has:function(e){return e?Y.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=a=[],s=n="",this},disabled:function(){return!s},lock:function(){return r=a=[],n||t||(s=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d},Y.extend({Deferred:function(e){var t=[["notify","progress",Y.Callbacks("memory"),Y.Callbacks("memory"),2],["resolve","done",Y.Callbacks("once memory"),Y.Callbacks("once memory"),0,"resolved"],["reject","fail",Y.Callbacks("once memory"),Y.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return Y.Deferred((function(n){Y.each(t,(function(t,i){var r=g(e[i[4]])&&e[i[4]];s[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&g(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,r){var s=0;function a(e,t,n,r){return function(){var o=this,u=arguments,d=function(){var i,d;if(!(e=s&&(n!==W&&(o=void 0,u=[i]),t.rejectWith(o,u))}};e?l():(Y.Deferred.getStackHook&&(l.stackTrace=Y.Deferred.getStackHook()),i.setTimeout(l))}}return Y.Deferred((function(i){t[0][3].add(a(0,i,g(r)?r:$,i.notifyWith)),t[1][3].add(a(0,i,g(e)?e:$)),t[2][3].add(a(0,i,g(n)?n:W))})).promise()},promise:function(e){return null!=e?Y.extend(e,r):r}},s={};return Y.each(t,(function(e,i){var a=i[2],o=i[5];r[i[1]]=a.add,o&&a.add((function(){n=o}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(i[3].fire),s[i[0]]=function(){return s[i[0]+"With"](this===s?void 0:this,arguments),this},s[i[0]+"With"]=a.fireWith})),r.promise(s),e&&e.call(s,s),s},when:function(e){var t=arguments.length,n=t,i=Array(n),r=o.call(arguments),s=Y.Deferred(),a=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?o.call(arguments):n,--t||s.resolveWith(i,r)}};if(t<=1&&(N(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||g(r[n]&&r[n].then)))return s.then();for(;n--;)N(r[n],a(n),s.reject);return s.promise()}});var I=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Y.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&I.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},Y.readyException=function(e){i.setTimeout((function(){throw e}))};var z=Y.Deferred();function R(){y.removeEventListener("DOMContentLoaded",R),i.removeEventListener("load",R),Y.ready()}Y.fn.ready=function(e){return z.then(e).catch((function(e){Y.readyException(e)})),this},Y.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--Y.readyWait:Y.isReady)||(Y.isReady=!0,!0!==e&&--Y.readyWait>0||z.resolveWith(y,[Y]))}}),Y.ready.then=z.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?i.setTimeout(Y.ready):(y.addEventListener("DOMContentLoaded",R),i.addEventListener("load",R));var q=function(e,t,n,i,r,s,a){var o=0,u=e.length,d=null==n;if("object"===L(n))for(o in r=!0,n)q(e,t,o,n[o],!0,s,a);else if(void 0!==i&&(r=!0,g(i)||(a=!0),d&&(a?(t.call(e,i),t=null):(d=t,t=function(e,t,n){return d.call(Y(e),n)})),t))for(;o1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),Y.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=K.get(e,t),n&&(!i||Array.isArray(n)?i=K.access(e,t,Y.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=Y.queue(e,t),i=n.length,r=n.shift(),s=Y._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete s.stop,r.call(e,(function(){Y.dequeue(e,t)}),s)),!i&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return K.get(e,n)||K.access(e,n,{empty:Y.Callbacks("once memory").add((function(){K.remove(e,[t+"queue",n])}))})}}),Y.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i;_e=y.createDocumentFragment().appendChild(y.createElement("div")),(fe=y.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),_e.appendChild(fe),p.checkClone=_e.cloneNode(!0).cloneNode(!0).lastChild.checked,_e.innerHTML="",p.noCloneChecked=!!_e.cloneNode(!0).lastChild.defaultValue,_e.innerHTML="",p.option=!!_e.lastChild;var ye={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Me(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C(e,t)?Y.merge([e],n):n}function we(e,t){for(var n=0,i=e.length;n",""]);var Le=/<|&#?\w+;/;function ke(e,t,n,i,r){for(var s,a,o,u,d,l,c=t.createDocumentFragment(),h=[],m=0,_=e.length;m<_;m++)if((s=e[m])||0===s)if("object"===L(s))Y.merge(h,s.nodeType?[s]:s);else if(Le.test(s)){for(a=a||c.appendChild(t.createElement("div")),o=(ge.exec(s)||["",""])[1].toLowerCase(),u=ye[o]||ye._default,a.innerHTML=u[1]+Y.htmlPrefilter(s)+u[2],l=u[0];l--;)a=a.lastChild;Y.merge(h,a.childNodes),(a=c.firstChild).textContent=""}else h.push(t.createTextNode(s));for(c.textContent="",m=0;s=h[m++];)if(i&&Y.inArray(s,i)>-1)r&&r.push(s);else if(d=oe(s),a=Me(c.appendChild(s),"script"),d&&we(a),n)for(l=0;s=a[l++];)ve.test(s.type||"")&&n.push(s);return c}var Ye=/^key/,be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xe=/^([^.]*)(?:\.(.+)|)/;function De(){return!0}function Te(){return!1}function Se(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function Ce(e,t,n,i,r,s){var a,o;if("object"==typeof t){for(o in"string"!=typeof n&&(i=i||n,n=void 0),t)Ce(e,o,n,i,t[o],s);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Te;else if(!r)return e;return 1===s&&(a=r,(r=function(e){return Y().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=Y.guid++)),e.each((function(){Y.event.add(this,t,r,i,n)}))}function He(e,t,n){n?(K.set(e,t,!1),Y.event.add(e,t,{namespace:!1,handler:function(e){var i,r,s=K.get(this,t);if(1&e.isTrigger&&this[t]){if(s.length)(Y.event.special[t]||{}).delegateType&&e.stopPropagation();else if(s=o.call(arguments),K.set(this,t,s),i=n(this,t),this[t](),s!==(r=K.get(this,t))||i?K.set(this,t,!1):r={},s!==r)return e.stopImmediatePropagation(),e.preventDefault(),r.value}else s.length&&(K.set(this,t,{value:Y.event.trigger(Y.extend(s[0],Y.Event.prototype),s.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===K.get(e,t)&&Y.event.add(e,t,De)}Y.event={global:{},add:function(e,t,n,i,r){var s,a,o,u,d,l,c,h,m,_,f,p=K.get(e);if(Z(e))for(n.handler&&(n=(s=n).handler,r=s.selector),r&&Y.find.matchesSelector(ae,r),n.guid||(n.guid=Y.guid++),(u=p.events)||(u=p.events=Object.create(null)),(a=p.handle)||(a=p.handle=function(t){return void 0!==Y&&Y.event.triggered!==t.type?Y.event.dispatch.apply(e,arguments):void 0}),d=(t=(t||"").match(B)||[""]).length;d--;)m=f=(o=xe.exec(t[d])||[])[1],_=(o[2]||"").split(".").sort(),m&&(c=Y.event.special[m]||{},m=(r?c.delegateType:c.bindType)||m,c=Y.event.special[m]||{},l=Y.extend({type:m,origType:f,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&Y.expr.match.needsContext.test(r),namespace:_.join(".")},s),(h=u[m])||((h=u[m]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,i,_,a)||e.addEventListener&&e.addEventListener(m,a)),c.add&&(c.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,l):h.push(l),Y.event.global[m]=!0)},remove:function(e,t,n,i,r){var s,a,o,u,d,l,c,h,m,_,f,p=K.hasData(e)&&K.get(e);if(p&&(u=p.events)){for(d=(t=(t||"").match(B)||[""]).length;d--;)if(m=f=(o=xe.exec(t[d])||[])[1],_=(o[2]||"").split(".").sort(),m){for(c=Y.event.special[m]||{},h=u[m=(i?c.delegateType:c.bindType)||m]||[],o=o[2]&&new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=h.length;s--;)l=h[s],!r&&f!==l.origType||n&&n.guid!==l.guid||o&&!o.test(l.namespace)||i&&i!==l.selector&&("**"!==i||!l.selector)||(h.splice(s,1),l.selector&&h.delegateCount--,c.remove&&c.remove.call(e,l));a&&!h.length&&(c.teardown&&!1!==c.teardown.call(e,_,p.handle)||Y.removeEvent(e,m,p.handle),delete u[m])}else for(m in u)Y.event.remove(e,m+t[d],n,i,!0);Y.isEmptyObject(u)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,s,a,o=new Array(arguments.length),u=Y.event.fix(e),d=(K.get(this,"events")||Object.create(null))[u.type]||[],l=Y.event.special[u.type]||{};for(o[0]=u,t=1;t=1))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&("click"!==e.type||!0!==d.disabled)){for(s=[],a={},n=0;n-1:Y.find(r,this,null,[d]).length),a[r]&&s.push(i);s.length&&o.push({elem:d,handlers:s})}return d=this,u\s*$/g;function Oe(e,t){return C(e,"table")&&C(11!==t.nodeType?t:t.firstChild,"tr")&&Y(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Fe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Be(e,t){var n,i,r,s,a,o;if(1===t.nodeType){if(K.hasData(e)&&(o=K.get(e).events))for(r in K.remove(t,"handle events"),o)for(n=0,i=o[r].length;n1&&"string"==typeof _&&!p.checkClone&&Ee.test(_))return e.each((function(r){var s=e.eq(r);f&&(t[0]=_.call(this,r,s.html())),We(s,t,n,i)}));if(h&&(s=(r=ke(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=s),s||i)){for(o=(a=Y.map(Me(r,"script"),Pe)).length;c0&&we(a,!u&&Me(e,"script")),o},cleanData:function(e){for(var t,n,i,r=Y.event.special,s=0;void 0!==(n=e[s]);s++)if(Z(n)){if(t=n[K.expando]){if(t.events)for(i in t.events)r[i]?Y.event.remove(n,i):Y.removeEvent(n,i,t.handle);n[K.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),Y.fn.extend({detach:function(e){return Ne(this,e,!0)},remove:function(e){return Ne(this,e)},text:function(e){return q(this,(function(e){return void 0===e?Y.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return We(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)}))},prepend:function(){return We(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Oe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Y.cleanData(Me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return Y.clone(this,e,t)}))},html:function(e){return q(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!je.test(e)&&!ye[(ge.exec(e)||["",""])[1].toLowerCase()]){e=Y.htmlPrefilter(e);try{for(;n3,ae.removeChild(e)),o}}))}();var Ue=["Webkit","Moz","ms"],Ge=y.createElement("div").style,Ze={};function Xe(e){var t=Y.cssProps[e]||Ze[e];return t||(e in Ge?e:Ze[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ue.length;n--;)if((e=Ue[n]+t)in Ge)return e}(e)||e)}var Ke=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var i=re.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function it(e,t,n,i,r,s){var a="width"===t?1:0,o=0,u=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=Y.css(e,n+se[a],!0,r)),i?("content"===n&&(u-=Y.css(e,"padding"+se[a],!0,r)),"margin"!==n&&(u-=Y.css(e,"border"+se[a]+"Width",!0,r))):(u+=Y.css(e,"padding"+se[a],!0,r),"padding"!==n?u+=Y.css(e,"border"+se[a]+"Width",!0,r):o+=Y.css(e,"border"+se[a]+"Width",!0,r));return!i&&s>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-u-o-.5))||0),u}function rt(e,t,n){var i=ze(e),r=(!p.boxSizingReliable()||n)&&"border-box"===Y.css(e,"boxSizing",!1,i),s=r,a=Ve(e,t,i),o="offset"+t[0].toUpperCase()+t.slice(1);if(Ie.test(a)){if(!n)return a;a="auto"}return(!p.boxSizingReliable()&&r||!p.reliableTrDimensions()&&C(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===Y.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===Y.css(e,"boxSizing",!1,i),(s=o in e)&&(a=e[o])),(a=parseFloat(a)||0)+it(e,t,n||(r?"border":"content"),s,i,a)+"px"}function st(e,t,n,i,r){return new st.prototype.init(e,t,n,i,r)}Y.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,s,a,o=G(t),u=Qe.test(t),d=e.style;if(u||(t=Xe(o)),a=Y.cssHooks[t]||Y.cssHooks[o],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:d[t];"string"===(s=typeof n)&&(r=re.exec(n))&&r[1]&&(n=le(e,t,r),s="number"),null!=n&&n==n&&("number"!==s||u||(n+=r&&r[3]||(Y.cssNumber[o]?"":"px")),p.clearCloneStyle||""!==n||0!==t.indexOf("background")||(d[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(u?d.setProperty(t,n):d[t]=n))}},css:function(e,t,n,i){var r,s,a,o=G(t);return Qe.test(t)||(t=Xe(o)),(a=Y.cssHooks[t]||Y.cssHooks[o])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=Ve(e,t,i)),"normal"===r&&t in tt&&(r=tt[t]),""===n||n?(s=parseFloat(r),!0===n||isFinite(s)?s||0:r):r}}),Y.each(["height","width"],(function(e,t){Y.cssHooks[t]={get:function(e,n,i){if(n)return!Ke.test(Y.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,i):Re(e,et,(function(){return rt(e,t,i)}))},set:function(e,n,i){var r,s=ze(e),a=!p.scrollboxSize()&&"absolute"===s.position,o=(a||i)&&"border-box"===Y.css(e,"boxSizing",!1,s),u=i?it(e,t,i,o,s):0;return o&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-it(e,t,"border",!1,s)-.5)),u&&(r=re.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=Y.css(e,t)),nt(0,n,u)}}})),Y.cssHooks.marginLeft=Je(p.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-Re(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),Y.each({margin:"",padding:"",border:"Width"},(function(e,t){Y.cssHooks[e+t]={expand:function(n){for(var i=0,r={},s="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+se[i]+t]=s[i]||s[i-2]||s[0];return r}},"margin"!==e&&(Y.cssHooks[e+t].set=nt)})),Y.fn.extend({css:function(e,t){return q(this,(function(e,t,n){var i,r,s={},a=0;if(Array.isArray(t)){for(i=ze(e),r=t.length;a1)}}),Y.Tween=st,st.prototype={constructor:st,init:function(e,t,n,i,r,s){this.elem=e,this.prop=n,this.easing=r||Y.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=s||(Y.cssNumber[n]?"":"px")},cur:function(){var e=st.propHooks[this.prop];return e&&e.get?e.get(this):st.propHooks._default.get(this)},run:function(e){var t,n=st.propHooks[this.prop];return this.options.duration?this.pos=t=Y.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):st.propHooks._default.set(this),this}},st.prototype.init.prototype=st.prototype,st.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=Y.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){Y.fx.step[e.prop]?Y.fx.step[e.prop](e):1!==e.elem.nodeType||!Y.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:Y.style(e.elem,e.prop,e.now+e.unit)}}},st.propHooks.scrollTop=st.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Y.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},Y.fx=st.prototype.init,Y.fx.step={};var at,ot,ut=/^(?:toggle|show|hide)$/,dt=/queueHooks$/;function lt(){ot&&(!1===y.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(lt):i.setTimeout(lt,Y.fx.interval),Y.fx.tick())}function ct(){return i.setTimeout((function(){at=void 0})),at=Date.now()}function ht(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=se[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function mt(e,t,n){for(var i,r=(_t.tweeners[t]||[]).concat(_t.tweeners["*"]),s=0,a=r.length;s1)},removeAttr:function(e){return this.each((function(){Y.removeAttr(this,e)}))}}),Y.extend({attr:function(e,t,n){var i,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?Y.prop(e,t,n):(1===s&&Y.isXMLDoc(e)||(r=Y.attrHooks[t.toLowerCase()]||(Y.expr.match.bool.test(t)?ft:void 0)),void 0!==n?null===n?void Y.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=Y.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&C(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(B);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),ft={set:function(e,t,n){return!1===t?Y.removeAttr(e,n):e.setAttribute(n,n),n}},Y.each(Y.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=pt[t]||Y.find.attr;pt[t]=function(e,t,i){var r,s,a=t.toLowerCase();return i||(s=pt[a],pt[a]=r,r=null!=n(e,t,i)?a:null,pt[a]=s),r}}));var gt=/^(?:input|select|textarea|button)$/i,vt=/^(?:a|area)$/i;function yt(e){return(e.match(B)||[]).join(" ")}function Mt(e){return e.getAttribute&&e.getAttribute("class")||""}function wt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(B)||[]}Y.fn.extend({prop:function(e,t){return q(this,Y.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[Y.propFix[e]||e]}))}}),Y.extend({prop:function(e,t,n){var i,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&Y.isXMLDoc(e)||(t=Y.propFix[t]||t,r=Y.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=Y.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(Y.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),Y.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){Y.propFix[this.toLowerCase()]=this})),Y.fn.extend({addClass:function(e){var t,n,i,r,s,a,o,u=0;if(g(e))return this.each((function(t){Y(this).addClass(e.call(this,t,Mt(this)))}));if((t=wt(e)).length)for(;n=this[u++];)if(r=Mt(n),i=1===n.nodeType&&" "+yt(r)+" "){for(a=0;s=t[a++];)i.indexOf(" "+s+" ")<0&&(i+=s+" ");r!==(o=yt(i))&&n.setAttribute("class",o)}return this},removeClass:function(e){var t,n,i,r,s,a,o,u=0;if(g(e))return this.each((function(t){Y(this).removeClass(e.call(this,t,Mt(this)))}));if(!arguments.length)return this.attr("class","");if((t=wt(e)).length)for(;n=this[u++];)if(r=Mt(n),i=1===n.nodeType&&" "+yt(r)+" "){for(a=0;s=t[a++];)for(;i.indexOf(" "+s+" ")>-1;)i=i.replace(" "+s+" "," ");r!==(o=yt(i))&&n.setAttribute("class",o)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):g(e)?this.each((function(n){Y(this).toggleClass(e.call(this,n,Mt(this),t),t)})):this.each((function(){var t,r,s,a;if(i)for(r=0,s=Y(this),a=wt(e);t=a[r++];)s.hasClass(t)?s.removeClass(t):s.addClass(t);else void 0!==e&&"boolean"!==n||((t=Mt(this))&&K.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":K.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+yt(Mt(n))+" ").indexOf(t)>-1)return!0;return!1}});var Lt=/\r/g;Y.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=g(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,Y(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=Y.map(r,(function(e){return null==e?"":e+""}))),(t=Y.valHooks[this.type]||Y.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=Y.valHooks[r.type]||Y.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Lt,""):null==n?"":n:void 0}}),Y.extend({valHooks:{option:{get:function(e){var t=Y.find.attr(e,"value");return null!=t?t:yt(Y.text(e))}},select:{get:function(e){var t,n,i,r=e.options,s=e.selectedIndex,a="select-one"===e.type,o=a?null:[],u=a?s+1:r.length;for(i=s<0?u:a?s:0;i-1)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),Y.each(["radio","checkbox"],(function(){Y.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=Y.inArray(Y(e).val(),t)>-1}},p.checkOn||(Y.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),p.focusin="onfocusin"in i;var kt=/^(?:focusinfocus|focusoutblur)$/,Yt=function(e){e.stopPropagation()};Y.extend(Y.event,{trigger:function(e,t,n,r){var s,a,o,u,d,l,c,h,_=[n||y],f=m.call(e,"type")?e.type:e,p=m.call(e,"namespace")?e.namespace.split("."):[];if(a=h=o=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!kt.test(f+Y.event.triggered)&&(f.indexOf(".")>-1&&(p=f.split("."),f=p.shift(),p.sort()),d=f.indexOf(":")<0&&"on"+f,(e=e[Y.expando]?e:new Y.Event(f,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:Y.makeArray(t,[e]),c=Y.event.special[f]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!v(n)){for(u=c.delegateType||f,kt.test(u+f)||(a=a.parentNode);a;a=a.parentNode)_.push(a),o=a;o===(n.ownerDocument||y)&&_.push(o.defaultView||o.parentWindow||i)}for(s=0;(a=_[s++])&&!e.isPropagationStopped();)h=a,e.type=s>1?u:c.bindType||f,(l=(K.get(a,"events")||Object.create(null))[e.type]&&K.get(a,"handle"))&&l.apply(a,t),(l=d&&a[d])&&l.apply&&Z(a)&&(e.result=l.apply(a,t),!1===e.result&&e.preventDefault());return e.type=f,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(_.pop(),t)||!Z(n)||d&&g(n[f])&&!v(n)&&((o=n[d])&&(n[d]=null),Y.event.triggered=f,e.isPropagationStopped()&&h.addEventListener(f,Yt),n[f](),e.isPropagationStopped()&&h.removeEventListener(f,Yt),Y.event.triggered=void 0,o&&(n[d]=o)),e.result}},simulate:function(e,t,n){var i=Y.extend(new Y.Event,n,{type:e,isSimulated:!0});Y.event.trigger(i,null,t)}}),Y.fn.extend({trigger:function(e,t){return this.each((function(){Y.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return Y.event.trigger(e,t,n,!0)}}),p.focusin||Y.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){Y.event.simulate(t,e.target,Y.event.fix(e))};Y.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=K.access(i,t);r||i.addEventListener(e,n,!0),K.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=K.access(i,t)-1;r?K.access(i,t,r):(i.removeEventListener(e,n,!0),K.remove(i,t))}}}));var bt=i.location,xt={guid:Date.now()},Dt=/\?/;Y.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||Y.error("Invalid XML: "+e),t};var Tt=/\[\]$/,St=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,Ht=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,i){var r;if(Array.isArray(t))Y.each(t,(function(t,r){n||Tt.test(e)?i(e,r):jt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==L(t))i(e,t);else for(r in t)jt(e+"["+r+"]",t[r],n,i)}Y.param=function(e,t){var n,i=[],r=function(e,t){var n=g(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!Y.isPlainObject(e))Y.each(e,(function(){r(this.name,this.value)}));else for(n in e)jt(n,e[n],t,r);return i.join("&")},Y.fn.extend({serialize:function(){return Y.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=Y.prop(this,"elements");return e?Y.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!Y(this).is(":disabled")&&Ht.test(this.nodeName)&&!Ct.test(e)&&(this.checked||!pe.test(e))})).map((function(e,t){var n=Y(this).val();return null==n?null:Array.isArray(n)?Y.map(n,(function(e){return{name:t.name,value:e.replace(St,"\r\n")}})):{name:t.name,value:n.replace(St,"\r\n")}})).get()}});var Et=/%20/g,At=/#.*$/,Ot=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,Bt=/^\/\//,$t={},Wt={},Nt="*/".concat("*"),It=y.createElement("a");function zt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,s=t.toLowerCase().match(B)||[];if(g(n))for(;i=s[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Rt(e,t,n,i){var r={},s=e===Wt;function a(o){var u;return r[o]=!0,Y.each(e[o]||[],(function(e,o){var d=o(t,n,i);return"string"!=typeof d||s||r[d]?s?!(u=d):void 0:(t.dataTypes.unshift(d),a(d),!1)})),u}return a(t.dataTypes[0])||!r["*"]&&a("*")}function qt(e,t){var n,i,r=Y.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&Y.extend(!0,e,i),e}It.href=bt.href,Y.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(bt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Nt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Y.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qt(qt(e,Y.ajaxSettings),t):qt(Y.ajaxSettings,e)},ajaxPrefilter:zt($t),ajaxTransport:zt(Wt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,s,a,o,u,d,l,c,h,m=Y.ajaxSetup({},t),_=m.context||m,f=m.context&&(_.nodeType||_.jquery)?Y(_):Y.event,p=Y.Deferred(),g=Y.Callbacks("once memory"),v=m.statusCode||{},M={},w={},L="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(d){if(!a)for(a={};t=Pt.exec(s);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return d?s:null},setRequestHeader:function(e,t){return null==d&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,M[e]=t),this},overrideMimeType:function(e){return null==d&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(d)k.always(e[k.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||L;return n&&n.abort(t),b(0,t),this}};if(p.promise(k),m.url=((e||m.url||bt.href)+"").replace(Bt,bt.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(B)||[""],null==m.crossDomain){u=y.createElement("a");try{u.href=m.url,u.href=u.href,m.crossDomain=It.protocol+"//"+It.host!=u.protocol+"//"+u.host}catch(e){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=Y.param(m.data,m.traditional)),Rt($t,m,t,k),d)return k;for(c in(l=Y.event&&m.global)&&0==Y.active++&&Y.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Ft.test(m.type),r=m.url.replace(At,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(Et,"+")):(h=m.url.slice(r.length),m.data&&(m.processData||"string"==typeof m.data)&&(r+=(Dt.test(r)?"&":"?")+m.data,delete m.data),!1===m.cache&&(r=r.replace(Ot,"$1"),h=(Dt.test(r)?"&":"?")+"_="+xt.guid+++h),m.url=r+h),m.ifModified&&(Y.lastModified[r]&&k.setRequestHeader("If-Modified-Since",Y.lastModified[r]),Y.etag[r]&&k.setRequestHeader("If-None-Match",Y.etag[r])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&k.setRequestHeader("Content-Type",m.contentType),k.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Nt+"; q=0.01":""):m.accepts["*"]),m.headers)k.setRequestHeader(c,m.headers[c]);if(m.beforeSend&&(!1===m.beforeSend.call(_,k,m)||d))return k.abort();if(L="abort",g.add(m.complete),k.done(m.success),k.fail(m.error),n=Rt(Wt,m,t,k)){if(k.readyState=1,l&&f.trigger("ajaxSend",[k,m]),d)return k;m.async&&m.timeout>0&&(o=i.setTimeout((function(){k.abort("timeout")}),m.timeout));try{d=!1,n.send(M,b)}catch(e){if(d)throw e;b(-1,e)}}else b(-1,"No Transport");function b(e,t,a,u){var c,h,y,M,w,L=t;d||(d=!0,o&&i.clearTimeout(o),n=void 0,s=u||"",k.readyState=e>0?4:0,c=e>=200&&e<300||304===e,a&&(M=function(e,t,n){for(var i,r,s,a,o=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in o)if(o[r]&&o[r].test(i)){u.unshift(r);break}if(u[0]in n)s=u[0];else{for(r in n){if(!u[0]||e.converters[r+" "+u[0]]){s=r;break}a||(a=r)}s=s||a}if(s)return s!==u[0]&&u.unshift(s),n[s]}(m,k,a)),!c&&Y.inArray("script",m.dataTypes)>-1&&(m.converters["text script"]=function(){}),M=function(e,t,n,i){var r,s,a,o,u,d={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)d[a.toLowerCase()]=e.converters[a];for(s=l.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!u&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=s,s=l.shift())if("*"===s)s=u;else if("*"!==u&&u!==s){if(!(a=d[u+" "+s]||d["* "+s]))for(r in d)if((o=r.split(" "))[1]===s&&(a=d[u+" "+o[0]]||d["* "+o[0]])){!0===a?a=d[r]:!0!==d[r]&&(s=o[0],l.unshift(o[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+s}}}return{state:"success",data:t}}(m,M,k,c),c?(m.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(Y.lastModified[r]=w),(w=k.getResponseHeader("etag"))&&(Y.etag[r]=w)),204===e||"HEAD"===m.type?L="nocontent":304===e?L="notmodified":(L=M.state,h=M.data,c=!(y=M.error))):(y=L,!e&&L||(L="error",e<0&&(e=0))),k.status=e,k.statusText=(t||L)+"",c?p.resolveWith(_,[h,L,k]):p.rejectWith(_,[k,L,y]),k.statusCode(v),v=void 0,l&&f.trigger(c?"ajaxSuccess":"ajaxError",[k,m,c?h:y]),g.fireWith(_,[k,L]),l&&(f.trigger("ajaxComplete",[k,m]),--Y.active||Y.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return Y.get(e,t,n,"json")},getScript:function(e,t){return Y.get(e,void 0,t,"script")}}),Y.each(["get","post"],(function(e,t){Y[t]=function(e,n,i,r){return g(n)&&(r=r||i,i=n,n=void 0),Y.ajax(Y.extend({url:e,type:t,dataType:r,data:n,success:i},Y.isPlainObject(e)&&e))}})),Y.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),Y._evalUrl=function(e,t,n){return Y.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){Y.globalEval(e,t,n)}})},Y.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=Y(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){Y(this).wrapInner(e.call(this,t))})):this.each((function(){var t=Y(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){Y(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){Y(this).replaceWith(this.childNodes)})),this}}),Y.expr.pseudos.hidden=function(e){return!Y.expr.pseudos.visible(e)},Y.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},Y.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Jt=Y.ajaxSettings.xhr();p.cors=!!Jt&&"withCredentials"in Jt,p.ajax=Jt=!!Jt,Y.ajaxTransport((function(e){var t,n;if(p.cors||Jt&&!e.crossDomain)return{send:function(r,s){var a,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)o[a]=e.xhrFields[a];for(a in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)o.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=n=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?s(0,"error"):s(o.status,o.statusText):s(Vt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),n=o.onerror=o.ontimeout=t("error"),void 0!==o.onabort?o.onabort=n:o.onreadystatechange=function(){4===o.readyState&&i.setTimeout((function(){t&&n()}))},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),Y.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),Y.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return Y.globalEval(e),e}}}),Y.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),Y.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=Y("