popmotion-rails 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e2dd5b5a72dae78d0539c12e2d82b260b755e16f
4
+ data.tar.gz: 4697c78ddd7cae8eeb97befb33b610948feba735
5
+ SHA512:
6
+ metadata.gz: cb1201f7c8a1d4550c6299dc0eaabca01ee760a362c851d46a518ca6d3da10ab913098752970d20aa671490b9db0ab1c3492ff14012559a954254a047a971d43
7
+ data.tar.gz: aa2c16aa5881cc4f444b0808b051685f1aedf1af3f7e76b48f45700e98ea13d47a8f94556cf1a4c00ebab9239cf6ff9be0e57a1544dd5e93e9e29337728ca7ab
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+ before_install: gem install bundler -v 1.12.2
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at rich@fishpercolator.co.uk. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in card-js-rails.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Fish Percolator
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,33 @@
1
+ # popmotion-rails
2
+
3
+ [Popmotion.io](https://popmotion.io/) for the Rails asset pipeline.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'popmotion-rails', '~> 5.0'
10
+
11
+ And then execute:
12
+
13
+ bundle install
14
+
15
+ Add the JS to your application.js:
16
+
17
+ //= require popmotion
18
+
19
+
20
+ ## Usage
21
+
22
+ See the [Popmotion documentation](https://popmotion.io/guides/basics/get-started/) for usage instructions.
23
+
24
+
25
+ ## Contributing
26
+
27
+ Bug reports and pull requests are welcome on GitHub at https://github.com/fishpercolator/popmotion-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
28
+
29
+
30
+ ## License
31
+
32
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
33
+
@@ -0,0 +1,7 @@
1
+ require 'popmotion-rails/version'
2
+ module Popmotion
3
+ module Rails
4
+ class Engine < ::Rails::Engine
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ module Popmotion
2
+ module Rails
3
+ VERSION = '5.0.0'
4
+ end
5
+ end
@@ -0,0 +1,22 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'popmotion-rails/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "popmotion-rails"
8
+ spec.version = Popmotion::Rails::VERSION
9
+ spec.authors = ["Rich Daley"]
10
+ spec.email = ["rich@fishpercolator.co.uk"]
11
+
12
+ spec.summary = %q{Add popmotion.io to the Rails asset pipeline}
13
+ spec.description = %q{Add popmotion.io (JavaScript motion engine) to the Rails asset pipeline}
14
+ spec.homepage = "https://github.com/fishpercolator/popmotion-rails"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_dependency "rails", ">= 4.0.1"
21
+ spec.add_development_dependency "bundler", "~> 1.12"
22
+ end
@@ -0,0 +1,2 @@
1
+ !function(t){function e(n){if(r[n])return r[n].exports;var a=r[n]={exports:{},id:n,loaded:!1};return t[n].call(a.exports,a,a.exports,e),a.loaded=!0,a.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}var a=r(1),o=n(a),u=window.motion;o.noConflict=function(){window.motion=u},window.motion=window.popmotion=o},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}function a(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e.transformers=e.valueType=e.setGlobalDilation=e.utils=e.calc=e.detectFlow=e.easing=e.svgPath=e.svg=e.object=e.css=e.attr=e.createAdapter=e.timeline=e.stagger=e.task=e.input=e.track=e.physics=e.tween=e.flow=void 0;var o=r(2);Object.defineProperty(e,"setGlobalDilation",{enumerable:!0,get:function(){return o.setGlobalDilation}});var u=r(3),i=a(u),s=r(4),l=a(s),c=r(5),f=a(c),d=r(6),p=a(d),h=r(7),v=a(h),y=r(8),m=a(y),g=r(9),_=a(g),b=r(10),w=a(b),P=r(11),M=a(P),O=r(12),x=a(O),A=r(13),V=a(A),F=r(14),D=a(F),T=r(15),j=a(T),C=r(16),E=a(C),S=r(17),k=a(S),R=r(18),K=a(R),I=r(19),L=a(I),Y=r(20),X=n(Y),N=r(21),z=n(N),B=r(22),G=a(B),U=r(23),q=a(U),Z=r(24),H=a(Z),$=r(25),W=a($),J=r(26),Q=a(J),tt=r(27),et=a(tt),rt=r(28),nt=a(rt),at=r(29),ot=a(at),ut=r(30),it=a(ut),st=r(31),lt=a(st),ct=r(32),ft=a(ct),dt=r(33),pt=n(dt);e.flow=function(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return new(Function.prototype.bind.apply(l["default"],[null].concat(e)))},e.tween=function(t){return new f["default"](t)},e.physics=function(t){return new p["default"](t)},e.track=function(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return new(Function.prototype.bind.apply(v["default"],[null].concat(e)))},e.input=function(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return new(Function.prototype.bind.apply(_["default"],[null].concat(e)))},e.task=function(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return new(Function.prototype.bind.apply(m["default"],[null].concat(e)))};e.stagger=w["default"],e.timeline=M["default"],e.createAdapter=x["default"],e.attr=V["default"],e.css=D["default"],e.object=j["default"],e.svg=E["default"],e.svgPath=k["default"],e.easing=K["default"];e.detectFlow=L["default"];e.calc=X,e.utils=z;e.valueType={alpha:G["default"],angle:q["default"],color:H["default"],complex:W["default"],hex:Q["default"],hsl:et["default"],px:nt["default"],rgb:ot["default"],scale:it["default"],shadow:lt["default"],unit:ft["default"]};e.transformers=pt,i["default"].prototype.on=function(t){return t.connect||(t=L["default"](t)),t.connect(this)}},function(t,e,r){"use strict";e.__esModule=!0,e.setGlobalDilation=void 0;var n=r(21),a=33,o=0,u=16.7,i=1;e["default"]={update:function(t){u=Math.max(Math.min(t-o,a),1)*i,o=t},start:function(){return o=n.currentTime()},getElapsed:function(){return u}};e.setGlobalDilation=function(t){return i=t}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.__esModule=!0;var l=r(8),c=n(l),f=r(20),d=r(21),p=r(35),h=n(p),v=r(36),y=n(v),m=r(37),g=n(m),_=y["default"].length,b=function(t){var e=t.state,r=t.adapter,n=t.adapterData,a=t.element;return r(a,e,n)},w=function(t){function e(r){return o(this,e),r.state={},r.valueKeys=[],r.parentKeys=[],u(this,t.call(this,r))}return i(e,t),e.prototype.set=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.values=this.values||{};var r=e.values,n=a(e,["values"]),o={};t.prototype.set.call(this,n),this.element&&(this.adapter||(this.adapter=g["default"](this.element),this.adapter.getElementData&&(this.adapterData=this.adapter.getElementData(this.element))),this.onRender=b);for(var u in this.defaultValue)this.defaultValue.hasOwnProperty(u)&&n.hasOwnProperty(u)&&(o[u]=n[u]);for(var u in this.values)this.values.hasOwnProperty(u)&&(this.values[u]=s({},this.values[u],o));return r&&(this.setValues(r,o),this.numValueKeys=this.valueKeys.length,this.numParentKeys=this.parentKeys.length),this},e.prototype.get=function(t){return this.state[t]},e.prototype.setValues=function(t,e){for(var r in t)if(t.hasOwnProperty(r)){var n=!1,a={},o=this.values[r]?s({},this.values[r]):s({},this.defaultValue,e);if(d.isObj(t[r])?o=s({},o,t[r]):o[this.defaultValueProp]=t[r],void 0===t[r].current&&this.adapter&&(o.current=this.adapter.get(this.element,r)),!o.type&&this.adapter&&this.adapter.checkValueType&&(o.type=this.adapter.checkValueType(r)),o.type||this.values[r]||(o.type=h["default"](o)),o.type)for(var u=0;_>u;u++){var i=y["default"][u],l=o[i];if(o.type.hasOwnProperty("split")){var c=d.isString(l)?o.type.split(l):{};for(var f in c)if(c.hasOwnProperty(f)){var p=r+f;if(!a[p]){var v=o.type.defaultProps&&o.type.defaultProps[f]?o.type.defaultProps[f]:o.type.defaultProps||{};a[p]=s({},o,v,{parent:r,childKey:f}),delete a[p].type}n=!0,a[p][i]=parseFloat(c[f])}!o.template&&o.type.template&&d.isString(l)&&(o.template=o.type.template(l))}else o.type.defaultProps&&(o=s({},o,o.type.defaultProps));void 0!==l&&o.type.parse&&(o[i]=o.type.parse(l,o))}o.prev=o.current,n?(o.children=o.children||{},-1===this.parentKeys.indexOf(r)&&this.parentKeys.push(r),this.setValues(a)):-1===this.valueKeys.indexOf(r)&&this.valueKeys.push(r),this.values[r]=o}},e.prototype.willRender=function(t,e,r){for(var n=!1,a=0;a<this.numValueKeys;a++){var o=this.valueKeys[a],u=this.values[o];u.transform&&(u.current=u.transform(u.current,o,this)),d.isNum(u.min)&&(u.current=Math.max(u.current,u.min)),d.isNum(u.max)&&(u.current=Math.min(u.current,u.max)),u.round&&(u.current=Math.round(u.current)),u.frameChange=u.current-u.prev,this.calculatesVelocity||(u.velocity=f.speedPerSecond(u.frameChange,r)),u.prev!==u.current&&(n=!0,u.prev=u.current);var i=u.type&&u.type.serialize?u.type.serialize(u.current,u):u.current;u.parent?this.values[u.parent].children[u.childKey]=i:this.state[o]=i}for(var a=0;a<this.numParentKeys;a++){var o=this.parentKeys[a],u=this.values[o];u.current=u.type.combine(u.children,u.template),this.state[o]=u.current}return this.onFrame&&this.onFrame(this.state,this),this.onCleanup?!0:n},e.prototype.inherit=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=e.values,n=a(e,["values"]),o=t.prototype.inherit.call(this,n);return r&&o.set({values:r}),o},e.prototype.pause=function(){return t.prototype.stop.call(this),this},e.prototype.resume=function(){return t.prototype.start.call(this),this},e.prototype.toggle=function(){return this.isActive?this.pause():this.resume()},e.prototype.start=function(){var e=this.values;t.prototype.start.call(this);for(var r in e)e.hasOwnProperty(r)&&(e[r].prev=e[r].origin=e[r].current);return this},e.extendDefaultValue=function(t){return s({},this.prototype.defaultValue,t)},e.extendDefaultProps=function(t){return s({},this.prototype.defaultProps,t)},e}(c["default"]);w.prototype.defaultValueProp="current",w.prototype.defaultValue={current:0,velocity:0,round:!1,min:void 0,max:void 0,transform:void 0},e["default"]=w},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=r(3),s=n(i),l=r(34),c=n(l),f=function(t){return t.flow.activateAction(t.id,t)},d=function(t){return t.flow.deactivateAction(t.id)},p=function(t){return{flow:t,isPriority:!0,onActivate:f,onDeactivate:d}},h=function(t){function e(r){a(this,e);var n=o(this,t.call(this,r));return n.activeActions={},n.numActiveActions=0,n}return u(e,t),e.prototype.set=function(e){return t.prototype.set.call(this,e),this.once(),this},e.prototype.connect=function(t){var e=t.inherit(),r={},n=!1;for(var a in e.values)e.values.hasOwnProperty(a)&&!this.values.hasOwnProperty(a)&&(r[a]={},n=!0);return n&&this.set({values:r}),e.set(p(this,e))},e.prototype.start=function(){t.prototype.start.call(this);for(var e in this.activeActions)if(this.activeActions.hasOwnProperty(e)){var r=this.activeActions[e];r.isActive||r.start()}return this},e.prototype.stop=function(){t.prototype.stop.call(this);for(var e in this.activeActions)this.activeActions.hasOwnProperty(e)&&this.activeActions[e].stop();return this},e.prototype.willRender=function(e,r,n){for(var a=0;a<this.numValueKeys;a++){var o=this.valueKeys[a],u=this.values[o],i=u.numDrivers?this.activeActions[u.drivers[0]]:!1,s=u.numDrivers?i.values[o].current:u.current;u.blendCurve&&(s=u.blendCurve()),u.current=s}return t.prototype.willRender.call(this,e,r,n)},e.prototype.activateAction=function(e,r){this.activeActions[e]=r,this.numActiveActions++;for(var n=0;n<r.numValueKeys;n++){var a=r.valueKeys[n],o=r.values[a],u=this.values[a];r.blend&&u.numDrivers&&!u.blendCurve&&u.drivers[0].prototype===r.prototype?u.blendCurve=c["default"](this.activeActions[u.drivers[0]],r,u,a):r.isScrubbing||(u.blendCurve=void 0,o.velocity+=u.velocity,o.from=o.current=u.current),u.drivers=[e],u.numDrivers=u.drivers.length}this.numActiveActions&&t.prototype.start.call(this)},e.prototype.deactivateAction=function(e){var r=this.activeActions[e];if(r){for(var n=0;n<r.numValueKeys;n++){var a=r.valueKeys[n],o=this.values[a],u=o.drivers.indexOf(e);-1!==u&&(o.drivers.splice(u,1),o.numDrivers--)}delete this.activeActions[e],this.numActiveActions--}!this.numActiveActions&&this.isActive&&t.prototype.stop.call(this)},e}(s["default"]);h.prototype.defaultValue=s["default"].extendDefaultValue({drivers:[],numDrivers:0}),e["default"]=h},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=r(3),s=n(i),l=r(18),c=n(l),f=r(21),d=r(20),p="Count",h={loop:"restart",yoyo:"reverse",flip:"flipValues"},v=function(t){function e(){return a(this,e),o(this,t.apply(this,arguments))}return u(e,t),e.prototype.start=function(){return this.elapsed=0,this.flipCount=this.yoyoCount=this.loopCount=0,this.isScrubbing=!1,t.prototype.start.call(this)},e.prototype.onUpdate=function(t,e,r){var n=1===this.playDirection?1:0;this.ended=!0,this.isScrubbing||(this.elapsed+=r*this.dilate*this.playDirection);for(var a=0;a<this.numValueKeys;a++){var o=this.valueKeys[a],u=this.values[o],i=d.restrict(d.getProgressFromValue(this.elapsed-u.delay,0,u.duration),0,1);i!==n&&(this.ended=!1),u.steps&&(i=d.stepProgress(i,u.steps)),u.current=d.ease(i,u.from,u.to,u.ease)}},e.prototype.onFrameEnd=function(){if(this.ended&&!this.isScrubbing){var t=!1;for(var e in h)h.hasOwnProperty(e)&&f.isNum(this[e])&&this[e]>this[e+p]&&(this[e+p]++,t=!0,this[h[e]]());t||this.complete()}},e.prototype.flipValues=function(){var t=this.values;this.elapsed=this.duration-this.elapsed;for(var e in t)if(t.hasOwnProperty(e)){var r=t[e],n=[r.from,r.to];r.to=n[0],r.from=n[1]}return this},e.prototype.reverse=function(){return this.playDirection*=-1,this},e.prototype.restart=function(){return this.elapsed=1===this.playDirection?0:this.duration,this.started=f.currentTime(),this},e.prototype.seek=function(t){return this.seekTime(this.duration*t),this},e.prototype.seekTime=function(t){return(!this.isActive||this.isScrubbing)&&(this.once(),this.isScrubbing=!0),this.elapsed=t,this},e}(s["default"]);v.prototype.defaultValueProp="to",v.prototype.defaultValue=s["default"].extendDefaultValue({delay:0,duration:300,ease:c["default"].easeOut,elapsed:0,from:0,steps:0,to:0,round:!1}),v.prototype.defaultProps=s["default"].extendDefaultProps({blend:!0,dilate:1,loop:0,yoyo:0,flip:0,loopCount:0,yoyoCount:0,flipCount:0,playDirection:1,isScrubbing:!1,ended:!1,elapsed:0}),e["default"]=v},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=r(3),s=n(i),l=r(20),c=r(21),f=function(t){function e(){a(this,e);for(var r=arguments.length,n=Array(r),u=0;r>u;u++)n[u]=arguments[u];var i=o(this,t.call.apply(t,[this].concat(n)));return i.inactiveFrames=0,i.calculatesVelocity=!0,i}return u(e,t),e.prototype.onUpdate=function(t,e,r){this.hasChanged=!1;for(var n=0;n<this.numValueKeys;n++){var a=this.valueKeys[n],o=this.values[a],u=o.prev;if(o.velocity+=l.speedPerFrame(o.acceleration,r),o.velocity*=Math.pow(1-o.friction,r/100),o.spring&&c.isNum(o.to)){var i=o.to-o.current;o.velocity+=i*l.speedPerFrame(o.spring,r)}o.current+=l.speedPerFrame(o.velocity,r),(void 0!==o.min&&o.current<o.min||void 0!==o.max&&o.current>o.max)&&(o.velocity*=-o.bounce),(o.current!==u||Math.abs(o.velocity)>=o.stopSpeed||o.spring&&o.current!==o.to)&&(this.hasChanged=!0)}},e.prototype.onFrameEnd=function(){this.maxInactiveFrames!==1/0&&(this.inactiveFrames=this.hasChanged?1:this.inactiveFrames+1,this.inactiveFrames>=this.maxInactiveFrames&&this.complete())},e}(s["default"]);f.prototype.defaultValueProp="velocity",f.prototype.defaultValue=s["default"].extendDefaultValue({acceleration:0,bounce:0,spring:0,stopSpeed:.001,friction:0}),f.prototype.defaultProps=s["default"].extendDefaultProps({maxInactiveFrames:3}),e["default"]=f},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.__esModule=!0;var s=r(3),l=n(s),c=r(38),f=n(c),d=r(20),p=function(t){return{x:t.pageX,y:t.pageY}},h=function(t){var e=t.changedTouches;return{x:e[0].clientX,y:e[0].clientY}},v=function(t){return t.touches?new f["default"](h(t),"touchmove",h):new f["default"](p(t),"mousemove",p)},y=function(t){return t.originalEvent||t},m=function(t){function e(){return a(this,e),o(this,t.apply(this,arguments))}return u(e,t),e.prototype.start=function(e){t.prototype.start.call(this),e&&(this.input=e.state?e:v(y(e))),this.inputOffset={},this.inputOrigin=i({},this.input.state),this.input.start()},e.prototype.stop=function(){t.prototype.stop.call(this),this.input.stop()},e.prototype.onUpdate=function(t,e,r){this.inputOffset=d.offset(this.inputOrigin,this.input.state);for(var n=0;n<this.numValueKeys;n++){var a=this.valueKeys[n];if(this.inputOffset.hasOwnProperty(a)){var o=this.values[a];o.direct?o.current=this.input.state[o.watch||a]:o.current=o.from+this.inputOffset[o.watch||a],o.smooth&&(o.current=d.smooth(o.current,o.prev,r,o.smooth))}}},e}(l["default"]);m.prototype.defaultValueProp="watch",m.prototype.defaultValue=l["default"].extendDefaultValue({direct:!1}),e["default"]=m},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}function a(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(){this.onCleanup=void 0,c.deactivate(this.id)}function i(){this.onCleanup=u}var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.__esModule=!0;var l=r(39),c=n(l),f=function(){function t(e){if(o(this,t),this.id=c.getTaskId(),this.isActive=!1,this.defaultProps)for(var r in this.defaultProps)this.defaultProps.hasOwnProperty(r)&&(this[r]=this.defaultProps[r]);this.set(e)}return t.prototype.set=function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);return this},t.prototype.start=function(){return c.activate(this.id,this),this.onActivateLoop=this.onCleanup=void 0,this.isComplete=!1,this.onStart&&this.onStart(this),this},t.prototype.stop=function(){return c.deactivate(this.id),this.onStop&&this.onStop(this),this},t.prototype.once=function(){return c.activate(this.id,this),this.onCleanup=void 0,this.onActivateLoop=i,this},t.prototype.complete=function(){this.stop(),this.onComplete&&this.onComplete(this)},t.prototype.inherit=function(t){var e=(this.id,a(this,["id"]));return new this.constructor(s({},e,t))},t}();e["default"]=f},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.__esModule=!0;var s=r(8),l=n(s),c=r(21),f=function(t){function e(r,n){a(this,e);var u=o(this,t.call(this));return u.state=r,c.isFunc(n)&&(u.onFrameStart=function(){return u.latest(u.poll())}),u}return u(e,t),e.prototype.latest=function(t){this.state=i({},this.state,t)},e}(l["default"]);e["default"]=f},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var a=r(11),o=n(a),u=r(21),i=100;e["default"]=function(t,e){var r=u.isNum(e),n=r?e:e?e.interval||i:i,a=0,s=t.map(function(t){var e={tween:t,at:a};return a+=n,e});return o["default"](s,e)}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function a(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=f(t),n=r.totalTime,a=r.timeline;return new i["default"](o({ease:l["default"].linear},e,{duration:n,values:{p:1},timeline:a,timelineLength:a.length,onRender:d}))}var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.__esModule=!0,e["default"]=a;var u=r(5),i=n(u),s=r(18),l=n(s),c=r(20),f=function(t){for(var e=[],r=t.length,n=0,a=function(r){var a=t[r],o=a.tween?!0:!1,u=o?a.tween:a;o&&(void 0!==a.offset?n=c.relativeValue(n,a.offset):void 0!==a.at&&(n=a.at));var i=0;for(var s in u.values)if(u.values.hasOwnProperty(s)){var l=u.values[s];i=Math.max(i,l.duration)}e.push({from:n,duration:i,fire:function(t){return u.seekTime(t)}}),n+=i},o=0;r>o;o++)a(o);return{totalTime:n,timeline:e}},d=function(t){for(var e=t.timeline,r=t.timelineLength,n=t.values,a=t.duration,o=0;r>o;o++){var u=e[o],i=n.p.current*a-u.from;i>=-50&&i<=u.duration+50&&u.fire(i)}}},function(t,e,r){"use strict";e.__esModule=!0;var n=function(t,e){return e?e[t]||t:t};e["default"]=function(t){var e=function(e,r,a){if(t.stateMap)for(var o in r)if(r.hasOwnProperty(o)){var u=n(o,t.stateMap);u!==o&&(r[u]=r[o],delete r[o])}return t.setter(e,r,a)};return e.get=function(e,r){return t.getter(e,n(r,t.stateMap))},e.checkValueType=function(e){return t.valueTypeMap?t.valueTypeMap[n(e,t.stateMap)]:!1},e.getElementData=t.getElementData,e}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e.setter=e.getter=void 0;var a=r(12),o=n(a),u=e.getter=function(t,e){return t.getAttribute(e)},i=e.setter=function(t,e){for(var r in e)e.hasOwnProperty(r)&&t.setAttribute(r,e[r])};e["default"]=o["default"]({getter:u,setter:i})},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var a=r(40),o=n(a),u=r(41),i=n(u),s=r(42),l=n(s),c=r(43),f=n(c),d=r(44),p=n(d),h=r(12),v=n(h);e["default"]=v["default"]({getter:function(t,e){return p["default"][e]?i["default"][e].defaultProps.current||0:window.getComputedStyle(t,null)[f["default"](e)]},setter:function(t,e){return t.style.cssText+=l["default"](e)},valueTypeMap:i["default"],stateMap:o["default"]})},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var a=r(12),o=n(a);e["default"]=o["default"]({getter:function(t,e){return t[e]},setter:function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])}})},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e.getElementData=e.setter=e.getter=void 0;var a=r(40),o=n(a),u=r(45),i=n(u),s=r(44),l=n(s),c=r(46),f=n(c),d=r(13),p=r(12),h=n(p),v=e.getter=function(t,e){return l["default"][e]?i["default"][e]&&i["default"][e].defaultProps?i["default"][e].defaultProps.current:0:d.getter(t,e)},y=e.setter=function(t,e,r){return d.setter(t,f["default"](e,r))},m=e.getElementData=function(t){var e=t.getBBox();return{x:e.x,y:e.y,width:e.width,height:e.height}};e["default"]=h["default"]({getter:v,setter:y,stateMap:o["default"],valueTypeMap:i["default"],getElementData:m})},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.__esModule=!0;var o=r(47),u=n(o),i=r(40),s=n(i),l=r(16),c=r(12),f=n(c);e["default"]=f["default"]({getter:l.getter,setter:function(t,e,r){var n=r?r.pathLength:0;return l.setter(t,u["default"](e,n),r)},stateMap:s["default"],getElementData:function(t){return a({pathLength:t.getTotalLength()},l.getElementData(t))}})},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var a=r(50),o=n(a),u=r(51),i=n(u),s=1.525,l=2,c={ease:function(t){var e=arguments.length<=1||void 0===arguments[1]?l:arguments[1];return Math.pow(t,e)},circ:function(t){return 1-Math.sin(Math.acos(t))},back:function(t){var e=arguments.length<=1||void 0===arguments[1]?s:arguments[1];return t*t*((e+1)*t-e)}},f=function(t){return function(e){return c.ease(e,t)}};["cubic","quart","quint"].forEach(function(t,e){return c[t]=f(e+3)});for(var d in c)if(c.hasOwnProperty(d)){var p=o["default"](c[d]);c[d+"In"]=p["in"],c[d+"Out"]=p.out,c[d+"InOut"]=p.inOut}c.linear=function(t){return t},c.anticipate=function(t){var e=arguments.length<=1||void 0===arguments[1]?s:arguments[1];return(t*=2)<1?.5*c.backIn(t,e):.5*(2-Math.pow(2,-10*(t-1)))},c.createVariations=o["default"],c.cubicBezier=i["default"],c.modify=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return function(e){return t.apply(void 0,[e].concat(r))}},e["default"]=c},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var a=r(4),o=n(a),u="__pm_flow";e["default"]=function(t){if(t[u])return t[u];var e=new o["default"]({element:t});return Object.defineProperty(t,u,{enumerable:!1,writable:!1,value:e}),e}},function(t,e,r){"use strict";e.__esModule=!0,e.stepProgress=e.speedPerSecond=e.speedPerFrame=e.smooth=e.restrict=e.relativeValue=e.random=e.radiansToDegrees=e.pointFromAngleAndDistance=e.offset=e.getProgressFromValue=e.getValueFromProgress=e.hypotenuse=e.ease=e.distance=e.dilate=e.degreesToRadians=e.angle=void 0;var n=r(21),a={x:0,y:0,z:0},o=function(t,e){return Math.abs(t-e)},u=(e.angle=function(t){var e=arguments.length<=1||void 0===arguments[1]?a:arguments[1];return s(Math.atan2(t.x-e.x,t.y-e.y))},e.degreesToRadians=function(t){return t*Math.PI/180}),i=(e.dilate=function(t,e,r){return t+(e-t)*r},e.distance=function(t){var e=arguments.length<=1||void 0===arguments[1]?a:arguments[1];if(n.isNum(t))return o(t,e);var r=o(t.x,e.x),u=o(t.y,e.y),i=n.isNum(t.z)?o(t.z,e.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(u,2)+Math.pow(i,2))},e.ease=function(t,e,r,n){var a=l(t,0,1),o=n(a);return i(o,e,r)},e.hypotenuse=function(t,e){return Math.sqrt(t*t+e*e)},e.getValueFromProgress=function(t,e,r){return-t*e+t*r+e}),s=(e.getProgressFromValue=function(t,e,r){return(t-e)/(r-e)},e.offset=function(t,e){var r={};for(var a in e)e.hasOwnProperty(a)&&(r[a]=n.hasProperty(t,a)?e[a]-t[a]:0);return r},e.pointFromAngleAndDistance=function(t,e,r){return e=u(e),{x:r*Math.cos(e)+t.x,y:r*Math.sin(e)+t.y}},e.radiansToDegrees=function(t){return 180*t/Math.PI}),l=(e.random=function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0],e=arguments.length<=1||void 0===arguments[1]?1:arguments[1];return Math.random()*(e-t)+t},e.relativeValue=function(t,e){var r=t,a=e.split("="),o=a[0],u=n.findValueAndUnit(a[1]),i=u.unit,s=u.value;switch(s=parseFloat(s),o){case"+":r+=s;break;case"-":r-=s;break;case"*":r*=s;break;case"/":r/=s}return i&&(r+=i),r},e.restrict=function(t,e,r){return Math.max(Math.min(t,r),e)});e.smooth=function(t,e,r){var a=arguments.length<=3||void 0===arguments[3]?0:arguments[3];return n.toDecimal(e+r*(t-e)/Math.max(a,r))},e.speedPerFrame=function(t,e){return n.isNum(t)?t/(1e3/e):0},e.speedPerSecond=function(t,e){return t*(1e3/e)},e.stepProgress=function(t,e){var r=1/(e-1),n=1-1/e,a=Math.min(t/n,1);return Math.floor(a/r)*r}},function(t,e,r){"use strict";e.__esModule=!0;var n=/([a-z])([A-Z])/g,a="$1-$2",o="undefined"!=typeof performance&&performance.now,u=function(t){return Object.prototype.toString.call(t).slice(8,-1)},i=(e.camelToDash=function(t){return t.replace(n,a).toLowerCase()},e.createDelimited=function(t,e,r,n){for(var a=e.length,o="",u=0;a>u;u++){var i=e[u];t.hasOwnProperty(i)&&(o+=t[i]+r)}return n&&(o=o.slice(0,-n)),o},e.createFunctionString=function(t,e){return e+"("+t+")"},e.currentTime=o?function(){return performance.now()}:function(){return(new Date).getTime()},e.findValueAndUnit=function(t){if(t.match){var e=t.match(/(-?\d*\.?\d*)(.*)/);return{value:parseFloat(e[1]),unit:e[2]}}return{value:t}},e.getColorValues=function(t,e){for(var r=e.length,n={},a=c(i(t)),o=0;r>o;o++)n[e[o]]=void 0!==a[o]?a[o]:1;return n},e.getValueFromFunctionString=function(t){return t.substring(t.indexOf("(")+1,t.lastIndexOf(")"))}),s=(e.hasChanged=function(t,e){var r=!1;for(var n in t)t.hasOwnProperty(n)&&(s(e,n)?t[n]!==e[n]&&(r=!0):r=!0);return r},e.hasProperty=function(t,e){return t.hasOwnProperty(e)&&void 0!==t[e]}),l=(e.isArray=function(t){return"Array"===u(t)},e.isFunc=function(t){return"Function"===u(t)},e.isNum=function(t){return"number"==typeof t},e.isObj=function(t){return"object"==typeof t},e.isRelativeValue=function(t){return t&&t.indexOf&&t.indexOf("=")>0?!0:!1},e.isString=function(t){return"string"==typeof t}),c=(e.selectDom=function(t){var e="string"==typeof t?document.querySelectorAll(t):t;return e.length?[].slice.call(e):[].push(e)},e.splitCommaDelimited=function(t){return l(t)?t.split(/,\s*/):[t]});e.splitSpaceDelimited=function(t){return l(t)?t.split(" "):[t]},e.toDecimal=function(t){var e=arguments.length<=1||void 0===arguments[1]?2:arguments[1];return e=Math.pow(10,e),Math.round(t*e)/e}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(48);e["default"]={defaultProps:n.opacity}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var a=r(32),o=n(a);e["default"]={defaultProps:{unit:"deg",type:o["default"]}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.__esModule=!0;var o=r(29),u=n(o),i=r(27),s=n(i),l=r(26),c=n(l),f=[u["default"],s["default"],c["default"]],d=f.length;e["default"]={defaultProps:a({},u["default"].defaultProps,s["default"].defaultProps),test:function(t){return u["default"].test(t)||c["default"].test(t)||s["default"].test(t)},split:function(t){for(var e=0;d>e;e++)if(f[e].test(t))return f[e].split(t)},combine:function(t){return void 0!==t.Red?u["default"].combine(t):s["default"].combine(t)}}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(21),a=/(-)?(\d[\d\.]*)/g,o=function(t){return"${"+t+"}"};e["default"]={test:function(t){var e=t.match(a);return n.isArray(e)&&e.length>1},template:function(t){var e=0;return t.replace(a,function(){return o(e++)})},split:function(t){var e={};return t.match(a).forEach(function(t,r){return e[r]=t}),e},combine:function(t,e){for(var r in t)t.hasOwnProperty(r)&&(e=e.replace(o(r),t[r]));return e}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var a=r(29),o=n(a);e["default"]={defaultProps:o["default"].defaultProps,test:function(t){return t&&t.indexOf("#")>-1},split:function(t){var e=void 0,r=void 0,n=void 0;return t.length>4?(e=t.substr(1,2),r=t.substr(3,2),n=t.substr(5,2)):(e=t.substr(1,1),r=t.substr(2,1),n=t.substr(3,1),e+=e,r+=r,n+=n),{Red:parseInt(e,16),Green:parseInt(r,16),Blue:parseInt(n,16),Alpha:1}},combine:function(t){return o["default"].combine(t)}}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(48),a=r(49),o=r(21);e["default"]={defaultProps:{Hue:{min:0,max:360},Saturation:n.percent,Lightness:n.percent,Alpha:n.opacity},test:function(t){return t&&t.indexOf("hsl")>-1},split:function(t){return o.getColorValues(t,a.hsl)},combine:function(t){return o.createFunctionString(o.createDelimited(t,a.hsl,", ",2),"hsla");
2
+ }}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var a=r(32),o=n(a);e["default"]={defaultProps:{unit:"px",type:o["default"]}}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(21),a=r(49),o=r(48);e["default"]={defaultProps:{Red:o.rgb,Green:o.rgb,Blue:o.rgb,Alpha:o.opacity},test:function(t){return t&&t.indexOf("rgb")>-1},split:function(t){return n.getColorValues(t,a.rgb)},combine:function(t){return n.createFunctionString(n.createDelimited(t,a.rgb,", ",2),"rgba")}}},function(t,e,r){"use strict";e.__esModule=!0,e["default"]={defaultProps:{current:1}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.__esModule=!0;var o=r(24),u=n(o),i=r(28),s=r(49),l=r(21),c=s.shadow.slice(0,4);e["default"]={defaultProps:a({},u["default"].defaultProps,{X:i.defaultProps,Y:i.defaultProps,Radius:i.defaultProps,Spread:i.defaultProps}),split:function(t){var e=l.splitSpaceDelimited(t),r=!1,n="",o={};e.forEach(function(t,e){r||u["default"].test(t)?(r=!0,n+=t):o[s.shadow[e]]=t});var i=u["default"].split(n);return a({},o,{splitColorProps:i})},combine:function(t){return l.createDelimited(t,c," ")+u["default"].combine(t)}}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(21);e["default"]={test:function(t){var e=n.findValueAndUnit(t),r=e.value;return n.isNum(r)&&!isNaN(r)?!0:!1},parse:function(t,e){var r=n.findValueAndUnit(t),a=r.value,o=r.unit;return o&&o!==o&&(e.unit=o),a},serialize:function(t,e){return t+(e.unit||"")}}},function(t,e,r){"use strict";e.__esModule=!0,e.chain=e.circularMotion=e.createMapper=void 0;var n=r(20);e.createMapper=function(t,e){var r=t.length;return function(a){for(var o=1;r>o;o++)if(a<t[o]||o===r)return n.getValueFromProgress(n.restrict(n.getProgressFromValue(a,t[o-1],t[o]),0,1),e[o-1],e[o])}},e.circularMotion=function(t,e,r){var a=r.values,o=a.originX?a.originX.current:0,u=a.originY?a.originY.current:0;return n.pointFromAngleAndDistance({x:o,y:u},a.angle.current,a.distance.current)[e]},e.chain=function(t){var e=t.length,r=0;return function(n,a,o){for(r=0;e>r;r++)n=t[r](n,a,o);return n}}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(20),a=60;e["default"]=function(t,e,r,o){var u=t.values[o];if(void 0!==t.elapsed&&u){var i=e.values[o],s=u.delay+u.duration,l=Math.min(s-t.elapsed,i.delay+i.duration),c=n.ease(n.restrict(n.getProgressFromValue(l,0,i.delay+i.duration),0,1),i.from,i.to,i.ease),f=i.from>u.current,d=c>u.to,p=f!==d,h=[[0,u.current],[l,c]];if(p)for(var v=l/a,y=!1,m=!1,g=0;a>=g;g++){var _=g*v,b=n.ease(n.getProgressFromValue(t.elapsed+_,u.delay,u.duration),u.from,u.to,u.ease),w=n.ease(n.getProgressFromValue(e.elapsed+_,i.delay,i.duration),i.from,i.to,i.ease);if(!y&&(f&&b>w||!f&&w>b)&&(h.splice(1,0,[_,w]),y=!0),y&&(f&&w<u.current||!f&&w>u.current)&&(h[2]=[_,w],m=!0),m)break}return 2===h.length?function(){var t=n.restrict(n.getProgressFromValue(e.elapsed,h[0][0],h[1][0]),0,1);return 1===t&&(r.blendCurve=void 0),n.ease(t,u.current,i.current,i.ease)}:function(){var t=n.restrict(n.getProgressFromValue(e.elapsed,h[0][0],h[2][0]),0,1),a=n.getValueFromProgress(t,h[0][1],h[1][1]),o=n.getValueFromProgress(t,h[1][1],h[2][1]);return 1===t?(r.blendCurve=void 0,i.current):n.getValueFromProgress(t,a,o)}}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var a=r(24),o=n(a),u=r(25),i=n(u),s=r(32),l=n(s),c=r(21),f=r(36),d=n(f),p=d["default"].length;e["default"]=function(t){for(var e=0;p>e;e++){var r=t[d["default"][e]];if(c.isString(r)){if(o["default"].test(r))return o["default"];if(i["default"].test(r))return i["default"];if(l["default"].test(r))return l["default"]}}}},function(t,e,r){"use strict";e.__esModule=!0,e["default"]=["current","from","to","velocity"]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var a=r(15),o=n(a),u=r(14),i=n(u),s=r(16),l=n(s),c=r(17),f=n(c);e["default"]=function(t){var e=o["default"];return t instanceof HTMLElement||"svg"===t.tagName?e=i["default"]:t instanceof SVGElement&&(e="path"===t.tagName?f["default"]:l["default"]),e}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=r(9),s=n(i),l=function(t){function e(r,n,u){a(this,e);var i=o(this,t.call(this,r));return i.eventToPoint=u,i.moveEvent=n,i}return u(e,t),e.prototype.latest=function(e){t.prototype.latest.call(this,this.eventToPoint(e)),e.preventDefault()},e.prototype.start=function(){var e=this;t.prototype.start.call(this),document.documentElement.addEventListener(this.moveEvent,function(t){return e.latest(t)})},e.prototype.stop=function(){var e=this;t.prototype.stop.call(this),document.documentElement.removeEventListener(this.moveEvent,function(t){return e.latest(t)})},e}(s["default"]);e["default"]=l},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){for(var r=p["default"].getActiveIds(),n=r.length,a=0;v>a;a++)for(var o=h[a],u=0;n>u;u++){var i=p["default"].activeTasks[r[u]],s=!1;i&&i[o.name]&&(!o.isRender||o.isRender&&i._renderThisFrame===!0)&&(s=i[o.name].call(i,i,t,e)),o.decideRender&&(i._renderThisFrame=i[o.name]&&s!==!0?!1:!0)}return p["default"].getNonBackgroundRunningCount()}function o(t){l["default"].update(t),y=a(t,l["default"].getElapsed()),y&&f["default"](o)}function u(){y||(l["default"].start(),y=!0,f["default"](o))}function i(t,e){p["default"].activate(t,e),y||u()}e.__esModule=!0,e.deactivate=e.getTaskId=void 0,e.activate=i;var s=r(2),l=n(s),c=r(52),f=n(c),d=r(53),p=n(d),h=[{name:"onFrameStart"},{name:"onUpdate"},{name:"willRender",decideRender:!0},{name:"onPreRender",isRender:!0},{name:"onRender",isRender:!0},{name:"onPostRender",isRender:!0},{name:"onFrameEnd"},{name:"onCleanup"}],v=h.length,y=!1;e.getTaskId=p["default"].getTaskId,e.deactivate=p["default"].deactivate},function(t,e,r){"use strict";e.__esModule=!0;var n="translate";e["default"]={x:n+"X",y:n+"Y",z:n+"Z"}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var a=r(23),o=n(a),u=r(22),i=n(u),s=r(24),l=n(s),c=r(30),f=n(c),d=r(31),p=n(d),h=r(28),v=n(h);e["default"]={color:l["default"],backgroundColor:l["default"],outlineColor:l["default"],fill:l["default"],stroke:l["default"],borderColor:l["default"],borderTopColor:l["default"],borderRightColor:l["default"],borderBottomColor:l["default"],borderLeftColor:l["default"],borderRadius:v["default"],width:v["default"],height:v["default"],textShadow:p["default"],boxShadow:p["default"],rotate:o["default"],rotateX:o["default"],rotateY:o["default"],rotateZ:o["default"],scale:f["default"],scaleX:f["default"],scaleY:f["default"],scaleZ:f["default"],skewX:o["default"],skewY:o["default"],distance:v["default"],translateX:v["default"],translateY:v["default"],translateZ:v["default"],perspective:v["default"],opacity:i["default"]}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var a=r(44),o=n(a),u=r(43),i=n(u),s=r(21),l="translateZ";e["default"]=function(t,e){var r="",n="",a=!1;for(var u in t)if(t.hasOwnProperty(u)){var c=t[u];o["default"][u]?(n+=u+"("+c+") ",a=u===l?!0:a):r+=";"+i["default"](s.camelToDash(u))+":"+c}return""!==n&&(a||e||(n+=l+"(0px)"),r+=";"+i["default"]("transform")+":"+n),r}},function(t,e,r){"use strict";e.__esModule=!0;var n={},a=["Webkit","Moz","O","ms",""],o=a.length,u=void 0,i=function(t){if(u=u||document.createElement("div"),n[t]===!1)return!1;n[t]=!1;for(var e=0;o>e;e++){var r=a[e],i=""===r?t:r+t.charAt(0).toUpperCase()+t.slice(1);i in u.style&&(n[t]=i)}return n[t]};e["default"]=function(t){return n[t]||i(t)}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(49),a={},o="scale",u="rotate",i="transformPerspective",s=["translate",o,u,"skew",i];a[u]=a[o]=a[i]=!0,s.forEach(function(t){return n.axes.forEach(function(e){return a[t+e]=!0})}),e["default"]=a},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var a=r(22),o=n(a),u=r(24),i=n(u),s=r(25),l=n(s),c=r(30),f=n(c);e["default"]={fill:i["default"],stroke:i["default"],scale:f["default"],scaleX:f["default"],scaleY:f["default"],d:l["default"],points:l["default"],opacity:o["default"],fillOpacity:o["default"],strokeOpacity:o["default"]}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){var r=!1,n={},a=void 0!==t.scale?t.scale||s:t.scaleX||1,u=void 0!==t.scaleY?t.scaleY||s:a||1,l=e.width*((t.originX||50)/100)+e.x,c=e.height*((t.originY||50)/100)+e.y,f=-l*(1*a),d=-c*(1*u),p=l/a,h=c/u,v={translate:"translate("+t.translateX+", "+t.translateY+") ",scale:"translate("+f+", "+d+") scale("+a+", "+u+") translate("+p+", "+h+") ",rotate:"rotate("+t.rotate+", "+l+", "+c+") ",skewX:"skewX("+t.skewX+") ",skewY:"skewY("+t.skewY+") "};for(var y in t)t.hasOwnProperty(y)&&(i["default"][y]?r=!0:n[o.camelToDash(y)]=t[y]);if(r){n.transform="";for(var y in v)if(v.hasOwnProperty(y)){var m="scale"===y?"1":"0";n.transform+=v[y].replace(/undefined/g,m)}}return n}e.__esModule=!0,e["default"]=a;var o=r(21),u=r(44),i=n(u),s=1e-4},function(t,e,r){"use strict";e.__esModule=!0;var n=function(t,e){return parseFloat(t)/100*e+"px"};e["default"]=function(t,e){var r={},a={length:0,spacing:e+"px"},o=!1;for(var u in t)if(t.hasOwnProperty(u)){var i=t[u];switch(u){case"length":case"spacing":o=!0,a[u]=n(i,e);break;case"offset":r["stroke-dashoffset"]=n(-i,e);break;default:r[u]=i}}return o&&(r["stroke-dasharray"]=a.length+" "+a.spacing),r}},function(t,e,r){"use strict";e.__esModule=!0;e.rgb={min:0,max:255,round:!0},e.opacity={min:0,max:1},e.percent={min:0,max:100,unit:"%"}},function(t,e,r){"use strict";e.__esModule=!0;var n="X",a="Y",o="Alpha";e.axes=[n,a,"Z"],e.rgb=["Red","Green","Blue",o],e.hsl=["Hue","Saturation","Lightness",o],e.positions=["Top","Right","Bottom","Left"],e.shadow=[n,a,"Radius","Spread","Color"]},function(t,e,r){"use strict";function n(t){var e=function(e,r){return t(e,r)};return e["in"]=function(e,r){return t(e,r)},e.out=o(t),e.inOut=a(t),e}e.__esModule=!0,e["default"]=n;var a=function(t){return function(e,r){return.5>=e?t(2*e,r)/2:(2-t(2*(1-e),r))/2}},o=function(t){return function(e,r){return 1-t(1-e,r)}}},function(t,e,r){"use strict";function n(t,e,r,n){var f=c?new Float32Array(s):new Array(s),d=!1,p=function(e,n,a){var o=0,s=void 0,l=void 0;do l=n+(a-n)/2,s=v(l,t,r)-e,s>0?a=l:n=l;while(Math.abs(s)>u&&++o<i);return l},y=function(e,n){for(var o=0,u=0,i=void 0;a>o;++o){if(u=h(n,t,r),0===u)return n;i=v(n,t,r)-e,n-=i/u}return n},m=function(){for(var e=0;s>e;++e)f[e]=v(e*l,t,r)},g=function(e){for(var n=0,a=1,u=s-1,i=0,c=0,d=0;a!=u&&f[a]<=e;++a)n+=l;return--a,i=(e-f[a])/(f[a+1]-f[a]),c=n+i*l,d=h(c,t,r),d>=o?y(e,c):0===d?c:p(e,n,n+l)},_=function(){d=!0,(t!=e||r!=n)&&m()},b=function(a){var o=void 0;return d||_(),o=t===e&&r===n?a:0===a?0:1===a?1:v(g(a),e,n)};return b}e.__esModule=!0,e["default"]=n;var a=8,o=.001,u=1e-7,i=10,s=11,l=1/(s-1),c="undefined"!=typeof Float32Array,f=function(t,e){return 1-3*e+3*t},d=function(t,e){return 3*e-6*t},p=function(t){return 3*t},h=function(t,e,r){return 3*f(e,r)*t*t+2*d(e,r)*t+p(e)},v=function(t,e,r){return((f(e,r)*t+d(e,r))*t+p(e))*t}},function(t,e,r){"use strict";e.__esModule=!0;var n="undefined"!=typeof window&&window.requestAnimationFrame?!0:!1,a=void 0;n?a=function(t){return window.requestAnimationFrame(t)}:!function(){var t=0;a=function(e){var r=(new Date).getTime(),n=Math.max(0,16-(r-t));t=r+n,setTimeout(function(){return e(t)},n)}}(),e["default"]=a},function(t,e,r){"use strict";e.__esModule=!0;var n=0,a=0,o=0,u=[],i={},s=[],l=[],c=function(t,e,r){var n=e.indexOf(t),a=r.indexOf(t);-1===n&&e.push(t),a>-1&&r.splice(a,1)},f=function(t,e){var r=t?1:-1;a+=r,e||(o+=r)};e["default"]={activeTasks:i,activate:function(t,e){i[t]=e,e.isActive=!0,c(t,s,l),e.onActivate&&e.onActivate(e),e.onActivateOnce&&e.onActivateOnce(e)},deactivate:function(t){var e=i[t];e&&(c(t,l,s),e.isActive=!1,e.onDeactivate&&e.onDeactivate(e))},getNonBackgroundRunningCount:function(){return o},getTaskId:function(){return n++},getActiveIds:function(){for(var t=l.length,e=0;t>e;e++){var r=l[e],n=u.indexOf(r),a=i[r];n>-1&&(u.splice(n,1),f(!1,a.isLazy),delete i[r])}l.splice(0,t);for(var o=s.length,e=0;o>e;e++){var r=s[e],n=u.indexOf(r),a=i[r];-1===n&&a&&(a.isPriority?u.unshift(r):u.push(r),a.onActivateLoop&&a.onActivateLoop(),f(!0,a.isLazy))}return s.splice(0,o),u}}}]);
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: popmotion-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 5.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Rich Daley
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-05-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.0.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 4.0.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.12'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.12'
41
+ description: Add popmotion.io (JavaScript motion engine) to the Rails asset pipeline
42
+ email:
43
+ - rich@fishpercolator.co.uk
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - ".rspec"
50
+ - ".travis.yml"
51
+ - CODE_OF_CONDUCT.md
52
+ - Gemfile
53
+ - LICENSE.txt
54
+ - README.md
55
+ - lib/popmotion-rails.rb
56
+ - lib/popmotion-rails/version.rb
57
+ - popmotion-rails.gemspec
58
+ - vendor/assets/javascripts/popmotion.js
59
+ homepage: https://github.com/fishpercolator/popmotion-rails
60
+ licenses:
61
+ - MIT
62
+ metadata: {}
63
+ post_install_message:
64
+ rdoc_options: []
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ requirements: []
78
+ rubyforge_project:
79
+ rubygems_version: 2.5.1
80
+ signing_key:
81
+ specification_version: 4
82
+ summary: Add popmotion.io to the Rails asset pipeline
83
+ test_files: []