UNPKG

52.5 kBJavaScriptView Raw
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("@material/slider",[],e):"object"==typeof exports?exports.slider=e():(t.mdc=t.mdc||{},t.mdc.slider=e())}(this,function(){return n={},r.m=i={0:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var n=(Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r);function r(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=n,e.default=n},1:function(t,e,i){"use strict";var r=this&&this.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,a=i.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=a.next()).done;)s.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return s},a=this&&this.__spreadArray||function(t,e){for(var i=0,n=e.length,r=t.length;i<n;i++,r++)t[r]=e[i];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var n=i(0),s=(o.attachTo=function(t){return new o(t,new n.MDCFoundation({}))},o.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},o.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},o.prototype.initialSyncWithDOM=function(){},o.prototype.destroy=function(){this.foundation.destroy()},o.prototype.listen=function(t,e,i){this.root.addEventListener(t,e,i)},o.prototype.unlisten=function(t,e,i){this.root.removeEventListener(t,e,i)},o.prototype.emit=function(t,e,i){var n;void 0===i&&(i=!1),"function"==typeof CustomEvent?n=new CustomEvent(t,{bubbles:i,detail:e}):(n=document.createEvent("CustomEvent")).initCustomEvent(t,i,!1,e),this.root.dispatchEvent(n)},o);function o(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];this.root=t,this.initialize.apply(this,a([],r(i))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=s,e.default=s},10:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCorrectEventName=e.getCorrectPropertyName=void 0;var s={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},o={animationend:{cssProperty:"animation",prefixed:"webkitAnimationEnd",standard:"animationend"},animationiteration:{cssProperty:"animation",prefixed:"webkitAnimationIteration",standard:"animationiteration"},animationstart:{cssProperty:"animation",prefixed:"webkitAnimationStart",standard:"animationstart"},transitionend:{cssProperty:"transition",prefixed:"webkitTransitionEnd",standard:"transitionend"}};function u(t){return Boolean(t.document)&&"function"==typeof t.document.createElement}e.getCorrectPropertyName=function(t,e){if(u(t)&&e in s){var i=t.document.createElement("div"),n=s[e],r=n.standard,a=n.prefixed;return r in i.style?r:a}return e},e.getCorrectEventName=function(t,e){if(u(t)&&e in o){var i=t.document.createElement("div"),n=o[e],r=n.standard,a=n.prefixed;return n.cssProperty in i.style?r:a}return e}},116:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSliderFoundation=void 0;var l,s=i(17),c=i(10),o=i(0),u=i(62),h=i(63);(l=l||{}).SLIDER_UPDATE="slider_update";var d,p="undefined"!=typeof window,m=(d=o.MDCFoundation,r(f,d),Object.defineProperty(f,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},addThumbClass:function(){},removeThumbClass:function(){},getAttribute:function(){return null},getInputValue:function(){return""},setInputValue:function(){},getInputAttribute:function(){return null},setInputAttribute:function(){return null},removeInputAttribute:function(){return null},focusInput:function(){},isInputFocused:function(){return!1},getThumbKnobWidth:function(){return 0},getThumbBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},isRTL:function(){return!1},setThumbStyleProperty:function(){},removeThumbStyleProperty:function(){},setTrackActiveStyleProperty:function(){},removeTrackActiveStyleProperty:function(){},setValueIndicatorText:function(){},getValueToAriaValueTextFn:function(){return null},updateTickMarks:function(){},setPointerCapture:function(){},emitChangeEvent:function(){},emitInputEvent:function(){},emitDragStartEvent:function(){},emitDragEndEvent:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerThumbEventHandler:function(){},deregisterThumbEventHandler:function(){},registerInputEventHandler:function(){},deregisterInputEventHandler:function(){},registerBodyEventHandler:function(){},deregisterBodyEventHandler:function(){},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!1,configurable:!0}),f.prototype.init=function(){var t=this;this.isDisabled=this.adapter.hasClass(u.cssClasses.DISABLED),this.isDiscrete=this.adapter.hasClass(u.cssClasses.DISCRETE),this.hasTickMarks=this.adapter.hasClass(u.cssClasses.TICK_MARKS),this.isRange=this.adapter.hasClass(u.cssClasses.RANGE);var e=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(u.attributes.INPUT_MIN,this.isRange?h.Thumb.START:h.Thumb.END),u.attributes.INPUT_MIN),i=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(u.attributes.INPUT_MAX,h.Thumb.END),u.attributes.INPUT_MAX),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(u.attributes.INPUT_VALUE,h.Thumb.END),u.attributes.INPUT_VALUE),r=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(u.attributes.INPUT_VALUE,h.Thumb.START),u.attributes.INPUT_VALUE):e,a=this.adapter.getInputAttribute(u.attributes.INPUT_STEP,h.Thumb.END),s=a?this.convertAttributeValueToNumber(a,u.attributes.INPUT_STEP):this.step;this.validateProperties({min:e,max:i,value:n,valueStart:r,step:s}),this.min=e,this.max=i,this.value=n,this.valueStart=r,this.step=s,this.numDecimalPlaces=v(this.step),this.valueBeforeDownEvent=n,this.valueStartBeforeDownEvent=r,this.mousedownOrTouchstartListener=this.handleMousedownOrTouchstart.bind(this),this.moveListener=this.handleMove.bind(this),this.pointerdownListener=this.handlePointerdown.bind(this),this.pointerupListener=this.handlePointerup.bind(this),this.thumbMouseenterListener=this.handleThumbMouseenter.bind(this),this.thumbMouseleaveListener=this.handleThumbMouseleave.bind(this),this.inputStartChangeListener=function(){t.handleInputChange(h.Thumb.START)},this.inputEndChangeListener=function(){t.handleInputChange(h.Thumb.END)},this.inputStartFocusListener=function(){t.handleInputFocus(h.Thumb.START)},this.inputEndFocusListener=function(){t.handleInputFocus(h.Thumb.END)},this.inputStartBlurListener=function(){t.handleInputBlur(h.Thumb.START)},this.inputEndBlurListener=function(){t.handleInputBlur(h.Thumb.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},f.prototype.destroy=function(){this.deregisterEventHandlers()},f.prototype.setMin=function(t){this.min=t,this.isRange||(this.valueStart=t),this.updateUI()},f.prototype.setMax=function(t){this.max=t,this.updateUI()},f.prototype.getMin=function(){return this.min},f.prototype.getMax=function(){return this.max},f.prototype.getValue=function(){return this.value},f.prototype.setValue=function(t){if(this.isRange&&t<this.valueStart)throw new Error("end thumb value ("+t+") must be >= start thumb value ("+this.valueStart+")");this.updateValue(t,h.Thumb.END)},f.prototype.getValueStart=function(){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");return this.valueStart},f.prototype.setValueStart=function(t){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&t>this.value)throw new Error("start thumb value ("+t+") must be <= end thumb value ("+this.value+")");this.updateValue(t,h.Thumb.START)},f.prototype.setStep=function(t){this.step=t,this.numDecimalPlaces=v(t),this.updateUI()},f.prototype.setIsDiscrete=function(t){this.isDiscrete=t,this.updateValueIndicatorUI(),this.updateTickMarksUI()},f.prototype.getStep=function(){return this.step},f.prototype.setHasTickMarks=function(t){this.hasTickMarks=t,this.updateTickMarksUI()},f.prototype.getDisabled=function(){return this.isDisabled},f.prototype.setDisabled=function(t){(this.isDisabled=t)?(this.adapter.addClass(u.cssClasses.DISABLED),this.isRange&&this.adapter.setInputAttribute(u.attributes.INPUT_DISABLED,"",h.Thumb.START),this.adapter.setInputAttribute(u.attributes.INPUT_DISABLED,"",h.Thumb.END)):(this.adapter.removeClass(u.cssClasses.DISABLED),this.isRange&&this.adapter.removeInputAttribute(u.attributes.INPUT_DISABLED,h.Thumb.START),this.adapter.removeInputAttribute(u.attributes.INPUT_DISABLED,h.Thumb.END))},f.prototype.getIsRange=function(){return this.isRange},f.prototype.layout=function(t){var e=(void 0===t?{}:t).skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(h.Thumb.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(h.Thumb.END)),e||this.updateUI()},f.prototype.handleResize=function(){this.layout()},f.prototype.handleDown=function(t){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var e=null!=t.clientX?t.clientX:t.targetTouches[0].clientX;this.downEventClientX=e;var i=this.mapClientXOnSliderScale(e);this.thumb=this.getThumbFromDownEvent(e,i),null!==this.thumb&&(this.handleDragStart(t,i,this.thumb),this.updateValue(i,this.thumb,{emitInputEvent:!0}))}},f.prototype.handleMove=function(t){if(!this.isDisabled){t.preventDefault();var e=null!=t.clientX?t.clientX:t.targetTouches[0].clientX,i=null!=this.thumb;if(this.thumb=this.getThumbFromMoveEvent(e),null!==this.thumb){var n=this.mapClientXOnSliderScale(e);i||(this.handleDragStart(t,n,this.thumb),this.adapter.emitDragStartEvent(n,this.thumb)),this.updateValue(n,this.thumb,{emitInputEvent:!0})}}},f.prototype.handleUp=function(){if(!this.isDisabled&&null!==this.thumb){var t=this.thumb===h.Thumb.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,e=this.thumb===h.Thumb.START?this.valueStart:this.value;t!==e&&this.adapter.emitChangeEvent(e,this.thumb),this.adapter.emitDragEndEvent(e,this.thumb),this.thumb=null}},f.prototype.handleThumbMouseenter=function(){this.isDiscrete&&this.isRange&&(this.adapter.addThumbClass(u.cssClasses.THUMB_WITH_INDICATOR,h.Thumb.START),this.adapter.addThumbClass(u.cssClasses.THUMB_WITH_INDICATOR,h.Thumb.END))},f.prototype.handleThumbMouseleave=function(){this.isDiscrete&&this.isRange&&(this.adapter.isInputFocused(h.Thumb.START)||this.adapter.isInputFocused(h.Thumb.END)||(this.adapter.removeThumbClass(u.cssClasses.THUMB_WITH_INDICATOR,h.Thumb.START),this.adapter.removeThumbClass(u.cssClasses.THUMB_WITH_INDICATOR,h.Thumb.END)))},f.prototype.handleMousedownOrTouchstart=function(t){var e=this,i="mousedown"===t.type?"mousemove":"touchmove";function n(){e.handleUp(),e.adapter.deregisterBodyEventHandler(i,e.moveListener),e.adapter.deregisterEventHandler("mouseup",n),e.adapter.deregisterEventHandler("touchend",n)}this.adapter.registerBodyEventHandler(i,this.moveListener),this.adapter.registerBodyEventHandler("mouseup",n),this.adapter.registerBodyEventHandler("touchend",n),this.handleDown(t)},f.prototype.handlePointerdown=function(t){this.adapter.setPointerCapture(t.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(t)},f.prototype.handleInputChange=function(t){var e=Number(this.adapter.getInputValue(t));t===h.Thumb.START?this.setValueStart(e):this.setValue(e),this.adapter.emitChangeEvent(t===h.Thumb.START?this.valueStart:this.value,t),this.adapter.emitInputEvent(t===h.Thumb.START?this.valueStart:this.value,t)},f.prototype.handleInputFocus=function(t){if(this.adapter.addThumbClass(u.cssClasses.THUMB_FOCUSED,t),this.isDiscrete&&(this.adapter.addThumbClass(u.cssClasses.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===h.Thumb.START?h.Thumb.END:h.Thumb.START;this.adapter.addThumbClass(u.cssClasses.THUMB_WITH_INDICATOR,e)}},f.prototype.handleInputBlur=function(t){if(this.adapter.removeThumbClass(u.cssClasses.THUMB_FOCUSED,t),this.isDiscrete&&(this.adapter.removeThumbClass(u.cssClasses.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===h.Thumb.START?h.Thumb.END:h.Thumb.START;this.adapter.removeThumbClass(u.cssClasses.THUMB_WITH_INDICATOR,e)}},f.prototype.handleDragStart=function(t,e,i){this.adapter.emitDragStartEvent(e,i),this.adapter.focusInput(i),t.preventDefault()},f.prototype.getThumbFromDownEvent=function(t,e){if(!this.isRange)return h.Thumb.END;var i=this.adapter.getThumbBoundingClientRect(h.Thumb.START),n=this.adapter.getThumbBoundingClientRect(h.Thumb.END),r=t>=i.left&&t<=i.right,a=t>=n.left&&t<=n.right;return r&&a?null:r?h.Thumb.START:a?h.Thumb.END:e<this.valueStart?h.Thumb.START:e>this.value?h.Thumb.END:e-this.valueStart<=this.value-e?h.Thumb.START:h.Thumb.END},f.prototype.getThumbFromMoveEvent=function(t){if(null!==this.thumb)return this.thumb;if(null===this.downEventClientX)throw new Error("`downEventClientX` is null after move event.");return Math.abs(this.downEventClientX-t)<u.numbers.THUMB_UPDATE_MIN_PX?this.thumb:t<this.downEventClientX?this.adapter.isRTL()?h.Thumb.END:h.Thumb.START:this.adapter.isRTL()?h.Thumb.START:h.Thumb.END},f.prototype.updateUI=function(t){this.updateThumbAndInputAttributes(t),this.updateThumbAndTrackUI(t),this.updateValueIndicatorUI(t),this.updateTickMarksUI()},f.prototype.updateThumbAndInputAttributes=function(t){if(t){var e=this.isRange&&t===h.Thumb.START?this.valueStart:this.value,i=String(e);this.adapter.setInputAttribute(u.attributes.INPUT_VALUE,i,t),this.isRange&&t===h.Thumb.START?this.adapter.setInputAttribute(u.attributes.INPUT_MIN,i,h.Thumb.END):this.isRange&&t===h.Thumb.END&&this.adapter.setInputAttribute(u.attributes.INPUT_MAX,i,h.Thumb.START),this.adapter.getInputValue(t)!==i&&this.adapter.setInputValue(i,t);var n=this.adapter.getValueToAriaValueTextFn();n&&this.adapter.setInputAttribute(u.attributes.ARIA_VALUETEXT,n(e),t)}},f.prototype.updateValueIndicatorUI=function(t){if(this.isDiscrete){var e=this.isRange&&t===h.Thumb.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(e,t===h.Thumb.START?h.Thumb.START:h.Thumb.END),!t&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,h.Thumb.START)}},f.prototype.updateTickMarksUI=function(){if(this.isDiscrete&&this.hasTickMarks){var t=(this.valueStart-this.min)/this.step,e=(this.value-this.valueStart)/this.step+1,i=(this.max-this.value)/this.step,n=Array.from({length:t}).fill(h.TickMark.INACTIVE),r=Array.from({length:e}).fill(h.TickMark.ACTIVE),a=Array.from({length:i}).fill(h.TickMark.INACTIVE);this.adapter.updateTickMarks(n.concat(r).concat(a))}},f.prototype.mapClientXOnSliderScale=function(t){var e=(t-this.rect.left)/this.rect.width;this.adapter.isRTL()&&(e=1-e);var i=this.min+e*(this.max-this.min);return i===this.max||i===this.min?i:Number(this.quantize(i).toFixed(this.numDecimalPlaces))},f.prototype.quantize=function(t){var e=Math.round((t-this.min)/this.step);return this.min+e*this.step},f.prototype.updateValue=function(t,e,i){var n=(void 0===i?{}:i).emitInputEvent;if(t=this.clampValue(t,e),this.isRange&&e===h.Thumb.START){if(this.valueStart===t)return;this.valueStart=t}else{if(this.value===t)return;this.value=t}this.updateUI(e),n&&this.adapter.emitInputEvent(e===h.Thumb.START?this.valueStart:this.value,e)},f.prototype.clampValue=function(t,e){return t=Math.min(Math.max(t,this.min),this.max),this.isRange&&e===h.Thumb.START&&t>this.value?this.value:this.isRange&&e===h.Thumb.END&&t<this.valueStart?this.valueStart:t},f.prototype.updateThumbAndTrackUI=function(i){var n=this,t=this.max,e=this.min,r=(this.value-this.valueStart)/(t-e),a=r*this.rect.width,s=this.adapter.isRTL(),o=p?c.getCorrectPropertyName(window,"transform"):"transform";if(this.isRange){var u=this.adapter.isRTL()?(t-this.value)/(t-e)*this.rect.width:(this.valueStart-e)/(t-e)*this.rect.width,d=u+a;this.animFrame.request(l.SLIDER_UPDATE,function(){!s&&i===h.Thumb.START||s&&i!==h.Thumb.START?(n.adapter.setTrackActiveStyleProperty("transform-origin","right"),n.adapter.setTrackActiveStyleProperty("left","unset"),n.adapter.setTrackActiveStyleProperty("right",n.rect.width-d+"px")):(n.adapter.setTrackActiveStyleProperty("transform-origin","left"),n.adapter.setTrackActiveStyleProperty("right","unset"),n.adapter.setTrackActiveStyleProperty("left",u+"px")),n.adapter.setTrackActiveStyleProperty(o,"scaleX("+r+")");var t=s?d:u,e=n.adapter.isRTL()?u:d;i!==h.Thumb.START&&i&&n.initialStylesRemoved||n.adapter.setThumbStyleProperty(o,"translateX("+t+"px)",h.Thumb.START),i!==h.Thumb.END&&i&&n.initialStylesRemoved||n.adapter.setThumbStyleProperty(o,"translateX("+e+"px)",h.Thumb.END),n.removeInitialStyles(s),n.updateOverlappingThumbsUI(t,e,i)})}else this.animFrame.request(l.SLIDER_UPDATE,function(){var t=s?n.rect.width-a:a;n.adapter.setThumbStyleProperty(o,"translateX("+t+"px)",h.Thumb.END),n.adapter.setTrackActiveStyleProperty(o,"scaleX("+r+")"),n.removeInitialStyles(s)})},f.prototype.removeInitialStyles=function(t){if(!this.initialStylesRemoved){var e=t?"right":"left";this.adapter.removeThumbStyleProperty(e,h.Thumb.END),this.isRange&&this.adapter.removeThumbStyleProperty(e,h.Thumb.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},f.prototype.resetTrackAndThumbAnimation=function(){var t=this;if(this.isDiscrete){var e=p?c.getCorrectPropertyName(window,"transition"):"transition",i="all 0s ease 0s";this.adapter.setThumbStyleProperty(e,i,h.Thumb.END),this.isRange&&this.adapter.setThumbStyleProperty(e,i,h.Thumb.START),this.adapter.setTrackActiveStyleProperty(e,i),requestAnimationFrame(function(){t.adapter.removeThumbStyleProperty(e,h.Thumb.END),t.adapter.removeTrackActiveStyleProperty(e),t.isRange&&t.adapter.removeThumbStyleProperty(e,h.Thumb.START)})}},f.prototype.updateOverlappingThumbsUI=function(t,e,i){var n=!1;if(this.adapter.isRTL())n=t-this.startThumbKnobWidth/2<=e+this.endThumbKnobWidth/2;else{var r=t+this.startThumbKnobWidth/2;n=e-this.endThumbKnobWidth/2<=r}n?(this.adapter.addThumbClass(u.cssClasses.THUMB_TOP,i||h.Thumb.END),this.adapter.removeThumbClass(u.cssClasses.THUMB_TOP,i===h.Thumb.START?h.Thumb.END:h.Thumb.START)):(this.adapter.removeThumbClass(u.cssClasses.THUMB_TOP,h.Thumb.START),this.adapter.removeThumbClass(u.cssClasses.THUMB_TOP,h.Thumb.END))},f.prototype.convertAttributeValueToNumber=function(t,e){if(null===t)throw new Error("MDCSliderFoundation: `"+e+"` must be non-null.");var i=Number(t);if(isNaN(i))throw new Error("MDCSliderFoundation: `"+e+"` value is `"+t+"`, but must be a number.");return i},f.prototype.validateProperties=function(t){var e=t.min,i=t.max,n=t.value,r=t.valueStart,a=t.step;if(i<=e)throw new Error("MDCSliderFoundation: min must be strictly less than max. Current: [min: "+e+", max: "+i+"]");if(a<=0)throw new Error("MDCSliderFoundation: step must be a positive number. Current step: "+this.step);if(this.isRange){if(n<e||i<n||r<e||i<r)throw new Error("MDCSliderFoundation: values must be in [min, max] range. Current values: [start value: "+r+", end value: "+n+"]");if(n<r)throw new Error("MDCSliderFoundation: start value must be <= end value. Current values: [start value: "+r+", end value: "+n+"]");var s=(n-e)/a;if((r-e)/a%1!=0||s%1!=0)throw new Error("MDCSliderFoundation: Slider values must be valid based on the step value. Current values: [start value: "+r+", end value: "+n+"]")}else{if(n<e||i<n)throw new Error("MDCSliderFoundation: value must be in [min, max] range. Current value: "+n);if((s=(n-e)/a)%1!=0)throw new Error("MDCSliderFoundation: Slider value must be valid based on the step value. Current value: "+n)}},f.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),f.SUPPORTS_POINTER_EVENTS?(this.adapter.registerEventHandler("pointerdown",this.pointerdownListener),this.adapter.registerEventHandler("pointerup",this.pointerupListener)):(this.adapter.registerEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.registerEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.registerThumbEventHandler(h.Thumb.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(h.Thumb.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(h.Thumb.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(h.Thumb.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(h.Thumb.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(h.Thumb.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(h.Thumb.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(h.Thumb.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(h.Thumb.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(h.Thumb.END,"blur",this.inputEndBlurListener)},f.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),f.SUPPORTS_POINTER_EVENTS?(this.adapter.deregisterEventHandler("pointerdown",this.pointerdownListener),this.adapter.deregisterEventHandler("pointerup",this.pointerupListener)):(this.adapter.deregisterEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.deregisterEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.deregisterThumbEventHandler(h.Thumb.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(h.Thumb.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(h.Thumb.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(h.Thumb.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(h.Thumb.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(h.Thumb.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(h.Thumb.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(h.Thumb.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(h.Thumb.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(h.Thumb.END,"blur",this.inputEndBlurListener)},f.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},f.SUPPORTS_POINTER_EVENTS=p&&Boolean(window.PointerEvent)&&!(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document),f);function f(t){var e=d.call(this,a(a({},f.defaultAdapter),t))||this;return e.initialStylesRemoved=!1,e.isDisabled=!1,e.isDiscrete=!1,e.step=u.numbers.STEP_SIZE,e.hasTickMarks=!1,e.isRange=!1,e.thumb=null,e.downEventClientX=null,e.startThumbKnobWidth=0,e.endThumbKnobWidth=0,e.animFrame=new s.AnimationFrame,e}function v(t){var e=/(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(t));if(!e)return 0;var i=e[1]||"",n=e[2]||0;return Math.max(0,("0"===i?0:i.length)-Number(n))}e.MDCSliderFoundation=m},17:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrame=void 0;var n=(r.prototype.request=function(e,i){var n=this;this.cancel(e);var t=requestAnimationFrame(function(t){n.rafIDs.delete(e),i(t)});this.rafIDs.set(e,t)},r.prototype.cancel=function(t){var e=this.rafIDs.get(t);e&&(cancelAnimationFrame(e),this.rafIDs.delete(t))},r.prototype.cancelAll=function(){var i=this;this.rafIDs.forEach(function(t,e){i.cancel(e)})},r.prototype.getQueue=function(){var i=[];return this.rafIDs.forEach(function(t,e){i.push(e)}),i},r);function r(){this.rafIDs=new Map}e.AnimationFrame=n},2:function(t,e,i){"use strict";function n(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var i=t;i;){if(n(i,e))return i;i=i.parentElement}return null},e.matches=n,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var i=e.cloneNode(!0);i.style.setProperty("position","absolute"),i.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(i);var n=i.scrollWidth;return document.documentElement.removeChild(i),n}},229:function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),r=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(i(230),e),r(i(231),e),r(i(62),e),r(i(116),e),r(i(63),e)},230:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},231:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSlider=void 0;var a,s=i(1),d=i(5),l=i(2),c=i(6),h=i(4),p=i(62),o=i(116),m=i(63),f=(a=s.MDCComponent,r(v,a),v.attachTo=function(t,e){return void 0===e&&(e={}),new v(t,void 0,e)},v.prototype.getDefaultFoundation=function(){var n=this,t={hasClass:function(t){return n.root.classList.contains(t)},addClass:function(t){n.root.classList.add(t)},removeClass:function(t){n.root.classList.remove(t)},addThumbClass:function(t,e){n.getThumbEl(e).classList.add(t)},removeThumbClass:function(t,e){n.getThumbEl(e).classList.remove(t)},getAttribute:function(t){return n.root.getAttribute(t)},getInputValue:function(t){return n.getInput(t).value},setInputValue:function(t,e){n.getInput(e).value=t},getInputAttribute:function(t,e){return n.getInput(e).getAttribute(t)},setInputAttribute:function(t,e,i){n.getInput(i).setAttribute(t,e)},removeInputAttribute:function(t,e){n.getInput(e).removeAttribute(t)},focusInput:function(t){n.getInput(t).focus()},isInputFocused:function(t){return n.getInput(t)===document.activeElement},getThumbKnobWidth:function(t){return n.getThumbEl(t).querySelector("."+p.cssClasses.THUMB_KNOB).getBoundingClientRect().width},getThumbBoundingClientRect:function(t){return n.getThumbEl(t).getBoundingClientRect()},getBoundingClientRect:function(){return n.root.getBoundingClientRect()},isRTL:function(){return"rtl"===getComputedStyle(n.root).direction},setThumbStyleProperty:function(t,e,i){n.getThumbEl(i).style.setProperty(t,e)},removeThumbStyleProperty:function(t,e){n.getThumbEl(e).style.removeProperty(t)},setTrackActiveStyleProperty:function(t,e){n.trackActive.style.setProperty(t,e)},removeTrackActiveStyleProperty:function(t){n.trackActive.style.removeProperty(t)},setValueIndicatorText:function(t,e){n.getThumbEl(e).querySelector("."+p.cssClasses.VALUE_INDICATOR_TEXT).textContent=String(t)},getValueToAriaValueTextFn:function(){return n.valueToAriaValueTextFn},updateTickMarks:function(t){var e=n.root.querySelector("."+p.cssClasses.TICK_MARKS_CONTAINER);if(e||((e=document.createElement("div")).classList.add(p.cssClasses.TICK_MARKS_CONTAINER),n.root.querySelector("."+p.cssClasses.TRACK).appendChild(e)),t.length!==e.children.length){for(;e.firstChild;)e.removeChild(e.firstChild);n.addTickMarks(e,t)}else n.updateTickMarks(e,t)},setPointerCapture:function(t){n.root.setPointerCapture(t)},emitChangeEvent:function(t,e){n.emit(p.events.CHANGE,{value:t,thumb:e})},emitInputEvent:function(t,e){n.emit(p.events.INPUT,{value:t,thumb:e})},emitDragStartEvent:function(t,e){n.getRipple(e).activate()},emitDragEndEvent:function(t,e){n.getRipple(e).deactivate()},registerEventHandler:function(t,e){n.listen(t,e)},deregisterEventHandler:function(t,e){n.unlisten(t,e)},registerThumbEventHandler:function(t,e,i){n.getThumbEl(t).addEventListener(e,i)},deregisterThumbEventHandler:function(t,e,i){n.getThumbEl(t).removeEventListener(e,i)},registerInputEventHandler:function(t,e,i){n.getInput(t).addEventListener(e,i)},deregisterInputEventHandler:function(t,e,i){n.getInput(t).removeEventListener(e,i)},registerBodyEventHandler:function(t,e){document.body.addEventListener(t,e)},deregisterBodyEventHandler:function(t,e){document.body.removeEventListener(t,e)},registerWindowEventHandler:function(t,e){window.addEventListener(t,e)},deregisterWindowEventHandler:function(t,e){window.removeEventListener(t,e)}};return new o.MDCSliderFoundation(t)},v.prototype.initialize=function(t){var e=(void 0===t?{}:t).skipInitialUIUpdate;this.inputs=[].slice.call(this.root.querySelectorAll("."+p.cssClasses.INPUT)),this.thumbs=[].slice.call(this.root.querySelectorAll("."+p.cssClasses.THUMB)),this.trackActive=this.root.querySelector("."+p.cssClasses.TRACK_ACTIVE),this.ripples=this.createRipples(),e&&(this.skipInitialUIUpdate=!0)},v.prototype.initialSyncWithDOM=function(){this.foundation.layout({skipUpdateUI:this.skipInitialUIUpdate})},v.prototype.layout=function(){this.foundation.layout()},v.prototype.getValueStart=function(){return this.foundation.getValueStart()},v.prototype.setValueStart=function(t){this.foundation.setValueStart(t)},v.prototype.getValue=function(){return this.foundation.getValue()},v.prototype.setValue=function(t){this.foundation.setValue(t)},v.prototype.getDisabled=function(){return this.foundation.getDisabled()},v.prototype.setDisabled=function(t){this.foundation.setDisabled(t)},v.prototype.setValueToAriaValueTextFn=function(t){this.valueToAriaValueTextFn=t},v.prototype.getThumbEl=function(t){return t===m.Thumb.END?this.thumbs[this.thumbs.length-1]:this.thumbs[0]},v.prototype.getInput=function(t){return t===m.Thumb.END?this.inputs[this.inputs.length-1]:this.inputs[0]},v.prototype.getRipple=function(t){return t===m.Thumb.END?this.ripples[this.ripples.length-1]:this.ripples[0]},v.prototype.addTickMarks=function(t,e){for(var i=document.createDocumentFragment(),n=0;n<e.length;n++){var r=document.createElement("div"),a=e[n]===m.TickMark.ACTIVE?p.cssClasses.TICK_MARK_ACTIVE:p.cssClasses.TICK_MARK_INACTIVE;r.classList.add(a),i.appendChild(r)}t.appendChild(i)},v.prototype.updateTickMarks=function(t,e){for(var i=Array.from(t.children),n=0;n<i.length;n++)e[n]===m.TickMark.ACTIVE?(i[n].classList.add(p.cssClasses.TICK_MARK_ACTIVE),i[n].classList.remove(p.cssClasses.TICK_MARK_INACTIVE)):(i[n].classList.add(p.cssClasses.TICK_MARK_INACTIVE),i[n].classList.remove(p.cssClasses.TICK_MARK_ACTIVE))},v.prototype.createRipples=function(){for(var a=[],s=[].slice.call(this.root.querySelectorAll("."+p.cssClasses.THUMB)),t=function(t){var i=s[t],n=o.inputs[t],e=u(u({},c.MDCRipple.createAdapter(o)),{addClass:function(t){i.classList.add(t)},computeBoundingRect:function(){return i.getBoundingClientRect()},deregisterInteractionHandler:function(t,e){n.removeEventListener(t,e)},isSurfaceActive:function(){return l.matches(n,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,e){n.addEventListener(t,e,d.applyPassive())},removeClass:function(t){i.classList.remove(t)},updateCssVariable:function(t,e){i.style.setProperty(t,e)}}),r=new c.MDCRipple(i,new h.MDCRippleFoundation(e));r.unbounded=!0,a.push(r)},o=this,e=0;e<s.length;e++)t(e);return a},v);function v(){var t=null!==a&&a.apply(this,arguments)||this;return t.skipInitialUIUpdate=!1,t.valueToAriaValueTextFn=null,t}e.MDCSlider=f},3:function(t,e,i){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var i,n=t.CSS;if("boolean"==typeof s&&!e)return s;if(!(n&&"function"==typeof n.supports))return!1;var r=n.supports("--css-vars","yes"),a=n.supports("(--css-vars: yes)")&&n.supports("color","#00000000");return i=r||a,e||(s=i),i},e.getNormalizedEventCoords=function(t,e,i){if(!t)return{x:0,y:0};var n,r,a=e.x,s=e.y,o=a+i.left,u=s+i.top;if("touchstart"===t.type){var d=t;n=d.changedTouches[0].pageX-o,r=d.changedTouches[0].pageY-u}else{var l=t;n=l.pageX-o,r=l.pageY-u}return{x:n,y:r}}},4:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var o,u=i(0),d=i(7),l=i(3),c=["touchstart","pointerdown","mousedown","keydown"],h=["touchend","pointerup","mouseup","contextmenu"],p=[],m=(o=u.MDCFoundation,r(f,o),Object.defineProperty(f,"cssClasses",{get:function(){return d.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(f,"strings",{get:function(){return d.strings},enumerable:!1,configurable:!0}),Object.defineProperty(f,"numbers",{get:function(){return d.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(f,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),f.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var i=f.cssClasses,n=i.ROOT,r=i.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(n),t.adapter.isUnbounded()&&(t.adapter.addClass(r),t.layoutInternal())})}},f.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(f.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(f.cssClasses.FG_DEACTIVATION));var e=f.cssClasses,i=e.ROOT,n=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(i),t.adapter.removeClass(n),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},f.prototype.activate=function(t){this.activateImpl(t)},f.prototype.deactivate=function(){this.deactivateImpl()},f.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},f.prototype.setUnbounded=function(t){var e=f.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},f.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(f.cssClasses.BG_FOCUSED)})},f.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(f.cssClasses.BG_FOCUSED)})},f.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},f.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},f.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var n=s(c),r=n.next();!r.done;r=n.next()){var a=r.value;this.adapter.registerInteractionHandler(a,this.activateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},f.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var n=s(h),r=n.next();!r.done;r=n.next()){var a=r.value;this.adapter.registerDocumentInteractionHandler(a,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},f.prototype.deregisterRootHandlers=function(){var e,t;try{for(var i=s(c),n=i.next();!n.done;n=i.next()){var r=n.value;this.adapter.deregisterInteractionHandler(r,this.activateHandler)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},f.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=s(h),n=i.next();!n.done;n=i.next()){var r=n.value;this.adapter.deregisterDocumentInteractionHandler(r,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},f.prototype.removeCssVars=function(){var e=this,i=f.strings;Object.keys(i).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(i[t],null)})},f.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var n=this.previousActivationEvent;n&&void 0!==t&&n.type!==t.type||(i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<p.length&&p.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState():(void 0!==t&&(p.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){p=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},f.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},f.prototype.animateActivation=function(){var t=this,e=f.strings,i=e.VAR_FG_TRANSLATE_START,n=e.VAR_FG_TRANSLATE_END,r=f.cssClasses,a=r.FG_DEACTIVATION,s=r.FG_ACTIVATION,o=f.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var u="",d="";if(!this.adapter.isUnbounded()){var l=this.getFgTranslationCoordinates(),c=l.startPoint,h=l.endPoint;u=c.x+"px, "+c.y+"px",d=h.x+"px, "+h.y+"px"}this.adapter.updateCssVariable(i,u),this.adapter.updateCssVariable(n,d),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},o)},f.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?l.getNormalizedEventCoords(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},f.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=f.cssClasses.FG_DEACTIVATION,i=this.activationState,n=i.hasDeactivationUXRun,r=i.isActivated;!n&&r||!this.activationAnimationHasEnded||(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(e)},d.numbers.FG_DEACTIVATION_MS))},f.prototype.rmBoundedActivationClasses=function(){var t=f.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},f.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},f.numbers.TAP_DELAY_MS)},f.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=a({},e);e.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(i)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()}))}},f.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},f.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var e=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?e:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+f.numbers.PADDING;var i=Math.floor(e*f.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&i%2!=0?this.initialSize=i-1:this.initialSize=i,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},f.prototype.updateLayoutCssVars=function(){var t=f.strings,e=t.VAR_FG_SIZE,i=t.VAR_LEFT,n=t.VAR_TOP,r=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,this.initialSize+"px"),this.adapter.updateCssVariable(r,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(i,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(n,this.unboundedCoords.top+"px"))},f);function f(t){var e=o.call(this,a(a({},f.defaultAdapter),t))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}e.MDCRippleFoundation=m,e.default=m},5:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var i={get passive(){return!(e=!0)}},n=function(){};t.document.addEventListener("test",n,i),t.document.removeEventListener("test",n,i)}catch(t){e=!1}return e}(t)&&{passive:!0}}},6:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&a(e,t,i);return s(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var u,d=i(1),l=i(5),c=i(2),h=i(4),p=o(i(3)),m=(u=d.MDCComponent,r(f,u),f.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var i=new f(t);return void 0!==e.isUnbounded&&(i.unbounded=e.isUnbounded),i},f.createAdapter=function(i){return{addClass:function(t){return i.root.classList.add(t)},browserSupportsCssVars:function(){return p.supportsCssVariables(window)},computeBoundingRect:function(){return i.root.getBoundingClientRect()},containsEventTarget:function(t){return i.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,l.applyPassive())},deregisterInteractionHandler:function(t,e){return i.root.removeEventListener(t,e,l.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return c.matches(i.root,":active")},isSurfaceDisabled:function(){return Boolean(i.disabled)},isUnbounded:function(){return Boolean(i.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,l.applyPassive())},registerInteractionHandler:function(t,e){return i.root.addEventListener(t,e,l.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return i.root.classList.remove(t)},updateCssVariable:function(t,e){return i.root.style.setProperty(t,e)}}},Object.defineProperty(f.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),f.prototype.activate=function(){this.foundation.activate()},f.prototype.deactivate=function(){this.foundation.deactivate()},f.prototype.layout=function(){this.foundation.layout()},f.prototype.getDefaultFoundation=function(){return new h.MDCRippleFoundation(f.createAdapter(this))},f.prototype.initialSyncWithDOM=function(){var t=this.root;this.isUnbounded="mdcRippleIsUnbounded"in t.dataset},f.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},f);function f(){var t=null!==u&&u.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=m},62:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.events=e.attributes=e.numbers=e.cssClasses=void 0,e.cssClasses={DISABLED:"mdc-slider--disabled",DISCRETE:"mdc-slider--discrete",INPUT:"mdc-slider__input",RANGE:"mdc-slider--range",THUMB:"mdc-slider__thumb",THUMB_FOCUSED:"mdc-slider__thumb--focused",THUMB_KNOB:"mdc-slider__thumb-knob",THUMB_TOP:"mdc-slider__thumb--top",THUMB_WITH_INDICATOR:"mdc-slider__thumb--with-indicator",TICK_MARKS:"mdc-slider--tick-marks",TICK_MARKS_CONTAINER:"mdc-slider__tick-marks",TICK_MARK_ACTIVE:"mdc-slider__tick-mark--active",TICK_MARK_INACTIVE:"mdc-slider__tick-mark--inactive",TRACK:"mdc-slider__track",TRACK_ACTIVE:"mdc-slider__track--active_fill",VALUE_INDICATOR_TEXT:"mdc-slider__value-indicator-text"},e.numbers={STEP_SIZE:1,THUMB_UPDATE_MIN_PX:5},e.attributes={ARIA_VALUETEXT:"aria-valuetext",INPUT_DISABLED:"disabled",INPUT_MIN:"min",INPUT_MAX:"max",INPUT_VALUE:"value",INPUT_STEP:"step"},e.events={CHANGE:"MDCSlider:change",INPUT:"MDCSlider:input"}},63:function(t,e,i){"use strict";var n,r;Object.defineProperty(e,"__esModule",{value:!0}),e.Thumb=e.TickMark=void 0,(n=e.TickMark||(e.TickMark={}))[n.ACTIVE=0]="ACTIVE",n[n.INACTIVE=1]="INACTIVE",(r=e.Thumb||(e.Thumb={}))[r.START=1]="START",r[r.END=2]="END"},7:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},e.strings={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}}},r.c=n,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=229);function r(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var i,n});
\No newline at end of file