text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.linearProgress=e():(t.mdc=t.mdc||{},t.mdc.linearProgress=e())}(this,function(){return n={},s.m=r={0:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(Object.defineProperty(s,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(s,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(s,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(s,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),s.prototype.init=function(){},s.prototype.destroy=function(){},s);function s(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=n,e.default=n},1:function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,s,o=r.call(t),i=[];try{for(;(void 0===e||0<e--)&&!(n=o.next()).done;)i.push(n.value)}catch(t){s={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return i},s=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(n(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),i=(a.attachTo=function(t){return new a(t,new o.MDCFoundation({}))},a.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation.destroy()},a.prototype.listen=function(t,e,r){this.root.addEventListener(t,e,r)},a.prototype.unlisten=function(t,e,r){this.root.removeEventListener(t,e,r)},a.prototype.emit=function(t,e,r){var n;void 0===r&&(r=!1),"function"==typeof CustomEvent?n=new CustomEvent(t,{bubbles:r,detail:e}):(n=document.createEvent("CustomEvent")).initCustomEvent(t,r,!1,e),this.root.dispatchEvent(n)},a);function a(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];this.root=t,this.initialize.apply(this,s(r)),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=i,e.default=i},12:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},a={animationend:{cssProperty:"animation",prefixed:"webkitAnimationEnd",standard:"animationend"},animationiteration:{cssProperty:"animation",prefixed:"webkitAnimationIteration",standard:"animationiteration"},animationstart:{cssProperty:"animation",prefixed:"webkitAnimationStart",standard:"animationstart"},transitionend:{cssProperty:"transition",prefixed:"webkitTransitionEnd",standard:"transitionend"}};function u(t){return Boolean(t.document)&&"function"==typeof t.document.createElement}e.getCorrectPropertyName=function(t,e){if(u(t)&&e in i){var r=t.document.createElement("div"),n=i[e],s=n.standard,o=n.prefixed;return s in r.style?s:o}return e},e.getCorrectEventName=function(t,e){if(u(t)&&e in a){var r=t.document.createElement("div"),n=a[e],s=n.standard,o=n.prefixed;return n.cssProperty in r.style?s:o}return e}},152:function(t,r,e){"use strict";function n(t){for(var e in t)r.hasOwnProperty(e)||(r[e]=t[e])}Object.defineProperty(r,"__esModule",{value:!0}),n(e(53)),n(e(44)),n(e(43))},43:function(t,e,r){"use strict";var n,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var s in e=arguments[r])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var i,u=r(12),c=r(0),f=r(44),l=(i=c.MDCFoundation,s(d,i),Object.defineProperty(d,"cssClasses",{get:function(){return f.cssClasses},enumerable:!0,configurable:!0}),Object.defineProperty(d,"strings",{get:function(){return f.strings},enumerable:!0,configurable:!0}),Object.defineProperty(d,"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:!0,configurable:!0}),d.prototype.init=function(){var i=this;this.isDeterminate=!this.adapter.hasClass(f.cssClasses.INDETERMINATE_CLASS),this.adapter.addClass(f.cssClasses.ANIMATION_READY_CLASS),this.isReversed=this.adapter.hasClass(f.cssClasses.REVERSED_CLASS),this.progress=0,this.buffer=1,this.observer=this.adapter.attachResizeObserver(function(t){var e,r;if(!i.isDeterminate)try{for(var n=a(t),s=n.next();!s.done;s=n.next()){var o=s.value;o.contentRect&&i.calculateAndSetDimensions(o.contentRect.width)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}}),!this.isDeterminate&&this.observer&&this.calculateAndSetDimensions(this.adapter.getWidth())},d.prototype.setDeterminate=function(t){if(this.isDeterminate=t,this.isDeterminate)return this.adapter.removeClass(f.cssClasses.INDETERMINATE_CLASS),this.adapter.setAttribute(f.strings.ARIA_VALUENOW,this.progress.toString()),this.setPrimaryBarProgress(this.progress),void this.setBufferBarProgress(this.buffer);this.isReversed&&(this.adapter.removeClass(f.cssClasses.REVERSED_CLASS),this.adapter.forceLayout(),this.adapter.addClass(f.cssClasses.REVERSED_CLASS)),this.observer&&this.calculateAndSetDimensions(this.adapter.getWidth()),this.adapter.addClass(f.cssClasses.INDETERMINATE_CLASS),this.adapter.removeAttribute(f.strings.ARIA_VALUENOW),this.setPrimaryBarProgress(1),this.setBufferBarProgress(1)},d.prototype.getDeterminate=function(){return this.isDeterminate},d.prototype.setProgress=function(t){this.progress=t,this.isDeterminate&&(this.setPrimaryBarProgress(t),this.adapter.setAttribute(f.strings.ARIA_VALUENOW,t.toString()))},d.prototype.getProgress=function(){return this.progress},d.prototype.setBuffer=function(t){this.buffer=t,this.isDeterminate&&this.setBufferBarProgress(t)},d.prototype.setReverse=function(t){this.isReversed=t,this.isDeterminate||this.restartAnimation(),this.isReversed?this.adapter.addClass(f.cssClasses.REVERSED_CLASS):this.adapter.removeClass(f.cssClasses.REVERSED_CLASS)},d.prototype.open=function(){this.adapter.removeClass(f.cssClasses.CLOSED_CLASS),this.adapter.removeClass(f.cssClasses.CLOSED_ANIMATION_OFF_CLASS)},d.prototype.close=function(){this.adapter.addClass(f.cssClasses.CLOSED_CLASS)},d.prototype.handleTransitionEnd=function(){this.adapter.hasClass(f.cssClasses.CLOSED_CLASS)&&this.adapter.addClass(f.cssClasses.CLOSED_ANIMATION_OFF_CLASS)},d.prototype.destroy=function(){i.prototype.destroy.call(this),this.observer&&this.observer.disconnect()},d.prototype.setPrimaryBarProgress=function(t){var e="scaleX("+t+")",r="undefined"!=typeof window?u.getCorrectPropertyName(window,"transform"):"transform";this.adapter.setPrimaryBarStyle(r,e)},d.prototype.setBufferBarProgress=function(t){var e=100*t+"%";this.adapter.setBufferBarStyle(f.strings.FLEX_BASIS,e)},d.prototype.restartAnimation=function(){this.adapter.removeClass(f.cssClasses.ANIMATION_READY_CLASS),this.adapter.forceLayout(),this.adapter.addClass(f.cssClasses.ANIMATION_READY_CLASS)},d.prototype.calculateAndSetDimensions=function(t){var e=t*f.animationDimensionPercentages.PRIMARY_HALF,r=t*f.animationDimensionPercentages.PRIMARY_FULL,n=t*f.animationDimensionPercentages.SECONDARY_QUARTER,s=t*f.animationDimensionPercentages.SECONDARY_HALF,o=t*f.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",r+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-full-neg",-r+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-quarter",n+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-quarter-neg",-n+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-half",s+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-half-neg",-s+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-full",o+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-full-neg",-o+"px"),this.restartAnimation()},d);function d(t){var e=i.call(this,o(o({},d.defaultAdapter),t))||this;return e.observer=null,e}e.MDCLinearProgressFoundation=l,e.default=l},44:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!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_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}},53:function(t,e,r){"use strict";var n,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var o,i=r(1),a=r(43),u=(o=i.MDCComponent,s(c,o),c.attachTo=function(t){return new c(t)},Object.defineProperty(c.prototype,"determinate",{set:function(t){this.foundation.setDeterminate(t)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"progress",{set:function(t){this.foundation.setProgress(t)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"buffer",{set:function(t){this.foundation.setBuffer(t)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"reverse",{set:function(t){this.foundation.setReverse(t)},enumerable:!0,configurable:!0}),c.prototype.open=function(){this.foundation.open()},c.prototype.close=function(){this.foundation.close()},c.prototype.initialSyncWithDOM=function(){var t=this;this.root.addEventListener("transitionend",function(){t.foundation.handleTransitionEnd()})},c.prototype.getDefaultFoundation=function(){var n=this,t={addClass:function(t){n.root.classList.add(t)},forceLayout:function(){n.root.getBoundingClientRect()},setBufferBarStyle:function(t,e){var r=n.root.querySelector(a.MDCLinearProgressFoundation.strings.BUFFER_BAR_SELECTOR);r&&r.style.setProperty(t,e)},setPrimaryBarStyle:function(t,e){var r=n.root.querySelector(a.MDCLinearProgressFoundation.strings.PRIMARY_BAR_SELECTOR);r&&r.style.setProperty(t,e)},hasClass:function(t){return n.root.classList.contains(t)},removeAttribute:function(t){n.root.removeAttribute(t)},removeClass:function(t){n.root.classList.remove(t)},setAttribute:function(t,e){n.root.setAttribute(t,e)},setStyle:function(t,e){n.root.style.setProperty(t,e)},attachResizeObserver:function(t){if(window.ResizeObserver){var e=new ResizeObserver(t);return e.observe(n.root),e}return null},getWidth:function(){return n.root.offsetWidth}};return new a.MDCLinearProgressFoundation(t)},c);function c(){return null!==o&&o.apply(this,arguments)||this}e.MDCLinearProgress=u}},s.c=n,s.d=function(t,e,r){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(r,n,function(t){return e[t]}.bind(null,n));return r},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=152);function s(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,s),e.l=!0,e.exports}var r,n});