!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@material/tab-scroller",[],t):"object"==typeof exports?exports["tab-scroller"]=t():(e.mdc=e.mdc||{},e.mdc["tab-scroller"]=t())}(this,function(){return n={},o.m=r={0:function(e,t,r){"use strict";(function(e){}).call(this,r(20))},1:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unwrapResourceUrl=t.isResourceUrl=t.createResourceUrl=t.TrustedResourceUrl=void 0,r(0);var o=r(4),i=r(9),a=(n.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl.toString()},n);function n(e,t){this.privateDoNotAccessOrElseWrappedResourceUrl=e}var l=window.TrustedScriptURL;t.TrustedResourceUrl=null!=l?l:a,t.createResourceUrl=function(e){var t,r=e,n=null===(t=(0,i.getTrustedTypesPolicy)())||void 0===t?void 0:t.createScriptURL(r);return null!=n?n:new a(r,o.secretToken)},t.isResourceUrl=function(e){return e instanceof t.TrustedResourceUrl},t.unwrapResourceUrl=function(e){var t;if(null===(t=(0,i.getTrustedTypes)())||void 0===t?void 0:t.isScriptURL(e))return e;if(e instanceof a)return e.privateDoNotAccessOrElseWrappedResourceUrl;throw new Error("")}},10:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.unwrapStyle=t.isStyle=t.createStyle=t.SafeStyle=void 0,r(0);function i(){}var a=r(4);t.SafeStyle=i;var l,c=(o(s,l=i),s.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyle},s);function s(e,t){var r=l.call(this)||this;return r.privateDoNotAccessOrElseWrappedStyle=e,r}t.createStyle=function(e){return new c(e,a.secretToken)},t.isStyle=function(e){return e instanceof c},t.unwrapStyle=function(e){if(e instanceof c)return e.privateDoNotAccessOrElseWrappedStyle;throw new Error("")}},11:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributePolicyAction=t.SanitizerTable=void 0;var n,o,i=(a.prototype.isAllowedElement=function(e){return"form"!==e.toLowerCase()&&(this.allowedElements.has(e)||this.elementPolicies.has(e))},a.prototype.getAttributePolicy=function(e,t){var r=this.elementPolicies.get(t);return(null==r?void 0:r.has(e))?r.get(e):this.allowedGlobalAttributes.has(e)?{policyAction:n.KEEP}:this.globalAttributePolicies.get(e)||{policyAction:n.DROP}},a);function a(e,t,r,n){this.allowedElements=e,this.elementPolicies=t,this.allowedGlobalAttributes=r,this.globalAttributePolicies=n}t.SanitizerTable=i,(o=n=t.AttributePolicyAction||(t.AttributePolicyAction={}))[o.DROP=0]="DROP",o[o.KEEP=1]="KEEP",o[o.KEEP_AND_SANITIZE_URL=2]="KEEP_AND_SANITIZE_URL",o[o.KEEP_AND_NORMALIZE=3]="KEEP_AND_NORMALIZE",o[o.KEEP_AND_SANITIZE_STYLE=4]="KEEP_AND_SANITIZE_STYLE"},113:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MDCTabScroller=void 0;var c,s=r(13),u=r(52),f=r(49),p=r(97),d=l(r(98)),h=(c=s.MDCComponent,o(y,c),y.attachTo=function(e){return new y(e)},y.prototype.initialize=function(){this.area=this.root.querySelector(p.MDCTabScrollerFoundation.strings.AREA_SELECTOR),this.content=this.root.querySelector(p.MDCTabScrollerFoundation.strings.CONTENT_SELECTOR)},y.prototype.initialSyncWithDOM=function(){var t=this;this.handleInteraction=function(){t.foundation.handleInteraction()},this.handleTransitionEnd=function(e){t.foundation.handleTransitionEnd(e)},this.area.addEventListener("wheel",this.handleInteraction,u.applyPassive()),this.area.addEventListener("touchstart",this.handleInteraction,u.applyPassive()),this.area.addEventListener("pointerdown",this.handleInteraction,u.applyPassive()),this.area.addEventListener("mousedown",this.handleInteraction,u.applyPassive()),this.area.addEventListener("keydown",this.handleInteraction,u.applyPassive()),this.content.addEventListener("transitionend",this.handleTransitionEnd)},y.prototype.destroy=function(){c.prototype.destroy.call(this),this.area.removeEventListener("wheel",this.handleInteraction,u.applyPassive()),this.area.removeEventListener("touchstart",this.handleInteraction,u.applyPassive()),this.area.removeEventListener("pointerdown",this.handleInteraction,u.applyPassive()),this.area.removeEventListener("mousedown",this.handleInteraction,u.applyPassive()),this.area.removeEventListener("keydown",this.handleInteraction,u.applyPassive()),this.content.removeEventListener("transitionend",this.handleTransitionEnd)},y.prototype.getDefaultFoundation=function(){var r=this,e={eventTargetMatchesSelector:function(e,t){return f.matches(e,t)},addClass:function(e){r.root.classList.add(e)},removeClass:function(e){r.root.classList.remove(e)},addScrollAreaClass:function(e){r.area.classList.add(e)},setScrollAreaStyleProperty:function(e,t){r.area.style.setProperty(e,t)},setScrollContentStyleProperty:function(e,t){r.content.style.setProperty(e,t)},getScrollContentStyleValue:function(e){return window.getComputedStyle(r.content).getPropertyValue(e)},setScrollAreaScrollLeft:function(e){return r.area.scrollLeft=e},getScrollAreaScrollLeft:function(){return r.area.scrollLeft},getScrollContentOffsetWidth:function(){return r.content.offsetWidth},getScrollAreaOffsetWidth:function(){return r.area.offsetWidth},computeScrollAreaClientRect:function(){return r.area.getBoundingClientRect()},computeScrollContentClientRect:function(){return r.content.getBoundingClientRect()},computeHorizontalScrollbarHeight:function(){return d.computeHorizontalScrollbarHeight(document)}};return new p.MDCTabScrollerFoundation(e)},y.prototype.getScrollPosition=function(){return this.foundation.getScrollPosition()},y.prototype.getScrollContentWidth=function(){return this.content.offsetWidth},y.prototype.incrementScroll=function(e){this.foundation.incrementScroll(e)},y.prototype.scrollTo=function(e){this.foundation.scrollTo(e)},y);function y(){return null!==c&&c.apply(this,arguments)||this}t.MDCTabScroller=h},114:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.MDCTabScrollerRTLDefault=void 0;var i,a=r(72),l=(i=a.MDCTabScrollerRTL,o(c,i),c.prototype.getScrollPositionRTL=function(){var e=this.adapter.getScrollAreaScrollLeft(),t=this.calculateScrollEdges().right;return Math.round(t-e)},c.prototype.scrollToRTL=function(e){var t=this.calculateScrollEdges(),r=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(t.right-e);return{finalScrollPosition:n,scrollDelta:n-r}},c.prototype.incrementScrollRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(t-e);return{finalScrollPosition:r,scrollDelta:r-t}},c.prototype.getAnimatingScrollPosition=function(e){return e},c.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},c.prototype.clampScrollValue=function(e){var t=this.calculateScrollEdges();return Math.min(Math.max(t.left,e),t.right)},c);function c(){return null!==i&&i.apply(this,arguments)||this}t.MDCTabScrollerRTLDefault=l,t.default=l},115:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.MDCTabScrollerRTLNegative=void 0;var i,a=r(72),l=(i=a.MDCTabScrollerRTL,o(c,i),c.prototype.getScrollPositionRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft();return Math.round(e-t)},c.prototype.scrollToRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(-e);return{finalScrollPosition:r,scrollDelta:r-t}},c.prototype.incrementScrollRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(t-e);return{finalScrollPosition:r,scrollDelta:r-t}},c.prototype.getAnimatingScrollPosition=function(e,t){return e-t},c.prototype.calculateScrollEdges=function(){var e=this.adapter.getScrollContentOffsetWidth();return{left:this.adapter.getScrollAreaOffsetWidth()-e,right:0}},c.prototype.clampScrollValue=function(e){var t=this.calculateScrollEdges();return Math.max(Math.min(t.right,e),t.left)},c);function c(){return null!==i&&i.apply(this,arguments)||this}t.MDCTabScrollerRTLNegative=l,t.default=l},116:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.MDCTabScrollerRTLReverse=void 0;var i,a=r(72),l=(i=a.MDCTabScrollerRTL,o(c,i),c.prototype.getScrollPositionRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft();return Math.round(t-e)},c.prototype.scrollToRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(e);return{finalScrollPosition:r,scrollDelta:t-r}},c.prototype.incrementScrollRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue(t+e);return{finalScrollPosition:r,scrollDelta:t-r}},c.prototype.getAnimatingScrollPosition=function(e,t){return e+t},c.prototype.calculateScrollEdges=function(){return{left:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth(),right:0}},c.prototype.clampScrollValue=function(e){var t=this.calculateScrollEdges();return Math.min(Math.max(t.right,e),t.left)},c);function c(){return null!==i&&i.apply(this,arguments)||this}t.MDCTabScrollerRTLReverse=l,t.default=l},12:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.unwrapStyleSheet=t.isStyleSheet=t.createStyleSheet=t.SafeStyleSheet=void 0,r(0);function i(){}var a=r(4);t.SafeStyleSheet=i;var l,c=(o(s,l=i),s.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet},s);function s(e,t){var r=l.call(this)||this;return r.privateDoNotAccessOrElseWrappedStyleSheet=e,r}t.createStyleSheet=function(e){return new c(e,a.secretToken)},t.isStyleSheet=function(e){return e instanceof c},t.unwrapStyleSheet=function(e){if(e instanceof c)return e.privateDoNotAccessOrElseWrappedStyleSheet;throw new Error("")}},13:function(e,t,r){"use strict";var o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||0=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},f=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||0")+1,r.lastIndexOf("/g,">").replace(/"/g,""").replace(/'/g,"'")}t.htmlEscape=function(e,t){void 0===t&&(t={});var r=l(e);return t.preserveSpaces&&(r=r.replace(/(^|[\r\n\t ]) /g,"$1 ")),t.preserveNewlines&&(r=r.replace(/(\r\n|\n|\r)/g,"
")),t.preserveTabs&&(r=r.replace(/(\t+)/g,'$1')),(0,i.createHtml)(r)},t.createScript=function(e,t){void 0===t&&(t={});var r=(0,o.unwrapScript)(e).toString(),n=""),(0,i.createHtml)(n)},t.createScriptSrc=function(e,t,r){var n=(0,a.unwrapResourceUrl)(e).toString(),o='