Socket
Socket
Sign inDemoInstall

rekapi

Package Overview
Dependencies
3
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.0 to 2.2.1

2

dist/rekapi.js

@@ -1,3 +0,3 @@

/*! 2.2.0 */
/*! 2.2.1 */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("shifty")):"function"==typeof define&&define.amd?define("rekapi",["shifty"],t):"object"==typeof exports?exports.rekapi=t(require("shifty")):e.rekapi=t(e.shifty)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/assets/",t(t.s=10)}([function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Rekapi=t.rendererBootstrappers=t.updateToCurrentMillisecond=t.updateToMillisecond=t.calculateLoopPosition=t.updatePlayState=t.isAnimationComplete=t.calculateTimeSinceStart=t.determineCurrentLoopIteration=t.invalidateAnimationLength=t.fireEvent=t.DEFAULT_EASING=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(2),u=n(3),c=n(1),s=(t.DEFAULT_EASING="linear",t.fireEvent=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e._events[t].forEach(function(t){return t(e,n)})}),l=t.invalidateAnimationLength=function(e){return e._animationLengthValid=!1},f=t.determineCurrentLoopIteration=function(e,t){var n=e.getAnimationLength();return 0===n?t:Math.floor(t/n)},p=t.calculateTimeSinceStart=function(e){return a.Tweenable.now()-e._loopTimestamp},h=t.isAnimationComplete=function(e,t){return t>=e._timesToIterate&&-1!==e._timesToIterate},d=t.updatePlayState=function(e,t){h(e,t)&&(e.stop(),s(e,"animationComplete"))},y=t.calculateLoopPosition=function(e,t,n){var r=e.getAnimationLength();return 0===r?0:h(e,n)?r:t%r},v=t.updateToMillisecond=function(e,t){var n=f(e,t),r=y(e,t,n);e._loopPosition=r;var o=[];n>e._latestIteration&&(s(e,"animationLooped"),e._actors.forEach(function(e){var t=e._keyframeProperties,n=Object.keys(t).reduce(function(e,n){var r=t[n];return"function"===r.name&&e.push(r),e},[]),r=n[n.length-1];r&&!r.hasFired&&r.invoke(),o.push.apply(o,i(n))})),e._latestIteration=n,e.update(r,!0),d(e,n),o.forEach(function(e){e.hasFired=!1})},m=t.updateToCurrentMillisecond=function(e){return v(e,p(e))},_=function(t){return t._loopId=t._scheduleUpdate.call?t._scheduleUpdate.call(e,t._updateFn,1e3/60):setTimeout(t._updateFn,1e3/60)},g=function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||e.mozCancelRequestAnimationFrame&&e.mozRequestAnimationFrame||e.setTimeout},b=function(){return e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.oCancelAnimationFrame||e.msCancelAnimationFrame||e.mozCancelRequestAnimationFrame||e.clearTimeout},k=function(t){return t._cancelUpdate.call?t._cancelUpdate.call(e,t._loopId):clearTimeout(t._loopId)},P="stopped",w=t.rendererBootstrappers=[];t.Rekapi=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),this.context=n,this._actors=[],this._playState=P,this.sort=null,this._events={animationComplete:[],playStateChange:[],play:[],pause:[],stop:[],beforeUpdate:[],afterUpdate:[],addActor:[],removeActor:[],beforeAddKeyframeProperty:[],addKeyframeProperty:[],removeKeyframeProperty:[],removeKeyframePropertyComplete:[],beforeRemoveKeyframeProperty:[],addKeyframePropertyTrack:[],removeKeyframePropertyTrack:[],timelineModified:[],animationLooped:[]},this._timesToIterate=-1,this._animationLength=0,this._animationLengthValid=!1,this._loopId=null,this._loopTimestamp=null,this._pausedAtTime=null,this._lastUpdatedMillisecond=0,this._latestIteration=0,this._loopPosition=null,this._scheduleUpdate=g(),this._cancelUpdate=b(),this._updateFn=function(){_(t),m(t)},this.renderers=w.map(function(e){return e(t)}).filter(function(e){return e})}return o(e,[{key:"addActor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e instanceof u.Actor?e:new u.Actor(e);return~this._actors.indexOf(t)?t:(t.context=t.context||this.context,t.rekapi=this,this._actors.push(t),l(this),t.setup(),s(this,"addActor",t),t)}},{key:"getActor",value:function(e){return this._actors.filter(function(t){return t.id===e})[0]}},{key:"getActorIds",value:function(){return this._actors.map(function(e){return e.id})}},{key:"getAllActors",value:function(){return this._actors.slice()}},{key:"getActorCount",value:function(){return this._actors.length}},{key:"removeActor",value:function(e){return this._actors=(0,c.without)(this._actors,e),delete e.rekapi,e.teardown(),l(this),s(this,"removeActor",e),e}},{key:"removeAllActors",value:function(){var e=this;return this.getAllActors().map(function(t){return e.removeActor(t)})}},{key:"play",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return k(this),"paused"===this._playState?this._loopTimestamp+=a.Tweenable.now()-this._pausedAtTime:this._loopTimestamp=a.Tweenable.now(),this._timesToIterate=e,this._playState="playing",_(this),s(this,"playStateChange"),s(this,"play"),this}},{key:"playFrom",value:function(e,t){return this.play(t),this._loopTimestamp=a.Tweenable.now()-e,this._actors.forEach(function(t){return t._resetFnKeyframesFromMillisecond(e)}),this}},{key:"playFromCurrent",value:function(e){return this.playFrom(this._lastUpdatedMillisecond,e)}},{key:"pause",value:function(){return"paused"===this._playState?this:(this._playState="paused",k(this),this._pausedAtTime=a.Tweenable.now(),s(this,"playStateChange"),s(this,"pause"),this)}},{key:"stop",value:function(){return this._playState=P,k(this),this._actors.forEach(function(e){return e._resetFnKeyframesFromMillisecond(0)}),s(this,"playStateChange"),s(this,"stop"),this}},{key:"isPlaying",value:function(){return"playing"===this._playState}},{key:"isPaused",value:function(){return"paused"===this._playState}},{key:"isStopped",value:function(){return this._playState===P}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._lastUpdatedMillisecond,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s(this,"beforeUpdate");var n=this.sort;return(n?this._actors.sort(function(e,t){return n(e)-n(t)}):this._actors).forEach(function(n){n._updateState(e,t),n.wasActive&&n.render(n.context,n.get())}),this._lastUpdatedMillisecond=e,s(this,"afterUpdate"),this}},{key:"getLastPositionUpdated",value:function(){return this._lastUpdatedMillisecond/this.getAnimationLength()}},{key:"getLastMillisecondUpdated",value:function(){return this._lastUpdatedMillisecond}},{key:"getAnimationLength",value:function(){return this._animationLengthValid||(this._animationLength=Math.max.apply(Math,this._actors.map(function(e){return e.getEnd()})),this._animationLengthValid=!0),this._animationLength}},{key:"on",value:function(e,t){return this._events[e]?(this._events[e].push(t),this):this}},{key:"trigger",value:function(e,t){return s(this,e,t),this}},{key:"off",value:function(e,t){return this._events[e]?(this._events[e]=t?(0,c.without)(this._events[e],t):[],this):this}},{key:"exportTimeline",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.withId,n=void 0!==t&&t,r={duration:this.getAnimationLength(),actors:this._actors.map(function(e){return e.exportTimeline({withId:n})})},i=a.Tweenable.formulas,o=Object.keys(i).filter(function(e){return"number"==typeof i[e].x1}),u=["displayName","x1","y1","x2","y2"];return r.curves=o.reduce(function(e,t){var n=i[t];return e[n.displayName]=(0,c.pick)(n,u),e},{}),r}},{key:"importTimeline",value:function(e){var t=this;(0,c.each)(e.curves,function(e,t){return(0,a.setBezierFunction)(t,e.x1,e.y1,e.x2,e.y2)}),e.actors.forEach(function(e){var n=new u.Actor;n.importTimeline(e),t.addActor(n)})}},{key:"getEventNames",value:function(){return Object.keys(this._events)}},{key:"getRendererInstance",value:function(e){return this.renderers.filter(function(t){return t instanceof e})[0]}},{key:"moveActorToPosition",value:function(e,t){return t<this._actors.length&&t>-1&&(this._actors=(0,c.without)(this._actors,e),this._actors.splice(t,0,e)),this}}]),e}()}).call(t,n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(t.clone=function(e){return Object.assign({},e)},t.difference=function(e,t){return e.filter(function(e){return!~t.indexOf(e)})},t.each=function(e,t){return Object.keys(e).forEach(function(n){return t(e[n],n)})},t.intersection=function(e,t){return e.filter(function(e){return~t.indexOf(e)})},t.pick=function(e,t){return t.reduce(function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t},{})},t.reject=function(e,t){return e.filter(function(e){return!t(e)})},t.uniq=function(e){return e.reduce(function(e,t){return~e.indexOf(t)||e.push(t),e},[])},0);t.uniqueId=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")+r++},t.without=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.filter(function(e){return!~n.indexOf(e)})}},function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Actor=void 0;var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(2),s=n(4),l=n(0),f=n(1),p=n(8),h=function(e){return e&&e.__esModule?e:{default:e}}(p),d=function(){},y=function(e){return e.millisecond},v=function(e,t,n){return e.rekapi&&(0,l.fireEvent)(e.rekapi,t,n)},m=function(e,t){var n=e._timelinePropertyCache,r=(0,h.default)(n,{_millisecond:t},function(e){return e._millisecond});if(n[r])return n[r]._millisecond===t?n[r]:r>=1?n[r-1]:n[0]},_=function(e,t){return(0,h.default)(e,{millisecond:t},y)},g=function(e,t){var n={};return(0,f.each)(e._propertyTracks,function(e,r){var i=_(e,t);n[r]=e[i]&&e[i].millisecond===t?e[i]:i>=1?e[i-1]:e[0]}),n},b=function(e,t){var n=_(e,t);return e[n]&&e[n].millisecond===t?n:-1},k=function(e){return e._timelinePropertyCacheValid=!1},P=function(e){if(!e._timelinePropertyCacheValid){e._timelinePropertyCache=[],e._timelineFunctionCache=[];var t=e._keyframeProperties,n=e._timelineFunctionCache,r=e._timelinePropertyCache,i=Object.keys(t).map(function(e){return t[e]}).sort(function(e,t){return e.millisecond-t.millisecond}),o=g(e,0);o._millisecond=0,r.push(o),i.forEach(function(e){e.millisecond!==o._millisecond&&(o=(0,f.clone)(o),o._millisecond=e.millisecond,r.push(o)),o[e.name]=e,"function"===e.name&&n.push(e)}),e._timelinePropertyCacheValid=!0}},w=function(e){var t=e._propertyTracks;Object.keys(t).forEach(function(n){t[n].length||(delete t[n],v(e,"removeKeyframePropertyTrack",n))})},A=function(e){(0,f.each)(e._propertyTracks,function(t,n){t=t.sort(function(e,t){return e.millisecond-t.millisecond}),t.forEach(function(e,n){return e.linkToNext(t[n+1])}),e._propertyTracks[n]=t})},T=function(e){A(e),k(e),e.rekapi&&(0,l.invalidateAnimationLength)(e.rekapi),v(e,"timelineModified")},O=t.Actor=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return Object.assign(n,{_propertyTracks:{},_timelinePropertyCache:[],_timelineFunctionCache:[],_timelinePropertyCacheValid:!1,_keyframeProperties:{},id:(0,f.uniqueId)(),context:e.context,setup:e.setup||d,render:e.render||d,teardown:e.teardown||d,wasActive:!0}),n}return a(t,e),u(t,[{key:"keyframe",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.DEFAULT_EASING;return t instanceof Function&&(t={function:t}),(0,f.each)(t,function(t,i){return n.addKeyframeProperty(new s.KeyframeProperty(e,i,t,"string"==typeof r?r:r[i]||l.DEFAULT_EASING))}),this.rekapi&&(0,l.invalidateAnimationLength)(this.rekapi),k(this),v(this,"timelineModified"),this}},{key:"hasKeyframeAt",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=this._propertyTracks;if(n&&!r[n])return!1;var i=n?(0,f.pick)(r,[n]):r;return Object.keys(i).some(function(n){return i.hasOwnProperty(n)&&!!t.getKeyframeProperty(n,e)})}},{key:"copyKeyframe",value:function(e,t){var n=this,r={},i={};return(0,f.each)(this._propertyTracks,function(t,o){var a=n.getKeyframeProperty(o,e);a&&(r[o]=a.value,i[o]=a.easing)}),this.keyframe(t,r,i),this}},{key:"moveKeyframe",value:function(e,t){return!(!this.hasKeyframeAt(e)||this.hasKeyframeAt(t))&&((0,f.each)(this._propertyTracks,function(n,r){var i=b(n,e);-1!==i&&(n[i].millisecond=t)}),T(this),!0)}},{key:"modifyKeyframe",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,f.each)(this._propertyTracks,function(i,o){var a=n.getKeyframeProperty(o,e);a?a.modifyWith({value:t[o],easing:r[o]}):t[o]&&n.addKeyframeProperty(new s.KeyframeProperty(e,o,t[o],r[o]))}),T(this),this}},{key:"removeKeyframe",value:function(e){var t=this;return(0,f.each)(this._propertyTracks,function(n,r){var i=b(n,e);if(-1!==i){var o=n[i];t._deleteKeyframePropertyAt(n,i),o.detach()}}),w(this),T(this),v(this,"timelineModified"),this}},{key:"removeAllKeyframes",value:function(){return(0,f.each)(this._propertyTracks,function(e){return e.length=0}),(0,f.each)(this._keyframeProperties,function(e){return e.detach()}),w(this),this._keyframeProperties={},this.removeKeyframe(0)}},{key:"getKeyframeProperty",value:function(e,t){var n=this._propertyTracks[e];return n[b(n,t)]}},{key:"modifyKeyframeProperty",value:function(e,t,n){var r=this.getKeyframeProperty(e,t);if(r){if("millisecond"in n&&this.hasKeyframeAt(n.millisecond,e))throw new Error("Tried to move "+e+" to "+n.millisecond+"ms, but a keyframe property already exists there");r.modifyWith(n),T(this)}return this}},{key:"removeKeyframeProperty",value:function(e,t){var n=this._propertyTracks;if(n[e]){var r=n[e],i=b(r,t),o=r[i];return v(this,"beforeRemoveKeyframeProperty",o),this._deleteKeyframePropertyAt(r,i),o.detach(),w(this),T(this),v(this,"removeKeyframePropertyComplete",o),o}}},{key:"getTrackNames",value:function(){return Object.keys(this._propertyTracks)}},{key:"getPropertiesInTrack",value:function(e){return(this._propertyTracks[e]||[]).slice(0)}},{key:"getStart",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this._propertyTracks,n=[];if(t.hasOwnProperty(e)){var r=t[e][0];r&&n.push(r.millisecond)}else(0,f.each)(t,function(e){e.length&&n.push(e[0].millisecond)});return n.length>0?Math.min.apply(Math,n):0}},{key:"getEnd",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=[0],n=e?r({},e,this._propertyTracks[e]):this._propertyTracks;return(0,f.each)(n,function(e){e.length&&t.push(e[e.length-1].millisecond)}),Math.max.apply(Math,t)}},{key:"getLength",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return this.getEnd(e)-this.getStart(e)}},{key:"wait",value:function(e){var t=this.getEnd();if(e<=t)return this;var n=g(this,this.getEnd()),r={},i={};return(0,f.each)(n,function(e,t){r[t]=e.value,i[t]=e.easing}),this.modifyKeyframe(t,r,i),this.keyframe(e,r,i),this}},{key:"_insertKeyframePropertyAt",value:function(e,t,n){t.splice(n,0,e)}},{key:"_deleteKeyframePropertyAt",value:function(e,t){e.splice(t,1)}},{key:"addKeyframeProperty",value:function(e){this.rekapi&&v(this,"beforeAddKeyframeProperty",e),e.actor=this,this._keyframeProperties[e.id]=e;var t=e.name,n=this._propertyTracks,r=this.rekapi;if(this._propertyTracks[t]){var i=_(n[t],e.millisecond);if(n[t][i]){var o=e.millisecond,a=n[t][i].millisecond;if(a===o)throw new Error("Cannot add duplicate "+t+" keyframe property @ "+o+"ms");r&&r._warnOnOutOfOrderKeyframes&&console.warn(new Error("Added a keyframe property before end of "+t+" track @ "+o+"ms (< "+a+"ms)"))}this._insertKeyframePropertyAt(e,n[t],i),T(this)}else n[t]=[e],r&&v(this,"addKeyframePropertyTrack",e);return r&&v(this,"addKeyframeProperty",e),this}},{key:"setActive",value:function(e,t){var n=!!this._propertyTracks._active,r=n&&this.getKeyframeProperty("_active",e);return r?r.value=t:this.addKeyframeProperty(new s.KeyframeProperty(e,"_active",t)),this}},{key:"_updateState",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getStart(),i=this.getEnd(),o={};e=Math.min(i,e),P(this);var a=(0,f.clone)(m(this,e));if(delete a._millisecond,a._active&&e>=a._active.millisecond){if(this.wasActive=a._active.getValueAt(e),!this.wasActive)return this}else this.wasActive=!0;return r===i?(0,f.each)(a,function(t,n){if(t.shouldInvokeForMillisecond(e))return t.invoke(),void(t.hasFired=!1);o[n]=t.value}):(0,f.each)(a,function(n,r){if(t._beforeKeyframePropertyInterpolate!==d&&t._beforeKeyframePropertyInterpolate(n),n.shouldInvokeForMillisecond(e))return void n.invoke();o[r]=n.getValueAt(e),t._afterKeyframePropertyInterpolate!==d&&t._afterKeyframePropertyInterpolate(n,o)}),this.set(o),n||this._resetFnKeyframesFromMillisecond(e),this}},{key:"_resetFnKeyframesFromMillisecond",value:function(e){for(var t=this._timelineFunctionCache,n=t.length,r=(0,h.default)(t,{millisecond:e},y);r<n;)t[r++].hasFired=!1}},{key:"exportTimeline",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.withId,n=void 0!==t&&t,r={start:this.getStart(),end:this.getEnd(),trackNames:this.getTrackNames(),propertyTracks:{}};return n&&(r.id=this.id),(0,f.each)(this._propertyTracks,function(e,t){var i=[];e.forEach(function(e){i.push(e.exportPropertyData({withId:n}))}),r.propertyTracks[t]=i}),r}},{key:"importTimeline",value:function(e){var t=this;(0,f.each)(e.propertyTracks,function(e){e.forEach(function(e){t.keyframe(e.millisecond,r({},e.name,e.value),e.easing)})})}}]),t}(c.Tweenable);Object.assign(O.prototype,{_beforeKeyframePropertyInterpolate:d,_afterKeyframePropertyInterpolate:d})},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.KeyframeProperty=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(2),u=n(0),c=n(1),s="linear";t.KeyframeProperty=function(){function e(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:s;i(this,e),this.id=(0,c.uniqueId)("keyframeProperty_"),this.hasFired=null,this.nextProperty=null,Object.assign(this,{millisecond:t,name:n,value:r,easing:o})}return o(e,[{key:"modifyWith",value:function(e){Object.assign(this,e)}},{key:"getValueAt",value:function(e){var t=this.nextProperty;if("boolean"==typeof this.value)return this.value;if(t){var n=Math.min(Math.max(e,this.millisecond),t.millisecond),i=this.name,o=t.millisecond-this.millisecond,u=(n-this.millisecond)/o;return(0,a.interpolate)(r({},i,this.value),r({},i,t.value),u,t.easing)[i]}return this.value}},{key:"linkToNext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.nextProperty=e}},{key:"detach",value:function(){var e=this.actor;return e&&e.rekapi&&((0,u.fireEvent)(e.rekapi,"removeKeyframeProperty",this),delete e._keyframeProperties[this.id],this.actor=null),this}},{key:"exportPropertyData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.withId,n=void 0!==t&&t,r=["millisecond","name","value","easing"];return n&&r.push("id"),(0,c.pick)(this,r)}},{key:"shouldInvokeForMillisecond",value:function(e){return e>=this.millisecond&&"function"===this.name&&!this.hasFired}},{key:"invoke",value:function(){var e=this.actor.rekapi._loopPosition-this.millisecond,t=this.value(this.actor,e);return this.hasFired=!0,t}}]),e}()},function(e,t,n){"use strict";var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":i(window))&&(r=window)}e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasRenderer=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=(function(e){e&&e.__esModule}(o),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return void 0!==n&&(e[t]=n,e.style[t]=n+"px"),e[t]}),u=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;r(this,e),Object.assign(this,{rekapi:t,canvasContext:i||t.context}),t.on("beforeUpdate",function(){return n.clear()})}return i(e,[{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return a(this.canvasContext.canvas,"height",e)}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return a(this.canvasContext.canvas,"width",e)}},{key:"clear",value:function(){return this.canvasContext.clearRect(0,0,this.width(),this.height()),this}}]),e}();t.CanvasRenderer=u,o.rendererBootstrappers.push(function(e){if("undefined"!=typeof CanvasRenderingContext2D&&e.context instanceof CanvasRenderingContext2D)return new u(e)})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.DOMRenderer=t.getActorCSS=t.canOptimizeAnyKeyframeProperties=t.generateCSSClass=t.generateCSSAnimationProperties=t.generateAnimationIterationProperty=t.generateAnimationNameProperty=t.generateBoilerplatedKeyframes=t.generateActorKeyframes=t.canOptimizeKeyframeProperty=t.simulateTrailingWait=t.simulateLeadingWait=t.generateActorTrackSegment=t.serializeActorStep=t.combineTransformProperties=t.generateOptimizedKeyframeSegment=t.applyVendorBoilerplates=t.applyVendorPropertyPrefixes=t.VENDOR_TOKEN=t.TRANSFORM_TOKEN=t.transformFunctions=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=n(2),s=n(0),l=(function(e){e&&e.__esModule}(s),n(1)),f=c.Tweenable.now,p=["transform","webkitTransform","MozTransform","oTransform","msTransform"],h=t.transformFunctions=["translateX","translateY","translateZ","scale","scaleX","scaleY","perspective","rotate","rotateX","rotateY","rotateZ","skewX","skewY"],d=t.TRANSFORM_TOKEN="TRANSFORM",y=t.VENDOR_TOKEN="VENDOR",v=new RegExp(d,"g"),m=new RegExp(y,"g"),_={microsoft:"-ms-",mozilla:"-moz-",opera:"-o-",w3:"",webkit:"-webkit-"},g={linear:".25,.25,.75,.75",easeInQuad:".55,.085,.68,.53",easeInCubic:".55,.055,.675,.19",easeInQuart:".895,.03,.685,.22",easeInQuint:".755,.05,.855,.06",easeInSine:".47,0,.745,.715",easeInExpo:".95,.05,.795,.035",easeInCirc:".6,.04,.98, .335",easeOutQuad:".25,.46,.45,.94",easeOutCubic:".215,.61,.355,1",easeOutQuart:".165,.84,.44,1",easeOutQuint:".23,1,.32,1",easeOutSine:".39,.575,.565,1",easeOutExpo:".19,1,.22,1",easeOutCirc:".075,.82,.165,1",easeInOutQuad:".455,.03,.515,.955",easeInOutCubic:".645,.045,.355,1",easeInOutQuart:".77,0,.175,1",easeInOutQuint:".86,0.07,1",easeInOutSine:".445,.05,.55,.95",easeInOutExpo:"1,0,0,1",easeInOutCirc:".785,.135,.15,.86"},b=/3d\(/g,k=function(e){return e%1==0},P=function(){if("undefined"!=typeof document){var e=document.body.style;return"-webkit-animation"in e?"webkit":"-moz-animation"in e?"mozilla":"-ms-animation"in e?"microsoft":"-o-animation"in e?"opera":"animation"in e?"w3":""}}(),w=function(e){return"actor-"+e.id},A=function(e){var t=document.createElement("div");e.getAllActors().forEach(function(e){if(1===e.context.nodeType){var n=e.context,r=n.parentElement;r.replaceChild(t,n),r.replaceChild(n,t)}})},T=0,O=function(e,t){var n=document.createElement("style"),r="rekapi-"+T++;return n.id=r,n.innerHTML=t,document.head.appendChild(n),A(e),n},j=function(e,t,n){return e.style[t]=n},S=function(e){return~h.indexOf(e)},E=function(e,t){var n=[];return e.forEach(function(e){void 0!==t[e]&&n.push(e+"("+t[e]+")")}),n.join(" ")},x=function(e,t){return p.forEach(function(n){return j(e,n,t)})},C=function(e,t,n){var r=Object.keys(n),i=r.filter(S),o=(0,l.pick)(n,(0,l.reject)(r,S));i.length?x(t,E(e._transformOrder,(0,l.pick)(n,i))):n.transform&&x(t,n.transform),(0,l.each)(o,function(e,n){return j(t,n,e)})},K=function(e){var t=e.context,n=t.className.match(/\S+/g),r=(0,l.without)(n,w(e));t.className=r.join(" ")},M=function(e){if("transform"===e.name){var t=e.value,n=e.nextProperty;n&&t.match(b)&&(e.value=t.replace(b,"__THREED__"),n.value=n.value.replace(b,"__THREED__"))}},I=function(e,t){if("transform"===e.name){var n=e.value,r=e.nextProperty,i=e.name;r&&n.match("__THREED__")&&(e.value=n.replace("__THREED__","3d("),r.value=r.value.replace("__THREED__","3d("),t[i]=t[i].replace("__THREED__","3d("))}},F=function(e,t){var n=t.context;if(1===n.nodeType){var r=w(t);n.className.match(r)||(n.className+=" "+r),Object.assign(t,{render:C.bind(t,t),teardown:K.bind(t,t),_transformOrder:h.slice(0),_beforeKeyframePropertyInterpolate:M,_afterKeyframePropertyInterpolate:I})}},R=t.applyVendorPropertyPrefixes=function(e,t){return e.replace(m,_[t]).replace(v,_[t]+"transform")},L=t.applyVendorBoilerplates=function(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:["w3"]).map(function(n){return R("@"+_[n]+"keyframes "+t+"-keyframes {\n"+e+"\n}",n)}).join("\n")},N=t.generateOptimizedKeyframeSegment=function(e,t,n){var r="transform"===e.name?d:e.name,i=e.nextProperty,o=e.value,a=k(t)?t:t.toFixed(2),u=k(n)?n:n.toFixed(2),c=g[i.easing.split(" ")[0]];return" "+a+"% {"+r+":"+o+";"+y+"animation-timing-function: cubic-bezier("+c+");}\n "+u+"% {"+r+":"+i.value+";}"},U=t.combineTransformProperties=function(e,t){if(!Object.keys((0,l.pick)(e,h)).length)return e;var n=function(){var n=(0,l.clone)(e);return n[d]=t.reduce(function(e,t){return n.hasOwnProperty(t)&&(e+=" "+t+"("+n[t]+")",delete n[t]),e},"").slice(1),{v:n}}();return"object"===(void 0===n?"undefined":u(n))?n.v:void 0},D=t.serializeActorStep=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=U(t?i({},t,e.get()[t]):e.get(),e._transformOrder);return"{"+Object.keys(n).reduce(function(e,t){return""+e+("transform"===t?d:t)+":"+n[t]+";"},"")+"}"},z=t.generateActorTrackSegment=function(e,t,n,r,i){for(var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0,a=[],u=e.getLength(),c=0;c<t;c++){var s=i+c*n;e._updateState(s/100*u+r,!0);var l=D(e,o&&o.name);a.push(" "+ +s.toFixed(2)+"% "+l)}return a},V=function(e,t){return z(e,t+1,100/t,0,0).join("\n")},q=t.simulateLeadingWait=function(e,t,n){var r=e._propertyTracks[t][0];if(void 0!==r&&r.millisecond!==n)return z(e,1,1,r.millisecond,0,r).join("\n")},B=t.simulateTrailingWait=function(e,t,n,r){var i=e._propertyTracks[t].slice(-1),o=a(i,1),u=o[0];if(void 0!==u&&u.millisecond!==r)return z(e,1,1,n,100,u).join("\n")},W=function(e,t,n){return(e.millisecond-t)/n*100},H=function(e,t,n,r,i,o){return z(e,1,o-i,t,i,n)},$=function(e,t){return e.name===t.name&&e.value===t.value},Q=t.canOptimizeKeyframeProperty=function(e){return!!e.nextProperty&&(!!$(e,e.nextProperty)||e.nextProperty.easing.split(" ").every(function(e,t,n){return!(!g[e]||t>0&&n[t-1]!==e)}))},G=t.generateActorKeyframes=function(e,t,n){var r=[],i=e.getEnd(),o=e.getStart(),a=e.getLength(),u=q(e,n,o);u&&r.push(u);var c=!1;e._propertyTracks[n].forEach(function(n){var i=W(n,o,a),u=n.nextProperty,s=void 0,l=void 0,f=void 0;if(u){s=W(u,o,a);var p=s-i;l=Math.floor(p/100*t)||1,f=p/l}else s=100,l=1,f=1;var h=void 0;u&&$(n,u)?(h=H(e,o,n,0,i,s),c&&h.shift(),c=!1):Q(n)?(h=N(n,i,s),c&&(r[r.length-1]=r[r.length-1].split("\n")[0]),c=!0):(h=z(e,l,f,o,i,n),c&&h.shift(),h.length&&(h=h.join("\n")),c=!1),h.length&&r.push(h)});var s=B(e,n,o,i);return s&&r.push(s),r.join("\n")},X=t.generateBoilerplatedKeyframes=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return r?L(V(e,n),t,i):e.getTrackNames().map(function(r){return L(G(e,n,r),t+"-"+r,i)}).join("\n")},Y=t.generateAnimationNameProperty=function(e,t,n,r){var i=" "+n+"animation-name:";if(r)i+=" "+t+"-keyframes;";else{var o=e.getTrackNames();i=((0,l.intersection)(o,h).length?(0,l.difference)(o,h).concat("transform"):o).reduce(function(e,n){return e+" "+t+"-"+n+"-keyframes,"},i).replace(/.$/,";")}return i},Z=t.generateAnimationIterationProperty=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return" "+t+"animation-iteration-count: "+(void 0!==n?n:-1===e._timesToIterate?"infinite":e._timesToIterate)+";"},J=t.generateCSSAnimationProperties=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=_[n],u=e.getStart(),c=e.getEnd(),s=[Y(e,t,a,r)," "+a+"animation-duration: "+(c-u)+"ms;"," "+a+"animation-delay: "+u+"ms;"," "+a+"animation-fill-mode: forwards;"," "+a+"animation-timing-function: linear;",Z(e.rekapi,a,i)];return o&&s.push(" "+a+"transform-origin: 0 0;"),s.join("\n")},ee=t.generateCSSClass=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:["w3"],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;return"."+t+" {\n"+r.map(function(r){return J(e,t,r,n,i,o)}).join("\n")+"\n}"},te=t.canOptimizeAnyKeyframeProperties=function(e){return Object.keys(e._keyframeProperties).some(function(t){return Q(e._keyframeProperties[t])})&&!(0,l.intersection)(Object.keys(e._propertyTracks),h).length},ne=t.getActorCSS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.vendors,i=t.iterations,o=t.isCentered,a=n?e.rekapi.getActorCount()>1?n+"-"+e.id:n:w(e),u=Math.ceil(e.rekapi.getAnimationLength()/1e3*(t.fps||30)),c=!te(e);return[ee(e,a,c,r,i,o),X(e,a,u,c,r)].join("\n")},re=t.DOMRenderer=function(){function e(t){var n=this;r(this,e),Object.assign(this,{rekapi:t,_playTimestamp:null,_cachedCSS:null,_styleElement:null,_stopSetTimeoutHandle:null}),t.on("timelineModified",function(){return n._cachedCSS=null}),t.on("addActor",F)}return o(e,[{key:"canAnimateWithCSS",value:function(){return!!P}},{key:"play",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.isPlaying()&&this.stop(),this._styleElement=O(this.rekapi,this._cachedCSS||this.prerender.apply(this,arguments)),this._playTimestamp=f(),e){var t=e*this.rekapi.getAnimationLength();this._stopSetTimeoutHandle=setTimeout(this.stop.bind(this,!0),t+250)}(0,s.fireEvent)(this.rekapi,"play")}},{key:"stop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(this.isPlaying()){clearTimeout(this._stopSetTimeoutHandle),this._styleElement.innerHTML="",document.head.removeChild(this._styleElement),this._styleElement=null;var t=this.rekapi.getAnimationLength();this.rekapi.update(e?t:(f()-this._playTimestamp)%t),(0,s.fireEvent)(this.rekapi,"stop")}}},{key:"isPlaying",value:function(){return!!this._styleElement}},{key:"prerender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this._cachedCSS=this.getCss({vendors:[P],fps:t,iterations:e})}},{key:"setActorTransformOrder",value:function(e,t){var n=(0,l.reject)(t,S);if(n.length)throw"Unknown or unsupported transform functions: "+n.join(", ");return e._transformOrder=(0,l.uniq)(t),this.rekapi}},{key:"getCss",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[];return this.rekapi.getAllActors().forEach(function(n){1===n.context.nodeType&&t.push(ne(n,e))}),t.join("\n")}}]),e}();s.rendererBootstrappers.push(function(e){return 1===e.context.nodeType&&new re(e)})},function(e,t,n){"use strict";(function(e,n){function r(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function i(e){return function(t){return null==t?void 0:t[e]}}function o(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function a(e,t){return null==e?void 0:e[t]}function u(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function c(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function s(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function l(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function f(){this.__data__=Bt?Bt(null):{}}function p(e){return this.has(e)&&delete this.__data__[e]}function h(e){var t=this.__data__;if(Bt){var n=t[e];return n===Le?void 0:n}return Et.call(t,e)?t[e]:void 0}function d(e){var t=this.__data__;return Bt?void 0!==t[e]:Et.call(t,e)}function y(e,t){return this.__data__[e]=Bt&&void 0===t?Le:t,this}function v(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function m(){this.__data__=[]}function _(e){var t=this.__data__,n=N(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ft.call(t,n,1),!0)}function g(e){var t=this.__data__,n=N(t,e);return n<0?void 0:t[n][1]}function b(e){return N(this.__data__,e)>-1}function k(e,t){var n=this.__data__,r=N(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function w(){this.__data__={hash:new l,map:new(Dt||v),string:new l}}function A(e){return ie(this,e).delete(e)}function T(e){return ie(this,e).get(e)}function O(e){return ie(this,e).has(e)}function j(e,t){return ie(this,e).set(e,t),this}function S(e){var t=-1,n=e?e.length:0;for(this.__data__=new P;++t<n;)this.add(e[t])}function E(e){return this.__data__.set(e,Le),this}function x(e){return this.__data__.has(e)}function C(e){this.__data__=new v(e)}function K(){this.__data__=new v}function M(e){return this.__data__.delete(e)}function I(e){return this.__data__.get(e)}function F(e){return this.__data__.has(e)}function R(e,t){var n=this.__data__;if(n instanceof v){var r=n.__data__;if(!Dt||r.length<Fe-1)return r.push([e,t]),this;n=this.__data__=new P(r)}return n.set(e,t),this}function L(e,t){var n=tn(e)||be(e)?o(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!Et.call(e,a)||i&&("length"==a||ce(a,r))||n.push(a);return n}function N(e,t){for(var n=e.length;n--;)if(ge(e[n][0],t))return n;return-1}function U(e,t){t=se(t,e)?[t]:ee(t);for(var n=0,r=t.length;null!=e&&n<r;)e=e[ye(t[n++])];return n&&n==r?e:void 0}function D(e){return xt.call(e)}function z(e,t){return null!=e&&t in Object(e)}function V(e,t,n,r,i){return e===t||(null==e||null==t||!Te(e)&&!Oe(t)?e!==e&&t!==t:q(e,t,V,n,r,i))}function q(e,t,n,r,i,o){var a=tn(e),c=tn(t),s=Be,l=Be;a||(s=Jt(e),s=s==qe?Ze:s),c||(l=Jt(t),l=l==qe?Ze:l);var f=s==Ze&&!u(e),p=l==Ze&&!u(t),h=s==l;if(h&&!f)return o||(o=new C),a||nn(e)?te(e,t,n,r,i,o):ne(e,t,s,n,r,i,o);if(!(i&Ue)){var d=f&&Et.call(e,"__wrapped__"),y=p&&Et.call(t,"__wrapped__");if(d||y){var v=d?e.value():e,m=y?t.value():t;return o||(o=new C),n(v,m,r,i,o)}}return!!h&&(o||(o=new C),re(e,t,n,r,i,o))}function B(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var u=n[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<o;){u=n[i];var c=u[0],s=e[c],l=u[1];if(a&&u[2]){if(void 0===s&&!(c in e))return!1}else{var f=new C;if(r)var p=r(s,l,c,e,t,f);if(!(void 0===p?V(l,s,r,Ne|Ue,f):p))return!1}}return!0}function W(e){return!(!Te(e)||fe(e))&&(we(e)||u(e)?Ct:ft).test(ve(e))}function H(e){return Oe(e)&&Ae(e.length)&&!!ht[xt.call(e)]}function $(e){return"function"==typeof e?e:null==e?Ke:"object"==(void 0===e?"undefined":Ie(e))?tn(e)?X(e[0],e[1]):G(e):Me(e)}function Q(e){if(!pe(e))return Lt(e);var t=[];for(var n in Object(e))Et.call(e,n)&&"constructor"!=n&&t.push(n);return t}function G(e){var t=oe(e);return 1==t.length&&t[0][2]?de(t[0][0],t[0][1]):function(n){return n===e||B(n,e,t)}}function X(e,t){return se(e)&&he(t)?de(ye(e),t):function(n){var r=Ee(n,e);return void 0===r&&r===t?xe(n,e):V(t,r,void 0,Ne|Ue)}}function Y(e){return function(t){return U(t,e)}}function Z(e,t,n,r){t=n(t);for(var i=0,o=e?e.length:0,a=t!==t,u=null===t,c=je(t),s=void 0===t;i<o;){var l=Rt((i+o)/2),f=n(e[l]),p=void 0!==f,h=null===f,d=f===f,y=je(f);if(a)var v=r||d;else v=s?d&&(r||p):u?d&&p&&(r||!h):c?d&&p&&!h&&(r||!y):!h&&!y&&(r?f<=t:f<t);v?i=l+1:o=l}return Nt(o,Ve)}function J(e){if("string"==typeof e)return e;if(je(e))return Zt?Zt.call(e):"";var t=e+"";return"0"==t&&1/e==-De?"-0":t}function ee(e){return tn(e)?e:en(e)}function te(e,t,n,i,o,a){var u=o&Ue,c=e.length,s=t.length;if(c!=s&&!(u&&s>c))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var f=-1,p=!0,h=o&Ne?new S:void 0;for(a.set(e,t),a.set(t,e);++f<c;){var d=e[f],y=t[f];if(i)var v=u?i(y,d,f,t,e,a):i(d,y,f,e,t,a);if(void 0!==v){if(v)continue;p=!1;break}if(h){if(!r(t,function(e,t){if(!h.has(t)&&(d===e||n(d,e,i,o,a)))return h.add(t)})){p=!1;break}}else if(d!==y&&!n(d,y,i,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ne(e,t,n,r,i,o,a){switch(n){case it:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case rt:return!(e.byteLength!=t.byteLength||!r(new Mt(e),new Mt(t)));case We:case He:case Ye:return ge(+e,+t);case $e:return e.name==t.name&&e.message==t.message;case Je:case tt:return e==t+"";case Xe:var u=c;case et:var l=o&Ue;if(u||(u=s),e.size!=t.size&&!l)return!1;var f=a.get(e);if(f)return f==t;o|=Ne,a.set(e,t);var p=te(u(e),u(t),r,i,o,a);return a.delete(e),p;case nt:if(Yt)return Yt.call(e)==Yt.call(t)}return!1}function re(e,t,n,r,i,o){var a=i&Ue,u=Ce(e),c=u.length;if(c!=Ce(t).length&&!a)return!1;for(var s=c;s--;){var l=u[s];if(!(a?l in t:Et.call(t,l)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var p=!0;o.set(e,t),o.set(t,e);for(var h=a;++s<c;){l=u[s];var d=e[l],y=t[l];if(r)var v=a?r(y,d,l,t,e,o):r(d,y,l,e,t,o);if(!(void 0===v?d===y||n(d,y,r,i,o):v)){p=!1;break}h||(h="constructor"==l)}if(p&&!h){var m=e.constructor,_=t.constructor;m!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _)&&(p=!1)}return o.delete(e),o.delete(t),p}function ie(e,t){var n=e.__data__;return le(t)?n["string"==typeof t?"string":"hash"]:n.map}function oe(e){for(var t=Ce(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,he(i)]}return t}function ae(e,t){var n=a(e,t);return W(n)?n:void 0}function ue(e,t,n){t=se(t,e)?[t]:ee(t);for(var r,i=-1,o=t.length;++i<o;){var a=ye(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}if(r)return r;var o=e?e.length:0;return!!o&&Ae(o)&&ce(a,o)&&(tn(e)||be(e))}function ce(e,t){return!!(t=null==t?ze:t)&&("number"==typeof e||pt.test(e))&&e>-1&&e%1==0&&e<t}function se(e,t){if(tn(e))return!1;var n=void 0===e?"undefined":Ie(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!je(e))||(at.test(e)||!ot.test(e)||null!=t&&e in Object(t))}function le(e){var t=void 0===e?"undefined":Ie(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function fe(e){return!!jt&&jt in e}function pe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Tt)}function he(e){return e===e&&!Te(e)}function de(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function ye(e){if("string"==typeof e||je(e))return e;var t=e+"";return"0"==t&&1/e==-De?"-0":t}function ve(e){if(null!=e){try{return St.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function me(e,t,n){return Z(e,t,$(n,2))}function _e(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(Re);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(_e.Cache||P),n}function ge(e,t){return e===t||e!==e&&t!==t}function be(e){return Pe(e)&&Et.call(e,"callee")&&(!It.call(e,"callee")||xt.call(e)==qe)}function ke(e){return null!=e&&Ae(e.length)&&!we(e)}function Pe(e){return Oe(e)&&ke(e)}function we(e){var t=Te(e)?xt.call(e):"";return t==Qe||t==Ge}function Ae(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=ze}function Te(e){var t=void 0===e?"undefined":Ie(e);return!!e&&("object"==t||"function"==t)}function Oe(e){return!!e&&"object"==(void 0===e?"undefined":Ie(e))}function je(e){return"symbol"==(void 0===e?"undefined":Ie(e))||Oe(e)&&xt.call(e)==nt}function Se(e){return null==e?"":J(e)}function Ee(e,t,n){var r=null==e?void 0:U(e,t);return void 0===r?n:r}function xe(e,t){return null!=e&&ue(e,t,z)}function Ce(e){return ke(e)?L(e):Q(e)}function Ke(e){return e}function Me(e){return se(e)?i(ye(e)):Y(e)}var Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fe=200,Re="Expected a function",Le="__lodash_hash_undefined__",Ne=1,Ue=2,De=1/0,ze=9007199254740991,Ve=4294967294,qe="[object Arguments]",Be="[object Array]",We="[object Boolean]",He="[object Date]",$e="[object Error]",Qe="[object Function]",Ge="[object GeneratorFunction]",Xe="[object Map]",Ye="[object Number]",Ze="[object Object]",Je="[object RegExp]",et="[object Set]",tt="[object String]",nt="[object Symbol]",rt="[object ArrayBuffer]",it="[object DataView]",ot=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,at=/^\w*$/,ut=/^\./,ct=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,st=/[\\^$.*+?()[\]{}|]/g,lt=/\\(\\)?/g,ft=/^\[object .+?Constructor\]$/,pt=/^(?:0|[1-9]\d*)$/,ht={};ht["[object Float32Array]"]=ht["[object Float64Array]"]=ht["[object Int8Array]"]=ht["[object Int16Array]"]=ht["[object Int32Array]"]=ht["[object Uint8Array]"]=ht["[object Uint8ClampedArray]"]=ht["[object Uint16Array]"]=ht["[object Uint32Array]"]=!0,ht[qe]=ht[Be]=ht[rt]=ht[We]=ht[it]=ht[He]=ht[$e]=ht[Qe]=ht[Xe]=ht[Ye]=ht[Ze]=ht[Je]=ht[et]=ht[tt]=ht["[object WeakMap]"]=!1;var dt="object"==(void 0===e?"undefined":Ie(e))&&e&&e.Object===Object&&e,yt="object"==("undefined"==typeof self?"undefined":Ie(self))&&self&&self.Object===Object&&self,vt=dt||yt||Function("return this")(),mt="object"==Ie(t)&&t&&!t.nodeType&&t,_t=mt&&"object"==Ie(n)&&n&&!n.nodeType&&n,gt=_t&&_t.exports===mt,bt=gt&&dt.process,kt=function(){try{return bt&&bt.binding("util")}catch(e){}}(),Pt=kt&&kt.isTypedArray,wt=Array.prototype,At=Function.prototype,Tt=Object.prototype,Ot=vt["__core-js_shared__"],jt=function(){var e=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),St=At.toString,Et=Tt.hasOwnProperty,xt=Tt.toString,Ct=RegExp("^"+St.call(Et).replace(st,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kt=vt.Symbol,Mt=vt.Uint8Array,It=Tt.propertyIsEnumerable,Ft=wt.splice,Rt=Math.floor,Lt=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Nt=Math.min,Ut=ae(vt,"DataView"),Dt=ae(vt,"Map"),zt=ae(vt,"Promise"),Vt=ae(vt,"Set"),qt=ae(vt,"WeakMap"),Bt=ae(Object,"create"),Wt=ve(Ut),Ht=ve(Dt),$t=ve(zt),Qt=ve(Vt),Gt=ve(qt),Xt=Kt?Kt.prototype:void 0,Yt=Xt?Xt.valueOf:void 0,Zt=Xt?Xt.toString:void 0;l.prototype.clear=f,l.prototype.delete=p,l.prototype.get=h,l.prototype.has=d,l.prototype.set=y,v.prototype.clear=m,v.prototype.delete=_,v.prototype.get=g,v.prototype.has=b,v.prototype.set=k,P.prototype.clear=w,P.prototype.delete=A,P.prototype.get=T,P.prototype.has=O,P.prototype.set=j,S.prototype.add=S.prototype.push=E,S.prototype.has=x,C.prototype.clear=K,C.prototype.delete=M,C.prototype.get=I,C.prototype.has=F,C.prototype.set=R;var Jt=D;(Ut&&Jt(new Ut(new ArrayBuffer(1)))!=it||Dt&&Jt(new Dt)!=Xe||zt&&"[object Promise]"!=Jt(zt.resolve())||Vt&&Jt(new Vt)!=et||qt&&"[object WeakMap]"!=Jt(new qt))&&(Jt=function(e){var t=xt.call(e),n=t==Ze?e.constructor:void 0,r=n?ve(n):void 0;if(r)switch(r){case Wt:return it;case Ht:return Xe;case $t:return"[object Promise]";case Qt:return et;case Gt:return"[object WeakMap]"}return t});var en=_e(function(e){e=Se(e);var t=[];return ut.test(e)&&t.push(""),e.replace(ct,function(e,n,r,i){t.push(r?i.replace(lt,"$1"):n||e)}),t});_e.Cache=P;var tn=Array.isArray,nn=Pt?function(e){return function(t){return e(t)}}(Pt):H;n.exports=me}).call(t,n(5),n(9)(e))},function(e,t,n){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);Object.defineProperty(t,"Rekapi",{enumerable:!0,get:function(){return r.Rekapi}});var i=n(3);Object.defineProperty(t,"Actor",{enumerable:!0,get:function(){return i.Actor}});var o=n(4);Object.defineProperty(t,"KeyframeProperty",{enumerable:!0,get:function(){return o.KeyframeProperty}});var a=n(6);Object.defineProperty(t,"CanvasRenderer",{enumerable:!0,get:function(){return a.CanvasRenderer}});var u=n(7);Object.defineProperty(t,"DOMRenderer",{enumerable:!0,get:function(){return u.DOMRenderer}})}])});
//# sourceMappingURL=rekapi.js.map
{
"name": "rekapi",
"version": "2.2.0",
"version": "2.2.1",
"homepage": "http://rekapi.com",

@@ -57,4 +57,4 @@ "author": "Jeremy Kahn <jeremyckahn@gmail.com>",

"lodash.sortedindexby": "^4.6.0",
"shifty": "2.1.1"
"shifty": "2.3.1"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc