web-input-material 0.0.486 → 0.0.487
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/SliderInput.bundle.js +1 -1
- package/index.bundle.js +1 -1
- package/package.json +17 -17
|
@@ -303,7 +303,7 @@ var r={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-r
|
|
|
303
303
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
304
304
|
* THE SOFTWARE.
|
|
305
305
|
*/
|
|
306
|
-
var r=function(){function e(){this.rafIDs=new Map}return e.prototype.request=function(e,t){var n=this;this.cancel(e);var r=requestAnimationFrame((function(r){n.rafIDs.delete(e),t(r)}));this.rafIDs.set(e,r)},e.prototype.cancel=function(e){var t=this.rafIDs.get(e);t&&(cancelAnimationFrame(t),this.rafIDs.delete(e))},e.prototype.cancelAll=function(){var e=this;this.rafIDs.forEach((function(t,n){e.cancel(n)}))},e.prototype.getQueue=function(){var e=[];return this.rafIDs.forEach((function(t,n){e.push(n)})),e},e}()},,,,,,,,,,,,,,,,,,,,,function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(3),a=n(124),l=o.memo((function(e){const{children:t,...n}=e;return r.jsxs("div",{className:"mdc-slider__track",children:[r.jsx("div",{className:"mdc-slider__track--inactive"}),r.jsx("div",{className:"mdc-slider__track--active",children:r.jsx("div",{...n,className:"mdc-slider__track--active_fill"})}),t]})})),u=o.memo((function({tickMarks:e}){return r.jsx("div",{className:"mdc-slider__tick-marks",children:e.map(((e,t)=>r.jsx("div",{className:e.className},t)))})})),s=o.memo(o.forwardRef((function(e,t){return r.jsxs("div",{className:"mdc-slider__thumb",ref:t,children:[e.children,r.jsx("div",{className:"mdc-slider__thumb-knob"})]})}))),c=e=>{const t=Number(e);return"number"!=typeof t||isNaN(t)?void 0:t},d=i.createComponent((function(e,t){const{rootEl:n,setInputsRef:d,setThumbRef:f,tickMarks:p,trackActiveEl:_}=(e=>{const t=o.useRef([]),n=o.useRef([]),{foundation:r,...l}=i.useFoundation({props:e,elements:{rootEl:!0,trackActiveEl:!0},foundation:({rootEl:e,trackActiveEl:t,emit:n})=>new a.MDCSliderFoundation({hasClass:t=>e.hasClass(t),addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),addThumbClass:(e,t)=>{var n;null==(n=u(t))||n.classList.add(e)},removeThumbClass:(e,t)=>{var n;null==(n=u(t))||n.classList.remove(e)},getAttribute:t=>e.getProp(t),getInputValue:e=>{var t;return(null==(t=s(e))?void 0:t.value)??"1"},setInputValue:(e,t)=>{const n=s(t);return void 0!==n?n.value=e:e},getInputAttribute:(e,t)=>{const n=s(t);return n?n.getAttribute(e):null},setInputAttribute:(e,t,n)=>{var r;null==(r=s(n))||r.setAttribute(e,t)},removeInputAttribute:(e,t)=>{var n;null==(n=s(t))||n.removeAttribute(e)},focusInput:e=>{var t;null==(t=s(e))||t.focus()},isInputFocused:e=>s(e)===document.activeElement,shouldHideFocusStylesForPointerEvents:()=>!1,getThumbKnobWidth:e=>{const t=u(e);return t?t.querySelector(`.${a.cssClasses.THUMB_KNOB}`).getBoundingClientRect().width:i.emptyClientRect.width},getThumbBoundingClientRect:e=>{var t;return(null==(t=u(e))?void 0:t.getBoundingClientRect())??i.emptyClientRect},getBoundingClientRect:()=>e.ref?e.ref.getBoundingClientRect():i.emptyClientRect,getValueIndicatorContainerWidth:e=>{const t=u(e);return t?t.querySelector(`.${a.cssClasses.VALUE_INDICATOR_CONTAINER}`).getBoundingClientRect().width:i.emptyClientRect.width},isRTL:()=>!!e.ref&&"rtl"===getComputedStyle(e.ref).direction,setThumbStyleProperty:(e,t,n)=>{var r;null==(r=u(n))||r.style.setProperty(e,t)},removeThumbStyleProperty:(e,t)=>{var n;null==(n=u(t))||n.style.removeProperty(e)},setTrackActiveStyleProperty:(e,n)=>{t.setStyle(e,n)},removeTrackActiveStyleProperty:e=>{t.setStyle(e,null)},setValueIndicatorText:(e,t)=>{const n=u(t);return n&&(n.querySelector(`.${a.cssClasses.VALUE_INDICATOR_TEXT}`).textContent=String(e)),""},getValueToAriaValueTextFn:()=>null,updateTickMarks:t=>{var n,r;let o=null==(n=e.ref)?void 0:n.querySelector(`.${a.cssClasses.TICK_MARKS_CONTAINER}`);if(!o){o=document.createElement("div"),o.classList.add(a.cssClasses.TICK_MARKS_CONTAINER);const t=null==(r=e.ref)?void 0:r.querySelector(`.${a.cssClasses.TRACK}`);t&&t.appendChild(o)}if(t.length!==o.children.length){for(;o.firstChild;)o.removeChild(o.firstChild);f(t)}else p(o,t)},setPointerCapture:t=>{var n;null==(n=e.ref)||n.setPointerCapture(t)},emitChangeEvent:(e,t)=>{2===t?n("onChange",{value:e,thumb:t}):1===t&&n("onChangeValueStart",{value:e,thumb:t})},emitInputEvent:(e,t)=>{2===t?n("onInput",{value:e,thumb:t}):1===t&&n("onInputValueStart",{value:e,thumb:t})},registerEventHandler:(t,n)=>{e.addEventListener(t,n)},deregisterEventHandler:(t,n)=>{e.removeEventListener(t,n)},registerThumbEventHandler:(e,t,n)=>{var r;null==(r=u(e))||r.addEventListener(t,n)},deregisterThumbEventHandler:(e,t,n)=>{var r;null==(r=u(e))||r.removeEventListener(t,n)},registerInputEventHandler:(e,t,n)=>{var r;null==(r=s(e))||r.addEventListener(t,n)},deregisterInputEventHandler:(e,t,n)=>{var r;null==(r=s(e))||r.removeEventListener(t,n)},registerBodyEventHandler:(e,t)=>{document.body.addEventListener(e,t)},deregisterBodyEventHandler:(e,t)=>{document.body.removeEventListener(e,t)},registerWindowEventHandler:(e,t)=>{window.addEventListener(e,t)},deregisterWindowEventHandler:(e,t)=>{window.removeEventListener(e,t)}})}),u=e=>{var n,r;return e===a.Thumb.END?null==(n=t.current)?void 0:n[t.current.length-1]:null==(r=t.current)?void 0:r[0]},s=e=>{var t,r;return e===a.Thumb.END?null==(t=n.current)?void 0:t[n.current.length-1]:null==(r=n.current)?void 0:r[0]},[c,d]=o.useState([]),f=e=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n]===a.TickMark.ACTIVE?a.cssClasses.TICK_MARK_ACTIVE:a.cssClasses.TICK_MARK_INACTIVE;t.push({className:r})}d(t)},p=(e,t)=>{const n=Array.from(e.children);for(let e=0;e<n.length;e++)t[e]===a.TickMark.ACTIVE?(n[e].classList.add(a.cssClasses.TICK_MARK_ACTIVE),n[e].classList.remove(a.cssClasses.TICK_MARK_INACTIVE)):(n[e].classList.add(a.cssClasses.TICK_MARK_INACTIVE),n[e].classList.remove(a.cssClasses.TICK_MARK_ACTIVE))};return o.useEffect((()=>{r.layout()}),[r]),o.useEffect((()=>{void 0!==e.range&&(r.isRange=e.range)}),[e.range,r]),o.useEffect((()=>{let t=void 0!==e.value?Number(e.value):r.getValue();const n=r.getMin(),o=r.getMax();t<n&&(console.warn(`Attempted to set slider to ${t} which is less than min: ${n}`),t=n),t>o&&(console.warn(`Attempted to set slider to ${t} which is greater than max: ${o}`),t=o),r.setValue(t)}),[e.value,r]),o.useEffect((()=>{if(e.range){let t=void 0!==e.valueStart?Number(e.valueStart):r.getValueStart();const n=r.getMin(),o=r.getMax();t<n&&(console.warn(`Attempted to set slider to ${t} which is less than min: ${n}`),t=n),t>o&&(console.warn(`Attempted to set slider to ${t} which is greater than max: ${o}`),t=o),r.setValueStart(t)}}),[e.range,e.valueStart,r]),o.useEffect((()=>{void 0!==e.disabled&&r.setDisabled(e.disabled)}),[e.disabled,r]),o.useEffect((()=>{void 0!==e.discrete&&(r.isDiscrete=e.discrete),e.discrete&&0===r.getStep()&&r.setStep(1)}),[e.discrete,r]),o.useEffect((()=>{void 0!==e.minRange&&r.setMinRange(Number(e.minRange))}),[e.minRange,r]),o.useEffect((()=>{const t=r.hasTickMarks;void 0!==e.displayMarkers&&e.displayMarkers!==t&&(r.hasTickMarks=e.displayMarkers,r.setHasTickMarks(e.displayMarkers))}),[e.displayMarkers,r]),o.useEffect((()=>{const e=r.handleDown.bind(r);r.handleDown=t=>{e(t)}}),[r]),{setInputsRef:(e,t)=>{n.current[e]=t||void 0},setThumbRef:(e,n)=>{t.current[e]=n||void 0},tickMarks:c,...l}})(e),{children:h,disabled:m,discrete:v,displayMarkers:y,max:g=100,min:b=0,minRange:E,onChange:w,onChangeValueStart:T,onInput:A,onInputValueStart:O,range:S,step:P,value:C,valueStart:I,...x}=e,R=i.useClassNames(e,["mdc-slider",{"mdc-slider--discrete":v,"mdc-slider--tick-marks":y&&v,"mdc-slider--disabled":m,"mdc-slider--range":S}]);return y&&!v&&console.warn("The 'displayMarkers' prop on rmwc Slider will\n only work in conjunction with the 'discrete' prop"),r.jsxs(i.Tag,{className:R,tabIndex:0,tag:"div",element:n,"data-min-range":E,ref:t,children:[S&&r.jsx("input",{...x,"aria-label":"Slider start value","aria-valuemax":c(g),"aria-valuenow":I,className:"mdc-slider__input",disabled:m,max:c(g),min:c(b),name:"rangeStart",onChange:T,onInput:O,ref:e=>d(0,e),step:P,type:"range",value:I}),r.jsx("input",{"aria-label":"Slider value","aria-valuemax":c(g),"aria-valuenow":C,className:"mdc-slider__input",disabled:m,max:c(g),min:c(b),name:"rangeEnd",...x,onChange:w,onInput:A,ref:e=>d(1,e),step:P,type:"range",value:C}),r.jsx(l,{..._.props({}),children:y&&r.jsx(u,{tickMarks:p})}),S&&r.jsx(s,{ref:e=>f(0,e),children:v&&r.jsx("div",{className:"mdc-slider__value-indicator-container","aria-hidden":"true",children:r.jsx("div",{className:"mdc-slider__value-indicator",children:r.jsx("span",{className:"mdc-slider__value-indicator-text",children:I})})})}),r.jsx(s,{ref:e=>f(1,e),children:v&&r.jsx("div",{className:"mdc-slider__value-indicator-container","aria-hidden":"true",children:r.jsx("div",{className:"mdc-slider__value-indicator",children:r.jsx("span",{className:"mdc-slider__value-indicator-text",children:C})})})}),h]})}));t.Slider=d},,,,,,,function(e,t,n){n.r(t),n.d(t,{MDCSlider:function(){return T},MDCSliderFoundation:function(){return E},Thumb:function(){return o},TickMark:function(){return r},attributes:function(){return _},cssClasses:function(){return f},events:function(){return h},numbers:function(){return p},strings:function(){return m}});var r,o,i,a=n(2),l=n(5),u=n(53),s=n(22),c=n(27),d=n(25),f={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_CONTAINER:"mdc-slider__value-indicator-container",VALUE_INDICATOR_TEXT:"mdc-slider__value-indicator-text"},p={STEP_SIZE:1,MIN_RANGE:0,THUMB_UPDATE_MIN_PX:5},_={ARIA_VALUETEXT:"aria-valuetext",INPUT_DISABLED:"disabled",INPUT_MIN:"min",INPUT_MAX:"max",INPUT_VALUE:"value",INPUT_STEP:"step",DATA_MIN_RANGE:"data-min-range"},h={CHANGE:"MDCSlider:change",INPUT:"MDCSlider:input"},m={VAR_VALUE_INDICATOR_CARET_LEFT:"--slider-value-indicator-caret-left",VAR_VALUE_INDICATOR_CARET_RIGHT:"--slider-value-indicator-caret-right",VAR_VALUE_INDICATOR_CARET_TRANSFORM:"--slider-value-indicator-caret-transform",VAR_VALUE_INDICATOR_CONTAINER_LEFT:"--slider-value-indicator-container-left",VAR_VALUE_INDICATOR_CONTAINER_RIGHT:"--slider-value-indicator-container-right",VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM:"--slider-value-indicator-container-transform"},v=n(96),y=n(62),g=n(4);!function(e){e[e.ACTIVE=0]="ACTIVE",e[e.INACTIVE=1]="INACTIVE"}(r||(r={})),function(e){e[e.START=1]="START",e[e.END=2]="END"}(o||(o={})),function(e){e.SLIDER_UPDATE="slider_update"}(i||(i={}));var b=void 0!==window,E=function(e){function t(n){var r=e.call(this,(0,a.Cl)((0,a.Cl)({},t.defaultAdapter),n))||this;return r.initialStylesRemoved=!1,r.isDisabled=!1,r.isDiscrete=!1,r.step=p.STEP_SIZE,r.minRange=p.MIN_RANGE,r.hasTickMarks=!1,r.isRange=!1,r.thumb=null,r.downEventClientX=null,r.startThumbKnobWidth=0,r.endThumbKnobWidth=0,r.animFrame=new v.K,r}return(0,a.C6)(t,e),Object.defineProperty(t,"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},shouldHideFocusStylesForPointerEvents:function(){return!1},getThumbKnobWidth:function(){return 0},getValueIndicatorContainerWidth: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}),t.prototype.init=function(){var e=this;this.isDisabled=this.adapter.hasClass(f.DISABLED),this.isDiscrete=this.adapter.hasClass(f.DISCRETE),this.hasTickMarks=this.adapter.hasClass(f.TICK_MARKS),this.isRange=this.adapter.hasClass(f.RANGE);var t=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(_.INPUT_MIN,this.isRange?o.START:o.END),_.INPUT_MIN),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(_.INPUT_MAX,o.END),_.INPUT_MAX),r=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(_.INPUT_VALUE,o.END),_.INPUT_VALUE),i=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(_.INPUT_VALUE,o.START),_.INPUT_VALUE):t,a=this.adapter.getInputAttribute(_.INPUT_STEP,o.END),l=a?this.convertAttributeValueToNumber(a,_.INPUT_STEP):this.step,u=this.adapter.getAttribute(_.DATA_MIN_RANGE),s=u?this.convertAttributeValueToNumber(u,_.DATA_MIN_RANGE):this.minRange;this.validateProperties({min:t,max:n,value:r,valueStart:i,step:l,minRange:s}),this.min=t,this.max=n,this.value=r,this.valueStart=i,this.step=l,this.minRange=s,this.numDecimalPlaces=w(this.step),this.valueBeforeDownEvent=r,this.valueStartBeforeDownEvent=i,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(){e.handleInputChange(o.START)},this.inputEndChangeListener=function(){e.handleInputChange(o.END)},this.inputStartFocusListener=function(){e.handleInputFocus(o.START)},this.inputEndFocusListener=function(){e.handleInputFocus(o.END)},this.inputStartBlurListener=function(){e.handleInputBlur(o.START)},this.inputEndBlurListener=function(){e.handleInputBlur(o.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},t.prototype.destroy=function(){this.deregisterEventHandlers()},t.prototype.setMin=function(e){this.min=e,this.isRange||(this.valueStart=e),this.updateUI()},t.prototype.setMax=function(e){this.max=e,this.updateUI()},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e){if(this.isRange&&e<this.valueStart+this.minRange)throw new Error("end thumb value ("+e+") must be >= start thumb value ("+this.valueStart+") + min range ("+this.minRange+")");this.updateValue(e,o.END)},t.prototype.getValueStart=function(){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");return this.valueStart},t.prototype.setValueStart=function(e){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&e>this.value-this.minRange)throw new Error("start thumb value ("+e+") must be <= end thumb value ("+this.value+") - min range ("+this.minRange+")");this.updateValue(e,o.START)},t.prototype.setStep=function(e){this.step=e,this.numDecimalPlaces=w(e),this.updateUI()},t.prototype.setMinRange=function(e){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");if(e<0)throw new Error("`minRange` must be non-negative. Current value: "+e);if(this.value-this.valueStart<e)throw new Error("start thumb value ("+this.valueStart+") and end thumb value ("+this.value+") must differ by at least "+e+".");this.minRange=e},t.prototype.setIsDiscrete=function(e){this.isDiscrete=e,this.updateValueIndicatorUI(),this.updateTickMarksUI()},t.prototype.getStep=function(){return this.step},t.prototype.getMinRange=function(){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");return this.minRange},t.prototype.setHasTickMarks=function(e){this.hasTickMarks=e,this.updateTickMarksUI()},t.prototype.getDisabled=function(){return this.isDisabled},t.prototype.setDisabled=function(e){this.isDisabled=e,e?(this.adapter.addClass(f.DISABLED),this.isRange&&this.adapter.setInputAttribute(_.INPUT_DISABLED,"",o.START),this.adapter.setInputAttribute(_.INPUT_DISABLED,"",o.END)):(this.adapter.removeClass(f.DISABLED),this.isRange&&this.adapter.removeInputAttribute(_.INPUT_DISABLED,o.START),this.adapter.removeInputAttribute(_.INPUT_DISABLED,o.END))},t.prototype.getIsRange=function(){return this.isRange},t.prototype.layout=function(e){var t=(void 0===e?{}:e).skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(o.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(o.END)),t||this.updateUI()},t.prototype.handleResize=function(){this.layout()},t.prototype.handleDown=function(e){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var t=null!=e.clientX?e.clientX:e.targetTouches[0].clientX;this.downEventClientX=t;var n=this.mapClientXOnSliderScale(t);this.thumb=this.getThumbFromDownEvent(t,n),null!==this.thumb&&(this.handleDragStart(e,n,this.thumb),this.updateValue(n,this.thumb,{emitInputEvent:!0}))}},t.prototype.handleMove=function(e){if(!this.isDisabled){e.preventDefault();var t=null!=e.clientX?e.clientX:e.targetTouches[0].clientX,n=null!=this.thumb;if(this.thumb=this.getThumbFromMoveEvent(t),null!==this.thumb){var r=this.mapClientXOnSliderScale(t);n||(this.handleDragStart(e,r,this.thumb),this.adapter.emitDragStartEvent(r,this.thumb)),this.updateValue(r,this.thumb,{emitInputEvent:!0})}}},t.prototype.handleUp=function(){var e,t;if(!this.isDisabled&&null!==this.thumb){(null===(t=(e=this.adapter).shouldHideFocusStylesForPointerEvents)||void 0===t?void 0:t.call(e))&&this.handleInputBlur(this.thumb);var n=this.thumb===o.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,r=this.thumb===o.START?this.valueStart:this.value;n!==r&&this.adapter.emitChangeEvent(r,this.thumb),this.adapter.emitDragEndEvent(r,this.thumb),this.thumb=null}},t.prototype.handleThumbMouseenter=function(){this.isDiscrete&&this.isRange&&(this.adapter.addThumbClass(f.THUMB_WITH_INDICATOR,o.START),this.adapter.addThumbClass(f.THUMB_WITH_INDICATOR,o.END))},t.prototype.handleThumbMouseleave=function(){var e,t;this.isDiscrete&&this.isRange&&(!(null===(t=(e=this.adapter).shouldHideFocusStylesForPointerEvents)||void 0===t?void 0:t.call(e))&&(this.adapter.isInputFocused(o.START)||this.adapter.isInputFocused(o.END))||this.thumb||(this.adapter.removeThumbClass(f.THUMB_WITH_INDICATOR,o.START),this.adapter.removeThumbClass(f.THUMB_WITH_INDICATOR,o.END)))},t.prototype.handleMousedownOrTouchstart=function(e){var t=this,n="mousedown"===e.type?"mousemove":"touchmove";this.adapter.registerBodyEventHandler(n,this.moveListener);var r=function(){t.handleUp(),t.adapter.deregisterBodyEventHandler(n,t.moveListener),t.adapter.deregisterEventHandler("mouseup",r),t.adapter.deregisterEventHandler("touchend",r)};this.adapter.registerBodyEventHandler("mouseup",r),this.adapter.registerBodyEventHandler("touchend",r),this.handleDown(e)},t.prototype.handlePointerdown=function(e){0===e.button&&(null!=e.pointerId&&this.adapter.setPointerCapture(e.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(e))},t.prototype.handleInputChange=function(e){var t=Number(this.adapter.getInputValue(e));e===o.START?this.setValueStart(t):this.setValue(t),this.adapter.emitChangeEvent(e===o.START?this.valueStart:this.value,e),this.adapter.emitInputEvent(e===o.START?this.valueStart:this.value,e)},t.prototype.handleInputFocus=function(e){if(this.adapter.addThumbClass(f.THUMB_FOCUSED,e),this.isDiscrete&&(this.adapter.addThumbClass(f.THUMB_WITH_INDICATOR,e),this.isRange)){var t=e===o.START?o.END:o.START;this.adapter.addThumbClass(f.THUMB_WITH_INDICATOR,t)}},t.prototype.handleInputBlur=function(e){if(this.adapter.removeThumbClass(f.THUMB_FOCUSED,e),this.isDiscrete&&(this.adapter.removeThumbClass(f.THUMB_WITH_INDICATOR,e),this.isRange)){var t=e===o.START?o.END:o.START;this.adapter.removeThumbClass(f.THUMB_WITH_INDICATOR,t)}},t.prototype.handleDragStart=function(e,t,n){var r,o;this.adapter.emitDragStartEvent(t,n),this.adapter.focusInput(n),(null===(o=(r=this.adapter).shouldHideFocusStylesForPointerEvents)||void 0===o?void 0:o.call(r))&&this.handleInputFocus(n),e.preventDefault()},t.prototype.getThumbFromDownEvent=function(e,t){if(!this.isRange)return o.END;var n=this.adapter.getThumbBoundingClientRect(o.START),r=this.adapter.getThumbBoundingClientRect(o.END),i=e>=n.left&&e<=n.right,a=e>=r.left&&e<=r.right;return i&&a?null:i?o.START:a?o.END:t<this.valueStart?o.START:t>this.value?o.END:t-this.valueStart<=this.value-t?o.START:o.END},t.prototype.getThumbFromMoveEvent=function(e){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-e)<p.THUMB_UPDATE_MIN_PX?this.thumb:e<this.downEventClientX?this.adapter.isRTL()?o.END:o.START:this.adapter.isRTL()?o.START:o.END},t.prototype.updateUI=function(e){e?this.updateThumbAndInputAttributes(e):(this.updateThumbAndInputAttributes(o.START),this.updateThumbAndInputAttributes(o.END)),this.updateThumbAndTrackUI(e),this.updateValueIndicatorUI(e),this.updateTickMarksUI()},t.prototype.updateThumbAndInputAttributes=function(e){if(e){var t=this.isRange&&e===o.START?this.valueStart:this.value,n=String(t);this.adapter.setInputAttribute(_.INPUT_VALUE,n,e),this.isRange&&e===o.START?this.adapter.setInputAttribute(_.INPUT_MIN,String(t+this.minRange),o.END):this.isRange&&e===o.END&&this.adapter.setInputAttribute(_.INPUT_MAX,String(t-this.minRange),o.START),this.adapter.getInputValue(e)!==n&&this.adapter.setInputValue(n,e);var r=this.adapter.getValueToAriaValueTextFn();r&&this.adapter.setInputAttribute(_.ARIA_VALUETEXT,r(t,e),e)}},t.prototype.updateValueIndicatorUI=function(e){if(this.isDiscrete){var t=this.isRange&&e===o.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(t,e===o.START?o.START:o.END),!e&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,o.START)}},t.prototype.updateTickMarksUI=function(){if(this.isDiscrete&&this.hasTickMarks){var e=(this.valueStart-this.min)/this.step,t=(this.value-this.valueStart)/this.step+1,n=(this.max-this.value)/this.step,o=Array.from({length:e}).fill(r.INACTIVE),i=Array.from({length:t}).fill(r.ACTIVE),a=Array.from({length:n}).fill(r.INACTIVE);this.adapter.updateTickMarks(o.concat(i).concat(a))}},t.prototype.mapClientXOnSliderScale=function(e){var t=(e-this.rect.left)/this.rect.width;this.adapter.isRTL()&&(t=1-t);var n=this.min+t*(this.max-this.min);return n===this.max||n===this.min?n:Number(this.quantize(n).toFixed(this.numDecimalPlaces))},t.prototype.quantize=function(e){var t=Math.round((e-this.min)/this.step);return this.min+t*this.step},t.prototype.updateValue=function(e,t,n){var r=(void 0===n?{}:n).emitInputEvent;if(e=this.clampValue(e,t),this.isRange&&t===o.START){if(this.valueStart===e)return;this.valueStart=e}else{if(this.value===e)return;this.value=e}this.updateUI(t),r&&this.adapter.emitInputEvent(t===o.START?this.valueStart:this.value,t)},t.prototype.clampValue=function(e,t){return e=Math.min(Math.max(e,this.min),this.max),this.isRange&&t===o.START&&e>this.value-this.minRange?this.value-this.minRange:this.isRange&&t===o.END&&e<this.valueStart+this.minRange?this.valueStart+this.minRange:e},t.prototype.updateThumbAndTrackUI=function(e){var t=this,n=this.max,r=this.min,a=(this.value-this.valueStart)/(n-r),l=a*this.rect.width,u=this.adapter.isRTL(),s=b?(0,y.getCorrectPropertyName)(window,"transform"):"transform";if(this.isRange){var c=this.adapter.isRTL()?(n-this.value)/(n-r)*this.rect.width:(this.valueStart-r)/(n-r)*this.rect.width,d=c+l;this.animFrame.request(i.SLIDER_UPDATE,(function(){!u&&e===o.START||u&&e!==o.START?(t.adapter.setTrackActiveStyleProperty("transform-origin","right"),t.adapter.setTrackActiveStyleProperty("left","auto"),t.adapter.setTrackActiveStyleProperty("right",t.rect.width-d+"px")):(t.adapter.setTrackActiveStyleProperty("transform-origin","left"),t.adapter.setTrackActiveStyleProperty("right","auto"),t.adapter.setTrackActiveStyleProperty("left",c+"px")),t.adapter.setTrackActiveStyleProperty(s,"scaleX("+a+")");var n=u?d:c,r=t.adapter.isRTL()?c:d;e!==o.START&&e&&t.initialStylesRemoved||(t.adapter.setThumbStyleProperty(s,"translateX("+n+"px)",o.START),t.alignValueIndicator(o.START,n)),e!==o.END&&e&&t.initialStylesRemoved||(t.adapter.setThumbStyleProperty(s,"translateX("+r+"px)",o.END),t.alignValueIndicator(o.END,r)),t.removeInitialStyles(u),t.updateOverlappingThumbsUI(n,r,e)}))}else this.animFrame.request(i.SLIDER_UPDATE,(function(){var e=u?t.rect.width-l:l;t.adapter.setThumbStyleProperty(s,"translateX("+e+"px)",o.END),t.alignValueIndicator(o.END,e),t.adapter.setTrackActiveStyleProperty(s,"scaleX("+a+")"),t.removeInitialStyles(u)}))},t.prototype.alignValueIndicator=function(e,t){if(this.isDiscrete){var n=this.adapter.getThumbBoundingClientRect(e).width/2,r=this.adapter.getValueIndicatorContainerWidth(e),o=this.adapter.getBoundingClientRect().width;r/2>t+n?(this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_LEFT,n+"px",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"0",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",e)):r/2>o-t+n?(this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_LEFT,"auto",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_RIGHT,n+"px",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(50%)",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"auto",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"0",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",e)):(this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_LEFT,"50%",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"50%",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"translateX(-50%)",e))}},t.prototype.removeInitialStyles=function(e){if(!this.initialStylesRemoved){var t=e?"right":"left";this.adapter.removeThumbStyleProperty(t,o.END),this.isRange&&this.adapter.removeThumbStyleProperty(t,o.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},t.prototype.resetTrackAndThumbAnimation=function(){var e=this;if(this.isDiscrete){var t=b?(0,y.getCorrectPropertyName)(window,"transition"):"transition",n="none 0s ease 0s";this.adapter.setThumbStyleProperty(t,n,o.END),this.isRange&&this.adapter.setThumbStyleProperty(t,n,o.START),this.adapter.setTrackActiveStyleProperty(t,n),requestAnimationFrame((function(){e.adapter.removeThumbStyleProperty(t,o.END),e.adapter.removeTrackActiveStyleProperty(t),e.isRange&&e.adapter.removeThumbStyleProperty(t,o.START)}))}},t.prototype.updateOverlappingThumbsUI=function(e,t,n){var r=!1;if(this.adapter.isRTL()){var i=e-this.startThumbKnobWidth/2;r=t+this.endThumbKnobWidth/2>=i}else{r=e+this.startThumbKnobWidth/2>=t-this.endThumbKnobWidth/2}r?(this.adapter.addThumbClass(f.THUMB_TOP,n||o.END),this.adapter.removeThumbClass(f.THUMB_TOP,n===o.START?o.END:o.START)):(this.adapter.removeThumbClass(f.THUMB_TOP,o.START),this.adapter.removeThumbClass(f.THUMB_TOP,o.END))},t.prototype.convertAttributeValueToNumber=function(e,t){if(null===e)throw new Error("MDCSliderFoundation: `"+t+"` must be non-null.");var n=Number(e);if(isNaN(n))throw new Error("MDCSliderFoundation: `"+t+"` value is `"+e+"`, but must be a number.");return n},t.prototype.validateProperties=function(e){var t=e.min,n=e.max,r=e.value,o=e.valueStart,i=e.step,a=e.minRange;if(t>=n)throw new Error("MDCSliderFoundation: min must be strictly less than max. Current: [min: "+t+", max: "+n+"]");if(i<=0)throw new Error("MDCSliderFoundation: step must be a positive number. Current step: "+i);if(this.isRange){if(r<t||r>n||o<t||o>n)throw new Error("MDCSliderFoundation: values must be in [min, max] range. Current values: [start value: "+o+", end value: "+r+", min: "+t+", max: "+n+"]");if(o>r)throw new Error("MDCSliderFoundation: start value must be <= end value. Current values: [start value: "+o+", end value: "+r+"]");if(a<0)throw new Error("MDCSliderFoundation: minimum range must be non-negative. Current min range: "+a);if(r-o<a)throw new Error("MDCSliderFoundation: start value and end value must differ by at least "+a+". Current values: [start value: "+o+", end value: "+r+"]");var l=(o-t)/i,u=(r-t)/i;if(!Number.isInteger(parseFloat(l.toFixed(6)))||!Number.isInteger(parseFloat(u.toFixed(6))))throw new Error("MDCSliderFoundation: Slider values must be valid based on the step value ("+i+"). Current values: [start value: "+o+", end value: "+r+", min: "+t+"]")}else{if(r<t||r>n)throw new Error("MDCSliderFoundation: value must be in [min, max] range. Current values: [value: "+r+", min: "+t+", max: "+n+"]");u=(r-t)/i;if(!Number.isInteger(parseFloat(u.toFixed(6))))throw new Error("MDCSliderFoundation: Slider value must be valid based on the step value ("+i+"). Current value: "+r)}},t.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),t.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(o.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(o.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(o.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(o.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(o.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(o.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(o.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(o.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(o.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(o.END,"blur",this.inputEndBlurListener)},t.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),t.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(o.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(o.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(o.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(o.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(o.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(o.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(o.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(o.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(o.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(o.END,"blur",this.inputEndBlurListener)},t.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},t.SUPPORTS_POINTER_EVENTS=b&&Boolean(window.PointerEvent)&&!(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document),t}(g.I);function w(e){var t=/(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(e));if(!t)return 0;var n=t[1]||"",r=t[2]||0;return Math.max(0,("0"===n?0:n.length)-Number(r))}
|
|
306
|
+
var r=function(){function e(){this.rafIDs=new Map}return e.prototype.request=function(e,t){var n=this;this.cancel(e);var r=requestAnimationFrame((function(r){n.rafIDs.delete(e),t(r)}));this.rafIDs.set(e,r)},e.prototype.cancel=function(e){var t=this.rafIDs.get(e);t&&(cancelAnimationFrame(t),this.rafIDs.delete(e))},e.prototype.cancelAll=function(){var e=this;this.rafIDs.forEach((function(t,n){e.cancel(n)}))},e.prototype.getQueue=function(){var e=[];return this.rafIDs.forEach((function(t,n){e.push(n)})),e},e}()},,,,,,,,,,,,,,,,,,,,,function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),o=n(0),i=n(3),a=n(124),l=o.memo((function(e){const{children:t,...n}=e;return r.jsxs("div",{className:"mdc-slider__track",children:[r.jsx("div",{className:"mdc-slider__track--inactive"}),r.jsx("div",{className:"mdc-slider__track--active",children:r.jsx("div",{...n,className:"mdc-slider__track--active_fill"})}),t]})})),u=o.memo((function({tickMarks:e}){return r.jsx("div",{className:"mdc-slider__tick-marks",children:e.map(((e,t)=>r.jsx("div",{className:e.className},t)))})})),s=o.memo(o.forwardRef((function(e,t){return r.jsxs("div",{className:"mdc-slider__thumb",ref:t,children:[e.children,r.jsx("div",{className:"mdc-slider__thumb-knob"})]})}))),c=e=>{const t=Number(e);return"number"!=typeof t||isNaN(t)?void 0:t},d=i.createComponent((function(e,t){const{rootEl:n,setInputsRef:d,setThumbRef:f,tickMarks:p,trackActiveEl:_}=(e=>{const t=o.useRef([]),n=o.useRef([]),{foundation:r,...l}=i.useFoundation({props:e,elements:{rootEl:!0,trackActiveEl:!0},foundation:({rootEl:e,trackActiveEl:t,emit:n})=>new a.MDCSliderFoundation({hasClass:t=>e.hasClass(t),addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),addThumbClass:(e,t)=>{var n;null==(n=u(t))||n.classList.add(e)},removeThumbClass:(e,t)=>{var n;null==(n=u(t))||n.classList.remove(e)},getAttribute:t=>e.getProp(t),getInputValue:e=>{var t;return(null==(t=s(e))?void 0:t.value)??"1"},setInputValue:(e,t)=>{const n=s(t);return void 0!==n?n.value=e:e},getInputAttribute:(e,t)=>{const n=s(t);return n?n.getAttribute(e):null},setInputAttribute:(e,t,n)=>{var r;null==(r=s(n))||r.setAttribute(e,t)},removeInputAttribute:(e,t)=>{var n;null==(n=s(t))||n.removeAttribute(e)},focusInput:e=>{var t;null==(t=s(e))||t.focus()},isInputFocused:e=>s(e)===document.activeElement,shouldHideFocusStylesForPointerEvents:()=>!1,getThumbKnobWidth:e=>{const t=u(e);return t?t.querySelector(`.${a.cssClasses.THUMB_KNOB}`).getBoundingClientRect().width:i.emptyClientRect.width},getThumbBoundingClientRect:e=>{var t;return(null==(t=u(e))?void 0:t.getBoundingClientRect())??i.emptyClientRect},getBoundingClientRect:()=>e.ref?e.ref.getBoundingClientRect():i.emptyClientRect,getValueIndicatorContainerWidth:e=>{const t=u(e);return t?t.querySelector(`.${a.cssClasses.VALUE_INDICATOR_CONTAINER}`).getBoundingClientRect().width:i.emptyClientRect.width},isRTL:()=>!!e.ref&&"rtl"===getComputedStyle(e.ref).direction,setThumbStyleProperty:(e,t,n)=>{var r;null==(r=u(n))||r.style.setProperty(e,t)},removeThumbStyleProperty:(e,t)=>{var n;null==(n=u(t))||n.style.removeProperty(e)},setTrackActiveStyleProperty:(e,n)=>{t.setStyle(e,n)},removeTrackActiveStyleProperty:e=>{t.setStyle(e,null)},setValueIndicatorText:(e,t)=>{const n=u(t);return n&&(n.querySelector(`.${a.cssClasses.VALUE_INDICATOR_TEXT}`).textContent=String(e)),""},getValueToAriaValueTextFn:()=>null,updateTickMarks:t=>{var n,r;let o=null==(n=e.ref)?void 0:n.querySelector(`.${a.cssClasses.TICK_MARKS_CONTAINER}`);if(!o){o=document.createElement("div"),o.classList.add(a.cssClasses.TICK_MARKS_CONTAINER);const t=null==(r=e.ref)?void 0:r.querySelector(`.${a.cssClasses.TRACK}`);t&&t.appendChild(o)}if(t.length!==o.children.length){for(;o.firstChild;)o.removeChild(o.firstChild);f(t)}else p(o,t)},setPointerCapture:t=>{var n;null==(n=e.ref)||n.setPointerCapture(t)},emitChangeEvent:(e,t)=>{2===t?n("onChange",{value:e,thumb:t}):1===t&&n("onChangeValueStart",{value:e,thumb:t})},emitInputEvent:(e,t)=>{2===t?n("onInput",{value:e,thumb:t}):1===t&&n("onInputValueStart",{value:e,thumb:t})},registerEventHandler:(t,n)=>{e.addEventListener(t,n)},deregisterEventHandler:(t,n)=>{e.removeEventListener(t,n)},registerThumbEventHandler:(e,t,n)=>{var r;null==(r=u(e))||r.addEventListener(t,n)},deregisterThumbEventHandler:(e,t,n)=>{var r;null==(r=u(e))||r.removeEventListener(t,n)},registerInputEventHandler:(e,t,n)=>{var r;null==(r=s(e))||r.addEventListener(t,n)},deregisterInputEventHandler:(e,t,n)=>{var r;null==(r=s(e))||r.removeEventListener(t,n)},registerBodyEventHandler:(e,t)=>{document.body.addEventListener(e,t)},deregisterBodyEventHandler:(e,t)=>{document.body.removeEventListener(e,t)},registerWindowEventHandler:(e,t)=>{window.addEventListener(e,t)},deregisterWindowEventHandler:(e,t)=>{window.removeEventListener(e,t)}})}),u=e=>{var n,r;return e===a.Thumb.END?null==(n=t.current)?void 0:n[t.current.length-1]:null==(r=t.current)?void 0:r[0]},s=e=>{var t,r;return e===a.Thumb.END?null==(t=n.current)?void 0:t[n.current.length-1]:null==(r=n.current)?void 0:r[0]},[c,d]=o.useState([]),f=e=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n]===a.TickMark.ACTIVE?a.cssClasses.TICK_MARK_ACTIVE:a.cssClasses.TICK_MARK_INACTIVE;t.push({className:r})}d(t)},p=(e,t)=>{const n=Array.from(e.children);for(let e=0;e<n.length;e++)t[e]===a.TickMark.ACTIVE?(n[e].classList.add(a.cssClasses.TICK_MARK_ACTIVE),n[e].classList.remove(a.cssClasses.TICK_MARK_INACTIVE)):(n[e].classList.add(a.cssClasses.TICK_MARK_INACTIVE),n[e].classList.remove(a.cssClasses.TICK_MARK_ACTIVE))};return o.useEffect((()=>{r.layout()}),[r]),o.useEffect((()=>{void 0!==e.range&&(r.isRange=e.range)}),[e.range,r]),o.useEffect((()=>{let t=void 0!==e.value?Number(e.value):r.getValue();const n=r.getMin(),o=r.getMax();t<n&&(console.warn(`Attempted to set slider to ${t} which is less than min: ${n}`),t=n),t>o&&(console.warn(`Attempted to set slider to ${t} which is greater than max: ${o}`),t=o),r.setValue(t)}),[e.value,r]),o.useEffect((()=>{if(e.range){let t=void 0!==e.valueStart?Number(e.valueStart):r.getValueStart();const n=r.getMin(),o=r.getMax();t<n&&(console.warn(`Attempted to set slider to ${t} which is less than min: ${n}`),t=n),t>o&&(console.warn(`Attempted to set slider to ${t} which is greater than max: ${o}`),t=o),r.setValueStart(t)}}),[e.range,e.valueStart,r]),o.useEffect((()=>{void 0!==e.disabled&&r.setDisabled(e.disabled)}),[e.disabled,r]),o.useEffect((()=>{void 0!==e.discrete&&(r.isDiscrete=e.discrete),e.discrete&&0===r.getStep()&&r.setStep(1)}),[e.discrete,r]),o.useEffect((()=>{void 0!==e.minRange&&r.setMinRange(Number(e.minRange))}),[e.minRange,r]),o.useEffect((()=>{const t=r.hasTickMarks;void 0!==e.displayMarkers&&e.displayMarkers!==t&&(r.hasTickMarks=e.displayMarkers,r.setHasTickMarks(e.displayMarkers))}),[e.displayMarkers,r]),o.useEffect((()=>{const e=r.handleDown.bind(r);r.handleDown=t=>{e(t)}}),[r]),{setInputsRef:(e,t)=>{n.current[e]=t||void 0},setThumbRef:(e,n)=>{t.current[e]=n||void 0},tickMarks:c,...l}})(e),{children:h,disabled:m,discrete:v,displayMarkers:y,max:g=100,min:b=0,minRange:E,onChange:w,onChangeValueStart:T,onInput:A,onInputValueStart:O,range:S,step:P,value:C,valueStart:I,...x}=e,R=i.useClassNames(e,["mdc-slider",{"mdc-slider--discrete":v,"mdc-slider--tick-marks":y&&v,"mdc-slider--disabled":m,"mdc-slider--range":S}]);return y&&!v&&console.warn("The 'displayMarkers' prop on rmwc Slider will\n only work in conjunction with the 'discrete' prop"),r.jsxs(i.Tag,{className:R,tabIndex:0,tag:"div",element:n,"data-min-range":E,ref:t,children:[S&&r.jsx("input",{...x,"aria-label":"Slider start value","aria-valuemax":c(g),"aria-valuenow":I,className:"mdc-slider__input",disabled:m,max:c(g),min:c(b),name:"rangeStart",onChange:T,onInput:O,ref:e=>d(0,e),step:P,type:"range",value:I}),r.jsx("input",{"aria-label":"Slider value","aria-valuemax":c(g),"aria-valuenow":C,className:"mdc-slider__input",disabled:m,max:c(g),min:c(b),name:"rangeEnd",...x,ref:e=>d(1,e),step:P,type:"range",value:C}),r.jsx(l,{..._.props({}),children:y&&r.jsx(u,{tickMarks:p})}),S&&r.jsx(s,{ref:e=>f(0,e),children:v&&r.jsx("div",{className:"mdc-slider__value-indicator-container","aria-hidden":"true",children:r.jsx("div",{className:"mdc-slider__value-indicator",children:r.jsx("span",{className:"mdc-slider__value-indicator-text",children:I})})})}),r.jsx(s,{ref:e=>f(1,e),children:v&&r.jsx("div",{className:"mdc-slider__value-indicator-container","aria-hidden":"true",children:r.jsx("div",{className:"mdc-slider__value-indicator",children:r.jsx("span",{className:"mdc-slider__value-indicator-text",children:C})})})}),h]})}));t.Slider=d},,,,,,,function(e,t,n){n.r(t),n.d(t,{MDCSlider:function(){return T},MDCSliderFoundation:function(){return E},Thumb:function(){return o},TickMark:function(){return r},attributes:function(){return _},cssClasses:function(){return f},events:function(){return h},numbers:function(){return p},strings:function(){return m}});var r,o,i,a=n(2),l=n(5),u=n(53),s=n(22),c=n(27),d=n(25),f={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_CONTAINER:"mdc-slider__value-indicator-container",VALUE_INDICATOR_TEXT:"mdc-slider__value-indicator-text"},p={STEP_SIZE:1,MIN_RANGE:0,THUMB_UPDATE_MIN_PX:5},_={ARIA_VALUETEXT:"aria-valuetext",INPUT_DISABLED:"disabled",INPUT_MIN:"min",INPUT_MAX:"max",INPUT_VALUE:"value",INPUT_STEP:"step",DATA_MIN_RANGE:"data-min-range"},h={CHANGE:"MDCSlider:change",INPUT:"MDCSlider:input"},m={VAR_VALUE_INDICATOR_CARET_LEFT:"--slider-value-indicator-caret-left",VAR_VALUE_INDICATOR_CARET_RIGHT:"--slider-value-indicator-caret-right",VAR_VALUE_INDICATOR_CARET_TRANSFORM:"--slider-value-indicator-caret-transform",VAR_VALUE_INDICATOR_CONTAINER_LEFT:"--slider-value-indicator-container-left",VAR_VALUE_INDICATOR_CONTAINER_RIGHT:"--slider-value-indicator-container-right",VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM:"--slider-value-indicator-container-transform"},v=n(96),y=n(62),g=n(4);!function(e){e[e.ACTIVE=0]="ACTIVE",e[e.INACTIVE=1]="INACTIVE"}(r||(r={})),function(e){e[e.START=1]="START",e[e.END=2]="END"}(o||(o={})),function(e){e.SLIDER_UPDATE="slider_update"}(i||(i={}));var b=void 0!==window,E=function(e){function t(n){var r=e.call(this,(0,a.Cl)((0,a.Cl)({},t.defaultAdapter),n))||this;return r.initialStylesRemoved=!1,r.isDisabled=!1,r.isDiscrete=!1,r.step=p.STEP_SIZE,r.minRange=p.MIN_RANGE,r.hasTickMarks=!1,r.isRange=!1,r.thumb=null,r.downEventClientX=null,r.startThumbKnobWidth=0,r.endThumbKnobWidth=0,r.animFrame=new v.K,r}return(0,a.C6)(t,e),Object.defineProperty(t,"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},shouldHideFocusStylesForPointerEvents:function(){return!1},getThumbKnobWidth:function(){return 0},getValueIndicatorContainerWidth: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}),t.prototype.init=function(){var e=this;this.isDisabled=this.adapter.hasClass(f.DISABLED),this.isDiscrete=this.adapter.hasClass(f.DISCRETE),this.hasTickMarks=this.adapter.hasClass(f.TICK_MARKS),this.isRange=this.adapter.hasClass(f.RANGE);var t=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(_.INPUT_MIN,this.isRange?o.START:o.END),_.INPUT_MIN),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(_.INPUT_MAX,o.END),_.INPUT_MAX),r=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(_.INPUT_VALUE,o.END),_.INPUT_VALUE),i=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(_.INPUT_VALUE,o.START),_.INPUT_VALUE):t,a=this.adapter.getInputAttribute(_.INPUT_STEP,o.END),l=a?this.convertAttributeValueToNumber(a,_.INPUT_STEP):this.step,u=this.adapter.getAttribute(_.DATA_MIN_RANGE),s=u?this.convertAttributeValueToNumber(u,_.DATA_MIN_RANGE):this.minRange;this.validateProperties({min:t,max:n,value:r,valueStart:i,step:l,minRange:s}),this.min=t,this.max=n,this.value=r,this.valueStart=i,this.step=l,this.minRange=s,this.numDecimalPlaces=w(this.step),this.valueBeforeDownEvent=r,this.valueStartBeforeDownEvent=i,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(){e.handleInputChange(o.START)},this.inputEndChangeListener=function(){e.handleInputChange(o.END)},this.inputStartFocusListener=function(){e.handleInputFocus(o.START)},this.inputEndFocusListener=function(){e.handleInputFocus(o.END)},this.inputStartBlurListener=function(){e.handleInputBlur(o.START)},this.inputEndBlurListener=function(){e.handleInputBlur(o.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},t.prototype.destroy=function(){this.deregisterEventHandlers()},t.prototype.setMin=function(e){this.min=e,this.isRange||(this.valueStart=e),this.updateUI()},t.prototype.setMax=function(e){this.max=e,this.updateUI()},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e){if(this.isRange&&e<this.valueStart+this.minRange)throw new Error("end thumb value ("+e+") must be >= start thumb value ("+this.valueStart+") + min range ("+this.minRange+")");this.updateValue(e,o.END)},t.prototype.getValueStart=function(){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");return this.valueStart},t.prototype.setValueStart=function(e){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&e>this.value-this.minRange)throw new Error("start thumb value ("+e+") must be <= end thumb value ("+this.value+") - min range ("+this.minRange+")");this.updateValue(e,o.START)},t.prototype.setStep=function(e){this.step=e,this.numDecimalPlaces=w(e),this.updateUI()},t.prototype.setMinRange=function(e){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");if(e<0)throw new Error("`minRange` must be non-negative. Current value: "+e);if(this.value-this.valueStart<e)throw new Error("start thumb value ("+this.valueStart+") and end thumb value ("+this.value+") must differ by at least "+e+".");this.minRange=e},t.prototype.setIsDiscrete=function(e){this.isDiscrete=e,this.updateValueIndicatorUI(),this.updateTickMarksUI()},t.prototype.getStep=function(){return this.step},t.prototype.getMinRange=function(){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");return this.minRange},t.prototype.setHasTickMarks=function(e){this.hasTickMarks=e,this.updateTickMarksUI()},t.prototype.getDisabled=function(){return this.isDisabled},t.prototype.setDisabled=function(e){this.isDisabled=e,e?(this.adapter.addClass(f.DISABLED),this.isRange&&this.adapter.setInputAttribute(_.INPUT_DISABLED,"",o.START),this.adapter.setInputAttribute(_.INPUT_DISABLED,"",o.END)):(this.adapter.removeClass(f.DISABLED),this.isRange&&this.adapter.removeInputAttribute(_.INPUT_DISABLED,o.START),this.adapter.removeInputAttribute(_.INPUT_DISABLED,o.END))},t.prototype.getIsRange=function(){return this.isRange},t.prototype.layout=function(e){var t=(void 0===e?{}:e).skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(o.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(o.END)),t||this.updateUI()},t.prototype.handleResize=function(){this.layout()},t.prototype.handleDown=function(e){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var t=null!=e.clientX?e.clientX:e.targetTouches[0].clientX;this.downEventClientX=t;var n=this.mapClientXOnSliderScale(t);this.thumb=this.getThumbFromDownEvent(t,n),null!==this.thumb&&(this.handleDragStart(e,n,this.thumb),this.updateValue(n,this.thumb,{emitInputEvent:!0}))}},t.prototype.handleMove=function(e){if(!this.isDisabled){e.preventDefault();var t=null!=e.clientX?e.clientX:e.targetTouches[0].clientX,n=null!=this.thumb;if(this.thumb=this.getThumbFromMoveEvent(t),null!==this.thumb){var r=this.mapClientXOnSliderScale(t);n||(this.handleDragStart(e,r,this.thumb),this.adapter.emitDragStartEvent(r,this.thumb)),this.updateValue(r,this.thumb,{emitInputEvent:!0})}}},t.prototype.handleUp=function(){var e,t;if(!this.isDisabled&&null!==this.thumb){(null===(t=(e=this.adapter).shouldHideFocusStylesForPointerEvents)||void 0===t?void 0:t.call(e))&&this.handleInputBlur(this.thumb);var n=this.thumb===o.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,r=this.thumb===o.START?this.valueStart:this.value;n!==r&&this.adapter.emitChangeEvent(r,this.thumb),this.adapter.emitDragEndEvent(r,this.thumb),this.thumb=null}},t.prototype.handleThumbMouseenter=function(){this.isDiscrete&&this.isRange&&(this.adapter.addThumbClass(f.THUMB_WITH_INDICATOR,o.START),this.adapter.addThumbClass(f.THUMB_WITH_INDICATOR,o.END))},t.prototype.handleThumbMouseleave=function(){var e,t;this.isDiscrete&&this.isRange&&(!(null===(t=(e=this.adapter).shouldHideFocusStylesForPointerEvents)||void 0===t?void 0:t.call(e))&&(this.adapter.isInputFocused(o.START)||this.adapter.isInputFocused(o.END))||this.thumb||(this.adapter.removeThumbClass(f.THUMB_WITH_INDICATOR,o.START),this.adapter.removeThumbClass(f.THUMB_WITH_INDICATOR,o.END)))},t.prototype.handleMousedownOrTouchstart=function(e){var t=this,n="mousedown"===e.type?"mousemove":"touchmove";this.adapter.registerBodyEventHandler(n,this.moveListener);var r=function(){t.handleUp(),t.adapter.deregisterBodyEventHandler(n,t.moveListener),t.adapter.deregisterEventHandler("mouseup",r),t.adapter.deregisterEventHandler("touchend",r)};this.adapter.registerBodyEventHandler("mouseup",r),this.adapter.registerBodyEventHandler("touchend",r),this.handleDown(e)},t.prototype.handlePointerdown=function(e){0===e.button&&(null!=e.pointerId&&this.adapter.setPointerCapture(e.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(e))},t.prototype.handleInputChange=function(e){var t=Number(this.adapter.getInputValue(e));e===o.START?this.setValueStart(t):this.setValue(t),this.adapter.emitChangeEvent(e===o.START?this.valueStart:this.value,e),this.adapter.emitInputEvent(e===o.START?this.valueStart:this.value,e)},t.prototype.handleInputFocus=function(e){if(this.adapter.addThumbClass(f.THUMB_FOCUSED,e),this.isDiscrete&&(this.adapter.addThumbClass(f.THUMB_WITH_INDICATOR,e),this.isRange)){var t=e===o.START?o.END:o.START;this.adapter.addThumbClass(f.THUMB_WITH_INDICATOR,t)}},t.prototype.handleInputBlur=function(e){if(this.adapter.removeThumbClass(f.THUMB_FOCUSED,e),this.isDiscrete&&(this.adapter.removeThumbClass(f.THUMB_WITH_INDICATOR,e),this.isRange)){var t=e===o.START?o.END:o.START;this.adapter.removeThumbClass(f.THUMB_WITH_INDICATOR,t)}},t.prototype.handleDragStart=function(e,t,n){var r,o;this.adapter.emitDragStartEvent(t,n),this.adapter.focusInput(n),(null===(o=(r=this.adapter).shouldHideFocusStylesForPointerEvents)||void 0===o?void 0:o.call(r))&&this.handleInputFocus(n),e.preventDefault()},t.prototype.getThumbFromDownEvent=function(e,t){if(!this.isRange)return o.END;var n=this.adapter.getThumbBoundingClientRect(o.START),r=this.adapter.getThumbBoundingClientRect(o.END),i=e>=n.left&&e<=n.right,a=e>=r.left&&e<=r.right;return i&&a?null:i?o.START:a?o.END:t<this.valueStart?o.START:t>this.value?o.END:t-this.valueStart<=this.value-t?o.START:o.END},t.prototype.getThumbFromMoveEvent=function(e){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-e)<p.THUMB_UPDATE_MIN_PX?this.thumb:e<this.downEventClientX?this.adapter.isRTL()?o.END:o.START:this.adapter.isRTL()?o.START:o.END},t.prototype.updateUI=function(e){e?this.updateThumbAndInputAttributes(e):(this.updateThumbAndInputAttributes(o.START),this.updateThumbAndInputAttributes(o.END)),this.updateThumbAndTrackUI(e),this.updateValueIndicatorUI(e),this.updateTickMarksUI()},t.prototype.updateThumbAndInputAttributes=function(e){if(e){var t=this.isRange&&e===o.START?this.valueStart:this.value,n=String(t);this.adapter.setInputAttribute(_.INPUT_VALUE,n,e),this.isRange&&e===o.START?this.adapter.setInputAttribute(_.INPUT_MIN,String(t+this.minRange),o.END):this.isRange&&e===o.END&&this.adapter.setInputAttribute(_.INPUT_MAX,String(t-this.minRange),o.START),this.adapter.getInputValue(e)!==n&&this.adapter.setInputValue(n,e);var r=this.adapter.getValueToAriaValueTextFn();r&&this.adapter.setInputAttribute(_.ARIA_VALUETEXT,r(t,e),e)}},t.prototype.updateValueIndicatorUI=function(e){if(this.isDiscrete){var t=this.isRange&&e===o.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(t,e===o.START?o.START:o.END),!e&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,o.START)}},t.prototype.updateTickMarksUI=function(){if(this.isDiscrete&&this.hasTickMarks){var e=(this.valueStart-this.min)/this.step,t=(this.value-this.valueStart)/this.step+1,n=(this.max-this.value)/this.step,o=Array.from({length:e}).fill(r.INACTIVE),i=Array.from({length:t}).fill(r.ACTIVE),a=Array.from({length:n}).fill(r.INACTIVE);this.adapter.updateTickMarks(o.concat(i).concat(a))}},t.prototype.mapClientXOnSliderScale=function(e){var t=(e-this.rect.left)/this.rect.width;this.adapter.isRTL()&&(t=1-t);var n=this.min+t*(this.max-this.min);return n===this.max||n===this.min?n:Number(this.quantize(n).toFixed(this.numDecimalPlaces))},t.prototype.quantize=function(e){var t=Math.round((e-this.min)/this.step);return this.min+t*this.step},t.prototype.updateValue=function(e,t,n){var r=(void 0===n?{}:n).emitInputEvent;if(e=this.clampValue(e,t),this.isRange&&t===o.START){if(this.valueStart===e)return;this.valueStart=e}else{if(this.value===e)return;this.value=e}this.updateUI(t),r&&this.adapter.emitInputEvent(t===o.START?this.valueStart:this.value,t)},t.prototype.clampValue=function(e,t){return e=Math.min(Math.max(e,this.min),this.max),this.isRange&&t===o.START&&e>this.value-this.minRange?this.value-this.minRange:this.isRange&&t===o.END&&e<this.valueStart+this.minRange?this.valueStart+this.minRange:e},t.prototype.updateThumbAndTrackUI=function(e){var t=this,n=this.max,r=this.min,a=(this.value-this.valueStart)/(n-r),l=a*this.rect.width,u=this.adapter.isRTL(),s=b?(0,y.getCorrectPropertyName)(window,"transform"):"transform";if(this.isRange){var c=this.adapter.isRTL()?(n-this.value)/(n-r)*this.rect.width:(this.valueStart-r)/(n-r)*this.rect.width,d=c+l;this.animFrame.request(i.SLIDER_UPDATE,(function(){!u&&e===o.START||u&&e!==o.START?(t.adapter.setTrackActiveStyleProperty("transform-origin","right"),t.adapter.setTrackActiveStyleProperty("left","auto"),t.adapter.setTrackActiveStyleProperty("right",t.rect.width-d+"px")):(t.adapter.setTrackActiveStyleProperty("transform-origin","left"),t.adapter.setTrackActiveStyleProperty("right","auto"),t.adapter.setTrackActiveStyleProperty("left",c+"px")),t.adapter.setTrackActiveStyleProperty(s,"scaleX("+a+")");var n=u?d:c,r=t.adapter.isRTL()?c:d;e!==o.START&&e&&t.initialStylesRemoved||(t.adapter.setThumbStyleProperty(s,"translateX("+n+"px)",o.START),t.alignValueIndicator(o.START,n)),e!==o.END&&e&&t.initialStylesRemoved||(t.adapter.setThumbStyleProperty(s,"translateX("+r+"px)",o.END),t.alignValueIndicator(o.END,r)),t.removeInitialStyles(u),t.updateOverlappingThumbsUI(n,r,e)}))}else this.animFrame.request(i.SLIDER_UPDATE,(function(){var e=u?t.rect.width-l:l;t.adapter.setThumbStyleProperty(s,"translateX("+e+"px)",o.END),t.alignValueIndicator(o.END,e),t.adapter.setTrackActiveStyleProperty(s,"scaleX("+a+")"),t.removeInitialStyles(u)}))},t.prototype.alignValueIndicator=function(e,t){if(this.isDiscrete){var n=this.adapter.getThumbBoundingClientRect(e).width/2,r=this.adapter.getValueIndicatorContainerWidth(e),o=this.adapter.getBoundingClientRect().width;r/2>t+n?(this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_LEFT,n+"px",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"0",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",e)):r/2>o-t+n?(this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_LEFT,"auto",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_RIGHT,n+"px",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(50%)",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"auto",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"0",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",e)):(this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_LEFT,"50%",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"50%",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",e),this.adapter.setThumbStyleProperty(m.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"translateX(-50%)",e))}},t.prototype.removeInitialStyles=function(e){if(!this.initialStylesRemoved){var t=e?"right":"left";this.adapter.removeThumbStyleProperty(t,o.END),this.isRange&&this.adapter.removeThumbStyleProperty(t,o.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},t.prototype.resetTrackAndThumbAnimation=function(){var e=this;if(this.isDiscrete){var t=b?(0,y.getCorrectPropertyName)(window,"transition"):"transition",n="none 0s ease 0s";this.adapter.setThumbStyleProperty(t,n,o.END),this.isRange&&this.adapter.setThumbStyleProperty(t,n,o.START),this.adapter.setTrackActiveStyleProperty(t,n),requestAnimationFrame((function(){e.adapter.removeThumbStyleProperty(t,o.END),e.adapter.removeTrackActiveStyleProperty(t),e.isRange&&e.adapter.removeThumbStyleProperty(t,o.START)}))}},t.prototype.updateOverlappingThumbsUI=function(e,t,n){var r=!1;if(this.adapter.isRTL()){var i=e-this.startThumbKnobWidth/2;r=t+this.endThumbKnobWidth/2>=i}else{r=e+this.startThumbKnobWidth/2>=t-this.endThumbKnobWidth/2}r?(this.adapter.addThumbClass(f.THUMB_TOP,n||o.END),this.adapter.removeThumbClass(f.THUMB_TOP,n===o.START?o.END:o.START)):(this.adapter.removeThumbClass(f.THUMB_TOP,o.START),this.adapter.removeThumbClass(f.THUMB_TOP,o.END))},t.prototype.convertAttributeValueToNumber=function(e,t){if(null===e)throw new Error("MDCSliderFoundation: `"+t+"` must be non-null.");var n=Number(e);if(isNaN(n))throw new Error("MDCSliderFoundation: `"+t+"` value is `"+e+"`, but must be a number.");return n},t.prototype.validateProperties=function(e){var t=e.min,n=e.max,r=e.value,o=e.valueStart,i=e.step,a=e.minRange;if(t>=n)throw new Error("MDCSliderFoundation: min must be strictly less than max. Current: [min: "+t+", max: "+n+"]");if(i<=0)throw new Error("MDCSliderFoundation: step must be a positive number. Current step: "+i);if(this.isRange){if(r<t||r>n||o<t||o>n)throw new Error("MDCSliderFoundation: values must be in [min, max] range. Current values: [start value: "+o+", end value: "+r+", min: "+t+", max: "+n+"]");if(o>r)throw new Error("MDCSliderFoundation: start value must be <= end value. Current values: [start value: "+o+", end value: "+r+"]");if(a<0)throw new Error("MDCSliderFoundation: minimum range must be non-negative. Current min range: "+a);if(r-o<a)throw new Error("MDCSliderFoundation: start value and end value must differ by at least "+a+". Current values: [start value: "+o+", end value: "+r+"]");var l=(o-t)/i,u=(r-t)/i;if(!Number.isInteger(parseFloat(l.toFixed(6)))||!Number.isInteger(parseFloat(u.toFixed(6))))throw new Error("MDCSliderFoundation: Slider values must be valid based on the step value ("+i+"). Current values: [start value: "+o+", end value: "+r+", min: "+t+"]")}else{if(r<t||r>n)throw new Error("MDCSliderFoundation: value must be in [min, max] range. Current values: [value: "+r+", min: "+t+", max: "+n+"]");u=(r-t)/i;if(!Number.isInteger(parseFloat(u.toFixed(6))))throw new Error("MDCSliderFoundation: Slider value must be valid based on the step value ("+i+"). Current value: "+r)}},t.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),t.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(o.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(o.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(o.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(o.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(o.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(o.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(o.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(o.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(o.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(o.END,"blur",this.inputEndBlurListener)},t.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),t.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(o.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(o.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(o.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(o.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(o.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(o.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(o.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(o.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(o.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(o.END,"blur",this.inputEndBlurListener)},t.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},t.SUPPORTS_POINTER_EVENTS=b&&Boolean(window.PointerEvent)&&!(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document),t}(g.I);function w(e){var t=/(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(e));if(!t)return 0;var n=t[1]||"",r=t[2]||0;return Math.max(0,("0"===n?0:n.length)-Number(r))}
|
|
307
307
|
/**
|
|
308
308
|
* @license
|
|
309
309
|
* Copyright 2020 Google Inc.
|
package/index.bundle.js
CHANGED
|
@@ -487,7 +487,7 @@ var r={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar"
|
|
|
487
487
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
488
488
|
* THE SOFTWARE.
|
|
489
489
|
*/
|
|
490
|
-
var r=function(){function e(){this.rafIDs=new Map}return e.prototype.request=function(e,t){var n=this;this.cancel(e);var r=requestAnimationFrame((function(r){n.rafIDs.delete(e),t(r)}));this.rafIDs.set(e,r)},e.prototype.cancel=function(e){var t=this.rafIDs.get(e);t&&(cancelAnimationFrame(t),this.rafIDs.delete(e))},e.prototype.cancelAll=function(){var e=this;this.rafIDs.forEach((function(t,n){e.cancel(n)}))},e.prototype.getQueue=function(){var e=[];return this.rafIDs.forEach((function(t,n){e.push(n)})),e},e}()},function(e,t,n){n.r(t),n.d(t,{MDCCircularProgress:function(){return u},MDCCircularProgressFoundation:function(){return s},cssClasses:function(){return a},strings:function(){return l}});var r=n(2),i=n(5),o=n(4),a={INDETERMINATE_CLASS:"mdc-circular-progress--indeterminate",CLOSED_CLASS:"mdc-circular-progress--closed"},l={ARIA_HIDDEN:"aria-hidden",ARIA_VALUENOW:"aria-valuenow",DETERMINATE_CIRCLE_SELECTOR:".mdc-circular-progress__determinate-circle",RADIUS:"r",STROKE_DASHOFFSET:"stroke-dashoffset"},s=function(e){function t(n){return e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},getDeterminateCircleAttribute:function(){return null},hasClass:function(){return!1},removeClass:function(){},removeAttribute:function(){},setAttribute:function(){},setDeterminateCircleAttribute:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.closed=this.adapter.hasClass(a.CLOSED_CLASS),this.determinate=!this.adapter.hasClass(a.INDETERMINATE_CLASS),this.progress=0,this.determinate&&this.adapter.setAttribute(l.ARIA_VALUENOW,this.progress.toString()),this.radius=Number(this.adapter.getDeterminateCircleAttribute(l.RADIUS))},t.prototype.setDeterminate=function(e){this.determinate=e,this.determinate?(this.adapter.removeClass(a.INDETERMINATE_CLASS),this.setProgress(this.progress)):(this.adapter.addClass(a.INDETERMINATE_CLASS),this.adapter.removeAttribute(l.ARIA_VALUENOW))},t.prototype.isDeterminate=function(){return this.determinate},t.prototype.setProgress=function(e){if(this.progress=e,this.determinate){var t=(1-this.progress)*(2*Math.PI*this.radius);this.adapter.setDeterminateCircleAttribute(l.STROKE_DASHOFFSET,""+t),this.adapter.setAttribute(l.ARIA_VALUENOW,this.progress.toString())}},t.prototype.getProgress=function(){return this.progress},t.prototype.open=function(){this.closed=!1,this.adapter.removeClass(a.CLOSED_CLASS),this.adapter.removeAttribute(l.ARIA_HIDDEN)},t.prototype.close=function(){this.closed=!0,this.adapter.addClass(a.CLOSED_CLASS),this.adapter.setAttribute(l.ARIA_HIDDEN,"true")},t.prototype.isClosed=function(){return this.closed},t}(o.I),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.initialize=function(){this.determinateCircle=this.root.querySelector(s.strings.DETERMINATE_CIRCLE_SELECTOR)},t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"determinate",{set:function(e){this.foundation.setDeterminate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{set:function(e){this.foundation.setProgress(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClosed",{get:function(){return this.foundation.isClosed()},enumerable:!1,configurable:!0}),t.prototype.open=function(){this.foundation.open()},t.prototype.close=function(){this.foundation.close()},t.prototype.getDefaultFoundation=function(){var e=this;return new s({addClass:function(t){e.root.classList.add(t)},getDeterminateCircleAttribute:function(t){return e.determinateCircle.getAttribute(t)},hasClass:function(t){return e.root.classList.contains(t)},removeClass:function(t){e.root.classList.remove(t)},removeAttribute:function(t){e.root.removeAttribute(t)},setAttribute:function(t,n){e.root.setAttribute(t,n)},setDeterminateCircleAttribute:function(t,n){e.determinateCircle.setAttribute(t,n)}})},t}(i.O)},function(e,t,n){n.r(t),n.d(t,{MDCRipple:function(){return i.N},MDCRippleFoundation:function(){return a.E},cssClasses:function(){return o.Y7},numbers:function(){return o.nL},strings:function(){return o.P$},util:function(){return r}});var r=n(52),i=n(27),o=n(63),a=n(25)},function(e,t,n){function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.r(t),n.d(t,{CSSTransition:function(){return f},ReplaceTransition:function(){return T},SwitchTransition:function(){return P},Transition:function(){return s.default},TransitionGroup:function(){return y},config:function(){return L.A}});var i=n(78),o=n(79);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var l=n(0),s=n(77),u=n(81),c=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}(0,o.A)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&(0,u.F)(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&c(e,r),i&&c(e,i),o&&c(e,o)},n.render=function(){var e=this.props,t=(e.classNames,(0,i.A)(e,["classNames"]));return l.createElement(s.default,r({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l.Component);d.defaultProps={classNames:""},d.propTypes={};var f=d,p=n(7);var m=n(80);function h(e,t){var n=Object.create(null);return e&&l.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,l.isValidElement)(e)?t(e):e}(e)})),n}function v(e,t,n){return null!=n[t]?n[t]:e.props[t]}function g(e,t,n){var r=h(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var l={};for(var s in t){if(i[s])for(r=0;r<i[s].length;r++){var u=i[s][r];l[i[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<o.length;r++)l[o[r]]=n(o[r]);return l}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if((0,l.isValidElement)(a)){var s=o in t,u=o in r,c=t[o],d=(0,l.isValidElement)(c)&&!c.props.in;!u||s&&!d?u||!s||d?u&&s&&(0,l.isValidElement)(c)&&(i[o]=(0,l.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:v(a,"exit",e),enter:v(a,"enter",e)})):i[o]=(0,l.cloneElement)(a,{in:!1}):i[o]=(0,l.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:v(a,"exit",e),enter:v(a,"enter",e)})}})),i}var _=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},b=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,o.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,h(n.children,(function(e){return(0,l.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:v(e,"appear",n),enter:v(e,"enter",n),exit:v(e,"exit",n)})}))):g(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=h(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=r({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,i.A)(e,["component","childFactory"]),o=this.state.contextValue,a=_(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?l.createElement(m.A.Provider,{value:o},a):l.createElement(m.A.Provider,{value:o},l.createElement(t,r,a))},t}(l.Component);b.propTypes={},b.defaultProps={component:"div",childFactory:function(e){return e}};var y=b,E=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}(0,o.A)(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,i=this.props.children,o=l.Children.toArray(i)[t];if(o.props[e]&&(r=o.props)[e].apply(r,n),this.props[e]){var a=o.props.nodeRef?void 0:p.findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=(0,i.A)(e,["children","in"]),o=l.Children.toArray(t),a=o[0],s=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,l.createElement(y,r,n?l.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):l.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(l.Component);E.propTypes={};var x,C,T=E;var I="out-in",S="in-out",A=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},O=((x={})[I]=function(e){var t=e.current,n=e.changeState;return l.cloneElement(t,{in:!1,onExited:A(t,"onExited",(function(){n(s.ENTERING,null)}))})},x[S]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,l.cloneElement(r,{in:!0,onEntered:A(r,"onEntered",(function(){n(s.ENTERING)}))})]},x),w=((C={})[I]=function(e){var t=e.children,n=e.changeState;return l.cloneElement(t,{in:!0,onEntered:A(t,"onEntered",(function(){n(s.ENTERED,l.cloneElement(t,{in:!0}))}))})},C[S]=function(e){var t=e.current,n=e.children,r=e.changeState;return[l.cloneElement(t,{in:!1,onExited:A(t,"onExited",(function(){r(s.ENTERED,l.cloneElement(n,{in:!0}))}))}),l.cloneElement(n,{in:!0})]},C),N=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:s.ENTERED,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}(0,o.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===s.ENTERING&&e.mode===S?{status:s.ENTERING}:!t.current||(n=t.current,r=e.children,n===r||l.isValidElement(n)&&l.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:l.cloneElement(e.children,{in:!0})}:{status:s.EXITING};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,i=this.state,o=i.status,a=i.current,u={children:n,current:a,changeState:this.changeState,status:o};switch(o){case s.ENTERING:e=w[r](u);break;case s.EXITING:e=O[r](u);break;case s.ENTERED:e=a}return l.createElement(m.A.Provider,{value:{isMounting:!this.appeared}},e)},t}(l.Component);N.propTypes={},N.defaultProps={mode:I};var P=N,L=n(100)},function(e,t){t.A={disabled:!1}},function(e,t,n){n.r(t),n.d(t,{MDCIconButtonToggle:function(){return d},MDCIconButtonToggleFoundation:function(){return u},cssClasses:function(){return l},strings:function(){return s}});var r=n(2),i=n(5),o=n(27),a=n(4),l={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},s={ARIA_LABEL:"aria-label",ARIA_PRESSED:"aria-pressed",DATA_ARIA_LABEL_OFF:"data-aria-label-off",DATA_ARIA_LABEL_ON:"data-aria-label-on",CHANGE_EVENT:"MDCIconButtonToggle:change"},u=function(e){function t(n){var i=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return i.hasToggledAriaLabel=!1,i}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},hasClass:function(){return!1},notifyChange:function(){},removeClass:function(){},getAttr:function(){return null},setAttr:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this.adapter.getAttr(s.DATA_ARIA_LABEL_ON),t=this.adapter.getAttr(s.DATA_ARIA_LABEL_OFF);if(e&&t){if(null!==this.adapter.getAttr(s.ARIA_PRESSED))throw new Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");this.hasToggledAriaLabel=!0}else this.adapter.setAttr(s.ARIA_PRESSED,String(this.isOn()))},t.prototype.handleClick=function(){this.toggle(),this.adapter.notifyChange({isOn:this.isOn()})},t.prototype.isOn=function(){return this.adapter.hasClass(l.ICON_BUTTON_ON)},t.prototype.toggle=function(e){if(void 0===e&&(e=!this.isOn()),e?this.adapter.addClass(l.ICON_BUTTON_ON):this.adapter.removeClass(l.ICON_BUTTON_ON),this.hasToggledAriaLabel){var t=e?this.adapter.getAttr(s.DATA_ARIA_LABEL_ON):this.adapter.getAttr(s.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(s.ARIA_LABEL,t||"")}else this.adapter.setAttr(s.ARIA_PRESSED,""+e)},t}(a.I),c=u.strings,d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rippleComponent=t.createRipple(),t}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){var e=this;this.handleClick=function(){e.foundation.handleClick()},this.listen("click",this.handleClick)},t.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new u({addClass:function(t){return e.root.classList.add(t)},hasClass:function(t){return e.root.classList.contains(t)},notifyChange:function(t){e.emit(c.CHANGE_EVENT,t)},removeClass:function(t){return e.root.classList.remove(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)}})},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.rippleComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"on",{get:function(){return this.foundation.isOn()},set:function(e){this.foundation.toggle(e)},enumerable:!1,configurable:!0}),t.prototype.createRipple=function(){var e=new o.N(this.root);return e.unbounded=!0,e},t}(i.O)},function(e,t,n){n.r(t),n.d(t,{MDCList:function(){return r.f},MDCListFoundation:function(){return o.Y},cssClasses:function(){return i.Y7},deprecatedClassNameMap:function(){return i.PY},evolutionAttribute:function(){return i.iP},evolutionClassNameMap:function(){return i.$z},numbers:function(){return i.nL},strings:function(){return i.P$}});var r=n(91),i=n(51),o=n(74)},function(e,t,n){n.r(t),n.d(t,{Corner:function(){return i.OK},CornerBit:function(){return i.Jv},MDCMenuSurface:function(){return r.X},MDCMenuSurfaceFoundation:function(){return o.O},cssClasses:function(){return i.Y7},numbers:function(){return i.nL},strings:function(){return i.P$}});var r=n(92),i=n(50),o=n(54)},function(e,t,n){n.r(t),n.d(t,{AnimationFrame:function(){return i.K},getCorrectEventName:function(){return r.getCorrectEventName},getCorrectPropertyName:function(){return r.getCorrectPropertyName},util:function(){return r}});var r=n(62),i=n(96)},function(e,t,n){n.r(t),n.d(t,{Corner:function(){return r.OK},DefaultFocusState:function(){return o.hf},MDCMenu:function(){return i.C},MDCMenuFoundation:function(){return a.d},cssClasses:function(){return o.Y7},numbers:function(){return o.nL},strings:function(){return o.P$}});var r=n(50),i=n(93),o=n(55),a=n(94)},function(e,t,n){n.r(t),n.d(t,{MDCFloatingLabel:function(){return r.$},MDCFloatingLabelFoundation:function(){return o.K},cssClasses:function(){return i.Y}});var r=n(69),i=n(87),o=n(70)},function(e,t,n){n.r(t),n.d(t,{MDCLineRipple:function(){return r.l},MDCLineRippleFoundation:function(){return o.C},cssClasses:function(){return i.Y}});var r=n(71),i=n(89),o=n(88)},function(e,t,n){n.r(t),n.d(t,{MDCNotchedOutline:function(){return r.i},MDCNotchedOutlineFoundation:function(){return o.z},cssClasses:function(){return i.Y7},numbers:function(){return i.nL},strings:function(){return i.P$}});var r=n(72),i=n(73),o=n(90)},function(e,t,n){n.r(t),n.d(t,{MDCSelect:function(){return A},MDCSelectFoundation:function(){return _},MDCSelectHelperText:function(){return x},MDCSelectHelperTextFoundation:function(){return E},MDCSelectIcon:function(){return S},MDCSelectIconFoundation:function(){return I},cssClasses:function(){return p},helperTextCssClasses:function(){return y},helperTextStrings:function(){return b},iconStrings:function(){return C},numbers:function(){return h},strings:function(){return m}});var r=n(2),i=n(5),o=n(69),a=n(71),l=n(50),s=n(93),u=n(55),c=n(72),d=n(27),f=n(25),p={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},m={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},h={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},v=n(4),g=n(95),_=function(e){function t(n,i){void 0===i&&(i={});var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.disabled=!1,o.isMenuOpen=!1,o.useDefaultValidation=!0,o.customValidity=!0,o.lastSelectedIndex=h.UNSET_INDEX,o.clickDebounceTimeout=0,o.recentlyClicked=!1,o.leadingIcon=i.leadingIcon,o.helperText=i.helperText,o}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return p},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return h},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return-1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectAnchorFocused:function(){return!1},getSelectAnchorAttr:function(){return""},setSelectAnchorAttr:function(){},removeSelectAnchorAttr:function(){},addMenuClass:function(){},removeMenuClass:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},isTypeaheadInProgress:function(){return!1},typeaheadMatchItem:function(){return-1}}},enumerable:!1,configurable:!0}),t.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},t.prototype.setSelectedIndex=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),e>=this.adapter.getMenuItemCount()||(e===h.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(e).trim()),this.adapter.setSelectedIndex(e),t&&this.adapter.closeMenu(),n||this.lastSelectedIndex===e||this.handleChange(),this.lastSelectedIndex=e)},t.prototype.setValue=function(e,t){void 0===t&&(t=!1);var n=this.adapter.getMenuItemValues().indexOf(e);this.setSelectedIndex(n,!1,t)},t.prototype.getValue=function(){var e=this.adapter.getSelectedIndex(),t=this.adapter.getMenuItemValues();return e!==h.UNSET_INDEX?t[e]:""},t.prototype.getDisabled=function(){return this.disabled},t.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(p.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(p.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},t.prototype.openMenu=function(){this.adapter.addClass(p.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},t.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},t.prototype.layout=function(){if(this.adapter.hasLabel()){var e=this.getValue().length>0,t=this.adapter.hasClass(p.FOCUSED),n=e||t,r=this.adapter.hasClass(p.REQUIRED);this.notchOutline(n),this.adapter.floatLabel(n),this.adapter.setLabelRequired(r)}},t.prototype.layoutOptions=function(){var e=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(e,!1,!0)},t.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var e=this.getSelectedIndex(),t=e>=0?e:0;this.adapter.focusMenuItemAtIndex(t)}},t.prototype.handleMenuClosing=function(){this.adapter.setSelectAnchorAttr("aria-expanded","false")},t.prototype.handleMenuClosed=function(){this.adapter.removeClass(p.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},t.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(p.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},t.prototype.handleFocus=function(){this.adapter.addClass(p.FOCUSED),this.layout(),this.adapter.activateBottomLine()},t.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},t.prototype.handleClick=function(e){this.disabled||this.recentlyClicked||(this.setClickDebounceTimeout(),this.isMenuOpen?this.adapter.closeMenu():(this.adapter.setRippleCenter(e),this.openMenu()))},t.prototype.handleKeydown=function(e){if(!this.isMenuOpen&&this.adapter.hasClass(p.FOCUSED)){var t=(0,g.l5)(e)===g._.ENTER,n=(0,g.l5)(e)===g._.SPACEBAR,r=(0,g.l5)(e)===g._.ARROW_UP,i=(0,g.l5)(e)===g._.ARROW_DOWN;if(!(e.ctrlKey||e.metaKey)&&(!n&&e.key&&1===e.key.length||n&&this.adapter.isTypeaheadInProgress())){var o=n?" ":e.key,a=this.adapter.typeaheadMatchItem(o,this.getSelectedIndex());return a>=0&&this.setSelectedIndex(a),void e.preventDefault()}(t||n||r||i)&&(this.openMenu(),e.preventDefault())}},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()){var t=this.adapter.hasClass(p.FOCUSED);if(e){var n=h.LABEL_SCALE,r=this.adapter.getLabelWidth()*n;this.adapter.notchOutline(r)}else t||this.adapter.closeOutline()}},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},t.prototype.getUseDefaultValidation=function(){return this.useDefaultValidation},t.prototype.setUseDefaultValidation=function(e){this.useDefaultValidation=e},t.prototype.setValid=function(e){this.useDefaultValidation||(this.customValidity=e),this.adapter.setSelectAnchorAttr("aria-invalid",(!e).toString()),e?(this.adapter.removeClass(p.INVALID),this.adapter.removeMenuClass(p.MENU_INVALID)):(this.adapter.addClass(p.INVALID),this.adapter.addMenuClass(p.MENU_INVALID)),this.syncHelperTextValidity(e)},t.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(p.REQUIRED)&&!this.adapter.hasClass(p.DISABLED)?this.getSelectedIndex()!==h.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},t.prototype.setRequired=function(e){e?this.adapter.addClass(p.REQUIRED):this.adapter.removeClass(p.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",e.toString()),this.adapter.setLabelRequired(e)},t.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},t.prototype.init=function(){var e=this.adapter.getAnchorElement();e&&(this.adapter.setMenuAnchorElement(e),this.adapter.setMenuAnchorCorner(l.OK.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(p.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(p.INVALID)),this.layout(),this.layoutOptions()},t.prototype.blur=function(){this.adapter.removeClass(p.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(p.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.syncHelperTextValidity=function(e){if(this.helperText){this.helperText.setValidity(e);var t=this.helperText.isVisible(),n=this.helperText.getId();t&&n?this.adapter.setSelectAnchorAttr(m.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(m.ARIA_DESCRIBEDBY)}},t.prototype.setClickDebounceTimeout=function(){var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout((function(){e.recentlyClicked=!1}),h.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},t}(v.I),b={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},y={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},E=function(e){function t(n){return e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return y},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return b},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},getAttr:function(){return null},removeAttr:function(){},setContent:function(){}}},enumerable:!1,configurable:!0}),t.prototype.getId=function(){return this.adapter.getAttr("id")},t.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(b.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.setValidation=function(e){e?this.adapter.addClass(y.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(y.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidationMsgPersistent=function(e){e?this.adapter.addClass(y.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(y.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.getIsValidation=function(){return this.adapter.hasClass(y.HELPER_TEXT_VALIDATION_MSG)},t.prototype.getIsValidationMsgPersistent=function(){return this.adapter.hasClass(y.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.setValidity=function(e){if(this.adapter.hasClass(y.HELPER_TEXT_VALIDATION_MSG)){var t=this.adapter.hasClass(y.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!e||t)return this.showToScreenReader(),void(e?this.adapter.removeAttr(b.ROLE):this.adapter.setAttr(b.ROLE,"alert"));this.adapter.removeAttr(b.ROLE),this.hide()}},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(b.ARIA_HIDDEN)},t.prototype.hide=function(){this.adapter.setAttr(b.ARIA_HIDDEN,"true")},t}(v.I),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new E({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}})},t}(i.O),C={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},T=["click","keydown"],I=function(e){function t(n){var i=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return i.savedTabIndex=null,i.interactionHandler=function(e){i.handleInteraction(e)},i}return(0,r.C6)(t,e),Object.defineProperty(t,"strings",{get:function(){return C},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e,t;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var n=(0,r.Ju)(T),i=n.next();!i.done;i=n.next()){var o=i.value;this.adapter.registerInteractionHandler(o,this.interactionHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.destroy=function(){var e,t;try{for(var n=(0,r.Ju)(T),i=n.next();!i.done;i=n.next()){var o=i.value;this.adapter.deregisterInteractionHandler(o,this.interactionHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.setDisabled=function(e){this.savedTabIndex&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",C.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&this.adapter.notifyIconAction()},t}(v.I),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new I({getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)},notifyIconAction:function(){return e.emit(I.strings.ICON_EVENT,{},!0)}})},t}(i.O),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,r,i,l){if(void 0===e&&(e=function(e){return new o.$(e)}),void 0===t&&(t=function(e){return new a.l(e)}),void 0===n&&(n=function(e){return new c.i(e)}),void 0===r&&(r=function(e){return new s.C(e)}),void 0===i&&(i=function(e){return new S(e)}),void 0===l&&(l=function(e){return new x(e)}),this.selectAnchor=this.root.querySelector(m.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(m.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(m.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw new Error("MDCSelect: Missing required element: The following selector must be present: '"+m.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(m.ARIA_CONTROLS)){var u=document.getElementById(this.selectAnchor.getAttribute(m.ARIA_CONTROLS));u&&(this.helperText=l(u))}this.menuSetup(r);var d=this.root.querySelector(m.LABEL_SELECTOR);this.label=d?e(d):null;var f=this.root.querySelector(m.LINE_RIPPLE_SELECTOR);this.lineRipple=f?t(f):null;var h=this.root.querySelector(m.OUTLINE_SELECTOR);this.outline=h?n(h):null;var v=this.root.querySelector(m.LEADING_ICON_SELECTOR);v&&(this.leadingIcon=i(v)),this.root.classList.contains(p.OUTLINED)||(this.ripple=this.createRipple())},t.prototype.initialSyncWithDOM=function(){var e=this;if(this.handleFocus=function(){e.foundation.handleFocus()},this.handleBlur=function(){e.foundation.handleBlur()},this.handleClick=function(t){e.selectAnchor.focus(),e.foundation.handleClick(e.getNormalizedXCoordinate(t))},this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleMenuItemAction=function(t){e.foundation.handleMenuItemAction(t.detail.index)},this.handleMenuOpened=function(){e.foundation.handleMenuOpened()},this.handleMenuClosed=function(){e.foundation.handleMenuClosed()},this.handleMenuClosing=function(){e.foundation.handleMenuClosing()},this.selectAnchor.addEventListener("focus",this.handleFocus),this.selectAnchor.addEventListener("blur",this.handleBlur),this.selectAnchor.addEventListener("click",this.handleClick),this.selectAnchor.addEventListener("keydown",this.handleKeydown),this.menu.listen(l.P$.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(l.P$.CLOSING_EVENT,this.handleMenuClosing),this.menu.listen(l.P$.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(u.P$.SELECTED_EVENT,this.handleMenuItemAction),this.hiddenInput){if(this.hiddenInput.value)return this.foundation.setValue(this.hiddenInput.value,!0),void this.foundation.layout();this.hiddenInput.value=this.value}},t.prototype.destroy=function(){this.selectAnchor.removeEventListener("focus",this.handleFocus),this.selectAnchor.removeEventListener("blur",this.handleBlur),this.selectAnchor.removeEventListener("keydown",this.handleKeydown),this.selectAnchor.removeEventListener("click",this.handleClick),this.menu.unlisten(l.P$.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(l.P$.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(u.P$.SELECTED_EVENT,this.handleMenuItemAction),this.menu.destroy(),this.ripple&&this.ripple.destroy(),this.outline&&this.outline.destroy(),this.leadingIcon&&this.leadingIcon.destroy(),this.helperText&&this.helperText.destroy(),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(e){this.foundation.setValue(e)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e,t){void 0===t&&(t=!1),this.foundation.setValue(e,t)},Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e,!0)},enumerable:!1,configurable:!0}),t.prototype.setSelectedIndex=function(e,t){void 0===t&&(t=!1),this.foundation.setSelectedIndex(e,!0,t)},Object.defineProperty(t.prototype,"disabled",{get:function(){return this.foundation.getDisabled()},set:function(e){this.foundation.setDisabled(e),this.hiddenInput&&(this.hiddenInput.disabled=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconAriaLabel",{set:function(e){this.foundation.setLeadingIconAriaLabel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconContent",{set:function(e){this.foundation.setLeadingIconContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"helperTextContent",{set:function(e){this.foundation.setHelperTextContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useDefaultValidation",{set:function(e){this.foundation.setUseDefaultValidation(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(e){this.foundation.setValid(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this.foundation.getRequired()},set:function(e){this.foundation.setRequired(e)},enumerable:!1,configurable:!0}),t.prototype.layout=function(){this.foundation.layout()},t.prototype.layoutOptions=function(){this.foundation.layoutOptions(),this.menu.layout(),this.menuItemValues=this.menu.items.map((function(e){return e.getAttribute(m.VALUE_ATTR)||""})),this.hiddenInput&&(this.hiddenInput.value=this.value)},t.prototype.getDefaultFoundation=function(){var e=(0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)({},this.getSelectAdapterMethods()),this.getCommonAdapterMethods()),this.getOutlineAdapterMethods()),this.getLabelAdapterMethods());return new _(e,this.getFoundationMap())},t.prototype.menuSetup=function(e){this.menuElement=this.root.querySelector(m.MENU_SELECTOR),this.menu=e(this.menuElement),this.menu.hasTypeahead=!0,this.menu.singleSelection=!0,this.menuItemValues=this.menu.items.map((function(e){return e.getAttribute(m.VALUE_ATTR)||""}))},t.prototype.createRipple=function(){var e=this,t=(0,r.Cl)((0,r.Cl)({},d.N.createAdapter({root:this.selectAnchor})),{registerInteractionHandler:function(t,n){e.selectAnchor.addEventListener(t,n)},deregisterInteractionHandler:function(t,n){e.selectAnchor.removeEventListener(t,n)}});return new d.N(this.selectAnchor,new f.E(t))},t.prototype.getSelectAdapterMethods=function(){var e=this;return{getMenuItemAttr:function(e,t){return e.getAttribute(t)},setSelectedText:function(t){e.selectedText.textContent=t},isSelectAnchorFocused:function(){return document.activeElement===e.selectAnchor},getSelectAnchorAttr:function(t){return e.selectAnchor.getAttribute(t)},setSelectAnchorAttr:function(t,n){e.selectAnchor.setAttribute(t,n)},removeSelectAnchorAttr:function(t){e.selectAnchor.removeAttribute(t)},addMenuClass:function(t){e.menuElement.classList.add(t)},removeMenuClass:function(t){e.menuElement.classList.remove(t)},openMenu:function(){e.menu.open=!0},closeMenu:function(){e.menu.open=!1},getAnchorElement:function(){return e.root.querySelector(m.SELECT_ANCHOR_SELECTOR)},setMenuAnchorElement:function(t){e.menu.setAnchorElement(t)},setMenuAnchorCorner:function(t){e.menu.setAnchorCorner(t)},setMenuWrapFocus:function(t){e.menu.wrapFocus=t},getSelectedIndex:function(){var t=e.menu.selectedIndex;return t instanceof Array?t[0]:t},setSelectedIndex:function(t){e.menu.selectedIndex=t},focusMenuItemAtIndex:function(t){e.menu.items[t].focus()},getMenuItemCount:function(){return e.menu.items.length},getMenuItemValues:function(){return e.menuItemValues},getMenuItemTextAtIndex:function(t){return e.menu.getPrimaryTextAtIndex(t)},isTypeaheadInProgress:function(){return e.menu.typeaheadInProgress},typeaheadMatchItem:function(t,n){return e.menu.typeaheadMatchItem(t,n)}}},t.prototype.getCommonAdapterMethods=function(){var e=this;return{addClass:function(t){e.root.classList.add(t)},removeClass:function(t){e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},setRippleCenter:function(t){e.lineRipple&&e.lineRipple.setRippleCenter(t)},activateBottomLine:function(){e.lineRipple&&e.lineRipple.activate()},deactivateBottomLine:function(){e.lineRipple&&e.lineRipple.deactivate()},notifyChange:function(t){e.hiddenInput&&(e.hiddenInput.value=t);var n=e.selectedIndex;e.emit(m.CHANGE_EVENT,{value:t,index:n},!0)}}},t.prototype.getOutlineAdapterMethods=function(){var e=this;return{hasOutline:function(){return Boolean(e.outline)},notchOutline:function(t){e.outline&&e.outline.notch(t)},closeOutline:function(){e.outline&&e.outline.closeNotch()}}},t.prototype.getLabelAdapterMethods=function(){var e=this;return{hasLabel:function(){return!!e.label},floatLabel:function(t){e.label&&e.label.float(t)},getLabelWidth:function(){return e.label?e.label.getWidth():0},setLabelRequired:function(t){e.label&&e.label.setRequired(t)}}},t.prototype.getNormalizedXCoordinate=function(e){var t=e.target.getBoundingClientRect();return(this.isTouchEvent(e)?e.touches[0].clientX:e.clientX)-t.left},t.prototype.isTouchEvent=function(e){return Boolean(e.touches)},t.prototype.getFoundationMap=function(){return{helperText:this.helperText?this.helperText.foundationForSelect:void 0,leadingIcon:this.leadingIcon?this.leadingIcon.foundationForSelect:void 0}},t}(i.O)},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),i=n(23),o=n(111),a=n(82),l=n(3),s=l.createComponent((function(e,t){const{outlined:n,...i}=e,o=l.useClassNames(e,["mdc-card",{"mdc-card--outlined":n}]);return r.jsx(l.Tag,{...i,ref:t,className:o})})),u=l.createComponent((function(e,t){const{square:n,sixteenByNine:i,...o}=e,a=l.useClassNames(e,["mdc-card__media",{"mdc-card__media--square":n,"mdc-card__media--16-9":i}]);return r.jsx(l.Tag,{tag:"section",...o,ref:t,className:a})})),c=l.createComponent((function(e,t){const n=l.useClassNames(e,["mdc-card__media-content"]);return r.jsx(l.Tag,{...e,ref:t,className:n})})),d=i.withRipple({surface:!1})(l.createComponent((function(e,t){const n=l.useClassNames(e,["mdc-card__primary-action"]),{children:i,...o}=e;return r.jsxs(l.Tag,{...o,ref:t,className:n,children:[i,r.jsx("div",{className:"mdc-card__ripple"})]})}))),f=l.createComponent((function(e,t){const{fullBleed:n,...i}=e,o=l.useClassNames(e,["mdc-card__actions",{"mdc-card__actions--full-bleed":n}]);return r.jsx(l.Tag,{tag:"div",...i,ref:t,className:o})})),p=l.createComponent((function(e,t){const n=l.useClassNames(e,["mdc-card__action-buttons"]);return r.jsx(l.Tag,{...e,ref:t,className:n})})),m=l.createComponent((function(e,t){const n=l.useClassNames(e,["mdc-card__action-icons"]);return r.jsx(l.Tag,{...e,ref:t,className:n})})),h=l.createComponent((function(e,t){const n=l.useClassNames(e,["mdc-card__action","mdc-card__action--icon","mdc-icon-button--display-flex"]);return r.jsx(a.IconButton,{...e,ref:t,className:n})})),v=l.createComponent((function(e,t){const n=l.useClassNames(e,["mdc-card__action","mdc-card__action--button"]);return r.jsx(o.Button,{...e,ref:t,className:n})}));t.Card=s,t.CardActionButton=v,t.CardActionButtons=p,t.CardActionIcon=h,t.CardActionIcons=m,t.CardActions=f,t.CardMedia=u,t.CardMediaContent=c,t.CardPrimaryAction=d},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),i=n(0),o=n(23),a=n(24),l=n(112),s=n(3),u=o.withRipple({surface:!1})(s.createComponent((function(e,t){const{dense:n,raised:i,unelevated:o,outlined:a,danger:u,icon:m,label:h,trailingIcon:v,children:g,touch:_,...b}=e,y=l.useIsWrappedTouchTarget(_),E=s.useClassNames(e,["mdc-button",{"mdc-button--dense":n,"mdc-button--raised":i,"mdc-button--unelevated":o,"mdc-button--outlined":a,"mdc-button--touch":y}]);if(u){const e=b.style||{},t={"--mdc-theme-primary":"var(--mdc-theme-error)","--mdc-theme-on-primary":"var(--mdc-theme-on-error)"};b.style={...t,...e}}return r.jsxs(s.Tag,{tag:"button",...b,ref:t,className:E,children:[r.jsx(f,{}),r.jsx(c,{}),r.jsx(d,{}),!!m&&r.jsx(p,{icon:m}),r.jsxs("span",{className:"mdc-button__label",children:[h,g]}),!!v&&r.jsx(p,{icon:v})]})}))),c=i.memo((function(){return r.jsx("div",{className:"mdc-button__touch"})})),d=i.memo((function(){return r.jsx("div",{className:"mdc-button__focus-ring"})})),f=i.memo((function(){return r.jsx("div",{className:"mdc-button__ripple"})})),p=s.createMemoComponent((function(e,t){const n=s.useClassNames(e,["mdc-button__icon"]);return r.jsx(a.Icon,{...e,className:n,ref:t})}));t.Button=u},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),i=n(0),o=n(23),a=n(3),l=i.createContext(!1),s=o.withRipple({surface:!1})(a.createComponent((function(e,t){const{children:n,...i}=e,o=a.useClassNames(e,["mdc-touch-target-wrapper"]);return r.jsx(a.Tag,{tag:"div",...i,ref:t,className:o,children:r.jsx(l.Provider,{value:!0,children:n})})})));t.TouchTargetWrapper=s,t.useIsWrappedTouchTarget=e=>i.useContext(l)||e||!1},function(e){e.exports=function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+t[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+t[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+t[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+t[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+t[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+t[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+t[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+t[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+t[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+t[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+t[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+t[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+t[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+t[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+t[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,i,o,a,l,s,u=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=u;t+=64)n(c,r(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(c,o),t=0;t<16;t+=1)o[t]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),l=parseInt(a[2],16),s=parseInt(a[1],16)||0,o[14]=l,o[15]=s,n(c,o),c}function a(e){var t,r,o,a,l,s,u=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=u;t+=64)n(c,i(e.subarray(t-64,t)));for(r=(e=t-64<u?e.subarray(t-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)o[t>>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(c,o),t=0;t<16;t+=1)o[t]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),l=parseInt(a[2],16),s=parseInt(a[1],16)||0,o[14]=l,o[15]=s,n(c,o),c}function l(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function s(e){var t;for(t=0;t<e.length;t+=1)e[t]=l(e[t]);return e.join("")}function u(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function c(e,t){var n,r=e.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=e.charCodeAt(n);return t?o:i}function d(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function f(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function p(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function m(){this.reset()}return s(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i,o,a,l,s=this.byteLength,u=t(n,s),c=s;return r!==e&&(c=t(r,s)),u>c?new ArrayBuffer(0):(i=c-u,o=new ArrayBuffer(i),a=new Uint8Array(o),l=new Uint8Array(this,u,i),a.set(l),o)}}(),m.prototype.append=function(e){return this.appendBinary(u(e)),this},m.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},m.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=s(this._hash),e&&(n=p(n)),this.reset(),n},m.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},m.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},m.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},m.prototype._finish=function(e,t){var r,i,o,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,e),a=0;a<16;a+=1)e[a]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=i,e[15]=o,n(this._hash,e)},m.hash=function(e,t){return m.hashBinary(u(e),t)},m.hashBinary=function(e,t){var n=s(o(e));return t?p(n):n},m.ArrayBuffer=function(){this.reset()},m.ArrayBuffer.prototype.append=function(e){var t,r=f(this._buff.buffer,e,!0),o=r.length;for(this._length+=e.byteLength,t=64;t<=o;t+=64)n(this._hash,i(r.subarray(t-64,t)));return this._buff=t-64<o?new Uint8Array(r.buffer.slice(t-64)):new Uint8Array(0),this},m.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=s(this._hash),e&&(n=p(n)),this.reset(),n},m.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.ArrayBuffer.prototype.getState=function(){var e=m.prototype.getState.call(this);return e.buff=d(e.buff),e},m.ArrayBuffer.prototype.setState=function(e){return e.buff=c(e.buff,!0),m.prototype.setState.call(this,e)},m.ArrayBuffer.prototype.destroy=m.prototype.destroy,m.ArrayBuffer.prototype._finish=m.prototype._finish,m.ArrayBuffer.hash=function(e,t){var n=s(a(new Uint8Array(e)));return t?p(n):n},m}()},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),i=n(0),o=n(122),a=n(3),l=n(23),s=n(115);o.MDCCheckboxFoundation.prototype.installPropertyChangeHooks_=()=>{};const u=a.createComponent((function(e,t){const{renderToggle:n,id:l,toggleRootProps:u,rootEl:p,checkboxEl:m}=(e=>{const t=a.useId("checkbox",e),{renderToggle:n,toggleRootProps:r,id:l}=s.useToggleFoundation({...e,id:t}),{foundation:u,...c}=a.useFoundation({props:e,elements:{rootEl:!0,checkboxEl:!0},foundation:({rootEl:e,checkboxEl:t,getProps:n})=>new o.MDCCheckboxFoundation({addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),setNativeControlAttr:(e,n)=>t.setProp(e,n),removeNativeControlAttr:e=>t.removeProp(e),isIndeterminate:()=>!!n().indeterminate,isChecked:()=>{var e;return void 0!==n().checked?!!n().checked:!(null==(e=t.ref)||!e.checked)},hasNativeControl:()=>!!t.ref,setNativeControlDisabled:e=>t.setProp("disabled",e),forceLayout:()=>{var t;return null==(t=e.ref)?void 0:t.offsetWidth},isAttachedToDOM:()=>!0})}),{rootEl:d,checkboxEl:f}=c,p=i.useCallback((()=>{f.ref&&(f.ref.indeterminate=!!e.indeterminate),window.requestAnimationFrame((()=>{u.handleChange()}))}),[e.indeterminate,u,f.ref]);return i.useEffect((()=>{p()}),[p]),d.setProp("onAnimationEnd",(t=>{var n;null==(n=e.onAnimationEnd)||n.call(e,t),u.handleAnimationEnd()}),!0),f.setProp("onChange",(t=>{var n;null==(n=e.onChange)||n.call(e,t),p()}),!0),{foundation:u,renderToggle:n,toggleRootProps:r,id:l,...c}})(e),{children:h,className:v,label:g,style:_,indeterminate:b,inputRef:y,foundationRef:E,...x}=e;return n(r.jsxs(c,{...p.props({checked:x.checked,indeterminate:b,...u}),ref:a.mergeRefs(p.reactRef,t),children:[r.jsx("input",{...m.props({...x,className:"mdc-checkbox__native-control"}),type:"checkbox",ref:a.mergeRefs(m.reactRef,y,t),id:l}),r.jsx(f,{}),r.jsx(d,{})]}))})),c=l.withRipple({surface:!1,unbounded:!0})(i.forwardRef((function(e,t){const n=i.useContext(a.DataTableContext),o=i.useContext(a.DataTableHeadContext),{disabled:l,checked:s,indeterminate:u,...c}=e,d=a.useClassNames(e,["mdc-checkbox",{"mdc-data-table__row-checkbox":n&&!o,"mdc-data-table__header-row-checkbox":o,"mdc-checkbox--disabled":l,"mdc-checkbox--selected":s||u}]);return r.jsx(a.Tag,{...c,className:d,ref:t})}))),d=i.memo((function(){return r.jsx("div",{className:"mdc-checkbox__ripple"})})),f=i.memo((()=>r.jsxs("div",{className:"mdc-checkbox__background",children:[r.jsx("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 24 24",children:r.jsx("path",{className:"mdc-checkbox__checkmark-path",fill:"none",stroke:"white",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})}),r.jsx("div",{className:"mdc-checkbox__mixedmark"})]})));t.Checkbox=u},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),i=n(3),o=n(116);t.useToggleFoundation=function(e){const{className:t,style:n,rootProps:a,label:l,children:s,disabled:u}=e,c=e.label||e.children,d=i.useId("toggle-",e),f=c?{disabled:u}:{className:t,style:n,disabled:u,...a};return{id:d,renderToggle:e=>c?r.jsxs(o.FormField,{...a,className:t,style:n,children:[e,r.jsxs("label",{id:d+"label",htmlFor:d,children:[l,s]})]}):e,toggleRootProps:f}}},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),i=n(3),o=n(123),a=i.createComponent((function(e,t){var n;n=e,i.useFoundation({props:n,elements:{},foundation:()=>new o.MDCFormFieldFoundation({registerInteractionHandler:(e,t)=>{},deregisterInteractionHandler:(e,t)=>{},activateInputRipple:()=>{},deactivateInputRipple:()=>{}})});const{alignEnd:a,foundationRef:l,noWrap:s,spaceBetween:u,...c}=e,d=i.useClassNames(e,["mdc-form-field",{"mdc-form-field--align-end":a,"mdc-form-field--nowrap":s,"mdc-form-field--space-between":u}]);return r.jsx(i.Tag,{...c,ref:t,className:d})}));t.FormField=a},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),i=n(0),o=n(3),a=n(124),l=i.memo((function(e){const{children:t,...n}=e;return r.jsxs("div",{className:"mdc-slider__track",children:[r.jsx("div",{className:"mdc-slider__track--inactive"}),r.jsx("div",{className:"mdc-slider__track--active",children:r.jsx("div",{...n,className:"mdc-slider__track--active_fill"})}),t]})})),s=i.memo((function({tickMarks:e}){return r.jsx("div",{className:"mdc-slider__tick-marks",children:e.map(((e,t)=>r.jsx("div",{className:e.className},t)))})})),u=i.memo(i.forwardRef((function(e,t){return r.jsxs("div",{className:"mdc-slider__thumb",ref:t,children:[e.children,r.jsx("div",{className:"mdc-slider__thumb-knob"})]})}))),c=e=>{const t=Number(e);return"number"!=typeof t||isNaN(t)?void 0:t},d=o.createComponent((function(e,t){const{rootEl:n,setInputsRef:d,setThumbRef:f,tickMarks:p,trackActiveEl:m}=(e=>{const t=i.useRef([]),n=i.useRef([]),{foundation:r,...l}=o.useFoundation({props:e,elements:{rootEl:!0,trackActiveEl:!0},foundation:({rootEl:e,trackActiveEl:t,emit:n})=>new a.MDCSliderFoundation({hasClass:t=>e.hasClass(t),addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),addThumbClass:(e,t)=>{var n;null==(n=s(t))||n.classList.add(e)},removeThumbClass:(e,t)=>{var n;null==(n=s(t))||n.classList.remove(e)},getAttribute:t=>e.getProp(t),getInputValue:e=>{var t;return(null==(t=u(e))?void 0:t.value)??"1"},setInputValue:(e,t)=>{const n=u(t);return void 0!==n?n.value=e:e},getInputAttribute:(e,t)=>{const n=u(t);return n?n.getAttribute(e):null},setInputAttribute:(e,t,n)=>{var r;null==(r=u(n))||r.setAttribute(e,t)},removeInputAttribute:(e,t)=>{var n;null==(n=u(t))||n.removeAttribute(e)},focusInput:e=>{var t;null==(t=u(e))||t.focus()},isInputFocused:e=>u(e)===document.activeElement,shouldHideFocusStylesForPointerEvents:()=>!1,getThumbKnobWidth:e=>{const t=s(e);return t?t.querySelector(`.${a.cssClasses.THUMB_KNOB}`).getBoundingClientRect().width:o.emptyClientRect.width},getThumbBoundingClientRect:e=>{var t;return(null==(t=s(e))?void 0:t.getBoundingClientRect())??o.emptyClientRect},getBoundingClientRect:()=>e.ref?e.ref.getBoundingClientRect():o.emptyClientRect,getValueIndicatorContainerWidth:e=>{const t=s(e);return t?t.querySelector(`.${a.cssClasses.VALUE_INDICATOR_CONTAINER}`).getBoundingClientRect().width:o.emptyClientRect.width},isRTL:()=>!!e.ref&&"rtl"===getComputedStyle(e.ref).direction,setThumbStyleProperty:(e,t,n)=>{var r;null==(r=s(n))||r.style.setProperty(e,t)},removeThumbStyleProperty:(e,t)=>{var n;null==(n=s(t))||n.style.removeProperty(e)},setTrackActiveStyleProperty:(e,n)=>{t.setStyle(e,n)},removeTrackActiveStyleProperty:e=>{t.setStyle(e,null)},setValueIndicatorText:(e,t)=>{const n=s(t);return n&&(n.querySelector(`.${a.cssClasses.VALUE_INDICATOR_TEXT}`).textContent=String(e)),""},getValueToAriaValueTextFn:()=>null,updateTickMarks:t=>{var n,r;let i=null==(n=e.ref)?void 0:n.querySelector(`.${a.cssClasses.TICK_MARKS_CONTAINER}`);if(!i){i=document.createElement("div"),i.classList.add(a.cssClasses.TICK_MARKS_CONTAINER);const t=null==(r=e.ref)?void 0:r.querySelector(`.${a.cssClasses.TRACK}`);t&&t.appendChild(i)}if(t.length!==i.children.length){for(;i.firstChild;)i.removeChild(i.firstChild);f(t)}else p(i,t)},setPointerCapture:t=>{var n;null==(n=e.ref)||n.setPointerCapture(t)},emitChangeEvent:(e,t)=>{2===t?n("onChange",{value:e,thumb:t}):1===t&&n("onChangeValueStart",{value:e,thumb:t})},emitInputEvent:(e,t)=>{2===t?n("onInput",{value:e,thumb:t}):1===t&&n("onInputValueStart",{value:e,thumb:t})},registerEventHandler:(t,n)=>{e.addEventListener(t,n)},deregisterEventHandler:(t,n)=>{e.removeEventListener(t,n)},registerThumbEventHandler:(e,t,n)=>{var r;null==(r=s(e))||r.addEventListener(t,n)},deregisterThumbEventHandler:(e,t,n)=>{var r;null==(r=s(e))||r.removeEventListener(t,n)},registerInputEventHandler:(e,t,n)=>{var r;null==(r=u(e))||r.addEventListener(t,n)},deregisterInputEventHandler:(e,t,n)=>{var r;null==(r=u(e))||r.removeEventListener(t,n)},registerBodyEventHandler:(e,t)=>{document.body.addEventListener(e,t)},deregisterBodyEventHandler:(e,t)=>{document.body.removeEventListener(e,t)},registerWindowEventHandler:(e,t)=>{window.addEventListener(e,t)},deregisterWindowEventHandler:(e,t)=>{window.removeEventListener(e,t)}})}),s=e=>{var n,r;return e===a.Thumb.END?null==(n=t.current)?void 0:n[t.current.length-1]:null==(r=t.current)?void 0:r[0]},u=e=>{var t,r;return e===a.Thumb.END?null==(t=n.current)?void 0:t[n.current.length-1]:null==(r=n.current)?void 0:r[0]},[c,d]=i.useState([]),f=e=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n]===a.TickMark.ACTIVE?a.cssClasses.TICK_MARK_ACTIVE:a.cssClasses.TICK_MARK_INACTIVE;t.push({className:r})}d(t)},p=(e,t)=>{const n=Array.from(e.children);for(let e=0;e<n.length;e++)t[e]===a.TickMark.ACTIVE?(n[e].classList.add(a.cssClasses.TICK_MARK_ACTIVE),n[e].classList.remove(a.cssClasses.TICK_MARK_INACTIVE)):(n[e].classList.add(a.cssClasses.TICK_MARK_INACTIVE),n[e].classList.remove(a.cssClasses.TICK_MARK_ACTIVE))};return i.useEffect((()=>{r.layout()}),[r]),i.useEffect((()=>{void 0!==e.range&&(r.isRange=e.range)}),[e.range,r]),i.useEffect((()=>{let t=void 0!==e.value?Number(e.value):r.getValue();const n=r.getMin(),i=r.getMax();t<n&&(console.warn(`Attempted to set slider to ${t} which is less than min: ${n}`),t=n),t>i&&(console.warn(`Attempted to set slider to ${t} which is greater than max: ${i}`),t=i),r.setValue(t)}),[e.value,r]),i.useEffect((()=>{if(e.range){let t=void 0!==e.valueStart?Number(e.valueStart):r.getValueStart();const n=r.getMin(),i=r.getMax();t<n&&(console.warn(`Attempted to set slider to ${t} which is less than min: ${n}`),t=n),t>i&&(console.warn(`Attempted to set slider to ${t} which is greater than max: ${i}`),t=i),r.setValueStart(t)}}),[e.range,e.valueStart,r]),i.useEffect((()=>{void 0!==e.disabled&&r.setDisabled(e.disabled)}),[e.disabled,r]),i.useEffect((()=>{void 0!==e.discrete&&(r.isDiscrete=e.discrete),e.discrete&&0===r.getStep()&&r.setStep(1)}),[e.discrete,r]),i.useEffect((()=>{void 0!==e.minRange&&r.setMinRange(Number(e.minRange))}),[e.minRange,r]),i.useEffect((()=>{const t=r.hasTickMarks;void 0!==e.displayMarkers&&e.displayMarkers!==t&&(r.hasTickMarks=e.displayMarkers,r.setHasTickMarks(e.displayMarkers))}),[e.displayMarkers,r]),i.useEffect((()=>{const e=r.handleDown.bind(r);r.handleDown=t=>{e(t)}}),[r]),{setInputsRef:(e,t)=>{n.current[e]=t||void 0},setThumbRef:(e,n)=>{t.current[e]=n||void 0},tickMarks:c,...l}})(e),{children:h,disabled:v,discrete:g,displayMarkers:_,max:b=100,min:y=0,minRange:E,onChange:x,onChangeValueStart:C,onInput:T,onInputValueStart:I,range:S,step:A,value:O,valueStart:w,...N}=e,P=o.useClassNames(e,["mdc-slider",{"mdc-slider--discrete":g,"mdc-slider--tick-marks":_&&g,"mdc-slider--disabled":v,"mdc-slider--range":S}]);return _&&!g&&console.warn("The 'displayMarkers' prop on rmwc Slider will\n only work in conjunction with the 'discrete' prop"),r.jsxs(o.Tag,{className:P,tabIndex:0,tag:"div",element:n,"data-min-range":E,ref:t,children:[S&&r.jsx("input",{...N,"aria-label":"Slider start value","aria-valuemax":c(b),"aria-valuenow":w,className:"mdc-slider__input",disabled:v,max:c(b),min:c(y),name:"rangeStart",onChange:C,onInput:I,ref:e=>d(0,e),step:A,type:"range",value:w}),r.jsx("input",{"aria-label":"Slider value","aria-valuemax":c(b),"aria-valuenow":O,className:"mdc-slider__input",disabled:v,max:c(b),min:c(y),name:"rangeEnd",...N,onChange:x,onInput:T,ref:e=>d(1,e),step:A,type:"range",value:O}),r.jsx(l,{...m.props({}),children:_&&r.jsx(s,{tickMarks:p})}),S&&r.jsx(u,{ref:e=>f(0,e),children:g&&r.jsx("div",{className:"mdc-slider__value-indicator-container","aria-hidden":"true",children:r.jsx("div",{className:"mdc-slider__value-indicator",children:r.jsx("span",{className:"mdc-slider__value-indicator-text",children:w})})})}),r.jsx(u,{ref:e=>f(1,e),children:g&&r.jsx("div",{className:"mdc-slider__value-indicator-container","aria-hidden":"true",children:r.jsx("div",{className:"mdc-slider__value-indicator",children:r.jsx("span",{className:"mdc-slider__value-indicator-text",children:O})})})}),h]})}));t.Slider=d},function(e,t,n){n.d(t,{A:function(){return a}});var r=n(2),i=n(4),o=n(141),a=function(e){function t(n){return e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return o.Y},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return o.P},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),t.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},t}(i.I)},,,function(e,t,n){function r(e,t){return new Promise((function(n,r){var i=new Image;t&&(i.crossOrigin=t),i.onload=function(){n(i)},i.onerror=r,i.src=e}))}function i(e){var t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,e.width,e.height),t}function o(e,t){e=e||[],"string"==typeof(t=t||{})&&(t={type:t});try{return new Blob(e,t)}catch(i){if("TypeError"!==i.name)throw i;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}function a(e){return("undefined"!=typeof URL?URL:webkitURL).createObjectURL(e)}function l(e){return("undefined"!=typeof URL?URL:webkitURL).revokeObjectURL(e)}function s(e){return new Promise((function(t,n){var r=new FileReader,i="function"==typeof r.readAsBinaryString;r.onloadend=function(){var e=r.result||"";if(i)return t(e);t(b(e))},r.onerror=n,i?r.readAsBinaryString(e):r.readAsArrayBuffer(e)}))}function u(e,t){var n=[y(atob(e))];return t?o(n,{type:t}):o(n)}function c(e,t){return u(btoa(e),t)}function d(e){return s(e).then(btoa)}function f(e){var t=e.match(/data:([^;]+)/)[1],n=e.replace(/^[^,]+,/,"");return o([y(atob(n))],{type:t})}function p(e){return d(e).then((function(t){return"data:"+e.type+";base64,"+t}))}function m(e,t,n,o){return t=t||"image/png",r(e,n).then(i).then((function(e){return e.toDataURL(t,o)}))}function h(e,t,n){return"function"==typeof e.toBlob?new Promise((function(r){e.toBlob(r,t,n)})):Promise.resolve(f(e.toDataURL(t,n)))}function v(e,t,n,o){return t=t||"image/png",r(e,n).then(i).then((function(e){return h(e,t,o)}))}function g(e,t){return o([e],t)}function _(e){return new Promise((function(t,n){var r=new FileReader;r.onloadend=function(){var e=r.result||new ArrayBuffer(0);t(e)},r.onerror=n,r.readAsArrayBuffer(e)}))}function b(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,i=-1;++i<r;)t+=String.fromCharCode(n[i]);return t}function y(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=-1;++i<t;)r[i]=e.charCodeAt(i);return n}n.r(t),n.d(t,{arrayBufferToBinaryString:function(){return b},arrayBufferToBlob:function(){return g},base64StringToBlob:function(){return u},binaryStringToArrayBuffer:function(){return y},binaryStringToBlob:function(){return c},blobToArrayBuffer:function(){return _},blobToBase64String:function(){return d},blobToBinaryString:function(){return s},blobToDataURL:function(){return p},canvasToBlob:function(){return h},createBlob:function(){return o},createObjectURL:function(){return a},dataURLToBlob:function(){return f},imgSrcToBlob:function(){return v},imgSrcToDataURL:function(){return m},revokeObjectURL:function(){return l}})},function(e,t,n){n.r(t),n.d(t,{MDCCheckbox:function(){return h},MDCCheckboxFoundation:function(){return p},cssClasses:function(){return c},numbers:function(){return f},strings:function(){return d}});var r=n(2),i=n(62),o=n(5),a=n(53),l=n(22),s=n(27),u=n(25),c={ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",ANIM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",BACKGROUND:"mdc-checkbox__background",CHECKED:"mdc-checkbox--checked",CHECKMARK:"mdc-checkbox__checkmark",CHECKMARK_PATH:"mdc-checkbox__checkmark-path",DISABLED:"mdc-checkbox--disabled",INDETERMINATE:"mdc-checkbox--indeterminate",MIXEDMARK:"mdc-checkbox__mixedmark",NATIVE_CONTROL:"mdc-checkbox__native-control",ROOT:"mdc-checkbox",SELECTED:"mdc-checkbox--selected",UPGRADED:"mdc-checkbox--upgraded"},d={ARIA_CHECKED_ATTR:"aria-checked",ARIA_CHECKED_INDETERMINATE_VALUE:"mixed",DATA_INDETERMINATE_ATTR:"data-indeterminate",NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_INDETERMINATE:"indeterminate",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_UNCHECKED:"unchecked"},f={ANIM_END_LATCH_MS:250},p=function(e){function t(n){var i=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return i.currentCheckState=d.TRANSITION_STATE_INIT,i.currentAnimationClass="",i.animEndLatchTimer=0,i.enableAnimationEndHandler=!1,i}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return c},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return d},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},forceLayout:function(){},hasNativeControl:function(){return!1},isAttachedToDOM:function(){return!1},isChecked:function(){return!1},isIndeterminate:function(){return!1},removeClass:function(){},removeNativeControlAttr:function(){},setNativeControlAttr:function(){},setNativeControlDisabled:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.currentCheckState=this.determineCheckState(),this.updateAriaChecked(),this.adapter.addClass(c.UPGRADED)},t.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(c.DISABLED):this.adapter.removeClass(c.DISABLED)},t.prototype.handleAnimationEnd=function(){var e=this;this.enableAnimationEndHandler&&(clearTimeout(this.animEndLatchTimer),this.animEndLatchTimer=setTimeout((function(){e.adapter.removeClass(e.currentAnimationClass),e.enableAnimationEndHandler=!1}),f.ANIM_END_LATCH_MS))},t.prototype.handleChange=function(){this.transitionCheckState()},t.prototype.transitionCheckState=function(){if(this.adapter.hasNativeControl()){var e=this.currentCheckState,t=this.determineCheckState();if(e!==t){this.updateAriaChecked();var n=d.TRANSITION_STATE_UNCHECKED,r=c.SELECTED;t===n?this.adapter.removeClass(r):this.adapter.addClass(r),this.currentAnimationClass.length>0&&(clearTimeout(this.animEndLatchTimer),this.adapter.forceLayout(),this.adapter.removeClass(this.currentAnimationClass)),this.currentAnimationClass=this.getTransitionAnimationClass(e,t),this.currentCheckState=t,this.adapter.isAttachedToDOM()&&this.currentAnimationClass.length>0&&(this.adapter.addClass(this.currentAnimationClass),this.enableAnimationEndHandler=!0)}}},t.prototype.determineCheckState=function(){var e=d.TRANSITION_STATE_INDETERMINATE,t=d.TRANSITION_STATE_CHECKED,n=d.TRANSITION_STATE_UNCHECKED;return this.adapter.isIndeterminate()?e:this.adapter.isChecked()?t:n},t.prototype.getTransitionAnimationClass=function(e,n){var r=d.TRANSITION_STATE_INIT,i=d.TRANSITION_STATE_CHECKED,o=d.TRANSITION_STATE_UNCHECKED,a=t.cssClasses,l=a.ANIM_UNCHECKED_CHECKED,s=a.ANIM_UNCHECKED_INDETERMINATE,u=a.ANIM_CHECKED_UNCHECKED,c=a.ANIM_CHECKED_INDETERMINATE,f=a.ANIM_INDETERMINATE_CHECKED,p=a.ANIM_INDETERMINATE_UNCHECKED;switch(e){case r:return n===o?"":n===i?f:p;case o:return n===i?l:s;case i:return n===o?u:c;default:return n===i?f:p}},t.prototype.updateAriaChecked=function(){this.adapter.isIndeterminate()?this.adapter.setNativeControlAttr(d.ARIA_CHECKED_ATTR,d.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter.removeNativeControlAttr(d.ARIA_CHECKED_ATTR)},t}(n(4).I),m=["checked","indeterminate"],h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rippleSurface=t.createRipple(),t}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.rippleSurface},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this.getNativeControl().checked},set:function(e){this.getNativeControl().checked=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indeterminate",{get:function(){return this.getNativeControl().indeterminate},set:function(e){this.getNativeControl().indeterminate=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.getNativeControl().disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getNativeControl().value},set:function(e){this.getNativeControl().value=e},enumerable:!1,configurable:!0}),t.prototype.initialize=function(){var e=d.DATA_INDETERMINATE_ATTR;this.getNativeControl().indeterminate="true"===this.getNativeControl().getAttribute(e),this.getNativeControl().removeAttribute(e)},t.prototype.initialSyncWithDOM=function(){var e=this;this.handleChange=function(){e.foundation.handleChange()},this.handleAnimationEnd=function(){e.foundation.handleAnimationEnd()},this.getNativeControl().addEventListener("change",this.handleChange),this.listen((0,i.getCorrectEventName)(window,"animationend"),this.handleAnimationEnd),this.installPropertyChangeHooks()},t.prototype.destroy=function(){this.rippleSurface.destroy(),this.getNativeControl().removeEventListener("change",this.handleChange),this.unlisten((0,i.getCorrectEventName)(window,"animationend"),this.handleAnimationEnd),this.uninstallPropertyChangeHooks(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new p({addClass:function(t){return e.root.classList.add(t)},forceLayout:function(){return e.root.offsetWidth},hasNativeControl:function(){return!!e.getNativeControl()},isAttachedToDOM:function(){return Boolean(e.root.parentNode)},isChecked:function(){return e.checked},isIndeterminate:function(){return e.indeterminate},removeClass:function(t){e.root.classList.remove(t)},removeNativeControlAttr:function(t){e.getNativeControl().removeAttribute(t)},setNativeControlAttr:function(t,n){e.getNativeControl().setAttribute(t,n)},setNativeControlDisabled:function(t){e.getNativeControl().disabled=t}})},t.prototype.createRipple=function(){var e=this,t=(0,r.Cl)((0,r.Cl)({},s.N.createAdapter(this)),{deregisterInteractionHandler:function(t,n){e.getNativeControl().removeEventListener(t,n,(0,a.E)())},isSurfaceActive:function(){return(0,l.cK)(e.getNativeControl(),":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,n){e.getNativeControl().addEventListener(t,n,(0,a.E)())}});return new s.N(this.root,new u.E(t))},t.prototype.installPropertyChangeHooks=function(){var e,t,n=this,i=this.getNativeControl(),o=Object.getPrototypeOf(i),a=function(e){var t=Object.getOwnPropertyDescriptor(o,e);if(!v(t))return{value:void 0};var r=t.get,a={configurable:t.configurable,enumerable:t.enumerable,get:r,set:function(e){t.set.call(i,e),n.foundation.handleChange()}};Object.defineProperty(i,e,a)};try{for(var l=(0,r.Ju)(m),s=l.next();!s.done;s=l.next()){var u=a(s.value);if("object"==typeof u)return u.value}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}},t.prototype.uninstallPropertyChangeHooks=function(){var e,t,n=this.getNativeControl(),i=Object.getPrototypeOf(n);try{for(var o=(0,r.Ju)(m),a=o.next();!a.done;a=o.next()){var l=a.value,s=Object.getOwnPropertyDescriptor(i,l);if(!v(s))return;Object.defineProperty(n,l,s)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},t.prototype.getNativeControl=function(){var e=d.NATIVE_CONTROL_SELECTOR,t=this.root.querySelector(e);if(!t)throw new Error("Checkbox component requires a "+e+" element");return t},t}(o.O);function v(e){return!!e&&"function"==typeof e.set}},function(e,t,n){n.r(t),n.d(t,{MDCFormField:function(){return u},MDCFormFieldFoundation:function(){return s},cssClasses:function(){return a},strings:function(){return l}});var r=n(2),i=n(5),o=n(4),a={ROOT:"mdc-form-field"},l={LABEL_SELECTOR:".mdc-form-field > label"},s=function(e){function t(n){var i=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return i.click=function(){i.handleClick()},i}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},t.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){e.adapter.deactivateInputRipple()}))},t}(o.I),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.labelEl=function(){var e=s.strings.LABEL_SELECTOR;return this.root.querySelector(e)},t.prototype.getDefaultFoundation=function(){var e=this;return new s({activateInputRipple:function(){e.input&&e.input.ripple&&e.input.ripple.activate()},deactivateInputRipple:function(){e.input&&e.input.ripple&&e.input.ripple.deactivate()},deregisterInteractionHandler:function(t,n){var r=e.labelEl();r&&r.removeEventListener(t,n)},registerInteractionHandler:function(t,n){var r=e.labelEl();r&&r.addEventListener(t,n)}})},t}(i.O)},function(e,t,n){n.r(t),n.d(t,{MDCSlider:function(){return C},MDCSliderFoundation:function(){return E},Thumb:function(){return i},TickMark:function(){return r},attributes:function(){return m},cssClasses:function(){return f},events:function(){return h},numbers:function(){return p},strings:function(){return v}});var r,i,o,a=n(2),l=n(5),s=n(53),u=n(22),c=n(27),d=n(25),f={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_CONTAINER:"mdc-slider__value-indicator-container",VALUE_INDICATOR_TEXT:"mdc-slider__value-indicator-text"},p={STEP_SIZE:1,MIN_RANGE:0,THUMB_UPDATE_MIN_PX:5},m={ARIA_VALUETEXT:"aria-valuetext",INPUT_DISABLED:"disabled",INPUT_MIN:"min",INPUT_MAX:"max",INPUT_VALUE:"value",INPUT_STEP:"step",DATA_MIN_RANGE:"data-min-range"},h={CHANGE:"MDCSlider:change",INPUT:"MDCSlider:input"},v={VAR_VALUE_INDICATOR_CARET_LEFT:"--slider-value-indicator-caret-left",VAR_VALUE_INDICATOR_CARET_RIGHT:"--slider-value-indicator-caret-right",VAR_VALUE_INDICATOR_CARET_TRANSFORM:"--slider-value-indicator-caret-transform",VAR_VALUE_INDICATOR_CONTAINER_LEFT:"--slider-value-indicator-container-left",VAR_VALUE_INDICATOR_CONTAINER_RIGHT:"--slider-value-indicator-container-right",VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM:"--slider-value-indicator-container-transform"},g=n(96),_=n(62),b=n(4);!function(e){e[e.ACTIVE=0]="ACTIVE",e[e.INACTIVE=1]="INACTIVE"}(r||(r={})),function(e){e[e.START=1]="START",e[e.END=2]="END"}(i||(i={})),function(e){e.SLIDER_UPDATE="slider_update"}(o||(o={}));var y=void 0!==window,E=function(e){function t(n){var r=e.call(this,(0,a.Cl)((0,a.Cl)({},t.defaultAdapter),n))||this;return r.initialStylesRemoved=!1,r.isDisabled=!1,r.isDiscrete=!1,r.step=p.STEP_SIZE,r.minRange=p.MIN_RANGE,r.hasTickMarks=!1,r.isRange=!1,r.thumb=null,r.downEventClientX=null,r.startThumbKnobWidth=0,r.endThumbKnobWidth=0,r.animFrame=new g.K,r}return(0,a.C6)(t,e),Object.defineProperty(t,"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},shouldHideFocusStylesForPointerEvents:function(){return!1},getThumbKnobWidth:function(){return 0},getValueIndicatorContainerWidth: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}),t.prototype.init=function(){var e=this;this.isDisabled=this.adapter.hasClass(f.DISABLED),this.isDiscrete=this.adapter.hasClass(f.DISCRETE),this.hasTickMarks=this.adapter.hasClass(f.TICK_MARKS),this.isRange=this.adapter.hasClass(f.RANGE);var t=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(m.INPUT_MIN,this.isRange?i.START:i.END),m.INPUT_MIN),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(m.INPUT_MAX,i.END),m.INPUT_MAX),r=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(m.INPUT_VALUE,i.END),m.INPUT_VALUE),o=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(m.INPUT_VALUE,i.START),m.INPUT_VALUE):t,a=this.adapter.getInputAttribute(m.INPUT_STEP,i.END),l=a?this.convertAttributeValueToNumber(a,m.INPUT_STEP):this.step,s=this.adapter.getAttribute(m.DATA_MIN_RANGE),u=s?this.convertAttributeValueToNumber(s,m.DATA_MIN_RANGE):this.minRange;this.validateProperties({min:t,max:n,value:r,valueStart:o,step:l,minRange:u}),this.min=t,this.max=n,this.value=r,this.valueStart=o,this.step=l,this.minRange=u,this.numDecimalPlaces=x(this.step),this.valueBeforeDownEvent=r,this.valueStartBeforeDownEvent=o,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(){e.handleInputChange(i.START)},this.inputEndChangeListener=function(){e.handleInputChange(i.END)},this.inputStartFocusListener=function(){e.handleInputFocus(i.START)},this.inputEndFocusListener=function(){e.handleInputFocus(i.END)},this.inputStartBlurListener=function(){e.handleInputBlur(i.START)},this.inputEndBlurListener=function(){e.handleInputBlur(i.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},t.prototype.destroy=function(){this.deregisterEventHandlers()},t.prototype.setMin=function(e){this.min=e,this.isRange||(this.valueStart=e),this.updateUI()},t.prototype.setMax=function(e){this.max=e,this.updateUI()},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e){if(this.isRange&&e<this.valueStart+this.minRange)throw new Error("end thumb value ("+e+") must be >= start thumb value ("+this.valueStart+") + min range ("+this.minRange+")");this.updateValue(e,i.END)},t.prototype.getValueStart=function(){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");return this.valueStart},t.prototype.setValueStart=function(e){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&e>this.value-this.minRange)throw new Error("start thumb value ("+e+") must be <= end thumb value ("+this.value+") - min range ("+this.minRange+")");this.updateValue(e,i.START)},t.prototype.setStep=function(e){this.step=e,this.numDecimalPlaces=x(e),this.updateUI()},t.prototype.setMinRange=function(e){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");if(e<0)throw new Error("`minRange` must be non-negative. Current value: "+e);if(this.value-this.valueStart<e)throw new Error("start thumb value ("+this.valueStart+") and end thumb value ("+this.value+") must differ by at least "+e+".");this.minRange=e},t.prototype.setIsDiscrete=function(e){this.isDiscrete=e,this.updateValueIndicatorUI(),this.updateTickMarksUI()},t.prototype.getStep=function(){return this.step},t.prototype.getMinRange=function(){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");return this.minRange},t.prototype.setHasTickMarks=function(e){this.hasTickMarks=e,this.updateTickMarksUI()},t.prototype.getDisabled=function(){return this.isDisabled},t.prototype.setDisabled=function(e){this.isDisabled=e,e?(this.adapter.addClass(f.DISABLED),this.isRange&&this.adapter.setInputAttribute(m.INPUT_DISABLED,"",i.START),this.adapter.setInputAttribute(m.INPUT_DISABLED,"",i.END)):(this.adapter.removeClass(f.DISABLED),this.isRange&&this.adapter.removeInputAttribute(m.INPUT_DISABLED,i.START),this.adapter.removeInputAttribute(m.INPUT_DISABLED,i.END))},t.prototype.getIsRange=function(){return this.isRange},t.prototype.layout=function(e){var t=(void 0===e?{}:e).skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(i.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(i.END)),t||this.updateUI()},t.prototype.handleResize=function(){this.layout()},t.prototype.handleDown=function(e){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var t=null!=e.clientX?e.clientX:e.targetTouches[0].clientX;this.downEventClientX=t;var n=this.mapClientXOnSliderScale(t);this.thumb=this.getThumbFromDownEvent(t,n),null!==this.thumb&&(this.handleDragStart(e,n,this.thumb),this.updateValue(n,this.thumb,{emitInputEvent:!0}))}},t.prototype.handleMove=function(e){if(!this.isDisabled){e.preventDefault();var t=null!=e.clientX?e.clientX:e.targetTouches[0].clientX,n=null!=this.thumb;if(this.thumb=this.getThumbFromMoveEvent(t),null!==this.thumb){var r=this.mapClientXOnSliderScale(t);n||(this.handleDragStart(e,r,this.thumb),this.adapter.emitDragStartEvent(r,this.thumb)),this.updateValue(r,this.thumb,{emitInputEvent:!0})}}},t.prototype.handleUp=function(){var e,t;if(!this.isDisabled&&null!==this.thumb){(null===(t=(e=this.adapter).shouldHideFocusStylesForPointerEvents)||void 0===t?void 0:t.call(e))&&this.handleInputBlur(this.thumb);var n=this.thumb===i.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,r=this.thumb===i.START?this.valueStart:this.value;n!==r&&this.adapter.emitChangeEvent(r,this.thumb),this.adapter.emitDragEndEvent(r,this.thumb),this.thumb=null}},t.prototype.handleThumbMouseenter=function(){this.isDiscrete&&this.isRange&&(this.adapter.addThumbClass(f.THUMB_WITH_INDICATOR,i.START),this.adapter.addThumbClass(f.THUMB_WITH_INDICATOR,i.END))},t.prototype.handleThumbMouseleave=function(){var e,t;this.isDiscrete&&this.isRange&&(!(null===(t=(e=this.adapter).shouldHideFocusStylesForPointerEvents)||void 0===t?void 0:t.call(e))&&(this.adapter.isInputFocused(i.START)||this.adapter.isInputFocused(i.END))||this.thumb||(this.adapter.removeThumbClass(f.THUMB_WITH_INDICATOR,i.START),this.adapter.removeThumbClass(f.THUMB_WITH_INDICATOR,i.END)))},t.prototype.handleMousedownOrTouchstart=function(e){var t=this,n="mousedown"===e.type?"mousemove":"touchmove";this.adapter.registerBodyEventHandler(n,this.moveListener);var r=function(){t.handleUp(),t.adapter.deregisterBodyEventHandler(n,t.moveListener),t.adapter.deregisterEventHandler("mouseup",r),t.adapter.deregisterEventHandler("touchend",r)};this.adapter.registerBodyEventHandler("mouseup",r),this.adapter.registerBodyEventHandler("touchend",r),this.handleDown(e)},t.prototype.handlePointerdown=function(e){0===e.button&&(null!=e.pointerId&&this.adapter.setPointerCapture(e.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(e))},t.prototype.handleInputChange=function(e){var t=Number(this.adapter.getInputValue(e));e===i.START?this.setValueStart(t):this.setValue(t),this.adapter.emitChangeEvent(e===i.START?this.valueStart:this.value,e),this.adapter.emitInputEvent(e===i.START?this.valueStart:this.value,e)},t.prototype.handleInputFocus=function(e){if(this.adapter.addThumbClass(f.THUMB_FOCUSED,e),this.isDiscrete&&(this.adapter.addThumbClass(f.THUMB_WITH_INDICATOR,e),this.isRange)){var t=e===i.START?i.END:i.START;this.adapter.addThumbClass(f.THUMB_WITH_INDICATOR,t)}},t.prototype.handleInputBlur=function(e){if(this.adapter.removeThumbClass(f.THUMB_FOCUSED,e),this.isDiscrete&&(this.adapter.removeThumbClass(f.THUMB_WITH_INDICATOR,e),this.isRange)){var t=e===i.START?i.END:i.START;this.adapter.removeThumbClass(f.THUMB_WITH_INDICATOR,t)}},t.prototype.handleDragStart=function(e,t,n){var r,i;this.adapter.emitDragStartEvent(t,n),this.adapter.focusInput(n),(null===(i=(r=this.adapter).shouldHideFocusStylesForPointerEvents)||void 0===i?void 0:i.call(r))&&this.handleInputFocus(n),e.preventDefault()},t.prototype.getThumbFromDownEvent=function(e,t){if(!this.isRange)return i.END;var n=this.adapter.getThumbBoundingClientRect(i.START),r=this.adapter.getThumbBoundingClientRect(i.END),o=e>=n.left&&e<=n.right,a=e>=r.left&&e<=r.right;return o&&a?null:o?i.START:a?i.END:t<this.valueStart?i.START:t>this.value?i.END:t-this.valueStart<=this.value-t?i.START:i.END},t.prototype.getThumbFromMoveEvent=function(e){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-e)<p.THUMB_UPDATE_MIN_PX?this.thumb:e<this.downEventClientX?this.adapter.isRTL()?i.END:i.START:this.adapter.isRTL()?i.START:i.END},t.prototype.updateUI=function(e){e?this.updateThumbAndInputAttributes(e):(this.updateThumbAndInputAttributes(i.START),this.updateThumbAndInputAttributes(i.END)),this.updateThumbAndTrackUI(e),this.updateValueIndicatorUI(e),this.updateTickMarksUI()},t.prototype.updateThumbAndInputAttributes=function(e){if(e){var t=this.isRange&&e===i.START?this.valueStart:this.value,n=String(t);this.adapter.setInputAttribute(m.INPUT_VALUE,n,e),this.isRange&&e===i.START?this.adapter.setInputAttribute(m.INPUT_MIN,String(t+this.minRange),i.END):this.isRange&&e===i.END&&this.adapter.setInputAttribute(m.INPUT_MAX,String(t-this.minRange),i.START),this.adapter.getInputValue(e)!==n&&this.adapter.setInputValue(n,e);var r=this.adapter.getValueToAriaValueTextFn();r&&this.adapter.setInputAttribute(m.ARIA_VALUETEXT,r(t,e),e)}},t.prototype.updateValueIndicatorUI=function(e){if(this.isDiscrete){var t=this.isRange&&e===i.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(t,e===i.START?i.START:i.END),!e&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,i.START)}},t.prototype.updateTickMarksUI=function(){if(this.isDiscrete&&this.hasTickMarks){var e=(this.valueStart-this.min)/this.step,t=(this.value-this.valueStart)/this.step+1,n=(this.max-this.value)/this.step,i=Array.from({length:e}).fill(r.INACTIVE),o=Array.from({length:t}).fill(r.ACTIVE),a=Array.from({length:n}).fill(r.INACTIVE);this.adapter.updateTickMarks(i.concat(o).concat(a))}},t.prototype.mapClientXOnSliderScale=function(e){var t=(e-this.rect.left)/this.rect.width;this.adapter.isRTL()&&(t=1-t);var n=this.min+t*(this.max-this.min);return n===this.max||n===this.min?n:Number(this.quantize(n).toFixed(this.numDecimalPlaces))},t.prototype.quantize=function(e){var t=Math.round((e-this.min)/this.step);return this.min+t*this.step},t.prototype.updateValue=function(e,t,n){var r=(void 0===n?{}:n).emitInputEvent;if(e=this.clampValue(e,t),this.isRange&&t===i.START){if(this.valueStart===e)return;this.valueStart=e}else{if(this.value===e)return;this.value=e}this.updateUI(t),r&&this.adapter.emitInputEvent(t===i.START?this.valueStart:this.value,t)},t.prototype.clampValue=function(e,t){return e=Math.min(Math.max(e,this.min),this.max),this.isRange&&t===i.START&&e>this.value-this.minRange?this.value-this.minRange:this.isRange&&t===i.END&&e<this.valueStart+this.minRange?this.valueStart+this.minRange:e},t.prototype.updateThumbAndTrackUI=function(e){var t=this,n=this.max,r=this.min,a=(this.value-this.valueStart)/(n-r),l=a*this.rect.width,s=this.adapter.isRTL(),u=y?(0,_.getCorrectPropertyName)(window,"transform"):"transform";if(this.isRange){var c=this.adapter.isRTL()?(n-this.value)/(n-r)*this.rect.width:(this.valueStart-r)/(n-r)*this.rect.width,d=c+l;this.animFrame.request(o.SLIDER_UPDATE,(function(){!s&&e===i.START||s&&e!==i.START?(t.adapter.setTrackActiveStyleProperty("transform-origin","right"),t.adapter.setTrackActiveStyleProperty("left","auto"),t.adapter.setTrackActiveStyleProperty("right",t.rect.width-d+"px")):(t.adapter.setTrackActiveStyleProperty("transform-origin","left"),t.adapter.setTrackActiveStyleProperty("right","auto"),t.adapter.setTrackActiveStyleProperty("left",c+"px")),t.adapter.setTrackActiveStyleProperty(u,"scaleX("+a+")");var n=s?d:c,r=t.adapter.isRTL()?c:d;e!==i.START&&e&&t.initialStylesRemoved||(t.adapter.setThumbStyleProperty(u,"translateX("+n+"px)",i.START),t.alignValueIndicator(i.START,n)),e!==i.END&&e&&t.initialStylesRemoved||(t.adapter.setThumbStyleProperty(u,"translateX("+r+"px)",i.END),t.alignValueIndicator(i.END,r)),t.removeInitialStyles(s),t.updateOverlappingThumbsUI(n,r,e)}))}else this.animFrame.request(o.SLIDER_UPDATE,(function(){var e=s?t.rect.width-l:l;t.adapter.setThumbStyleProperty(u,"translateX("+e+"px)",i.END),t.alignValueIndicator(i.END,e),t.adapter.setTrackActiveStyleProperty(u,"scaleX("+a+")"),t.removeInitialStyles(s)}))},t.prototype.alignValueIndicator=function(e,t){if(this.isDiscrete){var n=this.adapter.getThumbBoundingClientRect(e).width/2,r=this.adapter.getValueIndicatorContainerWidth(e),i=this.adapter.getBoundingClientRect().width;r/2>t+n?(this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_LEFT,n+"px",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"0",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",e)):r/2>i-t+n?(this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_LEFT,"auto",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_RIGHT,n+"px",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(50%)",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"auto",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"0",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",e)):(this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_LEFT,"50%",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"50%",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"translateX(-50%)",e))}},t.prototype.removeInitialStyles=function(e){if(!this.initialStylesRemoved){var t=e?"right":"left";this.adapter.removeThumbStyleProperty(t,i.END),this.isRange&&this.adapter.removeThumbStyleProperty(t,i.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},t.prototype.resetTrackAndThumbAnimation=function(){var e=this;if(this.isDiscrete){var t=y?(0,_.getCorrectPropertyName)(window,"transition"):"transition",n="none 0s ease 0s";this.adapter.setThumbStyleProperty(t,n,i.END),this.isRange&&this.adapter.setThumbStyleProperty(t,n,i.START),this.adapter.setTrackActiveStyleProperty(t,n),requestAnimationFrame((function(){e.adapter.removeThumbStyleProperty(t,i.END),e.adapter.removeTrackActiveStyleProperty(t),e.isRange&&e.adapter.removeThumbStyleProperty(t,i.START)}))}},t.prototype.updateOverlappingThumbsUI=function(e,t,n){var r=!1;if(this.adapter.isRTL()){var o=e-this.startThumbKnobWidth/2;r=t+this.endThumbKnobWidth/2>=o}else{r=e+this.startThumbKnobWidth/2>=t-this.endThumbKnobWidth/2}r?(this.adapter.addThumbClass(f.THUMB_TOP,n||i.END),this.adapter.removeThumbClass(f.THUMB_TOP,n===i.START?i.END:i.START)):(this.adapter.removeThumbClass(f.THUMB_TOP,i.START),this.adapter.removeThumbClass(f.THUMB_TOP,i.END))},t.prototype.convertAttributeValueToNumber=function(e,t){if(null===e)throw new Error("MDCSliderFoundation: `"+t+"` must be non-null.");var n=Number(e);if(isNaN(n))throw new Error("MDCSliderFoundation: `"+t+"` value is `"+e+"`, but must be a number.");return n},t.prototype.validateProperties=function(e){var t=e.min,n=e.max,r=e.value,i=e.valueStart,o=e.step,a=e.minRange;if(t>=n)throw new Error("MDCSliderFoundation: min must be strictly less than max. Current: [min: "+t+", max: "+n+"]");if(o<=0)throw new Error("MDCSliderFoundation: step must be a positive number. Current step: "+o);if(this.isRange){if(r<t||r>n||i<t||i>n)throw new Error("MDCSliderFoundation: values must be in [min, max] range. Current values: [start value: "+i+", end value: "+r+", min: "+t+", max: "+n+"]");if(i>r)throw new Error("MDCSliderFoundation: start value must be <= end value. Current values: [start value: "+i+", end value: "+r+"]");if(a<0)throw new Error("MDCSliderFoundation: minimum range must be non-negative. Current min range: "+a);if(r-i<a)throw new Error("MDCSliderFoundation: start value and end value must differ by at least "+a+". Current values: [start value: "+i+", end value: "+r+"]");var l=(i-t)/o,s=(r-t)/o;if(!Number.isInteger(parseFloat(l.toFixed(6)))||!Number.isInteger(parseFloat(s.toFixed(6))))throw new Error("MDCSliderFoundation: Slider values must be valid based on the step value ("+o+"). Current values: [start value: "+i+", end value: "+r+", min: "+t+"]")}else{if(r<t||r>n)throw new Error("MDCSliderFoundation: value must be in [min, max] range. Current values: [value: "+r+", min: "+t+", max: "+n+"]");s=(r-t)/o;if(!Number.isInteger(parseFloat(s.toFixed(6))))throw new Error("MDCSliderFoundation: Slider value must be valid based on the step value ("+o+"). Current value: "+r)}},t.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),t.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(i.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(i.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(i.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(i.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(i.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(i.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(i.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(i.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(i.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(i.END,"blur",this.inputEndBlurListener)},t.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),t.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(i.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(i.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(i.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(i.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(i.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(i.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(i.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(i.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(i.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(i.END,"blur",this.inputEndBlurListener)},t.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},t.SUPPORTS_POINTER_EVENTS=y&&Boolean(window.PointerEvent)&&!(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document),t}(b.I);function x(e){var t=/(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(e));if(!t)return 0;var n=t[1]||"",r=t[2]||0;return Math.max(0,("0"===n?0:n.length)-Number(r))}
|
|
490
|
+
var r=function(){function e(){this.rafIDs=new Map}return e.prototype.request=function(e,t){var n=this;this.cancel(e);var r=requestAnimationFrame((function(r){n.rafIDs.delete(e),t(r)}));this.rafIDs.set(e,r)},e.prototype.cancel=function(e){var t=this.rafIDs.get(e);t&&(cancelAnimationFrame(t),this.rafIDs.delete(e))},e.prototype.cancelAll=function(){var e=this;this.rafIDs.forEach((function(t,n){e.cancel(n)}))},e.prototype.getQueue=function(){var e=[];return this.rafIDs.forEach((function(t,n){e.push(n)})),e},e}()},function(e,t,n){n.r(t),n.d(t,{MDCCircularProgress:function(){return u},MDCCircularProgressFoundation:function(){return s},cssClasses:function(){return a},strings:function(){return l}});var r=n(2),i=n(5),o=n(4),a={INDETERMINATE_CLASS:"mdc-circular-progress--indeterminate",CLOSED_CLASS:"mdc-circular-progress--closed"},l={ARIA_HIDDEN:"aria-hidden",ARIA_VALUENOW:"aria-valuenow",DETERMINATE_CIRCLE_SELECTOR:".mdc-circular-progress__determinate-circle",RADIUS:"r",STROKE_DASHOFFSET:"stroke-dashoffset"},s=function(e){function t(n){return e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},getDeterminateCircleAttribute:function(){return null},hasClass:function(){return!1},removeClass:function(){},removeAttribute:function(){},setAttribute:function(){},setDeterminateCircleAttribute:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.closed=this.adapter.hasClass(a.CLOSED_CLASS),this.determinate=!this.adapter.hasClass(a.INDETERMINATE_CLASS),this.progress=0,this.determinate&&this.adapter.setAttribute(l.ARIA_VALUENOW,this.progress.toString()),this.radius=Number(this.adapter.getDeterminateCircleAttribute(l.RADIUS))},t.prototype.setDeterminate=function(e){this.determinate=e,this.determinate?(this.adapter.removeClass(a.INDETERMINATE_CLASS),this.setProgress(this.progress)):(this.adapter.addClass(a.INDETERMINATE_CLASS),this.adapter.removeAttribute(l.ARIA_VALUENOW))},t.prototype.isDeterminate=function(){return this.determinate},t.prototype.setProgress=function(e){if(this.progress=e,this.determinate){var t=(1-this.progress)*(2*Math.PI*this.radius);this.adapter.setDeterminateCircleAttribute(l.STROKE_DASHOFFSET,""+t),this.adapter.setAttribute(l.ARIA_VALUENOW,this.progress.toString())}},t.prototype.getProgress=function(){return this.progress},t.prototype.open=function(){this.closed=!1,this.adapter.removeClass(a.CLOSED_CLASS),this.adapter.removeAttribute(l.ARIA_HIDDEN)},t.prototype.close=function(){this.closed=!0,this.adapter.addClass(a.CLOSED_CLASS),this.adapter.setAttribute(l.ARIA_HIDDEN,"true")},t.prototype.isClosed=function(){return this.closed},t}(o.I),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.initialize=function(){this.determinateCircle=this.root.querySelector(s.strings.DETERMINATE_CIRCLE_SELECTOR)},t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"determinate",{set:function(e){this.foundation.setDeterminate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{set:function(e){this.foundation.setProgress(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClosed",{get:function(){return this.foundation.isClosed()},enumerable:!1,configurable:!0}),t.prototype.open=function(){this.foundation.open()},t.prototype.close=function(){this.foundation.close()},t.prototype.getDefaultFoundation=function(){var e=this;return new s({addClass:function(t){e.root.classList.add(t)},getDeterminateCircleAttribute:function(t){return e.determinateCircle.getAttribute(t)},hasClass:function(t){return e.root.classList.contains(t)},removeClass:function(t){e.root.classList.remove(t)},removeAttribute:function(t){e.root.removeAttribute(t)},setAttribute:function(t,n){e.root.setAttribute(t,n)},setDeterminateCircleAttribute:function(t,n){e.determinateCircle.setAttribute(t,n)}})},t}(i.O)},function(e,t,n){n.r(t),n.d(t,{MDCRipple:function(){return i.N},MDCRippleFoundation:function(){return a.E},cssClasses:function(){return o.Y7},numbers:function(){return o.nL},strings:function(){return o.P$},util:function(){return r}});var r=n(52),i=n(27),o=n(63),a=n(25)},function(e,t,n){function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.r(t),n.d(t,{CSSTransition:function(){return f},ReplaceTransition:function(){return T},SwitchTransition:function(){return P},Transition:function(){return s.default},TransitionGroup:function(){return y},config:function(){return L.A}});var i=n(78),o=n(79);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var l=n(0),s=n(77),u=n(81),c=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}(0,o.A)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&(0,u.F)(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&c(e,r),i&&c(e,i),o&&c(e,o)},n.render=function(){var e=this.props,t=(e.classNames,(0,i.A)(e,["classNames"]));return l.createElement(s.default,r({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l.Component);d.defaultProps={classNames:""},d.propTypes={};var f=d,p=n(7);var m=n(80);function h(e,t){var n=Object.create(null);return e&&l.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,l.isValidElement)(e)?t(e):e}(e)})),n}function v(e,t,n){return null!=n[t]?n[t]:e.props[t]}function g(e,t,n){var r=h(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var l={};for(var s in t){if(i[s])for(r=0;r<i[s].length;r++){var u=i[s][r];l[i[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<o.length;r++)l[o[r]]=n(o[r]);return l}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if((0,l.isValidElement)(a)){var s=o in t,u=o in r,c=t[o],d=(0,l.isValidElement)(c)&&!c.props.in;!u||s&&!d?u||!s||d?u&&s&&(0,l.isValidElement)(c)&&(i[o]=(0,l.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:v(a,"exit",e),enter:v(a,"enter",e)})):i[o]=(0,l.cloneElement)(a,{in:!1}):i[o]=(0,l.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:v(a,"exit",e),enter:v(a,"enter",e)})}})),i}var _=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},b=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,o.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,h(n.children,(function(e){return(0,l.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:v(e,"appear",n),enter:v(e,"enter",n),exit:v(e,"exit",n)})}))):g(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=h(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=r({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,i.A)(e,["component","childFactory"]),o=this.state.contextValue,a=_(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?l.createElement(m.A.Provider,{value:o},a):l.createElement(m.A.Provider,{value:o},l.createElement(t,r,a))},t}(l.Component);b.propTypes={},b.defaultProps={component:"div",childFactory:function(e){return e}};var y=b,E=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}(0,o.A)(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,i=this.props.children,o=l.Children.toArray(i)[t];if(o.props[e]&&(r=o.props)[e].apply(r,n),this.props[e]){var a=o.props.nodeRef?void 0:p.findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=(0,i.A)(e,["children","in"]),o=l.Children.toArray(t),a=o[0],s=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,l.createElement(y,r,n?l.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):l.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(l.Component);E.propTypes={};var x,C,T=E;var I="out-in",S="in-out",A=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},O=((x={})[I]=function(e){var t=e.current,n=e.changeState;return l.cloneElement(t,{in:!1,onExited:A(t,"onExited",(function(){n(s.ENTERING,null)}))})},x[S]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,l.cloneElement(r,{in:!0,onEntered:A(r,"onEntered",(function(){n(s.ENTERING)}))})]},x),w=((C={})[I]=function(e){var t=e.children,n=e.changeState;return l.cloneElement(t,{in:!0,onEntered:A(t,"onEntered",(function(){n(s.ENTERED,l.cloneElement(t,{in:!0}))}))})},C[S]=function(e){var t=e.current,n=e.children,r=e.changeState;return[l.cloneElement(t,{in:!1,onExited:A(t,"onExited",(function(){r(s.ENTERED,l.cloneElement(n,{in:!0}))}))}),l.cloneElement(n,{in:!0})]},C),N=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:s.ENTERED,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}(0,o.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===s.ENTERING&&e.mode===S?{status:s.ENTERING}:!t.current||(n=t.current,r=e.children,n===r||l.isValidElement(n)&&l.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:l.cloneElement(e.children,{in:!0})}:{status:s.EXITING};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,i=this.state,o=i.status,a=i.current,u={children:n,current:a,changeState:this.changeState,status:o};switch(o){case s.ENTERING:e=w[r](u);break;case s.EXITING:e=O[r](u);break;case s.ENTERED:e=a}return l.createElement(m.A.Provider,{value:{isMounting:!this.appeared}},e)},t}(l.Component);N.propTypes={},N.defaultProps={mode:I};var P=N,L=n(100)},function(e,t){t.A={disabled:!1}},function(e,t,n){n.r(t),n.d(t,{MDCIconButtonToggle:function(){return d},MDCIconButtonToggleFoundation:function(){return u},cssClasses:function(){return l},strings:function(){return s}});var r=n(2),i=n(5),o=n(27),a=n(4),l={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},s={ARIA_LABEL:"aria-label",ARIA_PRESSED:"aria-pressed",DATA_ARIA_LABEL_OFF:"data-aria-label-off",DATA_ARIA_LABEL_ON:"data-aria-label-on",CHANGE_EVENT:"MDCIconButtonToggle:change"},u=function(e){function t(n){var i=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return i.hasToggledAriaLabel=!1,i}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},hasClass:function(){return!1},notifyChange:function(){},removeClass:function(){},getAttr:function(){return null},setAttr:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this.adapter.getAttr(s.DATA_ARIA_LABEL_ON),t=this.adapter.getAttr(s.DATA_ARIA_LABEL_OFF);if(e&&t){if(null!==this.adapter.getAttr(s.ARIA_PRESSED))throw new Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");this.hasToggledAriaLabel=!0}else this.adapter.setAttr(s.ARIA_PRESSED,String(this.isOn()))},t.prototype.handleClick=function(){this.toggle(),this.adapter.notifyChange({isOn:this.isOn()})},t.prototype.isOn=function(){return this.adapter.hasClass(l.ICON_BUTTON_ON)},t.prototype.toggle=function(e){if(void 0===e&&(e=!this.isOn()),e?this.adapter.addClass(l.ICON_BUTTON_ON):this.adapter.removeClass(l.ICON_BUTTON_ON),this.hasToggledAriaLabel){var t=e?this.adapter.getAttr(s.DATA_ARIA_LABEL_ON):this.adapter.getAttr(s.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(s.ARIA_LABEL,t||"")}else this.adapter.setAttr(s.ARIA_PRESSED,""+e)},t}(a.I),c=u.strings,d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rippleComponent=t.createRipple(),t}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){var e=this;this.handleClick=function(){e.foundation.handleClick()},this.listen("click",this.handleClick)},t.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new u({addClass:function(t){return e.root.classList.add(t)},hasClass:function(t){return e.root.classList.contains(t)},notifyChange:function(t){e.emit(c.CHANGE_EVENT,t)},removeClass:function(t){return e.root.classList.remove(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)}})},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.rippleComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"on",{get:function(){return this.foundation.isOn()},set:function(e){this.foundation.toggle(e)},enumerable:!1,configurable:!0}),t.prototype.createRipple=function(){var e=new o.N(this.root);return e.unbounded=!0,e},t}(i.O)},function(e,t,n){n.r(t),n.d(t,{MDCList:function(){return r.f},MDCListFoundation:function(){return o.Y},cssClasses:function(){return i.Y7},deprecatedClassNameMap:function(){return i.PY},evolutionAttribute:function(){return i.iP},evolutionClassNameMap:function(){return i.$z},numbers:function(){return i.nL},strings:function(){return i.P$}});var r=n(91),i=n(51),o=n(74)},function(e,t,n){n.r(t),n.d(t,{Corner:function(){return i.OK},CornerBit:function(){return i.Jv},MDCMenuSurface:function(){return r.X},MDCMenuSurfaceFoundation:function(){return o.O},cssClasses:function(){return i.Y7},numbers:function(){return i.nL},strings:function(){return i.P$}});var r=n(92),i=n(50),o=n(54)},function(e,t,n){n.r(t),n.d(t,{AnimationFrame:function(){return i.K},getCorrectEventName:function(){return r.getCorrectEventName},getCorrectPropertyName:function(){return r.getCorrectPropertyName},util:function(){return r}});var r=n(62),i=n(96)},function(e,t,n){n.r(t),n.d(t,{Corner:function(){return r.OK},DefaultFocusState:function(){return o.hf},MDCMenu:function(){return i.C},MDCMenuFoundation:function(){return a.d},cssClasses:function(){return o.Y7},numbers:function(){return o.nL},strings:function(){return o.P$}});var r=n(50),i=n(93),o=n(55),a=n(94)},function(e,t,n){n.r(t),n.d(t,{MDCFloatingLabel:function(){return r.$},MDCFloatingLabelFoundation:function(){return o.K},cssClasses:function(){return i.Y}});var r=n(69),i=n(87),o=n(70)},function(e,t,n){n.r(t),n.d(t,{MDCLineRipple:function(){return r.l},MDCLineRippleFoundation:function(){return o.C},cssClasses:function(){return i.Y}});var r=n(71),i=n(89),o=n(88)},function(e,t,n){n.r(t),n.d(t,{MDCNotchedOutline:function(){return r.i},MDCNotchedOutlineFoundation:function(){return o.z},cssClasses:function(){return i.Y7},numbers:function(){return i.nL},strings:function(){return i.P$}});var r=n(72),i=n(73),o=n(90)},function(e,t,n){n.r(t),n.d(t,{MDCSelect:function(){return A},MDCSelectFoundation:function(){return _},MDCSelectHelperText:function(){return x},MDCSelectHelperTextFoundation:function(){return E},MDCSelectIcon:function(){return S},MDCSelectIconFoundation:function(){return I},cssClasses:function(){return p},helperTextCssClasses:function(){return y},helperTextStrings:function(){return b},iconStrings:function(){return C},numbers:function(){return h},strings:function(){return m}});var r=n(2),i=n(5),o=n(69),a=n(71),l=n(50),s=n(93),u=n(55),c=n(72),d=n(27),f=n(25),p={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},m={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},h={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},v=n(4),g=n(95),_=function(e){function t(n,i){void 0===i&&(i={});var o=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return o.disabled=!1,o.isMenuOpen=!1,o.useDefaultValidation=!0,o.customValidity=!0,o.lastSelectedIndex=h.UNSET_INDEX,o.clickDebounceTimeout=0,o.recentlyClicked=!1,o.leadingIcon=i.leadingIcon,o.helperText=i.helperText,o}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return p},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return h},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return-1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectAnchorFocused:function(){return!1},getSelectAnchorAttr:function(){return""},setSelectAnchorAttr:function(){},removeSelectAnchorAttr:function(){},addMenuClass:function(){},removeMenuClass:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},isTypeaheadInProgress:function(){return!1},typeaheadMatchItem:function(){return-1}}},enumerable:!1,configurable:!0}),t.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},t.prototype.setSelectedIndex=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),e>=this.adapter.getMenuItemCount()||(e===h.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(e).trim()),this.adapter.setSelectedIndex(e),t&&this.adapter.closeMenu(),n||this.lastSelectedIndex===e||this.handleChange(),this.lastSelectedIndex=e)},t.prototype.setValue=function(e,t){void 0===t&&(t=!1);var n=this.adapter.getMenuItemValues().indexOf(e);this.setSelectedIndex(n,!1,t)},t.prototype.getValue=function(){var e=this.adapter.getSelectedIndex(),t=this.adapter.getMenuItemValues();return e!==h.UNSET_INDEX?t[e]:""},t.prototype.getDisabled=function(){return this.disabled},t.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(p.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(p.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},t.prototype.openMenu=function(){this.adapter.addClass(p.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},t.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},t.prototype.layout=function(){if(this.adapter.hasLabel()){var e=this.getValue().length>0,t=this.adapter.hasClass(p.FOCUSED),n=e||t,r=this.adapter.hasClass(p.REQUIRED);this.notchOutline(n),this.adapter.floatLabel(n),this.adapter.setLabelRequired(r)}},t.prototype.layoutOptions=function(){var e=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(e,!1,!0)},t.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var e=this.getSelectedIndex(),t=e>=0?e:0;this.adapter.focusMenuItemAtIndex(t)}},t.prototype.handleMenuClosing=function(){this.adapter.setSelectAnchorAttr("aria-expanded","false")},t.prototype.handleMenuClosed=function(){this.adapter.removeClass(p.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},t.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(p.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},t.prototype.handleFocus=function(){this.adapter.addClass(p.FOCUSED),this.layout(),this.adapter.activateBottomLine()},t.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},t.prototype.handleClick=function(e){this.disabled||this.recentlyClicked||(this.setClickDebounceTimeout(),this.isMenuOpen?this.adapter.closeMenu():(this.adapter.setRippleCenter(e),this.openMenu()))},t.prototype.handleKeydown=function(e){if(!this.isMenuOpen&&this.adapter.hasClass(p.FOCUSED)){var t=(0,g.l5)(e)===g._.ENTER,n=(0,g.l5)(e)===g._.SPACEBAR,r=(0,g.l5)(e)===g._.ARROW_UP,i=(0,g.l5)(e)===g._.ARROW_DOWN;if(!(e.ctrlKey||e.metaKey)&&(!n&&e.key&&1===e.key.length||n&&this.adapter.isTypeaheadInProgress())){var o=n?" ":e.key,a=this.adapter.typeaheadMatchItem(o,this.getSelectedIndex());return a>=0&&this.setSelectedIndex(a),void e.preventDefault()}(t||n||r||i)&&(this.openMenu(),e.preventDefault())}},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()){var t=this.adapter.hasClass(p.FOCUSED);if(e){var n=h.LABEL_SCALE,r=this.adapter.getLabelWidth()*n;this.adapter.notchOutline(r)}else t||this.adapter.closeOutline()}},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},t.prototype.getUseDefaultValidation=function(){return this.useDefaultValidation},t.prototype.setUseDefaultValidation=function(e){this.useDefaultValidation=e},t.prototype.setValid=function(e){this.useDefaultValidation||(this.customValidity=e),this.adapter.setSelectAnchorAttr("aria-invalid",(!e).toString()),e?(this.adapter.removeClass(p.INVALID),this.adapter.removeMenuClass(p.MENU_INVALID)):(this.adapter.addClass(p.INVALID),this.adapter.addMenuClass(p.MENU_INVALID)),this.syncHelperTextValidity(e)},t.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(p.REQUIRED)&&!this.adapter.hasClass(p.DISABLED)?this.getSelectedIndex()!==h.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},t.prototype.setRequired=function(e){e?this.adapter.addClass(p.REQUIRED):this.adapter.removeClass(p.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",e.toString()),this.adapter.setLabelRequired(e)},t.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},t.prototype.init=function(){var e=this.adapter.getAnchorElement();e&&(this.adapter.setMenuAnchorElement(e),this.adapter.setMenuAnchorCorner(l.OK.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(p.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(p.INVALID)),this.layout(),this.layoutOptions()},t.prototype.blur=function(){this.adapter.removeClass(p.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(p.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.syncHelperTextValidity=function(e){if(this.helperText){this.helperText.setValidity(e);var t=this.helperText.isVisible(),n=this.helperText.getId();t&&n?this.adapter.setSelectAnchorAttr(m.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(m.ARIA_DESCRIBEDBY)}},t.prototype.setClickDebounceTimeout=function(){var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout((function(){e.recentlyClicked=!1}),h.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},t}(v.I),b={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},y={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},E=function(e){function t(n){return e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return y},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return b},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},getAttr:function(){return null},removeAttr:function(){},setContent:function(){}}},enumerable:!1,configurable:!0}),t.prototype.getId=function(){return this.adapter.getAttr("id")},t.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(b.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.setValidation=function(e){e?this.adapter.addClass(y.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(y.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidationMsgPersistent=function(e){e?this.adapter.addClass(y.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(y.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.getIsValidation=function(){return this.adapter.hasClass(y.HELPER_TEXT_VALIDATION_MSG)},t.prototype.getIsValidationMsgPersistent=function(){return this.adapter.hasClass(y.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.setValidity=function(e){if(this.adapter.hasClass(y.HELPER_TEXT_VALIDATION_MSG)){var t=this.adapter.hasClass(y.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!e||t)return this.showToScreenReader(),void(e?this.adapter.removeAttr(b.ROLE):this.adapter.setAttr(b.ROLE,"alert"));this.adapter.removeAttr(b.ROLE),this.hide()}},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(b.ARIA_HIDDEN)},t.prototype.hide=function(){this.adapter.setAttr(b.ARIA_HIDDEN,"true")},t}(v.I),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new E({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}})},t}(i.O),C={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},T=["click","keydown"],I=function(e){function t(n){var i=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return i.savedTabIndex=null,i.interactionHandler=function(e){i.handleInteraction(e)},i}return(0,r.C6)(t,e),Object.defineProperty(t,"strings",{get:function(){return C},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e,t;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var n=(0,r.Ju)(T),i=n.next();!i.done;i=n.next()){var o=i.value;this.adapter.registerInteractionHandler(o,this.interactionHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.destroy=function(){var e,t;try{for(var n=(0,r.Ju)(T),i=n.next();!i.done;i=n.next()){var o=i.value;this.adapter.deregisterInteractionHandler(o,this.interactionHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.setDisabled=function(e){this.savedTabIndex&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",C.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&this.adapter.notifyIconAction()},t}(v.I),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new I({getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)},notifyIconAction:function(){return e.emit(I.strings.ICON_EVENT,{},!0)}})},t}(i.O),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,r,i,l){if(void 0===e&&(e=function(e){return new o.$(e)}),void 0===t&&(t=function(e){return new a.l(e)}),void 0===n&&(n=function(e){return new c.i(e)}),void 0===r&&(r=function(e){return new s.C(e)}),void 0===i&&(i=function(e){return new S(e)}),void 0===l&&(l=function(e){return new x(e)}),this.selectAnchor=this.root.querySelector(m.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(m.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(m.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw new Error("MDCSelect: Missing required element: The following selector must be present: '"+m.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(m.ARIA_CONTROLS)){var u=document.getElementById(this.selectAnchor.getAttribute(m.ARIA_CONTROLS));u&&(this.helperText=l(u))}this.menuSetup(r);var d=this.root.querySelector(m.LABEL_SELECTOR);this.label=d?e(d):null;var f=this.root.querySelector(m.LINE_RIPPLE_SELECTOR);this.lineRipple=f?t(f):null;var h=this.root.querySelector(m.OUTLINE_SELECTOR);this.outline=h?n(h):null;var v=this.root.querySelector(m.LEADING_ICON_SELECTOR);v&&(this.leadingIcon=i(v)),this.root.classList.contains(p.OUTLINED)||(this.ripple=this.createRipple())},t.prototype.initialSyncWithDOM=function(){var e=this;if(this.handleFocus=function(){e.foundation.handleFocus()},this.handleBlur=function(){e.foundation.handleBlur()},this.handleClick=function(t){e.selectAnchor.focus(),e.foundation.handleClick(e.getNormalizedXCoordinate(t))},this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleMenuItemAction=function(t){e.foundation.handleMenuItemAction(t.detail.index)},this.handleMenuOpened=function(){e.foundation.handleMenuOpened()},this.handleMenuClosed=function(){e.foundation.handleMenuClosed()},this.handleMenuClosing=function(){e.foundation.handleMenuClosing()},this.selectAnchor.addEventListener("focus",this.handleFocus),this.selectAnchor.addEventListener("blur",this.handleBlur),this.selectAnchor.addEventListener("click",this.handleClick),this.selectAnchor.addEventListener("keydown",this.handleKeydown),this.menu.listen(l.P$.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(l.P$.CLOSING_EVENT,this.handleMenuClosing),this.menu.listen(l.P$.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(u.P$.SELECTED_EVENT,this.handleMenuItemAction),this.hiddenInput){if(this.hiddenInput.value)return this.foundation.setValue(this.hiddenInput.value,!0),void this.foundation.layout();this.hiddenInput.value=this.value}},t.prototype.destroy=function(){this.selectAnchor.removeEventListener("focus",this.handleFocus),this.selectAnchor.removeEventListener("blur",this.handleBlur),this.selectAnchor.removeEventListener("keydown",this.handleKeydown),this.selectAnchor.removeEventListener("click",this.handleClick),this.menu.unlisten(l.P$.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(l.P$.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(u.P$.SELECTED_EVENT,this.handleMenuItemAction),this.menu.destroy(),this.ripple&&this.ripple.destroy(),this.outline&&this.outline.destroy(),this.leadingIcon&&this.leadingIcon.destroy(),this.helperText&&this.helperText.destroy(),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(e){this.foundation.setValue(e)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e,t){void 0===t&&(t=!1),this.foundation.setValue(e,t)},Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e,!0)},enumerable:!1,configurable:!0}),t.prototype.setSelectedIndex=function(e,t){void 0===t&&(t=!1),this.foundation.setSelectedIndex(e,!0,t)},Object.defineProperty(t.prototype,"disabled",{get:function(){return this.foundation.getDisabled()},set:function(e){this.foundation.setDisabled(e),this.hiddenInput&&(this.hiddenInput.disabled=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconAriaLabel",{set:function(e){this.foundation.setLeadingIconAriaLabel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconContent",{set:function(e){this.foundation.setLeadingIconContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"helperTextContent",{set:function(e){this.foundation.setHelperTextContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useDefaultValidation",{set:function(e){this.foundation.setUseDefaultValidation(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(e){this.foundation.setValid(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this.foundation.getRequired()},set:function(e){this.foundation.setRequired(e)},enumerable:!1,configurable:!0}),t.prototype.layout=function(){this.foundation.layout()},t.prototype.layoutOptions=function(){this.foundation.layoutOptions(),this.menu.layout(),this.menuItemValues=this.menu.items.map((function(e){return e.getAttribute(m.VALUE_ATTR)||""})),this.hiddenInput&&(this.hiddenInput.value=this.value)},t.prototype.getDefaultFoundation=function(){var e=(0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)({},this.getSelectAdapterMethods()),this.getCommonAdapterMethods()),this.getOutlineAdapterMethods()),this.getLabelAdapterMethods());return new _(e,this.getFoundationMap())},t.prototype.menuSetup=function(e){this.menuElement=this.root.querySelector(m.MENU_SELECTOR),this.menu=e(this.menuElement),this.menu.hasTypeahead=!0,this.menu.singleSelection=!0,this.menuItemValues=this.menu.items.map((function(e){return e.getAttribute(m.VALUE_ATTR)||""}))},t.prototype.createRipple=function(){var e=this,t=(0,r.Cl)((0,r.Cl)({},d.N.createAdapter({root:this.selectAnchor})),{registerInteractionHandler:function(t,n){e.selectAnchor.addEventListener(t,n)},deregisterInteractionHandler:function(t,n){e.selectAnchor.removeEventListener(t,n)}});return new d.N(this.selectAnchor,new f.E(t))},t.prototype.getSelectAdapterMethods=function(){var e=this;return{getMenuItemAttr:function(e,t){return e.getAttribute(t)},setSelectedText:function(t){e.selectedText.textContent=t},isSelectAnchorFocused:function(){return document.activeElement===e.selectAnchor},getSelectAnchorAttr:function(t){return e.selectAnchor.getAttribute(t)},setSelectAnchorAttr:function(t,n){e.selectAnchor.setAttribute(t,n)},removeSelectAnchorAttr:function(t){e.selectAnchor.removeAttribute(t)},addMenuClass:function(t){e.menuElement.classList.add(t)},removeMenuClass:function(t){e.menuElement.classList.remove(t)},openMenu:function(){e.menu.open=!0},closeMenu:function(){e.menu.open=!1},getAnchorElement:function(){return e.root.querySelector(m.SELECT_ANCHOR_SELECTOR)},setMenuAnchorElement:function(t){e.menu.setAnchorElement(t)},setMenuAnchorCorner:function(t){e.menu.setAnchorCorner(t)},setMenuWrapFocus:function(t){e.menu.wrapFocus=t},getSelectedIndex:function(){var t=e.menu.selectedIndex;return t instanceof Array?t[0]:t},setSelectedIndex:function(t){e.menu.selectedIndex=t},focusMenuItemAtIndex:function(t){e.menu.items[t].focus()},getMenuItemCount:function(){return e.menu.items.length},getMenuItemValues:function(){return e.menuItemValues},getMenuItemTextAtIndex:function(t){return e.menu.getPrimaryTextAtIndex(t)},isTypeaheadInProgress:function(){return e.menu.typeaheadInProgress},typeaheadMatchItem:function(t,n){return e.menu.typeaheadMatchItem(t,n)}}},t.prototype.getCommonAdapterMethods=function(){var e=this;return{addClass:function(t){e.root.classList.add(t)},removeClass:function(t){e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},setRippleCenter:function(t){e.lineRipple&&e.lineRipple.setRippleCenter(t)},activateBottomLine:function(){e.lineRipple&&e.lineRipple.activate()},deactivateBottomLine:function(){e.lineRipple&&e.lineRipple.deactivate()},notifyChange:function(t){e.hiddenInput&&(e.hiddenInput.value=t);var n=e.selectedIndex;e.emit(m.CHANGE_EVENT,{value:t,index:n},!0)}}},t.prototype.getOutlineAdapterMethods=function(){var e=this;return{hasOutline:function(){return Boolean(e.outline)},notchOutline:function(t){e.outline&&e.outline.notch(t)},closeOutline:function(){e.outline&&e.outline.closeNotch()}}},t.prototype.getLabelAdapterMethods=function(){var e=this;return{hasLabel:function(){return!!e.label},floatLabel:function(t){e.label&&e.label.float(t)},getLabelWidth:function(){return e.label?e.label.getWidth():0},setLabelRequired:function(t){e.label&&e.label.setRequired(t)}}},t.prototype.getNormalizedXCoordinate=function(e){var t=e.target.getBoundingClientRect();return(this.isTouchEvent(e)?e.touches[0].clientX:e.clientX)-t.left},t.prototype.isTouchEvent=function(e){return Boolean(e.touches)},t.prototype.getFoundationMap=function(){return{helperText:this.helperText?this.helperText.foundationForSelect:void 0,leadingIcon:this.leadingIcon?this.leadingIcon.foundationForSelect:void 0}},t}(i.O)},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),i=n(23),o=n(111),a=n(82),l=n(3),s=l.createComponent((function(e,t){const{outlined:n,...i}=e,o=l.useClassNames(e,["mdc-card",{"mdc-card--outlined":n}]);return r.jsx(l.Tag,{...i,ref:t,className:o})})),u=l.createComponent((function(e,t){const{square:n,sixteenByNine:i,...o}=e,a=l.useClassNames(e,["mdc-card__media",{"mdc-card__media--square":n,"mdc-card__media--16-9":i}]);return r.jsx(l.Tag,{tag:"section",...o,ref:t,className:a})})),c=l.createComponent((function(e,t){const n=l.useClassNames(e,["mdc-card__media-content"]);return r.jsx(l.Tag,{...e,ref:t,className:n})})),d=i.withRipple({surface:!1})(l.createComponent((function(e,t){const n=l.useClassNames(e,["mdc-card__primary-action"]),{children:i,...o}=e;return r.jsxs(l.Tag,{...o,ref:t,className:n,children:[i,r.jsx("div",{className:"mdc-card__ripple"})]})}))),f=l.createComponent((function(e,t){const{fullBleed:n,...i}=e,o=l.useClassNames(e,["mdc-card__actions",{"mdc-card__actions--full-bleed":n}]);return r.jsx(l.Tag,{tag:"div",...i,ref:t,className:o})})),p=l.createComponent((function(e,t){const n=l.useClassNames(e,["mdc-card__action-buttons"]);return r.jsx(l.Tag,{...e,ref:t,className:n})})),m=l.createComponent((function(e,t){const n=l.useClassNames(e,["mdc-card__action-icons"]);return r.jsx(l.Tag,{...e,ref:t,className:n})})),h=l.createComponent((function(e,t){const n=l.useClassNames(e,["mdc-card__action","mdc-card__action--icon","mdc-icon-button--display-flex"]);return r.jsx(a.IconButton,{...e,ref:t,className:n})})),v=l.createComponent((function(e,t){const n=l.useClassNames(e,["mdc-card__action","mdc-card__action--button"]);return r.jsx(o.Button,{...e,ref:t,className:n})}));t.Card=s,t.CardActionButton=v,t.CardActionButtons=p,t.CardActionIcon=h,t.CardActionIcons=m,t.CardActions=f,t.CardMedia=u,t.CardMediaContent=c,t.CardPrimaryAction=d},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),i=n(0),o=n(23),a=n(24),l=n(112),s=n(3),u=o.withRipple({surface:!1})(s.createComponent((function(e,t){const{dense:n,raised:i,unelevated:o,outlined:a,danger:u,icon:m,label:h,trailingIcon:v,children:g,touch:_,...b}=e,y=l.useIsWrappedTouchTarget(_),E=s.useClassNames(e,["mdc-button",{"mdc-button--dense":n,"mdc-button--raised":i,"mdc-button--unelevated":o,"mdc-button--outlined":a,"mdc-button--touch":y}]);if(u){const e=b.style||{},t={"--mdc-theme-primary":"var(--mdc-theme-error)","--mdc-theme-on-primary":"var(--mdc-theme-on-error)"};b.style={...t,...e}}return r.jsxs(s.Tag,{tag:"button",...b,ref:t,className:E,children:[r.jsx(f,{}),r.jsx(c,{}),r.jsx(d,{}),!!m&&r.jsx(p,{icon:m}),r.jsxs("span",{className:"mdc-button__label",children:[h,g]}),!!v&&r.jsx(p,{icon:v})]})}))),c=i.memo((function(){return r.jsx("div",{className:"mdc-button__touch"})})),d=i.memo((function(){return r.jsx("div",{className:"mdc-button__focus-ring"})})),f=i.memo((function(){return r.jsx("div",{className:"mdc-button__ripple"})})),p=s.createMemoComponent((function(e,t){const n=s.useClassNames(e,["mdc-button__icon"]);return r.jsx(a.Icon,{...e,className:n,ref:t})}));t.Button=u},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),i=n(0),o=n(23),a=n(3),l=i.createContext(!1),s=o.withRipple({surface:!1})(a.createComponent((function(e,t){const{children:n,...i}=e,o=a.useClassNames(e,["mdc-touch-target-wrapper"]);return r.jsx(a.Tag,{tag:"div",...i,ref:t,className:o,children:r.jsx(l.Provider,{value:!0,children:n})})})));t.TouchTargetWrapper=s,t.useIsWrappedTouchTarget=e=>i.useContext(l)||e||!1},function(e){e.exports=function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+t[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+t[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+t[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+t[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+t[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+t[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+t[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+t[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+t[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+t[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+t[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+t[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+t[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+t[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+t[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,i,o,a,l,s,u=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=u;t+=64)n(c,r(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(c,o),t=0;t<16;t+=1)o[t]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),l=parseInt(a[2],16),s=parseInt(a[1],16)||0,o[14]=l,o[15]=s,n(c,o),c}function a(e){var t,r,o,a,l,s,u=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=u;t+=64)n(c,i(e.subarray(t-64,t)));for(r=(e=t-64<u?e.subarray(t-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)o[t>>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(c,o),t=0;t<16;t+=1)o[t]=0;return a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/),l=parseInt(a[2],16),s=parseInt(a[1],16)||0,o[14]=l,o[15]=s,n(c,o),c}function l(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function s(e){var t;for(t=0;t<e.length;t+=1)e[t]=l(e[t]);return e.join("")}function u(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function c(e,t){var n,r=e.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=e.charCodeAt(n);return t?o:i}function d(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function f(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function p(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function m(){this.reset()}return s(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i,o,a,l,s=this.byteLength,u=t(n,s),c=s;return r!==e&&(c=t(r,s)),u>c?new ArrayBuffer(0):(i=c-u,o=new ArrayBuffer(i),a=new Uint8Array(o),l=new Uint8Array(this,u,i),a.set(l),o)}}(),m.prototype.append=function(e){return this.appendBinary(u(e)),this},m.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},m.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=s(this._hash),e&&(n=p(n)),this.reset(),n},m.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},m.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},m.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},m.prototype._finish=function(e,t){var r,i,o,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,e),a=0;a<16;a+=1)e[a]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=i,e[15]=o,n(this._hash,e)},m.hash=function(e,t){return m.hashBinary(u(e),t)},m.hashBinary=function(e,t){var n=s(o(e));return t?p(n):n},m.ArrayBuffer=function(){this.reset()},m.ArrayBuffer.prototype.append=function(e){var t,r=f(this._buff.buffer,e,!0),o=r.length;for(this._length+=e.byteLength,t=64;t<=o;t+=64)n(this._hash,i(r.subarray(t-64,t)));return this._buff=t-64<o?new Uint8Array(r.buffer.slice(t-64)):new Uint8Array(0),this},m.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=s(this._hash),e&&(n=p(n)),this.reset(),n},m.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.ArrayBuffer.prototype.getState=function(){var e=m.prototype.getState.call(this);return e.buff=d(e.buff),e},m.ArrayBuffer.prototype.setState=function(e){return e.buff=c(e.buff,!0),m.prototype.setState.call(this,e)},m.ArrayBuffer.prototype.destroy=m.prototype.destroy,m.ArrayBuffer.prototype._finish=m.prototype._finish,m.ArrayBuffer.hash=function(e,t){var n=s(a(new Uint8Array(e)));return t?p(n):n},m}()},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),i=n(0),o=n(122),a=n(3),l=n(23),s=n(115);o.MDCCheckboxFoundation.prototype.installPropertyChangeHooks_=()=>{};const u=a.createComponent((function(e,t){const{renderToggle:n,id:l,toggleRootProps:u,rootEl:p,checkboxEl:m}=(e=>{const t=a.useId("checkbox",e),{renderToggle:n,toggleRootProps:r,id:l}=s.useToggleFoundation({...e,id:t}),{foundation:u,...c}=a.useFoundation({props:e,elements:{rootEl:!0,checkboxEl:!0},foundation:({rootEl:e,checkboxEl:t,getProps:n})=>new o.MDCCheckboxFoundation({addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),setNativeControlAttr:(e,n)=>t.setProp(e,n),removeNativeControlAttr:e=>t.removeProp(e),isIndeterminate:()=>!!n().indeterminate,isChecked:()=>{var e;return void 0!==n().checked?!!n().checked:!(null==(e=t.ref)||!e.checked)},hasNativeControl:()=>!!t.ref,setNativeControlDisabled:e=>t.setProp("disabled",e),forceLayout:()=>{var t;return null==(t=e.ref)?void 0:t.offsetWidth},isAttachedToDOM:()=>!0})}),{rootEl:d,checkboxEl:f}=c,p=i.useCallback((()=>{f.ref&&(f.ref.indeterminate=!!e.indeterminate),window.requestAnimationFrame((()=>{u.handleChange()}))}),[e.indeterminate,u,f.ref]);return i.useEffect((()=>{p()}),[p]),d.setProp("onAnimationEnd",(t=>{var n;null==(n=e.onAnimationEnd)||n.call(e,t),u.handleAnimationEnd()}),!0),f.setProp("onChange",(t=>{var n;null==(n=e.onChange)||n.call(e,t),p()}),!0),{foundation:u,renderToggle:n,toggleRootProps:r,id:l,...c}})(e),{children:h,className:v,label:g,style:_,indeterminate:b,inputRef:y,foundationRef:E,...x}=e;return n(r.jsxs(c,{...p.props({checked:x.checked,indeterminate:b,...u}),ref:a.mergeRefs(p.reactRef,t),children:[r.jsx("input",{...m.props({...x,className:"mdc-checkbox__native-control"}),type:"checkbox",ref:a.mergeRefs(m.reactRef,y,t),id:l}),r.jsx(f,{}),r.jsx(d,{})]}))})),c=l.withRipple({surface:!1,unbounded:!0})(i.forwardRef((function(e,t){const n=i.useContext(a.DataTableContext),o=i.useContext(a.DataTableHeadContext),{disabled:l,checked:s,indeterminate:u,...c}=e,d=a.useClassNames(e,["mdc-checkbox",{"mdc-data-table__row-checkbox":n&&!o,"mdc-data-table__header-row-checkbox":o,"mdc-checkbox--disabled":l,"mdc-checkbox--selected":s||u}]);return r.jsx(a.Tag,{...c,className:d,ref:t})}))),d=i.memo((function(){return r.jsx("div",{className:"mdc-checkbox__ripple"})})),f=i.memo((()=>r.jsxs("div",{className:"mdc-checkbox__background",children:[r.jsx("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 24 24",children:r.jsx("path",{className:"mdc-checkbox__checkmark-path",fill:"none",stroke:"white",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})}),r.jsx("div",{className:"mdc-checkbox__mixedmark"})]})));t.Checkbox=u},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),i=n(3),o=n(116);t.useToggleFoundation=function(e){const{className:t,style:n,rootProps:a,label:l,children:s,disabled:u}=e,c=e.label||e.children,d=i.useId("toggle-",e),f=c?{disabled:u}:{className:t,style:n,disabled:u,...a};return{id:d,renderToggle:e=>c?r.jsxs(o.FormField,{...a,className:t,style:n,children:[e,r.jsxs("label",{id:d+"label",htmlFor:d,children:[l,s]})]}):e,toggleRootProps:f}}},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),i=n(3),o=n(123),a=i.createComponent((function(e,t){var n;n=e,i.useFoundation({props:n,elements:{},foundation:()=>new o.MDCFormFieldFoundation({registerInteractionHandler:(e,t)=>{},deregisterInteractionHandler:(e,t)=>{},activateInputRipple:()=>{},deactivateInputRipple:()=>{}})});const{alignEnd:a,foundationRef:l,noWrap:s,spaceBetween:u,...c}=e,d=i.useClassNames(e,["mdc-form-field",{"mdc-form-field--align-end":a,"mdc-form-field--nowrap":s,"mdc-form-field--space-between":u}]);return r.jsx(i.Tag,{...c,ref:t,className:d})}));t.FormField=a},function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(1),i=n(0),o=n(3),a=n(124),l=i.memo((function(e){const{children:t,...n}=e;return r.jsxs("div",{className:"mdc-slider__track",children:[r.jsx("div",{className:"mdc-slider__track--inactive"}),r.jsx("div",{className:"mdc-slider__track--active",children:r.jsx("div",{...n,className:"mdc-slider__track--active_fill"})}),t]})})),s=i.memo((function({tickMarks:e}){return r.jsx("div",{className:"mdc-slider__tick-marks",children:e.map(((e,t)=>r.jsx("div",{className:e.className},t)))})})),u=i.memo(i.forwardRef((function(e,t){return r.jsxs("div",{className:"mdc-slider__thumb",ref:t,children:[e.children,r.jsx("div",{className:"mdc-slider__thumb-knob"})]})}))),c=e=>{const t=Number(e);return"number"!=typeof t||isNaN(t)?void 0:t},d=o.createComponent((function(e,t){const{rootEl:n,setInputsRef:d,setThumbRef:f,tickMarks:p,trackActiveEl:m}=(e=>{const t=i.useRef([]),n=i.useRef([]),{foundation:r,...l}=o.useFoundation({props:e,elements:{rootEl:!0,trackActiveEl:!0},foundation:({rootEl:e,trackActiveEl:t,emit:n})=>new a.MDCSliderFoundation({hasClass:t=>e.hasClass(t),addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),addThumbClass:(e,t)=>{var n;null==(n=s(t))||n.classList.add(e)},removeThumbClass:(e,t)=>{var n;null==(n=s(t))||n.classList.remove(e)},getAttribute:t=>e.getProp(t),getInputValue:e=>{var t;return(null==(t=u(e))?void 0:t.value)??"1"},setInputValue:(e,t)=>{const n=u(t);return void 0!==n?n.value=e:e},getInputAttribute:(e,t)=>{const n=u(t);return n?n.getAttribute(e):null},setInputAttribute:(e,t,n)=>{var r;null==(r=u(n))||r.setAttribute(e,t)},removeInputAttribute:(e,t)=>{var n;null==(n=u(t))||n.removeAttribute(e)},focusInput:e=>{var t;null==(t=u(e))||t.focus()},isInputFocused:e=>u(e)===document.activeElement,shouldHideFocusStylesForPointerEvents:()=>!1,getThumbKnobWidth:e=>{const t=s(e);return t?t.querySelector(`.${a.cssClasses.THUMB_KNOB}`).getBoundingClientRect().width:o.emptyClientRect.width},getThumbBoundingClientRect:e=>{var t;return(null==(t=s(e))?void 0:t.getBoundingClientRect())??o.emptyClientRect},getBoundingClientRect:()=>e.ref?e.ref.getBoundingClientRect():o.emptyClientRect,getValueIndicatorContainerWidth:e=>{const t=s(e);return t?t.querySelector(`.${a.cssClasses.VALUE_INDICATOR_CONTAINER}`).getBoundingClientRect().width:o.emptyClientRect.width},isRTL:()=>!!e.ref&&"rtl"===getComputedStyle(e.ref).direction,setThumbStyleProperty:(e,t,n)=>{var r;null==(r=s(n))||r.style.setProperty(e,t)},removeThumbStyleProperty:(e,t)=>{var n;null==(n=s(t))||n.style.removeProperty(e)},setTrackActiveStyleProperty:(e,n)=>{t.setStyle(e,n)},removeTrackActiveStyleProperty:e=>{t.setStyle(e,null)},setValueIndicatorText:(e,t)=>{const n=s(t);return n&&(n.querySelector(`.${a.cssClasses.VALUE_INDICATOR_TEXT}`).textContent=String(e)),""},getValueToAriaValueTextFn:()=>null,updateTickMarks:t=>{var n,r;let i=null==(n=e.ref)?void 0:n.querySelector(`.${a.cssClasses.TICK_MARKS_CONTAINER}`);if(!i){i=document.createElement("div"),i.classList.add(a.cssClasses.TICK_MARKS_CONTAINER);const t=null==(r=e.ref)?void 0:r.querySelector(`.${a.cssClasses.TRACK}`);t&&t.appendChild(i)}if(t.length!==i.children.length){for(;i.firstChild;)i.removeChild(i.firstChild);f(t)}else p(i,t)},setPointerCapture:t=>{var n;null==(n=e.ref)||n.setPointerCapture(t)},emitChangeEvent:(e,t)=>{2===t?n("onChange",{value:e,thumb:t}):1===t&&n("onChangeValueStart",{value:e,thumb:t})},emitInputEvent:(e,t)=>{2===t?n("onInput",{value:e,thumb:t}):1===t&&n("onInputValueStart",{value:e,thumb:t})},registerEventHandler:(t,n)=>{e.addEventListener(t,n)},deregisterEventHandler:(t,n)=>{e.removeEventListener(t,n)},registerThumbEventHandler:(e,t,n)=>{var r;null==(r=s(e))||r.addEventListener(t,n)},deregisterThumbEventHandler:(e,t,n)=>{var r;null==(r=s(e))||r.removeEventListener(t,n)},registerInputEventHandler:(e,t,n)=>{var r;null==(r=u(e))||r.addEventListener(t,n)},deregisterInputEventHandler:(e,t,n)=>{var r;null==(r=u(e))||r.removeEventListener(t,n)},registerBodyEventHandler:(e,t)=>{document.body.addEventListener(e,t)},deregisterBodyEventHandler:(e,t)=>{document.body.removeEventListener(e,t)},registerWindowEventHandler:(e,t)=>{window.addEventListener(e,t)},deregisterWindowEventHandler:(e,t)=>{window.removeEventListener(e,t)}})}),s=e=>{var n,r;return e===a.Thumb.END?null==(n=t.current)?void 0:n[t.current.length-1]:null==(r=t.current)?void 0:r[0]},u=e=>{var t,r;return e===a.Thumb.END?null==(t=n.current)?void 0:t[n.current.length-1]:null==(r=n.current)?void 0:r[0]},[c,d]=i.useState([]),f=e=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n]===a.TickMark.ACTIVE?a.cssClasses.TICK_MARK_ACTIVE:a.cssClasses.TICK_MARK_INACTIVE;t.push({className:r})}d(t)},p=(e,t)=>{const n=Array.from(e.children);for(let e=0;e<n.length;e++)t[e]===a.TickMark.ACTIVE?(n[e].classList.add(a.cssClasses.TICK_MARK_ACTIVE),n[e].classList.remove(a.cssClasses.TICK_MARK_INACTIVE)):(n[e].classList.add(a.cssClasses.TICK_MARK_INACTIVE),n[e].classList.remove(a.cssClasses.TICK_MARK_ACTIVE))};return i.useEffect((()=>{r.layout()}),[r]),i.useEffect((()=>{void 0!==e.range&&(r.isRange=e.range)}),[e.range,r]),i.useEffect((()=>{let t=void 0!==e.value?Number(e.value):r.getValue();const n=r.getMin(),i=r.getMax();t<n&&(console.warn(`Attempted to set slider to ${t} which is less than min: ${n}`),t=n),t>i&&(console.warn(`Attempted to set slider to ${t} which is greater than max: ${i}`),t=i),r.setValue(t)}),[e.value,r]),i.useEffect((()=>{if(e.range){let t=void 0!==e.valueStart?Number(e.valueStart):r.getValueStart();const n=r.getMin(),i=r.getMax();t<n&&(console.warn(`Attempted to set slider to ${t} which is less than min: ${n}`),t=n),t>i&&(console.warn(`Attempted to set slider to ${t} which is greater than max: ${i}`),t=i),r.setValueStart(t)}}),[e.range,e.valueStart,r]),i.useEffect((()=>{void 0!==e.disabled&&r.setDisabled(e.disabled)}),[e.disabled,r]),i.useEffect((()=>{void 0!==e.discrete&&(r.isDiscrete=e.discrete),e.discrete&&0===r.getStep()&&r.setStep(1)}),[e.discrete,r]),i.useEffect((()=>{void 0!==e.minRange&&r.setMinRange(Number(e.minRange))}),[e.minRange,r]),i.useEffect((()=>{const t=r.hasTickMarks;void 0!==e.displayMarkers&&e.displayMarkers!==t&&(r.hasTickMarks=e.displayMarkers,r.setHasTickMarks(e.displayMarkers))}),[e.displayMarkers,r]),i.useEffect((()=>{const e=r.handleDown.bind(r);r.handleDown=t=>{e(t)}}),[r]),{setInputsRef:(e,t)=>{n.current[e]=t||void 0},setThumbRef:(e,n)=>{t.current[e]=n||void 0},tickMarks:c,...l}})(e),{children:h,disabled:v,discrete:g,displayMarkers:_,max:b=100,min:y=0,minRange:E,onChange:x,onChangeValueStart:C,onInput:T,onInputValueStart:I,range:S,step:A,value:O,valueStart:w,...N}=e,P=o.useClassNames(e,["mdc-slider",{"mdc-slider--discrete":g,"mdc-slider--tick-marks":_&&g,"mdc-slider--disabled":v,"mdc-slider--range":S}]);return _&&!g&&console.warn("The 'displayMarkers' prop on rmwc Slider will\n only work in conjunction with the 'discrete' prop"),r.jsxs(o.Tag,{className:P,tabIndex:0,tag:"div",element:n,"data-min-range":E,ref:t,children:[S&&r.jsx("input",{...N,"aria-label":"Slider start value","aria-valuemax":c(b),"aria-valuenow":w,className:"mdc-slider__input",disabled:v,max:c(b),min:c(y),name:"rangeStart",onChange:C,onInput:I,ref:e=>d(0,e),step:A,type:"range",value:w}),r.jsx("input",{"aria-label":"Slider value","aria-valuemax":c(b),"aria-valuenow":O,className:"mdc-slider__input",disabled:v,max:c(b),min:c(y),name:"rangeEnd",...N,ref:e=>d(1,e),step:A,type:"range",value:O}),r.jsx(l,{...m.props({}),children:_&&r.jsx(s,{tickMarks:p})}),S&&r.jsx(u,{ref:e=>f(0,e),children:g&&r.jsx("div",{className:"mdc-slider__value-indicator-container","aria-hidden":"true",children:r.jsx("div",{className:"mdc-slider__value-indicator",children:r.jsx("span",{className:"mdc-slider__value-indicator-text",children:w})})})}),r.jsx(u,{ref:e=>f(1,e),children:g&&r.jsx("div",{className:"mdc-slider__value-indicator-container","aria-hidden":"true",children:r.jsx("div",{className:"mdc-slider__value-indicator",children:r.jsx("span",{className:"mdc-slider__value-indicator-text",children:O})})})}),h]})}));t.Slider=d},function(e,t,n){n.d(t,{A:function(){return a}});var r=n(2),i=n(4),o=n(141),a=function(e){function t(n){return e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return o.Y},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return o.P},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),t.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},t}(i.I)},,,function(e,t,n){function r(e,t){return new Promise((function(n,r){var i=new Image;t&&(i.crossOrigin=t),i.onload=function(){n(i)},i.onerror=r,i.src=e}))}function i(e){var t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,e.width,e.height),t}function o(e,t){e=e||[],"string"==typeof(t=t||{})&&(t={type:t});try{return new Blob(e,t)}catch(i){if("TypeError"!==i.name)throw i;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}function a(e){return("undefined"!=typeof URL?URL:webkitURL).createObjectURL(e)}function l(e){return("undefined"!=typeof URL?URL:webkitURL).revokeObjectURL(e)}function s(e){return new Promise((function(t,n){var r=new FileReader,i="function"==typeof r.readAsBinaryString;r.onloadend=function(){var e=r.result||"";if(i)return t(e);t(b(e))},r.onerror=n,i?r.readAsBinaryString(e):r.readAsArrayBuffer(e)}))}function u(e,t){var n=[y(atob(e))];return t?o(n,{type:t}):o(n)}function c(e,t){return u(btoa(e),t)}function d(e){return s(e).then(btoa)}function f(e){var t=e.match(/data:([^;]+)/)[1],n=e.replace(/^[^,]+,/,"");return o([y(atob(n))],{type:t})}function p(e){return d(e).then((function(t){return"data:"+e.type+";base64,"+t}))}function m(e,t,n,o){return t=t||"image/png",r(e,n).then(i).then((function(e){return e.toDataURL(t,o)}))}function h(e,t,n){return"function"==typeof e.toBlob?new Promise((function(r){e.toBlob(r,t,n)})):Promise.resolve(f(e.toDataURL(t,n)))}function v(e,t,n,o){return t=t||"image/png",r(e,n).then(i).then((function(e){return h(e,t,o)}))}function g(e,t){return o([e],t)}function _(e){return new Promise((function(t,n){var r=new FileReader;r.onloadend=function(){var e=r.result||new ArrayBuffer(0);t(e)},r.onerror=n,r.readAsArrayBuffer(e)}))}function b(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,i=-1;++i<r;)t+=String.fromCharCode(n[i]);return t}function y(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=-1;++i<t;)r[i]=e.charCodeAt(i);return n}n.r(t),n.d(t,{arrayBufferToBinaryString:function(){return b},arrayBufferToBlob:function(){return g},base64StringToBlob:function(){return u},binaryStringToArrayBuffer:function(){return y},binaryStringToBlob:function(){return c},blobToArrayBuffer:function(){return _},blobToBase64String:function(){return d},blobToBinaryString:function(){return s},blobToDataURL:function(){return p},canvasToBlob:function(){return h},createBlob:function(){return o},createObjectURL:function(){return a},dataURLToBlob:function(){return f},imgSrcToBlob:function(){return v},imgSrcToDataURL:function(){return m},revokeObjectURL:function(){return l}})},function(e,t,n){n.r(t),n.d(t,{MDCCheckbox:function(){return h},MDCCheckboxFoundation:function(){return p},cssClasses:function(){return c},numbers:function(){return f},strings:function(){return d}});var r=n(2),i=n(62),o=n(5),a=n(53),l=n(22),s=n(27),u=n(25),c={ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",ANIM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",BACKGROUND:"mdc-checkbox__background",CHECKED:"mdc-checkbox--checked",CHECKMARK:"mdc-checkbox__checkmark",CHECKMARK_PATH:"mdc-checkbox__checkmark-path",DISABLED:"mdc-checkbox--disabled",INDETERMINATE:"mdc-checkbox--indeterminate",MIXEDMARK:"mdc-checkbox__mixedmark",NATIVE_CONTROL:"mdc-checkbox__native-control",ROOT:"mdc-checkbox",SELECTED:"mdc-checkbox--selected",UPGRADED:"mdc-checkbox--upgraded"},d={ARIA_CHECKED_ATTR:"aria-checked",ARIA_CHECKED_INDETERMINATE_VALUE:"mixed",DATA_INDETERMINATE_ATTR:"data-indeterminate",NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_INDETERMINATE:"indeterminate",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_UNCHECKED:"unchecked"},f={ANIM_END_LATCH_MS:250},p=function(e){function t(n){var i=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return i.currentCheckState=d.TRANSITION_STATE_INIT,i.currentAnimationClass="",i.animEndLatchTimer=0,i.enableAnimationEndHandler=!1,i}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return c},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return d},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},forceLayout:function(){},hasNativeControl:function(){return!1},isAttachedToDOM:function(){return!1},isChecked:function(){return!1},isIndeterminate:function(){return!1},removeClass:function(){},removeNativeControlAttr:function(){},setNativeControlAttr:function(){},setNativeControlDisabled:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.currentCheckState=this.determineCheckState(),this.updateAriaChecked(),this.adapter.addClass(c.UPGRADED)},t.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(c.DISABLED):this.adapter.removeClass(c.DISABLED)},t.prototype.handleAnimationEnd=function(){var e=this;this.enableAnimationEndHandler&&(clearTimeout(this.animEndLatchTimer),this.animEndLatchTimer=setTimeout((function(){e.adapter.removeClass(e.currentAnimationClass),e.enableAnimationEndHandler=!1}),f.ANIM_END_LATCH_MS))},t.prototype.handleChange=function(){this.transitionCheckState()},t.prototype.transitionCheckState=function(){if(this.adapter.hasNativeControl()){var e=this.currentCheckState,t=this.determineCheckState();if(e!==t){this.updateAriaChecked();var n=d.TRANSITION_STATE_UNCHECKED,r=c.SELECTED;t===n?this.adapter.removeClass(r):this.adapter.addClass(r),this.currentAnimationClass.length>0&&(clearTimeout(this.animEndLatchTimer),this.adapter.forceLayout(),this.adapter.removeClass(this.currentAnimationClass)),this.currentAnimationClass=this.getTransitionAnimationClass(e,t),this.currentCheckState=t,this.adapter.isAttachedToDOM()&&this.currentAnimationClass.length>0&&(this.adapter.addClass(this.currentAnimationClass),this.enableAnimationEndHandler=!0)}}},t.prototype.determineCheckState=function(){var e=d.TRANSITION_STATE_INDETERMINATE,t=d.TRANSITION_STATE_CHECKED,n=d.TRANSITION_STATE_UNCHECKED;return this.adapter.isIndeterminate()?e:this.adapter.isChecked()?t:n},t.prototype.getTransitionAnimationClass=function(e,n){var r=d.TRANSITION_STATE_INIT,i=d.TRANSITION_STATE_CHECKED,o=d.TRANSITION_STATE_UNCHECKED,a=t.cssClasses,l=a.ANIM_UNCHECKED_CHECKED,s=a.ANIM_UNCHECKED_INDETERMINATE,u=a.ANIM_CHECKED_UNCHECKED,c=a.ANIM_CHECKED_INDETERMINATE,f=a.ANIM_INDETERMINATE_CHECKED,p=a.ANIM_INDETERMINATE_UNCHECKED;switch(e){case r:return n===o?"":n===i?f:p;case o:return n===i?l:s;case i:return n===o?u:c;default:return n===i?f:p}},t.prototype.updateAriaChecked=function(){this.adapter.isIndeterminate()?this.adapter.setNativeControlAttr(d.ARIA_CHECKED_ATTR,d.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter.removeNativeControlAttr(d.ARIA_CHECKED_ATTR)},t}(n(4).I),m=["checked","indeterminate"],h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rippleSurface=t.createRipple(),t}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.rippleSurface},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this.getNativeControl().checked},set:function(e){this.getNativeControl().checked=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indeterminate",{get:function(){return this.getNativeControl().indeterminate},set:function(e){this.getNativeControl().indeterminate=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.getNativeControl().disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getNativeControl().value},set:function(e){this.getNativeControl().value=e},enumerable:!1,configurable:!0}),t.prototype.initialize=function(){var e=d.DATA_INDETERMINATE_ATTR;this.getNativeControl().indeterminate="true"===this.getNativeControl().getAttribute(e),this.getNativeControl().removeAttribute(e)},t.prototype.initialSyncWithDOM=function(){var e=this;this.handleChange=function(){e.foundation.handleChange()},this.handleAnimationEnd=function(){e.foundation.handleAnimationEnd()},this.getNativeControl().addEventListener("change",this.handleChange),this.listen((0,i.getCorrectEventName)(window,"animationend"),this.handleAnimationEnd),this.installPropertyChangeHooks()},t.prototype.destroy=function(){this.rippleSurface.destroy(),this.getNativeControl().removeEventListener("change",this.handleChange),this.unlisten((0,i.getCorrectEventName)(window,"animationend"),this.handleAnimationEnd),this.uninstallPropertyChangeHooks(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new p({addClass:function(t){return e.root.classList.add(t)},forceLayout:function(){return e.root.offsetWidth},hasNativeControl:function(){return!!e.getNativeControl()},isAttachedToDOM:function(){return Boolean(e.root.parentNode)},isChecked:function(){return e.checked},isIndeterminate:function(){return e.indeterminate},removeClass:function(t){e.root.classList.remove(t)},removeNativeControlAttr:function(t){e.getNativeControl().removeAttribute(t)},setNativeControlAttr:function(t,n){e.getNativeControl().setAttribute(t,n)},setNativeControlDisabled:function(t){e.getNativeControl().disabled=t}})},t.prototype.createRipple=function(){var e=this,t=(0,r.Cl)((0,r.Cl)({},s.N.createAdapter(this)),{deregisterInteractionHandler:function(t,n){e.getNativeControl().removeEventListener(t,n,(0,a.E)())},isSurfaceActive:function(){return(0,l.cK)(e.getNativeControl(),":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,n){e.getNativeControl().addEventListener(t,n,(0,a.E)())}});return new s.N(this.root,new u.E(t))},t.prototype.installPropertyChangeHooks=function(){var e,t,n=this,i=this.getNativeControl(),o=Object.getPrototypeOf(i),a=function(e){var t=Object.getOwnPropertyDescriptor(o,e);if(!v(t))return{value:void 0};var r=t.get,a={configurable:t.configurable,enumerable:t.enumerable,get:r,set:function(e){t.set.call(i,e),n.foundation.handleChange()}};Object.defineProperty(i,e,a)};try{for(var l=(0,r.Ju)(m),s=l.next();!s.done;s=l.next()){var u=a(s.value);if("object"==typeof u)return u.value}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}},t.prototype.uninstallPropertyChangeHooks=function(){var e,t,n=this.getNativeControl(),i=Object.getPrototypeOf(n);try{for(var o=(0,r.Ju)(m),a=o.next();!a.done;a=o.next()){var l=a.value,s=Object.getOwnPropertyDescriptor(i,l);if(!v(s))return;Object.defineProperty(n,l,s)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},t.prototype.getNativeControl=function(){var e=d.NATIVE_CONTROL_SELECTOR,t=this.root.querySelector(e);if(!t)throw new Error("Checkbox component requires a "+e+" element");return t},t}(o.O);function v(e){return!!e&&"function"==typeof e.set}},function(e,t,n){n.r(t),n.d(t,{MDCFormField:function(){return u},MDCFormFieldFoundation:function(){return s},cssClasses:function(){return a},strings:function(){return l}});var r=n(2),i=n(5),o=n(4),a={ROOT:"mdc-form-field"},l={LABEL_SELECTOR:".mdc-form-field > label"},s=function(e){function t(n){var i=e.call(this,(0,r.Cl)((0,r.Cl)({},t.defaultAdapter),n))||this;return i.click=function(){i.handleClick()},i}return(0,r.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},t.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){e.adapter.deactivateInputRipple()}))},t}(o.I),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.labelEl=function(){var e=s.strings.LABEL_SELECTOR;return this.root.querySelector(e)},t.prototype.getDefaultFoundation=function(){var e=this;return new s({activateInputRipple:function(){e.input&&e.input.ripple&&e.input.ripple.activate()},deactivateInputRipple:function(){e.input&&e.input.ripple&&e.input.ripple.deactivate()},deregisterInteractionHandler:function(t,n){var r=e.labelEl();r&&r.removeEventListener(t,n)},registerInteractionHandler:function(t,n){var r=e.labelEl();r&&r.addEventListener(t,n)}})},t}(i.O)},function(e,t,n){n.r(t),n.d(t,{MDCSlider:function(){return C},MDCSliderFoundation:function(){return E},Thumb:function(){return i},TickMark:function(){return r},attributes:function(){return m},cssClasses:function(){return f},events:function(){return h},numbers:function(){return p},strings:function(){return v}});var r,i,o,a=n(2),l=n(5),s=n(53),u=n(22),c=n(27),d=n(25),f={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_CONTAINER:"mdc-slider__value-indicator-container",VALUE_INDICATOR_TEXT:"mdc-slider__value-indicator-text"},p={STEP_SIZE:1,MIN_RANGE:0,THUMB_UPDATE_MIN_PX:5},m={ARIA_VALUETEXT:"aria-valuetext",INPUT_DISABLED:"disabled",INPUT_MIN:"min",INPUT_MAX:"max",INPUT_VALUE:"value",INPUT_STEP:"step",DATA_MIN_RANGE:"data-min-range"},h={CHANGE:"MDCSlider:change",INPUT:"MDCSlider:input"},v={VAR_VALUE_INDICATOR_CARET_LEFT:"--slider-value-indicator-caret-left",VAR_VALUE_INDICATOR_CARET_RIGHT:"--slider-value-indicator-caret-right",VAR_VALUE_INDICATOR_CARET_TRANSFORM:"--slider-value-indicator-caret-transform",VAR_VALUE_INDICATOR_CONTAINER_LEFT:"--slider-value-indicator-container-left",VAR_VALUE_INDICATOR_CONTAINER_RIGHT:"--slider-value-indicator-container-right",VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM:"--slider-value-indicator-container-transform"},g=n(96),_=n(62),b=n(4);!function(e){e[e.ACTIVE=0]="ACTIVE",e[e.INACTIVE=1]="INACTIVE"}(r||(r={})),function(e){e[e.START=1]="START",e[e.END=2]="END"}(i||(i={})),function(e){e.SLIDER_UPDATE="slider_update"}(o||(o={}));var y=void 0!==window,E=function(e){function t(n){var r=e.call(this,(0,a.Cl)((0,a.Cl)({},t.defaultAdapter),n))||this;return r.initialStylesRemoved=!1,r.isDisabled=!1,r.isDiscrete=!1,r.step=p.STEP_SIZE,r.minRange=p.MIN_RANGE,r.hasTickMarks=!1,r.isRange=!1,r.thumb=null,r.downEventClientX=null,r.startThumbKnobWidth=0,r.endThumbKnobWidth=0,r.animFrame=new g.K,r}return(0,a.C6)(t,e),Object.defineProperty(t,"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},shouldHideFocusStylesForPointerEvents:function(){return!1},getThumbKnobWidth:function(){return 0},getValueIndicatorContainerWidth: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}),t.prototype.init=function(){var e=this;this.isDisabled=this.adapter.hasClass(f.DISABLED),this.isDiscrete=this.adapter.hasClass(f.DISCRETE),this.hasTickMarks=this.adapter.hasClass(f.TICK_MARKS),this.isRange=this.adapter.hasClass(f.RANGE);var t=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(m.INPUT_MIN,this.isRange?i.START:i.END),m.INPUT_MIN),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(m.INPUT_MAX,i.END),m.INPUT_MAX),r=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(m.INPUT_VALUE,i.END),m.INPUT_VALUE),o=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(m.INPUT_VALUE,i.START),m.INPUT_VALUE):t,a=this.adapter.getInputAttribute(m.INPUT_STEP,i.END),l=a?this.convertAttributeValueToNumber(a,m.INPUT_STEP):this.step,s=this.adapter.getAttribute(m.DATA_MIN_RANGE),u=s?this.convertAttributeValueToNumber(s,m.DATA_MIN_RANGE):this.minRange;this.validateProperties({min:t,max:n,value:r,valueStart:o,step:l,minRange:u}),this.min=t,this.max=n,this.value=r,this.valueStart=o,this.step=l,this.minRange=u,this.numDecimalPlaces=x(this.step),this.valueBeforeDownEvent=r,this.valueStartBeforeDownEvent=o,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(){e.handleInputChange(i.START)},this.inputEndChangeListener=function(){e.handleInputChange(i.END)},this.inputStartFocusListener=function(){e.handleInputFocus(i.START)},this.inputEndFocusListener=function(){e.handleInputFocus(i.END)},this.inputStartBlurListener=function(){e.handleInputBlur(i.START)},this.inputEndBlurListener=function(){e.handleInputBlur(i.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},t.prototype.destroy=function(){this.deregisterEventHandlers()},t.prototype.setMin=function(e){this.min=e,this.isRange||(this.valueStart=e),this.updateUI()},t.prototype.setMax=function(e){this.max=e,this.updateUI()},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e){if(this.isRange&&e<this.valueStart+this.minRange)throw new Error("end thumb value ("+e+") must be >= start thumb value ("+this.valueStart+") + min range ("+this.minRange+")");this.updateValue(e,i.END)},t.prototype.getValueStart=function(){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");return this.valueStart},t.prototype.setValueStart=function(e){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&e>this.value-this.minRange)throw new Error("start thumb value ("+e+") must be <= end thumb value ("+this.value+") - min range ("+this.minRange+")");this.updateValue(e,i.START)},t.prototype.setStep=function(e){this.step=e,this.numDecimalPlaces=x(e),this.updateUI()},t.prototype.setMinRange=function(e){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");if(e<0)throw new Error("`minRange` must be non-negative. Current value: "+e);if(this.value-this.valueStart<e)throw new Error("start thumb value ("+this.valueStart+") and end thumb value ("+this.value+") must differ by at least "+e+".");this.minRange=e},t.prototype.setIsDiscrete=function(e){this.isDiscrete=e,this.updateValueIndicatorUI(),this.updateTickMarksUI()},t.prototype.getStep=function(){return this.step},t.prototype.getMinRange=function(){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");return this.minRange},t.prototype.setHasTickMarks=function(e){this.hasTickMarks=e,this.updateTickMarksUI()},t.prototype.getDisabled=function(){return this.isDisabled},t.prototype.setDisabled=function(e){this.isDisabled=e,e?(this.adapter.addClass(f.DISABLED),this.isRange&&this.adapter.setInputAttribute(m.INPUT_DISABLED,"",i.START),this.adapter.setInputAttribute(m.INPUT_DISABLED,"",i.END)):(this.adapter.removeClass(f.DISABLED),this.isRange&&this.adapter.removeInputAttribute(m.INPUT_DISABLED,i.START),this.adapter.removeInputAttribute(m.INPUT_DISABLED,i.END))},t.prototype.getIsRange=function(){return this.isRange},t.prototype.layout=function(e){var t=(void 0===e?{}:e).skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(i.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(i.END)),t||this.updateUI()},t.prototype.handleResize=function(){this.layout()},t.prototype.handleDown=function(e){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var t=null!=e.clientX?e.clientX:e.targetTouches[0].clientX;this.downEventClientX=t;var n=this.mapClientXOnSliderScale(t);this.thumb=this.getThumbFromDownEvent(t,n),null!==this.thumb&&(this.handleDragStart(e,n,this.thumb),this.updateValue(n,this.thumb,{emitInputEvent:!0}))}},t.prototype.handleMove=function(e){if(!this.isDisabled){e.preventDefault();var t=null!=e.clientX?e.clientX:e.targetTouches[0].clientX,n=null!=this.thumb;if(this.thumb=this.getThumbFromMoveEvent(t),null!==this.thumb){var r=this.mapClientXOnSliderScale(t);n||(this.handleDragStart(e,r,this.thumb),this.adapter.emitDragStartEvent(r,this.thumb)),this.updateValue(r,this.thumb,{emitInputEvent:!0})}}},t.prototype.handleUp=function(){var e,t;if(!this.isDisabled&&null!==this.thumb){(null===(t=(e=this.adapter).shouldHideFocusStylesForPointerEvents)||void 0===t?void 0:t.call(e))&&this.handleInputBlur(this.thumb);var n=this.thumb===i.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,r=this.thumb===i.START?this.valueStart:this.value;n!==r&&this.adapter.emitChangeEvent(r,this.thumb),this.adapter.emitDragEndEvent(r,this.thumb),this.thumb=null}},t.prototype.handleThumbMouseenter=function(){this.isDiscrete&&this.isRange&&(this.adapter.addThumbClass(f.THUMB_WITH_INDICATOR,i.START),this.adapter.addThumbClass(f.THUMB_WITH_INDICATOR,i.END))},t.prototype.handleThumbMouseleave=function(){var e,t;this.isDiscrete&&this.isRange&&(!(null===(t=(e=this.adapter).shouldHideFocusStylesForPointerEvents)||void 0===t?void 0:t.call(e))&&(this.adapter.isInputFocused(i.START)||this.adapter.isInputFocused(i.END))||this.thumb||(this.adapter.removeThumbClass(f.THUMB_WITH_INDICATOR,i.START),this.adapter.removeThumbClass(f.THUMB_WITH_INDICATOR,i.END)))},t.prototype.handleMousedownOrTouchstart=function(e){var t=this,n="mousedown"===e.type?"mousemove":"touchmove";this.adapter.registerBodyEventHandler(n,this.moveListener);var r=function(){t.handleUp(),t.adapter.deregisterBodyEventHandler(n,t.moveListener),t.adapter.deregisterEventHandler("mouseup",r),t.adapter.deregisterEventHandler("touchend",r)};this.adapter.registerBodyEventHandler("mouseup",r),this.adapter.registerBodyEventHandler("touchend",r),this.handleDown(e)},t.prototype.handlePointerdown=function(e){0===e.button&&(null!=e.pointerId&&this.adapter.setPointerCapture(e.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(e))},t.prototype.handleInputChange=function(e){var t=Number(this.adapter.getInputValue(e));e===i.START?this.setValueStart(t):this.setValue(t),this.adapter.emitChangeEvent(e===i.START?this.valueStart:this.value,e),this.adapter.emitInputEvent(e===i.START?this.valueStart:this.value,e)},t.prototype.handleInputFocus=function(e){if(this.adapter.addThumbClass(f.THUMB_FOCUSED,e),this.isDiscrete&&(this.adapter.addThumbClass(f.THUMB_WITH_INDICATOR,e),this.isRange)){var t=e===i.START?i.END:i.START;this.adapter.addThumbClass(f.THUMB_WITH_INDICATOR,t)}},t.prototype.handleInputBlur=function(e){if(this.adapter.removeThumbClass(f.THUMB_FOCUSED,e),this.isDiscrete&&(this.adapter.removeThumbClass(f.THUMB_WITH_INDICATOR,e),this.isRange)){var t=e===i.START?i.END:i.START;this.adapter.removeThumbClass(f.THUMB_WITH_INDICATOR,t)}},t.prototype.handleDragStart=function(e,t,n){var r,i;this.adapter.emitDragStartEvent(t,n),this.adapter.focusInput(n),(null===(i=(r=this.adapter).shouldHideFocusStylesForPointerEvents)||void 0===i?void 0:i.call(r))&&this.handleInputFocus(n),e.preventDefault()},t.prototype.getThumbFromDownEvent=function(e,t){if(!this.isRange)return i.END;var n=this.adapter.getThumbBoundingClientRect(i.START),r=this.adapter.getThumbBoundingClientRect(i.END),o=e>=n.left&&e<=n.right,a=e>=r.left&&e<=r.right;return o&&a?null:o?i.START:a?i.END:t<this.valueStart?i.START:t>this.value?i.END:t-this.valueStart<=this.value-t?i.START:i.END},t.prototype.getThumbFromMoveEvent=function(e){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-e)<p.THUMB_UPDATE_MIN_PX?this.thumb:e<this.downEventClientX?this.adapter.isRTL()?i.END:i.START:this.adapter.isRTL()?i.START:i.END},t.prototype.updateUI=function(e){e?this.updateThumbAndInputAttributes(e):(this.updateThumbAndInputAttributes(i.START),this.updateThumbAndInputAttributes(i.END)),this.updateThumbAndTrackUI(e),this.updateValueIndicatorUI(e),this.updateTickMarksUI()},t.prototype.updateThumbAndInputAttributes=function(e){if(e){var t=this.isRange&&e===i.START?this.valueStart:this.value,n=String(t);this.adapter.setInputAttribute(m.INPUT_VALUE,n,e),this.isRange&&e===i.START?this.adapter.setInputAttribute(m.INPUT_MIN,String(t+this.minRange),i.END):this.isRange&&e===i.END&&this.adapter.setInputAttribute(m.INPUT_MAX,String(t-this.minRange),i.START),this.adapter.getInputValue(e)!==n&&this.adapter.setInputValue(n,e);var r=this.adapter.getValueToAriaValueTextFn();r&&this.adapter.setInputAttribute(m.ARIA_VALUETEXT,r(t,e),e)}},t.prototype.updateValueIndicatorUI=function(e){if(this.isDiscrete){var t=this.isRange&&e===i.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(t,e===i.START?i.START:i.END),!e&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,i.START)}},t.prototype.updateTickMarksUI=function(){if(this.isDiscrete&&this.hasTickMarks){var e=(this.valueStart-this.min)/this.step,t=(this.value-this.valueStart)/this.step+1,n=(this.max-this.value)/this.step,i=Array.from({length:e}).fill(r.INACTIVE),o=Array.from({length:t}).fill(r.ACTIVE),a=Array.from({length:n}).fill(r.INACTIVE);this.adapter.updateTickMarks(i.concat(o).concat(a))}},t.prototype.mapClientXOnSliderScale=function(e){var t=(e-this.rect.left)/this.rect.width;this.adapter.isRTL()&&(t=1-t);var n=this.min+t*(this.max-this.min);return n===this.max||n===this.min?n:Number(this.quantize(n).toFixed(this.numDecimalPlaces))},t.prototype.quantize=function(e){var t=Math.round((e-this.min)/this.step);return this.min+t*this.step},t.prototype.updateValue=function(e,t,n){var r=(void 0===n?{}:n).emitInputEvent;if(e=this.clampValue(e,t),this.isRange&&t===i.START){if(this.valueStart===e)return;this.valueStart=e}else{if(this.value===e)return;this.value=e}this.updateUI(t),r&&this.adapter.emitInputEvent(t===i.START?this.valueStart:this.value,t)},t.prototype.clampValue=function(e,t){return e=Math.min(Math.max(e,this.min),this.max),this.isRange&&t===i.START&&e>this.value-this.minRange?this.value-this.minRange:this.isRange&&t===i.END&&e<this.valueStart+this.minRange?this.valueStart+this.minRange:e},t.prototype.updateThumbAndTrackUI=function(e){var t=this,n=this.max,r=this.min,a=(this.value-this.valueStart)/(n-r),l=a*this.rect.width,s=this.adapter.isRTL(),u=y?(0,_.getCorrectPropertyName)(window,"transform"):"transform";if(this.isRange){var c=this.adapter.isRTL()?(n-this.value)/(n-r)*this.rect.width:(this.valueStart-r)/(n-r)*this.rect.width,d=c+l;this.animFrame.request(o.SLIDER_UPDATE,(function(){!s&&e===i.START||s&&e!==i.START?(t.adapter.setTrackActiveStyleProperty("transform-origin","right"),t.adapter.setTrackActiveStyleProperty("left","auto"),t.adapter.setTrackActiveStyleProperty("right",t.rect.width-d+"px")):(t.adapter.setTrackActiveStyleProperty("transform-origin","left"),t.adapter.setTrackActiveStyleProperty("right","auto"),t.adapter.setTrackActiveStyleProperty("left",c+"px")),t.adapter.setTrackActiveStyleProperty(u,"scaleX("+a+")");var n=s?d:c,r=t.adapter.isRTL()?c:d;e!==i.START&&e&&t.initialStylesRemoved||(t.adapter.setThumbStyleProperty(u,"translateX("+n+"px)",i.START),t.alignValueIndicator(i.START,n)),e!==i.END&&e&&t.initialStylesRemoved||(t.adapter.setThumbStyleProperty(u,"translateX("+r+"px)",i.END),t.alignValueIndicator(i.END,r)),t.removeInitialStyles(s),t.updateOverlappingThumbsUI(n,r,e)}))}else this.animFrame.request(o.SLIDER_UPDATE,(function(){var e=s?t.rect.width-l:l;t.adapter.setThumbStyleProperty(u,"translateX("+e+"px)",i.END),t.alignValueIndicator(i.END,e),t.adapter.setTrackActiveStyleProperty(u,"scaleX("+a+")"),t.removeInitialStyles(s)}))},t.prototype.alignValueIndicator=function(e,t){if(this.isDiscrete){var n=this.adapter.getThumbBoundingClientRect(e).width/2,r=this.adapter.getValueIndicatorContainerWidth(e),i=this.adapter.getBoundingClientRect().width;r/2>t+n?(this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_LEFT,n+"px",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"0",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",e)):r/2>i-t+n?(this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_LEFT,"auto",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_RIGHT,n+"px",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(50%)",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"auto",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"0",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",e)):(this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_LEFT,"50%",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"50%",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",e),this.adapter.setThumbStyleProperty(v.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"translateX(-50%)",e))}},t.prototype.removeInitialStyles=function(e){if(!this.initialStylesRemoved){var t=e?"right":"left";this.adapter.removeThumbStyleProperty(t,i.END),this.isRange&&this.adapter.removeThumbStyleProperty(t,i.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},t.prototype.resetTrackAndThumbAnimation=function(){var e=this;if(this.isDiscrete){var t=y?(0,_.getCorrectPropertyName)(window,"transition"):"transition",n="none 0s ease 0s";this.adapter.setThumbStyleProperty(t,n,i.END),this.isRange&&this.adapter.setThumbStyleProperty(t,n,i.START),this.adapter.setTrackActiveStyleProperty(t,n),requestAnimationFrame((function(){e.adapter.removeThumbStyleProperty(t,i.END),e.adapter.removeTrackActiveStyleProperty(t),e.isRange&&e.adapter.removeThumbStyleProperty(t,i.START)}))}},t.prototype.updateOverlappingThumbsUI=function(e,t,n){var r=!1;if(this.adapter.isRTL()){var o=e-this.startThumbKnobWidth/2;r=t+this.endThumbKnobWidth/2>=o}else{r=e+this.startThumbKnobWidth/2>=t-this.endThumbKnobWidth/2}r?(this.adapter.addThumbClass(f.THUMB_TOP,n||i.END),this.adapter.removeThumbClass(f.THUMB_TOP,n===i.START?i.END:i.START)):(this.adapter.removeThumbClass(f.THUMB_TOP,i.START),this.adapter.removeThumbClass(f.THUMB_TOP,i.END))},t.prototype.convertAttributeValueToNumber=function(e,t){if(null===e)throw new Error("MDCSliderFoundation: `"+t+"` must be non-null.");var n=Number(e);if(isNaN(n))throw new Error("MDCSliderFoundation: `"+t+"` value is `"+e+"`, but must be a number.");return n},t.prototype.validateProperties=function(e){var t=e.min,n=e.max,r=e.value,i=e.valueStart,o=e.step,a=e.minRange;if(t>=n)throw new Error("MDCSliderFoundation: min must be strictly less than max. Current: [min: "+t+", max: "+n+"]");if(o<=0)throw new Error("MDCSliderFoundation: step must be a positive number. Current step: "+o);if(this.isRange){if(r<t||r>n||i<t||i>n)throw new Error("MDCSliderFoundation: values must be in [min, max] range. Current values: [start value: "+i+", end value: "+r+", min: "+t+", max: "+n+"]");if(i>r)throw new Error("MDCSliderFoundation: start value must be <= end value. Current values: [start value: "+i+", end value: "+r+"]");if(a<0)throw new Error("MDCSliderFoundation: minimum range must be non-negative. Current min range: "+a);if(r-i<a)throw new Error("MDCSliderFoundation: start value and end value must differ by at least "+a+". Current values: [start value: "+i+", end value: "+r+"]");var l=(i-t)/o,s=(r-t)/o;if(!Number.isInteger(parseFloat(l.toFixed(6)))||!Number.isInteger(parseFloat(s.toFixed(6))))throw new Error("MDCSliderFoundation: Slider values must be valid based on the step value ("+o+"). Current values: [start value: "+i+", end value: "+r+", min: "+t+"]")}else{if(r<t||r>n)throw new Error("MDCSliderFoundation: value must be in [min, max] range. Current values: [value: "+r+", min: "+t+", max: "+n+"]");s=(r-t)/o;if(!Number.isInteger(parseFloat(s.toFixed(6))))throw new Error("MDCSliderFoundation: Slider value must be valid based on the step value ("+o+"). Current value: "+r)}},t.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),t.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(i.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(i.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(i.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(i.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(i.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(i.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(i.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(i.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(i.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(i.END,"blur",this.inputEndBlurListener)},t.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),t.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(i.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(i.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(i.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(i.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(i.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(i.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(i.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(i.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(i.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(i.END,"blur",this.inputEndBlurListener)},t.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},t.SUPPORTS_POINTER_EVENTS=y&&Boolean(window.PointerEvent)&&!(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document),t}(b.I);function x(e){var t=/(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(e));if(!t)return 0;var n=t[1]||"",r=t[2]||0;return Math.max(0,("0"===n?0:n.length)-Number(r))}
|
|
491
491
|
/**
|
|
492
492
|
* @license
|
|
493
493
|
* Copyright 2020 Google Inc.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web-input-material",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.487",
|
|
4
4
|
"description": "Reusable material design based input field with support for (richt-)text, code, selections, numbers, dates and so on.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"form-field",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"prop-types": "^15.8.1",
|
|
64
64
|
"react": "^18.3.1",
|
|
65
65
|
"react-dom": "^18.3.1",
|
|
66
|
-
"react-input-material": "^0.0.
|
|
66
|
+
"react-input-material": "^0.0.751",
|
|
67
67
|
"react-transition-group": "^4.4.5",
|
|
68
|
-
"web-component-wrapper": "^0.0.
|
|
68
|
+
"web-component-wrapper": "^0.0.537"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@babel/eslint-parser": "^7.28.5",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@rmwc/icon": "^14.3.5",
|
|
88
88
|
"@rmwc/icon-button": "^14.3.5",
|
|
89
89
|
"@rmwc/select": "^14.3.5",
|
|
90
|
-
"@rmwc/slider": "
|
|
90
|
+
"@rmwc/slider": "^14.3.5",
|
|
91
91
|
"@rmwc/tabs": "^14.3.5",
|
|
92
92
|
"@rmwc/textfield": "^14.3.5",
|
|
93
93
|
"@rmwc/theme": "^14.3.5",
|
|
@@ -95,41 +95,41 @@
|
|
|
95
95
|
"@rmwc/touch-target": "^14.3.5",
|
|
96
96
|
"@rmwc/typography": "^14.3.5",
|
|
97
97
|
"@stylistic/eslint-plugin": "^5.6.1",
|
|
98
|
-
"@tiptap/core": "^3.
|
|
99
|
-
"@tiptap/react": "^3.
|
|
100
|
-
"@tiptap/starter-kit": "^3.
|
|
98
|
+
"@tiptap/core": "^3.13.0",
|
|
99
|
+
"@tiptap/react": "^3.13.0",
|
|
100
|
+
"@tiptap/starter-kit": "^3.13.0",
|
|
101
101
|
"@types/ejs": "^3.1.5",
|
|
102
102
|
"@types/html-minifier": "^4.0.6",
|
|
103
103
|
"@types/jquery": "^3.5.33",
|
|
104
104
|
"@types/jsdom": "^27.0.0",
|
|
105
|
-
"@types/node": "^24.10.
|
|
105
|
+
"@types/node": "^24.10.2",
|
|
106
106
|
"@types/react": "^18.3.27",
|
|
107
107
|
"@types/react-dom": "^18.3.7",
|
|
108
108
|
"@types/react-transition-group": "^4.4.12",
|
|
109
109
|
"@types/webpack-env": "^1.18.8",
|
|
110
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
111
|
-
"@typescript-eslint/parser": "^8.
|
|
110
|
+
"@typescript-eslint/eslint-plugin": "^8.49.0",
|
|
111
|
+
"@typescript-eslint/parser": "^8.49.0",
|
|
112
112
|
"@webcomponents/webcomponentsjs": "^2.8.0",
|
|
113
113
|
"blob-util": "^2.0.2",
|
|
114
|
-
"clientnode": "^3.0.
|
|
114
|
+
"clientnode": "^3.0.1336",
|
|
115
115
|
"documentation-website": "^1.0.397",
|
|
116
116
|
"eslint": "^9.39.1",
|
|
117
117
|
"eslint-config-google": "^0.14.0",
|
|
118
|
-
"eslint-plugin-jsdoc": "^61.
|
|
118
|
+
"eslint-plugin-jsdoc": "^61.5.0",
|
|
119
119
|
"identity-obj-proxy": "^3.0.0",
|
|
120
120
|
"jest": "^30.2.0",
|
|
121
121
|
"jsdoc": "^4.0.5",
|
|
122
122
|
"material-components-web": "^14.0.0",
|
|
123
123
|
"material-icons": "^1.13.14",
|
|
124
|
-
"react-generic-animate": "^0.0.
|
|
125
|
-
"react-generic-dummy": "^0.0.
|
|
126
|
-
"react-generic-tools": "^0.0.
|
|
124
|
+
"react-generic-animate": "^0.0.96",
|
|
125
|
+
"react-generic-dummy": "^0.0.112",
|
|
126
|
+
"react-generic-tools": "^0.0.86",
|
|
127
127
|
"react-useanimations": "^2.10.0",
|
|
128
128
|
"spark-md5": "^3.0.2",
|
|
129
129
|
"style-loader": "^4.0.0",
|
|
130
130
|
"tslib": "^2.8.1",
|
|
131
|
-
"typescript-eslint": "^8.
|
|
132
|
-
"weboptimizer": "^2.0.
|
|
131
|
+
"typescript-eslint": "^8.49.0",
|
|
132
|
+
"weboptimizer": "^2.0.1631",
|
|
133
133
|
"webpack-dev-server": "^5.2.2"
|
|
134
134
|
},
|
|
135
135
|
"peerDependencies": {
|