PageSourceSearch

https://www.mindseed.gr/assets/js/combine.js

js mindseed.gr collected 2026-10-09 17:34:01 UTC 242,770 bytes, 300 lines download raw bytes

1/*! nouislider - 14.2.0 - 3/27/2020 */
2!function (t) { "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? module.exports = t() : window.noUiSlider = t() }(function () { "use strict"; var lt = "14.2.0"; function ut(t) { t.parentElement.removeChild(t) } function s(t) { return null != t } function ct(t) { t.preventDefault() } function i(t) { return "number" == typeof t && !isNaN(t) && isFinite(t) } function pt(t, e, r) { 0 < r && (ht(t, e), setTimeout(function () { mt(t, e) }, r)) } function ft(t) { return Math.max(Math.min(t, 100), 0) } function dt(t) { return Array.isArray(t) ? t : [t] } function e(t) { var e = (t = String(t)).split("."); return 1 < e.length ? e[1].length : 0 } function ht(t, e) { t.classList && !/\s/.test(e) ? t.classList.add(e) : t.className += " " + e } function mt(t, e) { t.classList ? t.classList.remove(e) : t.className = t.className.replace(new RegExp("(^|\\b)" + e.split(" ").join("|") + "(\\b|$)", "gi"), " ") } function gt(t) { var e = void 0 !== window.pageXOffset, r = "CSS1Compat" === (t.compatMode || ""); return { x: e ? window.pageXOffset : r ? t.documentElement.scrollLeft : t.body.scrollLeft, y: e ? window.pageYOffset : r ? t.documentElement.scrollTop : t.body.scrollTop } } function c(t, e) { return 100 / (e - t) } function p(t, e) { return 100 * e / (t[1] - t[0]) } function f(t, e) { for (var r = 1; t >= e[r];)r += 1; return r } function r(t, e, r) { if (r >= t.slice(-1)[0]) return 100; var n, i, o = f(r, t), a = t[o - 1], s = t[o], l = e[o - 1], u = e[o]; return l + (i = r, p(n = [a, s], n[0] < 0 ? i + Math.abs(n[0]) : i - n[0]) / c(l, u)) } function n(t, e, r, n) { if (100 === n) return n; var i, o, a = f(n, t), s = t[a - 1], l = t[a]; return r ? (l - s) / 2 < n - s ? l : s : e[a - 1] ? t[a - 1] + (i = n - t[a - 1], o = e[a - 1], Math.round(i / o) * o) : n } function o(t, e, r) { var n; if ("number" == typeof e && (e = [e]), !Array.isArray(e)) throw new Error("noUiSlider (" + lt + "): 'range' contains invalid value."); if (!i(n = "min" === t ? 0 : "max" === t ? 100 : parseFloat(t)) || !i(e[0])) throw new Error("noUiSlider (" + lt + "): 'range' value isn't numeric."); r.xPct.push(n), r.xVal.push(e[0]), n ? r.xSteps.push(!isNaN(e[1]) && e[1]) : isNaN(e[1]) || (r.xSteps[0] = e[1]), r.xHighestCompleteStep.push(0) } function a(t, e, r) { if (e) if (r.xVal[t] !== r.xVal[t + 1]) { r.xSteps[t] = p([r.xVal[t], r.xVal[t + 1]], e) / c(r.xPct[t], r.xPct[t + 1]); var n = (r.xVal[t + 1] - r.xVal[t]) / r.xNumSteps[t], i = Math.ceil(Number(n.toFixed(3)) - 1), o = r.xVal[t] + r.xNumSteps[t] * i; r.xHighestCompleteStep[t] = o } else r.xSteps[t] = r.xHighestCompleteStep[t] = r.xVal[t] } function l(t, e, r) { var n; this.xPct = [], this.xVal = [], this.xSteps = [r || !1], this.xNumSteps = [!1], this.xHighestCompleteStep = [], this.snap = e; var i = []; for (n in t) t.hasOwnProperty(n) && i.push([t[n], n]); for (i.length && "object" == typeof i[0][0] ? i.sort(function (t, e) { return t[0][0] - e[0][0] }) : i.sort(function (t, e) { return t[0] - e[0] }), n = 0; n < i.length; n++)o(i[n][1], i[n][0], this); for (this.xNumSteps = this.xSteps.slice(0), n = 0; n < this.xNumSteps.length; n++)a(n, this.xNumSteps[n], this) } l.prototype.getMargin = function (t) { var e = this.xNumSteps[0]; if (e && t / e % 1 != 0) throw new Error("noUiSlider (" + lt + "): 'limit', 'margin' and 'padding' must be divisible by step."); return 2 === this.xPct.length && p(this.xVal, t) }, l.prototype.toStepping = function (t) { return t = r(this.xVal, this.xPct, t) }, l.prototype.fromStepping = function (t) { return function (t, e, r) { if (100 <= r) return t.slice(-1)[0]; var n, i = f(r, e), o = t[i - 1], a = t[i], s = e[i - 1], l = e[i]; return n = [o, a], (r - s) * c(s, l) * (n[1] - n[0]) / 100 + n[0] }(this.xVal, this.xPct, t) }, l.prototype.getStep = function (t) { return t = n(this.xPct, this.xSteps, this.snap, t) }, l.prototype.getDefaultStep = function (t, e, r) { var n = f(t, this.xPct); return (100 === t || e && t === this.xPct[n - 1]) && (n = Math.max(n - 1, 1)), (this.xVal[n] - this.xVal[n - 1]) / r }, l.prototype.getNearbySteps = function (t) { var e = f(t, this.xPct); return { stepBefore: { startValue: this.xVal[e - 2], step: this.xNumSteps[e - 2], highestStep: this.xHighestCompleteStep[e - 2] }, thisStep: { startValue: this.xVal[e - 1], step: this.xNumSteps[e - 1], highe
2stStep: this.xHighestCompleteStep[e - 1] }, stepAfter: { startValue: this.xVal[e], step: this.xNumSteps[e], highestStep: this.xHighestCompleteStep[e] } } }, l.prototype.countStepDecimals = function () { var t = this.xNumSteps.map(e); return Math.max.apply(null, t) }, l.prototype.convert = function (t) { return this.getStep(this.toStepping(t)) }; var u = { to: function (t) { return void 0 !== t && t.toFixed(2) }, from: Number }; function d(t) { if ("object" == typeof (e = t) && "function" == typeof e.to && "function" == typeof e.from) return !0; var e; throw new Error("noUiSlider (" + lt + "): 'format' requires 'to' and 'from' methods.") } function h(t, e) { if (!i(e)) throw new Error("noUiSlider (" + lt + "): 'step' is not numeric."); t.singleStep = e } function m(t, e) { if ("object" != typeof e || Array.isArray(e)) throw new Error("noUiSlider (" + lt + "): 'range' is not an object."); if (void 0 === e.min || void 0 === e.max) throw new Error("noUiSlider (" + lt + "): Missing 'min' or 'max' in 'range'."); if (e.min === e.max) throw new Error("noUiSlider (" + lt + "): 'range' 'min' and 'max' cannot be equal."); t.spectrum = new l(e, t.snap, t.singleStep) } function g(t, e) { if (e = dt(e), !Array.isArray(e) || !e.length) throw new Error("noUiSlider (" + lt + "): 'start' option is incorrect."); t.handles = e.length, t.start = e } function v(t, e) { if ("boolean" != typeof (t.snap = e)) throw new Error("noUiSlider (" + lt + "): 'snap' option must be a boolean.") } function b(t, e) { if ("boolean" != typeof (t.animate = e)) throw new Error("noUiSlider (" + lt + "): 'animate' option must be a boolean.") } function S(t, e) { if ("number" != typeof (t.animationDuration = e)) throw new Error("noUiSlider (" + lt + "): 'animationDuration' option must be a number.") } function x(t, e) { var r, n = [!1]; if ("lower" === e ? e = [!0, !1] : "upper" === e && (e = [!1, !0]), !0 === e || !1 === e) { for (r = 1; r < t.handles; r++)n.push(e); n.push(!1) } else { if (!Array.isArray(e) || !e.length || e.length !== t.handles + 1) throw new Error("noUiSlider (" + lt + "): 'connect' option doesn't match handle count."); n = e } t.connect = n } function w(t, e) { switch (e) { case "horizontal": t.ort = 0; break; case "vertical": t.ort = 1; break; default: throw new Error("noUiSlider (" + lt + "): 'orientation' option is invalid.") } } function y(t, e) { if (!i(e)) throw new Error("noUiSlider (" + lt + "): 'margin' option must be numeric."); if (0 !== e && (t.margin = t.spectrum.getMargin(e), !t.margin)) throw new Error("noUiSlider (" + lt + "): 'margin' option is only supported on linear sliders.") } function E(t, e) { if (!i(e)) throw new Error("noUiSlider (" + lt + "): 'limit' option must be numeric."); if (t.limit = t.spectrum.getMargin(e), !t.limit || t.handles < 2) throw new Error("noUiSlider (" + lt + "): 'limit' option is only supported on linear sliders with 2 or more handles.") } function C(t, e) { if (!i(e) && !Array.isArray(e)) throw new Error("noUiSlider (" + lt + "): 'padding' option must be numeric or array of exactly 2 numbers."); if (Array.isArray(e) && 2 !== e.length && !i(e[0]) && !i(e[1])) throw new Error("noUiSlider (" + lt + "): 'padding' option must be numeric or array of exactly 2 numbers."); if (0 !== e) { if (Array.isArray(e) || (e = [e, e]), !(t.padding = [t.spectrum.getMargin(e[0]), t.spectrum.getMargin(e[1])]) === t.padding[0] || !1 === t.padding[1]) throw new Error("noUiSlider (" + lt + "): 'padding' option is only supported on linear sliders."); if (t.padding[0] < 0 || t.padding[1] < 0) throw new Error("noUiSlider (" + lt + "): 'padding' option must be a positive number(s)."); if (100 < t.padding[0] + t.padding[1]) throw new Error("noUiSlider (" + lt + "): 'padding' option must not exceed 100% of the range.") } } function N(t, e) { switch (e) { case "ltr": t.dir = 0; break; case "rtl": t.dir = 1; break; default: throw new Error("noUiSlider (" + lt + "): 'direction' option was not recognized.") } } function U(t, e) { if ("string" != typeof e) throw new Error("noUiSlider (" + lt + "): 'behaviour' must be a string containing options."); var r = 0 <= e.indexOf("tap"), n = 0 <= e.indexOf("drag"), i = 0 <= e.indexOf("fixed"), o = 0 <= e.indexOf("snap"), a = 0 <= e.indexOf("hover"), s = 0 <= e.indexOf("unconstrained"); if (i) { if (2 !== t.handles) throw new Error("noUiSlider (" + lt + "): 'fixed' behaviour must be used with 2 handles"); y(t, t.start[1] - t.start[0]) } if (s && (t.margin || t.limit)) throw new Error("noUiSlider (" + lt + "): 'unconstrained' behaviour cannot be used with margin or limit"); t.events = { tap: r || o, drag: n, fixed: i, snap: o, hover: a, unconstrained: s } } function P(t, e) { if (!1 !== e) if (!0 === e) { t.tooltips = []; for (var r = 0; r < t.handles; r++)t.tooltips.push(!0) } else { if (t.tooltips = dt(e), t.tooltips.length !== t.handles) throw new Error("noUiSlider (" + lt + "): must pass a formatter for all handles."); t.tooltips.forEach(function (t) { if ("boolean" != typeof t && ("object" != typeof t || "function" != typeof t.to)) throw new Error("noUiSlider (" + lt + "): 'tooltips' must be passed a formatter or 'false'.") }) } } function V(t, e) { d(t.ariaFormat = e) } function k(t, e) { d(t.format = e) } function A(t, e) { if ("boolean" != typeof (t.keyboardSupport = e)) throw new Error("noUiSlider (" + lt + "): 'keyboardSupport' option must be a boolean.") } function M(t, e) { t.documentElement = e } function O(t, e) { if ("string" != typeof e && !1 !== e) throw new Error("noUiSlider (" + lt + "): 'cssPrefix' must be a string or `false`."); t.cssPrefix = e } function L(t, e) { if ("object" != typeof e) throw new Error("noUiSlider (" + lt + "): 'cssClasse
2s' must be an object."); if ("string" == typeof t.cssPrefix) for (var r in t.cssClasses = {}, e) e.hasOwnProperty(r) && (t.cssClasses[r] = t.cssPrefix + e[r]); else t.cssClasses = e } function vt(e) { var r = { margin: 0, limit: 0, padding: 0, animate: !0, animationDuration: 300, ariaFormat: u, format: u }, n = { step: { r: !1, t: h }, start: { r: !0, t: g }, connect: { r: !0, t: x }, direction: { r: !0, t: N }, snap: { r: !1, t: v }, animate: { r: !1, t: b }, animationDuration: { r: !1, t: S }, range: { r: !0, t: m }, orientation: { r: !1, t: w }, margin: { r: !1, t: y }, limit: { r: !1, t: E }, padding: { r: !1, t: C }, behaviour: { r: !0, t: U }, ariaFormat: { r: !1, t: V }, format: { r: !1, t: k }, tooltips: { r: !1, t: P }, keyboardSupport: { r: !0, t: A }, documentElement: { r: !1, t: M }, cssPrefix: { r: !0, t: O }, cssClasses: { r: !0, t: L } }, i = { connect: !1, direction: "ltr", behaviour: "tap", orientation: "horizontal", keyboardSupport: !0, cssPrefix: "noUi-", cssClasses: { target: "target", base: "base", origin: "origin", handle: "handle", handleLower: "handle-lower", handleUpper: "handle-upper", touchArea: "touch-area", horizontal: "horizontal", vertical: "vertical", background: "background", connect: "connect", connects: "connects", ltr: "ltr", rtl: "rtl", textDirectionLtr: "txt-dir-ltr", textDirectionRtl: "txt-dir-rtl", draggable: "draggable", drag: "state-drag", tap: "state-tap", active: "active", tooltip: "tooltip", pips: "pips", pipsHorizontal: "pips-horizontal", pipsVertical: "pips-vertical", marker: "marker", markerHorizontal: "marker-horizontal", markerVertical: "marker-vertical", markerNormal: "marker-normal", markerLarge: "marker-large", markerSub: "marker-sub", value: "value", valueHorizontal: "value-horizontal", valueVertical: "value-vertical", valueNormal: "value-normal", valueLarge: "value-large", valueSub: "value-sub" } }; e.format && !e.ariaFormat && (e.ariaFormat = e.format), Object.keys(n).forEach(function (t) { if (!s(e[t]) && void 0 === i[t]) { if (n[t].r) throw new Error("noUiSlider (" + lt + "): '" + t + "' is required."); return !0 } n[t].t(r, s(e[t]) ? e[t] : i[t]) }), r.pips = e.pips; var t = document.createElement("div"), o = void 0 !== t.style.msTransform, a = void 0 !== t.style.transform; r.transformRule = a ? "transform" : o ? "msTransform" : "webkitTransform"; return r.style = [["left", "top"], ["right", "bottom"]][r.dir][r.ort], r } function D(t, v, o) { var l, u, a, c, i, s, e, p, f = window.navigator.pointerEnabled ? { start: "pointerdown", move: "pointermove", end: "pointerup" } : window.navigator.msPointerEnabled ? { start: "MSPointerDown", move: "MSPointerMove", end: "MSPointerUp" } : { start: "mousedown touchstart", move: "mousemove touchmove", end: "mouseup touchend" }, d = window.CSS && CSS.supports && CSS.supports("touch-action", "none") && function () { var t = !1; try { var e = Object.defineProperty({}, "passive", { get: function () { t = !0 } }); window.addEventListener("test", null, e) } catch (t) { } return t }(), h = t, y = v.spectrum, b = [], S = [], m = [], g = 0, x = {}, w = t.ownerDocument, E = v.documentElement || w.documentElement, C = w.body, N = -1, U = 0, P = 1, V = 2, k = "rtl" === w.dir || 1 === v.ort ? 0 : 100; function A(t, e) { var r = w.createElement("div"); return e && ht(r, e), t.appendChild(r), r } function M(t, e) { var r = A(t, v.cssClasses.origin), n = A(r, v.cssClasses.handle); return A(n, v.cssClasses.touchArea), n.setAttribute("data-handle", e), v.keyboardSupport && (n.setAttribute("tabindex", "0"), n.addEventListener("keydown", function (t) { return function (t, e) { if (L() || D(e)) return !1; var r = ["Left", "Right"], n = ["Down", "Up"], i = ["PageDown", "PageUp"], o = ["Home", "End"]; v.dir && !v.ort ? r.reverse() : v.ort && !v.dir && (n.reverse(), i.reverse()); var a, s = t.key.replace("Arrow", ""), l = s === i[0], u = s === i[1], c = s === n[0] || s === r[0] || l, p = s === n[1] || s === r[1] || u, f = s === o[0], d = s === o[1]; if (!(c || p || f || d)) return !0; if (t.preventDefault(), p || c) { var h = c ? 0 : 1, m = st(e), g = m[h]; if (null === g) return !1; !1 === g && (g = y.getDefaultStep(S[e], c, 10)), (u || l) && (g *= 5), g = Math.max(g, 1e-7), g *= c ? -1 : 1, a = b[e] + g } else a = d ? v.spectrum.xVal[v.spectrum.xVal.length - 1] : v.spectrum.xVal[0]; return rt(e, y.toStepping(a), !0, !0), J("slide", e), J("update", e), J("change", e), J("set", e), !1 }(t, e) })), n.setAttribute("role", "slider"), n.setAttribute("aria-orientation", v.ort ? "vertical" : "horizontal"), 0 === e ? ht(n, v.cssClasse
2s.handleLower) : e === v.handles - 1 && ht(n, v.cssClasses.handleUpper), r } function O(t, e) { return !!e && A(t, v.cssClasses.connect) } function r(t, e) { return !!v.tooltips[e] && A(t.firstChild, v.cssClasses.tooltip) } function L() { return h.hasAttribute("disabled") } function D(t) { return u[t].hasAttribute("disabled") } function z() { i && (G("update.tooltips"), i.forEach(function (t) { t && ut(t) }), i = null) } function H() { z(), i = u.map(r), $("update.tooltips", function (t, e, r) { if (i[e]) { var n = t[e]; !0 !== v.tooltips[e] && (n = v.tooltips[e].to(r[e])), i[e].innerHTML = n } }) } function j(e, i, o) { var a = w.createElement("div"), s = []; s[U] = v.cssClasses.valueNormal, s[P] = v.cssClasses.valueLarge, s[V] = v.cssClasses.valueSub; var l = []; l[U] = v.cssClasses.markerNormal, l[P] = v.cssClasses.markerLarge, l[V] = v.cssClasses.markerSub; var u = [v.cssClasses.valueHorizontal, v.cssClasses.valueVertical], c = [v.cssClasses.markerHorizontal, v.cssClasses.markerVertical]; function p(t, e) { var r = e === v.cssClasses.value, n = r ? s : l; return e + " " + (r ? u : c)[v.ort] + " " + n[t] } return ht(a, v.cssClasses.pips), ht(a, 0 === v.ort ? v.cssClasses.pipsHorizontal : v.cssClasses.pipsVertical), Object.keys(e).forEach(function (t) { !function (t, e, r) { if ((r = i ? i(e, r) : r) !== N) { var n = A(a, !1); n.className = p(r, v.cssClasses.marker), n.style[v.style] = t + "%", U < r && ((n = A(a, !1)).className = p(r, v.cssClasses.value), n.setAttribute("data-value", e), n.style[v.style] = t + "%", n.innerHTML = o.to(e)) } }(t, e[t][0], e[t][1]) }), a } function F() { c && (ut(c), c = null) } function R(t) { F(); var m, g, v, b, e, r, S, x, w, n = t.mode, i = t.density || 1, o = t.filter || !1, a = function (t, e, r) { if ("range" === t || "steps" === t) return y.xVal; if ("count" === t) { if (e < 2) throw new Error("noUiSlider (" + lt + "): 'values' (>= 2) required for mode 'count'."); var n = e - 1, i = 100 / n; for (e = []; n--;)e[n] = n * i; e.push(100), t = "positions" } return "positions" === t ? e.map(function (t) { return y.fromStepping(r ? y.getStep(t) : t) }) : "values" === t ? r ? e.map(function (t) { return y.fromStepping(y.getStep(y.toStepping(t))) }) : e : void 0 }(n, t.values || !1, t.stepped || !1), s = (m = i, g = n, v = a, b = {}, e = y.xVal[0], r = y.xVal[y.xVal.length - 1], x = S = !1, w = 0, (v = v.slice().sort(function (t, e) { return t - e }).filter(function (t) { return !this[t] && (this[t] = !0) }, {}))[0] !== e && (v.unshift(e), S = !0), v[v.length - 1] !== r && (v.push(r), x = !0), v.forEach(function (t, e) { var r, n, i, o, a, s, l, u, c, p, f = t, d = v[e + 1], h = "steps" === g; if (h && (r = y.xNumSteps[e]), r || (r = d - f), !1 !== f && void 0 !== d) for (r = Math.max(r, 1e-7), n = f; n <= d; n = (n + r).toFixed(7) / 1) { for (u = (a = (o = y.toStepping(n)) - w) / m, p = a / (c = Math.round(u)), i = 1; i <= c; i += 1)b[(s = w + i * p).toFixed(5)] = [y.fromStepping(s), 0]; l = -1 < v.indexOf(n) ? P : h ? V : U, !e && S && n !== d && (l = 0), n === d && x || (b[o.toFixed(5)] = [n, l]), w = o } }), b), l = t.format || { to: Math.round }; return c = h.appendChild(j(s, o, l)) } function T() { var t = l.getBoundingClientRect(), e = "offset" + ["Width", "Height"][v.ort]; return 0 === v.ort ? t.width || l[e] : t.height || l[e] } function B(n, i, o, a) { var e = function (t) { return !!(t = function (t, e, r) { var n, i, o = 0 === t.type.indexOf("touch"), a = 0 === t.type.indexOf("mouse"), s = 0 === t.type.indexOf("pointer"); 0 === t.type.indexOf("MSPointer") && (s = !0); if (o) { var l = function (t) { return t.target === r || r.contains(t.target) || t.target.shadowRoot && t.target.shadowRoot.contains(r) }; if ("touchstart" === t.type) { var u = Array.prototype.filter.call(t.touches, l); if (1 < u.length) return !1; n = u[0].pageX, i = u[0].pageY } else { var c = Array.prototype.find.call(t.changedTouches, l); if (!c) return !1; n = c.pageX, i = c.pageY } } e = e || gt(w), (a || s) && (n = t.clientX + e.x, i = t.clientY + e.y); return t.pageOffset = e, t.points = [n, i], t.cursor = a || s, t }(t, a.pageOffset, a.target || i)) && (!(L() && !a.doNotReject) && (e = h, r = v.cssClasse
2s.tap, !((e.classList ? e.classList.contains(r) : new RegExp("\\b" + r + "\\b").test(e.className)) && !a.doNotReject) && (!(n === f.start && void 0 !== t.buttons && 1 < t.buttons) && ((!a.hover || !t.buttons) && (d || t.preventDefault(), t.calcPoint = t.points[v.ort], void o(t, a)))))); var e, r }, r = []; return n.split(" ").forEach(function (t) { i.addEventListener(t, e, !!d && { passive: !0 }), r.push([t, e]) }), r } function q(t) { var e, r, n, i, o, a, s = 100 * (t - (e = l, r = v.ort, n = e.getBoundingClientRect(), i = e.ownerDocument, o = i.documentElement, a = gt(i), /webkit.*Chrome.*Mobile/i.test(navigator.userAgent) && (a.x = 0), r ? n.top + a.y - o.clientTop : n.left + a.x - o.clientLeft)) / T(); return s = ft(s), v.dir ? 100 - s : s } function X(t, e) { "mouseout" === t.type && "HTML" === t.target.nodeName && null === t.relatedTarget && _(t, e) } function Y(t, e) { if (-1 === navigator.appVersion.indexOf("MSIE 9") && 0 === t.buttons && 0 !== e.buttonsProperty) return _(t, e); var r = (v.dir ? -1 : 1) * (t.calcPoint - e.startCalcPoint); Z(0 < r, 100 * r / e.baseSize, e.locations, e.handleNumbers) } function _(t, e) { e.handle && (mt(e.handle, v.cssClasses.active), g -= 1), e.listeners.forEach(function (t) { E.removeEventListener(t[0], t[1]) }), 0 === g && (mt(h, v.cssClasses.drag), et(), t.cursor && (C.style.cursor = "", C.removeEventListener("selectstart", ct))), e.handleNumbers.forEach(function (t) { J("change", t), J("set", t), J("end", t) }) } function I(t, e) { if (e.handleNumbers.some(D)) return !1; var r; 1 === e.handleNumbers.length && (r = u[e.handleNumbers[0]].children[0], g += 1, ht(r, v.cssClasses.active)); t.stopPropagation(); var n = [], i = B(f.move, E, Y, { target: t.target, handle: r, listeners: n, startCalcPoint: t.calcPoint, baseSize: T(), pageOffset: t.pageOffset, handleNumbers: e.handleNumbers, buttonsProperty: t.buttons, locations: S.slice() }), o = B(f.end, E, _, { target: t.target, handle: r, listeners: n, doNotReject: !0, handleNumbers: e.handleNumbers }), a = B("mouseout", E, X, { target: t.target, handle: r, listeners: n, doNotReject: !0, handleNumbers: e.handleNumbers }); n.push.apply(n, i.concat(o, a)), t.cursor && (C.style.cursor = getComputedStyle(t.target).cursor, 1 < u.length && ht(h, v.cssClasses.drag), C.addEventListener("selectstart", ct, !1)), e.handleNumbers.forEach(function (t) { J("start", t) }) } function n(t) { t.stopPropagation(); var i, o, a, e = q(t.calcPoint), r = (i = e, a = !(o = 100), u.forEach(function (t, e) { if (!D(e)) { var r = S[e], n = Math.abs(r - i); (n < o || n <= o && r < i || 100 === n && 100 === o) && (a = e, o = n) } }), a); if (!1 === r) return !1; v.events.snap || pt(h, v.cssClasses.tap, v.animationDuration), rt(r, e, !0, !0), et(), J("slide", r, !0), J("update", r, !0), J("change", r, !0), J("set", r, !0), v.events.snap && I(t, { handleNumbers: [r] }) } function W(t) { var e = q(t.calcPoint), r = y.getStep(e), n = y.fromStepping(r); Object.keys(x).forEach(function (t) { "hover" === t.split(".")[0] && x[t].forEach(function (t) { t.call(s, n) }) }) } function $(t, e) { x[t] = x[t] || [], x[t].push(e), "update" === t.split(".")[0] && u.forEach(function (t, e) { J("update", e) }) } function G(t) { var n = t && t.split(".")[0], i = n && t.substring(n.length); Object.keys(x).forEach(function (t) { var e = t.split(".")[0], r = t.substring(e.length); n && n !== e || i && i !== r || delete x[t] }) } function J(r, n, i) { Object.keys(x).forEach(function (t) { var e = t.split(".")[0]; r === e && x[t].forEach(function (t) { t.call(s, b.map(v.format.to), n, b.slice(), i || !1, S.slice(), s) }) }) } function K(t, e, r, n, i, o) { return 1 < u.length && !v.events.unconstrained && (n && 0 < e && (r = Math.max(r, t[e - 1] + v.margin)), i && e < u.length - 1 && (r = Math.min(r, t[e + 1] - v.margin))), 1 < u.length && v.limit && (n && 0 < e && (r = Math.min(r, t[e - 1] + v.limit)), i && e < u.length - 1 && (r = Math.max(r, t[e + 1] - v.limit))), v.padding && (0 === e && (r = Math.max(r, v.padding[0])), e === u.length - 1 && (r = Math.min(r, 100 - v.padding[1]))), !((r = ft(r = y.getStep(r))) === t[e] && !o) && r } function Q(t, e) { var r = v.ort; return (r ? e : t) + ", " + (r ? t : e) } function Z(t, n, r, e) { var i = r.slice(), o = [!t, t], a = [t, !t]; e = e.slice(), t && e.reverse(), 1 < e.length ? e.forEach(function (t, e) { var r = K(i, t, i[t] + n, o[e], a[e], !1); !1 === r ? n = 0 : (n = r - i[t], i[t] = r) }) : o = a = [!0]; var s = !1; e.forEach(function (t, e) { s = rt(t, r[t] + n, o[e], a[e]) || s }), s && e.forEach(function (t) { J("update", t), J("slide", t) }) } function tt(t, e) { return v.dir ? 100 - t - e : t } function et() { m.forEach(function (t) { var e = 50 < S[t] ? -1 : 1, r = 3 + (u.length + e * t); u[t].style.zIndex = r }) } function rt(t, e, r, n) { return !1 !== (e = K(S, t, e, r, n, !1)) && (function (t, e) { S[t] = e, b[t] = y.fromStepping(e); var r = "translate(" + Q(10 * (tt(e, 0) - k) + "%", "0") + ")"; u[t].style[v.transformRule] = r, nt(t), nt(t + 1) }(t, e), !0) } function nt(t) { if (a[t]) { var e = 0, r = 100; 0 !== t && (e = S[t - 1]), t !== a.length - 1 && (r = S[t]); var n = r - e, i = "translate(" + Q(tt(e, n) + "%", "0") + ")", o = "scale(" + Q(n / 100, "1") + ")"; a[t].style[v.transformRule] = i + " " + o } } function it(t, e) { return null === t || !1 === t || void 0 === t ? S[e] : ("number" == typeof t && (t = String(t)), t = v.format.from(t), !1 === (t = 
2y.toStepping(t)) || isNaN(t) ? S[e] : t) } function ot(t, e) { var r = dt(t), n = void 0 === S[0]; e = void 0 === e || !!e, v.animate && !n && pt(h, v.cssClasses.tap, v.animationDuration), m.forEach(function (t) { rt(t, it(r[t], t), !0, !1) }); for (var i = 1 === m.length ? 0 : 1; i < m.length; ++i)m.forEach(function (t) { rt(t, S[t], !0, !0) }); et(), m.forEach(function (t) { J("update", t), null !== r[t] && e && J("set", t) }) } function at() { var t = b.map(v.format.to); return 1 === t.length ? t[0] : t } function st(t) { var e = S[t], r = y.getNearbySteps(e), n = b[t], i = r.thisStep.step, o = null; if (v.snap) return [n - r.stepBefore.startValue || null, r.stepAfter.startValue - n || null]; !1 !== i && n + i > r.stepAfter.startValue && (i = r.stepAfter.startValue - n), o = n > r.thisStep.startValue ? r.thisStep.step : !1 !== r.stepBefore.step && n - r.stepBefore.highestStep, 100 === e ? i = null : 0 === e && (o = null); var a = y.countStepDecimals(); return null !== i && !1 !== i && (i = Number(i.toFixed(a))), null !== o && !1 !== o && (o = Number(o.toFixed(a))), [o, i] } return ht(e = h, v.cssClasses.target), 0 === v.dir ? ht(e, v.cssClasses.ltr) : ht(e, v.cssClasses.rtl), 0 === v.ort ? ht(e, v.cssClasses.horizontal) : ht(e, v.cssClasses.vertical), ht(e, "rtl" === getComputedStyle(e).direction ? v.cssClasses.textDirectionRtl : v.cssClasses.textDirectionLtr), l = A(e, v.cssClasses.base), function (t, e) { var r = A(e, v.cssClasses.connects); u = [], (a = []).push(O(r, t[0])); for (var n = 0; n < v.handles; n++)u.push(M(e, n)), m[n] = n, a.push(O(r, t[n + 1])) }(v.connect, l), (p = v.events).fixed || u.forEach(function (t, e) { B(f.start, t.children[0], I, { handleNumbers: [e] }) }), p.tap && B(f.start, l, n, {}), p.hover && B(f.move, l, W, { hover: !0 }), p.drag && a.forEach(function (t, e) { if (!1 !== t && 0 !== e && e !== a.length - 1) { var r = u[e - 1], n = u[e], i = [t]; ht(t, v.cssClasses.draggable), p.fixed && (i.push(r.children[0]), i.push(n.children[0])), i.forEach(function (t) { B(f.start, t, I, { handles: [r, n], handleNumbers: [e - 1, e] }) }) } }), ot(v.start), v.pips && R(v.pips), v.tooltips && H(), $("update", function (t, e, a, r, s) { m.forEach(function (t) { var e = u[t], r = K(S, t, 
20, !0, !0, !0), n = K(S, t, 100, !0, !0, !0), i = s[t], o = v.ariaFormat.to(a[t]); r = y.fromStepping(r).toFixed(1), n = y.fromStepping(n).toFixed(1), i = y.fromStepping(i).toFixed(1), e.children[0].setAttribute("aria-valuemin", r), e.children[0].setAttribute("aria-valuemax", n), e.children[0].setAttribute("aria-valuenow", i), e.children[0].setAttribute("aria-valuetext", o) }) }), s = { destroy: function () { for (var t in v.cssClasses) v.cssClasses.hasOwnProperty(t) && mt(h, v.cssClasses[t]); for (; h.firstChild;)h.removeChild(h.firstChild); delete h.noUiSlider }, steps: function () { return m.map(st) }, on: $, off: G, get: at, set: ot, setHandle: function (t, e, r) { if (!(0 <= (t = Number(t)) && t < m.length)) throw new Error("noUiSlider (" + lt + "): invalid handle number, got: " + t); rt(t, it(e, t), !0, !0), J("update", t), r && J("set", t) }, reset: function (t) { ot(v.start, t) }, __moveHandles: function (t, e, r) { Z(t, e, S, r) }, options: o, updateOptions: function (e, t) { var r = at(), n = ["margin", "limit", "padding", "range", "animate", "snap", "step", "format", "pips", "tooltips"]; n.forEach(function (t) { void 0 !== e[t] && (o[t] = e[t]) }); var i = vt(o); n.forEach(function (t) { void 0 !== e[t] && (v[t] = i[t]) }), y = i.spectrum, v.margin = i.margin, v.limit = i.limit, v.padding = i.padding, v.pips ? R(v.pips) : F(), v.tooltips ? H() : z(), S = [], ot(e.start || r, t) }, target: h, removePips: F, removeTooltips: z, pips: R } } return { __spectrum: l, version: lt, create: function (t, e) { if (!t || !t.nodeName) throw new Error("noUiSlider (" + lt + "): create requires a single element, got: " + t); if (t.noUiSlider) throw new Error("noUiSlider (" + lt + "): Slider was already initialized."); var r = D(t, vt(e), e); return t.noUiSlider = r } } });
3/*! nouislider - 14.2.0 - 3/27/2020 */
4
5
6
7/*! typeahead  */
8//https://github.com/bassjobsen/Bootstrap-3-Typeahead
9!function (root, factory) { "use strict"; "undefined" != typeof module && module.exports ? module.exports = factory(require("jquery")) : "function" == typeof define && define.amd ? define(["jquery"], function ($) { return factory($) }) : factory(root.jQuery) }(this, function ($) { "use strict"; var Typeahead = function (element, options) { this.$element = $(element), this.options = $.extend({}, Typeahead.defaults, options), this.matcher = this.options.matcher || this.matcher, this.sorter = this.options.sorter || this.sorter, this.select = this.options.select || this.select, this.autoSelect = "boolean" != typeof this.options.autoSelect || this.options.autoSelect, this.highlighter = this.options.highlighter || this.highlighter, this.render = this.options.render || this.render, this.updater = this.options.updater || this.updater, this.displayText = this.options.displayText || this.displayText, this.itemLink = this.options.itemLink || this.itemLink, this.itemTitle = this.options.itemTitle || this.itemTitle, this.followLinkOnSelect = this.options.followLinkOnSelect || this.followLinkOnSelect, this.source = this.options.source, this.delay = this.options.delay, this.theme = this.options.theme && this.options.themes && this.options.themes[this.options.theme] || Typeahead.defaults.themes[Typeahead.defaults.theme], this.$menu = $(this.options.menu || this.theme.menu), this.$appendTo = this.options.appendTo ? $(this.options.appendTo) : null, this.fitToElement = "boolean" == typeof this.options.fitToElement && this.options.fitToElement, this.shown = !1, this.listen(), this.showHintOnFocus = ("boolean" == typeof this.options.showHintOnFocus || "all" === this.options.showHintOnFocus) && this.options.showHintOnFocus, this.afterSelect = this.options.afterSelect, this.afterEmptySelect = this.options.afterEmptySelect, this.addItem = !1, this.value = this.$element.val() || this.$element.text(), this.keyPressed = !1, this.focused = this.$element.is(":focus") }; Typeahead.prototype = { constructor: Typeahead, setDefault: function (val) { if (this.$element.data("active", val), this.autoSelect || val) { var newVal = this.updater(val); newVal || (newVal = ""), this.$element.val(this.displayText(newVal) || newVal).text(this.displayText(newVal) || newVal).change(), this.afterSelect(newVal) } return this.hide() }, select: function () { var val = this.$menu.find(".active").data("value"); if (this.$element.data("active", val), this.autoSelect || val) { var newVal = this.updater(val); newVal || (newVal = ""), this.$element.val(this.displayText(newVal) || newVal).text(this.displayText(newVal) || newVal).change(), this.afterSelect(newVal), this.followLinkOnSelect && this.itemLink(val) ? (document.location = this.itemLink(val), this.afterSelect(newVal)) : this.followLinkOnSelect && !this.itemLink(val) ? this.after
9EmptySelect(newVal) : this.afterSelect(newVal) } else this.afterEmptySelect(newVal); return this.hide() }, updater: function (item) { return item }, setSource: function (source) { this.source = source }, show: function () { var element, pos = $.extend({}, this.$element.position(), { height: this.$element[0].offsetHeight }), scrollHeight = "function" == typeof this.options.scrollHeight ? this.options.scrollHeight.call() : this.options.scrollHeight; if (this.shown ? element = this.$menu : this.$appendTo ? (element = this.$menu.appendTo(this.$appendTo), this.hasSameParent = this.$appendTo.is(this.$element.parent())) : (element = this.$menu.insertAfter(this.$element), this.hasSameParent = !0), !this.hasSameParent) { element.css("position", "fixed"); var offset = this.$element.offset(); pos.top = offset.top, pos.left = offset.left } var newTop = $(element).parent().hasClass("dropup") ? "auto" : pos.top + pos.height + scrollHeight, newLeft = $(element).hasClass("dropdown-menu-right") ? "auto" : pos.left; return element.css({ top: newTop, left: newLeft }).show(), !0 === this.options.fitToElement && element.css("width", this.$element.outerWidth() + "px"), this.shown = !0, this }, hide: function () { return this.$menu.hide(), this.shown = !1, this }, lookup: function (query) { if (this.query = void 0 !== query && null !== query ? query : this.$element.val(), this.query.length < this.options.minLength && !this.options.showHintOnFocus) return this.shown ? this.hide() : this; var worker = $.proxy(function () { $.isFunction(this.source) && 3 === this.source.length ? this.source(this.query, $.proxy(this.process, this), $.proxy(this.process, this)) : $.isFunction(this.source) ? this.source(this.query, $.proxy(this.process, this)) : this.source && this.process(this.source) }, this); clearTimeout(this.lookupWorker), this.lookupWorker = setTimeout(worker, this.delay) }, process: function (items) { var that = this; return items = $.grep(items, function (item) { return that.matcher(item) }), (items = this.sorter(items)).length || this.options.addItem ? (items.length > 0 ? this.$element.data("active", items[0]) : this.$element.data("active", null), "all" != this.options.items && (items = items.slice(0, this.options.items)), this.options.addItem && items.push(this.options.addItem), this.render(items).show()) : this.shown ? this.hide() : this }, matcher: function (item) { return ~this.displayText(item).toLowerCase().indexOf(this.query.toLowerCase()) }, sorter: function (items) { for (var item, beginswith = [], caseSensitive = [], caseInsensitive = []; item = items.shift();) { var it = this.displayText(item); it.toLowerCase().indexOf(this.query.toLowerCase()) ? ~it.indexOf(this.query) ? caseSensitive.push(item) : caseInsensitive.push(item) : beginswith.push(item) } return beginswith.concat(caseSensitive, caseInsensitive) }, highlighter: function (item) { var text = this.query; if ("" === text) return item; var i, matches = item.match(/(>)([^<]*)(<)/g), first = [], second = []; if (matches && matches.length) for (i = 0; i < matches.length; ++i)matches[i].length > 2 && first.push(matches[i]); else (first = []).push(item); text = text.replace(/[\(\)\/\.\*\+\?\[\]]/g, function (mat) { return "\\" + mat }); var m, reg = new RegExp(text, "g"); for (i = 0; i < first.length; ++i)(m = first[i].match(reg)) && m.length > 0 && second.push(first[i]); for (i = 0; i < second.length; ++i)item = item.replace(second[i], second[i].replace(reg, "<strong>$&</strong>")); return item }, render: function (items) { var that = this, self = this, activeFound = !1, data = [], _category = that.options.separator; return $.each(items, function (key, value) { key > 0 && value[_category] !== items[key - 1][_category] && data.push({ __type: "divider" }), !value[_category] || 0 !== key && value[_category] === items[key - 1][_category] || data.push({ __type: "category", name: value[_category] }), data.push(value) }), items = $(data).map(function (i, item) { if ("category" == (item.__type || !1)) return $(that.options.headerHtml || that.theme.headerHtml).text(item.name)[0]; if ("divider" == (item.__type || !1)) return $(that.options.headerDivider || that.theme.headerDivider)[0];
9 var text = self.displayText(item); return (i = $(that.options.item || that.theme.item).data("value", item)).find(that.options.itemContentSelector || that.theme.itemContentSelector).addBack(that.options.itemContentSelector || that.theme.itemContentSelector).html(that.highlighter(text, item)), this.followLinkOnSelect && i.find("a").attr("href", self.itemLink(item)), i.find("a").attr("title", self.itemTitle(item)), text == self.$element.val() && (i.addClass("active"), self.$element.data("active", item), activeFound = !0), i[0] }), this.autoSelect && !activeFound && (items.filter(":not(.dropdown-header)").first().addClass("active"), this.$element.data("active", items.first().data("value"))), this.$menu.html(items), this }, displayText: function (item) { return void 0 !== item && void 0 !== item.name ? item.name : item }, itemLink: function (item) { return null }, itemTitle: function (item) { return null }, next: function (event) { var next = this.$menu.find(".active").removeClass("active").next(); next.length || (next = $(this.$menu.find($(this.options.item || this.theme.item).prop("tagName"))[0])), next.addClass("active"); var newVal = this.updater(next.data("value")); this.$element.val(this.displayText(newVal) || newVal) }, prev: function (event) { var prev = this.$menu.find(".active").removeClass("active").prev(); prev.length || (prev = this.$menu.find($(this.options.item || this.theme.item).prop("tagName")).last()), prev.addClass("active"); var newVal = this.updater(prev.data("value")); this.$element.val(this.displayText(newVal) || newVal) }, listen: function () { this.$element.on("focus.bootstrap3Typeahead", $.proxy(this.focus, this)).on("blur.bootstrap3Typeahead", $.proxy(this.blur, this)).on("keypress.bootstrap3Typeahead", $.proxy(this.keypress, this)).on("propertychange.bootstrap3Typeahead input.bootstrap3Typeahead", $.proxy(this.input, this)).on("keyup.bootstrap3Typeahead", $.proxy(this.keyup, this)), this.eventSupported("keydown") && this.$element.on("keydown.bootstrap3Typeahead", $.proxy(this.keydown, this)); var itemTagName = $(this.options.item || this.theme.item).prop("tagName"); "ontouchstart" in document.documentElement ? this.$menu.on("touchstart", itemTagName, $.proxy(this.touchstart, this)).on("touchend", itemTagName, $.proxy(this.click, this)) : this.$menu.on("click", $.proxy(this.click, this)).on("mouseenter", itemTagName, $.proxy(this.mouseenter, this)).on("mouseleave", itemTagName, $.proxy(this.mouseleave, this)).on("mousedown", $.proxy(this.mousedown, this)) }, destroy: function () { this.$element.data("typeahead", null), this.$element.data("active", null), this.$element.unbind("focus.bootstrap3Typeahead").unbind("blur.bootstrap3Typeahead").unbind("keypress.bootstrap3Typeahead").unbind("propertychange.bootstrap3Typeahead input.bootstrap3Typeahead").unbind("keyup.bootstrap3Typeahead"), this.eventSupported("keydown") && this.$element.unbind("keydown.bootstrap3-typeahead"), this.$menu.remove(), this.destroyed = !0 }, eventSupported: function (eventName) { var isSupported = eventName in this.$element; return isSupported || (this.$element.setAttribute(eventName, "return;"), isSupported = "function" == typeof this.$element[eventName]), isSupported }, move: function (e) { if (this.shown) switch (e.keyCode) { case 9: case 13: case 27: e.preventDefault(); break; case 38: if (e.shiftKey) return; e.preventDefault(), this.prev(); break; case 40: if (e.shiftKey) return; e.preventDefault(), this.next() } }, keydown: function (e) { 17 !== e.keyCode && (this.keyPressed = !0, this.suppressKeyPressRepeat = ~$.inArray(e.keyCode, [40, 38, 9, 13, 27]), this.shown || 40 != e.keyCode ? this.move(e) : this.lookup()) }, keypress: function (e) { this.suppressKeyPressRepeat || this.move(e) }, input: function (e) { var currentValue = this.$element.val() || this.$element.text(); this.value !== currentValue && (this.value = currentValue, this.lookup()) }, keyup: function (e) { if (!this.destroyed) switch (e.keyCode) { case 40: case 38: case 16: case 17: case 18: break; case 9: if (!this.shown || this.showHintOnFocus && !this.keyPressed) return; this.select(); break; case 13: if (!this.shown) return; this.select(); break; case 27: if (!this.shown) return; this.hide() } }, focus: function (e) { this.focused || (this.focused = !0, this.keyPressed = !1, this.options.showHintOnFocus && !0 !== this.skipShowHintOnFocus && ("all" === this.options.showHintOnFocus ? this.lookup("") : this.lookup())), this.skipShowHintOnFocus && (this.skipShowHintOnFocus = !1) }, blur: function (e) { this.mousedover || this.mouseddown || !this.shown ? this.mouseddown && (this.skipShowHintOnFocus = !0, this.$element.focus(), this.mouseddown = !1) : (this.select(), this.hide(), this.focused = !1, this.keyPressed = !1) }, click: function (e) { e.preventDefault(), this.skipShowHintOnFocus = !0, this.select(), this.$element.focus(), this.hide() }, mouseenter: function (e) { this.mousedover = !0, this.$menu.find(".active").removeClass("active"), $(e.currentTarget).addClass("active") }, mouseleave: function (e) { this.mousedover = !1, !this.focused && this.shown && this.hide() }, mousedown: function (e) { this.mouseddown = !0, this.$menu.one("mouseup", function (e) { this.mouseddown = !1 }.bind(this)) }, touchstart: function (e) { e.preventDefault(), this.$menu.find(".active").removeClass("active"), $(e.currentTarget).addClass("active") }, touchend: function (e) { e.preventDefault(), this.select(), this.$element.focus() } }; var old = $.fn.typeahead; $.fn.typeahead = function (option) { var arg = arguments; return "string" == typeof option && "getActive" == option ? this.data("active") : this.each(function () { var $this = $(this), data = $this.data("typeahead"), options = "object" == typeof option && option; data || $this.data("typeahead", data = new Typeahead(this, options)), "string" == typeof option && data[option] && (arg.length > 1 ? data[option].apply(data, Array.prototype.slice.call(arg, 1)) : data[option]()) }) }, Typeahead.defaults = { source: [], items: 8, minLength: 1, scrollHeight: 0, autoSelect: !0, afterSelect: $.noop, afterEmptySelect: $.noop, addItem: !1, followLinkOnSelect: !1, delay: 0, separator: "category", theme: "bootstrap3", themes: { bootstrap3: { menu: '<ul class="typeahead dropdown-menu" role="listbox"></ul>', item: '<li><a class="dropdown-item" href="#" role="option"></a></li>', itemContentSelector: "a", headerHtml: '<li class="dropdown-header"></li>', headerDivider: '<li class="divider" role="separator"></li>' }, bootstrap4: { menu: '<div class="typeahead dropdown-menu" role="listbox"></div>', item: '<button class="dropdown-item" role="option"></button>', itemContentSelector: ".dropdown-item", headerHtml: '<h6 class="dropdown-header"></h6>', headerDivider: '<div class="dropdown-divider"></div>' } } }, $.fn.typeahead.Constructor = Typeahead, $.fn.typeahead.noConflict = function () { return $.fn.typeahead = old, this }
9, $(document).on("focus.typeahead.data-api", '[data-provide="typeahead"]', function (e) { var $this = $(this); $this.data("typeahead") || $this.typeahead($this.data()) }) });
10/*! typeahead  */
11
12
13
14/*! lazysizes - v5.2.0-beta1 */
15!function (a, b) { var c = b(a, a.document); a.lazySizes = c, "object" == typeof module && module.exports && (module.exports = c) }("undefined" != typeof window ? window : {}, function (a, b) { "use strict"; var c, d; if (function () { var b, c = { lazyClass: "lazyload", loadedClass: "lazyloaded", loadingClass: "lazyloading", preloadClass: "lazypreload", errorClass: "lazyerror", autosizesClass: "lazyautosizes", srcAttr: "data-src", srcsetAttr: "data-srcset", sizesAttr: "data-sizes", minSize: 40, customMedia: {}, init: !0, expFactor: 1.5, hFac: .8, loadMode: 2, loadHidden: !0, ricTimeout: 0, throttleDelay: 125 }; d = a.lazySizesConfig || a.lazysizesConfig || {}; for (b in c) b in d || (d[b] = c[b]) }(), !b || !b.getElementsByClassName) return { init: function () { }, cfg: d, noSupport: !0 }; var e = b.documentElement, f = a.Date, g = a.HTMLPictureElement, h = "addEventListener", i = "getAttribute", j = a[h], k = a.setTimeout, l = a.requestAnimationFrame || k, m = a.requestIdleCallback, n = /^picture$/i, o = ["load", "error", "lazyincluded", "_lazyloaded"], p = {}, q = Array.prototype.forEach, r = function (a, b) { return p[b] || (p[b] = new RegExp("(\\s|^)" + b + "(\\s|$)")), p[b].test(a[i]("class") || "") && p[b] }, s = function (a, b) { r(a, b) || a.setAttribute("class", (a[i]("class") || "").trim() + " " + b) }, t = function (a, b) { var c; (c = r(a, b)) && a.setAttribute("class", (a[i]("class") || "").replace(c, " ")) }, u = function (a, b, c) { var d = c ? h : "removeEventListener"; c && u(a, b), o.forEach(function (c) { a[d](c, b) }) }, v = function (a, d, e, f, g) { var h = b.createEvent("Event"); return e || (e = {}), e.instance = c, h.initEvent(d, !f, !g), h.detail = e, a.dispatchEvent(h), h }, w = function (b, c) { var e; !g && (e = a.picturefill || d.pf) ? (c && c.src && !b[i]("srcset") && b.setAttribute("srcset", c.src), e({ reevaluate: !0, elements: [b] })) : c && c.src && (b.src = c.src) }, x = function (a, b) { return (getComputedStyle(a, null) || {})[b] }, y = function (a, b, c) { for (c = c || a.offsetWidth; c < d.minSize && b && !a._lazysizesWidth;)c = b.offsetWidth, b = b.parentNode; return c }, z = function () { var a, c, d = [], e = [], f = d, g = function () { var b = f; for (f = d.length ? e : d, a = !0, c = !1; b.length;)b.shift()(); a = !1 }, h = function (d, e) { a && !e ? d.apply(this, arguments) : (f.push(d), c || (c = !0, (b.hidden ? k : l)(g))) }; return h._lsFlush = g, h }(), A = function (a, b) { return b ? function () { z(a) } : function () { var b = this, c = arguments; z(function () { a.apply(b, c) }) } }, B = function (a) { var b, c = 0, e = d.throttleDelay, g = d.ricTimeout, h = function () { b = !1, c = f.now(), a() }, i = m && g > 49 ? function () { m(h, { timeout: g }), g !== d.ricTimeout && (g = d.ricTimeout) } : A(function () { k(h) }, !0); return function (a) { var d; (a = !0 === a) && (g = 33), b || (b = !0, d = e - (f.now() - c), d < 0 && (d = 0), a || d < 9 ? i() : k(i, d)) } }, C = function (a) { var b, c, d = 99, e = function () { b = null, a() }, g = function () { var a = f.now() - c; a < d ? k(g, d - a) : (m || e)(e) }; return function () { c = f.now(), b || (b = k(g, d)) } }, D = function () { var g, m, o, p, y, D, F, G, H, I, J, K, L = /^img$/i, M = /^iframe$/i, N = "onscroll" in a && !/(gle|ing)bot/.test(navigator.userAgent), O = 0, P = 0, Q = 0, R = -1, S = function (a) { Q-- , (!a || Q < 0 || !a.target) && (Q = 0) }, T = function (a) { return null == K && (K = "hidden" == x(b.body, "visibility")), K || !("hidden" == x(a.parentNode, "visibility") && "hidden" == x(a, "visibility")) }, U = function (a, c) { var d, f = a, g = T(a); for (G -= c, J += c, H -= c, I += c; g && (f = f.offsetParent) && f != b.body && f != e;)(g = (x(f, "opacity") || 1) > 0) && "visible" != x(f, "overflow") && (d = f.getBoundingClientRect(), g = I > d.left && H < d.right && J > d.top - 1 && G < d.bottom + 1); return g }, V = function () { var a, f, h, j, k, l, n, o, q, r, s, t, u = c.elements; if ((p = d.loadMode) && Q < 8 && (a = u.length)) { for (f = 0, R++; f < a; f++)if (u[f] && !u[f]._lazyRace) if (!N || c.prematureUnveil && c.prematureUnveil(u[f])) ba(u[f]); else if ((o = u[f][i]("data-expand")) && (l = 1 * o) || (l = P), r || (r = !d.expand || d.expand < 1 ? e.clientHeight > 500 && e.clientWidth > 500 ? 500 : 370 : d.expand, c._defEx = r, s = r * d.expFactor, t = d.hFac, K = null, P < s && Q < 1 && R > 2 && p > 2 && !b.hidden ? (P = s, R = 0) : P = p > 1 && R > 1 && Q < 6 ? r : O), q !== l && (D = innerWidth + l * t, F = innerHe
15ight + l, n = -1 * l, q = l), h = u[f].getBoundingClientRect(), (J = h.bottom) >= n && (G = h.top) <= F && (I = h.right) >= n * t && (H = h.left) <= D && (J || I || H || G) && (d.loadHidden || T(u[f])) && (m && Q < 3 && !o && (p < 3 || R < 4) || U(u[f], l))) { if (ba(u[f]), k = !0, Q > 9) break } else !k && m && !j && Q < 4 && R < 4 && p > 2 && (g[0] || d.preloadAfterLoad) && (g[0] || !o && (J || I || H || G || "auto" != u[f][i](d.sizesAttr))) && (j = g[0] || u[f]); j && !k && ba(j) } }, W = B(V), X = function (a) { var b = a.target; if (b._lazyCache) return void delete b._lazyCache; S(a), s(b, d.loadedClass), t(b, d.loadingClass), u(b, Z), v(b, "lazyloaded") }, Y = A(X), Z = function (a) { Y({ target: a.target }) }, $ = function (a, b) { try { a.contentWindow.location.replace(b) } catch (c) { a.src = b } }, _ = function (a) { var b, c = a[i](d.srcsetAttr); (b = d.customMedia[a[i]("data-media") || a[i]("media")]) && a.setAttribute("media", b), c && a.setAttribute("srcset", c) }, aa = A(function (a, b, c, e, f) { var g, h, j, l, m, p; (m = v(a, "lazybeforeunveil", b)).defaultPrevented || (e && (c ? s(a, d.autosizesClass) : a.setAttribute("sizes", e)), h = a[i](d.srcsetAttr), g = a[i](d.srcAttr), f && (j = a.parentNode, l = j && n.test(j.nodeName || "")), p = b.firesLoad || "src" in a && (h || g || l), m = { target: a }, s(a, d.loadingClass), p && (clearTimeout(o), o = k(S, 2500), u(a, Z, !0)), l && q.call(j.getElementsByTagName("source"), _), h ? a.setAttribute("srcset", h) : g && !l && (M.test(a.nodeName) ? $(a, g) : a.src = g), f && (h || l) && w(a, { src: g })), a._lazyRace && delete a._lazyRace, t(a, d.lazyClass), z(function () { var b = a.complete && a.naturalWidth > 1; p && !b || (b && s(a, "ls-is-cached"), X(m), a._lazyCache = !0, k(function () { "_lazyCache" in a && delete a._lazyCache }, 9)), "lazy" == a.loading && Q-- }, !0) }), ba = function (a) { if (!a._lazyRace) { var b, c = L.test(a.nodeName), e = c && (a[i](d.sizesAttr) || a[i]("sizes")), f = "auto" == e; (!f && m || !c || !a[i]("src") && !a.srcset || a.complete || r(a, d.errorClass) || !r(a, d.lazyClass)) && (b = v(a, "lazyunveilread").detail, f && E.updateElem(a, !0, a.offsetWidth), a._lazyRace = !0, Q++ , aa(a, b, f, e, c)) } }, ca = C(function () { d.loadMode = 3, W() }), da = function () { 3 == d.loadMode && (d.loadMode = 2), ca() }, ea = function () { if (!m) { if (f.now() - y < 999) return void k(ea, 999); m = !0, d.loadMode = 3, W(), j("scroll", da, !0) } }; return { _: function () { y = f.now(), c.elements = b.getElementsByClassName(d.lazyClass), g = b.getElementsByClassName(d.lazyClass + " " + d.preloadClass), j("scroll", W, !0), j("resize", W, !0), j("pageshow", function (a) { if (a.persisted) { var c = b.querySelectorAll("." + d.loadingClass); c.length && c.forEach && l(function () { c.forEach(function (a) { a.complete && ba(a) }) }) } }), a.MutationObserver ? new MutationObserver(W).observe(e, { childList: !0, subtree: !0, attributes: !0 }) : (e[h]("DOMNodeInserted", W, !0), e[h]("DOMAttrModified", W, !0), setInterval(W, 999)), j("hashchange", W, !0), ["focus", "mouseover", "click", "load", "transitionend", "animationend"].forEach(function (a) { b[h](a, W, !0) }), /d$|^c/.test(b.readyState) ? ea() : (j("load", ea), b[h]("DOMContentLoaded", W), k(ea, 2e4)), c.elements.length ? (V(), z._lsFlush()) : W() }, checkElems: W, unveil: ba, _aLSL: da } }(), E = function () { var a, c = A(function (a, b, c, d) { var e, f, g; if (a._lazysizesWidth = d, d += "px", a.setAttribute("sizes", d), n.test(b.nodeName || "")) for (e = b.getElementsByTagName("source"), f = 0, g = e.length; f < g; f++)e[f].setAttribute("sizes", d); c.detail.dataAttr || w(a, c.detail) }), e = function (a, b, d) { var e, f = a.parentNode; f && (d = y(a, f, d), e = v(a, "lazybeforesizes", { width: d, dataAttr: !!b }), e.defaultPrevented || (d = e.detail.width) && d !== a._lazysizesWidth && c(a, f, e, d)) }, f = function () { var b, c = a.length; if (c) for (b = 0; b < c; b++)e(a[b]) }, g = C(f); return { _: function () { a = b.getElementsByClassName(d.autosizesClass), j("resize", g) }, checkElems: g, updateElem: e } }(), F = function () { !F.i && b.getElementsByClassName && (F.i = !0, E._(), D._()) }; return k(function () { d.init && F() }), c = { cfg: d, autoSizer: E, loader: D, init: F, uP: w, aC: s, rC: t, hC: r, fire: v, gW: y, rAF: z } });
16/*! lazysizes - v5.2.0-beta1 */
17
18
19
20/*! remove upcase */
21function RemoveTonous() { $(":uppercase:not(input[type!=submit], textarea, .no-remove-accents)").removeAcc(), $(":smallcaps:not(input[type!=submit], textarea, .no-remove-accents)").removeAcc(), $(".remove-accents, .remove-accents > *:not(input[type!=submit], textarea, .no-remove-accents)").removeAcc() } !function (e) { e.extend(e.expr[":"], { uppercase: function (t) { var c = e(t).css("text-transform"); return void 0 !== c && "uppercase" === c }, smallcaps: function (t) { var c = e(t).css("font-variant"); return void 0 !== c && "small-caps" === c } }), e.extend({ removeAcc: function (t) { function c(e) { return "string" != typeof e ? e : e.replace(/\u0386/g, "Α").replace(/\u0388/g, "Ε").replace(/\u0389/g, "Η").replace(/\u038A/g, "Ι").replace(/\u038C/g, "Ο").replace(/\u038E/g, "Υ").replace(/\u038F/g, "Ω").replace(/\u0390/g, "ϊ").replace(/\u03AC/g, "α").replace(/\u03AD/g, "ε").replace(/\u03AE/g, "η").replace(/\u03AF/g, "ι").replace(/\u03B0/g, "ϋ").replace(/\u03CC/g, "ο").replace(/\u03CD/g, "υ").replace(/\u03CE/g, "ω") } e(t).each(function () { this.value = c(this.value) }).contents().filter(function () { return 3 === this.nodeType }).each(function () { this.nodeValue = c(this.nodeValue) }) } }), e.fn.extend({ removeAcc: function () { return this.each(function () { e.removeAcc(this) }) } }) }(jQuery), jQuery(document).ready(function (e) { e(":uppercase:not(input[type!=submit], textarea, .no-remove-accents)").removeAcc(), e(":smallcaps:not(input[type!=submit], textarea, .no-remove-accents)").removeAcc(), e(".remove-accents, .remove-accents > *:not(input[type!=submit], textarea, .no-remove-accents)").removeAcc(), e(document).ajaxComplete(function (t, c, n) { e(":uppercase:not(input[type!=submit], textarea, .no-remove-accents)").removeAcc(), e(":smallcaps:not(input[type!=submit], textarea, .no-remove-accents)").removeAcc(), e(".remove-accents, .remove-accents > *:not(input[type!=submit], textarea, .no-remove-accents)").removeAcc() }) });
22/*! remove upcase */
23
24
25
26/*! scrollmagic */
27!function (e, t) { "function" == typeof define && define.amd ? define(t) : "object" == typeof exports ? module.exports = t() : e.ScrollMagic = t() }(this, function () { "use strict"; var e = function () { o.log(2, "(COMPATIBILITY NOTICE) -> As of ScrollMagic 2.0.0 you need to use 'new ScrollMagic.Controller()' to create a new controller instance. Use 'new ScrollMagic.Scene()' to instance a scene.") }; e.version = "2.0.3", window.addEventListener("mousewheel", function () { }); e.Controller = function (n) { var r, i, l = "ScrollMagic.Controller", a = "FORWARD", s = "REVERSE", c = "PAUSED", u = t.defaults, f = this, d = o.extend({}, u, n), g = [], p = !1, h = 0, v = c, m = !0, w = 0, y = !0, S = function () { d.refreshInterval > 0 && (i = window.setTimeout(x, d.refreshInterval)) }, E = function () { return d.vertical ? o.get.scrollTop(d.container) : o.get.scrollLeft(d.container) }, R = function () { return d.vertical ? o.get.height(d.container) : o.get.width(d.container) }, b = this._setScrollPos = function (e) { d.vertical ? m ? window.scrollTo(o.get.scrollLeft(), e) : d.container.scrollTop = e : m ? window.scrollTo(e, o.get.scrollTop()) : d.container.scrollLeft = e }, F = function () { if (y && p) { var e = o.type.Array(p) ? p : g.slice(0); p = !1; var t = h, n = (h = f.scrollPos()) - t; 0 !== n && (v = n > 0 ? a : s), v === s && e.reverse(), e.forEach(function (t, n) { I(3, "updating Scene " + (n + 1) + "/" + e.length + " (" + g.length + " total)"), t.update(!0) }), 0 === e.length && d.loglevel >= 3 && I(3, "updating 0 Scenes (nothing added to controller)") } }, T = function () { r = o.rAF(F) }, O = function (e) { I(3, "event fired causing an update:", e.type), "resize" == e.type && (w = R(), v = c), !0 !== p && (p = !0, T()) }, x = function () { if (!m && w != R()) { var e; try { e = new Event("resize", { bubbles: !1, cancelable: !1 }) } catch (t) { (e = document.createEvent("Event")).initEvent("resize", !1, !1) } d.container.dispatchEvent(e) } g.forEach(function (e, t) { e.refresh() }), S() }, I = this._log = function (e, t) { d.loglevel >= e && (Array.prototype.splice.call(arguments, 1, 0, "(" + l + ") ->"), o.log.apply(window, arguments)) }; this._options = d; var N = function (e) { if (e.length <= 1) return e; var t = e.slice(0); return t.sort(function (e, t) { return e.scrollOffset() > t.scrollOffset() ? 1 : -1 }), t }; return this.addScene = function (t) { if (o.type.Array(t)) t.forEach(function (e, t) { f.addScene(e) }); else if (t instanceof e.Scene) { if (t.controller() !== f) t.addTo(f); else if (g.indexOf(t) < 0) { for (var n in g.push(t), g = N(g), t.on("shift.controller_sort", function () { g = N(g) }), d.globalSceneOptions) t[n] && t[n].call(t, d.globalSceneOptions[n]); I(3, "adding Scene (now " + g.length + " total)") } } else I(1, "ERROR: invalid argument supplied for '.addScene()'"); return f }, this.removeScene = function (e) { if (o.type.Array(e)) e.forEach(function (e, t) { f.removeScene(e) }); else { var t = g.indexOf(e); t > -1 && (e.off("shift.controller_sort"), g.splice(t, 1), I(3, "removing Scene (now " + g.length + " left)"), e.remove()) } return f }, this.updateScene = function (t, n) { return o.type.Array(t) ? t.forEach(function (e, t) { f.updateScene(e, n) }) : n ? t.update(!0) : !0 !== p && t instanceof e.Scene && (-1 == (p = p || []).indexOf(t) && p.push(t), p = N(p), T()), f }, this.update = function (e) { return O({ type: "resize" }), e && F(), f }, this.scrollTo = function (t, n) { if (o.type.Number(t)) b.call(d.container, t, n); else if (t instanceof e.Scene) t.controller() === f ? f.scrollTo(t.scrollOffset(), n) : I(2, "scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.", t); else if (o.type.Function(t)) b = t; else { var r = o.get.elements(t)[0]; if (r) { for (; r.parentNode.hasAttribute("data-scrollmagic-pin-spacer");)r = r.parentNode; var i = d.vertical ? "top" : "left", l = o.get.offset(d.container), a = o.get.offset(r); m || (l[i] -= f.scrollPos()), f.scrollTo(a[i] - l[i], n) }
27 else I(2, "scrollTo(): The supplied argument is invalid. Scroll cancelled.", t) } return f }, this.scrollPos = function (e) { return arguments.length ? (o.type.Function(e) ? E = e : I(2, "Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'."), f) : E.call(f) }, this.info = function (e) { var t = { size: w, vertical: d.vertical, scrollPos: h, scrollDirection: v, container: d.container, isDocument: m }; return arguments.length ? void 0 !== t[e] ? t[e] : void I(1, 'ERROR: option "' + e + '" is not available') : t }, this.loglevel = function (e) { return arguments.length ? (d.loglevel != e && (d.loglevel = e), f) : d.loglevel }, this.enabled = function (e) { return arguments.length ? (y != e && (y = !!e, f.updateScene(g, !0)), f) : y }, this.destroy = function (e) { window.clearTimeout(i); for (var t = g.length; t--;)g[t].destroy(e); return d.container.removeEventListener("resize", O), d.container.removeEventListener("scroll", O), o.cAF(r), I(3, "destroyed " + l + " (reset: " + (e ? "true" : "false") + ")"), null }, function () { for (var t in d) u.hasOwnProperty(t) || (I(2, 'WARNING: Unknown option "' + t + '"'), delete d[t]); if (d.container = o.get.elements(d.container)[0], !d.container) throw I(1, "ERROR creating object " + l + ": No valid scroll container supplied"), l + " init failed."; (m = d.container === window || d.container === document.body || !document.body.contains(d.container)) && (d.container = window), w = R(), d.container.addEventListener("resize", O), d.container.addEventListener("scroll", O), d.refreshInterval = parseInt(d.refreshInterval) || u.refreshInterval, S(), I(3, "added new " + l + " controller (v" + e.version + ")") }(), f }; var t = { defaults: { container: window, vertical: !0, globalSceneOptions: {}, loglevel: 2, refreshInterval: 100 } }; e.Controller.addOption = function (e, n) { t.defaults[e] = n }, e.Controller.extend = function (t) { var n = this; e.Controller = function () { return n.apply(this, arguments), this.$super = o.extend({}, this), t.apply(this, arguments) || this }, o.extend(e.Controller, n), e.Controller.prototype = n.prototype, e.Controller.prototype.constructor = e.Controller }, e.Scene = function (t) { var r, i, l = "ScrollMagic.Scene", a = n.defaults, s = this, c = o.extend({}, a, t), u = "BEFORE", f = 0, d = { start: 0, end: 0 }, g = 0, p = !0, h = this._log = function (e, t) { c.loglevel >= e && (Array.prototype.splice.call(arguments, 1, 0, "(" + l + ") ->"), o.log.apply(window, arguments)) }; this.addTo = function (t) { return t instanceof e.Controller ? i != t && (i && i.removeScene(s), i = t, E(), m(!0), w(!0), v(), i.info("container").addEventListener("resize", y), t.addScene(s), s.trigger("add", { controller: i }), h(3, "added " + l + " to controller"), s.update()) : h(1, "ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller"), s }, this.enabled = function (e) { return arguments.length ? (p != e && (p = !!e, s.update(!0)), s) : p }, this.remove = function () { if (i) { i.info("container").removeEventListener("resize", y); var e = i; i = void 0, e.removeScene(s), s.trigger("remove"), h(3, "removed " + l + " from controller") } return s }, this.destroy = function (e) { return s.trigger("destroy", { reset: e }), s.remove(), s.off("*.*"), h(3, "destroyed " + l + " (reset: " + (e ? "true" : "false") + ")"), null }, this.update = function (e) { if (i) if (e) if (i.enabled() && p) { var t, n = i.info("scrollPos"); t = c.duration > 0 ? (n - d.start) / (d.end - d.start) : n >= d.start ? 1 : 0, s.trigger("update", { startPos: d.start, endPos: d.end, scrollPos: n }), s.progress(t) } else F && "DURING" === u && x(!0); else i.updateScene(s, !1); return s }, this.refresh = function () { return m(), w(), s }, this.progress = function (e) { if (arguments.length) { var t = !1, n = u, o = i ? i.info("scrollDirection") : "PAUSED", r = c.reverse || e >= f; if (0 === c.duration ? (t = f != e, u = 0 === (f = e < 1 && r ? 0 : 1) ? "BEFORE" : "DURING") : e <= 0 && "BEFORE" !== u && r ? (f = 0, u = "BEFORE", t = !0) : e > 0 && e < 1 && r ? (f = e, u = "DURING", t = !0) : e >
27= 1 && "AFTER" !== u ? (f = 1, u = "AFTER", t = !0) : "DURING" !== u || r || x(), t) { var l = { progress: f, state: u, scrollDirection: o }, a = u != n, d = function (e) { s.trigger(e, l) }; a && "DURING" !== n && (d("enter"), d("BEFORE" === n ? "start" : "end")), d("progress"), a && "DURING" !== u && (d("BEFORE" === u ? "start" : "end"), d("leave")) } return s } return f }; var v = function () { d = { start: g + c.offset }, i && c.triggerElement && (d.start -= i.info("size") * c.triggerHook), d.end = d.start + c.duration }, m = function (e) { if (r) { R("duration", r.call(s)) && !e && (s.trigger("change", { what: "duration", newval: c.duration }), s.trigger("shift", { reason: "duration" })) } }, w = function (e) { var t = 0, n = c.triggerElement; if (i && n) { for (var r = i.info(), l = o.get.offset(r.container), a = r.vertical ? "top" : "left"; n.parentNode.hasAttribute("data-scrollmagic-pin-spacer");)n = n.parentNode; var u = o.get.offset(n); r.isDocument || (l[a] -= i.scrollPos()), t = u[a] - l[a] } var f = t != g; g = t, f && !e && s.trigger("shift", { reason: "triggerElementPosition" }) }, y = function (e) { c.triggerHook > 0 && s.trigger("shift", { reason: "containerResize" }) }, S = o.extend(n.validate, { duration: function (e) { if (o.type.String(e) && e.match(/^(\.|\d)*\d+%$/)) { var t = parseFloat(e) / 100; e = function () { return i ? i.info("size") * t : 0 } } if (o.type.Function(e)) { r = e; try { e = parseFloat(r()) } catch (t) { e = -1 } } if (e = parseFloat(e), !o.type.Number(e) || e < 0) throw r ? (r = void 0, ['Invalid return value of supplied function for option "duration":', e]) : ['Invalid value for option "duration":', e]; return e } }), E = function (e) { (e = arguments.length ? [e] : Object.keys(S)).forEach(function (e, t) { var n; if (S[e]) try { n = S[e](c[e]) } catch (t) { n = a[e]; var r = o.type.String(t) ? [t] : t; o.type.Array(r) ? (r[0] = "ERROR: " + r[0], r.unshift(1), h.apply(this, r)) : h(1, "ERROR: Problem executing validation callback for option '" + e + "':", t.message) } finally { c[e] = n } }) }, R = function (e, t) { var n = !1, o = c[e]; return c[e] != t && (c[e] = t, E(e), n = o != c[e]), n }, b = function (e) { s[e] || (s[e] = function (t) { return arguments.length ? ("duration" === e && (r = void 0), R(e, t) && (s.trigger("change", { what: e, newval: c[e] }), n.shifts.indexOf(e) > -1 && s.trigger("shift", { reason: e })), s) : c[e] }) }; this.controller = function () { return i }, this.state = function () { return u }, this.scrollOffset = function () { return d.start }, this.triggerPosition = function () { var e = c.offset; return i && (c.triggerElement ? e += g : e += i.info("size") * s.triggerHook()), e }; var F, T, O = {}; this.on = function (e, t) { return o.type.Function(t) ? (e = e.trim().split(" ")).forEach(function (e) { var n = e.split("."), o = n[0], r = n[1]; "*" != o && (O[o] || (O[o] = []), O[o].push({ namespace: r || "", callback: t })) }) : h(1, "ERROR when calling '.on()': Supplied callback for '" + e + "' is not a valid function!"), s }, this.off = function (e, t) { return e ? ((e = e.trim().split(" ")).forEach(function (e, n) { var o = e.split("."), r = o[0], i = o[1] || ""; ("*" === r ? Object.keys(O) : [r]).forEach(function (e) { for (var n = O[e] || [], o = n.length; o--;) { var r = n[o]; !r || i !== r.namespace && "*" !== i || t && t != r.callback || n.splice(o, 1) } n.length || delete O[e] }) }), s) : (h(1, "ERROR: Invalid event name supplied."), s) }, this.trigger = function (t, n) { if (t) { var o = t.trim().split("."), r = o[0], i = o[1], l = O[r]; h(3, "event fired:", r, n ? "->" : "", n || ""), l && l.forEach(function (t, o) { i && i !== t.namespace || t.callback.call(s, new e.Event(r, t.namespace, s, n)) }) } else h(1, "ERROR: Invalid event name supplied."); return s }, s.on("shift.internal", function (e) { var t = "duration" === e.reason; ("AFTER" === u && t || "DURING" === u && 0 === c.duration) && x(), t && I() }).on("progress.internal", function (e) { x() }).on("add.internal", function (e) { I() }).on("destroy.internal", function (e) { s.removePin(e.reset) }); var x = function (e) { if (F && i) { var t = i.info(); if (e || "DURING" !== u) { var n = { position: T.inFlow ? "relative" : "absolute", top: 0, left: 0 }, r = o.css(F, "position") != n.position; T.pushFollowers ? c.duration > 0 && ("AFTER" === u && 0 === parseFloat(o.css(T.spacer, "padding-top")) ? r = !0 : "BEFORE" === u && 0 === parseFloat(o.css(T.spacer, "padding-bottom")) && (r = !0)) : n[t.vertical ? "top" : "left"] = c.duration * f, o.css(F, n), r && I() } else { "fixed" != o.css(F, "position") && (o.css(F, { position: "fixed" }), I()); var l = o.get.offset(T.spacer, !0), a = c.reverse || 0 === c.duration ? t.scrollPos - d.start : Math.round(f * c.duration * 10) / 10; l[t.vertical ? "top" : "left"] += a, o.css(F, { top: l.top, left: l.left }) } } }, I = function () { if (F && i && T.inFlow) { var e = "DURING" === u, t = i.info("vertical"), n = T.spacer.children[0], r = o.isMarginCollapseType(o.css(T.spacer, "display")), l = {}; T.relSize.width || T.relSize.autoFullWidth ? e ? o.css(F, { width: o.get.width(T.spacer) }) : o.css(F, { width: "100%" }) : (l["min-width"] = o.get.width(t ? F : n, !0, !0), l.width = e ? l["min-width"] : "auto"), T.relSize.height ? e ? o.css(F, { height: o.get.height(T.spacer) - (T.pushFollowers ? c.duration : 0) }) : o.css(F, { height: "100%" }) : (l["min-height"] = o.get.height(t ? n : F, !0, !r), l.height = e ? l["min-height"] : "auto"), T.pushFollowers && (l["padding" + (t ? "Top" : "Left")] = c.duration * f, l["padding" + (t ? "Bottom" : "Right")] = c.duration * (1 - f)), o.css(T.spacer, l) } }, N = function () { i && F && "DURING" === u && !i.info("isDocument") && x() }, z = function () { i && F && "DURING" === u && ((T.relSize.width || T.relSize.autoFullWidth) && o.get.width(window) != o.get.width(T.spacer.parentNode) || T.relSize.height && o.get.height(window) != o.get.height(T.spacer.parentNode)) && I() }, C = function (e) { i && F && "DURING" === u && !i.info("isDocument") && (e.preventDefault(), i._setScrollPos(i.info("scrollPos") - ((e.wheelDelta || e[i.info("vertical") ? "wheelDeltaY" : "wheelDeltaX"]) / 3 || 30 * -e.detail))) }; this.setPin = function (e, t) { if (t = o.extend({}, { pushFollowers: !0, spacerClass: "scrollmagic-pin-spacer" }, t), !(e = o.get.elements(e)[0])) return h(1, "ERROR calling method 'setPin()': Invalid pin element supplied."), s; if ("fixed" === o.css(e, "position")) return h(1, "ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."), s; if (F) { if (F === e) return s; s.removePin() } var n = (F = e).parentNode.style.display, r = ["top", "left", "bottom", "right", "margin", "marginLeft", "marginRight", "marginTop", "marginBottom"]; F.parentNode.style.display = "none"; var i = "absolute" != o.css(F, "position"), l = o.css(F, r.concat(["display"])), a = o.css(F, ["width", "height"]); F.parentNode.style.display = n, !i && t.pushFollowers && (h(2, "WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled."), t.pushFollowers = !1), window.setTimeout(function () { F && 0 === c.duration && t.pushFollowers && h(2, "WARNING: pushFollowers =", !0, "has no effect, when scene duration is 0.") }, 0); var u = F.parentNode.insertBefore(document.createElement("div"), F), f = o.extend(l, { position: i ? "relative" : "absolute", boxSizing: "content-box", mozBoxSizing: "content-box", webkitBoxSizing: "content-box" }); if (i || o.extend(f, o.css(F, ["width", "height"])), o.css(u, f), u.setAttribute("data-scrollmagic-pin-spacer", ""), o.addClass(u, t.spacerClass), T = { spacer: u, relSize: { width: "%" === a.width.slice(-1), height: "%" === a.height.slice(-1), autoFullWidth: "auto" === a.width && i && o.isMarginCollapseType(l.display) }, pushFollowers: t.pushFollowers, inFlow: i }, !F.___origStyle) { F.___origStyle = {}; var d = F.style; r.concat(["width", "height", "position", "boxSizing", "mozBoxSizing", "webkitBoxSizing"]).forEac
27h(function (e) { F.___origStyle[e] = d[e] || "" }) } return T.relSize.width && o.css(u, { width: a.width }), T.relSize.height && o.css(u, { height: a.height }), u.appendChild(F), o.css(F, { position: i ? "relative" : "absolute", margin: "auto", top: "auto", left: "auto", bottom: "auto", right: "auto" }), (T.relSize.width || T.relSize.autoFullWidth) && o.css(F, { boxSizing: "border-box", mozBoxSizing: "border-box", webkitBoxSizing: "border-box" }), window.addEventListener("scroll", N), window.addEventListener("resize", N), window.addEventListener("resize", z), F.addEventListener("mousewheel", C), F.addEventListener("DOMMouseScroll", C), h(3, "added pin"), x(), s }, this.removePin = function (e) { if (F) { if ("DURING" === u && x(!0), e || !i) { var t = T.spacer.children[0]; if (t.hasAttribute("data-scrollmagic-pin-spacer")) { var n = T.spacer.style; margins = {}, ["margin", "marginLeft", "marginRight", "marginTop", "marginBottom"].forEach(function (e) { margins[e] = n[e] || "" }), o.css(t, margins) } T.spacer.parentNode.insertBefore(t, T.spacer), T.spacer.parentNode.removeChild(T.spacer), F.parentNode.hasAttribute("data-scrollmagic-pin-spacer") || (o.css(F, F.___origStyle), delete F.___origStyle) } window.removeEventListener("scroll", N), window.removeEventListener("resize", N), window.removeEventListener("resize", z), F.removeEventListener("mousewheel", C), F.removeEventListener("DOMMouseScroll", C), F = void 0, h(3, "removed pin (reset: " + (e ? "true" : "false") + ")") } return s }; var A, P = []; return s.on("destroy.internal", function (e) { s.removeClassToggle(e.reset) }), this.setClassToggle = function (e, t) { var n = o.get.elements(e); return 0 !== n.length && o.type.String(t) ? (P.length > 0 && s.removeClassToggle(), A = t, P = n, s.on("enter.internal_class leave.internal_class", function (e) { var t = "enter" === e.type ? o.addClass : o.removeClass; P.forEach(function (e, n) { t(e, A) }) }), s) : (h(1, "ERROR calling method 'setClassToggle()': Invalid " + (0 === n.length ? "element" : "classes") + " supplied."), s) }, this.removeClassToggle = function (e) { return e && P.forEach(function (e, t) { o.removeClass(e, A) }), s.off("start.internal_class end.internal_class"), A = void 0, P = [], s }, function () { for (var e in c) a.hasOwnProperty(e) || (h(2, 'WARNING: Unknown option "' + e + '"'), delete c[e]); for (var t in a) b(t); E(), s.on("change.internal", function (e) { "loglevel" !== e.what && "tweenChanges" !== e.what && ("triggerElement" === e.what ? w() : "reverse" === e.what && s.update()) }).on("shift.internal", function (e) { v(), s.update() }) }(), s }; var n = { defaults: { duration: 0, offset: 0, triggerElement: void 0, triggerHook: .5, reverse: !0, loglevel: 2 }, validate: { offset: function (e) { if (e = parseFloat(e), !o.type.Number(e)) throw ['Invalid value for option "offset":', e]; return e }, triggerElement: function (e) { if (e = e || void 0) { var t = o.get.elements(e)[0]; if (!t) throw ['Element defined in option "triggerElement" was not found:', e]; e = t } return e }, triggerHook: function (e) { var t = { onCenter: .5, onEnter: 1, onLeave: 0 }; if (o.type.Number(e)) e = Math.max(0, Math.min(parseFloat(e), 1)); else { if (!(e in t)) throw ['Invalid value for option "triggerHook": ', e]; e = t[e] } return e }, reverse: function (e) { return !!e }, loglevel: function (e) { if (e = parseInt(e), !o.type.Number(e) || e < 0 || e > 3) throw ['Invalid value for option "loglevel":', e]; return e } }, shifts: ["duration", "offset", "triggerHook"] }; e.Scene.addOption = function (t, o, r, i) { t in n.defaults ? e._util.log(1, "[static] ScrollMagic.Scene -> Cannot add Scene option '" + t + "', because it already exists.") : (n.defaults[t] = o, n.validate[t] = r, i && n.shifts.push(t)) }, e.Scene.extend = function (t) { var n = this; e.Scene = function () { return n.apply(this, arguments), this.$super = o.extend({}, this), t.apply(this, arguments) || this }, o.extend(e.Scene, n), e.Scene.prototype = n.prototype, e.Scene.prototype.constructor = e.Scene }, e.Event = function (e, t, n, o) { for (var r in o = o || {}) this[r] = o[r]; return this.type = e, this.target = this.currentTarget = n, this.namespace = t || "", this.timeStamp = this.timestamp = Date.now(), this }; var o = e._util = function (e) { var t, n = {}, o = function (e) { return parseFloat(e) || 0 }, r = function (t) { return t.currentStyle ? t.currentStyle : e.getComputedStyle(t) }, i = function (t, n, i, l) { if ((n = n === document ? e : n) === e) l = !1; else if (!p.DomElement(n)) return 0; t = t.charAt(0).toUpperCase() + t.substr(1).toLowerCase(); var a = (i ? n["offset" + t] || n["outer" + t] : n["client" + t] || n["inner" + t]) || 0; if (i && l) { var s = r(n); a += "Height" === t ? o(s.marginTop) + o(s.marginBottom) : o(s.marginLeft) + o(s.marginRight) } return a }, l = function (e) { return e.replace(/^[^a-z]+([a-z])/g, "$1").replace(/-([a-z])/g, function (e) { return e[1].toUpperCase() }) }; n.extend = function (e) { for (e = e || {}, t = 1; t < arguments.length; t++)if (arguments[t]) for (var n in arguments[t]) arguments[t].hasOwnProperty(n) && (e[n] = arguments[t][n]); return e }, n.isMarginCollapseType = function (e) { return ["block", "flex", "list-item", "table", "-webkit-box"].indexOf(e) > -1 }; var a = 0, s = ["ms", "moz", "webkit", "o"], c = e.requestAnimationFrame, u = e.cancelAnimationFrame; for (t = 0; !c && t < s.length; ++t)c = e[s[t] + "RequestAnimationFrame"], u = e[s[t] + "CancelAnimationFrame"] || e[s[t] + "CancelRequestAnimationFrame"]; c || (c = function (t) { var n = (new Date).getTime(), o = Math.max(0, 16 - (n - a)), r = e.setTimeout(function () { t(n + o) }, o); return a = n + o, r }), u || (u = function (t) { e.clearTimeout(t) }), n.rAF = c.bind(e), n.cAF = u.bind(e); var f = ["error", "warn", "log"], d = e.console || {}; for (d.log = d.log || function () { }, t = 0; t < f.length; t++) { var g = f[t]; d[g] || (d[g] = d.log) } n.log = function (e) { (e > f.length || e <= 0) && (e = f.length); var t = new Date, n = ("0" + t.getHours()).slice(-2) + ":" + ("0" + t.getMinutes()).slice(-2) + ":" + ("0" + t.getSeconds()).slice(-2) + ":" + ("00" + t.getMilliseconds()).slice(-3), o = f[e - 1], r = Array.prototype.splice.call(arguments, 1), i = Function.prototype.bind.call(d[o], d); r.unshift(n), i.apply(d, r) }; var p = n.type = function (e) { return Object.prototype.toString.call(e).replace(/^\[object (.+)\]$/, "$1").toLowerCase() }; p.String = function (e) { return "string" === p(e) }, p.Function = function (e) { return "function" === p(e) }, p.Array = function (e) { return Array.isArray(e) }, p.Number = function (e) { return !p.Array(e) && e - parseFloat(e) + 1 >= 0 }, p.DomElement = function (e) { return "object" == typeof HTMLElement ? e instanceof HTMLElement : e && "object" == typeof e && null !== e && 1 === e.nodeType && "string" == typeof e.nodeName };
27 var h = n.get = {}; return h.elements = function (t) { var n = []; if (p.String(t)) try { t = document.querySelectorAll(t) } catch (e) { return n } if ("nodelist" === p(t) || p.Array(t)) for (var o = 0, r = n.length = t.length; o < r; o++) { var i = t[o]; n[o] = p.DomElement(i) ? i : h.elements(i) } else (p.DomElement(t) || t === document || t === e) && (n = [t]); return n }, h.scrollTop = function (t) { return t && "number" == typeof t.scrollTop ? t.scrollTop : e.pageYOffset || 0 }, h.scrollLeft = function (t) { return t && "number" == typeof t.scrollLeft ? t.scrollLeft : e.pageXOffset || 0 }, h.width = function (e, t, n) { return i("width", e, t, n) }, h.height = function (e, t, n) { return i("height", e, t, n) }, h.offset = function (e, t) { var n = { top: 0, left: 0 }; if (e && e.getBoundingClientRect) { var o = e.getBoundingClientRect(); n.top = o.top, n.left = o.left, t || (n.top += h.scrollTop(), n.left += h.scrollLeft()) } return n }, n.addClass = function (e, t) { t && (e.classList ? e.classList.add(t) : e.className += " " + t) }, n.removeClass = function (e, t) { t && (e.classList ? e.classList.remove(t) : e.className = e.className.replace(new RegExp("(^|\\b)" + t.split(" ").join("|") + "(\\b|$)", "gi"), " ")) }, n.css = function (e, t) { if (p.String(t)) return r(e)[l(t)]; if (p.Array(t)) { var n = {}, o = r(e); return t.forEach(function (e, t) { n[e] = o[l(e)] }), n } for (var i in t) { var a = t[i]; a == parseFloat(a) && (a += "px"), e.style[l(i)] = a } }, n }(window || {}); return e.Scene.prototype.addIndicators = function () { return e._util.log(1, "(ScrollMagic.Scene) -> ERROR calling addIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"), this }, e.Scene.prototype.removeIndicators = function () { return e._util.log(1, "(ScrollMagic.Scene) -> ERROR calling removeIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"), this }, e.Scene.prototype.setTween = function () { return e._util.log(1, "(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"), this }, e.Scene.prototype.removeTween = function () { return e._util.log(1, "(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"), this }, e.Scene.prototype.setVelocity = function () { return e._util.log(1, "(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"), this }, e.Scene.prototype.removeVelocity = function () { return e._util.log(1, "(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"), this }, e });
28/*! scrollmagic */
29
30
31/*! tweenmax */
32var _gsScope = "undefined" != typeof module && module.exports && "undefined" != typeof global ? global : this || window; (_gsScope._gsQueue || (_gsScope._gsQueue = [])).push(function () { "use strict"; var t, e, i, r, n, s, a, o, l, h, _, u, f, c, p, m; _gsScope._gsDefine("TweenMax", ["core.Animation", "core.SimpleTimeline", "TweenLite"], function (t, e, i) { var r = function (t) { var e, i = [], r = t.length; for (e = 0; e !== r; i.push(t[e++])); return i }, n = function (t, e, i) { var r, n, s = t.cycle; for (r in s) n = s[r], t[r] = "function" == typeof n ? n(i, e[i], e) : n[i % n.length]; delete t.cycle }, s = function (t) { if ("function" == typeof t) return t; var e = "object" == typeof t ? t : { each: t }, i = e.ease, r = e.from || 0, n = e.base || 0, s = {}, a = isNaN(r), o = e.axis, l = { center: .5, end: 1 }[r] || 0; return function (t, h, _) { var u, f, c, p, m, d, g, y, v, T = (_ || e).length, x = s[T]; if (!x) { if (!(v = "auto" === e.grid ? 0 : (e.grid || [1 / 0])[0])) { for (g = -1 / 0; g < (g = _[v++].getBoundingClientRect().left) && T > v;); v-- } for (x = s[T] = [], u = a ? Math.min(v, T) * l - .5 : r % v, f = a ? T * l / v - .5 : r / v | 0, g = 0, y = 1 / 0, d = 0; T > d;
vendor: 5,419 bytes, line 32
32 d++)c = d % v - u, p = f - (d / v | 0), x[d] = m = o ? Math.abs("y" === o ? p : c) : Math.sqrt(c * c + p * p), m > g && (g = m), y > m && (y = m); x.max = g - y, x.min = y, x.v = T = e.amount || e.each * (v > T ? T : o ? "y" === o ? T / v : v : Math.max(v, T / v)) || 0, x.b = 0 > T ? n - T : n } return T = (x[t] - x.min) / x.max, x.b + (i ? i.getRatio(T) : T) * x.v } }, a = function (t, e, r) { i.call(this, t, e, r), this._cycle = 0, this._yoyo = !0 === this.vars.yoyo || !!this.vars.yoyoEase, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._repeat && this._uncache(!0), this.render = a.prototype.render }, o = 1e-8, l = i._internals, h = l.isSelector, _ = l.isArray, u = a.prototype = i.to({}, .1, {}), f = []; a.version = "2.1.2", u.constructor = a, u.kill()._gc = !1, a.killTweensOf = a.killDelayedCallsTo = i.killTweensOf, a.getTweensOf = i.getTweensOf, a.lagSmoothing = i.lagSmoothing, a.ticker = i.ticker, a.render = i.render, a.distribute = s, u.invalidate = function () { return this._yoyo = !0 === this.vars.yoyo || !!this.vars.yoyoEase, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._yoyoEase = null, this._uncache(!0), i.prototype.invalidate.call(this) }, u.updateTo = function (t, e) { var r, n = this, s = n.ratio, a = n.vars.immediateRender || t.immediateRender; for (r in e && n._startTime < n._timeline._time && (n._startTime = n._timeline._time, n._uncache(!1), n._gc ? n._enabled(!0, !1) : n._timeline.insert(n, n._startTime - n._delay)), t) n.vars[r] = t[r]; if (n._initted || a) if (e) n._initted = !1, a && n.render(0, !0, !0); else if (n._gc && n._enabled(!0, !1), n._notifyPluginsOfEnabled && n._firstPT && i._onPluginEvent("_onDisable", n), n._time / n._duration > .998) { var o = n._totalTime; n.render(0, !0, !1), n._initted = !1, n.render(o, !0, !1) } else if (n._initted = !1, n._init(), n._time > 0 || a) for (var l, h = 1 / (1 - s), _ = n._firstPT; _;)l = _.s + _.c, _.c *= h, _.s = l - _.c, _ = _._next; return n }, u.render = function (t, e, r) { this._initted || 0 === this._duration && this.vars.repeat && this.invalidate(); var n, s, a, h, _, u, f, c, p, m = this, d = m._dirty ? m.totalDuration() : m._totalDuration, g = m._time, y = m._totalTime, v = m._cycle, T = m._duration, x = m._rawPrevTime; if (t >= d - o && t >= 0 ? (m._totalTime = d, m._cycle = m._repeat, m._yoyo && 0 != (1 & m._cycle) ? (m._time = 0, m.ratio = m._ease._calcEnd ? m._ease.getRatio(0) : 0) : (m._time = T, m.ratio = m._ease._calcEnd ? m._ease.getRatio(1) : 1), m._reversed || (n = !0, s = "onComplete", r = r || m._timeline.autoRemoveChildren), 0 === T && (m._initted || !m.vars.lazy || r) && (m._startTime === m._timeline._duration && (t = 0), (0 > x || 0 >= t && t >= -o || x === o && "isPause" !== m.data) && x !== t && (r = !0, x > o && (s = "onReverseComplete")), m._rawPrevTime = c = !e || t || x === t ? t : o)) : o > t ? (m._totalTime = m._time = m._cycle = 0, m.ratio = m._ease._calcEnd ? m._ease.getRatio(0) : 0, (0 !== y || 0 === T && x > 0) && (s = "onReverseComplete", n = m._reversed), t > -o ? t = 0 : 0 > t && (m._active = !1, 0 === T && (m._initted || !m.vars.lazy || r) && (x >= 0 && (r = !0), m._rawPrevTime = c = !e || t || x === t ? t : o)), m._initted || (r = !0)) : (m._totalTime = m._time = t, 0 !== m._repeat && (h = T + m._repeatDelay, m._cycle = m._totalTime / h >> 0, 0 !== m._cycle && m._cycle === m._totalTime / h && t >= y && m._cycle--, m._time = m._totalTime - m._cycle * h, m._yoyo && 0 != (1 & m._cycle) && (m._time = T - m._time, (p = m._yoyoEase || m.vars.yoyoEase) && (m._yoyoEase || (!0 !== p || m._initted ? m._yoyoEase = p = !0 === p ? m._ease : p instanceof Ease ? p : Ease.map[p] : (p = m.vars.ease, m._yoyoEase = p = p ? p instanceof Ease ? p : "function" == typeof p ? new Ease(p, m.vars.easeParams) : Ease.map[p] || i.defaultEase : i.defaultEase)), m.ratio = p ? 1 - p.getRatio((T - m._time) / T) : 0)), m._time > T ? m._time = T : m._time < 0 && (m._time = 0)), m._easeType && !p ? (_ = m._time / T, (1 === (u = m._easeType) || 3 === u && _ >= .5) && (_ = 1 - _), 3 === u && (_ *= 2), 1 === (f = m._easePower) ? _ *= _ : 2 === f ? _ *= _ * _ : 3 === f ? _ *= _ * _ * _ : 4 === f && (_ *= _ * _ * _ * _), m.ratio = 1 === u ? 1 - _ : 2 === u ? _ : m._time / T < .5 ? _ / 2 : 1 - _ / 2) : p || (m.ratio = m._ease.getRatio(m._time / T))), g !== m._time || r || v !== m._cycle) { if (!m._initted) { if (m._init(), !m._initted || m._gc) return; if (!r && m._firstPT && (!1 !== m.vars.lazy && m._duration || m.vars.lazy && !m._duration)) return m._time = g, m._totalTime = y, m._rawPrevTime = x, m._cycle = v, l.lazyTweens.push(m), void (m._lazy = [t, e]); !m._time || n || p ? n && this._ease._calcEnd && !p && (m.ratio = m._ease.getRatio(0 === m._time ? 0 : 1)) : m.ratio = m._ease.getRatio(m._time / T) } for (!1 !== m._lazy && (m._lazy = !1), m._active || !m._paused && m._time !== g && t >= 0 && (m._active = !0), 0 === y && (2 === m._initted && t > 0 && m._init(), m._startAt && (t >= 0 ? m._startAt.render(t, !0, r) : s || (s = "_dummyGS")), m.vars.onStart && (0 !== m._totalTime || 0 === T) && (e || m._callback("onStart"))), a = m._firstPT; a;)a.f ? a.t[a.p](a.c * m.ratio + a.s) : a.t[a.p] = a.c * m.ratio + a.s, a = a._next; m._onUpdate && (0 > t && m._startAt && m._startTime && m._startAt.render(t, !0, r), e || (m._totalTime !== y || s) && m._callback("onUp
32date")), m._cycle !== v && (e || m._gc || m.vars.onRepeat && m._callback("onRepeat")), s && (!m._gc || r) && (0 > t && m._startAt && !m._onUpdate && m._startTime && m._startAt.render(t, !0, r), n && (m._timeline.autoRemoveChildren && m._enabled(!1, !1), m._active = !1), !e && m.vars[s] && m._callback(s), 0 === T && m._rawPrevTime === o && c !== o && (m._rawPrevTime = 0)) } else y !== m._totalTime && m._onUpdate && (e || m._callback("onUpdate")) }, a.to = function (t, e, i) { return new a(t, e, i) }, a.from = function (t, e, i) { return i.runBackwards = !0, i.immediateRender = 0 != i.immediateRender, new a(t, e, i) }, a.fromTo = function (t, e, i, r) { return r.startAt = i, r.immediateRender = 0 != r.immediateRender && 0 != i.immediateRender, new a(t, e, r) }, a.staggerTo = a.allTo = function (t, e, o, l, u, c, p) { var m, d, g, y, v = [], T = s(o.stagger || l), x = o.cycle, b = (o.startAt || f).cycle; for (_(t) || ("string" == typeof t && (t = i.selector(t) || t), h(t) && (t = r(t))), m = (t = t || []).length - 1, g = 0; m >= g; g++) { for (y in d = {}, o) d[y] = o[y]; if (x && (n(d, t, g), null != d.duration && (e = d.duration, delete d.duration)), b) { for (y in b = d.startAt = {}, o.startAt) b[y] = o.startAt[y]; n(d.startAt, t, g) } d.delay = T(g, t[g], t) + (d.delay || 0), g === m && u && (d.onComplete = function () { o.onComplete && o.onComplete.apply(o.onCompleteScope || this, arguments), u.apply(p || o.callbackScope || this, c || f) }), v[g] = new a(t[g], e, d) } return v }, a.staggerFrom = a.allFrom = function (t, e, i, r, n, s, o) { return i.runBackwards = !0, i.immediateRender = 0 != i.immediateRender, a.staggerTo(t, e, i, r, n, s, o) }, a.staggerFromTo = a.allFromTo = function (t, e, i, r, n, s, o, l) { return r.startAt = i, r.immediateRender = 0 != r.immediateRender && 0 != i.immediateRender, a.staggerTo(t, e, r, n, s, o, l) }, a.delayedCall = function (t, e, i, r, n) { return new a(e, 0, { delay: t, onComplete: e, onCompleteParams: i, callbackScope: r, onReverseComplete: e, onReverseCompleteParams: i, immediateRender: !1, useFrames: n, overwrite: 0 }) }, a.set = function (t, e) { return new a(t, 0, e) }, a.isTweening = function (t) { return i.getTweensOf(t, !0).length > 0 }; var c = function (t, e) { for (var r = [], n = 0, s = t._first; s;)s instanceof i ? r[n++] = s : (e && (r[n++] = s), n = (r = r.concat(c(s, e))).length), s = s._next; return r }, p = a.getAllTweens = function (e) { return c(t._rootTimeline, e).concat(c(t._rootFramesTimeline, e)) }; a.killAll = function (t, i, r, n) { null == i && (i = !0), null == r && (r = !0); var s, a, o, l = p(0 != n), h = l.length, _ = i && r && n; for (o = 0; h > o; o++)a = l[o], (_ || a instanceof e || (s = a.target === a.vars.onComplete) && r || i && !s) && (t ? a.totalTime(a._reversed ? 0 : a.totalDuration()) : a._enabled(!1, !1)) }, a.killChildTweensOf = function (t, e) { if (null != t) { var n, s, o, u, f, c = l.tweenLookup; if ("string" == typeof t && (t = i.selector(t) || t), h(t) && (t = r(t)), _(t)) for (u = t.length; --u > -1;)a.killChildTweensOf(t[u], e); else { for (o in n = [], c) for (s = c[o].target.parentNode; s;)s === t && (n = n.concat(c[o].tweens)), s = s.parentNode; for (f = n.length, u = 0; f > u; u++)e && n[u].totalTime(n[u].totalDuration()), n[u]._enabled(!1, !1) } } }; var m = function (t, i, r, n) { i = !1 !== i, r = !1 !== r; for (var s, a, o = p(n = !1 !== n), l = i && r && n, h = o.length; --h > -1;)a = o[h], (l || a instanceof e || (s = a.target === a.vars.onComplete) && r || i && !s) && a.paused(t) }; return a.pauseAll = function (t, e, i) { m(!0, t, e, i) }, a.resumeAll = function (t, e, i) { m(!1, t, e, i) }, a.globalTimeScale = function (e) { var r = t._rootTimeline, n = i.ticker.time; return arguments.length ? (e = e || o, r._startTime = n - (n - r._startTime) * r._timeScale / e, r = t._rootFramesTimeline, n = i.ticker.frame, r._startTime = n - (n - r._startTime) * r._timeScale / e, r._timeScale = t._rootTimeline._timeScale = e, e) : r._timeScale }, u.progress = function (t, e) { return arguments.length ? this.totalTime(this.duration() * (this._yoyo && 0 != (1 & this._cycle) ? 1 - t : t) + this._cycle * (this._duration + this._repeatDelay), e) : this._time / this.duration() }, u.totalProgress = function (t, e) { return arguments.length ? this.totalTime(this.totalDuration() * t, e) : this._totalTime / this.totalDuration() }, u.time = function (t, e) { if (!arguments.length) return this._time; this._dirty && this.totalDuration(); var i = this._duration, r = this._cycle, n = r * (i + this._repeatDelay); return t > i && (t = i), this.totalTime(this._yoyo && 1 & r ? i - t + n : this._repeat ? t + n : t, e) }, u.duration = function (e) { return arguments.length ? t.prototype.duration.call(this, e) : this._duration }, u.totalDuration = function (t) { return arguments.length ? -1 === this._repeat ? this : this.duration((t - this._repeat * this._repeatDelay) / (this._repeat + 1)) : (this._dirty && (this._totalDuration = -1 === this._repeat ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat, this._dirty = !1), this._totalDuration) }, u.repeat = function (t) { return arguments.length ? (this._repeat = t, this._uncache(!0)) : this._repeat }, u.repeatDelay = function (t) { return arguments.length ? (this._repeatDelay = t, this._uncache(!0)) : this._repeatDelay }, u.yoyo = function (t) { return arguments.length ? (this._yoyo = t, this) : this._yoyo }, a }, !0), _gsScope._gsDefine("TimelineLite", ["core.Animation", "core.SimpleTimeline", "TweenLite"], function (t, e, i) { var r = function (t) { e.call(this, t); var i, r, n = this, s = n.vars; for (r in n._labels = {}, n.autoRemoveChildren = !!s.autoRemoveChildren, n.smoothChildTiming = !!s.smoothChildTiming, n._sortChildren = !0, n._onUpdate = s.onUpdate, s) i = s[r], l(i) && -1 !== i.join("").indexOf("{self}") && (s[r] = n._swapSelfInParams(i)); l(s.tweens) && n.add(s.tweens, 0, s.align, s.stagger) }, n = 1e-8, s = i._internals, a = r._internals = {}, o = s.isSelector, l = s.isArray, h = s.lazyTweens, _ = s.lazyRender, u = _gsScope._gsDefine.globals, f = function (t) { var e, i = {}; for (e in t) i[e] = t[e]; return i }, c = function (t, e, i) { var r, n, s = t.cycle; for (r in s) n = s[r], t[r] = "function" == typeof n ? n(i, e[i], e) : n[i % n.length]; delete t.cycle }, p = a.pauseCallback = function () { }, m = function (t, e, i, r) { var n = "immediateRender"; return n in e || (e[n] = !(i && !1 === i[n] || r)), e }, d = function (t) { if ("function" == typeof t) return t; var e = "object" == typeof t ? t : { each: t }, i = e.ease, r = e.from || 0, n = e.base || 0, s = {}, a = isNaN(r), o = e.axis, l = { center: .5, end: 1 }[r] || 0; return function (t, h, _) { var u, f, c, p, m, d, g, y, v, T = (_ || e).length, x = s[T]; if (!x) { if (!(v = "auto" === e.grid ? 0 : (e.grid || [1 / 0])[0])) { for (g = -1 / 0; g < (g = _[v++].getBoundingClientRect().left) && T > v;); v-- } for (x = s[T] = [], u = a ? Math.min(v, T) * l - .5 : r % v, f = a ? T * l / v - .5 : r / v | 0, g = 0, y = 1 / 0, d = 0; T > d;
vendor: 4,977 bytes, line 32
32 d++)c = d % v - u, p = f - (d / v | 0), x[d] = m = o ? Math.abs("y" === o ? p : c) : Math.sqrt(c * c + p * p), m > g && (g = m), y > m && (y = m); x.max = g - y, x.min = y, x.v = T = e.amount || e.each * (v > T ? T : o ? "y" === o ? T / v : v : Math.max(v, T / v)) || 0, x.b = 0 > T ? n - T : n } return T = (x[t] - x.min) / x.max, x.b + (i ? i.getRatio(T) : T) * x.v } }, g = r.prototype = new e; return r.version = "2.1.2", r.distribute = d, g.constructor = r, g.kill()._gc = g._forcingPlayhead = g._hasPause = !1, g.to = function (t, e, r, n) { var s = r.repeat && u.TweenMax || i; return e ? this.add(new s(t, e, r), n) : this.set(t, r, n) }, g.from = function (t, e, r, n) { return this.add((r.repeat && u.TweenMax || i).from(t, e, m(0, r)), n) }, g.fromTo = function (t, e, r, n, s) { var a = n.repeat && u.TweenMax || i; return n = m(0, n, r), e ? this.add(a.fromTo(t, e, r, n), s) : this.set(t, n, s) }, g.staggerTo = function (t, e, n, s, a, l, h, _) { var u, p, m = new r({ onComplete: l, onCompleteParams: h, callbackScope: _, smoothChildTiming: this.smoothChildTiming }), g = d(n.stagger || s), y = n.startAt, v = n.cycle; for ("string" == typeof t && (t = i.selector(t) || t), o(t = t || []) && (t = function (t) { var e, i = [], r = t.length; for (e = 0; e !== r; i.push(t[e++])); return i }(t)), p = 0; p < t.length; p++)u = f(n), y && (u.startAt = f(y), y.cycle && c(u.startAt, t, p)), v && (c(u, t, p), null != u.duration && (e = u.duration, delete u.duration)), m.to(t[p], e, u, g(p, t[p], t)); return this.add(m, a) }, g.staggerFrom = function (t, e, i, r, n, s, a, o) { return i.runBackwards = !0, this.staggerTo(t, e, m(0, i), r, n, s, a, o) }, g.staggerFromTo = function (t, e, i, r, n, s, a, o, l) { return r.startAt = i, this.staggerTo(t, e, m(0, r, i), n, s, a, o, l) }, g.call = function (t, e, r, n) { return this.add(i.delayedCall(0, t, e, r), n) }, g.set = function (t, e, r) { return this.add(new i(t, 0, m(0, e, null, !0)), r) }, r.exportRoot = function (t, e) { null == (t = t || {}).smoothChildTiming && (t.smoothChildTiming = !0); var n, s, a, o, l = new r(t), h = l._timeline; for (null == e && (e = !0), h._remove(l, !0), l._startTime = 0, l._rawPrevTime = l._time = l._totalTime = h._time, a = h._first; a;)o = a._next, e && a instanceof i && a.target === a.vars.onComplete || (0 > (s = a._startTime - a._delay) && (n = 1), l.add(a, s)), a = o; return h.add(l, 0), n && l.totalDuration(), l }, g.add = function (n, s, a, o) { var h, _, u, f, c, p, m = this; if ("number" != typeof s && (s = m._parseTimeOrLabel(s, 0, !0, n)), !(n instanceof t)) { if (n instanceof Array || n && n.push && l(n)) { for (a = a || "normal", o = o || 0, h = s, _ = n.length, u = 0; _ > u; u++)l(f = n[u]) && (f = new r({ tweens: f })), m.add(f, h), "string" != typeof f && "function" != typeof f && ("sequence" === a ? h = f._startTime + f.totalDuration() / f._timeScale : "start" === a && (f._startTime -= f.delay())), h += o; return m._uncache(!0) } if ("string" == typeof n) return m.addLabel(n, s); if ("function" != typeof n) throw "Cannot add " + n + " into the timeline; it is not a tween, timeline, function, or string."; n = i.delayedCall(0, n) } if (e.prototype.add.call(m, n, s), (n._time || !n._duration && n._initted) && (h = (m.rawTime() - n._startTime) * n._timeScale, (!n._duration || Math.abs(Math.max(0, Math.min(n.totalDuration(), h))) - n._totalTime > 1e-5) && n.render(h, !1, !1)), (m._gc || m._time === m._duration) && !m._paused && m._duration < m.duration()) for (p = (c = m).rawTime() > n._startTime; c._timeline;)p && c._timeline.smoothChildTiming ? c.totalTime(c._totalTime, !0) : c._gc && c._enabled(!0, !1), c = c._timeline; return m }, g.remove = function (e) { if (e instanceof t) { this._remove(e, !1); var i = e._timeline = e.vars.useFrames ? t._rootFramesTimeline : t._rootTimeline; return e._startTime = (e._paused ? e._pauseTime : i._time) - (e._reversed ? e.totalDuration() - e._totalTime : e._totalTime) / e._timeScale, this } if (e instanceof Array || e && e.push && l(e)) { for (var r = e.length; --r > -1;)this.remove(e[r]); return this } return "string" == typeof e ? this.removeLabel(e) : this.kill(null, e) }, g._remove = function (t, i) { return e.prototype._remove.call(this, t, i), this._last ? this._time > this.duration() && (this._time = this._duration, this._totalTime = this._totalDuration) : this._time = this._totalTime = this._duration = this._totalDuration = 0, this }, g.append = function (t, e) { return this.add(t, this._parseTimeOrLabel(null, e, !0, t)) }, g.insert = g.insertMultiple = function (t, e, i, r) { return this.add(t, e || 0, i, r) }, g.appendMultiple = function (t, e, i, r) { return this.add(t, this._parseTimeOrLabel(null, e, !0, t), i, r) }, g.addLabel = function (t, e) { return this._labels[t] = this._parseTimeOrLabel(e), this }, g.addPause = function (t, e, r, n) { var s = i.delayedCall(0, p, r, n || this); return s.vars.onComplete = s.vars.onReverseComplete = e, s.data = "isPau
32se", this._hasPause = !0, this.add(s, t) }, g.removeLabel = function (t) { return delete this._labels[t], this }, g.getLabelTime = function (t) { return null != this._labels[t] ? this._labels[t] : -1 }, g._parseTimeOrLabel = function (e, i, r, n) { var s, a; if (n instanceof t && n.timeline === this) this.remove(n); else if (n && (n instanceof Array || n.push && l(n))) for (a = n.length; --a > -1;)n[a] instanceof t && n[a].timeline === this && this.remove(n[a]); if (s = "number" != typeof e || i ? this.duration() > 99999999999 ? this.recent().endTime(!1) : this._duration : 0, "string" == typeof i) return this._parseTimeOrLabel(i, r && "number" == typeof e && null == this._labels[i] ? e - s : 0, r); if (i = i || 0, "string" != typeof e || !isNaN(e) && null == this._labels[e]) null == e && (e = s); else { if (-1 === (a = e.indexOf("="))) return null == this._labels[e] ? r ? this._labels[e] = s + i : i : this._labels[e] + i; i = parseInt(e.charAt(a - 1) + "1", 10) * Number(e.substr(a + 1)), e = a > 1 ? this._parseTimeOrLabel(e.substr(0, a - 1), 0, r) : s } return Number(e) + i }, g.seek = function (t, e) { return this.totalTime("number" == typeof t ? t : this._parseTimeOrLabel(t), !1 !== e) }, g.stop = function () { return this.paused(!0) }, g.gotoAndPlay = function (t, e) { return this.play(t, e) }, g.gotoAndStop = function (t, e) { return this.pause(t, e) }, g.render = function (t, e, i) { this._gc && this._enabled(!0, !1); var r, s, a, o, l, u, f, c, p = this, m = p._time, d = p._dirty ? p.totalDuration() : p._totalDuration, g = p._startTime, y = p._timeScale, v = p._paused; if (m !== p._time && (t += p._time - m), t >= d - n && t >= 0) p._totalTime = p._time = d, p._reversed || p._hasPausedChild() || (s = !0, o = "onComplete", l = !!p._timeline.autoRemoveChildren, 0 === p._duration && (0 >= t && t >= -n || p._rawPrevTime < 0 || p._rawPrevTime === n) && p._rawPrevTime !== t && p._first && (l = !0, p._rawPrevTime > n && (o = "onReverseComplete"))), p._rawPrevTime = p._duration || !e || t || p._rawPrevTime === t ? t : n, t = d + 1e-4; else if (n > t) if (p._totalTime = p._time = 0, t > -n && (t = 0), (0 !== m || 0 === p._duration && p._rawPrevTime !== n && (p._rawPrevTime > 0 || 0 > t && p._rawPrevTime >= 0)) && (o = "onReverseComplete", s = p._reversed), 0 > t) p._active = !1, p._timeline.autoRemoveChildren && p._reversed ? (l = s = !0, o = "onReverseComplete") : p._rawPrevTime >= 0 && p._first && (l = !0), p._rawPrevTime = t; else { if (p._rawPrevTime = p._duration || !e || t || p._rawPrevTime === t ? t : n, 0 === t && s) for (r = p._first; r && 0 === r._startTime;)r._duration || (s = !1), r = r._next; t = 0, p._initted || (l = !0) } else { if (p._hasPause && !p._forcingPlayhead && !e) { if (t >= m) for (r = p._first; r && r._startTime <= t && !u;)r._duration || "isPause" !== r.data || r.ratio || 0 === r._startTime && 0 === p._rawPrevTime || (u = r), r = r._next; else for (r = p._last; r && r._startTime >= t && !u;)r._duration || "isPause" === r.data && r._rawPrevTime > 0 && (u = r), r = r._prev; u && (p._time = p._totalTime = t = u._startTime, c = p._startTime + t / p._timeScale) } p._totalTime = p._time = p._rawPrevTime = t } if (p._time !== m && p._first || i || l || u) { if (p._initted || (p._initted = !0), p._active || !p._paused && p._time !== m && t > 0 && (p._active = !0), 0 === m && p.vars.onStart && (0 === p._time && p._duration || e || p._callback("onStart")), (f = p._time) >= m) for (r = p._first; r && (a = r._next, f === p._time && (!p._paused || v));)(r._active || r._startTime <= f && !r._paused && !r._gc) && (u === r && (p.pause(), p._pauseTime = c), r._reversed ? r.render((r._dirty ? r.totalDuration() : r._totalDuration) - (t - r._startTime) * r._timeScale, e, i) : r.render((t - r._startTime) * r._timeScale, e, i)), r = a; else for (r = p._last; r && (a = r._prev, f === p._time && (!p._paused || v));) { if (r._active || r._startTime <= m && !r._paused && !r._gc) { if (u === r) { for (u = r._prev; u && u.endTime() > p._time;)u.render(u._reversed ? u.totalDuration() - (t - u._startTime) * u._timeScale : (t - u._startTime) * u._timeScale, e, i), u = u._prev; u = null, p.pause(), p._pauseTime = c } r._reversed ? r.render((r._dirty ? r.totalDuration() : r._totalDuration) - (t - r._startTime) * r._timeScale, e, i) : r.render((t - r._startTime) * r._timeScale, e, i) } r = a }
vendor: 10,416 bytes, line 32
32 p._onUpdate && (e || (h.length && _(), p._callback("onUpdate"))), o && (p._gc || (g === p._startTime || y !== p._timeScale) && (0 === p._time || d >= p.totalDuration()) && (s && (h.length && _(), p._timeline.autoRemoveChildren && p._enabled(!1, !1), p._active = !1), !e && p.vars[o] && p._callback(o))) } }, g._hasPausedChild = function () { for (var t = this._first; t;) { if (t._paused || t instanceof r && t._hasPausedChild()) return !0; t = t._next } return !1 }, g.getChildren = function (t, e, r, n) { n = n || -9999999999; for (var s = [], a = this._first, o = 0; a;)a._startTime < n || (a instanceof i ? !1 !== e && (s[o++] = a) : (!1 !== r && (s[o++] = a), !1 !== t && (o = (s = s.concat(a.getChildren(!0, e, r))).length))), a = a._next; return s }, g.getTweensOf = function (t, e) { var r, n, s = this._gc, a = [], o = 0; for (s && this._enabled(!0, !0), n = (r = i.getTweensOf(t)).length; --n > -1;)(r[n].timeline === this || e && this._contains(r[n])) && (a[o++] = r[n]); return s && this._enabled(!1, !0), a }, g.recent = function () { return this._recent }, g._contains = function (t) { for (var e = t.timeline; e;) { if (e === this) return !0; e = e.timeline } return !1 }, g.shiftChildren = function (t, e, i) { i = i || 0; for (var r, n = this._first, s = this._labels; n;)n._startTime >= i && (n._startTime += t), n = n._next; if (e) for (r in s) s[r] >= i && (s[r] += t); return this._uncache(!0) }, g._kill = function (t, e) { if (!t && !e) return this._enabled(!1, !1); for (var i = e ? this.getTweensOf(e) : this.getChildren(!0, !0, !1), r = i.length, n = !1; --r > -1;)i[r]._kill(t, e) && (n = !0); return n }, g.clear = function (t) { var e = this.getChildren(!1, !0, !0), i = e.length; for (this._time = this._totalTime = 0; --i > -1;)e[i]._enabled(!1, !1); return !1 !== t && (this._labels = {}), this._uncache(!0) }, g.invalidate = function () { for (var e = this._first; e;)e.invalidate(), e = e._next; return t.prototype.invalidate.call(this) }, g._enabled = function (t, i) { if (t === this._gc) for (var r = this._first; r;)r._enabled(t, !0), r = r._next; return e.prototype._enabled.call(this, t, i) }, g.totalTime = function (e, i, r) { this._forcingPlayhead = !0; var n = t.prototype.totalTime.apply(this, arguments); return this._forcingPlayhead = !1, n }, g.duration = function (t) { return arguments.length ? (0 !== this.duration() && 0 !== t && this.timeScale(this._duration / t), this) : (this._dirty && this.totalDuration(), this._duration) }, g.totalDuration = function (t) { if (!arguments.length) { if (this._dirty) { for (var e, i, r = 0, n = this, s = n._last, a = 999999999999; s;)e = s._prev, s._dirty && s.totalDuration(), s._startTime > a && n._sortChildren && !s._paused && !n._calculatingDuration ? (n._calculatingDuration = 1, n.add(s, s._startTime - s._delay), n._calculatingDuration = 0) : a = s._startTime, s._startTime < 0 && !s._paused && (r -= s._startTime, n._timeline.smoothChildTiming && (n._startTime += s._startTime / n._timeScale, n._time -= s._startTime, n._totalTime -= s._startTime, n._rawPrevTime -= s._startTime), n.shiftChildren(-s._startTime, !1, -9999999999), a = 0), (i = s._startTime + s._totalDuration / s._timeScale) > r && (r = i), s = e; n._duration = n._totalDuration = r, n._dirty = !1 } return this._totalDuration } return t && this.totalDuration() ? this.timeScale(this._totalDuration / t) : this }, g.paused = function (e) { if (!1 === e && this._paused) for (var i = this._first; i;)i._startTime === this._time && "isPause" === i.data && (i._rawPrevTime = 0), i = i._next; return t.prototype.paused.apply(this, arguments) }, g.usesFrames = function () { for (var e = this._timeline; e._timeline;)e = e._timeline; return e === t._rootFramesTimeline }, g.rawTime = function (t) { return t && (this._paused || this._repeat && this.time() > 0 && this.totalProgress() < 1) ? this._totalTime % (this._duration + this._repeatDelay) : this._paused ? this._totalTime : (this._timeline.rawTime(t) - this._startTime) * this._timeScale }, r }, !0), _gsScope._gsDefine("TimelineMax", ["TimelineLite", "TweenLite", "easing.Ease"], function (t, e, i) { var r = function (e) { t.call(this, e), this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._cycle = 0, this._yoyo = !!this.vars.yoyo, this._dirty = !0 }, n = 1e-8, s = e._internals, a = s.lazyTweens, o = s.lazyRender, l = _gsScope._gsDefine.globals, h = new i(null, null, 1, 0), _ = r.prototype = new t; return _.constructor = r, _.kill()._gc = !1, r.version = "2.1.2", _.invalidate = function () { return this._yoyo = !!this.vars.yoyo, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._uncache(!0), t.prototype.invalidate.call(this) }, _.addCallback = function (t, i, r, n) { return this.add(e.delayedCall(0, t, r, n), i) }, _.removeCallback = function (t, e) { if (t) if (null == e) this._kill(null, t); else for (var i = this.getTweensOf(t, !1), r = i.length, n = this._parseTimeOrLabel(e); --r > -1;)i[r]._startTime === n && i[r]._enabled(!1, !1); return this }, _.removePause = function (e) { return this.removeCallback(t._internals.pauseCallback, e) }, _.tweenTo = function (t, i) { i = i || {}; var r, n, s, a = { ease: h, useFrames: this.usesFrames(), immediateRender: !1, lazy: !1 }, o = i.repeat && l.TweenMax || e; for (n in i) a[n] = i[n]; return a.time = this._parseTimeOrLabel(t), r = Math.abs(Number(a.time) - this._time) / this._timeScale || .001, s = new o(this, r, a), a.onStart = function () { s.target.paused(!0), s.vars.time === s.target.time() || r !== s.duration() || s.isFromTo || s.duration(Math.abs(s.vars.time - s.target.time()) / s.target._timeScale).render(s.time(), !0, !0), i.onStart && i.onStart.apply(i.onStartScope || i.callbackScope || s, i.onStartParams || []) }, s }, _.tweenFromTo = function (t, e, i) { i = i || {}, t = this._parseTimeOrLabel(t), i.startAt = { onComplete: this.seek, onCompleteParams: [t], callbackScope: this }, i.immediateRender = !1 !== i.immediateRender; var r = this.tweenTo(e, i); return r.isFromTo = 1, r.duration(Math.abs(r.vars.time - t) / this._timeScale || .001) }, _.render = function (t, e, i) { this._gc && this._enabled(!0, !1); var r, s, l, h, _, u, f, c, p, m = this, d = m._time, g = m._dirty ? m.totalDuration() : m._totalDuration, y = m._duration, v = m._totalTime, T = m._startTime, x = m._timeScale, b = m._rawPrevTime, w = m._paused, P = m._cycle; if (d !== m._time && (t += m._time - d), t >= g - n && t >= 0) m._locked || (m._totalTime = g, m._cycle = m._repeat), m._reversed || m._hasPausedChild() || (s = !0, h = "onComplete", _ = !!m._timeline.autoRemoveChildren, 0 === m._duration && (0 >= t && t >= -n || 0 > b || b === n) && b !== t && m._first && (_ = !0, b > n && (h = "onReverseComplete"))), m._rawPrevTime = m._duration || !e || t || m._rawPrevTime === t ? t : n, m._yoyo && 1 & m._cycle ? m._time = t = 0 : (m._time = y, t = y + 1e-4); else if (n > t) if (m._locked || (m._totalTime = m._cycle = 0), m._time = 0, t > -n && (t = 0), (0 !== d || 0 === y && b !== n && (b > 0 || 0 > t && b >= 0) && !m._locked) && (h = "onReverseComplete", s = m._reversed), 0 > t) m._active = !1, m._timeline.autoRemoveChildren && m._reversed ? (_ = s = !0, h = "onReverseComplete") : b >= 0 && m._first && (_ = !0), m._rawPrevTime = t; else { if (m._rawPrevTime = y || !e || t || m._rawPrevTime === t ? t : n, 0 === t && s) for (r = m._first; r && 0 === r._startTime;)r._duration || (s = !1), r = r._next; t = 0, m._initted || (_ = !0) } else if (0 === y && 0 > b && (_ = !0), m._time = m._rawPrevTime = t, m._locked || (m._totalTime = t, 0 !== m._repeat && (u = y + m._repeatDelay, m._cycle = m._totalTime / u >> 0, m._cycle && m._cycle === m._totalTime / u && t >= v && m._cycle--, m._time = m._totalTime - m._cycle * u, m._yoyo && 1 & m._cycle && (m._time = y - m._time), m._time > y ? (m._time = y, t = y + 1e-4) : m._time < 0 ? m._time = t = 0 : t = m._time)), m._hasPause && !m._forcingPlayhead && !e) { if ((t = m._time) >= d || m._repeat && P !== m._cycle) for (r = m._first; r && r._startTime <= t && !f;)r._duration || "isPause" !== r.data || r.ratio || 0 === r._startTime && 0 === m._rawPrevTime || (f = r), r = r._next; else for (r = m._last; r && r._startTime >= t && !f;)r._duration || "isPause" === r.data && r._rawPrevTime > 0 && (f = r), r = r._prev; f && (p = m._startTime + f._startTime / m._timeScale, f._startTime < y && (m._time = m._rawPrevTime = t = f._startTime, m._totalTime = t + m._cycle * (m._totalDuration + m._repeatDelay))) } if (m._cycle !== P && !m._locked) { var S = m._yoyo && 0 != (1 & P), O = S === (m._yoyo && 0 != (1 & m._cycle)), k = m._totalTime, R = m._cycle, A = m._rawPrevTime, C = m._time; if (m._totalTime = P * y, m._cycle < P ? S = !S : m._totalTime += y, m._time = d, m._rawPrevTime = 0 === y ? b - 1e-4 : b, m._cycle = P, m._locked = !0, d = S ? 0 : y, m.render(d, e, 0 === y), e || m._gc || m.vars.onRepeat && (m._cycle = R, m._locked = !1, m._callback("onRepeat")), d !== m._time) return; if (O && (m._cycle = P, m._locked = !0, d = S ? y + 1e-4 : -1e-4, m.render(d, !0, !1)), m._locked = !1, m._paused && !w) return; m._time = C, m._totalTime = k, m._cycle = R, m._rawPrevTime = A } if (m._time !== d && m._first || i || _ || f) { if (m._initted || (m._initted = !0), m._active || !m._paused && m._totalTime !== v && t > 0 && (m._active = !0), 0 === v && m.vars.onStart && (0 === m._totalTime && m._totalDuration || e || m._callback("onStart")), (c = m._time) >= d) for (r = m._first; r && (l = r._next, c === m._time && (!m._paused || w));)(r._active || r._startTime <= m._time && !r._paused && !r._gc) && (f === r && (m.pause(), m._pauseTime = p), r._reversed ? r.render((r._dirty ? r.totalDuration() : r._totalDuration) - (t - r._startTime) * r._timeScale, e, i) : r.render((t - r._startTime) * r._timeScale, e, i)), r = l; else for (r = m._last; r && (l = r._prev, c === m._time && (!m._paused || w));) { if (r._active || r._startTime <= d && !r._paused && !r._gc) { if (f === r) { for (f = r._prev; f && f.endTime() > m._time;)f.render(f._reversed ? f.totalDuration() - (t - f._startTime) * f._timeScale : (t - f._startTime) * f._timeScale, e, i), f = f._prev; f = null, m.pause(), m._pauseTime = p } r._reversed ? r.render((r._dirty ? r.totalDuration() : r._totalDuration) - (t - r._startTime) * r._timeScale, e, i) : r.render((t - r._startTime) * r._timeScale, e, i) } r = l }
32 m._onUpdate && (e || (a.length && o(), m._callback("onUpdate"))), h && (m._locked || m._gc || (T === m._startTime || x !== m._timeScale) && (0 === m._time || g >= m.totalDuration()) && (s && (a.length && o(), m._timeline.autoRemoveChildren && m._enabled(!1, !1), m._active = !1), !e && m.vars[h] && m._callback(h))) } else v !== m._totalTime && m._onUpdate && (e || m._callback("onUpdate")) }, _.getActive = function (t, e, i) { var r, n, s = [], a = this.getChildren(t || null == t, e || null == t, !!i), o = 0, l = a.length; for (r = 0; l > r; r++)(n = a[r]).isActive() && (s[o++] = n); return s }, _.getLabelAfter = function (t) { t || 0 !== t && (t = this._time); var e, i = this.getLabelsArray(), r = i.length; for (e = 0; r > e; e++)if (i[e].time > t) return i[e].name; return null }, _.getLabelBefore = function (t) { null == t && (t = this._time); for (var e = this.getLabelsArray(), i = e.length; --i > -1;)if (e[i].time < t) return e[i].name; return null }, _.getLabelsArray = function () { var t, e = [], i = 0; for (t in this._labels) e[i++] = { time: this._labels[t], name: t }; return e.sort(function (t, e) { return t.time - e.time }), e }, _.invalidate = function () { return this._locked = !1, t.prototype.invalidate.call(this) }, _.progress = function (t, e) { return arguments.length ? this.totalTime(this.duration() * (this._yoyo && 0 != (1 & this._cycle) ? 1 - t : t) + this._cycle * (this._duration + this._repeatDelay), e) : this._time / this.duration() || 0 }, _.totalProgress = function (t, e) { return arguments.length ? this.totalTime(this.totalDuration() * t, e) : this._totalTime / this.totalDuration() || 0 }, _.totalDuration = function (e) { return arguments.length ? -1 !== this._repeat && e ? this.timeScale(this.totalDuration() / e) : this : (this._dirty && (t.prototype.totalDuration.call(this), this._totalDuration = -1 === this._repeat ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat), this._totalDuration) }, _.time = function (t, e) { if (!arguments.length) return this._time; this._dirty && this.totalDuration(); var i = this._duration, r = this._cycle, n = r * (i + this._repeatDelay); return t > i && (t = i), this.totalTime(this._yoyo && 1 & r ? i - t + n : this._repeat ? t + n : t, e) }, _.repeat = function (t) { return arguments.length ? (this._repeat = t, this._uncache(!0)) : this._repeat }, _.repeatDelay = function (t) { return arguments.length ? (this._repeatDelay = t, this._uncache(!0)) : this._repeatDelay }, _.yoyo = function (t) { return arguments.length ? (this._yoyo = t, this) : this._yoyo }, _.currentLabel = function (t) { return arguments.length ? this.seek(t, !0) : this.getLabelBefore(this._time + n) }, r }, !0), t = 180 / Math.PI, e = [], i = [], r = [], n = {}, s = _gsScope._gsDefine.globals, a = function (t, e, i, r) { i === r && (i = r - (r - e) / 1e6), t === e && (e = t + (i - t) / 1e6), this.a = t, this.b = e, this.c = i, this.d = r, this.da = r - t, this.ca = i - t, this.ba = e - t }, o = function (t, e, i, r) { var n = { a: t }, s = {}, a = {}, o = { c: r }, l = (t + e) / 2, h = (e + i) / 2, _ = (i + r) / 2, u = (l + h) / 2, f = (h + _) / 2, c = (f - u) / 8; return n.b = l + (t - l) / 4, s.b = u + c, n.c = s.a = (n.b + s.b) / 2, s.c = a.a = (u + f) / 2, a.b = f - c, o.b = _ + (r - _) / 4, a.c = o.a = (a.b + o.b) / 2, [n, s, a, o] }, l = function (t, n, s, a, l) { var h, _, u, f, c, p, m, d, g, y, v, T, x, b = t.length - 1, w = 0, P = t[0].a; for (h = 0; b > h; h++)_ = (c = t[w]).a, u = c.d, f = t[w + 1].d, l ? (v = e[h], x = ((T = i[h]) + v) * n * .25 / (a ? .5 : r[h] || .5), d = u - ((p = u - (u - _) * (a ? .5 * n : 0 !== v ? x / v : 0)) + (((m = u + (f - u) * (a ? .5 * n : 0 !== T ? x / T : 0)) - p) * (3 * v / (v + T) + .5) / 4 || 0))) : d = u - ((p = u - (u - _) * n * .5) + (m = u + (f - u) * n * .5)) / 2, p += d, m += d, c.c = g = p, c.b = 0 !== h ? P : P = c.a + .6 * (c.c - c.a), c.da = u - _, c.ca = g - _, c.ba = P - _, s ? (y = o(_, P, g, u), t.splice(w, 1, y[0], y[1], y[2], y[3]), w += 4) : w++, P = m; (c = t[w]).b = P, c.c = P + .4 * (c.d - P), c.da = c.d - c.a, c.ca = c.c - c.a, c.ba = P - c.a, s && (y = o(c.a, P, c.c, c.d), t.splice(w, 1, y[0], y[1], y[2], y[3])) }, h = function (t, r, n, s) { var o, l, h, _, u, f, c = [];
vendor: 5,503 bytes, line 32
32 if (s) for (l = (t = [s].concat(t)).length; --l > -1;)"string" == typeof (f = t[l][r]) && "=" === f.charAt(1) && (t[l][r] = s[r] + Number(f.charAt(0) + f.substr(2))); if (0 > (o = t.length - 2)) return c[0] = new a(t[0][r], 0, 0, t[0][r]), c; for (l = 0; o > l; l++)h = t[l][r], _ = t[l + 1][r], c[l] = new a(h, 0, 0, _), n && (u = t[l + 2][r], e[l] = (e[l] || 0) + (_ - h) * (_ - h), i[l] = (i[l] || 0) + (u - _) * (u - _)); return c[l] = new a(t[l][r], 0, 0, t[l + 1][r]), c }, _ = function (t, s, a, o, _, u) { var f, c, p, m, d, g, y, v, T = {}, x = [], b = u || t[0]; for (c in _ = "string" == typeof _ ? "," + _ + "," : ",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,", null == s && (s = 1), t[0]) x.push(c); if (t.length > 1) { for (v = t[t.length - 1], y = !0, f = x.length; --f > -1;)if (c = x[f], Math.abs(b[c] - v[c]) > .05) { y = !1; break } y && (t = t.concat(), u && t.unshift(u), t.push(t[1]), u = t[t.length - 3]) } for (e.length = i.length = r.length = 0, f = x.length; --f > -1;)c = x[f], n[c] = -1 !== _.indexOf("," + c + ","), T[c] = h(t, c, n[c], u); for (f = e.length; --f > -1;)e[f] = Math.sqrt(e[f]), i[f] = Math.sqrt(i[f]); if (!o) { for (f = x.length; --f > -1;)if (n[c]) for (g = (p = T[x[f]]).length - 1, m = 0; g > m; m++)d = p[m + 1].da / i[m] + p[m].da / e[m] || 0, r[m] = (r[m] || 0) + d * d; for (f = r.length; --f > -1;)r[f] = Math.sqrt(r[f]) } for (f = x.length, m = a ? 4 : 1; --f > -1;)p = T[c = x[f]], l(p, s, a, o, n[c]), y && (p.splice(0, m), p.splice(p.length - m, m)); return T }, u = function (t, e, i) { var r, n, s, o, l, h, _, u, f, c, p, m = {}, d = "cubic" === (e = e || "soft") ? 3 : 2, g = "soft" === e, y = []; if (g && i && (t = [i].concat(t)), null == t || t.length < d + 1) throw "invalid Bezier data"; for (f in t[0]) y.push(f); for (h = y.length; --h > -1;) { for (m[f = y[h]] = l = [], c = 0, u = t.length, _ = 0; u > _; _++)r = null == i ? t[_][f] : "string" == typeof (p = t[_][f]) && "=" === p.charAt(1) ? i[f] + Number(p.charAt(0) + p.substr(2)) : Number(p), g && _ > 1 && u - 1 > _ && (l[c++] = (r + l[c - 2]) / 2), l[c++] = r; for (u = c - d + 1, c = 0, _ = 0; u > _; _ += d)r = l[_], n = l[_ + 1], s = l[_ + 2], o = 2 === d ? 0 : l[_ + 3], l[c++] = p = 3 === d ? new a(r, n, s, o) : new a(r, (2 * n + r) / 3, (2 * n + s) / 3, s); l.length = c } return m }, f = function (t, e, i) { for (var r, n, s, a, o, l, h, _, u, f, c, p = 1 / i, m = t.length; --m > -1;)for (s = (f = t[m]).a, a = f.d - s, o = f.c - s, l = f.b - s, r = n = 0, _ = 1; i >= _; _++)r = n - (n = ((h = p * _) * h * a + 3 * (u = 1 - h) * (h * o + u * l)) * h), e[c = m * i + _ - 1] = (e[c] || 0) + r * r }, c = function (t, e) { var i, r, n, s, a = [], o = [], l = 0, h = 0, _ = (e = e >> 0 || 6) - 1, u = [], c = []; for (i in t) f(t[i], a, e); for (n = a.length, r = 0; n > r; r++)l += Math.sqrt(a[r]), c[s = r % e] = l, s === _ && (h += l, u[s = r / e >> 0] = c, o[s] = h, l = 0, c = []); return { length: h, lengths: o, segments: u } }, p = _gsScope._gsDefine.plugin({ propName: "bezier", priority: -1, version: "1.3.8", API: 2, global: !0, init: function (t, e, i) { this._target = t, e instanceof Array && (e = { values: e }), this._func = {}, this._mod = {}, this._props = [], this._timeRes = null == e.timeResolution ? 6 : parseInt(e.timeResolution, 10); var r, n, s, a, o, l = e.values || [], h = {}, f = l[0], p = e.autoRotate || i.vars.orientToBezier; for (r in this._autoRotate = p ? p instanceof Array ? p : [["x", "y", "rotation", !0 === p ? 0 : Number(p) || 0]] : null, f) this._props.push(r); for (s = this._props.length; --s > -1;)r = this._props[s], this._overwriteProps.push(r), n = this._func[r] = "function" == typeof t[r], h[r] = n ? t[r.indexOf("set") || "function" != typeof t["get" + r.substr(3)] ? r : "get" + r.substr(3)]() : parseFloat(t[r]), o || h[r] !== l[0][r] && (o = h); if (this._beziers = "cubic" !== e.type && "quadratic" !== e.type && "soft" !== e.type ? _(l, isNaN(e.curviness) ? 1 : e.curviness, !1, "thruBasic" === e.type, e.correlate, o) : u(l, e.type, h), this._segCount = this._beziers[r].length, this._timeRes) { var m = c(this._beziers, this._timeRes); this._length = m.length, this._lengths = m.lengths, this._segments = m.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 } if (p = this._autoRotate) for (this._initialRotations = [], p[0] instanceof Array || (this._autoRotate = p = [p]), s = p.length; --s > -1;) { for (a = 0; 3 > a; a++)r = p[s][a], this._func[r] = "function" == typeof t[r] && t[r.indexOf("set") || "function" != typeof t["get" + r.substr(3)] ? r : "get" + r.substr(3)]; r = p[s][2], this._initialRotations[s] = (this._func[r] ? this._func[r].call(this._target) : this._target[r]) || 0, this._overwriteProps.push(r) } return this._startRatio = i.vars.runBackwards ? 1 : 0, !0 }, set: function (e) { var i, r, n, s, a, o, l, h, _, u, f = this._segCount, c = this._func, p = this._target, m = e !== this._startRatio; if (this._timeRes) { if (_ = this._lengths, u = this._curSeg, e *= this._length, n = this._li, e > this._l2 && f - 1 > n) { for (h = f - 1; h > n && (this._l2 = _[++n]) <= e;); this._l1 = _[n - 1], this._li = n, this._curSeg = u = this._segments[n], this._s2 = u[this._s1 = this._si = 0] } else if (e < this._l1 && n > 0) { for (; n >
32 0 && (this._l1 = _[--n]) >= e;); 0 === n && e < this._l1 ? this._l1 = 0 : n++, this._l2 = _[n], this._li = n, this._curSeg = u = this._segments[n], this._s1 = u[(this._si = u.length - 1) - 1] || 0, this._s2 = u[this._si] } if (i = n, e -= this._l1, n = this._si, e > this._s2 && n < u.length - 1) { for (h = u.length - 1; h > n && (this._s2 = u[++n]) <= e;); this._s1 = u[n - 1], this._si = n } else if (e < this._s1 && n > 0) { for (; n > 0 && (this._s1 = u[--n]) >= e;); 0 === n && e < this._s1 ? this._s1 = 0 : n++, this._s2 = u[n], this._si = n } o = (n + (e - this._s1) / (this._s2 - this._s1)) * this._prec || 0 } else o = (e - (i = 0 > e ? 0 : e >= 1 ? f - 1 : f * e >> 0) * (1 / f)) * f; for (r = 1 - o, n = this._props.length; --n > -1;)s = this._props[n], l = (o * o * (a = this._beziers[s][i]).da + 3 * r * (o * a.ca + r * a.ba)) * o + a.a, this._mod[s] && (l = this._mod[s](l, p)), c[s] ? p[s](l) : p[s] = l; if (this._autoRotate) { var d, g, y, v, T, x, b, w = this._autoRotate; for (n = w.length; --n > -1;)s = w[n][2], x = w[n][3] || 0, b = !0 === w[n][4] ? 1 : t, a = this._beziers[w[n][0]], d = this._beziers[w[n][1]], a && d && (a = a[i], d = d[i], g = a.a + (a.b - a.a) * o, g += ((v = a.b + (a.c - a.b) * o) - g) * o, v += (a.c + (a.d - a.c) * o - v) * o, y = d.a + (d.b - d.a) * o, y += ((T = d.b + (d.c - d.b) * o) - y) * o, T += (d.c + (d.d - d.c) * o - T) * o, l = m ? Math.atan2(T - y, v - g) * b + x : this._initialRotations[n], this._mod[s] && (l = this._mod[s](l, p)), c[s] ? p[s](l) : p[s] = l) } } }), m = p.prototype, p.bezierThrough = _, p.cubicToQuadratic = o, p._autoCSS = !0, p.quadraticToCubic = function (t, e, i) { return new a(t, (2 * e + t) / 3, (2 * e + i) / 3, i) }, p._cssRegister = function () { var t = s.CSSPlugin; if (t) { var e = t._internals, i = e._parseToProxy, r = e._setPluginRatio, n = e.CSSPropTween; e._registerComplexSpecialProp("bezier", { parser: function (t, e, s, a, o, l) { e instanceof Array && (e = { values: e }), l = new p; var h, _, u, f = e.values, c = f.length - 1, m = [], d = {}; if (0 > c) return o; for (h = 0; c >= h; h++)u = i(t, f[h], a, o, l, c !== h), m[h] = u.end; for (_ in e) d[_] = e[_]; return d.values = m, (o = new n(t, "bezier", 0, 0, u.pt, 2)).data = u, o.plugin = l, o.setRatio = r, 0 === d.autoRotate && (d.autoRotate = !0), !d.autoRotate || d.autoRotate instanceof Array || (h = !0 === d.autoRotate ? 0 : Number(d.autoRotate), d.autoRotate = null != u.end.left ? [["left", "top", "rotation", h, !1]] : null != u.end.x && [["x", "y", "rotation", h, !1]]), d.autoRotate && (a._transform || a._enableTransforms(!1), u.autoRotate = a._target._gsTransform, u.proxy.rotation = u.autoRotate.rotation || 0, a._overwriteProps.push("rotation")), l._onInitTween(u.proxy, d, a._tween), o } }) } }, m._mod = function (t) { for (var e, i = this._overwriteProps, r = i.length; --r > -1;)(e = t[i[r]]) && "function" == typeof e && (this._mod[i[r]] = e) }, m._kill = function (t) { var e, i, r = this._props; for (e in this._beziers) if (e in t) for (delete this._beziers[e], delete this._func[e], i = r.length; --i > -1;)r[i] === e && r.splice(i, 1); if (r = this._autoRotate) for (i = r.length; --i > -1;)t[r[i][2]] && r.splice(i, 1); return this._super._kill.call(this, t) }, _gsScope._gsDefine("plugins.CSSPlugin", ["plugins.TweenPlugin", "TweenLite"], function (t, e) { var i, r, n, s, a = function () { t.call(this, "css"), this._overwriteProps.length = 0, this.setRatio = a.prototype.setRatio }, o = _gsScope._gsDefine.globals, l = {}, h = a.prototype = new t("css"); h.constructor = a, a.version = "2.1.0", a.API = 2, a.defaultTransformPerspective = 0, a.defaultSkewType = "compensated", a.defaultSmoothOrigin = !0, h = "px", a.suffixMap = { top: h, right: h, bottom: h, left: h, width: h, height: h, fontSize: h, padding: h, margin: h, perspective: h, lineHeight: "" }; var _, u, f, c, p, m, d, g, y = /(?:\-|\.|\b)(\d|\.|e\-)+/g, v = /(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g, T = /(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi, x = /(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g, b = /(?:\d|\-|\+|=|#|\.)*/g, w = /opacity *= *([^)]*)/i, P = /opacity:([^;]*)/i, S = /alpha\(opacity *=.+?\)/i, O = /^(rgb|hsl)/, k = /([A-Z])/g, R = /-([a-z])/gi, A = /(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi, C = function (t, e) { return e.toUpperCase() }, M = /(?:Left|Right|Width)/i, D = /(M11|M12|M21|M22)=[\d\-\.e]+/gi, F = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i, z = /,(?=[^\)]*(?:\(|$))/gi, E = /[\
32s,\(]/i, I = Math.PI / 180, X = 180 / Math.PI, N = {}, L = { style: {} }, B = _gsScope.document || { createElement: function () { return L } }, Y = function (t, e) { return e && B.createElementNS ? B.createElementNS(e, t) : B.createElement(t) }, j = Y("div"), U = Y("img"), V = a._internals = { _specialProps: l }, q = (_gsScope.navigator || {}).userAgent || "", W = function () { var t = q.indexOf("Android"), e = Y("a"); return f = -1 !== q.indexOf("Safari") && -1 === q.indexOf("Chrome") && (-1 === t || parseFloat(q.substr(t + 8, 2)) > 3), p = f && parseFloat(q.substr(q.indexOf("Version/") + 8, 2)) < 6, c = -1 !== q.indexOf("Firefox"), (/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(q) || /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(q)) && (m = parseFloat(RegExp.$1)), !!e && (e.style.cssText = "top:1px;opacity:.55;", /^0.55/.test(e.style.opacity)) }(), G = function (t) { return w.test("string" == typeof t ? t : (t.currentStyle ? t.currentStyle.filter : t.style.filter) || "") ? parseFloat(RegExp.$1) / 100 : 1 }, Z = function (t) { _gsScope.console && console.log(t) }, H = "", $ = "", Q = function (t, e) { var i, r, n = (e = e || j).style; if (void 0 !== n[t]) return t; for (t = t.charAt(0).toUpperCase() + t.substr(1), i = ["O", "Moz", "ms", "Ms", "Webkit"], r = 5; --r > -1 && void 0 === n[i[r] + t];); return r >= 0 ? (H = "-" + ($ = 3 === r ? "ms" : i[r]).toLowerCase() + "-", $ + t) : null }, K = "undefined" != typeof window ? window : B.defaultView || { getComputedStyle: function () { } }, J = function (t) { return K.getComputedStyle(t) }, tt = a.getStyle = function (t, e, i, r, n) { var s; return W || "opacity" !== e ? (!r && t.style[e] ? s = t.style[e] : (i = i || J(t)) ? s = i[e] || i.getPropertyValue(e) || i.getPropertyValue(e.replace(k, "-$1").toLowerCase()) : t.currentStyle && (s = t.currentStyle[e]), null == n || s && "none" !== s && "auto" !== s && "auto auto" !== s ? s : n) : G(t) }
vendor: 2,474 bytes, line 32
32, et = V.convertToPixels = function (t, i, r, n, s) { if ("px" === n || !n && "lineHeight" !== i) return r; if ("auto" === n || !r) return 0; var o, l, h, _ = M.test(i), u = t, f = j.style, c = 0 > r, p = 1 === r; if (c && (r = -r), p && (r *= 100), "lineHeight" !== i || n) if ("%" === n && -1 !== i.indexOf("border")) o = r / 100 * (_ ? t.clientWidth : t.clientHeight); else { if (f.cssText = "border:0 solid red;position:" + tt(t, "position") + ";line-height:0;", "%" !== n && u.appendChild && "v" !== n.charAt(0) && "rem" !== n) f[_ ? "borderLeftWidth" : "borderTopWidth"] = r + n; else { if (u = t.parentNode || B.body, -1 !== tt(u, "display").indexOf("flex") && (f.position = "absolute"), l = u._gsCache, h = e.ticker.frame, l && _ && l.time === h) return l.width * r / 100; f[_ ? "width" : "height"] = r + n } u.appendChild(j), o = parseFloat(j[_ ? "offsetWidth" : "offsetHeight"]), u.removeChild(j), _ && "%" === n && !1 !== a.cacheWidths && ((l = u._gsCache = u._gsCache || {}).time = h, l.width = o / r * 100), 0 !== o || s || (o = et(t, i, r, n, !0)) } else l = J(t).lineHeight, t.style.lineHeight = r, o = parseFloat(J(t).lineHeight), t.style.lineHeight = l; return p && (o /= 100), c ? -o : o }, it = V.calculateOffset = function (t, e, i) { if ("absolute" !== tt(t, "position", i)) return 0; var r = "left" === e ? "Left" : "Top", n = tt(t, "margin" + r, i); return t["offset" + r] - (et(t, e, parseFloat(n), n.replace(b, "")) || 0) }, rt = function (t, e) { var i, r, n, s = {}; if (e = e || J(t)) if (i = e.length) for (; --i > -1;)(-1 === (n = e[i]).indexOf("-transform") || Ct === n) && (s[n.replace(R, C)] = e.getPropertyValue(n)); else for (i in e) (-1 === i.indexOf("Transform") || At === i) && (s[i] = e[i]); else if (e = t.currentStyle || t.style) for (i in e) "string" == typeof i && void 0 === s[i] && (s[i.replace(R, C)] = e[i]); return W || (s.opacity = G(t)), r = Ut(t, e, !1), s.rotation = r.rotation, s.skewX = r.skewX, s.scaleX = r.scaleX, s.scaleY = r.scaleY, s.x = r.x, s.y = r.y, Dt && (s.z = r.z, s.rotationX = r.rotationX, s.rotationY = r.rotationY, s.scaleZ = r.scaleZ), s.filters && delete s.filters, s }, nt = function (t, e, i, r, n) { var s, a, o, l = {}, h = t.style; for (a in i) "cssText" !== a && "length" !== a && isNaN(a) && (e[a] !== (s = i[a]) || n && n[a]) && -1 === a.indexOf("Origin") && ("number" == typeof s || "string" == typeof s) && (l[a] = "auto" !== s || "left" !== a && "top" !== a ? "" !== s && "auto" !== s && "n
32one" !== s || "string" != typeof e[a] || "" === e[a].replace(x, "") ? s : 0 : it(t, a), void 0 !== h[a] && (o = new vt(h, a, h[a], o))); if (r) for (a in r) "className" !== a && (l[a] = r[a]); return { difs: l, firstMPT: o } }, st = { width: ["Left", "Right"], height: ["Top", "Bottom"] }, at = ["marginLeft", "marginRight", "marginTop", "marginBottom"], ot = function (t, e, i) { if ("svg" === (t.nodeName + "").toLowerCase()) return (i || J(t))[e] || 0; if (t.getCTM && Bt(t)) return t.getBBox()[e] || 0; var r = parseFloat("width" === e ? t.offsetWidth : t.offsetHeight), n = st[e], s = n.length; for (i = i || J(t); --s > -1;)r -= parseFloat(tt(t, "padding" + n[s], i, !0)) || 0, r -= parseFloat(tt(t, "border" + n[s] + "Width", i, !0)) || 0; return r }, lt = function (t, e) { if ("contain" === t || "auto" === t || "auto auto" === t) return t + " "; (null == t || "" === t) && (t = "0 0"); var i, r = t.split(" "), n = -1 !== t.indexOf("left") ? "0%" : -1 !== t.indexOf("right") ? "100%" : r[0], s = -1 !== t.indexOf("top") ? "0%" : -1 !== t.indexOf("bottom") ? "100%" : r[1]; if (r.length > 3 && !e) { for (r = t.split(", ").join(",").split(","), t = [], i = 0; i < r.length; i++)t.push(lt(r[i])); return t.join(",") } return null == s ? s = "center" === n ? "50%" : "0" : "center" === s && (s = "50%"), ("center" === n || isNaN(parseFloat(n)) && -1 === (n + "").indexOf("=")) && (n = "50%"), t = n + " " + s + (r.length > 2 ? " " + r[2] : ""), e && (e.oxp = -1 !== n.indexOf("%"), e.oyp = -1 !== s.indexOf("%"), e.oxr = "=" === n.charAt(1), e.oyr = "=" === s.charAt(1), e.ox = parseFloat(n.replace(x, "")), e.oy = parseFloat(s.replace(x, "")), e.v = t), e || t }, ht = function (t, e) { return "function" == typeof t && (t = t(g, d)), "string" == typeof t && "=" === t.charAt(1) ? parseInt(t.charAt(0) + "1", 10) * parseFloat(t.substr(2)) : parseFloat(t) - parseFloat(e) || 0 }, _t = function (t, e) { "function" == typeof t && (t = t(g, d)); var i = "string" == typeof t && "=" === t.charAt(1); return "string" == typeof t && "v" === t.charAt(t.length - 2) && (t = (i ? t.substr(0, 2) : 0) + window["inner" + ("vh" === t.substr(-2) ? "Height" : "Width")] * (parseFloat(i ? t.substr(2) : t) / 100)), null == t ? e : i ? parseInt(t.charAt(0) + "1", 10) * parseFloat(t.substr(2)) + e : parseFloat(t) || 0 }, ut = function (t, e, i, r) { var n, s, a, o, l; return "function" == typeof t && (t = t(g, d)), null == t ? o = e : "number" == typeof t ? o = t : (n = 360, s = t.split("_"), a = ((l = "=" === t.charAt(1)) ? parseInt(t.charAt(0) + "1", 10) * parseFloat(s[0].substr(2)) : parseFloat(s[0])) * (-1 === t.indexOf("rad") ? 1 : X) - (l ? 0 : e), s.length && (r && (r[i] = e + a), -1 !== t.indexOf("short") && ((a %= n) !== a % 180 && (a = 0 > a ? a + n : a - n)), -1 !== t.indexOf("_cw") && 0 > a ? a = (a + 9999999999 * n) % n - (a / n | 0) * n : -1 !== t.indexOf("ccw") && a > 0 && (a = (a - 9999999999 * n) % n - (a / n | 0) * n)), o = e + a), 1e-6 > o && o > -1e-6 && (o = 0), o }, ft = { aqua: [0, 255, 255], lime: [0, 255, 0], silver: [192, 192, 192], black: [0, 0, 0], maroon: [128, 0, 0], teal: [0, 128, 128], blue: [0, 0, 255], navy: [0, 0, 128], white: [255, 255, 255], fuchsia: [255, 0, 255], olive: [128, 128, 0], yellow: [255, 255, 0], orange: [255, 165, 0], gray: [128, 128, 128], purple: [128, 0, 128], green: [0, 128, 0], red: [255, 0, 0], pink: [255, 192, 203], cyan: [0, 255, 255], transparent: [255, 255, 255, 0] }, ct = function (t, e, i) { return 255 * (1 > 6 * (t = 0 > t ? t + 1 : t > 1 ? t - 1 : t) ? e + (i - e) * t * 6 : .5 > t ? i : 2 > 3 * t ? e + (i - e) * (2 / 3 - t) * 6 : e) + .5 | 0 }, pt = a.parseColor = function (t, e) { var i, r, n, s, a, o, l, h, _, u, f; if (t) if ("number" == typeof t) i = [t >> 16, t >> 8 & 255, 255 & t]; else { if ("," === t.charAt(t.length - 1) && (t = t.substr(0, t.length - 1)), ft[t]) i = ft[t]; else if ("#" === t.charAt(0)) 4 === t.length && (r = t.charAt(1), n = t.charAt(2), s = t.charAt(3), t = "#" + r + r + n + n + s + s), i = [(t = parseInt(t.substr(1), 16)) >> 16, t >> 8 & 255, 255 & t]; else if ("hsl" === t.substr(0, 3)) if (i = f = t.match(y), e) { if (-1 !== t.indexOf("=")) return t.match(v) } else a = Number(i[0]) % 360 / 360, o = Number(i[1]) / 100, r = 2 * (l = Number(i[2]) / 100) - (n = .5 >= l ? l * (o + 1) : l + o - l * o), i.length > 3 && (i[3] = Number(i[3])), i[0] = ct(a + 1 / 3, r, n), i[1] = ct(a, r, n), i[2] = ct(a - 1 / 3, r, n); else i = t.match(y) || ft.transparent; i[0] = Number(i[0]), i[1] = Number(i[1]), i[2] = Number(i[2]), i.length > 3 && (i[3] = Number(i[3])) } else i = ft.black; return e && !f && (r = i[0] / 255, n = i[1] / 255, s = i[2] / 255, l = ((h = Math.max(r, n, s)) + (_ = Math.min(r, n, s))) / 2, h === _ ? a = o = 0 : (u = h - _, o = l > .5 ? u / (2 - h - _) : u / (h + _), a = h === r ? (n - s) / u + (s > n ? 6 : 0) : h === n ? (s - r) / u + 2 : (r - n) / u + 4, a *= 60), i[0] = a + .5 | 0, i[1] = 100 * o + .5 | 0, i[2] = 100 * l + .5 | 0), i }, mt = function (t, e) { var i, r, n, s = t.match(dt) || [], a = 0, o = ""; if (!s.length) return t; for (i = 0; i < s.length; i++)r = s[i], a += (n = t.substr(a, t.indexOf(r, a) - a)).length + r.length, 3 === (r = pt(r, e)).length && r.push(1), o += n + (e ? "hsla(" + r[0] + "," + r[1] + "%," + r[2] + "%," + r[3] : "rgba(" + r.join(",")) + ")"; return o + t.substr(a) }, dt = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b"; for (h in ft) dt += "|" + h + "\\b"; dt = new RegExp(dt + ")", "gi"), a.colorStringFilter = function (t) { var e, i = t[0] + " " + t[1]; dt.test(i) && (e = -1 !== i.indexOf("hsl(") || -1 !== i.indexOf("hsla("), t[0] = mt(t[0], e), t[1] = mt(t[1], e)), dt.lastIndex = 0 }, e.defaultStringFilter || (e.defaultStringFilter = a.colorStringFilter); var gt = function (t, e, i, r) { if (null == t) return function (t) { return t }; var n, s = e ? (t.match(dt) || [""])[0] : "", a = t.split(s).join("").match(T) || [], o = t.substr(0, t.indexOf(a[0])), l = ")" === t.charAt(t.length - 1) ? ")" : "", h = -1 !== t.indexOf(" ") ? " " : ",", _ = a.length, u = _ > 0 ? a[0].replace(y, "") : ""; return _ ? n = e ? function (t) { var e, f, c, p; if ("number" == typeof t) t += u; else if (r && z.test(t)) { for (p = t.replace(z, "|").split("|"), c = 0; c < p.length; c++)p[c] = n(p[c]); return p.join(",") } if (e = (t.match(dt) || [s])[0], c = (f = t.split(e).join("").match(T) || []).length, _ > c--) for (; ++c < _;)f[c] = i ? f[(c - 1) / 2 | 0] : a[c]; return o + f.join(h) + h + e + l + (-1 !== t.indexOf("inset") ? " inset" : "") } : function (t) { var e, s, f; if ("number" == typeof t) t += u; else if (r && z.test(t)) { for (s = t.replace(z, "|").split("|"), f = 0; f < s.length; f++)s[f] = n(s[f]); return s.join(",") } if (f = (e = t.match(T) || []).length, _ > f--) for (; ++f < _;)e[f] = i ? e[(f - 1) / 2 | 0] : a[f]; return o + e.join(h) + l } : function (t) { return t } }, yt = function (t) { return t = t.split(","), function (e, i, r, n, s, a, o) { var l, h = (i + "").split(" "); for (o = {}, l = 0; 4 > l; l++)o[t[l]] = h[l] = h[l] || h[(l - 1) / 2 >> 0]; return n.parse(e, o, s, a) } }, vt = (V._setPluginRatio = function (t) { this.plugin.setRatio(t); for (var e, i, r, n, s, a = this.data, o = a.proxy, l = a.firstMPT; l;)e = o[l.v], l.r ? e = l.r(e) : 1e-6 > e && e > -1e-6 && (e = 0), l.t[l.p] = e, l = l._next; if (a.autoRotate && (a.autoRotate.rotation = a.mod ? a.mod.call(this._tween, o.rotation, this.t, this._tween) : o.rotation), 1 === t || 0 === t) for (l = a.firstMPT, s = 1 === t ? "e" : "b"; l;
vendor: 6,042 bytes, line 32
32) { if ((i = l.t).type) { if (1 === i.type) { for (n = i.xs0 + i.s + i.xs1, r = 1; r < i.l; r++)n += i["xn" + r] + i["xs" + (r + 1)]; i[s] = n } } else i[s] = i.s + i.xs0; l = l._next } }, function (t, e, i, r, n) { this.t = t, this.p = e, this.v = i, this.r = n, r && (r._prev = this, this._next = r) }), Tt = (V._parseToProxy = function (t, e, i, r, n, s) { var a, o, l, h, _, u = r, f = {}, c = {}, p = i._transform, m = N; for (i._transform = null, N = e, r = _ = i.parse(t, e, r, n), N = m, s && (i._transform = p, u && (u._prev = null, u._prev && (u._prev._next = null))); r && r !== u;) { if (r.type <= 1 && (c[o = r.p] = r.s + r.c, f[o] = r.s, s || (h = new vt(r, "s", o, h, r.r), r.c = 0), 1 === r.type)) for (a = r.l; --a > 0;)l = "xn" + a, c[o = r.p + "_" + l] = r.data[l], f[o] = r[l], s || (h = new vt(r, l, o, h, r.rxp[l])); r = r._next } return { proxy: f, end: c, firstMPT: h, pt: _ } }, V.CSSPropTween = function (t, e, r, n, a, o, l, h, _, u, f) { this.t = t, this.p = e, this.s = r, this.c = n, this.n = l || e, t instanceof Tt || s.push(this.n), this.r = h ? "function" == typeof h ? h : Math.round : h, this.type = o || 0, _ && (this.pr = _, i = !0), this.b = void 0 === u ? r : u, this.e = void 0 === f ? r + n : f, a && (this._next = a, a._prev = this) }), xt = function (t, e, i, r, n, s) { var a = new Tt(t, e, i, r - i, n, -1, s); return a.b = i, a.e = a.xs0 = r, a }, bt = a.parseComplex = function (t, e, i, r, n, s, o, l, h, u) { i = i || s || "", "function" == typeof r && (r = r(g, d)), o = new Tt(t, e, 0, 0, o, u ? 2 : 1, null, !1, l, i, r), r += "", n && dt.test(r + i) && (r = [i, r], a.colorStringFilter(r), i = r[0], r = r[1]); var f, c, p, m, T, x, b, w, P, S, O, k, R, A = i.split(", ").join(",").split(" "), C = r.split(", ").join(",").split(" "), M = A.length, D = !1 !== _; for ((-1 !== r.indexOf(",") || -1 !== i.indexOf(",")) && (-1 !== (r + i).indexOf("rgb") || -1 !== (r + i).indexOf("hsl") ? (A = A.join(" ").replace(z, ", ").split(" "), C = C.join(" ").replace(z, ", ").split(" ")) : (A = A.join(" ").split(",").join(", ").split(" "), C = C.join(" ").split(",").join(", ").split(" ")), M = A.length), M !== C.length && (M = (A = (s || "").split(" ")).length), o.plugin = h, o.setRatio = u, dt.lastIndex = 0, f = 0; M > f; f++)if (m = A[f], T = C[f] + "", (w = parseFloat(m)) || 0 === w) o.appendXtra("", w, ht(T, w), T.replace(v, ""), !(!D || -1 === T.indexOf("px")) && Math.round, !0); else if (n && dt.test(m)) k = ")" + ((k = T.indexOf(")") + 1) ? T.substr(k) : ""), R = -1 !== T.indexOf("hsl") && W, S = T, m = pt(m, R), T = pt(T, R), (P = m.length + T.length > 6) && !W && 0 === T[3] ? (o["xs" + o.l] += o.l ? " transparent" : "transparent", o.e = o.e.split(C[f]).join("transparent")) : (W || (P = !1), R ? o.appendXtra(S.substr(0, S.indexOf("hsl")) + (P ? "hsla(" : "hsl("), m[0], ht(T[0], m[0]), ",", !1, !0).appendXtra("", m[1], ht(T[1], m[1]), "%,", !1).appendXtra("", m[2], ht(T[2], m[2]), P ? "%," : "%" + k, !1) : o.appendXtra(S.substr(0, S.indexOf("rgb")) + (P ? "rgba(" : "rgb("), m[0], T[0] - m[0], ",", Math.round, !0).appendXtra("", m[1], T[1] - m[1], ",", Math.round).appendXtra("", m[2], T[2] - m[2], P ? "," : k, Math.round), P && (m = m.length < 4 ? 1 : m[3], o.appendXtra("", m, (T.length < 4 ? 1 : T[3]) - m, k, !1))), dt.lastIndex = 0; else if (x = m.match(y)) { if (!(b = T.match(v)) || b.length !== x.length) return o; for (p = 0, c = 0; c < x.length; c++)O = x[c], S = m.indexOf(O, p), o.appendXtra(m.substr(p, S - p), Number(O), ht(b[c], O), "", !(!D || "px" !== m.substr(S + O.length, 2)) && Math.round, 0 === c), p = S + O.length; o["xs" + o.l] += m.substr(p) } else o["xs" + o.l] += o.l || o["xs" + o.l] ? " " + T : T; if (-1 !== r.indexOf("=") && o.data) { for (k = o.xs0 + o.data.s, f = 1; f < o.l; f++)k += o["xs" + f] + o.data["xn" + f]; o.e = k + o["xs" + f] } return o.l || (o.type = -1, o.xs0 = o.e), o.xfirst || o }, wt = 9; for ((h = Tt.prototype).l = h.pr = 0; --wt > 0;)h["xn" + wt] = 0, h["xs" + wt] = ""; h.xs0 = "", h._next = h._prev = h.xfirst = h.data = h.plugin = h.setRatio = h.rxp = null, h.appendXtra = function (t, e, i, r, n, s) { var a = this, o = a.l; return a["xs" + o] += s && (o || a["xs" + o]) ? " " + t : t || "", i || 0 === o || a.plugin ? (a.l++, a.type = a.setRatio ? 2 : 1, a["xs" + a.l] = r || "", o > 0 ? (a.data["xn" + o] = e + i, a.rxp["xn" + o] = n, a["xn" + o] = e, a.plugin || (a.xfirst = new Tt(a, "xn" + o, e, i, a.xfirst || a, 0, a.n, n, a.pr), a.xfirst.xs0 = 0), a) : (a.data = { s: e + i }, a.rxp = {}, a.s = e, a.c = i, a.r = n, a)) : (a["xs" + o] += e + (r || ""), a) }; var Pt = function (t, e) { e = e || {}, this.p = e.prefix && Q(t) || t, l[t] = l[this.p] = this, this.format = e.formatter || gt(e.defaultValue, e.color, e.collapsible, e.multi), e.parser && (this.parse = e.parser), this.clrs = e.color, this.multi = e.multi, this.keyword = e.keyword, this.dflt = e.defaultValue, this.allowFunc = e.allowFunc, this.pr = e.priority || 0 }, St = V._registerComplexSpecialProp = function (t, e, i) { "object" != typeof e && (e = { parser: i }); var r, n = t.split(","), s = e.defaultValue; for (i = i || [s], r = 0; r < n.length; r++)e.prefix = 0 === r && e.prefix, e.defaultValue = i[r] || s, new Pt(n[r], e) }, Ot = V._registerPluginProp = function (t) { if (!l[t]) { var e = t.charAt(0).toUpperCase() + t.substr(1) + "Plugin"; St(t, { parser: function (t, i, r, n, s, a, h) { var _ = o.com.greensock.plugins[e]; return _ ? (_._cssRegister(), l[r].parse(t, i, r, n, s, a, h)) : (Z("Error: " + e + " js file not loaded."), s) } }) } }; (h = Pt.prototype).parseComplex = function (t, e, i, r, n, s) { var a, o, l, h, _, u, f = this.keyword; if (this.multi && (z.test(i) || z.test(e) ? (o = e.replace(z, "|").split("|"), l = i.replace(z, "|").split("|")) : f && (o = [e], l = [i])), l) { for (h = l.length > o.length ? l.length : o.length, a = 0; h > a; a++)e = o[a] = o[a] || this.dflt, i = l[a] = l[a] || this.dflt, f && ((_ = e.indexOf(f)) !== (u = i.indexOf(f)) && (-1 === u ? o[a] = o[a].split(f).join("") : -1 
32=== _ && (o[a] += " " + f))); e = o.join(", "), i = l.join(", ") } return bt(t, this.p, e, i, this.clrs, this.dflt, r, this.pr, n, s) }, h.parse = function (t, e, i, r, s, a, o) { return this.parseComplex(t.style, this.format(tt(t, this.p, n, !1, this.dflt)), this.format(e), s, a) }, a.registerSpecialProp = function (t, e, i) { St(t, { parser: function (t, r, n, s, a, o, l) { var h = new Tt(t, n, 0, 0, a, 2, n, !1, i); return h.plugin = o, h.setRatio = e(t, r, s._tween, n), h }, priority: i }) }, a.useSVGTransformAttr = !0; var kt, Rt = "scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","), At = Q("transform"), Ct = H + "transform", Mt = Q("transformOrigin"), Dt = null !== Q("perspective"), Ft = V.Transform = function () { this.perspective = parseFloat(a.defaultTransformPerspective) || 0, this.force3D = !(!1 === a.defaultForce3D || !Dt) && (a.defaultForce3D || "auto") }, zt = _gsScope.SVGElement, Et = function (t, e, i) { var r, n = B.createElementNS("http://www.w3.org/2000/svg", t), s = /([a-z])([A-Z])/g; for (r in i) n.setAttributeNS(null, r.replace(s, "$1-$2").toLowerCase(), i[r]); return e.appendChild(n), n }, It = B.documentElement || {}, Xt = function () { var t, e, i, r = m || /Android/i.test(q) && !_gsScope.chrome; return B.createElementNS && !r && (t = Et("svg", It), i = (e = Et("rect", t, { width: 100, height: 50, x: 100 })).getBoundingClientRect().width, e.style[Mt] = "50% 50%", e.style[At] = "scaleX(0.5)", r = i === e.getBoundingClientRect().width && !(c && Dt), It.removeChild(t)), r }(), Nt = function (t, e, i, r, n, s) { var o, l, h, _, u, f, c, p, m, d, g, y, v, T, x = t._gsTransform, b = jt(t, !0); x && (v = x.xOrigin, T = x.yOrigin), (!r || (o = r.split(" ")).length < 2) && (0 === (c = t.getBBox()).x && 0 === c.y && c.width + c.height === 0 && (c = { x: parseFloat(t.hasAttribute("x") ? t.getAttribute("x") : t.hasAttribute("cx") ? t.getAttribute("cx") : 0) || 0, y: parseFloat(t.hasAttribute("y") ? t.getAttribute("y") : t.hasAttribute("cy") ? t.getAttribute("cy") : 0) || 0, width: 0, height: 0 }), o = [(-1 !== (e = lt(e).split(" "))[0].indexOf("%") ? parseFloat(e[0]) / 100 * c.width : parseFloat(e[0])) + c.x, (-1 !== e[1].indexOf("%") ? parseFloat(e[1]) / 100 * c.height : parseFloat(e[1])) + c.y]), i.xOrigin = _ = parseFloat(o[0]), i.yOrigin = u = parseFloat(o[1]), r && b !== Yt && (f = b[0], c = b[1], p = b[2], m = b[3], d = b[4], g = b[5], (y = f * m - c * p) && (l = _ * (m / y) + u * (-p / y) + (p * g - m * d) / y, h = _ * (-c / y) + u * (f / y) - (f * g - c * d) / y, _ = i.xOrigin = o[0] = l, u = i.yOrigin = o[1] = h)), x && (s && (i.xOffset = x.xOffset, i.yOffset = x.yOffset, x = i), n || !1 !== n && !1 !== a.defaultSmoothOrigin ? (l = _ - v, h = u - T, x.xOffset += l * b[0] + h * b[2] - l, x.yOffset += l * b[1] + h * b[3] - h) : x.xOffset = x.yOffset = 0), s || t.setAttribute("data-svg-origin", o.join(" ")) }, Lt = function (t) { var e, i = Y("svg", this.ownerSVGElement && this.ownerSVGElement.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = this.parentNode, n = this.nextSibling, s = this.style.cssText; if (It.appendChild(i), i.appendChild(this), this.style.display = "block", t) try { e = this.getBBox(), this._originalGetBBox = this.getBBox, this.getBBox = Lt } catch (t) { } else this._originalGetBBox && (e = this._originalGetBBox()); return n ? r.insertBefore(this, n) : r.appendChild(this), It.removeChild(i), this.style.cssText = s, e }, Bt = function (t) { return !(!zt || !t.getCTM || t.parentNode && !t.ownerSVGElement || !function (t) { try { return t.getBBox() } catch (e) { return Lt.call(t, !0) } }(t)) }, Yt = [1, 0, 0, 1, 0, 0], jt = function (t, e) { var i, r, n, s, a, o, l, h = t._gsTransform || new Ft, _ = t.style; if (At ? r = tt(t, Ct, null, !0) : t.currentStyle && (r = (r = t.currentStyle.filter.match(D)) && 4 === r.length ? [r[0].substr(4), Number(r[2].substr(4)), Number(r[1].substr(4)), r[3].substr(4), h.x || 0, h.y || 0].join(",") : ""), i = !r || "none" === r || "matrix(1, 0, 0, 1, 0, 0)" === r, At && i && !t.offsetParent && (s = _.display, _.display = "block", (l = t.parentNode) && t.offsetParent || (a = 1, o = t.nextSibling, It.appendChild(t)), i = !(r = tt(t, Ct, null, !0)) || "none" === r || "matrix(1, 0, 0, 1, 0, 0)" === r, s ? _.display = s : Gt(_, "display"), a && (o ? l.
32insertBefore(t, o) : l ? l.appendChild(t) : It.removeChild(t))), (h.svg || t.getCTM && Bt(t)) && (i && -1 !== (_[At] + "").indexOf("matrix") && (r = _[At], i = 0), n = t.getAttribute("transform"), i && n && (r = "matrix(" + (n = t.transform.baseVal.consolidate().matrix).a + "," + n.b + "," + n.c + "," + n.d + "," + n.e + "," + n.f + ")", i = 0)), i) return Yt; for (n = (r || "").match(y) || [], wt = n.length; --wt > -1;)s = Number(n[wt]), n[wt] = (a = s - (s |= 0)) ? (1e5 * a + (0 > a ? -.5 : .5) | 0) / 1e5 + s : s; return e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n }, Ut = V.getTransform = function (t, i, r, n) { if (t._gsTransform && r && !n) return t._gsTransform; var s, o, l, h, _, u, f = r && t._gsTransform || new Ft, c = f.scaleX < 0, p = 2e-5, m = 1e5, d = Dt && (parseFloat(tt(t, Mt, i, !1, "0 0 0").split(" ")[2]) || f.zOrigin) || 0, g = parseFloat(a.defaultTransformPerspective) || 0; if (f.svg = !(!t.getCTM || !Bt(t)), f.svg && (Nt(t, tt(t, Mt, i, !1, "50% 50%") + "", f, t.getAttribute("data-svg-origin")), kt = a.useSVGTransformAttr || Xt), (s = jt(t)) !== Yt) { if (16 === s.length) { var y, v, T, x, b, w = s[0], P = s[1], S = s[2], O = s[3], k = s[4], R = s[5], A = s[6], C = s[7], M = s[8], D = s[9], F = s[10], z = s[12], E = s[13], I = s[14], N = s[11], L = Math.atan2(A, F); f.zOrigin && (z = M * (I = -f.zOrigin) - s[12], E = D * I - s[13], I = F * I + f.zOrigin - s[14]), f.rotationX = L * X, L && (y = k * (x = Math.cos(-L)) + M * (b = Math.sin(-L)), v = R * x + D * b, T = A * x + F * b, M = k * -b + M * x, D = R * -b + D * x, F = A * -b + F * x, N = C * -b + N * x, k = y, R = v, A = T), L = Math.atan2(-S, F), f.rotationY = L * X, L && (v = P * (x = Math.cos(-L)) - D * (b = Math.sin(-L)), T = S * x - F * b, D = P * b + D * x, F = S * b + F * x, N = O * b + N * x, w = y = w * x - M * b, P = v, S = T), L = Math.atan2(P, w), f.rotation = L * X, L && (y = w * (x = Math.cos(L)) + P * (b = Math.sin(L)), v = k * x + R * b, T = M * x + D * b, P = P * x - w * b, R = R * x - k * b, D = D * x - M * b, w = y, k = v, M = T), f.rotationX && Math.abs(f.rotationX) + Math.abs(f.rotation) > 359.9 && (f.rotationX = f.rotation = 0, f.rotationY = 180 - f.rotationY), L = Math.atan2(k, R), f.scaleX = (Math.sqrt(w * w + P * P + S * S) * m + .5 | 0) / m, f.scaleY = (Math.sqrt(R * R + A * A) * m + .5 | 0) / m, f.scaleZ = (Math.sqrt(M * M + D * D + F * F) * m + .5 | 0) / m, w /= f.scaleX, k /= f.scaleY, P /= f.scaleX, R /= f.scaleY, Math.abs(L) > p ? (f.skewX = L * X, k = 0, "simple" !== f.skewType && (f.scaleY *= 1 / Math.cos(L))) : f.skewX = 0, f.perspective = N ? 1 / (0 > N ? -N : N) : 0, f.x = z, f.y = E, f.z = I, f.svg && (f.x -= f.xOrigin - (f.xOrigin * w - f.yOrigin * k), f.y -= f.yOrigin - (f.yOrigin * P - f.xOrigin * R)) } else if (!Dt || n || !s.length || f.x !== s[4] || f.y !== s[5] || !f.rotationX && !f.rotationY) { var B = s.length >= 6, Y = B ? s[0] : 1, j = s[1] || 0, U = s[2] || 0, V = B ? s[3] : 1; f.x = s[4] || 0, f.y = s[5] || 0, l = Math.sqrt(Y * Y + j * j), h = Math.sqrt(V * V + U * U), _ = Y || j ? Math.atan2(j, Y) * X : f.rotation || 0, u = U || V ? Math.atan2(U, V) * X + _ : f.skewX || 0, f.scaleX = l, f.scaleY = h, f.rotation = _, f.skewX = u, Dt && (f.rotationX = f.rotationY = f.z = 0, f.perspective = g, f.scaleZ = 1), f.svg && (f.x -= f.xOrigin - (f.xOrigin * Y + f.yOrigin * U), f.y -= f.yOrigin - (f.xOrigin * j + f.yOrigin * V)) } for (o in Math.abs(f.skewX) > 90 && Math.abs(f.skewX) < 270 && (c ? (f.scaleX *= -1, f.skewX += f.rotation <= 0 ? 180 : -180, f.rotation += f.rotation <= 0 ? 180 : -180) : (f.scaleY *= -1, f.skewX += f.skewX <= 0 ? 180 : -180)), f.zOrigin = d, f) f[o] < p && f[o] > -p && (f[o] = 0) } return r && (t._gsTransform = f, f.svg && (kt && t.style[At] ? e.delayedCall(.001, function () { Gt(t.style, At) }) : !kt && t.getAttribute("transform") && e.delayedCall(.001, function () { t.removeAttribute("transform") }))), f }, Vt = function (t) { var e, i, r = this.data, n = -r.rotation * I, s = n + r.skewX * I, a = 1e5, o = (Math.cos(n) * r.scaleX * a | 0) / a, l = (Math.sin(n) * r.scaleX * a | 0) / a, h = (Math.sin(s) * -r.scaleY * a | 0) / a, _ = (Math.cos(s) * r.scaleY * a | 0) / a, u = this.t.style, f = this.t.currentStyle; if (f) { i = l, l = -h, h = -i, e = f.filter, u.filter = ""; var c, p, d = this.t.offsetWidth, g = this.t.offsetHeight, y = "absolute" !== f.position, v = "progid:DXImageTransform.Microsoft.Matrix(M11=" + o + ", M12=" + l + ", M21=" + h + ", M22=" + _, T = r.x + d * r.xPercent / 100, x = r.y + g * r.yPercent / 100; if (null != r.ox && (T += (c = (r.oxp ? d * r.ox * .01 : r.ox) - d / 2) - (c * o + (p = (r.oyp ? g * r.oy * .01 : r.oy) - g / 2) * l), x += p - (c * h + p * _)), y ? v += ", Dx=" + ((c = d / 2) - (c * o + (p = g / 2) * l) + T) + ", Dy=" + (p - (c * h + p * _) + x) + ")" : v += ", sizingMethod='auto expand')", -1 !== e.indexOf("DXImageTransform.Microsoft.Matrix(") ? u.filter = e.replace(F, v) : u.filter = v + " " + e, (0 === t || 1 === t) && 1 === o && 0 === l && 0 === h && 1 === _ && (y && -1 === v.indexOf("Dx=0, Dy=0") || w.test(e) && 100 !== parseFloat(RegExp.$1) || -1 === e.indexOf(e.indexOf("Alpha")) && u.removeAttribute("filter")), !y) { var P, S, O, k = 8 > m ? 1 : -1; for (c = r.ieOffsetX || 0, p = r.ieOffsetY || 0, r.ieOffsetX = Math.round((d - ((0 > o ? -o : o) * d + (0 > l ? -l : l) * g)) / 2 + T), r.ieOffsetY = Math.round((g - ((0 > _ ? -_ : _) * g + (0 > h ? -h : h) * d)) / 2 + x), wt = 0; 4 > wt; wt++)O = (i = -1 !== (P = f[S = at[wt]]).indexOf("px") ? parseFloat(P) : et(this.t, S, parseFloat(P), P.replace(b, "")) || 0) !== r[S] ? 2 > wt ? -r.ieOffsetX : -r.ieOffsetY : 2 > wt ? c - r.ieOffsetX : p - r.ieOffsetY, u[S] = (r[S] = Math.round(i - O * (0 === wt || 2 === wt ? 1 : k))) + "px" } } }, qt = V.set3DTransformRatio = V.setTransformRatio = function (t) { var e, i, r, n, s, a, o, l, h, _, u, f, p, m, d, g, y, v, T, x, b, w, P, S = this.data, O = this.t.style, k = S.rotation, R = S.rotationX, A = S.rotationY, C = S.scaleX, M = S.scaleY, D = S.scaleZ, F = S.x, z = S.y, E = S.z, X = S.svg, N = S.perspective, L = S.force3D, B = S.skewY, Y = S.skewX; if (B && (Y += B, k += B), !((1 !== t && 0 !== t || "auto" !== L || this.tween._totalTime !== this.tween._totalDuration && this.tween._totalTime) && L || E || N || A || R || 1 !== D) || kt && X || !Dt) k || Y || X ? (k *= I, w = Y * I, P = 1e5, i = Math.cos(k) * C, s = Math.sin(k) * C, r = Math.sin(k - w) * -M, a = Math.cos(k - w) * M, w && "simple" === S.skewType && (e = Math.tan(w - B * I), r *= e = Math.sqrt(1 + e * e), a *= e, B && (e = Math.tan(B * I), i *= e = Math.sqrt(1 + e * e), s *= e)), X && (F += S.xOrigin - (S.xOrigin * i + S.yOrigin * r) + S.xOffset, z += S.yOrigin - (S.xOrigin * s + S.yOrigin * a) + S.yOffset, kt && (S.xPercent || S.yPercent) && (d = this.t.getBBox(), F += .01 * S.xPercent * d.width, z += .01 * S.yPercent * d.height), (d = 1e-6) > F && F > -d && (F = 0), d > z && z > -d && (z = 0)), T = (i * P | 0) / P + "," + (s * P | 0) / P + "," + (r * P | 0) / P + "," + (a * P | 0) / P + "," + F + "," + z + ")", X && kt ? this.t.setAttribute("transform", "matrix(" 
vendor: 32,127 bytes, line 32
32+ T) : O[At] = (S.xPercent || S.yPercent ? "translate(" + S.xPercent + "%," + S.yPercent + "%) matrix(" : "matrix(") + T) : O[At] = (S.xPercent || S.yPercent ? "translate(" + S.xPercent + "%," + S.yPercent + "%) matrix(" : "matrix(") + C + ",0,0," + M + "," + F + "," + z + ")"; else { if (c && ((d = 1e-4) > C && C > -d && (C = D = 2e-5), d > M && M > -d && (M = D = 2e-5), !N || S.z || S.rotationX || S.rotationY || (N = 0)), k || Y) k *= I, g = i = Math.cos(k), y = s = Math.sin(k), Y && (k -= Y * I, g = Math.cos(k), y = Math.sin(k), "simple" === S.skewType && (e = Math.tan((Y - B) * I), g *= e = Math.sqrt(1 + e * e), y *= e, S.skewY && (e = Math.tan(B * I), i *= e = Math.sqrt(1 + e * e), s *= e))), r = -y, a = g; else { if (!(A || R || 1 !== D || N || X)) return void (O[At] = (S.xPercent || S.yPercent ? "translate(" + S.xPercent + "%," + S.yPercent + "%) translate3d(" : "translate3d(") + F + "px," + z + "px," + E + "px)" + (1 !== C || 1 !== M ? " scale(" + C + "," + M + ")" : "")); i = a = 1, r = s = 0 } _ = 1, n = o = l = h = u = f = 0, p = N ? -1 / N : 0, m = S.zOrigin, d = 1e-6, x = ",", b = "0", (k = A * I) && (g = Math.cos(k), l = -(y = Math.sin(k)), u = p * -y, n = i * y, o = s * y, _ = g, p *= g, i *= g, s *= g), (k = R * I) && (e = r * (g = Math.cos(k)) + n * (y = Math.sin(k)), v = a * g + o * y, h = _ * y, f = p * y, n = r * -y + n * g, o = a * -y + o * g, _ *= g, p *= g, r = e, a = v), 1 !== D && (n *= D, o *= D, _ *= D, p *= D), 1 !== M && (r *= M, a *= M, h *= M, f *= M), 1 !== C && (i *= C, s *= C, l *= C, u *= C), (m || X) && (m && (F += n * -m, z += o * -m, E += _ * -m + m), X && (F += S.xOrigin - (S.xOrigin * i + S.yOrigin * r) + S.xOffset, z += S.yOrigin - (S.xOrigin * s + S.yOrigin * a) + S.yOffset), d > F && F > -d && (F = b), d > z && z > -d && (z = b), d > E && E > -d && (E = 0)), T = S.xPercent || S.yPercent ? "translate(" + S.xPercent + "%," + S.yPercent + "%) matrix3d(" : "matrix3d(", T += (d > i && i > -d ? b : i) + x + (d > s && s > -d ? b : s) + x + (d > l && l > -d ? b : l), T += x + (d > u && u > -d ? b : u) + x + (d > r && r > -d ? b : r) + x + (d > a && a > -d ? b : a), R || A || 1 !== D ? (T += x + (d > h && h > -d ? b : h) + x + (d > f && f > -d ? b : f) + x + (d > n && n > -d ? b : n), T += x + (d > o && o > -d ? b : o) + x + (d > _ && _ > -d ? b : _) + x + (d > p && p > -d ? b : p) + x) : T += ",0,0,0,0,1,0,", T += F + x + z + x + E + x + (N ? 1 + -E / N : 1) + ")", O[At] = T } }; (h = Ft.prototype).x = h.y = h.z = h.skewX = h.skewY = h.rotation = h.rotationX = h.rotationY = h.zOrigin = h.xPercent = h.yPercent = h.xOffset = h.yOffset = 0, h.scaleX = h.scaleY = h.scaleZ = 1, St("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", { parser: function (t, e, i, r, s, o, l) { if (r._lastParsedTransform === l) return s; r._lastParsedTransform = l; var h = l.scale && "function" == typeof l.scale ? l.scale : 0; h && (l.scale = h(g, t)); var _, u, f, c, p, m, y, v, T, x = t._gsTransform, b = t.style, w = Rt.length, P = l, S = {}, O = "transformOrigin", k = Ut(t, n, !0, P.parseTransform), R = P.transform && ("function" == typeof P.transform ? P.transform(g, d) : P.transform); if (k.skewType = P.skewType || k.skewType || a.defaultSkewType, r._transform = k, "rotationZ" in P && (P.rotation = P.rotationZ), R && "string" == typeof R && At) (u = j.style)[At] = R, u.display = "block", u.position = "absolute", -1 !== R.indexOf("%") && (u.width = tt(t, "width"), u.height = tt(t, "height")), B.body.appendChild(j), _ = Ut(j, null, !1), "simple" === k.skewType && (_.scaleY *= Math.cos(_.skewX * I)), k.svg && (m = k.xOrigin, y = k.yOrigin, _.x -= k.xOffset, _.y -= k.yOffset, (P.transformOrigin || P.svgOrigin) && (R = {}, Nt(t, lt(P.transformOrigin), R, P.svgOrigin, P.smoothOrigin, !0), m = R.xOrigin, y = R.yOrigin, _.x -= R.xOffset - k.xOffset, _.y -= R.yOffset - k.yOffset), (m || y) && (v = jt(j, !0), _.x -= m - (m * v[0] + y * v[2]), _.y -= y - (m * v[1] + y * v[3]))), B.body.removeChild(j), _.perspective || (_.perspective = k.perspective), null != P.xPercent && (_.xPercent = _t(P.xPercent, k.xPercent)), null != P.yPercent && (_.yPercent = _t(P.yPercent, k.yPercent)); else if ("object" == typeof P) { if (_ = { scaleX: _t(null != P.scaleX ? P.scaleX : P.scale, k.scaleX), scaleY: _t(null != P.scaleY ? P.scaleY : P.scale, k.scaleY), scaleZ: _t(P.scaleZ, k.scaleZ), x: _t(P.x, k.x), y: _t(P.y, k.y), z: _t(P.z, k.z), xPercent: _t(P.xPercent, k.xPercent), yPercent: _t(P.yPercent, k.yPercent), perspective: _t(P.transformPerspective, k.perspective) }, null != (p = P.directionalRotation)) if ("object" == typeof p) for (u in p) P[u] = p[u]; else P.rotation = p; "string" == typeof P.x && -1 !== P.x.indexOf("%") && (_.x = 0, _.xPercent = _t(P.x, k.xPercent)), "string" == typeof P.y && -1 !== P.y.indexOf("%") && (_.y = 0, _.yPercent = _t(P.y, k.yPercent)), _.rotation = ut("rotation" in P ? P.rotation : "shortRotation" in P ? P.shortRotation + "_short" : k.rotation, k.rotation, "rotation", S), Dt && (_.rotationX = ut("rotationX" in P ? P.rotationX : "shortRotationX" in P ? P.shortRotationX + "_short" : k.rotationX || 0, k.rotationX, "rotationX", S), _.rotationY = ut("rotationY" in P ? P.rotationY : "shortRotationY" in P ? P.shortRotationY + "_short" : k.rotationY || 0, k.rotationY, "rotationY", S)), _.skewX = ut(P.skewX, k.skewX), _.skewY = ut(P.skewY, k.skewY) } for (Dt && null != P.force3D && (k.force3D = P.force3D, c = !0), (f = k.force3D || k.z || k.rotationX || k.rotationY || _.z || _.rotationX || _.rotationY || _.perspective) || null == P.scale || (_.scaleZ = 1); --w > -1;)((R = _[T = Rt[w]] - k[T]) > 1e-6 || -1e-6 > R || null != P[T] || null != N[T]) && (c = !0, s = new Tt(k, T, k[T], R, s), T in S && (s.e = S[T]), s.xs0 = 0, s.plugin = o, r._overwriteProps.push(s.n)); return R = "function" == typeof P.transformOrigin ? P.transformOrigin(g, d) : P.transformOrigin, k.svg && (R || P.svgOrigin) && (m = k.xOffset, y = k.yOffset, Nt(t, lt(R), _, P.svgOrigin, P.smoothOrigin), s = xt(k, "xOrigin", (x ? k : _).xOrigin, _.xOrigin, s, O), s = xt(k, "yOrigin", (x ? k : _).yOrigin, _.yOrigin, s, O), (m !== k.xOffset || y !== k.yOffset) && (s = xt(k, "xOffset", x ? m : k.xOffset, k.xOffset, s, O), s = xt(k, "yOffset", x ? y : k.yOffset, k.yOffset, s, O)), R = "0px 0px"), (R || Dt && f && k.zOrigin) && (At ? (c = !0, T = Mt, R || (R = (R = (tt(t, T, n, !1, "50% 50%") + "").split(" "))[0] + " " + R[1] + " " + k.zOrigin + "px"), R += "", (s = new Tt(b, T, 0, 0, s, -1, O)).b = b[T], s.plugin = o, Dt ? (u = k.zOrigin, R = R.split(" "), k.zOrigin = (R.length > 2 ? parseFloat(R[2]) : u) || 0, s.xs0 = s.e = R[0] + " " + (R[1] || "50%") + " 0px", (s = new Tt(k, "zOrigin", 0, 0, s, -1, s.n)).b = u, s.xs0 = s.e = k.zOrigin) : s.xs0 = s.e = R) : lt(R + "", k)), c && (r._transformType = k.svg && kt || !f && 3 !== this._transformType ? 2 : 3), h && (l.scale = h), s }, allowFunc: !0, prefix: !0 }), St("boxShadow", { defaultValue: "0px 0px 0px 0px #999", prefix: !0, color: !0, multi: !0, keyword: "inset" }), St("clipPath", { defaultValue: "inset(0px)", prefix: !0, multi: !0, formatter: gt("inset(0px 0px 0px 0px)", !1, !0) }), St("borderRadius", { defaultValue: "0px", parser: function (t, e, i, s, a, o) { e = this.format(e); var l, h, _, u, f, c, p, m, d, g, y, v, T, x, b, w, P = ["borderTopLeftRadius", "borderTopRightRadius", "borderBottomRightRadius", "borderBottomLeftRadius"], S = t.style; for (d = parseFloat(t.offsetWidth), g = parseFloat(t.offsetHeight), l = e.split(" "), h = 0; h < P.length; h++)this.p.indexOf("border") && (P[h] = Q(P[h])), -1 !== (f = u = tt(t, P[h], n, !1, "0px")).indexOf(" ") && (u = f.split(" "), f = u[0], u = u[1]), c = _ = l[h], p = parseFloat(f), v = f.substr((p + "").length), (T = "=" === c.charAt(1)) ? (m = parseInt(c.charAt(0) + "1", 10), c = c.substr(2), m *= parseFloat(c), y = c.substr((m + "").length - (0 > m ? 1 : 0)) || "") : (m = parseFloat(c), y = c.substr((m + "").length)), "" === y && (y = r[i] || v), y !== v && (x = et(t, "borderLeft", p, v), b = et(t, "borderTop", p, v), "%" === y ? (f = x / d * 100 + "%", u = b / g * 100 + "%") : "em" === y ? (f = x / (w = et(t, "borderLeft", 1, "em")) + "em", u = b / w + "em") : (f = x + "px", u = b + "px"), T && (c = parseFloat(f) + m + y, _ = parseFloat(u) + m + y)), a = bt(S, P[h], f + " " + u, c + " " + _, !1, "0px", a); return a }, prefix: !0, formatter: gt("0px 0px 0px 0px", !1, !0) }), St("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius", { defaultValue: "0px", parser: function (t, e, i, r, s, a) { return bt(t.style, i, this.format(tt(t, i, n, !1, "0px 0px")), this.format(e), !1, "0px", s) }, prefix: !0, formatter: gt("0px 0px", !1, !0) }), St("backgroundPosition", { defaultValue: "0 0", parser: function (t, e, i, r, s, a) { var o, l, h, _, u, f, c = "background-position", p = n || J(t), d = this.format((p ? m ? p.getPropertyValue(c + "-x") + " " + p.getPropertyValue(c + "-y") : p.getPropertyValue(c) : t.currentStyle.backgroundPositionX + " " + t.currentStyle.backgroundPositionY) || "0 0"), g = this.format(e); if (-1 !== d.indexOf("%") != (-1 !== g.indexOf("%")) && g.split(",").length < 2 && ((f = tt(t, "backgroundImage").replace(A, "")) && "none" !== f)) { for (o = d.split(" "), l = g.split(" "), U.setAttribute("src", f), h = 2; --h > -1;)(_ = -1 !== (d = o[h]).indexOf("%")) !== (-1 !== l[h].indexOf("%")) && (u = 0 === h ? t.offsetWidth - U.width : t.offsetHeight - U.height, o[h] = _ ? parseFloat(d) / 100 * u + "px" : parseFloat(d) / u * 100 + "%"); d = o.join(" ") } return this.parseComplex(t.style, d, g, s, a) }, formatter: lt }), St("backgroundSize", { defaultValue: "0 0", formatter: function (t) { return "co" === (t += "").substr(0, 2) ? t : lt(-1 === t.indexOf(" ") ? t + " " + t : t) } }), St("perspective", { defaultValue: "0px", prefix: !0 }), St("perspectiveOrigin", { defaultValue: "50% 50%", prefix: !0 }), St("transformStyle", { prefix: !0 }), St("backfaceVisibility", { prefix: !0 }), St("userSelect", { prefix: !0 }), St("margin", { parser: yt("marginTop,marginRight,marginBottom,marginLeft") }), St("padding", { parser: yt("paddingTop,paddingRight,paddingBottom,paddingLeft") }), St("clip", { defaultValue: "rect(0px,0px,0px,0px)", parser: function (t, e, i, r, s, a) { var o, l, h; return 9 > m ? (l = t.currentStyle, h = 8 > m ? " " : ",", o = "rect(" + l.clipTop + h + l.clipRight + h + l.clipBottom + h + l.clipLeft + ")", e = this.format(e).split(",").join(h)) : (o = this.format(tt(t, this.p, n, !1, this.dflt)), e = this.format(e)), this.parseComplex(t.style, o, e, s, a) } }), St("textShadow", { defaultValue: "0px 0px 0px #999", color: !0, multi: !0 }), St("autoRound,strictUnits", { parser: function (t, e, i, r, n) { return n } }), St("border", { defaultValue: "0px solid #000", parser: function (t, e, i, r, s, a) { var o = tt(t, "borderTopWidth", n, !1, "0px"), l = this.format(e).split(" "), h = l[0].replace(b, ""); return "px" !== h && (o = parseFloat(o) / et(t, "borderTopWidth", 1, h) + h), this.parseComplex(t.style, this.format(o + " " + tt(t, "borderTopStyle", n, !1, "solid") + " " + tt(t, "borderTopColor", n, !1, "#000")), l.join(" "), s, a) }, color: !0, formatter: function (t) { var e = t.split(" "); return e[0] + " " + (e[1] || "solid") + " " + (t.match(dt) || ["#000"])[0] } }), St("borderWidth", { parser: yt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth") }), St("float,cssFloat,styleFloat", { parser: function (t, e, i, r, n, s) { var a = t.style, o = "cssFloat" in a ? "cssFloat" : "styleFloat"; return new Tt(a, o, 0, 0, n, -1, i, !1, 0, a[o], e) } }); var Wt = function (t) { var e, i = this.t, r = i.filter || tt(this.data, "filter") || "", n = this.s + this.c * t | 0; 100 === n && (-1 === r.indexOf("atrix(") && -1 === r.indexOf("radient(") && -1 === r.indexOf("oader(") ? (i.removeAttribute("filter"), e = !tt(this.data, "filter")) : (i.filter = r.replace(S, ""), e = !0)), e || (this.xn1 && (i.filter = r = r || "alpha(opacity=" + n + ")"), -1 === r.indexOf("pacity") ? 0 === n && this.xn1 || (i.filter = r + " alpha(opacity=" + n + ")") : i.filter = r.replace(w, "opacity=" + n)) }; St("opacity,alpha,autoAlpha", { defaultValue: "1", parser: function (t, e, i, r, s, a) { var o = parseFloat(tt(t, "opacity", n, !1, "1")), l = t.style, h = "autoAlpha" === i; return "string" == typeof e && "=" === e.charAt(1) && (e = ("-" === e.charAt(0) ? -1 : 1) * parseFloat(e.substr(2)) + o), h && 1 === o && "hidden" === tt(t, "visibility", n) && 0 !== e && (o = 0), W ? s = new Tt(l, "opacity", o, e - o, s) : ((s = new Tt(l, "opacity", 100 * o, 100 * (e - o), s)).xn1 = h ? 1 : 0, l.zoom = 1, s.type = 2, s.b = "alpha(opacity=" + s.s + ")", s.e = "alpha(opacity=" + (s.s + s.c) + ")", s.data = t, s.plugin = a, s.setRatio = Wt), h && ((s = new Tt(l, "visibility", 0, 0, s, -1, null, !1, 0, 0 !== o ? "inherit" : "hidden", 0 === e ? "hidden" : "inherit")).xs0 = "inherit", r._overwriteProps.push(s.n), r._overwriteProps.push(i)), s } }); var Gt = function (t, e) { e && (t.removeProperty ? (("ms" === e.substr(0, 2) || "webkit" === e.substr(0, 6)) && (e = "-" + e), t.removeProperty(e.replace(k, "-$1").toLowerCase())) : t.removeAttribute(e)) }, Zt = function (t) { if (this.t._gsClassPT = this, 1 === t || 0 === t) { this.t.setAttribute("class", 0 === t ? this.b : this.e); for (var e = this.data, i = this.t.style; e;)e.v ? i[e.p] = e.v : Gt(i, e.p), e = e._next; 1 === t && this.t._gsClassPT === this && (this.t._gsClassPT = null) } else this.t.getAttribute("class") !== this.e && this.t.setAttribute("class", this.e) }; St("className", { parser: function (t, e, r, s, a, o, l) { var h, _, u, f, c, p = t.getAttribute("class") || "", m = t.style.cssText; if ((a = s._classNamePT = new Tt(t, r, 0, 0, a, 2)).setRatio = Zt, a.pr = -11, i = !0, a.b = p, _ = rt(t, n), u = t._gsClassPT) { for (f = {}, c = u.data; c;)f[c.p] = 1, c = c._next; u.setRatio(1) } return t._gsClassPT = a, a.e = "=" !== e.charAt(1) ? e : p.replace(new RegExp("(?:\\s|^)" + e.substr(2) + "(?![\\w-])"), "") + ("+" === e.charAt(0) ? " " + e.substr(2) : ""), t.setAttribute("class", a.e), h = nt(t, _, rt(t), l, f), t.setAttribute("class", p), a.data = h.firstMPT, t.style.cssText = m, a.xfirst = s.parse(t, h.difs, a, o) } }); var Ht = function (t) { if ((1 === t || 0 === t) && this.data._totalTime === this.data._totalDuration && "isFromStart" !== this.data.data) { var e, i, r, n, s, a = this.t.style, o = l.transform.parse; if ("all" === this.e) a.cssText = "", n = !0; else for (r = (e = this.e.split(" ").join("").split(",")).length; --r > -1;)i = e[r], l[i] && (l[i].parse === o ? n = !0 : i = "transformOrigin" === i ? Mt : l[i].p), Gt(a, i); n && (Gt(a, At), (s = this.t._gsTransform) && (s.svg && (this.t.removeAttribute("data-svg-origin"), this.t.removeAttribute("transform")), delete this.t._gsTransform)) } }; for (St("clearProps", { parser: function (t, e, r, n, s) { return (s = new Tt(t, r, 0, 0, s, 2)).setRatio = Ht, s.e = e, s.pr = -10, s.data = n._tween, i = !0, s } }), h = "bezier,throwProps,physicsProps,physics2D".split(","), wt = h.length; wt--;)Ot(h[wt]); (h = a.prototype)._firstPT = h._lastParsedTransform = h._transform = null, h._onInitTween = function (t, e, o, h) { if (!t.nodeType) return !1; this._target = d = t, this._tween = o, this._vars = e, g = h, _ = e.autoRound, i = !1, r = e.suffixMap || a.suffixMap, n = J(t), s = this._overwriteProps; var c, m, y, v, T, x, b, w, S, O = t.style; if (u && "" === O.zIndex && (("auto" === (c = tt(t, "zIndex", n)) || "" === c) && this._addLazySet(O, "zIndex", 0)), "string" == typeof e && (v = O.cssText, c = rt(t, n), O.cssText = v + ";" + e, c = nt(t, c, rt(t)).difs, !W && P.test(e) && (c.opacity = parseFloat(RegExp.$1)), e = c, O.cssText = v), e.className ? this._firstPT = m = l.className.parse(t, e.className, "className", this, null, null, e) : this._firstPT = m = this.parse(t, e, null), this._transformType) { for (S = 3 === this._transformType, At ? f && (u = !0, "" === O.zIndex && (("auto" === (b = tt(t, "zIndex", n)) || "" === b) && this._addLazySet(O, "zIndex", 0)), p && this._addLazySet(O, "WebkitBackfaceVisibility", this._vars.WebkitBackfaceVisibility || (S ? "visible" : "hidden"))) : O.zoom = 1, y = m; y && y._next;)y = y._next; w = new Tt(t, "transform", 0, 0, null, 2), this._linkCSSP(w, null, y), w.setRatio = At ? qt : Vt, w.data = this._transform || Ut(t, n, !0), w.tween = o, w.pr = -1, s.pop() } if (i) { for (; m;) { for (x = m._next, y = v; y && y.pr > m.pr;)y = y._next; (m._prev = y ? y._prev : T) ? m._prev._next = m : v = m, (m._next = y) ? y._prev = m : T = m, m = x } this._firstPT = v } return !0 }, h.parse = function (t, e, i, s) { var a, o, h, u, f, c, p, m, y, v, T = t.style; for (a in e) { if (c = e[a], o = l[a], "function" != typeof c || o && o.allowFunc || (c = c(g, d)), o) i = o.parse(t, c, a, this, i, s, e); else { if ("--" === a.substr(0, 2)) { this._tween._propLookup[a] = this._addTween.call(this._tween, t.style, "setProperty", J(t).getPropertyValue(a) + "", c + "", a, !1, a); continue } f = tt(t, a, n) + "", y = "string" == typeof c, "color" === a || "fill" === a || "stroke" === a || -1 !== a.indexOf("Color") || y && O.test(c) ? (y || (c = ((c = pt(c)).length > 3 ? "rgba(" : "rgb(") + c.join(",") + ")"), i = bt(T, a, f, c, !0, "transparent", i, 0, s)) : y && E.test(c) ? i = bt(T, a, f, c, !0, null, i, 0, s) : (p = (h = parseFloat(f)) || 0 === h ? f.substr((h + "").length) : "", ("" === f || "auto" === f) && ("width" === a || "height" === a ? (h = ot(t, a, n), p = "px") : "left" === a || "top" === a ? (h = it(t, a, n), p = "px") : (h = "opacity" !== a ? 0 : 1, p = "")), (v = y && "=" === c.charAt(1)) ? (u = parseInt(c.charAt(0) + "1", 10), c = c.substr(2), u *= parseFloat(c), m = c.replace(b, "")) : (u = parseFloat(c), m = y ? c.replace(b, "") : ""), "" === m && (m = a in r ? r[a] : p), c = u || 0 === u ? (v ? u + h : u) + m : e[a], p !== m && ("" !== m || "lineHeight" === a) && (u || 0 === u) && h && (h = et(t, a, h, p), "%" === m ? (h /= et(t, a, 100, "%") / 100, !0 !== e.strictUnits && (f = h + "%")) : "em" === m || "rem" === m || "vw" === m || "vh" === m ? h /= et(t, a, 1, m) : "px" !== m && (u = et(t, a, u, m), m = "px"), v && (u || 0 === u) && (c = u + h + m)), v && (u += h), !h && 0 !== h || !u && 0 !== u ? void 0 !== T[a] && (c || c + "" != "NaN" && null != c) ? (i = new Tt(T, a, u || h || 0, 0, i, -1, a, !1, 0, f, c)).xs0 = "none" !== c || "display" !== a && -1 === a.indexOf("Style") ? c : f : Z("invalid " + a + " tween value: " + e[a]) : (i = new Tt(T, a, h, u - h, i, 0, a, !1 !== _ && ("px" === m || "zIndex" === a), 0, f, c)).xs0 = m) } s && i && !i.plugin && (i.plugin = s) } return i }, h.setRatio = function (t) { var e, i, r, n = this._firstPT; if (1 !== t || this._tween._time !== this._tween._duration && 0 !== this._tween._time) if (t || this._tween._time !== this._tween._duration && 0 !== this._tween._time || -1e-6 === this._tween._rawPrevTime) for (; n;) { if (e = n.c * t + n.s, n.r ? e = n.r(e) : 1e-6 > e && e > -1e-6 && (e = 0), n.type) if (1 === n.type) if (2 === (r = n.l)) n.t[n.p] = n.xs0 + e + n.xs1 + n.xn1 + n.xs2; else if (3 === r) n.t[n.p] = n.xs0 + e + n.xs1 + n.xn1 + n.xs2 + n.xn2 + n.xs3; else if (4 === r) n.t[n.p] = n.xs0 + e + n.xs1 + n.xn1 + n.xs2 + n.xn2 + n.xs3 + n.xn3 + n.xs4; else if (5 === r) n.t[n.p] = n.xs0 + e + n.xs1 + n.xn1 + n.xs2 + n.xn2 + n.xs3 + n.xn3 + n.xs4 + n.xn4 + n.xs5; else { for (i = n.xs0 + e + n.xs1, r = 1; r < n.l; r++)i += n["xn" + r] + n["xs" + (r + 1)]; n.t[n.p] = i } else -1 === n.type ? n.t[n.p] = n.xs0 : n.setRatio && n.setRatio(t); else n.t[n.p] = e + n.xs0; n = n._next } else for (; n;)2 !== n.type ? n.t[n.p] = n.b : n.setRatio(t), n = n._next; else for (; n;) { if (2 !== n.type) if (n.r && -1 !== n.type) if (e = n.r(n.s + n.c), n.type) { if (1 === n.type) { for (r = n.l, i = n.xs0 + e + n.xs1, r = 1; r < n.l; r++)i += n["xn" + r] + n["xs" + (r + 1)]; n.t[n.p] = i } } else n.t[n.p] = e + n.xs0; else n.t[n.p] = n.e; else n.setRatio(t); n = n._next } }, h._enableTransforms = function (t) { this._transform = this._transform || Ut(this._target, n, !0), this._transformType = this._transform.svg && kt || !t && 3 !== this._transformType ? 2 : 3 }; var $t = function (t) { this.t[this.p] = this.e, this.data._linkCSSP(this, this._next, null, !0) }; h._addLazySet = function (t, e, i) { var r = this._firstPT = new Tt(t, e, 0, 0, this._firstPT, 2); r.e = i, r.setRatio = $t, r.data = this }, h._linkCSSP = function (t, e, i, r) { return t && (e && (e._prev = t), t._next && (t._next._prev = t._prev), t._prev ? t._prev._next = t._next : this._firstPT === t && (this._firstPT = t._next, r = !0), i ? i._next = t : r || null !== this._firstPT || (this._firstPT = t), t._next = e, t._prev = i), t }, h._mod = function (t) { for (var e = this._firstPT; e;)"function" == typeof t[e.p] && (e.r = t[e.p]), e = e._next }, h._kill = function (e) { var i, r, n, s = e; if (e.autoAlpha || e.alpha) { for (r in s = {}, e) s[r] = e[r]; s.opacity = 1, s.autoAlpha && (s.visibility = 1) } for (e.className && (i = this._classNamePT) && ((n = i.xfirst) && n._prev ? this._linkCSSP(n._prev, i._next, n._prev._prev) : n === this._firstPT && (this._firstPT = i._next), i._next && this._linkCSSP(i._next, i._next._next, n._prev), this._classNamePT = null), i = this._firstPT; i;)i.plugin && i.plugin !== r && i.plugin._kill && (i.plugin._kill(e), r = i.plugin), i = i._next; return t.prototype._kill.call(this, s) }; var Qt = function (t, e, i) { var r, n, s, a; if (t.slice) for (n = t.length; --n > -1;)Qt(t[n], e, i); else for (n = (r = t.childNodes).length; --n > -1;)a = (s = r[n]).type, s.style && (e.push(rt(s)), i && i.push(s)), 1 !== a && 9 !== a && 11 !== a || !s.childNodes.length || Qt(s, e, i) }; return a.cascadeTo = function (t, i, r) { var n, s, a, o, l = e.to(t, i, r), h = [l], _ = [], u = [], f = [], c = e._internals.reservedProps; for (t = l._targets || l.target, Qt(t, _, f), l.render(i, !0, !0), Qt(t, u), l.render(0, !0, !0), l._enabled(!0), n = f.length; --n > -1;)if ((s = nt(f[n], _[n], u[n])).firstMPT) { for (a in s = s.difs, r) c[a] && (s[a] = r[a]); for (a in o = {}, s) o[a] = _[n][a]; h.push(e.fromTo(f[n], i, o, s)) } return h }, t.activate([a]), a }, !0), function () { var t = _gsScope._gsDefine.plugin({ propName: "roundProps", version: "1.7.0", priority: -1, API: 2, init: function (t, e, i) { return this._tween = i, !0 } }), e = function (t) { var e = 1 > t ? Math.pow(10, (t + "").length - 2) : 1; return function (i) { return (Math.round(i / t) * t * e | 0) / e } }, i = function (t, e) { for (; t;)t.f || t.blob || (t.m = e || Math.round), t = t._next }, r = t.prototype; r._onInitAllProps = function () { var t, r, n, s, a = this._tween, o = a.vars.roundProps, l = {}, h = a._propLookup.roundProps; if ("object" != typeof o || o.push) for ("string" == typeof o && (o = o.split(",")), n = o.length; --n > -1;)l[o[n]] = Math.round; else for (s in o) l[s] = e(o[s]); for (s in l) for (t = a._firstPT; t;)r = t._next, t.pg ? t.t._mod(l) : t.n === s && (2 === t.f && t.t ? i(t.t._firstPT, l[s]) : (this._add(t.t, s, t.s, t.c, l[s]), r && (r._prev = t._prev), t._prev ? t._prev._next = r : a._firstPT === t && (a._firstPT = r), t._next = t._prev = null, a._propLookup[s] = h)), t = r; return !1 }, r._add = function (t, e, i, r, n) { this._addTween(t, e, i, i + r, e, n || Math.round), this._overwriteProps.push(e) } }(), _gsScope._gsDefine.plugin({ propName: "attr", API: 2, version: "0.6.1", init: function (t, e, i, r) { var n, s; if ("function" != typeof t.setAttribute) return !1; for (n in e) "function" == typeof (s = e[n]) && (s = s(r, t)), this._addTween(t, "setAttribute", t.getAttribute(n) + "", s + "", n, !1, n), this._overwriteProps.push(n); return !0 } }), _gsScope._gsDefine.plugin({ propName: "directionalRotation", version: "0.3.1", API: 2, init: function (t, e, i, r) { "object" != typeof e && (e = { rotation: e }), this.finals = {}; var n, s, a, o, l, h, _ = !0 === e.useRadians ? 2 * Math.PI : 360; for (n in e) "useRadians" !== n && ("function" == typeof (o = e[n]) && (o = o(r, t)), s = (h = (o + "").split("_"))[0], a = parseFloat("function" != typeof t[n] ? t[n] : t[n.indexOf("set") || "function" != typeof t["get" + n.substr(3)] ? n : "get" + n.substr(3)]()), l = (o = this.finals[n] = "string" == typeof s && "=" === s.charAt(1) ? a + parseInt(s.charAt(0) + "1", 10) * Number(s.substr(2)) : Number(s) || 0) - a, h.length && (-1 !== (s = h.join("_")).indexOf("short") && ((l %= _) !== l % (_ / 2) && (l = 0 > l ? l + _ : l - _)), -1 !== s.indexOf("_cw") && 0 > l ? l = (l + 9999999999 * _) % _ - (l / _ | 0) * _ : -1 !== s.indexOf("ccw") && l > 0 && (l = (l - 9999999999 * _) % _ - (l / _ | 0) * _)), (l > 1e-6 || -1e-6 > l) && (this._addTween(t, n, a, a + l, n), this._overwriteProps.push(n))); return !0 }, set: function (t) { var e; if (1 !== t) this._super.setRatio.call(this, t); else for (e = this._firstPT; e;)e.f ? e.t[e.p](this.finals[e.p]) : e.t[e.p] = this.finals[e.p], e = e._next } })._autoCSS = !0, _gsScope._gsDefine("easing.Back", ["easing.Ease"], function (t) { var e, i, r, n, s = _gsScope.GreenSockGlobals || _gsScope, a = s.com.greensock, o = 2 * Math.PI, l = Math.PI / 2, h = a._class, _ = function (e, i) { var r = h("easing." + e, function () { }, !0), n = r.prototype = new t; return n.constructor = r, n.getRatio = i, r }, u = t.register || function () { }, f = function (t, e, i, r, n) { var s = h("easing." + t, { easeOut: new e, easeIn: new i, easeInOut: new r }, !0); return u(s, t), s }, c = function (t, e, i) { this.t = t, this.v = e, i && (this.next = i, i.prev = this, this.c = i.v - e, this.gap = i.t - t) }, p = function (e, i) { var r = h("easing." + e, function (t) { this._p1 = t || 0 === t ? t : 1.70158, this._p2 = 1.525 * this._p1 }, !0), n = r.prototype = new t; return n.constructor = r, n.getRatio = i, n.config = function (t) { return new r(t) }, r }, m = f("Back", p("BackOut", function (t) { return (t -= 1) * t * ((this._p1 + 1) * t + this._p1) + 1 }), p("BackIn", function (t) { return t * t * ((this._p1 + 1) * t - this._p1) }), p("BackInOut", function (t) { return (t *= 2) < 1 ? .5 * t * t * ((this._p2 + 1) * t - this._p2) : .5 * ((t -= 2) * t * ((this._p2 + 1) * t + this._p2) + 2) })), d = h("easing.SlowMo", function (t, e, i) { e = e || 0 === e ? e : .7, null == t ? t = .7 : t > 1 && (t = 1), this._p = 1 !== t ? e : 0, this._p1 = (1 - t) / 2, this._p2 = t, this._p3 = this._p1 + this._p2, this._calcEnd = !0 === i }, !0), g = d.prototype = new t; return g.constructor = d, g.getRatio = function (t) { var e = t + (.5 - t) * this._p; return t < this._p1 ? this._calcEnd ? 1 - (t = 1 - t / this._p1) * t : e - (t = 1 - t / this._p1) * t * t * t * e : t > this._p3 ? this._calcEnd ? 1 === t ? 0 : 1 - (t = (t - this._p3) / this._p1) * t : e + (t - e) * (t = (t - this._p3) / this._p1) * t * t * t : this._calcEnd ? 1 : e }, d.ease = new d(.7, .7), g.config = d.config = function (t, e, i) { return new d(t, e, i) }, (g = (e = h("easing.SteppedEase", function (t, e) { t = t || 1, this._p1 = 1 / t, this._p2 = t + (e ? 0 : 1), this._p3 = e ? 1 : 0 }, !0)).prototype = new t).constructor = e, g.getRatio = function (t) { return 0 > t ? t = 0 : t >= 1 && (t = .999999999), ((this._p2 * t | 0) + this._p3) * this._p1 }, g.config = e.config = function (t, i) { return new e(t, i) }, (g = (i = h("easing.ExpoScaleEase", function (t, e, i) { this._p1 = Math.log(e / t), this._p2 = e - t, this._p3 = t, this._ease = i }, !0)).prototype = new t).constructor = i, g.getRatio = function (t) { return this._ease && (t = this._ease.getRatio(t)), (this._p3 * Math.exp(this._p1 * t) - this._p3) / this._p2 }, g.config = i.config = function (t, e, r) { return new i(t, e, r) }, (g = (r = h("easing.RoughEase", function (e) { for (var i, r, n, s, a, o, l = (e = e || {}).taper || "none", h = [], _ = 0, u = 0 | (e.points || 20), f = u, p = !1 !== e.randomize, m = !0 === e.clamp, d = e.template instanceof t ? e.template : null, g = "number" == typeof e.strength ? .4 * e.strength : .4; --f > -1;)i = p ? Math.random() : 1 / u * f, r = d ? d.getRatio(i) : i, "none" === l ? n = g : "out" === l ? n = (s = 1 - i) * s * g : "in" === l ? n = i * i * g : .5 > i ? n = (s = 2 * i) * s * .5 * g : n = (s = 2 * (1 - i)) * s * .5 * g, p ? r += Math.random() * n - .5 * n : f % 2 ? r += .5 * n : r -= .5 * n, m && (r > 1 ? r = 1 : 0 > r && (r = 0)), h[_++] = { x: i, y: r }; for (h.sort(function (t, e) { return t.x - e.x }), o = new c(1, 1, null), f = u; --f > -1;)a = h[f], o = new c(a.x, a.y, o); this._prev = new c(0, 0, 0 !== o.t ? o : o.next) }, !0)).prototype = new t).constructor = r, g.getRatio = function (t) { var e = this._prev; if (t > e.t) { for (; e.next && t >= e.t;)e = e.next; e = e.prev } else for (; e.prev && t <= e.t;)e = e.prev; return this._prev = e, e.v + (t - e.t) / e.gap * e.c }, g.config = function (t) { return new r(t) }, r.ease = new r, f("Bounce", _("BounceOut", function (t) { return 1 / 2.75 > t ? 7.5625 * t * t : 2 / 2.75 > t ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : 2.5 / 2.75 > t ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375 }), _("BounceIn", function (t) { 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 + .75) : 2.5 / 2.75 > t ? 1 - (7.5625 * (t -= 2.25 / 2.75) * t + .9375) : 1 - (7.5625 * (t -= 2.625 / 2.75) * t + .984375) }), _("BounceInOut", function (t) { var e = .5 > t; return t = 1 / 2.75 > (t = e ? 1 - 2 * t : 2 * t - 1) ? 7.5625 * t * t : 2 / 2.75 > t ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : 2.5 / 2.75 > t ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375, e ? .5 * (1 - t) : .5 * t + .5 })), f("Circ", _("CircOut", function (t) { return Math.sqrt(1 - (t -= 1) * t) }), _("CircIn", function (t) { return -(Math.sqrt(1 - t * t) - 1) }), _("CircInOut", function (t) { return (t *= 2) < 1 ? -.5 * (Math.sqrt(1 - t * t) - 1) : .5 * (Math.sqrt(1 - (t -= 2) * t) + 1) })), f("Elastic", (n = function (e, i, r) { var n = h("easing." + e, function (t, e) { this._p1 = t >= 1 ? t : 1, this._p2 = (e || r) / (1 > t ? t : 1), this._p3 = this._p2 / o * (Math.asin(1 / this._p1) || 0), this._p2 = o / this._p2 }, !0), s = n.prototype = new t; return s.constructor = n, s.getRatio = i, s.config = function (t, e) { return new n(t, e) }, n })("ElasticOut", function (t) { return this._p1 * Math.pow(2, -10 * t) * Math.sin((t - this._p3) * this._p2) + 1 }, .3), n("ElasticIn", function (t) { return -this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2) }, .3), n("ElasticInOut", function (t) { return (t *= 2) < 1 ? this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2) * -.5 : this._p1 * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2) * .5 + 1 }, .45)), f("Expo", _("ExpoOut", function (t) { return 1 - Math.pow(2, -10 * t) }), _("ExpoIn", function (t) { return Math.pow(2, 10 * (t - 1)) - .001 }), _("ExpoInOut", function (t) { return (t *= 2) < 1 ? .5 * Math.pow(2, 10 * (t - 1)) : .5 * (2 - Math.pow(2, -10 * (t - 1))) })), f("Sine", _("SineOut", function (t) { return Math.sin(t * l) }), _("SineIn", function (t) { return 1 - Math.cos(t * l) }), _("SineInOut", function (t) { return -.5 * (Math.cos(Math.PI * t) - 1) })), h("easing.EaseLookup", { find: function (e) { return t.map[e] } }, !0), u(s.SlowMo, "SlowMo", "ease,"), u(r, "RoughEase", "ease,"), u(e, "SteppedEase", "ease,"), m }, !0) }), _gsScope._gsDefine && _gsScope._gsQueue.pop()(), function (t, e) { "use strict"; var i = {}, r = t.document, n = t.GreenSockGlobals = t.GreenSockGlobals || t, s = n[e]; if (s) return "undefined" != typeof module && module.exports && (module.exports = s), s; var a, o, l, h, _, u = function (t) { var e, i = t.split("."), r = n; for (e = 0; e < i.length; e++)r[i[e]] = r = r[i[e]] || {}; return r }
32, f = u("com.greensock"), c = 1e-8, p = function (t) { var e, i = [], r = t.length; for (e = 0; e !== r; i.push(t[e++])); return i }, m = function () { }, d = function () { var t = Object.prototype.toString, e = t.call([]); return function (i) { return null != i && (i instanceof Array || "object" == typeof i && !!i.push && t.call(i) === e) } }(), g = {}, y = function (r, s, a, o) { this.sc = g[r] ? g[r].sc : [], g[r] = this, this.gsClass = null, this.func = a; var l = []; this.check = function (h) { for (var _, f, c, p, m = s.length, d = m; --m > -1;)(_ = g[s[m]] || new y(s[m], [])).gsClass ? (l[m] = _.gsClass, d--) : h && _.sc.push(this); if (0 === d && a) { if (c = (f = ("com.greensock." + r).split(".")).pop(), p = u(f.join("."))[c] = this.gsClass = a.apply(a, l), o) if (n[c] = i[c] = p, "undefined" != typeof module && module.exports) if (r === e) for (m in module.exports = i[e] = p, i) p[m] = i[m]; else i[e] && (i[e][c] = p); else "function" == typeof define && define.amd && define((t.GreenSockAMDPath ? t.GreenSockAMDPath + "/" : "") + r.split(".").pop(), [], function () { return p }); for (m = 0; m < this.sc.length; m++)this.sc[m].check() } }, this.check(!0) }, v = t._gsDefine = function (t, e, i, r) { return new y(t, e, i, r) }, T = f._class = function (t, e, i) { return e = e || function () { }, v(t, [], function () { return e }, i), e }; v.globals = n; var x = [0, 0, 1, 1], b = T("easing.Ease", function (t, e, i, r) { this._func = t, this._type = i || 0, this._power = r || 0, this._params = e ? x.concat(e) : x }, !0), w = b.map = {}, P = b.register = function (t, e, i, r) { for (var n, s, a, o, l = e.split(","), h = l.length, _ = (i || "easeIn,easeOut,easeInOut").split(","); --h > -1;)for (s = l[h], n = r ? T("easing." + s, null, !0) : f.easing[s] || {}, a = _.length; --a > -1;)o = _[a], w[s + "." + o] = w[o + s] = n[o] = t.getRatio ? t : t[o] || new t }; for ((l = b.prototype)._calcEnd = !1, l.getRatio = function (t) { if (this._func) return this._params[0] = t, this._func.apply(null, this._params); var e = this._type, i = this._power, r = 1 === e ? 1 - t : 2 === e ? t : .5 > t ? 2 * t : 2 * (1 - t); return 1 === i ? r *= r : 2 === i ? r *= r * r : 3 === i ? r *= r * r * r : 4 === i && (r *= r * r * r * r), 1 === e ? 1 - r : 2 === e ? r : .5 > t ? r / 2 : 1 - r / 2 }, o = (a = ["Linear", "Quad", "Cubic", "Quart", "Quint,Strong"]).length; --o > -1;)l = a[o] + ",Power" + o, P(new b(null, null, 1, o), l, "easeOut", !0), P(new b(null, null, 2, o), l, "easeIn" + (0 === o ? ",easeNone" : "")), P(new b(null, null, 3, o), l, "easeInOut"); w.linear = f.easing.Linear.easeIn, w.swing = f.easing.Quad.easeInOut; var S = T("events.EventDispatcher", function (t) { this._listeners = {}, this._eventTarget = t || this }); (l = S.prototype).addEventListener = function (t, e, i, r, n) { n = n || 0; var s, a, o = this._listeners[t], l = 0; for (this !== h || _ || h.wake(), null == o && (this._listeners[t] = o = []), a = o.length; --a > -1;)(s = o[a]).c === e && s.s === i ? o.splice(a, 1) : 0 === l && s.pr < n && (l = a + 1); o.splice(l, 0, { c: e, s: i, up: r, pr: n }) }, l.removeEventListener = function (t, e) { var i, r = this._listeners[t]; if (r) for (i = r.length; --i > -1;)if (r[i].c === e) return void r.splice(i, 1) }, l.dispatchEvent = function (t) { var e, i, r, n = this._listeners[t]; if (n) for ((e = n.length) > 1 && (n = n.slice(0)), i = this._eventTarget; --e > -1;)(r = n[e]) && (r.up ? r.c.call(r.s || i, { type: t, target: i }) : r.c.call(r.s || i)) }; var O = t.requestAnimationFrame, k = t.cancelAnimationFrame, R = Date.now || function () { return (new Date).getTime() }, A = R(); for (o = (a = ["ms", "moz", "webkit", "o"]).length; --o > -1 && !O;)O = t[a[o] + "RequestAnimationFrame"], k = t[a[o] + "CancelAnimationFrame"] || t[a[o] + "CancelRequestAnimationFrame"]; T("Ticker", function (t, e) { var i, n, s, a, o, l = this, u = R(), f = !(!1 === e || !O) && "auto", c = 500, p = 33, d = function (t) { var e, r, h = R() - A; h > c && (u += h - p), A += h, l.time = (A - u) / 1e3, e = l.time - o, (!i || e > 0 || !0 === t) && (l.frame++, o += e + (e >= a ? .004 : a - e), r = !0), !0 !== t && (s = n(d)), r && l.dispatchEvent("tick") }; S.call(l), l.time = l.frame = 0, l.tick = function () { d(!0) }, l.lagSmoothing = function (t, e) { return arguments.length ? (c = t || 1e8, void (p = Math.min(e, c, 0))) : 1e8 > c }, l.sleep = function () { null != s && (f && k ? k(s) : clearTimeout(s), n = m, s = null, l === h && (_ = !1)) }, l.wake = function (t) { null !== s ? l.sleep() : t ? u += -A + (A = R()) : l.frame > 10 && (A = R() - c + 5), n = 0 === i ? m : f && O ? O : function (t) { return setTimeout(t, 1e3 * (o - l.time) + 1 | 0) }, l === h && (_ = !0), d(2) }, l.fps = function (t) { return arguments.length ? (a = 1 / ((i = t) || 60), o = this.time + a, void l.wake()) : i }, l.useRAF = function (t) { return arguments.length ? (l.sleep(), f = t, void l.fps(i)) : f }, l.fps(t), setTimeout(function () { "auto" === f && l.frame < 5 && "hidden" !== (r || {}).visibilityState && l.useRAF(!1) }, 1500) }), (l = f.Ticker.prototype = new f.events.EventDispatcher).constructor = f.Ticker; var C = T("core.Animation", function (t, e) { if (this.vars = e = e || {}
vendor: 11,558 bytes, line 32
32, this._duration = this._totalDuration = t || 0, this._delay = Number(e.delay) || 0, this._timeScale = 1, this._active = !!e.immediateRender, this.data = e.data, this._reversed = !!e.reversed, $) { _ || h.wake(); var i = this.vars.useFrames ? H : $; i.add(this, i._time), this.vars.paused && this.paused(!0) } }); h = C.ticker = new f.Ticker, (l = C.prototype)._dirty = l._gc = l._initted = l._paused = !1, l._totalTime = l._time = 0, l._rawPrevTime = -1, l._next = l._last = l._onUpdate = l._timeline = l.timeline = null, l._paused = !1; var M = function () { _ && R() - A > 2e3 && ("hidden" !== (r || {}).visibilityState || !h.lagSmoothing()) && h.wake(); var t = setTimeout(M, 2e3); t.unref && t.unref() }; M(), l.play = function (t, e) { return null != t && this.seek(t, e), this.reversed(!1).paused(!1) }, l.pause = function (t, e) { return null != t && this.seek(t, e), this.paused(!0) }, l.resume = function (t, e) { return null != t && this.seek(t, e), this.paused(!1) }, l.seek = function (t, e) { return this.totalTime(Number(t), !1 !== e) }, l.restart = function (t, e) { return this.reversed(!1).paused(!1).totalTime(t ? -this._delay : 0, !1 !== e, !0) }, l.reverse = function (t, e) { return null != t && this.seek(t || this.totalDuration(), e), this.reversed(!0).paused(!1) }, l.render = function (t, e, i) { }, l.invalidate = function () { return this._time = this._totalTime = 0, this._initted = this._gc = !1, this._rawPrevTime = -1, (this._gc || !this.timeline) && this._enabled(!0), this }, l.isActive = function () { var t, e = this._timeline, i = this._startTime; return !e || !this._gc && !this._paused && e.isActive() && (t = e.rawTime(!0)) >= i && t < i + this.totalDuration() / this._timeScale - c }, l._enabled = function (t, e) { return _ || h.wake(), this._gc = !t, this._active = this.isActive(), !0 !== e && (t && !this.timeline ? this._timeline.add(this, this._startTime - this._delay) : !t && this.timeline && this._timeline._remove(this, !0)), !1 }, l._kill = function (t, e) { return this._enabled(!1, !1) }, l.kill = function (t, e) { return this._kill(t, e), this }, l._uncache = function (t) { for (var e = t ? this : this.timeline; e;)e._dirty = !0, e = e.timeline; return this }, l._swapSelfInParams = function (t) { for (var e = t.length, i = t.concat(); --e > -1;)"{self}" === t[e] && (i[e] = this); return i }, l._callback = function (t) { var e = this.vars, i = e[t], r = e[t + "Params"], n = e[t + "Scope"] || e.callbackScope || this; switch (r ? r.length : 0) { case 0: i.call(n); break; case 1: i.call(n, r[0]); break; case 2: i.call(n, r[0], r[1]); break; default: i.apply(n, r) } }, l.eventCallback = function (t, e, i, r) { if ("on" === (t || "").substr(0, 2)) { var n = this.vars; if (1 === arguments.length) return n[t]; null == e ? delete n[t] : (n[t] = e, n[t + "Params"] = d(i) && -1 !== i.join("").indexOf("{self}") ? this._swapSelfInParams(i) : i, n[t + "Scope"] = r), "onUpdate" === t && (this._onUpdate = e) } return this }, l.delay = function (t) { return arguments.length ? (this._timeline.smoothChildTiming && this.startTime(this._startTime + t - this._delay), this._delay = t, this) : this._delay }, l.duration = function (t) { return arguments.length ? (this._duration = this._totalDuration = t, this._uncache(!0), this._timeline.smoothChildTiming && this._time > 0 && this._time < this._duration && 0 !== t && this.totalTime(this._totalTime * (t / this._duration), !0), this) : (this._dirty = !1, this._duration) }, l.totalDuration = function (t) { return this._dirty = !1, arguments.length ? this.duration(t) : this._totalDuration }, l.time = function (t, e) { return arguments.length ? (this._dirty && this.totalDuration(), this.totalTime(t > this._duration ? this._duration : t, e)) : this._time }, l.totalTime = function (t, e, i) { if (_ || h.wake(), !arguments.length) return this._totalTime; if (this._timeline) { if (0 > t && !i && (t += this.totalDuration()), this._timeline.smoothChildTiming) { this._dirty && this.totalDuration(); var r = this._totalDuration, n = this._timeline; if (t > r && !i && (t = r), this._startTime = (this._paused ? this._pauseTime : n._time) - (this._reversed ? r - t : t) / this._timeScale, n._dirty || this._uncache(!1), n._timeline) for (; n._timeline;)n._timeline._time !== (n._startTime + n._totalTime) / n._timeScale && n.totalTime(n._totalTime, !0), n = n._timeline } this._gc && this._enabled(!0, !1), (this._totalTime !== t || 0 === this._duration) && (E.length && K(), this.render(t, e, !1), E.length && K()) } return this }, l.progress = l.totalProgress = function (t, e) { var i = this.duration(); return arguments.length ? this.totalTime(i * t, e) : i ? this._time / i : this.ratio }, l.startTime = function (t) { return arguments.length ? (t !== this._startTime && (this._startTime = t, this.timeline && this.timeline._sortChildren && this.timeline.add(this, t - this._delay)), this) : this._startTime }, l.endTime = function (t) { return this._startTime + (0 != t ? this.totalDuration() : this.duration()) / this._timeScale }, l.timeScale = function (t) { if (!arguments.length) return this._timeScale; var e, i; for (t = t || c, this._timeline && this._timeline.smoothChildTiming && (i = (e = this._pauseTime) || 0 === e ? e : this._timeline.totalTime(), this._startTime = i - (i - this._startTime) * this._timeScale / t), this._timeScale = t, i = this.timeline; i && i.timeline;)i._dirty = !0, i.totalDuration(), i = i.timeline; return this }, l.reversed = function (t) { return arguments.length ? (t != this._reversed && (this._reversed = t, this.totalTime(this._timeline && !this._timeline.smoothChildTiming ? this.totalDuration() - this._totalTime : this._totalTime, !0)), this) : this._reversed }, l.paused = function (t) { if (!arguments.length) return this._paused; var e, i, r = this._timeline; return t != this._paused && r && (_ || t || h.wake(), i = (e = r.rawTime()) - this._pauseTime, !t && r.smoothChildTiming && (this._startTime += i, this._uncache(!1)), this._pauseTime = t ? e : null, this._paused = t, this._active = this.isActive(), !t && 0 !== i && this._initted && this.duration() && (e = r.smoothChildTiming ? this._totalTime : (e - this._startTime) / this._timeScale, this.render(e, e === this._totalTime, !0))), this._gc && !t && this._enabled(!0, !1), this }; var D = T("core.SimpleTimeline", function (t) { C.call(this, 0, t), this.autoRemoveChildren = this.smoothChildTiming = !0 }); (l = D.prototype = new C).constructor = D, l.kill()._gc = !1, l._first = l._last = l._recent = null, l._sortChildren = !1, l.add = l.insert = function (t, e, i, r) { var n, s; if (t._startTime = Number(e || 0) + t._delay, t._paused && this !== t._timeline && (t._pauseTime = this.rawTime() - (t._timeline.rawTime() - t._pauseTime)), t.timeline && t.timeline._remove(t, !0), t.timeline = t._timeline = this, t._gc && t._enabled(!0, !0), n = this._last, this._sortChildren) for (s = t._startTime; n && n._startTime > s;)n = n._prev; return n ? (t._next = n._next, n._next = t) : (t._next = this._first, this._first = t), t._next ? t._next._prev = t : this._last = t, t._prev = n, this._recent = t, this._timeline && this._uncache(!0), this }, l._remove = function (t, e) { return t.timeline === this && (e || t._enabled(!1, !0), t._prev ? t._prev._next = t._next : this._first === t && (this._first = t._next), t._next ? t._next._prev = t._prev : this._last === t && (this._last = t._prev), t._next = t._prev = t.timeline = null, t === this._recent && (this._recent = this._last), this._timeline && this._uncache(!0)), this }, l.render = function (t, e, i) { var r, n = this._first; for (this._totalTime = this._time = this._rawPrevTime = t; n;)r = n._next, (n._active || t >= n._startTime && !n._paused && !n._gc) && (n._reversed ? n.render((n._dirty ? n.totalDuration() : n._totalDuration) - (t - n._startTime) * n._timeScale, e, i) : n.render((t - n._startTime) * n._timeScale, e, i)), n = r }, l.rawTime = function () { return _ || h.wake(), this._totalTime }; var F = T("TweenLite", function (e, i, r) { if (C.call(this, i, r), this.render = F.prototype.render, null == e) throw "Cannot tween a null target."; this.target = e = "string" != typeof e ? e : F.selector(e) || e; var n, s, a, o = e.jquery || e.length && e !== t && e[0] && (e[0] === t || e[0].nodeType && e[0].style && !e.nodeType), l = this.vars.overwrite; if (this._overwrite = l = null == l ? Z[F.defaultOverwrite] : "number" == typeof l ? l >> 0 : Z[l], (o || e instanceof Array || e.push && d(e)) && "number" != typeof e[0]) for (this._targets = a = p(e), this._propLookup = [], this._siblings = [], n = 0; n < a.length; n++)(s = a[n]) ? "string" != typeof s ? s.length && s !== t && s[0] && (s[0] === t || s[0].nodeType && s[0].style && !s.nodeType) ? (a.splice(n--, 1), this._targets = a = a.concat(p(s))) : (this._siblings[n] = J(s, this, !1), 1 === l && this._siblings[n].length > 1 && et(s, this, null, 1, this._siblings[n])) : "string" == typeof (s = a[n--] = F.selector(s)) && a.splice(n + 1, 1) : a.splice(n--, 1); else this._propLookup = {}, this._siblings = J(e, this, !1), 1 === l && this._siblings.length > 1 && et(e, this, null, 1, this._siblings); (this.vars.immediateRender || 0 === i && 0 === this._delay && !1 !== this.vars.immediateRender) && (this._time = -c, this.render(Math.min(0, -this._delay))) }, !0), z = function (e) { return e && e.length && e !== t && e[0] && (e[0] === t || e[0].nodeType && e[0].style && !e.nodeType) }; (l = F.prototype = new C).constructor = F, l.kill()._gc = !1, l.ratio = 0, l._firstPT = l._targets = l._overwrittenProps = l._startAt = null, l._notifyPluginsOfEnabled = l._lazy = !1, F.version = "2.1.2", F.defaultEase = l._ease = new b(null, null, 1, 1), F.defaultOverwrite = "auto", F.ticker = h, F.autoSleep = 120, F.lagSmoothing = function (t, e) { h.lagSmoothing(t, e) }, F.selector = t.$ || t.jQuery || function (e) { var i = t.$ || t.jQuery; return i ? (F.selector = i, i(e)) : (r || (r = t.document), r ? r.querySelectorAll ? r.querySelectorAll(e) : r.getElementById("#" === e.charAt(0) ? e.substr(1) : e) : e) }; var E = [], I = {}, X = /(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi, N = /[\+-]=-?[\.\d]/, L = function (t) { for (var e, i = this._firstPT; i;)e = i.blob ? 1 === t && null != this.end ? this.end : t ? this.join("") : this.start : i.c * t + i.s, i.m ? e = i.m.call(this._tween, e, this._target || i.t, this._tween) : 1e-6 > e && e > -1e-6 && !i.blob && (e = 0), i.f ? i.fp ? i.t[i.p](i.fp, e) : i.t[i.p](e) : i.t[i.p] = e, i = i._next }, B = function (t) { return (1e3 * t | 0) / 1e3 + "" }, Y = function (t, e, i, r) { var n, s, a, o, l, h, _, u = [], f = 0, c = "", p = 0; for (u.start = t, u.end = e, t = u[0] = t + "", e = u[1] = e + "", i && (i(u), t = u[0], e = u[1]), u.length = 0, n = t.match(X) || [], s = e.match(X) || [], r && (r._next = null, r.blob = 1, u._firstPT = u._applyPT = r), l = s.length, o = 0; l > o; o++)_ = s[o], c += (h = e.substr(f, e.indexOf(_, f) - f)) || !o ? h : ",", f += h.length, p ? p = (p + 1) % 5 : "rgba(" === h.substr(-5) && (p = 1), _ === n[o] || n.length <= o ? c += _ : (c && (u.push(c), c = ""), a = parseFloat(n[o]), u.push(a), u._firstPT = { _next: u._firstPT, t: u, p: u.length - 1, s: a, c: ("=" === _.charAt(1) ? parseInt(_.charAt(0) + "1", 10) * parseFloat(_.substr(2)) : parseFloat(_) - a) || 0, f: 0, m: p && 4 > p ? Math.round : B }), f += _.length; return (c += e.substr(f)) && u.push(c), u.setRatio = L, N.test(e) && (u.end = null), u }, j = function (t, e, i, r, n, s, a, o, l) { "function" == typeof r && (r = r(l || 0, t));
32 var h = typeof t[e], _ = "function" !== h ? "" : e.indexOf("set") || "function" != typeof t["get" + e.substr(3)] ? e : "get" + e.substr(3), u = "get" !== i ? i : _ ? a ? t[_](a) : t[_]() : t[e], f = "string" == typeof r && "=" === r.charAt(1), c = { t: t, p: e, s: u, f: "function" === h, pg: 0, n: n || e, m: s ? "function" == typeof s ? s : Math.round : 0, pr: 0, c: f ? parseInt(r.charAt(0) + "1", 10) * parseFloat(r.substr(2)) : parseFloat(r) - u || 0 }; return ("number" != typeof u || "number" != typeof r && !f) && (a || isNaN(u) || !f && isNaN(r) || "boolean" == typeof u || "boolean" == typeof r ? (c.fp = a, c = { t: Y(u, f ? parseFloat(c.s) + c.c + (c.s + "").replace(/[0-9\-\.]/g, "") : r, o || F.defaultStringFilter, c), p: "setRatio", s: 0, c: 1, f: 2, pg: 0, n: n || e, pr: 0, m: 0 }) : (c.s = parseFloat(u), f || (c.c = parseFloat(r) - c.s || 0))), c.c ? ((c._next = this._firstPT) && (c._next._prev = c), this._firstPT = c, c) : void 0 }, U = F._internals = { isArray: d, isSelector: z, lazyTweens: E, blobDif: Y }, V = F._plugins = {}, q = U.tweenLookup = {}, W = 0, G = U.reservedProps = { ease: 1, delay: 1, overwrite: 1, onComplete: 1, onCompleteParams: 1, onCompleteScope: 1, useFrames: 1, runBackwards: 1, startAt: 1, onUpdate: 1, onUpdateParams: 1, onUpdateScope: 1, onStart: 1, onStartParams: 1, onStartScope: 1, onReverseComplete: 1, onReverseCompleteParams: 1, onReverseCompleteScope: 1, onRepeat: 1, onRepeatParams: 1, onRepeatScope: 1, easeParams: 1, yoyo: 1, immediateRender: 1, repeat: 1, repeatDelay: 1, data: 1, paused: 1, reversed: 1, autoCSS: 1, lazy: 1, onOverwrite: 1, callbackScope: 1, stringFilter: 1, id: 1, yoyoEase: 1, stagger: 1 }, Z = { none: 0, all: 1, auto: 2, concurrent: 3, allOnStart: 4, preexisting: 5, true: 1, false: 0 }, H = C._rootFramesTimeline = new D, $ = C._rootTimeline = new D, Q = 30, K = U.lazyRender = function () { var t, e, i = E.length; for (I = {}, t = 0; i > t; t++)(e = E[t]) && !1 !== e._lazy && (e.render(e._lazy[0], e._lazy[1], !0), e._lazy = !1); E.length = 0 }; $._startTime = h.time, H._startTime = h.frame, $._active = H._active = !0, setTimeout(K, 1), C._updateRoot = F.render = function () { var t, e, i; if (E.length && K(), $.render((h.time - $._startTime) * $._timeScale, !1, !1), H.render((h.frame - H._startTime) * H._timeScale, !1, !1), E.length && K(), h.frame >= Q) { for (i in Q = h.frame + (parseInt(F.autoSleep, 10) || 120), q) { for (t = (e = q[i].tweens).length; --t > -1;)e[t]._gc && e.splice(t, 1); 0 === e.length && delete q[i] } if ((!(i = $._first) || i._paused) && F.autoSleep && !H._first && 1 === h._listeners.tick.length) { for (; i && i._paused;)i = i._next; i || h.sleep() } } }, h.addEventListener("tick", C._updateRoot); var J = function (t, e, i) { var r, n, s = t._gsTweenID; if (q[s || (t._gsTweenID = s = "t" + W++)] || (q[s] = { target: t, tweens: [] }), e && ((r = q[s].tweens)[n = r.length] = e, i)) for (; --n > -1;)r[n] === e && r.splice(n, 1); return q[s].tweens }, tt = function (t, e, i, r) { var n, s, a = t.vars.onOverwrite; return a && (n = a(t, e, i, r)), (a = F.onOverwrite) && (s = a(t, e, i, r)), !1 !== n && !1 !== s }, et = function (t, e, i, r, n) { var s, a, o, l; if (1 === r || r >= 4) { for (l = n.length, s = 0; l > s; s++)if ((o = n[s]) !== e) o._gc || o._kill(null, t, e) && (a = !0); else if (5 === r) break; return a } var h, _ = e._startTime + c, u = [], f = 0, p = 0 === e._duration; for (s = n.length; --s > -1;
vendor: 6,507 bytes, line 32
32)(o = n[s]) === e || o._gc || o._paused || (o._timeline !== e._timeline ? (h = h || it(e, 0, p), 0 === it(o, h, p) && (u[f++] = o)) : o._startTime <= _ && o._startTime + o.totalDuration() / o._timeScale > _ && ((p || !o._initted) && _ - o._startTime <= 2 * c || (u[f++] = o))); for (s = f; --s > -1;)if (l = (o = u[s])._firstPT, 2 === r && o._kill(i, t, e) && (a = !0), 2 !== r || !o._firstPT && o._initted && l) { if (2 !== r && !tt(o, e)) continue; o._enabled(!1, !1) && (a = !0) } return a }, it = function (t, e, i) { for (var r = t._timeline, n = r._timeScale, s = t._startTime; r._timeline;) { if (s += r._startTime, n *= r._timeScale, r._paused) return -100; r = r._timeline } return (s /= n) > e ? s - e : i && s === e || !t._initted && 2 * c > s - e ? c : (s += t.totalDuration() / t._timeScale / n) > e + c ? 0 : s - e - c }; l._init = function () { var t, e, i, r, n, s, a = this.vars, o = this._overwrittenProps, l = this._duration, h = !!a.immediateRender, _ = a.ease, u = this._startAt; if (a.startAt) { for (r in u && (u.render(-1, !0), u.kill()), n = {}, a.startAt) n[r] = a.startAt[r]; if (n.data = "isStart", n.overwrite = !1, n.immediateRender = !0, n.lazy = h && !1 !== a.lazy, n.startAt = n.delay = null, n.onUpdate = a.onUpdate, n.onUpdateParams = a.onUpdateParams, n.onUpdateScope = a.onUpdateScope || a.callbackScope || this, this._startAt = F.to(this.target || {}, 0, n), h) if (this._time > 0) this._startAt = null; else if (0 !== l) return } else if (a.runBackwards && 0 !== l) if (u) u.render(-1, !0), u.kill(), this._startAt = null; else { for (r in 0 !== this._time && (h = !1), i = {}, a) G[r] && "autoCSS" !== r || (i[r] = a[r]); if (i.overwrite = 0, i.data = "isFromStart", i.lazy = h && !1 !== a.lazy, i.immediateRender = h, this._startAt = F.to(this.target, 0, i), h) { if (0 === this._time) return } else this._startAt._init(), this._startAt._enabled(!1), this.vars.immediateRender && (this._startAt = null) } if (this._ease = _ = _ ? _ instanceof b ? _ : "function" == typeof _ ? new b(_, a.easeParams) : w[_] || F.defaultEase : F.defaultEase, a.easeParams instanceof Array && _.config && (this._ease = _.config.apply(_, a.easeParams)), this._easeType = this._ease._type, this._easePower = this._ease._power, this._firstPT = null, this._targets) for (s = this._targets.length, t = 0; s > t; t++)this._initProps(this._targets[t], this._propLookup[t] = {}, this._siblings[t], o ? o[t] : null, t) && (e = !0); else e = this._initProps(this.target, this._propLookup, this._siblings, o, 0); if (e && F._onPluginEvent("_onInitAllProps", this), o && (this._firstPT || "function" != typeof this.target && this._enabled(!1, !1)), a.runBackwards) for (i = this._firstPT; i;)i.s += i.c, i.c = -i.c, i = i._next; this._onUpdate = a.onUpdate, this._initted = !0 }, l._initProps = function (e, i, r, n, s) { var a, o, l, h, _, u; if (null == e) return !1; for (a in I[e._gsTweenID] && K(), this.vars.css || e.style && e !== t && e.nodeType && V.css && !1 !== this.vars.autoCSS && function (t, e) { var i, r = {}; for (i in t) G[i] || i in e && "transform" !== i && "x" !== i && "y" !== i && "width" !== i && "height" !== i && "className" !== i && "border" !== i || !(!V[i] || V[i] && V[i]._autoCSS) || (r[i] = t[i], delete t[i]); t.css = r }(this.vars, e), this.vars) if (u = this.vars[a], G[a]) u && (u instanceof Array || u.push && d(u)) && -1 !== u.join("").indexOf("{self}") && (this.vars[a] = u = this._swapSelfInParams(u, this)); else if (V[a] && (h = new V[a])._onInitTween(e, this.vars[a], this, s)) { for (this._firstPT = _ = { _next: this._firstPT, t: h, p: "setRatio", s: 0, c: 1, f: 1, n: a, pg: 1, pr: h._priority, m: 0 }, o = h._overwriteProps.length; --o > -1;)i[h._overwriteProps[o]] = this._firstPT; (h._priority || h._onInitAllProps) && (l = !0), (h._onDisable || h._onEnable) && (this._notifyPluginsOfEnabled = !0), _._next && (_._next._prev = _) } else i[a] = j.call(this, e, a, "get", u, a, 0, null, this.vars.stringFilter, s); return n && this._kill(n, e) ? this._initProps(e, i, r, n, s) : this._overwrite > 1 && this._firstPT && r.length > 1 && et(e, this, i, this._overwrite, r) ? (this._kill(i, e), this._initProps(e, i, r, n, s)) : (this._firstPT && (!1 !== this.vars.lazy && this._duration || this.vars.lazy && !this._duration) && (I[e._gsTweenID] = !0), l) }, l.render = function (t, e, i) { var r, n, s, a, o = this, l = o._time, h = o._duration, _ = o._rawPrevTime; if (t >= h - c && t >= 0) o._totalTime = o._time = h, o.ratio = o._ease._calcEnd ? o._ease.getRatio(1) : 1, o._reversed || (r = !0, n = "onComplete", i = i || o._timeline.autoRemoveChildren), 0 === h && (o._initted || !o.vars.lazy || i) && (o._startTime === o._timeline._duration && (t = 0), (0 > _ || 0 >= t && t >= -c || _ === c && "isPause" !== o.data) && _ !== t && (i = !0, _ > c && (n = "onReverseComplete")), o._rawPrevTime = a = !e || t || _ === t ? t : c); else if (c > t) o._totalTime = o._time = 0, o.ratio = o._ease._calcEnd ? o._ease.getRatio(0) : 0, (0 !== l || 0 === h && _ > 0) && (n = "onReverseComplete", r = o._reversed), t > -c ? t = 0 : 0 > t && (o._active = !1, 0 === h && (o._initted || !o.vars.lazy || i) && (_ >= 0 && (_ !== c || "isPause" !== o.data) && (i = !0), o._rawPrevTime = a = !e || t || _ === t ? t : c)), (!o._initted || o._startAt && o._startAt.progress()) && (i = !0); else if (o._totalTime = o._time = t, o._easeType) { var u = t / h, f = o._easeType, p = o._easePower; (1 === f || 3 === f && u >= .5) && (u = 1 - u), 3 === f && (u *= 2), 1 === p ? u *= u : 2 === p ? u *= u * u : 3 === p ? u *= u * u * u : 4 === p && (u *= u * u * u * u), o.ratio = 1 === f ? 1 - u : 2 === f ? u : .5 > t / h ? u / 2 : 1 - u / 2 } else o.ratio = o._ease.getRatio(t / h); if (o._time !== l || i) { if (!o._initted) { if (o._init(), !o._initted || o._gc) return; if (!i && o._firstPT && (!1 !== o.vars.lazy && o._duration || o.vars.lazy && !o._duration)) return o._time = o._totalTime = l, o._rawPrevTime = _, E.push(o), void (o._lazy = [t, e]); o._time && !r ? o.ratio = o._ease.getRatio(o._time / h) : r && o._ease._calcEnd && (o.ratio = o._ease.getRatio(0 === o._time ? 0 : 1)) } for (!1 !== o._lazy && (o._lazy = !1), o._active || !o._paused && o._time !== l && t >= 0 && (o._active = !0), 0 === l && (o._startAt && (t >= 0 ? o._startAt.render(t, !0, i) : n || (n = "_dummyGS")), o.vars.onStart && (0 !== o._time || 0 === h) && (e || o._callback("onStart"))), s = o._firstPT; s;)s.f ? s.t[s.p](s.c * o.ratio + s.s) : s.t[s.p] = s.c * o.ratio + s.s, s = s._next;
32 o._onUpdate && (0 > t && o._startAt && -1e-4 !== t && o._startAt.render(t, !0, i), e || (o._time !== l || r || i) && o._callback("onUpdate")), n && (!o._gc || i) && (0 > t && o._startAt && !o._onUpdate && -1e-4 !== t && o._startAt.render(t, !0, i), r && (o._timeline.autoRemoveChildren && o._enabled(!1, !1), o._active = !1), !e && o.vars[n] && o._callback(n), 0 === h && o._rawPrevTime === c && a !== c && (o._rawPrevTime = 0)) } }, l._kill = function (t, e, i) { if ("all" === t && (t = null), null == t && (null == e || e === this.target)) return this._lazy = !1, this._enabled(!1, !1); e = "string" != typeof e ? e || this._targets || this.target : F.selector(e) || e; var r, n, s, a, o, l, h, _, u, f = i && this._time && i._startTime === this._startTime && this._timeline === i._timeline, c = this._firstPT; if ((d(e) || z(e)) && "number" != typeof e[0]) for (r = e.length; --r > -1;)this._kill(t, e[r], i) && (l = !0); else { if (this._targets) { for (r = this._targets.length; --r > -1;)if (e === this._targets[r]) { o = this._propLookup[r] || {}, this._overwrittenProps = this._overwrittenProps || [], n = this._overwrittenProps[r] = t ? this._overwrittenProps[r] || {} : "all"; break } } else { if (e !== this.target) return !1; o = this._propLookup, n = this._overwrittenProps = t ? this._overwrittenProps || {} : "all" } if (o) { if (h = t || o, _ = t !== n && "all" !== n && t !== o && ("object" != typeof t || !t._tempKill), i && (F.onOverwrite || this.vars.onOverwrite)) { for (s in h) o[s] && (u || (u = []), u.push(s)); if ((u || !t) && !tt(this, i, e, u)) return !1 } for (s in h) (a = o[s]) && (f && (a.f ? a.t[a.p](a.s) : a.t[a.p] = a.s, l = !0), a.pg && a.t._kill(h) && (l = !0), a.pg && 0 !== a.t._overwriteProps.length || (a._prev ? a._prev._next = a._next : a === this._firstPT && (this._firstPT = a._next), a._next && (a._next._prev = a._prev), a._next = a._prev = null), delete o[s]), _ && (n[s] = 1); !this._firstPT && this._initted && c && this._enabled(!1, !1) } } return l }, l.invalidate = function () { this._notifyPluginsOfEnabled && F._onPluginEvent("_onDisable", this); var t = this._time; return this._firstPT = this._overwrittenProps = this._startAt = this._onUpdate = null, this._notifyPluginsOfEnabled = this._active = this._lazy = !1, this._propLookup = this._targets ? {} : [], C.prototype.invalidate.call(this), this.vars.immediateRender && (this._time = -c, this.render(t, !1, !1 !== this.vars.lazy)), this }, l._enabled = function (t, e) { if (_ || h.wake(), t && this._gc) { var i, r = this._targets; if (r) for (i = r.length; --i > -1;)this._siblings[i] = J(r[i], this, !0); else this._siblings = J(this.target, this, !0) } return C.prototype._enabled.call(this, t, e), !(!this._notifyPluginsOfEnabled || !this._firstPT) && F._onPluginEvent(t ? "_onEnable" : "_onDisable", this) }, F.to = function (t, e, i) { return new F(t, e, i) }, F.from = function (t, e, i) { return i.runBackwards = !0, i.immediateRender = 0 != i.immediateRender, new F(t, e, i) }, F.fromTo = function (t, e, i, r) { return r.startAt = i, r.immediateRender = 0 != r.immediateRender && 0 != i.immediateRender, new F(t, e, r) }, F.delayedCall = function (t, e, i, r, n) { return new F(e, 0, { delay: t, onComplete: e, onCompleteParams: i, callbackScope: r, onReverseComplete: e, onReverseCompleteParams: i, immediateRender: !1, lazy: !1, useFrames: n, overwrite: 0 }) }, F.set = function (t, e) { return new F(t, 0, e) }, F.getTweensOf = function (t, e) { if (null == t) return []; var i, r, n, s; if (t = "string" != typeof t ? t : F.selector(t) || t, (d(t) || z(t)) && "number" != typeof t[0]) { for (i = t.length, r = []; --i > -1;)r = r.concat(F.getTweensOf(t[i], e)); for (i = r.length; --i > -1;)for (s = r[i], n = i; --n > -1;)s === r[n] && r.splice(i, 1) } else if (t._gsTweenID) for (i = (r = J(t).concat()).length; --i > -1;)(r[i]._gc || e && !r[i].isActive()) && r.splice(i, 1); return r || [] }, F.killTweensOf = F.killDelayedCallsTo = function (t, e, i) { "object" == typeof e && (i = e, e = !1); for (var r = F.getTweensOf(t, e), n = r.length; --n > -1;)r[n]._kill(i, t) }; var rt = T("plugins.TweenPlugin", function (t, e) { this._overwriteProps = (t || "").split(","), this._propName = this._overwriteProps[0], this._priority = e || 0, this._super = rt.prototype }, !0); if (l = rt.prototype, rt.version = "1.19.0", rt.API = 2, l._firstPT = null, l._addTween = j, l.setRatio = L, l._kill = function (t) { var e, i = this._overwriteProps, r = this._firstPT; if (null != t[this._propName]) this._overwriteProps = []; else for (e = i.length; --e > -1;)null != t[i[e]] && i.splice(e, 1); for (; r;)null != t[r.n] && (r._next && (r._next._prev = r._prev), r._prev ? (r._prev._next = r._next, r._prev = null) : this._firstPT === r && (this._firstPT = r._next)), r = r._next; return !1 }, l._mod = l._roundProps = function (t) { for (var e, i = this._firstPT; i;)(e = t[this._propName] || null != i.n && t[i.n.split(this._propName + "_").join("")]) && "function" == typeof e && (2 === i.f ? i.t._applyPT.m = e : i.m = e), i = i._next }, F._onPluginEvent = function (t, e) { var i, r, n, s, a, o = e._firstPT; if ("_onInitAllProps" === t) { for (; o;) { for (a = o._next, r = n; r && r.pr > o.pr;)r = r._next; (o._prev = r ? r._prev : s) ? o._prev._next = o : n = o, (o._next = r) ? r._prev = o : s = o, o = a } o = e._firstPT = n } for (; o;)o.pg && "function" == typeof o.t[t] && o.t[t]() && (i = !0), o = o._next; return i }, rt.activate = function (t) { for (var e = t.length; --e > -1;)t[e].API === rt.API && (V[(new t[e])._propName] = t[e]); return !0 }, v.plugin = function (t) { if (!(t && t.propName && t.init && t.API)) throw "illegal plugin definition."; var e, i = t.propName, r = t.priority || 0, n = t.overwriteProps, s = { init: "_onInitTween", set: "setRatio", kill: "_kill", round: "_mod", mod: "_mod", initAll: "_onInitAllProps" }, a = T("plugins." + i.charAt(0).toUpperCase() + i.substr(1) + "Plugin", function () { rt.call(this, i, r), this._overwriteProps = n || [] }, !0 === t.global), o = a.prototype = new rt(i); for (e in o.constructor = a, a.API = t.API, s) "function" == typeof t[e] && (o[s[e]] = t[e]); return a.version = t.version, rt.activate([a]), a }, a = t._gsQueue) { for (o = 0; o < a.length; o++)a[o](); for (l in g) g[l].func || t.console.log("GSAP encountered missing dependency: " + l) } _ = !1 }("undefined" != typeof module && module.exports && "undefined" != typeof global ? global : this || window, "TweenMax");
33/*! tweenmax */
34
35
36/*! animation gsap */
37!function (e, n) { "function" == typeof define && define.amd ? define(["ScrollMagic", "TweenMax", "TimelineMax"], n) : "object" == typeof exports ? (require("gsap"), n(require("scrollmagic"), TweenMax, TimelineMax)) : n(e.ScrollMagic || e.jQuery && e.jQuery.ScrollMagic, e.TweenMax || e.TweenLite, e.TimelineMax || e.TimelineLite) }(this, function (e, n, o) { "use strict"; var t = window.console || {}, r = Function.prototype.bind.call(t.error || t.log || function () { }, t); e || r("(animation.gsap) -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs."), n || r("(animation.gsap) -> ERROR: TweenLite or TweenMax could not be found. Please make sure GSAP is loaded before ScrollMagic or use an asynchronous loader like requirejs."), e.Scene.addOption("tweenChanges", !1, function (e) { return !!e }), e.Scene.extend(function () { var e, t = this, r = function () { t._log && (Array.prototype.splice.call(arguments, 1, 0, "(animation.gsap)", "->"), t._log.apply(this, arguments)) }; t.on("progress.plugin_gsap", function () { i() }), t.on("destroy.plugin_gsap", function (e) { t.removeTween(e.reset) }); var i = function () { if (e) { var n = t.progress(), o = t.state(); e.repeat && -1 === e.repeat() ? "DURING" === o && e.paused() ? e.play() : "DUR
37ING" === o || e.paused() || e.pause() : n != e.progress() && (0 === t.duration() ? n > 0 ? e.play() : e.reverse() : t.tweenChanges() && e.tweenTo ? e.tweenTo(n * e.duration()) : e.progress(n).pause()) } }; t.setTween = function (a, s, l) { var c; arguments.length > 1 && (arguments.length < 3 && (l = s, s = 1), a = n.to(a, s, l)); try { (c = o ? new o({ smoothChildTiming: !0 }).add(a) : a).pause() } catch (e) { return r(1, "ERROR calling method 'setTween()': Supplied argument is not a valid TweenObject"), t } if (e && t.removeTween(), e = c, a.repeat && -1 === a.repeat() && (e.repeat(-1), e.yoyo(a.yoyo())), t.tweenChanges() && !e.tweenTo && r(2, "WARNING: tweenChanges will only work if the TimelineMax object is available for ScrollMagic."), e && t.controller() && t.triggerElement() && t.loglevel() >= 2) { var u = n.getTweensOf(t.triggerElement()), p = t.controller().info("vertical"); u.forEach(function (e, n) { var o = e.vars.css || e.vars; if (p ? void 0 !== o.top || void 0 !== o.bottom : void 0 !== o.left || void 0 !== o.right) return r(2, "WARNING: Tweening the position of the trigger element affects the scene timing and should be avoided!"), !1 }) } if (parseFloat(TweenLite.version) >= 1.14) for (var g, d, f = e.getChildren ? e.getChildren(!0, !0, !1) : [e], w = function () { r(2, "WARNING: tween was overwritten by another. To learn how to avoid this issue see here: https://github.com/janpaepke/ScrollMagic/wiki/WARNING:-tween-was-overwritten-by-another") }, h = 0; h < f.length; h++)g = f[h], d !== w && (d = g.vars.onOverwrite, g.vars.onOverwrite = function () { d && d.apply(this, arguments), w.apply(this, arguments) }); return r(3, "added tween"), i(), t }, t.removeTween = function (n) { return e && (n && e.progress(0).pause(), e.kill(), e = void 0, r(3, "removed tween (reset: " + (n ? "true" : "false") + ")")), t } }) });
38/*! animation gsap */
39
40
41
42/*! debug addIndicators */
43!function (e, r) { "function" == typeof define && define.amd ? define(["ScrollMagic"], r) : r("object" == typeof exports ? require("scrollmagic") : e.ScrollMagic || e.jQuery && e.jQuery.ScrollMagic) }(this, function (e) { "use strict"; var r = "0.85em", t = "9999", i = 15, o = e._util, n = 0; e.Scene.extend(function () { var e, r = this; r.addIndicators = function (t) { if (!e) { var i = { name: "", indent: 0, parent: void 0, colorStart: "green", colorEnd: "red", colorTrigger: "blue" }; t = o.extend({}, i, t), n++, e = new s(r, t), r.on("add.plugin_addIndicators", e.add), r.on("remove.plugin_addIndicators", e.remove), r.on("destroy.plugin_addIndicators", r.removeIndicators), r.controller() && e.add() } return r }, r.removeIndicators = function () { return e && (e.remove(), this.off("*.plugin_addIndicators"), e = void 0), r } }), e.Controller.addOption("addIndicators", !1), e.Controller.extend(function () { var r = this, t = r.info(), n = t.container, s = t.isDocument, d = t.vertical, a = { groups: [] }; this._indicators = a; var g = function () { a.updateBoundsPositions() }, p = function () { a.updateTriggerGroupPositions() }; return n.addEventListener("resize", p), s || (window.addEventListener("resize", p), window.addEventListener("scroll", p)), n.addEventListener("resize", g), n.addEventListener("scroll", g), this._indicators.updateBoundsPositions = function (e) { for (var r, t, s, g = e ? [o.extend({}, e.triggerGroup, { members: [e] })] : a.groups, p = g.length, u = {}, c = d ? "left" : "top", l = d ? "width" : "height", f = d ? o.get.scrollLeft(n) + o.get.width(n) - i : o.get.scrollTop(n) + o.get.height(n) - i; p--;)for (s = g[p], r = s.members.length, t = o.get[l](s.element.firstChild); r--;)u[c] = f - t, o.css(s.members[r].bounds, u) }, this._indicators.updateTriggerGroupPositions = function (e) { for (var t, g, p, u, c, l = e ? [e] : a.groups, f = l.length, m = s ? document.body : n, h = s ? { top: 0, left: 0 } : o.get.offset(m, !0), v = d ? o.get.width(n) - i : o.get.height(n) - i, b = d ? "width" : "height", G = d ? "Y" : "X"; f--;)t = l[f], g = t.element, p = t.triggerHook * r.info("size"), u = o.get[b](g.firstChild.firstChild), c = p > u ? "translate" + G + "(-100%)" : "", o.css(g, { top: h.top + (d ? p : v - t.members[0].options.indent), left
43: h.left + (d ? v - t.members[0].options.indent : p) }), o.css(g.firstChild.firstChild, { "-ms-transform": c, "-webkit-transform": c, transform: c }) }, this._indicators.updateTriggerGroupLabel = function (e) { var r = "trigger" + (e.members.length > 1 ? "" : " " + e.members[0].options.name), t = e.element.firstChild.firstChild, i = t.textContent !== r; i && (t.textContent = r, d && a.updateBoundsPositions()) }, this.addScene = function (t) { this._options.addIndicators && t instanceof e.Scene && t.controller() === r && t.addIndicators(), this.$super.addScene.apply(this, arguments) }, this.destroy = function () { n.removeEventListener("resize", p), s || (window.removeEventListener("resize", p), window.removeEventListener("scroll", p)), n.removeEventListener("resize", g), n.removeEventListener("scroll", g), this.$super.destroy.apply(this, arguments) }, r }); var s = function (e, r) { var t, i, s = this, a = d.bounds(), g = d.start(r.colorStart), p = d.end(r.colorEnd), u = r.parent && o.get.elements(r.parent)[0]; r.name = r.name || n, g.firstChild.textContent += " " + r.name, p.textContent += " " + r.name, a.appendChild(g), a.appendChild(p), s.options = r, s.bounds = a, s.triggerGroup = void 0, this.add = function () { i = e.controller(), t = i.info("vertical"); var r = i.info("isDocument"); u || (u = r ? document.body : i.info("container")), r || "static" !== o.css(u, "position") || o.css(u, { position: "relative" }), e.on("change.plugin_addIndicators", l), e.on("shift.plugin_addIndicators", c), G(), h(), setTimeout(function () { i._indicators.updateBoundsPositions(s) }, 0) }, this.remove = function () { if (s.triggerGroup) { if (e.off("change.plugin_addIndicators", l), e.off("shift.plugin_addIndicators", c), s.triggerGroup.members.length > 1) { var r = s.triggerGroup; r.members.splice(r.members.indexOf(s), 1), i._indicators.updateTriggerGroupLabel(r), i._indicators.updateTriggerGroupPositions(r), s.triggerGroup = void 0 } else b(); m() } }; var c = function () { h() }, l = function (e) { "triggerHook" === e.what && G() }, f = function () { var e = i.info("vertical"); o.css(g.firstChild, { "border-bottom-width": e ? 1 : 0, "border-right-width": e ? 0 : 1, bottom: e ? -1 : r.indent, right: e ? r.indent : -1, padding: e ? "0 8px" : "2px 4px" }), o.css(p, { "border-top-width": e ? 1 : 0, "border-left-width": e ? 0 : 1, top: e ? "100%" : "", right: e ? r.indent : "", bottom: e ? "" : r.indent, left: e ? "" : "100%", padding: e ? "0 8px" : "2px 4px" }), u.appendChild(a) }, m = function () { a.parentNode.removeChild(a) }, h = function () { a.parentNode !== u && f(); var r = {}; r[t ? "top" : "left"] = e.triggerPosition(), r[t ? "height" : "width"] = e.duration(), o.css(a, r), o.css(p, { display: e.duration() > 0 ? "" : "none" }) }, v = function () { var n = d.trigger(r.colorTrigger), a = {}; a[t ? "right" : "bottom"] = 0, a[t ? "border-top-width" : "border-left-width"] = 1, o.css(n.firstChild, a), o.css(n.firstChild.firstChild, { padding: t ? "0 8px 3px 8px" : "3px 4px" }), document.body.appendChild(n); var g = { triggerHook: e.triggerHook(), element: n, members: [s] }; i._indicators.groups.push(g), s.triggerGroup = g, i._indicators.updateTriggerGroupLabel(g), i._indicators.updateTriggerGroupPositions(g) }, b = function () { i._indicators.groups.splice(i._indicators.groups.indexOf(s.triggerGroup), 1), s.triggerGroup.element.parentNode.removeChild(s.triggerGroup.element), s.triggerGroup = void 0 }, G = function () { var r = e.triggerHook(), t = 1e-4; if (!(s.triggerGroup && Math.abs(s.triggerGroup.triggerHook - r) < t)) { for (var o, n = i._indicators.groups, d = n.length; d--;)if (o = n[d], Math.abs(o.triggerHook - r) < t) return s.triggerGroup && (1 === s.triggerGroup.members.length ? b() : (s.triggerGroup.members.splice(s.triggerGroup.members.indexOf(s), 1), i._indicators.updateTriggerGroupLabel(s.triggerGroup), i._indicators.updateTriggerGroupPositions(s.triggerGroup))), o.members.push(s), s.triggerGroup = o, void i._indicators.updateTriggerGroupLabel(o); if (s.triggerGroup) { if (1 === s.triggerGroup.members.length) return s.triggerGroup.triggerHook = r, void i._indicators.updateTriggerGroupPositions(s.triggerGroup); s.triggerGroup.members.splice(s.triggerGroup.members.indexOf(s), 1), i._indicators.updateTriggerGroupLabel(s.triggerGroup), i._indicators.updateTriggerGroupPositions(s.triggerGroup), s.triggerGroup = void 0 } v() } } }, d = { start: function (e) { var r = document.createElement("div"); r.textContent = "start", o.css(r, { position: "absolute", overflow: "visible", "border-width": 0, "border-style": "solid", color: e, "border-color": e }); var t = document.createElement("div"); return o.css(t, { position: "absolute", overflow: "visible", width: 0, height: 0 }), t.appendChild(r), t }, end: function (e) { var r = document.createElement("div"); return r.textContent = "end", o.css(r, { position: "absolute", overflow: "visible", "border-width": 0, "border-style": "solid", color: e, "border-color": e }), r }, bounds: function () { var e = document.createElement("div"); return o.css(e, { position: "absolute", overflow: "visible", "white-space": "nowrap", "pointer-events": "none", "font-size": r }), e.style.zIndex = t, e }, trigger: function (e) { var i = document.createElement("div"); i.textContent = "trigger", o.css(i, { position: "relative" }); var n = document.createElement("div"); o.css(n, { position: "absolute", overflow: "visible", "border-width": 0, "border-style": "solid", color: e, "border-color": e }), n.appendChild(i); var s = document.createElement("div"); return o.css(s, { position: "fixed", overflow: "visible", "white-space": "nowrap", "pointer-events": "none", "font-size": r }), s.style.zIndex = t, s.appendChild(n), s } } });
44/*! debug addIndicators */
45
46
47
48
49/*! gallery js */
50var shortcodeIntervals = [];
51
52function CheckView() {
53
54    var regex = new RegExp("\\[gallery-shortcode=([0-9]).*\\]+", "g");
55
56    while ((match = regex.exec($('body').text())) !== null) {
57        if (Array.isArray(match)) {
58            var hookID = parseInt(match[1]);
59            var device = dotvvm.viewModels.root.viewModel.DeviceType();
60
61            $.post("/api/gallery/get/" + hookID + "/" + device, function (data, status) {
62
63                var stringToReplace = "[gallery-shortcode=" + data.id + "]";
64                var reuslt = data;
65                BuildHtml(reuslt, stringToReplace);
66
67            });
68        }
69        if (match.index === regex.lastIndex) {
70            regex.lastIndex++;
71        }
72
73    }
74
75}
76
77
78function BuildHtml(gallery, stringToReplace) {
79    var outerHtml = gallery.outerHtml;
80    var itemTemplateHtml = gallery.itemTemplate;
81    var tabsOuterTemplateHtml = gallery.tabWrapperTemplate;
82    var tabsTemplateHtml = gallery.tabTemplate;
83    var isotopeImageOuterHtml = gallery.itemWrapperTemplate;
84
85
86    outerHtml = replaceOuterParameters(outerHtml, gallery)
87    var outerElement = $(outerHtml);
88
89    if (gallery.type == 3) {
90        isotopeImageOuterHtml = replaceOuterParameters(isotopeImageOuterHtml, gallery);
91        isotopeImageOuterElement = $(isotopeImageOuterHtml);
92        tabsOuterTemplateHtml = replaceOuterParameters(tabsOuterTemplateHtml, gallery);
93        var tabsOuterElement = $(tabsOuterTemplateHtml);
94        var tabsitemTemplateHtml = tabsTemplateHtml.slice();
95        tabsitemTemplateHtml = tabsitemTemplateHtml.replace("{name}", gallery.nofilterCategoryName).replace();
96        var tabsitemElement = $(tabsitemTemplateHtml);
97        var checkforatt = tabsitemElement.attr("data-filter");
98        if (typeof checkforatt !== 'undefined' && checkforatt !== false) {
99            tabsitemElement.attr("data-filter", "*")
100        }
101        else {
102            tabsitemElement.find("[data-filter]").attr("data-filter", "*");
103        }
104
105
106
107        tabsOuterElement.append(tabsitemElement)
108
109    }
110
111    gallery.galleryCategories.forEach(function (item) {
112        if (gallery.type == 3) {
113            var tabsitemTemplateHtml = tabsTemplateHtml.slice();
114            tabsitemTemplateHtml = replaceCategoryParameters(tabsitemTemplateHtml, item);
115            tabsOuterElement.append($(tabsitemTemplateHtml))
116        }
117
118        item.galleryImagesRow.forEach(function (item2) {
119            var itemTemplate = itemTemplateHtml.slice();
120            itemTemplate = replaceImageParameters(itemTemplate, item2, item.id);
121            var element = $(itemTemplate);
122            if (gallery.type == 3) {
123                isotopeImageOuterElement.append(element);
124            }
125            else {
126                outerElement.append(element);
127            }
128        });
129
130    });
131
132    if (gallery.type == 3) {
133        outerElement.prepend(tabsOuterElement);
134        outerElement.append(isotopeImageOuterElement);
135    }
136    var wrappedElement = $('<div></div>').append(outerElement);
137    var shortcodeParents = $('*[data-shortcode="true"]:contains(' + stringToReplace + ')');
138    shortcodeParents.each(function () {
139        $(this).html($(this).html().replace(stringToReplace, wrappedElement.html()));
140        $(this).attr("data-shortcodeloaded", true);
141    })
142    //document.body.innerHTML = document.body.innerHTML.replace(stringToReplace, wrappedElement.html());
143
144    if (gallery.type == 1) {
145        BuildGrid(outerElement.attr("class").split(/\s+/).join("."), gallery);
146    }
147    else if (gallery.type == 2) {
148        BuildSlider(outerElement.attr("class").split(/\s+/).join("."), gallery);
149    }
150    else if (gallery.type == 3) {
151        var isotopeHtml = BuildIsotope(isotopeImageOuterElement.attr("class").split(/\s+/).join("."), gallery, tabsOuterElement);
152    }
153    else {
154        BuildGrid(outerElement.attr("class").split(/\s+/).join("."), gallery);
155    }
156}
157
158
159
160
161function BuildGrid(outerClass, gallery) {
162    var headerCss = "<style>";
163    if (gallery.breakPoints.length > 0) {
164        headerCss += "." + outerClass + "{display:grid;grid-column-gap: 20px;grid-template-columns:repeat(" + gallery.breakPoints[0].slidesToShow + ",minmax(0px," + (100 / gallery.breakPoints[0].slidesToShow) + "%))}";
165    }
166    gallery.breakPoints.forEach(function (item) {
167        headerCss += "@media (max-width: " + item.width + "px) { ." + outerClass + "{display:grid;grid-column-gap: 20px;grid-template-columns:repeat(" + item.slidesToShow + ",minmax(0px," + (100 / item.slidesToShow) + "%))}}";
168    });
169
170    headerCss += "</style>";
171    $('head').append(headerCss);
172
173}
174
175
176function BuildSlider(outerClass, gallery) {
177
178
179
180    var defaultdim = { slidesToShow: null, rows: null, dots: null, infinite: null, arrows: null, autoplay: null, autoPlaySpeed: null };
181    if (gallery.breakPoints.length > 0) {
182        defaultdim.arrows = gallery.breakPoints[0].arrows;
183        defaultdim.dots = gallery.breakPoints[0].dots;
184        defaultdim.infinite = gallery.breakPoints[0].infinity;
185        defaultdim.slidesToShow = gallery.breakPoints[0].slidesToShow;
186        defaultdim.rows = gallery.breakPoints[0].numberOfRows;
187        defaultdim.autoplay = gallery.breakPoints[0].autoplay;
188        defaultdim.autoPlaySpeed = gallery.breakPoints[0].autoPlaySpeed;
189
190    }
191    var breakpoints = [];
192    gallery.breakPoints.forEach(function (item) {
193        breakpoints.push({
194            breakpoint: item.width,
195            settings: {
196                slidesToShow: item.slidesToShow,
197                rows: item.numberOfRows,
198                slidesToScroll: 1,
199                arrows: item.arrows,
200                infinite: item.infinity,
201                autoplay: item.autoplay,
202                autoPlaySpeed: item.autoPlaySpeed,
203            }
204        });
205
206    });
207
208    shortcodeIntervals[gallery.id] = setInterval(function () {
209        {
210            if ($("." + outerClass).length) {
211                clearInterval(shortcodeIntervals[gallery.id]);
212
213                $("." + outerClass).slick({
214                    dots: defaultdim.dots,
215                    infinite: defaultdim.infinite,
216                    arrows: defaultdim.arrows,
217                    rows: defaultdim.rows,
218                    slidesToShow: defaultdim.slidesToShow,
219                    slidesToScroll: 1,
220                    autoplay: defaultdim.autoplay,
221                    autoplaySpeed: defaultdim.autoPlaySpeed,
222                    prevArrow: gallery.leftArrowHtml,
223                    nextArrow: gallery.rightArrowHtml,
224                    responsive: breakpoints
225                });
226            }
227
228        }
229    }, 100);
230}
231
232
233function BuildIsotope(outerClass, gallery, tabsOuterElement) {
234    var headerCss = "<style>";
235    if (gallery.breakPoints.length > 0) {
236        headerCss += "." + outerClass + "> *{ width: " + (100 / gallery.breakPoints[0].slidesToShow) + "%;}";
237    }
238    gallery.breakPoints.forEach(function (item) {
239        headerCss += "@media (max-width: " + item.width + "px) { ." + outerClass + "> *{ width: " + (100 / item.slidesToShow) + "%;}}";
240    });
241
242    headerCss += "</style>";
243    $('head').append(headerCss);
244
245
246    shortcodeIntervals[gallery.id] = setInterval(function () {
247        {
248            if ($("." + outerClass).length) {
249                clearInterval(shortcodeIntervals[gallery.id]);
250
251                $("." + outerClass).isotope({ itemSelector: '.isotope-item', percentPosition: false, });
252
253
254
255                var targets = $("." + outerClass).parent().find("[data-filter]");
256                targets.each(function () {
257                    $(this).bind("click", function () {
258                        var selector = $(this).attr('data-filter');
259                        $("." + outerClass).isotope({ filter: selector });
260                    });
261                });
262            }
263        }
264    }, 100);
265
266}
267
268
269function replaceOuterParameters(html, gallery) {
270    html = html
271        .replace("{id}", gallery.id)
272        .replace("{imageTitle}", gallery.imageTitle)
273        .replace("{nofilterCategoryName}", gallery.nofilterCategoryName)
274        .replace("{type}", gallery.type)
275        ;
276    return html;
277}
278
279
280function replaceImageParameters(html, image, categoryID) {
281    html = html
282        .replace("{imagePath}", image.imagePath)
283        .replace("{imageTitle}", image.imageTitle)
284        .replace("{imageCaption}", image.imageCaption)
285        .replace("{imageSeoTitle}", image.imageSeoTitle)
286        .replace("{imageLink}", image.imageLink)
287        .replace("{categoryID}", categoryID)
288        ;
289    return html;
290}
291
292
293function replaceCategoryParameters(html, category) {
294    html = html
295        .replace("{id}", category.id)
296        .replace("{name}", category.name)
297        ;
298    return html;
299}
300/*! gallery js */

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.