File "progressBar.min.js"
Full Path: /home/magiggjm/magistvandroids.com/wp-content/plugins/kadence-blocks/includes/assets/js/progressBar.min.js
File size: 29.43 KB
MIME-type: text/plain
Charset: utf-8
(function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?this:self:global:window,b.ProgressBar=a()}})(function(){var a;return function(){function b(d,e,g){function a(j,i){if(!e[j]){if(!d[j]){var f="function"==typeof require&&require;if(!i&&f)return f(j,!0);if(h)return h(j,!0);var c=new Error("Cannot find module '"+j+"'");throw c.code="MODULE_NOT_FOUND",c}var k=e[j]={exports:{}};d[j][0].call(k.exports,function(b){var c=d[j][1][b];return a(c||b)},k,k.exports,b,d,e,g)}return e[j].exports}for(var h="function"==typeof require&&require,c=0;c<g.length;c++)a(g[c]);return a}return b}()({1:[function(b,c,d){/*! Shifty 2.8.3 - https://github.com/jeremyckahn/shifty */!function(b,e){"object"==typeof d&&"object"==typeof c?c.exports=e():"function"==typeof a&&a.amd?a("shifty",[],e):"object"==typeof d?d.shifty=e():b.shifty=e()}(window,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.d=function(a,c,d){b.o(a,c)||Object.defineProperty(a,c,{enumerable:!0,get:d})},b.r=function(a){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},b.t=function(a,c){if(1&c&&(a=b(a)),8&c)return a;if(4&c&&"object"==typeof a&&a&&a.__esModule)return a;var d=Object.create(null);if(b.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:a}),2&c&&"string"!=typeof a)for(var e in a)b.d(d,e,function(b){return a[b]}.bind(null,e));return d},b.n=function(a){var c=a&&a.__esModule?function(){return a.default}:function(){return a};return b.d(c,"a",c),c},b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.p="",b(b.s=3)}([function(a,j,k){"use strict";(function(e){function q(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function x(a){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}function i(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function z(b){for(var c,d=1;d<arguments.length;d++)c=null==arguments[d]?{}:arguments[d],d%2?i(Object(c),!0).forEach(function(d){a(b,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(c)):i(Object(c)).forEach(function(a){Object.defineProperty(b,a,Object.getOwnPropertyDescriptor(c,a))});return b}function a(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function c(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=new g,c=b.tween(a);return c.tweenable=b,c}k.d(j,"e",function(){return d}),k.d(j,"c",function(){return w}),k.d(j,"b",function(){return B}),k.d(j,"a",function(){return g}),k.d(j,"d",function(){return c});var n=k(1),o="undefined"==typeof window?e:window,f=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.oRequestAnimationFrame||o.msRequestAnimationFrame||o.mozCancelRequestAnimationFrame&&o.mozRequestAnimationFrame||setTimeout,A=function(){},l=null,r=null,t=z({},n),d=function(b,d,g,e,h,i,j){var k=b<i?0:(b-i)/h;for(var a in d){var m=j[a],n=m.call?m:t[m],o=g[a];d[a]=o+(e[a]-o)*n(k)}return d},v=function(b,g){var j=b._attachment,e=b._currentState,k=b._delay,i=b._easing,m=b._originalState,n=b._duration,o=b._step,c=b._targetState,f=b._timestamp,q=f+k+n,l=g>q?q:g,r=n-(q-l);l>=q?(o(c,j,r),b.stop(!0)):(b._applyFilter("beforeTween"),l<f+k?(l=1,n=1,f=1):f+=k,d(l,e,m,c,n,f,i),b._applyFilter("afterTween"),o(e,j,r))},w=function(){for(var a,b=g.now(),c=l;c;)a=c._next,v(c,b),c=a},B=function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"linear",c={},d=x(b);if("string"===d||"function"===d)for(var e in a)c[e]=b;else for(var f in a)c[f]=b[f]||"linear";return c},m=function(a){if(a===l)(l=a._next)?l._previous=null:r=null;else if(a===r)(r=a._previous)?r._next=null:l=null;else{var b=a._previous,c=a._next;b._next=c,c._previous=b}a._previous=a._next=null},g=function(){function a(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0;!function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}(this,a),this._currentState=b,this._configured=!1,this._filters=[],this._timestamp=null,this._next=null,this._previous=null,c&&this.setConfig(c)}var b,c,g;return b=a,(c=[{key:"_applyFilter",value:function(a){var b,c=!0,d=!1;try{for(var f,g,h=this._filters[Symbol.iterator]();!(c=(f=h.next()).done);c=!0)g=f.value[a],g&&g(this)}catch(a){d=!0,b=a}finally{try{c||null==h.return||h.return()}finally{if(d)throw b}}}},{key:"tween",value:function(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:void 0,c=this._attachment,d=this._configured;return!b&&d||this.setConfig(b),this._pausedAtTime=null,this._timestamp=a.now(),this._start(this.get(),c),this.resume()}},{key:"setConfig",value:function(){var j=this,k=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=k.attachment,l=k.delay,i=void 0===l?0:l,m=k.duration,n=void 0===m?500:m,c=k.easing,f=k.from,o=k.promise,h=void 0===o?Promise:o,p=k.start,d=void 0===p?A:p,q=k.step,r=void 0===q?A:q,s=k.to;this._configured=!0,this._attachment=e,this._isPlaying=!1,this._pausedAtTime=null,this._scheduleId=null,this._delay=i,this._start=d,this._step=r,this._duration=n,this._currentState=z({},f||this.get()),this._originalState=this.get(),this._targetState=z({},s||this.get());var g=this._currentState;this._targetState=z({},g,{},this._targetState),this._easing=B(g,c);var b=a.filters;for(var t in this._filters.length=0,b)b[t].doesApply(this)&&this._filters.push(b[t]);return this._applyFilter("tweenCreated"),this._promise=new h(function(a,b){j._resolve=a,j._reject=b}),this._promise.catch(A),this}},{key:"get",value:function(){return z({},this._currentState)}},{key:"set",value:function(a){this._currentState=a}},{key:"pause",value:function(){if(this._isPlaying)return this._pausedAtTime=a.now(),this._isPlaying=!1,m(this),this}},{key:"resume",value:function(){if(null===this._timestamp)return this.tween();if(this._isPlaying)return this._promise;var b=a.now();return this._pausedAtTime&&(this._timestamp+=b-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0,null===l?(l=this,r=this,function a(){l&&(f.call(o,a,1e3/60),w())}()):(this._previous=r,r._next=this,r=this),this._promise}},{key:"seek",value:function(b){b=Math.max(b,0);var c=a.now();return 0===this._timestamp+b?this:(this._timestamp=c-b,this._isPlaying||v(this,c),this)}},{key:"stop",value:function(){var a=0<arguments.length&&void 0!==arguments[0]&&arguments[0],b=this._attachment,c=this._currentState,e=this._easing,f=this._originalState,g=this._targetState;if(this._isPlaying)return this._isPlaying=!1,m(this),a?(this._applyFilter("beforeTween"),d(1,c,f,g,1,0,e),this._applyFilter("afterTween"),this._applyFilter("afterTweenEnd"),this._resolve(c,b)):this._reject(c,b),this}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"setScheduleFunction",value:function(b){a.setScheduleFunction(b)}},{key:"dispose",value:function(){for(var a in this)delete this[a]}}])&&q(b.prototype,c),g&&q(b,g),a}();g.setScheduleFunction=function(a){return f=a},g.formulas=t,g.filters={},g.now=Date.now||function(){return+new Date}}).call(this,k(2))},function(z,t,n){"use strict";n.r(t),n.d(t,"linear",function(){return e}),n.d(t,"easeInQuad",function(){return r}),n.d(t,"easeOutQuad",function(){return i}),n.d(t,"easeInOutQuad",function(){return u}),n.d(t,"easeInCubic",function(){return o}),n.d(t,"easeOutCubic",function(){return a}),n.d(t,"easeInOutCubic",function(){return c}),n.d(t,"easeInQuart",function(){return f}),n.d(t,"easeOutQuart",function(){return s}),n.d(t,"easeInOutQuart",function(){return l}),n.d(t,"easeInQuint",function(){return h}),n.d(t,"easeOutQuint",function(){return p}),n.d(t,"easeInOutQuint",function(){return d}),n.d(t,"easeInSine",function(){return v}),n.d(t,"easeOutSine",function(){return y}),n.d(t,"easeInOutSine",function(){return B}),n.d(t,"easeInExpo",function(){return m}),n.d(t,"easeOutExpo",function(){return g}),n.d(t,"easeInOutExpo",function(){return b}),n.d(t,"easeInCirc",function(){return w}),n.d(t,"easeOutCirc",function(){return G}),n.d(t,"easeInOutCirc",function(){return H}),n.d(t,"easeOutBounce",function(){return j}),n.d(t,"easeInBack",function(){return J}),n.d(t,"easeOutBack",function(){return k}),n.d(t,"easeInOutBack",function(){return K}),n.d(t,"elastic",function(){return x}),n.d(t,"swingFromTo",function(){return L}),n.d(t,"swingFrom",function(){return E}),n.d(t,"swingTo",function(){return F}),n.d(t,"bounce",function(){return A}),n.d(t,"bouncePast",function(){return I}),n.d(t,"easeFromTo",function(){return C}),n.d(t,"easeFrom",function(){return D}),n.d(t,"easeTo",function(){return q});var e=function(a){return a},r=function(a){return Math.pow(a,2)},i=function(a){return-(Math.pow(a-1,2)-1)},u=function(a){return 1>(a/=.5)?.5*Math.pow(a,2):-.5*((a-=2)*a-2)},o=function(a){return Math.pow(a,3)},a=function(a){return Math.pow(a-1,3)+1},c=function(a){return 1>(a/=.5)?.5*Math.pow(a,3):.5*(Math.pow(a-2,3)+2)},f=function(a){return Math.pow(a,4)},s=function(a){return-(Math.pow(a-1,4)-1)},l=function(a){return 1>(a/=.5)?.5*Math.pow(a,4):-.5*((a-=2)*Math.pow(a,3)-2)},h=function(a){return Math.pow(a,5)},p=function(a){return Math.pow(a-1,5)+1},d=function(a){return 1>(a/=.5)?.5*Math.pow(a,5):.5*(Math.pow(a-2,5)+2)},v=function(a){return 1-Math.cos(a*(Math.PI/2))},y=function(a){return Math.sin(a*(Math.PI/2))},B=function(a){return-.5*(Math.cos(Math.PI*a)-1)},m=function(a){return 0===a?0:Math.pow(2,10*(a-1))},g=function(a){return 1===a?1:1-Math.pow(2,-10*a)},b=function(a){return 0===a?0:1===a?1:1>(a/=.5)?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*--a))},w=function(a){return-(Math.sqrt(1-a*a)-1)},G=function(a){return Math.sqrt(1-Math.pow(a-1,2))},H=function(a){return 1>(a/=.5)?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},j=function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},J=function(a){var b=1.70158;return a*a*((b+1)*a-b)},k=function(a){var b=1.70158;return(a-=1)*a*((b+1)*a+b)+1},K=function(a){var b=1.70158;return 1>(a/=.5)?.5*(a*a*((1+(b*=1.525))*a-b)):.5*((a-=2)*a*((1+(b*=1.525))*a+b)+2)},x=function(a){return-1*Math.pow(4,-8*a)*Math.sin((6*a-1)*(2*Math.PI)/2)+1},L=function(a){var b=1.70158;return 1>(a/=.5)?.5*(a*a*((1+(b*=1.525))*a-b)):.5*((a-=2)*a*((1+(b*=1.525))*a+b)+2)},E=function(a){var b=1.70158;return a*a*((b+1)*a-b)},F=function(a){var b=1.70158;return(a-=1)*a*((b+1)*a+b)+1},A=function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},I=function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?2-(7.5625*(a-=1.5/2.75)*a+.75):a<2.5/2.75?2-(7.5625*(a-=2.25/2.75)*a+.9375):2-(7.5625*(a-=2.625/2.75)*a+.984375)},C=function(a){return 1>(a/=.5)?.5*Math.pow(a,4):-.5*((a-=2)*Math.pow(a,3)-2)},D=function(a){return Math.pow(a,4)},q=function(a){return Math.pow(a,.25)}},function(a,b){var c;c=function(){return this}();try{c=c||new Function("return this")()}catch(a){"object"==typeof window&&(c=window)}a.exports=c},function(H,t,n){"use strict";function e(a){return parseInt(a,16)}function d(a){var b=a._currentState;[b,a._originalState,a._targetState].forEach(y),a._tokenData=g(b)}function J(a){var c=a._currentState,d=a._originalState,e=a._targetState,f=a._easing,g=a._tokenData;M(f,g),[c,d,e].forEach(function(a){return b(a,g)})}function E(a){var b=a._currentState,c=a._originalState,d=a._targetState,e=a._easing,f=a._tokenData;[b,c,d].forEach(function(a){return j(a,f)}),k(e,f)}function F(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function A(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?F(Object(b),!0).forEach(function(c){I(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):F(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}function I(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function C(a){return function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}}(a)||function(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function B(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function K(a,b){var c=b.get(a);if(!c)throw new TypeError("attempted to get private field on non-instance");return c.get?c.get.call(a):c.value}function N(b,g,j,e,k,i){var m,n,q=0,r=0,u=0,w=0,x=0,z=0,A=function(a){return((q*a+r)*a+u)*a},d=function(a){return(3*q*a+2*r)*a+u},v=function(a){return 0<=a?a:0-a};return q=1-(u=3*g)-(r=3*(e-g)-u),w=1-(z=3*j)-(x=3*(k-j)-z),m=b,n=function(a){return 1/(200*a)}(i),function(a){return((w*a+x)*a+z)*a}(function(b,c){var f,g,h,j,k,l;for(h=b,l=0;8>l;l++){if(j=A(h)-b,v(j)<c)return h;if(k=d(h),1e-6>v(k))break;h-=j/k}if((h=b)<(f=0))return f;if(h>(g=1))return g;for(;f<g;){if(j=A(h),v(j-b)<c)return h;b>j?f=h:g=h,h=.5*(g-f)+f}return h}(m,n))}n.r(t);var R={};n.r(R),n.d(R,"doesApply",function(){return P}),n.d(R,"tweenCreated",function(){return d}),n.d(R,"beforeTween",function(){return J}),n.d(R,"afterTween",function(){return E});var r,T,U=n(0),o=/(\d|-|\.)/,a=/([^\-0-9.]+)/g,c=/[0-9.-]+/g,f=(r=c.source,T=/,\s*/.source,new RegExp("rgb\\(".concat(r).concat(T).concat(r).concat(T).concat(r,"\\)"),"g")),s=/^.*\(/,l=/#([0-9]|[a-f]){3,6}/gi,h=function(a,b){return a.map(function(a,c){return"_".concat(b,"_").concat(c)})},p=function(a){return"rgb(".concat((b=a,3===(b=b.replace(/#/,"")).length&&(b=(b=b.split(""))[0]+b[0]+b[1]+b[1]+b[2]+b[2]),[e(b.substr(0,2)),e(b.substr(2,2)),e(b.substr(4,2))]).join(","),")");var b},v=function(a,b,c){var d=b.match(a),e=b.replace(a,"VAL");return d&&d.forEach(function(a){return e=e.replace("VAL",c(a))}),e},y=function(a){for(var b in a){var c=a[b];"string"==typeof c&&c.match(l)&&(a[b]=v(l,c,p))}},V=function(a){var b=a.match(c).map(Math.floor),d=a.match(s)[0];return"".concat(d).concat(b.join(","),")")},m=function(a){return a.match(c)},g=function(b){var c,d,f={};for(var g in b){var j=b[g];"string"==typeof j&&(f[g]={formatString:(c=j,d=void 0,d=c.match(a),d?(1===d.length||c.charAt(0).match(o))&&d.unshift(""):d=["",""],d.join("VAL")),chunkNames:h(m(j),g)})}return f},b=function(a,b){var c=function(c){m(a[c]).forEach(function(d,e){return a[b[c].chunkNames[e]]=+d}),delete a[c]};for(var d in b)c(d)},w=function(a,b){var c={};return b.forEach(function(b){c[b]=a[b],delete a[b]}),c},O=function(a,b){return b.map(function(b){return a[b]})},S=function(a,b){return b.forEach(function(b){return a=a.replace("VAL",+b.toFixed(4))}),a},j=function(a,b){for(var c in b){var d=b[c],g=d.chunkNames,h=d.formatString,j=S(h,O(w(a,g),g));a[c]=v(f,j,V)}},M=function(a,b){var c=function(c){var d=b[c].chunkNames,e=a[c];if("string"==typeof e){var f=e.split(" "),g=f[f.length-1];d.forEach(function(b,c){return a[b]=f[c]||g})}else d.forEach(function(b){return a[b]=e});delete a[c]};for(var d in b)c(d)},k=function(a,b){for(var c in b){var d=b[c].chunkNames,f=a[d[0]];a[c]="string"==typeof f?d.map(function(b){var c=a[b];return delete a[b],c}).join(" "):f}},P=function(a){var b=a._currentState;return Object.keys(b).some(function(a){return"string"==typeof b[a]})},x=new U.a,D=U.a.filters,q=function(b,d,g,e){var h=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=A({},b),j=Object(U.b)(b,e);for(var a in x._filters.length=0,x.set({}),x._currentState=i,x._originalState=b,x._targetState=d,x._easing=j,D)D[a].doesApply(x)&&x._filters.push(D[a]);x._applyFilter("tweenCreated"),x._applyFilter("beforeTween");var k=Object(U.e)(g,i,b,d,1,h,j);return x._applyFilter("afterTween"),k},Q=function(){function a(){!function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}(this,a),z.set(this,{writable:!0,value:[]});for(var b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];c.forEach(this.add.bind(this))}var b,c,d;return b=a,(c=[{key:"add",value:function(a){return K(this,z).push(a),a}},{key:"remove",value:function(a){var b=K(this,z).indexOf(a);return~b&&K(this,z).splice(b,1),a}},{key:"empty",value:function(){return this.tweenables.map(this.remove.bind(this))}},{key:"isPlaying",value:function(){return K(this,z).some(function(a){return a.isPlaying()})}},{key:"play",value:function(){return K(this,z).forEach(function(a){return a.tween()}),this}},{key:"pause",value:function(){return K(this,z).forEach(function(a){return a.pause()}),this}},{key:"resume",value:function(){return K(this,z).forEach(function(a){return a.resume()}),this}},{key:"stop",value:function(a){return K(this,z).forEach(function(b){return b.stop(a)}),this}},{key:"tweenables",get:function(){return C(K(this,z))}},{key:"promises",get:function(){return K(this,z).map(function(a){return a._promise})}}])&&B(b.prototype,c),d&&B(b,d),a}(),z=new WeakMap,L=function(a,b,c,d,e){var f=function(a,b,c,d){return function(e){return N(e,a,b,c,d,1)}}(b,c,d,e);return f.displayName=a,f.x1=b,f.y1=c,f.x2=d,f.y2=e,U.a.formulas[a]=f},W=function(a){return delete U.a.formulas[a]};n.d(t,"processTweens",function(){return U.c}),n.d(t,"Tweenable",function(){return U.a}),n.d(t,"tween",function(){return U.d}),n.d(t,"interpolate",function(){return q}),n.d(t,"Scene",function(){return Q}),n.d(t,"setBezierFunction",function(){return L}),n.d(t,"unsetBezierFunction",function(){return W}),U.a.filters.token=R}])})},{}],2:[function(a,b,c){var d=a("./shape"),e=a("./utils"),f=function c(a,b){this._pathTemplate="M 50,50 m 0,-{radius} a {radius},{radius} 0 1 1 0,{2radius} a {radius},{radius} 0 1 1 0,-{2radius}",this.containerAspectRatio=1,d.apply(this,arguments)};f.prototype=new d,f.prototype.constructor=f,f.prototype._pathString=function b(a){var c=a.strokeWidth;a.trailWidth&&a.trailWidth>a.strokeWidth&&(c=a.trailWidth);var d=50-c/2;return e.render(this._pathTemplate,{radius:d,"2radius":2*d})},f.prototype._trailString=function b(a){return this._pathString(a)},b.exports=f},{"./shape":7,"./utils":9}],3:[function(a,b,c){var d=a("./shape"),e=a("./utils"),f=function c(a,b){this._pathTemplate=b.vertical?"M {center},100 L {center},0":"M 0,{center} L 100,{center}",d.apply(this,arguments)};f.prototype=new d,f.prototype.constructor=f,f.prototype._initializeSvg=function c(a,b){var d=b.vertical?"0 0 "+b.strokeWidth+" 100":"0 0 100 "+b.strokeWidth;a.setAttribute("viewBox",d),a.setAttribute("preserveAspectRatio","none")},f.prototype._pathString=function b(a){return e.render(this._pathTemplate,{center:a.strokeWidth/2})},f.prototype._trailString=function b(a){return this._pathString(a)},b.exports=f},{"./shape":7,"./utils":9}],4:[function(a,b,c){b.exports={Line:a("./line"),Circle:a("./circle"),SemiCircle:a("./semicircle"),Square:a("./square"),Path:a("./path"),Shape:a("./shape"),utils:a("./utils")}},{"./circle":2,"./line":3,"./path":5,"./semicircle":6,"./shape":7,"./square":8,"./utils":9}],5:[function(a,b,c){var d=a("shifty"),e=a("./utils"),f=d.Tweenable,g={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},h=function c(a,b){if(!(this instanceof c))throw new Error("Constructor was called without new keyword");b=e.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},b);var d;d=e.isString(a)?document.querySelector(a):a,this.path=d,this._opts=b,this._tweenable=null;var f=this.path.getTotalLength();this.path.style.strokeDasharray=f+" "+f,this.set(0)};h.prototype.value=function a(){var b=this._getComputedDashOffset(),c=this.path.getTotalLength(),d=1-b/c;return parseFloat(d.toFixed(6),10)},h.prototype.set=function b(a){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(a);var c=this._opts.step;if(e.isFunction(c)){var d=this._easing(this._opts.easing),f=this._calculateTo(a,d),g=this._opts.shape||this;c(f,g,this._opts.attachment)}},h.prototype.stop=function a(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},h.prototype.animate=function d(a,b,c){b=b||{},e.isFunction(b)&&(c=b,b={});var g=e.extend({},b),h=e.extend({},this._opts);b=e.extend(h,b);var i=this._easing(b.easing),j=this._resolveFromAndTo(a,i,g);this.stop(),this.path.getBoundingClientRect();var k=this._getComputedDashOffset(),l=this._progressToOffset(a),m=this;this._tweenable=new f,this._tweenable.tween({from:e.extend({offset:k},j.from),to:e.extend({offset:l},j.to),duration:b.duration,delay:b.delay,easing:i,step:function(a){m.path.style.strokeDashoffset=a.offset;var c=b.shape||m;b.step(a,c,b.attachment)}}).then(function(a){e.isFunction(c)&&c()}).catch(function(a){throw console.error("Error in tweening:",a),a})},h.prototype._getComputedDashOffset=function a(){var b=window.getComputedStyle(this.path,null);return parseFloat(b.getPropertyValue("stroke-dashoffset"),10)},h.prototype._progressToOffset=function b(a){var c=this.path.getTotalLength();return c-a*c},h.prototype._resolveFromAndTo=function d(a,b,c){return c.from&&c.to?{from:c.from,to:c.to}:{from:this._calculateFrom(b),to:this._calculateTo(a,b)}},h.prototype._calculateFrom=function b(a){return d.interpolate(this._opts.from,this._opts.to,this.value(),a)},h.prototype._calculateTo=function c(a,b){return d.interpolate(this._opts.from,this._opts.to,a,b)},h.prototype._stopTween=function a(){null!==this._tweenable&&(this._tweenable.stop(!0),this._tweenable=null)},h.prototype._easing=function b(a){return g.hasOwnProperty(a)?g[a]:a},b.exports=h},{"./utils":9,shifty:1}],6:[function(a,b,c){var d=a("./shape"),e=a("./circle"),f=a("./utils"),g=function c(a,b){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0",this.containerAspectRatio=2,d.apply(this,arguments)};g.prototype=new d,g.prototype.constructor=g,g.prototype._initializeSvg=function c(a,b){a.setAttribute("viewBox","0 0 100 50")},g.prototype._initializeTextContainer=function d(a,b,c){a.text.style&&(c.style.top="auto",c.style.bottom="0",a.text.alignToBottom?f.setStyle(c,"transform","translate(-50%, 0)"):f.setStyle(c,"transform","translate(-50%, 50%)"))},g.prototype._pathString=e.prototype._pathString,g.prototype._trailString=e.prototype._trailString,b.exports=g},{"./circle":2,"./shape":7,"./utils":9}],7:[function(a,b,c){var d=a("./path"),e=a("./utils"),f="Object is destroyed",g=function c(a,b){if(!(this instanceof c))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=e.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:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},b,!0),e.isObject(b)&&void 0!==b.svgStyle&&(this._opts.svgStyle=b.svgStyle),e.isObject(b)&&e.isObject(b.text)&&void 0!==b.text.style&&(this._opts.text.style=b.text.style);var f,g=this._createSvgView(this._opts);if(f=e.isString(a)?document.querySelector(a):a,!f)throw new Error("Container does not exist: "+a);this._container=f,this._container.appendChild(g.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&e.setStyles(g.svg,this._opts.svgStyle),this.svg=g.svg,this.path=g.path,this.trail=g.trail,this.text=null;var h=e.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new d(g.path,h),e.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};g.prototype.animate=function d(a,b,c){if(null===this._progressPath)throw new Error(f);this._progressPath.animate(a,b,c)},g.prototype.stop=function a(){if(null===this._progressPath)throw new Error(f);void 0===this._progressPath||this._progressPath.stop()},g.prototype.pause=function a(){if(null===this._progressPath)throw new Error(f);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.pause()},g.prototype.resume=function a(){if(null===this._progressPath)throw new Error(f);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.resume()},g.prototype.destroy=function a(){if(null===this._progressPath)throw new Error(f);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null,null!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},g.prototype.set=function b(a){if(null===this._progressPath)throw new Error(f);this._progressPath.set(a)},g.prototype.value=function a(){if(null===this._progressPath)throw new Error(f);return void 0===this._progressPath?0:this._progressPath.value()},g.prototype.setText=function b(a){if(null===this._progressPath)throw new Error(f);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),e.isObject(a)?(e.removeChildren(this.text),this.text.appendChild(a)):this.text.innerHTML=a},g.prototype._createSvgView=function b(a){var c=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(c,a);var d=null;(a.trailColor||a.trailWidth)&&(d=this._createTrail(a),c.appendChild(d));var e=this._createPath(a);return c.appendChild(e),{svg:c,path:e,trail:d}},g.prototype._initializeSvg=function c(a,b){a.setAttribute("viewBox","0 0 100 100")},g.prototype._createPath=function b(a){var c=this._pathString(a);return this._createPathElement(c,a)},g.prototype._createTrail=function b(a){var c=this._trailString(a),d=e.extend({},a);return d.trailColor||(d.trailColor="#eee"),d.trailWidth||(d.trailWidth=d.strokeWidth),d.color=d.trailColor,d.strokeWidth=d.trailWidth,d.fill=null,this._createPathElement(c,d)},g.prototype._createPathElement=function c(a,b){var d=document.createElementNS("http://www.w3.org/2000/svg","path");return d.setAttribute("d",a),d.setAttribute("stroke",b.color),d.setAttribute("stroke-width",b.strokeWidth),b.fill?d.setAttribute("fill",b.fill):d.setAttribute("fill-opacity","0"),d},g.prototype._createTextContainer=function c(a,b){var d=document.createElement("div");d.className=a.text.className;var f=a.text.style;return f&&(a.text.autoStyleContainer&&(b.style.position="relative"),e.setStyles(d,f),!f.color&&(d.style.color=a.color)),this._initializeTextContainer(a,b,d),d},g.prototype._initializeTextContainer=function(a,b,c){},g.prototype._pathString=function b(a){throw new Error("Override this function for each progress bar")},g.prototype._trailString=function b(a){throw new Error("Override this function for each progress bar")},g.prototype._warnContainerAspectRatio=function b(a){if(this.containerAspectRatio){var c=window.getComputedStyle(a,null),d=parseFloat(c.getPropertyValue("width"),10),f=parseFloat(c.getPropertyValue("height"),10);e.floatEquals(this.containerAspectRatio,d/f)||(console.warn("Incorrect aspect ratio of container","#"+a.id,"detected:",c.getPropertyValue("width")+"(width)","/",c.getPropertyValue("height")+"(height)","=",d/f),console.warn("Aspect ratio of should be",this.containerAspectRatio))}},b.exports=g},{"./path":5,"./utils":9}],8:[function(a,b,c){var d=a("./shape"),e=a("./utils"),f=function c(a,b){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}",d.apply(this,arguments)};f.prototype=new d,f.prototype.constructor=f,f.prototype._pathString=function b(a){var c=100-a.strokeWidth/2;return e.render(this._pathTemplate,{width:c,strokeWidth:a.strokeWidth,halfOfStrokeWidth:a.strokeWidth/2})},f.prototype._trailString=function b(a){var c=100-a.strokeWidth/2;return e.render(this._trailTemplate,{width:c,strokeWidth:a.strokeWidth,halfOfStrokeWidth:a.strokeWidth/2,startMargin:a.strokeWidth/2-a.trailWidth/2})},b.exports=f},{"./shape":7,"./utils":9}],9:[function(a,b,c){function d(a,b,c){for(var e in a=a||{},b=b||{},c=c||!1,b)if(b.hasOwnProperty(e)){var f=a[e],g=b[e];a[e]=c&&l(f)&&l(g)?d(f,g,c):g}return a}function e(a,b){var c=a;for(var d in b)if(b.hasOwnProperty(d)){var e=b[d],f="\\{"+d+"\\}",g=new RegExp(f,"g");c=c.replace(g,e)}return c}function f(a,b,c){for(var d,e=a.style,f=0;f<p.length;++f)d=p[f],e[d+h(b)]=c;e[b]=c}function g(a,b){m(b,function(b,c){null===b||void 0===b||(l(b)&&!0===b.prefix?f(a,c,b.value):a.style[c]=b)})}function h(a){return a.charAt(0).toUpperCase()+a.slice(1)}function i(a){return"string"==typeof a||a instanceof String}function j(a){return"function"==typeof a}function k(a){return"[object Array]"===Object.prototype.toString.call(a)}function l(a){if(k(a))return!1;var b=typeof a;return"object"==b&&!!a}function m(a,b){for(var c in a)if(a.hasOwnProperty(c)){var d=a[c];b(d,c)}}function n(c,a){return Math.abs(c-a)<q}function o(a){for(;a.firstChild;)a.removeChild(a.firstChild)}var p=["Webkit","Moz","O","ms"],q=.001;b.exports={extend:d,render:e,setStyle:f,setStyles:g,capitalize:h,isString:i,isFunction:j,isObject:l,forEachObject:m,floatEquals:n,removeChildren:o}},{}]},{},[4])(4)});