Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function _START_TEMPLATE_SECTION() {}
- function _END_TEMPLATE_SECTION() {}
- function _TEMPLATE_VARIABLE() {}
- function _INLINE_TEMPLATE_SECTION() {}
- function _PARENS() {}
- function _TEMPLATE_INCLUDE() {};
- var ifpc_;
- ifpc_ || (ifpc_ = function() {
- function a(a) {
- return 10 > a ? "0" + a : a
- }
- function b(a) {
- d.lastIndex = 0;
- return d.test(a) ? '"' + a.replace(d, function(a) {
- var b = p[a];
- return "string" === typeof b ? b : "\\u" + (
- "0000" + (+a.charCodeAt(0)).toString(16)
- ).slice(-4)
- }) + '"' : '"' + a + '"'
- }
- function c(a, e) {
- var d, m, n, q, r = f,
- l, h = e[a];
- h && "object" === typeof h && "function" === typeof h.toJSON &&
- (h = h.toJSON(a));
- "function" === typeof k && (h = k.call(e, a, h));
- switch (typeof h) {
- case "string":
- return b(h);
- case "number":
- return isFinite(h) ? String(h) : "null";
- case "boolean":
- case "null":
- return String(h);
- case "object":
- if (!h) return "null";
- f += g;
- l = [];
- if ("number" === typeof h.length && !h.propertyIsEnumerable(
- "length")) {
- q = h.length;
- for (d = 0; d < q; d += 1) l[d] = c(d, h) ||
- "null";
- n = 0 === l.length ? "[]" : f ? "[\n" + f + l.join(
- ",\n" + f) + "\n" + r + "]" : "[" + l.join(
- ",") + "]";
- f = r;
- return n
- }
- if (k && "object" === typeof k)
- for (q = k.length, d = 0; d < q; d += 1) m = k[
- d], "string" === typeof m && (n = c(m,
- h)) && l.push(b(m) + (f ? ": " : ":") +
- n);
- else
- for (m in h) Object.hasOwnProperty.call(h, m) &&
- (n = c(m, h)) && l.push(b(m) + (f ? ": " :
- ":") + n);
- n = 0 === l.length ? "{}" : f ? "{\n" + f + l.join(
- ",\n" + f) + "\n" + r + "}" : "{" + l.join(
- ",") + "}";
- f = r;
- return n
- }
- }
- Date.prototype.toJSON = function() {
- return this.getUTCFullYear() + "-" + a(this.getUTCMonth() +
- 1) + "-" + a(this.getUTCDate()) + "T" + a(this.getUTCHours()) +
- ":" + a(this.getUTCMinutes()) + ":" + a(this.getUTCSeconds()) +
- "Z"
- };
- String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype
- .toJSON = function() {
- return this.valueOf()
- };
- var e =
- /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
- d =
- /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
- f, g, p = {
- "\b": "\\b",
- "\t": "\\t",
- "\n": "\\n",
- "\f": "\\f",
- "\r": "\\r",
- '"': '\\"',
- "\\": "\\\\"
- },
- k;
- return {
- stringify: function(a, b, d) {
- var e;
- g = f = "";
- if ("number" === typeof d)
- for (e = 0; e < d; e += 1) g += " ";
- else "string" === typeof d && (g = d); if ((k = b) &&
- "function" !== typeof b && ("object" !== typeof b ||
- "number" !== typeof b.length)) throw Error(
- "JSON.stringify");
- return c("", {
- "": a
- })
- },
- parse: function(a, b) {
- function c(a, b) {
- var e, f, g = a[b];
- if (g && "object" === typeof g)
- for (e in g) Object.hasOwnProperty.call(g,
- e) && (f = c(g, e), void 0 !== f ?
- g[e] = f : delete g[e]);
- return d.call(a, b, g)
- }
- var d = b,
- f;
- e.lastIndex = 0;
- e.test(a) && (a = a.replace(e, function(a) {
- return "\\u" + ("0000" + (+a.charCodeAt(
- 0)).toString(16)).slice(-4)
- }));
- if (/^[\],:{}\s]*$/.test(a.replace(
- /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@")
- .replace(
- /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
- "]").replace(/(?:^|:|,)(?:\s*\[)+/g, "")))
- return f = eval("(" + a + ")"), "function" ===
- typeof d ? c({
- "": f
- }, "") : f;
- throw Error("JSON.parse");
- }
- }
- }());
- ifpc_.parse = function() {
- var a = ifpc_.parse;
- return function(b, c) {
- try {
- return a(b, c)
- } catch (e) {
- return !1
- }
- }
- }();
- function ifpc_a(a) {
- var b = document.createElement("DIV");
- b.innerHTML = "<iframe onload='this.pool_locked=false'></iframe>";
- var c = b.getElementsByTagName("IFRAME")[0];
- c.style.visibility = "hidden";
- c.style.width = c.style.height = "0px";
- c.style.border = "0px";
- c.style.position = "absolute";
- c.pool_locked = a;
- this.b[this.b.length] = c;
- b.removeChild(c);
- return c
- }
- function ifpc_b(a) {
- if (a.match(/^http[s]?:\/\//)) {
- var b = this;
- window.setTimeout(function() {
- for (var c = null, e = b.b.length - 1; 0 <= e; e--) {
- var d = b.b[e];
- if (d && !d.pool_locked)
- if (d.parentNode.removeChild(d), window.ActiveXObject)
- b.b[e] = null, b.b.splice(e, 1);
- else {
- d.pool_locked = !0;
- c = d;
- break
- }
- }
- c = c ? c : b.p(!0);
- c.src = a;
- document.body.appendChild(c)
- }, 0)
- }
- }
- function ifpc_c() {
- for (var a = 0; a < this.b.length; a++) this.b[a].onload = null, this.b[
- a] = null;
- this.b.length = 0;
- this.b = []
- }
- function ifpc_d() {
- for (var a = 0; a < this.b.length; a++) {
- var b = this.b[a];
- b && b.parentNode.removeChild(b)
- }
- }
- function ifpc_e() {
- this.b = [];
- this.p = ifpc_a;
- this.iframe = ifpc_b;
- this.clear = ifpc_c;
- this.dispose = ifpc_d
- }
- function ifpc_f(a, b) {
- _IFPC.e[a] = b
- }
- function ifpc_g(a) {
- delete _IFPC.e[a]
- }
- function ifpc_h(a, b, c, e, d, f, g, p) {
- if (!_IFPC.j) {
- var k = 4095 - e.length,
- k = parseInt(k / 3, 10);
- "undefined" == typeof g && (g = !0);
- if (p) g = {
- s: b,
- a: c,
- f: "..",
- t: window._isk[a.split("_")[2]]
- }, a = [a, "..", _IFPC.h, 1, 1, encodeURIComponent(ifpc_.stringify(
- g))].join("&"), _IFPC.g.iframe(e + "#" + a);
- else
- for (c = c.slice(0), c.unshift(_IFPC.w(d)), c.unshift(f), c.unshift(
- b), c.unshift(a), b = _IFPC.m(c), c = parseInt(b.length /
- k, 10), 0 < b.length % k && (c += 1), d = 0; d < c; d++) f =
- b.substr(d * k, k), f = [a, _IFPC.h, c, d, f, g], _IFPC.g.iframe(
- e + "#" + _IFPC.m(f));
- _IFPC.h++
- }
- }
- function ifpc_i() {
- _IFPC.e = {};
- _IFPC.d = {};
- _IFPC.g.clear()
- }
- function ifpc_j() {
- _IFPC.j || (_IFPC.j = !0, _IFPC.g.dispose(), _IFPC.clear())
- }
- function ifpc_k(a) {
- var b = _IFPC.i(a)[0],
- c = null;
- try {
- c = window.parent.frames[b]
- } catch (e) {}
- try {
- c || window.parent.parent.frames[b] == window.parent || (window.parent
- .parent.frames[b].setTimeout(function() {}, 0), c = window.parent
- .parent.frames[b])
- } catch (d) {}
- c || (c = window.parent.parent);
- c && void 0 != c._IFPC ? (b = function() {
- c._IFPC.handleRequest(a)
- }, window.ActiveXObject ? b() : c.setTimeout(b, 0)) : c = null
- }
- function ifpc_l(a) {
- a = _IFPC.i(a);
- var b = a.shift(),
- c = a.shift(),
- e = a.shift(),
- d = a.shift(),
- f = a.shift();
- a = a.shift();
- b = b + "_" + c;
- _IFPC.c[b] || (_IFPC.c[b] = []);
- _IFPC.c[b].push([d, f]);
- if (_IFPC.c[b].length == e) {
- _IFPC.c[b].sort(function(a, b) {
- return parseInt(a[0], 10) - parseInt(b[0], 10)
- });
- f = "";
- for (d = 0; d < e; d++) f += _IFPC.c[b][d][1];
- _IFPC.c[b] = null;
- var d = _IFPC.i(f),
- b = d.shift(),
- c = d.shift(),
- e = d.shift(),
- f = d.shift(),
- g = _IFPC.u(c);
- if (g) a = g.apply(null, d), _IFPC.v(f) && (a.unshift(f), _IFPC.call(
- b, _IFPC.l, a, e, null, ""));
- else if (a) throw Error("Service " + c + " not registered.");
- }
- }
- function ifpc_m(a) {
- return _IFPC.e.hasOwnProperty(a) ? _IFPC.e[a] : null
- }
- function ifpc_n(a) {
- var b = "";
- a && "function" == typeof a && (b = _IFPC.r(), _IFPC.d[b] = a);
- return b
- }
- function ifpc_o(a) {
- _IFPC.d.hasOwnProperty(a) && (_IFPC.d[a] = null)
- }
- function ifpc_p(a) {
- return a && _IFPC.d.hasOwnProperty(a) ? _IFPC.d[a] : null
- }
- function ifpc_q() {
- return _IFPC.k + _IFPC.n++
- }
- function ifpc_r(a) {
- return 0 == (a + "").indexOf(_IFPC.k)
- }
- function ifpc_s(a) {
- a = a.split("&");
- for (var b = 0; b < a.length; b++) {
- var c = decodeURIComponent(a[b]);
- try {
- c = ifpc_.parse(c)
- } catch (e) {}
- a[b] = c
- }
- return a
- }
- function ifpc_t(a) {
- for (var b = [], c = 0; c < a.length; c++) {
- var e = ifpc_.stringify(a[c]);
- b.push(encodeURIComponent(e))
- }
- return b.join("&")
- }
- function ifpc_u(a) {
- var b = _IFPC.q(a);
- if (b) {
- for (var c = [], e = 1; e < arguments.length; e++) c[c.length] =
- arguments[e];
- b.apply(null, c);
- _IFPC.z(a)
- } else throw Error("Invalid callbackId");
- }
- var _IFPC = {};
- function ifpc_v(a) {
- (a = window._argsUrl && window._argsUrl(a)) && 1 == a.exp_rpc_js && (
- window.FLAG_use_rpc_js = !0);
- window.FLAG_use_rpc_js ? _IFPC = {
- registerService: function(a, c) {
- window.gadgets.rpc.register(a, function() {
- var a = this.a.slice(0);
- a.unshift(this.f);
- c.apply(null, a)
- })
- },
- unregisterService: function(a) {
- window.gadgets.rpc.unregister(a)
- },
- handleRequest: function(a) {
- window.gadgets.rpc.receive(a)
- },
- call: function(a, c, e, d, f, g, p, k) {
- g = window.gadgets.rpc;
- d == g.getRelayUrl("..") && (a = "..");
- e || (e = []);
- k || (e = e.slice(1));
- e.unshift(f);
- e.unshift(c);
- e.unshift(a);
- g.call.apply(g, e)
- }
- } : (_IFPC = {
- registerService: ifpc_f,
- unregisterService: ifpc_g,
- call: ifpc_h,
- clear: ifpc_i,
- dispose: ifpc_j,
- relayRequest: ifpc_k,
- processRequest: ifpc_k,
- handleRequest: ifpc_l,
- k: "cbid",
- l: "ifpc_callback",
- g: new ifpc_e,
- c: {},
- e: {},
- d: {},
- n: 0,
- h: 0,
- j: !1,
- u: ifpc_m,
- w: ifpc_n,
- z: ifpc_o,
- q: ifpc_p,
- r: ifpc_q,
- v: ifpc_r,
- i: ifpc_s,
- m: ifpc_t,
- o: ifpc_u
- }, _IFPC.registerService(_IFPC.l, _IFPC.o));
- _IFPC.registerService = _IFPC.registerService;
- _IFPC.unregisterService = _IFPC.unregisterService;
- _IFPC.call = _IFPC.call;
- _IFPC.handleRequest = _IFPC.handleRequest
- }
- ifpc_v(document.location.href);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement