!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("material-components-web",[],e):"object"==typeof exports?exports.mdc=e():t.mdc=e()}(this,function(){return i={},r.m=n=[function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var i=(Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r);function r(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=i,e.default=i},function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||0=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var a,c=n(0),u=n(47),l=n(19),d=["touchstart","pointerdown","mousedown","keydown"],p=["touchend","pointerup","mouseup","contextmenu"],h=[],f=(a=c.MDCFoundation,r(y,a),Object.defineProperty(y,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(y,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(y,"numbers",{get:function(){return u.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(y,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),y.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=y.cssClasses,i=n.ROOT,r=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(i),t.adapter.isUnbounded()&&(t.adapter.addClass(r),t.layoutInternal())})}},y.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(y.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(y.cssClasses.FG_DEACTIVATION));var e=y.cssClasses,n=e.ROOT,i=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(n),t.adapter.removeClass(i),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},y.prototype.activate=function(t){this.activateImpl(t)},y.prototype.deactivate=function(){this.deactivateImpl()},y.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},y.prototype.setUnbounded=function(t){var e=y.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},y.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(y.cssClasses.BG_FOCUSED)})},y.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(y.cssClasses.BG_FOCUSED)})},y.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},y.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},y.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var i=s(d),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.registerInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},y.prototype.registerDeactivationHandlers=function(t){var e,n;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var i=s(p),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.registerDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},y.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=s(d),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.deregisterInteractionHandler(r,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},y.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=s(p),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.deregisterDocumentInteractionHandler(r,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},y.prototype.removeCssVars=function(){var e=this,n=y.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},y.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var i=this.previousActivationEvent;i&&void 0!==t&&i.type!==t.type||(n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCMenuSurfaceFoundation=void 0;var s,a=n(0),E=n(8),c=(s=a.MDCFoundation,r(g,s),Object.defineProperty(g,"cssClasses",{get:function(){return E.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(g,"strings",{get:function(){return E.strings},enumerable:!1,configurable:!0}),Object.defineProperty(g,"numbers",{get:function(){return E.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(g,"Corner",{get:function(){return E.Corner},enumerable:!1,configurable:!0}),Object.defineProperty(g,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyOpen:function(){},notifyClosing:function(){}}},enumerable:!1,configurable:!0}),g.prototype.init=function(){var t=g.cssClasses,e=t.ROOT,n=t.OPEN;if(!this.adapter.hasClass(e))throw new Error(e+" class required in root element.");this.adapter.hasClass(n)&&(this.isSurfaceOpen=!0)},g.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},g.prototype.setAnchorCorner=function(t){this.anchorCorner=t},g.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^E.CornerBit.RIGHT},g.prototype.setAnchorMargin=function(t){this.anchorMargin.top=t.top||0,this.anchorMargin.right=t.right||0,this.anchorMargin.bottom=t.bottom||0,this.anchorMargin.left=t.left||0},g.prototype.setIsHoisted=function(t){this.isHoistedElement=t},g.prototype.setFixedPosition=function(t){this.isFixedPosition=t},g.prototype.isFixed=function(){return this.isFixedPosition},g.prototype.setAbsolutePosition=function(t,e){this.position.x=this.isFinite(t)?t:0,this.position.y=this.isFinite(e)?e:0},g.prototype.setIsHorizontallyCenteredOnViewport=function(t){this.isHorizontallyCenteredOnViewport=t},g.prototype.setQuickOpen=function(t){this.isQuickOpen=t},g.prototype.setMaxHeight=function(t){this.maxHeight=t},g.prototype.isOpen=function(){return this.isSurfaceOpen},g.prototype.open=function(){var t=this;this.isSurfaceOpen||(this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(g.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(g.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame(function(){t.dimensions=t.adapter.getInnerDimensions(),t.autoposition(),t.adapter.addClass(g.cssClasses.OPEN),t.openAnimationEndTimerId=setTimeout(function(){t.openAnimationEndTimerId=0,t.adapter.removeClass(g.cssClasses.ANIMATING_OPEN),t.adapter.notifyOpen()},E.numbers.TRANSITION_OPEN_DURATION)}),this.isSurfaceOpen=!0))},g.prototype.close=function(t){var e=this;if(void 0===t&&(t=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,t||this.maybeRestoreFocus(),this.adapter.removeClass(g.cssClasses.OPEN),this.adapter.removeClass(g.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(g.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){e.adapter.removeClass(g.cssClasses.OPEN),e.adapter.removeClass(g.cssClasses.IS_OPEN_BELOW),e.closeAnimationEndTimerId=setTimeout(function(){e.closeAnimationEndTimerId=0,e.adapter.removeClass(g.cssClasses.ANIMATING_CLOSED),e.adapter.notifyClose()},E.numbers.TRANSITION_CLOSE_DURATION)}),this.isSurfaceOpen=!1,t||this.maybeRestoreFocus()}},g.prototype.handleBodyClick=function(t){var e=t.target;this.adapter.isElementInContainer(e)||this.close()},g.prototype.handleKeydown=function(t){var e=t.keyCode;"Escape"!==t.key&&27!==e||this.close()},g.prototype.autoposition=function(){var t;this.measurements=this.getAutoLayoutmeasurements();var e=this.getoriginCorner(),n=this.getMenuSurfaceMaxHeight(e),i=this.hasBit(e,E.CornerBit.BOTTOM)?"bottom":"top",r=this.hasBit(e,E.CornerBit.RIGHT)?"right":"left",o=this.getHorizontalOriginOffset(e),s=this.getVerticalOriginOffset(e),a=this.measurements,c=a.anchorSize,u=a.surfaceSize,l=((t={})[r]=o,t[i]=s,t);c.width/u.width>E.numbers.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(r="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(l),this.adapter.setTransformOrigin(r+" "+i),this.adapter.setPosition(l),this.adapter.setMaxHeight(n?n+"px":""),this.hasBit(e,E.CornerBit.BOTTOM)||this.adapter.addClass(g.cssClasses.IS_OPEN_BELOW)},g.prototype.getAutoLayoutmeasurements=function(){var t=this.adapter.getAnchorDimensions(),e=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),i=this.adapter.getWindowScroll();return{anchorSize:t=t||{top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0},bodySize:e,surfaceSize:this.dimensions,viewportDistance:{top:t.top,right:n.width-t.right,bottom:n.height-t.bottom,left:t.left},viewportSize:n,windowScroll:i}},g.prototype.getoriginCorner=function(){var t,e,n=this.originCorner,i=this.measurements,r=i.viewportDistance,o=i.anchorSize,s=i.surfaceSize,a=g.numbers.MARGIN_TO_EDGE;!(0<(e=this.hasBit(this.anchorCorner,E.CornerBit.BOTTOM)?(t=r.top-a+this.anchorMargin.bottom,r.bottom-a-this.anchorMargin.bottom):(t=r.top-a+this.anchorMargin.top,r.bottom-a+o.height-this.anchorMargin.top))-s.height)&&ethis.topAppBarHeight&&(this.currentAppBarOffsetTop=-this.topAppBarHeight),this.moveTopAppBar())},u.prototype.handleWindowResize=function(){var t=this;this.resizeThrottleId||(this.resizeThrottleId=setTimeout(function(){t.resizeThrottleId=0,t.throttledResizeHandler()},s.numbers.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)),this.isCurrentlyBeingResized=!0,this.resizeDebounceId&&clearTimeout(this.resizeDebounceId),this.resizeDebounceId=setTimeout(function(){t.handleTargetScroll(),t.isCurrentlyBeingResized=!1,t.resizeDebounceId=0},s.numbers.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)},u.prototype.checkForUpdate=function(){var t=-this.topAppBarHeight,e=this.currentAppBarOffsetTop<0,n=this.currentAppBarOffsetTop>t,i=e&&n;if(i)this.wasDocked=!1;else{if(!this.wasDocked)return this.wasDocked=!0;if(this.isDockedShowing!==n)return this.isDockedShowing=n,!0}return i},u.prototype.moveTopAppBar=function(){if(this.checkForUpdate()){var t=this.currentAppBarOffsetTop;Math.abs(t)>=this.topAppBarHeight&&(t=-s.numbers.MAX_TOP_APP_BAR_HEIGHT),this.adapter.setStyle("top",t+"px")}},u.prototype.throttledResizeHandler=function(){var t=this.adapter.getTopAppBarHeight();this.topAppBarHeight!==t&&(this.wasDocked=!1,this.currentAppBarOffsetTop-=this.topAppBarHeight-t,this.topAppBarHeight=t),this.handleTargetScroll()},u);function u(t){var e=o.call(this,t)||this;return e.wasDocked=!0,e.isDockedShowing=!0,e.currentAppBarOffsetTop=0,e.isCurrentlyBeingResized=!1,e.resizeThrottleId=0,e.resizeDebounceId=0,e.lastScrollPosition=e.adapter.getViewportScrollY(),e.topAppBarHeight=e.adapter.getTopAppBarHeight(),e}e.MDCTopAppBarFoundation=c,e.default=c},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCCheckbox=void 0;var s,a=n(10),c=n(1),d=n(5),p=n(3),h=n(2),f=n(4),y=n(20),C=n(48),E=["checked","indeterminate"],g=(s=c.MDCComponent,r(_,s),_.attachTo=function(t){return new _(t)},Object.defineProperty(_.prototype,"ripple",{get:function(){return this.rippleSurface},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"checked",{get:function(){return this.getNativeControl().checked},set:function(t){this.getNativeControl().checked=t},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"indeterminate",{get:function(){return this.getNativeControl().indeterminate},set:function(t){this.getNativeControl().indeterminate=t},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"disabled",{get:function(){return this.getNativeControl().disabled},set:function(t){this.foundation.setDisabled(t)},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"value",{get:function(){return this.getNativeControl().value},set:function(t){this.getNativeControl().value=t},enumerable:!1,configurable:!0}),_.prototype.initialize=function(){var t=y.strings.DATA_INDETERMINATE_ATTR;this.getNativeControl().indeterminate="true"===this.getNativeControl().getAttribute(t),this.getNativeControl().removeAttribute(t)},_.prototype.initialSyncWithDOM=function(){var t=this;this.handleChange=function(){t.foundation.handleChange()},this.handleAnimationEnd=function(){t.foundation.handleAnimationEnd()},this.getNativeControl().addEventListener("change",this.handleChange),this.listen(a.getCorrectEventName(window,"animationend"),this.handleAnimationEnd),this.installPropertyChangeHooks()},_.prototype.destroy=function(){this.rippleSurface.destroy(),this.getNativeControl().removeEventListener("change",this.handleChange),this.unlisten(a.getCorrectEventName(window,"animationend"),this.handleAnimationEnd),this.uninstallPropertyChangeHooks(),s.prototype.destroy.call(this)},_.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){return n.root.classList.add(t)},forceLayout:function(){return n.root.offsetWidth},hasNativeControl:function(){return!!n.getNativeControl()},isAttachedToDOM:function(){return Boolean(n.root.parentNode)},isChecked:function(){return n.checked},isIndeterminate:function(){return n.indeterminate},removeClass:function(t){n.root.classList.remove(t)},removeNativeControlAttr:function(t){n.getNativeControl().removeAttribute(t)},setNativeControlAttr:function(t,e){n.getNativeControl().setAttribute(t,e)},setNativeControlDisabled:function(t){n.getNativeControl().disabled=t}};return new C.MDCCheckboxFoundation(t)},_.prototype.createRipple=function(){var n=this,t=o(o({},h.MDCRipple.createAdapter(this)),{deregisterInteractionHandler:function(t,e){n.getNativeControl().removeEventListener(t,e,d.applyPassive())},isSurfaceActive:function(){return p.matches(n.getNativeControl(),":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,e){n.getNativeControl().addEventListener(t,e,d.applyPassive())}});return new h.MDCRipple(this.root,new f.MDCRippleFoundation(t))},_.prototype.installPropertyChangeHooks=function(){function t(t){var e=Object.getOwnPropertyDescriptor(s,t);if(!m(e))return{value:void 0};var n=e.get,i={configurable:e.configurable,enumerable:e.enumerable,get:n,set:function(t){e.set.call(o,t),r.foundation.handleChange()}};Object.defineProperty(o,t,i)}var e,n,r=this,o=this.getNativeControl(),s=Object.getPrototypeOf(o);try{for(var i=l(E),a=i.next();!a.done;a=i.next()){var c=t(a.value);if("object"===(void 0===c?"undefined":u(c)))return c.value}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},_.prototype.uninstallPropertyChangeHooks=function(){var e,t,n=this.getNativeControl(),i=Object.getPrototypeOf(n);try{for(var r=l(E),o=r.next();!o.done;o=r.next()){var s=o.value,a=Object.getOwnPropertyDescriptor(i,s);if(!m(a))return;Object.defineProperty(n,s,a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},_.prototype.getNativeControl=function(){var t=y.strings.NATIVE_CONTROL_SELECTOR,e=this.root.querySelector(t);if(!e)throw new Error("Checkbox component requires a "+t+" element");return e},_);function _(){var t=null!==s&&s.apply(this,arguments)||this;return t.rippleSurface=t.createRipple(),t}function m(t){return!!t&&"function"==typeof t.set}e.MDCCheckbox=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},e.strings={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCLinearProgressFoundation=void 0;var s,c=n(10),u=n(0),l=n(58),d=(s=u.MDCFoundation,r(p,s),Object.defineProperty(p,"cssClasses",{get:function(){return l.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(p,"strings",{get:function(){return l.strings},enumerable:!1,configurable:!0}),Object.defineProperty(p,"defaultAdapter",{get:function(){return{addClass:function(){},attachResizeObserver:function(){return null},forceLayout:function(){},getWidth:function(){return 0},hasClass:function(){return!1},setBufferBarStyle:function(){return null},setPrimaryBarStyle:function(){return null},setStyle:function(){},removeAttribute:function(){},removeClass:function(){},setAttribute:function(){}}},enumerable:!1,configurable:!0}),p.prototype.init=function(){var s=this;this.determinate=!this.adapter.hasClass(l.cssClasses.INDETERMINATE_CLASS),this.adapter.addClass(l.cssClasses.ANIMATION_READY_CLASS),this.progress=0,this.buffer=1,this.observer=this.adapter.attachResizeObserver(function(t){var e,n;if(!s.determinate)try{for(var i=a(t),r=i.next();!r.done;r=i.next()){var o=r.value;o.contentRect&&s.calculateAndSetDimensions(o.contentRect.width)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}),!this.determinate&&this.observer&&this.calculateAndSetDimensions(this.adapter.getWidth())},p.prototype.setDeterminate=function(t){if(this.determinate=t,this.determinate)return this.adapter.removeClass(l.cssClasses.INDETERMINATE_CLASS),this.adapter.setAttribute(l.strings.ARIA_VALUENOW,this.progress.toString()),this.adapter.setAttribute(l.strings.ARIA_VALUEMAX,"1"),this.adapter.setAttribute(l.strings.ARIA_VALUEMIN,"0"),this.setPrimaryBarProgress(this.progress),void this.setBufferBarProgress(this.buffer);this.observer&&this.calculateAndSetDimensions(this.adapter.getWidth()),this.adapter.addClass(l.cssClasses.INDETERMINATE_CLASS),this.adapter.removeAttribute(l.strings.ARIA_VALUENOW),this.adapter.removeAttribute(l.strings.ARIA_VALUEMAX),this.adapter.removeAttribute(l.strings.ARIA_VALUEMIN),this.setPrimaryBarProgress(1),this.setBufferBarProgress(1)},p.prototype.isDeterminate=function(){return this.determinate},p.prototype.setProgress=function(t){this.progress=t,this.determinate&&(this.setPrimaryBarProgress(t),this.adapter.setAttribute(l.strings.ARIA_VALUENOW,t.toString()))},p.prototype.getProgress=function(){return this.progress},p.prototype.setBuffer=function(t){this.buffer=t,this.determinate&&this.setBufferBarProgress(t)},p.prototype.getBuffer=function(){return this.buffer},p.prototype.open=function(){this.adapter.removeClass(l.cssClasses.CLOSED_CLASS),this.adapter.removeClass(l.cssClasses.CLOSED_ANIMATION_OFF_CLASS),this.adapter.removeAttribute(l.strings.ARIA_HIDDEN)},p.prototype.close=function(){this.adapter.addClass(l.cssClasses.CLOSED_CLASS),this.adapter.setAttribute(l.strings.ARIA_HIDDEN,"true")},p.prototype.isClosed=function(){return this.adapter.hasClass(l.cssClasses.CLOSED_CLASS)},p.prototype.handleTransitionEnd=function(){this.adapter.hasClass(l.cssClasses.CLOSED_CLASS)&&this.adapter.addClass(l.cssClasses.CLOSED_ANIMATION_OFF_CLASS)},p.prototype.destroy=function(){s.prototype.destroy.call(this),this.observer&&this.observer.disconnect()},p.prototype.restartAnimation=function(){this.adapter.removeClass(l.cssClasses.ANIMATION_READY_CLASS),this.adapter.forceLayout(),this.adapter.addClass(l.cssClasses.ANIMATION_READY_CLASS)},p.prototype.setPrimaryBarProgress=function(t){var e="scaleX("+t+")",n="undefined"!=typeof window?c.getCorrectPropertyName(window,"transform"):"transform";this.adapter.setPrimaryBarStyle(n,e)},p.prototype.setBufferBarProgress=function(t){var e=100*t+"%";this.adapter.setBufferBarStyle(l.strings.FLEX_BASIS,e)},p.prototype.calculateAndSetDimensions=function(t){var e=t*l.animationDimensionPercentages.PRIMARY_HALF,n=t*l.animationDimensionPercentages.PRIMARY_FULL,i=t*l.animationDimensionPercentages.SECONDARY_QUARTER,r=t*l.animationDimensionPercentages.SECONDARY_HALF,o=t*l.animationDimensionPercentages.SECONDARY_FULL;this.adapter.setStyle("--mdc-linear-progress-primary-half",e+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-half-neg",-e+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-full",n+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-full-neg",-n+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-quarter",i+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-quarter-neg",-i+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-half",r+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-half-neg",-r+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-full",o+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-full-neg",-o+"px"),this.restartAnimation()},p);function p(t){var e=s.call(this,o(o({},p.defaultAdapter),t))||this;return e.observer=null,e}e.MDCLinearProgressFoundation=d,e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.animationDimensionPercentages=e.strings=e.cssClasses=void 0,e.cssClasses={CLOSED_CLASS:"mdc-linear-progress--closed",CLOSED_ANIMATION_OFF_CLASS:"mdc-linear-progress--closed-animation-off",INDETERMINATE_CLASS:"mdc-linear-progress--indeterminate",REVERSED_CLASS:"mdc-linear-progress--reversed",ANIMATION_READY_CLASS:"mdc-linear-progress--animation-ready"},e.strings={ARIA_HIDDEN:"aria-hidden",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUENOW:"aria-valuenow",BUFFER_BAR_SELECTOR:".mdc-linear-progress__buffer-bar",FLEX_BASIS:"flex-basis",PRIMARY_BAR_SELECTOR:".mdc-linear-progress__primary-bar"},e.animationDimensionPercentages={PRIMARY_HALF:.8367142,PRIMARY_FULL:2.00611057,SECONDARY_QUARTER:.37651913,SECONDARY_HALF:.84386165,SECONDARY_FULL:1.60277782}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;ns[0]&&e[1]t.offsetHeight},e.isScrollAtTop=function(t){return!!t&&0===t.scrollTop},e.isScrollAtBottom=function(t){return!!t&&Math.ceil(t.scrollHeight-t.scrollTop)===t.clientHeight},e.areTopsMisaligned=function(t){var e=new Set;return[].forEach.call(t,function(t){return e.add(t.offsetTop)}),1 label"}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSegmentedButtonFoundation=void 0;var a,c=n(0),u=n(81),l=(a=c.MDCFoundation,r(d,a),Object.defineProperty(d,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},getSegments:function(){return[]},selectSegment:function(){},unselectSegment:function(){},notifySelectedChange:function(){}}},enumerable:!1,configurable:!0}),d.prototype.selectSegment=function(t){this.adapter.selectSegment(t)},d.prototype.unselectSegment=function(t){this.adapter.unselectSegment(t)},d.prototype.getSelectedSegments=function(){return this.adapter.getSegments().filter(function(t){return t.selected})},d.prototype.isSegmentSelected=function(e){return this.adapter.getSegments().some(function(t){return(t.index===e||t.segmentId===e)&&t.selected})},d.prototype.isSingleSelect=function(){return this.adapter.hasClass(u.cssClasses.SINGLE_SELECT)},d.prototype.handleSelected=function(t){this.isSingleSelect()&&this.unselectPrevSelected(t.index),this.adapter.notifySelectedChange(t)},d.prototype.unselectPrevSelected=function(t){var e,n;try{for(var i=s(this.getSelectedSegments()),r=i.next();!r.done;r=i.next()){var o=r.value;o.index!==t&&this.unselectSegment(o.index)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},d);function d(t){return a.call(this,o(o({},d.defaultAdapter),t))||this}e.MDCSegmentedButtonFoundation=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=e.events=e.selectors=void 0,e.selectors={SEGMENT:".mdc-segmented-button__segment"},e.events={SELECTED:"selected",CHANGE:"change"},e.cssClasses={SINGLE_SELECT:"mdc-segmented-button--single-select"}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=this.adapter.getMenuItemCount()||(t===l.numbers.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(t).trim()),this.adapter.setSelectedIndex(t),e&&this.adapter.closeMenu(),n||this.lastSelectedIndex===t||this.handleChange(),this.lastSelectedIndex=t)},p.prototype.setValue=function(t,e){void 0===e&&(e=!1);var n=this.adapter.getMenuItemValues().indexOf(t);this.setSelectedIndex(n,!1,e)},p.prototype.getValue=function(){var t=this.adapter.getSelectedIndex(),e=this.adapter.getMenuItemValues();return t!==l.numbers.UNSET_INDEX?e[t]:""},p.prototype.getDisabled=function(){return this.disabled},p.prototype.setDisabled=function(t){this.disabled=t,this.disabled?(this.adapter.addClass(l.cssClasses.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(l.cssClasses.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())},p.prototype.openMenu=function(){this.adapter.addClass(l.cssClasses.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},p.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},p.prototype.layout=function(){if(this.adapter.hasLabel()){var t=0=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSelectIconFoundation=void 0;var a,c=n(0),u=n(91),l=["click","keydown"],d=(a=c.MDCFoundation,r(p,a),Object.defineProperty(p,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(p,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!1,configurable:!0}),p.prototype.init=function(){var e,t;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var n=s(l),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.registerInteractionHandler(r,this.interactionHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},p.prototype.destroy=function(){var e,t;try{for(var n=s(l),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.deregisterInteractionHandler(r,this.interactionHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},p.prototype.setDisabled=function(t){this.savedTabIndex&&(t?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",u.strings.ICON_ROLE)))},p.prototype.setAriaLabel=function(t){this.adapter.setAttr("aria-label",t)},p.prototype.setContent=function(t){this.adapter.setContent(t)},p.prototype.handleInteraction=function(t){var e="Enter"===t.key||13===t.keyCode;"click"!==t.type&&!e||this.adapter.notifyIconAction()},p);function p(t){var e=a.call(this,o(o({},p.defaultAdapter),t))||this;return e.savedTabIndex=null,e.interactionHandler=function(t){e.handleInteraction(t)},e}e.MDCSelectIconFoundation=d,e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=void 0;e.strings={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n= start thumb value ("+this.valueStart+")");this.updateValue(t,p.Thumb.END)},y.prototype.getValueStart=function(){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");return this.valueStart},y.prototype.setValueStart=function(t){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&t>this.value)throw new Error("start thumb value ("+t+") must be <= end thumb value ("+this.value+")");this.updateValue(t,p.Thumb.START)},y.prototype.setStep=function(t){this.step=t,this.numDecimalPlaces=C(t),this.updateUI()},y.prototype.setIsDiscrete=function(t){this.isDiscrete=t,this.updateValueIndicatorUI(),this.updateTickMarksUI()},y.prototype.getStep=function(){return this.step},y.prototype.setHasTickMarks=function(t){this.hasTickMarks=t,this.updateTickMarksUI()},y.prototype.getDisabled=function(){return this.isDisabled},y.prototype.setDisabled=function(t){(this.isDisabled=t)?(this.adapter.addClass(c.cssClasses.DISABLED),this.isRange&&this.adapter.setInputAttribute(c.attributes.INPUT_DISABLED,"",p.Thumb.START),this.adapter.setInputAttribute(c.attributes.INPUT_DISABLED,"",p.Thumb.END)):(this.adapter.removeClass(c.cssClasses.DISABLED),this.isRange&&this.adapter.removeInputAttribute(c.attributes.INPUT_DISABLED,p.Thumb.START),this.adapter.removeInputAttribute(c.attributes.INPUT_DISABLED,p.Thumb.END))},y.prototype.getIsRange=function(){return this.isRange},y.prototype.layout=function(t){var e=(void 0===t?{}:t).skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(p.Thumb.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(p.Thumb.END)),e||this.updateUI()},y.prototype.handleResize=function(){this.layout()},y.prototype.handleDown=function(t){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var e=null!=t.clientX?t.clientX:t.targetTouches[0].clientX;this.downEventClientX=e;var n=this.mapClientXOnSliderScale(e);this.thumb=this.getThumbFromDownEvent(e,n),null!==this.thumb&&(this.handleDragStart(t,n,this.thumb),this.updateValue(n,this.thumb,{emitInputEvent:!0}))}},y.prototype.handleMove=function(t){if(!this.isDisabled){t.preventDefault();var e=null!=t.clientX?t.clientX:t.targetTouches[0].clientX,n=null!=this.thumb;if(this.thumb=this.getThumbFromMoveEvent(e),null!==this.thumb){var i=this.mapClientXOnSliderScale(e);n||(this.handleDragStart(t,i,this.thumb),this.adapter.emitDragStartEvent(i,this.thumb)),this.updateValue(i,this.thumb,{emitInputEvent:!0})}}},y.prototype.handleUp=function(){if(!this.isDisabled&&null!==this.thumb){var t=this.thumb===p.Thumb.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,e=this.thumb===p.Thumb.START?this.valueStart:this.value;t!==e&&this.adapter.emitChangeEvent(e,this.thumb),this.adapter.emitDragEndEvent(e,this.thumb),this.thumb=null}},y.prototype.handleThumbMouseenter=function(){this.isDiscrete&&this.isRange&&(this.adapter.addThumbClass(c.cssClasses.THUMB_WITH_INDICATOR,p.Thumb.START),this.adapter.addThumbClass(c.cssClasses.THUMB_WITH_INDICATOR,p.Thumb.END))},y.prototype.handleThumbMouseleave=function(){this.isDiscrete&&this.isRange&&(this.adapter.isInputFocused(p.Thumb.START)||this.adapter.isInputFocused(p.Thumb.END)||(this.adapter.removeThumbClass(c.cssClasses.THUMB_WITH_INDICATOR,p.Thumb.START),this.adapter.removeThumbClass(c.cssClasses.THUMB_WITH_INDICATOR,p.Thumb.END)))},y.prototype.handleMousedownOrTouchstart=function(t){var e=this,n="mousedown"===t.type?"mousemove":"touchmove";function i(){e.handleUp(),e.adapter.deregisterBodyEventHandler(n,e.moveListener),e.adapter.deregisterEventHandler("mouseup",i),e.adapter.deregisterEventHandler("touchend",i)}this.adapter.registerBodyEventHandler(n,this.moveListener),this.adapter.registerBodyEventHandler("mouseup",i),this.adapter.registerBodyEventHandler("touchend",i),this.handleDown(t)},y.prototype.handlePointerdown=function(t){this.adapter.setPointerCapture(t.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(t)},y.prototype.handleInputChange=function(t){var e=Number(this.adapter.getInputValue(t));t===p.Thumb.START?this.setValueStart(e):this.setValue(e),this.adapter.emitChangeEvent(t===p.Thumb.START?this.valueStart:this.value,t),this.adapter.emitInputEvent(t===p.Thumb.START?this.valueStart:this.value,t)},y.prototype.handleInputFocus=function(t){if(this.adapter.addThumbClass(c.cssClasses.THUMB_FOCUSED,t),this.isDiscrete&&(this.adapter.addThumbClass(c.cssClasses.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===p.Thumb.START?p.Thumb.END:p.Thumb.START;this.adapter.addThumbClass(c.cssClasses.THUMB_WITH_INDICATOR,e)}},y.prototype.handleInputBlur=function(t){if(this.adapter.removeThumbClass(c.cssClasses.THUMB_FOCUSED,t),this.isDiscrete&&(this.adapter.removeThumbClass(c.cssClasses.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===p.Thumb.START?p.Thumb.END:p.Thumb.START;this.adapter.removeThumbClass(c.cssClasses.THUMB_WITH_INDICATOR,e)}},y.prototype.handleDragStart=function(t,e,n){this.adapter.emitDragStartEvent(e,n),this.adapter.focusInput(n),t.preventDefault()},y.prototype.getThumbFromDownEvent=function(t,e){if(!this.isRange)return p.Thumb.END;var n=this.adapter.getThumbBoundingClientRect(p.Thumb.START),i=this.adapter.getThumbBoundingClientRect(p.Thumb.END),r=t>=n.left&&t<=n.right,o=t>=i.left&&t<=i.right;return r&&o?null:r?p.Thumb.START:o?p.Thumb.END:ethis.value?p.Thumb.END:e-this.valueStart<=this.value-e?p.Thumb.START:p.Thumb.END},y.prototype.getThumbFromMoveEvent=function(t){if(null!==this.thumb)return this.thumb;if(null===this.downEventClientX)throw new Error("`downEventClientX` is null after move event.");return Math.abs(this.downEventClientX-t)this.value?this.value:this.isRange&&e===p.Thumb.END&&t ',e.setAttribute(o,i),setTimeout(function(){t.setAttribute("aria-live",n),e.removeAttribute(o),e.textContent=i},r))}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTextFieldFoundation=void 0;var s,a=n(0),c=n(40),l=["mousedown","touchstart"],d=["click","keydown"],p=(s=a.MDCFoundation,r(h,s),Object.defineProperty(h,"cssClasses",{get:function(){return c.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(h,"strings",{get:function(){return c.strings},enumerable:!1,configurable:!0}),Object.defineProperty(h,"numbers",{get:function(){return c.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"shouldAlwaysFloat",{get:function(){var t=this.getNativeInput().type;return 0<=c.ALWAYS_FLOAT_TYPES.indexOf(t)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat||this.isFocused||!!this.getValue()||this.isBadInput()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"shouldShake",{get:function(){return!this.isFocused&&!this.isValid()&&!!this.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(h,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver(function(){})},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!1,configurable:!0}),h.prototype.init=function(){var e,t,n,i;this.adapter.hasLabel()&&this.getNativeInput().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler);try{for(var r=u(l),o=r.next();!o.done;o=r.next()){var s=o.value;this.adapter.registerInputInteractionHandler(s,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}try{for(var a=u(d),c=a.next();!c.done;c=a.next())s=c.value,this.adapter.registerTextFieldInteractionHandler(s,this.textFieldInteractionHandler)}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}this.validationObserver=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler),this.setcharacterCounter(this.getValue().length)},h.prototype.destroy=function(){var e,t,n,i;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler);try{for(var r=u(l),o=r.next();!o.done;o=r.next()){var s=o.value;this.adapter.deregisterInputInteractionHandler(s,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}try{for(var a=u(d),c=a.next();!c.done;c=a.next())s=c.value,this.adapter.deregisterTextFieldInteractionHandler(s,this.textFieldInteractionHandler)}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver)},h.prototype.handleTextFieldInteraction=function(){var t=this.adapter.getNativeInput();t&&t.disabled||(this.receivedUserInput=!0)},h.prototype.handleValidationAttributeChange=function(t){var e=this;t.some(function(t){return-1=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTextFieldIconFoundation=void 0;var a,c=n(0),u=n(116),l=["click","keydown"],d=(a=c.MDCFoundation,r(p,a),Object.defineProperty(p,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(p,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(p,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!1,configurable:!0}),p.prototype.init=function(){var e,t;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var n=s(l),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.registerInteractionHandler(r,this.interactionHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},p.prototype.destroy=function(){var e,t;try{for(var n=s(l),i=n.next();!i.done;i=n.next()){var r=i.value;this.adapter.deregisterInteractionHandler(r,this.interactionHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},p.prototype.setDisabled=function(t){this.savedTabIndex&&(t?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",u.strings.ICON_ROLE)))},p.prototype.setAriaLabel=function(t){this.adapter.setAttr("aria-label",t)},p.prototype.setContent=function(t){this.adapter.setContent(t)},p.prototype.handleInteraction=function(t){var e="Enter"===t.key||13===t.keyCode;"click"!==t.type&&!e||(t.preventDefault(),this.adapter.notifyIconAction())},p);function p(t){var e=a.call(this,o(o({},p.defaultAdapter),t))||this;return e.savedTabIndex=null,e.interactionHandler=function(t){e.handleInteraction(t)},e}e.MDCTextFieldIconFoundation=d,e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssClasses=e.strings=void 0;e.strings={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"};e.cssClasses={ROOT:"mdc-text-field__icon"}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTooltipFoundation=void 0;var s,a=n(23),h=n(10),c=n(0),u=n(6),b=n(42),l=b.CssClasses.RICH,d=b.CssClasses.SHOWN,p=b.CssClasses.SHOWING,f=b.CssClasses.SHOWING_TRANSITION,y=b.CssClasses.HIDE,C=b.CssClasses.HIDE_TRANSITION,E=b.CssClasses.MULTILINE_TOOLTIP;(s=s||{}).POLL_ANCHOR="poll_anchor";var g,_="undefined"!=typeof window,m=(g=c.MDCFoundation,r(v,g),Object.defineProperty(v,"defaultAdapter",{get:function(){return{getAttribute:function(){return null},setAttribute:function(){},removeAttribute:function(){},addClass:function(){},hasClass:function(){return!1},removeClass:function(){},getComputedStyleProperty:function(){return""},setStyleProperty:function(){},setSurfaceAnimationStyleProperty:function(){},getViewportWidth:function(){return 0},getViewportHeight:function(){return 0},getTooltipSize:function(){return{width:0,height:0}},getAnchorBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getParentBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getAnchorAttribute:function(){return null},setAnchorAttribute:function(){return null},isRTL:function(){return!1},anchorContainsElement:function(){return!1},tooltipContainsElement:function(){return!1},focusAnchorElement:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerAnchorEventHandler:function(){},deregisterAnchorEventHandler:function(){},registerDocumentEventHandler:function(){},deregisterDocumentEventHandler:function(){},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){},notifyHidden:function(){},getTooltipCaretBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setTooltipCaretStyle:function(){},clearTooltipCaretStyles:function(){},getActiveElement:function(){return null}}},enumerable:!1,configurable:!0}),v.prototype.init=function(){this.richTooltip=this.adapter.hasClass(l),this.persistentTooltip="true"===this.adapter.getAttribute(b.attributes.PERSISTENT),this.interactiveTooltip=!!this.adapter.getAnchorAttribute(b.attributes.ARIA_EXPANDED)&&"dialog"===this.adapter.getAnchorAttribute(b.attributes.ARIA_HASPOPUP),this.hasCaret=this.richTooltip&&"true"===this.adapter.getAttribute(b.attributes.HAS_CARET)},v.prototype.isShown=function(){return this.tooltipShown},v.prototype.isRich=function(){return this.richTooltip},v.prototype.isPersistent=function(){return this.persistentTooltip},v.prototype.handleAnchorMouseEnter=function(){var t=this;this.tooltipShown?this.show():(this.clearHideTimeout(),this.showTimeout=setTimeout(function(){t.show()},this.showDelayMs))},v.prototype.handleAnchorTouchstart=function(){var t=this;this.showTimeout=setTimeout(function(){t.show()},this.showDelayMs),this.adapter.registerWindowEventHandler("contextmenu",this.preventContextMenuOnLongTouch)},v.prototype.preventContextMenuOnLongTouch=function(t){t.preventDefault()},v.prototype.handleAnchorTouchend=function(){this.clearShowTimeout(),this.isShown()||this.adapter.deregisterWindowEventHandler("contextmenu",this.preventContextMenuOnLongTouch)},v.prototype.handleAnchorFocus=function(t){var e=this,n=t.relatedTarget;n instanceof HTMLElement&&this.adapter.tooltipContainsElement(n)||(this.showTimeout=setTimeout(function(){e.show()},this.showDelayMs))},v.prototype.handleAnchorMouseLeave=function(){var t=this;this.clearShowTimeout(),this.hideTimeout=setTimeout(function(){t.hide()},this.hideDelayMs)},v.prototype.handleAnchorClick=function(){this.tooltipShown?this.hide():this.show()},v.prototype.handleDocumentClick=function(t){var e=t.target instanceof HTMLElement&&(this.adapter.anchorContainsElement(t.target)||this.adapter.tooltipContainsElement(t.target));this.richTooltip&&this.persistentTooltip&&e||this.hide()},v.prototype.handleKeydown=function(t){if(u.normalizeKey(t)===u.KEY.ESCAPE){var e=this.adapter.getActiveElement();e instanceof HTMLElement&&this.adapter.tooltipContainsElement(e)&&this.adapter.focusAnchorElement(),this.hide()}},v.prototype.handleAnchorBlur=function(t){if(this.richTooltip){if(t.relatedTarget instanceof HTMLElement&&this.adapter.tooltipContainsElement(t.relatedTarget))return;if(null===t.relatedTarget&&this.interactiveTooltip)return}this.hide()},v.prototype.handleTooltipMouseEnter=function(){this.show()},v.prototype.handleTooltipMouseLeave=function(){var t=this;this.clearShowTimeout(),this.hideTimeout=setTimeout(function(){t.hide()},this.hideDelayMs)},v.prototype.handleRichTooltipFocusOut=function(t){t.relatedTarget instanceof HTMLElement&&(this.adapter.anchorContainsElement(t.relatedTarget)||this.adapter.tooltipContainsElement(t.relatedTarget))||null===t.relatedTarget&&this.interactiveTooltip||this.hide()},v.prototype.handleWindowScrollEvent=function(){this.persistentTooltip?this.handleWindowChangeEvent():this.hide()},v.prototype.handleWindowChangeEvent=function(){var t=this;this.animFrame.request(s.POLL_ANCHOR,function(){t.repositionTooltipOnAnchorMove()})},v.prototype.show=function(){var e,t,n=this;if(this.clearHideTimeout(),this.clearShowTimeout(),!this.tooltipShown){this.tooltipShown=!0,this.adapter.removeAttribute("aria-hidden"),this.richTooltip&&(this.interactiveTooltip&&this.adapter.setAnchorAttribute("aria-expanded","true"),this.adapter.registerEventHandler("focusout",this.richTooltipFocusOutHandler)),this.persistentTooltip||(this.adapter.registerEventHandler("mouseenter",this.tooltipMouseEnterHandler),this.adapter.registerEventHandler("mouseleave",this.tooltipMouseLeaveHandler)),this.adapter.removeClass(y),this.adapter.addClass(p),this.isTooltipMultiline()&&!this.richTooltip&&this.adapter.addClass(E),this.anchorRect=this.adapter.getAnchorBoundingRect(),this.parentRect=this.adapter.getParentBoundingRect(),this.richTooltip?this.positionRichTooltip():this.positionPlainTooltip(),this.adapter.registerAnchorEventHandler("blur",this.anchorBlurHandler),this.adapter.registerDocumentEventHandler("click",this.documentClickHandler),this.adapter.registerDocumentEventHandler("keydown",this.documentKeydownHandler),this.adapter.registerWindowEventHandler("scroll",this.windowScrollHandler),this.adapter.registerWindowEventHandler("resize",this.windowResizeHandler);try{for(var i=T(this.addAncestorScrollEventListeners),r=i.next();!r.done;r=i.next())(0,r.value)()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.frameId=requestAnimationFrame(function(){n.clearAllAnimationClasses(),n.adapter.addClass(d),n.adapter.addClass(f)})}},v.prototype.hide=function(){var e,t;if(this.clearHideTimeout(),this.clearShowTimeout(),this.tooltipShown){this.frameId&&cancelAnimationFrame(this.frameId),this.tooltipShown=!1,this.adapter.setAttribute("aria-hidden","true"),this.adapter.deregisterEventHandler("focusout",this.richTooltipFocusOutHandler),this.richTooltip&&this.interactiveTooltip&&this.adapter.setAnchorAttribute("aria-expanded","false"),this.persistentTooltip||(this.adapter.deregisterEventHandler("mouseenter",this.tooltipMouseEnterHandler),this.adapter.deregisterEventHandler("mouseleave",this.tooltipMouseLeaveHandler)),this.clearAllAnimationClasses(),this.adapter.addClass(y),this.adapter.addClass(C),this.adapter.removeClass(d),this.adapter.deregisterAnchorEventHandler("blur",this.anchorBlurHandler),this.adapter.deregisterDocumentEventHandler("click",this.documentClickHandler),this.adapter.deregisterDocumentEventHandler("keydown",this.documentKeydownHandler),this.adapter.deregisterWindowEventHandler("scroll",this.windowScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("contextmenu",this.preventContextMenuOnLongTouch);try{for(var n=T(this.removeAncestorScrollEventListeners),i=n.next();!i.done;i=n.next())(0,i.value)()}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}}},v.prototype.handleTransitionEnd=function(){var t=this.adapter.hasClass(y);this.adapter.removeClass(p),this.adapter.removeClass(f),this.adapter.removeClass(y),this.adapter.removeClass(C),t&&this.adapter.notifyHidden()},v.prototype.clearAllAnimationClasses=function(){this.adapter.removeClass(f),this.adapter.removeClass(C)},v.prototype.setTooltipPosition=function(t){var e=t.xPos,n=t.yPos,i=t.withCaretPos;this.hasCaret&&i?this.tooltipPositionWithCaret=i:(e&&(this.xTooltipPos=e),n&&(this.yTooltipPos=n))},v.prototype.setAnchorBoundaryType=function(t){t===b.AnchorBoundaryType.UNBOUNDED?this.anchorGap=b.numbers.UNBOUNDED_ANCHOR_GAP:this.anchorGap=b.numbers.BOUNDED_ANCHOR_GAP},v.prototype.setShowDelay=function(t){this.showDelayMs=t},v.prototype.setHideDelay=function(t){this.hideDelayMs=t},v.prototype.isTooltipMultiline=function(){var t=this.adapter.getTooltipSize();return t.height>b.numbers.MIN_HEIGHT&&t.width>=b.numbers.MAX_WIDTH},v.prototype.positionPlainTooltip=function(){var t=this.calculateTooltipStyles(this.anchorRect),e=t.top,n=t.yTransformOrigin,i=t.left,r=t.xTransformOrigin,o=_?h.getCorrectPropertyName(window,"transform"):"transform";this.adapter.setSurfaceAnimationStyleProperty(o+"-origin",r+" "+n),this.adapter.setStyleProperty("top",e+"px"),this.adapter.setStyleProperty("left",i+"px")},v.prototype.positionRichTooltip=function(){var t,e,n,i,r=this.adapter.getComputedStyleProperty("width");this.adapter.setStyleProperty("width",r);var o=this.hasCaret?this.calculateTooltipWithCaretStyles(this.anchorRect):this.calculateTooltipStyles(this.anchorRect),s=o.top,a=o.yTransformOrigin,c=o.left,u=o.xTransformOrigin,l=_?h.getCorrectPropertyName(window,"transform"):"transform";this.adapter.setSurfaceAnimationStyleProperty(l+"-origin",u+" "+a);var d=c-(null!==(e=null===(t=this.parentRect)||void 0===t?void 0:t.left)&&void 0!==e?e:0),p=s-(null!==(i=null===(n=this.parentRect)||void 0===n?void 0:n.top)&&void 0!==i?i:0);this.adapter.setStyleProperty("top",p+"px"),this.adapter.setStyleProperty("left",d+"px")},v.prototype.calculateTooltipStyles=function(t){if(!t)return{top:0,left:0};var e=this.adapter.getTooltipSize(),n=this.calculateYTooltipDistance(t,e.height),i=this.calculateXTooltipDistance(t,e.width);return{top:n.distance,yTransformOrigin:n.yTransformOrigin,left:i.distance,xTransformOrigin:i.xTransformOrigin}},v.prototype.calculateXTooltipDistance=function(t,e){var n,i,r,o,s,a=!this.adapter.isRTL();s=this.richTooltip?(n=a?t.left-e:t.right,i=a?t.right:t.left-e,o=a?b.strings.RIGHT:b.strings.LEFT,a?b.strings.LEFT:b.strings.RIGHT):(n=a?t.left:t.right-e,i=a?t.right-e:t.left,r=t.left+(t.width-e)/2,o=a?b.strings.LEFT:b.strings.RIGHT,a?b.strings.RIGHT:b.strings.LEFT);var c=this.richTooltip?this.determineValidPositionOptions(n,i):this.determineValidPositionOptions(r,n,i);if(this.xTooltipPos===b.XPosition.START&&c.has(n))return{distance:n,xTransformOrigin:o};if(this.xTooltipPos===b.XPosition.END&&c.has(i))return{distance:i,xTransformOrigin:s};if(this.xTooltipPos===b.XPosition.CENTER&&c.has(r))return{distance:r,xTransformOrigin:b.strings.CENTER};var u=(this.richTooltip?[{distance:i,xTransformOrigin:s},{distance:n,xTransformOrigin:o}]:[{distance:r,xTransformOrigin:b.strings.CENTER},{distance:n,xTransformOrigin:o},{distance:i,xTransformOrigin:s}]).find(function(t){var e=t.distance;return c.has(e)});return u||(t.left<0?{distance:this.minViewportTooltipThreshold,xTransformOrigin:b.strings.LEFT}:{distance:this.adapter.getViewportWidth()-(e+this.minViewportTooltipThreshold),xTransformOrigin:b.strings.RIGHT})},v.prototype.determineValidPositionOptions=function(){for(var e,t,n=[],i=0;i=this.minViewportTooltipThreshold},v.prototype.positionDoesntCollideWithViewport=function(t){var e=this.adapter.getViewportWidth();return t+this.adapter.getTooltipSize().width<=e&&0<=t},v.prototype.calculateYTooltipDistance=function(t,e){var n=t.bottom+this.anchorGap,i=t.top-(this.anchorGap+e),r=this.determineValidYPositionOptions(i,n);return this.yTooltipPos===b.YPosition.ABOVE&&r.has(i)?{distance:i,yTransformOrigin:b.strings.BOTTOM}:this.yTooltipPos===b.YPosition.BELOW&&r.has(n)?{distance:n,yTransformOrigin:b.strings.TOP}:r.has(n)?{distance:n,yTransformOrigin:b.strings.TOP}:r.has(i)?{distance:i,yTransformOrigin:b.strings.BOTTOM}:{distance:n,yTransformOrigin:b.strings.TOP}},v.prototype.determineValidYPositionOptions=function(t,e){var n=new Set,i=new Set;return this.yPositionHonorsViewportThreshold(t)?n.add(t):this.yPositionDoesntCollideWithViewport(t)&&i.add(t),this.yPositionHonorsViewportThreshold(e)?n.add(e):this.yPositionDoesntCollideWithViewport(e)&&i.add(e),n.size?n:i},v.prototype.yPositionHonorsViewportThreshold=function(t){var e=this.adapter.getViewportHeight();return t+this.adapter.getTooltipSize().height+this.minViewportTooltipThreshold<=e&&t>=this.minViewportTooltipThreshold},v.prototype.yPositionDoesntCollideWithViewport=function(t){var e=this.adapter.getViewportHeight();return t+this.adapter.getTooltipSize().height<=e&&0<=t},v.prototype.calculateTooltipWithCaretStyles=function(t){this.adapter.clearTooltipCaretStyles();var e=this.adapter.getTooltipCaretBoundingRect();if(!t||!e)return{position:b.PositionWithCaret.DETECTED,top:0,left:0};var n=e.width/b.numbers.ANIMATION_SCALE,i=e.height/b.numbers.ANIMATION_SCALE/2,r=this.adapter.getTooltipSize(),o=this.calculateYWithCaretDistanceOptions(t,r.height,{caretWidth:n,caretHeight:i}),s=this.calculateXWithCaretDistanceOptions(t,r.width,{caretWidth:n,caretHeight:i}),a=this.validateTooltipWithCaretDistances(o,s);a.size<1&&(a=this.generateBackupPositionOption(t,r,{caretWidth:n,caretHeight:i}));var c=this.determineTooltipWithCaretDistance(a),u=c.position,l=c.xDistance,d=c.yDistance,p=this.setCaretPositionStyles(u,{caretWidth:n,caretHeight:i});return{yTransformOrigin:p.yTransformOrigin,xTransformOrigin:p.xTransformOrigin,top:d,left:l}},v.prototype.calculateXWithCaretDistanceOptions=function(t,e,n){var i=n.caretWidth,r=n.caretHeight,o=!this.adapter.isRTL(),s=t.left+t.width/2,a=t.left-(e+this.anchorGap+r),c=t.right+this.anchorGap+r,u=o?a:c,l=o?c:a,d=s-(b.numbers.CARET_INDENTATION+i/2),p=s-(e-b.numbers.CARET_INDENTATION-i/2),h=o?d:p,f=o?p:d,y=s-e/2;return new Map([[b.XPositionWithCaret.START,h],[b.XPositionWithCaret.CENTER,y],[b.XPositionWithCaret.END,f],[b.XPositionWithCaret.SIDE_END,l],[b.XPositionWithCaret.SIDE_START,u]])},v.prototype.calculateYWithCaretDistanceOptions=function(t,e,n){var i=n.caretWidth,r=n.caretHeight,o=t.top+t.height/2,s=t.bottom+this.anchorGap+r,a=t.top-(this.anchorGap+e+r),c=o-(b.numbers.CARET_INDENTATION+i/2),u=o-e/2,l=o-(e-b.numbers.CARET_INDENTATION-i/2);return new Map([[b.YPositionWithCaret.ABOVE,a],[b.YPositionWithCaret.BELOW,s],[b.YPositionWithCaret.SIDE_TOP,c],[b.YPositionWithCaret.SIDE_CENTER,u],[b.YPositionWithCaret.SIDE_BOTTOM,l]])},v.prototype.repositionTooltipOnAnchorMove=function(){var t=this.adapter.getAnchorBoundingRect();t&&this.anchorRect&&(t.top===this.anchorRect.top&&t.left===this.anchorRect.left&&t.height===this.anchorRect.height&&t.width===this.anchorRect.width||(this.anchorRect=t,this.parentRect=this.adapter.getParentBoundingRect(),this.richTooltip?this.positionRichTooltip():this.positionPlainTooltip()))},v.prototype.validateTooltipWithCaretDistances=function(t,e){var n,i,r,o,s,a,c=new Map,u=new Map,l=new Map([[b.YPositionWithCaret.ABOVE,[b.XPositionWithCaret.START,b.XPositionWithCaret.CENTER,b.XPositionWithCaret.END]],[b.YPositionWithCaret.BELOW,[b.XPositionWithCaret.START,b.XPositionWithCaret.CENTER,b.XPositionWithCaret.END]],[b.YPositionWithCaret.SIDE_TOP,[b.XPositionWithCaret.SIDE_START,b.XPositionWithCaret.SIDE_END]],[b.YPositionWithCaret.SIDE_CENTER,[b.XPositionWithCaret.SIDE_START,b.XPositionWithCaret.SIDE_END]],[b.YPositionWithCaret.SIDE_BOTTOM,[b.XPositionWithCaret.SIDE_START,b.XPositionWithCaret.SIDE_END]]]);try{for(var d=T(l.keys()),p=d.next();!p.done;p=d.next()){var h=p.value,f=t.get(h);if(this.yPositionHonorsViewportThreshold(f))try{for(var y=(r=void 0,T(l.get(h))),C=y.next();!C.done;C=y.next()){var E=C.value,g=e.get(E);if(this.positionHonorsViewportThreshold(g)){var _=this.caretPositionOptionsMapping(E,h);c.set(_,{xDistance:g,yDistance:f})}}}catch(t){r={error:t}}finally{try{C&&!C.done&&(o=y.return)&&o.call(y)}finally{if(r)throw r.error}}else if(this.yPositionDoesntCollideWithViewport(f))try{for(var m=(s=void 0,T(l.get(h))),v=m.next();!v.done;v=m.next())E=v.value,g=e.get(E),this.positionDoesntCollideWithViewport(g)&&(_=this.caretPositionOptionsMapping(E,h),u.set(_,{xDistance:g,yDistance:f}))}catch(t){s={error:t}}finally{try{v&&!v.done&&(a=m.return)&&a.call(m)}finally{if(s)throw s.error}}}}catch(t){n={error:t}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}return c.size?c:u},v.prototype.generateBackupPositionOption=function(t,e,n){var i,r,o,s,a=!this.adapter.isRTL();r=t.left<0?(i=this.minViewportTooltipThreshold+n.caretHeight,a?b.XPositionWithCaret.END:b.XPositionWithCaret.START):(i=this.adapter.getViewportWidth()-(e.width+this.minViewportTooltipThreshold+n.caretHeight),a?b.XPositionWithCaret.START:b.XPositionWithCaret.END),s=t.top<0?(o=this.minViewportTooltipThreshold+n.caretHeight,b.YPositionWithCaret.BELOW):(o=this.adapter.getViewportHeight()-(e.height+this.minViewportTooltipThreshold+n.caretHeight),b.YPositionWithCaret.ABOVE);var c=this.caretPositionOptionsMapping(r,s);return new Map([[c,{xDistance:i,yDistance:o}]])},v.prototype.determineTooltipWithCaretDistance=function(e){if(e.has(this.tooltipPositionWithCaret)){var t=e.get(this.tooltipPositionWithCaret);return{position:this.tooltipPositionWithCaret,xDistance:t.xDistance,yDistance:t.yDistance}}var n=[b.PositionWithCaret.ABOVE_START,b.PositionWithCaret.ABOVE_CENTER,b.PositionWithCaret.ABOVE_END,b.PositionWithCaret.TOP_SIDE_START,b.PositionWithCaret.CENTER_SIDE_START,b.PositionWithCaret.BOTTOM_SIDE_START,b.PositionWithCaret.TOP_SIDE_END,b.PositionWithCaret.CENTER_SIDE_END,b.PositionWithCaret.BOTTOM_SIDE_END,b.PositionWithCaret.BELOW_START,b.PositionWithCaret.BELOW_CENTER,b.PositionWithCaret.BELOW_END].find(function(t){return e.has(t)}),i=e.get(n);return{position:n,xDistance:i.xDistance,yDistance:i.yDistance}},v.prototype.caretPositionOptionsMapping=function(t,e){switch(e){case b.YPositionWithCaret.ABOVE:if(t===b.XPositionWithCaret.START)return b.PositionWithCaret.ABOVE_START;if(t===b.XPositionWithCaret.CENTER)return b.PositionWithCaret.ABOVE_CENTER;if(t===b.XPositionWithCaret.END)return b.PositionWithCaret.ABOVE_END;break;case b.YPositionWithCaret.BELOW:if(t===b.XPositionWithCaret.START)return b.PositionWithCaret.BELOW_START;if(t===b.XPositionWithCaret.CENTER)return b.PositionWithCaret.BELOW_CENTER;if(t===b.XPositionWithCaret.END)return b.PositionWithCaret.BELOW_END;break;case b.YPositionWithCaret.SIDE_TOP:if(t===b.XPositionWithCaret.SIDE_START)return b.PositionWithCaret.TOP_SIDE_START;if(t===b.XPositionWithCaret.SIDE_END)return b.PositionWithCaret.TOP_SIDE_END;break;case b.YPositionWithCaret.SIDE_CENTER:if(t===b.XPositionWithCaret.SIDE_START)return b.PositionWithCaret.CENTER_SIDE_START;if(t===b.XPositionWithCaret.SIDE_END)return b.PositionWithCaret.CENTER_SIDE_END;break;case b.YPositionWithCaret.SIDE_BOTTOM:if(t===b.XPositionWithCaret.SIDE_START)return b.PositionWithCaret.BOTTOM_SIDE_START;if(t===b.XPositionWithCaret.SIDE_END)return b.PositionWithCaret.BOTTOM_SIDE_END}throw new Error("MDCTooltipFoundation: Invalid caret position of "+t+", "+e)},v.prototype.setCaretPositionStyles=function(t,e){var n,i,r=this.calculateCaretPositionOnTooltip(t,e);if(!r)return{yTransformOrigin:0,xTransformOrigin:0};this.adapter.clearTooltipCaretStyles(),this.adapter.setTooltipCaretStyle(r.yAlignment,r.yAxisPx),this.adapter.setTooltipCaretStyle(r.xAlignment,r.xAxisPx);var o=r.skew*(Math.PI/180),s=Math.cos(o);this.adapter.setTooltipCaretStyle("transform","rotate("+r.rotation+"deg) skewY("+r.skew+"deg) scaleX("+s+")"),this.adapter.setTooltipCaretStyle("transform-origin",r.xAlignment+" "+r.yAlignment);try{for(var a=T(r.caretCorners),c=a.next();!c.done;c=a.next()){var u=c.value;this.adapter.setTooltipCaretStyle(u,"0")}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return{yTransformOrigin:r.yTransformOrigin,xTransformOrigin:r.xTransformOrigin}},v.prototype.calculateCaretPositionOnTooltip=function(t,e){var n=!this.adapter.isRTL(),i=this.adapter.getComputedStyleProperty("width"),r=this.adapter.getComputedStyleProperty("height");if(i&&r&&e){var o="calc(("+i+" - "+e.caretWidth+"px) / 2)",s="calc(("+r+" - "+e.caretWidth+"px) / 2)",a=b.numbers.CARET_INDENTATION+"px",c="calc("+i+" - "+a+")",u="calc("+r+" - "+a+")",l=Math.abs(55),d=["border-bottom-right-radius","border-top-left-radius"],p=["border-bottom-left-radius","border-top-right-radius"];switch(t){case b.PositionWithCaret.BELOW_CENTER:return{yAlignment:b.strings.TOP,xAlignment:b.strings.LEFT,yAxisPx:"0",xAxisPx:o,rotation:-35,skew:-20,xTransformOrigin:o,yTransformOrigin:"0",caretCorners:d};case b.PositionWithCaret.BELOW_END:return{yAlignment:b.strings.TOP,xAlignment:n?b.strings.RIGHT:b.strings.LEFT,yAxisPx:"0",xAxisPx:a,rotation:n?35:-35,skew:n?20:-20,xTransformOrigin:n?c:a,yTransformOrigin:"0",caretCorners:n?p:d};case b.PositionWithCaret.BELOW_START:return{yAlignment:b.strings.TOP,xAlignment:n?b.strings.LEFT:b.strings.RIGHT,yAxisPx:"0",xAxisPx:a,rotation:n?-35:35,skew:n?-20:20,xTransformOrigin:n?a:c,yTransformOrigin:"0",caretCorners:n?d:p};case b.PositionWithCaret.TOP_SIDE_END:return{yAlignment:b.strings.TOP,xAlignment:n?b.strings.LEFT:b.strings.RIGHT,yAxisPx:a,xAxisPx:"0",rotation:n?l:-1*l,skew:n?-20:20,xTransformOrigin:n?"0":i,yTransformOrigin:a,caretCorners:n?d:p};case b.PositionWithCaret.CENTER_SIDE_END:return{yAlignment:b.strings.TOP,xAlignment:n?b.strings.LEFT:b.strings.RIGHT,yAxisPx:s,xAxisPx:"0",rotation:n?l:-1*l,skew:n?-20:20,xTransformOrigin:n?"0":i,yTransformOrigin:s,caretCorners:n?d:p};case b.PositionWithCaret.BOTTOM_SIDE_END:return{yAlignment:b.strings.BOTTOM,xAlignment:n?b.strings.LEFT:b.strings.RIGHT,yAxisPx:a,xAxisPx:"0",rotation:n?-1*l:l,skew:n?20:-20,xTransformOrigin:n?"0":i,yTransformOrigin:u,caretCorners:n?p:d};case b.PositionWithCaret.TOP_SIDE_START:return{yAlignment:b.strings.TOP,xAlignment:n?b.strings.RIGHT:b.strings.LEFT,yAxisPx:a,xAxisPx:"0",rotation:n?-1*l:l,skew:n?20:-20,xTransformOrigin:n?i:"0",yTransformOrigin:a,caretCorners:n?p:d};case b.PositionWithCaret.CENTER_SIDE_START:return{yAlignment:b.strings.TOP,xAlignment:n?b.strings.RIGHT:b.strings.LEFT,yAxisPx:s,xAxisPx:"0",rotation:n?-1*l:l,skew:n?20:-20,xTransformOrigin:n?i:"0",yTransformOrigin:s,caretCorners:n?p:d};case b.PositionWithCaret.BOTTOM_SIDE_START:return{yAlignment:b.strings.BOTTOM,xAlignment:n?b.strings.RIGHT:b.strings.LEFT,yAxisPx:a,xAxisPx:"0",rotation:n?l:-1*l,skew:n?-20:20,xTransformOrigin:n?i:"0",yTransformOrigin:u,caretCorners:n?d:p};case b.PositionWithCaret.ABOVE_CENTER:return{yAlignment:b.strings.BOTTOM,xAlignment:b.strings.LEFT,yAxisPx:"0",xAxisPx:o,rotation:35,skew:20,xTransformOrigin:o,yTransformOrigin:r,caretCorners:p};case b.PositionWithCaret.ABOVE_END:return{yAlignment:b.strings.BOTTOM,xAlignment:n?b.strings.RIGHT:b.strings.LEFT,yAxisPx:"0",xAxisPx:a,rotation:n?-35:35,skew:n?-20:20,xTransformOrigin:n?c:a,yTransformOrigin:r,caretCorners:n?d:p};default:case b.PositionWithCaret.ABOVE_START:return{yAlignment:b.strings.BOTTOM,xAlignment:n?b.strings.LEFT:b.strings.RIGHT,yAxisPx:"0",xAxisPx:a,rotation:n?35:-35,skew:n?20:-20,xTransformOrigin:n?a:c,yTransformOrigin:r,caretCorners:n?p:d}}}},v.prototype.clearShowTimeout=function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)},v.prototype.clearHideTimeout=function(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)},v.prototype.attachScrollHandler=function(t){var e=this;this.addAncestorScrollEventListeners.push(function(){t("scroll",e.windowScrollHandler)})},v.prototype.removeScrollHandler=function(t){var e=this;this.removeAncestorScrollEventListeners.push(function(){t("scroll",e.windowScrollHandler)})},v.prototype.destroy=function(){var e,t;this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=null),this.clearHideTimeout(),this.clearShowTimeout(),this.adapter.removeClass(d),this.adapter.removeClass(f),this.adapter.removeClass(p),this.adapter.removeClass(y),this.adapter.removeClass(C),this.richTooltip&&this.adapter.deregisterEventHandler("focusout",this.richTooltipFocusOutHandler),this.persistentTooltip||(this.adapter.deregisterEventHandler("mouseenter",this.tooltipMouseEnterHandler),this.adapter.deregisterEventHandler("mouseleave",this.tooltipMouseLeaveHandler)),this.adapter.deregisterAnchorEventHandler("blur",this.anchorBlurHandler),this.adapter.deregisterDocumentEventHandler("click",this.documentClickHandler),this.adapter.deregisterDocumentEventHandler("keydown",this.documentKeydownHandler),this.adapter.deregisterWindowEventHandler("scroll",this.windowScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler);try{for(var n=T(this.removeAncestorScrollEventListeners),i=n.next();!i.done;i=n.next())(0,i.value)()}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.animFrame.cancelAll()},v);function v(t){var e=g.call(this,o(o({},v.defaultAdapter),t))||this;return e.tooltipShown=!1,e.anchorGap=b.numbers.BOUNDED_ANCHOR_GAP,e.xTooltipPos=b.XPosition.DETECTED,e.yTooltipPos=b.YPosition.DETECTED,e.tooltipPositionWithCaret=b.PositionWithCaret.DETECTED,e.minViewportTooltipThreshold=b.numbers.MIN_VIEWPORT_TOOLTIP_THRESHOLD,e.hideDelayMs=b.numbers.HIDE_DELAY_MS,e.showDelayMs=b.numbers.SHOW_DELAY_MS,e.anchorRect=null,e.parentRect=null,e.frameId=null,e.hideTimeout=null,e.showTimeout=null,e.addAncestorScrollEventListeners=new Array,e.removeAncestorScrollEventListeners=new Array,e.animFrame=new a.AnimationFrame,e.anchorBlurHandler=function(t){e.handleAnchorBlur(t)},e.documentClickHandler=function(t){e.handleDocumentClick(t)},e.documentKeydownHandler=function(t){e.handleKeydown(t)},e.tooltipMouseEnterHandler=function(){e.handleTooltipMouseEnter()},e.tooltipMouseLeaveHandler=function(){e.handleTooltipMouseLeave()},e.richTooltipFocusOutHandler=function(t){e.handleRichTooltipFocusOut(t)},e.windowScrollHandler=function(){e.handleWindowScrollEvent()},e.windowResizeHandler=function(){e.handleWindowChangeEvent()},e}e.MDCTooltipFoundation=m,e.default=m},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFixedTopAppBarFoundation=void 0;var o,s=n(9),a=n(43),c=(o=a.MDCTopAppBarFoundation,r(u,o),u.prototype.handleTargetScroll=function(){this.adapter.getViewportScrollY()<=0?this.wasScrolled&&(this.adapter.removeClass(s.cssClasses.FIXED_SCROLLED_CLASS),this.wasScrolled=!1):this.wasScrolled||(this.adapter.addClass(s.cssClasses.FIXED_SCROLLED_CLASS),this.wasScrolled=!0)},u);function u(){var t=null!==o&&o.apply(this,arguments)||this;return t.wasScrolled=!1,t}e.MDCFixedTopAppBarFoundation=c,e.default=c},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCShortTopAppBarFoundation=void 0;var o,s=n(9),a=n(44),c=(o=a.MDCTopAppBarBaseFoundation,r(u,o),Object.defineProperty(u.prototype,"isCollapsed",{get:function(){return this.collapsed},enumerable:!1,configurable:!0}),u.prototype.init=function(){o.prototype.init.call(this),0=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.mdcAutoInit=void 0;var i=n(122),p=i.strings.AUTO_INIT_ATTR,h=i.strings.AUTO_INIT_STATE_ATTR,f=i.strings.INITIALIZED_STATE,y={},r=console.warn.bind(console);function o(t){var e,n;void 0===t&&(t=document);var i=[],r=[].slice.call(t.querySelectorAll("["+p+"]"));r=r.filter(function(t){return t.getAttribute(h)!==f});try{for(var o=d(r),s=o.next();!s.done;s=o.next()){var a=s.value,c=a.getAttribute(p);if(!c)throw new Error("(mdc-auto-init) Constructor name must be given.");var u=y[c];if("function"!=typeof u)throw new Error("(mdc-auto-init) Could not find constructor in registry for "+c);var l=u.attachTo(a);Object.defineProperty(a,c,{configurable:!0,enumerable:!1,value:l,writable:!1}),i.push(l),a.setAttribute(h,f)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return function(t,e,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:n,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),document.dispatchEvent(i)}("MDCAutoInit:End",{}),i}(e.mdcAutoInit=o).register=function(t,e,n){if(void 0===n&&(n=r),"function"!=typeof e)throw new Error("(mdc-auto-init) Invalid Constructor value: "+e+". Expected function.");var i=y[t];i&&n("(mdc-auto-init) Overriding registration for "+t+" with "+e+". Was: "+i),y[t]=e},o.deregister=function(t){delete y[t]},o.deregisterAll=function(){Object.keys(y).forEach(this.deregister,this)},e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.strings=void 0,e.strings={AUTO_INIT_ATTR:"data-mdc-auto-init",AUTO_INIT_STATE_ATTR:"data-mdc-auto-init-state",INITIALIZED_STATE:"initialized"}},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(124),e),r(n(125),e),r(n(18),e),r(n(45),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.MDCBanner=void 0;var o,s=n(1),a=n(11),c=n(3),u=n(18),l=n(45),d=(o=s.MDCComponent,r(p,o),p.attachTo=function(t){return new p(t)},p.prototype.initialize=function(t){var n=this;void 0===t&&(t=function(t,e){return new a.FocusTrap(t,e)}),this.contentEl=this.root.querySelector(u.selectors.CONTENT),this.textEl=this.root.querySelector(u.selectors.TEXT),this.primaryActionEl=this.root.querySelector(u.selectors.PRIMARY_ACTION),this.secondaryActionEl=this.root.querySelector(u.selectors.SECONDARY_ACTION),this.focusTrapFactory=t,this.handleContentClick=function(t){var e=t.target;c.closest(e,u.selectors.PRIMARY_ACTION)?n.foundation.handlePrimaryActionClick():c.closest(e,u.selectors.SECONDARY_ACTION)&&n.foundation.handleSecondaryActionClick()}},p.prototype.initialSyncWithDOM=function(){this.registerContentClickHandler(this.handleContentClick),this.focusTrap=this.focusTrapFactory(this.root,{initialFocusEl:this.primaryActionEl})},p.prototype.destroy=function(){o.prototype.destroy.call(this),this.deregisterContentClickHandler(this.handleContentClick)},p.prototype.layout=function(){this.foundation.layout()},p.prototype.open=function(){this.foundation.open()},p.prototype.close=function(t){this.foundation.close(t)},p.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){n.root.classList.add(t)},getContentHeight:function(){return n.contentEl.offsetHeight},notifyClosed:function(t){n.emit(u.events.CLOSED,{reason:t})},notifyClosing:function(t){n.emit(u.events.CLOSING,{reason:t})},notifyOpened:function(){n.emit(u.events.OPENED,{})},notifyOpening:function(){n.emit(u.events.OPENING,{})},releaseFocus:function(){n.focusTrap.releaseFocus()},removeClass:function(t){n.root.classList.remove(t)},setStyleProperty:function(t,e){n.root.style.setProperty(t,e)},trapFocus:function(){n.focusTrap.trapFocus()}};return new l.MDCBannerFoundation(t)},Object.defineProperty(p.prototype,"isOpen",{get:function(){return this.foundation.isOpen()},enumerable:!1,configurable:!0}),p.prototype.getText=function(){return this.textEl.textContent||""},p.prototype.setText=function(t){this.textEl.textContent=t},p.prototype.getPrimaryActionText=function(){return this.primaryActionEl.textContent||""},p.prototype.setPrimaryActionText=function(t){this.primaryActionEl.textContent=t},p.prototype.getSecondaryActionText=function(){return this.secondaryActionEl?this.secondaryActionEl.textContent||"":null},p.prototype.setSecondaryActionText=function(t){this.secondaryActionEl&&(this.secondaryActionEl.textContent=t)},p.prototype.registerContentClickHandler=function(t){this.contentEl.addEventListener("click",t)},p.prototype.deregisterContentClickHandler=function(t){this.contentEl.removeEventListener("click",t)},p);function p(){return null!==o&&o.apply(this,arguments)||this}e.MDCBanner=d},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(1),e),r(n(0),e),r(n(127),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(129),e),r(n(46),e),r(n(20),e),r(n(48),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(131),e),r(n(134),e),r(n(137),e)},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.trailingActionStrings=void 0,r(n(132),e),r(n(49),e),r(n(50),e),r(n(133),e);var o=n(12);Object.defineProperty(e,"trailingActionStrings",{enumerable:!0,get:function(){return o.strings}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.chipStrings=e.chipCssClasses=void 0,r(n(135),e),r(n(51),e),r(n(21),e),r(n(136),e);var o=n(13);Object.defineProperty(e,"chipCssClasses",{enumerable:!0,get:function(){return o.cssClasses}}),Object.defineProperty(e,"chipStrings",{enumerable:!0,get:function(){return o.strings}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.chipSetStrings=e.chipSetCssClasses=void 0,r(n(138),e),r(n(139),e),r(n(52),e);var o=n(53);Object.defineProperty(e,"chipSetCssClasses",{enumerable:!0,get:function(){return o.cssClasses}}),Object.defineProperty(e,"chipSetStrings",{enumerable:!0,get:function(){return o.strings}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCChipSet=void 0;var o,a=n(1),c=n(140),u=n(51),l=n(21),d=n(52),p=l.MDCChipFoundation.strings,h=p.INTERACTION_EVENT,f=p.SELECTION_EVENT,y=p.REMOVAL_EVENT,C=p.NAVIGATION_EVENT,E=d.MDCChipSetFoundation.strings.CHIP_SELECTOR,g=0,_=(o=a.MDCComponent,r(m,o),m.attachTo=function(t){return new m(t)},Object.defineProperty(m.prototype,"chips",{get:function(){return this.chipsList.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"selectedChipIds",{get:function(){return this.foundation.getSelectedChipIds()},enumerable:!1,configurable:!0}),m.prototype.initialize=function(t){void 0===t&&(t=function(t){return new u.MDCChip(t)}),this.chipFactory=t,this.chipsList=this.instantiateChips(this.chipFactory)},m.prototype.initialSyncWithDOM=function(){var e,t,n=this;try{for(var i=s(this.chipsList),r=i.next();!r.done;r=i.next()){var o=r.value;o.id&&o.selected&&this.foundation.select(o.id)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.handleChipInteraction=function(t){return n.foundation.handleChipInteraction(t.detail)},this.handleChipSelection=function(t){return n.foundation.handleChipSelection(t.detail)},this.handleChipRemoval=function(t){return n.foundation.handleChipRemoval(t.detail)},this.handleChipNavigation=function(t){return n.foundation.handleChipNavigation(t.detail)},this.listen(h,this.handleChipInteraction),this.listen(f,this.handleChipSelection),this.listen(y,this.handleChipRemoval),this.listen(C,this.handleChipNavigation)},m.prototype.destroy=function(){var e,t;try{for(var n=s(this.chipsList),i=n.next();!i.done;i=n.next())i.value.destroy()}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.unlisten(h,this.handleChipInteraction),this.unlisten(f,this.handleChipSelection),this.unlisten(y,this.handleChipRemoval),this.unlisten(C,this.handleChipNavigation),o.prototype.destroy.call(this)},m.prototype.addChip=function(t){t.id=t.id||"mdc-chip-"+ ++g,this.chipsList.push(this.chipFactory(t))},m.prototype.getDefaultFoundation=function(){var i=this,t={announceMessage:function(t){c.announce(t)},focusChipPrimaryActionAtIndex:function(t){i.chipsList[t].focusPrimaryAction()},focusChipTrailingActionAtIndex:function(t){i.chipsList[t].focusTrailingAction()},getChipListCount:function(){return i.chips.length},getIndexOfChipById:function(t){return i.findChipIndex(t)},hasClass:function(t){return i.root.classList.contains(t)},isRTL:function(){return"rtl"===window.getComputedStyle(i.root).getPropertyValue("direction")},removeChipAtIndex:function(t){0<=t&&t=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCDataTable=void 0;var s,a=n(1),c=n(46),u=n(3),l=n(56),d=n(22),p=n(59),h=(s=a.MDCComponent,r(f,s),f.attachTo=function(t){return new f(t)},f.prototype.initialize=function(t){void 0===t&&(t=function(t){return new c.MDCCheckbox(t)}),this.checkboxFactory=t},f.prototype.initialSyncWithDOM=function(){var n=this;this.headerRow=this.root.querySelector("."+d.cssClasses.HEADER_ROW),this.handleHeaderRowCheckboxChange=function(){n.foundation.handleHeaderRowCheckboxChange()},this.headerRow.addEventListener("change",this.handleHeaderRowCheckboxChange),this.headerRowClickListener=function(t){n.handleHeaderRowClick(t)},this.headerRow.addEventListener("click",this.headerRowClickListener),this.content=this.root.querySelector("."+d.cssClasses.CONTENT),this.handleContentClick=function(t){var e=u.closest(t.target,d.selectors.ROW);e&&n.foundation.handleRowClick({rowId:n.getRowIdByRowElement(e),row:e})},this.content.addEventListener("click",this.handleContentClick),this.handleRowCheckboxChange=function(t){n.foundation.handleRowCheckboxChange(t)},this.content.addEventListener("change",this.handleRowCheckboxChange),this.layout()},f.prototype.layout=function(){this.foundation.layout()},f.prototype.getHeaderCells=function(){return[].slice.call(this.root.querySelectorAll(d.selectors.HEADER_CELL))},f.prototype.getRows=function(){return this.foundation.getRows()},f.prototype.getSelectedRowIds=function(){return this.foundation.getSelectedRowIds()},f.prototype.setSelectedRowIds=function(t){this.foundation.setSelectedRowIds(t)},f.prototype.showProgress=function(){this.getLinearProgress().open(),this.foundation.showProgress()},f.prototype.hideProgress=function(){this.foundation.hideProgress(),this.getLinearProgress().close()},f.prototype.destroy=function(){var e,t;if(this.handleHeaderRowCheckboxChange&&this.headerRow.removeEventListener("change",this.handleHeaderRowCheckboxChange),this.headerRowClickListener&&this.headerRow.removeEventListener("click",this.headerRowClickListener),this.handleRowCheckboxChange&&this.content.removeEventListener("change",this.handleRowCheckboxChange),this.headerRowCheckbox&&this.headerRowCheckbox.destroy(),this.rowCheckboxList)try{for(var n=o(this.rowCheckboxList),i=n.next();!i.done;i=n.next())i.value.destroy()}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.handleContentClick&&this.content.removeEventListener("click",this.handleContentClick)},f.prototype.getDefaultFoundation=function(){var i=this,t={addClass:function(t){i.root.classList.add(t)},removeClass:function(t){i.root.classList.remove(t)},getHeaderCellElements:function(){return i.getHeaderCells()},getHeaderCellCount:function(){return i.getHeaderCells().length},getAttributeByHeaderCellIndex:function(t,e){return i.getHeaderCells()[t].getAttribute(e)},setAttributeByHeaderCellIndex:function(t,e,n){i.getHeaderCells()[t].setAttribute(e,n)},setClassNameByHeaderCellIndex:function(t,e){i.getHeaderCells()[t].classList.add(e)},removeClassNameByHeaderCellIndex:function(t,e){i.getHeaderCells()[t].classList.remove(e)},notifySortAction:function(t){i.emit(d.events.SORTED,t,!0)},getTableContainerHeight:function(){var t=i.root.querySelector("."+d.cssClasses.TABLE_CONTAINER);if(!t)throw new Error("MDCDataTable: Table container element not found.");return t.getBoundingClientRect().height},getTableHeaderHeight:function(){var t=i.root.querySelector(d.selectors.HEADER_ROW);if(!t)throw new Error("MDCDataTable: Table header element not found.");return t.getBoundingClientRect().height},setProgressIndicatorStyles:function(t){var e=i.root.querySelector(d.selectors.PROGRESS_INDICATOR);if(!e)throw new Error("MDCDataTable: Progress indicator element not found.");e.style.setProperty("height",t.height),e.style.setProperty("top",t.top)},addClassAtRowIndex:function(t,e){i.getRows()[t].classList.add(e)},getRowCount:function(){return i.getRows().length},getRowElements:function(){return[].slice.call(i.root.querySelectorAll(d.selectors.ROW))},getRowIdAtIndex:function(t){return i.getRows()[t].getAttribute(d.dataAttributes.ROW_ID)},getRowIndexByChildElement:function(t){return i.getRows().indexOf(u.closest(t,d.selectors.ROW))},getSelectedRowCount:function(){return i.root.querySelectorAll(d.selectors.ROW_SELECTED).length},isCheckboxAtRowIndexChecked:function(t){return i.rowCheckboxList[t].checked},isHeaderRowCheckboxChecked:function(){return i.headerRowCheckbox.checked},isRowsSelectable:function(){return!!i.root.querySelector(d.selectors.ROW_CHECKBOX)||!!i.root.querySelector(d.selectors.HEADER_ROW_CHECKBOX)},notifyRowSelectionChanged:function(t){i.emit(d.events.ROW_SELECTION_CHANGED,{row:i.getRowByIndex(t.rowIndex),rowId:i.getRowIdByIndex(t.rowIndex),rowIndex:t.rowIndex,selected:t.selected},!0)},notifySelectedAll:function(){i.emit(d.events.SELECTED_ALL,{},!0)},notifyUnselectedAll:function(){i.emit(d.events.UNSELECTED_ALL,{},!0)},notifyRowClick:function(t){i.emit(d.events.ROW_CLICK,t,!0)},registerHeaderRowCheckbox:function(){i.headerRowCheckbox&&i.headerRowCheckbox.destroy();var t=i.root.querySelector(d.selectors.HEADER_ROW_CHECKBOX);i.headerRowCheckbox=i.checkboxFactory(t)},registerRowCheckboxes:function(){i.rowCheckboxList&&i.rowCheckboxList.forEach(function(t){t.destroy()}),i.rowCheckboxList=[],i.getRows().forEach(function(t){var e=i.checkboxFactory(t.querySelector(d.selectors.ROW_CHECKBOX));i.rowCheckboxList.push(e)})},removeClassAtRowIndex:function(t,e){i.getRows()[t].classList.remove(e)},setAttributeAtRowIndex:function(t,e,n){i.getRows()[t].setAttribute(e,n)},setHeaderRowCheckboxChecked:function(t){i.headerRowCheckbox.checked=t},setHeaderRowCheckboxIndeterminate:function(t){i.headerRowCheckbox.indeterminate=t},setRowCheckboxCheckedAtIndex:function(t,e){i.rowCheckboxList[t].checked=e},setSortStatusLabelByHeaderCellIndex:function(t,e){var n=i.getHeaderCells()[t].querySelector(d.selectors.SORT_STATUS_LABEL);n&&(n.textContent=i.getSortStatusMessageBySortValue(e))}};return new p.MDCDataTableFoundation(t)},f.prototype.getRowByIndex=function(t){return this.getRows()[t]},f.prototype.getRowIdByIndex=function(t){return this.getRowByIndex(t).getAttribute(d.dataAttributes.ROW_ID)},f.prototype.handleHeaderRowClick=function(t){var e=u.closest(t.target,d.selectors.HEADER_CELL_WITH_SORT);if(e){var n=e.getAttribute(d.dataAttributes.COLUMN_ID),i=this.getHeaderCells().indexOf(e);-1!==i&&this.foundation.handleSortAction({columnId:n,columnIndex:i,headerCell:e})}},f.prototype.getSortStatusMessageBySortValue=function(t){switch(t){case d.SortValue.ASCENDING:return d.messages.SORTED_IN_ASCENDING;case d.SortValue.DESCENDING:return d.messages.SORTED_IN_DESCENDING;default:return""}},f.prototype.getLinearProgressElement=function(){var t=this.root.querySelector("."+d.cssClasses.LINEAR_PROGRESS);if(!t)throw new Error("MDCDataTable: linear progress element is not found.");return t},f.prototype.getLinearProgress=function(){if(!this.linearProgress){var t=this.getLinearProgressElement();this.linearProgress=new l.MDCLinearProgress(t)}return this.linearProgress},f.prototype.getRowIdByRowElement=function(t){return t.getAttribute(d.dataAttributes.ROW_ID)},f);function f(){return null!==s&&s.apply(this,arguments)||this}e.MDCDataTable=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return r(e,t),e},s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.util=void 0;var a=o(n(60));e.util=a,s(n(149),e),s(n(150),e),s(n(62),e),s(n(61),e),s(n(151),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return s(e,t),e},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCDialog=void 0;var u,l=n(1),d=n(11),p=n(3),h=n(2),f=n(61),y=a(n(60)),C=f.MDCDialogFoundation.strings,E=(u=l.MDCComponent,r(g,u),Object.defineProperty(g.prototype,"isOpen",{get:function(){return this.foundation.isOpen()},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"escapeKeyAction",{get:function(){return this.foundation.getEscapeKeyAction()},set:function(t){this.foundation.setEscapeKeyAction(t)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"scrimClickAction",{get:function(){return this.foundation.getScrimClickAction()},set:function(t){this.foundation.setScrimClickAction(t)},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"autoStackButtons",{get:function(){return this.foundation.getAutoStackButtons()},set:function(t){this.foundation.setAutoStackButtons(t)},enumerable:!1,configurable:!0}),g.attachTo=function(t){return new g(t)},g.prototype.initialize=function(t){var e,n;void 0===t&&(t=function(t,e){return new d.FocusTrap(t,e)});var i=this.root.querySelector(C.CONTAINER_SELECTOR);if(!i)throw new Error("Dialog component requires a "+C.CONTAINER_SELECTOR+" container element");this.container=i,this.content=this.root.querySelector(C.CONTENT_SELECTOR),this.buttons=[].slice.call(this.root.querySelectorAll(C.BUTTON_SELECTOR)),this.defaultButton=this.root.querySelector("["+C.BUTTON_DEFAULT_ATTRIBUTE+"]"),this.focusTrapFactory=t,this.buttonRipples=[];try{for(var r=c(this.buttons),o=r.next();!o.done;o=r.next()){var s=o.value;this.buttonRipples.push(new h.MDCRipple(s))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},g.prototype.initialSyncWithDOM=function(){var t=this;this.focusTrap=y.createFocusTrapInstance(this.container,this.focusTrapFactory,this.getInitialFocusEl()||void 0),this.handleClick=this.foundation.handleClick.bind(this.foundation),this.handleKeydown=this.foundation.handleKeydown.bind(this.foundation),this.handleDocumentKeydown=this.foundation.handleDocumentKeydown.bind(this.foundation),this.handleOpening=function(){document.addEventListener("keydown",t.handleDocumentKeydown)},this.handleClosing=function(){document.removeEventListener("keydown",t.handleDocumentKeydown)},this.listen("click",this.handleClick),this.listen("keydown",this.handleKeydown),this.listen(C.OPENING_EVENT,this.handleOpening),this.listen(C.CLOSING_EVENT,this.handleClosing)},g.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.unlisten("keydown",this.handleKeydown),this.unlisten(C.OPENING_EVENT,this.handleOpening),this.unlisten(C.CLOSING_EVENT,this.handleClosing),this.handleClosing(),this.buttonRipples.forEach(function(t){t.destroy()}),u.prototype.destroy.call(this)},g.prototype.layout=function(){this.foundation.layout()},g.prototype.open=function(){this.foundation.open()},g.prototype.close=function(t){void 0===t&&(t=""),this.foundation.close(t)},g.prototype.getDefaultFoundation=function(){var n=this,t={addBodyClass:function(t){return document.body.classList.add(t)},addClass:function(t){return n.root.classList.add(t)},areButtonsStacked:function(){return y.areTopsMisaligned(n.buttons)},clickDefaultButton:function(){n.defaultButton&&!n.defaultButton.disabled&&n.defaultButton.click()},eventTargetMatches:function(t,e){return!!t&&p.matches(t,e)},getActionFromEvent:function(t){if(!t.target)return"";var e=p.closest(t.target,"["+C.ACTION_ATTRIBUTE+"]");return e&&e.getAttribute(C.ACTION_ATTRIBUTE)},getInitialFocusEl:function(){return n.getInitialFocusEl()},hasClass:function(t){return n.root.classList.contains(t)},isContentScrollable:function(){return y.isScrollable(n.content)},notifyClosed:function(t){return n.emit(C.CLOSED_EVENT,t?{action:t}:{})},notifyClosing:function(t){return n.emit(C.CLOSING_EVENT,t?{action:t}:{})},notifyOpened:function(){return n.emit(C.OPENED_EVENT,{})},notifyOpening:function(){return n.emit(C.OPENING_EVENT,{})},releaseFocus:function(){n.focusTrap.releaseFocus()},removeBodyClass:function(t){return document.body.classList.remove(t)},removeClass:function(t){return n.root.classList.remove(t)},reverseButtons:function(){n.buttons.reverse(),n.buttons.forEach(function(t){t.parentElement.appendChild(t)})},trapFocus:function(){n.focusTrap.trapFocus()},registerContentEventHandler:function(t,e){n.content instanceof HTMLElement&&n.content.addEventListener(t,e)},deregisterContentEventHandler:function(t,e){n.content instanceof HTMLElement&&n.content.removeEventListener(t,e)},isScrollableContentAtTop:function(){return y.isScrollAtTop(n.content)},isScrollableContentAtBottom:function(){return y.isScrollAtBottom(n.content)},registerWindowEventHandler:function(t,e){window.addEventListener(t,e)},deregisterWindowEventHandler:function(t,e){window.removeEventListener(t,e)}};return new f.MDCDialogFoundation(t)},g.prototype.getInitialFocusEl=function(){return this.root.querySelector("["+C.INITIAL_FOCUS_ATTRIBUTE+"]")},g);function g(){return null!==u&&u.apply(this,arguments)||this}e.MDCDialog=E},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return r(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.ponyfill=e.keyboard=e.focusTrap=e.events=void 0;var s=o(n(5));e.events=s;var a=o(n(11));e.focusTrap=a;var c=o(n(6));e.keyboard=c;var u=o(n(3));e.ponyfill=u},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return r(e,t),e},s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.util=void 0;var a=o(n(63));e.util=a,s(n(154),e),s(n(155),e),s(n(65),e),s(n(26),e),s(n(66),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return s(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCDrawer=void 0;var c,u=n(1),l=n(11),d=n(24),p=n(26),h=n(66),f=a(n(63)),y=p.MDCDismissibleDrawerFoundation.cssClasses,C=p.MDCDismissibleDrawerFoundation.strings,E=(c=u.MDCComponent,r(g,c),g.attachTo=function(t){return new g(t)},Object.defineProperty(g.prototype,"open",{get:function(){return this.foundation.isOpen()},set:function(t){t?this.foundation.open():this.foundation.close()},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"list",{get:function(){return this.innerList},enumerable:!1,configurable:!0}),g.prototype.initialize=function(t,e){void 0===t&&(t=function(t){return new l.FocusTrap(t)}),void 0===e&&(e=function(t){return new d.MDCList(t)});var n=this.root.querySelector(C.LIST_SELECTOR);n&&(this.innerList=e(n),this.innerList.wrapFocus=!0),this.focusTrapFactory=t},g.prototype.initialSyncWithDOM=function(){var e=this,t=y.MODAL,n=C.SCRIM_SELECTOR;this.scrim=this.root.parentNode.querySelector(n),this.scrim&&this.root.classList.contains(t)&&(this.handleScrimClick=function(){return e.foundation.handleScrimClick()},this.scrim.addEventListener("click",this.handleScrimClick),this.focusTrap=f.createFocusTrapInstance(this.root,this.focusTrapFactory)),this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleTransitionEnd=function(t){e.foundation.handleTransitionEnd(t)},this.listen("keydown",this.handleKeydown),this.listen("transitionend",this.handleTransitionEnd)},g.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten("transitionend",this.handleTransitionEnd),this.innerList&&this.innerList.destroy();var t=y.MODAL;this.scrim&&this.handleScrimClick&&this.root.classList.contains(t)&&(this.scrim.removeEventListener("click",this.handleScrimClick),this.open=!1)},g.prototype.getDefaultFoundation=function(){var e=this,t={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)},elementHasClass:function(t,e){return t.classList.contains(e)},saveFocus:function(){e.previousFocus=document.activeElement},restoreFocus:function(){var t=e.previousFocus;t&&t.focus&&e.root.contains(document.activeElement)&&t.focus()},focusActiveNavigationItem:function(){var t=e.root.querySelector(C.LIST_ITEM_ACTIVATED_SELECTOR);t&&t.focus()},notifyClose:function(){e.emit(C.CLOSE_EVENT,{},!0)},notifyOpen:function(){e.emit(C.OPEN_EVENT,{},!0)},trapFocus:function(){e.focusTrap.trapFocus()},releaseFocus:function(){e.focusTrap.releaseFocus()}},n=y.DISMISSIBLE,i=y.MODAL;if(this.root.classList.contains(n))return new p.MDCDismissibleDrawerFoundation(t);if(this.root.classList.contains(i))return new h.MDCModalDrawerFoundation(t);throw new Error("MDCDrawer: Failed to instantiate component. Supported variants are "+n+" and "+i+".")},g);function g(){return null!==c&&c.apply(this,arguments)||this}e.MDCDrawer=E},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.handleKeydown=e.clearBuffer=e.isTypingInProgress=e.matchItem=e.initSortedIndex=e.initState=void 0;var C=n(6),u=n(7),E=n(64);function g(t,e){var n,i=t.nextChar,r=t.focusItemAtIndex,o=t.sortedIndexByFirstChar,s=t.focusedItemIndex,a=t.skipFocus,c=t.isItemAtIndexDisabled;return clearTimeout(e.bufferClearTimeout),e.bufferClearTimeout=setTimeout(function(){l(e)},u.numbers.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),e.typeaheadBuffer=e.typeaheadBuffer+i,-1===(n=1===e.typeaheadBuffer.length?function(t,e,n,i){var r=i.typeaheadBuffer[0],o=t.get(r);if(!o)return-1;if(r===i.currentFirstChar&&o[i.sortedIndexCursor].index===e){i.sortedIndexCursor=(i.sortedIndexCursor+1)%o.length;var s=o[i.sortedIndexCursor].index;if(!n(s))return s}i.currentFirstChar=r;var a,c=-1;for(a=0;ae&&!n(o[a].index)){c=a;break}return-1===c?-1:(i.sortedIndexCursor=c,o[i.sortedIndexCursor].index)}(o,s,c,e):function(t,e,n){var i=n.typeaheadBuffer[0],r=t.get(i);if(!r)return-1;var o=r[n.sortedIndexCursor];if(0===o.text.lastIndexOf(n.typeaheadBuffer,0)&&!e(o.index))return o.index;var s=(n.sortedIndexCursor+1)%r.length,a=-1;for(;s!==n.sortedIndexCursor;){var c=r[s],u=0===c.text.lastIndexOf(n.typeaheadBuffer,0),l=!e(c.index);if(u&&l){a=s;break}s=(s+1)%r.length}return-1===a?-1:(n.sortedIndexCursor=a,r[n.sortedIndexCursor].index)}(o,c,e))||a||r(n),n}function _(t){return 0=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSegmentedButton=void 0;var s,a=n(1),c=n(82),u=n(81),l=n(80),d=(s=a.MDCComponent,r(p,s),p.attachTo=function(t){return new p(t)},Object.defineProperty(p.prototype,"segments",{get:function(){return this.segmentsList.slice()},enumerable:!1,configurable:!0}),p.prototype.initialize=function(t){void 0===t&&(t=function(t){return new c.MDCSegmentedButtonSegment(t)}),this.segmentFactory=t,this.segmentsList=this.instantiateSegments(this.segmentFactory)},p.prototype.instantiateSegments=function(e){return[].slice.call(this.root.querySelectorAll(u.selectors.SEGMENT)).map(function(t){return e(t)})},p.prototype.initialSyncWithDOM=function(){var e=this;this.handleSelected=function(t){e.foundation.handleSelected(t.detail)},this.listen(u.events.SELECTED,this.handleSelected);for(var t=this.foundation.isSingleSelect(),n=0;n=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||0=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||0=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTabBar=void 0;var s,a=n(1),c=n(98),u=n(101),l=n(38),d=n(107),p=d.MDCTabBarFoundation.strings,h=0,f=(s=a.MDCComponent,r(y,s),y.attachTo=function(t){return new y(t)},Object.defineProperty(y.prototype,"focusOnActivate",{set:function(t){var e,n;try{for(var i=o(this.tabList),r=i.next();!r.done;r=i.next())r.value.focusOnActivate=t}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"useAutomaticActivation",{set:function(t){this.foundation.setUseAutomaticActivation(t)},enumerable:!1,configurable:!0}),y.prototype.initialize=function(t,e){void 0===t&&(t=function(t){return new u.MDCTab(t)}),void 0===e&&(e=function(t){return new c.MDCTabScroller(t)}),this.tabList=this.instantiateTabs(t),this.tabScroller=this.instantiatetabScroller(e)},y.prototype.initialSyncWithDOM=function(){var e=this;this.handleTabInteraction=function(t){e.foundation.handleTabInteraction(t)},this.handleKeyDown=function(t){e.foundation.handleKeyDown(t)},this.listen(l.MDCTabFoundation.strings.INTERACTED_EVENT,this.handleTabInteraction),this.listen("keydown",this.handleKeyDown);for(var t=0;t=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCTopAppBar=void 0;var s,a=n(1),c=n(2),u=n(9),l=n(118),d=n(119),p=n(43),h=(s=a.MDCComponent,r(f,s),f.attachTo=function(t){return new f(t)},f.prototype.initialize=function(n){void 0===n&&(n=function(t){return c.MDCRipple.attachTo(t)}),this.navIcon=this.root.querySelector(u.strings.NAVIGATION_ICON_SELECTOR);var t=[].slice.call(this.root.querySelectorAll(u.strings.ACTION_ITEM_SELECTOR));this.navIcon&&t.push(this.navIcon),this.iconRipples=t.map(function(t){var e=n(t);return e.unbounded=!0,e}),this.scrollTarget=window},f.prototype.initialSyncWithDOM=function(){this.handleNavigationClick=this.foundation.handleNavigationClick.bind(this.foundation),this.handleWindowResize=this.foundation.handleWindowResize.bind(this.foundation),this.handleTargetScroll=this.foundation.handleTargetScroll.bind(this.foundation),this.scrollTarget.addEventListener("scroll",this.handleTargetScroll),this.navIcon&&this.navIcon.addEventListener("click",this.handleNavigationClick);var t=this.root.classList.contains(u.cssClasses.FIXED_CLASS);this.root.classList.contains(u.cssClasses.SHORT_CLASS)||t||window.addEventListener("resize",this.handleWindowResize)},f.prototype.destroy=function(){var e,t;try{for(var n=o(this.iconRipples),i=n.next();!i.done;i=n.next())i.value.destroy()}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.scrollTarget.removeEventListener("scroll",this.handleTargetScroll),this.navIcon&&this.navIcon.removeEventListener("click",this.handleNavigationClick);var r=this.root.classList.contains(u.cssClasses.FIXED_CLASS);this.root.classList.contains(u.cssClasses.SHORT_CLASS)||r||window.removeEventListener("resize",this.handleWindowResize),s.prototype.destroy.call(this)},f.prototype.setScrollTarget=function(t){this.scrollTarget.removeEventListener("scroll",this.handleTargetScroll),this.scrollTarget=t,this.handleTargetScroll=this.foundation.handleTargetScroll.bind(this.foundation),this.scrollTarget.addEventListener("scroll",this.handleTargetScroll)},f.prototype.getDefaultFoundation=function(){var n=this,t={hasClass:function(t){return n.root.classList.contains(t)},addClass:function(t){return n.root.classList.add(t)},removeClass:function(t){return n.root.classList.remove(t)},setStyle:function(t,e){return n.root.style.setProperty(t,e)},getTopAppBarHeight:function(){return n.root.clientHeight},notifyNavigationIconClicked:function(){return n.emit(u.strings.NAVIGATION_EVENT,{})},getViewportScrollY:function(){var t=n.scrollTarget,e=n.scrollTarget;return void 0!==t.pageYOffset?t.pageYOffset:e.scrollTop},getTotalActionItems:function(){return n.root.querySelectorAll(u.strings.ACTION_ITEM_SELECTOR).length}};return this.root.classList.contains(u.cssClasses.SHORT_CLASS)?new d.MDCShortTopAppBarFoundation(t):this.root.classList.contains(u.cssClasses.FIXED_CLASS)?new l.MDCFixedTopAppBarFoundation(t):new p.MDCTopAppBarFoundation(t)},f);function f(){return null!==s&&s.apply(this,arguments)||this}e.MDCTopAppBar=h}],r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=120);function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,i});