chbim-plugins 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chbim-plugins.js +796 -749
- package/chbim-plugins.umd.cjs +2 -2
- package/package.json +1 -1
- package/style.css +1 -1
package/chbim-plugins.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
for (const [
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
},
|
|
1
|
+
import { openBlock as Ce, createElementBlock as Me, normalizeClass as Ie, renderSlot as Ge, defineComponent as Xe, ref as Ae, onMounted as Le, createElementVNode as Jt, toDisplayString as He, createApp as je } from "vue";
|
|
2
|
+
const Qe = (N, J) => {
|
|
3
|
+
const Q = N.__vccOpts || N;
|
|
4
|
+
for (const [nt, E] of J)
|
|
5
|
+
Q[nt] = E;
|
|
6
|
+
return Q;
|
|
7
|
+
}, Je = {
|
|
8
8
|
name: "MukButton"
|
|
9
|
-
},
|
|
9
|
+
}, Ke = /* @__PURE__ */ Object.assign(Je, {
|
|
10
10
|
props: {
|
|
11
11
|
size: {
|
|
12
12
|
type: String,
|
|
@@ -17,15 +17,15 @@ const Je = (Y, Q) => {
|
|
|
17
17
|
default: "default"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
return (
|
|
22
|
-
class:
|
|
20
|
+
setup(N) {
|
|
21
|
+
return (J, Q) => (Ce(), Me("button", {
|
|
22
|
+
class: Ie(["muk-btn", [N.size, N.type]])
|
|
23
23
|
}, [
|
|
24
|
-
|
|
24
|
+
Ge(J.$slots, "default", {}, void 0, !0)
|
|
25
25
|
], 2));
|
|
26
26
|
}
|
|
27
|
-
}),
|
|
28
|
-
class
|
|
27
|
+
}), ti = /* @__PURE__ */ Qe(Ke, [["__scopeId", "data-v-0e6d93cd"]]);
|
|
28
|
+
class ei {
|
|
29
29
|
constructor() {
|
|
30
30
|
this.dom = {
|
|
31
31
|
mask: document.querySelector(".js-mask"),
|
|
@@ -150,40 +150,40 @@ class ii {
|
|
|
150
150
|
document.querySelector(".mask-line.js-mask-line") && document.querySelector(".mask-line.js-mask-line").removeAttribute("style"), document.querySelector(".mask-line__inner.js-mask-line") && document.querySelector(".mask-line__inner.js-mask-line").removeAttribute("style"), this.createTimeline();
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
const
|
|
153
|
+
const ii = { class: "mask js-mask" }, si = /* @__PURE__ */ Jt("div", { class: "mask__slice js-mask__slice" }, null, -1), ri = /* @__PURE__ */ Jt("div", { class: "mask__slice js-mask__slice" }, null, -1), ni = /* @__PURE__ */ Jt("div", { class: "mask__slice js-mask__slice" }, null, -1), oi = { class: "mask__inner" }, ai = { class: "logo logo--mask" }, li = {
|
|
154
154
|
class: "js-logo",
|
|
155
155
|
style: { color: "#fff" }
|
|
156
|
-
},
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
], -1),
|
|
156
|
+
}, hi = /* @__PURE__ */ Jt("div", { class: "mask-line js-mask-line" }, [
|
|
157
|
+
/* @__PURE__ */ Jt("div", { class: "mask-line__inner js-mask-line" })
|
|
158
|
+
], -1), _i = {
|
|
159
159
|
name: "BimCutscenes"
|
|
160
|
-
},
|
|
161
|
-
...
|
|
160
|
+
}, ui = /* @__PURE__ */ Xe({
|
|
161
|
+
..._i,
|
|
162
162
|
props: {
|
|
163
163
|
text: {
|
|
164
164
|
type: String,
|
|
165
165
|
default: "CHBIM云平台"
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
|
-
setup(
|
|
169
|
-
const
|
|
170
|
-
|
|
171
|
-
},
|
|
172
|
-
|
|
168
|
+
setup(N, { expose: J }) {
|
|
169
|
+
const Q = Ae(null), nt = () => {
|
|
170
|
+
Q.value === null && (Q.value = new ei());
|
|
171
|
+
}, E = () => {
|
|
172
|
+
nt(), Q.value.continuation();
|
|
173
173
|
};
|
|
174
|
-
return
|
|
175
|
-
|
|
176
|
-
}),
|
|
177
|
-
continuation:
|
|
178
|
-
}), (
|
|
174
|
+
return Le(() => {
|
|
175
|
+
nt();
|
|
176
|
+
}), J({
|
|
177
|
+
continuation: E
|
|
178
|
+
}), (Y, $) => (Ce(), Me("div", ii, [
|
|
179
|
+
si,
|
|
179
180
|
ri,
|
|
180
181
|
ni,
|
|
181
|
-
oi,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
oe("p", hi, Ge(Y.text), 1)
|
|
182
|
+
Jt("div", oi, [
|
|
183
|
+
Jt("figure", ai, [
|
|
184
|
+
Jt("p", li, He(N.text), 1)
|
|
185
185
|
]),
|
|
186
|
-
|
|
186
|
+
hi
|
|
187
187
|
])
|
|
188
188
|
]));
|
|
189
189
|
}
|
|
@@ -206,23 +206,23 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
206
206
|
Dt._gsDefine(
|
|
207
207
|
"TweenMax",
|
|
208
208
|
["core.Animation", "core.SimpleTimeline", "TweenLite"],
|
|
209
|
-
function(
|
|
210
|
-
var
|
|
209
|
+
function(N, J, Q) {
|
|
210
|
+
var nt = function(v) {
|
|
211
211
|
var P, e = [], t = v.length;
|
|
212
212
|
for (P = 0; P !== t; e.push(v[P++]))
|
|
213
213
|
;
|
|
214
214
|
return e;
|
|
215
|
-
},
|
|
215
|
+
}, E = function(v, P, e) {
|
|
216
216
|
var t, _, n = v.cycle;
|
|
217
217
|
for (t in n)
|
|
218
218
|
_ = n[t], v[t] = typeof _ == "function" ? _(e, P[e]) : _[e % _.length];
|
|
219
219
|
delete v.cycle;
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
},
|
|
223
|
-
|
|
224
|
-
return this._yoyo = this.vars.yoyo === !0 || !!this.vars.yoyoEase, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._yoyoEase = null, this._uncache(!0),
|
|
225
|
-
},
|
|
220
|
+
}, Y = function(v, P, e) {
|
|
221
|
+
Q.call(this, v, P, e), this._cycle = 0, this._yoyo = this.vars.yoyo === !0 || !!this.vars.yoyoEase, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._repeat && this._uncache(!0), this.render = Y.prototype.render;
|
|
222
|
+
}, $ = 1e-10, dt = Q._internals, S = dt.isSelector, M = dt.isArray, b = Y.prototype = Q.to({}, 0.1, {}), F = [];
|
|
223
|
+
Y.version = "2.0.2", b.constructor = Y, b.kill()._gc = !1, Y.killTweensOf = Y.killDelayedCallsTo = Q.killTweensOf, Y.getTweensOf = Q.getTweensOf, Y.lagSmoothing = Q.lagSmoothing, Y.ticker = Q.ticker, Y.render = Q.render, b.invalidate = function() {
|
|
224
|
+
return this._yoyo = this.vars.yoyo === !0 || !!this.vars.yoyoEase, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._yoyoEase = null, this._uncache(!0), Q.prototype.invalidate.call(this);
|
|
225
|
+
}, b.updateTo = function(v, P) {
|
|
226
226
|
var e, t = this.ratio, _ = this.vars.immediateRender || v.immediateRender;
|
|
227
227
|
P && this._startTime < this._timeline._time && (this._startTime = this._timeline._time, this._uncache(!1), this._gc ? this._enabled(!0, !1) : this._timeline.insert(this, this._startTime - this._delay));
|
|
228
228
|
for (e in v)
|
|
@@ -230,7 +230,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
230
230
|
if (this._initted || _) {
|
|
231
231
|
if (P)
|
|
232
232
|
this._initted = !1, _ && this.render(0, !0, !0);
|
|
233
|
-
else if (this._gc && this._enabled(!0, !1), this._notifyPluginsOfEnabled && this._firstPT &&
|
|
233
|
+
else if (this._gc && this._enabled(!0, !1), this._notifyPluginsOfEnabled && this._firstPT && Q._onPluginEvent("_onDisable", this), this._time / this._duration > 0.998) {
|
|
234
234
|
var n = this._totalTime;
|
|
235
235
|
this.render(0, !0, !1), this._initted = !1, this.render(n, !0, !1);
|
|
236
236
|
} else if (this._initted = !1, this._init(), this._time > 0 || _)
|
|
@@ -238,51 +238,51 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
238
238
|
g = T.s + T.c, T.c *= p, T.s = g - T.c, T = T._next;
|
|
239
239
|
}
|
|
240
240
|
return this;
|
|
241
|
-
},
|
|
241
|
+
}, b.render = function(v, P, e) {
|
|
242
242
|
this._initted || this._duration === 0 && this.vars.repeat && this.invalidate();
|
|
243
|
-
var t, _, n, g, p, T, O, D, R, Z = this._dirty ? this.totalDuration() : this._totalDuration,
|
|
244
|
-
if (v >= Z - 1e-7 && v >= 0 ? (this._totalTime = Z, this._cycle = this._repeat, this._yoyo && 1 & this._cycle ? (this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0) : (this._time = mt, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1), this._reversed || (t = !0, _ = "onComplete", e = e || this._timeline.autoRemoveChildren), mt === 0 && (this._initted || !this.vars.lazy || e) && (this._startTime === this._timeline._duration && (v = 0), (0 >
|
|
243
|
+
var t, _, n, g, p, T, O, D, R, Z = this._dirty ? this.totalDuration() : this._totalDuration, V = this._time, tt = this._totalTime, et = this._cycle, mt = this._duration, at = this._rawPrevTime;
|
|
244
|
+
if (v >= Z - 1e-7 && v >= 0 ? (this._totalTime = Z, this._cycle = this._repeat, this._yoyo && 1 & this._cycle ? (this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0) : (this._time = mt, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1), this._reversed || (t = !0, _ = "onComplete", e = e || this._timeline.autoRemoveChildren), mt === 0 && (this._initted || !this.vars.lazy || e) && (this._startTime === this._timeline._duration && (v = 0), (0 > at || 0 >= v && v >= -1e-7 || at === $ && this.data !== "isPause") && at !== v && (e = !0, at > $ && (_ = "onReverseComplete")), this._rawPrevTime = D = !P || v || at === v ? v : $)) : 1e-7 > v ? (this._totalTime = this._time = this._cycle = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (tt !== 0 || mt === 0 && at > 0) && (_ = "onReverseComplete", t = this._reversed), 0 > v && (this._active = !1, mt === 0 && (this._initted || !this.vars.lazy || e) && (at >= 0 && (e = !0), this._rawPrevTime = D = !P || v || at === v ? v : $)), this._initted || (e = !0)) : (this._totalTime = this._time = v, this._repeat !== 0 && (g = mt + this._repeatDelay, this._cycle = this._totalTime / g >> 0, this._cycle !== 0 && this._cycle === this._totalTime / g && v >= tt && this._cycle--, this._time = this._totalTime - this._cycle * g, this._yoyo && 1 & this._cycle && (this._time = mt - this._time, R = this._yoyoEase || this.vars.yoyoEase, R && (this._yoyoEase || (R !== !0 || this._initted ? this._yoyoEase = R = R === !0 ? this._ease : R instanceof Ease ? R : Ease.map[R] : (R = this.vars.ease, this._yoyoEase = R = R ? R instanceof Ease ? R : typeof R == "function" ? new Ease(R, this.vars.easeParams) : Ease.map[R] || Q.defaultEase : Q.defaultEase)), this.ratio = R ? 1 - R.getRatio((mt - this._time) / mt) : 0)), this._time > mt ? this._time = mt : this._time < 0 && (this._time = 0)), this._easeType && !R ? (p = this._time / mt, T = this._easeType, O = this._easePower, (T === 1 || T === 3 && p >= 0.5) && (p = 1 - p), T === 3 && (p *= 2), O === 1 ? p *= p : O === 2 ? p *= p * p : O === 3 ? p *= p * p * p : O === 4 && (p *= p * p * p * p), T === 1 ? this.ratio = 1 - p : T === 2 ? this.ratio = p : this._time / mt < 0.5 ? this.ratio = p / 2 : this.ratio = 1 - p / 2) : R || (this.ratio = this._ease.getRatio(this._time / mt))), V === this._time && !e && et === this._cycle)
|
|
245
245
|
return void (tt !== this._totalTime && this._onUpdate && (P || this._callback("onUpdate")));
|
|
246
246
|
if (!this._initted) {
|
|
247
247
|
if (this._init(), !this._initted || this._gc)
|
|
248
248
|
return;
|
|
249
249
|
if (!e && this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration))
|
|
250
|
-
return this._time =
|
|
250
|
+
return this._time = V, this._totalTime = tt, this._rawPrevTime = at, this._cycle = et, dt.lazyTweens.push(this), void (this._lazy = [v, P]);
|
|
251
251
|
!this._time || t || R ? t && this._ease._calcEnd && !R && (this.ratio = this._ease.getRatio(this._time === 0 ? 0 : 1)) : this.ratio = this._ease.getRatio(this._time / mt);
|
|
252
252
|
}
|
|
253
|
-
for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !==
|
|
253
|
+
for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== V && v >= 0 && (this._active = !0), tt === 0 && (this._initted === 2 && v > 0 && this._init(), this._startAt && (v >= 0 ? this._startAt.render(v, !0, e) : _ || (_ = "_dummyGS")), this.vars.onStart && (this._totalTime !== 0 || mt === 0) && (P || this._callback("onStart"))), n = this._firstPT; n; )
|
|
254
254
|
n.f ? n.t[n.p](n.c * this.ratio + n.s) : n.t[n.p] = n.c * this.ratio + n.s, n = n._next;
|
|
255
|
-
this._onUpdate && (0 > v && this._startAt && this._startTime && this._startAt.render(v, !0, e), P || (this._totalTime !== tt || _) && this._callback("onUpdate")), this._cycle !== et && (P || this._gc || this.vars.onRepeat && this._callback("onRepeat")), _ && (!this._gc || e) && (0 > v && this._startAt && !this._onUpdate && this._startTime && this._startAt.render(v, !0, e), t && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !P && this.vars[_] && this._callback(_), mt === 0 && this._rawPrevTime ===
|
|
256
|
-
},
|
|
257
|
-
return new
|
|
258
|
-
},
|
|
259
|
-
return e.runBackwards = !0, e.immediateRender = e.immediateRender != 0, new
|
|
260
|
-
},
|
|
261
|
-
return t.startAt = e, t.immediateRender = t.immediateRender != 0 && e.immediateRender != 0, new
|
|
262
|
-
},
|
|
255
|
+
this._onUpdate && (0 > v && this._startAt && this._startTime && this._startAt.render(v, !0, e), P || (this._totalTime !== tt || _) && this._callback("onUpdate")), this._cycle !== et && (P || this._gc || this.vars.onRepeat && this._callback("onRepeat")), _ && (!this._gc || e) && (0 > v && this._startAt && !this._onUpdate && this._startTime && this._startAt.render(v, !0, e), t && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !P && this.vars[_] && this._callback(_), mt === 0 && this._rawPrevTime === $ && D !== $ && (this._rawPrevTime = 0));
|
|
256
|
+
}, Y.to = function(v, P, e) {
|
|
257
|
+
return new Y(v, P, e);
|
|
258
|
+
}, Y.from = function(v, P, e) {
|
|
259
|
+
return e.runBackwards = !0, e.immediateRender = e.immediateRender != 0, new Y(v, P, e);
|
|
260
|
+
}, Y.fromTo = function(v, P, e, t) {
|
|
261
|
+
return t.startAt = e, t.immediateRender = t.immediateRender != 0 && e.immediateRender != 0, new Y(v, P, t);
|
|
262
|
+
}, Y.staggerTo = Y.allTo = function(v, P, e, t, _, n, g) {
|
|
263
263
|
t = t || 0;
|
|
264
|
-
var p, T, O, D, R = 0, Z = [],
|
|
264
|
+
var p, T, O, D, R = 0, Z = [], V = function() {
|
|
265
265
|
e.onComplete && e.onComplete.apply(e.onCompleteScope || this, arguments), _.apply(g || e.callbackScope || this, n || F);
|
|
266
266
|
}, tt = e.cycle, et = e.startAt && e.startAt.cycle;
|
|
267
|
-
for (M(v) || (typeof v == "string" && (v =
|
|
267
|
+
for (M(v) || (typeof v == "string" && (v = Q.selector(v) || v), S(v) && (v = nt(v))), v = v || [], 0 > t && (v = nt(v), v.reverse(), t *= -1), p = v.length - 1, O = 0; p >= O; O++) {
|
|
268
268
|
T = {};
|
|
269
269
|
for (D in e)
|
|
270
270
|
T[D] = e[D];
|
|
271
|
-
if (tt && (
|
|
271
|
+
if (tt && (E(T, v, O), T.duration != null && (P = T.duration, delete T.duration)), et) {
|
|
272
272
|
et = T.startAt = {};
|
|
273
273
|
for (D in e.startAt)
|
|
274
274
|
et[D] = e.startAt[D];
|
|
275
|
-
|
|
275
|
+
E(T.startAt, v, O);
|
|
276
276
|
}
|
|
277
|
-
T.delay = R + (T.delay || 0), O === p && _ && (T.onComplete =
|
|
277
|
+
T.delay = R + (T.delay || 0), O === p && _ && (T.onComplete = V), Z[O] = new Y(v[O], P, T), R += t;
|
|
278
278
|
}
|
|
279
279
|
return Z;
|
|
280
|
-
},
|
|
281
|
-
return e.runBackwards = !0, e.immediateRender = e.immediateRender != 0,
|
|
282
|
-
},
|
|
283
|
-
return t.startAt = e, t.immediateRender = t.immediateRender != 0 && e.immediateRender != 0,
|
|
284
|
-
},
|
|
285
|
-
return new
|
|
280
|
+
}, Y.staggerFrom = Y.allFrom = function(v, P, e, t, _, n, g) {
|
|
281
|
+
return e.runBackwards = !0, e.immediateRender = e.immediateRender != 0, Y.staggerTo(v, P, e, t, _, n, g);
|
|
282
|
+
}, Y.staggerFromTo = Y.allFromTo = function(v, P, e, t, _, n, g, p) {
|
|
283
|
+
return t.startAt = e, t.immediateRender = t.immediateRender != 0 && e.immediateRender != 0, Y.staggerTo(v, P, t, _, n, g, p);
|
|
284
|
+
}, Y.delayedCall = function(v, P, e, t, _) {
|
|
285
|
+
return new Y(P, 0, {
|
|
286
286
|
delay: v,
|
|
287
287
|
onComplete: P,
|
|
288
288
|
onCompleteParams: e,
|
|
@@ -293,29 +293,29 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
293
293
|
useFrames: _,
|
|
294
294
|
overwrite: 0
|
|
295
295
|
});
|
|
296
|
-
},
|
|
297
|
-
return new
|
|
298
|
-
},
|
|
299
|
-
return
|
|
296
|
+
}, Y.set = function(v, P) {
|
|
297
|
+
return new Y(v, 0, P);
|
|
298
|
+
}, Y.isTweening = function(v) {
|
|
299
|
+
return Q.getTweensOf(v, !0).length > 0;
|
|
300
300
|
};
|
|
301
|
-
var
|
|
301
|
+
var G = function(v, P) {
|
|
302
302
|
for (var e = [], t = 0, _ = v._first; _; )
|
|
303
|
-
_ instanceof
|
|
303
|
+
_ instanceof Q ? e[t++] = _ : (P && (e[t++] = _), e = e.concat(G(_, P)), t = e.length), _ = _._next;
|
|
304
304
|
return e;
|
|
305
|
-
}, st =
|
|
306
|
-
return
|
|
305
|
+
}, st = Y.getAllTweens = function(v) {
|
|
306
|
+
return G(N._rootTimeline, v).concat(G(N._rootFramesTimeline, v));
|
|
307
307
|
};
|
|
308
|
-
|
|
308
|
+
Y.killAll = function(v, P, e, t) {
|
|
309
309
|
P == null && (P = !0), e == null && (e = !0);
|
|
310
310
|
var _, n, g, p = st(t != 0), T = p.length, O = P && e && t;
|
|
311
311
|
for (g = 0; T > g; g++)
|
|
312
|
-
n = p[g], (O || n instanceof
|
|
313
|
-
},
|
|
312
|
+
n = p[g], (O || n instanceof J || (_ = n.target === n.vars.onComplete) && e || P && !_) && (v ? n.totalTime(n._reversed ? 0 : n.totalDuration()) : n._enabled(!1, !1));
|
|
313
|
+
}, Y.killChildTweensOf = function(v, P) {
|
|
314
314
|
if (v != null) {
|
|
315
315
|
var e, t, _, n, g, p = dt.tweenLookup;
|
|
316
|
-
if (typeof v == "string" && (v =
|
|
316
|
+
if (typeof v == "string" && (v = Q.selector(v) || v), S(v) && (v = nt(v)), M(v))
|
|
317
317
|
for (n = v.length; --n > -1; )
|
|
318
|
-
|
|
318
|
+
Y.killChildTweensOf(v[n], P);
|
|
319
319
|
else {
|
|
320
320
|
e = [];
|
|
321
321
|
for (_ in p)
|
|
@@ -329,50 +329,50 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
329
329
|
var L = function(v, P, e, t) {
|
|
330
330
|
P = P !== !1, e = e !== !1, t = t !== !1;
|
|
331
331
|
for (var _, n, g = st(t), p = P && e && t, T = g.length; --T > -1; )
|
|
332
|
-
n = g[T], (p || n instanceof
|
|
332
|
+
n = g[T], (p || n instanceof J || (_ = n.target === n.vars.onComplete) && e || P && !_) && n.paused(v);
|
|
333
333
|
};
|
|
334
|
-
return
|
|
334
|
+
return Y.pauseAll = function(v, P, e) {
|
|
335
335
|
L(!0, v, P, e);
|
|
336
|
-
},
|
|
336
|
+
}, Y.resumeAll = function(v, P, e) {
|
|
337
337
|
L(!1, v, P, e);
|
|
338
|
-
},
|
|
339
|
-
var P =
|
|
340
|
-
return arguments.length ? (v = v ||
|
|
341
|
-
},
|
|
338
|
+
}, Y.globalTimeScale = function(v) {
|
|
339
|
+
var P = N._rootTimeline, e = Q.ticker.time;
|
|
340
|
+
return arguments.length ? (v = v || $, P._startTime = e - (e - P._startTime) * P._timeScale / v, P = N._rootFramesTimeline, e = Q.ticker.frame, P._startTime = e - (e - P._startTime) * P._timeScale / v, P._timeScale = N._rootTimeline._timeScale = v, v) : P._timeScale;
|
|
341
|
+
}, b.progress = function(v, P) {
|
|
342
342
|
return arguments.length ? this.totalTime(
|
|
343
343
|
this.duration() * (this._yoyo && 1 & this._cycle ? 1 - v : v) + this._cycle * (this._duration + this._repeatDelay),
|
|
344
344
|
P
|
|
345
345
|
) : this._time / this.duration();
|
|
346
|
-
},
|
|
346
|
+
}, b.totalProgress = function(v, P) {
|
|
347
347
|
return arguments.length ? this.totalTime(this.totalDuration() * v, P) : this._totalTime / this.totalDuration();
|
|
348
|
-
},
|
|
348
|
+
}, b.time = function(v, P) {
|
|
349
349
|
return arguments.length ? (this._dirty && this.totalDuration(), v > this._duration && (v = this._duration), this._yoyo && 1 & this._cycle ? v = this._duration - v + this._cycle * (this._duration + this._repeatDelay) : this._repeat !== 0 && (v += this._cycle * (this._duration + this._repeatDelay)), this.totalTime(v, P)) : this._time;
|
|
350
|
-
},
|
|
351
|
-
return arguments.length ?
|
|
352
|
-
},
|
|
350
|
+
}, b.duration = function(v) {
|
|
351
|
+
return arguments.length ? N.prototype.duration.call(this, v) : this._duration;
|
|
352
|
+
}, b.totalDuration = function(v) {
|
|
353
353
|
return arguments.length ? this._repeat === -1 ? this : this.duration(
|
|
354
354
|
(v - this._repeat * this._repeatDelay) / (this._repeat + 1)
|
|
355
355
|
) : (this._dirty && (this._totalDuration = this._repeat === -1 ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat, this._dirty = !1), this._totalDuration);
|
|
356
|
-
},
|
|
356
|
+
}, b.repeat = function(v) {
|
|
357
357
|
return arguments.length ? (this._repeat = v, this._uncache(!0)) : this._repeat;
|
|
358
|
-
},
|
|
358
|
+
}, b.repeatDelay = function(v) {
|
|
359
359
|
return arguments.length ? (this._repeatDelay = v, this._uncache(!0)) : this._repeatDelay;
|
|
360
|
-
},
|
|
360
|
+
}, b.yoyo = function(v) {
|
|
361
361
|
return arguments.length ? (this._yoyo = v, this) : this._yoyo;
|
|
362
|
-
},
|
|
362
|
+
}, Y;
|
|
363
363
|
},
|
|
364
364
|
!0
|
|
365
365
|
), Dt._gsDefine(
|
|
366
366
|
"TimelineLite",
|
|
367
367
|
["core.Animation", "core.SimpleTimeline", "TweenLite"],
|
|
368
|
-
function(
|
|
369
|
-
var
|
|
370
|
-
|
|
368
|
+
function(N, J, Q) {
|
|
369
|
+
var nt = function(e) {
|
|
370
|
+
J.call(this, e), this._labels = {}, this.autoRemoveChildren = this.vars.autoRemoveChildren === !0, this.smoothChildTiming = this.vars.smoothChildTiming === !0, this._sortChildren = !0, this._onUpdate = this.vars.onUpdate;
|
|
371
371
|
var t, _, n = this.vars;
|
|
372
372
|
for (_ in n)
|
|
373
373
|
t = n[_], S(t) && t.join("").indexOf("{self}") !== -1 && (n[_] = this._swapSelfInParams(t));
|
|
374
374
|
S(n.tweens) && this.add(n.tweens, 0, n.align, n.stagger);
|
|
375
|
-
},
|
|
375
|
+
}, E = 1e-10, Y = Q._internals, $ = nt._internals = {}, dt = Y.isSelector, S = Y.isArray, M = Y.lazyTweens, b = Y.lazyRender, F = Dt._gsDefine.globals, G = function(e) {
|
|
376
376
|
var t, _ = {};
|
|
377
377
|
for (t in e)
|
|
378
378
|
_[t] = e[t];
|
|
@@ -382,60 +382,60 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
382
382
|
for (n in p)
|
|
383
383
|
g = p[n], e[n] = typeof g == "function" ? g(_, t[_]) : g[_ % g.length];
|
|
384
384
|
delete e.cycle;
|
|
385
|
-
}, L =
|
|
385
|
+
}, L = $.pauseCallback = function() {
|
|
386
386
|
}, v = function(e) {
|
|
387
387
|
var t, _ = [], n = e.length;
|
|
388
388
|
for (t = 0; t !== n; _.push(e[t++]))
|
|
389
389
|
;
|
|
390
390
|
return _;
|
|
391
|
-
}, P =
|
|
392
|
-
return
|
|
393
|
-
var g = _.repeat && F.TweenMax ||
|
|
391
|
+
}, P = nt.prototype = new J();
|
|
392
|
+
return nt.version = "2.0.2", P.constructor = nt, P.kill()._gc = P._forcingPlayhead = P._hasPause = !1, P.to = function(e, t, _, n) {
|
|
393
|
+
var g = _.repeat && F.TweenMax || Q;
|
|
394
394
|
return t ? this.add(new g(e, t, _), n) : this.set(e, _, n);
|
|
395
395
|
}, P.from = function(e, t, _, n) {
|
|
396
|
-
return this.add((_.repeat && F.TweenMax ||
|
|
396
|
+
return this.add((_.repeat && F.TweenMax || Q).from(e, t, _), n);
|
|
397
397
|
}, P.fromTo = function(e, t, _, n, g) {
|
|
398
|
-
var p = n.repeat && F.TweenMax ||
|
|
398
|
+
var p = n.repeat && F.TweenMax || Q;
|
|
399
399
|
return t ? this.add(p.fromTo(e, t, _, n), g) : this.set(e, n, g);
|
|
400
400
|
}, P.staggerTo = function(e, t, _, n, g, p, T, O) {
|
|
401
|
-
var D, R, Z = new
|
|
401
|
+
var D, R, Z = new nt({
|
|
402
402
|
onComplete: p,
|
|
403
403
|
onCompleteParams: T,
|
|
404
404
|
callbackScope: O,
|
|
405
405
|
smoothChildTiming: this.smoothChildTiming
|
|
406
|
-
}),
|
|
407
|
-
for (typeof e == "string" && (e =
|
|
408
|
-
D =
|
|
406
|
+
}), V = _.cycle;
|
|
407
|
+
for (typeof e == "string" && (e = Q.selector(e) || e), e = e || [], dt(e) && (e = v(e)), n = n || 0, 0 > n && (e = v(e), e.reverse(), n *= -1), R = 0; R < e.length; R++)
|
|
408
|
+
D = G(_), D.startAt && (D.startAt = G(D.startAt), D.startAt.cycle && st(D.startAt, e, R)), V && (st(D, e, R), D.duration != null && (t = D.duration, delete D.duration)), Z.to(e[R], t, D, R * n);
|
|
409
409
|
return this.add(Z, g);
|
|
410
410
|
}, P.staggerFrom = function(e, t, _, n, g, p, T, O) {
|
|
411
411
|
return _.immediateRender = _.immediateRender != 0, _.runBackwards = !0, this.staggerTo(e, t, _, n, g, p, T, O);
|
|
412
412
|
}, P.staggerFromTo = function(e, t, _, n, g, p, T, O, D) {
|
|
413
413
|
return n.startAt = _, n.immediateRender = n.immediateRender != 0 && _.immediateRender != 0, this.staggerTo(e, t, n, g, p, T, O, D);
|
|
414
414
|
}, P.call = function(e, t, _, n) {
|
|
415
|
-
return this.add(
|
|
415
|
+
return this.add(Q.delayedCall(0, e, t, _), n);
|
|
416
416
|
}, P.set = function(e, t, _) {
|
|
417
|
-
return _ = this._parseTimeOrLabel(_, 0, !0), t.immediateRender == null && (t.immediateRender = _ === this._time && !this._paused), this.add(new
|
|
418
|
-
},
|
|
417
|
+
return _ = this._parseTimeOrLabel(_, 0, !0), t.immediateRender == null && (t.immediateRender = _ === this._time && !this._paused), this.add(new Q(e, 0, t), _);
|
|
418
|
+
}, nt.exportRoot = function(e, t) {
|
|
419
419
|
e = e || {}, e.smoothChildTiming == null && (e.smoothChildTiming = !0);
|
|
420
|
-
var _, n, g, p, T = new
|
|
420
|
+
var _, n, g, p, T = new nt(e), O = T._timeline;
|
|
421
421
|
for (t == null && (t = !0), O._remove(T, !0), T._startTime = 0, T._rawPrevTime = T._time = T._totalTime = O._time, g = O._first; g; )
|
|
422
|
-
p = g._next, t && g instanceof
|
|
422
|
+
p = g._next, t && g instanceof Q && g.target === g.vars.onComplete || (n = g._startTime - g._delay, 0 > n && (_ = 1), T.add(g, n)), g = p;
|
|
423
423
|
return O.add(T, 0), _ && T.totalDuration(), T;
|
|
424
424
|
}, P.add = function(e, t, _, n) {
|
|
425
425
|
var g, p, T, O, D, R;
|
|
426
|
-
if (typeof t != "number" && (t = this._parseTimeOrLabel(t, 0, !0, e)), !(e instanceof
|
|
426
|
+
if (typeof t != "number" && (t = this._parseTimeOrLabel(t, 0, !0, e)), !(e instanceof N)) {
|
|
427
427
|
if (e instanceof Array || e && e.push && S(e)) {
|
|
428
428
|
for (_ = _ || "normal", n = n || 0, g = t, p = e.length, T = 0; p > T; T++)
|
|
429
|
-
S(O = e[T]) && (O = new
|
|
429
|
+
S(O = e[T]) && (O = new nt({ tweens: O })), this.add(O, g), typeof O != "string" && typeof O != "function" && (_ === "sequence" ? g = O._startTime + O.totalDuration() / O._timeScale : _ === "start" && (O._startTime -= O.delay())), g += n;
|
|
430
430
|
return this._uncache(!0);
|
|
431
431
|
}
|
|
432
432
|
if (typeof e == "string")
|
|
433
433
|
return this.addLabel(e, t);
|
|
434
434
|
if (typeof e != "function")
|
|
435
435
|
throw "Cannot add " + e + " into the timeline; it is not a tween, timeline, function, or string.";
|
|
436
|
-
e =
|
|
436
|
+
e = Q.delayedCall(0, e);
|
|
437
437
|
}
|
|
438
|
-
if (
|
|
438
|
+
if (J.prototype.add.call(this, e, t), e._time && (g = Math.max(
|
|
439
439
|
0,
|
|
440
440
|
Math.min(
|
|
441
441
|
e.totalDuration(),
|
|
@@ -446,9 +446,9 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
446
446
|
R && D._timeline.smoothChildTiming ? D.totalTime(D._totalTime, !0) : D._gc && D._enabled(!0, !1), D = D._timeline;
|
|
447
447
|
return this;
|
|
448
448
|
}, P.remove = function(e) {
|
|
449
|
-
if (e instanceof
|
|
449
|
+
if (e instanceof N) {
|
|
450
450
|
this._remove(e, !1);
|
|
451
|
-
var t = e._timeline = e.vars.useFrames ?
|
|
451
|
+
var t = e._timeline = e.vars.useFrames ? N._rootFramesTimeline : N._rootTimeline;
|
|
452
452
|
return e._startTime = (e._paused ? e._pauseTime : t._time) - (e._reversed ? e.totalDuration() - e._totalTime : e._totalTime) / e._timeScale, this;
|
|
453
453
|
}
|
|
454
454
|
if (e instanceof Array || e && e.push && S(e)) {
|
|
@@ -458,7 +458,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
458
458
|
}
|
|
459
459
|
return typeof e == "string" ? this.removeLabel(e) : this.kill(null, e);
|
|
460
460
|
}, P._remove = function(e, t) {
|
|
461
|
-
|
|
461
|
+
J.prototype._remove.call(this, e, t);
|
|
462
462
|
var _ = this._last;
|
|
463
463
|
return _ ? this._time > this.duration() && (this._time = this._duration, this._totalTime = this._totalDuration) : this._time = this._totalTime = this._duration = this._totalDuration = 0, this;
|
|
464
464
|
}, P.append = function(e, t) {
|
|
@@ -470,7 +470,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
470
470
|
}, P.addLabel = function(e, t) {
|
|
471
471
|
return this._labels[e] = this._parseTimeOrLabel(t), this;
|
|
472
472
|
}, P.addPause = function(e, t, _, n) {
|
|
473
|
-
var g =
|
|
473
|
+
var g = Q.delayedCall(0, L, _, n || this);
|
|
474
474
|
return g.vars.onComplete = g.vars.onReverseComplete = t, g.data = "isPause", this._hasPause = !0, this.add(g, e);
|
|
475
475
|
}, P.removeLabel = function(e) {
|
|
476
476
|
return delete this._labels[e], this;
|
|
@@ -478,11 +478,11 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
478
478
|
return this._labels[e] != null ? this._labels[e] : -1;
|
|
479
479
|
}, P._parseTimeOrLabel = function(e, t, _, n) {
|
|
480
480
|
var g, p;
|
|
481
|
-
if (n instanceof
|
|
481
|
+
if (n instanceof N && n.timeline === this)
|
|
482
482
|
this.remove(n);
|
|
483
483
|
else if (n && (n instanceof Array || n.push && S(n)))
|
|
484
484
|
for (p = n.length; --p > -1; )
|
|
485
|
-
n[p] instanceof
|
|
485
|
+
n[p] instanceof N && n[p].timeline === this && this.remove(n[p]);
|
|
486
486
|
if (g = typeof e != "number" || t ? this.duration() > 99999999999 ? this.recent().endTime(!1) : this._duration : 0, typeof t == "string")
|
|
487
487
|
return this._parseTimeOrLabel(
|
|
488
488
|
t,
|
|
@@ -510,14 +510,14 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
510
510
|
return this.pause(e, t);
|
|
511
511
|
}, P.render = function(e, t, _) {
|
|
512
512
|
this._gc && this._enabled(!0, !1);
|
|
513
|
-
var n, g, p, T, O, D, R, Z = this._time,
|
|
514
|
-
if (Z !== this._time && (e += this._time - Z), e >=
|
|
515
|
-
this._totalTime = this._time =
|
|
513
|
+
var n, g, p, T, O, D, R, Z = this._time, V = this._dirty ? this.totalDuration() : this._totalDuration, tt = this._startTime, et = this._timeScale, mt = this._paused;
|
|
514
|
+
if (Z !== this._time && (e += this._time - Z), e >= V - 1e-7 && e >= 0)
|
|
515
|
+
this._totalTime = this._time = V, this._reversed || this._hasPausedChild() || (g = !0, T = "onComplete", O = !!this._timeline.autoRemoveChildren, this._duration === 0 && (0 >= e && e >= -1e-7 || this._rawPrevTime < 0 || this._rawPrevTime === E) && this._rawPrevTime !== e && this._first && (O = !0, this._rawPrevTime > E && (T = "onReverseComplete"))), this._rawPrevTime = this._duration || !t || e || this._rawPrevTime === e ? e : E, e = V + 1e-4;
|
|
516
516
|
else if (1e-7 > e)
|
|
517
|
-
if (this._totalTime = this._time = 0, (Z !== 0 || this._duration === 0 && this._rawPrevTime !==
|
|
517
|
+
if (this._totalTime = this._time = 0, (Z !== 0 || this._duration === 0 && this._rawPrevTime !== E && (this._rawPrevTime > 0 || 0 > e && this._rawPrevTime >= 0)) && (T = "onReverseComplete", g = this._reversed), 0 > e)
|
|
518
518
|
this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (O = g = !0, T = "onReverseComplete") : this._rawPrevTime >= 0 && this._first && (O = !0), this._rawPrevTime = e;
|
|
519
519
|
else {
|
|
520
|
-
if (this._rawPrevTime = this._duration || !t || e || this._rawPrevTime === e ? e :
|
|
520
|
+
if (this._rawPrevTime = this._duration || !t || e || this._rawPrevTime === e ? e : E, e === 0 && g)
|
|
521
521
|
for (n = this._first; n && n._startTime === 0; )
|
|
522
522
|
n._duration || (g = !1), n = n._next;
|
|
523
523
|
e = 0, this._initted || (O = !0);
|
|
@@ -562,11 +562,11 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
562
562
|
}
|
|
563
563
|
n = p;
|
|
564
564
|
}
|
|
565
|
-
this._onUpdate && (t || (M.length &&
|
|
565
|
+
this._onUpdate && (t || (M.length && b(), this._callback("onUpdate"))), T && (this._gc || (tt === this._startTime || et !== this._timeScale) && (this._time === 0 || V >= this.totalDuration()) && (g && (M.length && b(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !t && this.vars[T] && this._callback(T)));
|
|
566
566
|
}
|
|
567
567
|
}, P._hasPausedChild = function() {
|
|
568
568
|
for (var e = this._first; e; ) {
|
|
569
|
-
if (e._paused || e instanceof
|
|
569
|
+
if (e._paused || e instanceof nt && e._hasPausedChild())
|
|
570
570
|
return !0;
|
|
571
571
|
e = e._next;
|
|
572
572
|
}
|
|
@@ -574,11 +574,11 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
574
574
|
}, P.getChildren = function(e, t, _, n) {
|
|
575
575
|
n = n || -9999999999;
|
|
576
576
|
for (var g = [], p = this._first, T = 0; p; )
|
|
577
|
-
p._startTime < n || (p instanceof
|
|
577
|
+
p._startTime < n || (p instanceof Q ? t !== !1 && (g[T++] = p) : (_ !== !1 && (g[T++] = p), e !== !1 && (g = g.concat(p.getChildren(!0, t, _)), T = g.length))), p = p._next;
|
|
578
578
|
return g;
|
|
579
579
|
}, P.getTweensOf = function(e, t) {
|
|
580
580
|
var _, n, g = this._gc, p = [], T = 0;
|
|
581
|
-
for (g && this._enabled(!0, !0), _ =
|
|
581
|
+
for (g && this._enabled(!0, !0), _ = Q.getTweensOf(e), n = _.length; --n > -1; )
|
|
582
582
|
(_[n].timeline === this || t && this._contains(_[n])) && (p[T++] = _[n]);
|
|
583
583
|
return g && this._enabled(!1, !0), p;
|
|
584
584
|
}, P.recent = function() {
|
|
@@ -612,15 +612,15 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
612
612
|
}, P.invalidate = function() {
|
|
613
613
|
for (var e = this._first; e; )
|
|
614
614
|
e.invalidate(), e = e._next;
|
|
615
|
-
return
|
|
615
|
+
return N.prototype.invalidate.call(this);
|
|
616
616
|
}, P._enabled = function(e, t) {
|
|
617
617
|
if (e === this._gc)
|
|
618
618
|
for (var _ = this._first; _; )
|
|
619
619
|
_._enabled(e, !0), _ = _._next;
|
|
620
|
-
return
|
|
620
|
+
return J.prototype._enabled.call(this, e, t);
|
|
621
621
|
}, P.totalTime = function(e, t, _) {
|
|
622
622
|
this._forcingPlayhead = !0;
|
|
623
|
-
var n =
|
|
623
|
+
var n = N.prototype.totalTime.apply(this, arguments);
|
|
624
624
|
return this._forcingPlayhead = !1, n;
|
|
625
625
|
}, P.duration = function(e) {
|
|
626
626
|
return arguments.length ? (this.duration() !== 0 && e !== 0 && this.timeScale(this._duration / e), this) : (this._dirty && this.totalDuration(), this._duration);
|
|
@@ -638,78 +638,78 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
638
638
|
if (!e)
|
|
639
639
|
for (var t = this._first, _ = this._time; t; )
|
|
640
640
|
t._startTime === _ && t.data === "isPause" && (t._rawPrevTime = 0), t = t._next;
|
|
641
|
-
return
|
|
641
|
+
return N.prototype.paused.apply(this, arguments);
|
|
642
642
|
}, P.usesFrames = function() {
|
|
643
643
|
for (var e = this._timeline; e._timeline; )
|
|
644
644
|
e = e._timeline;
|
|
645
|
-
return e ===
|
|
645
|
+
return e === N._rootFramesTimeline;
|
|
646
646
|
}, P.rawTime = function(e) {
|
|
647
647
|
return e && (this._paused || this._repeat && this.time() > 0 && this.totalProgress() < 1) ? this._totalTime % (this._duration + this._repeatDelay) : this._paused ? this._totalTime : (this._timeline.rawTime(e) - this._startTime) * this._timeScale;
|
|
648
|
-
},
|
|
648
|
+
}, nt;
|
|
649
649
|
},
|
|
650
650
|
!0
|
|
651
651
|
), Dt._gsDefine(
|
|
652
652
|
"TimelineMax",
|
|
653
653
|
["TimelineLite", "TweenLite", "easing.Ease"],
|
|
654
|
-
function(
|
|
655
|
-
var
|
|
656
|
-
|
|
657
|
-
},
|
|
658
|
-
return
|
|
659
|
-
return this._yoyo = this.vars.yoyo === !0, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._uncache(!0),
|
|
660
|
-
},
|
|
661
|
-
return this.add(
|
|
662
|
-
},
|
|
654
|
+
function(N, J, Q) {
|
|
655
|
+
var nt = function(F) {
|
|
656
|
+
N.call(this, F), this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._cycle = 0, this._yoyo = this.vars.yoyo === !0, this._dirty = !0;
|
|
657
|
+
}, E = 1e-10, Y = J._internals, $ = Y.lazyTweens, dt = Y.lazyRender, S = Dt._gsDefine.globals, M = new Q(null, null, 1, 0), b = nt.prototype = new N();
|
|
658
|
+
return b.constructor = nt, b.kill()._gc = !1, nt.version = "2.0.2", b.invalidate = function() {
|
|
659
|
+
return this._yoyo = this.vars.yoyo === !0, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._uncache(!0), N.prototype.invalidate.call(this);
|
|
660
|
+
}, b.addCallback = function(F, G, st, L) {
|
|
661
|
+
return this.add(J.delayedCall(0, F, st, L), G);
|
|
662
|
+
}, b.removeCallback = function(F, G) {
|
|
663
663
|
if (F)
|
|
664
|
-
if (
|
|
664
|
+
if (G == null)
|
|
665
665
|
this._kill(null, F);
|
|
666
666
|
else
|
|
667
|
-
for (var st = this.getTweensOf(F, !1), L = st.length, v = this._parseTimeOrLabel(
|
|
667
|
+
for (var st = this.getTweensOf(F, !1), L = st.length, v = this._parseTimeOrLabel(G); --L > -1; )
|
|
668
668
|
st[L]._startTime === v && st[L]._enabled(!1, !1);
|
|
669
669
|
return this;
|
|
670
|
-
},
|
|
671
|
-
return this.removeCallback(
|
|
672
|
-
},
|
|
673
|
-
|
|
670
|
+
}, b.removePause = function(F) {
|
|
671
|
+
return this.removeCallback(N._internals.pauseCallback, F);
|
|
672
|
+
}, b.tweenTo = function(F, G) {
|
|
673
|
+
G = G || {};
|
|
674
674
|
var st, L, v, P = {
|
|
675
675
|
ease: M,
|
|
676
676
|
useFrames: this.usesFrames(),
|
|
677
677
|
immediateRender: !1,
|
|
678
678
|
lazy: !1
|
|
679
|
-
}, e =
|
|
680
|
-
for (L in
|
|
681
|
-
P[L] =
|
|
679
|
+
}, e = G.repeat && S.TweenMax || J;
|
|
680
|
+
for (L in G)
|
|
681
|
+
P[L] = G[L];
|
|
682
682
|
return P.time = this._parseTimeOrLabel(F), st = Math.abs(Number(P.time) - this._time) / this._timeScale || 1e-3, v = new e(this, st, P), P.onStart = function() {
|
|
683
683
|
v.target.paused(!0), v.vars.time === v.target.time() || st !== v.duration() || v.isFromTo || v.duration(
|
|
684
684
|
Math.abs(v.vars.time - v.target.time()) / v.target._timeScale
|
|
685
|
-
).render(v.time(), !0, !0),
|
|
686
|
-
|
|
687
|
-
|
|
685
|
+
).render(v.time(), !0, !0), G.onStart && G.onStart.apply(
|
|
686
|
+
G.onStartScope || G.callbackScope || v,
|
|
687
|
+
G.onStartParams || []
|
|
688
688
|
);
|
|
689
689
|
}, v;
|
|
690
|
-
},
|
|
690
|
+
}, b.tweenFromTo = function(F, G, st) {
|
|
691
691
|
st = st || {}, F = this._parseTimeOrLabel(F), st.startAt = {
|
|
692
692
|
onComplete: this.seek,
|
|
693
693
|
onCompleteParams: [F],
|
|
694
694
|
callbackScope: this
|
|
695
695
|
}, st.immediateRender = st.immediateRender !== !1;
|
|
696
|
-
var L = this.tweenTo(
|
|
696
|
+
var L = this.tweenTo(G, st);
|
|
697
697
|
return L.isFromTo = 1, L.duration(Math.abs(L.vars.time - F) / this._timeScale || 1e-3);
|
|
698
|
-
},
|
|
698
|
+
}, b.render = function(F, G, st) {
|
|
699
699
|
this._gc && this._enabled(!0, !1);
|
|
700
|
-
var L, v, P, e, t, _, n, g, p = this._time, T = this._dirty ? this.totalDuration() : this._totalDuration, O = this._duration, D = this._totalTime, R = this._startTime, Z = this._timeScale,
|
|
700
|
+
var L, v, P, e, t, _, n, g, p = this._time, T = this._dirty ? this.totalDuration() : this._totalDuration, O = this._duration, D = this._totalTime, R = this._startTime, Z = this._timeScale, V = this._rawPrevTime, tt = this._paused, et = this._cycle;
|
|
701
701
|
if (p !== this._time && (F += this._time - p), F >= T - 1e-7 && F >= 0)
|
|
702
|
-
this._locked || (this._totalTime = T, this._cycle = this._repeat), this._reversed || this._hasPausedChild() || (v = !0, e = "onComplete", t = !!this._timeline.autoRemoveChildren, this._duration === 0 && (0 >= F && F >= -1e-7 || 0 >
|
|
702
|
+
this._locked || (this._totalTime = T, this._cycle = this._repeat), this._reversed || this._hasPausedChild() || (v = !0, e = "onComplete", t = !!this._timeline.autoRemoveChildren, this._duration === 0 && (0 >= F && F >= -1e-7 || 0 > V || V === E) && V !== F && this._first && (t = !0, V > E && (e = "onReverseComplete"))), this._rawPrevTime = this._duration || !G || F || this._rawPrevTime === F ? F : E, this._yoyo && 1 & this._cycle ? this._time = F = 0 : (this._time = O, F = O + 1e-4);
|
|
703
703
|
else if (1e-7 > F)
|
|
704
|
-
if (this._locked || (this._totalTime = this._cycle = 0), this._time = 0, (p !== 0 || O === 0 &&
|
|
705
|
-
this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (t = v = !0, e = "onReverseComplete") :
|
|
704
|
+
if (this._locked || (this._totalTime = this._cycle = 0), this._time = 0, (p !== 0 || O === 0 && V !== E && (V > 0 || 0 > F && V >= 0) && !this._locked) && (e = "onReverseComplete", v = this._reversed), 0 > F)
|
|
705
|
+
this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (t = v = !0, e = "onReverseComplete") : V >= 0 && this._first && (t = !0), this._rawPrevTime = F;
|
|
706
706
|
else {
|
|
707
|
-
if (this._rawPrevTime = O ||
|
|
707
|
+
if (this._rawPrevTime = O || !G || F || this._rawPrevTime === F ? F : E, F === 0 && v)
|
|
708
708
|
for (L = this._first; L && L._startTime === 0; )
|
|
709
709
|
L._duration || (v = !1), L = L._next;
|
|
710
710
|
F = 0, this._initted || (t = !0);
|
|
711
711
|
}
|
|
712
|
-
else if (O === 0 && 0 >
|
|
712
|
+
else if (O === 0 && 0 > V && (t = !0), this._time = this._rawPrevTime = F, this._locked || (this._totalTime = F, this._repeat !== 0 && (_ = O + this._repeatDelay, this._cycle = this._totalTime / _ >> 0, this._cycle !== 0 && this._cycle === this._totalTime / _ && F >= D && this._cycle--, this._time = this._totalTime - this._cycle * _, this._yoyo && 1 & this._cycle && (this._time = O - this._time), this._time > O ? (this._time = O, F = O + 1e-4) : this._time < 0 ? this._time = F = 0 : F = this._time)), this._hasPause && !this._forcingPlayhead && !G) {
|
|
713
713
|
if (F = this._time, F >= p || this._repeat && et !== this._cycle)
|
|
714
714
|
for (L = this._first; L && L._startTime <= F && !n; )
|
|
715
715
|
L._duration || L.data !== "isPause" || L.ratio || L._startTime === 0 && this._rawPrevTime === 0 || (n = L), L = L._next;
|
|
@@ -719,20 +719,20 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
719
719
|
n && n._startTime < O && (this._time = F = n._startTime, this._totalTime = F + this._cycle * (this._totalDuration + this._repeatDelay));
|
|
720
720
|
}
|
|
721
721
|
if (this._cycle !== et && !this._locked) {
|
|
722
|
-
var mt = this._yoyo && (1 & et) !== 0,
|
|
723
|
-
if (this._totalTime = et * O, this._cycle < et ? mt = !mt : this._totalTime += O, this._time = p, this._rawPrevTime = O === 0 ?
|
|
722
|
+
var mt = this._yoyo && (1 & et) !== 0, at = mt === (this._yoyo && (1 & this._cycle) !== 0), K = this._totalTime, gt = this._cycle, Yt = this._rawPrevTime, yt = this._time;
|
|
723
|
+
if (this._totalTime = et * O, this._cycle < et ? mt = !mt : this._totalTime += O, this._time = p, this._rawPrevTime = O === 0 ? V - 1e-4 : V, this._cycle = et, this._locked = !0, p = mt ? 0 : O, this.render(p, G, O === 0), G || this._gc || this.vars.onRepeat && (this._cycle = gt, this._locked = !1, this._callback("onRepeat")), p !== this._time || (at && (this._cycle = et, this._locked = !0, p = mt ? O + 1e-4 : -1e-4, this.render(p, !0, !1)), this._locked = !1, this._paused && !tt))
|
|
724
724
|
return;
|
|
725
|
-
this._time = yt, this._totalTime =
|
|
725
|
+
this._time = yt, this._totalTime = K, this._cycle = gt, this._rawPrevTime = Yt;
|
|
726
726
|
}
|
|
727
727
|
if (!(this._time !== p && this._first || st || t || n))
|
|
728
|
-
return void (D !== this._totalTime && this._onUpdate && (
|
|
729
|
-
if (this._initted || (this._initted = !0), this._active || !this._paused && this._totalTime !== D && F > 0 && (this._active = !0), D === 0 && this.vars.onStart && (this._totalTime === 0 && this._totalDuration ||
|
|
728
|
+
return void (D !== this._totalTime && this._onUpdate && (G || this._callback("onUpdate")));
|
|
729
|
+
if (this._initted || (this._initted = !0), this._active || !this._paused && this._totalTime !== D && F > 0 && (this._active = !0), D === 0 && this.vars.onStart && (this._totalTime === 0 && this._totalDuration || G || this._callback("onStart")), g = this._time, g >= p)
|
|
730
730
|
for (L = this._first; L && (P = L._next, g === this._time && (!this._paused || tt)); )
|
|
731
731
|
(L._active || L._startTime <= this._time && !L._paused && !L._gc) && (n === L && this.pause(), L._reversed ? L.render(
|
|
732
732
|
(L._dirty ? L.totalDuration() : L._totalDuration) - (F - L._startTime) * L._timeScale,
|
|
733
|
-
|
|
733
|
+
G,
|
|
734
734
|
st
|
|
735
|
-
) : L.render((F - L._startTime) * L._timeScale,
|
|
735
|
+
) : L.render((F - L._startTime) * L._timeScale, G, st)), L = P;
|
|
736
736
|
else
|
|
737
737
|
for (L = this._last; L && (P = L._prev, g === this._time && (!this._paused || tt)); ) {
|
|
738
738
|
if (L._active || L._startTime <= p && !L._paused && !L._gc) {
|
|
@@ -740,146 +740,146 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
740
740
|
for (n = L._prev; n && n.endTime() > this._time; )
|
|
741
741
|
n.render(
|
|
742
742
|
n._reversed ? n.totalDuration() - (F - n._startTime) * n._timeScale : (F - n._startTime) * n._timeScale,
|
|
743
|
-
|
|
743
|
+
G,
|
|
744
744
|
st
|
|
745
745
|
), n = n._prev;
|
|
746
746
|
n = null, this.pause();
|
|
747
747
|
}
|
|
748
748
|
L._reversed ? L.render(
|
|
749
749
|
(L._dirty ? L.totalDuration() : L._totalDuration) - (F - L._startTime) * L._timeScale,
|
|
750
|
-
|
|
750
|
+
G,
|
|
751
751
|
st
|
|
752
|
-
) : L.render((F - L._startTime) * L._timeScale,
|
|
752
|
+
) : L.render((F - L._startTime) * L._timeScale, G, st);
|
|
753
753
|
}
|
|
754
754
|
L = P;
|
|
755
755
|
}
|
|
756
|
-
this._onUpdate && (
|
|
757
|
-
},
|
|
758
|
-
F == null && (F = !0),
|
|
759
|
-
var L, v, P = [], e = this.getChildren(F,
|
|
756
|
+
this._onUpdate && (G || ($.length && dt(), this._callback("onUpdate"))), e && (this._locked || this._gc || (R === this._startTime || Z !== this._timeScale) && (this._time === 0 || T >= this.totalDuration()) && (v && ($.length && dt(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !G && this.vars[e] && this._callback(e)));
|
|
757
|
+
}, b.getActive = function(F, G, st) {
|
|
758
|
+
F == null && (F = !0), G == null && (G = !0), st == null && (st = !1);
|
|
759
|
+
var L, v, P = [], e = this.getChildren(F, G, st), t = 0, _ = e.length;
|
|
760
760
|
for (L = 0; _ > L; L++)
|
|
761
761
|
v = e[L], v.isActive() && (P[t++] = v);
|
|
762
762
|
return P;
|
|
763
|
-
},
|
|
763
|
+
}, b.getLabelAfter = function(F) {
|
|
764
764
|
F || F !== 0 && (F = this._time);
|
|
765
|
-
var
|
|
766
|
-
for (
|
|
767
|
-
if (st[
|
|
768
|
-
return st[
|
|
765
|
+
var G, st = this.getLabelsArray(), L = st.length;
|
|
766
|
+
for (G = 0; L > G; G++)
|
|
767
|
+
if (st[G].time > F)
|
|
768
|
+
return st[G].name;
|
|
769
769
|
return null;
|
|
770
|
-
},
|
|
770
|
+
}, b.getLabelBefore = function(F) {
|
|
771
771
|
F == null && (F = this._time);
|
|
772
|
-
for (var
|
|
773
|
-
if (
|
|
774
|
-
return
|
|
772
|
+
for (var G = this.getLabelsArray(), st = G.length; --st > -1; )
|
|
773
|
+
if (G[st].time < F)
|
|
774
|
+
return G[st].name;
|
|
775
775
|
return null;
|
|
776
|
-
},
|
|
777
|
-
var F,
|
|
776
|
+
}, b.getLabelsArray = function() {
|
|
777
|
+
var F, G = [], st = 0;
|
|
778
778
|
for (F in this._labels)
|
|
779
|
-
|
|
780
|
-
return
|
|
779
|
+
G[st++] = { time: this._labels[F], name: F };
|
|
780
|
+
return G.sort(function(L, v) {
|
|
781
781
|
return L.time - v.time;
|
|
782
|
-
}),
|
|
783
|
-
},
|
|
784
|
-
return this._locked = !1,
|
|
785
|
-
},
|
|
782
|
+
}), G;
|
|
783
|
+
}, b.invalidate = function() {
|
|
784
|
+
return this._locked = !1, N.prototype.invalidate.call(this);
|
|
785
|
+
}, b.progress = function(F, G) {
|
|
786
786
|
return arguments.length ? this.totalTime(
|
|
787
787
|
this.duration() * (this._yoyo && 1 & this._cycle ? 1 - F : F) + this._cycle * (this._duration + this._repeatDelay),
|
|
788
|
-
|
|
788
|
+
G
|
|
789
789
|
) : this._time / this.duration() || 0;
|
|
790
|
-
},
|
|
791
|
-
return arguments.length ? this.totalTime(this.totalDuration() * F,
|
|
792
|
-
},
|
|
793
|
-
return arguments.length ? this._repeat !== -1 && F ? this.timeScale(this.totalDuration() / F) : this : (this._dirty && (
|
|
794
|
-
},
|
|
795
|
-
return arguments.length ? (this._dirty && this.totalDuration(), F > this._duration && (F = this._duration), this._yoyo && 1 & this._cycle ? F = this._duration - F + this._cycle * (this._duration + this._repeatDelay) : this._repeat !== 0 && (F += this._cycle * (this._duration + this._repeatDelay)), this.totalTime(F,
|
|
796
|
-
},
|
|
790
|
+
}, b.totalProgress = function(F, G) {
|
|
791
|
+
return arguments.length ? this.totalTime(this.totalDuration() * F, G) : this._totalTime / this.totalDuration() || 0;
|
|
792
|
+
}, b.totalDuration = function(F) {
|
|
793
|
+
return arguments.length ? this._repeat !== -1 && F ? this.timeScale(this.totalDuration() / F) : this : (this._dirty && (N.prototype.totalDuration.call(this), this._totalDuration = this._repeat === -1 ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat), this._totalDuration);
|
|
794
|
+
}, b.time = function(F, G) {
|
|
795
|
+
return arguments.length ? (this._dirty && this.totalDuration(), F > this._duration && (F = this._duration), this._yoyo && 1 & this._cycle ? F = this._duration - F + this._cycle * (this._duration + this._repeatDelay) : this._repeat !== 0 && (F += this._cycle * (this._duration + this._repeatDelay)), this.totalTime(F, G)) : this._time;
|
|
796
|
+
}, b.repeat = function(F) {
|
|
797
797
|
return arguments.length ? (this._repeat = F, this._uncache(!0)) : this._repeat;
|
|
798
|
-
},
|
|
798
|
+
}, b.repeatDelay = function(F) {
|
|
799
799
|
return arguments.length ? (this._repeatDelay = F, this._uncache(!0)) : this._repeatDelay;
|
|
800
|
-
},
|
|
800
|
+
}, b.yoyo = function(F) {
|
|
801
801
|
return arguments.length ? (this._yoyo = F, this) : this._yoyo;
|
|
802
|
-
},
|
|
802
|
+
}, b.currentLabel = function(F) {
|
|
803
803
|
return arguments.length ? this.seek(F, !0) : this.getLabelBefore(this._time + 1e-8);
|
|
804
|
-
},
|
|
804
|
+
}, nt;
|
|
805
805
|
},
|
|
806
806
|
!0
|
|
807
807
|
), function() {
|
|
808
|
-
var
|
|
808
|
+
var N = 180 / Math.PI, J = [], Q = [], nt = [], E = {}, Y = Dt._gsDefine.globals, $ = function(e, t, _, n) {
|
|
809
809
|
_ === n && (_ = n - (n - t) / 1e6), e === t && (t = e + (_ - e) / 1e6), this.a = e, this.b = t, this.c = _, this.d = n, this.da = n - e, this.ca = _ - e, this.ba = t - e;
|
|
810
810
|
}, dt = ",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,", S = function(e, t, _, n) {
|
|
811
|
-
var g = { a: e }, p = {}, T = {}, O = { c: n }, D = (e + t) / 2, R = (t + _) / 2, Z = (_ + n) / 2,
|
|
812
|
-
return g.b = D + (e - D) / 4, p.b =
|
|
811
|
+
var g = { a: e }, p = {}, T = {}, O = { c: n }, D = (e + t) / 2, R = (t + _) / 2, Z = (_ + n) / 2, V = (D + R) / 2, tt = (R + Z) / 2, et = (tt - V) / 8;
|
|
812
|
+
return g.b = D + (e - D) / 4, p.b = V + et, g.c = p.a = (g.b + p.b) / 2, p.c = T.a = (V + tt) / 2, T.b = tt - et, O.b = Z + (n - Z) / 4, T.c = O.a = (T.b + O.b) / 2, [g, p, T, O];
|
|
813
813
|
}, M = function(e, t, _, n, g) {
|
|
814
|
-
var p, T, O, D, R, Z,
|
|
814
|
+
var p, T, O, D, R, Z, V, tt, et, mt, at, K, gt, Yt = e.length - 1, yt = 0, At = e[0].a;
|
|
815
815
|
for (p = 0; Yt > p; p++)
|
|
816
|
-
R = e[yt], T = R.a, O = R.d, D = e[yt + 1].d, g ? (
|
|
816
|
+
R = e[yt], T = R.a, O = R.d, D = e[yt + 1].d, g ? (at = J[p], K = Q[p], gt = (K + at) * t * 0.25 / (n ? 0.5 : nt[p] || 0.5), Z = O - (O - T) * (n ? 0.5 * t : at !== 0 ? gt / at : 0), V = O + (D - O) * (n ? 0.5 * t : K !== 0 ? gt / K : 0), tt = O - (Z + ((V - Z) * (3 * at / (at + K) + 0.5) / 4 || 0))) : (Z = O - (O - T) * t * 0.5, V = O + (D - O) * t * 0.5, tt = O - (Z + V) / 2), Z += tt, V += tt, R.c = et = Z, p !== 0 ? R.b = At : R.b = At = R.a + 0.6 * (R.c - R.a), R.da = O - T, R.ca = et - T, R.ba = At - T, _ ? (mt = S(T, At, et, O), e.splice(yt, 1, mt[0], mt[1], mt[2], mt[3]), yt += 4) : yt++, At = V;
|
|
817
817
|
R = e[yt], R.b = At, R.c = At + 0.4 * (R.d - At), R.da = R.d - R.a, R.ca = R.c - R.a, R.ba = At - R.a, _ && (mt = S(R.a, At, R.c, R.d), e.splice(yt, 1, mt[0], mt[1], mt[2], mt[3]));
|
|
818
|
-
},
|
|
818
|
+
}, b = function(e, t, _, n) {
|
|
819
819
|
var g, p, T, O, D, R, Z = [];
|
|
820
820
|
if (n)
|
|
821
821
|
for (e = [n].concat(e), p = e.length; --p > -1; )
|
|
822
822
|
typeof (R = e[p][t]) == "string" && R.charAt(1) === "=" && (e[p][t] = n[t] + Number(R.charAt(0) + R.substr(2)));
|
|
823
823
|
if (g = e.length - 2, 0 > g)
|
|
824
|
-
return Z[0] = new
|
|
824
|
+
return Z[0] = new $(e[0][t], 0, 0, e[0][t]), Z;
|
|
825
825
|
for (p = 0; g > p; p++)
|
|
826
|
-
T = e[p][t], O = e[p + 1][t], Z[p] = new
|
|
827
|
-
return Z[p] = new
|
|
826
|
+
T = e[p][t], O = e[p + 1][t], Z[p] = new $(T, 0, 0, O), _ && (D = e[p + 2][t], J[p] = (J[p] || 0) + (O - T) * (O - T), Q[p] = (Q[p] || 0) + (D - O) * (D - O));
|
|
827
|
+
return Z[p] = new $(e[p][t], 0, 0, e[p + 1][t]), Z;
|
|
828
828
|
}, F = function(e, t, _, n, g, p) {
|
|
829
|
-
var T, O, D, R, Z,
|
|
829
|
+
var T, O, D, R, Z, V, tt, et, mt = {}, at = [], K = p || e[0];
|
|
830
830
|
g = typeof g == "string" ? "," + g + "," : dt, t == null && (t = 1);
|
|
831
831
|
for (O in e[0])
|
|
832
|
-
|
|
832
|
+
at.push(O);
|
|
833
833
|
if (e.length > 1) {
|
|
834
|
-
for (et = e[e.length - 1], tt = !0, T =
|
|
835
|
-
if (O =
|
|
834
|
+
for (et = e[e.length - 1], tt = !0, T = at.length; --T > -1; )
|
|
835
|
+
if (O = at[T], Math.abs(K[O] - et[O]) > 0.05) {
|
|
836
836
|
tt = !1;
|
|
837
837
|
break;
|
|
838
838
|
}
|
|
839
839
|
tt && (e = e.concat(), p && e.unshift(p), e.push(e[1]), p = e[e.length - 3]);
|
|
840
840
|
}
|
|
841
|
-
for (
|
|
842
|
-
O =
|
|
843
|
-
for (T =
|
|
844
|
-
|
|
841
|
+
for (J.length = Q.length = nt.length = 0, T = at.length; --T > -1; )
|
|
842
|
+
O = at[T], E[O] = g.indexOf("," + O + ",") !== -1, mt[O] = b(e, O, E[O], p);
|
|
843
|
+
for (T = J.length; --T > -1; )
|
|
844
|
+
J[T] = Math.sqrt(J[T]), Q[T] = Math.sqrt(Q[T]);
|
|
845
845
|
if (!n) {
|
|
846
|
-
for (T = ot.length; --T > -1; )
|
|
847
|
-
if (z[O])
|
|
848
|
-
for (D = mt[ot[T]], U = D.length - 1, R = 0; U > R; R++)
|
|
849
|
-
Z = D[R + 1].da / K[R] + D[R].da / Q[R] || 0, at[R] = (at[R] || 0) + Z * Z;
|
|
850
846
|
for (T = at.length; --T > -1; )
|
|
851
|
-
|
|
847
|
+
if (E[O])
|
|
848
|
+
for (D = mt[at[T]], V = D.length - 1, R = 0; V > R; R++)
|
|
849
|
+
Z = D[R + 1].da / Q[R] + D[R].da / J[R] || 0, nt[R] = (nt[R] || 0) + Z * Z;
|
|
850
|
+
for (T = nt.length; --T > -1; )
|
|
851
|
+
nt[T] = Math.sqrt(nt[T]);
|
|
852
852
|
}
|
|
853
|
-
for (T =
|
|
854
|
-
O =
|
|
853
|
+
for (T = at.length, R = _ ? 4 : 1; --T > -1; )
|
|
854
|
+
O = at[T], D = mt[O], M(D, t, _, n, E[O]), tt && (D.splice(0, R), D.splice(D.length - R, R));
|
|
855
855
|
return mt;
|
|
856
|
-
},
|
|
856
|
+
}, G = function(e, t, _) {
|
|
857
857
|
t = t || "soft";
|
|
858
|
-
var n, g, p, T, O, D, R, Z,
|
|
859
|
-
if (
|
|
858
|
+
var n, g, p, T, O, D, R, Z, V, tt, et, mt = {}, at = t === "cubic" ? 3 : 2, K = t === "soft", gt = [];
|
|
859
|
+
if (K && _ && (e = [_].concat(e)), e == null || e.length < at + 1)
|
|
860
860
|
throw "invalid Bezier data";
|
|
861
|
-
for (
|
|
862
|
-
gt.push(
|
|
861
|
+
for (V in e[0])
|
|
862
|
+
gt.push(V);
|
|
863
863
|
for (D = gt.length; --D > -1; ) {
|
|
864
|
-
for (
|
|
865
|
-
n = _ == null ? e[R][
|
|
866
|
-
for (Z = tt -
|
|
867
|
-
n = O[R], g = O[R + 1], p = O[R + 2], T =
|
|
864
|
+
for (V = gt[D], mt[V] = O = [], tt = 0, Z = e.length, R = 0; Z > R; R++)
|
|
865
|
+
n = _ == null ? e[R][V] : typeof (et = e[R][V]) == "string" && et.charAt(1) === "=" ? _[V] + Number(et.charAt(0) + et.substr(2)) : Number(et), K && R > 1 && Z - 1 > R && (O[tt++] = (n + O[tt - 2]) / 2), O[tt++] = n;
|
|
866
|
+
for (Z = tt - at + 1, tt = 0, R = 0; Z > R; R += at)
|
|
867
|
+
n = O[R], g = O[R + 1], p = O[R + 2], T = at === 2 ? 0 : O[R + 3], O[tt++] = et = at === 3 ? new $(n, g, p, T) : new $(n, (2 * g + n) / 3, (2 * g + p) / 3, p);
|
|
868
868
|
O.length = tt;
|
|
869
869
|
}
|
|
870
870
|
return mt;
|
|
871
871
|
}, st = function(e, t, _) {
|
|
872
|
-
for (var n, g, p, T, O, D, R, Z,
|
|
873
|
-
for (tt = e[
|
|
874
|
-
R = mt * Z,
|
|
872
|
+
for (var n, g, p, T, O, D, R, Z, V, tt, et, mt = 1 / _, at = e.length; --at > -1; )
|
|
873
|
+
for (tt = e[at], p = tt.a, T = tt.d - p, O = tt.c - p, D = tt.b - p, n = g = 0, Z = 1; _ >= Z; Z++)
|
|
874
|
+
R = mt * Z, V = 1 - R, n = g - (g = (R * R * T + 3 * V * (R * O + V * D)) * R), et = at * _ + Z - 1, t[et] = (t[et] || 0) + n * n;
|
|
875
875
|
}, L = function(e, t) {
|
|
876
876
|
t = t >> 0 || 6;
|
|
877
|
-
var _, n, g, p, T = [], O = [], D = 0, R = 0, Z = t - 1,
|
|
877
|
+
var _, n, g, p, T = [], O = [], D = 0, R = 0, Z = t - 1, V = [], tt = [];
|
|
878
878
|
for (_ in e)
|
|
879
879
|
st(e[_], T, t);
|
|
880
880
|
for (g = T.length, n = 0; g > n; n++)
|
|
881
|
-
D += Math.sqrt(T[n]), p = n % t, tt[p] = D, p === Z && (R += D, p = n / t >> 0,
|
|
882
|
-
return { length: R, lengths: O, segments:
|
|
881
|
+
D += Math.sqrt(T[n]), p = n % t, tt[p] = D, p === Z && (R += D, p = n / t >> 0, V[p] = tt, O[p] = R, D = 0, tt = []);
|
|
882
|
+
return { length: R, lengths: O, segments: V };
|
|
883
883
|
}, v = Dt._gsDefine.plugin({
|
|
884
884
|
propName: "bezier",
|
|
885
885
|
priority: -1,
|
|
@@ -888,8 +888,8 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
888
888
|
global: !0,
|
|
889
889
|
init: function(e, t, _) {
|
|
890
890
|
this._target = e, t instanceof Array && (t = { values: t }), this._func = {}, this._mod = {}, this._props = [], this._timeRes = t.timeResolution == null ? 6 : parseInt(t.timeResolution, 10);
|
|
891
|
-
var n, g, p, T, O, D = t.values || [], R = {}, Z = D[0],
|
|
892
|
-
this._autoRotate =
|
|
891
|
+
var n, g, p, T, O, D = t.values || [], R = {}, Z = D[0], V = t.autoRotate || _.vars.orientToBezier;
|
|
892
|
+
this._autoRotate = V ? V instanceof Array ? V : [["x", "y", "rotation", V === !0 ? 0 : Number(V) || 0]] : null;
|
|
893
893
|
for (n in Z)
|
|
894
894
|
this._props.push(n);
|
|
895
895
|
for (p = this._props.length; --p > -1; )
|
|
@@ -901,23 +901,23 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
901
901
|
t.type === "thruBasic",
|
|
902
902
|
t.correlate,
|
|
903
903
|
O
|
|
904
|
-
) :
|
|
904
|
+
) : G(D, t.type, R), this._segCount = this._beziers[n].length, this._timeRes) {
|
|
905
905
|
var tt = L(this._beziers, this._timeRes);
|
|
906
906
|
this._length = tt.length, this._lengths = tt.lengths, this._segments = tt.segments, this._l1 = this._li = this._s1 = this._si = 0, this._l2 = this._lengths[0], this._curSeg = this._segments[0], this._s2 = this._curSeg[0], this._prec = 1 / this._curSeg.length;
|
|
907
907
|
}
|
|
908
|
-
if (
|
|
909
|
-
for (this._initialRotations = [],
|
|
908
|
+
if (V = this._autoRotate)
|
|
909
|
+
for (this._initialRotations = [], V[0] instanceof Array || (this._autoRotate = V = [V]), p = V.length; --p > -1; ) {
|
|
910
910
|
for (T = 0; 3 > T; T++)
|
|
911
|
-
n =
|
|
912
|
-
n =
|
|
911
|
+
n = V[p][T], this._func[n] = typeof e[n] == "function" ? e[n.indexOf("set") || typeof e["get" + n.substr(3)] != "function" ? n : "get" + n.substr(3)] : !1;
|
|
912
|
+
n = V[p][2], this._initialRotations[p] = (this._func[n] ? this._func[n].call(this._target) : this._target[n]) || 0, this._overwriteProps.push(n);
|
|
913
913
|
}
|
|
914
914
|
return this._startRatio = _.vars.runBackwards ? 1 : 0, !0;
|
|
915
915
|
},
|
|
916
916
|
set: function(e) {
|
|
917
|
-
var t, _, n, g, p, T, O, D, R, Z,
|
|
917
|
+
var t, _, n, g, p, T, O, D, R, Z, V = this._segCount, tt = this._func, et = this._target, mt = e !== this._startRatio;
|
|
918
918
|
if (this._timeRes) {
|
|
919
|
-
if (R = this._lengths, Z = this._curSeg, e *= this._length, n = this._li, e > this._l2 &&
|
|
920
|
-
for (D =
|
|
919
|
+
if (R = this._lengths, Z = this._curSeg, e *= this._length, n = this._li, e > this._l2 && V - 1 > n) {
|
|
920
|
+
for (D = V - 1; D > n && (this._l2 = R[++n]) <= e; )
|
|
921
921
|
;
|
|
922
922
|
this._l1 = R[n - 1], this._li = n, this._curSeg = Z = this._segments[n], this._s2 = Z[this._s1 = this._si = 0];
|
|
923
923
|
} else if (e < this._l1 && n > 0) {
|
|
@@ -936,33 +936,33 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
936
936
|
}
|
|
937
937
|
T = (n + (e - this._s1) / (this._s2 - this._s1)) * this._prec || 0;
|
|
938
938
|
} else
|
|
939
|
-
t = 0 > e ? 0 : e >= 1 ?
|
|
939
|
+
t = 0 > e ? 0 : e >= 1 ? V - 1 : V * e >> 0, T = (e - t * (1 / V)) * V;
|
|
940
940
|
for (_ = 1 - T, n = this._props.length; --n > -1; )
|
|
941
941
|
g = this._props[n], p = this._beziers[g][t], O = (T * T * p.da + 3 * _ * (T * p.ca + _ * p.ba)) * T + p.a, this._mod[g] && (O = this._mod[g](O, et)), tt[g] ? et[g](O) : et[g] = O;
|
|
942
942
|
if (this._autoRotate) {
|
|
943
|
-
var
|
|
944
|
-
for (n =
|
|
945
|
-
g =
|
|
943
|
+
var at, K, gt, Yt, yt, At, Kt, te = this._autoRotate;
|
|
944
|
+
for (n = te.length; --n > -1; )
|
|
945
|
+
g = te[n][2], At = te[n][3] || 0, Kt = te[n][4] === !0 ? 1 : N, p = this._beziers[te[n][0]], at = this._beziers[te[n][1]], p && at && (p = p[t], at = at[t], K = p.a + (p.b - p.a) * T, Yt = p.b + (p.c - p.b) * T, K += (Yt - K) * T, Yt += (p.c + (p.d - p.c) * T - Yt) * T, gt = at.a + (at.b - at.a) * T, yt = at.b + (at.c - at.b) * T, gt += (yt - gt) * T, yt += (at.c + (at.d - at.c) * T - yt) * T, O = mt ? Math.atan2(yt - gt, Yt - K) * Kt + At : this._initialRotations[n], this._mod[g] && (O = this._mod[g](O, et)), tt[g] ? et[g](O) : et[g] = O);
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
}), P = v.prototype;
|
|
949
949
|
v.bezierThrough = F, v.cubicToQuadratic = S, v._autoCSS = !0, v.quadraticToCubic = function(e, t, _) {
|
|
950
|
-
return new
|
|
950
|
+
return new $(e, (2 * t + e) / 3, (2 * t + _) / 3, _);
|
|
951
951
|
}, v._cssRegister = function() {
|
|
952
|
-
var e =
|
|
952
|
+
var e = Y.CSSPlugin;
|
|
953
953
|
if (e) {
|
|
954
954
|
var t = e._internals, _ = t._parseToProxy, n = t._setPluginRatio, g = t.CSSPropTween;
|
|
955
955
|
t._registerComplexSpecialProp("bezier", {
|
|
956
956
|
parser: function(p, T, O, D, R, Z) {
|
|
957
957
|
T instanceof Array && (T = { values: T }), Z = new v();
|
|
958
|
-
var
|
|
959
|
-
if (0 >
|
|
958
|
+
var V, tt, et, mt = T.values, at = mt.length - 1, K = [], gt = {};
|
|
959
|
+
if (0 > at)
|
|
960
960
|
return R;
|
|
961
|
-
for (
|
|
962
|
-
et = _(p, mt[
|
|
961
|
+
for (V = 0; at >= V; V++)
|
|
962
|
+
et = _(p, mt[V], D, R, Z, at !== V), K[V] = et.end;
|
|
963
963
|
for (tt in T)
|
|
964
964
|
gt[tt] = T[tt];
|
|
965
|
-
return gt.values =
|
|
965
|
+
return gt.values = K, R = new g(p, "bezier", 0, 0, et.pt, 2), R.data = et, R.plugin = Z, R.setRatio = n, gt.autoRotate === 0 && (gt.autoRotate = !0), !gt.autoRotate || gt.autoRotate instanceof Array || (V = gt.autoRotate === !0 ? 0 : Number(gt.autoRotate), gt.autoRotate = et.end.left != null ? [["left", "top", "rotation", V, !1]] : et.end.x != null ? [["x", "y", "rotation", V, !1]] : !1), gt.autoRotate && (D._transform || D._enableTransforms(!1), et.autoRotate = D._target._gsTransform, et.proxy.rotation = et.autoRotate.rotation || 0, D._overwriteProps.push("rotation")), Z._onInitTween(et.proxy, gt, D._tween), R;
|
|
966
966
|
}
|
|
967
967
|
});
|
|
968
968
|
}
|
|
@@ -983,11 +983,11 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
983
983
|
}(), Dt._gsDefine(
|
|
984
984
|
"plugins.CSSPlugin",
|
|
985
985
|
["plugins.TweenPlugin", "TweenLite"],
|
|
986
|
-
function(
|
|
987
|
-
var
|
|
988
|
-
|
|
989
|
-
}, dt = Dt._gsDefine.globals, S = {}, M =
|
|
990
|
-
M.constructor =
|
|
986
|
+
function(N, J) {
|
|
987
|
+
var Q, nt, E, Y, $ = function() {
|
|
988
|
+
N.call(this, "css"), this._overwriteProps.length = 0, this.setRatio = $.prototype.setRatio;
|
|
989
|
+
}, dt = Dt._gsDefine.globals, S = {}, M = $.prototype = new N("css");
|
|
990
|
+
M.constructor = $, $.version = "2.0.2", $.API = 2, $.defaultTransformPerspective = 0, $.defaultSkewType = "compensated", $.defaultSmoothOrigin = !0, M = "px", $.suffixMap = {
|
|
991
991
|
top: M,
|
|
992
992
|
right: M,
|
|
993
993
|
bottom: M,
|
|
@@ -1000,76 +1000,76 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1000
1000
|
perspective: M,
|
|
1001
1001
|
lineHeight: ""
|
|
1002
1002
|
};
|
|
1003
|
-
var
|
|
1003
|
+
var b, F, G, st, L, v, P, e, t = /(?:\-|\.|\b)(\d|\.|e\-)+/g, _ = /(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g, n = /(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi, g = /(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g, p = /(?:\d|\-|\+|=|#|\.)*/g, T = /opacity *= *([^)]*)/i, O = /opacity:([^;]*)/i, D = /alpha\(opacity *=.+?\)/i, R = /^(rgb|hsl)/, Z = /([A-Z])/g, V = /-([a-z])/gi, tt = /(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi, et = function(i, o) {
|
|
1004
1004
|
return o.toUpperCase();
|
|
1005
|
-
}, mt = /(?:Left|Right|Width)/i,
|
|
1005
|
+
}, mt = /(?:Left|Right|Width)/i, at = /(M11|M12|M21|M22)=[\d\-\.e]+/gi, K = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i, gt = /,(?=[^\)]*(?:\(|$))/gi, Yt = /[\s,\(]/i, yt = Math.PI / 180, At = 180 / Math.PI, Kt = {}, te = { style: {} }, bt = Dt.document || {
|
|
1006
1006
|
createElement: function() {
|
|
1007
|
-
return
|
|
1007
|
+
return te;
|
|
1008
1008
|
}
|
|
1009
1009
|
}, ae = function(i, o) {
|
|
1010
|
-
return
|
|
1011
|
-
},
|
|
1010
|
+
return bt.createElementNS ? bt.createElementNS(o || "http://www.w3.org/1999/xhtml", i) : bt.createElement(i);
|
|
1011
|
+
}, $t = ae("div"), le = ae("img"), Et = $._internals = { _specialProps: S }, zt = (Dt.navigator || {}).userAgent || "", ie = function() {
|
|
1012
1012
|
var i = zt.indexOf("Android"), o = ae("a");
|
|
1013
|
-
return
|
|
1013
|
+
return G = zt.indexOf("Safari") !== -1 && zt.indexOf("Chrome") === -1 && (i === -1 || parseFloat(zt.substr(i + 8, 2)) > 3), L = G && parseFloat(zt.substr(zt.indexOf("Version/") + 8, 2)) < 6, st = zt.indexOf("Firefox") !== -1, (/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(zt) || /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(zt)) && (v = parseFloat(RegExp.$1)), o ? (o.style.cssText = "top:1px;opacity:.55;", /^0.55/.test(o.style.opacity)) : !1;
|
|
1014
1014
|
}(), _e = function(i) {
|
|
1015
1015
|
return T.test(
|
|
1016
1016
|
typeof i == "string" ? i : (i.currentStyle ? i.currentStyle.filter : i.style.filter) || ""
|
|
1017
1017
|
) ? parseFloat(RegExp.$1) / 100 : 1;
|
|
1018
1018
|
}, ce = function(i) {
|
|
1019
1019
|
Dt.console && console.log(i);
|
|
1020
|
-
},
|
|
1021
|
-
o = o ||
|
|
1020
|
+
}, ee = "", Gt = "", re = function(i, o) {
|
|
1021
|
+
o = o || $t;
|
|
1022
1022
|
var l, a, s = o.style;
|
|
1023
1023
|
if (s[i] !== void 0)
|
|
1024
1024
|
return i;
|
|
1025
1025
|
for (i = i.charAt(0).toUpperCase() + i.substr(1), l = ["O", "Moz", "ms", "Ms", "Webkit"], a = 5; --a > -1 && s[l[a] + i] === void 0; )
|
|
1026
1026
|
;
|
|
1027
|
-
return a >= 0 ? (Gt = a === 3 ? "ms" : l[a],
|
|
1028
|
-
}, jt = (typeof window < "u" ? window :
|
|
1029
|
-
} }).getComputedStyle, wt =
|
|
1027
|
+
return a >= 0 ? (Gt = a === 3 ? "ms" : l[a], ee = "-" + Gt.toLowerCase() + "-", Gt + i) : null;
|
|
1028
|
+
}, jt = (typeof window < "u" ? window : bt.defaultView || { getComputedStyle: function() {
|
|
1029
|
+
} }).getComputedStyle, wt = $.getStyle = function(i, o, l, a, s) {
|
|
1030
1030
|
var d;
|
|
1031
|
-
return
|
|
1031
|
+
return ie || o !== "opacity" ? (!a && i.style[o] ? d = i.style[o] : (l = l || jt(i)) ? d = l[o] || l.getPropertyValue(o) || l.getPropertyValue(o.replace(Z, "-$1").toLowerCase()) : i.currentStyle && (d = i.currentStyle[o]), s == null || d && d !== "none" && d !== "auto" && d !== "auto auto" ? d : s) : _e(i);
|
|
1032
1032
|
}, Vt = Et.convertToPixels = function(i, o, l, a, s) {
|
|
1033
1033
|
if (a === "px" || !a && o !== "lineHeight")
|
|
1034
1034
|
return l;
|
|
1035
1035
|
if (a === "auto" || !l)
|
|
1036
1036
|
return 0;
|
|
1037
|
-
var d, h, y, k = mt.test(o), x = i, m =
|
|
1038
|
-
if (I && (l = -l),
|
|
1037
|
+
var d, h, y, k = mt.test(o), x = i, m = $t.style, I = 0 > l, B = l === 1;
|
|
1038
|
+
if (I && (l = -l), B && (l *= 100), o !== "lineHeight" || a)
|
|
1039
1039
|
if (a === "%" && o.indexOf("border") !== -1)
|
|
1040
1040
|
d = l / 100 * (k ? i.clientWidth : i.clientHeight);
|
|
1041
1041
|
else {
|
|
1042
1042
|
if (m.cssText = "border:0 solid red;position:" + wt(i, "position") + ";line-height:0;", a !== "%" && x.appendChild && a.charAt(0) !== "v" && a !== "rem")
|
|
1043
1043
|
m[k ? "borderLeftWidth" : "borderTopWidth"] = l + a;
|
|
1044
1044
|
else {
|
|
1045
|
-
if (x = i.parentNode ||
|
|
1045
|
+
if (x = i.parentNode || bt.body, wt(x, "display").indexOf("flex") !== -1 && (m.position = "absolute"), h = x._gsCache, y = J.ticker.frame, h && k && h.time === y)
|
|
1046
1046
|
return h.width * l / 100;
|
|
1047
1047
|
m[k ? "width" : "height"] = l + a;
|
|
1048
1048
|
}
|
|
1049
|
-
x.appendChild(
|
|
1049
|
+
x.appendChild($t), d = parseFloat($t[k ? "offsetWidth" : "offsetHeight"]), x.removeChild($t), k && a === "%" && $.cacheWidths !== !1 && (h = x._gsCache = x._gsCache || {}, h.time = y, h.width = d / l * 100), d !== 0 || s || (d = Vt(i, o, l, a, !0));
|
|
1050
1050
|
}
|
|
1051
1051
|
else
|
|
1052
1052
|
h = jt(i).lineHeight, i.style.lineHeight = l, d = parseFloat(jt(i).lineHeight), i.style.lineHeight = h;
|
|
1053
|
-
return
|
|
1053
|
+
return B && (d /= 100), I ? -d : d;
|
|
1054
1054
|
}, ue = Et.calculateOffset = function(i, o, l) {
|
|
1055
1055
|
if (wt(i, "position", l) !== "absolute")
|
|
1056
1056
|
return 0;
|
|
1057
1057
|
var a = o === "left" ? "Left" : "Top", s = wt(i, "margin" + a, l);
|
|
1058
1058
|
return i["offset" + a] - (Vt(i, o, parseFloat(s), s.replace(p, "")) || 0);
|
|
1059
|
-
},
|
|
1059
|
+
}, ne = function(i, o) {
|
|
1060
1060
|
var l, a, s, d = {};
|
|
1061
1061
|
if (o = o || jt(i, null))
|
|
1062
1062
|
if (l = o.length)
|
|
1063
1063
|
for (; --l > -1; )
|
|
1064
|
-
s = o[l], (s.indexOf("-transform") === -1 || Pe === s) && (d[s.replace(
|
|
1064
|
+
s = o[l], (s.indexOf("-transform") === -1 || Pe === s) && (d[s.replace(V, et)] = o.getPropertyValue(s));
|
|
1065
1065
|
else
|
|
1066
1066
|
for (l in o)
|
|
1067
1067
|
(l.indexOf("Transform") === -1 || Xt === l) && (d[l] = o[l]);
|
|
1068
1068
|
else if (o = i.currentStyle || i.style)
|
|
1069
1069
|
for (l in o)
|
|
1070
|
-
typeof l == "string" && d[l] === void 0 && (d[l.replace(
|
|
1071
|
-
return
|
|
1072
|
-
},
|
|
1070
|
+
typeof l == "string" && d[l] === void 0 && (d[l.replace(V, et)] = o[l]);
|
|
1071
|
+
return ie || (d.opacity = _e(i)), a = de(i, o, !1), d.rotation = a.rotation, d.skewX = a.skewX, d.scaleX = a.scaleX, d.scaleY = a.scaleY, d.x = a.x, d.y = a.y, Ht && (d.z = a.z, d.rotationX = a.rotationX, d.rotationY = a.rotationY, d.scaleZ = a.scaleZ), d.filters && delete d.filters, d;
|
|
1072
|
+
}, Wt = function(i, o, l, a, s) {
|
|
1073
1073
|
var d, h, y, k = {}, x = i.style;
|
|
1074
1074
|
for (h in l)
|
|
1075
1075
|
h !== "cssText" && h !== "length" && isNaN(h) && (o[h] !== (d = l[h]) || s && s[h]) && h.indexOf("Origin") === -1 && (typeof d == "number" || typeof d == "string") && (k[h] = d !== "auto" || h !== "left" && h !== "top" ? d !== "" && d !== "auto" && d !== "none" || typeof o[h] != "string" || o[h].replace(g, "") === "" ? d : 0 : ue(i, h), x[h] !== void 0 && (y = new vt(x, h, x[h], y)));
|
|
@@ -1129,8 +1129,8 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1129
1129
|
transparent: [255, 255, 255, 0]
|
|
1130
1130
|
}, ft = function(i, o, l) {
|
|
1131
1131
|
return i = 0 > i ? i + 1 : i > 1 ? i - 1 : i, 255 * (1 > 6 * i ? o + (l - o) * i * 6 : 0.5 > i ? l : 2 > 3 * i ? o + (l - o) * (2 / 3 - i) * 6 : o) + 0.5 | 0;
|
|
1132
|
-
}, ut =
|
|
1133
|
-
var l, a, s, d, h, y, k, x, m, I,
|
|
1132
|
+
}, ut = $.parseColor = function(i, o) {
|
|
1133
|
+
var l, a, s, d, h, y, k, x, m, I, B;
|
|
1134
1134
|
if (i)
|
|
1135
1135
|
if (typeof i == "number")
|
|
1136
1136
|
l = [i >> 16, i >> 8 & 255, 255 & i];
|
|
@@ -1140,7 +1140,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1140
1140
|
else if (i.charAt(0) === "#")
|
|
1141
1141
|
i.length === 4 && (a = i.charAt(1), s = i.charAt(2), d = i.charAt(3), i = "#" + a + a + s + s + d + d), i = parseInt(i.substr(1), 16), l = [i >> 16, i >> 8 & 255, 255 & i];
|
|
1142
1142
|
else if (i.substr(0, 3) === "hsl")
|
|
1143
|
-
if (l =
|
|
1143
|
+
if (l = B = i.match(t), o) {
|
|
1144
1144
|
if (i.indexOf("=") !== -1)
|
|
1145
1145
|
return i.match(_);
|
|
1146
1146
|
} else
|
|
@@ -1151,8 +1151,8 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1151
1151
|
}
|
|
1152
1152
|
else
|
|
1153
1153
|
l = A.black;
|
|
1154
|
-
return o && !
|
|
1155
|
-
},
|
|
1154
|
+
return o && !B && (a = l[0] / 255, s = l[1] / 255, d = l[2] / 255, x = Math.max(a, s, d), m = Math.min(a, s, d), k = (x + m) / 2, x === m ? h = y = 0 : (I = x - m, y = k > 0.5 ? I / (2 - x - m) : I / (x + m), h = x === a ? (s - d) / I + (d > s ? 6 : 0) : x === s ? (d - a) / I + 2 : (a - s) / I + 4, h *= 60), l[0] = h + 0.5 | 0, l[1] = 100 * y + 0.5 | 0, l[2] = 100 * k + 0.5 | 0), l;
|
|
1155
|
+
}, W = function(i, o) {
|
|
1156
1156
|
var l, a, s, d = i.match(pt) || [], h = 0, y = "";
|
|
1157
1157
|
if (!d.length)
|
|
1158
1158
|
return i;
|
|
@@ -1162,44 +1162,44 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1162
1162
|
}, pt = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";
|
|
1163
1163
|
for (M in A)
|
|
1164
1164
|
pt += "|" + M + "\\b";
|
|
1165
|
-
pt = new RegExp(pt + ")", "gi"),
|
|
1165
|
+
pt = new RegExp(pt + ")", "gi"), $.colorStringFilter = function(i) {
|
|
1166
1166
|
var o, l = i[0] + " " + i[1];
|
|
1167
|
-
pt.test(l) && (o = l.indexOf("hsl(") !== -1 || l.indexOf("hsla(") !== -1, i[0] =
|
|
1168
|
-
},
|
|
1167
|
+
pt.test(l) && (o = l.indexOf("hsl(") !== -1 || l.indexOf("hsla(") !== -1, i[0] = W(i[0], o), i[1] = W(i[1], o)), pt.lastIndex = 0;
|
|
1168
|
+
}, J.defaultStringFilter || (J.defaultStringFilter = $.colorStringFilter);
|
|
1169
1169
|
var Pt = function(i, o, l, a) {
|
|
1170
1170
|
if (i == null)
|
|
1171
|
-
return function(
|
|
1172
|
-
return
|
|
1171
|
+
return function(B) {
|
|
1172
|
+
return B;
|
|
1173
1173
|
};
|
|
1174
1174
|
var s, d = o ? (i.match(pt) || [""])[0] : "", h = i.split(d).join("").match(n) || [], y = i.substr(0, i.indexOf(h[0])), k = i.charAt(i.length - 1) === ")" ? ")" : "", x = i.indexOf(" ") !== -1 ? " " : ",", m = h.length, I = m > 0 ? h[0].replace(t, "") : "";
|
|
1175
|
-
return m ? s = o ? function(
|
|
1176
|
-
var
|
|
1177
|
-
if (typeof
|
|
1178
|
-
|
|
1179
|
-
else if (a && gt.test(
|
|
1180
|
-
for (lt =
|
|
1175
|
+
return m ? s = o ? function(B) {
|
|
1176
|
+
var z, q, X, lt;
|
|
1177
|
+
if (typeof B == "number")
|
|
1178
|
+
B += I;
|
|
1179
|
+
else if (a && gt.test(B)) {
|
|
1180
|
+
for (lt = B.replace(gt, "|").split("|"), X = 0; X < lt.length; X++)
|
|
1181
1181
|
lt[X] = s(lt[X]);
|
|
1182
1182
|
return lt.join(",");
|
|
1183
1183
|
}
|
|
1184
|
-
if (
|
|
1184
|
+
if (z = (B.match(pt) || [d])[0], q = B.split(z).join("").match(n) || [], X = q.length, m > X--)
|
|
1185
1185
|
for (; ++X < m; )
|
|
1186
1186
|
q[X] = l ? q[(X - 1) / 2 | 0] : h[X];
|
|
1187
|
-
return y + q.join(x) + x +
|
|
1188
|
-
} : function(
|
|
1189
|
-
var
|
|
1190
|
-
if (typeof
|
|
1191
|
-
|
|
1192
|
-
else if (a && gt.test(
|
|
1193
|
-
for (q =
|
|
1187
|
+
return y + q.join(x) + x + z + k + (B.indexOf("inset") !== -1 ? " inset" : "");
|
|
1188
|
+
} : function(B) {
|
|
1189
|
+
var z, q, X;
|
|
1190
|
+
if (typeof B == "number")
|
|
1191
|
+
B += I;
|
|
1192
|
+
else if (a && gt.test(B)) {
|
|
1193
|
+
for (q = B.replace(gt, "|").split("|"), X = 0; X < q.length; X++)
|
|
1194
1194
|
q[X] = s(q[X]);
|
|
1195
1195
|
return q.join(",");
|
|
1196
1196
|
}
|
|
1197
|
-
if (
|
|
1197
|
+
if (z = B.match(n) || [], X = z.length, m > X--)
|
|
1198
1198
|
for (; ++X < m; )
|
|
1199
|
-
|
|
1200
|
-
return y +
|
|
1201
|
-
} : function(
|
|
1202
|
-
return
|
|
1199
|
+
z[X] = l ? z[(X - 1) / 2 | 0] : h[X];
|
|
1200
|
+
return y + z.join(x) + k;
|
|
1201
|
+
} : function(B) {
|
|
1202
|
+
return B;
|
|
1203
1203
|
};
|
|
1204
1204
|
}, Ot = function(i) {
|
|
1205
1205
|
return i = i.split(","), function(o, l, a, s, d, h, y) {
|
|
@@ -1227,79 +1227,79 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1227
1227
|
}, function(i, o, l, a, s) {
|
|
1228
1228
|
this.t = i, this.p = o, this.v = l, this.r = s, a && (a._prev = this, this._next = a);
|
|
1229
1229
|
}), kt = (Et._parseToProxy = function(i, o, l, a, s, d) {
|
|
1230
|
-
var h, y, k, x, m, I = a,
|
|
1231
|
-
for (l._transform = null,
|
|
1232
|
-
if (a.type <= 1 && (y = a.p,
|
|
1230
|
+
var h, y, k, x, m, I = a, B = {}, z = {}, q = l._transform, X = Kt;
|
|
1231
|
+
for (l._transform = null, Kt = o, a = m = l.parse(i, o, a, s), Kt = X, d && (l._transform = q, I && (I._prev = null, I._prev && (I._prev._next = null))); a && a !== I; ) {
|
|
1232
|
+
if (a.type <= 1 && (y = a.p, z[y] = a.s + a.c, B[y] = a.s, d || (x = new vt(a, "s", y, x, a.r), a.c = 0), a.type === 1))
|
|
1233
1233
|
for (h = a.l; --h > 0; )
|
|
1234
|
-
k = "xn" + h, y = a.p + "_" + k,
|
|
1234
|
+
k = "xn" + h, y = a.p + "_" + k, z[y] = a.data[k], B[y] = a[k], d || (x = new vt(a, k, y, x, a.rxp[k]));
|
|
1235
1235
|
a = a._next;
|
|
1236
1236
|
}
|
|
1237
|
-
return { proxy:
|
|
1237
|
+
return { proxy: B, end: z, firstMPT: x, pt: m };
|
|
1238
1238
|
}, Et.CSSPropTween = function(i, o, l, a, s, d, h, y, k, x, m) {
|
|
1239
|
-
this.t = i, this.p = o, this.s = l, this.c = a, this.n = h || o, i instanceof kt ||
|
|
1239
|
+
this.t = i, this.p = o, this.s = l, this.c = a, this.n = h || o, i instanceof kt || Y.push(this.n), this.r = y && (typeof y == "function" ? y : Math.round), this.type = d || 0, k && (this.pr = k, Q = !0), this.b = x === void 0 ? l : x, this.e = m === void 0 ? l + a : m, s && (this._next = s, s._prev = this);
|
|
1240
1240
|
}), he = function(i, o, l, a, s, d) {
|
|
1241
1241
|
var h = new kt(i, o, l, a - l, s, -1, d);
|
|
1242
1242
|
return h.b = l, h.e = h.xs0 = a, h;
|
|
1243
|
-
},
|
|
1244
|
-
l = l || d || "", typeof a == "function" && (a = a(e, P)), h = new kt(i, o, 0, 0, h, x ? 2 : 1, null, !1, y, l, a), a += "", s && pt.test(a + l) && (a = [l, a],
|
|
1245
|
-
var m, I,
|
|
1246
|
-
for ((a.indexOf(",") !== -1 || l.indexOf(",") !== -1) && ((a + l).indexOf("rgb") !== -1 || (a + l).indexOf("hsl") !== -1 ? (Tt = Tt.join(" ").replace(gt, ", ").split(" "), it = it.join(" ").replace(gt, ", ").split(" ")) : (Tt = Tt.join(" ").split(",").join(", ").split(" "), it = it.join(" ").split(",").join(", ").split(" ")),
|
|
1247
|
-
if (
|
|
1243
|
+
}, se = $.parseComplex = function(i, o, l, a, s, d, h, y, k, x) {
|
|
1244
|
+
l = l || d || "", typeof a == "function" && (a = a(e, P)), h = new kt(i, o, 0, 0, h, x ? 2 : 1, null, !1, y, l, a), a += "", s && pt.test(a + l) && (a = [l, a], $.colorStringFilter(a), l = a[0], a = a[1]);
|
|
1245
|
+
var m, I, B, z, q, X, lt, ht, xt, ct, rt, _t, U, Tt = l.split(", ").join(",").split(" "), it = a.split(", ").join(",").split(" "), H = Tt.length, ot = b !== !1;
|
|
1246
|
+
for ((a.indexOf(",") !== -1 || l.indexOf(",") !== -1) && ((a + l).indexOf("rgb") !== -1 || (a + l).indexOf("hsl") !== -1 ? (Tt = Tt.join(" ").replace(gt, ", ").split(" "), it = it.join(" ").replace(gt, ", ").split(" ")) : (Tt = Tt.join(" ").split(",").join(", ").split(" "), it = it.join(" ").split(",").join(", ").split(" ")), H = Tt.length), H !== it.length && (Tt = (d || "").split(" "), H = Tt.length), h.plugin = k, h.setRatio = x, pt.lastIndex = 0, m = 0; H > m; m++)
|
|
1247
|
+
if (z = Tt[m], q = it[m] + "", ht = parseFloat(z), ht || ht === 0)
|
|
1248
1248
|
h.appendXtra(
|
|
1249
1249
|
"",
|
|
1250
1250
|
ht,
|
|
1251
1251
|
w(q, ht),
|
|
1252
1252
|
q.replace(_, ""),
|
|
1253
|
-
|
|
1253
|
+
ot && q.indexOf("px") !== -1 ? Math.round : !1,
|
|
1254
1254
|
!0
|
|
1255
1255
|
);
|
|
1256
|
-
else if (s && pt.test(
|
|
1257
|
-
_t = q.indexOf(")") + 1, _t = ")" + (_t ? q.substr(_t) : ""),
|
|
1256
|
+
else if (s && pt.test(z))
|
|
1257
|
+
_t = q.indexOf(")") + 1, _t = ")" + (_t ? q.substr(_t) : ""), U = q.indexOf("hsl") !== -1 && ie, ct = q, z = ut(z, U), q = ut(q, U), xt = z.length + q.length > 6, xt && !ie && q[3] === 0 ? (h["xs" + h.l] += h.l ? " transparent" : "transparent", h.e = h.e.split(it[m]).join("transparent")) : (ie || (xt = !1), U ? h.appendXtra(
|
|
1258
1258
|
ct.substr(0, ct.indexOf("hsl")) + (xt ? "hsla(" : "hsl("),
|
|
1259
|
-
|
|
1260
|
-
w(q[0],
|
|
1259
|
+
z[0],
|
|
1260
|
+
w(q[0], z[0]),
|
|
1261
1261
|
",",
|
|
1262
1262
|
!1,
|
|
1263
1263
|
!0
|
|
1264
|
-
).appendXtra("",
|
|
1264
|
+
).appendXtra("", z[1], w(q[1], z[1]), "%,", !1).appendXtra(
|
|
1265
1265
|
"",
|
|
1266
|
-
|
|
1267
|
-
w(q[2],
|
|
1266
|
+
z[2],
|
|
1267
|
+
w(q[2], z[2]),
|
|
1268
1268
|
xt ? "%," : "%" + _t,
|
|
1269
1269
|
!1
|
|
1270
1270
|
) : h.appendXtra(
|
|
1271
1271
|
ct.substr(0, ct.indexOf("rgb")) + (xt ? "rgba(" : "rgb("),
|
|
1272
|
-
|
|
1273
|
-
q[0] -
|
|
1272
|
+
z[0],
|
|
1273
|
+
q[0] - z[0],
|
|
1274
1274
|
",",
|
|
1275
1275
|
Math.round,
|
|
1276
1276
|
!0
|
|
1277
|
-
).appendXtra("",
|
|
1277
|
+
).appendXtra("", z[1], q[1] - z[1], ",", Math.round).appendXtra(
|
|
1278
1278
|
"",
|
|
1279
|
-
|
|
1280
|
-
q[2] -
|
|
1279
|
+
z[2],
|
|
1280
|
+
q[2] - z[2],
|
|
1281
1281
|
xt ? "," : _t,
|
|
1282
1282
|
Math.round
|
|
1283
|
-
), xt && (
|
|
1283
|
+
), xt && (z = z.length < 4 ? 1 : z[3], h.appendXtra(
|
|
1284
1284
|
"",
|
|
1285
|
-
|
|
1286
|
-
(q.length < 4 ? 1 : q[3]) -
|
|
1285
|
+
z,
|
|
1286
|
+
(q.length < 4 ? 1 : q[3]) - z,
|
|
1287
1287
|
_t,
|
|
1288
1288
|
!1
|
|
1289
1289
|
))), pt.lastIndex = 0;
|
|
1290
|
-
else if (X =
|
|
1290
|
+
else if (X = z.match(t)) {
|
|
1291
1291
|
if (lt = q.match(_), !lt || lt.length !== X.length)
|
|
1292
1292
|
return h;
|
|
1293
|
-
for (
|
|
1294
|
-
rt = X[I], ct =
|
|
1295
|
-
|
|
1293
|
+
for (B = 0, I = 0; I < X.length; I++)
|
|
1294
|
+
rt = X[I], ct = z.indexOf(rt, B), h.appendXtra(
|
|
1295
|
+
z.substr(B, ct - B),
|
|
1296
1296
|
Number(rt),
|
|
1297
1297
|
w(lt[I], rt),
|
|
1298
1298
|
"",
|
|
1299
|
-
|
|
1299
|
+
ot && z.substr(ct + rt.length, 2) === "px" ? Math.round : !1,
|
|
1300
1300
|
I === 0
|
|
1301
|
-
),
|
|
1302
|
-
h["xs" + h.l] +=
|
|
1301
|
+
), B = ct + rt.length;
|
|
1302
|
+
h["xs" + h.l] += z.substr(B);
|
|
1303
1303
|
} else
|
|
1304
1304
|
h["xs" + h.l] += h.l || h["xs" + h.l] ? " " + q : q;
|
|
1305
1305
|
if (a.indexOf("=") !== -1 && h.data) {
|
|
@@ -1325,14 +1325,14 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1325
1325
|
h.pr
|
|
1326
1326
|
), h.xfirst.xs0 = 0), h) : (h.data = { s: o + l }, h.rxp = {}, h.s = o, h.c = l, h.r = s, h)) : (h["xs" + y] += o + (a || ""), h);
|
|
1327
1327
|
};
|
|
1328
|
-
var
|
|
1329
|
-
o = o || {}, this.p = o.prefix &&
|
|
1328
|
+
var De = function(i, o) {
|
|
1329
|
+
o = o || {}, this.p = o.prefix && re(i) || i, S[i] = S[this.p] = this, this.format = o.formatter || Pt(o.defaultValue, o.color, o.collapsible, o.multi), o.parser && (this.parse = o.parser), this.clrs = o.color, this.multi = o.multi, this.keyword = o.keyword, this.dflt = o.defaultValue, this.pr = o.priority || 0;
|
|
1330
1330
|
}, Ct = Et._registerComplexSpecialProp = function(i, o, l) {
|
|
1331
1331
|
typeof o != "object" && (o = { parser: l });
|
|
1332
1332
|
var a, s = i.split(","), d = o.defaultValue;
|
|
1333
1333
|
for (l = l || [d], a = 0; a < s.length; a++)
|
|
1334
|
-
o.prefix = a === 0 && o.prefix, o.defaultValue = l[a] || d, new
|
|
1335
|
-
},
|
|
1334
|
+
o.prefix = a === 0 && o.prefix, o.defaultValue = l[a] || d, new De(s[a], o);
|
|
1335
|
+
}, Ne = Et._registerPluginProp = function(i) {
|
|
1336
1336
|
if (!S[i]) {
|
|
1337
1337
|
var o = i.charAt(0).toUpperCase() + i.substr(1) + "Plugin";
|
|
1338
1338
|
Ct(i, {
|
|
@@ -1343,23 +1343,23 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1343
1343
|
});
|
|
1344
1344
|
}
|
|
1345
1345
|
};
|
|
1346
|
-
M =
|
|
1347
|
-
var h, y, k, x, m, I,
|
|
1348
|
-
if (this.multi && (gt.test(l) || gt.test(o) ? (y = o.replace(gt, "|").split("|"), k = l.replace(gt, "|").split("|")) :
|
|
1346
|
+
M = De.prototype, M.parseComplex = function(i, o, l, a, s, d) {
|
|
1347
|
+
var h, y, k, x, m, I, B = this.keyword;
|
|
1348
|
+
if (this.multi && (gt.test(l) || gt.test(o) ? (y = o.replace(gt, "|").split("|"), k = l.replace(gt, "|").split("|")) : B && (y = [o], k = [l])), k) {
|
|
1349
1349
|
for (x = k.length > y.length ? k.length : y.length, h = 0; x > h; h++)
|
|
1350
|
-
o = y[h] = y[h] || this.dflt, l = k[h] = k[h] || this.dflt,
|
|
1350
|
+
o = y[h] = y[h] || this.dflt, l = k[h] = k[h] || this.dflt, B && (m = o.indexOf(B), I = l.indexOf(B), m !== I && (I === -1 ? y[h] = y[h].split(B).join("") : m === -1 && (y[h] += " " + B)));
|
|
1351
1351
|
o = y.join(", "), l = k.join(", ");
|
|
1352
1352
|
}
|
|
1353
|
-
return
|
|
1353
|
+
return se(i, this.p, o, l, this.clrs, this.dflt, a, this.pr, s, d);
|
|
1354
1354
|
}, M.parse = function(i, o, l, a, s, d, h) {
|
|
1355
1355
|
return this.parseComplex(
|
|
1356
1356
|
i.style,
|
|
1357
|
-
this.format(wt(i, this.p,
|
|
1357
|
+
this.format(wt(i, this.p, E, !1, this.dflt)),
|
|
1358
1358
|
this.format(o),
|
|
1359
1359
|
s,
|
|
1360
1360
|
d
|
|
1361
1361
|
);
|
|
1362
|
-
},
|
|
1362
|
+
}, $.registerSpecialProp = function(i, o, l) {
|
|
1363
1363
|
Ct(i, {
|
|
1364
1364
|
parser: function(a, s, d, h, y, k, x) {
|
|
1365
1365
|
var m = new kt(a, d, 0, 0, y, 2, d, !1, l);
|
|
@@ -1367,22 +1367,22 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1367
1367
|
},
|
|
1368
1368
|
priority: l
|
|
1369
1369
|
});
|
|
1370
|
-
},
|
|
1371
|
-
var
|
|
1370
|
+
}, $.useSVGTransformAttr = !0;
|
|
1371
|
+
var oe, Fe = "scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(
|
|
1372
1372
|
","
|
|
1373
|
-
), Xt =
|
|
1374
|
-
this.perspective = parseFloat(
|
|
1375
|
-
},
|
|
1376
|
-
var a, s =
|
|
1373
|
+
), Xt = re("transform"), Pe = ee + "transform", me = re("transformOrigin"), Ht = re("perspective") !== null, xe = Et.Transform = function() {
|
|
1374
|
+
this.perspective = parseFloat($.defaultTransformPerspective) || 0, this.force3D = $.defaultForce3D !== !1 && Ht ? $.defaultForce3D || "auto" : !1;
|
|
1375
|
+
}, Be = Dt.SVGElement, Ee = function(i, o, l) {
|
|
1376
|
+
var a, s = bt.createElementNS("http://www.w3.org/2000/svg", i), d = /([a-z])([A-Z])/g;
|
|
1377
1377
|
for (a in l)
|
|
1378
1378
|
s.setAttributeNS(null, a.replace(d, "$1-$2").toLowerCase(), l[a]);
|
|
1379
1379
|
return o.appendChild(s), s;
|
|
1380
|
-
}, fe =
|
|
1380
|
+
}, fe = bt.documentElement || {}, Ye = function() {
|
|
1381
1381
|
var i, o, l, a = v || /Android/i.test(zt) && !Dt.chrome;
|
|
1382
|
-
return
|
|
1382
|
+
return bt.createElementNS && !a && (i = Ee("svg", fe), o = Ee("rect", i, { width: 100, height: 50, x: 100 }), l = o.getBoundingClientRect().width, o.style[me] = "50% 50%", o.style[Xt] = "scaleX(0.5)", a = l === o.getBoundingClientRect().width && !(st && Ht), fe.removeChild(i)), a;
|
|
1383
1383
|
}(), ke = function(i, o, l, a, s, d) {
|
|
1384
|
-
var h, y, k, x, m, I,
|
|
1385
|
-
rt && (xt = rt.xOrigin, ct = rt.yOrigin), (!a || (h = a.split(" ")).length < 2) && (
|
|
1384
|
+
var h, y, k, x, m, I, B, z, q, X, lt, ht, xt, ct, rt = i._gsTransform, _t = Re(i, !0);
|
|
1385
|
+
rt && (xt = rt.xOrigin, ct = rt.yOrigin), (!a || (h = a.split(" ")).length < 2) && (B = i.getBBox(), B.x === 0 && B.y === 0 && B.width + B.height === 0 && (B = {
|
|
1386
1386
|
x: parseFloat(
|
|
1387
1387
|
i.hasAttribute("x") ? i.getAttribute("x") : i.hasAttribute("cx") ? i.getAttribute("cx") : 0
|
|
1388
1388
|
) || 0,
|
|
@@ -1392,33 +1392,33 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1392
1392
|
width: 0,
|
|
1393
1393
|
height: 0
|
|
1394
1394
|
}), o = c(o).split(" "), h = [
|
|
1395
|
-
(o[0].indexOf("%") !== -1 ? parseFloat(o[0]) / 100 *
|
|
1396
|
-
(o[1].indexOf("%") !== -1 ? parseFloat(o[1]) / 100 *
|
|
1397
|
-
]), l.xOrigin = x = parseFloat(h[0]), l.yOrigin = m = parseFloat(h[1]), a && _t !== Se && (I = _t[0],
|
|
1398
|
-
},
|
|
1395
|
+
(o[0].indexOf("%") !== -1 ? parseFloat(o[0]) / 100 * B.width : parseFloat(o[0])) + B.x,
|
|
1396
|
+
(o[1].indexOf("%") !== -1 ? parseFloat(o[1]) / 100 * B.height : parseFloat(o[1])) + B.y
|
|
1397
|
+
]), l.xOrigin = x = parseFloat(h[0]), l.yOrigin = m = parseFloat(h[1]), a && _t !== Se && (I = _t[0], B = _t[1], z = _t[2], q = _t[3], X = _t[4], lt = _t[5], ht = I * q - B * z, ht && (y = x * (q / ht) + m * (-z / ht) + (z * lt - q * X) / ht, k = x * (-B / ht) + m * (I / ht) - (I * lt - B * X) / ht, x = l.xOrigin = h[0] = y, m = l.yOrigin = h[1] = k)), rt && (d && (l.xOffset = rt.xOffset, l.yOffset = rt.yOffset, rt = l), s || s !== !1 && $.defaultSmoothOrigin !== !1 ? (y = x - xt, k = m - ct, rt.xOffset += y * _t[0] + k * _t[2] - y, rt.yOffset += y * _t[1] + k * _t[3] - k) : rt.xOffset = rt.yOffset = 0), d || i.setAttribute("data-svg-origin", h.join(" "));
|
|
1398
|
+
}, ze = function(i) {
|
|
1399
1399
|
var o, l = ae(
|
|
1400
1400
|
"svg",
|
|
1401
1401
|
this.ownerSVGElement && this.ownerSVGElement.getAttribute("xmlns") || "http://www.w3.org/2000/svg"
|
|
1402
1402
|
), a = this.parentNode, s = this.nextSibling, d = this.style.cssText;
|
|
1403
1403
|
if (fe.appendChild(l), l.appendChild(this), this.style.display = "block", i)
|
|
1404
1404
|
try {
|
|
1405
|
-
o = this.getBBox(), this._originalGetBBox = this.getBBox, this.getBBox =
|
|
1405
|
+
o = this.getBBox(), this._originalGetBBox = this.getBBox, this.getBBox = ze;
|
|
1406
1406
|
} catch {
|
|
1407
1407
|
}
|
|
1408
1408
|
else
|
|
1409
1409
|
this._originalGetBBox && (o = this._originalGetBBox());
|
|
1410
1410
|
return s ? a.insertBefore(this, s) : a.appendChild(this), fe.removeChild(l), this.style.cssText = d, o;
|
|
1411
|
-
},
|
|
1411
|
+
}, Ue = function(i) {
|
|
1412
1412
|
try {
|
|
1413
1413
|
return i.getBBox();
|
|
1414
1414
|
} catch {
|
|
1415
|
-
return
|
|
1415
|
+
return ze.call(i, !0);
|
|
1416
1416
|
}
|
|
1417
1417
|
}, Oe = function(i) {
|
|
1418
|
-
return !(!
|
|
1418
|
+
return !(!Be || !i.getCTM || i.parentNode && !i.ownerSVGElement || !Ue(i));
|
|
1419
1419
|
}, Se = [1, 0, 0, 1, 0, 0], Re = function(i, o) {
|
|
1420
1420
|
var l, a, s, d, h, y, k = i._gsTransform || new xe(), x = 1e5, m = i.style;
|
|
1421
|
-
if (Xt ? a = wt(i, Pe, null, !0) : i.currentStyle && (a = i.currentStyle.filter.match(
|
|
1421
|
+
if (Xt ? a = wt(i, Pe, null, !0) : i.currentStyle && (a = i.currentStyle.filter.match(at), a = a && a.length === 4 ? [
|
|
1422
1422
|
a[0].substr(4),
|
|
1423
1423
|
Number(a[2].substr(4)),
|
|
1424
1424
|
Number(a[1].substr(4)),
|
|
@@ -1433,58 +1433,58 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1433
1433
|
}, de = Et.getTransform = function(i, o, l, a) {
|
|
1434
1434
|
if (i._gsTransform && l && !a)
|
|
1435
1435
|
return i._gsTransform;
|
|
1436
|
-
var s, d, h, y, k, x, m = l ? i._gsTransform || new xe() : new xe(), I = m.scaleX < 0,
|
|
1436
|
+
var s, d, h, y, k, x, m = l ? i._gsTransform || new xe() : new xe(), I = m.scaleX < 0, B = 2e-5, z = 1e5, q = Ht && (parseFloat(wt(i, me, o, !1, "0 0 0").split(" ")[2]) || m.zOrigin) || 0, X = parseFloat($.defaultTransformPerspective) || 0;
|
|
1437
1437
|
if (m.svg = !(!i.getCTM || !Oe(i)), m.svg && (ke(
|
|
1438
1438
|
i,
|
|
1439
1439
|
wt(i, me, o, !1, "50% 50%") + "",
|
|
1440
1440
|
m,
|
|
1441
1441
|
i.getAttribute("data-svg-origin")
|
|
1442
|
-
),
|
|
1442
|
+
), oe = $.useSVGTransformAttr || Ye), s = Re(i), s !== Se) {
|
|
1443
1443
|
if (s.length === 16) {
|
|
1444
|
-
var lt, ht, xt, ct, rt, _t = s[0],
|
|
1445
|
-
m.zOrigin && (Ut = -m.zOrigin, Lt = Mt * Ut - s[12], Nt = Rt * Ut - s[13], Ut = Ft * Ut + m.zOrigin - s[14]), m.rotationX = St * At, St && (ct = Math.cos(-St), rt = Math.sin(-St), lt =
|
|
1444
|
+
var lt, ht, xt, ct, rt, _t = s[0], U = s[1], Tt = s[2], it = s[3], H = s[4], ot = s[5], Qt = s[6], pe = s[7], Mt = s[8], Rt = s[9], Ft = s[10], Lt = s[12], Nt = s[13], Ut = s[14], Bt = s[11], St = Math.atan2(Qt, Ft);
|
|
1445
|
+
m.zOrigin && (Ut = -m.zOrigin, Lt = Mt * Ut - s[12], Nt = Rt * Ut - s[13], Ut = Ft * Ut + m.zOrigin - s[14]), m.rotationX = St * At, St && (ct = Math.cos(-St), rt = Math.sin(-St), lt = H * ct + Mt * rt, ht = ot * ct + Rt * rt, xt = Qt * ct + Ft * rt, Mt = H * -rt + Mt * ct, Rt = ot * -rt + Rt * ct, Ft = Qt * -rt + Ft * ct, Bt = pe * -rt + Bt * ct, H = lt, ot = ht, Qt = xt), St = Math.atan2(-Tt, Ft), m.rotationY = St * At, St && (ct = Math.cos(-St), rt = Math.sin(-St), lt = _t * ct - Mt * rt, ht = U * ct - Rt * rt, xt = Tt * ct - Ft * rt, Rt = U * rt + Rt * ct, Ft = Tt * rt + Ft * ct, Bt = it * rt + Bt * ct, _t = lt, U = ht, Tt = xt), St = Math.atan2(U, _t), m.rotation = St * At, St && (ct = Math.cos(St), rt = Math.sin(St), lt = _t * ct + U * rt, ht = H * ct + ot * rt, xt = Mt * ct + Rt * rt, U = U * ct - _t * rt, ot = ot * ct - H * rt, Rt = Rt * ct - Mt * rt, _t = lt, H = ht, Mt = xt), m.rotationX && Math.abs(m.rotationX) + Math.abs(m.rotation) > 359.9 && (m.rotationX = m.rotation = 0, m.rotationY = 180 - m.rotationY), St = Math.atan2(H, ot), m.scaleX = (Math.sqrt(_t * _t + U * U + Tt * Tt) * z + 0.5 | 0) / z, m.scaleY = (Math.sqrt(ot * ot + Qt * Qt) * z + 0.5 | 0) / z, m.scaleZ = (Math.sqrt(Mt * Mt + Rt * Rt + Ft * Ft) * z + 0.5 | 0) / z, _t /= m.scaleX, H /= m.scaleY, U /= m.scaleX, ot /= m.scaleY, Math.abs(St) > B ? (m.skewX = St * At, H = 0, m.skewType !== "simple" && (m.scaleY *= 1 / Math.cos(St))) : m.skewX = 0, m.perspective = Bt ? 1 / (0 > Bt ? -Bt : Bt) : 0, m.x = Lt, m.y = Nt, m.z = Ut, m.svg && (m.x -= m.xOrigin - (m.xOrigin * _t - m.yOrigin * H), m.y -= m.yOrigin - (m.yOrigin * U - m.xOrigin * ot));
|
|
1446
1446
|
} else if (!Ht || a || !s.length || m.x !== s[4] || m.y !== s[5] || !m.rotationX && !m.rotationY) {
|
|
1447
|
-
var ye = s.length >= 6, qt = ye ? s[0] : 1,
|
|
1448
|
-
m.x = s[4] || 0, m.y = s[5] || 0, h = Math.sqrt(qt * qt +
|
|
1447
|
+
var ye = s.length >= 6, qt = ye ? s[0] : 1, Zt = s[1] || 0, ve = s[2] || 0, Te = ye ? s[3] : 1;
|
|
1448
|
+
m.x = s[4] || 0, m.y = s[5] || 0, h = Math.sqrt(qt * qt + Zt * Zt), y = Math.sqrt(Te * Te + ve * ve), k = qt || Zt ? Math.atan2(Zt, qt) * At : m.rotation || 0, x = ve || Te ? Math.atan2(ve, Te) * At + k : m.skewX || 0, m.scaleX = h, m.scaleY = y, m.rotation = k, m.skewX = x, Ht && (m.rotationX = m.rotationY = m.z = 0, m.perspective = X, m.scaleZ = 1), m.svg && (m.x -= m.xOrigin - (m.xOrigin * qt + m.yOrigin * ve), m.y -= m.yOrigin - (m.xOrigin * Zt + m.yOrigin * Te));
|
|
1449
1449
|
}
|
|
1450
1450
|
Math.abs(m.skewX) > 90 && Math.abs(m.skewX) < 270 && (I ? (m.scaleX *= -1, m.skewX += m.rotation <= 0 ? 180 : -180, m.rotation += m.rotation <= 0 ? 180 : -180) : (m.scaleY *= -1, m.skewX += m.skewX <= 0 ? 180 : -180)), m.zOrigin = q;
|
|
1451
1451
|
for (d in m)
|
|
1452
|
-
m[d] <
|
|
1452
|
+
m[d] < B && m[d] > -B && (m[d] = 0);
|
|
1453
1453
|
}
|
|
1454
|
-
return l && (i._gsTransform = m, m.svg && (
|
|
1454
|
+
return l && (i._gsTransform = m, m.svg && (oe && i.style[Xt] ? J.delayedCall(1e-3, function() {
|
|
1455
1455
|
ge(i.style, Xt);
|
|
1456
|
-
}) : !
|
|
1456
|
+
}) : !oe && i.getAttribute("transform") && J.delayedCall(1e-3, function() {
|
|
1457
1457
|
i.removeAttribute("transform");
|
|
1458
1458
|
}))), m;
|
|
1459
|
-
},
|
|
1460
|
-
var o, l, a = this.data, s = -a.rotation * yt, d = s + a.skewX * yt, h = 1e5, y = (Math.cos(s) * a.scaleX * h | 0) / h, k = (Math.sin(s) * a.scaleX * h | 0) / h, x = (Math.sin(d) * -a.scaleY * h | 0) / h, m = (Math.cos(d) * a.scaleY * h | 0) / h, I = this.t.style,
|
|
1461
|
-
if (
|
|
1462
|
-
l = k, k = -x, x = -l, o =
|
|
1463
|
-
var
|
|
1464
|
-
if (a.ox != null && (
|
|
1465
|
-
var _t,
|
|
1466
|
-
for (
|
|
1459
|
+
}, Ve = function(i) {
|
|
1460
|
+
var o, l, a = this.data, s = -a.rotation * yt, d = s + a.skewX * yt, h = 1e5, y = (Math.cos(s) * a.scaleX * h | 0) / h, k = (Math.sin(s) * a.scaleX * h | 0) / h, x = (Math.sin(d) * -a.scaleY * h | 0) / h, m = (Math.cos(d) * a.scaleY * h | 0) / h, I = this.t.style, B = this.t.currentStyle;
|
|
1461
|
+
if (B) {
|
|
1462
|
+
l = k, k = -x, x = -l, o = B.filter, I.filter = "";
|
|
1463
|
+
var z, q, X = this.t.offsetWidth, lt = this.t.offsetHeight, ht = B.position !== "absolute", xt = "progid:DXImageTransform.Microsoft.Matrix(M11=" + y + ", M12=" + k + ", M21=" + x + ", M22=" + m, ct = a.x + X * a.xPercent / 100, rt = a.y + lt * a.yPercent / 100;
|
|
1464
|
+
if (a.ox != null && (z = (a.oxp ? X * a.ox * 0.01 : a.ox) - X / 2, q = (a.oyp ? lt * a.oy * 0.01 : a.oy) - lt / 2, ct += z - (z * y + q * k), rt += q - (z * x + q * m)), ht ? (z = X / 2, q = lt / 2, xt += ", Dx=" + (z - (z * y + q * k) + ct) + ", Dy=" + (q - (z * x + q * m) + rt) + ")") : xt += ", sizingMethod='auto expand')", o.indexOf("DXImageTransform.Microsoft.Matrix(") !== -1 ? I.filter = o.replace(K, xt) : I.filter = xt + " " + o, (i === 0 || i === 1) && y === 1 && k === 0 && x === 0 && m === 1 && (ht && xt.indexOf("Dx=0, Dy=0") === -1 || T.test(o) && parseFloat(RegExp.$1) !== 100 || o.indexOf(o.indexOf("Alpha")) === -1 && I.removeAttribute("filter")), !ht) {
|
|
1465
|
+
var _t, U, Tt, it = 8 > v ? 1 : -1;
|
|
1466
|
+
for (z = a.ieOffsetX || 0, q = a.ieOffsetY || 0, a.ieOffsetX = Math.round(
|
|
1467
1467
|
(X - ((0 > y ? -y : y) * X + (0 > k ? -k : k) * lt)) / 2 + ct
|
|
1468
1468
|
), a.ieOffsetY = Math.round(
|
|
1469
1469
|
(lt - ((0 > m ? -m : m) * lt + (0 > x ? -x : x) * X)) / 2 + rt
|
|
1470
1470
|
), It = 0; 4 > It; It++)
|
|
1471
|
-
|
|
1471
|
+
U = u[It], _t = B[U], l = _t.indexOf("px") !== -1 ? parseFloat(_t) : Vt(this.t, U, parseFloat(_t), _t.replace(p, "")) || 0, Tt = l !== a[U] ? 2 > It ? -a.ieOffsetX : -a.ieOffsetY : 2 > It ? z - a.ieOffsetX : q - a.ieOffsetY, I[U] = (a[U] = Math.round(
|
|
1472
1472
|
l - Tt * (It === 0 || It === 2 ? 1 : it)
|
|
1473
1473
|
)) + "px";
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
|
-
},
|
|
1477
|
-
var o, l, a, s, d, h, y, k, x, m, I,
|
|
1478
|
-
if (qt && (
|
|
1479
|
-
return void (
|
|
1480
|
-
if (st && (X = 1e-4, X > Mt && Mt > -X && (Mt = Ft = 2e-5), X > Rt && Rt > -X && (Rt = Ft = 2e-5), !St || it.z || it.rotationX || it.rotationY || (St = 0)),
|
|
1481
|
-
|
|
1476
|
+
}, qe = Et.set3DTransformRatio = Et.setTransformRatio = function(i) {
|
|
1477
|
+
var o, l, a, s, d, h, y, k, x, m, I, B, z, q, X, lt, ht, xt, ct, rt, _t, U, Tt, it = this.data, H = this.t.style, ot = it.rotation, Qt = it.rotationX, pe = it.rotationY, Mt = it.scaleX, Rt = it.scaleY, Ft = it.scaleZ, Lt = it.x, Nt = it.y, Ut = it.z, Bt = it.svg, St = it.perspective, ye = it.force3D, qt = it.skewY, Zt = it.skewX;
|
|
1478
|
+
if (qt && (Zt += qt, ot += qt), ((i === 1 || i === 0) && ye === "auto" && (this.tween._totalTime === this.tween._totalDuration || !this.tween._totalTime) || !ye) && !Ut && !St && !pe && !Qt && Ft === 1 || oe && Bt || !Ht)
|
|
1479
|
+
return void (ot || Zt || Bt ? (ot *= yt, U = Zt * yt, Tt = 1e5, l = Math.cos(ot) * Mt, d = Math.sin(ot) * Mt, a = Math.sin(ot - U) * -Rt, h = Math.cos(ot - U) * Rt, U && it.skewType === "simple" && (o = Math.tan(U - qt * yt), o = Math.sqrt(1 + o * o), a *= o, h *= o, qt && (o = Math.tan(qt * yt), o = Math.sqrt(1 + o * o), l *= o, d *= o)), Bt && (Lt += it.xOrigin - (it.xOrigin * l + it.yOrigin * a) + it.xOffset, Nt += it.yOrigin - (it.xOrigin * d + it.yOrigin * h) + it.yOffset, oe && (it.xPercent || it.yPercent) && (X = this.t.getBBox(), Lt += 0.01 * it.xPercent * X.width, Nt += 0.01 * it.yPercent * X.height), X = 1e-6, X > Lt && Lt > -X && (Lt = 0), X > Nt && Nt > -X && (Nt = 0)), ct = (l * Tt | 0) / Tt + "," + (d * Tt | 0) / Tt + "," + (a * Tt | 0) / Tt + "," + (h * Tt | 0) / Tt + "," + Lt + "," + Nt + ")", Bt && oe ? this.t.setAttribute("transform", "matrix(" + ct) : H[Xt] = (it.xPercent || it.yPercent ? "translate(" + it.xPercent + "%," + it.yPercent + "%) matrix(" : "matrix(") + ct) : H[Xt] = (it.xPercent || it.yPercent ? "translate(" + it.xPercent + "%," + it.yPercent + "%) matrix(" : "matrix(") + Mt + ",0,0," + Rt + "," + Lt + "," + Nt + ")");
|
|
1480
|
+
if (st && (X = 1e-4, X > Mt && Mt > -X && (Mt = Ft = 2e-5), X > Rt && Rt > -X && (Rt = Ft = 2e-5), !St || it.z || it.rotationX || it.rotationY || (St = 0)), ot || Zt)
|
|
1481
|
+
ot *= yt, lt = l = Math.cos(ot), ht = d = Math.sin(ot), Zt && (ot -= Zt * yt, lt = Math.cos(ot), ht = Math.sin(ot), it.skewType === "simple" && (o = Math.tan((Zt - qt) * yt), o = Math.sqrt(1 + o * o), lt *= o, ht *= o, it.skewY && (o = Math.tan(qt * yt), o = Math.sqrt(1 + o * o), l *= o, d *= o))), a = -ht, h = lt;
|
|
1482
1482
|
else {
|
|
1483
1483
|
if (!(pe || Qt || Ft !== 1 || St || Bt))
|
|
1484
|
-
return void (
|
|
1484
|
+
return void (H[Xt] = (it.xPercent || it.yPercent ? "translate(" + it.xPercent + "%," + it.yPercent + "%) translate3d(" : "translate3d(") + Lt + "px," + Nt + "px," + Ut + "px)" + (Mt !== 1 || Rt !== 1 ? " scale(" + Mt + "," + Rt + ")" : ""));
|
|
1485
1485
|
l = h = 1, a = d = 0;
|
|
1486
1486
|
}
|
|
1487
|
-
m = 1, s = y = k = x = I =
|
|
1487
|
+
m = 1, s = y = k = x = I = B = 0, z = St ? -1 / St : 0, q = it.zOrigin, X = 1e-6, rt = ",", _t = "0", ot = pe * yt, ot && (lt = Math.cos(ot), ht = Math.sin(ot), k = -ht, I = z * -ht, s = l * ht, y = d * ht, m = lt, z *= lt, l *= lt, d *= lt), ot = Qt * yt, ot && (lt = Math.cos(ot), ht = Math.sin(ot), o = a * lt + s * ht, xt = h * lt + y * ht, x = m * ht, B = z * ht, s = a * -ht + s * lt, y = h * -ht + y * lt, m *= lt, z *= lt, a = o, h = xt), Ft !== 1 && (s *= Ft, y *= Ft, m *= Ft, z *= Ft), Rt !== 1 && (a *= Rt, h *= Rt, x *= Rt, B *= Rt), Mt !== 1 && (l *= Mt, d *= Mt, k *= Mt, I *= Mt), (q || Bt) && (q && (Lt += s * -q, Nt += y * -q, Ut += m * -q + q), Bt && (Lt += it.xOrigin - (it.xOrigin * l + it.yOrigin * a) + it.xOffset, Nt += it.yOrigin - (it.xOrigin * d + it.yOrigin * h) + it.yOffset), X > Lt && Lt > -X && (Lt = _t), X > Nt && Nt > -X && (Nt = _t), X > Ut && Ut > -X && (Ut = 0)), ct = it.xPercent || it.yPercent ? "translate(" + it.xPercent + "%," + it.yPercent + "%) matrix3d(" : "matrix3d(", ct += (X > l && l > -X ? _t : l) + rt + (X > d && d > -X ? _t : d) + rt + (X > k && k > -X ? _t : k), ct += rt + (X > I && I > -X ? _t : I) + rt + (X > a && a > -X ? _t : a) + rt + (X > h && h > -X ? _t : h), Qt || pe || Ft !== 1 ? (ct += rt + (X > x && x > -X ? _t : x) + rt + (X > B && B > -X ? _t : B) + rt + (X > s && s > -X ? _t : s), ct += rt + (X > y && y > -X ? _t : y) + rt + (X > m && m > -X ? _t : m) + rt + (X > z && z > -X ? _t : z) + rt) : ct += ",0,0,0,0,1,0,", ct += Lt + rt + Nt + rt + Ut + rt + (St ? 1 + -Ut / St : 1) + ")", H[Xt] = ct;
|
|
1488
1488
|
};
|
|
1489
1489
|
M = xe.prototype, M.x = M.y = M.z = M.skewX = M.skewY = M.rotation = M.rotationX = M.rotationY = M.zOrigin = M.xPercent = M.yPercent = M.xOffset = M.yOffset = 0, M.scaleX = M.scaleY = M.scaleZ = 1, Ct(
|
|
1490
1490
|
"transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",
|
|
@@ -1495,87 +1495,87 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1495
1495
|
a._lastParsedTransform = h;
|
|
1496
1496
|
var y, k = h.scale && typeof h.scale == "function" ? h.scale : 0;
|
|
1497
1497
|
typeof h[l] == "function" && (y = h[l], h[l] = o), k && (h.scale = k(e, i));
|
|
1498
|
-
var x, m, I,
|
|
1499
|
-
if (
|
|
1500
|
-
m =
|
|
1498
|
+
var x, m, I, B, z, q, X, lt, ht, xt = i._gsTransform, ct = i.style, rt = 1e-6, _t = Fe.length, U = h, Tt = {}, it = "transformOrigin", H = de(i, E, !0, U.parseTransform), ot = U.transform && (typeof U.transform == "function" ? U.transform(e, P) : U.transform);
|
|
1499
|
+
if (H.skewType = U.skewType || H.skewType || $.defaultSkewType, a._transform = H, "rotationZ" in U && (U.rotation = U.rotationZ), ot && typeof ot == "string" && Xt)
|
|
1500
|
+
m = $t.style, m[Xt] = ot, m.display = "block", m.position = "absolute", ot.indexOf("%") !== -1 && (m.width = wt(i, "width"), m.height = wt(i, "height")), bt.body.appendChild($t), x = de($t, null, !1), H.skewType === "simple" && (x.scaleY *= Math.cos(x.skewX * yt)), H.svg && (q = H.xOrigin, X = H.yOrigin, x.x -= H.xOffset, x.y -= H.yOffset, (U.transformOrigin || U.svgOrigin) && (ot = {}, ke(
|
|
1501
1501
|
i,
|
|
1502
|
-
c(
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1502
|
+
c(U.transformOrigin),
|
|
1503
|
+
ot,
|
|
1504
|
+
U.svgOrigin,
|
|
1505
|
+
U.smoothOrigin,
|
|
1506
1506
|
!0
|
|
1507
|
-
), q =
|
|
1508
|
-
else if (typeof
|
|
1507
|
+
), q = ot.xOrigin, X = ot.yOrigin, x.x -= ot.xOffset - H.xOffset, x.y -= ot.yOffset - H.yOffset), (q || X) && (lt = Re($t, !0), x.x -= q - (q * lt[0] + X * lt[2]), x.y -= X - (q * lt[1] + X * lt[3]))), bt.body.removeChild($t), x.perspective || (x.perspective = H.perspective), U.xPercent != null && (x.xPercent = C(U.xPercent, H.xPercent)), U.yPercent != null && (x.yPercent = C(U.yPercent, H.yPercent));
|
|
1508
|
+
else if (typeof U == "object") {
|
|
1509
1509
|
if (x = {
|
|
1510
1510
|
scaleX: C(
|
|
1511
|
-
|
|
1512
|
-
|
|
1511
|
+
U.scaleX != null ? U.scaleX : U.scale,
|
|
1512
|
+
H.scaleX
|
|
1513
1513
|
),
|
|
1514
1514
|
scaleY: C(
|
|
1515
|
-
|
|
1516
|
-
|
|
1515
|
+
U.scaleY != null ? U.scaleY : U.scale,
|
|
1516
|
+
H.scaleY
|
|
1517
1517
|
),
|
|
1518
|
-
scaleZ: C(
|
|
1519
|
-
x: C(
|
|
1520
|
-
y: C(
|
|
1521
|
-
z: C(
|
|
1522
|
-
xPercent: C(
|
|
1523
|
-
yPercent: C(
|
|
1524
|
-
perspective: C(
|
|
1525
|
-
},
|
|
1526
|
-
if (typeof
|
|
1527
|
-
for (m in
|
|
1528
|
-
|
|
1518
|
+
scaleZ: C(U.scaleZ, H.scaleZ),
|
|
1519
|
+
x: C(U.x, H.x),
|
|
1520
|
+
y: C(U.y, H.y),
|
|
1521
|
+
z: C(U.z, H.z),
|
|
1522
|
+
xPercent: C(U.xPercent, H.xPercent),
|
|
1523
|
+
yPercent: C(U.yPercent, H.yPercent),
|
|
1524
|
+
perspective: C(U.transformPerspective, H.perspective)
|
|
1525
|
+
}, z = U.directionalRotation, z != null)
|
|
1526
|
+
if (typeof z == "object")
|
|
1527
|
+
for (m in z)
|
|
1528
|
+
U[m] = z[m];
|
|
1529
1529
|
else
|
|
1530
|
-
|
|
1531
|
-
typeof
|
|
1532
|
-
"rotation" in
|
|
1533
|
-
|
|
1530
|
+
U.rotation = z;
|
|
1531
|
+
typeof U.x == "string" && U.x.indexOf("%") !== -1 && (x.x = 0, x.xPercent = C(U.x, H.xPercent)), typeof U.y == "string" && U.y.indexOf("%") !== -1 && (x.y = 0, x.yPercent = C(U.y, H.yPercent)), x.rotation = j(
|
|
1532
|
+
"rotation" in U ? U.rotation : "shortRotation" in U ? U.shortRotation + "_short" : H.rotation,
|
|
1533
|
+
H.rotation,
|
|
1534
1534
|
"rotation",
|
|
1535
1535
|
Tt
|
|
1536
1536
|
), Ht && (x.rotationX = j(
|
|
1537
|
-
"rotationX" in
|
|
1538
|
-
|
|
1537
|
+
"rotationX" in U ? U.rotationX : "shortRotationX" in U ? U.shortRotationX + "_short" : H.rotationX || 0,
|
|
1538
|
+
H.rotationX,
|
|
1539
1539
|
"rotationX",
|
|
1540
1540
|
Tt
|
|
1541
1541
|
), x.rotationY = j(
|
|
1542
|
-
"rotationY" in
|
|
1543
|
-
|
|
1542
|
+
"rotationY" in U ? U.rotationY : "shortRotationY" in U ? U.shortRotationY + "_short" : H.rotationY || 0,
|
|
1543
|
+
H.rotationY,
|
|
1544
1544
|
"rotationY",
|
|
1545
1545
|
Tt
|
|
1546
|
-
)), x.skewX = j(
|
|
1546
|
+
)), x.skewX = j(U.skewX, H.skewX), x.skewY = j(U.skewY, H.skewY);
|
|
1547
1547
|
}
|
|
1548
|
-
for (Ht &&
|
|
1549
|
-
ht =
|
|
1550
|
-
return
|
|
1551
|
-
|
|
1548
|
+
for (Ht && U.force3D != null && (H.force3D = U.force3D, B = !0), I = H.force3D || H.z || H.rotationX || H.rotationY || x.z || x.rotationX || x.rotationY || x.perspective, I || U.scale == null || (x.scaleZ = 1); --_t > -1; )
|
|
1549
|
+
ht = Fe[_t], ot = x[ht] - H[ht], (ot > rt || -rt > ot || U[ht] != null || Kt[ht] != null) && (B = !0, s = new kt(H, ht, H[ht], ot, s), ht in Tt && (s.e = Tt[ht]), s.xs0 = 0, s.plugin = d, a._overwriteProps.push(s.n));
|
|
1550
|
+
return ot = U.transformOrigin, H.svg && (ot || U.svgOrigin) && (q = H.xOffset, X = H.yOffset, ke(i, c(ot), x, U.svgOrigin, U.smoothOrigin), s = he(
|
|
1551
|
+
H,
|
|
1552
1552
|
"xOrigin",
|
|
1553
|
-
(xt ?
|
|
1553
|
+
(xt ? H : x).xOrigin,
|
|
1554
1554
|
x.xOrigin,
|
|
1555
1555
|
s,
|
|
1556
1556
|
it
|
|
1557
1557
|
), s = he(
|
|
1558
|
-
|
|
1558
|
+
H,
|
|
1559
1559
|
"yOrigin",
|
|
1560
|
-
(xt ?
|
|
1560
|
+
(xt ? H : x).yOrigin,
|
|
1561
1561
|
x.yOrigin,
|
|
1562
1562
|
s,
|
|
1563
1563
|
it
|
|
1564
|
-
), (q !==
|
|
1565
|
-
|
|
1564
|
+
), (q !== H.xOffset || X !== H.yOffset) && (s = he(
|
|
1565
|
+
H,
|
|
1566
1566
|
"xOffset",
|
|
1567
|
-
xt ? q :
|
|
1568
|
-
|
|
1567
|
+
xt ? q : H.xOffset,
|
|
1568
|
+
H.xOffset,
|
|
1569
1569
|
s,
|
|
1570
1570
|
it
|
|
1571
1571
|
), s = he(
|
|
1572
|
-
|
|
1572
|
+
H,
|
|
1573
1573
|
"yOffset",
|
|
1574
|
-
xt ? X :
|
|
1575
|
-
|
|
1574
|
+
xt ? X : H.yOffset,
|
|
1575
|
+
H.yOffset,
|
|
1576
1576
|
s,
|
|
1577
1577
|
it
|
|
1578
|
-
)),
|
|
1578
|
+
)), ot = "0px 0px"), (ot || Ht && I && H.zOrigin) && (Xt ? (B = !0, ht = me, ot = (ot || wt(i, ht, E, !1, "50% 50%")) + "", s = new kt(ct, ht, 0, 0, s, -1, it), s.b = ct[ht], s.plugin = d, Ht ? (m = H.zOrigin, ot = ot.split(" "), H.zOrigin = (ot.length > 2 && (m === 0 || ot[2] !== "0px") ? parseFloat(ot[2]) : m) || 0, s.xs0 = s.e = ot[0] + " " + (ot[1] || "50%") + " 0px", s = new kt(H, "zOrigin", 0, 0, s, -1, s.n), s.b = m, s.xs0 = s.e = H.zOrigin) : s.xs0 = s.e = ot) : c(ot + "", H)), B && (a._transformType = H.svg && oe || !I && this._transformType !== 3 ? 2 : 3), y && (h[l] = y), k && (h.scale = k), s;
|
|
1579
1579
|
},
|
|
1580
1580
|
prefix: !0
|
|
1581
1581
|
}
|
|
@@ -1589,14 +1589,14 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1589
1589
|
defaultValue: "0px",
|
|
1590
1590
|
parser: function(i, o, l, a, s, d) {
|
|
1591
1591
|
o = this.format(o);
|
|
1592
|
-
var h, y, k, x, m, I,
|
|
1592
|
+
var h, y, k, x, m, I, B, z, q, X, lt, ht, xt, ct, rt, _t, U = [
|
|
1593
1593
|
"borderTopLeftRadius",
|
|
1594
1594
|
"borderTopRightRadius",
|
|
1595
1595
|
"borderBottomRightRadius",
|
|
1596
1596
|
"borderBottomLeftRadius"
|
|
1597
1597
|
], Tt = i.style;
|
|
1598
|
-
for (q = parseFloat(i.offsetWidth), X = parseFloat(i.offsetHeight), h = o.split(" "), y = 0; y <
|
|
1599
|
-
this.p.indexOf("border") && (
|
|
1598
|
+
for (q = parseFloat(i.offsetWidth), X = parseFloat(i.offsetHeight), h = o.split(" "), y = 0; y < U.length; y++)
|
|
1599
|
+
this.p.indexOf("border") && (U[y] = re(U[y])), m = x = wt(i, U[y], E, !1, "0px"), m.indexOf(" ") !== -1 && (x = m.split(" "), m = x[0], x = x[1]), I = k = h[y], B = parseFloat(m), ht = m.substr((B + "").length), xt = I.charAt(1) === "=", xt ? (z = parseInt(I.charAt(0) + "1", 10), I = I.substr(2), z *= parseFloat(I), lt = I.substr((z + "").length - (0 > z ? 1 : 0)) || "") : (z = parseFloat(I), lt = I.substr((z + "").length)), lt === "" && (lt = nt[l] || ht), lt !== ht && (ct = Vt(i, "borderLeft", B, ht), rt = Vt(i, "borderTop", B, ht), lt === "%" ? (m = ct / q * 100 + "%", x = rt / X * 100 + "%") : lt === "em" ? (_t = Vt(i, "borderLeft", 1, "em"), m = ct / _t + "em", x = rt / _t + "em") : (m = ct + "px", x = rt + "px"), xt && (I = parseFloat(m) + z + lt, k = parseFloat(x) + z + lt)), s = se(Tt, U[y], m + " " + x, I + " " + k, !1, "0px", s);
|
|
1600
1600
|
return s;
|
|
1601
1601
|
},
|
|
1602
1602
|
prefix: !0,
|
|
@@ -1606,10 +1606,10 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1606
1606
|
{
|
|
1607
1607
|
defaultValue: "0px",
|
|
1608
1608
|
parser: function(i, o, l, a, s, d) {
|
|
1609
|
-
return
|
|
1609
|
+
return se(
|
|
1610
1610
|
i.style,
|
|
1611
1611
|
l,
|
|
1612
|
-
this.format(wt(i, l,
|
|
1612
|
+
this.format(wt(i, l, E, !1, "0px 0px")),
|
|
1613
1613
|
this.format(o),
|
|
1614
1614
|
!1,
|
|
1615
1615
|
"0px",
|
|
@@ -1622,8 +1622,8 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1622
1622
|
), Ct("backgroundPosition", {
|
|
1623
1623
|
defaultValue: "0 0",
|
|
1624
1624
|
parser: function(i, o, l, a, s, d) {
|
|
1625
|
-
var h, y, k, x, m, I,
|
|
1626
|
-
(
|
|
1625
|
+
var h, y, k, x, m, I, B = "background-position", z = E || jt(i, null), q = this.format(
|
|
1626
|
+
(z ? v ? z.getPropertyValue(B + "-x") + " " + z.getPropertyValue(B + "-y") : z.getPropertyValue(B) : i.currentStyle.backgroundPositionX + " " + i.currentStyle.backgroundPositionY) || "0 0"
|
|
1627
1627
|
), X = this.format(o);
|
|
1628
1628
|
if (q.indexOf("%") !== -1 != (X.indexOf("%") !== -1) && X.split(",").length < 2 && (I = wt(i, "backgroundImage").replace(tt, ""), I && I !== "none")) {
|
|
1629
1629
|
for (h = q.split(" "), y = X.split(" "), le.setAttribute("src", I), k = 2; --k > -1; )
|
|
@@ -1646,7 +1646,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1646
1646
|
defaultValue: "rect(0px,0px,0px,0px)",
|
|
1647
1647
|
parser: function(i, o, l, a, s, d) {
|
|
1648
1648
|
var h, y, k;
|
|
1649
|
-
return 9 > v ? (y = i.currentStyle, k = 8 > v ? " " : ",", h = "rect(" + y.clipTop + k + y.clipRight + k + y.clipBottom + k + y.clipLeft + ")", o = this.format(o).split(",").join(k)) : (h = this.format(wt(i, this.p,
|
|
1649
|
+
return 9 > v ? (y = i.currentStyle, k = 8 > v ? " " : ",", h = "rect(" + y.clipTop + k + y.clipRight + k + y.clipBottom + k + y.clipLeft + ")", o = this.format(o).split(",").join(k)) : (h = this.format(wt(i, this.p, E, !1, this.dflt)), o = this.format(o)), this.parseComplex(i.style, h, o, s, d);
|
|
1650
1650
|
}
|
|
1651
1651
|
}), Ct("textShadow", {
|
|
1652
1652
|
defaultValue: "0px 0px 0px #999",
|
|
@@ -1659,11 +1659,11 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1659
1659
|
}), Ct("border", {
|
|
1660
1660
|
defaultValue: "0px solid #000",
|
|
1661
1661
|
parser: function(i, o, l, a, s, d) {
|
|
1662
|
-
var h = wt(i, "borderTopWidth",
|
|
1662
|
+
var h = wt(i, "borderTopWidth", E, !1, "0px"), y = this.format(o).split(" "), k = y[0].replace(p, "");
|
|
1663
1663
|
return k !== "px" && (h = parseFloat(h) / Vt(i, "borderTopWidth", 1, k) + k), this.parseComplex(
|
|
1664
1664
|
i.style,
|
|
1665
1665
|
this.format(
|
|
1666
|
-
h + " " + wt(i, "borderTopStyle",
|
|
1666
|
+
h + " " + wt(i, "borderTopStyle", E, !1, "solid") + " " + wt(i, "borderTopColor", E, !1, "#000")
|
|
1667
1667
|
),
|
|
1668
1668
|
y.join(" "),
|
|
1669
1669
|
s,
|
|
@@ -1685,15 +1685,15 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1685
1685
|
return new kt(h, y, 0, 0, s, -1, l, !1, 0, h[y], o);
|
|
1686
1686
|
}
|
|
1687
1687
|
});
|
|
1688
|
-
var
|
|
1688
|
+
var be = function(i) {
|
|
1689
1689
|
var o, l = this.t, a = l.filter || wt(this.data, "filter") || "", s = this.s + this.c * i | 0;
|
|
1690
1690
|
s === 100 && (a.indexOf("atrix(") === -1 && a.indexOf("radient(") === -1 && a.indexOf("oader(") === -1 ? (l.removeAttribute("filter"), o = !wt(this.data, "filter")) : (l.filter = a.replace(D, ""), o = !0)), o || (this.xn1 && (l.filter = a = a || "alpha(opacity=" + s + ")"), a.indexOf("pacity") === -1 ? s === 0 && this.xn1 || (l.filter = a + " alpha(opacity=" + s + ")") : l.filter = a.replace(T, "opacity=" + s));
|
|
1691
1691
|
};
|
|
1692
1692
|
Ct("opacity,alpha,autoAlpha", {
|
|
1693
1693
|
defaultValue: "1",
|
|
1694
1694
|
parser: function(i, o, l, a, s, d) {
|
|
1695
|
-
var h = parseFloat(wt(i, "opacity",
|
|
1696
|
-
return typeof o == "string" && o.charAt(1) === "=" && (o = (o.charAt(0) === "-" ? -1 : 1) * parseFloat(o.substr(2)) + h), k && h === 1 && wt(i, "visibility",
|
|
1695
|
+
var h = parseFloat(wt(i, "opacity", E, !1, "1")), y = i.style, k = l === "autoAlpha";
|
|
1696
|
+
return typeof o == "string" && o.charAt(1) === "=" && (o = (o.charAt(0) === "-" ? -1 : 1) * parseFloat(o.substr(2)) + h), k && h === 1 && wt(i, "visibility", E) === "hidden" && o !== 0 && (h = 0), ie ? s = new kt(y, "opacity", h, o - h, s) : (s = new kt(y, "opacity", 100 * h, 100 * (o - h), s), s.xn1 = k ? 1 : 0, y.zoom = 1, s.type = 2, s.b = "alpha(opacity=" + s.s + ")", s.e = "alpha(opacity=" + (s.s + s.c) + ")", s.data = i, s.plugin = d, s.setRatio = be), k && (s = new kt(
|
|
1697
1697
|
y,
|
|
1698
1698
|
"visibility",
|
|
1699
1699
|
0,
|
|
@@ -1710,7 +1710,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1710
1710
|
});
|
|
1711
1711
|
var ge = function(i, o) {
|
|
1712
1712
|
o && (i.removeProperty ? ((o.substr(0, 2) === "ms" || o.substr(0, 6) === "webkit") && (o = "-" + o), i.removeProperty(o.replace(Z, "-$1").toLowerCase())) : i.removeAttribute(o));
|
|
1713
|
-
},
|
|
1713
|
+
}, $e = function(i) {
|
|
1714
1714
|
if (this.t._gsClassPT = this, i === 1 || i === 0) {
|
|
1715
1715
|
this.t.setAttribute("class", i === 0 ? this.b : this.e);
|
|
1716
1716
|
for (var o = this.data, l = this.t.style; o; )
|
|
@@ -1721,19 +1721,19 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1721
1721
|
};
|
|
1722
1722
|
Ct("className", {
|
|
1723
1723
|
parser: function(i, o, l, a, s, d, h) {
|
|
1724
|
-
var y, k, x, m, I,
|
|
1725
|
-
if (s = a._classNamePT = new kt(i, l, 0, 0, s, 2), s.setRatio =
|
|
1724
|
+
var y, k, x, m, I, B = i.getAttribute("class") || "", z = i.style.cssText;
|
|
1725
|
+
if (s = a._classNamePT = new kt(i, l, 0, 0, s, 2), s.setRatio = $e, s.pr = -11, Q = !0, s.b = B, k = ne(i, E), x = i._gsClassPT) {
|
|
1726
1726
|
for (m = {}, I = x.data; I; )
|
|
1727
1727
|
m[I.p] = 1, I = I._next;
|
|
1728
1728
|
x.setRatio(1);
|
|
1729
1729
|
}
|
|
1730
|
-
return i._gsClassPT = s, s.e = o.charAt(1) !== "=" ? o :
|
|
1730
|
+
return i._gsClassPT = s, s.e = o.charAt(1) !== "=" ? o : B.replace(
|
|
1731
1731
|
new RegExp("(?:\\s|^)" + o.substr(2) + "(?![\\w-])"),
|
|
1732
1732
|
""
|
|
1733
|
-
) + (o.charAt(0) === "+" ? " " + o.substr(2) : ""), i.setAttribute("class", s.e), y =
|
|
1733
|
+
) + (o.charAt(0) === "+" ? " " + o.substr(2) : ""), i.setAttribute("class", s.e), y = Wt(i, k, ne(i), h, m), i.setAttribute("class", B), s.data = y.firstMPT, i.style.cssText = z, s = s.xfirst = a.parse(i, y.difs, s, d);
|
|
1734
1734
|
}
|
|
1735
1735
|
});
|
|
1736
|
-
var
|
|
1736
|
+
var We = function(i) {
|
|
1737
1737
|
if ((i === 1 || i === 0) && this.data._totalTime === this.data._totalDuration && this.data.data !== "isFromStart") {
|
|
1738
1738
|
var o, l, a, s, d, h = this.t.style, y = S.transform.parse;
|
|
1739
1739
|
if (this.e === "all")
|
|
@@ -1746,16 +1746,16 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1746
1746
|
};
|
|
1747
1747
|
for (Ct("clearProps", {
|
|
1748
1748
|
parser: function(i, o, l, a, s) {
|
|
1749
|
-
return s = new kt(i, l, 0, 0, s, 2), s.setRatio =
|
|
1749
|
+
return s = new kt(i, l, 0, 0, s, 2), s.setRatio = We, s.e = o, s.pr = -10, s.data = a._tween, Q = !0, s;
|
|
1750
1750
|
}
|
|
1751
1751
|
}), M = "bezier,throwProps,physicsProps,physics2D".split(","), It = M.length; It--; )
|
|
1752
|
-
|
|
1753
|
-
M =
|
|
1752
|
+
Ne(M[It]);
|
|
1753
|
+
M = $.prototype, M._firstPT = M._lastParsedTransform = M._transform = null, M._onInitTween = function(i, o, l, a) {
|
|
1754
1754
|
if (!i.nodeType)
|
|
1755
1755
|
return !1;
|
|
1756
|
-
this._target = P = i, this._tween = l, this._vars = o, e = a,
|
|
1757
|
-
var s, d, h, y, k, x, m, I,
|
|
1758
|
-
if (F &&
|
|
1756
|
+
this._target = P = i, this._tween = l, this._vars = o, e = a, b = o.autoRound, Q = !1, nt = o.suffixMap || $.suffixMap, E = jt(i, ""), Y = this._overwriteProps;
|
|
1757
|
+
var s, d, h, y, k, x, m, I, B, z = i.style;
|
|
1758
|
+
if (F && z.zIndex === "" && (s = wt(i, "zIndex", E), (s === "auto" || s === "") && this._addLazySet(z, "zIndex", 0)), typeof o == "string" && (y = z.cssText, s = ne(i, E), z.cssText = y + ";" + o, s = Wt(i, s, ne(i)).difs, !ie && O.test(o) && (s.opacity = parseFloat(RegExp.$1)), o = s, z.cssText = y), o.className ? this._firstPT = d = S.className.parse(
|
|
1759
1759
|
i,
|
|
1760
1760
|
o.className,
|
|
1761
1761
|
"className",
|
|
@@ -1764,15 +1764,15 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1764
1764
|
null,
|
|
1765
1765
|
o
|
|
1766
1766
|
) : this._firstPT = d = this.parse(i, o, null), this._transformType) {
|
|
1767
|
-
for (
|
|
1768
|
-
|
|
1767
|
+
for (B = this._transformType === 3, Xt ? G && (F = !0, z.zIndex === "" && (m = wt(i, "zIndex", E), (m === "auto" || m === "") && this._addLazySet(z, "zIndex", 0)), L && this._addLazySet(
|
|
1768
|
+
z,
|
|
1769
1769
|
"WebkitBackfaceVisibility",
|
|
1770
|
-
this._vars.WebkitBackfaceVisibility || (
|
|
1771
|
-
)) :
|
|
1770
|
+
this._vars.WebkitBackfaceVisibility || (B ? "visible" : "hidden")
|
|
1771
|
+
)) : z.zoom = 1, h = d; h && h._next; )
|
|
1772
1772
|
h = h._next;
|
|
1773
|
-
I = new kt(i, "transform", 0, 0, null, 2), this._linkCSSP(I, null, h), I.setRatio = Xt ?
|
|
1773
|
+
I = new kt(i, "transform", 0, 0, null, 2), this._linkCSSP(I, null, h), I.setRatio = Xt ? qe : Ve, I.data = this._transform || de(i, E, !0), I.tween = l, I.pr = -1, Y.pop();
|
|
1774
1774
|
}
|
|
1775
|
-
if (
|
|
1775
|
+
if (Q) {
|
|
1776
1776
|
for (; d; ) {
|
|
1777
1777
|
for (x = d._next, h = y; h && h.pr > d.pr; )
|
|
1778
1778
|
h = h._next;
|
|
@@ -1782,7 +1782,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1782
1782
|
}
|
|
1783
1783
|
return !0;
|
|
1784
1784
|
}, M.parse = function(i, o, l, a) {
|
|
1785
|
-
var s, d, h, y, k, x, m, I,
|
|
1785
|
+
var s, d, h, y, k, x, m, I, B, z, q = i.style;
|
|
1786
1786
|
for (s in o) {
|
|
1787
1787
|
if (x = o[s], typeof x == "function" && (x = x(e, P)), d = S[s])
|
|
1788
1788
|
l = d.parse(i, x, s, this, l, a, o);
|
|
@@ -1800,7 +1800,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1800
1800
|
);
|
|
1801
1801
|
continue;
|
|
1802
1802
|
}
|
|
1803
|
-
k = wt(i, s,
|
|
1803
|
+
k = wt(i, s, E) + "", B = typeof x == "string", s === "color" || s === "fill" || s === "stroke" || s.indexOf("Color") !== -1 || B && R.test(x) ? (B || (x = ut(x), x = (x.length > 3 ? "rgba(" : "rgb(") + x.join(",") + ")"), l = se(q, s, k, x, !0, "transparent", l, 0, a)) : B && Yt.test(x) ? l = se(q, s, k, x, !0, null, l, 0, a) : (h = parseFloat(k), m = h || h === 0 ? k.substr((h + "").length) : "", (k === "" || k === "auto") && (s === "width" || s === "height" ? (h = f(i, s, E), m = "px") : s === "left" || s === "top" ? (h = ue(i, s, E), m = "px") : (h = s !== "opacity" ? 0 : 1, m = "")), z = B && x.charAt(1) === "=", z ? (y = parseInt(x.charAt(0) + "1", 10), x = x.substr(2), y *= parseFloat(x), I = x.replace(p, "")) : (y = parseFloat(x), I = B ? x.replace(p, "") : ""), I === "" && (I = s in nt ? nt[s] : m), x = y || y === 0 ? (z ? y + h : y) + I : o[s], m !== I && (I !== "" || s === "lineHeight") && (y || y === 0) && h && (h = Vt(i, s, h, m), I === "%" ? (h /= Vt(i, s, 100, "%") / 100, o.strictUnits !== !0 && (k = h + "%")) : I === "em" || I === "rem" || I === "vw" || I === "vh" ? h /= Vt(i, s, 1, I) : I !== "px" && (y = Vt(i, s, y, I), I = "px"), z && (y || y === 0) && (x = y + h + I)), z && (y += h), !h && h !== 0 || !y && y !== 0 ? q[s] !== void 0 && (x || x + "" != "NaN" && x != null) ? (l = new kt(
|
|
1804
1804
|
q,
|
|
1805
1805
|
s,
|
|
1806
1806
|
y || h || 0,
|
|
@@ -1820,7 +1820,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1820
1820
|
l,
|
|
1821
1821
|
0,
|
|
1822
1822
|
s,
|
|
1823
|
-
|
|
1823
|
+
b !== !1 && (I === "px" || s === "zIndex"),
|
|
1824
1824
|
0,
|
|
1825
1825
|
k,
|
|
1826
1826
|
x
|
|
@@ -1877,14 +1877,14 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1877
1877
|
s = s._next;
|
|
1878
1878
|
}
|
|
1879
1879
|
}, M._enableTransforms = function(i) {
|
|
1880
|
-
this._transform = this._transform || de(this._target,
|
|
1880
|
+
this._transform = this._transform || de(this._target, E, !0), this._transformType = this._transform.svg && oe || !i && this._transformType !== 3 ? 2 : 3;
|
|
1881
1881
|
};
|
|
1882
|
-
var
|
|
1882
|
+
var Ze = function(i) {
|
|
1883
1883
|
this.t[this.p] = this.e, this.data._linkCSSP(this, this._next, null, !0);
|
|
1884
1884
|
};
|
|
1885
1885
|
M._addLazySet = function(i, o, l) {
|
|
1886
1886
|
var a = this._firstPT = new kt(i, o, 0, 0, this._firstPT, 2);
|
|
1887
|
-
a.e = l, a.setRatio =
|
|
1887
|
+
a.e = l, a.setRatio = Ze, a.data = this;
|
|
1888
1888
|
}, M._linkCSSP = function(i, o, l, a) {
|
|
1889
1889
|
return i && (o && (o._prev = i), i._next && (i._next._prev = i._prev), i._prev ? i._prev._next = i._next : this._firstPT === i && (this._firstPT = i._next, a = !0), l ? l._next = i : a || this._firstPT !== null || (this._firstPT = i), i._next = o, i._prev = l), i;
|
|
1890
1890
|
}, M._mod = function(i) {
|
|
@@ -1900,7 +1900,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1900
1900
|
}
|
|
1901
1901
|
for (i.className && (o = this._classNamePT) && (a = o.xfirst, a && a._prev ? this._linkCSSP(a._prev, o._next, a._prev._prev) : a === this._firstPT && (this._firstPT = o._next), o._next && this._linkCSSP(o._next, o._next._next, a._prev), this._classNamePT = null), o = this._firstPT; o; )
|
|
1902
1902
|
o.plugin && o.plugin !== l && o.plugin._kill && (o.plugin._kill(i), l = o.plugin), o = o._next;
|
|
1903
|
-
return
|
|
1903
|
+
return N.prototype._kill.call(this, s);
|
|
1904
1904
|
};
|
|
1905
1905
|
var we = function(i, o, l) {
|
|
1906
1906
|
var a, s, d, h;
|
|
@@ -1909,76 +1909,76 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1909
1909
|
we(i[s], o, l);
|
|
1910
1910
|
else
|
|
1911
1911
|
for (a = i.childNodes, s = a.length; --s > -1; )
|
|
1912
|
-
d = a[s], h = d.type, d.style && (o.push(
|
|
1912
|
+
d = a[s], h = d.type, d.style && (o.push(ne(d)), l && l.push(d)), h !== 1 && h !== 9 && h !== 11 || !d.childNodes.length || we(d, o, l);
|
|
1913
1913
|
};
|
|
1914
|
-
return
|
|
1915
|
-
var a, s, d, h, y =
|
|
1914
|
+
return $.cascadeTo = function(i, o, l) {
|
|
1915
|
+
var a, s, d, h, y = J.to(i, o, l), k = [y], x = [], m = [], I = [], B = J._internals.reservedProps;
|
|
1916
1916
|
for (i = y._targets || y.target, we(i, x, I), y.render(o, !0, !0), we(i, m), y.render(0, !0, !0), y._enabled(!0), a = I.length; --a > -1; )
|
|
1917
|
-
if (s =
|
|
1917
|
+
if (s = Wt(I[a], x[a], m[a]), s.firstMPT) {
|
|
1918
1918
|
s = s.difs;
|
|
1919
1919
|
for (d in l)
|
|
1920
|
-
|
|
1920
|
+
B[d] && (s[d] = l[d]);
|
|
1921
1921
|
h = {};
|
|
1922
1922
|
for (d in s)
|
|
1923
1923
|
h[d] = x[a][d];
|
|
1924
|
-
k.push(
|
|
1924
|
+
k.push(J.fromTo(I[a], o, h, s));
|
|
1925
1925
|
}
|
|
1926
1926
|
return k;
|
|
1927
|
-
},
|
|
1927
|
+
}, N.activate([$]), $;
|
|
1928
1928
|
},
|
|
1929
1929
|
!0
|
|
1930
1930
|
), function() {
|
|
1931
|
-
var
|
|
1931
|
+
var N = Dt._gsDefine.plugin({
|
|
1932
1932
|
propName: "roundProps",
|
|
1933
1933
|
version: "1.7.0",
|
|
1934
1934
|
priority: -1,
|
|
1935
1935
|
API: 2,
|
|
1936
|
-
init: function(
|
|
1937
|
-
return this._tween =
|
|
1936
|
+
init: function(E, Y, $) {
|
|
1937
|
+
return this._tween = $, !0;
|
|
1938
1938
|
}
|
|
1939
|
-
}),
|
|
1940
|
-
var
|
|
1941
|
-
return function(
|
|
1942
|
-
return (Math.round(
|
|
1939
|
+
}), J = function(E) {
|
|
1940
|
+
var Y = 1 > E ? Math.pow(10, (E + "").length - 2) : 1;
|
|
1941
|
+
return function($) {
|
|
1942
|
+
return (Math.round($ / E) * E * Y | 0) / Y;
|
|
1943
1943
|
};
|
|
1944
|
-
},
|
|
1945
|
-
for (;
|
|
1946
|
-
|
|
1947
|
-
},
|
|
1948
|
-
|
|
1949
|
-
var
|
|
1944
|
+
}, Q = function(E, Y) {
|
|
1945
|
+
for (; E; )
|
|
1946
|
+
E.f || E.blob || (E.m = Y || Math.round), E = E._next;
|
|
1947
|
+
}, nt = N.prototype;
|
|
1948
|
+
nt._onInitAllProps = function() {
|
|
1949
|
+
var E, Y, $, dt, S = this._tween, M = S.vars.roundProps, b = {}, F = S._propLookup.roundProps;
|
|
1950
1950
|
if (typeof M != "object" || M.push)
|
|
1951
|
-
for (typeof M == "string" && (M = M.split(",")),
|
|
1952
|
-
|
|
1951
|
+
for (typeof M == "string" && (M = M.split(",")), $ = M.length; --$ > -1; )
|
|
1952
|
+
b[M[$]] = Math.round;
|
|
1953
1953
|
else
|
|
1954
1954
|
for (dt in M)
|
|
1955
|
-
|
|
1956
|
-
for (dt in
|
|
1957
|
-
for (
|
|
1958
|
-
|
|
1955
|
+
b[dt] = J(M[dt]);
|
|
1956
|
+
for (dt in b)
|
|
1957
|
+
for (E = S._firstPT; E; )
|
|
1958
|
+
Y = E._next, E.pg ? E.t._mod(b) : E.n === dt && (E.f === 2 && E.t ? Q(E.t._firstPT, b[dt]) : (this._add(E.t, dt, E.s, E.c, b[dt]), Y && (Y._prev = E._prev), E._prev ? E._prev._next = Y : S._firstPT === E && (S._firstPT = Y), E._next = E._prev = null, S._propLookup[dt] = F)), E = Y;
|
|
1959
1959
|
return !1;
|
|
1960
|
-
},
|
|
1961
|
-
this._addTween(
|
|
1960
|
+
}, nt._add = function(E, Y, $, dt, S) {
|
|
1961
|
+
this._addTween(E, Y, $, $ + dt, Y, S || Math.round), this._overwriteProps.push(Y);
|
|
1962
1962
|
};
|
|
1963
1963
|
}(), function() {
|
|
1964
1964
|
Dt._gsDefine.plugin({
|
|
1965
1965
|
propName: "attr",
|
|
1966
1966
|
API: 2,
|
|
1967
1967
|
version: "0.6.1",
|
|
1968
|
-
init: function(
|
|
1969
|
-
var
|
|
1970
|
-
if (typeof
|
|
1968
|
+
init: function(N, J, Q, nt) {
|
|
1969
|
+
var E, Y;
|
|
1970
|
+
if (typeof N.setAttribute != "function")
|
|
1971
1971
|
return !1;
|
|
1972
|
-
for (
|
|
1973
|
-
|
|
1974
|
-
|
|
1972
|
+
for (E in J)
|
|
1973
|
+
Y = J[E], typeof Y == "function" && (Y = Y(nt, N)), this._addTween(
|
|
1974
|
+
N,
|
|
1975
1975
|
"setAttribute",
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1976
|
+
N.getAttribute(E) + "",
|
|
1977
|
+
Y + "",
|
|
1978
|
+
E,
|
|
1979
1979
|
!1,
|
|
1980
|
-
|
|
1981
|
-
), this._overwriteProps.push(
|
|
1980
|
+
E
|
|
1981
|
+
), this._overwriteProps.push(E);
|
|
1982
1982
|
return !0;
|
|
1983
1983
|
}
|
|
1984
1984
|
});
|
|
@@ -1986,33 +1986,33 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1986
1986
|
propName: "directionalRotation",
|
|
1987
1987
|
version: "0.3.1",
|
|
1988
1988
|
API: 2,
|
|
1989
|
-
init: function(
|
|
1990
|
-
typeof
|
|
1991
|
-
var
|
|
1992
|
-
for (
|
|
1993
|
-
|
|
1994
|
-
typeof
|
|
1995
|
-
), dt = this.finals[
|
|
1989
|
+
init: function(N, J, Q, nt) {
|
|
1990
|
+
typeof J != "object" && (J = { rotation: J }), this.finals = {};
|
|
1991
|
+
var E, Y, $, dt, S, M, b = J.useRadians === !0 ? 2 * Math.PI : 360, F = 1e-6;
|
|
1992
|
+
for (E in J)
|
|
1993
|
+
E !== "useRadians" && (dt = J[E], typeof dt == "function" && (dt = dt(nt, N)), M = (dt + "").split("_"), Y = M[0], $ = parseFloat(
|
|
1994
|
+
typeof N[E] != "function" ? N[E] : N[E.indexOf("set") || typeof N["get" + E.substr(3)] != "function" ? E : "get" + E.substr(3)]()
|
|
1995
|
+
), dt = this.finals[E] = typeof Y == "string" && Y.charAt(1) === "=" ? $ + parseInt(Y.charAt(0) + "1", 10) * Number(Y.substr(2)) : Number(Y) || 0, S = dt - $, M.length && (Y = M.join("_"), Y.indexOf("short") !== -1 && (S %= b, S !== S % (b / 2) && (S = 0 > S ? S + b : S - b)), Y.indexOf("_cw") !== -1 && 0 > S ? S = (S + 9999999999 * b) % b - (S / b | 0) * b : Y.indexOf("ccw") !== -1 && S > 0 && (S = (S - 9999999999 * b) % b - (S / b | 0) * b)), (S > F || -F > S) && (this._addTween(N, E, $, $ + S, E), this._overwriteProps.push(E)));
|
|
1996
1996
|
return !0;
|
|
1997
1997
|
},
|
|
1998
|
-
set: function(
|
|
1999
|
-
var
|
|
2000
|
-
if (
|
|
2001
|
-
this._super.setRatio.call(this,
|
|
1998
|
+
set: function(N) {
|
|
1999
|
+
var J;
|
|
2000
|
+
if (N !== 1)
|
|
2001
|
+
this._super.setRatio.call(this, N);
|
|
2002
2002
|
else
|
|
2003
|
-
for (
|
|
2004
|
-
|
|
2003
|
+
for (J = this._firstPT; J; )
|
|
2004
|
+
J.f ? J.t[J.p](this.finals[J.p]) : J.t[J.p] = this.finals[J.p], J = J._next;
|
|
2005
2005
|
}
|
|
2006
2006
|
})._autoCSS = !0, Dt._gsDefine(
|
|
2007
2007
|
"easing.Back",
|
|
2008
2008
|
["easing.Ease"],
|
|
2009
|
-
function(
|
|
2010
|
-
var
|
|
2009
|
+
function(N) {
|
|
2010
|
+
var J, Q, nt, E, Y = Dt.GreenSockGlobals || Dt, $ = Y.com.greensock, dt = 2 * Math.PI, S = Math.PI / 2, M = $._class, b = function(t, _) {
|
|
2011
2011
|
var n = M("easing." + t, function() {
|
|
2012
|
-
}, !0), g = n.prototype = new
|
|
2012
|
+
}, !0), g = n.prototype = new N();
|
|
2013
2013
|
return g.constructor = n, g.getRatio = _, n;
|
|
2014
|
-
}, F =
|
|
2015
|
-
},
|
|
2014
|
+
}, F = N.register || function() {
|
|
2015
|
+
}, G = function(t, _, n, g, p) {
|
|
2016
2016
|
var T = M(
|
|
2017
2017
|
"easing." + t,
|
|
2018
2018
|
{ easeOut: new _(), easeIn: new n(), easeInOut: new g() },
|
|
@@ -2028,11 +2028,11 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2028
2028
|
this._p1 = p || p === 0 ? p : 1.70158, this._p2 = 1.525 * this._p1;
|
|
2029
2029
|
},
|
|
2030
2030
|
!0
|
|
2031
|
-
), g = n.prototype = new
|
|
2031
|
+
), g = n.prototype = new N();
|
|
2032
2032
|
return g.constructor = n, g.getRatio = _, g.config = function(p) {
|
|
2033
2033
|
return new n(p);
|
|
2034
2034
|
}, n;
|
|
2035
|
-
}, v =
|
|
2035
|
+
}, v = G(
|
|
2036
2036
|
"Back",
|
|
2037
2037
|
L("BackOut", function(t) {
|
|
2038
2038
|
return (t -= 1) * t * ((this._p1 + 1) * t + this._p1) + 1;
|
|
@@ -2049,46 +2049,46 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2049
2049
|
_ = _ || _ === 0 ? _ : 0.7, t == null ? t = 0.7 : t > 1 && (t = 1), this._p = t !== 1 ? _ : 0, this._p1 = (1 - t) / 2, this._p2 = t, this._p3 = this._p1 + this._p2, this._calcEnd = n === !0;
|
|
2050
2050
|
},
|
|
2051
2051
|
!0
|
|
2052
|
-
), e = P.prototype = new
|
|
2052
|
+
), e = P.prototype = new N();
|
|
2053
2053
|
return e.constructor = P, e.getRatio = function(t) {
|
|
2054
2054
|
var _ = t + (0.5 - t) * this._p;
|
|
2055
2055
|
return t < this._p1 ? this._calcEnd ? 1 - (t = 1 - t / this._p1) * t : _ - (t = 1 - t / this._p1) * t * t * t * _ : t > this._p3 ? this._calcEnd ? t === 1 ? 0 : 1 - (t = (t - this._p3) / this._p1) * t : _ + (t - _) * (t = (t - this._p3) / this._p1) * t * t * t : this._calcEnd ? 1 : _;
|
|
2056
2056
|
}, P.ease = new P(0.7, 0.7), e.config = P.config = function(t, _, n) {
|
|
2057
2057
|
return new P(t, _, n);
|
|
2058
|
-
},
|
|
2058
|
+
}, J = M(
|
|
2059
2059
|
"easing.SteppedEase",
|
|
2060
2060
|
function(t, _) {
|
|
2061
2061
|
t = t || 1, this._p1 = 1 / t, this._p2 = t + (_ ? 0 : 1), this._p3 = _ ? 1 : 0;
|
|
2062
2062
|
},
|
|
2063
2063
|
!0
|
|
2064
|
-
), e =
|
|
2064
|
+
), e = J.prototype = new N(), e.constructor = J, e.getRatio = function(t) {
|
|
2065
2065
|
return 0 > t ? t = 0 : t >= 1 && (t = 0.999999999), ((this._p2 * t | 0) + this._p3) * this._p1;
|
|
2066
|
-
}, e.config =
|
|
2067
|
-
return new
|
|
2068
|
-
},
|
|
2066
|
+
}, e.config = J.config = function(t, _) {
|
|
2067
|
+
return new J(t, _);
|
|
2068
|
+
}, Q = M(
|
|
2069
2069
|
"easing.ExpoScaleEase",
|
|
2070
2070
|
function(t, _, n) {
|
|
2071
2071
|
this._p1 = Math.log(_ / t), this._p2 = _ - t, this._p3 = t, this._ease = n;
|
|
2072
2072
|
},
|
|
2073
2073
|
!0
|
|
2074
|
-
), e =
|
|
2074
|
+
), e = Q.prototype = new N(), e.constructor = Q, e.getRatio = function(t) {
|
|
2075
2075
|
return this._ease && (t = this._ease.getRatio(t)), (this._p3 * Math.exp(this._p1 * t) - this._p3) / this._p2;
|
|
2076
|
-
}, e.config =
|
|
2077
|
-
return new
|
|
2078
|
-
},
|
|
2076
|
+
}, e.config = Q.config = function(t, _, n) {
|
|
2077
|
+
return new Q(t, _, n);
|
|
2078
|
+
}, nt = M(
|
|
2079
2079
|
"easing.RoughEase",
|
|
2080
2080
|
function(t) {
|
|
2081
2081
|
t = t || {};
|
|
2082
|
-
for (var _, n, g, p, T, O, D = t.taper || "none", R = [], Z = 0,
|
|
2083
|
-
_ = et ? Math.random() : 1 /
|
|
2082
|
+
for (var _, n, g, p, T, O, D = t.taper || "none", R = [], Z = 0, V = 0 | (t.points || 20), tt = V, et = t.randomize !== !1, mt = t.clamp === !0, at = t.template instanceof N ? t.template : null, K = typeof t.strength == "number" ? 0.4 * t.strength : 0.4; --tt > -1; )
|
|
2083
|
+
_ = et ? Math.random() : 1 / V * tt, n = at ? at.getRatio(_) : _, D === "none" ? g = K : D === "out" ? (p = 1 - _, g = p * p * K) : D === "in" ? g = _ * _ * K : 0.5 > _ ? (p = 2 * _, g = p * p * 0.5 * K) : (p = 2 * (1 - _), g = p * p * 0.5 * K), et ? n += Math.random() * g - 0.5 * g : tt % 2 ? n += 0.5 * g : n -= 0.5 * g, mt && (n > 1 ? n = 1 : 0 > n && (n = 0)), R[Z++] = { x: _, y: n };
|
|
2084
2084
|
for (R.sort(function(gt, Yt) {
|
|
2085
2085
|
return gt.x - Yt.x;
|
|
2086
|
-
}), O = new st(1, 1, null), tt =
|
|
2086
|
+
}), O = new st(1, 1, null), tt = V; --tt > -1; )
|
|
2087
2087
|
T = R[tt], O = new st(T.x, T.y, O);
|
|
2088
2088
|
this._prev = new st(0, 0, O.t !== 0 ? O : O.next);
|
|
2089
2089
|
},
|
|
2090
2090
|
!0
|
|
2091
|
-
), e =
|
|
2091
|
+
), e = nt.prototype = new N(), e.constructor = nt, e.getRatio = function(t) {
|
|
2092
2092
|
var _ = this._prev;
|
|
2093
2093
|
if (t > _.t) {
|
|
2094
2094
|
for (; _.next && t >= _.t; )
|
|
@@ -2099,108 +2099,108 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2099
2099
|
_ = _.prev;
|
|
2100
2100
|
return this._prev = _, _.v + (t - _.t) / _.gap * _.c;
|
|
2101
2101
|
}, e.config = function(t) {
|
|
2102
|
-
return new
|
|
2103
|
-
},
|
|
2102
|
+
return new nt(t);
|
|
2103
|
+
}, nt.ease = new nt(), G(
|
|
2104
2104
|
"Bounce",
|
|
2105
|
-
|
|
2105
|
+
b("BounceOut", function(t) {
|
|
2106
2106
|
return 1 / 2.75 > t ? 7.5625 * t * t : 2 / 2.75 > t ? 7.5625 * (t -= 1.5 / 2.75) * t + 0.75 : 2.5 / 2.75 > t ? 7.5625 * (t -= 2.25 / 2.75) * t + 0.9375 : 7.5625 * (t -= 2.625 / 2.75) * t + 0.984375;
|
|
2107
2107
|
}),
|
|
2108
|
-
|
|
2108
|
+
b("BounceIn", function(t) {
|
|
2109
2109
|
return (t = 1 - t) < 1 / 2.75 ? 1 - 7.5625 * t * t : 2 / 2.75 > t ? 1 - (7.5625 * (t -= 1.5 / 2.75) * t + 0.75) : 2.5 / 2.75 > t ? 1 - (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375) : 1 - (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375);
|
|
2110
2110
|
}),
|
|
2111
|
-
|
|
2111
|
+
b("BounceInOut", function(t) {
|
|
2112
2112
|
var _ = 0.5 > t;
|
|
2113
2113
|
return t = _ ? 1 - 2 * t : 2 * t - 1, t = 1 / 2.75 > t ? 7.5625 * t * t : 2 / 2.75 > t ? 7.5625 * (t -= 1.5 / 2.75) * t + 0.75 : 2.5 / 2.75 > t ? 7.5625 * (t -= 2.25 / 2.75) * t + 0.9375 : 7.5625 * (t -= 2.625 / 2.75) * t + 0.984375, _ ? 0.5 * (1 - t) : 0.5 * t + 0.5;
|
|
2114
2114
|
})
|
|
2115
|
-
),
|
|
2115
|
+
), G(
|
|
2116
2116
|
"Circ",
|
|
2117
|
-
|
|
2117
|
+
b("CircOut", function(t) {
|
|
2118
2118
|
return Math.sqrt(1 - (t -= 1) * t);
|
|
2119
2119
|
}),
|
|
2120
|
-
|
|
2120
|
+
b("CircIn", function(t) {
|
|
2121
2121
|
return -(Math.sqrt(1 - t * t) - 1);
|
|
2122
2122
|
}),
|
|
2123
|
-
|
|
2123
|
+
b("CircInOut", function(t) {
|
|
2124
2124
|
return (t *= 2) < 1 ? -0.5 * (Math.sqrt(1 - t * t) - 1) : 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);
|
|
2125
2125
|
})
|
|
2126
|
-
),
|
|
2126
|
+
), E = function(t, _, n) {
|
|
2127
2127
|
var g = M(
|
|
2128
2128
|
"easing." + t,
|
|
2129
2129
|
function(T, O) {
|
|
2130
2130
|
this._p1 = T >= 1 ? T : 1, this._p2 = (O || n) / (1 > T ? T : 1), this._p3 = this._p2 / dt * (Math.asin(1 / this._p1) || 0), this._p2 = dt / this._p2;
|
|
2131
2131
|
},
|
|
2132
2132
|
!0
|
|
2133
|
-
), p = g.prototype = new
|
|
2133
|
+
), p = g.prototype = new N();
|
|
2134
2134
|
return p.constructor = g, p.getRatio = _, p.config = function(T, O) {
|
|
2135
2135
|
return new g(T, O);
|
|
2136
2136
|
}, g;
|
|
2137
|
-
},
|
|
2137
|
+
}, G(
|
|
2138
2138
|
"Elastic",
|
|
2139
|
-
|
|
2139
|
+
E(
|
|
2140
2140
|
"ElasticOut",
|
|
2141
2141
|
function(t) {
|
|
2142
2142
|
return this._p1 * Math.pow(2, -10 * t) * Math.sin((t - this._p3) * this._p2) + 1;
|
|
2143
2143
|
},
|
|
2144
2144
|
0.3
|
|
2145
2145
|
),
|
|
2146
|
-
|
|
2146
|
+
E(
|
|
2147
2147
|
"ElasticIn",
|
|
2148
2148
|
function(t) {
|
|
2149
2149
|
return -(this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2));
|
|
2150
2150
|
},
|
|
2151
2151
|
0.3
|
|
2152
2152
|
),
|
|
2153
|
-
|
|
2153
|
+
E(
|
|
2154
2154
|
"ElasticInOut",
|
|
2155
2155
|
function(t) {
|
|
2156
2156
|
return (t *= 2) < 1 ? -0.5 * (this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2)) : this._p1 * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2) * 0.5 + 1;
|
|
2157
2157
|
},
|
|
2158
2158
|
0.45
|
|
2159
2159
|
)
|
|
2160
|
-
),
|
|
2160
|
+
), G(
|
|
2161
2161
|
"Expo",
|
|
2162
|
-
|
|
2162
|
+
b("ExpoOut", function(t) {
|
|
2163
2163
|
return 1 - Math.pow(2, -10 * t);
|
|
2164
2164
|
}),
|
|
2165
|
-
|
|
2165
|
+
b("ExpoIn", function(t) {
|
|
2166
2166
|
return Math.pow(2, 10 * (t - 1)) - 1e-3;
|
|
2167
2167
|
}),
|
|
2168
|
-
|
|
2168
|
+
b("ExpoInOut", function(t) {
|
|
2169
2169
|
return (t *= 2) < 1 ? 0.5 * Math.pow(2, 10 * (t - 1)) : 0.5 * (2 - Math.pow(2, -10 * (t - 1)));
|
|
2170
2170
|
})
|
|
2171
|
-
),
|
|
2171
|
+
), G(
|
|
2172
2172
|
"Sine",
|
|
2173
|
-
|
|
2173
|
+
b("SineOut", function(t) {
|
|
2174
2174
|
return Math.sin(t * S);
|
|
2175
2175
|
}),
|
|
2176
|
-
|
|
2176
|
+
b("SineIn", function(t) {
|
|
2177
2177
|
return -Math.cos(t * S) + 1;
|
|
2178
2178
|
}),
|
|
2179
|
-
|
|
2179
|
+
b("SineInOut", function(t) {
|
|
2180
2180
|
return -0.5 * (Math.cos(Math.PI * t) - 1);
|
|
2181
2181
|
})
|
|
2182
2182
|
), M(
|
|
2183
2183
|
"easing.EaseLookup",
|
|
2184
2184
|
{
|
|
2185
2185
|
find: function(t) {
|
|
2186
|
-
return
|
|
2186
|
+
return N.map[t];
|
|
2187
2187
|
}
|
|
2188
2188
|
},
|
|
2189
2189
|
!0
|
|
2190
|
-
), F(
|
|
2190
|
+
), F(Y.SlowMo, "SlowMo", "ease,"), F(nt, "RoughEase", "ease,"), F(J, "SteppedEase", "ease,"), v;
|
|
2191
2191
|
},
|
|
2192
2192
|
!0
|
|
2193
2193
|
);
|
|
2194
|
-
}), Dt._gsDefine && Dt._gsQueue.pop()(), function(
|
|
2195
|
-
var
|
|
2196
|
-
if (
|
|
2197
|
-
return typeof module < "u" && module.exports && (module.exports =
|
|
2198
|
-
var
|
|
2199
|
-
var u, f = r.split("."), c =
|
|
2194
|
+
}), Dt._gsDefine && Dt._gsQueue.pop()(), function(N, J) {
|
|
2195
|
+
var Q = {}, nt = N.document, E = N.GreenSockGlobals = N.GreenSockGlobals || N, Y = E[J];
|
|
2196
|
+
if (Y)
|
|
2197
|
+
return typeof module < "u" && module.exports && (module.exports = Y), Y;
|
|
2198
|
+
var $, dt, S, M, b, F = function(r) {
|
|
2199
|
+
var u, f = r.split("."), c = E;
|
|
2200
2200
|
for (u = 0; u < f.length; u++)
|
|
2201
2201
|
c[f[u]] = c = c[f[u]] || {};
|
|
2202
2202
|
return c;
|
|
2203
|
-
},
|
|
2203
|
+
}, G = F("com.greensock"), st = 1e-10, L = function(r) {
|
|
2204
2204
|
var u, f = [], c = r.length;
|
|
2205
2205
|
for (u = 0; u !== c; f.push(r[u++]))
|
|
2206
2206
|
;
|
|
@@ -2215,32 +2215,32 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2215
2215
|
this.sc = e[r] ? e[r].sc : [], e[r] = this, this.gsClass = null, this.func = f;
|
|
2216
2216
|
var w = [];
|
|
2217
2217
|
this.check = function(C) {
|
|
2218
|
-
for (var j, A, ft, ut,
|
|
2219
|
-
(j = e[u[
|
|
2218
|
+
for (var j, A, ft, ut, W = u.length, pt = W; --W > -1; )
|
|
2219
|
+
(j = e[u[W]] || new t(u[W], [])).gsClass ? (w[W] = j.gsClass, pt--) : C && j.sc.push(this);
|
|
2220
2220
|
if (pt === 0 && f) {
|
|
2221
2221
|
if (A = ("com.greensock." + r).split("."), ft = A.pop(), ut = F(A.join("."))[ft] = this.gsClass = f.apply(f, w), c)
|
|
2222
|
-
if (
|
|
2223
|
-
if (r ===
|
|
2224
|
-
module.exports =
|
|
2225
|
-
for (
|
|
2226
|
-
ut[
|
|
2222
|
+
if (E[ft] = Q[ft] = ut, typeof module < "u" && module.exports)
|
|
2223
|
+
if (r === J) {
|
|
2224
|
+
module.exports = Q[J] = ut;
|
|
2225
|
+
for (W in Q)
|
|
2226
|
+
ut[W] = Q[W];
|
|
2227
2227
|
} else
|
|
2228
|
-
|
|
2228
|
+
Q[J] && (Q[J][ft] = ut);
|
|
2229
2229
|
else
|
|
2230
2230
|
typeof define == "function" && define.amd && define(
|
|
2231
|
-
(
|
|
2231
|
+
(N.GreenSockAMDPath ? N.GreenSockAMDPath + "/" : "") + r.split(".").pop(),
|
|
2232
2232
|
[],
|
|
2233
2233
|
function() {
|
|
2234
2234
|
return ut;
|
|
2235
2235
|
}
|
|
2236
2236
|
);
|
|
2237
|
-
for (
|
|
2238
|
-
this.sc[
|
|
2237
|
+
for (W = 0; W < this.sc.length; W++)
|
|
2238
|
+
this.sc[W].check();
|
|
2239
2239
|
}
|
|
2240
2240
|
}, this.check(!0);
|
|
2241
|
-
}, _ =
|
|
2241
|
+
}, _ = N._gsDefine = function(r, u, f, c) {
|
|
2242
2242
|
return new t(r, u, f, c);
|
|
2243
|
-
}, n =
|
|
2243
|
+
}, n = G._class = function(r, u, f) {
|
|
2244
2244
|
return u = u || function() {
|
|
2245
2245
|
}, _(
|
|
2246
2246
|
r,
|
|
@@ -2251,7 +2251,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2251
2251
|
f
|
|
2252
2252
|
), u;
|
|
2253
2253
|
};
|
|
2254
|
-
_.globals =
|
|
2254
|
+
_.globals = E;
|
|
2255
2255
|
var g = [0, 0, 1, 1], p = n(
|
|
2256
2256
|
"easing.Ease",
|
|
2257
2257
|
function(r, u, f, c) {
|
|
@@ -2259,25 +2259,25 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2259
2259
|
},
|
|
2260
2260
|
!0
|
|
2261
2261
|
), T = p.map = {}, O = p.register = function(r, u, f, c) {
|
|
2262
|
-
for (var w, C, j, A, ft = u.split(","), ut = ft.length,
|
|
2263
|
-
for (C = ft[ut], w = c ? n("easing." + C, null, !0) :
|
|
2264
|
-
A =
|
|
2262
|
+
for (var w, C, j, A, ft = u.split(","), ut = ft.length, W = (f || "easeIn,easeOut,easeInOut").split(","); --ut > -1; )
|
|
2263
|
+
for (C = ft[ut], w = c ? n("easing." + C, null, !0) : G.easing[C] || {}, j = W.length; --j > -1; )
|
|
2264
|
+
A = W[j], T[C + "." + A] = T[A + C] = w[A] = r.getRatio ? r : r[A] || new r();
|
|
2265
2265
|
};
|
|
2266
2266
|
for (S = p.prototype, S._calcEnd = !1, S.getRatio = function(r) {
|
|
2267
2267
|
if (this._func)
|
|
2268
2268
|
return this._params[0] = r, this._func.apply(null, this._params);
|
|
2269
2269
|
var u = this._type, f = this._power, c = u === 1 ? 1 - r : u === 2 ? r : 0.5 > r ? 2 * r : 2 * (1 - r);
|
|
2270
2270
|
return f === 1 ? c *= c : f === 2 ? c *= c * c : f === 3 ? c *= c * c * c : f === 4 && (c *= c * c * c * c), u === 1 ? 1 - c : u === 2 ? c : 0.5 > r ? c / 2 : 1 - c / 2;
|
|
2271
|
-
},
|
|
2272
|
-
S =
|
|
2273
|
-
T.linear =
|
|
2271
|
+
}, $ = ["Linear", "Quad", "Cubic", "Quart", "Quint,Strong"], dt = $.length; --dt > -1; )
|
|
2272
|
+
S = $[dt] + ",Power" + dt, O(new p(null, null, 1, dt), S, "easeOut", !0), O(new p(null, null, 2, dt), S, "easeIn" + (dt === 0 ? ",easeNone" : "")), O(new p(null, null, 3, dt), S, "easeInOut");
|
|
2273
|
+
T.linear = G.easing.Linear.easeIn, T.swing = G.easing.Quad.easeInOut;
|
|
2274
2274
|
var D = n("events.EventDispatcher", function(r) {
|
|
2275
2275
|
this._listeners = {}, this._eventTarget = r || this;
|
|
2276
2276
|
});
|
|
2277
2277
|
S = D.prototype, S.addEventListener = function(r, u, f, c, w) {
|
|
2278
2278
|
w = w || 0;
|
|
2279
2279
|
var C, j, A = this._listeners[r], ft = 0;
|
|
2280
|
-
for (this !== M ||
|
|
2280
|
+
for (this !== M || b || M.wake(), A == null && (this._listeners[r] = A = []), j = A.length; --j > -1; )
|
|
2281
2281
|
C = A[j], C.c === u && C.s === f ? A.splice(j, 1) : ft === 0 && C.pr < w && (ft = j + 1);
|
|
2282
2282
|
A.splice(ft, 0, { c: u, s: f, up: c, pr: w });
|
|
2283
2283
|
}, S.removeEventListener = function(r, u) {
|
|
@@ -2293,44 +2293,44 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2293
2293
|
for (u = w.length, u > 1 && (w = w.slice(0)), f = this._eventTarget; --u > -1; )
|
|
2294
2294
|
c = w[u], c && (c.up ? c.c.call(c.s || f, { type: r, target: f }) : c.c.call(c.s || f));
|
|
2295
2295
|
};
|
|
2296
|
-
var R =
|
|
2296
|
+
var R = N.requestAnimationFrame, Z = N.cancelAnimationFrame, V = Date.now || function() {
|
|
2297
2297
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
2298
|
-
}, tt =
|
|
2299
|
-
for (
|
|
2300
|
-
R =
|
|
2298
|
+
}, tt = V();
|
|
2299
|
+
for ($ = ["ms", "moz", "webkit", "o"], dt = $.length; --dt > -1 && !R; )
|
|
2300
|
+
R = N[$[dt] + "RequestAnimationFrame"], Z = N[$[dt] + "CancelAnimationFrame"] || N[$[dt] + "CancelRequestAnimationFrame"];
|
|
2301
2301
|
n("Ticker", function(r, u) {
|
|
2302
|
-
var f, c, w, C, j, A = this, ft =
|
|
2303
|
-
var kt, he,
|
|
2304
|
-
|
|
2302
|
+
var f, c, w, C, j, A = this, ft = V(), ut = u !== !1 && R ? "auto" : !1, W = 500, pt = 33, Pt = "tick", Ot = function(vt) {
|
|
2303
|
+
var kt, he, se = V() - tt;
|
|
2304
|
+
se > W && (ft += se - pt), tt += se, A.time = (tt - ft) / 1e3, kt = A.time - j, (!f || kt > 0 || vt === !0) && (A.frame++, j += kt + (kt >= C ? 4e-3 : C - kt), he = !0), vt !== !0 && (w = c(Ot)), he && A.dispatchEvent(Pt);
|
|
2305
2305
|
};
|
|
2306
2306
|
D.call(A), A.time = A.frame = 0, A.tick = function() {
|
|
2307
2307
|
Ot(!0);
|
|
2308
2308
|
}, A.lagSmoothing = function(vt, kt) {
|
|
2309
|
-
return arguments.length ? (
|
|
2309
|
+
return arguments.length ? (W = vt || 1 / st, void (pt = Math.min(kt, W, 0))) : 1 / st > W;
|
|
2310
2310
|
}, A.sleep = function() {
|
|
2311
|
-
w != null && (ut && Z ? Z(w) : clearTimeout(w), c = v, w = null, A === M && (
|
|
2311
|
+
w != null && (ut && Z ? Z(w) : clearTimeout(w), c = v, w = null, A === M && (b = !1));
|
|
2312
2312
|
}, A.wake = function(vt) {
|
|
2313
|
-
w !== null ? A.sleep() : vt ? ft += -tt + (tt =
|
|
2313
|
+
w !== null ? A.sleep() : vt ? ft += -tt + (tt = V()) : A.frame > 10 && (tt = V() - W + 5), c = f === 0 ? v : ut && R ? R : function(kt) {
|
|
2314
2314
|
return setTimeout(kt, 1e3 * (j - A.time) + 1 | 0);
|
|
2315
|
-
}, A === M && (
|
|
2315
|
+
}, A === M && (b = !0), Ot(2);
|
|
2316
2316
|
}, A.fps = function(vt) {
|
|
2317
2317
|
return arguments.length ? (f = vt, C = 1 / (f || 60), j = this.time + C, void A.wake()) : f;
|
|
2318
2318
|
}, A.useRAF = function(vt) {
|
|
2319
2319
|
return arguments.length ? (A.sleep(), ut = vt, void A.fps(f)) : ut;
|
|
2320
2320
|
}, A.fps(r), setTimeout(function() {
|
|
2321
|
-
ut === "auto" && A.frame < 5 && (
|
|
2321
|
+
ut === "auto" && A.frame < 5 && (nt || {}).visibilityState !== "hidden" && A.useRAF(!1);
|
|
2322
2322
|
}, 1500);
|
|
2323
|
-
}), S =
|
|
2323
|
+
}), S = G.Ticker.prototype = new G.events.EventDispatcher(), S.constructor = G.Ticker;
|
|
2324
2324
|
var et = n("core.Animation", function(r, u) {
|
|
2325
2325
|
if (this.vars = u = u || {}, this._duration = this._totalDuration = r || 0, this._delay = Number(u.delay) || 0, this._timeScale = 1, this._active = u.immediateRender === !0, this.data = u.data, this._reversed = u.reversed === !0, Gt) {
|
|
2326
|
-
|
|
2327
|
-
var f = this.vars.useFrames ?
|
|
2326
|
+
b || M.wake();
|
|
2327
|
+
var f = this.vars.useFrames ? ee : Gt;
|
|
2328
2328
|
f.add(this, f._time), this.vars.paused && this.paused(!0);
|
|
2329
2329
|
}
|
|
2330
2330
|
});
|
|
2331
|
-
M = et.ticker = new
|
|
2331
|
+
M = et.ticker = new G.Ticker(), S = et.prototype, S._dirty = S._gc = S._initted = S._paused = !1, S._totalTime = S._time = 0, S._rawPrevTime = -1, S._next = S._last = S._onUpdate = S._timeline = S.timeline = null, S._paused = !1;
|
|
2332
2332
|
var mt = function() {
|
|
2333
|
-
|
|
2333
|
+
b && V() - tt > 2e3 && ((nt || {}).visibilityState !== "hidden" || !M.lagSmoothing()) && M.wake();
|
|
2334
2334
|
var r = setTimeout(mt, 2e3);
|
|
2335
2335
|
r.unref && r.unref();
|
|
2336
2336
|
};
|
|
@@ -2353,7 +2353,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2353
2353
|
var r, u = this._timeline, f = this._startTime;
|
|
2354
2354
|
return !u || !this._gc && !this._paused && u.isActive() && (r = u.rawTime(!0)) >= f && r < f + this.totalDuration() / this._timeScale - 1e-7;
|
|
2355
2355
|
}, S._enabled = function(r, u) {
|
|
2356
|
-
return
|
|
2356
|
+
return b || M.wake(), this._gc = !r, this._active = this.isActive(), u !== !0 && (r && !this.timeline ? this._timeline.add(this, this._startTime - this._delay) : !r && this.timeline && this._timeline._remove(this, !0)), !1;
|
|
2357
2357
|
}, S._kill = function(r, u) {
|
|
2358
2358
|
return this._enabled(!1, !1);
|
|
2359
2359
|
}, S.kill = function(r, u) {
|
|
@@ -2398,7 +2398,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2398
2398
|
}, S.time = function(r, u) {
|
|
2399
2399
|
return arguments.length ? (this._dirty && this.totalDuration(), this.totalTime(r > this._duration ? this._duration : r, u)) : this._time;
|
|
2400
2400
|
}, S.totalTime = function(r, u, f) {
|
|
2401
|
-
if (
|
|
2401
|
+
if (b || M.wake(), !arguments.length)
|
|
2402
2402
|
return this._totalTime;
|
|
2403
2403
|
if (this._timeline) {
|
|
2404
2404
|
if (0 > r && !f && (r += this.totalDuration()), this._timeline.smoothChildTiming) {
|
|
@@ -2434,12 +2434,12 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2434
2434
|
if (!arguments.length)
|
|
2435
2435
|
return this._paused;
|
|
2436
2436
|
var u, f, c = this._timeline;
|
|
2437
|
-
return r != this._paused && c && (
|
|
2437
|
+
return r != this._paused && c && (b || r || M.wake(), u = c.rawTime(), f = u - this._pauseTime, !r && c.smoothChildTiming && (this._startTime += f, this._uncache(!1)), this._pauseTime = r ? u : null, this._paused = r, this._active = this.isActive(), !r && f !== 0 && this._initted && this.duration() && (u = c.smoothChildTiming ? this._totalTime : (u - this._startTime) / this._timeScale, this.render(u, u === this._totalTime, !0))), this._gc && !r && this._enabled(!0, !1), this;
|
|
2438
2438
|
};
|
|
2439
|
-
var
|
|
2439
|
+
var at = n("core.SimpleTimeline", function(r) {
|
|
2440
2440
|
et.call(this, 0, r), this.autoRemoveChildren = this.smoothChildTiming = !0;
|
|
2441
2441
|
});
|
|
2442
|
-
S =
|
|
2442
|
+
S = at.prototype = new et(), S.constructor = at, S.kill()._gc = !1, S._first = S._last = S._recent = null, S._sortChildren = !1, S.add = S.insert = function(r, u, f, c) {
|
|
2443
2443
|
var w, C;
|
|
2444
2444
|
if (r._startTime = Number(u || 0) + r._delay, r._paused && this !== r._timeline && (r._pauseTime = this.rawTime() - (r._timeline.rawTime() - r._pauseTime)), r.timeline && r.timeline._remove(r, !0), r.timeline = r._timeline = this, r._gc && r._enabled(!0, !0), w = this._last, this._sortChildren)
|
|
2445
2445
|
for (C = r._startTime; w && w._startTime > C; )
|
|
@@ -2456,60 +2456,60 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2456
2456
|
f
|
|
2457
2457
|
) : w.render((r - w._startTime) * w._timeScale, u, f)), w = c;
|
|
2458
2458
|
}, S.rawTime = function() {
|
|
2459
|
-
return
|
|
2459
|
+
return b || M.wake(), this._totalTime;
|
|
2460
2460
|
};
|
|
2461
|
-
var
|
|
2461
|
+
var K = n(
|
|
2462
2462
|
"TweenLite",
|
|
2463
2463
|
function(r, u, f) {
|
|
2464
|
-
if (et.call(this, u, f), this.render =
|
|
2464
|
+
if (et.call(this, u, f), this.render = K.prototype.render, r == null)
|
|
2465
2465
|
throw "Cannot tween a null target.";
|
|
2466
|
-
this.target = r = typeof r != "string" ? r :
|
|
2467
|
-
var c, w, C, j = r.jquery || r.length && r !==
|
|
2468
|
-
if (this._overwrite = A = A == null ? ce[
|
|
2466
|
+
this.target = r = typeof r != "string" ? r : K.selector(r) || r;
|
|
2467
|
+
var c, w, C, j = r.jquery || r.length && r !== N && r[0] && (r[0] === N || r[0].nodeType && r[0].style && !r.nodeType), A = this.vars.overwrite;
|
|
2468
|
+
if (this._overwrite = A = A == null ? ce[K.defaultOverwrite] : typeof A == "number" ? A >> 0 : ce[A], (j || r instanceof Array || r.push && P(r)) && typeof r[0] != "number")
|
|
2469
2469
|
for (this._targets = C = L(r), this._propLookup = [], this._siblings = [], c = 0; c < C.length; c++)
|
|
2470
|
-
w = C[c], w ? typeof w != "string" ? w.length && w !==
|
|
2470
|
+
w = C[c], w ? typeof w != "string" ? w.length && w !== N && w[0] && (w[0] === N || w[0].nodeType && w[0].style && !w.nodeType) ? (C.splice(c--, 1), this._targets = C = C.concat(L(w))) : (this._siblings[c] = wt(w, this, !1), A === 1 && this._siblings[c].length > 1 && ue(w, this, null, 1, this._siblings[c])) : (w = C[c--] = K.selector(w), typeof w == "string" && C.splice(c + 1, 1)) : C.splice(c--, 1);
|
|
2471
2471
|
else
|
|
2472
2472
|
this._propLookup = {}, this._siblings = wt(r, this, !1), A === 1 && this._siblings.length > 1 && ue(r, this, null, 1, this._siblings);
|
|
2473
2473
|
(this.vars.immediateRender || u === 0 && this._delay === 0 && this.vars.immediateRender !== !1) && (this._time = -st, this.render(Math.min(0, -this._delay)));
|
|
2474
2474
|
},
|
|
2475
2475
|
!0
|
|
2476
2476
|
), gt = function(r) {
|
|
2477
|
-
return r && r.length && r !==
|
|
2477
|
+
return r && r.length && r !== N && r[0] && (r[0] === N || r[0].nodeType && r[0].style && !r.nodeType);
|
|
2478
2478
|
}, Yt = function(r, u) {
|
|
2479
2479
|
var f, c = {};
|
|
2480
2480
|
for (f in r)
|
|
2481
2481
|
_e[f] || f in u && f !== "transform" && f !== "x" && f !== "y" && f !== "width" && f !== "height" && f !== "className" && f !== "border" || !(!Et[f] || Et[f] && Et[f]._autoCSS) || (c[f] = r[f], delete r[f]);
|
|
2482
2482
|
r.css = c;
|
|
2483
2483
|
};
|
|
2484
|
-
S =
|
|
2484
|
+
S = K.prototype = new et(), S.constructor = K, S.kill()._gc = !1, S.ratio = 0, S._firstPT = S._targets = S._overwrittenProps = S._startAt = null, S._notifyPluginsOfEnabled = S._lazy = !1, K.version = "2.0.2", K.defaultEase = S._ease = new p(null, null, 1, 1), K.defaultOverwrite = "auto", K.ticker = M, K.autoSleep = 120, K.lagSmoothing = function(r, u) {
|
|
2485
2485
|
M.lagSmoothing(r, u);
|
|
2486
|
-
},
|
|
2487
|
-
var u =
|
|
2488
|
-
return u ? (
|
|
2486
|
+
}, K.selector = N.$ || N.jQuery || function(r) {
|
|
2487
|
+
var u = N.$ || N.jQuery;
|
|
2488
|
+
return u ? (K.selector = u, u(r)) : (nt || (nt = N.document), nt ? nt.querySelectorAll ? nt.querySelectorAll(r) : nt.getElementById(r.charAt(0) === "#" ? r.substr(1) : r) : r);
|
|
2489
2489
|
};
|
|
2490
|
-
var yt = [], At = {},
|
|
2490
|
+
var yt = [], At = {}, Kt = /(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi, te = /[\+-]=-?[\.\d]/, bt = function(r) {
|
|
2491
2491
|
for (var u, f = this._firstPT, c = 1e-6; f; )
|
|
2492
2492
|
u = f.blob ? r === 1 && this.end != null ? this.end : r ? this.join("") : this.start : f.c * r + f.s, f.m ? u = f.m.call(this._tween, u, this._target || f.t, this._tween) : c > u && u > -c && !f.blob && (u = 0), f.f ? f.fp ? f.t[f.p](f.fp, u) : f.t[f.p](u) : f.t[f.p] = u, f = f._next;
|
|
2493
2493
|
}, ae = function(r, u, f, c) {
|
|
2494
|
-
var w, C, j, A, ft, ut,
|
|
2495
|
-
for (pt.start = r, pt.end = u, r = pt[0] = r + "", u = pt[1] = u + "", f && (f(pt), r = pt[0], u = pt[1]), pt.length = 0, w = r.match(
|
|
2496
|
-
|
|
2494
|
+
var w, C, j, A, ft, ut, W, pt = [], Pt = 0, Ot = "", vt = 0;
|
|
2495
|
+
for (pt.start = r, pt.end = u, r = pt[0] = r + "", u = pt[1] = u + "", f && (f(pt), r = pt[0], u = pt[1]), pt.length = 0, w = r.match(Kt) || [], C = u.match(Kt) || [], c && (c._next = null, c.blob = 1, pt._firstPT = pt._applyPT = c), ft = C.length, A = 0; ft > A; A++)
|
|
2496
|
+
W = C[A], ut = u.substr(Pt, u.indexOf(W, Pt) - Pt), Ot += ut || !A ? ut : ",", Pt += ut.length, vt ? vt = (vt + 1) % 5 : ut.substr(-5) === "rgba(" && (vt = 1), W === w[A] || w.length <= A ? Ot += W : (Ot && (pt.push(Ot), Ot = ""), j = parseFloat(w[A]), pt.push(j), pt._firstPT = {
|
|
2497
2497
|
_next: pt._firstPT,
|
|
2498
2498
|
t: pt,
|
|
2499
2499
|
p: pt.length - 1,
|
|
2500
2500
|
s: j,
|
|
2501
|
-
c: (
|
|
2501
|
+
c: (W.charAt(1) === "=" ? parseInt(W.charAt(0) + "1", 10) * parseFloat(W.substr(2)) : parseFloat(W) - j) || 0,
|
|
2502
2502
|
f: 0,
|
|
2503
2503
|
m: vt && 4 > vt ? Math.round : 0
|
|
2504
|
-
}), Pt +=
|
|
2505
|
-
return Ot += u.substr(Pt), Ot && pt.push(Ot), pt.setRatio =
|
|
2506
|
-
},
|
|
2504
|
+
}), Pt += W.length;
|
|
2505
|
+
return Ot += u.substr(Pt), Ot && pt.push(Ot), pt.setRatio = bt, te.test(u) && (pt.end = null), pt;
|
|
2506
|
+
}, $t = function(r, u, f, c, w, C, j, A, ft) {
|
|
2507
2507
|
typeof c == "function" && (c = c(ft || 0, r));
|
|
2508
|
-
var ut,
|
|
2508
|
+
var ut, W = typeof r[u], pt = W !== "function" ? "" : u.indexOf("set") || typeof r["get" + u.substr(3)] != "function" ? u : "get" + u.substr(3), Pt = f !== "get" ? f : pt ? j ? r[pt](j) : r[pt]() : r[u], Ot = typeof c == "string" && c.charAt(1) === "=", vt = {
|
|
2509
2509
|
t: r,
|
|
2510
2510
|
p: u,
|
|
2511
2511
|
s: Pt,
|
|
2512
|
-
f:
|
|
2512
|
+
f: W === "function",
|
|
2513
2513
|
pg: 0,
|
|
2514
2514
|
n: w || u,
|
|
2515
2515
|
m: C ? typeof C == "function" ? C : Math.round : 0,
|
|
@@ -2519,7 +2519,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2519
2519
|
return (typeof Pt != "number" || typeof c != "number" && !Ot) && (j || isNaN(Pt) || !Ot && isNaN(c) || typeof Pt == "boolean" || typeof c == "boolean" ? (vt.fp = j, ut = ae(
|
|
2520
2520
|
Pt,
|
|
2521
2521
|
Ot ? parseFloat(vt.s) + vt.c + (vt.s + "").replace(/[0-9\-\.]/g, "") : c,
|
|
2522
|
-
A ||
|
|
2522
|
+
A || K.defaultStringFilter,
|
|
2523
2523
|
vt
|
|
2524
2524
|
), vt = {
|
|
2525
2525
|
t: ut,
|
|
@@ -2532,12 +2532,12 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2532
2532
|
pr: 0,
|
|
2533
2533
|
m: 0
|
|
2534
2534
|
}) : (vt.s = parseFloat(Pt), Ot || (vt.c = parseFloat(c) - vt.s || 0))), vt.c ? ((vt._next = this._firstPT) && (vt._next._prev = vt), this._firstPT = vt, vt) : void 0;
|
|
2535
|
-
}, le =
|
|
2535
|
+
}, le = K._internals = {
|
|
2536
2536
|
isArray: P,
|
|
2537
2537
|
isSelector: gt,
|
|
2538
2538
|
lazyTweens: yt,
|
|
2539
2539
|
blobDif: ae
|
|
2540
|
-
}, Et =
|
|
2540
|
+
}, Et = K._plugins = {}, zt = le.tweenLookup = {}, ie = 0, _e = le.reservedProps = {
|
|
2541
2541
|
ease: 1,
|
|
2542
2542
|
delay: 1,
|
|
2543
2543
|
overwrite: 1,
|
|
@@ -2583,22 +2583,22 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2583
2583
|
preexisting: 5,
|
|
2584
2584
|
true: 1,
|
|
2585
2585
|
false: 0
|
|
2586
|
-
},
|
|
2586
|
+
}, ee = et._rootFramesTimeline = new at(), Gt = et._rootTimeline = new at(), re = 30, jt = le.lazyRender = function() {
|
|
2587
2587
|
var r, u = yt.length;
|
|
2588
2588
|
for (At = {}; --u > -1; )
|
|
2589
2589
|
r = yt[u], r && r._lazy !== !1 && (r.render(r._lazy[0], r._lazy[1], !0), r._lazy = !1);
|
|
2590
2590
|
yt.length = 0;
|
|
2591
2591
|
};
|
|
2592
|
-
Gt._startTime = M.time,
|
|
2592
|
+
Gt._startTime = M.time, ee._startTime = M.frame, Gt._active = ee._active = !0, setTimeout(jt, 1), et._updateRoot = K.render = function() {
|
|
2593
2593
|
var r, u, f;
|
|
2594
|
-
if (yt.length && jt(), Gt.render((M.time - Gt._startTime) * Gt._timeScale, !1, !1),
|
|
2595
|
-
|
|
2594
|
+
if (yt.length && jt(), Gt.render((M.time - Gt._startTime) * Gt._timeScale, !1, !1), ee.render((M.frame - ee._startTime) * ee._timeScale, !1, !1), yt.length && jt(), M.frame >= re) {
|
|
2595
|
+
re = M.frame + (parseInt(K.autoSleep, 10) || 120);
|
|
2596
2596
|
for (f in zt) {
|
|
2597
2597
|
for (u = zt[f].tweens, r = u.length; --r > -1; )
|
|
2598
2598
|
u[r]._gc && u.splice(r, 1);
|
|
2599
2599
|
u.length === 0 && delete zt[f];
|
|
2600
2600
|
}
|
|
2601
|
-
if (f = Gt._first, (!f || f._paused) &&
|
|
2601
|
+
if (f = Gt._first, (!f || f._paused) && K.autoSleep && !ee._first && M._listeners.tick.length === 1) {
|
|
2602
2602
|
for (; f && f._paused; )
|
|
2603
2603
|
f = f._next;
|
|
2604
2604
|
f || M.sleep();
|
|
@@ -2607,13 +2607,13 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2607
2607
|
}, M.addEventListener("tick", et._updateRoot);
|
|
2608
2608
|
var wt = function(r, u, f) {
|
|
2609
2609
|
var c, w, C = r._gsTweenID;
|
|
2610
|
-
if (zt[C || (r._gsTweenID = C = "t" +
|
|
2610
|
+
if (zt[C || (r._gsTweenID = C = "t" + ie++)] || (zt[C] = { target: r, tweens: [] }), u && (c = zt[C].tweens, c[w = c.length] = u, f))
|
|
2611
2611
|
for (; --w > -1; )
|
|
2612
2612
|
c[w] === u && c.splice(w, 1);
|
|
2613
2613
|
return zt[C].tweens;
|
|
2614
2614
|
}, Vt = function(r, u, f, c) {
|
|
2615
2615
|
var w, C, j = r.vars.onOverwrite;
|
|
2616
|
-
return j && (w = j(r, u, f, c)), j =
|
|
2616
|
+
return j && (w = j(r, u, f, c)), j = K.onOverwrite, j && (C = j(r, u, f, c)), w !== !1 && C !== !1;
|
|
2617
2617
|
}, ue = function(r, u, f, c, w) {
|
|
2618
2618
|
var C, j, A, ft;
|
|
2619
2619
|
if (c === 1 || c >= 4) {
|
|
@@ -2624,9 +2624,9 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2624
2624
|
break;
|
|
2625
2625
|
return j;
|
|
2626
2626
|
}
|
|
2627
|
-
var ut,
|
|
2627
|
+
var ut, W = u._startTime + st, pt = [], Pt = 0, Ot = u._duration === 0;
|
|
2628
2628
|
for (C = w.length; --C > -1; )
|
|
2629
|
-
(A = w[C]) === u || A._gc || A._paused || (A._timeline !== u._timeline ? (ut = ut ||
|
|
2629
|
+
(A = w[C]) === u || A._gc || A._paused || (A._timeline !== u._timeline ? (ut = ut || ne(u, 0, Ot), ne(A, ut, Ot) === 0 && (pt[Pt++] = A)) : A._startTime <= W && A._startTime + A.totalDuration() / A._timeScale > W && ((Ot || !A._initted) && W - A._startTime <= 2e-10 || (pt[Pt++] = A)));
|
|
2630
2630
|
for (C = Pt; --C > -1; )
|
|
2631
2631
|
if (A = pt[C], ft = A._firstPT, c === 2 && A._kill(f, r, u) && (j = !0), c !== 2 || !A._firstPT && A._initted && ft) {
|
|
2632
2632
|
if (c !== 2 && !Vt(A, u))
|
|
@@ -2634,7 +2634,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2634
2634
|
A._enabled(!1, !1) && (j = !0);
|
|
2635
2635
|
}
|
|
2636
2636
|
return j;
|
|
2637
|
-
},
|
|
2637
|
+
}, ne = function(r, u, f) {
|
|
2638
2638
|
for (var c = r._timeline, w = c._timeScale, C = r._startTime; c._timeline; ) {
|
|
2639
2639
|
if (C += c._startTime, w *= c._timeScale, c._paused)
|
|
2640
2640
|
return -100;
|
|
@@ -2643,12 +2643,12 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2643
2643
|
return C /= w, C > u ? C - u : f && C === u || !r._initted && 2 * st > C - u ? st : (C += r.totalDuration() / r._timeScale / w) > u + st ? 0 : C - u - st;
|
|
2644
2644
|
};
|
|
2645
2645
|
S._init = function() {
|
|
2646
|
-
var r, u, f, c, w, C, j = this.vars, A = this._overwrittenProps, ft = this._duration, ut = !!j.immediateRender,
|
|
2646
|
+
var r, u, f, c, w, C, j = this.vars, A = this._overwrittenProps, ft = this._duration, ut = !!j.immediateRender, W = j.ease;
|
|
2647
2647
|
if (j.startAt) {
|
|
2648
2648
|
this._startAt && (this._startAt.render(-1, !0), this._startAt.kill()), w = {};
|
|
2649
2649
|
for (c in j.startAt)
|
|
2650
2650
|
w[c] = j.startAt[c];
|
|
2651
|
-
if (w.data = "isStart", w.overwrite = !1, w.immediateRender = !0, w.lazy = ut && j.lazy !== !1, w.startAt = w.delay = null, w.onUpdate = j.onUpdate, w.onUpdateParams = j.onUpdateParams, w.onUpdateScope = j.onUpdateScope || j.callbackScope || this, this._startAt =
|
|
2651
|
+
if (w.data = "isStart", w.overwrite = !1, w.immediateRender = !0, w.lazy = ut && j.lazy !== !1, w.startAt = w.delay = null, w.onUpdate = j.onUpdate, w.onUpdateParams = j.onUpdateParams, w.onUpdateScope = j.onUpdateScope || j.callbackScope || this, this._startAt = K.to(this.target || {}, 0, w), ut) {
|
|
2652
2652
|
if (this._time > 0)
|
|
2653
2653
|
this._startAt = null;
|
|
2654
2654
|
else if (ft !== 0)
|
|
@@ -2661,13 +2661,13 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2661
2661
|
this._time !== 0 && (ut = !1), f = {};
|
|
2662
2662
|
for (c in j)
|
|
2663
2663
|
_e[c] && c !== "autoCSS" || (f[c] = j[c]);
|
|
2664
|
-
if (f.overwrite = 0, f.data = "isFromStart", f.lazy = ut && j.lazy !== !1, f.immediateRender = ut, this._startAt =
|
|
2664
|
+
if (f.overwrite = 0, f.data = "isFromStart", f.lazy = ut && j.lazy !== !1, f.immediateRender = ut, this._startAt = K.to(this.target, 0, f), ut) {
|
|
2665
2665
|
if (this._time === 0)
|
|
2666
2666
|
return;
|
|
2667
2667
|
} else
|
|
2668
2668
|
this._startAt._init(), this._startAt._enabled(!1), this.vars.immediateRender && (this._startAt = null);
|
|
2669
2669
|
}
|
|
2670
|
-
if (this._ease =
|
|
2670
|
+
if (this._ease = W = W ? W instanceof p ? W : typeof W == "function" ? new p(W, j.easeParams) : T[W] || K.defaultEase : K.defaultEase, j.easeParams instanceof Array && W.config && (this._ease = W.config.apply(W, j.easeParams)), this._easeType = this._ease._type, this._easePower = this._ease._power, this._firstPT = null, this._targets)
|
|
2671
2671
|
for (C = this._targets.length, r = 0; C > r; r++)
|
|
2672
2672
|
this._initProps(
|
|
2673
2673
|
this._targets[r],
|
|
@@ -2684,18 +2684,18 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2684
2684
|
A,
|
|
2685
2685
|
0
|
|
2686
2686
|
);
|
|
2687
|
-
if (u &&
|
|
2687
|
+
if (u && K._onPluginEvent("_onInitAllProps", this), A && (this._firstPT || typeof this.target != "function" && this._enabled(!1, !1)), j.runBackwards)
|
|
2688
2688
|
for (f = this._firstPT; f; )
|
|
2689
2689
|
f.s += f.c, f.c = -f.c, f = f._next;
|
|
2690
2690
|
this._onUpdate = j.onUpdate, this._initted = !0;
|
|
2691
2691
|
}, S._initProps = function(r, u, f, c, w) {
|
|
2692
|
-
var C, j, A, ft, ut,
|
|
2692
|
+
var C, j, A, ft, ut, W;
|
|
2693
2693
|
if (r == null)
|
|
2694
2694
|
return !1;
|
|
2695
|
-
At[r._gsTweenID] && jt(), this.vars.css || r.style && r !==
|
|
2695
|
+
At[r._gsTweenID] && jt(), this.vars.css || r.style && r !== N && r.nodeType && Et.css && this.vars.autoCSS !== !1 && Yt(this.vars, r);
|
|
2696
2696
|
for (C in this.vars)
|
|
2697
|
-
if (
|
|
2698
|
-
|
|
2697
|
+
if (W = this.vars[C], _e[C])
|
|
2698
|
+
W && (W instanceof Array || W.push && P(W)) && W.join("").indexOf("{self}") !== -1 && (this.vars[C] = W = this._swapSelfInParams(W, this));
|
|
2699
2699
|
else if (Et[C] && (ft = new Et[C]())._onInitTween(r, this.vars[C], this, w)) {
|
|
2700
2700
|
for (this._firstPT = ut = {
|
|
2701
2701
|
_next: this._firstPT,
|
|
@@ -2712,12 +2712,12 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2712
2712
|
u[ft._overwriteProps[j]] = this._firstPT;
|
|
2713
2713
|
(ft._priority || ft._onInitAllProps) && (A = !0), (ft._onDisable || ft._onEnable) && (this._notifyPluginsOfEnabled = !0), ut._next && (ut._next._prev = ut);
|
|
2714
2714
|
} else
|
|
2715
|
-
u[C] =
|
|
2715
|
+
u[C] = $t.call(
|
|
2716
2716
|
this,
|
|
2717
2717
|
r,
|
|
2718
2718
|
C,
|
|
2719
2719
|
"get",
|
|
2720
|
-
|
|
2720
|
+
W,
|
|
2721
2721
|
C,
|
|
2722
2722
|
0,
|
|
2723
2723
|
null,
|
|
@@ -2732,8 +2732,8 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2732
2732
|
else if (1e-7 > r)
|
|
2733
2733
|
this._totalTime = this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (A !== 0 || ft === 0 && ut > 0) && (w = "onReverseComplete", c = this._reversed), 0 > r && (this._active = !1, ft === 0 && (this._initted || !this.vars.lazy || f) && (ut >= 0 && (ut !== st || this.data !== "isPause") && (f = !0), this._rawPrevTime = j = !u || r || ut === r ? r : st)), (!this._initted || this._startAt && this._startAt.progress()) && (f = !0);
|
|
2734
2734
|
else if (this._totalTime = this._time = r, this._easeType) {
|
|
2735
|
-
var
|
|
2736
|
-
(pt === 1 || pt === 3 &&
|
|
2735
|
+
var W = r / ft, pt = this._easeType, Pt = this._easePower;
|
|
2736
|
+
(pt === 1 || pt === 3 && W >= 0.5) && (W = 1 - W), pt === 3 && (W *= 2), Pt === 1 ? W *= W : Pt === 2 ? W *= W * W : Pt === 3 ? W *= W * W * W : Pt === 4 && (W *= W * W * W * W), pt === 1 ? this.ratio = 1 - W : pt === 2 ? this.ratio = W : 0.5 > r / ft ? this.ratio = W / 2 : this.ratio = 1 - W / 2;
|
|
2737
2737
|
} else
|
|
2738
2738
|
this.ratio = this._ease.getRatio(r / ft);
|
|
2739
2739
|
if (this._time !== A || f) {
|
|
@@ -2751,8 +2751,8 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2751
2751
|
}, S._kill = function(r, u, f) {
|
|
2752
2752
|
if (r === "all" && (r = null), r == null && (u == null || u === this.target))
|
|
2753
2753
|
return this._lazy = !1, this._enabled(!1, !1);
|
|
2754
|
-
u = typeof u != "string" ? u || this._targets || this.target :
|
|
2755
|
-
var c, w, C, j, A, ft, ut,
|
|
2754
|
+
u = typeof u != "string" ? u || this._targets || this.target : K.selector(u) || u;
|
|
2755
|
+
var c, w, C, j, A, ft, ut, W, pt, Pt = f && this._time && f._startTime === this._startTime && this._timeline === f._timeline, Ot = this._firstPT;
|
|
2756
2756
|
if ((P(u) || gt(u)) && typeof u[0] != "number")
|
|
2757
2757
|
for (c = u.length; --c > -1; )
|
|
2758
2758
|
this._kill(r, u[c], f) && (ft = !0);
|
|
@@ -2769,22 +2769,22 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2769
2769
|
A = this._propLookup, w = this._overwrittenProps = r ? this._overwrittenProps || {} : "all";
|
|
2770
2770
|
}
|
|
2771
2771
|
if (A) {
|
|
2772
|
-
if (ut = r || A,
|
|
2772
|
+
if (ut = r || A, W = r !== w && w !== "all" && r !== A && (typeof r != "object" || !r._tempKill), f && (K.onOverwrite || this.vars.onOverwrite)) {
|
|
2773
2773
|
for (C in ut)
|
|
2774
2774
|
A[C] && (pt || (pt = []), pt.push(C));
|
|
2775
2775
|
if ((pt || !r) && !Vt(this, f, u, pt))
|
|
2776
2776
|
return !1;
|
|
2777
2777
|
}
|
|
2778
2778
|
for (C in ut)
|
|
2779
|
-
(j = A[C]) && (Pt && (j.f ? j.t[j.p](j.s) : j.t[j.p] = j.s, ft = !0), j.pg && j.t._kill(ut) && (ft = !0), j.pg && j.t._overwriteProps.length !== 0 || (j._prev ? j._prev._next = j._next : j === this._firstPT && (this._firstPT = j._next), j._next && (j._next._prev = j._prev), j._next = j._prev = null), delete A[C]),
|
|
2779
|
+
(j = A[C]) && (Pt && (j.f ? j.t[j.p](j.s) : j.t[j.p] = j.s, ft = !0), j.pg && j.t._kill(ut) && (ft = !0), j.pg && j.t._overwriteProps.length !== 0 || (j._prev ? j._prev._next = j._next : j === this._firstPT && (this._firstPT = j._next), j._next && (j._next._prev = j._prev), j._next = j._prev = null), delete A[C]), W && (w[C] = 1);
|
|
2780
2780
|
!this._firstPT && this._initted && Ot && this._enabled(!1, !1);
|
|
2781
2781
|
}
|
|
2782
2782
|
}
|
|
2783
2783
|
return ft;
|
|
2784
2784
|
}, S.invalidate = function() {
|
|
2785
|
-
return this._notifyPluginsOfEnabled &&
|
|
2785
|
+
return this._notifyPluginsOfEnabled && K._onPluginEvent("_onDisable", this), this._firstPT = this._overwrittenProps = this._startAt = this._onUpdate = null, this._notifyPluginsOfEnabled = this._active = this._lazy = !1, this._propLookup = this._targets ? {} : [], et.prototype.invalidate.call(this), this.vars.immediateRender && (this._time = -st, this.render(Math.min(0, -this._delay))), this;
|
|
2786
2786
|
}, S._enabled = function(r, u) {
|
|
2787
|
-
if (
|
|
2787
|
+
if (b || M.wake(), r && this._gc) {
|
|
2788
2788
|
var f, c = this._targets;
|
|
2789
2789
|
if (c)
|
|
2790
2790
|
for (f = c.length; --f > -1; )
|
|
@@ -2792,15 +2792,15 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2792
2792
|
else
|
|
2793
2793
|
this._siblings = wt(this.target, this, !0);
|
|
2794
2794
|
}
|
|
2795
|
-
return et.prototype._enabled.call(this, r, u), this._notifyPluginsOfEnabled && this._firstPT ?
|
|
2796
|
-
},
|
|
2797
|
-
return new
|
|
2798
|
-
},
|
|
2799
|
-
return f.runBackwards = !0, f.immediateRender = f.immediateRender != 0, new
|
|
2800
|
-
},
|
|
2801
|
-
return c.startAt = f, c.immediateRender = c.immediateRender != 0 && f.immediateRender != 0, new
|
|
2802
|
-
},
|
|
2803
|
-
return new
|
|
2795
|
+
return et.prototype._enabled.call(this, r, u), this._notifyPluginsOfEnabled && this._firstPT ? K._onPluginEvent(r ? "_onEnable" : "_onDisable", this) : !1;
|
|
2796
|
+
}, K.to = function(r, u, f) {
|
|
2797
|
+
return new K(r, u, f);
|
|
2798
|
+
}, K.from = function(r, u, f) {
|
|
2799
|
+
return f.runBackwards = !0, f.immediateRender = f.immediateRender != 0, new K(r, u, f);
|
|
2800
|
+
}, K.fromTo = function(r, u, f, c) {
|
|
2801
|
+
return c.startAt = f, c.immediateRender = c.immediateRender != 0 && f.immediateRender != 0, new K(r, u, c);
|
|
2802
|
+
}, K.delayedCall = function(r, u, f, c, w) {
|
|
2803
|
+
return new K(u, 0, {
|
|
2804
2804
|
delay: r,
|
|
2805
2805
|
onComplete: u,
|
|
2806
2806
|
onCompleteParams: f,
|
|
@@ -2812,16 +2812,16 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2812
2812
|
useFrames: w,
|
|
2813
2813
|
overwrite: 0
|
|
2814
2814
|
});
|
|
2815
|
-
},
|
|
2816
|
-
return new
|
|
2817
|
-
},
|
|
2815
|
+
}, K.set = function(r, u) {
|
|
2816
|
+
return new K(r, 0, u);
|
|
2817
|
+
}, K.getTweensOf = function(r, u) {
|
|
2818
2818
|
if (r == null)
|
|
2819
2819
|
return [];
|
|
2820
|
-
r = typeof r != "string" ? r :
|
|
2820
|
+
r = typeof r != "string" ? r : K.selector(r) || r;
|
|
2821
2821
|
var f, c, w, C;
|
|
2822
2822
|
if ((P(r) || gt(r)) && typeof r[0] != "number") {
|
|
2823
2823
|
for (f = r.length, c = []; --f > -1; )
|
|
2824
|
-
c = c.concat(
|
|
2824
|
+
c = c.concat(K.getTweensOf(r[f], u));
|
|
2825
2825
|
for (f = c.length; --f > -1; )
|
|
2826
2826
|
for (C = c[f], w = f; --w > -1; )
|
|
2827
2827
|
C === c[w] && c.splice(f, 1);
|
|
@@ -2829,19 +2829,19 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2829
2829
|
for (c = wt(r).concat(), f = c.length; --f > -1; )
|
|
2830
2830
|
(c[f]._gc || u && !c[f].isActive()) && c.splice(f, 1);
|
|
2831
2831
|
return c || [];
|
|
2832
|
-
},
|
|
2832
|
+
}, K.killTweensOf = K.killDelayedCallsTo = function(r, u, f) {
|
|
2833
2833
|
typeof u == "object" && (f = u, u = !1);
|
|
2834
|
-
for (var c =
|
|
2834
|
+
for (var c = K.getTweensOf(r, u), w = c.length; --w > -1; )
|
|
2835
2835
|
c[w]._kill(f, r);
|
|
2836
2836
|
};
|
|
2837
|
-
var
|
|
2837
|
+
var Wt = n(
|
|
2838
2838
|
"plugins.TweenPlugin",
|
|
2839
2839
|
function(r, u) {
|
|
2840
|
-
this._overwriteProps = (r || "").split(","), this._propName = this._overwriteProps[0], this._priority = u || 0, this._super =
|
|
2840
|
+
this._overwriteProps = (r || "").split(","), this._propName = this._overwriteProps[0], this._priority = u || 0, this._super = Wt.prototype;
|
|
2841
2841
|
},
|
|
2842
2842
|
!0
|
|
2843
2843
|
);
|
|
2844
|
-
if (S =
|
|
2844
|
+
if (S = Wt.prototype, Wt.version = "1.19.0", Wt.API = 2, S._firstPT = null, S._addTween = $t, S.setRatio = bt, S._kill = function(r) {
|
|
2845
2845
|
var u, f = this._overwriteProps, c = this._firstPT;
|
|
2846
2846
|
if (r[this._propName] != null)
|
|
2847
2847
|
this._overwriteProps = [];
|
|
@@ -2854,7 +2854,7 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2854
2854
|
}, S._mod = S._roundProps = function(r) {
|
|
2855
2855
|
for (var u, f = this._firstPT; f; )
|
|
2856
2856
|
u = r[this._propName] || f.n != null && r[f.n.split(this._propName + "_").join("")], u && typeof u == "function" && (f.f === 2 ? f.t._applyPT.m = u : f.m = u), f = f._next;
|
|
2857
|
-
},
|
|
2857
|
+
}, K._onPluginEvent = function(r, u) {
|
|
2858
2858
|
var f, c, w, C, j, A = u._firstPT;
|
|
2859
2859
|
if (r === "_onInitAllProps") {
|
|
2860
2860
|
for (; A; ) {
|
|
@@ -2867,9 +2867,9 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2867
2867
|
for (; A; )
|
|
2868
2868
|
A.pg && typeof A.t[r] == "function" && A.t[r]() && (f = !0), A = A._next;
|
|
2869
2869
|
return f;
|
|
2870
|
-
},
|
|
2870
|
+
}, Wt.activate = function(r) {
|
|
2871
2871
|
for (var u = r.length; --u > -1; )
|
|
2872
|
-
r[u].API ===
|
|
2872
|
+
r[u].API === Wt.API && (Et[new r[u]()._propName] = r[u]);
|
|
2873
2873
|
return !0;
|
|
2874
2874
|
}, _.plugin = function(r) {
|
|
2875
2875
|
if (!(r && r.propName && r.init && r.API))
|
|
@@ -2884,36 +2884,83 @@ var Dt = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2884
2884
|
}, j = n(
|
|
2885
2885
|
"plugins." + f.charAt(0).toUpperCase() + f.substr(1) + "Plugin",
|
|
2886
2886
|
function() {
|
|
2887
|
-
|
|
2887
|
+
Wt.call(this, f, c), this._overwriteProps = w || [];
|
|
2888
2888
|
},
|
|
2889
2889
|
r.global === !0
|
|
2890
|
-
), A = j.prototype = new
|
|
2890
|
+
), A = j.prototype = new Wt(f);
|
|
2891
2891
|
A.constructor = j, j.API = r.API;
|
|
2892
2892
|
for (u in C)
|
|
2893
2893
|
typeof r[u] == "function" && (A[C[u]] = r[u]);
|
|
2894
|
-
return j.version = r.version,
|
|
2895
|
-
},
|
|
2896
|
-
for (dt = 0; dt <
|
|
2897
|
-
|
|
2894
|
+
return j.version = r.version, Wt.activate([j]), j;
|
|
2895
|
+
}, $ = N._gsQueue) {
|
|
2896
|
+
for (dt = 0; dt < $.length; dt++)
|
|
2897
|
+
$[dt]();
|
|
2898
2898
|
for (S in e)
|
|
2899
|
-
e[S].func ||
|
|
2899
|
+
e[S].func || N.console.log("GSAP encountered missing dependency: " + S);
|
|
2900
2900
|
}
|
|
2901
|
-
|
|
2901
|
+
b = !1;
|
|
2902
2902
|
}(
|
|
2903
2903
|
typeof module < "u" && module.exports && typeof global < "u" ? global : globalThis || window,
|
|
2904
2904
|
"TweenMax"
|
|
2905
2905
|
);
|
|
2906
|
-
const pi = [
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2906
|
+
const fi = { class: "modal-background" }, pi = { class: "modal" }, ci = ["innerHTML"], mi = {
|
|
2907
|
+
name: "MapModali"
|
|
2908
|
+
}, di = /* @__PURE__ */ Xe({
|
|
2909
|
+
...mi,
|
|
2910
|
+
props: {
|
|
2911
|
+
// text: {
|
|
2912
|
+
// type: String,
|
|
2913
|
+
// default: "CHBIM云平台",
|
|
2914
|
+
// },
|
|
2915
|
+
},
|
|
2916
|
+
setup(N, { expose: J }) {
|
|
2917
|
+
const Q = Ae(""), nt = Ae(""), E = ($) => {
|
|
2918
|
+
nt.value = $, Q.value = "five";
|
|
2919
|
+
}, Y = () => {
|
|
2920
|
+
Q.value = Q.value + " out";
|
|
2921
|
+
};
|
|
2922
|
+
return Le(() => {
|
|
2923
|
+
}), J({
|
|
2924
|
+
text: nt,
|
|
2925
|
+
show: E
|
|
2926
|
+
}), ($, dt) => (Ce(), Me("div", {
|
|
2927
|
+
id: "modal-container",
|
|
2928
|
+
class: Ie(Q.value),
|
|
2929
|
+
onClick: Y
|
|
2930
|
+
}, [
|
|
2931
|
+
Jt("div", fi, [
|
|
2932
|
+
Jt("div", pi, [
|
|
2933
|
+
Jt("p", {
|
|
2934
|
+
style: { "white-space": "pre-line", "line-height": "1", margin: "0" },
|
|
2935
|
+
innerHTML: nt.value
|
|
2936
|
+
}, null, 8, ci)
|
|
2937
|
+
])
|
|
2938
|
+
])
|
|
2939
|
+
], 2));
|
|
2940
|
+
}
|
|
2941
|
+
});
|
|
2942
|
+
const gi = [ti], vi = {
|
|
2943
|
+
continuation: null,
|
|
2944
|
+
mapModali: null,
|
|
2945
|
+
install(N) {
|
|
2946
|
+
if (gi.forEach(($, dt) => {
|
|
2947
|
+
N.component($.name, $);
|
|
2948
|
+
}), this.continuation) {
|
|
2949
|
+
N.config.globalProperties.$continuation = this.continuation;
|
|
2950
|
+
return;
|
|
2951
|
+
}
|
|
2952
|
+
let J = je(ui), Q = document.createElement("div"), nt = document.body;
|
|
2953
|
+
if (nt.appendChild(Q), this.loading = J.mount(Q), N.config.globalProperties.$loading = this.loading, window.$continuation = this.loading, this.mapModali) {
|
|
2954
|
+
N.config.globalProperties.$mapModali = this.mapModali;
|
|
2955
|
+
return;
|
|
2956
|
+
}
|
|
2957
|
+
let E = je(di), Y = document.createElement("div");
|
|
2958
|
+
nt.appendChild(Y), this.mapModali = E.mount(Y), N.config.globalProperties.$mapModali = this.mapModali, window.$mapModali = this.mapModali;
|
|
2913
2959
|
}
|
|
2914
2960
|
};
|
|
2915
2961
|
export {
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2962
|
+
ti as Button,
|
|
2963
|
+
ui as Cutscenes,
|
|
2964
|
+
di as MapModali,
|
|
2965
|
+
vi as default
|
|
2919
2966
|
};
|