!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js"],t);else{var r="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,(e,t,r)=>(()=>{"use strict";var o,i={2708(e,t,r){r.r(t),r.d(t,{ProgressBar:()=>o});var o,i=r(9609),s=r(4084),a=r(7161),p=r(429),l=r(5125),n=r(6631),d=function(e,t,r,o){var i,s=arguments.length,a=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var p=e.length-1;p>=0;p--)(i=e[p])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.dynamic=!1,this.color="",this.label="",this.displayFormat="percentage",this.type="indeterminate",this.min=0,this.max=100,this.value=25,this.adjustedValue=0,this.valueFraction=0,this.meterWidth="100",this.getDisplayFormat=()=>"indeterminate"===this.type?(this.value=100,null):(this.adjustedValue=this.max-this.value<0?this.max:this.value,this.valueFraction=this.adjustedValue/this.max*100||0,this.meterWidth=this.valueFraction.toFixed(0)+"%","none"===this.displayFormat?null:"percentage"===this.displayFormat?this.meterWidth:`${this.adjustedValue} / ${this.max}`),this.getColor=()=>this.color?this.color:this.dynamic?this.valueFraction<25?"success":this.valueFraction<50?"info":this.valueFraction<75?"warning":"danger":void 0}connectedCallback(){super.connectedCallback(),this.requestUpdate("value")}static get styles(){return[s.A,n.A]}render(){const e={[`progress--${this.type}`]:this.type,[`progress--${this.color}`]:this.color};return a.html`
        <span>
          <div class="progressbar-info" data-key="${this.min}">
            <span class="progressbar-label">${this.label}</span>
            <span class="progressbar-progress">${this.getDisplayFormat()}</span>
          </div>
          <div class="progress ${(0,l.classMap)(e)}" data-key="${this.max}">
            <span
              class="meter"
              role="progressbar"
              aria-labelledby="progressbar"
              aria-valuenow=${this.adjustedValue}
              aria-valuemin=${this.min}
              aria-valuemax=${this.max}
              aria-valuetext=${this.meterWidth}
              style="${"width: "+this.meterWidth+"; background: "+this.getColor()}"
            >
            </span>
          </div>
        </span>
      `}};d([(0,p.property)({type:Boolean})],t.prototype,"dynamic",void 0),d([(0,p.property)({type:String})],t.prototype,"color",void 0),d([(0,p.property)({type:String})],t.prototype,"label",void 0),d([(0,p.property)({type:String})],t.prototype,"displayFormat",void 0),d([(0,p.property)({type:String})],t.prototype,"type",void 0),d([(0,p.property)({type:Number})],t.prototype,"min",void 0),d([(0,p.property)({type:Number})],t.prototype,"max",void 0),d([(0,p.property)({type:Number})],t.prototype,"value",void 0),d([(0,p.property)({type:Number})],t.prototype,"adjustedValue",void 0),d([(0,p.property)({type:Number})],t.prototype,"valueFraction",void 0),d([(0,p.property)({type:String})],t.prototype,"meterWidth",void 0),t=d([(0,i.w)("md-progress-bar")],t),e.ELEMENT=t}(o||(o={}))},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=r}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return i[e](r,r.exports,a),r.exports}a.m=i,o=[],a.O=(e,t,r,i)=>{if(!t){var s=1/0;for(d=0;d<o.length;d++){for(var[t,r,i]=o[d],p=!0,l=0;l<t.length;l++)(!1&i||s>=i)&&Object.keys(a.O).every(e=>a.O[e](t[l]))?t.splice(l--,1):(p=!1,i<s&&(s=i));if(p){o.splice(d--,1);var n=r();void 0!==n&&(e=n)}}return e}i=i||0;for(var d=o.length;d>0&&o[d-1][2]>i;d--)o[d]=o[d-1];o[d]=[t,r,i]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={2708:0,5369:0};a.O.j=t=>0===e[t];var t=(t,r)=>{var o,i,[s,p,l]=r,n=0;if(s.some(t=>0!==e[t])){for(o in p)a.o(p,o)&&(a.m[o]=p[o]);if(l)var d=l(a)}for(t&&t(r);n<s.length;n++)i=s[n],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(d)},r=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var p=a.O(void 0,[9609,4084,6631],()=>a(2708));return a.O(p)})());