/*! * ProgressBar.js v1.1.1 * (c) 2022 Kimmo Brunfeldt * @license MIT * * GitHub: https://kimmobrunfeldt.github.io/progressbar.js */ (function(t){if(typeof window.BX==="undefined"){window.BX={}}window.BX.ProgressBarJs=t()})((function(){var t,e,r;return function(){function t(e,r,n){function i(a,u){if(!r[a]){if(!e[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=r[a]={exports:{}};e[a][0].call(f.exports,(function(t){var r=e[a][1][t];return i(r||t)}),f,f.exports,t,e,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a-1}function qt(t,e){var r=this.__data__,n=te(r,t);if(n<0){++this.size;r.push([t,e])}else{r[n][1]=e}return this}Ft.prototype.clear=Wt;Ft.prototype["delete"]=It;Ft.prototype.get=zt;Ft.prototype.has=Dt;Ft.prototype.set=qt;function Bt(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e1?r[i-1]:undefined,a=i>2?r[2]:undefined;o=t.length>3&&typeof o=="function"?(i--,o):undefined;if(a&&je(r[0],r[1],a)){o=i<3?undefined:o;i=1}e=Object(e);while(++n-1&&t%1==0&&t0){if(++e>=o){return arguments[0]}}else{e=0}return t.apply(undefined,arguments)}}function We(t){if(t!=null){try{return ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ie(t,e){return t===e||t!==t&&e!==e}var ze=ie(function(){return arguments}())?ie:function(t){return Qe(t)&&at.call(t,"callee")&&!yt.call(t,"callee")};var De=Array.isArray;function qe(t){return t!=null&&Ne(t.length)&&!Re(t)}function Be(t){return Qe(t)&&qe(t)}var Le=mt||Ye;function Re(t){if(!Ue(t)){return false}var e=ne(t);return e==d||e==v||e==f||e==b}function Ne(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=u}function Ue(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function Qe(t){return t!=null&&typeof t=="object"}function Ve(t){if(!Qe(t)||ne(t)!=w){return false}var e=vt(t);if(e===null){return true}var r=at.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&ot.call(r)==ct}var $e=H?Y(H):ae;function Xe(t){return _e(t,Ge(t))}function Ge(t){return qe(t)?Kt(t,true):ue(t)}var He=ye((function(t,e,r){se(t,e,r)}));function Je(t){return function(){return t}}function Ke(t){return t}function Ye(){return false}e.exports=He}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],2:[function(e,r,n){ /*! For license information please see shifty.js.LICENSE.txt */ !function(e,i){"object"==typeof n&&"object"==typeof r?r.exports=i():"function"==typeof t&&t.amd?t("shifty",[],i):"object"==typeof n?n.shifty=i():e.shifty=i()}(self,(function(){return function(){"use strict";var t={720:function(t,e,r){r.r(e),r.d(e,{Scene:function(){return ue},Tweenable:function(){return kt},interpolate:function(){return ee},processTweens:function(){return yt},setBezierFunction:function(){return U},shouldScheduleUpdate:function(){return bt},tween:function(){return xt},unsetBezierFunction:function(){return Q}});var n={};r.r(n),r.d(n,{bounce:function(){return I},bouncePast:function(){return z},easeFrom:function(){return q},easeFromTo:function(){return D},easeInBack:function(){return A},easeInCirc:function(){return j},easeInCubic:function(){return c},easeInExpo:function(){return m},easeInOutBack:function(){return C},easeInOutCirc:function(){return x},easeInOutCubic:function(){return l},easeInOutExpo:function(){return O},easeInOutQuad:function(){return s},easeInOutQuart:function(){return d},easeInOutQuint:function(){return y},easeInOutSine:function(){return b},easeInQuad:function(){return a},easeInQuart:function(){return h},easeInQuint:function(){return v},easeInSine:function(){return g},easeOutBack:function(){return T},easeOutBounce:function(){return P},easeOutCirc:function(){return k},easeOutCubic:function(){return f},easeOutExpo:function(){return S},easeOutQuad:function(){return u},easeOutQuart:function(){return p},easeOutQuint:function(){return _},easeOutSine:function(){return w},easeTo:function(){return B},elastic:function(){return E},linear:function(){return o},swingFrom:function(){return F},swingFromTo:function(){return M},swingTo:function(){return W}});var i={};r.r(i),r.d(i,{afterTween:function(){return Ht},beforeTween:function(){return Gt},doesApply:function(){return $t},tweenCreated:function(){return Xt}});var o=function(t){return t},a=function(t){return Math.pow(t,2)},u=function(t){return-(Math.pow(t-1,2)-1)},s=function(t){return(t/=.5)<1?.5*Math.pow(t,2):-.5*((t-=2)*t-2)},c=function(t){return Math.pow(t,3)},f=function(t){return Math.pow(t-1,3)+1},l=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},h=function(t){return Math.pow(t,4)},p=function(t){return-(Math.pow(t-1,4)-1)},d=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},v=function(t){return Math.pow(t,5)},_=function(t){return Math.pow(t-1,5)+1},y=function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},g=function(t){return 1-Math.cos(t*(Math.PI/2))},w=function(t){return Math.sin(t*(Math.PI/2))},b=function(t){return-.5*(Math.cos(Math.PI*t)-1)},m=function(t){return 0===t?0:Math.pow(2,10*(t-1))},S=function(t){return 1===t?1:1-Math.pow(2,-10*t)},O=function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},j=function(t){return-(Math.sqrt(1-t*t)-1)},k=function(t){return Math.sqrt(1-Math.pow(t-1,2))},x=function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},P=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},A=function(t){var e=1.70158;return t*t*((e+1)*t-e)},T=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},C=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},E=function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},M=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},F=function(t){var e=1.70158;return t*t*((e+1)*t-e)},W=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},I=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},z=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?2-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},D=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},q=function(t){return Math.pow(t,4)},B=function(t){return Math.pow(t,.25)};function L(t,e,r,n,i,o){var a,u,s,c,f,l=0,h=0,p=0,d=function(t){return((l*t+h)*t+p)*t},v=function(t){return(3*l*t+2*h)*t+p},_=function(t){return t>=0?t:0-t};return l=1-(p=3*e)-(h=3*(n-e)-p),s=1-(f=3*r)-(c=3*(i-r)-f),a=t,u=function(t){return 1/(200*t)}(o),function(t){return((s*t+c)*t+f)*t}(function(t,e){var r,n,i,o,a,u;for(i=t,u=0;u<8;u++){if(o=d(i)-t,_(o)(n=1))return n;for(;ro?r=i:n=i,i=.5*(n-r)+r}return i}(a,u))}var R,N=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.25,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.25,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.75,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.75;return function(i){return L(i,t,e,r,n,1)}},U=function(t,e,r,n,i){var o=N(e,r,n,i);return o.displayName=t,o.x1=e,o.y1=r,o.x2=n,o.y2=i,kt.formulas[t]=o},Q=function(t){return delete kt.formulas[t]};function V(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);ru?u:e;t._hasEnded=s>=u;var c=o-(u-s),f=t._filters.length>0;if(t._hasEnded)return t._render(a,t._data,c),t.stop(!0);f&&t._applyFilter(at),s1&&void 0!==arguments[1]?arguments[1]:rt,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Array.isArray(e)){var n=N.apply(void 0,G(e));return n}var i=X(e);if(dt[e])return dt[e];if(i===ct||i===st)for(var o in t)r[o]=e;else for(var a in t)r[a]=e[a]||rt;return r},Ot=function(t){t===ht?(ht=t._next)?ht._previous=null:pt=null:t===pt?(pt=t._previous)?pt._next=null:ht=null:(tt=t._previous,et=t._next,tt._next=et,et._previous=tt),t._previous=t._next=null},jt="function"==typeof Promise?Promise:null;R=Symbol.toStringTag;var kt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;V(this,t),Y(this,R,"Promise"),this._config={},this._data={},this._delay=0,this._filters=[],this._next=null,this._previous=null,this._timestamp=null,this._hasEnded=!1,this._resolve=null,this._reject=null,this._currentState=e||{},this._originalState={},this._targetState={},this._start=lt,this._render=lt,this._promiseCtor=jt,r&&this.setConfig(r)}var e,r;return e=t,r=[{key:"_applyFilter",value:function(t){for(var e=this._filters.length;e>0;e--){var r=this._filters[e-e][t];r&&r(this)}}},{key:"tween",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return this._isPlaying&&this.stop(),!e&&this._config||this.setConfig(e),this._pausedAtTime=null,this._timestamp=t.now(),this._start(this.get(),this._data),this._delay&&this._render(this._currentState,this._data,0),this._resume(this._timestamp)}},{key:"setConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=this._config;for(var n in e)r[n]=e[n];var i=r.promise,o=void 0===i?this._promiseCtor:i,a=r.start,u=void 0===a?lt:a,s=r.finish,c=r.render,f=void 0===c?this._config.step||lt:c,l=r.step,h=void 0===l?lt:l;this._data=r.data||r.attachment||this._data,this._isPlaying=!1,this._pausedAtTime=null,this._scheduleId=null,this._delay=e.delay||0,this._start=u,this._render=f||h,this._duration=r.duration||500,this._promiseCtor=o,s&&(this._resolve=s);var p=e.from,d=e.to,v=void 0===d?{}:d,_=this._currentState,y=this._originalState,g=this._targetState;for(var w in p)_[w]=p[w];var b=!1;for(var m in _){var S=_[m];b||X(S)!==ct||(b=!0),y[m]=S,g[m]=v.hasOwnProperty(m)?v[m]:S}if(this._easing=St(this._currentState,r.easing,this._easing),this._filters.length=0,b){for(var O in t.filters)t.filters[O].doesApply(this)&&this._filters.push(t.filters[O]);this._applyFilter(ut)}return this}},{key:"then",value:function(t,e){var r=this;return this._promise=new this._promiseCtor((function(t,e){r._resolve=t,r._reject=e})),this._promise.then(t,e)}},{key:"catch",value:function(t){return this.then().catch(t)}},{key:"finally",value:function(t){return this.then().finally(t)}},{key:"get",value:function(){return K({},this._currentState)}},{key:"set",value:function(t){this._currentState=t}},{key:"pause",value:function(){if(this._isPlaying)return this._pausedAtTime=t.now(),this._isPlaying=!1,Ot(this),this}},{key:"resume",value:function(){return this._resume()}},{key:"_resume",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.now();return null===this._timestamp?this.tween():this._isPlaying?this._promise:(this._pausedAtTime&&(this._timestamp+=e-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0,null===ht?(ht=this,pt=this):(this._previous=pt,pt._next=this,pt=this),this)}},{key:"seek",value:function(e){e=Math.max(e,0);var r=t.now();return this._timestamp+e===0||(this._timestamp=r-e,_t(this,r)),this}},{key:"stop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._isPlaying)return this;this._isPlaying=!1,Ot(this);var e=this._filters.length>0;return t&&(e&&this._applyFilter(at),vt(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),e&&(this._applyFilter(it),this._applyFilter(ot))),this._resolve&&this._resolve({data:this._data,state:this._currentState,tweenable:this}),this._resolve=null,this._reject=null,this}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._currentState,r=this._data,n=this._isPlaying;return n?(this._reject&&this._reject({data:r,state:e,tweenable:this}),this._resolve=null,this._reject=null,this.stop(t)):this}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"hasEnded",value:function(){return this._hasEnded}},{key:"setScheduleFunction",value:function(e){t.setScheduleFunction(e)}},{key:"data",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t&&(this._data=K({},t)),this._data}},{key:"dispose",value:function(){for(var t in this)delete this[t]}}],r&&$(e.prototype,r),t}();function xt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new kt;return e.tween(t),e.tweenable=e,e}Y(kt,"now",(function(){return Z})),Y(kt,"setScheduleFunction",(function(t){return ft=t})),Y(kt,"filters",{}),Y(kt,"formulas",dt),bt(!0);var Pt,At,Tt=/(\d|-|\.)/,Ct=/([^\-0-9.]+)/g,Et=/[0-9.-]+/g,Mt=(Pt=Et.source,At=/,\s*/.source,new RegExp("rgba?\\(".concat(Pt).concat(At).concat(Pt).concat(At).concat(Pt,"(").concat(At).concat(Pt,")?\\)"),"g")),Ft=/^.*\(/,Wt=/#([0-9]|[a-f]){3,6}/gi,It="VAL",zt=function(t,e){return t.map((function(t,r){return"_".concat(e,"_").concat(r)}))};function Dt(t){return parseInt(t,16)}var qt=function(t){return"rgb(".concat((e=t,3===(e=e.replace(/#/,"")).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[Dt(e.substr(0,2)),Dt(e.substr(2,2)),Dt(e.substr(4,2))]).join(","),")");var e},Bt=function(t,e,r){var n=e.match(t),i=e.replace(t,It);return n&&n.forEach((function(t){return i=i.replace(It,r(t))})),i},Lt=function(t){for(var e in t){var r=t[e];"string"==typeof r&&r.match(Wt)&&(t[e]=Bt(Wt,r,qt))}},Rt=function(t){var e=t.match(Et),r=e.slice(0,3).map(Math.floor),n=t.match(Ft)[0];if(3===e.length)return"".concat(n).concat(r.join(","),")");if(4===e.length)return"".concat(n).concat(r.join(","),",").concat(e[3],")");throw new Error("Invalid rgbChunk: ".concat(t))},Nt=function(t){return t.match(Et)},Ut=function(t,e){var r={};return e.forEach((function(e){r[e]=t[e],delete t[e]})),r},Qt=function(t,e){return e.map((function(e){return t[e]}))},Vt=function(t,e){return e.forEach((function(e){return t=t.replace(It,+e.toFixed(4))})),t},$t=function(t){for(var e in t._currentState)if("string"==typeof t._currentState[e])return!0;return!1};function Xt(t){var e=t._currentState;[e,t._originalState,t._targetState].forEach(Lt),t._tokenData=function(t){var e,r,n={};for(var i in t){var o=t[i];"string"==typeof o&&(n[i]={formatString:(e=o,r=void 0,r=e.match(Ct),r?(1===r.length||e.charAt(0).match(Tt))&&r.unshift(""):r=["",""],r.join(It)),chunkNames:zt(Nt(o),i)})}return n}(e)}function Gt(t){var e=t._currentState,r=t._originalState,n=t._targetState,i=t._easing,o=t._tokenData;!function(t,e){var r=function(r){var n=e[r].chunkNames,i=t[r];if("string"==typeof i){var o=i.split(" "),a=o[o.length-1];n.forEach((function(e,r){return t[e]=o[r]||a}))}else n.forEach((function(e){return t[e]=i}));delete t[r]};for(var n in e)r(n)}(i,o),[e,r,n].forEach((function(t){return function(t,e){var r=function(r){Nt(t[r]).forEach((function(n,i){return t[e[r].chunkNames[i]]=+n})),delete t[r]};for(var n in e)r(n)}(t,o)}))}function Ht(t){var e=t._currentState,r=t._originalState,n=t._targetState,i=t._easing,o=t._tokenData;[e,r,n].forEach((function(t){return function(t,e){for(var r in e){var n=e[r],i=n.chunkNames,o=n.formatString,a=Vt(o,Qt(Ut(t,i),i));t[r]=Bt(Mt,a,Rt)}}(t,o)})),function(t,e){for(var r in e){var n=e[r].chunkNames,i=t[n[0]];t[r]="string"==typeof i?n.map((function(e){var r=t[e];return delete t[e],r})).join(" "):i}}(i,o)}function Jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Kt(t){for(var e=1;e4&&void 0!==arguments[4]?arguments[4]:0,o=Kt({},t),a=St(t,n);for(var u in Zt._filters.length=0,Zt.set({}),Zt._currentState=o,Zt._originalState=t,Zt._targetState=e,Zt._easing=a,te)te[u].doesApply(Zt)&&Zt._filters.push(te[u]);Zt._applyFilter("tweenCreated"),Zt._applyFilter("beforeTween");var s=vt(r,o,t,e,1,i,a);return Zt._applyFilter("afterTween"),s};function re(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);re.strokeWidth){r=e.trailWidth}var n=50-r/2;return i.render(this._pathTemplate,{radius:n,"2radius":n*2})};o.prototype._trailString=function t(e){return this._pathString(e)};e.exports=o},{"./shape":8,"./utils":10}],4:[function(t,e,r){var n=t("./shape");var i=t("./utils");var o=function t(e,r){this._pathTemplate=r.vertical?"M {center},100 L {center},0":"M 0,{center} L 100,{center}";n.apply(this,arguments)};o.prototype=new n;o.prototype.constructor=o;o.prototype._initializeSvg=function t(e,r){var n=r.vertical?"0 0 "+r.strokeWidth+" 100":"0 0 100 "+r.strokeWidth;e.setAttribute("viewBox",n);e.setAttribute("preserveAspectRatio","none")};o.prototype._pathString=function t(e){return i.render(this._pathTemplate,{center:e.strokeWidth/2})};o.prototype._trailString=function t(e){return this._pathString(e)};e.exports=o},{"./shape":8,"./utils":10}],5:[function(t,e,r){e.exports={Line:t("./line"),Circle:t("./circle"),SemiCircle:t("./semicircle"),Square:t("./square"),Path:t("./path"),Shape:t("./shape"),utils:t("./utils")}},{"./circle":3,"./line":4,"./path":6,"./semicircle":7,"./shape":8,"./square":9,"./utils":10}],6:[function(t,e,r){var n=t("shifty");var i=t("./utils");var o=n.Tweenable;var a={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"};var u=function t(e,r){if(!(this instanceof t)){throw new Error("Constructor was called without new keyword")}r=i.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},r);var n;if(i.isString(e)){n=document.querySelector(e)}else{n=e}this.path=n;this._opts=r;this._tweenable=null;var o=this.path.getTotalLength();this.path.style.strokeDasharray=o+" "+o;this.set(0)};u.prototype.value=function t(){var e=this._getComputedDashOffset();var r=this.path.getTotalLength();var n=1-e/r;return parseFloat(n.toFixed(6),10)};u.prototype.set=function t(e){this.stop();this.path.style.strokeDashoffset=this._progressToOffset(e);var r=this._opts.step;if(i.isFunction(r)){var n=this._easing(this._opts.easing);var o=this._calculateTo(e,n);var a=this._opts.shape||this;r(o,a,this._opts.attachment)}};u.prototype.stop=function t(){this._stopTween();this.path.style.strokeDashoffset=this._getComputedDashOffset()};u.prototype.animate=function t(e,r,n){r=r||{};if(i.isFunction(r)){n=r;r={}}var a=i.extend({},r);var u=i.extend({},this._opts);r=i.extend(u,r);var s=this._easing(r.easing);var c=this._resolveFromAndTo(e,s,a);this.stop();this.path.getBoundingClientRect();var f=this._getComputedDashOffset();var l=this._progressToOffset(e);var h=this;this._tweenable=new o;this._tweenable.tween({from:i.extend({offset:f},c.from),to:i.extend({offset:l},c.to),duration:r.duration,delay:r.delay,easing:s,step:function(t){h.path.style.strokeDashoffset=t.offset;var e=r.shape||h;r.step(t,e,r.attachment)}}).then((function(t){if(i.isFunction(n)){n()}})).catch((function(t){console.error("Error in tweening:",t);throw t}))};u.prototype._getComputedDashOffset=function t(){var e=window.getComputedStyle(this.path,null);var r=e.getPropertyValue("stroke-dashoffset");return r?parseFloat(r,10):0};u.prototype._progressToOffset=function t(e){var r=this.path.getTotalLength();return r-e*r};u.prototype._resolveFromAndTo=function t(e,r,n){if(n.from&&n.to){return{from:n.from,to:n.to}}return{from:this._calculateFrom(r),to:this._calculateTo(e,r)}};u.prototype._calculateFrom=function t(e){return n.interpolate(this._opts.from,this._opts.to,this.value(),e)};u.prototype._calculateTo=function t(e,r){return n.interpolate(this._opts.from,this._opts.to,e,r)};u.prototype._stopTween=function t(){if(this._tweenable!==null){this._tweenable.stop(true);this._tweenable=null}};u.prototype._easing=function t(e){if(a.hasOwnProperty(e)){return a[e]}return e};e.exports=u},{"./utils":10,shifty:2}],7:[function(t,e,r){var n=t("./shape");var i=t("./circle");var o=t("./utils");var a=function t(e,r){this._pathTemplate="M 50,50 m -{radius},0"+" a {radius},{radius} 0 1 1 {2radius},0";this.containerAspectRatio=2;n.apply(this,arguments)};a.prototype=new n;a.prototype.constructor=a;a.prototype._initializeSvg=function t(e,r){e.setAttribute("viewBox","0 0 100 50")};a.prototype._initializeTextContainer=function t(e,r,n){if(e.text.style){n.style.top="auto";n.style.bottom="0";if(e.text.alignToBottom){o.setStyle(n,"transform","translate(-50%, 0)")}else{o.setStyle(n,"transform","translate(-50%, 50%)")}}};a.prototype._pathString=i.prototype._pathString;a.prototype._trailString=i.prototype._trailString;e.exports=a},{"./circle":3,"./shape":8,"./utils":10}],8:[function(t,e,r){var n=t("./path");var i=t("./utils");var o="Object is destroyed";var a=function t(e,r){if(!(this instanceof t)){throw new Error("Constructor was called without new keyword")}if(arguments.length===0){return}this._opts=i.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:true,value:"translate(-50%, -50%)"}},autoStyleContainer:true,alignToBottom:true,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:false},r,true);if(i.isObject(r)&&r.svgStyle!==undefined){this._opts.svgStyle=r.svgStyle}if(i.isObject(r)&&i.isObject(r.text)&&r.text.style!==undefined){this._opts.text.style=r.text.style}var o=this._createSvgView(this._opts);var a;if(i.isString(e)){a=document.querySelector(e)}else{a=e}if(!a){throw new Error("Container does not exist: "+e)}this._container=a;this._container.appendChild(o.svg);if(this._opts.warnings){this._warnContainerAspectRatio(this._container)}if(this._opts.svgStyle){i.setStyles(o.svg,this._opts.svgStyle)}this.svg=o.svg;this.path=o.path;this.trail=o.trail;this.text=null;var u=i.extend({attachment:undefined,shape:this},this._opts);this._progressPath=new n(o.path,u);if(i.isObject(this._opts.text)&&this._opts.text.value!==null){this.setText(this._opts.text.value)}};a.prototype.animate=function t(e,r,n){if(this._progressPath===null){throw new Error(o)}this._progressPath.animate(e,r,n)};a.prototype.stop=function t(){if(this._progressPath===null){throw new Error(o)}if(this._progressPath===undefined){return}this._progressPath.stop()};a.prototype.pause=function t(){if(this._progressPath===null){throw new Error(o)}if(this._progressPath===undefined){return}if(!this._progressPath._tweenable){return}this._progressPath._tweenable.pause()};a.prototype.resume=function t(){if(this._progressPath===null){throw new Error(o)}if(this._progressPath===undefined){return}if(!this._progressPath._tweenable){return}this._progressPath._tweenable.resume()};a.prototype.destroy=function t(){if(this._progressPath===null){throw new Error(o)}this.stop();this.svg.parentNode.removeChild(this.svg);this.svg=null;this.path=null;this.trail=null;this._progressPath=null;if(this.text!==null){this.text.parentNode.removeChild(this.text);this.text=null}};a.prototype.set=function t(e){if(this._progressPath===null){throw new Error(o)}this._progressPath.set(e)};a.prototype.value=function t(){if(this._progressPath===null){throw new Error(o)}if(this._progressPath===undefined){return 0}return this._progressPath.value()};a.prototype.setText=function t(e){if(this._progressPath===null){throw new Error(o)}if(this.text===null){this.text=this._createTextContainer(this._opts,this._container);this._container.appendChild(this.text)}if(i.isObject(e)){i.removeChildren(this.text);this.text.appendChild(e)}else{this.text.innerHTML=e}};a.prototype._createSvgView=function t(e){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(r,e);var n=null;if(e.trailColor||e.trailWidth){n=this._createTrail(e);r.appendChild(n)}var i=this._createPath(e);r.appendChild(i);return{svg:r,path:i,trail:n}};a.prototype._initializeSvg=function t(e,r){e.setAttribute("viewBox","0 0 100 100")};a.prototype._createPath=function t(e){var r=this._pathString(e);return this._createPathElement(r,e)};a.prototype._createTrail=function t(e){var r=this._trailString(e);var n=i.extend({},e);if(!n.trailColor){n.trailColor="#eee"}if(!n.trailWidth){n.trailWidth=n.strokeWidth}n.color=n.trailColor;n.strokeWidth=n.trailWidth;n.fill=null;return this._createPathElement(r,n)};a.prototype._createPathElement=function t(e,r){var n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttribute("d",e);n.setAttribute("stroke",r.color);n.setAttribute("stroke-width",r.strokeWidth);if(r.fill){n.setAttribute("fill",r.fill)}else{n.setAttribute("fill-opacity","0")}return n};a.prototype._createTextContainer=function t(e,r){var n=document.createElement("div");n.className=e.text.className;var o=e.text.style;if(o){if(e.text.autoStyleContainer){r.style.position="relative"}i.setStyles(n,o);if(!o.color){n.style.color=e.color}}this._initializeTextContainer(e,r,n);return n};a.prototype._initializeTextContainer=function(t,e,r){};a.prototype._pathString=function t(e){throw new Error("Override this function for each progress bar")};a.prototype._trailString=function t(e){throw new Error("Override this function for each progress bar")};a.prototype._warnContainerAspectRatio=function t(e){if(!this.containerAspectRatio){return}var r=window.getComputedStyle(e,null);var n=parseFloat(r.getPropertyValue("width"),10);var o=parseFloat(r.getPropertyValue("height"),10);if(!i.floatEquals(this.containerAspectRatio,n/o)){console.warn("Incorrect aspect ratio of container","#"+e.id,"detected:",r.getPropertyValue("width")+"(width)","/",r.getPropertyValue("height")+"(height)","=",n/o);console.warn("Aspect ratio of should be",this.containerAspectRatio)}};e.exports=a},{"./path":6,"./utils":10}],9:[function(t,e,r){var n=t("./shape");var i=t("./utils");var o=function t(e,r){this._pathTemplate="M 0,{halfOfStrokeWidth}"+" L {width},{halfOfStrokeWidth}"+" L {width},{width}"+" L {halfOfStrokeWidth},{width}"+" L {halfOfStrokeWidth},{strokeWidth}";this._trailTemplate="M {startMargin},{halfOfStrokeWidth}"+" L {width},{halfOfStrokeWidth}"+" L {width},{width}"+" L {halfOfStrokeWidth},{width}"+" L {halfOfStrokeWidth},{halfOfStrokeWidth}";n.apply(this,arguments)};o.prototype=new n;o.prototype.constructor=o;o.prototype._pathString=function t(e){var r=100-e.strokeWidth/2;return i.render(this._pathTemplate,{width:r,strokeWidth:e.strokeWidth,halfOfStrokeWidth:e.strokeWidth/2})};o.prototype._trailString=function t(e){var r=100-e.strokeWidth/2;return i.render(this._trailTemplate,{width:r,strokeWidth:e.strokeWidth,halfOfStrokeWidth:e.strokeWidth/2,startMargin:e.strokeWidth/2-e.trailWidth/2})};e.exports=o},{"./shape":8,"./utils":10}],10:[function(t,e,r){var n=t("lodash.merge");var i="Webkit Moz O ms".split(" ");var o=.001;function a(t,e){var r=t;for(var n in e){if(e.hasOwnProperty(n)){var i=e[n];var o="\\{"+n+"\\}";var a=new RegExp(o,"g");r=r.replace(a,i)}}return r}function u(t,e,r){var n=t.style;for(var o=0;o