creepyface-dance
Advanced tools
Comparing version 7.3.6 to 7.3.7
@@ -1,1 +0,1 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("creepyface")):"function"==typeof define&&define.amd?define(["exports","creepyface"],n):n((e=e||self).creepyfaceDance={},e.creepyface)}(this,function(e,f){"use strict";f=f&&f.hasOwnProperty("default")?f.default:f;var n=1/0,u=9007199254740991,t=17976931348623157e292,r=NaN,o="[object Function]",i="[object GeneratorFunction]",c="[object Symbol]",a=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,p=/^0o[0-7]+$/i,d=/^(?:0|[1-9]\d*)$/,v=parseInt,y=Object.prototype.toString,b=Math.ceil,h=Math.max;function m(e){var n=typeof e;return e&&("object"==n||"function"==n)}function g(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||(n=e)&&"object"==typeof n&&y.call(e)==c;var n}(e))return r;if(m(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=m(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var t=s.test(e);return t||p.test(e)?v(e.slice(2),t?2:8):l.test(e)?r:+e}(e))!==n&&e!==-n?e==e?e:0:(e<0?-1:1)*t:0===e?e:0}var j,w=function(e,n,t){return t&&"number"!=typeof t&&function(e,n,t){if(m(t)){var r=typeof n;return("number"==r?function(e){return null!=e&&function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=u}(e.length)&&!function(e){var n=m(e)?y.call(e):"";return n==o||n==i}(e)}(t)&&function(e,n){return(n=null==n?u:n)&&("number"==typeof e||d.test(e))&&-1<e&&e%1==0&&e<n}(n,t.length):"string"==r&&n in t)&&function(e,n){return e===n||e!=e&&n!=n}(t[n],e)}}(e,n,t)&&(n=t=void 0),e=g(e),void 0===n?(n=e,e=0):n=g(n),function(e,n,t,r){for(var u=-1,o=h(b((n-e)/(t||1)),0),i=Array(o);o--;)i[r?o:++u]=e,e+=t;return i}(e,n,t=void 0===t?e<n?1:-1:g(t),j)},O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},x=9007199254740991,P="[object Arguments]",T="[object Function]",E="[object GeneratorFunction]",F="object"==typeof O&&O&&O.Object===Object&&O,M="object"==typeof self&&self&&self.Object===Object&&self,S=F||M||Function("return this")();function $(e,n){for(var t=-1,r=n.length,u=e.length;++t<r;)e[u+t]=n[t];return e}var A=Object.prototype,L=A.hasOwnProperty,I=A.toString,B=S.Symbol,C=A.propertyIsEnumerable,G=B?B.isConcatSpreadable:void 0;function N(e){return _(e)||function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=x}(e.length)&&!function(e){var n=function(e){var n=typeof e;return e&&("object"==n||"function"==n)}(e)?I.call(e):"";return n==T||n==E}(e)}(e)}(n=e)&&L.call(n,"callee")&&(!C.call(n,"callee")||I.call(n)==P)||!!(G&&e&&e[G]);var n}var _=Array.isArray;var k=function(e){return(e?e.length:0)?function e(n,t,r,u,o){var i=-1,c=n.length;for(r=r||N,o=o||[];++i<c;){var f=n[i];0<t&&r(f)?1<t?e(f,t-1,r,u,o):$(o,f):u||(o[o.length]=f)}return o}(e,1):[]},q=["n","ne","e","se","s","sw","w","nw"];function z(t,e,r,u){function n(){function e(){return u(n++)}var n=t.currentTime<=r?0:Math.ceil((t.currentTime-r)/i);o=setTimeout(function(){e(),o=setInterval(e,1e3*i)},1e3*(r+n*i-t.currentTime))}var o,i=60/e;t.addEventListener("pause",function(){return clearTimeout(o)}),t.addEventListener("playing",function(){t.addEventListener("timeupdate",function e(){n(),t.removeEventListener("timeupdate",e)})}),t.paused||n()}var D={repeat:function(n){return function(e){return k(w(n).map(function(){return e}))}},intercalate:function(n,t){return w(2*n.length).map(function(e){return e%2?t:n[Math.floor(e/2)]})},circle:function(r,e){var u=1<arguments.length&&void 0!==e&&e;return w(q.length).map(function(e){return q[n=q.indexOf(r)+(u?e:-e),((t=q.length)+n%t)%t];var n,t})}};e.makePointProvider=function(e){var n=e.name,t=e.audio,r=e.bpm,u=e.firstBeat,c=e.choreography,o=[];function i(e,i){function n(o){return e(function(){var e=i.getBoundingClientRect(),n=e.x,t=e.y,r=e.width,u=e.height;switch(c[o]){case"serious":return null;case"crazy":return[n+r/2,t+r/2];case"n":return[n+r/2,t-1];case"ne":return[n+r+1,t-1];case"e":return[n+r+1,t+u/2];case"se":return[n+r+1,t+u+1];case"s":return[n+r/2,t+u+1];case"sw":return[n-1,t+u+1];case"w":return[n-1,t+u/2];case"nw":return[n-1,t-1]}}())}return o.push(n),function(){return o.splice(o.indexOf(n),1)}}return z(t,r,u,function(n){return o.forEach(function(e){return e(n)})}),f.registerPointProvider(n,i),i},e.moves=D,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("creepyface")):"function"==typeof define&&define.amd?define(["exports","creepyface"],n):n((e=e||self).creepyfaceDance={},e.creepyface)}(this,function(e,f){"use strict";f=f&&f.hasOwnProperty("default")?f.default:f;var n=1/0,u=9007199254740991,t=17976931348623157e292,r=NaN,o="[object Function]",i="[object GeneratorFunction]",c="[object Symbol]",a=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,p=/^0o[0-7]+$/i,y=/^(?:0|[1-9]\d*)$/,d=parseInt,v=Object.prototype.toString,b=Math.ceil,h=Math.max;function g(e){var n=typeof e;return e&&("object"==n||"function"==n)}function m(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||(n=e)&&"object"==typeof n&&v.call(e)==c;var n}(e))return r;if(g(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=g(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var t=s.test(e);return t||p.test(e)?d(e.slice(2),t?2:8):l.test(e)?r:+e}(e))!==n&&e!==-n?e==e?e:0:(e<0?-1:1)*t:0===e?e:0}var j,w=function(e,n,t){return t&&"number"!=typeof t&&function(e,n,t){if(g(t)){var r=typeof n;return("number"==r?function(e){return null!=e&&function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=u}(e.length)&&!function(e){var n=g(e)?v.call(e):"";return n==o||n==i}(e)}(t)&&function(e,n){return(n=null==n?u:n)&&("number"==typeof e||y.test(e))&&-1<e&&e%1==0&&e<n}(n,t.length):"string"==r&&n in t)&&function(e,n){return e===n||e!=e&&n!=n}(t[n],e)}}(e,n,t)&&(n=t=void 0),e=m(e),void 0===n?(n=e,e=0):n=m(n),function(e,n,t,r){for(var u=-1,o=h(b((n-e)/(t||1)),0),i=Array(o);o--;)i[r?o:++u]=e,e+=t;return i}(e,n,t=void 0===t?e<n?1:-1:m(t),j)},O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},x=9007199254740991,P="[object Arguments]",T="[object Function]",S="[object GeneratorFunction]",E="object"==typeof O&&O&&O.Object===Object&&O,F="object"==typeof self&&self&&self.Object===Object&&self,M=E||F||Function("return this")();function $(e,n){for(var t=-1,r=n.length,u=e.length;++t<r;)e[u+t]=n[t];return e}var A=Object.prototype,I=A.hasOwnProperty,L=A.toString,B=M.Symbol,C=A.propertyIsEnumerable,G=B?B.isConcatSpreadable:void 0;function N(e){return _(e)||function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=x}(e.length)&&!function(e){var n=function(e){var n=typeof e;return e&&("object"==n||"function"==n)}(e)?L.call(e):"";return n==T||n==S}(e)}(e)}(n=e)&&I.call(n,"callee")&&(!C.call(n,"callee")||L.call(n)==P)||!!(G&&e&&e[G]);var n}var _=Array.isArray;var k=function(e){return(e?e.length:0)?function e(n,t,r,u,o){var i=-1,c=n.length;for(r=r||N,o=o||[];++i<c;){var f=n[i];0<t&&r(f)?1<t?e(f,t-1,r,u,o):$(o,f):u||(o[o.length]=f)}return o}(e,1):[]},q=["n","ne","e","se","s","sw","w","nw"];function z(t,e,r,u){function o(){if(4===t.readyState){var e=t.currentTime<=r?0:Math.ceil((t.currentTime-r)/c),n=function(){return u(e++)};i=setTimeout(function(){n(),i=setInterval(n,1e3*c)},1e3*(r+e*c-t.currentTime))}else t.addEventListener("canplaythrough",o)}var i,c=60/e;t.addEventListener("pause",function(){return clearTimeout(i)}),t.addEventListener("playing",o),t.paused||o()}var D={repeat:function(n){return function(e){return k(w(n).map(function(){return e}))}},intercalate:function(n,t){return w(2*n.length).map(function(e){return e%2?t:n[Math.floor(e/2)]})},circle:function(r,e){var u=1<arguments.length&&void 0!==e&&e;return w(q.length).map(function(e){return q[n=q.indexOf(r)+(u?e:-e),((t=q.length)+n%t)%t];var n,t})}};e.makePointProvider=function(e){var n=e.name,t=e.audio,r=e.bpm,u=e.firstBeat,c=e.choreography,o=[];function i(e,i){function n(o){return e(function(){var e=i.getBoundingClientRect(),n=e.x,t=e.y,r=e.width,u=e.height;switch(c[o]){case"serious":return null;case"crazy":return[n+r/2,t+r/2];case"n":return[n+r/2,t-1];case"ne":return[n+r+1,t-1];case"e":return[n+r+1,t+u/2];case"se":return[n+r+1,t+u+1];case"s":return[n+r/2,t+u+1];case"sw":return[n-1,t+u+1];case"w":return[n-1,t+u/2];case"nw":return[n-1,t-1]}}())}return o.push(n),function(){return o.splice(o.indexOf(n),1)}}return z(t,r,u,function(n){return o.forEach(function(e){return e(n)})}),f.registerPointProvider(n,i),i},e.moves=D,Object.defineProperty(e,"__esModule",{value:!0})}); |
{ | ||
"name": "creepyface-dance", | ||
"version": "7.3.6", | ||
"version": "7.3.7", | ||
"main": "dist/index.js", | ||
@@ -46,3 +46,3 @@ "types": "dist/index.d.ts", | ||
}, | ||
"gitHead": "fc29900f0f4e13d6309faf8fcd525ee9c9e1ab56" | ||
"gitHead": "8f0aef072749eba265f045f238884ce5dc8cd3be" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12588