UNPKG

taobao-lottie-cloudfile-fix

Version:

lottie 动画库适配淘宝小程序的版本。

847 lines (839 loc) 572 kB
!(function (t, e) { for (var r in e) t[r] = e[r]; })( exports, (function (t) { var e = {}; function r(i) { if (e[i]) return e[i].exports; var s = (e[i] = { i: i, l: !1, exports: {} }); return t[i].call(s.exports, s, s.exports, r), (s.l = !0), s.exports; } return ( (r.m = t), (r.c = e), (r.d = function (t, e, i) { r.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: i }); }), (r.r = function (t) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }); }), (r.t = function (t, e) { if ((1 & e && (t = r(t)), 8 & e)) return t; if (4 & e && "object" == typeof t && t && t.__esModule) return t; var i = Object.create(null); if ((r.r(i), Object.defineProperty(i, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t)) for (var s in t) r.d( i, s, function (e) { return t[e]; }.bind(null, s) ); return i; }), (r.n = function (t) { var e = t && t.__esModule ? function () { return t.default; } : function () { return t; }; return r.d(e, "a", e), e; }), (r.o = function (t, e) { return Object.prototype.hasOwnProperty.call(t, e); }), (r.p = ""), r((r.s = 1)) ); })([ function (t, e, r) { "use strict"; function i(t, e) { for (var r = 0; r < e.length; r++) { var i = e[r]; (i.enumerable = i.enumerable || !1), (i.configurable = !0), "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i); } } function s(t, e, r) { return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : (t[e] = r), t; } r.d(e, "b", function () { return P; }), r.d(e, "a", function () { return b; }); var a = new WeakMap(), n = new WeakMap(), o = new WeakMap(), h = new WeakMap(), l = new WeakMap(); function p(t) { if ("function" == typeof this["on".concat(t)]) { for (var e = arguments.length, r = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++) r[i - 1] = arguments[i]; this["on".concat(t)].apply(this, r); } } function f(t) { (this.readyState = t), p.call(this, "readystatechange"); } var m = (function () { function t() { !(function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); })(this, t), s(this, "onabort", null), s(this, "onerror", null), s(this, "onload", null), s(this, "onloadstart", null), s(this, "onprogress", null), s(this, "ontimeout", null), s(this, "onloadend", null), s(this, "onreadystatechange", null), s(this, "readyState", 0), s(this, "response", null), s(this, "responseText", null), s(this, "responseType", ""), s(this, "responseXML", null), s(this, "status", 0), s(this, "statusText", ""), s(this, "upload", {}), s(this, "withCredentials", !1), o.set(this, { "content-type": "application/x-www-form-urlencoded" }), h.set(this, {}); } var e, r, m; return ( (e = t), (r = [ { key: "abort", value: function () { var t = l.get(this); t && t.abort(); }, }, { key: "getAllResponseHeaders", value: function () { var t = h.get(this); return Object.keys(t) .map(function (e) { return "".concat(e, ": ").concat(t[e]); }) .join("\n"); }, }, { key: "getResponseHeader", value: function (t) { return h.get(this)[t]; }, }, { key: "open", value: function (e, r) { n.set(this, e), a.set(this, r), f.call(this, t.OPENED); }, }, { key: "overrideMimeType", value: function () {} }, { key: "send", value: function () { var e = this, r = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ""; if (this.readyState !== t.OPENED) throw new Error("Failed to execute 'send' on 'XMLHttpRequest': The object's state must be OPENED."); my.downloadFile({ url: a.get(this), data: r, success: function (r) { var i = r.apFilePath; my.getFileSystemManager().readFile({ filePath: i, encoding: "utf8", success: function (r) { var i = r.data; if ("string" != typeof i && !(i instanceof ArrayBuffer)) try { i = JSON.stringify(i); } catch (t) {} if ((p.call(e, "loadstart"), f.call(e, t.HEADERS_RECEIVED), f.call(e, t.LOADING), (e.response = i), i instanceof ArrayBuffer)) { e.responseText = ""; for (var s = new Uint8Array(i), a = s.byteLength, n = 0; n < a; n++) e.responseText += String.fromCharCode(s[n]); } else e.responseText = i; f.call(e, t.DONE), p.call(e, "load"), p.call(e, "loadend"); }, fail: function (_r) { } }); }, fail: function (t) { var e = t.errorMessage, r = void 0 === e ? "no errorMessage" : e; -1 !== r.indexOf("abort") ? p.call(this, "abort") : p.call(this, "error", r), p.call(this, "loadend"); }, }); }, }, { key: "setRequestHeader", value: function (t, e) { var r = o.get(this); (r[t] = e), o.set(this, r); }, }, ]) && i(e.prototype, r), m && i(e, m), t ); })(); function c() {} function d(t) { return "canvas" === t ? { getContext: function () { return { fillRect: c }; }, } : "img" === t ? (function (t) { if (void 0 === t.createImage) return {}; var e = t.createImage(); return ( (e.addEventListener = e.addEventListener || function (t, r) { "load" === t ? (e.onload = function () { setTimeout(r, 0); }) : "error" === t && (e.onerror = r); }), e ); })(this) : void 0; } function u(t, e) { return function (r) { return e.call(t, Array.from(r)); }; } function y(t, e) { return function () { return e.call(t); }; } function g(t, e, r) { var i = t[e]; Object.defineProperty(t, e, { get: function () { return r(t, i); }, configurable: !0, enumerable: !0, }); } s(m, "UNSEND", 0), s(m, "OPENED", 1), s(m, "HEADERS_RECEIVED", 2), s(m, "LOADING", 3), s(m, "DONE", 4); var v = my.getSystemInfoSync(), b = {}; (b.window = { devicePixelRatio: v.pixelRatio }), (b.document = b.window.document = { body: {}, createElement: d }), (b.navigator = b.window.navigator = { userAgent: "" }), (XMLHttpRequest = m); var P = function (t) { var e = b.window, r = b.document; // (e.requestAnimationFrame = t.requestAnimationFrame.bind(t)), (e.cancelAnimationFrame = t.cancelAnimationFrame.bind(t)), (r.createElement = d.bind(t)); // 兼容淘宝小部件 t 对象上不存在 requestAnimationFrame 和 cancelAnimationFrame 字段 ( t.requestAnimationFrame && (e.requestAnimationFrame = t.requestAnimationFrame.bind(t))), ( t.cancelAnimationFrame && (e.cancelAnimationFrame = t.cancelAnimationFrame.bind(t))), (r.createElement = d.bind(t)); var i = t.getContext("2d"); i.canvas || (i.canvas = t), g(i, "setLineDash", u), g(i, "fill", y); }; }, function (module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__), function (module) { __webpack_require__.d(__webpack_exports__, "loadAnimation", function () { return loadAnimation; }), __webpack_require__.d(__webpack_exports__, "freeze", function () { return freeze; }), __webpack_require__.d(__webpack_exports__, "unfreeze", function () { return unfreeze; }); var _adapter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); function _typeof(t) { return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; })(t); } __webpack_require__.d(__webpack_exports__, "setup", function () { return _adapter__WEBPACK_IMPORTED_MODULE_0__.b; }); var window = _adapter__WEBPACK_IMPORTED_MODULE_0__.a.window, document = _adapter__WEBPACK_IMPORTED_MODULE_0__.a.document, navigator = _adapter__WEBPACK_IMPORTED_MODULE_0__.a.navigator; function loadAnimation(t) { if ( (["wrapper", "container"].forEach(function (e) { if (e in t) throw new Error("Not support '".concat(e, "' parameter in miniprogram version of lottie.")); }), "string" == typeof t.path && !/^https?\:\/\//.test(t.path)) ) throw new Error("The 'path' is only support http protocol."); if (!t.rendererSettings || !t.rendererSettings.context) throw new Error("Parameter 'rendererSettings.context' should be a CanvasRenderingContext2D."); return (t.renderer = "canvas"), window.lottie.loadAnimation(t); } void 0 !== navigator && (function (t, e) { "object" === _typeof(module) && module.exports ? (module.exports = e(t)) : ((t.lottie = e(t)), (t.bodymovin = t.lottie)); })(window || {}, function (window) { var svgNS = "http://www.w3.org/2000/svg", locationHref = "", initialDefaultFrame = -999999, subframeEnabled = !0, expressionsPlugin, isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), cachedColors = {}, bm_rounder = Math.round, bm_rnd, bm_pow = Math.pow, bm_sqrt = Math.sqrt, bm_abs = Math.abs, bm_floor = Math.floor, bm_max = Math.max, bm_min = Math.min, blitter = 10, BMMath = {}; function ProjectInterface() { return {}; } !(function () { var t, e = [ "abs", "acos", "acosh", "asin", "asinh", "atan", "atanh", "atan2", "ceil", "cbrt", "expm1", "clz32", "cos", "cosh", "exp", "floor", "fround", "hypot", "imul", "log", "log1p", "log2", "log10", "max", "min", "pow", "random", "round", "sign", "sin", "sinh", "sqrt", "tan", "tanh", "trunc", "E", "LN10", "LN2", "LOG10E", "LOG2E", "PI", "SQRT1_2", "SQRT2", ], r = e.length; for (t = 0; t < r; t += 1) BMMath[e[t]] = Math[e[t]]; })(), (BMMath.random = Math.random), (BMMath.abs = function (t) { if ("object" === _typeof(t) && t.length) { var e, r = createSizedArray(t.length), i = t.length; for (e = 0; e < i; e += 1) r[e] = Math.abs(t[e]); return r; } return Math.abs(t); }); var defaultCurveSegments = 150, degToRads = Math.PI / 180, roundCorner = 0.5519; function roundValues(t) { bm_rnd = t ? Math.round : function (t) { return t; }; } function styleDiv(t) { (t.style.position = "absolute"), (t.style.top = 0), (t.style.left = 0), (t.style.display = "block"), (t.style.transformOrigin = t.style.webkitTransformOrigin = "0 0"), (t.style.backfaceVisibility = t.style.webkitBackfaceVisibility = "visible"), (t.style.transformStyle = t.style.webkitTransformStyle = t.style.mozTransformStyle = "preserve-3d"); } function BMEnterFrameEvent(t, e, r, i) { (this.type = t), (this.currentTime = e), (this.totalTime = r), (this.direction = i < 0 ? -1 : 1); } function BMCompleteEvent(t, e) { (this.type = t), (this.direction = e < 0 ? -1 : 1); } function BMCompleteLoopEvent(t, e, r, i) { (this.type = t), (this.currentLoop = r), (this.totalLoops = e), (this.direction = i < 0 ? -1 : 1); } function BMSegmentStartEvent(t, e, r) { (this.type = t), (this.firstFrame = e), (this.totalFrames = r); } function BMDestroyEvent(t, e) { (this.type = t), (this.target = e); } roundValues(!1); var createElementID = ((_count = 0), function () { return "__lottie_element_" + ++_count; }), _count; function HSVtoRGB(t, e, r) { var i, s, a, n, o, h, l, p; switch (((h = r * (1 - e)), (l = r * (1 - (o = 6 * t - (n = Math.floor(6 * t))) * e)), (p = r * (1 - (1 - o) * e)), n % 6)) { case 0: (i = r), (s = p), (a = h); break; case 1: (i = l), (s = r), (a = h); break; case 2: (i = h), (s = r), (a = p); break; case 3: (i = h), (s = l), (a = r); break; case 4: (i = p), (s = h), (a = r); break; case 5: (i = r), (s = h), (a = l); } return [i, s, a]; } function RGBtoHSV(t, e, r) { var i, s = Math.max(t, e, r), a = Math.min(t, e, r), n = s - a, o = 0 === s ? 0 : n / s, h = s / 255; switch (s) { case a: i = 0; break; case t: (i = e - r + n * (e < r ? 6 : 0)), (i /= 6 * n); break; case e: (i = r - t + 2 * n), (i /= 6 * n); break; case r: (i = t - e + 4 * n), (i /= 6 * n); } return [i, o, h]; } function addSaturationToRGB(t, e) { var r = RGBtoHSV(255 * t[0], 255 * t[1], 255 * t[2]); return (r[1] += e), r[1] > 1 ? (r[1] = 1) : r[1] <= 0 && (r[1] = 0), HSVtoRGB(r[0], r[1], r[2]); } function addBrightnessToRGB(t, e) { var r = RGBtoHSV(255 * t[0], 255 * t[1], 255 * t[2]); return (r[2] += e), r[2] > 1 ? (r[2] = 1) : r[2] < 0 && (r[2] = 0), HSVtoRGB(r[0], r[1], r[2]); } function addHueToRGB(t, e) { var r = RGBtoHSV(255 * t[0], 255 * t[1], 255 * t[2]); return (r[0] += e / 360), r[0] > 1 ? (r[0] -= 1) : r[0] < 0 && (r[0] += 1), HSVtoRGB(r[0], r[1], r[2]); } var rgbToHex = (function () { var t, e, r = []; for (t = 0; t < 256; t += 1) (e = t.toString(16)), (r[t] = 1 == e.length ? "0" + e : e); return function (t, e, i) { return t < 0 && (t = 0), e < 0 && (e = 0), i < 0 && (i = 0), "#" + r[t] + r[e] + r[i]; }; })(); function BaseEvent() {} BaseEvent.prototype = { triggerEvent: function (t, e) { if (this._cbs[t]) for (var r = this._cbs[t].length, i = 0; i < r; i++) this._cbs[t][i](e); }, addEventListener: function (t, e) { return ( this._cbs[t] || (this._cbs[t] = []), this._cbs[t].push(e), function () { this.removeEventListener(t, e); }.bind(this) ); }, removeEventListener: function (t, e) { if (e) { if (this._cbs[t]) { for (var r = 0, i = this._cbs[t].length; r < i; ) this._cbs[t][r] === e && (this._cbs[t].splice(r, 1), (r -= 1), (i -= 1)), (r += 1); this._cbs[t].length || (this._cbs[t] = null); } } else this._cbs[t] = null; }, }; var createTypedArray = "function" == typeof Uint8ClampedArray && "function" == typeof Float32Array ? function (t, e) { return "float32" === t ? new Float32Array(e) : "int16" === t ? new Int16Array(e) : "uint8c" === t ? new Uint8ClampedArray(e) : void 0; } : function (t, e) { var r, i = 0, s = []; switch (t) { case "int16": case "uint8c": r = 1; break; default: r = 1.1; } for (i = 0; i < e; i += 1) s.push(r); return s; }; function createSizedArray(t) { return Array.apply(null, { length: t }); } function createTag(t) { return document.createElement(t); } function DynamicPropertyContainer() {} DynamicPropertyContainer.prototype = { addDynamicProperty: function (t) { -1 === this.dynamicProperties.indexOf(t) && (this.dynamicProperties.push(t), this.container.addDynamicProperty(this), (this._isAnimated = !0)); }, iterateDynamicProperties: function () { this._mdf = !1; var t, e = this.dynamicProperties.length; for (t = 0; t < e; t += 1) this.dynamicProperties[t].getValue(), this.dynamicProperties[t]._mdf && (this._mdf = !0); }, initDynamicPropertyContainer: function (t) { (this.container = t), (this.dynamicProperties = []), (this._mdf = !1), (this._isAnimated = !1); }, }; var getBlendMode = ((blendModeEnums = { 0: "source-over", 1: "multiply", 2: "screen", 3: "overlay", 4: "darken", 5: "lighten", 6: "color-dodge", 7: "color-burn", 8: "hard-light", 9: "soft-light", 10: "difference", 11: "exclusion", 12: "hue", 13: "saturation", 14: "color", 15: "luminosity", }), function (t) { return blendModeEnums[t] || ""; }), blendModeEnums, Matrix = (function () { var t = Math.cos, e = Math.sin, r = Math.tan, i = Math.round; function s() { return ( (this.props[0] = 1), (this.props[1] = 0), (this.props[2] = 0), (this.props[3] = 0), (this.props[4] = 0), (this.props[5] = 1), (this.props[6] = 0), (this.props[7] = 0), (this.props[8] = 0), (this.props[9] = 0), (this.props[10] = 1), (this.props[11] = 0), (this.props[12] = 0), (this.props[13] = 0), (this.props[14] = 0), (this.props[15] = 1), this ); } function a(r) { if (0 === r) return this; var i = t(r), s = e(r); return this._t(i, -s, 0, 0, s, i, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); } function n(r) { if (0 === r) return this; var i = t(r), s = e(r); return this._t(1, 0, 0, 0, 0, i, -s, 0, 0, s, i, 0, 0, 0, 0, 1); } function o(r) { if (0 === r) return this; var i = t(r), s = e(r); return this._t(i, 0, s, 0, 0, 1, 0, 0, -s, 0, i, 0, 0, 0, 0, 1); } function h(r) { if (0 === r) return this; var i = t(r), s = e(r); return this._t(i, -s, 0, 0, s, i, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); } function l(t, e) { return this._t(1, e, t, 1, 0, 0); } function p(t, e) { return this.shear(r(t), r(e)); } function f(i, s) { var a = t(s), n = e(s); return this._t(a, n, 0, 0, -n, a, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, r(i), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(a, -n, 0, 0, n, a, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); } function m(t, e, r) { return r || 0 === r || (r = 1), 1 === t && 1 === e && 1 === r ? this : this._t(t, 0, 0, 0, 0, e, 0, 0, 0, 0, r, 0, 0, 0, 0, 1); } function c(t, e, r, i, s, a, n, o, h, l, p, f, m, c, d, u) { return ( (this.props[0] = t), (this.props[1] = e), (this.props[2] = r), (this.props[3] = i), (this.props[4] = s), (this.props[5] = a), (this.props[6] = n), (this.props[7] = o), (this.props[8] = h), (this.props[9] = l), (this.props[10] = p), (this.props[11] = f), (this.props[12] = m), (this.props[13] = c), (this.props[14] = d), (this.props[15] = u), this ); } function d(t, e, r) { return (r = r || 0), 0 !== t || 0 !== e || 0 !== r ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, t, e, r, 1) : this; } function u(t, e, r, i, s, a, n, o, h, l, p, f, m, c, d, u) { var y = this.props; if (1 === t && 0 === e && 0 === r && 0 === i && 0 === s && 1 === a && 0 === n && 0 === o && 0 === h && 0 === l && 1 === p && 0 === f) return (y[12] = y[12] * t + y[15] * m), (y[13] = y[13] * a + y[15] * c), (y[14] = y[14] * p + y[15] * d), (y[15] = y[15] * u), (this._identityCalculated = !1), this; var g = y[0], v = y[1], b = y[2], P = y[3], _ = y[4], x = y[5], S = y[6], T = y[7], E = y[8], C = y[9], A = y[10], k = y[11], D = y[12], M = y[13], I = y[14], w = y[15]; return ( (y[0] = g * t + v * s + b * h + P * m), (y[1] = g * e + v * a + b * l + P * c), (y[2] = g * r + v * n + b * p + P * d), (y[3] = g * i + v * o + b * f + P * u), (y[4] = _ * t + x * s + S * h + T * m), (y[5] = _ * e + x * a + S * l + T * c), (y[6] = _ * r + x * n + S * p + T * d), (y[7] = _ * i + x * o + S * f + T * u), (y[8] = E * t + C * s + A * h + k * m), (y[9] = E * e + C * a + A * l + k * c), (y[10] = E * r + C * n + A * p + k * d), (y[11] = E * i + C * o + A * f + k * u), (y[12] = D * t + M * s + I * h + w * m), (y[13] = D * e + M * a + I * l + w * c), (y[14] = D * r + M * n + I * p + w * d), (y[15] = D * i + M * o + I * f + w * u), (this._identityCalculated = !1), this ); } function y() { return ( this._identityCalculated || ((this._identity = !( 1 !== this.props[0] || 0 !== this.props[1] || 0 !== this.props[2] || 0 !== this.props[3] || 0 !== this.props[4] || 1 !== this.props[5] || 0 !== this.props[6] || 0 !== this.props[7] || 0 !== this.props[8] || 0 !== this.props[9] || 1 !== this.props[10] || 0 !== this.props[11] || 0 !== this.props[12] || 0 !== this.props[13] || 0 !== this.props[14] || 1 !== this.props[15] )), (this._identityCalculated = !0)), this._identity ); } function g(t) { for (var e = 0; e < 16; ) { if (t.props[e] !== this.props[e]) return !1; e += 1; } return !0; } function v(t) { var e; for (e = 0; e < 16; e += 1) t.props[e] = this.props[e]; } function b(t) { var e; for (e = 0; e < 16; e += 1) this.props[e] = t[e]; } function P(t, e, r) { return { x: t * this.props[0] + e * this.props[4] + r * this.props[8] + this.props[12], y: t * this.props[1] + e * this.props[5] + r * this.props[9] + this.props[13], z: t * this.props[2] + e * this.props[6] + r * this.props[10] + this.props[14], }; } function _(t, e, r) { return t * this.props[0] + e * this.props[4] + r * this.props[8] + this.props[12]; } function x(t, e, r) { return t * this.props[1] + e * this.props[5] + r * this.props[9] + this.props[13]; } function S(t, e, r) { return t * this.props[2] + e * this.props[6] + r * this.props[10] + this.props[14]; } function T(t) { var e = this.props[0] * this.props[5] - this.props[1] * this.props[4], r = this.props[5] / e, i = -this.props[1] / e, s = -this.props[4] / e, a = this.props[0] / e, n = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / e, o = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / e; return [t[0] * r + t[1] * s + n, t[0] * i + t[1] * a + o, 0]; } function E(t) { var e, r = t.length, i = []; for (e = 0; e < r; e += 1) i[e] = T(t[e]); return i; } function C(t, e, r) { var i = createTypedArray("float32", 6); if (this.isIdentity()) (i[0] = t[0]), (i[1] = t[1]), (i[2] = e[0]), (i[3] = e[1]), (i[4] = r[0]), (i[5] = r[1]); else { var s = this.props[0], a = this.props[1], n = this.props[4], o = this.props[5], h = this.props[12], l = this.props[13]; (i[0] = t[0] * s + t[1] * n + h), (i[1] = t[0] * a + t[1] * o + l), (i[2] = e[0] * s + e[1] * n + h), (i[3] = e[0] * a + e[1] * o + l), (i[4] = r[0] * s + r[1] * n + h), (i[5] = r[0] * a + r[1] * o + l); } return i; } function A(t, e, r) { return this.isIdentity() ? [t, e, r] : [ t * this.props[0] + e * this.props[4] + r * this.props[8] + this.props[12], t * this.props[1] + e * this.props[5] + r * this.props[9] + this.props[13], t * this.props[2] + e * this.props[6] + r * this.props[10] + this.props[14], ]; } function k(t, e) { if (this.isIdentity()) return t + "," + e; var r = this.props; return Math.round(100 * (t * r[0] + e * r[4] + r[12])) / 100 + "," + Math.round(100 * (t * r[1] + e * r[5] + r[13])) / 100; } function D() { for (var t = 0, e = this.props, r = "matrix3d("; t < 16; ) (r += i(1e4 * e[t]) / 1e4), (r += 15 === t ? ")" : ","), (t += 1); return r; } function M(t) { return (t < 1e-6 && t > 0) || (t > -1e-6 && t < 0) ? i(1e4 * t) / 1e4 : t; } function I() { var t = this.props; return "matrix(" + M(t[0]) + "," + M(t[1]) + "," + M(t[4]) + "," + M(t[5]) + "," + M(t[12]) + "," + M(t[13]) + ")"; } return function () { (this.reset = s), (this.rotate = a), (this.rotateX = n), (this.rotateY = o), (this.rotateZ = h), (this.skew = p), (this.skewFromAxis = f), (this.shear = l), (this.scale = m), (this.setTransform = c), (this.translate = d), (this.transform = u), (this.applyToPoint = P), (this.applyToX = _), (this.applyToY = x), (this.applyToZ = S), (this.applyToPointArray = A),