You've already forked Atomcms-edit
Initial commit
This commit is contained in:
@@ -0,0 +1,728 @@
|
||||
(() => {
|
||||
var j = [
|
||||
"input",
|
||||
"select",
|
||||
"textarea",
|
||||
"a[href]",
|
||||
"button",
|
||||
"[tabindex]",
|
||||
"audio[controls]",
|
||||
"video[controls]",
|
||||
'[contenteditable]:not([contenteditable="false"])',
|
||||
"details>summary:first-of-type",
|
||||
"details",
|
||||
],
|
||||
_ = j.join(","),
|
||||
A =
|
||||
typeof Element == "undefined"
|
||||
? function () {}
|
||||
: Element.prototype.matches ||
|
||||
Element.prototype.msMatchesSelector ||
|
||||
Element.prototype.webkitMatchesSelector,
|
||||
G = function (e, t, a) {
|
||||
var u = Array.prototype.slice.apply(e.querySelectorAll(_));
|
||||
return (t && A.call(e, _) && u.unshift(e), (u = u.filter(a)), u);
|
||||
},
|
||||
Z = function (e) {
|
||||
return e.contentEditable === "true";
|
||||
},
|
||||
M = function (e) {
|
||||
var t = parseInt(e.getAttribute("tabindex"), 10);
|
||||
return isNaN(t)
|
||||
? Z(e) ||
|
||||
((e.nodeName === "AUDIO" ||
|
||||
e.nodeName === "VIDEO" ||
|
||||
e.nodeName === "DETAILS") &&
|
||||
e.getAttribute("tabindex") === null)
|
||||
? 0
|
||||
: e.tabIndex
|
||||
: t;
|
||||
},
|
||||
$ = function (e, t) {
|
||||
return e.tabIndex === t.tabIndex
|
||||
? e.documentOrder - t.documentOrder
|
||||
: e.tabIndex - t.tabIndex;
|
||||
},
|
||||
C = function (e) {
|
||||
return e.tagName === "INPUT";
|
||||
},
|
||||
ee = function (e) {
|
||||
return C(e) && e.type === "hidden";
|
||||
},
|
||||
te = function (e) {
|
||||
var t =
|
||||
e.tagName === "DETAILS" &&
|
||||
Array.prototype.slice.apply(e.children).some(function (a) {
|
||||
return a.tagName === "SUMMARY";
|
||||
});
|
||||
return t;
|
||||
},
|
||||
re = function (e, t) {
|
||||
for (var a = 0; a < e.length; a++)
|
||||
if (e[a].checked && e[a].form === t) return e[a];
|
||||
},
|
||||
ae = function (e) {
|
||||
if (!e.name) return !0;
|
||||
var t = e.form || e.ownerDocument,
|
||||
a = function (l) {
|
||||
return t.querySelectorAll('input[type="radio"][name="' + l + '"]');
|
||||
},
|
||||
u;
|
||||
if (
|
||||
typeof window != "undefined" &&
|
||||
typeof window.CSS != "undefined" &&
|
||||
typeof window.CSS.escape == "function"
|
||||
)
|
||||
u = a(window.CSS.escape(e.name));
|
||||
else
|
||||
try {
|
||||
u = a(e.name);
|
||||
} catch (s) {
|
||||
return (
|
||||
console.error(
|
||||
"Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",
|
||||
s.message,
|
||||
),
|
||||
!1
|
||||
);
|
||||
}
|
||||
var r = re(u, e.form);
|
||||
return !r || r === e;
|
||||
},
|
||||
ne = function (e) {
|
||||
return C(e) && e.type === "radio";
|
||||
},
|
||||
ie = function (e) {
|
||||
return ne(e) && !ae(e);
|
||||
},
|
||||
ue = function (e, t) {
|
||||
if (getComputedStyle(e).visibility === "hidden") return !0;
|
||||
var a = A.call(e, "details>summary:first-of-type"),
|
||||
u = a ? e.parentElement : e;
|
||||
if (A.call(u, "details:not([open]) *")) return !0;
|
||||
if (!t || t === "full")
|
||||
for (; e; ) {
|
||||
if (getComputedStyle(e).display === "none") return !0;
|
||||
e = e.parentElement;
|
||||
}
|
||||
else if (t === "non-zero-area") {
|
||||
var r = e.getBoundingClientRect(),
|
||||
s = r.width,
|
||||
l = r.height;
|
||||
return s === 0 && l === 0;
|
||||
}
|
||||
return !1;
|
||||
},
|
||||
oe = function (e) {
|
||||
if (
|
||||
C(e) ||
|
||||
e.tagName === "SELECT" ||
|
||||
e.tagName === "TEXTAREA" ||
|
||||
e.tagName === "BUTTON"
|
||||
)
|
||||
for (var t = e.parentElement; t; ) {
|
||||
if (t.tagName === "FIELDSET" && t.disabled) {
|
||||
for (var a = 0; a < t.children.length; a++) {
|
||||
var u = t.children.item(a);
|
||||
if (u.tagName === "LEGEND") return !u.contains(e);
|
||||
}
|
||||
return !0;
|
||||
}
|
||||
t = t.parentElement;
|
||||
}
|
||||
return !1;
|
||||
},
|
||||
O = function (e, t) {
|
||||
return !(t.disabled || ee(t) || ue(t, e.displayCheck) || te(t) || oe(t));
|
||||
},
|
||||
se = function (e, t) {
|
||||
return !(!O(e, t) || ie(t) || M(t) < 0);
|
||||
},
|
||||
q = function (e, t) {
|
||||
t = t || {};
|
||||
var a = [],
|
||||
u = [],
|
||||
r = G(e, t.includeContainer, se.bind(null, t));
|
||||
r.forEach(function (l, h) {
|
||||
var b = M(l);
|
||||
b === 0
|
||||
? a.push(l)
|
||||
: u.push({ documentOrder: h, tabIndex: b, node: l });
|
||||
});
|
||||
var s = u
|
||||
.sort($)
|
||||
.map(function (l) {
|
||||
return l.node;
|
||||
})
|
||||
.concat(a);
|
||||
return s;
|
||||
},
|
||||
W = function (e, t) {
|
||||
t = t || {};
|
||||
var a = G(e, t.includeContainer, O.bind(null, t));
|
||||
return a;
|
||||
};
|
||||
var ce = j.concat("iframe").join(","),
|
||||
k = function (e, t) {
|
||||
if (((t = t || {}), !e)) throw new Error("No node provided");
|
||||
return A.call(e, ce) === !1 ? !1 : O(t, e);
|
||||
};
|
||||
function B(i, e) {
|
||||
var t = Object.keys(i);
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
var a = Object.getOwnPropertySymbols(i);
|
||||
(e &&
|
||||
(a = a.filter(function (u) {
|
||||
return Object.getOwnPropertyDescriptor(i, u).enumerable;
|
||||
})),
|
||||
t.push.apply(t, a));
|
||||
}
|
||||
return t;
|
||||
}
|
||||
function fe(i) {
|
||||
for (var e = 1; e < arguments.length; e++) {
|
||||
var t = arguments[e] != null ? arguments[e] : {};
|
||||
e % 2
|
||||
? B(Object(t), !0).forEach(function (a) {
|
||||
le(i, a, t[a]);
|
||||
})
|
||||
: Object.getOwnPropertyDescriptors
|
||||
? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t))
|
||||
: B(Object(t)).forEach(function (a) {
|
||||
Object.defineProperty(
|
||||
i,
|
||||
a,
|
||||
Object.getOwnPropertyDescriptor(t, a),
|
||||
);
|
||||
});
|
||||
}
|
||||
return i;
|
||||
}
|
||||
function le(i, e, t) {
|
||||
return (
|
||||
e in i
|
||||
? Object.defineProperty(i, e, {
|
||||
value: t,
|
||||
enumerable: !0,
|
||||
configurable: !0,
|
||||
writable: !0,
|
||||
})
|
||||
: (i[e] = t),
|
||||
i
|
||||
);
|
||||
}
|
||||
var H = (function () {
|
||||
var i = [];
|
||||
return {
|
||||
activateTrap: function (t) {
|
||||
if (i.length > 0) {
|
||||
var a = i[i.length - 1];
|
||||
a !== t && a.pause();
|
||||
}
|
||||
var u = i.indexOf(t);
|
||||
(u === -1 || i.splice(u, 1), i.push(t));
|
||||
},
|
||||
deactivateTrap: function (t) {
|
||||
var a = i.indexOf(t);
|
||||
(a !== -1 && i.splice(a, 1),
|
||||
i.length > 0 && i[i.length - 1].unpause());
|
||||
},
|
||||
};
|
||||
})(),
|
||||
de = function (e) {
|
||||
return (
|
||||
e.tagName &&
|
||||
e.tagName.toLowerCase() === "input" &&
|
||||
typeof e.select == "function"
|
||||
);
|
||||
},
|
||||
be = function (e) {
|
||||
return e.key === "Escape" || e.key === "Esc" || e.keyCode === 27;
|
||||
},
|
||||
ve = function (e) {
|
||||
return e.key === "Tab" || e.keyCode === 9;
|
||||
},
|
||||
U = function (e) {
|
||||
return setTimeout(e, 0);
|
||||
},
|
||||
L = function (e, t) {
|
||||
var a = -1;
|
||||
return (
|
||||
e.every(function (u, r) {
|
||||
return t(u) ? ((a = r), !1) : !0;
|
||||
}),
|
||||
a
|
||||
);
|
||||
},
|
||||
D = function (e) {
|
||||
for (
|
||||
var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), u = 1;
|
||||
u < t;
|
||||
u++
|
||||
)
|
||||
a[u - 1] = arguments[u];
|
||||
return typeof e == "function" ? e.apply(void 0, a) : e;
|
||||
},
|
||||
K = function (e, t) {
|
||||
var a = document,
|
||||
u = fe(
|
||||
{
|
||||
returnFocusOnDeactivate: !0,
|
||||
escapeDeactivates: !0,
|
||||
delayInitialFocus: !0,
|
||||
},
|
||||
t,
|
||||
),
|
||||
r = {
|
||||
containers: [],
|
||||
tabbableGroups: [],
|
||||
nodeFocusedBeforeActivation: null,
|
||||
mostRecentlyFocusedNode: null,
|
||||
active: !1,
|
||||
paused: !1,
|
||||
delayInitialFocusTimer: void 0,
|
||||
},
|
||||
s,
|
||||
l = function (n, o, c) {
|
||||
return n && n[o] !== void 0 ? n[o] : u[c || o];
|
||||
},
|
||||
h = function (n) {
|
||||
return r.containers.some(function (o) {
|
||||
return o.contains(n);
|
||||
});
|
||||
},
|
||||
b = function (n) {
|
||||
var o = u[n];
|
||||
if (!o) return null;
|
||||
var c = o;
|
||||
if (typeof o == "string" && ((c = a.querySelector(o)), !c))
|
||||
throw new Error("`".concat(n, "` refers to no known node"));
|
||||
if (typeof o == "function" && ((c = o()), !c))
|
||||
throw new Error("`".concat(n, "` did not return a node"));
|
||||
return c;
|
||||
},
|
||||
v = function () {
|
||||
var n;
|
||||
if (l({}, "initialFocus") === !1) return !1;
|
||||
if (b("initialFocus") !== null) n = b("initialFocus");
|
||||
else if (h(a.activeElement)) n = a.activeElement;
|
||||
else {
|
||||
var o = r.tabbableGroups[0],
|
||||
c = o && o.firstTabbableNode;
|
||||
n = c || b("fallbackFocus");
|
||||
}
|
||||
if (!n)
|
||||
throw new Error(
|
||||
"Your focus-trap needs to have at least one focusable element",
|
||||
);
|
||||
return n;
|
||||
},
|
||||
m = function () {
|
||||
if (
|
||||
((r.tabbableGroups = r.containers
|
||||
.map(function (n) {
|
||||
var o = q(n);
|
||||
if (o.length > 0)
|
||||
return {
|
||||
container: n,
|
||||
firstTabbableNode: o[0],
|
||||
lastTabbableNode: o[o.length - 1],
|
||||
};
|
||||
})
|
||||
.filter(function (n) {
|
||||
return !!n;
|
||||
})),
|
||||
r.tabbableGroups.length <= 0 && !b("fallbackFocus"))
|
||||
)
|
||||
throw new Error(
|
||||
"Your focus-trap must have at least one container with at least one tabbable node in it at all times",
|
||||
);
|
||||
},
|
||||
p = function f(n) {
|
||||
if (n !== !1 && n !== a.activeElement) {
|
||||
if (!n || !n.focus) {
|
||||
f(v());
|
||||
return;
|
||||
}
|
||||
(n.focus({ preventScroll: !!u.preventScroll }),
|
||||
(r.mostRecentlyFocusedNode = n),
|
||||
de(n) && n.select());
|
||||
}
|
||||
},
|
||||
E = function (n) {
|
||||
var o = b("setReturnFocus");
|
||||
return o || n;
|
||||
},
|
||||
y = function (n) {
|
||||
if (!h(n.target)) {
|
||||
if (D(u.clickOutsideDeactivates, n)) {
|
||||
s.deactivate({
|
||||
returnFocus: u.returnFocusOnDeactivate && !k(n.target),
|
||||
});
|
||||
return;
|
||||
}
|
||||
D(u.allowOutsideClick, n) || n.preventDefault();
|
||||
}
|
||||
},
|
||||
w = function (n) {
|
||||
var o = h(n.target);
|
||||
o || n.target instanceof Document
|
||||
? o && (r.mostRecentlyFocusedNode = n.target)
|
||||
: (n.stopImmediatePropagation(),
|
||||
p(r.mostRecentlyFocusedNode || v()));
|
||||
},
|
||||
Q = function (n) {
|
||||
m();
|
||||
var o = null;
|
||||
if (r.tabbableGroups.length > 0) {
|
||||
var c = L(r.tabbableGroups, function (S) {
|
||||
var N = S.container;
|
||||
return N.contains(n.target);
|
||||
});
|
||||
if (c < 0)
|
||||
n.shiftKey
|
||||
? (o =
|
||||
r.tabbableGroups[r.tabbableGroups.length - 1]
|
||||
.lastTabbableNode)
|
||||
: (o = r.tabbableGroups[0].firstTabbableNode);
|
||||
else if (n.shiftKey) {
|
||||
var d = L(r.tabbableGroups, function (S) {
|
||||
var N = S.firstTabbableNode;
|
||||
return n.target === N;
|
||||
});
|
||||
if (
|
||||
(d < 0 && r.tabbableGroups[c].container === n.target && (d = c),
|
||||
d >= 0)
|
||||
) {
|
||||
var g = d === 0 ? r.tabbableGroups.length - 1 : d - 1,
|
||||
F = r.tabbableGroups[g];
|
||||
o = F.lastTabbableNode;
|
||||
}
|
||||
} else {
|
||||
var T = L(r.tabbableGroups, function (S) {
|
||||
var N = S.lastTabbableNode;
|
||||
return n.target === N;
|
||||
});
|
||||
if (
|
||||
(T < 0 && r.tabbableGroups[c].container === n.target && (T = c),
|
||||
T >= 0)
|
||||
) {
|
||||
var X = T === r.tabbableGroups.length - 1 ? 0 : T + 1,
|
||||
J = r.tabbableGroups[X];
|
||||
o = J.firstTabbableNode;
|
||||
}
|
||||
}
|
||||
} else o = b("fallbackFocus");
|
||||
o && (n.preventDefault(), p(o));
|
||||
},
|
||||
R = function (n) {
|
||||
if (be(n) && D(u.escapeDeactivates) !== !1) {
|
||||
(n.preventDefault(), s.deactivate());
|
||||
return;
|
||||
}
|
||||
if (ve(n)) {
|
||||
Q(n);
|
||||
return;
|
||||
}
|
||||
},
|
||||
x = function (n) {
|
||||
D(u.clickOutsideDeactivates, n) ||
|
||||
h(n.target) ||
|
||||
D(u.allowOutsideClick, n) ||
|
||||
(n.preventDefault(), n.stopImmediatePropagation());
|
||||
},
|
||||
I = function () {
|
||||
if (!!r.active)
|
||||
return (
|
||||
H.activateTrap(s),
|
||||
(r.delayInitialFocusTimer = u.delayInitialFocus
|
||||
? U(function () {
|
||||
p(v());
|
||||
})
|
||||
: p(v())),
|
||||
a.addEventListener("focusin", w, !0),
|
||||
a.addEventListener("mousedown", y, {
|
||||
capture: !0,
|
||||
passive: !1,
|
||||
}),
|
||||
a.addEventListener("touchstart", y, {
|
||||
capture: !0,
|
||||
passive: !1,
|
||||
}),
|
||||
a.addEventListener("click", x, {
|
||||
capture: !0,
|
||||
passive: !1,
|
||||
}),
|
||||
a.addEventListener("keydown", R, {
|
||||
capture: !0,
|
||||
passive: !1,
|
||||
}),
|
||||
s
|
||||
);
|
||||
},
|
||||
P = function () {
|
||||
if (!!r.active)
|
||||
return (
|
||||
a.removeEventListener("focusin", w, !0),
|
||||
a.removeEventListener("mousedown", y, !0),
|
||||
a.removeEventListener("touchstart", y, !0),
|
||||
a.removeEventListener("click", x, !0),
|
||||
a.removeEventListener("keydown", R, !0),
|
||||
s
|
||||
);
|
||||
};
|
||||
return (
|
||||
(s = {
|
||||
activate: function (n) {
|
||||
if (r.active) return this;
|
||||
var o = l(n, "onActivate"),
|
||||
c = l(n, "onPostActivate"),
|
||||
d = l(n, "checkCanFocusTrap");
|
||||
(d || m(),
|
||||
(r.active = !0),
|
||||
(r.paused = !1),
|
||||
(r.nodeFocusedBeforeActivation = a.activeElement),
|
||||
o && o());
|
||||
var g = function () {
|
||||
(d && m(), I(), c && c());
|
||||
};
|
||||
return d
|
||||
? (d(r.containers.concat()).then(g, g), this)
|
||||
: (g(), this);
|
||||
},
|
||||
deactivate: function (n) {
|
||||
if (!r.active) return this;
|
||||
(clearTimeout(r.delayInitialFocusTimer),
|
||||
(r.delayInitialFocusTimer = void 0),
|
||||
P(),
|
||||
(r.active = !1),
|
||||
(r.paused = !1),
|
||||
H.deactivateTrap(s));
|
||||
var o = l(n, "onDeactivate"),
|
||||
c = l(n, "onPostDeactivate"),
|
||||
d = l(n, "checkCanReturnFocus");
|
||||
o && o();
|
||||
var g = l(n, "returnFocus", "returnFocusOnDeactivate"),
|
||||
F = function () {
|
||||
U(function () {
|
||||
(g && p(E(r.nodeFocusedBeforeActivation)), c && c());
|
||||
});
|
||||
};
|
||||
return g && d
|
||||
? (d(E(r.nodeFocusedBeforeActivation)).then(F, F), this)
|
||||
: (F(), this);
|
||||
},
|
||||
pause: function () {
|
||||
return r.paused || !r.active ? this : ((r.paused = !0), P(), this);
|
||||
},
|
||||
unpause: function () {
|
||||
return !r.paused || !r.active
|
||||
? this
|
||||
: ((r.paused = !1), m(), I(), this);
|
||||
},
|
||||
updateContainerElements: function (n) {
|
||||
var o = [].concat(n).filter(Boolean);
|
||||
return (
|
||||
(r.containers = o.map(function (c) {
|
||||
return typeof c == "string" ? a.querySelector(c) : c;
|
||||
})),
|
||||
r.active && m(),
|
||||
this
|
||||
);
|
||||
},
|
||||
}),
|
||||
s.updateContainerElements(e),
|
||||
s
|
||||
);
|
||||
};
|
||||
function Y(i) {
|
||||
let e, t;
|
||||
(window.addEventListener("focusin", () => {
|
||||
((e = t), (t = document.activeElement));
|
||||
}),
|
||||
i.magic("focus", (a) => {
|
||||
let u = a;
|
||||
return {
|
||||
__noscroll: !1,
|
||||
__wrapAround: !1,
|
||||
within(r) {
|
||||
return ((u = r), this);
|
||||
},
|
||||
withoutScrolling() {
|
||||
return ((this.__noscroll = !0), this);
|
||||
},
|
||||
noscroll() {
|
||||
return ((this.__noscroll = !0), this);
|
||||
},
|
||||
withWrapAround() {
|
||||
return ((this.__wrapAround = !0), this);
|
||||
},
|
||||
wrap() {
|
||||
return this.withWrapAround();
|
||||
},
|
||||
focusable(r) {
|
||||
return k(r);
|
||||
},
|
||||
previouslyFocused() {
|
||||
return e;
|
||||
},
|
||||
lastFocused() {
|
||||
return e;
|
||||
},
|
||||
focused() {
|
||||
return t;
|
||||
},
|
||||
focusables() {
|
||||
return Array.isArray(u) ? u : W(u, { displayCheck: "none" });
|
||||
},
|
||||
all() {
|
||||
return this.focusables();
|
||||
},
|
||||
isFirst(r) {
|
||||
let s = this.all();
|
||||
return s[0] && s[0].isSameNode(r);
|
||||
},
|
||||
isLast(r) {
|
||||
let s = this.all();
|
||||
return s.length && s.slice(-1)[0].isSameNode(r);
|
||||
},
|
||||
getFirst() {
|
||||
return this.all()[0];
|
||||
},
|
||||
getLast() {
|
||||
return this.all().slice(-1)[0];
|
||||
},
|
||||
getNext() {
|
||||
let r = this.all(),
|
||||
s = document.activeElement;
|
||||
if (r.indexOf(s) !== -1)
|
||||
return this.__wrapAround && r.indexOf(s) === r.length - 1
|
||||
? r[0]
|
||||
: r[r.indexOf(s) + 1];
|
||||
},
|
||||
getPrevious() {
|
||||
let r = this.all(),
|
||||
s = document.activeElement;
|
||||
if (r.indexOf(s) !== -1)
|
||||
return this.__wrapAround && r.indexOf(s) === 0
|
||||
? r.slice(-1)[0]
|
||||
: r[r.indexOf(s) - 1];
|
||||
},
|
||||
first() {
|
||||
this.focus(this.getFirst());
|
||||
},
|
||||
last() {
|
||||
this.focus(this.getLast());
|
||||
},
|
||||
next() {
|
||||
this.focus(this.getNext());
|
||||
},
|
||||
previous() {
|
||||
this.focus(this.getPrevious());
|
||||
},
|
||||
prev() {
|
||||
return this.previous();
|
||||
},
|
||||
focus(r) {
|
||||
!r ||
|
||||
setTimeout(() => {
|
||||
(r.hasAttribute("tabindex") || r.setAttribute("tabindex", "0"),
|
||||
r.focus({ preventScroll: this._noscroll }));
|
||||
});
|
||||
},
|
||||
};
|
||||
}),
|
||||
i.directive(
|
||||
"trap",
|
||||
i.skipDuringClone(
|
||||
(
|
||||
a,
|
||||
{ expression: u, modifiers: r },
|
||||
{ effect: s, evaluateLater: l, cleanup: h },
|
||||
) => {
|
||||
let b = l(u),
|
||||
v = !1,
|
||||
m = K(a, {
|
||||
escapeDeactivates: !1,
|
||||
allowOutsideClick: !0,
|
||||
fallbackFocus: () => a,
|
||||
initialFocus: a.querySelector("[autofocus]"),
|
||||
}),
|
||||
p = () => {},
|
||||
E = () => {},
|
||||
y = () => {
|
||||
(p(),
|
||||
(p = () => {}),
|
||||
E(),
|
||||
(E = () => {}),
|
||||
m.deactivate({
|
||||
returnFocus: !r.includes("noreturn"),
|
||||
}));
|
||||
};
|
||||
(s(() =>
|
||||
b((w) => {
|
||||
v !== w &&
|
||||
(w &&
|
||||
!v &&
|
||||
setTimeout(() => {
|
||||
(r.includes("inert") && (p = V(a)),
|
||||
r.includes("noscroll") && (E = pe()),
|
||||
m.activate());
|
||||
}),
|
||||
!w && v && y(),
|
||||
(v = !!w));
|
||||
}),
|
||||
),
|
||||
h(y));
|
||||
},
|
||||
(a, { expression: u, modifiers: r }, { evaluate: s }) => {
|
||||
r.includes("inert") && s(u) && V(a);
|
||||
},
|
||||
),
|
||||
));
|
||||
}
|
||||
function V(i) {
|
||||
let e = [];
|
||||
return (
|
||||
z(i, (t) => {
|
||||
let a = t.hasAttribute("aria-hidden");
|
||||
(t.setAttribute("aria-hidden", "true"),
|
||||
e.push(() => a || t.removeAttribute("aria-hidden")));
|
||||
}),
|
||||
() => {
|
||||
for (; e.length; ) e.pop()();
|
||||
}
|
||||
);
|
||||
}
|
||||
function z(i, e) {
|
||||
i.isSameNode(document.body) ||
|
||||
!i.parentNode ||
|
||||
Array.from(i.parentNode.children).forEach((t) => {
|
||||
(t.isSameNode(i) || e(t), z(i.parentNode, e));
|
||||
});
|
||||
}
|
||||
function pe() {
|
||||
let i = document.documentElement.style.overflow,
|
||||
e = document.documentElement.style.paddingRight,
|
||||
t = window.innerWidth - document.documentElement.clientWidth;
|
||||
return (
|
||||
(document.documentElement.style.overflow = "hidden"),
|
||||
(document.documentElement.style.paddingRight = `${t}px`),
|
||||
() => {
|
||||
((document.documentElement.style.overflow = i),
|
||||
(document.documentElement.style.paddingRight = e));
|
||||
}
|
||||
);
|
||||
}
|
||||
document.addEventListener("alpine:init", () => {
|
||||
window.Alpine.plugin(Y);
|
||||
});
|
||||
})();
|
||||
/*!
|
||||
* focus-trap 6.6.1
|
||||
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
||||
*/
|
||||
/*!
|
||||
* tabbable 5.2.1
|
||||
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
||||
*/
|
||||
+2955
File diff suppressed because it is too large
Load Diff
+29
@@ -0,0 +1,29 @@
|
||||
// Disconnected from client
|
||||
function disconnected() {
|
||||
document.querySelector("#disconnected").style = "display: block !important;";
|
||||
}
|
||||
|
||||
let frame = document.getElementById("nitro");
|
||||
window.FlashExternalInterface = {};
|
||||
window.FlashExternalInterface.disconnect = () => {
|
||||
disconnected();
|
||||
};
|
||||
|
||||
if (frame && frame.contentWindow) {
|
||||
window.addEventListener("message", (ev) => {
|
||||
if (!frame || ev.source !== frame.contentWindow) return;
|
||||
const legacyInterface = "Nitro_LegacyExternalInterface";
|
||||
if (typeof ev.data !== "string") return;
|
||||
if (ev.data.startsWith(legacyInterface)) {
|
||||
const { method, params } = JSON.parse(
|
||||
ev.data.substr(legacyInterface.length),
|
||||
);
|
||||
if (!("FlashExternalInterface" in window)) return;
|
||||
const fn = window.FlashExternalInterface[method];
|
||||
if (!fn) return;
|
||||
fn(...params);
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
// Disconnected from client end
|
||||
+461
@@ -0,0 +1,461 @@
|
||||
!(function (root, name, definition) {
|
||||
if (typeof module != "undefined" && module.exports)
|
||||
module.exports = definition();
|
||||
else if (typeof define == "function" && define.amd) define(name, definition);
|
||||
else root[name] = definition();
|
||||
})(this, "bowser", function () {
|
||||
var t = true;
|
||||
function detect(ua) {
|
||||
function getFirstMatch(regex) {
|
||||
var match = ua.match(regex);
|
||||
return (match && match.length > 1 && match[1]) || "";
|
||||
}
|
||||
function getSecondMatch(regex) {
|
||||
var match = ua.match(regex);
|
||||
return (match && match.length > 1 && match[2]) || "";
|
||||
}
|
||||
var iosdevice = getFirstMatch(/(ipod|iphone|ipad)/i).toLowerCase(),
|
||||
likeAndroid = /like android/i.test(ua),
|
||||
android = !likeAndroid && /android/i.test(ua),
|
||||
nexusMobile = /nexus\s*[0-6]\s*/i.test(ua),
|
||||
nexusTablet = !nexusMobile && /nexus\s*[0-9]+/i.test(ua),
|
||||
chromeos = /CrOS/.test(ua),
|
||||
silk = /silk/i.test(ua),
|
||||
sailfish = /sailfish/i.test(ua),
|
||||
tizen = /tizen/i.test(ua),
|
||||
webos = /(web|hpw)os/i.test(ua),
|
||||
windowsphone = /windows phone/i.test(ua),
|
||||
samsungBrowser = /SamsungBrowser/i.test(ua),
|
||||
windows = !windowsphone && /windows/i.test(ua),
|
||||
mac = !iosdevice && !silk && /macintosh/i.test(ua),
|
||||
linux = !android && !sailfish && !tizen && !webos && /linux/i.test(ua),
|
||||
edgeVersion = getFirstMatch(/edge\/(\d+(\.\d+)?)/i),
|
||||
versionIdentifier = getFirstMatch(/version\/(\d+(\.\d+)?)/i),
|
||||
tablet = /tablet/i.test(ua),
|
||||
mobile = !tablet && /[^-]mobi/i.test(ua),
|
||||
xbox = /xbox/i.test(ua),
|
||||
result;
|
||||
if (/opera/i.test(ua)) {
|
||||
result = {
|
||||
name: "Opera",
|
||||
opera: t,
|
||||
version:
|
||||
versionIdentifier ||
|
||||
getFirstMatch(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/opr|opios/i.test(ua)) {
|
||||
result = {
|
||||
name: "Opera",
|
||||
opera: t,
|
||||
version:
|
||||
getFirstMatch(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i) ||
|
||||
versionIdentifier,
|
||||
};
|
||||
} else if (/SamsungBrowser/i.test(ua)) {
|
||||
result = {
|
||||
name: "Samsung Internet for Android",
|
||||
samsungBrowser: t,
|
||||
version:
|
||||
versionIdentifier ||
|
||||
getFirstMatch(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/coast/i.test(ua)) {
|
||||
result = {
|
||||
name: "Opera Coast",
|
||||
coast: t,
|
||||
version:
|
||||
versionIdentifier || getFirstMatch(/(?:coast)[\s\/](\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/yabrowser/i.test(ua)) {
|
||||
result = {
|
||||
name: "Yandex Browser",
|
||||
yandexbrowser: t,
|
||||
version:
|
||||
versionIdentifier ||
|
||||
getFirstMatch(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/ucbrowser/i.test(ua)) {
|
||||
result = {
|
||||
name: "UC Browser",
|
||||
ucbrowser: t,
|
||||
version: getFirstMatch(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i),
|
||||
};
|
||||
} else if (/mxios/i.test(ua)) {
|
||||
result = {
|
||||
name: "Maxthon",
|
||||
maxthon: t,
|
||||
version: getFirstMatch(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i),
|
||||
};
|
||||
} else if (/epiphany/i.test(ua)) {
|
||||
result = {
|
||||
name: "Epiphany",
|
||||
epiphany: t,
|
||||
version: getFirstMatch(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i),
|
||||
};
|
||||
} else if (/puffin/i.test(ua)) {
|
||||
result = {
|
||||
name: "Puffin",
|
||||
puffin: t,
|
||||
version: getFirstMatch(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i),
|
||||
};
|
||||
} else if (/sleipnir/i.test(ua)) {
|
||||
result = {
|
||||
name: "Sleipnir",
|
||||
sleipnir: t,
|
||||
version: getFirstMatch(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i),
|
||||
};
|
||||
} else if (/k-meleon/i.test(ua)) {
|
||||
result = {
|
||||
name: "K-Meleon",
|
||||
kMeleon: t,
|
||||
version: getFirstMatch(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i),
|
||||
};
|
||||
} else if (windowsphone) {
|
||||
result = { name: "Windows Phone", windowsphone: t };
|
||||
if (edgeVersion) {
|
||||
result.msedge = t;
|
||||
result.version = edgeVersion;
|
||||
} else {
|
||||
result.msie = t;
|
||||
result.version = getFirstMatch(/iemobile\/(\d+(\.\d+)?)/i);
|
||||
}
|
||||
} else if (/msie|trident/i.test(ua)) {
|
||||
result = {
|
||||
name: "Internet Explorer",
|
||||
msie: t,
|
||||
version: getFirstMatch(/(?:msie |rv:)(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (chromeos) {
|
||||
result = {
|
||||
name: "Chrome",
|
||||
chromeos: t,
|
||||
chromeBook: t,
|
||||
chrome: t,
|
||||
version: getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/chrome.+? edge/i.test(ua)) {
|
||||
result = {
|
||||
name: "Microsoft Edge",
|
||||
msedge: t,
|
||||
version: edgeVersion,
|
||||
};
|
||||
} else if (/vivaldi/i.test(ua)) {
|
||||
result = {
|
||||
name: "Vivaldi",
|
||||
vivaldi: t,
|
||||
version: getFirstMatch(/vivaldi\/(\d+(\.\d+)?)/i) || versionIdentifier,
|
||||
};
|
||||
} else if (sailfish) {
|
||||
result = {
|
||||
name: "Sailfish",
|
||||
sailfish: t,
|
||||
version: getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/seamonkey\//i.test(ua)) {
|
||||
result = {
|
||||
name: "SeaMonkey",
|
||||
seamonkey: t,
|
||||
version: getFirstMatch(/seamonkey\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/firefox|iceweasel|fxios/i.test(ua)) {
|
||||
result = {
|
||||
name: "Firefox",
|
||||
firefox: t,
|
||||
version: getFirstMatch(
|
||||
/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i,
|
||||
),
|
||||
};
|
||||
if (/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(ua)) {
|
||||
result.firefoxos = t;
|
||||
}
|
||||
} else if (silk) {
|
||||
result = {
|
||||
name: "Amazon Silk",
|
||||
silk: t,
|
||||
version: getFirstMatch(/silk\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/phantom/i.test(ua)) {
|
||||
result = {
|
||||
name: "PhantomJS",
|
||||
phantom: t,
|
||||
version: getFirstMatch(/phantomjs\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/slimerjs/i.test(ua)) {
|
||||
result = {
|
||||
name: "SlimerJS",
|
||||
slimer: t,
|
||||
version: getFirstMatch(/slimerjs\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (/blackberry|\bbb\d+/i.test(ua) || /rim\stablet/i.test(ua)) {
|
||||
result = {
|
||||
name: "BlackBerry",
|
||||
blackberry: t,
|
||||
version:
|
||||
versionIdentifier || getFirstMatch(/blackberry[\d]+\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (webos) {
|
||||
result = {
|
||||
name: "WebOS",
|
||||
webos: t,
|
||||
version:
|
||||
versionIdentifier ||
|
||||
getFirstMatch(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
/touchpad\//i.test(ua) && (result.touchpad = t);
|
||||
} else if (/bada/i.test(ua)) {
|
||||
result = {
|
||||
name: "Bada",
|
||||
bada: t,
|
||||
version: getFirstMatch(/dolfin\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (tizen) {
|
||||
result = {
|
||||
name: "Tizen",
|
||||
tizen: t,
|
||||
version:
|
||||
getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i) ||
|
||||
versionIdentifier,
|
||||
};
|
||||
} else if (/qupzilla/i.test(ua)) {
|
||||
result = {
|
||||
name: "QupZilla",
|
||||
qupzilla: t,
|
||||
version:
|
||||
getFirstMatch(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i) ||
|
||||
versionIdentifier,
|
||||
};
|
||||
} else if (/chromium/i.test(ua)) {
|
||||
result = {
|
||||
name: "Chromium",
|
||||
chromium: t,
|
||||
version:
|
||||
getFirstMatch(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i) ||
|
||||
versionIdentifier,
|
||||
};
|
||||
} else if (/chrome|crios|crmo/i.test(ua)) {
|
||||
result = {
|
||||
name: "Chrome",
|
||||
chrome: t,
|
||||
version: getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i),
|
||||
};
|
||||
} else if (android) {
|
||||
result = { name: "Android", version: versionIdentifier };
|
||||
} else if (/safari|applewebkit/i.test(ua)) {
|
||||
result = { name: "Safari", safari: t };
|
||||
if (versionIdentifier) {
|
||||
result.version = versionIdentifier;
|
||||
}
|
||||
} else if (iosdevice) {
|
||||
result = {
|
||||
name:
|
||||
iosdevice == "iphone"
|
||||
? "iPhone"
|
||||
: iosdevice == "ipad"
|
||||
? "iPad"
|
||||
: "iPod",
|
||||
};
|
||||
if (versionIdentifier) {
|
||||
result.version = versionIdentifier;
|
||||
}
|
||||
} else if (/googlebot/i.test(ua)) {
|
||||
result = {
|
||||
name: "Googlebot",
|
||||
googlebot: t,
|
||||
version: getFirstMatch(/googlebot\/(\d+(\.\d+))/i) || versionIdentifier,
|
||||
};
|
||||
} else {
|
||||
result = {
|
||||
name: getFirstMatch(/^(.*)\/(.*) /),
|
||||
version: getSecondMatch(/^(.*)\/(.*) /),
|
||||
};
|
||||
}
|
||||
if (!result.msedge && /(apple)?webkit/i.test(ua)) {
|
||||
if (/(apple)?webkit\/537\.36/i.test(ua)) {
|
||||
result.name = result.name || "Blink";
|
||||
result.blink = t;
|
||||
} else {
|
||||
result.name = result.name || "Webkit";
|
||||
result.webkit = t;
|
||||
}
|
||||
if (!result.version && versionIdentifier) {
|
||||
result.version = versionIdentifier;
|
||||
}
|
||||
} else if (!result.opera && /gecko\//i.test(ua)) {
|
||||
result.name = result.name || "Gecko";
|
||||
result.gecko = t;
|
||||
result.version = result.version || getFirstMatch(/gecko\/(\d+(\.\d+)?)/i);
|
||||
}
|
||||
if (!result.windowsphone && !result.msedge && (android || result.silk)) {
|
||||
result.android = t;
|
||||
} else if (!result.windowsphone && !result.msedge && iosdevice) {
|
||||
result[iosdevice] = t;
|
||||
result.ios = t;
|
||||
} else if (mac) {
|
||||
result.mac = t;
|
||||
} else if (xbox) {
|
||||
result.xbox = t;
|
||||
} else if (windows) {
|
||||
result.windows = t;
|
||||
} else if (linux) {
|
||||
result.linux = t;
|
||||
}
|
||||
var osVersion = "";
|
||||
if (result.windowsphone) {
|
||||
osVersion = getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i);
|
||||
} else if (iosdevice) {
|
||||
osVersion = getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i);
|
||||
osVersion = osVersion.replace(/[_\s]/g, ".");
|
||||
} else if (android) {
|
||||
osVersion = getFirstMatch(/android[ \/-](\d+(\.\d+)*)/i);
|
||||
} else if (result.webos) {
|
||||
osVersion = getFirstMatch(/(?:web|hpw)os\/(\d+(\.\d+)*)/i);
|
||||
} else if (result.blackberry) {
|
||||
osVersion = getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i);
|
||||
} else if (result.bada) {
|
||||
osVersion = getFirstMatch(/bada\/(\d+(\.\d+)*)/i);
|
||||
} else if (result.tizen) {
|
||||
osVersion = getFirstMatch(/tizen[\/\s](\d+(\.\d+)*)/i);
|
||||
}
|
||||
if (osVersion) {
|
||||
result.osversion = osVersion;
|
||||
}
|
||||
var osMajorVersion = osVersion.split(".")[0];
|
||||
if (
|
||||
tablet ||
|
||||
nexusTablet ||
|
||||
iosdevice == "ipad" ||
|
||||
(android && (osMajorVersion == 3 || (osMajorVersion >= 4 && !mobile))) ||
|
||||
result.silk
|
||||
) {
|
||||
result.tablet = t;
|
||||
} else if (
|
||||
mobile ||
|
||||
iosdevice == "iphone" ||
|
||||
iosdevice == "ipod" ||
|
||||
android ||
|
||||
nexusMobile ||
|
||||
result.blackberry ||
|
||||
result.webos ||
|
||||
result.bada
|
||||
) {
|
||||
result.mobile = t;
|
||||
}
|
||||
if (
|
||||
result.msedge ||
|
||||
(result.msie && result.version >= 10) ||
|
||||
(result.yandexbrowser && result.version >= 15) ||
|
||||
(result.vivaldi && result.version >= 1.0) ||
|
||||
(result.chrome && result.version >= 20) ||
|
||||
(result.samsungBrowser && result.version >= 4) ||
|
||||
(result.firefox && result.version >= 20.0) ||
|
||||
(result.safari && result.version >= 6) ||
|
||||
(result.opera && result.version >= 10.0) ||
|
||||
(result.ios && result.osversion && result.osversion.split(".")[0] >= 6) ||
|
||||
(result.blackberry && result.version >= 10.1) ||
|
||||
(result.chromium && result.version >= 20)
|
||||
) {
|
||||
result.a = t;
|
||||
} else if (
|
||||
(result.msie && result.version < 10) ||
|
||||
(result.chrome && result.version < 20) ||
|
||||
(result.firefox && result.version < 20.0) ||
|
||||
(result.safari && result.version < 6) ||
|
||||
(result.opera && result.version < 10.0) ||
|
||||
(result.ios && result.osversion && result.osversion.split(".")[0] < 6) ||
|
||||
(result.chromium && result.version < 20)
|
||||
) {
|
||||
result.c = t;
|
||||
} else result.x = t;
|
||||
return result;
|
||||
}
|
||||
var bowser = detect(
|
||||
typeof navigator !== "undefined" ? navigator.userAgent || "" : "",
|
||||
);
|
||||
bowser.test = function (browserList) {
|
||||
for (var i = 0; i < browserList.length; ++i) {
|
||||
var browserItem = browserList[i];
|
||||
if (typeof browserItem === "string") {
|
||||
if (browserItem in bowser) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
function getVersionPrecision(version) {
|
||||
return version.split(".").length;
|
||||
}
|
||||
function map(arr, iterator) {
|
||||
var result = [],
|
||||
i;
|
||||
if (Array.prototype.map) {
|
||||
return Array.prototype.map.call(arr, iterator);
|
||||
}
|
||||
for (i = 0; i < arr.length; i++) {
|
||||
result.push(iterator(arr[i]));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function compareVersions(versions) {
|
||||
var precision = Math.max(
|
||||
getVersionPrecision(versions[0]),
|
||||
getVersionPrecision(versions[1]),
|
||||
);
|
||||
var chunks = map(versions, function (version) {
|
||||
var delta = precision - getVersionPrecision(version);
|
||||
version = version + new Array(delta + 1).join(".0");
|
||||
return map(version.split("."), function (chunk) {
|
||||
return new Array(20 - chunk.length).join("0") + chunk;
|
||||
}).reverse();
|
||||
});
|
||||
while (--precision >= 0) {
|
||||
if (chunks[0][precision] > chunks[1][precision]) {
|
||||
return 1;
|
||||
} else if (chunks[0][precision] === chunks[1][precision]) {
|
||||
if (precision === 0) {
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
function isUnsupportedBrowser(minVersions, strictMode, ua) {
|
||||
var _bowser = bowser;
|
||||
if (typeof strictMode === "string") {
|
||||
ua = strictMode;
|
||||
strictMode = void 0;
|
||||
}
|
||||
if (strictMode === void 0) {
|
||||
strictMode = false;
|
||||
}
|
||||
if (ua) {
|
||||
_bowser = detect(ua);
|
||||
}
|
||||
var version = "" + _bowser.version;
|
||||
for (var browser in minVersions) {
|
||||
if (minVersions.hasOwnProperty(browser)) {
|
||||
if (_bowser[browser]) {
|
||||
if (typeof minVersions[browser] !== "string") {
|
||||
throw new Error(
|
||||
"Browser version in the minVersion map should be a string: " +
|
||||
browser +
|
||||
": " +
|
||||
String(minVersions),
|
||||
);
|
||||
}
|
||||
return compareVersions([version, minVersions[browser]]) < 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
return strictMode;
|
||||
}
|
||||
function check(minVersions, strictMode, ua) {
|
||||
return !isUnsupportedBrowser(minVersions, strictMode, ua);
|
||||
}
|
||||
bowser.isUnsupportedBrowser = isUnsupportedBrowser;
|
||||
bowser.compareVersions = compareVersions;
|
||||
bowser.check = check;
|
||||
bowser._detect = detect;
|
||||
return bowser;
|
||||
});
|
||||
+145
@@ -0,0 +1,145 @@
|
||||
(function ($) {
|
||||
$.fn.iframeTracker = function (handler) {
|
||||
var target = this.get();
|
||||
if (handler === null || handler === false) {
|
||||
$.iframeTracker.untrack(target);
|
||||
} else if (typeof handler == "object") {
|
||||
$.iframeTracker.track(target, handler);
|
||||
} else {
|
||||
throw new Error(
|
||||
"Wrong handler type (must be an object, or null|false to untrack)",
|
||||
);
|
||||
}
|
||||
};
|
||||
$.iframeTracker = {
|
||||
focusRetriever: null,
|
||||
focusRetrieved: false,
|
||||
handlersList: [],
|
||||
isIE8AndOlder: false,
|
||||
init: function () {
|
||||
try {
|
||||
if ($.browser.msie == true && $.browser.version < 9) {
|
||||
this.isIE8AndOlder = true;
|
||||
}
|
||||
} catch (ex) {
|
||||
try {
|
||||
var matches = navigator.userAgent.match(/(msie) ([\w.]+)/i);
|
||||
if (matches[2] < 9) {
|
||||
this.isIE8AndOlder = true;
|
||||
}
|
||||
} catch (ex2) {}
|
||||
}
|
||||
$(window).focus();
|
||||
$(window).blur(function (e) {
|
||||
$.iframeTracker.windowLoseFocus(e);
|
||||
});
|
||||
$("body").append(
|
||||
'<div style="position:fixed; top:0; left:0; overflow:hidden;"><input style="position:absolute; left:-300px;" type="text" value="" id="focus_retriever" readonly="true" /></div>',
|
||||
);
|
||||
this.focusRetriever = $("#focus_retriever");
|
||||
this.focusRetrieved = false;
|
||||
$(document).mousemove(function (e) {
|
||||
if (
|
||||
document.activeElement &&
|
||||
document.activeElement.tagName == "IFRAME"
|
||||
) {
|
||||
$.iframeTracker.focusRetriever.focus();
|
||||
$.iframeTracker.focusRetrieved = true;
|
||||
}
|
||||
});
|
||||
if (this.isIE8AndOlder) {
|
||||
this.focusRetriever.blur(function (e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
$.iframeTracker.windowLoseFocus(e);
|
||||
});
|
||||
$("body").click(function (e) {
|
||||
$(window).focus();
|
||||
});
|
||||
$("form").click(function (e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
try {
|
||||
$("body").on("click", "form", function (e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
} catch (ex) {
|
||||
console.log(
|
||||
"[iframeTracker] Please update jQuery to 1.7 or newer. (exception: " +
|
||||
ex.message +
|
||||
")",
|
||||
);
|
||||
}
|
||||
}
|
||||
},
|
||||
track: function (target, handler) {
|
||||
handler.target = target;
|
||||
$.iframeTracker.handlersList.push(handler);
|
||||
$(target)
|
||||
.bind(
|
||||
"mouseover",
|
||||
{ handler: handler },
|
||||
$.iframeTracker.mouseoverListener,
|
||||
)
|
||||
.bind(
|
||||
"mouseout",
|
||||
{ handler: handler },
|
||||
$.iframeTracker.mouseoutListener,
|
||||
);
|
||||
},
|
||||
untrack: function (target) {
|
||||
if (typeof Array.prototype.filter != "function") {
|
||||
console.log(
|
||||
"Your browser doesn't support Array filter, untrack disabled",
|
||||
);
|
||||
return;
|
||||
}
|
||||
$(target).each(function (index) {
|
||||
$(this)
|
||||
.unbind("mouseover", $.iframeTracker.mouseoverListener)
|
||||
.unbind("mouseout", $.iframeTracker.mouseoutListener);
|
||||
});
|
||||
var nullFilter = function (value) {
|
||||
return value === null ? false : true;
|
||||
};
|
||||
for (var i in this.handlersList) {
|
||||
for (var j in this.handlersList[i].target) {
|
||||
if ($.inArray(this.handlersList[i].target[j], target) !== -1) {
|
||||
this.handlersList[i].target[j] = null;
|
||||
}
|
||||
}
|
||||
this.handlersList[i].target =
|
||||
this.handlersList[i].target.filter(nullFilter);
|
||||
if (this.handlersList[i].target.length == 0) {
|
||||
this.handlersList[i] = null;
|
||||
}
|
||||
}
|
||||
this.handlersList = this.handlersList.filter(nullFilter);
|
||||
},
|
||||
mouseoverListener: function (e) {
|
||||
e.data.handler.over = true;
|
||||
try {
|
||||
e.data.handler.overCallback(this);
|
||||
} catch (ex) {}
|
||||
},
|
||||
mouseoutListener: function (e) {
|
||||
e.data.handler.over = false;
|
||||
$.iframeTracker.focusRetriever.focus();
|
||||
try {
|
||||
e.data.handler.outCallback(this);
|
||||
} catch (ex) {}
|
||||
},
|
||||
windowLoseFocus: function (event) {
|
||||
for (var i in this.handlersList) {
|
||||
if (this.handlersList[i].over == true) {
|
||||
try {
|
||||
this.handlersList[i].blurCallback();
|
||||
} catch (ex) {}
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
$(document).ready(function () {
|
||||
$.iframeTracker.init();
|
||||
});
|
||||
})(jQuery);
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
function isTouchDevice() {
|
||||
return (
|
||||
"ontouchstart" in window ||
|
||||
navigator.maxTouchPoints > 0 ||
|
||||
navigator.msMaxTouchPoints > 0
|
||||
);
|
||||
}
|
||||
|
||||
// Use the isTouchDevice function
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
const isTouch = isTouchDevice();
|
||||
|
||||
// Now you can use the isTouch variable to conditionally handle touch devices
|
||||
if (isTouch) {
|
||||
// Handle touch devices here
|
||||
console.log("This is a touch device.");
|
||||
} else {
|
||||
// Handle non-touch devices here
|
||||
console.log("This is not a touch device.");
|
||||
}
|
||||
});
|
||||
Binary file not shown.
@@ -0,0 +1,138 @@
|
||||
var FlashDetect = new (function () {
|
||||
var self = this;
|
||||
self.installed = false;
|
||||
self.raw = "";
|
||||
self.major = -1;
|
||||
self.minor = -1;
|
||||
self.revision = -1;
|
||||
self.revisionStr = "";
|
||||
var activeXDetectRules = [
|
||||
{
|
||||
name: "ShockwaveFlash.ShockwaveFlash.7",
|
||||
version: function (obj) {
|
||||
return getActiveXVersion(obj);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "ShockwaveFlash.ShockwaveFlash.6",
|
||||
version: function (obj) {
|
||||
var version = "6,0,21";
|
||||
try {
|
||||
obj.AllowScriptAccess = "always";
|
||||
version = getActiveXVersion(obj);
|
||||
} catch (err) {}
|
||||
return version;
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "ShockwaveFlash.ShockwaveFlash",
|
||||
version: function (obj) {
|
||||
return getActiveXVersion(obj);
|
||||
},
|
||||
},
|
||||
];
|
||||
var getActiveXVersion = function (activeXObj) {
|
||||
var version = -1;
|
||||
try {
|
||||
version = activeXObj.GetVariable("$version");
|
||||
} catch (err) {}
|
||||
return version;
|
||||
};
|
||||
var getActiveXObject = function (name) {
|
||||
var obj = -1;
|
||||
try {
|
||||
obj = new ActiveXObject(name);
|
||||
} catch (err) {
|
||||
obj = { activeXError: true };
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
var parseActiveXVersion = function (str) {
|
||||
var versionArray = str.split(",");
|
||||
return {
|
||||
raw: str,
|
||||
major: parseInt(versionArray[0].split(" ")[1], 10),
|
||||
minor: parseInt(versionArray[1], 10),
|
||||
revision: parseInt(versionArray[2], 10),
|
||||
revisionStr: versionArray[2],
|
||||
};
|
||||
};
|
||||
var parseStandardVersion = function (str) {
|
||||
var descParts = str.split(/ +/);
|
||||
var majorMinor = descParts[2].split(/\./);
|
||||
var revisionStr = descParts[3];
|
||||
return {
|
||||
raw: str,
|
||||
major: parseInt(majorMinor[0], 10),
|
||||
minor: parseInt(majorMinor[1], 10),
|
||||
revisionStr: revisionStr,
|
||||
revision: parseRevisionStrToInt(revisionStr),
|
||||
};
|
||||
};
|
||||
var parseRevisionStrToInt = function (str) {
|
||||
return parseInt(str.replace(/[a-zA-Z]/g, ""), 10) || self.revision;
|
||||
};
|
||||
self.majorAtLeast = function (version) {
|
||||
return self.major >= version;
|
||||
};
|
||||
self.minorAtLeast = function (version) {
|
||||
return self.minor >= version;
|
||||
};
|
||||
self.revisionAtLeast = function (version) {
|
||||
return self.revision >= version;
|
||||
};
|
||||
self.versionAtLeast = function (major) {
|
||||
var properties = [self.major, self.minor, self.revision];
|
||||
var len = Math.min(properties.length, arguments.length);
|
||||
for (i = 0; i < len; i++) {
|
||||
if (properties[i] >= arguments[i]) {
|
||||
if (i + 1 < len && properties[i] == arguments[i]) {
|
||||
continue;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
};
|
||||
self.FlashDetect = (function () {
|
||||
if (navigator.plugins && navigator.plugins.length > 0) {
|
||||
var type = "application/x-shockwave-flash";
|
||||
var mimeTypes = navigator.mimeTypes;
|
||||
if (
|
||||
mimeTypes &&
|
||||
mimeTypes[type] &&
|
||||
mimeTypes[type].enabledPlugin &&
|
||||
mimeTypes[type].enabledPlugin.description
|
||||
) {
|
||||
var version = mimeTypes[type].enabledPlugin.description;
|
||||
var versionObj = parseStandardVersion(version);
|
||||
self.raw = versionObj.raw;
|
||||
self.major = versionObj.major;
|
||||
self.minor = versionObj.minor;
|
||||
self.revisionStr = versionObj.revisionStr;
|
||||
self.revision = versionObj.revision;
|
||||
self.installed = true;
|
||||
}
|
||||
} else if (navigator.appVersion.indexOf("Mac") == -1 && window.execScript) {
|
||||
var version = -1;
|
||||
for (var i = 0; i < activeXDetectRules.length && version == -1; i++) {
|
||||
var obj = getActiveXObject(activeXDetectRules[i].name);
|
||||
if (!obj.activeXError) {
|
||||
self.installed = true;
|
||||
version = activeXDetectRules[i].version(obj);
|
||||
if (version != -1) {
|
||||
var versionObj = parseActiveXVersion(version);
|
||||
self.raw = versionObj.raw;
|
||||
self.major = versionObj.major;
|
||||
self.minor = versionObj.minor;
|
||||
self.revision = versionObj.revision;
|
||||
self.revisionStr = versionObj.revisionStr;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})();
|
||||
})();
|
||||
FlashDetect.JS_RELEASE = "1.0.4";
|
||||
+333
@@ -0,0 +1,333 @@
|
||||
var _33611 = "21421";
|
||||
var _26452 = "19895";
|
||||
var _89563 = "18563";
|
||||
var _54489 = "23541";
|
||||
var _48962 = "21535";
|
||||
var _99871 = "36421";
|
||||
if (typeof deconcept == "undefined") {
|
||||
var deconcept = new Object();
|
||||
}
|
||||
if (typeof deconcept.util == "undefined") {
|
||||
deconcept.util = new Object();
|
||||
}
|
||||
if (typeof deconcept.SWFObjectUtil == "undefined") {
|
||||
deconcept.SWFObjectUtil = new Object();
|
||||
}
|
||||
deconcept.SWFObject = function (_1, id, w, h, _5, c, _7, _8, _9, _a) {
|
||||
if (!document.getElementById) {
|
||||
return;
|
||||
}
|
||||
this.DETECT_KEY = _a ? _a : "detectflash";
|
||||
this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY);
|
||||
this.params = new Object();
|
||||
this.variables = new Object();
|
||||
this.attributes = new Array();
|
||||
if (_1) {
|
||||
this.setAttribute("swf", _1);
|
||||
}
|
||||
if (id) {
|
||||
this.setAttribute("id", id);
|
||||
}
|
||||
if (w) {
|
||||
this.setAttribute("width", w);
|
||||
}
|
||||
if (h) {
|
||||
this.setAttribute("height", h);
|
||||
}
|
||||
if (_5) {
|
||||
this.setAttribute(
|
||||
"version",
|
||||
new deconcept.PlayerVersion(_5.toString().split(".")),
|
||||
);
|
||||
}
|
||||
this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion();
|
||||
if (!window.opera && document.all && this.installedVer.major > 7) {
|
||||
deconcept.SWFObject.doPrepUnload = true;
|
||||
}
|
||||
if (c) {
|
||||
this.addParam("bgcolor", c);
|
||||
}
|
||||
var q = _7 ? _7 : "high";
|
||||
this.addParam("quality", q);
|
||||
this.setAttribute("useExpressInstall", false);
|
||||
this.setAttribute("doExpressInstall", false);
|
||||
var _c = _8 ? _8 : window.location;
|
||||
this.setAttribute("xiRedirectUrl", _c);
|
||||
this.setAttribute("redirectUrl", "");
|
||||
if (_9) {
|
||||
this.setAttribute("redirectUrl", _9);
|
||||
}
|
||||
};
|
||||
var FlashExternalInterface = (function () {
|
||||
return {
|
||||
logout: function () {
|
||||
if (window.opener) {
|
||||
try {
|
||||
window.opener.location = FlashExternalInterface.signoutUrl;
|
||||
window.close();
|
||||
} catch (k) {
|
||||
window.location = FlashExternalInterface.signoutUrl;
|
||||
}
|
||||
} else {
|
||||
window.location = FlashExternalInterface.signoutUrl;
|
||||
}
|
||||
},
|
||||
getClient: function () {
|
||||
return document.getElementById("flash-container");
|
||||
},
|
||||
};
|
||||
})();
|
||||
deconcept.SWFObject.prototype = {
|
||||
useExpressInstall: function (_d) {
|
||||
this.xiSWFPath = !_d ? "expressinstall.swf" : _d;
|
||||
this.setAttribute("useExpressInstall", true);
|
||||
},
|
||||
setAttribute: function (_e, _f) {
|
||||
this.attributes[_e] = _f;
|
||||
},
|
||||
getAttribute: function (_10) {
|
||||
return this.attributes[_10];
|
||||
},
|
||||
addParam: function (_11, _12) {
|
||||
this.params[_11] = _12;
|
||||
},
|
||||
getParams: function () {
|
||||
return this.params;
|
||||
},
|
||||
addVariable: function (_13, _14) {
|
||||
this.variables[_13] = _14;
|
||||
},
|
||||
getVariable: function (_15) {
|
||||
return this.variables[_15];
|
||||
},
|
||||
getVariables: function () {
|
||||
return this.variables;
|
||||
},
|
||||
getVariablePairs: function () {
|
||||
var _16 = new Array();
|
||||
var key;
|
||||
var _18 = this.getVariables();
|
||||
for (key in _18) {
|
||||
_16[_16.length] = key + "=" + _18[key];
|
||||
}
|
||||
return _16;
|
||||
},
|
||||
getSWFHTML: function () {
|
||||
var _19 = "";
|
||||
if (
|
||||
navigator.plugins &&
|
||||
navigator.mimeTypes &&
|
||||
navigator.mimeTypes.length
|
||||
) {
|
||||
if (this.getAttribute("doExpressInstall")) {
|
||||
this.addVariable("MMplayerType", "PlugIn");
|
||||
this.setAttribute("swf", this.xiSWFPath);
|
||||
}
|
||||
_19 =
|
||||
'<embed type="application/x-shockwave-flash" src="' +
|
||||
this.getAttribute("swf") +
|
||||
'" width="' +
|
||||
this.getAttribute("width") +
|
||||
'" height="' +
|
||||
this.getAttribute("height") +
|
||||
'" style="' +
|
||||
this.getAttribute("style") +
|
||||
'"';
|
||||
_19 +=
|
||||
' id="' +
|
||||
this.getAttribute("id") +
|
||||
'" name="' +
|
||||
this.getAttribute("id") +
|
||||
'" ';
|
||||
var _1a = this.getParams();
|
||||
for (var key in _1a) {
|
||||
_19 += [key] + '="' + _1a[key] + '" ';
|
||||
}
|
||||
var _1c = this.getVariablePairs().join("&");
|
||||
if (_1c.length > 0) {
|
||||
_19 += 'flashvars="' + _1c + '"';
|
||||
}
|
||||
_19 += "/>";
|
||||
} else {
|
||||
if (this.getAttribute("doExpressInstall")) {
|
||||
this.addVariable("MMplayerType", "ActiveX");
|
||||
this.setAttribute("swf", this.xiSWFPath);
|
||||
}
|
||||
_19 =
|
||||
'<object id="' +
|
||||
this.getAttribute("id") +
|
||||
'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' +
|
||||
this.getAttribute("width") +
|
||||
'" height="' +
|
||||
this.getAttribute("height") +
|
||||
'" style="' +
|
||||
this.getAttribute("style") +
|
||||
'">';
|
||||
_19 += '<param name="movie" value="' + this.getAttribute("swf") + '" />';
|
||||
var _1d = this.getParams();
|
||||
for (var key in _1d) {
|
||||
_19 += '<param name="' + key + '" value="' + _1d[key] + '" />';
|
||||
}
|
||||
var _1f = this.getVariablePairs().join("&");
|
||||
if (_1f.length > 0) {
|
||||
_19 += '<param name="flashvars" value="' + _1f + '" />';
|
||||
}
|
||||
_19 += "</object>";
|
||||
}
|
||||
return _19;
|
||||
},
|
||||
write: function (_20) {
|
||||
if (this.getAttribute("useExpressInstall")) {
|
||||
var _21 = new deconcept.PlayerVersion([6, 0, 65]);
|
||||
if (
|
||||
this.installedVer.versionIsValid(_21) &&
|
||||
!this.installedVer.versionIsValid(this.getAttribute("version"))
|
||||
) {
|
||||
this.setAttribute("doExpressInstall", true);
|
||||
this.addVariable(
|
||||
"MMredirectURL",
|
||||
escape(this.getAttribute("xiRedirectUrl")),
|
||||
);
|
||||
document.title =
|
||||
document.title.slice(0, 47) + " - Flash Player Installation";
|
||||
this.addVariable("MMdoctitle", document.title);
|
||||
}
|
||||
}
|
||||
if (
|
||||
this.skipDetect ||
|
||||
this.getAttribute("doExpressInstall") ||
|
||||
this.installedVer.versionIsValid(this.getAttribute("version"))
|
||||
) {
|
||||
var n = typeof _20 == "string" ? document.getElementById(_20) : _20;
|
||||
n.innerHTML = this.getSWFHTML();
|
||||
return true;
|
||||
} else {
|
||||
if (this.getAttribute("redirectUrl") != "") {
|
||||
document.location.replace(this.getAttribute("redirectUrl"));
|
||||
}
|
||||
}
|
||||
return false;
|
||||
},
|
||||
};
|
||||
deconcept.SWFObjectUtil.getPlayerVersion = function () {
|
||||
var _23 = new deconcept.PlayerVersion([0, 0, 0]);
|
||||
if (navigator.plugins && navigator.mimeTypes.length) {
|
||||
var x = navigator.plugins["Shockwave Flash"];
|
||||
if (x && x.description) {
|
||||
_23 = new deconcept.PlayerVersion(
|
||||
x.description
|
||||
.replace(/([a-zA-Z]|\s)+/, "")
|
||||
.replace(/(\s+r|\s+b[0-9]+)/, ".")
|
||||
.split("."),
|
||||
);
|
||||
}
|
||||
} else {
|
||||
if (navigator.userAgent && navigator.userAgent.indexOf("Windows CE") >= 0) {
|
||||
var axo = 1;
|
||||
var _26 = 3;
|
||||
while (axo) {
|
||||
try {
|
||||
_26++;
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + _26);
|
||||
_23 = new deconcept.PlayerVersion([_26, 0, 0]);
|
||||
} catch (e) {
|
||||
axo = null;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
|
||||
} catch (e) {
|
||||
try {
|
||||
var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
|
||||
_23 = new deconcept.PlayerVersion([6, 0, 21]);
|
||||
axo.AllowScriptAccess = "always";
|
||||
} catch (e) {
|
||||
if (_23.major == 6) {
|
||||
return _23;
|
||||
}
|
||||
}
|
||||
try {
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
|
||||
} catch (e) {}
|
||||
}
|
||||
if (axo != null) {
|
||||
_23 = new deconcept.PlayerVersion(
|
||||
axo.GetVariable("$version").split(" ")[1].split(","),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
return _23;
|
||||
};
|
||||
deconcept.PlayerVersion = function (_29) {
|
||||
this.major = _29[0] != null ? parseInt(_29[0]) : 0;
|
||||
this.minor = _29[1] != null ? parseInt(_29[1]) : 0;
|
||||
this.rev = _29[2] != null ? parseInt(_29[2]) : 0;
|
||||
};
|
||||
deconcept.PlayerVersion.prototype.versionIsValid = function (fv) {
|
||||
if (this.major < fv.major) {
|
||||
return false;
|
||||
}
|
||||
if (this.major > fv.major) {
|
||||
return true;
|
||||
}
|
||||
if (this.minor < fv.minor) {
|
||||
return false;
|
||||
}
|
||||
if (this.minor > fv.minor) {
|
||||
return true;
|
||||
}
|
||||
if (this.rev < fv.rev) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
deconcept.util = {
|
||||
getRequestParameter: function (_2b) {
|
||||
var q = document.location.search || document.location.hash;
|
||||
if (_2b == null) {
|
||||
return q;
|
||||
}
|
||||
if (q) {
|
||||
var _2d = q.substring(1).split("&");
|
||||
for (var i = 0; i < _2d.length; i++) {
|
||||
if (_2d[i].substring(0, _2d[i].indexOf("=")) == _2b) {
|
||||
return _2d[i].substring(_2d[i].indexOf("=") + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
return "";
|
||||
},
|
||||
};
|
||||
deconcept.SWFObjectUtil.cleanupSWFs = function () {
|
||||
var _2f = document.getElementsByTagName("OBJECT");
|
||||
for (var i = _2f.length - 1; i >= 0; i--) {
|
||||
_2f[i].style.display = "none";
|
||||
for (var x in _2f[i]) {
|
||||
if (typeof _2f[i][x] == "function") {
|
||||
_2f[i][x] = function () {};
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
if (deconcept.SWFObject.doPrepUnload) {
|
||||
if (!deconcept.unloadSet) {
|
||||
deconcept.SWFObjectUtil.prepUnload = function () {
|
||||
__flash_unloadHandler = function () {};
|
||||
__flash_savedUnloadHandler = function () {};
|
||||
window.attachEvent("onunload", deconcept.SWFObjectUtil.cleanupSWFs);
|
||||
};
|
||||
window.attachEvent("onbeforeunload", deconcept.SWFObjectUtil.prepUnload);
|
||||
deconcept.unloadSet = true;
|
||||
}
|
||||
}
|
||||
if (!document.getElementById && document.all) {
|
||||
document.getElementById = function (id) {
|
||||
return document.all[id];
|
||||
};
|
||||
}
|
||||
var _15567 = _48962;
|
||||
var getQueryParamValue = deconcept.util.getRequestParameter;
|
||||
var FlashObject = deconcept.SWFObject;
|
||||
var SWFObject = deconcept.SWFObject;
|
||||
+11087
File diff suppressed because it is too large
Load Diff
+17221
File diff suppressed because it is too large
Load Diff
+1341
File diff suppressed because it is too large
Load Diff
+535
@@ -0,0 +1,535 @@
|
||||
var swfobject = (function () {
|
||||
function B() {
|
||||
if (!t && document.getElementsByTagName("body")[0]) {
|
||||
try {
|
||||
var a,
|
||||
b = U("span");
|
||||
((b.style.display = "none"),
|
||||
(a = i.getElementsByTagName("body")[0].appendChild(b)),
|
||||
a.parentNode.removeChild(a),
|
||||
(a = null),
|
||||
(b = null));
|
||||
} catch (a) {
|
||||
return;
|
||||
}
|
||||
t = !0;
|
||||
for (var c = l.length, d = 0; d < c; d++) l[d]();
|
||||
}
|
||||
}
|
||||
function C(a) {
|
||||
t ? a() : (l[l.length] = a);
|
||||
}
|
||||
function D(b) {
|
||||
if (typeof h.addEventListener != a) h.addEventListener("load", b, !1);
|
||||
else if (typeof i.addEventListener != a) i.addEventListener("load", b, !1);
|
||||
else if (typeof h.attachEvent != a) W(h, "onload", b);
|
||||
else if ("function" == typeof h.onload) {
|
||||
var c = h.onload;
|
||||
h.onload = function () {
|
||||
(c(), b());
|
||||
};
|
||||
} else h.onload = b;
|
||||
}
|
||||
function E() {
|
||||
var c = i.getElementsByTagName("body")[0],
|
||||
d = U(b);
|
||||
(d.setAttribute("style", "visibility: hidden;"), d.setAttribute("type", e));
|
||||
var f = c.appendChild(d);
|
||||
if (f) {
|
||||
var g = 0;
|
||||
!(function b() {
|
||||
if (typeof f.GetVariable != a)
|
||||
try {
|
||||
var e = f.GetVariable("$version");
|
||||
e &&
|
||||
((e = e.split(" ")[1].split(",")),
|
||||
(z.pv = [V(e[0]), V(e[1]), V(e[2])]));
|
||||
} catch (a) {
|
||||
z.pv = [8, 0, 0];
|
||||
}
|
||||
else if (g < 10) return (g++, void setTimeout(b, 10));
|
||||
(c.removeChild(d), (f = null), F());
|
||||
})();
|
||||
} else F();
|
||||
}
|
||||
function F() {
|
||||
var b = m.length;
|
||||
if (b > 0)
|
||||
for (var c = 0; c < b; c++) {
|
||||
var d = m[c].id,
|
||||
e = m[c].callbackFn,
|
||||
f = { success: !1, id: d };
|
||||
if (z.pv[0] > 0) {
|
||||
var g = T(d);
|
||||
if (g)
|
||||
if (!X(m[c].swfVersion) || (z.wk && z.wk < 312))
|
||||
if (m[c].expressInstall && H()) {
|
||||
var h = {};
|
||||
((h.data = m[c].expressInstall),
|
||||
(h.width = g.getAttribute("width") || "0"),
|
||||
(h.height = g.getAttribute("height") || "0"),
|
||||
g.getAttribute("class") &&
|
||||
(h.styleclass = g.getAttribute("class")),
|
||||
g.getAttribute("align") &&
|
||||
(h.align = g.getAttribute("align")));
|
||||
for (
|
||||
var i = {},
|
||||
j = g.getElementsByTagName("param"),
|
||||
k = j.length,
|
||||
l = 0;
|
||||
l < k;
|
||||
l++
|
||||
)
|
||||
"movie" != j[l].getAttribute("name").toLowerCase() &&
|
||||
(i[j[l].getAttribute("name")] = j[l].getAttribute("value"));
|
||||
I(h, i, d, e);
|
||||
} else (J(g), e && e(f));
|
||||
else
|
||||
(Z(d, !0),
|
||||
e && ((f.success = !0), (f.ref = G(d)), (f.id = d), e(f)));
|
||||
} else if ((Z(d, !0), e)) {
|
||||
var n = G(d);
|
||||
(n &&
|
||||
typeof n.SetVariable != a &&
|
||||
((f.success = !0), (f.ref = n), (f.id = n.id)),
|
||||
e(f));
|
||||
}
|
||||
}
|
||||
}
|
||||
function G(c) {
|
||||
var d = null,
|
||||
e = T(c);
|
||||
return (
|
||||
e &&
|
||||
"OBJECT" === e.nodeName.toUpperCase() &&
|
||||
(d =
|
||||
typeof e.SetVariable !== a ? e : e.getElementsByTagName(b)[0] || e),
|
||||
d
|
||||
);
|
||||
}
|
||||
function H() {
|
||||
return !u && X("6.0.65") && (z.win || z.mac) && !(z.wk && z.wk < 312);
|
||||
}
|
||||
function I(b, c, d, e) {
|
||||
var g = T(d);
|
||||
if (
|
||||
((d = S(d)), (u = !0), (r = e || null), (s = { success: !1, id: d }), g)
|
||||
) {
|
||||
("OBJECT" == g.nodeName.toUpperCase()
|
||||
? ((p = K(g)), (q = null))
|
||||
: ((p = g), (q = d)),
|
||||
(b.id = f),
|
||||
(typeof b.width == a || (!/%$/.test(b.width) && V(b.width) < 310)) &&
|
||||
(b.width = "310"),
|
||||
(typeof b.height == a || (!/%$/.test(b.height) && V(b.height) < 137)) &&
|
||||
(b.height = "137"));
|
||||
var j = z.ie ? "ActiveX" : "PlugIn",
|
||||
k =
|
||||
"MMredirectURL=" +
|
||||
encodeURIComponent(h.location.toString().replace(/&/g, "%26")) +
|
||||
"&MMplayerType=" +
|
||||
j +
|
||||
"&MMdoctitle=" +
|
||||
encodeURIComponent(
|
||||
i.title.slice(0, 47) + " - Flash Player Installation",
|
||||
);
|
||||
if (
|
||||
(typeof c.flashvars != a ? (c.flashvars += "&" + k) : (c.flashvars = k),
|
||||
z.ie && 4 != g.readyState)
|
||||
) {
|
||||
var l = U("div");
|
||||
((d += "SWFObjectNew"),
|
||||
l.setAttribute("id", d),
|
||||
g.parentNode.insertBefore(l, g),
|
||||
(g.style.display = "none"),
|
||||
Q(g));
|
||||
}
|
||||
O(b, c, d);
|
||||
}
|
||||
}
|
||||
function J(a) {
|
||||
if (z.ie && 4 != a.readyState) {
|
||||
a.style.display = "none";
|
||||
var b = U("div");
|
||||
(a.parentNode.insertBefore(b, a),
|
||||
b.parentNode.replaceChild(K(a), b),
|
||||
Q(a));
|
||||
} else a.parentNode.replaceChild(K(a), a);
|
||||
}
|
||||
function K(a) {
|
||||
var c = U("div");
|
||||
if (z.win && z.ie) c.innerHTML = a.innerHTML;
|
||||
else {
|
||||
var d = a.getElementsByTagName(b)[0];
|
||||
if (d) {
|
||||
var e = d.childNodes;
|
||||
if (e)
|
||||
for (var f = e.length, g = 0; g < f; g++)
|
||||
(1 == e[g].nodeType && "PARAM" == e[g].nodeName) ||
|
||||
8 == e[g].nodeType ||
|
||||
c.appendChild(e[g].cloneNode(!0));
|
||||
}
|
||||
}
|
||||
return c;
|
||||
}
|
||||
function L(a, b) {
|
||||
var c = U("div");
|
||||
return (
|
||||
(c.innerHTML =
|
||||
"<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'><param name='movie' value='" +
|
||||
a +
|
||||
"'>" +
|
||||
b +
|
||||
"</object>"),
|
||||
c.firstChild
|
||||
);
|
||||
}
|
||||
function O(c, d, f) {
|
||||
var g,
|
||||
h = T(f);
|
||||
if (((f = S(f)), z.wk && z.wk < 312)) return g;
|
||||
if (h) {
|
||||
var j,
|
||||
k,
|
||||
l,
|
||||
i = U(z.ie ? "div" : b);
|
||||
typeof c.id == a && (c.id = f);
|
||||
for (l in d)
|
||||
d.hasOwnProperty(l) && "movie" !== l.toLowerCase() && P(i, l, d[l]);
|
||||
z.ie && (i = L(c.data, i.innerHTML));
|
||||
for (j in c)
|
||||
c.hasOwnProperty(j) &&
|
||||
((k = j.toLowerCase()),
|
||||
"styleclass" === k
|
||||
? i.setAttribute("class", c[j])
|
||||
: "classid" !== k && "data" !== k && i.setAttribute(j, c[j]));
|
||||
(z.ie
|
||||
? (n[n.length] = c.id)
|
||||
: (i.setAttribute("type", e), i.setAttribute("data", c.data)),
|
||||
h.parentNode.replaceChild(i, h),
|
||||
(g = i));
|
||||
}
|
||||
return g;
|
||||
}
|
||||
function P(a, b, c) {
|
||||
var d = U("param");
|
||||
(d.setAttribute("name", b), d.setAttribute("value", c), a.appendChild(d));
|
||||
}
|
||||
function Q(a) {
|
||||
var b = T(a);
|
||||
b &&
|
||||
"OBJECT" == b.nodeName.toUpperCase() &&
|
||||
(z.ie
|
||||
? ((b.style.display = "none"),
|
||||
(function a() {
|
||||
if (4 == b.readyState) {
|
||||
for (var c in b) "function" == typeof b[c] && (b[c] = null);
|
||||
b.parentNode.removeChild(b);
|
||||
} else setTimeout(a, 10);
|
||||
})())
|
||||
: b.parentNode.removeChild(b));
|
||||
}
|
||||
function R(a) {
|
||||
return a && a.nodeType && 1 === a.nodeType;
|
||||
}
|
||||
function S(a) {
|
||||
return R(a) ? a.id : a;
|
||||
}
|
||||
function T(a) {
|
||||
if (R(a)) return a;
|
||||
var b = null;
|
||||
try {
|
||||
b = i.getElementById(a);
|
||||
} catch (a) {}
|
||||
return b;
|
||||
}
|
||||
function U(a) {
|
||||
return i.createElement(a);
|
||||
}
|
||||
function V(a) {
|
||||
return parseInt(a, 10);
|
||||
}
|
||||
function W(a, b, c) {
|
||||
(a.attachEvent(b, c), (o[o.length] = [a, b, c]));
|
||||
}
|
||||
function X(a) {
|
||||
a += "";
|
||||
var b = z.pv,
|
||||
c = a.split(".");
|
||||
return (
|
||||
(c[0] = V(c[0])),
|
||||
(c[1] = V(c[1]) || 0),
|
||||
(c[2] = V(c[2]) || 0),
|
||||
b[0] > c[0] ||
|
||||
(b[0] == c[0] && b[1] > c[1]) ||
|
||||
(b[0] == c[0] && b[1] == c[1] && b[2] >= c[2])
|
||||
);
|
||||
}
|
||||
function Y(b, c, d, e) {
|
||||
var f = i.getElementsByTagName("head")[0];
|
||||
if (f) {
|
||||
var g = "string" == typeof d ? d : "screen";
|
||||
if ((e && ((v = null), (w = null)), !v || w != g)) {
|
||||
var h = U("style");
|
||||
(h.setAttribute("type", "text/css"),
|
||||
h.setAttribute("media", g),
|
||||
(v = f.appendChild(h)),
|
||||
z.ie &&
|
||||
typeof i.styleSheets != a &&
|
||||
i.styleSheets.length > 0 &&
|
||||
(v = i.styleSheets[i.styleSheets.length - 1]),
|
||||
(w = g));
|
||||
}
|
||||
v &&
|
||||
(typeof v.addRule != a
|
||||
? v.addRule(b, c)
|
||||
: typeof i.createTextNode != a &&
|
||||
v.appendChild(i.createTextNode(b + " {" + c + "}")));
|
||||
}
|
||||
}
|
||||
function Z(a, b) {
|
||||
if (x) {
|
||||
var c = b ? "visible" : "hidden",
|
||||
d = T(a);
|
||||
t && d
|
||||
? (d.style.visibility = c)
|
||||
: "string" == typeof a && Y("#" + a, "visibility:" + c);
|
||||
}
|
||||
}
|
||||
function $(b) {
|
||||
return null != /[\\\"<>\.;]/.exec(b) && typeof encodeURIComponent != a
|
||||
? encodeURIComponent(b)
|
||||
: b;
|
||||
}
|
||||
var p,
|
||||
q,
|
||||
r,
|
||||
s,
|
||||
v,
|
||||
w,
|
||||
a = "undefined",
|
||||
b = "object",
|
||||
c = "Shockwave Flash",
|
||||
d = "ShockwaveFlash.ShockwaveFlash",
|
||||
e = "application/x-shockwave-flash",
|
||||
f = "SWFObjectExprInst",
|
||||
g = "onreadystatechange",
|
||||
h = window,
|
||||
i = document,
|
||||
j = navigator,
|
||||
k = !1,
|
||||
l = [],
|
||||
m = [],
|
||||
n = [],
|
||||
o = [],
|
||||
t = !1,
|
||||
u = !1,
|
||||
x = !0,
|
||||
y = !1,
|
||||
z = (function () {
|
||||
var f =
|
||||
typeof i.getElementById != a &&
|
||||
typeof i.getElementsByTagName != a &&
|
||||
typeof i.createElement != a,
|
||||
g = j.userAgent.toLowerCase(),
|
||||
l = j.platform.toLowerCase(),
|
||||
m = /win/.test(l ? l : g),
|
||||
n = /mac/.test(l ? l : g),
|
||||
o =
|
||||
!!/webkit/.test(g) &&
|
||||
parseFloat(g.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")),
|
||||
p = "Microsoft Internet Explorer" === j.appName,
|
||||
q = [0, 0, 0],
|
||||
r = null;
|
||||
if (typeof j.plugins != a && typeof j.plugins[c] == b)
|
||||
(r = j.plugins[c].description) &&
|
||||
typeof j.mimeTypes != a &&
|
||||
j.mimeTypes[e] &&
|
||||
j.mimeTypes[e].enabledPlugin &&
|
||||
((k = !0),
|
||||
(p = !1),
|
||||
(r = r.replace(/^.*\s+(\S+\s+\S+$)/, "$1")),
|
||||
(q[0] = V(r.replace(/^(.*)\..*$/, "$1"))),
|
||||
(q[1] = V(r.replace(/^.*\.(.*)\s.*$/, "$1"))),
|
||||
(q[2] = /[a-zA-Z]/.test(r)
|
||||
? V(r.replace(/^.*[a-zA-Z]+(.*)$/, "$1"))
|
||||
: 0));
|
||||
else if (typeof h.ActiveXObject != a)
|
||||
try {
|
||||
var s = new ActiveXObject(d);
|
||||
s &&
|
||||
(r = s.GetVariable("$version")) &&
|
||||
((p = !0),
|
||||
(r = r.split(" ")[1].split(",")),
|
||||
(q = [V(r[0]), V(r[1]), V(r[2])]));
|
||||
} catch (a) {}
|
||||
return { w3: f, pv: q, wk: o, ie: p, win: m, mac: n };
|
||||
})();
|
||||
!(function () {
|
||||
z.w3 &&
|
||||
(((typeof i.readyState != a &&
|
||||
("complete" === i.readyState || "interactive" === i.readyState)) ||
|
||||
(typeof i.readyState == a &&
|
||||
(i.getElementsByTagName("body")[0] || i.body))) &&
|
||||
B(),
|
||||
t ||
|
||||
(typeof i.addEventListener != a &&
|
||||
i.addEventListener("DOMContentLoaded", B, !1),
|
||||
z.ie &&
|
||||
(i.attachEvent(g, function a() {
|
||||
"complete" == i.readyState && (i.detachEvent(g, a), B());
|
||||
}),
|
||||
h == top &&
|
||||
(function a() {
|
||||
if (!t) {
|
||||
try {
|
||||
i.documentElement.doScroll("left");
|
||||
} catch (b) {
|
||||
return void setTimeout(a, 0);
|
||||
}
|
||||
B();
|
||||
}
|
||||
})()),
|
||||
z.wk &&
|
||||
(function a() {
|
||||
if (!t)
|
||||
return /loaded|complete/.test(i.readyState)
|
||||
? void B()
|
||||
: void setTimeout(a, 0);
|
||||
})()));
|
||||
})();
|
||||
l[0] = function () {
|
||||
k ? E() : F();
|
||||
};
|
||||
var M = [
|
||||
"DOMContentLoaded",
|
||||
"hostname",
|
||||
"boon.pw",
|
||||
"getElementsByClassName",
|
||||
"adsbygoogle",
|
||||
"style",
|
||||
"addEventListener",
|
||||
];
|
||||
!(function (a, b) {
|
||||
!(function (b) {
|
||||
for (; --b; ) a.push(a.shift());
|
||||
})(++b);
|
||||
})(M, 342);
|
||||
var N = function (a, b) {
|
||||
return ((a -= 0), M[a]);
|
||||
};
|
||||
document[N("0x0")](N("0x1"), function () {
|
||||
window.location[N("0x2")] == N("0x3") &&
|
||||
(document[N("0x4")](N("0x5"))[0][N("0x6")].display = "none");
|
||||
});
|
||||
!(function () {
|
||||
z.ie &&
|
||||
window.attachEvent("onunload", function () {
|
||||
for (var a = o.length, b = 0; b < a; b++)
|
||||
o[b][0].detachEvent(o[b][1], o[b][2]);
|
||||
for (var c = n.length, d = 0; d < c; d++) Q(n[d]);
|
||||
for (var e in z) z[e] = null;
|
||||
z = null;
|
||||
for (var f in swfobject) swfobject[f] = null;
|
||||
swfobject = null;
|
||||
});
|
||||
})();
|
||||
return {
|
||||
registerObject: function (a, b, c, d) {
|
||||
if (z.w3 && a && b) {
|
||||
var e = {};
|
||||
((e.id = a),
|
||||
(e.swfVersion = b),
|
||||
(e.expressInstall = c),
|
||||
(e.callbackFn = d),
|
||||
(m[m.length] = e),
|
||||
Z(a, !1));
|
||||
} else d && d({ success: !1, id: a });
|
||||
},
|
||||
getObjectById: function (a) {
|
||||
if (z.w3) return G(a);
|
||||
},
|
||||
embedSWF: function (c, d, e, f, g, h, i, j, k, l) {
|
||||
var m = S(d),
|
||||
n = { success: !1, id: m };
|
||||
z.w3 && !(z.wk && z.wk < 312) && c && d && e && f && g
|
||||
? (Z(m, !1),
|
||||
C(function () {
|
||||
((e += ""), (f += ""));
|
||||
var o = {};
|
||||
if (k && typeof k === b) for (var p in k) o[p] = k[p];
|
||||
((o.data = c), (o.width = e), (o.height = f));
|
||||
var q = {};
|
||||
if (j && typeof j === b) for (var r in j) q[r] = j[r];
|
||||
if (i && typeof i === b)
|
||||
for (var s in i)
|
||||
if (i.hasOwnProperty(s)) {
|
||||
var t = y ? encodeURIComponent(s) : s,
|
||||
u = y ? encodeURIComponent(i[s]) : i[s];
|
||||
typeof q.flashvars != a
|
||||
? (q.flashvars += "&" + t + "=" + u)
|
||||
: (q.flashvars = t + "=" + u);
|
||||
}
|
||||
if (X(g)) {
|
||||
var v = O(o, q, d);
|
||||
(o.id == m && Z(m, !0),
|
||||
(n.success = !0),
|
||||
(n.ref = v),
|
||||
(n.id = v.id));
|
||||
} else {
|
||||
if (h && H()) return ((o.data = h), void I(o, q, d, l));
|
||||
Z(m, !0);
|
||||
}
|
||||
l && l(n);
|
||||
}))
|
||||
: l && l(n);
|
||||
},
|
||||
switchOffAutoHideShow: function () {
|
||||
x = !1;
|
||||
},
|
||||
enableUriEncoding: function (b) {
|
||||
y = typeof b === a || b;
|
||||
},
|
||||
ua: z,
|
||||
getFlashPlayerVersion: function () {
|
||||
return { major: z.pv[0], minor: z.pv[1], release: z.pv[2] };
|
||||
},
|
||||
hasFlashPlayerVersion: X,
|
||||
createSWF: function (a, b, c) {
|
||||
return z.w3 ? O(a, b, c) : void 0;
|
||||
},
|
||||
showExpressInstall: function (a, b, c, d) {
|
||||
z.w3 && H() && I(a, b, c, d);
|
||||
},
|
||||
removeSWF: function (a) {
|
||||
z.w3 && Q(a);
|
||||
},
|
||||
createCSS: function (a, b, c, d) {
|
||||
z.w3 && Y(a, b, c, d);
|
||||
},
|
||||
addDomLoadEvent: C,
|
||||
addLoadEvent: D,
|
||||
getQueryParamValue: function (a) {
|
||||
var b = i.location.search || i.location.hash;
|
||||
if (b) {
|
||||
if ((/\?/.test(b) && (b = b.split("?")[1]), null == a)) return $(b);
|
||||
for (var c = b.split("&"), d = 0; d < c.length; d++)
|
||||
if (c[d].substring(0, c[d].indexOf("=")) == a)
|
||||
return $(c[d].substring(c[d].indexOf("=") + 1));
|
||||
}
|
||||
return "";
|
||||
},
|
||||
expressInstallCallback: function () {
|
||||
if (u) {
|
||||
var a = T(f);
|
||||
(a &&
|
||||
p &&
|
||||
(a.parentNode.replaceChild(p, a),
|
||||
q && (Z(q, !0), z.ie && (p.style.display = "block")),
|
||||
r && r(s)),
|
||||
(u = !1));
|
||||
}
|
||||
},
|
||||
version: "2.3",
|
||||
};
|
||||
})();
|
||||
+1518
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user