@covalent/components 6.2.1 → 6.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/action-ribbon.js +6 -6
  2. package/action-ribbon.mjs +34 -29
  3. package/alert.js +6 -6
  4. package/alert.mjs +18 -13
  5. package/app-shell.js +8 -8
  6. package/app-shell.mjs +9 -3
  7. package/base-element.mjs +5 -0
  8. package/button.js +9 -9
  9. package/button.mjs +23 -14
  10. package/card.js +8 -8
  11. package/card.mjs +17 -15
  12. package/check-list-item.js +9 -9
  13. package/check-list-item.mjs +20 -11
  14. package/checkbox.js +2 -2
  15. package/checkbox.mjs +26 -17
  16. package/circular-progress.js +29 -29
  17. package/circular-progress.mjs +13 -9
  18. package/class-map.mjs +9 -0
  19. package/code-snippet.js +9 -9
  20. package/code-snippet.mjs +10 -7
  21. package/dialog.js +1 -1
  22. package/dialog.mjs +14 -14
  23. package/dialog2.mjs +55 -49
  24. package/directive-helpers.mjs +1 -1
  25. package/drawer.js +3 -3
  26. package/drawer.mjs +13 -7
  27. package/empty-state.js +5 -5
  28. package/empty-state.mjs +5 -3
  29. package/event-options.mjs +5 -0
  30. package/form-element.mjs +2 -2
  31. package/foundation.mjs +2 -2
  32. package/icon-button.js +8 -8
  33. package/icon-button.mjs +23 -14
  34. package/icon-check-toggle.js +9 -9
  35. package/icon-check-toggle.mjs +15 -6
  36. package/icon-radio-toggle.js +5 -5
  37. package/icon-radio-toggle.mjs +30 -21
  38. package/icon.js +2 -2
  39. package/icon.mjs +8 -7
  40. package/if-defined.mjs +1 -1
  41. package/index.js +1 -1
  42. package/index.mjs +100 -90
  43. package/linear-progress.js +12 -12
  44. package/linear-progress.mjs +23 -17
  45. package/list-expansion.js +8 -8
  46. package/list-expansion.mjs +38 -29
  47. package/list-item.js +1 -1
  48. package/list-item.mjs +6 -6
  49. package/list-item2.mjs +16 -15
  50. package/list.js +1 -1
  51. package/list.mjs +2 -2
  52. package/list2.mjs +6 -5
  53. package/menu.js +2 -2
  54. package/menu.mjs +25 -16
  55. package/mwc-checkbox-base.mjs +6 -6
  56. package/mwc-checkbox.css.mjs +2 -2
  57. package/mwc-drawer-base.mjs +11 -11
  58. package/mwc-icon.mjs +3 -3
  59. package/mwc-line-ripple-directive.mjs +16 -16
  60. package/mwc-list-base.mjs +25 -25
  61. package/mwc-list-item-base.mjs +11 -11
  62. package/mwc-list-item.css.mjs +3 -3
  63. package/mwc-menu-base.mjs +20 -20
  64. package/mwc-radio-base.mjs +11 -11
  65. package/mwc-radio.css.mjs +2 -2
  66. package/mwc-slider.css.mjs +20 -20
  67. package/mwc-tab-base.mjs +22 -22
  68. package/mwc-top-app-bar-base.mjs +10 -10
  69. package/nav-list-item.js +10 -10
  70. package/nav-list-item.mjs +32 -24
  71. package/package.json +1 -1
  72. package/property.mjs +5 -0
  73. package/query-assigned-elements.mjs +33 -0
  74. package/query-assigned-nodes.mjs +5 -0
  75. package/query.mjs +5 -0
  76. package/radio-list-item.js +10 -10
  77. package/radio-list-item.mjs +27 -18
  78. package/radio.js +2 -2
  79. package/radio.mjs +22 -13
  80. package/ripple-handlers.mjs +104 -2
  81. package/select.js +28 -28
  82. package/select.mjs +25 -15
  83. package/side-sheet.js +4 -4
  84. package/side-sheet.mjs +12 -6
  85. package/slider-range.js +7 -7
  86. package/slider-range.mjs +69 -61
  87. package/slider.js +3 -3
  88. package/slider.mjs +26 -18
  89. package/snackbar.js +15 -15
  90. package/snackbar.mjs +26 -20
  91. package/state.mjs +5 -0
  92. package/status-header-item.js +4 -4
  93. package/status-header-item.mjs +14 -13
  94. package/status-header.js +6 -6
  95. package/status-header.mjs +9 -7
  96. package/style-map.mjs +5 -0
  97. package/switch.js +18 -18
  98. package/switch.mjs +30 -21
  99. package/tab-bar.js +21 -21
  100. package/tab-bar.mjs +22 -13
  101. package/tab.js +3 -3
  102. package/tab.mjs +13 -4
  103. package/text-lockup.js +5 -5
  104. package/text-lockup.mjs +8 -6
  105. package/textarea.js +14 -14
  106. package/textarea.mjs +23 -15
  107. package/textfield.js +3 -3
  108. package/textfield.mjs +39 -39
  109. package/textfield2.mjs +26 -19
  110. package/toolbar.js +3 -3
  111. package/toolbar.mjs +9 -3
  112. package/tooltip.js +12 -12
  113. package/tooltip.mjs +12 -8
  114. package/top-app-bar-fixed.js +5 -5
  115. package/top-app-bar-fixed.mjs +29 -23
  116. package/top-app-bar.js +3 -3
  117. package/top-app-bar.mjs +2 -2
  118. package/top-app-bar2.mjs +1 -1
  119. package/tree-list-item.js +8 -8
  120. package/tree-list-item.mjs +5 -3
  121. package/tree-list.js +3 -3
  122. package/tree-list.mjs +4 -4
  123. package/tslib.es6.mjs +1 -0
  124. package/typography.js +4 -4
  125. package/typography.mjs +12 -11
  126. package/utils.mjs +5 -0
  127. package/mwc-ripple.mjs +0 -175
@@ -1,4 +1,4 @@
1
- "use strict";const i=require("./mwc-ripple.mjs"),S=require("./aria-property.mjs"),C=require("./form-element.mjs"),k=require("./ripple-handlers.mjs"),_=require("./if-defined.mjs");/**
1
+ "use strict";const o=require("./tslib.es6.mjs"),V=require("./ripple-handlers.mjs"),C=require("./aria-property.mjs"),L=require("./form-element.mjs"),c=require("./query-assigned-elements.mjs"),b=require("./property.mjs"),f=require("./state.mjs"),g=require("./query.mjs"),k=require("./class-map.mjs"),A=require("./if-defined.mjs"),U=require("./style-map.mjs");/**
2
2
  * @license
3
3
  * Copyright 2020 Google Inc.
4
4
  *
@@ -19,7 +19,7 @@
19
19
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  * THE SOFTWARE.
22
- */var v;(function(a){a[a.ACTIVE=0]="ACTIVE",a[a.INACTIVE=1]="INACTIVE"})(v||(v={}));exports.Thumb=void 0;(function(a){a[a.START=1]="START",a[a.END=2]="END"})(exports.Thumb||(exports.Thumb={}));/**
22
+ */var _;(function(s){s[s.ACTIVE=0]="ACTIVE",s[s.INACTIVE=1]="INACTIVE"})(_||(_={}));exports.Thumb=void 0;(function(s){s[s.START=1]="START",s[s.END=2]="END"})(exports.Thumb||(exports.Thumb={}));/**
23
23
  * @license
24
24
  * Copyright 2020 Google Inc.
25
25
  *
@@ -40,7 +40,7 @@
40
40
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
41
41
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
42
42
  * THE SOFTWARE.
43
- */var w=function(){function a(){this.rafIDs=new Map}return a.prototype.request=function(r,t){var e=this;this.cancel(r);var n=requestAnimationFrame(function(s){e.rafIDs.delete(r),t(s)});this.rafIDs.set(r,n)},a.prototype.cancel=function(r){var t=this.rafIDs.get(r);t&&(cancelAnimationFrame(t),this.rafIDs.delete(r))},a.prototype.cancelAll=function(){var r=this;this.rafIDs.forEach(function(t,e){r.cancel(e)})},a.prototype.getQueue=function(){var r=[];return this.rafIDs.forEach(function(t,e){r.push(e)}),r},a}();/**
43
+ */var F=function(){function s(){this.rafIDs=new Map}return s.prototype.request=function(r,t){var e=this;this.cancel(r);var i=requestAnimationFrame(function(n){e.rafIDs.delete(r),t(n)});this.rafIDs.set(r,i)},s.prototype.cancel=function(r){var t=this.rafIDs.get(r);t&&(cancelAnimationFrame(t),this.rafIDs.delete(r))},s.prototype.cancelAll=function(){var r=this;this.rafIDs.forEach(function(t,e){r.cancel(e)})},s.prototype.getQueue=function(){var r=[];return this.rafIDs.forEach(function(t,e){r.push(e)}),r},s}();/**
44
44
  * @license
45
45
  * Copyright 2016 Google Inc.
46
46
  *
@@ -61,7 +61,7 @@
61
61
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62
62
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
63
63
  * THE SOFTWARE.
64
- */var x={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}};function M(a){return Boolean(a.document)&&typeof a.document.createElement=="function"}function D(a,r){if(M(a)&&r in x){var t=a.document.createElement("div"),e=x[r],n=e.standard,s=e.prefixed,o=n in t.style;return o?n:s}return r}/**
64
+ */var M={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}};function H(s){return Boolean(s.document)&&typeof s.document.createElement=="function"}function w(s,r){if(H(s)&&r in M){var t=s.document.createElement("div"),e=M[r],i=e.standard,n=e.prefixed,a=i in t.style;return a?i:n}return r}/**
65
65
  * @license
66
66
  * Copyright 2016 Google Inc.
67
67
  *
@@ -82,7 +82,7 @@
82
82
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
83
83
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
84
84
  * THE SOFTWARE.
85
- */var P=function(){function a(r){r===void 0&&(r={}),this.adapter=r}return Object.defineProperty(a,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(a,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(a,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(a,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),a.prototype.init=function(){},a.prototype.destroy=function(){},a}();/**
85
+ */var O=function(){function s(r){r===void 0&&(r={}),this.adapter=r}return Object.defineProperty(s,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(s,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(s,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(s,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),s.prototype.init=function(){},s.prototype.destroy=function(){},s}();/**
86
86
  * @license
87
87
  * Copyright 2020 Google Inc.
88
88
  *
@@ -103,7 +103,7 @@
103
103
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
104
104
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
105
105
  * THE SOFTWARE.
106
- */var l={DISABLED:"mdc-slider--disabled",DISCRETE:"mdc-slider--discrete",INPUT:"mdc-slider__input",RANGE:"mdc-slider--range",THUMB:"mdc-slider__thumb",THUMB_FOCUSED:"mdc-slider__thumb--focused",THUMB_KNOB:"mdc-slider__thumb-knob",THUMB_TOP:"mdc-slider__thumb--top",THUMB_WITH_INDICATOR:"mdc-slider__thumb--with-indicator",TICK_MARKS:"mdc-slider--tick-marks",TICK_MARKS_CONTAINER:"mdc-slider__tick-marks",TICK_MARK_ACTIVE:"mdc-slider__tick-mark--active",TICK_MARK_INACTIVE:"mdc-slider__tick-mark--inactive",TRACK:"mdc-slider__track",TRACK_ACTIVE:"mdc-slider__track--active_fill",VALUE_INDICATOR_CONTAINER:"mdc-slider__value-indicator-container",VALUE_INDICATOR_TEXT:"mdc-slider__value-indicator-text"},I={STEP_SIZE:1,MIN_RANGE:0,THUMB_UPDATE_MIN_PX:5},h={ARIA_VALUETEXT:"aria-valuetext",INPUT_DISABLED:"disabled",INPUT_MIN:"min",INPUT_MAX:"max",INPUT_VALUE:"value",INPUT_STEP:"step",DATA_MIN_RANGE:"data-min-range"},p={VAR_VALUE_INDICATOR_CARET_LEFT:"--slider-value-indicator-caret-left",VAR_VALUE_INDICATOR_CARET_RIGHT:"--slider-value-indicator-caret-right",VAR_VALUE_INDICATOR_CARET_TRANSFORM:"--slider-value-indicator-caret-transform",VAR_VALUE_INDICATOR_CONTAINER_LEFT:"--slider-value-indicator-container-left",VAR_VALUE_INDICATOR_CONTAINER_RIGHT:"--slider-value-indicator-container-right",VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM:"--slider-value-indicator-container-transform"};/**
106
+ */var l={DISABLED:"mdc-slider--disabled",DISCRETE:"mdc-slider--discrete",INPUT:"mdc-slider__input",RANGE:"mdc-slider--range",THUMB:"mdc-slider__thumb",THUMB_FOCUSED:"mdc-slider__thumb--focused",THUMB_KNOB:"mdc-slider__thumb-knob",THUMB_TOP:"mdc-slider__thumb--top",THUMB_WITH_INDICATOR:"mdc-slider__thumb--with-indicator",TICK_MARKS:"mdc-slider--tick-marks",TICK_MARKS_CONTAINER:"mdc-slider__tick-marks",TICK_MARK_ACTIVE:"mdc-slider__tick-mark--active",TICK_MARK_INACTIVE:"mdc-slider__tick-mark--inactive",TRACK:"mdc-slider__track",TRACK_ACTIVE:"mdc-slider__track--active_fill",VALUE_INDICATOR_CONTAINER:"mdc-slider__value-indicator-container",VALUE_INDICATOR_TEXT:"mdc-slider__value-indicator-text"},D={STEP_SIZE:1,MIN_RANGE:0,THUMB_UPDATE_MIN_PX:5},h={ARIA_VALUETEXT:"aria-valuetext",INPUT_DISABLED:"disabled",INPUT_MIN:"min",INPUT_MAX:"max",INPUT_VALUE:"value",INPUT_STEP:"step",DATA_MIN_RANGE:"data-min-range"},p={VAR_VALUE_INDICATOR_CARET_LEFT:"--slider-value-indicator-caret-left",VAR_VALUE_INDICATOR_CARET_RIGHT:"--slider-value-indicator-caret-right",VAR_VALUE_INDICATOR_CARET_TRANSFORM:"--slider-value-indicator-caret-transform",VAR_VALUE_INDICATOR_CONTAINER_LEFT:"--slider-value-indicator-container-left",VAR_VALUE_INDICATOR_CONTAINER_RIGHT:"--slider-value-indicator-container-right",VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM:"--slider-value-indicator-container-transform"};/**
107
107
  * @license
108
108
  * Copyright 2020 Google Inc.
109
109
  *
@@ -124,24 +124,24 @@
124
124
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
125
125
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
126
126
  * THE SOFTWARE.
127
- */var g;(function(a){a.SLIDER_UPDATE="slider_update"})(g||(g={}));var R=typeof window<"u",V=function(a){i.__extends(r,a);function r(t){var e=a.call(this,i.__assign(i.__assign({},r.defaultAdapter),t))||this;return e.initialStylesRemoved=!1,e.isDisabled=!1,e.isDiscrete=!1,e.step=I.STEP_SIZE,e.minRange=I.MIN_RANGE,e.hasTickMarks=!1,e.isRange=!1,e.thumb=null,e.downEventClientX=null,e.startThumbKnobWidth=0,e.endThumbKnobWidth=0,e.animFrame=new w,e}return Object.defineProperty(r,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},addThumbClass:function(){},removeThumbClass:function(){},getAttribute:function(){return null},getInputValue:function(){return""},setInputValue:function(){},getInputAttribute:function(){return null},setInputAttribute:function(){return null},removeInputAttribute:function(){return null},focusInput:function(){},isInputFocused:function(){return!1},shouldHideFocusStylesForPointerEvents:function(){return!1},getThumbKnobWidth:function(){return 0},getValueIndicatorContainerWidth:function(){return 0},getThumbBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},isRTL:function(){return!1},setThumbStyleProperty:function(){},removeThumbStyleProperty:function(){},setTrackActiveStyleProperty:function(){},removeTrackActiveStyleProperty:function(){},setValueIndicatorText:function(){},getValueToAriaValueTextFn:function(){return null},updateTickMarks:function(){},setPointerCapture:function(){},emitChangeEvent:function(){},emitInputEvent:function(){},emitDragStartEvent:function(){},emitDragEndEvent:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerThumbEventHandler:function(){},deregisterThumbEventHandler:function(){},registerInputEventHandler:function(){},deregisterInputEventHandler:function(){},registerBodyEventHandler:function(){},deregisterBodyEventHandler:function(){},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!1,configurable:!0}),r.prototype.init=function(){var t=this;this.isDisabled=this.adapter.hasClass(l.DISABLED),this.isDiscrete=this.adapter.hasClass(l.DISCRETE),this.hasTickMarks=this.adapter.hasClass(l.TICK_MARKS),this.isRange=this.adapter.hasClass(l.RANGE);var e=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(h.INPUT_MIN,this.isRange?exports.Thumb.START:exports.Thumb.END),h.INPUT_MIN),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(h.INPUT_MAX,exports.Thumb.END),h.INPUT_MAX),s=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(h.INPUT_VALUE,exports.Thumb.END),h.INPUT_VALUE),o=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(h.INPUT_VALUE,exports.Thumb.START),h.INPUT_VALUE):e,u=this.adapter.getInputAttribute(h.INPUT_STEP,exports.Thumb.END),c=u?this.convertAttributeValueToNumber(u,h.INPUT_STEP):this.step,m=this.adapter.getAttribute(h.DATA_MIN_RANGE),T=m?this.convertAttributeValueToNumber(m,h.DATA_MIN_RANGE):this.minRange;this.validateProperties({min:e,max:n,value:s,valueStart:o,step:c,minRange:T}),this.min=e,this.max=n,this.value=s,this.valueStart=o,this.step=c,this.minRange=T,this.numDecimalPlaces=N(this.step),this.valueBeforeDownEvent=s,this.valueStartBeforeDownEvent=o,this.mousedownOrTouchstartListener=this.handleMousedownOrTouchstart.bind(this),this.moveListener=this.handleMove.bind(this),this.pointerdownListener=this.handlePointerdown.bind(this),this.pointerupListener=this.handlePointerup.bind(this),this.thumbMouseenterListener=this.handleThumbMouseenter.bind(this),this.thumbMouseleaveListener=this.handleThumbMouseleave.bind(this),this.inputStartChangeListener=function(){t.handleInputChange(exports.Thumb.START)},this.inputEndChangeListener=function(){t.handleInputChange(exports.Thumb.END)},this.inputStartFocusListener=function(){t.handleInputFocus(exports.Thumb.START)},this.inputEndFocusListener=function(){t.handleInputFocus(exports.Thumb.END)},this.inputStartBlurListener=function(){t.handleInputBlur(exports.Thumb.START)},this.inputEndBlurListener=function(){t.handleInputBlur(exports.Thumb.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},r.prototype.destroy=function(){this.deregisterEventHandlers()},r.prototype.setMin=function(t){this.min=t,this.isRange||(this.valueStart=t),this.updateUI()},r.prototype.setMax=function(t){this.max=t,this.updateUI()},r.prototype.getMin=function(){return this.min},r.prototype.getMax=function(){return this.max},r.prototype.getValue=function(){return this.value},r.prototype.setValue=function(t){if(this.isRange&&t<this.valueStart+this.minRange)throw new Error("end thumb value ("+t+") must be >= start thumb "+("value ("+this.valueStart+") + min range ("+this.minRange+")"));this.updateValue(t,exports.Thumb.END)},r.prototype.getValueStart=function(){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");return this.valueStart},r.prototype.setValueStart=function(t){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&t>this.value-this.minRange)throw new Error("start thumb value ("+t+") must be <= end thumb "+("value ("+this.value+") - min range ("+this.minRange+")"));this.updateValue(t,exports.Thumb.START)},r.prototype.setStep=function(t){this.step=t,this.numDecimalPlaces=N(t),this.updateUI()},r.prototype.setMinRange=function(t){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");if(t<0)throw new Error("`minRange` must be non-negative. "+("Current value: "+t));if(this.value-this.valueStart<t)throw new Error("start thumb value ("+this.valueStart+") and end thumb value "+("("+this.value+") must differ by at least "+t+"."));this.minRange=t},r.prototype.setIsDiscrete=function(t){this.isDiscrete=t,this.updateValueIndicatorUI(),this.updateTickMarksUI()},r.prototype.getStep=function(){return this.step},r.prototype.getMinRange=function(){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");return this.minRange},r.prototype.setHasTickMarks=function(t){this.hasTickMarks=t,this.updateTickMarksUI()},r.prototype.getDisabled=function(){return this.isDisabled},r.prototype.setDisabled=function(t){this.isDisabled=t,t?(this.adapter.addClass(l.DISABLED),this.isRange&&this.adapter.setInputAttribute(h.INPUT_DISABLED,"",exports.Thumb.START),this.adapter.setInputAttribute(h.INPUT_DISABLED,"",exports.Thumb.END)):(this.adapter.removeClass(l.DISABLED),this.isRange&&this.adapter.removeInputAttribute(h.INPUT_DISABLED,exports.Thumb.START),this.adapter.removeInputAttribute(h.INPUT_DISABLED,exports.Thumb.END))},r.prototype.getIsRange=function(){return this.isRange},r.prototype.layout=function(t){var e=t===void 0?{}:t,n=e.skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(exports.Thumb.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(exports.Thumb.END)),n||this.updateUI()},r.prototype.handleResize=function(){this.layout()},r.prototype.handleDown=function(t){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var e=t.clientX!=null?t.clientX:t.targetTouches[0].clientX;this.downEventClientX=e;var n=this.mapClientXOnSliderScale(e);this.thumb=this.getThumbFromDownEvent(e,n),this.thumb!==null&&(this.handleDragStart(t,n,this.thumb),this.updateValue(n,this.thumb,{emitInputEvent:!0}))}},r.prototype.handleMove=function(t){if(!this.isDisabled){t.preventDefault();var e=t.clientX!=null?t.clientX:t.targetTouches[0].clientX,n=this.thumb!=null;if(this.thumb=this.getThumbFromMoveEvent(e),this.thumb!==null){var s=this.mapClientXOnSliderScale(e);n||(this.handleDragStart(t,s,this.thumb),this.adapter.emitDragStartEvent(s,this.thumb)),this.updateValue(s,this.thumb,{emitInputEvent:!0})}}},r.prototype.handleUp=function(){var t,e;if(!(this.isDisabled||this.thumb===null)){!((e=(t=this.adapter).shouldHideFocusStylesForPointerEvents)===null||e===void 0)&&e.call(t)&&this.handleInputBlur(this.thumb);var n=this.thumb===exports.Thumb.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,s=this.thumb===exports.Thumb.START?this.valueStart:this.value;n!==s&&this.adapter.emitChangeEvent(s,this.thumb),this.adapter.emitDragEndEvent(s,this.thumb),this.thumb=null}},r.prototype.handleThumbMouseenter=function(){!this.isDiscrete||!this.isRange||(this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR,exports.Thumb.START),this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR,exports.Thumb.END))},r.prototype.handleThumbMouseleave=function(){var t,e;!this.isDiscrete||!this.isRange||!(!((e=(t=this.adapter).shouldHideFocusStylesForPointerEvents)===null||e===void 0)&&e.call(t))&&(this.adapter.isInputFocused(exports.Thumb.START)||this.adapter.isInputFocused(exports.Thumb.END))||this.thumb||(this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR,exports.Thumb.START),this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR,exports.Thumb.END))},r.prototype.handleMousedownOrTouchstart=function(t){var e=this,n=t.type==="mousedown"?"mousemove":"touchmove";this.adapter.registerBodyEventHandler(n,this.moveListener);var s=function(){e.handleUp(),e.adapter.deregisterBodyEventHandler(n,e.moveListener),e.adapter.deregisterEventHandler("mouseup",s),e.adapter.deregisterEventHandler("touchend",s)};this.adapter.registerBodyEventHandler("mouseup",s),this.adapter.registerBodyEventHandler("touchend",s),this.handleDown(t)},r.prototype.handlePointerdown=function(t){var e=t.button===0;e&&(t.pointerId!=null&&this.adapter.setPointerCapture(t.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(t))},r.prototype.handleInputChange=function(t){var e=Number(this.adapter.getInputValue(t));t===exports.Thumb.START?this.setValueStart(e):this.setValue(e),this.adapter.emitChangeEvent(t===exports.Thumb.START?this.valueStart:this.value,t),this.adapter.emitInputEvent(t===exports.Thumb.START?this.valueStart:this.value,t)},r.prototype.handleInputFocus=function(t){if(this.adapter.addThumbClass(l.THUMB_FOCUSED,t),!!this.isDiscrete&&(this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===exports.Thumb.START?exports.Thumb.END:exports.Thumb.START;this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR,e)}},r.prototype.handleInputBlur=function(t){if(this.adapter.removeThumbClass(l.THUMB_FOCUSED,t),!!this.isDiscrete&&(this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===exports.Thumb.START?exports.Thumb.END:exports.Thumb.START;this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR,e)}},r.prototype.handleDragStart=function(t,e,n){var s,o;this.adapter.emitDragStartEvent(e,n),this.adapter.focusInput(n),!((o=(s=this.adapter).shouldHideFocusStylesForPointerEvents)===null||o===void 0)&&o.call(s)&&this.handleInputFocus(n),t.preventDefault()},r.prototype.getThumbFromDownEvent=function(t,e){if(!this.isRange)return exports.Thumb.END;var n=this.adapter.getThumbBoundingClientRect(exports.Thumb.START),s=this.adapter.getThumbBoundingClientRect(exports.Thumb.END),o=t>=n.left&&t<=n.right,u=t>=s.left&&t<=s.right;return o&&u?null:o?exports.Thumb.START:u?exports.Thumb.END:e<this.valueStart?exports.Thumb.START:e>this.value?exports.Thumb.END:e-this.valueStart<=this.value-e?exports.Thumb.START:exports.Thumb.END},r.prototype.getThumbFromMoveEvent=function(t){if(this.thumb!==null)return this.thumb;if(this.downEventClientX===null)throw new Error("`downEventClientX` is null after move event.");var e=Math.abs(this.downEventClientX-t)<I.THUMB_UPDATE_MIN_PX;if(e)return this.thumb;var n=t<this.downEventClientX;return n?this.adapter.isRTL()?exports.Thumb.END:exports.Thumb.START:this.adapter.isRTL()?exports.Thumb.START:exports.Thumb.END},r.prototype.updateUI=function(t){t?this.updateThumbAndInputAttributes(t):(this.updateThumbAndInputAttributes(exports.Thumb.START),this.updateThumbAndInputAttributes(exports.Thumb.END)),this.updateThumbAndTrackUI(t),this.updateValueIndicatorUI(t),this.updateTickMarksUI()},r.prototype.updateThumbAndInputAttributes=function(t){if(t){var e=this.isRange&&t===exports.Thumb.START?this.valueStart:this.value,n=String(e);this.adapter.setInputAttribute(h.INPUT_VALUE,n,t),this.isRange&&t===exports.Thumb.START?this.adapter.setInputAttribute(h.INPUT_MIN,String(e+this.minRange),exports.Thumb.END):this.isRange&&t===exports.Thumb.END&&this.adapter.setInputAttribute(h.INPUT_MAX,String(e-this.minRange),exports.Thumb.START),this.adapter.getInputValue(t)!==n&&this.adapter.setInputValue(n,t);var s=this.adapter.getValueToAriaValueTextFn();s&&this.adapter.setInputAttribute(h.ARIA_VALUETEXT,s(e,t),t)}},r.prototype.updateValueIndicatorUI=function(t){if(this.isDiscrete){var e=this.isRange&&t===exports.Thumb.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(e,t===exports.Thumb.START?exports.Thumb.START:exports.Thumb.END),!t&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,exports.Thumb.START)}},r.prototype.updateTickMarksUI=function(){if(!(!this.isDiscrete||!this.hasTickMarks)){var t=(this.valueStart-this.min)/this.step,e=(this.value-this.valueStart)/this.step+1,n=(this.max-this.value)/this.step,s=Array.from({length:t}).fill(v.INACTIVE),o=Array.from({length:e}).fill(v.ACTIVE),u=Array.from({length:n}).fill(v.INACTIVE);this.adapter.updateTickMarks(s.concat(o).concat(u))}},r.prototype.mapClientXOnSliderScale=function(t){var e=t-this.rect.left,n=e/this.rect.width;this.adapter.isRTL()&&(n=1-n);var s=this.min+n*(this.max-this.min);return s===this.max||s===this.min?s:Number(this.quantize(s).toFixed(this.numDecimalPlaces))},r.prototype.quantize=function(t){var e=Math.round((t-this.min)/this.step);return this.min+e*this.step},r.prototype.updateValue=function(t,e,n){var s=n===void 0?{}:n,o=s.emitInputEvent;if(t=this.clampValue(t,e),this.isRange&&e===exports.Thumb.START){if(this.valueStart===t)return;this.valueStart=t}else{if(this.value===t)return;this.value=t}this.updateUI(e),o&&this.adapter.emitInputEvent(e===exports.Thumb.START?this.valueStart:this.value,e)},r.prototype.clampValue=function(t,e){t=Math.min(Math.max(t,this.min),this.max);var n=this.isRange&&e===exports.Thumb.START&&t>this.value-this.minRange;if(n)return this.value-this.minRange;var s=this.isRange&&e===exports.Thumb.END&&t<this.valueStart+this.minRange;return s?this.valueStart+this.minRange:t},r.prototype.updateThumbAndTrackUI=function(t){var e=this,n=this,s=n.max,o=n.min,u=(this.value-this.valueStart)/(s-o),c=u*this.rect.width,m=this.adapter.isRTL(),T=R?D(window,"transform"):"transform";if(this.isRange){var b=this.adapter.isRTL()?(s-this.value)/(s-o)*this.rect.width:(this.valueStart-o)/(s-o)*this.rect.width,E=b+c;this.animFrame.request(g.SLIDER_UPDATE,function(){var f=!m&&t===exports.Thumb.START||m&&t!==exports.Thumb.START;f?(e.adapter.setTrackActiveStyleProperty("transform-origin","right"),e.adapter.setTrackActiveStyleProperty("left","auto"),e.adapter.setTrackActiveStyleProperty("right",e.rect.width-E+"px")):(e.adapter.setTrackActiveStyleProperty("transform-origin","left"),e.adapter.setTrackActiveStyleProperty("right","auto"),e.adapter.setTrackActiveStyleProperty("left",b+"px")),e.adapter.setTrackActiveStyleProperty(T,"scaleX("+u+")");var y=m?E:b,A=e.adapter.isRTL()?b:E;(t===exports.Thumb.START||!t||!e.initialStylesRemoved)&&(e.adapter.setThumbStyleProperty(T,"translateX("+y+"px)",exports.Thumb.START),e.alignValueIndicator(exports.Thumb.START,y)),(t===exports.Thumb.END||!t||!e.initialStylesRemoved)&&(e.adapter.setThumbStyleProperty(T,"translateX("+A+"px)",exports.Thumb.END),e.alignValueIndicator(exports.Thumb.END,A)),e.removeInitialStyles(m),e.updateOverlappingThumbsUI(y,A,t)})}else this.animFrame.request(g.SLIDER_UPDATE,function(){var f=m?e.rect.width-c:c;e.adapter.setThumbStyleProperty(T,"translateX("+f+"px)",exports.Thumb.END),e.alignValueIndicator(exports.Thumb.END,f),e.adapter.setTrackActiveStyleProperty(T,"scaleX("+u+")"),e.removeInitialStyles(m)})},r.prototype.alignValueIndicator=function(t,e){if(this.isDiscrete){var n=this.adapter.getThumbBoundingClientRect(t).width/2,s=this.adapter.getValueIndicatorContainerWidth(t),o=this.adapter.getBoundingClientRect().width;s/2>e+n?(this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_LEFT,n+"px",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"0",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",t)):s/2>o-e+n?(this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_LEFT,"auto",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_RIGHT,n+"px",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(50%)",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"auto",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"0",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",t)):(this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_LEFT,"50%",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"50%",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"translateX(-50%)",t))}},r.prototype.removeInitialStyles=function(t){if(!this.initialStylesRemoved){var e=t?"right":"left";this.adapter.removeThumbStyleProperty(e,exports.Thumb.END),this.isRange&&this.adapter.removeThumbStyleProperty(e,exports.Thumb.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},r.prototype.resetTrackAndThumbAnimation=function(){var t=this;if(this.isDiscrete){var e=R?D(window,"transition"):"transition",n="none 0s ease 0s";this.adapter.setThumbStyleProperty(e,n,exports.Thumb.END),this.isRange&&this.adapter.setThumbStyleProperty(e,n,exports.Thumb.START),this.adapter.setTrackActiveStyleProperty(e,n),requestAnimationFrame(function(){t.adapter.removeThumbStyleProperty(e,exports.Thumb.END),t.adapter.removeTrackActiveStyleProperty(e),t.isRange&&t.adapter.removeThumbStyleProperty(e,exports.Thumb.START)})}},r.prototype.updateOverlappingThumbsUI=function(t,e,n){var s=!1;if(this.adapter.isRTL()){var o=t-this.startThumbKnobWidth/2,u=e+this.endThumbKnobWidth/2;s=u>=o}else{var c=t+this.startThumbKnobWidth/2,m=e-this.endThumbKnobWidth/2;s=c>=m}s?(this.adapter.addThumbClass(l.THUMB_TOP,n||exports.Thumb.END),this.adapter.removeThumbClass(l.THUMB_TOP,n===exports.Thumb.START?exports.Thumb.END:exports.Thumb.START)):(this.adapter.removeThumbClass(l.THUMB_TOP,exports.Thumb.START),this.adapter.removeThumbClass(l.THUMB_TOP,exports.Thumb.END))},r.prototype.convertAttributeValueToNumber=function(t,e){if(t===null)throw new Error("MDCSliderFoundation: `"+e+"` must be non-null.");var n=Number(t);if(isNaN(n))throw new Error("MDCSliderFoundation: `"+e+"` value is `"+t+"`, but must be a number.");return n},r.prototype.validateProperties=function(t){var e=t.min,n=t.max,s=t.value,o=t.valueStart,u=t.step,c=t.minRange;if(e>=n)throw new Error("MDCSliderFoundation: min must be strictly less than max. "+("Current: [min: "+e+", max: "+n+"]"));if(u<=0)throw new Error("MDCSliderFoundation: step must be a positive number. "+("Current step: "+u));if(this.isRange){if(s<e||s>n||o<e||o>n)throw new Error("MDCSliderFoundation: values must be in [min, max] range. "+("Current values: [start value: "+o+", end value: ")+(s+", min: "+e+", max: "+n+"]"));if(o>s)throw new Error("MDCSliderFoundation: start value must be <= end value. "+("Current values: [start value: "+o+", end value: "+s+"]"));if(c<0)throw new Error("MDCSliderFoundation: minimum range must be non-negative. "+("Current min range: "+c));if(s-o<c)throw new Error("MDCSliderFoundation: start value and end value must differ by at least "+(c+". Current values: [start value: "+o+", ")+("end value: "+s+"]"));var m=(o-e)/u,T=(s-e)/u;if(!Number.isInteger(parseFloat(m.toFixed(6)))||!Number.isInteger(parseFloat(T.toFixed(6))))throw new Error("MDCSliderFoundation: Slider values must be valid based on the "+("step value ("+u+"). Current values: [start value: ")+(o+", end value: "+s+", min: "+e+"]"))}else{if(s<e||s>n)throw new Error("MDCSliderFoundation: value must be in [min, max] range. "+("Current values: [value: "+s+", min: "+e+", max: "+n+"]"));var T=(s-e)/u;if(!Number.isInteger(parseFloat(T.toFixed(6))))throw new Error("MDCSliderFoundation: Slider value must be valid based on the "+("step value ("+u+"). Current value: "+s))}},r.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),r.SUPPORTS_POINTER_EVENTS?(this.adapter.registerEventHandler("pointerdown",this.pointerdownListener),this.adapter.registerEventHandler("pointerup",this.pointerupListener)):(this.adapter.registerEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.registerEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.registerThumbEventHandler(exports.Thumb.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(exports.Thumb.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(exports.Thumb.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(exports.Thumb.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(exports.Thumb.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(exports.Thumb.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(exports.Thumb.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(exports.Thumb.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(exports.Thumb.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(exports.Thumb.END,"blur",this.inputEndBlurListener)},r.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),r.SUPPORTS_POINTER_EVENTS?(this.adapter.deregisterEventHandler("pointerdown",this.pointerdownListener),this.adapter.deregisterEventHandler("pointerup",this.pointerupListener)):(this.adapter.deregisterEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.deregisterEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.deregisterThumbEventHandler(exports.Thumb.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(exports.Thumb.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(exports.Thumb.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(exports.Thumb.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(exports.Thumb.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(exports.Thumb.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(exports.Thumb.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(exports.Thumb.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(exports.Thumb.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(exports.Thumb.END,"blur",this.inputEndBlurListener)},r.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},r.SUPPORTS_POINTER_EVENTS=R&&Boolean(window.PointerEvent)&&!L(),r}(P);function L(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function N(a){var r=/(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(a));if(!r)return 0;var t=r[1]||"",e=r[2]||0;return Math.max(0,(t==="0"?0:t.length)-Number(e))}/**
127
+ */var I;(function(s){s.SLIDER_UPDATE="slider_update"})(I||(I={}));var N=typeof window<"u",B=function(s){o.__extends(r,s);function r(t){var e=s.call(this,o.__assign(o.__assign({},r.defaultAdapter),t))||this;return e.initialStylesRemoved=!1,e.isDisabled=!1,e.isDiscrete=!1,e.step=D.STEP_SIZE,e.minRange=D.MIN_RANGE,e.hasTickMarks=!1,e.isRange=!1,e.thumb=null,e.downEventClientX=null,e.startThumbKnobWidth=0,e.endThumbKnobWidth=0,e.animFrame=new F,e}return Object.defineProperty(r,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},addThumbClass:function(){},removeThumbClass:function(){},getAttribute:function(){return null},getInputValue:function(){return""},setInputValue:function(){},getInputAttribute:function(){return null},setInputAttribute:function(){return null},removeInputAttribute:function(){return null},focusInput:function(){},isInputFocused:function(){return!1},shouldHideFocusStylesForPointerEvents:function(){return!1},getThumbKnobWidth:function(){return 0},getValueIndicatorContainerWidth:function(){return 0},getThumbBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},isRTL:function(){return!1},setThumbStyleProperty:function(){},removeThumbStyleProperty:function(){},setTrackActiveStyleProperty:function(){},removeTrackActiveStyleProperty:function(){},setValueIndicatorText:function(){},getValueToAriaValueTextFn:function(){return null},updateTickMarks:function(){},setPointerCapture:function(){},emitChangeEvent:function(){},emitInputEvent:function(){},emitDragStartEvent:function(){},emitDragEndEvent:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerThumbEventHandler:function(){},deregisterThumbEventHandler:function(){},registerInputEventHandler:function(){},deregisterInputEventHandler:function(){},registerBodyEventHandler:function(){},deregisterBodyEventHandler:function(){},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!1,configurable:!0}),r.prototype.init=function(){var t=this;this.isDisabled=this.adapter.hasClass(l.DISABLED),this.isDiscrete=this.adapter.hasClass(l.DISCRETE),this.hasTickMarks=this.adapter.hasClass(l.TICK_MARKS),this.isRange=this.adapter.hasClass(l.RANGE);var e=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(h.INPUT_MIN,this.isRange?exports.Thumb.START:exports.Thumb.END),h.INPUT_MIN),i=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(h.INPUT_MAX,exports.Thumb.END),h.INPUT_MAX),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(h.INPUT_VALUE,exports.Thumb.END),h.INPUT_VALUE),a=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(h.INPUT_VALUE,exports.Thumb.START),h.INPUT_VALUE):e,u=this.adapter.getInputAttribute(h.INPUT_STEP,exports.Thumb.END),m=u?this.convertAttributeValueToNumber(u,h.INPUT_STEP):this.step,T=this.adapter.getAttribute(h.DATA_MIN_RANGE),v=T?this.convertAttributeValueToNumber(T,h.DATA_MIN_RANGE):this.minRange;this.validateProperties({min:e,max:i,value:n,valueStart:a,step:m,minRange:v}),this.min=e,this.max=i,this.value=n,this.valueStart=a,this.step=m,this.minRange=v,this.numDecimalPlaces=P(this.step),this.valueBeforeDownEvent=n,this.valueStartBeforeDownEvent=a,this.mousedownOrTouchstartListener=this.handleMousedownOrTouchstart.bind(this),this.moveListener=this.handleMove.bind(this),this.pointerdownListener=this.handlePointerdown.bind(this),this.pointerupListener=this.handlePointerup.bind(this),this.thumbMouseenterListener=this.handleThumbMouseenter.bind(this),this.thumbMouseleaveListener=this.handleThumbMouseleave.bind(this),this.inputStartChangeListener=function(){t.handleInputChange(exports.Thumb.START)},this.inputEndChangeListener=function(){t.handleInputChange(exports.Thumb.END)},this.inputStartFocusListener=function(){t.handleInputFocus(exports.Thumb.START)},this.inputEndFocusListener=function(){t.handleInputFocus(exports.Thumb.END)},this.inputStartBlurListener=function(){t.handleInputBlur(exports.Thumb.START)},this.inputEndBlurListener=function(){t.handleInputBlur(exports.Thumb.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},r.prototype.destroy=function(){this.deregisterEventHandlers()},r.prototype.setMin=function(t){this.min=t,this.isRange||(this.valueStart=t),this.updateUI()},r.prototype.setMax=function(t){this.max=t,this.updateUI()},r.prototype.getMin=function(){return this.min},r.prototype.getMax=function(){return this.max},r.prototype.getValue=function(){return this.value},r.prototype.setValue=function(t){if(this.isRange&&t<this.valueStart+this.minRange)throw new Error("end thumb value ("+t+") must be >= start thumb "+("value ("+this.valueStart+") + min range ("+this.minRange+")"));this.updateValue(t,exports.Thumb.END)},r.prototype.getValueStart=function(){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");return this.valueStart},r.prototype.setValueStart=function(t){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&t>this.value-this.minRange)throw new Error("start thumb value ("+t+") must be <= end thumb "+("value ("+this.value+") - min range ("+this.minRange+")"));this.updateValue(t,exports.Thumb.START)},r.prototype.setStep=function(t){this.step=t,this.numDecimalPlaces=P(t),this.updateUI()},r.prototype.setMinRange=function(t){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");if(t<0)throw new Error("`minRange` must be non-negative. "+("Current value: "+t));if(this.value-this.valueStart<t)throw new Error("start thumb value ("+this.valueStart+") and end thumb value "+("("+this.value+") must differ by at least "+t+"."));this.minRange=t},r.prototype.setIsDiscrete=function(t){this.isDiscrete=t,this.updateValueIndicatorUI(),this.updateTickMarksUI()},r.prototype.getStep=function(){return this.step},r.prototype.getMinRange=function(){if(!this.isRange)throw new Error("`minRange` is only applicable for range sliders.");return this.minRange},r.prototype.setHasTickMarks=function(t){this.hasTickMarks=t,this.updateTickMarksUI()},r.prototype.getDisabled=function(){return this.isDisabled},r.prototype.setDisabled=function(t){this.isDisabled=t,t?(this.adapter.addClass(l.DISABLED),this.isRange&&this.adapter.setInputAttribute(h.INPUT_DISABLED,"",exports.Thumb.START),this.adapter.setInputAttribute(h.INPUT_DISABLED,"",exports.Thumb.END)):(this.adapter.removeClass(l.DISABLED),this.isRange&&this.adapter.removeInputAttribute(h.INPUT_DISABLED,exports.Thumb.START),this.adapter.removeInputAttribute(h.INPUT_DISABLED,exports.Thumb.END))},r.prototype.getIsRange=function(){return this.isRange},r.prototype.layout=function(t){var e=t===void 0?{}:t,i=e.skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(exports.Thumb.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(exports.Thumb.END)),i||this.updateUI()},r.prototype.handleResize=function(){this.layout()},r.prototype.handleDown=function(t){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var e=t.clientX!=null?t.clientX:t.targetTouches[0].clientX;this.downEventClientX=e;var i=this.mapClientXOnSliderScale(e);this.thumb=this.getThumbFromDownEvent(e,i),this.thumb!==null&&(this.handleDragStart(t,i,this.thumb),this.updateValue(i,this.thumb,{emitInputEvent:!0}))}},r.prototype.handleMove=function(t){if(!this.isDisabled){t.preventDefault();var e=t.clientX!=null?t.clientX:t.targetTouches[0].clientX,i=this.thumb!=null;if(this.thumb=this.getThumbFromMoveEvent(e),this.thumb!==null){var n=this.mapClientXOnSliderScale(e);i||(this.handleDragStart(t,n,this.thumb),this.adapter.emitDragStartEvent(n,this.thumb)),this.updateValue(n,this.thumb,{emitInputEvent:!0})}}},r.prototype.handleUp=function(){var t,e;if(!(this.isDisabled||this.thumb===null)){!((e=(t=this.adapter).shouldHideFocusStylesForPointerEvents)===null||e===void 0)&&e.call(t)&&this.handleInputBlur(this.thumb);var i=this.thumb===exports.Thumb.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,n=this.thumb===exports.Thumb.START?this.valueStart:this.value;i!==n&&this.adapter.emitChangeEvent(n,this.thumb),this.adapter.emitDragEndEvent(n,this.thumb),this.thumb=null}},r.prototype.handleThumbMouseenter=function(){!this.isDiscrete||!this.isRange||(this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR,exports.Thumb.START),this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR,exports.Thumb.END))},r.prototype.handleThumbMouseleave=function(){var t,e;!this.isDiscrete||!this.isRange||!(!((e=(t=this.adapter).shouldHideFocusStylesForPointerEvents)===null||e===void 0)&&e.call(t))&&(this.adapter.isInputFocused(exports.Thumb.START)||this.adapter.isInputFocused(exports.Thumb.END))||this.thumb||(this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR,exports.Thumb.START),this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR,exports.Thumb.END))},r.prototype.handleMousedownOrTouchstart=function(t){var e=this,i=t.type==="mousedown"?"mousemove":"touchmove";this.adapter.registerBodyEventHandler(i,this.moveListener);var n=function(){e.handleUp(),e.adapter.deregisterBodyEventHandler(i,e.moveListener),e.adapter.deregisterEventHandler("mouseup",n),e.adapter.deregisterEventHandler("touchend",n)};this.adapter.registerBodyEventHandler("mouseup",n),this.adapter.registerBodyEventHandler("touchend",n),this.handleDown(t)},r.prototype.handlePointerdown=function(t){var e=t.button===0;e&&(t.pointerId!=null&&this.adapter.setPointerCapture(t.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(t))},r.prototype.handleInputChange=function(t){var e=Number(this.adapter.getInputValue(t));t===exports.Thumb.START?this.setValueStart(e):this.setValue(e),this.adapter.emitChangeEvent(t===exports.Thumb.START?this.valueStart:this.value,t),this.adapter.emitInputEvent(t===exports.Thumb.START?this.valueStart:this.value,t)},r.prototype.handleInputFocus=function(t){if(this.adapter.addThumbClass(l.THUMB_FOCUSED,t),!!this.isDiscrete&&(this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===exports.Thumb.START?exports.Thumb.END:exports.Thumb.START;this.adapter.addThumbClass(l.THUMB_WITH_INDICATOR,e)}},r.prototype.handleInputBlur=function(t){if(this.adapter.removeThumbClass(l.THUMB_FOCUSED,t),!!this.isDiscrete&&(this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===exports.Thumb.START?exports.Thumb.END:exports.Thumb.START;this.adapter.removeThumbClass(l.THUMB_WITH_INDICATOR,e)}},r.prototype.handleDragStart=function(t,e,i){var n,a;this.adapter.emitDragStartEvent(e,i),this.adapter.focusInput(i),!((a=(n=this.adapter).shouldHideFocusStylesForPointerEvents)===null||a===void 0)&&a.call(n)&&this.handleInputFocus(i),t.preventDefault()},r.prototype.getThumbFromDownEvent=function(t,e){if(!this.isRange)return exports.Thumb.END;var i=this.adapter.getThumbBoundingClientRect(exports.Thumb.START),n=this.adapter.getThumbBoundingClientRect(exports.Thumb.END),a=t>=i.left&&t<=i.right,u=t>=n.left&&t<=n.right;return a&&u?null:a?exports.Thumb.START:u?exports.Thumb.END:e<this.valueStart?exports.Thumb.START:e>this.value?exports.Thumb.END:e-this.valueStart<=this.value-e?exports.Thumb.START:exports.Thumb.END},r.prototype.getThumbFromMoveEvent=function(t){if(this.thumb!==null)return this.thumb;if(this.downEventClientX===null)throw new Error("`downEventClientX` is null after move event.");var e=Math.abs(this.downEventClientX-t)<D.THUMB_UPDATE_MIN_PX;if(e)return this.thumb;var i=t<this.downEventClientX;return i?this.adapter.isRTL()?exports.Thumb.END:exports.Thumb.START:this.adapter.isRTL()?exports.Thumb.START:exports.Thumb.END},r.prototype.updateUI=function(t){t?this.updateThumbAndInputAttributes(t):(this.updateThumbAndInputAttributes(exports.Thumb.START),this.updateThumbAndInputAttributes(exports.Thumb.END)),this.updateThumbAndTrackUI(t),this.updateValueIndicatorUI(t),this.updateTickMarksUI()},r.prototype.updateThumbAndInputAttributes=function(t){if(t){var e=this.isRange&&t===exports.Thumb.START?this.valueStart:this.value,i=String(e);this.adapter.setInputAttribute(h.INPUT_VALUE,i,t),this.isRange&&t===exports.Thumb.START?this.adapter.setInputAttribute(h.INPUT_MIN,String(e+this.minRange),exports.Thumb.END):this.isRange&&t===exports.Thumb.END&&this.adapter.setInputAttribute(h.INPUT_MAX,String(e-this.minRange),exports.Thumb.START),this.adapter.getInputValue(t)!==i&&this.adapter.setInputValue(i,t);var n=this.adapter.getValueToAriaValueTextFn();n&&this.adapter.setInputAttribute(h.ARIA_VALUETEXT,n(e,t),t)}},r.prototype.updateValueIndicatorUI=function(t){if(this.isDiscrete){var e=this.isRange&&t===exports.Thumb.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(e,t===exports.Thumb.START?exports.Thumb.START:exports.Thumb.END),!t&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,exports.Thumb.START)}},r.prototype.updateTickMarksUI=function(){if(!(!this.isDiscrete||!this.hasTickMarks)){var t=(this.valueStart-this.min)/this.step,e=(this.value-this.valueStart)/this.step+1,i=(this.max-this.value)/this.step,n=Array.from({length:t}).fill(_.INACTIVE),a=Array.from({length:e}).fill(_.ACTIVE),u=Array.from({length:i}).fill(_.INACTIVE);this.adapter.updateTickMarks(n.concat(a).concat(u))}},r.prototype.mapClientXOnSliderScale=function(t){var e=t-this.rect.left,i=e/this.rect.width;this.adapter.isRTL()&&(i=1-i);var n=this.min+i*(this.max-this.min);return n===this.max||n===this.min?n:Number(this.quantize(n).toFixed(this.numDecimalPlaces))},r.prototype.quantize=function(t){var e=Math.round((t-this.min)/this.step);return this.min+e*this.step},r.prototype.updateValue=function(t,e,i){var n=i===void 0?{}:i,a=n.emitInputEvent;if(t=this.clampValue(t,e),this.isRange&&e===exports.Thumb.START){if(this.valueStart===t)return;this.valueStart=t}else{if(this.value===t)return;this.value=t}this.updateUI(e),a&&this.adapter.emitInputEvent(e===exports.Thumb.START?this.valueStart:this.value,e)},r.prototype.clampValue=function(t,e){t=Math.min(Math.max(t,this.min),this.max);var i=this.isRange&&e===exports.Thumb.START&&t>this.value-this.minRange;if(i)return this.value-this.minRange;var n=this.isRange&&e===exports.Thumb.END&&t<this.valueStart+this.minRange;return n?this.valueStart+this.minRange:t},r.prototype.updateThumbAndTrackUI=function(t){var e=this,i=this,n=i.max,a=i.min,u=(this.value-this.valueStart)/(n-a),m=u*this.rect.width,T=this.adapter.isRTL(),v=N?w(window,"transform"):"transform";if(this.isRange){var E=this.adapter.isRTL()?(n-this.value)/(n-a)*this.rect.width:(this.valueStart-a)/(n-a)*this.rect.width,R=E+m;this.animFrame.request(I.SLIDER_UPDATE,function(){var y=!T&&t===exports.Thumb.START||T&&t!==exports.Thumb.START;y?(e.adapter.setTrackActiveStyleProperty("transform-origin","right"),e.adapter.setTrackActiveStyleProperty("left","auto"),e.adapter.setTrackActiveStyleProperty("right",e.rect.width-R+"px")):(e.adapter.setTrackActiveStyleProperty("transform-origin","left"),e.adapter.setTrackActiveStyleProperty("right","auto"),e.adapter.setTrackActiveStyleProperty("left",E+"px")),e.adapter.setTrackActiveStyleProperty(v,"scaleX("+u+")");var S=T?R:E,x=e.adapter.isRTL()?E:R;(t===exports.Thumb.START||!t||!e.initialStylesRemoved)&&(e.adapter.setThumbStyleProperty(v,"translateX("+S+"px)",exports.Thumb.START),e.alignValueIndicator(exports.Thumb.START,S)),(t===exports.Thumb.END||!t||!e.initialStylesRemoved)&&(e.adapter.setThumbStyleProperty(v,"translateX("+x+"px)",exports.Thumb.END),e.alignValueIndicator(exports.Thumb.END,x)),e.removeInitialStyles(T),e.updateOverlappingThumbsUI(S,x,t)})}else this.animFrame.request(I.SLIDER_UPDATE,function(){var y=T?e.rect.width-m:m;e.adapter.setThumbStyleProperty(v,"translateX("+y+"px)",exports.Thumb.END),e.alignValueIndicator(exports.Thumb.END,y),e.adapter.setTrackActiveStyleProperty(v,"scaleX("+u+")"),e.removeInitialStyles(T)})},r.prototype.alignValueIndicator=function(t,e){if(this.isDiscrete){var i=this.adapter.getThumbBoundingClientRect(t).width/2,n=this.adapter.getValueIndicatorContainerWidth(t),a=this.adapter.getBoundingClientRect().width;n/2>e+i?(this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_LEFT,i+"px",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"0",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",t)):n/2>a-e+i?(this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_LEFT,"auto",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_RIGHT,i+"px",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(50%)",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"auto",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"0",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"none",t)):(this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_LEFT,"50%",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_TRANSFORM,"translateX(-50%)",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_LEFT,"50%",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_RIGHT,"auto",t),this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM,"translateX(-50%)",t))}},r.prototype.removeInitialStyles=function(t){if(!this.initialStylesRemoved){var e=t?"right":"left";this.adapter.removeThumbStyleProperty(e,exports.Thumb.END),this.isRange&&this.adapter.removeThumbStyleProperty(e,exports.Thumb.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},r.prototype.resetTrackAndThumbAnimation=function(){var t=this;if(this.isDiscrete){var e=N?w(window,"transition"):"transition",i="none 0s ease 0s";this.adapter.setThumbStyleProperty(e,i,exports.Thumb.END),this.isRange&&this.adapter.setThumbStyleProperty(e,i,exports.Thumb.START),this.adapter.setTrackActiveStyleProperty(e,i),requestAnimationFrame(function(){t.adapter.removeThumbStyleProperty(e,exports.Thumb.END),t.adapter.removeTrackActiveStyleProperty(e),t.isRange&&t.adapter.removeThumbStyleProperty(e,exports.Thumb.START)})}},r.prototype.updateOverlappingThumbsUI=function(t,e,i){var n=!1;if(this.adapter.isRTL()){var a=t-this.startThumbKnobWidth/2,u=e+this.endThumbKnobWidth/2;n=u>=a}else{var m=t+this.startThumbKnobWidth/2,T=e-this.endThumbKnobWidth/2;n=m>=T}n?(this.adapter.addThumbClass(l.THUMB_TOP,i||exports.Thumb.END),this.adapter.removeThumbClass(l.THUMB_TOP,i===exports.Thumb.START?exports.Thumb.END:exports.Thumb.START)):(this.adapter.removeThumbClass(l.THUMB_TOP,exports.Thumb.START),this.adapter.removeThumbClass(l.THUMB_TOP,exports.Thumb.END))},r.prototype.convertAttributeValueToNumber=function(t,e){if(t===null)throw new Error("MDCSliderFoundation: `"+e+"` must be non-null.");var i=Number(t);if(isNaN(i))throw new Error("MDCSliderFoundation: `"+e+"` value is `"+t+"`, but must be a number.");return i},r.prototype.validateProperties=function(t){var e=t.min,i=t.max,n=t.value,a=t.valueStart,u=t.step,m=t.minRange;if(e>=i)throw new Error("MDCSliderFoundation: min must be strictly less than max. "+("Current: [min: "+e+", max: "+i+"]"));if(u<=0)throw new Error("MDCSliderFoundation: step must be a positive number. "+("Current step: "+u));if(this.isRange){if(n<e||n>i||a<e||a>i)throw new Error("MDCSliderFoundation: values must be in [min, max] range. "+("Current values: [start value: "+a+", end value: ")+(n+", min: "+e+", max: "+i+"]"));if(a>n)throw new Error("MDCSliderFoundation: start value must be <= end value. "+("Current values: [start value: "+a+", end value: "+n+"]"));if(m<0)throw new Error("MDCSliderFoundation: minimum range must be non-negative. "+("Current min range: "+m));if(n-a<m)throw new Error("MDCSliderFoundation: start value and end value must differ by at least "+(m+". Current values: [start value: "+a+", ")+("end value: "+n+"]"));var T=(a-e)/u,v=(n-e)/u;if(!Number.isInteger(parseFloat(T.toFixed(6)))||!Number.isInteger(parseFloat(v.toFixed(6))))throw new Error("MDCSliderFoundation: Slider values must be valid based on the "+("step value ("+u+"). Current values: [start value: ")+(a+", end value: "+n+", min: "+e+"]"))}else{if(n<e||n>i)throw new Error("MDCSliderFoundation: value must be in [min, max] range. "+("Current values: [value: "+n+", min: "+e+", max: "+i+"]"));var v=(n-e)/u;if(!Number.isInteger(parseFloat(v.toFixed(6))))throw new Error("MDCSliderFoundation: Slider value must be valid based on the "+("step value ("+u+"). Current value: "+n))}},r.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),r.SUPPORTS_POINTER_EVENTS?(this.adapter.registerEventHandler("pointerdown",this.pointerdownListener),this.adapter.registerEventHandler("pointerup",this.pointerupListener)):(this.adapter.registerEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.registerEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.registerThumbEventHandler(exports.Thumb.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(exports.Thumb.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(exports.Thumb.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(exports.Thumb.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(exports.Thumb.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(exports.Thumb.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(exports.Thumb.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(exports.Thumb.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(exports.Thumb.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(exports.Thumb.END,"blur",this.inputEndBlurListener)},r.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),r.SUPPORTS_POINTER_EVENTS?(this.adapter.deregisterEventHandler("pointerdown",this.pointerdownListener),this.adapter.deregisterEventHandler("pointerup",this.pointerupListener)):(this.adapter.deregisterEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.deregisterEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.deregisterThumbEventHandler(exports.Thumb.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(exports.Thumb.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(exports.Thumb.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(exports.Thumb.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(exports.Thumb.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(exports.Thumb.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(exports.Thumb.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(exports.Thumb.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(exports.Thumb.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(exports.Thumb.END,"blur",this.inputEndBlurListener)},r.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},r.SUPPORTS_POINTER_EVENTS=N&&Boolean(window.PointerEvent)&&!$(),r}(O);function $(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function P(s){var r=/(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(s));if(!r)return 0;var t=r[1]||"",e=r[2]||0;return Math.max(0,(t==="0"?0:t.length)-Number(e))}/**
128
128
  * @license
129
129
  * Copyright 2018 Google LLC
130
130
  * SPDX-License-Identifier: Apache-2.0
131
- */class d extends C.FormElement{constructor(){super(...arguments),this.mdcFoundationClass=V,this.disabled=!1,this.min=0,this.max=100,this.valueEnd=0,this.name="",this.step=1,this.withTickMarks=!1,this.discrete=!1,this.tickMarks=[],this.trackTransformOriginStyle="",this.trackLeftStyle="",this.trackRightStyle="",this.trackTransitionStyle="",this.endThumbWithIndicator=!1,this.endThumbTop=!1,this.shouldRenderEndRipple=!1,this.endThumbTransformStyle="",this.endThumbTransitionStyle="",this.endThumbCssProperties={},this.valueToAriaTextTransform=null,this.valueToValueIndicatorTransform=r=>`${r}`,this.boundMoveListener=null,this.endRippleHandlers=new k.RippleHandlers(()=>(this.shouldRenderEndRipple=!0,this.endRipple))}update(r){if(r.has("valueEnd")&&this.mdcFoundation){this.mdcFoundation.setValue(this.valueEnd);const t=this.mdcFoundation.getValue();t!==this.valueEnd&&(this.valueEnd=t)}r.has("discrete")&&(this.discrete||(this.tickMarks=[])),super.update(r)}render(){return this.renderRootEl(i.y`
131
+ */class d extends L.FormElement{constructor(){super(...arguments),this.mdcFoundationClass=B,this.disabled=!1,this.min=0,this.max=100,this.valueEnd=0,this.name="",this.step=1,this.withTickMarks=!1,this.discrete=!1,this.tickMarks=[],this.trackTransformOriginStyle="",this.trackLeftStyle="",this.trackRightStyle="",this.trackTransitionStyle="",this.endThumbWithIndicator=!1,this.endThumbTop=!1,this.shouldRenderEndRipple=!1,this.endThumbTransformStyle="",this.endThumbTransitionStyle="",this.endThumbCssProperties={},this.valueToAriaTextTransform=null,this.valueToValueIndicatorTransform=r=>`${r}`,this.boundMoveListener=null,this.endRippleHandlers=new V.RippleHandlers(()=>(this.shouldRenderEndRipple=!0,this.endRipple))}update(r){if(r.has("valueEnd")&&this.mdcFoundation){this.mdcFoundation.setValue(this.valueEnd);const t=this.mdcFoundation.getValue();t!==this.valueEnd&&(this.valueEnd=t)}r.has("discrete")&&(this.discrete||(this.tickMarks=[])),super.update(r)}render(){return this.renderRootEl(c.y`
132
132
  ${this.renderStartInput()}
133
133
  ${this.renderEndInput()}
134
134
  ${this.renderTrack()}
135
135
  ${this.renderTickMarks()}
136
136
  ${this.renderStartThumb()}
137
- ${this.renderEndThumb()}`)}renderRootEl(r){const t=i.o({"mdc-slider--disabled":this.disabled,"mdc-slider--discrete":this.discrete});return i.y`
137
+ ${this.renderEndThumb()}`)}renderRootEl(r){const t=k.o({"mdc-slider--disabled":this.disabled,"mdc-slider--discrete":this.discrete});return c.y`
138
138
  <div
139
139
  class="mdc-slider ${t}"
140
140
  @pointerdown=${this.onPointerdown}
141
141
  @pointerup=${this.onPointerup}
142
142
  @contextmenu=${this.onContextmenu}>
143
143
  ${r}
144
- </div>`}renderStartInput(){return i.b}renderEndInput(){var r;return i.y`
144
+ </div>`}renderStartInput(){return c.b}renderEndInput(){var r;return c.y`
145
145
  <input
146
146
  class="mdc-slider__input end"
147
147
  type="range"
@@ -154,14 +154,14 @@
154
154
  @blur=${this.onEndBlur}
155
155
  ?disabled=${this.disabled}
156
156
  name=${this.name}
157
- aria-label=${_.l(this.ariaLabel)}
158
- aria-labelledby=${_.l(this.ariaLabelledBy)}
159
- aria-describedby=${_.l(this.ariaDescribedBy)}
160
- aria-valuetext=${_.l((r=this.valueToAriaTextTransform)===null||r===void 0?void 0:r.call(this,this.valueEnd))}>
161
- `}renderTrack(){return i.b}renderTickMarks(){return this.withTickMarks?i.y`
157
+ aria-label=${A.l(this.ariaLabel)}
158
+ aria-labelledby=${A.l(this.ariaLabelledBy)}
159
+ aria-describedby=${A.l(this.ariaDescribedBy)}
160
+ aria-valuetext=${A.l((r=this.valueToAriaTextTransform)===null||r===void 0?void 0:r.call(this,this.valueEnd))}>
161
+ `}renderTrack(){return c.b}renderTickMarks(){return this.withTickMarks?c.y`
162
162
  <div class="mdc-slider__tick-marks">
163
- ${this.tickMarks.map(r=>{const t=r===v.ACTIVE;return i.y`<div class="${t?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"}"></div>`})}
164
- </div>`:i.b}renderStartThumb(){return i.b}renderEndThumb(){const r=i.o({"mdc-slider__thumb--with-indicator":this.endThumbWithIndicator,"mdc-slider__thumb--top":this.endThumbTop}),t=i.i$2(Object.assign({"-webkit-transform":this.endThumbTransformStyle,transform:this.endThumbTransformStyle,"-webkit-transition":this.endThumbTransitionStyle,transition:this.endThumbTransitionStyle,left:this.endThumbTransformStyle||getComputedStyle(this).direction==="rtl"?"":`calc(${(this.valueEnd-this.min)/(this.max-this.min)*100}% - 24px)`,right:this.endThumbTransformStyle||getComputedStyle(this).direction!=="rtl"?"":`calc(${(this.valueEnd-this.min)/(this.max-this.min)*100}% - 24px)`},this.endThumbCssProperties)),e=this.shouldRenderEndRipple?i.y`<mwc-ripple class="ripple" unbounded></mwc-ripple>`:i.b;return i.y`
163
+ ${this.tickMarks.map(r=>{const t=r===_.ACTIVE;return c.y`<div class="${t?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"}"></div>`})}
164
+ </div>`:c.b}renderStartThumb(){return c.b}renderEndThumb(){const r=k.o({"mdc-slider__thumb--with-indicator":this.endThumbWithIndicator,"mdc-slider__thumb--top":this.endThumbTop}),t=U.i(Object.assign({"-webkit-transform":this.endThumbTransformStyle,transform:this.endThumbTransformStyle,"-webkit-transition":this.endThumbTransitionStyle,transition:this.endThumbTransitionStyle,left:this.endThumbTransformStyle||getComputedStyle(this).direction==="rtl"?"":`calc(${(this.valueEnd-this.min)/(this.max-this.min)*100}% - 24px)`,right:this.endThumbTransformStyle||getComputedStyle(this).direction!=="rtl"?"":`calc(${(this.valueEnd-this.min)/(this.max-this.min)*100}% - 24px)`},this.endThumbCssProperties)),e=this.shouldRenderEndRipple?c.y`<mwc-ripple class="ripple" unbounded></mwc-ripple>`:c.b;return c.y`
165
165
  <div
166
166
  class="mdc-slider__thumb end ${r}"
167
167
  style=${t}
@@ -171,15 +171,15 @@
171
171
  ${this.renderValueIndicator(this.valueToValueIndicatorTransform(this.valueEnd))}
172
172
  <div class="mdc-slider__thumb-knob"></div>
173
173
  </div>
174
- `}renderValueIndicator(r){return this.discrete?i.y`
174
+ `}renderValueIndicator(r){return this.discrete?c.y`
175
175
  <div class="mdc-slider__value-indicator-container" aria-hidden="true">
176
176
  <div class="mdc-slider__value-indicator">
177
177
  <span class="mdc-slider__value-indicator-text">
178
178
  ${r}
179
179
  </span>
180
180
  </div>
181
- </div>`:i.b}disconnectedCallback(){super.disconnectedCallback(),this.mdcFoundation&&this.mdcFoundation.destroy()}createAdapter(){}async firstUpdated(){super.firstUpdated(),await this.layout(!0)}updated(r){super.updated(r),this.mdcFoundation&&(r.has("disabled")&&this.mdcFoundation.setDisabled(this.disabled),r.has("min")&&this.mdcFoundation.setMin(this.min),r.has("max")&&this.mdcFoundation.setMax(this.max),r.has("step")&&this.mdcFoundation.setStep(this.step),r.has("discrete")&&this.mdcFoundation.setIsDiscrete(this.discrete),r.has("withTickMarks")&&this.mdcFoundation.setHasTickMarks(this.withTickMarks))}async layout(r=!1){var t;(t=this.mdcFoundation)===null||t===void 0||t.layout({skipUpdateUI:r}),this.requestUpdate(),await this.updateComplete}onEndChange(r){var t;this.valueEnd=Number(r.target.value),(t=this.mdcFoundation)===null||t===void 0||t.handleInputChange(exports.Thumb.END)}onEndFocus(){var r;(r=this.mdcFoundation)===null||r===void 0||r.handleInputFocus(exports.Thumb.END),this.endRippleHandlers.startFocus()}onEndBlur(){var r;(r=this.mdcFoundation)===null||r===void 0||r.handleInputBlur(exports.Thumb.END),this.endRippleHandlers.endFocus()}onEndMouseenter(){var r;(r=this.mdcFoundation)===null||r===void 0||r.handleThumbMouseenter(),this.endRippleHandlers.startHover()}onEndMouseleave(){var r;(r=this.mdcFoundation)===null||r===void 0||r.handleThumbMouseleave(),this.endRippleHandlers.endHover()}onPointerdown(r){this.layout(),this.mdcFoundation&&(this.mdcFoundation.handlePointerdown(r),this.boundMoveListener=this.mdcFoundation.handleMove.bind(this.mdcFoundation),this.mdcRoot.addEventListener("pointermove",this.boundMoveListener))}onPointerup(){this.mdcFoundation&&(this.mdcFoundation.handleUp(),this.boundMoveListener&&(this.mdcRoot.removeEventListener("pointermove",this.boundMoveListener),this.boundMoveListener=null))}onContextmenu(r){r.preventDefault()}setFormData(r){this.name&&r.append(this.name,`${this.valueEnd}`)}}i.__decorate([i.i("input.end")],d.prototype,"formElement",void 0);i.__decorate([i.i(".mdc-slider")],d.prototype,"mdcRoot",void 0);i.__decorate([i.i(".end.mdc-slider__thumb")],d.prototype,"endThumb",void 0);i.__decorate([i.i(".end.mdc-slider__thumb .mdc-slider__thumb-knob")],d.prototype,"endThumbKnob",void 0);i.__decorate([i.i(".end.mdc-slider__thumb .mdc-slider__value-indicator-container")],d.prototype,"endValueIndicatorContainer",void 0);i.__decorate([i.e$2(".end .ripple")],d.prototype,"endRipple",void 0);i.__decorate([i.e({type:Boolean,reflect:!0})],d.prototype,"disabled",void 0);i.__decorate([i.e({type:Number})],d.prototype,"min",void 0);i.__decorate([i.e({type:Number})],d.prototype,"max",void 0);i.__decorate([i.e({type:Number})],d.prototype,"valueEnd",void 0);i.__decorate([i.e({type:String})],d.prototype,"name",void 0);i.__decorate([i.e({type:Number})],d.prototype,"step",void 0);i.__decorate([i.e({type:Boolean})],d.prototype,"withTickMarks",void 0);i.__decorate([i.e({type:Boolean})],d.prototype,"discrete",void 0);i.__decorate([i.t()],d.prototype,"tickMarks",void 0);i.__decorate([i.t()],d.prototype,"trackTransformOriginStyle",void 0);i.__decorate([i.t()],d.prototype,"trackLeftStyle",void 0);i.__decorate([i.t()],d.prototype,"trackRightStyle",void 0);i.__decorate([i.t()],d.prototype,"trackTransitionStyle",void 0);i.__decorate([i.t()],d.prototype,"endThumbWithIndicator",void 0);i.__decorate([i.t()],d.prototype,"endThumbTop",void 0);i.__decorate([i.t()],d.prototype,"shouldRenderEndRipple",void 0);i.__decorate([i.t()],d.prototype,"endThumbTransformStyle",void 0);i.__decorate([i.t()],d.prototype,"endThumbTransitionStyle",void 0);i.__decorate([i.t()],d.prototype,"endThumbCssProperties",void 0);i.__decorate([S.ariaProperty,i.e({type:String,attribute:"aria-label"})],d.prototype,"ariaLabel",void 0);i.__decorate([S.ariaProperty,i.e({type:String,attribute:"aria-labelledby"})],d.prototype,"ariaLabelledBy",void 0);i.__decorate([S.ariaProperty,i.e({type:String,attribute:"aria-describedby"})],d.prototype,"ariaDescribedBy",void 0);/**
181
+ </div>`:c.b}disconnectedCallback(){super.disconnectedCallback(),this.mdcFoundation&&this.mdcFoundation.destroy()}createAdapter(){}async firstUpdated(){super.firstUpdated(),await this.layout(!0)}updated(r){super.updated(r),this.mdcFoundation&&(r.has("disabled")&&this.mdcFoundation.setDisabled(this.disabled),r.has("min")&&this.mdcFoundation.setMin(this.min),r.has("max")&&this.mdcFoundation.setMax(this.max),r.has("step")&&this.mdcFoundation.setStep(this.step),r.has("discrete")&&this.mdcFoundation.setIsDiscrete(this.discrete),r.has("withTickMarks")&&this.mdcFoundation.setHasTickMarks(this.withTickMarks))}async layout(r=!1){var t;(t=this.mdcFoundation)===null||t===void 0||t.layout({skipUpdateUI:r}),this.requestUpdate(),await this.updateComplete}onEndChange(r){var t;this.valueEnd=Number(r.target.value),(t=this.mdcFoundation)===null||t===void 0||t.handleInputChange(exports.Thumb.END)}onEndFocus(){var r;(r=this.mdcFoundation)===null||r===void 0||r.handleInputFocus(exports.Thumb.END),this.endRippleHandlers.startFocus()}onEndBlur(){var r;(r=this.mdcFoundation)===null||r===void 0||r.handleInputBlur(exports.Thumb.END),this.endRippleHandlers.endFocus()}onEndMouseenter(){var r;(r=this.mdcFoundation)===null||r===void 0||r.handleThumbMouseenter(),this.endRippleHandlers.startHover()}onEndMouseleave(){var r;(r=this.mdcFoundation)===null||r===void 0||r.handleThumbMouseleave(),this.endRippleHandlers.endHover()}onPointerdown(r){this.layout(),this.mdcFoundation&&(this.mdcFoundation.handlePointerdown(r),this.boundMoveListener=this.mdcFoundation.handleMove.bind(this.mdcFoundation),this.mdcRoot.addEventListener("pointermove",this.boundMoveListener))}onPointerup(){this.mdcFoundation&&(this.mdcFoundation.handleUp(),this.boundMoveListener&&(this.mdcRoot.removeEventListener("pointermove",this.boundMoveListener),this.boundMoveListener=null))}onContextmenu(r){r.preventDefault()}setFormData(r){this.name&&r.append(this.name,`${this.valueEnd}`)}}o.__decorate([g.i("input.end")],d.prototype,"formElement",void 0);o.__decorate([g.i(".mdc-slider")],d.prototype,"mdcRoot",void 0);o.__decorate([g.i(".end.mdc-slider__thumb")],d.prototype,"endThumb",void 0);o.__decorate([g.i(".end.mdc-slider__thumb .mdc-slider__thumb-knob")],d.prototype,"endThumbKnob",void 0);o.__decorate([g.i(".end.mdc-slider__thumb .mdc-slider__value-indicator-container")],d.prototype,"endValueIndicatorContainer",void 0);o.__decorate([V.e(".end .ripple")],d.prototype,"endRipple",void 0);o.__decorate([b.e({type:Boolean,reflect:!0})],d.prototype,"disabled",void 0);o.__decorate([b.e({type:Number})],d.prototype,"min",void 0);o.__decorate([b.e({type:Number})],d.prototype,"max",void 0);o.__decorate([b.e({type:Number})],d.prototype,"valueEnd",void 0);o.__decorate([b.e({type:String})],d.prototype,"name",void 0);o.__decorate([b.e({type:Number})],d.prototype,"step",void 0);o.__decorate([b.e({type:Boolean})],d.prototype,"withTickMarks",void 0);o.__decorate([b.e({type:Boolean})],d.prototype,"discrete",void 0);o.__decorate([f.t()],d.prototype,"tickMarks",void 0);o.__decorate([f.t()],d.prototype,"trackTransformOriginStyle",void 0);o.__decorate([f.t()],d.prototype,"trackLeftStyle",void 0);o.__decorate([f.t()],d.prototype,"trackRightStyle",void 0);o.__decorate([f.t()],d.prototype,"trackTransitionStyle",void 0);o.__decorate([f.t()],d.prototype,"endThumbWithIndicator",void 0);o.__decorate([f.t()],d.prototype,"endThumbTop",void 0);o.__decorate([f.t()],d.prototype,"shouldRenderEndRipple",void 0);o.__decorate([f.t()],d.prototype,"endThumbTransformStyle",void 0);o.__decorate([f.t()],d.prototype,"endThumbTransitionStyle",void 0);o.__decorate([f.t()],d.prototype,"endThumbCssProperties",void 0);o.__decorate([C.ariaProperty,b.e({type:String,attribute:"aria-label"})],d.prototype,"ariaLabel",void 0);o.__decorate([C.ariaProperty,b.e({type:String,attribute:"aria-labelledby"})],d.prototype,"ariaLabelledBy",void 0);o.__decorate([C.ariaProperty,b.e({type:String,attribute:"aria-describedby"})],d.prototype,"ariaDescribedBy",void 0);/**
182
182
  * @license
183
183
  * Copyright 2021 Google LLC
184
184
  * SPDX-LIcense-Identifier: Apache-2.0
185
- */const U=i.i$1`.mdc-slider{cursor:pointer;height:48px;margin:0 24px;position:relative;touch-action:pan-y}.mdc-slider .mdc-slider__track{height:4px;position:absolute;top:50%;transform:translateY(-50%);width:100%}.mdc-slider .mdc-slider__track--active,.mdc-slider .mdc-slider__track--inactive{display:flex;height:100%;position:absolute;width:100%}.mdc-slider .mdc-slider__track--active{border-radius:3px;height:6px;overflow:hidden;top:-1px}.mdc-slider .mdc-slider__track--active_fill{border-top:6px solid;box-sizing:border-box;height:100%;width:100%;position:relative;-webkit-transform-origin:left;transform-origin:left}[dir=rtl] .mdc-slider .mdc-slider__track--active_fill,.mdc-slider .mdc-slider__track--active_fill[dir=rtl]{-webkit-transform-origin:right;transform-origin:right}.mdc-slider .mdc-slider__track--inactive{border-radius:2px;height:4px;left:0;top:0}.mdc-slider .mdc-slider__track--inactive::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-slider .mdc-slider__track--inactive::before{border-color:CanvasText}}.mdc-slider .mdc-slider__track--active_fill{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-slider.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:#000;border-color:var(--mdc-theme-on-surface, #000)}.mdc-slider .mdc-slider__track--inactive{background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee);opacity:.24}.mdc-slider.mdc-slider--disabled .mdc-slider__track--inactive{background-color:#000;background-color:var(--mdc-theme-on-surface, #000);opacity:.24}.mdc-slider .mdc-slider__value-indicator-container{bottom:44px;left:50%;left:var(--slider-value-indicator-container-left, 50%);pointer-events:none;position:absolute;right:var(--slider-value-indicator-container-right);transform:translateX(-50%);transform:var(--slider-value-indicator-container-transform, translateX(-50%))}.mdc-slider .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0.4, 0, 1, 1);align-items:center;border-radius:4px;display:flex;height:32px;padding:0 12px;transform:scale(0);transform-origin:bottom}.mdc-slider .mdc-slider__value-indicator::before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid;bottom:-5px;content:"";height:0;left:50%;left:var(--slider-value-indicator-caret-left, 50%);position:absolute;right:var(--slider-value-indicator-caret-right);transform:translateX(-50%);transform:var(--slider-value-indicator-caret-transform, translateX(-50%));width:0}.mdc-slider .mdc-slider__value-indicator::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-slider .mdc-slider__value-indicator::after{border-color:CanvasText}}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container{pointer-events:auto}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale(1)}@media(prefers-reduced-motion){.mdc-slider .mdc-slider__value-indicator,.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:none}}.mdc-slider .mdc-slider__value-indicator-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-subtitle2-font-size, 0.875rem);line-height:1.375rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.375rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:0.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, 0.0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform, inherit)}.mdc-slider .mdc-slider__value-indicator{background-color:#000;opacity:.6}.mdc-slider .mdc-slider__value-indicator::before{border-top-color:#000}.mdc-slider .mdc-slider__value-indicator{color:#fff;color:var(--mdc-theme-on-primary, #fff)}.mdc-slider .mdc-slider__thumb{display:flex;height:48px;left:-24px;outline:none;position:absolute;user-select:none;width:48px}.mdc-slider .mdc-slider__thumb--top{z-index:1}.mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-style:solid;border-width:1px;box-sizing:content-box}.mdc-slider .mdc-slider__thumb-knob{box-shadow:0px 2px 1px -1px rgba(0, 0, 0, 0.2),0px 1px 1px 0px rgba(0, 0, 0, 0.14),0px 1px 3px 0px rgba(0,0,0,.12);border:10px solid;border-radius:50%;box-sizing:border-box;height:20px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:20px}.mdc-slider .mdc-slider__thumb-knob{background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee);border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mdc-slider.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:#000;background-color:var(--mdc-theme-on-surface, #000);border-color:#000;border-color:var(--mdc-theme-on-surface, #000)}.mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mdc-slider .mdc-slider__thumb::before,.mdc-slider .mdc-slider__thumb::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-slider .mdc-slider__thumb:hover::before,.mdc-slider .mdc-slider__thumb.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded--background-focused::before,.mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-slider .mdc-slider__tick-marks{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:space-between;padding:0 1px;position:absolute;width:100%}.mdc-slider .mdc-slider__tick-mark--active,.mdc-slider .mdc-slider__tick-mark--inactive{border-radius:50%;height:2px;width:2px}.mdc-slider .mdc-slider__tick-mark--active{background-color:#fff;background-color:var(--mdc-theme-on-primary, #fff);opacity:.6}.mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--active{background-color:#fff;background-color:var(--mdc-theme-on-primary, #fff);opacity:.6}.mdc-slider .mdc-slider__tick-mark--inactive{background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee);opacity:.6}.mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--inactive{background-color:#000;background-color:var(--mdc-theme-on-surface, #000);opacity:.6}.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:transform 80ms ease}@media(prefers-reduced-motion){.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:none}}.mdc-slider--disabled{opacity:.38;cursor:auto}.mdc-slider--disabled .mdc-slider__thumb{pointer-events:none}.mdc-slider__input{cursor:pointer;left:0;margin:0;height:100%;opacity:0;pointer-events:none;position:absolute;top:0;width:100%}:host{outline:none;display:block;-webkit-tap-highlight-color:transparent}.ripple{--mdc-ripple-color:#6200ee;--mdc-ripple-color:var(--mdc-theme-primary, #6200ee)}`;exports.SliderBase=d;exports.styles=U;
185
+ */const W=c.i`.mdc-slider{cursor:pointer;height:48px;margin:0 24px;position:relative;touch-action:pan-y}.mdc-slider .mdc-slider__track{height:4px;position:absolute;top:50%;transform:translateY(-50%);width:100%}.mdc-slider .mdc-slider__track--active,.mdc-slider .mdc-slider__track--inactive{display:flex;height:100%;position:absolute;width:100%}.mdc-slider .mdc-slider__track--active{border-radius:3px;height:6px;overflow:hidden;top:-1px}.mdc-slider .mdc-slider__track--active_fill{border-top:6px solid;box-sizing:border-box;height:100%;width:100%;position:relative;-webkit-transform-origin:left;transform-origin:left}[dir=rtl] .mdc-slider .mdc-slider__track--active_fill,.mdc-slider .mdc-slider__track--active_fill[dir=rtl]{-webkit-transform-origin:right;transform-origin:right}.mdc-slider .mdc-slider__track--inactive{border-radius:2px;height:4px;left:0;top:0}.mdc-slider .mdc-slider__track--inactive::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-slider .mdc-slider__track--inactive::before{border-color:CanvasText}}.mdc-slider .mdc-slider__track--active_fill{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-slider.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:#000;border-color:var(--mdc-theme-on-surface, #000)}.mdc-slider .mdc-slider__track--inactive{background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee);opacity:.24}.mdc-slider.mdc-slider--disabled .mdc-slider__track--inactive{background-color:#000;background-color:var(--mdc-theme-on-surface, #000);opacity:.24}.mdc-slider .mdc-slider__value-indicator-container{bottom:44px;left:50%;left:var(--slider-value-indicator-container-left, 50%);pointer-events:none;position:absolute;right:var(--slider-value-indicator-container-right);transform:translateX(-50%);transform:var(--slider-value-indicator-container-transform, translateX(-50%))}.mdc-slider .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0.4, 0, 1, 1);align-items:center;border-radius:4px;display:flex;height:32px;padding:0 12px;transform:scale(0);transform-origin:bottom}.mdc-slider .mdc-slider__value-indicator::before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid;bottom:-5px;content:"";height:0;left:50%;left:var(--slider-value-indicator-caret-left, 50%);position:absolute;right:var(--slider-value-indicator-caret-right);transform:translateX(-50%);transform:var(--slider-value-indicator-caret-transform, translateX(-50%));width:0}.mdc-slider .mdc-slider__value-indicator::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-slider .mdc-slider__value-indicator::after{border-color:CanvasText}}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container{pointer-events:auto}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale(1)}@media(prefers-reduced-motion){.mdc-slider .mdc-slider__value-indicator,.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:none}}.mdc-slider .mdc-slider__value-indicator-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-subtitle2-font-size, 0.875rem);line-height:1.375rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.375rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:0.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, 0.0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform, inherit)}.mdc-slider .mdc-slider__value-indicator{background-color:#000;opacity:.6}.mdc-slider .mdc-slider__value-indicator::before{border-top-color:#000}.mdc-slider .mdc-slider__value-indicator{color:#fff;color:var(--mdc-theme-on-primary, #fff)}.mdc-slider .mdc-slider__thumb{display:flex;height:48px;left:-24px;outline:none;position:absolute;user-select:none;width:48px}.mdc-slider .mdc-slider__thumb--top{z-index:1}.mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-style:solid;border-width:1px;box-sizing:content-box}.mdc-slider .mdc-slider__thumb-knob{box-shadow:0px 2px 1px -1px rgba(0, 0, 0, 0.2),0px 1px 1px 0px rgba(0, 0, 0, 0.14),0px 1px 3px 0px rgba(0,0,0,.12);border:10px solid;border-radius:50%;box-sizing:border-box;height:20px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:20px}.mdc-slider .mdc-slider__thumb-knob{background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee);border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mdc-slider.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:#000;background-color:var(--mdc-theme-on-surface, #000);border-color:#000;border-color:var(--mdc-theme-on-surface, #000)}.mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mdc-slider .mdc-slider__thumb::before,.mdc-slider .mdc-slider__thumb::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-slider .mdc-slider__thumb:hover::before,.mdc-slider .mdc-slider__thumb.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded--background-focused::before,.mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-slider .mdc-slider__tick-marks{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:space-between;padding:0 1px;position:absolute;width:100%}.mdc-slider .mdc-slider__tick-mark--active,.mdc-slider .mdc-slider__tick-mark--inactive{border-radius:50%;height:2px;width:2px}.mdc-slider .mdc-slider__tick-mark--active{background-color:#fff;background-color:var(--mdc-theme-on-primary, #fff);opacity:.6}.mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--active{background-color:#fff;background-color:var(--mdc-theme-on-primary, #fff);opacity:.6}.mdc-slider .mdc-slider__tick-mark--inactive{background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee);opacity:.6}.mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--inactive{background-color:#000;background-color:var(--mdc-theme-on-surface, #000);opacity:.6}.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:transform 80ms ease}@media(prefers-reduced-motion){.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:none}}.mdc-slider--disabled{opacity:.38;cursor:auto}.mdc-slider--disabled .mdc-slider__thumb{pointer-events:none}.mdc-slider__input{cursor:pointer;left:0;margin:0;height:100%;opacity:0;pointer-events:none;position:absolute;top:0;width:100%}:host{outline:none;display:block;-webkit-tap-highlight-color:transparent}.ripple{--mdc-ripple-color:#6200ee;--mdc-ripple-color:var(--mdc-theme-primary, #6200ee)}`;exports.SliderBase=d;exports.styles=W;
package/mwc-tab-base.mjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./mwc-ripple.mjs"),h=require("./observer.mjs"),m=require("./ripple-handlers.mjs");/**
1
+ "use strict";const n=require("./tslib.es6.mjs"),s=require("./query-assigned-elements.mjs"),_=require("./base-element.mjs"),r=require("./property.mjs"),l=require("./query.mjs"),m=require("./class-map.mjs"),C=require("./utils.mjs"),y=require("./ripple-handlers.mjs"),I=require("./observer.mjs"),g=require("./state.mjs"),R=require("./event-options.mjs");/**
2
2
  * @license
3
3
  * Copyright 2016 Google Inc.
4
4
  *
@@ -19,7 +19,7 @@
19
19
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  * THE SOFTWARE.
22
- */var b=function(){function n(t){t===void 0&&(t={}),this.adapter=t}return Object.defineProperty(n,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),n.prototype.init=function(){},n.prototype.destroy=function(){},n}();/**
22
+ */var A=function(){function e(t){t===void 0&&(t={}),this.adapter=t}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}();/**
23
23
  * @license
24
24
  * Copyright 2018 Google Inc.
25
25
  *
@@ -40,7 +40,7 @@
40
40
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
41
41
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
42
42
  * THE SOFTWARE.
43
- */var v={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},_={CONTENT_SELECTOR:".mdc-tab-indicator__content"};/**
43
+ */var E={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},T={CONTENT_SELECTOR:".mdc-tab-indicator__content"};/**
44
44
  * @license
45
45
  * Copyright 2018 Google Inc.
46
46
  *
@@ -61,7 +61,7 @@
61
61
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62
62
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
63
63
  * THE SOFTWARE.
64
- */var r=function(n){e.__extends(t,n);function t(i){return n.call(this,e.__assign(e.__assign({},t.defaultAdapter),i))||this}return Object.defineProperty(t,"cssClasses",{get:function(){return v},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return _},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),t.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},t}(b);/**
64
+ */var c=function(e){n.__extends(t,e);function t(i){return e.call(this,n.__assign(n.__assign({},t.defaultAdapter),i))||this}return Object.defineProperty(t,"cssClasses",{get:function(){return E},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return T},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),t.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},t}(A);/**
65
65
  * @license
66
66
  * Copyright 2018 Google Inc.
67
67
  *
@@ -82,7 +82,7 @@
82
82
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
83
83
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
84
84
  * THE SOFTWARE.
85
- */var C=function(n){e.__extends(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.activate=function(){this.adapter.addClass(r.cssClasses.ACTIVE)},t.prototype.deactivate=function(){this.adapter.removeClass(r.cssClasses.ACTIVE)},t}(r);const y=C;/**
85
+ */var F=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.activate=function(){this.adapter.addClass(c.cssClasses.ACTIVE)},t.prototype.deactivate=function(){this.adapter.removeClass(c.cssClasses.ACTIVE)},t}(c);const O=F;/**
86
86
  * @license
87
87
  * Copyright 2018 Google Inc.
88
88
  *
@@ -103,23 +103,23 @@
103
103
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
104
104
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
105
105
  * THE SOFTWARE.
106
- */var g=function(n){e.__extends(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.activate=function(i){if(!i){this.adapter.addClass(r.cssClasses.ACTIVE);return}var o=this.computeContentClientRect(),u=i.width/o.width,d=i.left-o.left;this.adapter.addClass(r.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+d+"px) scaleX("+u+")"),this.computeContentClientRect(),this.adapter.removeClass(r.cssClasses.NO_TRANSITION),this.adapter.addClass(r.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")},t.prototype.deactivate=function(){this.adapter.removeClass(r.cssClasses.ACTIVE)},t}(r);const I=g;/**
106
+ */var D=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.activate=function(i){if(!i){this.adapter.addClass(c.cssClasses.ACTIVE);return}var o=this.computeContentClientRect(),h=i.width/o.width,p=i.left-o.left;this.adapter.addClass(c.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+p+"px) scaleX("+h+")"),this.computeContentClientRect(),this.adapter.removeClass(c.cssClasses.NO_TRANSITION),this.adapter.addClass(c.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")},t.prototype.deactivate=function(){this.adapter.removeClass(c.cssClasses.ACTIVE)},t}(c);const w=D;/**
107
107
  * @license
108
108
  * Copyright 2018 Google LLC
109
109
  * SPDX-License-Identifier: Apache-2.0
110
- */class c extends e.BaseElement{constructor(){super(...arguments),this.icon="",this.fade=!1}get mdcFoundationClass(){return this.fade?y:I}render(){const t={"mdc-tab-indicator__content--icon":this.icon,"material-icons":this.icon,"mdc-tab-indicator__content--underline":!this.icon};return e.y`
111
- <span class="mdc-tab-indicator ${e.o({"mdc-tab-indicator--fade":this.fade})}">
112
- <span class="mdc-tab-indicator__content ${e.o(t)}">${this.icon}</span>
110
+ */class u extends _.BaseElement{constructor(){super(...arguments),this.icon="",this.fade=!1}get mdcFoundationClass(){return this.fade?O:w}render(){const t={"mdc-tab-indicator__content--icon":this.icon,"material-icons":this.icon,"mdc-tab-indicator__content--underline":!this.icon};return s.y`
111
+ <span class="mdc-tab-indicator ${m.o({"mdc-tab-indicator--fade":this.fade})}">
112
+ <span class="mdc-tab-indicator__content ${m.o(t)}">${this.icon}</span>
113
113
  </span>
114
- `}updated(t){t.has("fade")&&this.createFoundation()}createAdapter(){return Object.assign(Object.assign({},e.addHasRemoveClass(this.mdcRoot)),{computeContentClientRect:()=>this.contentElement.getBoundingClientRect(),setContentStyleProperty:(t,i)=>this.contentElement.style.setProperty(t,i)})}computeContentClientRect(){return this.mdcFoundation.computeContentClientRect()}activate(t){this.mdcFoundation.activate(t)}deactivate(){this.mdcFoundation.deactivate()}}e.__decorate([e.i(".mdc-tab-indicator")],c.prototype,"mdcRoot",void 0);e.__decorate([e.i(".mdc-tab-indicator__content")],c.prototype,"contentElement",void 0);e.__decorate([e.e()],c.prototype,"icon",void 0);e.__decorate([e.e({type:Boolean})],c.prototype,"fade",void 0);/**
114
+ `}updated(t){t.has("fade")&&this.createFoundation()}createAdapter(){return Object.assign(Object.assign({},C.addHasRemoveClass(this.mdcRoot)),{computeContentClientRect:()=>this.contentElement.getBoundingClientRect(),setContentStyleProperty:(t,i)=>this.contentElement.style.setProperty(t,i)})}computeContentClientRect(){return this.mdcFoundation.computeContentClientRect()}activate(t){this.mdcFoundation.activate(t)}deactivate(){this.mdcFoundation.deactivate()}}n.__decorate([l.i(".mdc-tab-indicator")],u.prototype,"mdcRoot",void 0);n.__decorate([l.i(".mdc-tab-indicator__content")],u.prototype,"contentElement",void 0);n.__decorate([r.e()],u.prototype,"icon",void 0);n.__decorate([r.e({type:Boolean})],u.prototype,"fade",void 0);/**
115
115
  * @license
116
116
  * Copyright 2021 Google LLC
117
117
  * SPDX-LIcense-Identifier: Apache-2.0
118
- */const R=e.i$1`.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-tab-indicator .mdc-tab-indicator__content--icon{color:#018786;color:var(--mdc-theme-secondary, #018786)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}`;/**
118
+ */const $=s.i`.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-tab-indicator .mdc-tab-indicator__content--icon{color:#018786;color:var(--mdc-theme-secondary, #018786)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}`;/**
119
119
  * @license
120
120
  * Copyright 2018 Google LLC
121
121
  * SPDX-License-Identifier: Apache-2.0
122
- */let p=class extends c{};p.styles=[R];p=e.__decorate([e.e$1("mwc-tab-indicator")],p);/**
122
+ */let b=class extends u{};b.styles=[$];b=n.__decorate([s.e("mwc-tab-indicator")],b);/**
123
123
  * @license
124
124
  * Copyright 2016 Google Inc.
125
125
  *
@@ -140,7 +140,7 @@
140
140
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
141
141
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
142
142
  * THE SOFTWARE.
143
- */var A=function(){function n(t){t===void 0&&(t={}),this.adapter=t}return Object.defineProperty(n,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),n.prototype.init=function(){},n.prototype.destroy=function(){},n}();/**
143
+ */var L=function(){function e(t){t===void 0&&(t={}),this.adapter=t}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}();/**
144
144
  * @license
145
145
  * Copyright 2018 Google Inc.
146
146
  *
@@ -161,7 +161,7 @@
161
161
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
162
162
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
163
163
  * THE SOFTWARE.
164
- */var l={ACTIVE:"mdc-tab--active"},s={ARIA_SELECTED:"aria-selected",CONTENT_SELECTOR:".mdc-tab__content",INTERACTED_EVENT:"MDCTab:interacted",RIPPLE_SELECTOR:".mdc-tab__ripple",TABINDEX:"tabIndex",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator"};/**
164
+ */var f={ACTIVE:"mdc-tab--active"},d={ARIA_SELECTED:"aria-selected",CONTENT_SELECTOR:".mdc-tab__content",INTERACTED_EVENT:"MDCTab:interacted",RIPPLE_SELECTOR:".mdc-tab__ripple",TABINDEX:"tabIndex",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator"};/**
165
165
  * @license
166
166
  * Copyright 2018 Google Inc.
167
167
  *
@@ -182,16 +182,16 @@
182
182
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
183
183
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
184
184
  * THE SOFTWARE.
185
- */var T=function(n){e.__extends(t,n);function t(i){var o=n.call(this,e.__assign(e.__assign({},t.defaultAdapter),i))||this;return o.focusOnActivate=!0,o}return Object.defineProperty(t,"cssClasses",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){return 0},getOffsetWidth:function(){return 0},getContentOffsetLeft:function(){return 0},getContentOffsetWidth:function(){return 0},focus:function(){}}},enumerable:!1,configurable:!0}),t.prototype.handleClick=function(){this.adapter.notifyInteracted()},t.prototype.isActive=function(){return this.adapter.hasClass(l.ACTIVE)},t.prototype.setFocusOnActivate=function(i){this.focusOnActivate=i},t.prototype.activate=function(i){this.adapter.addClass(l.ACTIVE),this.adapter.setAttr(s.ARIA_SELECTED,"true"),this.adapter.setAttr(s.TABINDEX,"0"),this.adapter.activateIndicator(i),this.focusOnActivate&&this.adapter.focus()},t.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(l.ACTIVE),this.adapter.setAttr(s.ARIA_SELECTED,"false"),this.adapter.setAttr(s.TABINDEX,"-1"),this.adapter.deactivateIndicator())},t.prototype.computeDimensions=function(){var i=this.adapter.getOffsetWidth(),o=this.adapter.getOffsetLeft(),u=this.adapter.getContentOffsetWidth(),d=this.adapter.getContentOffsetLeft();return{contentLeft:o+d,contentRight:o+d+u,rootLeft:o,rootRight:o+i}},t}(A);const f=T;/**
185
+ */var P=function(e){n.__extends(t,e);function t(i){var o=e.call(this,n.__assign(n.__assign({},t.defaultAdapter),i))||this;return o.focusOnActivate=!0,o}return Object.defineProperty(t,"cssClasses",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return d},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){return 0},getOffsetWidth:function(){return 0},getContentOffsetLeft:function(){return 0},getContentOffsetWidth:function(){return 0},focus:function(){}}},enumerable:!1,configurable:!0}),t.prototype.handleClick=function(){this.adapter.notifyInteracted()},t.prototype.isActive=function(){return this.adapter.hasClass(f.ACTIVE)},t.prototype.setFocusOnActivate=function(i){this.focusOnActivate=i},t.prototype.activate=function(i){this.adapter.addClass(f.ACTIVE),this.adapter.setAttr(d.ARIA_SELECTED,"true"),this.adapter.setAttr(d.TABINDEX,"0"),this.adapter.activateIndicator(i),this.focusOnActivate&&this.adapter.focus()},t.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(f.ACTIVE),this.adapter.setAttr(d.ARIA_SELECTED,"false"),this.adapter.setAttr(d.TABINDEX,"-1"),this.adapter.deactivateIndicator())},t.prototype.computeDimensions=function(){var i=this.adapter.getOffsetWidth(),o=this.adapter.getOffsetLeft(),h=this.adapter.getContentOffsetWidth(),p=this.adapter.getContentOffsetLeft();return{contentLeft:o+p,contentRight:o+p+h,rootLeft:o,rootRight:o+i}},t}(L);const v=P;/**
186
186
  * @license
187
187
  * Copyright 2018 Google LLC
188
188
  * SPDX-License-Identifier: Apache-2.0
189
- */let E=0;class a extends e.BaseElement{constructor(){super(...arguments),this.mdcFoundationClass=f,this.label="",this.icon="",this.hasImageIcon=!1,this.isFadingIndicator=!1,this.minWidth=!1,this.isMinWidthIndicator=!1,this.indicatorIcon="",this.stacked=!1,this.focusOnActivate=!0,this._active=!1,this.initFocus=!1,this.shouldRenderRipple=!1,this.useStateLayerCustomProperties=!1,this.rippleElement=null,this.rippleHandlers=new m.RippleHandlers(()=>(this.shouldRenderRipple=!0,this.ripple.then(t=>this.rippleElement=t),this.ripple))}get active(){return this._active}connectedCallback(){this.dir=document.dir,super.connectedCallback()}firstUpdated(){super.firstUpdated(),this.id=this.id||`mdc-tab-${++E}`}render(){const t={"mdc-tab--min-width":this.minWidth,"mdc-tab--stacked":this.stacked};let i=e.y``;(this.hasImageIcon||this.icon)&&(i=e.y`
190
- <span class="mdc-tab__icon material-icons"><slot name="icon">${this.icon}</slot></span>`);let o=e.y``;return this.label&&(o=e.y`
191
- <span class="mdc-tab__text-label">${this.label}</span>`),e.y`
189
+ */let M=0;class a extends _.BaseElement{constructor(){super(...arguments),this.mdcFoundationClass=v,this.label="",this.icon="",this.hasImageIcon=!1,this.isFadingIndicator=!1,this.minWidth=!1,this.isMinWidthIndicator=!1,this.indicatorIcon="",this.stacked=!1,this.focusOnActivate=!0,this._active=!1,this.initFocus=!1,this.shouldRenderRipple=!1,this.useStateLayerCustomProperties=!1,this.rippleElement=null,this.rippleHandlers=new y.RippleHandlers(()=>(this.shouldRenderRipple=!0,this.ripple.then(t=>this.rippleElement=t),this.ripple))}get active(){return this._active}connectedCallback(){this.dir=document.dir,super.connectedCallback()}firstUpdated(){super.firstUpdated(),this.id=this.id||`mdc-tab-${++M}`}render(){const t={"mdc-tab--min-width":this.minWidth,"mdc-tab--stacked":this.stacked};let i=s.y``;(this.hasImageIcon||this.icon)&&(i=s.y`
190
+ <span class="mdc-tab__icon material-icons"><slot name="icon">${this.icon}</slot></span>`);let o=s.y``;return this.label&&(o=s.y`
191
+ <span class="mdc-tab__text-label">${this.label}</span>`),s.y`
192
192
  <button
193
193
  @click="${this.handleClick}"
194
- class="mdc-tab ${e.o(t)}"
194
+ class="mdc-tab ${m.o(t)}"
195
195
  role="tab"
196
196
  aria-selected="false"
197
197
  tabindex="-1"
@@ -210,7 +210,7 @@
210
210
  </span>
211
211
  ${this.isMinWidthIndicator?"":this.renderIndicator()}
212
212
  ${this.renderRipple()}
213
- </button>`}renderIndicator(){return e.y`<mwc-tab-indicator
213
+ </button>`}renderIndicator(){return s.y`<mwc-tab-indicator
214
214
  .icon="${this.indicatorIcon}"
215
- .fade="${this.isFadingIndicator}"></mwc-tab-indicator>`}renderRipple(){return this.shouldRenderRipple?e.y`<mwc-ripple primary
216
- .internalUseStateLayerCustomProperties="${this.useStateLayerCustomProperties}"></mwc-ripple>`:""}createAdapter(){return Object.assign(Object.assign({},e.addHasRemoveClass(this.mdcRoot)),{setAttr:(t,i)=>this.mdcRoot.setAttribute(t,i),activateIndicator:async t=>{await this.tabIndicator.updateComplete,this.tabIndicator.activate(t)},deactivateIndicator:async()=>{await this.tabIndicator.updateComplete,this.tabIndicator.deactivate()},notifyInteracted:()=>this.dispatchEvent(new CustomEvent(f.strings.INTERACTED_EVENT,{detail:{tabId:this.id},bubbles:!0,composed:!0,cancelable:!0})),getOffsetLeft:()=>this.offsetLeft,getOffsetWidth:()=>this.mdcRoot.offsetWidth,getContentOffsetLeft:()=>this._contentElement.offsetLeft,getContentOffsetWidth:()=>this._contentElement.offsetWidth,focus:()=>{this.initFocus?this.initFocus=!1:this.mdcRoot.focus()}})}activate(t){t||(this.initFocus=!0),this.mdcFoundation?(this.mdcFoundation.activate(t),this.setActive(this.mdcFoundation.isActive())):this.updateComplete.then(()=>{this.mdcFoundation.activate(t),this.setActive(this.mdcFoundation.isActive())})}deactivate(){this.mdcFoundation.deactivate(),this.setActive(this.mdcFoundation.isActive())}setActive(t){const i=this.active;i!==t&&(this._active=t,this.requestUpdate("active",i))}computeDimensions(){return this.mdcFoundation.computeDimensions()}computeIndicatorClientRect(){return this.tabIndicator.computeContentClientRect()}focus(){this.mdcRoot.focus(),this.handleFocus()}handleClick(){this.handleFocus(),this.mdcFoundation.handleClick()}handleFocus(){this.handleRippleFocus()}handleBlur(){this.handleRippleBlur()}handleRippleMouseDown(t){const i=()=>{window.removeEventListener("mouseup",i),this.handleRippleDeactivate()};window.addEventListener("mouseup",i),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}get isRippleActive(){var t;return((t=this.rippleElement)===null||t===void 0?void 0:t.isActive)||!1}}a.shadowRootOptions={mode:"open",delegatesFocus:!0};e.__decorate([e.i(".mdc-tab")],a.prototype,"mdcRoot",void 0);e.__decorate([e.i("mwc-tab-indicator")],a.prototype,"tabIndicator",void 0);e.__decorate([e.e()],a.prototype,"label",void 0);e.__decorate([e.e()],a.prototype,"icon",void 0);e.__decorate([e.e({type:Boolean})],a.prototype,"hasImageIcon",void 0);e.__decorate([e.e({type:Boolean})],a.prototype,"isFadingIndicator",void 0);e.__decorate([e.e({type:Boolean})],a.prototype,"minWidth",void 0);e.__decorate([e.e({type:Boolean})],a.prototype,"isMinWidthIndicator",void 0);e.__decorate([e.e({type:Boolean,reflect:!0,attribute:"active"})],a.prototype,"active",null);e.__decorate([e.e()],a.prototype,"indicatorIcon",void 0);e.__decorate([e.e({type:Boolean})],a.prototype,"stacked",void 0);e.__decorate([h.observer(async function(n){await this.updateComplete,this.mdcFoundation.setFocusOnActivate(n)}),e.e({type:Boolean})],a.prototype,"focusOnActivate",void 0);e.__decorate([e.i(".mdc-tab__content")],a.prototype,"_contentElement",void 0);e.__decorate([e.t()],a.prototype,"shouldRenderRipple",void 0);e.__decorate([e.t()],a.prototype,"useStateLayerCustomProperties",void 0);e.__decorate([e.e$2("mwc-ripple")],a.prototype,"ripple",void 0);e.__decorate([e.e$3({passive:!0})],a.prototype,"handleRippleTouchStart",null);exports.TabBase=a;
215
+ .fade="${this.isFadingIndicator}"></mwc-tab-indicator>`}renderRipple(){return this.shouldRenderRipple?s.y`<mwc-ripple primary
216
+ .internalUseStateLayerCustomProperties="${this.useStateLayerCustomProperties}"></mwc-ripple>`:""}createAdapter(){return Object.assign(Object.assign({},C.addHasRemoveClass(this.mdcRoot)),{setAttr:(t,i)=>this.mdcRoot.setAttribute(t,i),activateIndicator:async t=>{await this.tabIndicator.updateComplete,this.tabIndicator.activate(t)},deactivateIndicator:async()=>{await this.tabIndicator.updateComplete,this.tabIndicator.deactivate()},notifyInteracted:()=>this.dispatchEvent(new CustomEvent(v.strings.INTERACTED_EVENT,{detail:{tabId:this.id},bubbles:!0,composed:!0,cancelable:!0})),getOffsetLeft:()=>this.offsetLeft,getOffsetWidth:()=>this.mdcRoot.offsetWidth,getContentOffsetLeft:()=>this._contentElement.offsetLeft,getContentOffsetWidth:()=>this._contentElement.offsetWidth,focus:()=>{this.initFocus?this.initFocus=!1:this.mdcRoot.focus()}})}activate(t){t||(this.initFocus=!0),this.mdcFoundation?(this.mdcFoundation.activate(t),this.setActive(this.mdcFoundation.isActive())):this.updateComplete.then(()=>{this.mdcFoundation.activate(t),this.setActive(this.mdcFoundation.isActive())})}deactivate(){this.mdcFoundation.deactivate(),this.setActive(this.mdcFoundation.isActive())}setActive(t){const i=this.active;i!==t&&(this._active=t,this.requestUpdate("active",i))}computeDimensions(){return this.mdcFoundation.computeDimensions()}computeIndicatorClientRect(){return this.tabIndicator.computeContentClientRect()}focus(){this.mdcRoot.focus(),this.handleFocus()}handleClick(){this.handleFocus(),this.mdcFoundation.handleClick()}handleFocus(){this.handleRippleFocus()}handleBlur(){this.handleRippleBlur()}handleRippleMouseDown(t){const i=()=>{window.removeEventListener("mouseup",i),this.handleRippleDeactivate()};window.addEventListener("mouseup",i),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}get isRippleActive(){var t;return((t=this.rippleElement)===null||t===void 0?void 0:t.isActive)||!1}}a.shadowRootOptions={mode:"open",delegatesFocus:!0};n.__decorate([l.i(".mdc-tab")],a.prototype,"mdcRoot",void 0);n.__decorate([l.i("mwc-tab-indicator")],a.prototype,"tabIndicator",void 0);n.__decorate([r.e()],a.prototype,"label",void 0);n.__decorate([r.e()],a.prototype,"icon",void 0);n.__decorate([r.e({type:Boolean})],a.prototype,"hasImageIcon",void 0);n.__decorate([r.e({type:Boolean})],a.prototype,"isFadingIndicator",void 0);n.__decorate([r.e({type:Boolean})],a.prototype,"minWidth",void 0);n.__decorate([r.e({type:Boolean})],a.prototype,"isMinWidthIndicator",void 0);n.__decorate([r.e({type:Boolean,reflect:!0,attribute:"active"})],a.prototype,"active",null);n.__decorate([r.e()],a.prototype,"indicatorIcon",void 0);n.__decorate([r.e({type:Boolean})],a.prototype,"stacked",void 0);n.__decorate([I.observer(async function(e){await this.updateComplete,this.mdcFoundation.setFocusOnActivate(e)}),r.e({type:Boolean})],a.prototype,"focusOnActivate",void 0);n.__decorate([l.i(".mdc-tab__content")],a.prototype,"_contentElement",void 0);n.__decorate([g.t()],a.prototype,"shouldRenderRipple",void 0);n.__decorate([g.t()],a.prototype,"useStateLayerCustomProperties",void 0);n.__decorate([y.e("mwc-ripple")],a.prototype,"ripple",void 0);n.__decorate([R.e({passive:!0})],a.prototype,"handleRippleTouchStart",null);exports.TabBase=a;
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("./mwc-ripple.mjs");/**
1
+ "use strict";const i=require("./tslib.es6.mjs"),p=require("./property.mjs"),l=require("./query-assigned-elements.mjs"),A=require("./base-element.mjs"),g=require("./utils.mjs"),T=require("./query.mjs"),f=require("./class-map.mjs");/**
2
2
  * @license
3
3
  * Copyright 2018 Google Inc.
4
4
  *
@@ -19,7 +19,7 @@
19
19
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  * THE SOFTWARE.
22
- */var u={FIXED_CLASS:"mdc-top-app-bar--fixed",FIXED_SCROLLED_CLASS:"mdc-top-app-bar--fixed-scrolled",SHORT_CLASS:"mdc-top-app-bar--short",SHORT_COLLAPSED_CLASS:"mdc-top-app-bar--short-collapsed",SHORT_HAS_ACTION_ITEM_CLASS:"mdc-top-app-bar--short-has-action-item"},a={DEBOUNCE_THROTTLE_RESIZE_TIME_MS:100,MAX_TOP_APP_BAR_HEIGHT:128},h={ACTION_ITEM_SELECTOR:".mdc-top-app-bar__action-item",NAVIGATION_EVENT:"MDCTopAppBar:nav",NAVIGATION_ICON_SELECTOR:".mdc-top-app-bar__navigation-icon",ROOT_SELECTOR:".mdc-top-app-bar",TITLE_SELECTOR:".mdc-top-app-bar__title"};/**
22
+ */var _={FIXED_CLASS:"mdc-top-app-bar--fixed",FIXED_SCROLLED_CLASS:"mdc-top-app-bar--fixed-scrolled",SHORT_CLASS:"mdc-top-app-bar--short",SHORT_COLLAPSED_CLASS:"mdc-top-app-bar--short-collapsed",SHORT_HAS_ACTION_ITEM_CLASS:"mdc-top-app-bar--short-has-action-item"},a={DEBOUNCE_THROTTLE_RESIZE_TIME_MS:100,MAX_TOP_APP_BAR_HEIGHT:128},m={ACTION_ITEM_SELECTOR:".mdc-top-app-bar__action-item",NAVIGATION_EVENT:"MDCTopAppBar:nav",NAVIGATION_ICON_SELECTOR:".mdc-top-app-bar__navigation-icon",ROOT_SELECTOR:".mdc-top-app-bar",TITLE_SELECTOR:".mdc-top-app-bar__title"};/**
23
23
  * @license
24
24
  * Copyright 2016 Google Inc.
25
25
  *
@@ -40,7 +40,7 @@
40
40
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
41
41
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
42
42
  * THE SOFTWARE.
43
- */var g=function(){function s(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(s,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(s,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(s,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(s,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),s.prototype.init=function(){},s.prototype.destroy=function(){},s}();/**
43
+ */var S=function(){function r(e){e===void 0&&(e={}),this.adapter=e}return 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}();/**
44
44
  * @license
45
45
  * Copyright 2018 Google Inc.
46
46
  *
@@ -61,7 +61,7 @@
61
61
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62
62
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
63
63
  * THE SOFTWARE.
64
- */var T=function(s){r.__extends(e,s);function e(t){return s.call(this,r.__assign(r.__assign({},e.defaultAdapter),t))||this}return Object.defineProperty(e,"strings",{get:function(){return h},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},getTopAppBarHeight:function(){return 0},notifyNavigationIconClicked:function(){},getViewportScrollY:function(){return 0},getTotalActionItems:function(){return 0}}},enumerable:!1,configurable:!0}),e.prototype.handleTargetScroll=function(){},e.prototype.handleWindowResize=function(){},e.prototype.handleNavigationClick=function(){this.adapter.notifyNavigationIconClicked()},e}(g);/**
64
+ */var v=function(r){i.__extends(e,r);function e(t){return r.call(this,i.__assign(i.__assign({},e.defaultAdapter),t))||this}return Object.defineProperty(e,"strings",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return _},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},getTopAppBarHeight:function(){return 0},notifyNavigationIconClicked:function(){},getViewportScrollY:function(){return 0},getTotalActionItems:function(){return 0}}},enumerable:!1,configurable:!0}),e.prototype.handleTargetScroll=function(){},e.prototype.handleWindowResize=function(){},e.prototype.handleNavigationClick=function(){this.adapter.notifyNavigationIconClicked()},e}(S);/**
65
65
  * @license
66
66
  * Copyright 2018 Google Inc.
67
67
  *
@@ -82,12 +82,12 @@
82
82
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
83
83
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
84
84
  * THE SOFTWARE.
85
- */var n=0,f=function(s){r.__extends(e,s);function e(t){var i=s.call(this,t)||this;return i.wasDocked=!0,i.isDockedShowing=!0,i.currentAppBarOffsetTop=0,i.isCurrentlyBeingResized=!1,i.resizeThrottleId=n,i.resizeDebounceId=n,i.lastScrollPosition=i.adapter.getViewportScrollY(),i.topAppBarHeight=i.adapter.getTopAppBarHeight(),i}return e.prototype.destroy=function(){s.prototype.destroy.call(this),this.adapter.setStyle("top","")},e.prototype.handleTargetScroll=function(){var t=Math.max(this.adapter.getViewportScrollY(),0),i=t-this.lastScrollPosition;this.lastScrollPosition=t,this.isCurrentlyBeingResized||(this.currentAppBarOffsetTop-=i,this.currentAppBarOffsetTop>0?this.currentAppBarOffsetTop=0:Math.abs(this.currentAppBarOffsetTop)>this.topAppBarHeight&&(this.currentAppBarOffsetTop=-this.topAppBarHeight),this.moveTopAppBar())},e.prototype.handleWindowResize=function(){var t=this;this.resizeThrottleId||(this.resizeThrottleId=setTimeout(function(){t.resizeThrottleId=n,t.throttledResizeHandler()},a.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)),this.isCurrentlyBeingResized=!0,this.resizeDebounceId&&clearTimeout(this.resizeDebounceId),this.resizeDebounceId=setTimeout(function(){t.handleTargetScroll(),t.isCurrentlyBeingResized=!1,t.resizeDebounceId=n},a.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)},e.prototype.checkForUpdate=function(){var t=-this.topAppBarHeight,i=this.currentAppBarOffsetTop<0,p=this.currentAppBarOffsetTop>t,d=i&&p;if(d)this.wasDocked=!1;else if(this.wasDocked){if(this.isDockedShowing!==p)return this.isDockedShowing=p,!0}else return this.wasDocked=!0,!0;return d},e.prototype.moveTopAppBar=function(){if(this.checkForUpdate()){var t=this.currentAppBarOffsetTop;Math.abs(t)>=this.topAppBarHeight&&(t=-a.MAX_TOP_APP_BAR_HEIGHT),this.adapter.setStyle("top",t+"px")}},e.prototype.throttledResizeHandler=function(){var t=this.adapter.getTopAppBarHeight();this.topAppBarHeight!==t&&(this.wasDocked=!1,this.currentAppBarOffsetTop-=this.topAppBarHeight-t,this.topAppBarHeight=t),this.handleTargetScroll()},e}(T);const _=f;/**
85
+ */var n=0,b=function(r){i.__extends(e,r);function e(t){var s=r.call(this,t)||this;return s.wasDocked=!0,s.isDockedShowing=!0,s.currentAppBarOffsetTop=0,s.isCurrentlyBeingResized=!1,s.resizeThrottleId=n,s.resizeDebounceId=n,s.lastScrollPosition=s.adapter.getViewportScrollY(),s.topAppBarHeight=s.adapter.getTopAppBarHeight(),s}return e.prototype.destroy=function(){r.prototype.destroy.call(this),this.adapter.setStyle("top","")},e.prototype.handleTargetScroll=function(){var t=Math.max(this.adapter.getViewportScrollY(),0),s=t-this.lastScrollPosition;this.lastScrollPosition=t,this.isCurrentlyBeingResized||(this.currentAppBarOffsetTop-=s,this.currentAppBarOffsetTop>0?this.currentAppBarOffsetTop=0:Math.abs(this.currentAppBarOffsetTop)>this.topAppBarHeight&&(this.currentAppBarOffsetTop=-this.topAppBarHeight),this.moveTopAppBar())},e.prototype.handleWindowResize=function(){var t=this;this.resizeThrottleId||(this.resizeThrottleId=setTimeout(function(){t.resizeThrottleId=n,t.throttledResizeHandler()},a.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)),this.isCurrentlyBeingResized=!0,this.resizeDebounceId&&clearTimeout(this.resizeDebounceId),this.resizeDebounceId=setTimeout(function(){t.handleTargetScroll(),t.isCurrentlyBeingResized=!1,t.resizeDebounceId=n},a.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)},e.prototype.checkForUpdate=function(){var t=-this.topAppBarHeight,s=this.currentAppBarOffsetTop<0,c=this.currentAppBarOffsetTop>t,h=s&&c;if(h)this.wasDocked=!1;else if(this.wasDocked){if(this.isDockedShowing!==c)return this.isDockedShowing=c,!0}else return this.wasDocked=!0,!0;return h},e.prototype.moveTopAppBar=function(){if(this.checkForUpdate()){var t=this.currentAppBarOffsetTop;Math.abs(t)>=this.topAppBarHeight&&(t=-a.MAX_TOP_APP_BAR_HEIGHT),this.adapter.setStyle("top",t+"px")}},e.prototype.throttledResizeHandler=function(){var t=this.adapter.getTopAppBarHeight();this.topAppBarHeight!==t&&(this.wasDocked=!1,this.currentAppBarOffsetTop-=this.topAppBarHeight-t,this.topAppBarHeight=t),this.handleTargetScroll()},e}(v);const y=b;/**
86
86
  * @license
87
87
  * Copyright 2019 Google LLC
88
88
  * SPDX-License-Identifier: Apache-2.0
89
- */const c=r.supportsPassiveEventListener?{passive:!0}:void 0;class o extends r.BaseElement{constructor(){super(...arguments),this.centerTitle=!1,this.handleTargetScroll=()=>{this.mdcFoundation.handleTargetScroll()},this.handleNavigationClick=()=>{this.mdcFoundation.handleNavigationClick()}}get scrollTarget(){return this._scrollTarget||window}set scrollTarget(e){this.unregisterScrollListener();const t=this.scrollTarget;this._scrollTarget=e,this.updateRootPosition(),this.requestUpdate("scrollTarget",t),this.registerScrollListener()}updateRootPosition(){if(this.mdcRoot){const e=this.scrollTarget===window;this.mdcRoot.style.position=e?"":"absolute"}}render(){let e=r.y`<span class="mdc-top-app-bar__title"><slot name="title"></slot></span>`;return this.centerTitle&&(e=r.y`<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-center">${e}</section>`),r.y`
90
- <header class="mdc-top-app-bar ${r.o(this.barClasses())}">
89
+ */const d=g.supportsPassiveEventListener?{passive:!0}:void 0;class o extends A.BaseElement{constructor(){super(...arguments),this.centerTitle=!1,this.handleTargetScroll=()=>{this.mdcFoundation.handleTargetScroll()},this.handleNavigationClick=()=>{this.mdcFoundation.handleNavigationClick()}}get scrollTarget(){return this._scrollTarget||window}set scrollTarget(e){this.unregisterScrollListener();const t=this.scrollTarget;this._scrollTarget=e,this.updateRootPosition(),this.requestUpdate("scrollTarget",t),this.registerScrollListener()}updateRootPosition(){if(this.mdcRoot){const e=this.scrollTarget===window;this.mdcRoot.style.position=e?"":"absolute"}}render(){let e=l.y`<span class="mdc-top-app-bar__title"><slot name="title"></slot></span>`;return this.centerTitle&&(e=l.y`<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-center">${e}</section>`),l.y`
90
+ <header class="mdc-top-app-bar ${f.o(this.barClasses())}">
91
91
  <div class="mdc-top-app-bar__row">
92
92
  <section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-start" id="navigation">
93
93
  <slot name="navigationIcon"
@@ -100,11 +100,11 @@
100
100
  </section>
101
101
  </div>
102
102
  </header>
103
- <div class="${r.o(this.contentClasses())}">
103
+ <div class="${f.o(this.contentClasses())}">
104
104
  <slot></slot>
105
105
  </div>
106
- `}createAdapter(){return Object.assign(Object.assign({},r.addHasRemoveClass(this.mdcRoot)),{setStyle:(e,t)=>this.mdcRoot.style.setProperty(e,t),getTopAppBarHeight:()=>this.mdcRoot.clientHeight,notifyNavigationIconClicked:()=>{this.dispatchEvent(new Event(h.NAVIGATION_EVENT,{bubbles:!0,cancelable:!0}))},getViewportScrollY:()=>this.scrollTarget instanceof Window?this.scrollTarget.pageYOffset:this.scrollTarget.scrollTop,getTotalActionItems:()=>this._actionItemsSlot.assignedNodes({flatten:!0}).length})}registerListeners(){this.registerScrollListener()}unregisterListeners(){this.unregisterScrollListener()}registerScrollListener(){this.scrollTarget.addEventListener("scroll",this.handleTargetScroll,c)}unregisterScrollListener(){this.scrollTarget.removeEventListener("scroll",this.handleTargetScroll)}firstUpdated(){super.firstUpdated(),this.updateRootPosition(),this.registerListeners()}disconnectedCallback(){super.disconnectedCallback(),this.unregisterListeners()}}r.__decorate([r.i(".mdc-top-app-bar")],o.prototype,"mdcRoot",void 0);r.__decorate([r.i('slot[name="actionItems"]')],o.prototype,"_actionItemsSlot",void 0);r.__decorate([r.e({type:Boolean})],o.prototype,"centerTitle",void 0);r.__decorate([r.e({type:Object})],o.prototype,"scrollTarget",null);/**
106
+ `}createAdapter(){return Object.assign(Object.assign({},g.addHasRemoveClass(this.mdcRoot)),{setStyle:(e,t)=>this.mdcRoot.style.setProperty(e,t),getTopAppBarHeight:()=>this.mdcRoot.clientHeight,notifyNavigationIconClicked:()=>{this.dispatchEvent(new Event(m.NAVIGATION_EVENT,{bubbles:!0,cancelable:!0}))},getViewportScrollY:()=>this.scrollTarget instanceof Window?this.scrollTarget.pageYOffset:this.scrollTarget.scrollTop,getTotalActionItems:()=>this._actionItemsSlot.assignedNodes({flatten:!0}).length})}registerListeners(){this.registerScrollListener()}unregisterListeners(){this.unregisterScrollListener()}registerScrollListener(){this.scrollTarget.addEventListener("scroll",this.handleTargetScroll,d)}unregisterScrollListener(){this.scrollTarget.removeEventListener("scroll",this.handleTargetScroll)}firstUpdated(){super.firstUpdated(),this.updateRootPosition(),this.registerListeners()}disconnectedCallback(){super.disconnectedCallback(),this.unregisterListeners()}}i.__decorate([T.i(".mdc-top-app-bar")],o.prototype,"mdcRoot",void 0);i.__decorate([T.i('slot[name="actionItems"]')],o.prototype,"_actionItemsSlot",void 0);i.__decorate([p.e({type:Boolean})],o.prototype,"centerTitle",void 0);i.__decorate([p.e({type:Object})],o.prototype,"scrollTarget",null);/**
107
107
  * @license
108
108
  * Copyright 2018 Google LLC
109
109
  * SPDX-License-Identifier: Apache-2.0
110
- */class l extends o{constructor(){super(...arguments),this.mdcFoundationClass=_,this.prominent=!1,this.dense=!1,this.handleResize=()=>{this.mdcFoundation.handleWindowResize()}}barClasses(){return{"mdc-top-app-bar--dense":this.dense,"mdc-top-app-bar--prominent":this.prominent,"center-title":this.centerTitle}}contentClasses(){return{"mdc-top-app-bar--fixed-adjust":!this.dense&&!this.prominent,"mdc-top-app-bar--dense-fixed-adjust":this.dense&&!this.prominent,"mdc-top-app-bar--prominent-fixed-adjust":!this.dense&&this.prominent,"mdc-top-app-bar--dense-prominent-fixed-adjust":this.dense&&this.prominent}}registerListeners(){super.registerListeners(),window.addEventListener("resize",this.handleResize,c)}unregisterListeners(){super.unregisterListeners(),window.removeEventListener("resize",this.handleResize)}}r.__decorate([r.e({type:Boolean,reflect:!0})],l.prototype,"prominent",void 0);r.__decorate([r.e({type:Boolean,reflect:!0})],l.prototype,"dense",void 0);exports.MDCTopAppBarFoundation=f;exports.TopAppBarBase=l;exports.cssClasses=u;exports.passiveEventOptionsIfSupported=c;
110
+ */class u extends o{constructor(){super(...arguments),this.mdcFoundationClass=y,this.prominent=!1,this.dense=!1,this.handleResize=()=>{this.mdcFoundation.handleWindowResize()}}barClasses(){return{"mdc-top-app-bar--dense":this.dense,"mdc-top-app-bar--prominent":this.prominent,"center-title":this.centerTitle}}contentClasses(){return{"mdc-top-app-bar--fixed-adjust":!this.dense&&!this.prominent,"mdc-top-app-bar--dense-fixed-adjust":this.dense&&!this.prominent,"mdc-top-app-bar--prominent-fixed-adjust":!this.dense&&this.prominent,"mdc-top-app-bar--dense-prominent-fixed-adjust":this.dense&&this.prominent}}registerListeners(){super.registerListeners(),window.addEventListener("resize",this.handleResize,d)}unregisterListeners(){super.unregisterListeners(),window.removeEventListener("resize",this.handleResize)}}i.__decorate([p.e({type:Boolean,reflect:!0})],u.prototype,"prominent",void 0);i.__decorate([p.e({type:Boolean,reflect:!0})],u.prototype,"dense",void 0);exports.MDCTopAppBarFoundation=b;exports.TopAppBarBase=u;exports.cssClasses=_;exports.passiveEventOptionsIfSupported=d;