1!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.MicroModal=e()}(this,function(){"use strict";var t,l,r,i,c,e=function(){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),_=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)};return t=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'],l=function(){function b(t){var e=t.targetModal,n=t.triggers,r=void 0===n?[]:n,i=t.onShow,a=void 0===i?function(){}:i,s=t.onClose,u=void 0===s?function(){}:s,o=t.openTrigger,l=void 0===o?"data-micromodal-trigger":o,c=t.closeTrigger,h=void 0===c?"data-micromodal-close":c,f=t.disableScroll,d=void 0!==f&&f,p=t.disableFocus,v=void 0!==p&&p,g=t.awaitCloseAnimation,m=void 0!==g&&g,k=t.debugMode,y=void 0!==k&&k;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),this.modal=document.getElementById(e),this.config={debugMode:y,disableScroll:d,openTrigger:l,closeTrigger:h,onShow:a,onClose:u,awaitCloseAnimation:m,disableFocus:v},0<r.length&&this.registerTriggers.apply(this,_(r)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}return e(b,[{key:"registerTriggers",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t){t.addEventListener("click",function(){return e.showModal()})})}},{key:"showModal",value:function(){this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add("is-open"),this.setFocusToFirstNode(),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.onShow(this.modal)}},{key:"closeModal",value:function(){var e=this.modal;this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement.focus(),this.config.onClose(this.modal),this.config.awaitCloseAnimation?this.modal.addEventListener("animationend",function t(){e.classList.remove("is-open"),e.removeEventListener("animationend",t,!1)},!1):e.classList.remove("is-open")}},{key:"scrollBehaviour",value:function(t){if(this.config.disableScroll){var e=document.querySelector("body");switch(t){case"enable":Object.assign(e.style,{overflow:"initial",height:"initial"});break;case"disable":Object.assign(e.style,{overflow:"hidden",height:"100vh"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(t){t.target.hasAttribute(this.config.closeTrigger)&&(this.closeModal(),t.preventDefault())}},{key:"onKeydown",value:function(t){27===t.keyCode&&this.closeModal(t),9===t.keyCode&&this.maintainFocus(t)}},{key:"getFocusableNodes",value:function(){var e=this.modal.querySelectorAll(t);return Object.keys(e).map(function(t){return e[t]})}},{key:"setFocusToFirstNode",value:function(){if(!this.config.disableFocus){var t=this.getFocusableNodes();t.length&&t[0].focus()}}},{key:"maintainFocus",value:function(t){var e=this.getFocusableNodes();if(this.modal.contains(document.activeElement)){var n=e.indexOf(document.activeElement);t.shiftKey&&0===n&&(e[e.length-1].focus(),t.preventDefault()),t.shiftKey||n!==e.length-1||(e[0].focus(),t.preventDefault())}else e[0].focus()}}]),b}(),r=null,i=function(t){if(!document.getElementById(t))return console.warn("MicroModal v0.3.1: âSeems like you have missed %c'"+t+"'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<div class="modal" id="'+t+'"></div>'),!1},c=function(t,e){if(function(t){if(t.length<=0)console.warn("MicroModal v0.3.1: âPlease specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<a href="#" data-micromodal-trigger="my-modal"></a>')}(t),!e)return!0;for(var n in e)i(n);return!0},{init:function(t){var e,n,r,i=Object.assign({},{openTrigger:"data-micromodal-trigger"},t),a=[].concat(_(document.querySelectorAll("["+i.openTrigger+"]"))),s=(e=a,n=i.openTrigger,r=[],e.forEach(function(t){var e=t.attributes[n].value;void 0===r[e]&&(r[e]=[]),r[e].push(t)}),r);if(!0!==i.debugMode||!1!==c(a,s))for(var u in s){var o=s[u];i.targetModal=u,i.triggers=[].concat(_(o)),new l(i)}},show:function(t,e){var n=e||{};n.targetModal=t,!0===n.debugMode&&!1===i(t)||(r=new l(n)).showModal()},close:function(){r.closeModal()}}}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.IMask=e()}(this,function(){"use strict";var c=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},n={}.hasOwnProperty,u=function(t,e){return n.call(t,e)},r={}.toString,e=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==(e=t,r.call(e).slice(8,-1))?t.split(""):Object(t);var e},o=function(t){return e(c(t))},i=Math.ceil,a=Math.floor,l=function(t){return isNaN(t=+t)?0:(0<t?a:i)(t)},s=Math.min,h=function(t){return 0<t?s(l(t),9007199254740991):0},f=Math.max,d=Math.min;function t(t,e){return t(e={exports:{}},e.exports),e.exports}var p,v=t(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}
1),g=v["__core-js_shared__"]||(v["__core-js_shared__"]={}),m=0,k=Math.random(),y=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++m+k).toString(36))},b=g["keys"]||(g.keys={}),_=(!1,function(t,e,n){var r,i,a=o(t),s=h(a.length),u=(i=s,(r=l(r=n))<0?f(r+i,0):d(r,i));for(0;u<s;u++)if(u in a&&a[u]===e)return u||0;return-1}),C=b[p="IE_PROTO"]||(b[p]=y(p)),A="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),E=Object.keys||function(s){return function(t,e){var n,r=o(s),i=0,a=[];for(n in r)n!=C&&u(r,n)&&a.push(n);for(;e.length>i;)u(r,n=e[i++])&&(~_(a,n)||a.push(n));return a}(0,A)},S=t(function(t){var e=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=e)}),w=(S.version,function(t){return"object"==typeof t?null!==t:"function"==typeof t}),F=function(t){if(!w(t))throw TypeError(t+" is not an object!");return t},x=function(t){try{return!!t()}catch(t){return!0}},B=!x(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),D=v.document,M=w(D)&&w(D.createElement),P=!B&&!x(function(){return 7!=Object.defineProperty(("div",M?D.createElement("div"):{}),"a",{get:function(){return 7}}).a}),T=Object.defineProperty,O={f:B?Object.defineProperty:function(t,e,n){if(F(t),e=function(t,e){if(!w(t))return t;var n,r;if("function"==typeof(n=t.toString)&&!w(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!w(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}(e),F(n),P)try{return T(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},V=B?function(t,e,n){return O.f(t,e,{enumerable:!1,configurable:!0,writable:!0,value:n})}:function(t,e,n){return t[e]=n,t},I=t(function(t){var a=y("src"),e=Function.toString,s=(""+e).split("toString");S.inspectSource=function(t){return e.call(t)},(t.exports=function(t,e,n,r){var i="function"==typeof n;i&&(u(n,"name")||V(n,"name",e)),t[e]!==n&&(i&&(u(n,a)||V(n,a,t[e]?""+t[e]:s.join(String(e)))),t===v?t[e]=n:r?t[e]?t[e]=n:V(t,e,n):(delete t[e],V(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||e.call(this)})}),j=function(r,i,t){if(function(t){if("function"!=typeof r)throw TypeError(r+" is not a function!")}(),void 0===i)return r;switch(t){case 1:return function(t){return r.call(i,t)};case 2:return function(t,e){return r.call(i,t,e)};case 3:return function(t,e,n){return r.call(i,t,e,n)}}return function(){return r.apply(i,arguments)}},N=function(t,e,n){var r,i,a,s,u=t&N.F,o=t&N.G,l=t&N.S,c=t&N.P,h=t&N.B,f=o?v:l?v[e]||(v[e]={}):(v[e]||{}).prototype,d=o?S:S[e]||(S[e]={}),p=d.prototype||(d.prototype={});for(r in o&&(n=e),n)a=((i=!u&&f&&void 0!==f[r])?f:n)[r],s=h&&i?j(a,v):c&&"function"==typeof a?j(Function.call,a):a,f&&I(f,r,a,t&N.U),d[r]!=a&&V(d,r,s),c&&p[r]!=a&&(p[r]=a)};v.core=S,N.F=1,N.G=2,N.S=4,N.P=8,N.B=16,N.W=32,N.U=64,N.R=128;var R,L,U,z,H=N;R="keys",L=function(){return function(t){return E(Object(c(t)))}},U=(S.Object||{})[R]||Object[R],(z={})[R]=L(),H(H.S+H.F*x(function(){U(1)}),"Object",z),S.Object.keys;var Y=function(t){var e=String(c(this)),n="",r=l(t);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;0<r;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n};H(H.P,"String",{repeat:Y}),S.String.repeat;var K=function(t,e,n,r){var i=String(c(t)),a=i.length,s=void 0===n?" ":String(n),u=h(e);if(u<=a||""==s)return i;var o=u-a,l=Y.call(s,Math.ceil(o/s.length));return l.length>o&&(l=l.slice(0,o)),r?l+i:i+l},Z=v.navigator,q=Z&&Z.userAgent||"";function G(t){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function X(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function W(t,e,n){return e&&X(t.prototype,e),n&&X(t,n),t}function J(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Q(){return(Q=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(t){J(e,t,n[t])})}return e}function et(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rt(t,e)}function nt(t){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function rt(t,e){return(rt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function it(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],0<=e.indexOf(n)||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],0<=e.indexOf(n)||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function at(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function st(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=nt(t)););return t}function ut(t,e,n){return(ut="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=st(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function ot(t,e,n,r){return(ot="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,n,r){var i,a=st(t,e);if(a){if((i=Object.getOwnPropertyDescriptor(a,e)).set)return i.set.call(r,n),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(r,e)){if(!i.writable)return!1;i.value=n,Object.defineProperty(r,e,i)}else J(r,e,n);return!0})(t,e,n,r)}function lt(t,e,n,r,i){if(!ot(t,e,n,r||t)&&i)throw new Error("failed to set property");return n}function ct(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,a=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw a}}return n}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}H(H.P+H.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(q),"String",{padStart:function(t){return K(this,t,1<arguments.length?arguments[1]:void 0,!0)}}),S.String.padStart,H(H.P+H.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(q),"String",{padEnd:function(t){return K(this,t,1<arguments.length?arguments[1]:void 0,!1)}}),S.String.padEnd;var ht="NONE",ft="LEFT",dt="FORCE_LEFT",pt="RIGHT",vt="FORCE_RIGHT";function gt(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}var mt="undefined"!=typeof window&&window||"undefined"!=typeof global&&global.global===global&&global||"undefined"!=typeof self&&self.self===self&&self||{},kt=function(){function i(t,e,n,r){for($(this,i),this.value=t,this.cursorPos=e,this.oldValue=n,this.oldSelection=r;this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}return W(i,[{key:"startChangePos",get:function(){return Math.min(this.cursorPos,this.oldSelection.start)}},{key:"insertedCount",get:function(){return this.cursorPos-this.startChangePos}},{key:"inserted",get:function(){return this.value.substr(this.startChangePos,this.insertedCount)}},{key:"removedCount",get:function(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}},{key:"removed",get:function(){return this.oldValue.substr(this.startChangePos,this.removedCount)}},{key:"head",get:function(){return this.value.substring(0,this.startChangePos)}},{key:"tail",get:function(){return this.value.substring(this.startChangePos+this.insertedCount)}},{key:"removeDirection",get:function(){return!this.removedCount||this.insertedCount?ht:this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos?pt:ft}}]),i}(),yt=function(){function e(t){$(this,e),Q(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},t)}return W(e,[{key:"aggregate",value:function(t){return this.rawInserted+=t.rawInserted,this.skip=this.skip||t.skip,this.inserted+=t.inserted,this.tailShift+=t.tailShift,this}},{key:"offset",get:function(){return this.tailShift+this.inserted.length}}]),e}(),bt=function(){function e(t){$(this,e),this._value="",this._update(t),this.isInitialized=!0}return W(e,[{key:"updateOptions",value:function(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}},{key:"_update",value:function(t){Q(this,t)}},{key:"reset",value:function(){this._value=""}},{key:"resolve",value:function(t){return this.reset(),this.append(t,{input:!0},{value:""}),this.doCommit(),this.value}},{key:"nearestInputPos",value:function(t,e){return t}},{key:"extractInput",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(t,e)}},{key:"extractTail",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.value.length;return{value:this.extractInput(t,e)}}},{key:"_storeBeforeTailState",value:function(){this._beforeTailState=this.state}},{key:"_restoreBeforeTailState",value:function(){this.state=this._beforeTailState}},{key:"_resetBeforeTailState",value:function(){this._beforeTailState=null}},{key:"appendTail",value:function(t){return this.append(t?t.value:"",{tail:!0})}},{key:"_appendCharRaw",value:function(t){return this._value+=t,new yt({inserted:t,rawInserted:t})}},{key:"_appendChar",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length?arguments[2]:void 0;if(!(t=this.doPrepare(t,e)))return new yt;var r=this.state,i=this._appendCharRaw(t,e);if(i.inserted){var a=!1!==this.doValidate(e);if(a&&null!=n){this._storeBeforeTailState();var s=this.appendTail(n);(a=s.rawInserted===n.value)&&s.inserted&&this._restoreBeforeTailState()}a||(i.rawInserted=i.inserted="",this.state=r)}return i}},{key:"append",value:function(t,e,n){this.value.length;for(var r=new yt,i=0;i<t.length;++i)r.aggregate(this._appendChar(t[i],e,n));return null!=n&&(this._storeBeforeTailState(),r.tailShift+=this.appendTail(n).tailShift),r}},{key:"remove",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.value.length;return this._value=this.value.slice(0,t)+this.value.slice(e),new yt}},{key:"withValueRefresh",value:function(t){if(this._refreshing||!this.isInitialized)return t();this._refreshing=!0;var e=this.unmaskedValue,n=this.value,r=t();return this.resolve(n)!==n&&(this.unmaskedValue=e),delete this._refreshing,r}},{key:"doPrepare",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return this.prepare?this.prepare(t,this,e):t}},{key:"doValidate",value:function(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}},{key:"doCommit",value:function(){this.commit&&this.commit(this.value,this)}},{key:"splice",value:function(t,e,n,r){var i=t+e,a=this.extractTail(i),s=this.nearestInputPos(t,r);return new yt({tailShift:s-t}).aggregate(this.remove(s)).aggregate(this.append(n,{input:!0},a))}},{key:"state",get:function(){return{_value:this.value}}
1,set:function(t){this._value=t._value}},{key:"value",get:function(){return this._value},set:function(t){this.resolve(t)}},{key:"unmaskedValue",get:function(){return this.value},set:function(t){this.reset(),this.append(t,{},{value:""}),this.doCommit()}},{key:"typedValue",get:function(){return this.unmaskedValue},set:function(t){this.unmaskedValue=t}},{key:"rawInputValue",get:function(){return this.extractInput(0,this.value.length,{raw:!0})},set:function(t){this.reset(),this.append(t,{raw:!0},{value:""}),this.doCommit()}},{key:"isComplete",get:function(){return!0}}]),e}();function _t(t){if(null==t)throw new Error("mask property should be defined");return t instanceof RegExp?mt.IMask.MaskedRegExp:"string"==typeof(e=t)||e instanceof String?mt.IMask.MaskedPattern:t instanceof Date||t===Date?mt.IMask.MaskedDate:t instanceof Number||"number"==typeof t||t===Number?mt.IMask.MaskedNumber:Array.isArray(t)||t===Array?mt.IMask.MaskedDynamic:t.prototype instanceof mt.IMask.Masked?t:t instanceof Function?mt.IMask.MaskedFunction:(console.warn("Mask not found for mask",t),mt.IMask.Masked);var e}function Ct(t){var e=(t=tt({},t)).mask;return e instanceof mt.IMask.Masked?e:new(_t(e))(t)}var At={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\uFB
1D3-\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]/,"*":/./},Et=function(){function r(t){$(this,r);var e=t.mask,n=it(t,["mask"]);this.masked=Ct({mask:e}),Q(this,n)}return W(r,[{key:"reset",value:function(){this._isFilled=!1,this.masked.reset()}},{key:"remove",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.value.length;return 0===t&&1<=e?(this._isFilled=!1,this.masked.remove(t,e)):new yt}},{key:"_appendChar",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(this._isFilled)return new yt;var n=this.masked.state,r=this.masked._appendChar(t,e);return r.inserted&&!1===this.doValidate(e)&&(r.inserted=r.rawInserted="",this.masked.state=n),r.inserted||this.isOptional||this.lazy||e.input||(r.inserted=this.placeholderChar),r.skip=!r.inserted&&!this.isOptional,this._isFilled=Boolean(r.inserted),r}},{key:"_appendPlaceholder",value:function(){var t=new yt;return this._isFilled||this.isOptional||(this._isFilled=!0,t.inserted=this.placeholderChar),t}},{key:"extractTail",value:function(){var t;return(t=this.masked).extractTail.apply(t,arguments)}},{key:"appendTail",value:function(){var t;return(t=this.masked).appendTail.apply(t,arguments)}},{key:"extractInput",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.value.length,n=2<arguments.length?arguments[2]:void 0;return this.masked.extractInput(t,e,n)}},{key:"nearestInputPos",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ht,n=this.value.length,r=Math.min(Math.max(t,0),n);switch(e){case ft:case dt:return this.isComplete?r:0;case pt:case vt:return this.isComplete?r:n;case ht:default:return r}}},{key:"doValidate",value:function(){var t,e;return(t=this.masked).doValidate.apply(t,arguments)&&(!this.parent||(e=this.parent).doValidate.apply(e,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(t){this.masked.state=t.masked,this._isFilled=t._isFilled}}]),r}(),St=function(){function e(t){$(this,e),Q(this,t),this._value=""}return W(e,[{key:"reset",value:function(){this._isRawInput=!1,this._value=""}},{key:"remove",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._value=this._value.slice(0,t)+this._value.slice(e),this._value||(this._isRawInput=!1),new yt}},{key:"nearestInputPos",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ht,n=this._value.length;switch(e){case ft:case dt:return 0;case ht:case pt:case vt:default:return n}}},{key:"extractInput",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this._value.length;return(2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).raw&&this._isRawInput&&this._value.slice(t,e)||""}},{key:"_appendChar",value:function(t,e){var n=new yt;if(this._value)return n;var r=this.char===t[0]&&(this.isUnmasking||e.input||e.raw)&&!e.tail;return r&&(n.rawInserted=this.char),this._value=n.inserted=this.char,this._isRawInput=r&&(e.raw||e.input),n}},{key:"_appendPlaceholder",value:function(){var t=new yt;return this._value||(this._value=t.inserted=this.char),t}},{key:"extractTail",value:function(){return 1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.value.length,{value:""}}},{key:"appendTail",value:function(t){return this._appendChar(t?t.value:"",{tail:!0})}},{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(t){Q(this,t)}}]),e}(),wt=function(){function e(t){$(this,e),this.chunks=t}return W(e,[{key:"value",get:function(){return this.chunks.map(function(t){return t.value}).join("")}}]),e}(),Ft=function(t){function l(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return $(this,l),t.definitions=Q({},At,t.definitions),at(this,nt(l).call(this,tt({},l.DEFAULTS,t)))}return et(l,bt),W(l,[{key:"_update",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};t.definitions=Q({},this.definitions,t.definitions),ut(nt(l.prototype),"_update",this).call(this,t),this._rebuildMask()}},{key:"_rebuildMask",value:function(){var i=this,t=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};var a=this.mask;if(a&&t)for(var e=!1,n=!1,s=0;s<a.length;++s)if(!this.blocks||"continue"!==function(){var e=a.slice(s),t=Object.keys(i.blocks).filter(function(t){return 0===e.indexOf(t)});t.sort(function(t,e){return e.length-t.length});var n=t[0];if(n){var r=Ct(tt({parent:i,lazy:i.lazy,placeholderChar:i.placeholderChar},i.blocks[n]));return r&&(i._blocks.push(r),i._maskedBlocks[n]||(i._maskedBlocks[n]=[]),i._maskedBlocks[n].push(i._blocks.length-1)),s+=n.length-1,"continue"}}()){var r=a[s],u=r in t;if(r!==l.STOP_CHAR)if("{"!==r&&"}"!==r)if("["!==r&&"]"!==r){if(r===l.ESCAPE_CHAR){if(!(r=a[++s]))break;u=!1}var o;o=u?new Et({parent:this,lazy:this.lazy,placeholderChar:this.placeholderChar,mask:t[r],isOptional:n}):new St({char:r,isUnmasking:e}),this._blocks.push(o)}else n=!n;else e=!e;else this._stops.push(this._blocks.length)}}},{key:"_storeBeforeTailState",value:function(){this._blocks.forEach(function(t){"function"==typeof t._storeBeforeTailState&&t._storeBeforeTailState()}),ut(nt(l.prototype),"_storeBeforeTailState",this).call(this)}},{key:"_restoreBeforeTailState",value:function(){this._blocks.forEach(function(t){"function"==typeof t._restoreBeforeTailState&&t._restoreBeforeTailState()}),ut(nt(l.prototype),"_restoreBeforeTailState",this).call(this)}},{key:"_resetBeforeTailState",value:function(){this._blocks.forEach(function(t){"function"==typeof t._resetBeforeTailState&&t._resetBeforeTailState()}),ut(nt(l.prototype),"_resetBeforeTailState",this).call(this)}},{key:"reset",value:function(){ut(nt(l.prototype),"reset",this).call(this),this._blocks.forEach(function(t){return t.reset()})}},{key:"doCommit",value:function(){this._blocks.forEach(function(t){return t.doCommit()}),ut(nt(l.prototype),"doCommit",this).call(this)}},{key:"appendTail",value:function(t){var e=new yt;return t&&e.aggregate(t instanceof wt?this._appendTailChunks(t.chunks):ut(nt(l.prototype),"appendTail",this).call(this,t)),e.aggregate(this._appendPlaceholder())}},{key:"_appendCharRaw",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this._mapPosToBlock(this.value.length),r=new yt;if(!n)return r;for(var i=n.index;;++i){var a=this._blocks[i];if(!a)break;var s=a._appendChar(t,e),u=s.skip;if(r.aggregate(s),u||s.rawInserted)break}return r}},{key:"_appendTailChunks",value:function(t){for(var e=new yt,n=0;n<t.length&&!e.skip;++n){var r=t[n],i=this._mapPosToBlock(this.value.length),a=r instanceof wt&&null!=r.index&&(!i||i.index<=r.index)&&this._blocks[r.index];if(a){e.aggregate(this._appendPlaceholder(r.index));var s=a.appendTail(r);s.skip=!1,e.aggregate(s),this._value+=s.inserted;var u=r.value.slice(s.rawInserted.length);u&&e.aggregate(this.append(u,{tail:!0}))}else{var o=r,l=o.stop,c=o.value;null!=l&&0<=this._stops.indexOf(l)&&e.aggregate(this._appendPlaceholder(l)),e.aggregate(this.append(c,{tail:!0}))}}return e}},{key:"extractTail",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.value.length;return new wt(this._extractTailChunks(t,e))}},{key:"extractInput",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.value.length,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(t===e)return"";var a="";
1return this._forEachBlocksInRange(t,e,function(t,e,n,r){a+=t.extractInput(n,r,i)}),a}},{key:"_extractTailChunks",value:function(){var c=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.value.length;if(t===e)return[];var h,f=[];return this._forEachBlocksInRange(t,e,function(t,e,n,r){for(var i,a=t.extractTail(n,r),s=0;s<c._stops.length;++s){var u=c._stops[s];if(!(u<=e))break;i=u}if(a instanceof wt){if(null==i){for(var o=a.chunks.length,l=0;l<a.chunks.length;++l)if(null!=a.chunks[l].stop){o=l;break}a.chunks.splice(0,o).filter(function(t){return t.value}).forEach(function(t){h?h.value+=t.value:h={value:t.value}})}a.chunks.length&&(h&&f.push(h),a.index=i,f.push(a),h=null)}else{if(null!=i)h&&f.push(h),a.stop=i;else if(h)return void(h.value+=a.value);h=a}}),h&&h.value&&f.push(h),f}},{key:"_appendPlaceholder",value:function(t){var r=this,i=new yt;if(this.lazy&&null==t)return i;var e=this._mapPosToBlock(this.value.length);if(!e)return i;var n=e.index,a=null!=t?t:this._blocks.length;return this._blocks.slice(n,a).forEach(function(t){if("function"==typeof t._appendPlaceholder){var e=null!=t._blocks?[t._blocks.length]:[],n=t._appendPlaceholder.apply(t,e);r._value+=n.inserted,i.aggregate(n)}}),i}},{key:"_mapPosToBlock",value:function(t){for(var e="",n=0;n<this._blocks.length;++n){var r=this._blocks[n],i=e.length;if(t<=(e+=r.value).length)return{index:n,offset:t-i}}}},{key:"_blockStartPos",value:function(t){return this._blocks.slice(0,t).reduce(function(t,e){return t+e.value.length},0)}},{key:"_forEachBlocksInRange",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.value.length,n=2<arguments.length?arguments[2]:void 0,r=this._mapPosToBlock(t);if(r){var i=this._mapPosToBlock(e),a=i&&r.index===i.index,s=r.offset,u=i&&a?i.offset:void 0;if(n(this._blocks[r.index],r.index,s,u),i&&!a){for(var o=r.index+1;o<i.index;++o)n(this._blocks[o],o);n(this._blocks[i.index],i.index,0,i.offset)}}}},{key:"remove",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.value.length,i=ut(nt(l.prototype),"remove",this).call(this,t,e);return this._forEachBlocksInRange(t,e,function(t,e,n,r){i.aggregate(t.remove(n,r))}),i}},{key:"nearestInputPos",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ht,n=this._mapPosToBlock(t)||{index:0,offset:0},r=n.offset,i=n.index,a=this._blocks[i];if(!a)return t;var s=r;0!==s&&s<a.value.length&&(s=a.nearestInputPos(r,function(t){switch(t){case ft:return dt;case pt:return vt;default:return t}}(e)));var u=s===a.value.length;if(0!==s&&!u)return this._blockStartPos(i)+s;var o=u?i+1:i;if(e===ht){if(0<o){var l=o-1,c=this._blocks[l],h=c.nearestInputPos(0,ht);if(!c.value.length||h!==c.value.length)return this._blockStartPos(o)}for(var f=o;f<this._blocks.length;++f){var d=this._blocks[f],p=d.nearestInputPos(0,ht);if(p!==d.value.length)return this._blockStartPos(f)+p}return this.value.length}if(e===ft||e===dt){for(var v,g=o;g<this._blocks.length;++g)if(this._blocks[g].value){v=g;break}if(null!=v){var m=this._blocks[v],k=m.nearestInputPos(0,pt);if(0===k&&m.unmaskedValue.length)return this._blockStartPos(v)+k}for(var y,b=-1,_=o-1;0<=_;--_){var C=this._blocks[_],A=C.nearestInputPos(C.value.length,dt);if(null!=y||C.value&&0===A||(y=_),0!==A){if(A!==C.value.length)return this._blockStartPos(_)+A;b=_;break}}if(e===ft)for(var E=b+1;E<=Math.min(o,this._blocks.length-1);++E){var S=this._blocks[E],w=S.nearestInputPos(0,ht),F=this._blockStartPos(E)+w;if((!S.value.length&&F===this.value.length||w!==S.value.length)&&F<=t)return F}if(0<=b)return this._blockStartPos(b)+this._blocks[b].value.length;if(e===dt||this.lazy&&!this.extractInput()&&!function(t){if(!t)return!1;var e=t.value;return!e||t.nearestInputPos(0,ht)!==e.length}(this._blocks[o]))return 0;if(null!=y)return this._blockStartPos(y);for(var x=o;x<this._blocks.length;++x){var B=this._blocks[x],D=B.nearestInputPos(0,ht);if(!B.value.length||D!==B.value.length)return this._blockStartPos(x)+D}return 0}if(e===pt||e===vt){for(var M,P,T=o;T<this._blocks.length;++T){var O=this._blocks[T],V=O.nearestInputPos(0,ht);if(V!==O.value.length){P=this._blockStartPos(T)+V,M=T;break}}if(null!=M&&null!=P){for(var I=M;I<this._blocks.length;++I){var j=this._blocks[I],N=j.nearestInputPos(0,vt);if(N!==j.value.length)return this._blockStartPos(I)+N}return e===vt?this.value.length:P}for(var R=Math.min(o,this._blocks.length-1);0<=R;--R){var L=this._blocks[R],U=L.nearestInputPos(L.value.length,ft);if(0!==U){var z=this._blockStartPos(R)+U;if(t<=z)return z;break}}}return t}},{key:"maskedBlock",value:function(t){return this.maskedBlocks(t)[0]}},{key:"maskedBlocks",value:function(t){var e=this,n=this._maskedBlocks[t];return n?n.map(function(t){return e._blocks[t]}):[]}},{key:"state",get:function(){return tt({},ut(nt(l.prototype),"state",this),{_blocks:this._blocks.map(function(t){return t.state})})},set:function(t){var n=t._blocks,e=it(t,["_blocks"]);this._blocks.forEach(function(t,e){return t.state=n[e]}),lt(nt(l.prototype),"state",e,this,!0)}},{key:"isComplete",get:function(){return this._blocks.every(function(t){return t.isComplete})}},{key:"unmaskedValue",get:function(){return this._blocks.reduce(function(t,e){return t+e.unmaskedValue},"")},set:function(t){lt(nt(l.prototype),"unmaskedValue",t,this,!0)}},{key:"value",get:function(){return this._blocks.reduce(function(t,e){return t+e.value},"")},set:function(t){lt(nt(l.prototype),"value",t,this,!0)}}]),l}();Ft.DEFAULTS={lazy:!0,placeholderChar:"_"},Ft.STOP_CHAR="`",Ft.ESCAPE_CHAR="\\",Ft.InputDefinition=Et,Ft.FixedDefinition=St;var xt=function(t){function c(){return $(this,c),at(this,nt(c).apply(this,arguments))}return et(c,Ft),W(c,[{key:"_update",value:function(t){t=tt({to:this.to||0,from:this.from||0},t);var e=String(t.to).length;null!=t.maxLength&&(e=Math.max(e,t.maxLength)),t.maxLength=e;for(var n=String(t.to).padStart(e,"0"),r=String(t.from).padStart(e,"0"),i=0;i<n.length&&n[i]===r[i];)++i;t.mask=n.slice(0,i).replace(/0/g,"\\0")+"0".repeat(e-i),ut(nt(c.prototype),"_update",this).call(this,t)}}
1,{key:"doValidate",value:function(){var t,e=this.value,n="",r="",i=ct(e.match(/^(\D*)(\d*)(\D*)/)||[],3),a=i[1],s=i[2];if(s&&(n="0".repeat(a.length)+s,r="9".repeat(a.length)+s),-1===e.search(/[^0]/)&&e.length<=this._matchFrom)return!0;n=n.padEnd(this.maxLength,"0"),r=r.padEnd(this.maxLength,"9");for(var u=arguments.length,o=new Array(u),l=0;l<u;l++)o[l]=arguments[l];return this.from<=Number(r)&&Number(n)<=this.to&&(t=ut(nt(c.prototype),"doValidate",this)).call.apply(t,[this].concat(o))}},{key:"_matchFrom",get:function(){return this.maxLength-String(this.from).length}},{key:"isComplete",get:function(){return ut(nt(c.prototype),"isComplete",this)&&Boolean(this.value)}}]),c}(),Bt=function(t){function a(t){return $(this,a),at(this,nt(a).call(this,tt({},a.DEFAULTS,t)))}return et(a,Ft),W(a,[{key:"_update",value:function(t){t.mask===Date&&delete t.mask,t.pattern&&(t.mask=t.pattern,delete t.pattern);var e=t.blocks;t.blocks=Q({},a.GET_DEFAULT_BLOCKS()),t.min&&(t.blocks.Y.from=t.min.getFullYear()),t.max&&(t.blocks.Y.to=t.max.getFullYear()),t.min&&t.max&&t.blocks.Y.from===t.blocks.Y.to&&(t.blocks.m.from=t.min.getMonth()+1,t.blocks.m.to=t.max.getMonth()+1,t.blocks.m.from===t.blocks.m.to&&(t.blocks.d.from=t.min.getDate(),t.blocks.d.to=t.max.getDate())),Q(t.blocks,e),ut(nt(a.prototype),"_update",this).call(this,t)}},{key:"doValidate",value:function(){for(var t,e=this.date,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=ut(nt(a.prototype),"doValidate",this)).call.apply(t,[this].concat(r))&&(!this.isComplete||this.isDateExist(this.value)&&null!=e&&(null==this.min||this.min<=e)&&(null==this.max||e<=this.max))}},{key:"isDateExist",value:function(t){return this.format(this.parse(t))===t}},{key:"date",get:function(){return this.isComplete?this.parse(this.value):null},set:function(t){this.value=this.format(t)}},{key:"typedValue",get:function(){return this.date},set:function(t){this.date=t}}]),a}();Bt.DEFAULTS={pattern:"d{.}`m{.}`Y",format:function(t){return[String(t.getDate()).padStart(2,"0"),String(t.getMonth()+1).padStart(2,"0"),t.getFullYear()].join(".")},parse:function(t){var e=ct(t.split("."),3),n=e[0],r=e[1],i=e[2];return new Date(i,r-1,n)}},Bt.GET_DEFAULT_BLOCKS=function(){return{d:{mask:xt,from:1,to:31,maxLength:2},m:{mask:xt,from:1,to:12,maxLength:2},Y:{mask:xt,from:1900,to:9999}}};var Dt=function(){function t(){$(this,t)}return W(t,[{key:"select",value:function(t,e){if(null!=t&&null!=e&&(t!==this.selectionStart||e!==this.selectionEnd))try{this._unsafeSelect(t,e)}catch(t){}}},{key:"_unsafeSelect",value:function(t,e){}},{key:"bindEvents",value:function(t){}},{key:"unbindEvents",value:function(){}},{key:"selectionStart",get:function(){var t;try{t=this._unsafeSelectionStart}catch(t){}return null!=t?t:this.value.length}},{key:"selectionEnd",get:function(){var t;try{t=this._unsafeSelectionEnd}catch(t){}return null!=t?t:this.value.length}},{key:"isActive",get:function(){return!1}}]),t}(),Mt=function(t){function r(t){var e;return $(this,r),(e=at(this,nt(r).call(this))).input=t,e._handlers={},e}return et(r,Dt),W(r,[{key:"_unsafeSelect",value:function(t,e){this.input.setSelectionRange(t,e)}},{key:"bindEvents",value:function(e){var n=this;Object.keys(e).forEach(function(t){return n._toggleEventHandler(r.EVENTS_MAP[t],e[t])})}},{key:"unbindEvents",value:function(){var e=this;Object.keys(this._handlers).forEach(function(t){return e._toggleEventHandler(t)})}},{key:"_toggleEventHandler",value:function(t,e){this._handlers[t]&&(this.input.removeEventListener(t,this._handlers[t]),delete this._handlers[t]),e&&(this.input.addEventListener(t,e),this._handlers[t]=e)}},{key:"isActive",get:function(){return this.input===document.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(t){this.input.value=t}}]),r}();Mt.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"change"};var Pt=function(){function n(t,e){$(this,n),this.el=t instanceof Dt?t:new Mt(t),this.masked=Ct(e),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.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateV
1alue(),this._onChange()}return W(n,[{key:"_bindEvents",value:function(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this.alignCursorFriendly,focus:this.alignCursorFriendly,commit:this._onChange})}},{key:"_unbindEvents",value:function(){this.el.unbindEvents()}},{key:"_fireEvent",value:function(t){var e=this._listeners[t];e&&e.forEach(function(t){return t()})}},{key:"_saveSelection",value:function(){this.value!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}},{key:"updateValue",value:function(){this.masked.value=this.el.value,this._value=this.masked.value}},{key:"updateControl",value:function(){var t=this.masked.unmaskedValue,e=this.masked.value,n=this.unmaskedValue!==t||this.value!==e;this._unmaskedValue=t,this._value=e,this.el.value!==e&&(this.el.value=e),n&&this._fireChangeEvents()}},{key:"updateOptions",value:function(t){if(!function t(e,n){if(n===e)return!0;var r,i=Array.isArray(n),a=Array.isArray(e);if(i&&a){if(n.length!=e.length)return!1;for(r=0;r<n.length;r++)if(!t(n[r],e[r]))return!1;return!0}if(i!=a)return!1;if(n&&e&&"object"===G(n)&&"object"===G(e)){var s=n instanceof Date,u=e instanceof Date;if(s&&u)return n.getTime()==e.getTime();if(s!=u)return!1;var o=n instanceof RegExp,l=e instanceof RegExp;if(o&&l)return n.toString()==e.toString();if(o!=l)return!1;var c=Object.keys(n);for(r=0;r<c.length;r++)if(!Object.prototype.hasOwnProperty.call(e,c[r]))return!1;for(r=0;r<c.length;r++)if(!t(e[c[r]],n[c[r]]))return!1;return!0}return!1}(this.masked,t)){var e=t.mask,n=it(t,["mask"]);this.mask=e,this.masked.updateOptions(n),this.updateControl()}}},{key:"updateCursor",value:function(t){null!=t&&(this.cursorPos=t,this._delayUpdateCursor(t))}},{key:"_delayUpdateCursor",value:function(t){var e=this;this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(function(){e.el&&(e.cursorPos=e._changingCursorPos,e._abortUpdateCursor())},10)}},{key:"_fireChangeEvents",value:function(){this._fireEvent("accept"),this.masked.isComplete&&this._fireEvent("complete")}},{key:"_abortUpdateCursor",value:function(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}},{key:"alignCursor",value:function(){this.cursorPos=this.masked.nearestInputPos(this.cursorPos,ft)}},{key:"alignCursorFriendly",value:function(){this.selectionStart===this.cursorPos&&this.alignCursor()}},{key:"on",value:function(t,e){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e),this}},{key:"off",value:function(t,e){if(this._listeners[t]){if(e){var n=this._listeners[t].indexOf(e);return 0<=n&&this._listeners[t].splice(n,1),this}delete this._listeners[t]}}},{key:"_onInput",value:function(){if(this._abortUpdateCursor(),!this._selection)return this.updateValue();var t=new kt(this.el.value,this.cursorPos,this.value,this._selection),e=this.masked.rawInputValue,n=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection).offset,r=e===this.masked.rawInputValue?t.removeDirection:ht,i=this.masked.nearestInputPos(t.startChangePos+n,r);this.updateControl(),this.updateCursor(i)}},{key:"_onChange",value:function(){this.value!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl()}},{key:"_onDrop",value:function(t){t.preventDefault(),t.stopPropagation()}},{key:"destroy",value:function(){this._unbindEvents(),this._listeners.length=0,delete this.el}},{key:"mask",get:function(){return this.masked.mask},set:function(t){if(!(null==t||t===this.masked.mask||t===Date&&this.masked instanceof Bt))if(this.masked.constructor!==_t(t)){var e=Ct({mask:t});e.unmaskedValue=this.masked.unmaskedValue,this.masked=e}else this.masked.updateOptions({mask:t})}},{key:"value",get:function(){return this._value},set:function(t){this.masked.value=t,this.updateControl(),this.alignCursor()}},{key:"unmaskedValue",get:function(){return this._unmaskedValue},set:function(t){this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor()}},{key:"typedValue",get:function(){return this.masked.typedValue},set:function(t){this.masked.typedValue=t,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(t){this.el.isActive&&(this.el.select(t,t),this._saveSelection())}}]),n}(),Tt=function(t){function a(){return $(this,a),at(this,nt(a).apply(this,arguments))}return et(a,Ft),W(a,[{key:"_update",value:function(t){t.enum&&(t.mask="*".repeat(t.enum[0].length)),ut(nt(a.prototype),"_update",this).call(this,t)}},{key:"doValidate",value:function(){for(var t,e=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.enum.some(function(t){return 0<=t.indexOf(e.unmaskedValue)})&&(t=ut(nt(a.prototype),"doValidate",this)).call.apply(t,[this].concat(r))}}]),a}(),Ot=function(t){function a(t){return $(this,a),at(this,nt(a).c
1all(this,tt({},a.DEFAULTS,t)))}return et(a,bt),W(a,[{key:"_update",value:function(t){ut(nt(a.prototype),"_update",this).call(this,t),this._updateRegExps()}},{key:"_updateRegExps",value:function(){var t="",e="";this.allowNegative?(t+="([+|\\-]?|([+|\\-]?(0|([1-9]+\\d*))))",e+="[+|\\-]?"):t+="(0|([1-9]+\\d*))",e+="\\d*";var n=(this.scale?"("+gt(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExpInput=new RegExp("^"+t+n),this._numberRegExp=new RegExp("^"+e+n),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(gt).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(gt(this.thousandsSeparator),"g")}},{key:"extractTail",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.value.length,n=ut(nt(a.prototype),"extractTail",this).call(this,t,e);return tt({},n,{value:this._removeThousandsSeparators(n.value)})}},{key:"_removeThousandsSeparators",value:function(t){return t.replace(this._thousandsSeparatorRegExp,"")}},{key:"_insertThousandsSeparators",value:function(t){var e=t.split(this.radix);return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),e.join(this.radix)}},{key:"doPrepare",value:function(t){for(var e,n=arguments.length,r=new Array(1<n?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(e=ut(nt(a.prototype),"doPrepare",this)).call.apply(e,[this,this._removeThousandsSeparators(t.replace(this._mapToRadixRegExp,this.radix))].concat(r))}},{key:"_separatorsCount",value:function(){for(var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._value,e=this._removeThousandsSeparators(t).length,n=e,r=0;r<=n;++r)this._value[r]===this.thousandsSeparator&&++n;return n-e}},{key:"extractInput",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this._removeThousandsSeparators((t=ut(nt(a.prototype),"extractInput",this)).call.apply(t,[this].concat(n)))}},{key:"_appendCharRaw",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!this.thousandsSeparator)return ut(nt(a.prototype),"_appendCharRaw",this).call(this,t,e);var n=this._separatorsCount(e.tail&&this._beforeTailState?this._beforeTailState._value:this._value);this._value=this._removeThousandsSeparators(this.value);var r=ut(nt(a.prototype),"_appendCharRaw",this).call(this,t,e);this._value=this._insertThousandsSeparators(this._value);var i=this._separatorsCount(e.tail&&this._beforeTailState?this._beforeTailState._value:this._value);return r.tailShift+=i-n,r}},{key:"remove",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.value.length,n=this.value.slice(0,t),r=this.value.slice(e),i=this._separatorsCount(n);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+r));var a=this._separatorsCount(n);return new yt({tailShift:a-i})}},{key:"nearestInputPos",value:function(t,n){if(!n||n===ft)return t;var e,r=(e=t,n===ft&&--e,e);return this.value[r]===this.thousandsSeparator&&(t=function(t,e){switch(n){case ft:case dt:return--t;case pt:case vt:return++t;default:return t}}(t)),t}},{key:"doValidate",value:function(t){var e=(t.input?this._numberRegExpInput:this._numberRegExp).test(this._removeThousandsSeparators(this.value));if(e){var n=this.number;e=e&&!isNaN(n)&&(null==this.min||0<=this.min||this.min<=this.number)&&(null==this.max||this.max<=0||this.number<=this.max)}return e&&ut(nt(a.prototype),"doValidate",this).call(this,t)}},{key:"doCommit",value:function(){var t=this.number,e=t;null!=this.min&&(e=Math.max(e,this.min)),null!=this.max&&(e=Math.min(e,this.max)),e!==t&&(this.unmaskedValue=String(e));var n=this.value;this.normalizeZeros&&(n=this._normalizeZeros(n)),this.padFractionalZeros&&(n=this._padFractionalZeros(n)),this._value=this._insertThousandsSeparators(n),ut(nt(a.prototype),"doCommit",this).call(this)}},{key:"_normalizeZeros",value:function(t){var e=this._removeThousandsSeparators(t).split(this.radix);return e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,function(t,e,n,r){return e+r}),t.length&&!/\d$/.test(e[0])&&(e[0]=e[0]+"0"),1<e.length&&(e[1]=e[1].replace(/0*$/,""),e[1].length||(e.length=1)),this._insertThousandsSeparators(e.join(this.radix))}},{key:"_padFractionalZeros",value:function(t){if(!t)return t;var e=t.split(this.radix);return e.length<2&&e.push(""),e[1]=e[1].padEnd(this.scale,"0"),e.join(this.radix)}},{key:"unmaskedValue",get:function(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,".")},set:function(t){lt(nt(a.prototype),"unmaskedValue",t.replace(".",this.radix),this,!0)}},{key:"number",get:function(){return Number(this.unmaskedValue)},set:function(t){this.unmaskedValue=String(t)}},{key:"typedValue",get:function(){return this.number},set:function(t){this.number=t}},{key:"allowNegative",get:function(){return this.signed||null!=this.min&&this.min<0||null!=this.max&&this.max<0}}]),a}();Ot.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:["."],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1};var Vt=function(t){function n(){return $(this,n),at(this,nt(n).apply(this,arguments))}return et(n,bt),W(n,[{key:"_update",value:function(e){e.mask&&(e.validate=function(t){return 0<=t.search(e.mask)}),ut(nt(n.prototype),"_update",this).call(this,e)}}]),n}(),It=function(t){function e(){return $(this,e),at(this,nt(e).apply(this,arguments))}return et(e,bt),W(e,[{key:"_update",value:function(t){t.mask&&(t.validate=t.mask),ut(nt(e.prototype),"_update",this).call(this,t)}}]),e}(),jt=function(t){function a(t){var e;
1return $(this,a),(e=at(this,nt(a).call(this,tt({},a.DEFAULTS,t)))).currentMask=null,e}return et(a,bt),W(a,[{key:"_update",value:function(t){ut(nt(a.prototype),"_update",this).call(this,t),"mask"in t&&(this.compiledMasks=Array.isArray(t.mask)?t.mask.map(function(t){return Ct(t)}):[])}},{key:"_appendCharRaw",value:function(){var t,e=this._applyDispatch.apply(this,arguments);return this.currentMask&&e.aggregate((t=this.currentMask)._appendChar.apply(t,arguments)),e}},{key:"_applyDispatch",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=e.tail&&this._beforeTailState?this._beforeTailState._value:this.value,r=this.rawInputValue,i=e.tail&&this._beforeTailState?this._beforeTailState._rawInputValue:r,a=r.slice(i.length),s=this.currentMask,u=new yt,o=s&&s.state,l=s&&s._beforeTailState;if(this.currentMask=this.doDispatch(t,e),this.currentMask)if(this.currentMask!==s){this.currentMask.reset();var c=this.currentMask.append(i,{raw:!0});u.tailShift=c.inserted.length-n.length,a&&(u.tailShift+=this.currentMask.append(a,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=o,this.currentMask._beforeTailState=l;return u}},{key:"doDispatch",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return this.dispatch(t,this,e)}},{key:"doValidate",value:function(){for(var t,e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=ut(nt(a.prototype),"doValidate",this)).call.apply(t,[this].concat(r))&&(!this.currentMask||(e=this.currentMask).doValidate.apply(e,r))}},{key:"reset",value:function(){this.currentMask&&this.currentMask.reset(),this.compiledMasks.forEach(function(t){return t.reset()})}},{key:"remove",value:function(){var t,e=new yt;return this.currentMask&&e.aggregate((t=this.currentMask).remove.apply(t,arguments)).aggregate(this._applyDispatch()),e}},{key:"extractInput",value:function(){var t;return this.currentMask?(t=this.currentMask).extractInput.apply(t,arguments):""}},{key:"extractTail",value:function(){for(var t,e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.currentMask?(t=this.currentMask).extractTail.apply(t,r):(e=ut(nt(a.prototype),"extractTail",this)).call.apply(e,[this].concat(r))}},{key:"doCommit",value:function(){this.currentMask&&this.currentMask.doCommit(),ut(nt(a.prototype),"doCommit",this).call(this)}},{key:"nearestInputPos",value:function(){for(var t,e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.currentMask?(t=this.currentMask).nearestInputPos.apply(t,r):(e=ut(nt(a.prototype),"nearestInputPos",this)).call.apply(e,[this].concat(r))}},{key:"value",get:function(){return this.currentMask?this.currentMask.value:""},set:function(t){lt(nt(a.prototype),"value",t,this,!0)}},{key:"unmaskedValue",get:function(){return this.currentMask?this.currentMask.unmaskedValue:""},set:function(t){lt(nt(a.prototype),"unmaskedValue",t,this,!0)}},{key:"typedValue",get:function(){return this.currentMask?this.currentMask.typedValue:""},set:function(t){var e=String(t);this.currentMask&&(this.currentMask.typedValue=t,e=this.currentMask.unmaskedValue),this.unmaskedValue=e}},{key:"isComplete",get:function(){return!!this.currentMask&&this.currentMask.isComplete}},{key:"state",get:function(){return tt({},ut(nt(a.prototype),"state",this),{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(function(t){return t.state}),currentMaskRef:this.currentMask,currentMask:this.currentMask&&this.currentMask.state})},set:function(t){var n=t.compiledMasks,e=t.currentMaskRef,r=t.currentMask,i=it(t,["compiledMasks","currentMaskRef","currentMask"]);this.compiledMasks.forEach(function(t,e){return t.state=n[e]}),null!=e&&(this.currentMask=e,this.currentMask.state=r),lt(nt(a.prototype),"state",i,this,!0)}}]),a}();function Nt(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return new Pt(t,e)}return jt.DEFAULTS={dispatch:function(n,t,r){if(t.compiledMasks.length){var i=t.rawInputValue,e=t.compiledMasks.map(function(t,e){return t.rawInputValue=i,t.append(n,r),{weight:t.rawInputValue.length,index:e}});return e.sort(function(t,e){return e.weight-t.weight}),t.compiledMasks[e[0].index]}}}
1,Nt.InputMask=Pt,Nt.Masked=bt,Nt.MaskedPattern=Ft,Nt.MaskedEnum=Tt,Nt.MaskedRange=xt,Nt.MaskedNumber=Ot,Nt.MaskedDate=Bt,Nt.MaskedRegExp=Vt,Nt.MaskedFunction=It,Nt.MaskedDynamic=jt,Nt.createMask=Ct,Nt.MaskElement=Dt,Nt.HTMLMaskElement=Mt,mt.IMask=Nt}),function(t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():window.noUiSlider=t()}(function(){"use strict";var at="13.1.0";function st(t){t.parentElement.removeChild(t)}function u(t){return null!=t}function ut(t){t.preventDefault()}function i(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function ot(t,e,n){0<n&&(ht(t,e),setTimeout(function(){ft(t,e)},n))}function lt(t){return Math.max(Math.min(t,100),0)}function ct(t){return Array.isArray(t)?t:[t]}function e(t){var e=(t=String(t)).split(".");return 1<e.length?e[1].length:0}function ht(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function ft(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function dt(t){var e=void 0!==window.pageXOffset,n="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:n?t.documentElement.scrollLeft:t.body.scrollLeft,y:e?window.pageYOffset:n?t.documentElement.scrollTop:t.body.scrollTop}}function c(t,e){return 100/(e-t)}function h(t,e){return 100*e/(t[1]-t[0])}function f(t,e){for(var n=1;t>=e[n];)n+=1;return n}function a(t,e,n){var r;if("number"==typeof e&&(e=[e]),!Array.isArray(e))throw new Error("noUiSlider ("+at+"): 'range' contains invalid value.");if(!i(r="min"===t?0:"max"===t?100:parseFloat(t))||!i(e[0]))throw new Error("noUiSlider ("+at+"): 'range' value isn't numeric.");n.xPct.push(r),n.xVal.push(e[0]),r?n.xSteps.push(!isNaN(e[1])&&e[1]):isNaN(e[1])||(n.xSteps[0]=e[1]),n.xHighestCompleteStep.push(0)}function s(t,e,n){if(!e)return!0;n.xSteps[t]=h([n.xVal[t],n.xVal[t+1]],e)/c(n.xPct[t],n.xPct[t+1]);var r=(n.xVal[t+1]-n.xVal[t])/n.xNumSteps[t],i=Math.ceil(Number(r.toFixed(3))-1),a=n.xVal[t]+n.xNumSteps[t]*i;n.xHighestCompleteStep[t]=a}function n(t,e,n){var r;this.xPct=[],this.xVal=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e;var i=[];for(r in t)t.hasOwnProperty(r)&&i.push([t[r],r]);for(i.length&&"object"==typeof i[0][0]?i.sort(function(t,e){return t[0][0]-e[0][0]}):i.sort(function(t,e){return t[0]-e[0]}),r=0;r<i.length;r++)a(i[r][1],i[r][0],this);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)s(r,this.xNumSteps[r],this)}n.prototype.getMargin=function(t){var e=this.xNumSteps[0];if(e&&t/e%1!=0)throw new Error("noUiSlider ("+at+"): 'limit', 'margin' and 'padding' must be divisible by step.");return 2===this.xPct.length&&h(this.xVal,t)},n.prototype.toStepping=function(t){return function(t,e,n){if(n>=t.slice(-1)[0])return 100;var r,i,a=f(n,t),s=t[a-1],u=t[a],o=e[a-1],l=e[a];return o+(i=n,h(r=[s,u],r[0]<0?i+Math.abs(r[0]):i-r[0])/c(o,l))}(this.xVal,this.xPct,t)},n.prototype.fromStepping=function(t){return function(t,e,n){if(100<=n)return t.slice(-1)[0];var r,i=f(n,e),a=t[i-1],s=t[i],u=e[i-1];return r=[a,s],(n-u)*c(u,e[i])*(r[1]-r[0])/100+r[0]}(this.xVal,this.xPct,t)},n.prototype.getStep=function(t){return function(t,e,n,r){if(100===r)return r;var i,a,s=f(r,t),u=t[s-1],o=t[s];return n?(o-u)/2<r-u?o:u:e[s-1]?t[s-1]+(i=r-t[s-1],a=e[s-1],Math.round(i/a)*a):r}(this.xPct,this.xSteps,this.snap,t)},n.prototype.getDefaultStep=function(t,e,n){var r=f(t,this.xPct);return(100===t||e&&t===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/n},n.prototype.getNearbySteps=function(t){var e=f(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e],step:this.xNumSteps[e],highestStep:this.xHighestCompleteStep[e]}}},n.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(e);return Math.max.apply(null,t)},n.prototype.convert=function(t){return this.getStep(this.toStepping(t))};var o={to:function(t){return void 0!==t&&t.toFixed(2)},from:Number};function r(t){if("object"==typeof(e=t)&&"function"==typeof e.to&&"function"==typeof e.from)return!0;var e;throw new Error("noUiSlider ("+at+"): 'format' requires 'to' and 'from' methods.")}function l(t,e){if(!i(e))throw new Error("noUiSlider ("+at+"): 'step' is not numeric.");t.singleStep=e}function d(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider ("+at+"): 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider ("+at+"): Missing 'min' or 'max' in 'range'.");if(e.min===e.max)throw new Error("noUiSlider ("+at+"): 'range' 'min' and 'max' cannot be equal.");t.spectrum=new n(e,t.snap,t.singleStep)}function p(t,e){if(e=ct(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider ("+at+"): 'start' option is incorrect.");t.handles=e.length,t.start=e}function v(t,e){if("boolean"!=typeof(t.snap=e))throw new Error("noUiSlider ("+at+"): 'snap' option must be a boolean.")}function g(t,e){if("boolean"!=typeof(t.animate=e))throw new Error("noUiSlider ("+at+"): 'animate' option must be a boolean.")}function m(t,e){if("number"!=typeof(t.animationDuration=e))throw new Error("noUiSlider ("+at+"): 'animationDuration' option must be a number.")}function k(t,e){var n,r=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(n=1;n<t.handles;n++)r.push(e);r.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider ("+at+"): 'connect' option doesn't match handle count.");r=e}t.connect=r}function y(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider ("+at+"): 'orientation' option is invali
1d.")}}function b(t,e){if(!i(e))throw new Error("noUiSlider ("+at+"): 'margin' option must be numeric.");if(0!==e&&(t.margin=t.spectrum.getMargin(e),!t.margin))throw new Error("noUiSlider ("+at+"): 'margin' option is only supported on linear sliders.")}function _(t,e){if(!i(e))throw new Error("noUiSlider ("+at+"): 'limit' option must be numeric.");if(t.limit=t.spectrum.getMargin(e),!t.limit||t.handles<2)throw new Error("noUiSlider ("+at+"): 'limit' option is only supported on linear sliders with 2 or more handles.")}function C(t,e){if(!i(e)&&!Array.isArray(e))throw new Error("noUiSlider ("+at+"): 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&2!==e.length&&!i(e[0])&&!i(e[1]))throw new Error("noUiSlider ("+at+"): 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==e){if(Array.isArray(e)||(e=[e,e]),!(t.padding=[t.spectrum.getMargin(e[0]),t.spectrum.getMargin(e[1])])===t.padding[0]||!1===t.padding[1])throw new Error("noUiSlider ("+at+"): 'padding' option is only supported on linear sliders.");if(t.padding[0]<0||t.padding[1]<0)throw new Error("noUiSlider ("+at+"): 'padding' option must be a positive number(s).");if(100<=t.padding[0]+t.padding[1])throw new Error("noUiSlider ("+at+"): 'padding' option must not exceed 100% of the range.")}}function A(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider ("+at+"): 'direction' option was not recognized.")}}function E(t,e){if("string"!=typeof e)throw new Error("noUiSlider ("+at+"): 'behaviour' must be a string containing options.");var n=0<=e.indexOf("tap"),r=0<=e.indexOf("drag"),i=0<=e.indexOf("fixed"),a=0<=e.indexOf("snap"),s=0<=e.indexOf("hover"),u=0<=e.indexOf("unconstrained");if(i){if(2!==t.handles)throw new Error("noUiSlider ("+at+"): 'fixed' behaviour must be used with 2 handles");b(t,t.start[1]-t.start[0])}if(u&&(t.margin||t.limit))throw new Error("noUiSlider ("+at+"): 'unconstrained' behaviour cannot be used with margin or limit");t.events={tap:n||a,drag:r,fixed:i,snap:a,hover:s,unconstrained:u}}function S(t,e){if(!1!==e)if(!0===e){t.tooltips=[];for(var n=0;n<t.handles;n++)t.tooltips.push(!0)}else{if(t.tooltips=ct(e),t.tooltips.length!==t.handles)throw new Error("noUiSlider ("+at+"): must pass a formatter for all handles.");t.tooltips.forEach(function(t){if("boolean"!=typeof t&&("object"!=typeof t||"function"!=typeof t.to))throw new Error("noUiSlider ("+at+"): 'tooltips' must be passed a formatter or 'false'.")})}}function w(t,e){r(t.ariaFormat=e)}function F(t,e){r(t.format=e)}function x(t,e){if("boolean"!=typeof(t.keyboardSupport=e))throw new Error("noUiSlider ("+at+"): 'keyboardSupport' option must be a boolean.")}function B(t,e){t.documentElement=e}function D(t,e){if("string"!=typeof e&&!1!==e)throw new Error("noUiSlider ("+at+"): 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function M(t,e){if("object"!=typeof e)throw new Error("noUiSlider ("+at+"): 'cssClasses' must be an object.");if("string"==typeof t.cssPrefix)for(var n in t.cssClasses={},e)e.hasOwnProperty(n)&&(t.cssClasses[n]=t.cssPrefix+e[n]);else t.cssClasses=e}function pt(e){var n={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:o,format:o},r={step:{r:!1,t:l},start:{r:!0,t:p},connect:{r:!0,t:k},direction:{r:!0,t:A},snap:{r:!1,t:v},animate:{r:!1,t:g},animationDuration:{r:!1,t:m},range:{r:!0,t:d},orientation:{r:!1,t:y},margin:{r:!1,t:b},limit:{r:!1,t:_},padding:{r:!1,t:C},behaviour:{r:!0,t:E},ariaFormat:{r:!1,t:w},format:{r:!1,t:F},tooltips:{r:!1,t:S},keyboardSupport:{r:!0,t:x},documentElement:{r:!1,t:B},cssPrefix:{r:!0,t:D},cssClasses:{r:!0,t:M}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"}};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(r).forEach(function(t){if(!u(e[t])&&void 0===i[t]){if(r[t].r)throw new Error("noUiSlider ("+at+"): '"+t+"' is required.");return!0}r[t].t(n,u(e[t])?e[t]:i[t])}),n.pips=e.pips;var t=document.createElement("div"),a=void 0!==t.style.msTransform,s=void 0!==t.style.transform;return n.transformRule=s?"transform":a?"msTransform":"webkitTransform",n.style=[["left","top"],["right","bottom"]][n.dir][n.ort],n}function P(t,f,a){var o,l,s,c,i,u,e,h,d=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}
1:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},p=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),C=t,v=!0,A=f.spectrum,g=[],m=[],k=[],y=0,b={},E=t.ownerDocument,_=f.documentElement||E.documentElement,S=E.body,w=-1,F=0,x=1,B=2,D="rtl"===E.dir||1===f.ort?0:100;function M(t,e){var n=E.createElement("div");return e&&ht(n,e),t.appendChild(n),n}function P(t,e){var n=M(t,f.cssClasses.origin),r=M(n,f.cssClasses.handle);return M(r,f.cssClasses.touchArea),r.setAttribute("data-handle",e),f.keyboardSupport&&(r.setAttribute("tabindex","0"),r.addEventListener("keydown",function(t){return function(t,e){if(O(e))return!1;var n=["Left","Right"],r=["Down","Up"];f.dir&&!f.ort?n.reverse():f.ort&&!f.dir&&r.reverse();var i=t.key.replace("Arrow",""),a=i===r[0]||i===n[0],s=i===r[1]||i===n[1];if(!a&&!s)return!0;t.preventDefault();var u=a?0:1,o=it(e)[u];return null!==o&&(!1===o&&(o=A.getDefaultStep(m[e],a,10)),o*=a?-1:1,v=!1,nt(e,g[e]+o,!0),!(v=!0))}(t,e)})),r.setAttribute("role","slider"),r.setAttribute("aria-orientation",f.ort?"vertical":"horizontal"),0===e?ht(r,f.cssClasses.handleLower):e===f.handles-1&&ht(r,f.cssClasses.handleUpper),n}function T(t,e){return!!e&&M(t,f.cssClasses.connect)}function n(t,e){return!!f.tooltips[e]&&M(t.firstChild,f.cssClasses.tooltip)}function O(t){return l[t].hasAttribute("disabled")}function V(){i&&(Z("update.tooltips"),i.forEach(function(t){t&&st(t)}),i=null)}function I(){V(),i=l.map(n),r("update.tooltips",function(t,e,n){if(i[e]){var r=t[e];!0!==f.tooltips[e]&&(r=f.tooltips[e].to(n[e])),i[e].innerHTML=r}})}function j(){c&&(st(c),c=null)}function N(t){j();var v,g,m,k,e,n,y,b,_,r=t.mode,i=t.density||1,a=t.filter||!1,s=function(t,e,n){if("range"===t||"steps"===t)return A.xVal;if("count"===t){if(e<2)throw new Error("noUiSlider ("+at+"): 'values' (>= 2) required for mode 'count'.");var r=e-1,i=100/r;for(e=[];r--;)e[r]=r*i;e.push(100),t="positions"}return"positions"===t?e.map(function(t){return A.fromStepping(n?A.getStep(t):t)}):"values"===t?n?e.map(function(t){return A.fromStepping(A.getStep(A.toStepping(t)))}):e:void 0}(r,t.values||!1,t.stepped||!1),u=(v=i,g=r,m=s,k={},e=A.xVal[0],n=A.xVal[A.xVal.length-1],b=y=!1,_=0,(m=m.slice().sort(function(t,e){return t-e}).filter(function(t){return!this[t]&&(this[t]=!0)},{}))[0]!==e&&(m.unshift(e),y=!0),m[m.length-1]!==n&&(m.push(n),b=!0),m.forEach(function(t,e){var n,r,i,a,s,u,o,l,c,h,f=t,d=m[e+1],p="steps"===g;if(p&&(n=A.xNumSteps[e]),n||(n=d-f),!1!==f&&void 0!==d)for(n=Math.max(n,1e-7),r=f;r<=d;r=(r+n).toFixed(7)/1){for(l=(s=(a=A.toStepping(r))-_)/v,h=s/(c=Math.round(l)),i=1;i<=c;i+=1)k[(u=_+i*h).toFixed(5)]=[A.fromStepping(u),0];o=-1<m.indexOf(r)?x:p?B:F,!e&&y&&(o=0),r===d&&b||(k[a.toFixed(5)]=[r,o]),_=a}}),k),o=t.format||{to:Math.round};return c=C.appendChild(function(e,i,a){var s=E.createElement("div"),u=[];u[F]=f.cssClasses.valueNormal,u[x]=f.cssClasses.valueLarge,u[B]=f.cssClasses.valueSub;var o=[];o[F]=f.cssClasses.markerNormal,o[x]=f.cssClasses.markerLarge,o[B]=f.cssClasses.markerSub;var l=[f.cssClasses.valueHorizontal,f.cssClasses.valueVertical],c=[f.cssClasses.markerHorizontal,f.cssClasses.markerVertical];function h(t,e){var n=e===f.cssClasses.value,r=n?u:o;return e+" "+(n?l:c)[f.ort]+" "+r[t]}return ht(s,f.cssClasses.pips),ht(s,0===f.ort?f.cssClasses.pipsHorizontal:f.cssClasses.pipsVertical),Object.keys(e).forEach(function(t){!function(t,e,n){if((n=i?i(e,n):n)!==w){var r=M(s,!1);r.className=h(n,f.cssClasses.marker),r.style[f.style]=t+"%",F<n&&((r=M(s,!1)).className=h(n,f.cssClasses.value),r.setAttribute("data-value",e),r.style[f.style]=t+"%",r.innerHTML=a.to(e))}}(t,e[t][0],e[t][1])}),s}(u,a,o))}function R(){var t=o.getBoundingClientRect(),e="offset"+["Width","Height"][f.ort];return 0===f.ort?t.width||o[e]:t.height||o[e]}function L(r,i,a,s){var e=function(t){return!!(t=function(t,e,n){var r,i,a=0===t.type.indexOf("touch"),s=0===t.type.indexOf("mouse"),u=0===t.type.indexOf("pointer");if(0===t.type.indexOf("MSPointer")&&(u=!0),a){var o=function(t){return t.target===n||n.contains(t.target)};if("touchstart"===t.type){var l=Array.prototype.filter.call(t.touches,o);if(1<l.length)return!1;r=l[0].pageX,i=l[0].pageY}else{var c=Array.prototype.find.call(t.changedTouches,o);if(!c)return!1;r=c.pageX,i=c.pageY}}return e=e||dt(E),(s||u)&&(r=t.clientX+e.x,i=t.clientY+e.y),t.pageOffset=e,t.points=[r,i],t.cursor=s||u,t}(t,s.pageOffset,s.target||i))&&!(C.hasAttribute("disabled")&&!s.doNotReject)&&(e=C,n=f.cssClasse
1s.tap,!((e.classList?e.classList.contains(n):new RegExp("\\b"+n+"\\b").test(e.className))&&!s.doNotReject)&&!(r===d.start&&void 0!==t.buttons&&1<t.buttons)&&(!s.hover||!t.buttons)&&(p||t.preventDefault(),t.calcPoint=t.points[f.ort],void a(t,s)));var e,n},n=[];return r.split(" ").forEach(function(t){i.addEventListener(t,e,!!p&&{passive:!0}),n.push([t,e])}),n}function U(t){var e,n,r,i,a,s,u=100*(t-(e=o,n=f.ort,r=e.getBoundingClientRect(),a=(i=e.ownerDocument).documentElement,s=dt(i),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(s.x=0),n?r.top+s.y-a.clientTop:r.left+s.x-a.clientLeft))/R();return u=lt(u),f.dir?100-u:u}function z(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&Y(t,e)}function H(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return Y(t,e);var n=(f.dir?-1:1)*(t.calcPoint-e.startCalcPoint);X(0<n,100*n/e.baseSize,e.locations,e.handleNumbers)}function Y(t,e){e.handle&&(ft(e.handle,f.cssClasses.active),y-=1),e.listeners.forEach(function(t){_.removeEventListener(t[0],t[1])}),0===y&&(ft(C,f.cssClasses.drag),J(),t.cursor&&(S.style.cursor="",S.removeEventListener("selectstart",ut))),e.handleNumbers.forEach(function(t){q("change",t),q("set",t),q("end",t)})}function K(t,e){if(e.handleNumbers.some(O))return!1;var n;1===e.handleNumbers.length&&(n=l[e.handleNumbers[0]].children[0],y+=1,ht(n,f.cssClasses.active)),t.stopPropagation();var r=[],i=L(d.move,_,H,{target:t.target,handle:n,listeners:r,startCalcPoint:t.calcPoint,baseSize:R(),pageOffset:t.pageOffset,handleNumbers:e.handleNumbers,buttonsProperty:t.buttons,locations:m.slice()}),a=L(d.end,_,Y,{target:t.target,handle:n,listeners:r,doNotReject:!0,handleNumbers:e.handleNumbers}),s=L("mouseout",_,z,{target:t.target,handle:n,listeners:r,doNotReject:!0,handleNumbers:e.handleNumbers});r.push.apply(r,i.concat(a,s)),t.cursor&&(S.style.cursor=getComputedStyle(t.target).cursor,1<l.length&&ht(C,f.cssClasses.drag),S.addEventListener("selectstart",ut,!1)),e.handleNumbers.forEach(function(t){q("start",t)})}function r(t,e){b[t]=b[t]||[],b[t].push(e),"update"===t.split(".")[0]&&l.forEach(function(t,e){q("update",e)})}function Z(t){var r=t&&t.split(".")[0],i=r&&t.substring(r.length);Object.keys(b).forEach(function(t){var e=t.split(".")[0],n=t.substring(e.length);r&&r!==e||i&&i!==n||delete b[t]})}function q(n,r,i){Object.keys(b).forEach(function(t){var e=t.split(".")[0];n===e&&b[t].forEach(function(t){t.call(u,g.map(f.format.to),r,g.slice(),i||!1,m.slice())})})}function G(t,e,n,r,i,a){return 1<l.length&&!f.events.unconstrained&&(r&&0<e&&(n=Math.max(n,t[e-1]+f.margin)),i&&e<l.length-1&&(n=Math.min(n,t[e+1]-f.margin))),1<l.length&&f.limit&&(r&&0<e&&(n=Math.min(n,t[e-1]+f.limit)),i&&e<l.length-1&&(n=Math.max(n,t[e+1]-f.limit))),f.padding&&(0===e&&(n=Math.max(n,f.padding[0])),e===l.length-1&&(n=Math.min(n,100-f.padding[1]))),!((n=lt(n=A.getStep(n)))===t[e]&&!a)&&n}function $(t,e){var n=f.ort;return(n?e:t)+", "+(n?t:e)}function X(t,r,n,e){var i=n.slice(),a=[!t,t],s=[t,!t];e=e.slice(),t&&e.reverse(),1<e.length?e.forEach(function(t,e){var n=G(i,t,i[t]+r,a[e],s[e],!1);!1===n?r=0:(r=n-i[t],i[t]=n)}):a=s=[!0];var u=!1;e.forEach(function(t,e){u=Q(t,n[t]+r,a[e],s[e])||u}),u&&e.forEach(function(t){q("update",t),q("slide",t)})}function W(t,e){return f.dir?100-t-e:t}function J(){k.forEach(function(t){var e=50<m[t]?-1:1,n=3+(l.length+e*t);l[t].style.zIndex=n})}function Q(t,e,n,r){return!1!==(e=G(m,t,e,n,r,!1))&&(function(t,e){m[t]=e,g[t]=A.fromStepping(e);var n="translate("+$(W(e,0)-D+"%","0")+")";l[t].style[f.transformRule]=n,tt(t),tt(t+1)}(t,e),!0)}function tt(t){if(s[t]){var e=0,n=100;0!==t&&(e=m[t-1]),t!==s.length-1&&(n=m[t]);var r=n-e,i="translate("+$(W(e,r)+"%","0")+")",a="scale("+$(r/100,"1")+")";s[t].style[f.transformRule]=i+" "+a}}function et(t,e){var r=ct(t),n=void 0===m[0];e=void 0===e||!!e,f.animate&&!n&&v&&ot(C,f.cssClasses.tap,f.animationDuration),k.forEach(function(t){var e,n;Q(t,null===(e=r[n=t])||!1===e||void 0===e?m[n]:("number"==typeof e&&(e=String(e)),e=f.format.from(e),!1===(e=A.toStepping(e))||isNaN(e)?m[n]:e),!0,!1)}
1),k.forEach(function(t){Q(t,m[t],!0,!0)}),J(),k.forEach(function(t){q("update",t),null!==r[t]&&e&&q("set",t)})}function nt(t,e,n){var r=[];if(!(0<=(t=Number(t))&&t<k.length))throw new Error("noUiSlider ("+at+"): invalid handle number, got: "+t);for(var i=0;i<k.length;i++)r[i]=null;r[t]=e,et(r,n)}function rt(){var t=g.map(f.format.to);return 1===t.length?t[0]:t}function it(t){var e=m[t],n=A.getNearbySteps(e),r=g[t],i=n.thisStep.step,a=null;!1!==i&&r+i>n.stepAfter.startValue&&(i=n.stepAfter.startValue-r),a=r>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&r-n.stepBefore.highestStep,100===e?i=null:0===e&&(a=null);var s=A.countStepDecimals();return null!==i&&!1!==i&&(i=Number(i.toFixed(s))),null!==a&&!1!==a&&(a=Number(a.toFixed(s))),[a,i]}return ht(e=C,f.cssClasses.target),0===f.dir?ht(e,f.cssClasses.ltr):ht(e,f.cssClasses.rtl),0===f.ort?ht(e,f.cssClasses.horizontal):ht(e,f.cssClasses.vertical),o=M(e,f.cssClasses.base),function(t,e){var n=M(e,f.cssClasses.connects);l=[],(s=[]).push(T(n,t[0]));for(var r=0;r<f.handles;r++)l.push(P(e,r)),k[r]=r,s.push(T(n,t[r+1]))}(f.connect,o),(h=f.events).fixed||l.forEach(function(t,e){L(d.start,t.children[0],K,{handleNumbers:[e]})}),h.tap&&L(d.start,o,function(t){t.stopPropagation();var r,i,a,e=U(t.calcPoint),n=(r=e,a=!(i=100),l.forEach(function(t,e){if(!O(e)){var n=Math.abs(m[e]-r);(n<i||100===n&&100===i)&&(a=e,i=n)}}),a);if(!1===n)return!1;f.events.snap||ot(C,f.cssClasses.tap,f.animationDuration),Q(n,e,!0,!0),J(),q("slide",n,!0),q("update",n,!0),q("change",n,!0),q("set",n,!0),f.events.snap&&K(t,{handleNumbers:[n]})},{}),h.hover&&L(d.move,o,function(t){var e=U(t.calcPoint),n=A.getStep(e),r=A.fromStepping(n);Object.keys(b).forEach(function(t){"hover"===t.split(".")[0]&&b[t].forEach(function(t){t.call(u,r)})})},{hover:!0}),h.drag&&s.forEach(function(t,e){if(!1!==t&&0!==e&&e!==s.length-1){var n=l[e-1],r=l[e],i=[t];ht(t,f.cssClasses.draggable),h.fixed&&(i.push(n.children[0]),i.push(r.children[0])),i.forEach(function(t){L(d.start,t,K,{handles:[n,r],handleNumbers:[e-1,e]})})}}),et(f.start),f.pips&&N(f.pips),f.tooltips&&I(),r("update",function(t,e,s,n,u){k.forEach(function(t){var e=l[t],n=G(m,t,0,!0,!0,!0),r=G(m,t,100,!0,!0,!0),i=u[t],a=f.ariaFormat.to(s[t]);n=A.fromStepping(n).toFixed(1),r=A.fromStepping(r).toFixed(1),i=A.fromStepping(i).toFixed(1),e.children[0].setAttribute("aria-valuemin",n),e.children[0].setAttribute("aria-valuemax",r),e.children[0].setAttribute("aria-valuenow",i),e.children[0].setAttribute("aria-valuetext",a)})}),u={destroy:function(){for(var t in f.cssClasses)f.cssClasses.hasOwnProperty(t)&&ft(C,f.cssClasses[t]);for(;C.firstChild;)C.removeChild(C.firstChild);delete C.noUiSlider},steps:function(){return k.map(it)},on:r,off:Z,get:rt,set:et,setHandle:nt,reset:function(t){et(f.start,t)},__moveHandles:function(t,e,n){X(t,e,m,n)},options:a,updateOptions:function(e,t){var n=rt(),r=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];r.forEach(function(t){void 0!==e[t]&&(a[t]=e[t])});var i=pt(a);r.forEach(function(t){void 0!==e[t]&&(f[t]=i[t])}),A=i.spectrum,f.margin=i.margin,f.limit=i.limit,f.padding=i.padding,f.pips?N(f.pips):j(),f.tooltips?I():V(),m=[],et(e.start||n,t)},target:C,removePips:j,removeTooltips:V,pips:N}}return{__spectrum:n,version:at,create:function(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider ("+at+"): create requires a single element, got: "+t);if(t.noUiSlider)throw new Error("noUiSlider ("+at+"): Slider was already initialized.");var n=P(t,pt(e),e);return t.noUiSlider=n}}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.