Skip to content

Instantly share code, notes, and snippets.

@aileron
Created March 3, 2023 10:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aileron/789c4d35841e162c1d70eb655215dad5 to your computer and use it in GitHub Desktop.
Save aileron/789c4d35841e162c1d70eb655215dad5 to your computer and use it in GitHub Desktop.
vcdal.js
var $jscomp = $jscomp || {};
$jscomp.scope = {};
$jscomp.arrayIteratorImpl = function(a) {
var d = 0;
return function() {
return d < a.length ? {
done: !1,
value: a[d++]
} : {
done: !0
}
}
}
;
$jscomp.arrayIterator = function(a) {
return {
next: $jscomp.arrayIteratorImpl(a)
}
}
;
$jscomp.makeIterator = function(a) {
var d = "undefined" != typeof Symbol && Symbol.iterator && a[Symbol.iterator];
return d ? d.call(a) : $jscomp.arrayIterator(a)
}
;
$jscomp.ASSUME_ES5 = !1;
$jscomp.ASSUME_NO_NATIVE_MAP = !1;
$jscomp.ASSUME_NO_NATIVE_SET = !1;
$jscomp.SIMPLE_FROUND_POLYFILL = !1;
$jscomp.ISOLATE_POLYFILLS = !1;
$jscomp.FORCE_POLYFILL_PROMISE = !1;
$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION = !1;
$jscomp.defineProperty = $jscomp.ASSUME_ES5 || "function" == typeof Object.defineProperties ? Object.defineProperty : function(a, d, l) {
if (a == Array.prototype || a == Object.prototype)
return a;
a[d] = l.value;
return a
}
;
$jscomp.getGlobal = function(a) {
a = ["object" == typeof globalThis && globalThis, a, "object" == typeof window && window, "object" == typeof self && self, "object" == typeof global && global];
for (var d = 0; d < a.length; ++d) {
var l = a[d];
if (l && l.Math == Math)
return l
}
throw Error("Cannot find global object");
}
;
$jscomp.global = $jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE = "function" === typeof Symbol && "symbol" === typeof Symbol("x");
$jscomp.TRUST_ES6_POLYFILLS = !$jscomp.ISOLATE_POLYFILLS || $jscomp.IS_SYMBOL_NATIVE;
$jscomp.polyfills = {};
$jscomp.propertyToPolyfillSymbol = {};
$jscomp.POLYFILL_PREFIX = "$jscp$";
var $jscomp$lookupPolyfilledValue = function(a, d) {
var l = $jscomp.propertyToPolyfillSymbol[d];
if (null == l)
return a[d];
l = a[l];
return void 0 !== l ? l : a[d]
};
$jscomp.polyfill = function(a, d, l, b) {
d && ($jscomp.ISOLATE_POLYFILLS ? $jscomp.polyfillIsolated(a, d, l, b) : $jscomp.polyfillUnisolated(a, d, l, b))
}
;
$jscomp.polyfillUnisolated = function(a, d, l, b) {
l = $jscomp.global;
a = a.split(".");
for (b = 0; b < a.length - 1; b++) {
var c = a[b];
if (!(c in l))
return;
l = l[c]
}
a = a[a.length - 1];
b = l[a];
d = d(b);
d != b && null != d && $jscomp.defineProperty(l, a, {
configurable: !0,
writable: !0,
value: d
})
}
;
$jscomp.polyfillIsolated = function(a, d, l, b) {
var c = a.split(".");
a = 1 === c.length;
b = c[0];
b = !a && b in $jscomp.polyfills ? $jscomp.polyfills : $jscomp.global;
for (var t = 0; t < c.length - 1; t++) {
var I = c[t];
if (!(I in b))
return;
b = b[I]
}
c = c[c.length - 1];
l = $jscomp.IS_SYMBOL_NATIVE && "es6" === l ? b[c] : null;
d = d(l);
null != d && (a ? $jscomp.defineProperty($jscomp.polyfills, c, {
configurable: !0,
writable: !0,
value: d
}) : d !== l && (void 0 === $jscomp.propertyToPolyfillSymbol[c] && (l = 1E9 * Math.random() >>> 0,
$jscomp.propertyToPolyfillSymbol[c] = $jscomp.IS_SYMBOL_NATIVE ? $jscomp.global.Symbol(c) : $jscomp.POLYFILL_PREFIX + l + "$" + c),
$jscomp.defineProperty(b, $jscomp.propertyToPolyfillSymbol[c], {
configurable: !0,
writable: !0,
value: d
})))
}
;
$jscomp.initSymbol = function() {}
;
$jscomp.polyfill("Symbol", function(a) {
if (a)
return a;
var d = function(t, I) {
this.$jscomp$symbol$id_ = t;
$jscomp.defineProperty(this, "description", {
configurable: !0,
writable: !0,
value: I
})
};
d.prototype.toString = function() {
return this.$jscomp$symbol$id_
}
;
var l = "jscomp_symbol_" + (1E9 * Math.random() >>> 0) + "_"
, b = 0
, c = function(t) {
if (this instanceof c)
throw new TypeError("Symbol is not a constructor");
return new d(l + (t || "") + "_" + b++,t)
};
return c
}, "es6", "es3");
$jscomp.polyfill("Symbol.iterator", function(a) {
if (a)
return a;
a = Symbol("Symbol.iterator");
for (var d = "Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "), l = 0; l < d.length; l++) {
var b = $jscomp.global[d[l]];
"function" === typeof b && "function" != typeof b.prototype[a] && $jscomp.defineProperty(b.prototype, a, {
configurable: !0,
writable: !0,
value: function() {
return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))
}
})
}
return a
}, "es6", "es3");
$jscomp.iteratorPrototype = function(a) {
a = {
next: a
};
a[Symbol.iterator] = function() {
return this
}
;
return a
}
;
$jscomp.iteratorFromArray = function(a, d) {
a instanceof String && (a += "");
var l = 0
, b = !1
, c = {
next: function() {
if (!b && l < a.length) {
var t = l++;
return {
value: d(t, a[t]),
done: !1
}
}
b = !0;
return {
done: !0,
value: void 0
}
}
};
c[Symbol.iterator] = function() {
return c
}
;
return c
}
;
$jscomp.polyfill("Array.prototype.keys", function(a) {
return a ? a : function() {
return $jscomp.iteratorFromArray(this, function(d) {
return d
})
}
}, "es6", "es3");
function rebasashi(a, d) {
for (var l = 0, b = [{
kaereba_class_name: "shoplinkrakuten",
shop_reg: "search\\.rakuten\\.co\\.jp",
key_reg: "mall\\/([^/]+)"
}, {
kaereba_class_name: "shoplinkseven",
shop_reg: "7net\\.omni7\\.jp",
key_reg: "keyword=([^&]+)"
}, {
kaereba_class_name: "shoplinkamazon",
shop_reg: "amazon\\.co\\.jp",
key_reg: "keywords=([^&]+)"
}], c = 0, t = b.length; c < t; c++)
for (var I = document.getElementsByClassName(b[c].kaereba_class_name), R = b[c].shop_reg, F = b[c].key_reg, K = 0, M = I.length; K < M; K++) {
var x = I.item(K);
if (!(0 < x.parentNode.getElementsByClassName("shoplinkyahoo").length)) {
var n = x.getElementsByTagName("a").item(0).getAttribute("href");
var q = null;
var y = new RegExp(F);
if (n = n.match(new RegExp(R + "(.+)")))
if (n = n[1],
"%" == n.charAt(0) && (n = n.split("&")[0],
n = decodeURIComponent(n)),
y = n.match(y))
q = y[1];
if (null != q) {
q = "https://ck.jp.ap.valuecommerce.com/servlet/referral?sid=" + a + "&pid=" + d + "&vc_url=http%3A%2F%2Fsearch.shopping.yahoo.co.jp%2Fsearch%3Fp%3d" + q + "&vcptn=kaereba_auto";
var B = x.getElementsByTagName("a").item(0);
y = document.createElement("div");
var G = x.attributes;
n = 0;
for (var Q = G.length; n < Q; n++)
y.setAttribute(G[n].name, G[n].value);
y.style.backgroundPositionY && -1 == y.style.backgroundImage.indexOf("simple") && (y.style.backgroundPositionY = "-150px");
y.className = "shoplinkyahoo";
G = document.createElement("a");
G.innerText = "Yahoo\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0";
B = B.attributes;
n = 0;
for (Q = B.length; n < Q; n++)
G.setAttribute(B[n].name, B[n].value);
G.href = q;
x.parentNode.appendChild(y);
y.appendChild(G);
l++
}
}
}
return l
}
if ("undefined" == typeof vc_parallel_bcookie)
var vc_parallel_bcookie = void 0;
function VcDal() {
function a(b) {
var c = [];
if ("string" == typeof vc_pid) {
var t = "dalc.valuecommerce.com/app3";
c.p = encodeURIComponent(vc_pid)
} else
"object" == typeof vc_pid && (t = "dalc.valuecommerce.com/app2",
c.p = encodeURIComponent(vc_pid.join()));
"string" == typeof vcptn ? c.ptn = encodeURIComponent(vcptn) : "object" == typeof vcptn && (c.ptn = encodeURIComponent(vcptn.join()));
0 < document.referrer.length && (c._r = encodeURIComponent(document.referrer));
0 < document.URL.length && (c._s = encodeURIComponent(document.URL));
a: {
var I = document.cookie.split("; ");
I = $jscomp.makeIterator(I);
for (var R = I.next(); !R.done; R = I.next())
if (R = R.value.split("="),
"_VC_PTB_" == R[0]) {
vc_parallel_bcookie = R[1];
break a
}
vc_parallel_bcookie = null
}
vc_parallel_bcookie && (c._b = vc_parallel_bcookie);
"undefined" !== typeof b && (c.vf = encodeURIComponent(b));
b = window.navigator.userAgent.toLowerCase();
(-1 !== b.indexOf("iphone") || -1 !== b.indexOf("ipad") || -1 === b.indexOf("edge") && -1 === b.indexOf("chrome") && -1 !== b.indexOf("safari") && -1 !== b.indexOf("macintosh")) && (c.pf = 1);
b = "";
for (var F in c)
c.hasOwnProperty(F) && (b += (b ? "&" : "?") + F + "=" + c[F]);
c = ("https:" == document.location.protocol ? "https://" : "http://") + t + b;
t = document.createElement("script");
t.src = c;
t.type = "text/javascript";
t.charset = "UTF-8";
document.getElementsByTagName("head")[0].appendChild(t)
}
function d() {
var b = [];
l(b, "yyi-rinker-links", [{
name: "rakutenlink",
shop_reg: "search\\.rakuten\\.co\\.jp",
key_reg: "\\/mall\\/([^/]+)"
}, {
name: "yahoolink",
shop_reg: "shopping\\.yahoo\\.co\\.jp(/|%2F)search",
key_reg: "[?&]p=([^&]+)"
}, {
name: "amazonlink",
shop_reg: "amazon\\.co\\.jp",
key_reg: "[?&]keywords=([^&]+)"
}, {
name: "amazonlink",
shop_reg: "amazon\\.co\\.jp(/|%2F)s\\?",
key_reg: "[?&]k=([^&]+)"
}], "r");
l(b, "kaerebalink-box", [{
name: "shoplinkrakuten",
shop_reg: "search\\.rakuten\\.co\\.jp",
key_reg: "\\/mall\\/([^/]+)"
}, {
name: "shoplinkyahoo",
shop_reg: "shopping\\.yahoo\\.co\\.jp(/|%2F)search",
key_reg: "[?&]p=([^&]+)"
}, {
name: "shoplinkamazon",
shop_reg: "amazon\\.co\\.jp",
key_reg: "[?&]keywords=([^&]+)"
}, {
name: "shoplinkamazon",
shop_reg: "amazon\\.co\\.jp(/|%2F)s\\?",
key_reg: "[?&]k=([^&]+)"
}], "k");
if (!(0 >= Object.keys(b).length)) {
var c = "";
"undefined" != typeof vc_pid && (c = "?p=" + encodeURIComponent(vc_pid));
0 < document.URL.length && (c += (c ? "&" : "?") + "s=" + encodeURIComponent(document.URL.substr(0, 512)));
for (var t in b)
b.hasOwnProperty(t) && (c += (c ? "&" : "?") + "w=" + encodeURIComponent(b[t] + "," + t));
c += (c ? "&" : "?") + "_r=" + Math.random();
b = ("https:" == document.location.protocol ? "https://" : "http://") + "dalb.valuecommerce.com/b5" + c;
document.createElement("img").src = b
}
}
function l(b, c, t, I) {
c = document.getElementsByClassName(c);
for (var R = 0, F = c.length; R < F; R++)
for (var K = c.item(R), M = 0, x = t.length; M < x; M++) {
var n = K.getElementsByClassName(t[M].name);
if (!(0 >= n.length || (n = n.item(0).getElementsByTagName("a"),
0 >= n.length))) {
var q = n.item(0).getAttribute("href");
if (null != q) {
n = null;
var y = new RegExp(t[M].key_reg);
if (q = q.match(new RegExp(t[M].shop_reg + "(.+)")))
if (q = q[q.length - 1],
"%" == q.charAt(0) && (q = q.split("&")[0],
q = decodeURIComponent(q)),
y = q.match(y))
n = decodeURIComponent(y[1]).replace(/\+/g, " ");
if (null != n) {
K = I + "," + n;
b[K] = void 0 === b[K] ? 1 : b[K] + 1;
break
}
}
}
}
}
this.finishLoad = function() {
if ("undefined" != typeof vc_pid) {
var b = document.createElement("img")
, c = document.createElement("canvas");
b.addEventListener && "undefined" != typeof c ? (b.addEventListener("load", function() {
try {
c.width = b.naturalWidth;
c.height = b.naturalHeight;
c.getContext("2d").drawImage(b, 0, 0);
var t = c.toDataURL("image/png");
a(t.replace(/^data:image\/(png|jpg);base64,/, ""))
} catch (I) {
a(void 0)
}
}, !1),
b.crossOrigin = "anonymous",
b.style.display = "none",
b.src = "https://a.imgvc.com/i/bf.png?v=1",
document.getElementsByTagName("body")[0].appendChild(b),
d()) : a(void 0)
}
}
}
var vc_dal_callback = function(a) {
function d(r) {
var m = [];
if ("" !== r) {
r = r.split("?")[1].split("&");
for (var f in r)
if (r.hasOwnProperty(f)) {
var k = r[f].split("=");
m[k.shift()] = k.join("=")
}
}
return m
}
function l(r, m, f, k, C) {
m = d(m);
if (m.vcpub && m.vcid || !k || !f)
return r;
m.vcpub = f;
m.vcid = k;
!m.isec && C && (m.isec = C);
f = "";
for (var u in m)
m.hasOwnProperty(u) && (f += (f ? "&" : "?") + u + "=" + m[u]);
return r.split("?")[0] + f
}
function b(r, m, f, k) {
if (!r.match(/amazon\.co\.jp$/) || !f.match(/[?&]tag=/)) {
r = r.split(".");
f = r.length;
f > k && (f = k);
m = m.substr(1).split("/");
"" === m.slice(-1)[0] && m.pop();
k = m.length;
for (4 < k && (k = 4); 1 <= k; k--)
for (var C = m.slice(0, k).join("/"), u = f; 2 <= u; u--) {
var v = r.slice(-u).join(".") + "/" + C
, J = a[v];
if (void 0 != J)
return v
}
for (u = f; 2 <= u; u--)
if (v = r.slice(-u).join("."),
J = a[v],
void 0 != J)
return v
}
}
function c(r, m, f, k, C, u, v, J, N, X) {
f = f + "dalr.valuecommerce.com/dck/" + v.g + "?pid=" + v.p + "&sid=" + v.s + "&aid=" + v.a + "&mid=" + v.m;
void 0 !== v.ptn && (f += "&vcptn=" + v.ptn);
void 0 !== v.sp && (f += "&sp=" + v.sp);
void 0 !== u && (f += "&ub=" + u);
f += "&rid=" + k + "&isec=" + C + "&vcurl=" + encodeURIComponent(J);
0 < document.URL.length && (f += "&ckref=" + encodeURIComponent(document.URL.substr(0, 512)));
k = m.innerHTML;
if (void 0 !== k) {
a: {
var W = k;
k = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");
C = [];
u = 0;
for (var g = W.length; u < g; u++) {
var e = W.charCodeAt(u);
127 >= e ? C.push(e) : (2047 >= e ? C.push(e >> 6 & 31 | 192) : (C.push(e >> 12 & 15 | 224),
C.push(e >> 6 & 63 | 128)),
C.push(e & 63 | 128))
}
W = "";
u = 0;
for (g = C.length; u < g; u += 3) {
W += k[C[u] >> 2];
if (u + 1 >= g) {
k = W += k[(C[u] & 3) << 4];
break a
}
W += k[((C[u] & 3) << 4) + (C[u + 1] >> 4)];
if (u + 2 >= g) {
k = W += k[(C[u + 1] & 15) << 2];
break a
}
W += k[((C[u + 1] & 15) << 2) + (C[u + 2] >> 6)];
W += k[C[u + 2] & 63]
}
k = W
}
k = 512 < k.length ? "-" : k;
f += "&ih=" + k
} else
k = "";
f += "&vo__ih=" + k + "&vo__uri=" + encodeURIComponent(J);
null != X && (f += "&vo__vcprkey=" + X);
m.rel = "nofollow";
if (v.lp_url) {
X = f;
u = v.cbf;
f = v.lp_url;
C = void 0;
g = 256 < k.length ? "-" : k;
W = J.substr(0, 256);
v.b_url && (C = v.b_url);
C += "&ih=" + g + "&vcurl=" + encodeURIComponent(W);
if (f.match(/{%vc_url%}/) || f.match(/{%ad_vc_url%}/))
e = J ? decodeURIComponent(J) : void 0,
f = R(f, e, v.sp ? v.sp : void 0, v.pgs ? v.pgs : void 0, v.vupgv ? v.vupgv : void 0, v.nop ? v.nop : void 0);
1 == u ? f += "&vo__ih=" + g + "&vo__uri=" + encodeURIComponent(W) : (N = "vc_ls_pti_" + N,
m.classList.add(N),
u = document.createElement("script"),
u.innerHTML = "document.getElementsByClassName('" + N + "')[0].onclick = function() {event.preventDefault();navigator.sendBeacon('" + C + "');if (event.button === 0 && ((event.ctrlKey && !event.metaKey) || (!event.ctrlKey && event.metaKey))) {window.open('" + f + "', '_blank');return;}if (event.button === 0 && event.shiftKey) {window.open('" + f + "');return;}window.location.href = '" + f + "';}",
document.head.appendChild(u),
f = X)
}
m.href = f;
m.setAttribute("data-nodal", "");
m = v.a + "," + v.m + "," + v.p + "," + v.s + "," + k + "," + encodeURIComponent(J);
r[m] = void 0 === r[m] ? 1 : r[m] + 1
}
function t(r, m, f, k, C, u) {
if (!(0 >= Object.keys(f).length)) {
var v = [], J = [], N = 0, X;
for (X in f)
f.hasOwnProperty(X) && (v[X] = f[X],
J.push(X.split("%2C")[0]),
N++,
15 <= N && (v._p = encodeURIComponent(J.join(",")),
I(r, m, v, k, C, u),
N = 0,
v = [],
J = []));
0 < J.length && (v._p = encodeURIComponent(J.join(",")));
I(r, m, v, k, C, u)
}
}
function I(r, m, f, k, C, u) {
if (!(0 >= Object.keys(f).length)) {
f._r = k;
f._t = C;
0 < document.URL.length && (f._du = encodeURIComponent(document.URL.substr(0, 512)));
0 < document.referrer.length && (f._dr = encodeURIComponent(document.referrer.substr(0, 512)));
"dal" === u && ("string" == typeof vc_pid ? f._p = encodeURIComponent(vc_pid) : "object" == typeof vc_pid ? f._p = encodeURIComponent(vc_pid.join()) : delete f._p);
k = "";
for (var v in f)
f.hasOwnProperty(v) && (k += (k ? "&" : "?") + v + "=" + f[v]);
r = r + m + k;
document.createElement("img").src = r
}
}
function R(r, m, f, k, C, u) {
if (void 0 === m || "" === m)
return r = r.replace(/{%vc_url%}/g, ""),
r = r.replace(/{%ad_vc_url%}/g, "");
var v = decodeURIComponent(m).split("?")[0]
, J = "";
void 0 !== decodeURIComponent(m).split("?")[1] && (J = "?" + decodeURIComponent(m).split("?")[1]);
J = d(J);
if (void 0 !== f && "" !== f) {
sp_params = [];
sp_queries = f.split("&");
for (var N in sp_queries)
sp_queries.hasOwnProperty(N) && (m = sp_queries[N].split("="),
sp_params[m.shift()] = m.join("="));
for (N in sp_params)
sp_params.hasOwnProperty(N) && (J.hasOwnProperty(N) || (J[N] = sp_params[N]));
m = v + F(J)
}
r = r.replace(/{%vc_url%}/g, encodeURIComponent(m));
f = !0;
"{%ad_vc_url%}" === r && (f = !1);
if (void 0 === C || "" === C || void 0 === k || "" === k || 1 === k)
return r = f ? r.replace(/{%ad_vc_url%}/g, encodeURIComponent(m)) : m;
C = C.replace(/{%vc_url%}/g, encodeURIComponent(m));
if (3 === k)
return k = -1 === m.indexOf("?") ? m + "?" + C : m + "&" + C,
r = f ? r.replace(/{%ad_vc_url%}/g, encodeURIComponent(k)) : k;
nop_queries = [];
void 0 !== u && "" !== u && (nop_queries = u.split("&"));
vupgv_params = [];
vupgv_queries = C.split("&");
for (N in vupgv_queries)
vupgv_queries.hasOwnProperty(N) && (m = vupgv_queries[N].split("="),
vupgv_params[m.shift()] = m.join("="));
for (N in vupgv_params)
vupgv_params.hasOwnProperty(N) && (J.hasOwnProperty(N) && (-1 !== nop_queries.indexOf(N) && (vupgv_params[N] = J[N]),
delete J[N]),
J[N] = vupgv_params[N]);
k = v + F(J);
return r = f ? r.replace(/{%ad_vc_url%}/g, encodeURIComponent(k)) : k
}
function F(r) {
var m = "", f;
for (f in r)
r.hasOwnProperty(f) && (m += (m ? "&" : "?") + f + "=" + r[f]);
return m
}
var K = "https:" == document.location.protocol ? "https://" : "http://"
, M = a.r
, x = a.t
, n = a.l
, q = a.ub
, y = []
, B = []
, G = a.vcpub
, Q = a.vcid
, A = {}
, D = function() {
var r = location.search
, m = null;
if (r) {
r = r.split("?")[1].split("&");
for (var f in r) {
var k = r[f].split("=");
if ("vcprkey" == k.shift()) {
m = k[0];
break
}
}
}
return m
}();
if (null != a.kas && null != a.kap) {
var V = rebasashi(a.kas, a.kap);
if (0 < V)
for (var O in a)
if (a.hasOwnProperty(O) && a[O].kaa && "2201292" == a[O].m) {
var w = a[O].kaa + "," + a[O].m + "," + a.kap + "," + a.kas;
y[w] = void 0 === y[w] ? V : y[w] + V
}
}
V = document.getElementsByTagName("a");
for (var S = 0, Y = V.length; S < Y; S++) {
O = void 0;
w = V[S];
var Z = w.href
, T = w.hostname
, aa = w.pathname;
O = w.search;
"ck.jp.ap.valuecommerce.com" === T || "cks.jp.ap.valuecommerce.com" === T ? (w.href = l(Z, O, G, Q, parseInt(x, 16)),
O = d(O),
void 0 !== O.pid && (w = encodeURIComponent(O.pid + "," + (O.sid ? O.sid : "")),
A[w] = A[w] ? A[w] + 1 : 1)) : w.hasAttribute("data-nodal") || (O = b(T, aa, O, n),
void 0 != O ? c(y, w, K, M, x, q, a[O], Z, S, D) : (w.setAttribute("data-nodal", ""),
"" !== T && void 0 !== T && T !== location.hostname && (O = "/" != aa ? T + "/" + aa.split("/")[1] : T,
O = encodeURIComponent(O),
B[O] = void 0 === B[O] ? 1 : B[O] + 1)))
}
t(K, "dalb.valuecommerce.com/b2", y, M, x, "dal");
t(K, "dalb.valuecommerce.com/b3", B, M, x, "dal");
t(K, "dalb.valuecommerce.com/b4", A, M, x, "ck")
}
, vc_linkswitch_callback = function(a) {
function d(g) {
var e = [];
if ("" !== g) {
g = g.split("?")[1].split("&");
for (var h in g)
if (g.hasOwnProperty(h)) {
var p = g[h].split("=");
e[p.shift()] = p.join("=")
}
}
return e
}
function l(g, e, h, p, P) {
e = d(e);
if (e.vcpub && e.vcid || !p || !h)
return g;
e.vcpub = h;
e.vcid = p;
!e.isec && P && (e.isec = P);
h = "";
for (var E in e)
e.hasOwnProperty(E) && (h += (h ? "&" : "?") + E + "=" + e[E]);
return g.split("?")[0] + h
}
function b(g, e, h, p) {
if (!g.match(/amazon\.co\.jp$/) || !h.match(/[?&]tag=/)) {
g = g.split(".");
h = g.length;
h > p && (h = p);
e = e.substr(1).split("/");
"" === e.slice(-1)[0] && e.pop();
p = e.length;
for (4 < p && (p = 4); 1 <= p; p--)
for (var P = e.slice(0, p).join("/"), E = h; 2 <= E; E--) {
var H = g.slice(-E).join(".") + "/" + P
, z = a[H];
if (void 0 != z)
return H
}
for (E = h; 2 <= E; E--)
if (H = g.slice(-E).join("."),
z = a[H],
void 0 != z)
return H
}
}
function c(g, e, h, p, P, E, H, z, L, U, ca, ea, da, ba, fa, ia, ha) {
H = H + "dalr.valuecommerce.com/dck/" + ba.g + "?pid=" + ca + "&sid=" + ea + "&aid=" + ba.a + "&mid=" + ba.m;
void 0 !== da && (H += "&vcptn=" + da);
void 0 !== ba.sp && (H += "&sp=" + ba.sp);
void 0 !== U && (H += "&ub=" + U);
H += "&rid=" + z + "&isec=" + L + "&vcurl=" + encodeURIComponent(fa);
0 < document.URL.length && (H += "&ckref=" + encodeURIComponent(document.URL.substr(0, 512)));
z = e.innerHTML;
void 0 !== z ? (z = F(z),
z = 512 < z.length ? "-" : z,
H += "&ih=" + z) : z = "";
H += "&vo__ih=" + z + "&vo__uri=" + encodeURIComponent(fa);
null != ha && (H += "&vo__vcprkey=" + ha);
h = h.replace(p, P[1] + E + "=" + encodeURIComponent(H));
e.rel = "nofollow";
ba.lp_url && (h = K(ba, e, fa, h, ia, z));
e.href = h;
e.setAttribute("data-nodal", "");
e = ba.a + "," + ba.m + "," + ca + "," + ea + "," + z + "," + encodeURIComponent(fa);
g[e] = void 0 === g[e] ? 1 : g[e] + 1
}
function t(g, e, h, p, P, E, H, z, L, U, ca, ea, da) {
h = h + "dalr.valuecommerce.com/dck/" + U.g + "?pid=" + H + "&sid=" + z + "&aid=" + U.a + "&mid=" + U.m;
void 0 !== L && (h += "&vcptn=" + L);
void 0 !== U.sp && (h += "&sp=" + U.sp);
void 0 !== E && (h += "&ub=" + E);
h += "&rid=" + p + "&isec=" + P + "&vcurl=" + encodeURIComponent(ca);
0 < document.URL.length && (h += "&ckref=" + encodeURIComponent(document.URL.substr(0, 512)));
p = e.innerHTML;
void 0 !== p ? (p = F(p),
p = 512 < p.length ? "-" : p,
h += "&ih=" + p) : p = "";
h += "&vo__ih=" + p + "&vo__uri=" + encodeURIComponent(ca);
null != da && (h += "&vo__vcprkey=" + da);
e.rel = "nofollow";
U.lp_url && (h = K(U, e, ca, h, ea, p));
e.href = h;
e.setAttribute("data-nodal", "");
e = U.a + "," + U.m + "," + H + "," + z + "," + p + "," + encodeURIComponent(ca);
g[e] = void 0 === g[e] ? 1 : g[e] + 1
}
function I(g, e, h, p, P, E) {
if (!(0 >= Object.keys(h).length)) {
var H = [], z = [], L = 0, U;
for (U in h)
h.hasOwnProperty(U) && (H[U] = h[U],
z.push(U.split("%2C")[0]),
L++,
15 <= L && (H._p = encodeURIComponent(z.join(",")),
R(g, e, H, p, P, E),
L = 0,
H = [],
z = []));
0 < z.length && (H._p = encodeURIComponent(z.join(",")));
R(g, e, H, p, P, E)
}
}
function R(g, e, h, p, P, E) {
if (!(0 >= Object.keys(h).length)) {
h._r = p;
h._t = P;
0 < document.URL.length && (h._du = encodeURIComponent(document.URL.substr(0, 512)));
0 < document.referrer.length && (h._dr = encodeURIComponent(document.referrer.substr(0, 512)));
"dal" === E && ("string" == typeof vc_pid ? h._p = encodeURIComponent(vc_pid) : "object" == typeof vc_pid ? h._p = encodeURIComponent(vc_pid.join()) : delete h._p);
p = "";
for (var H in h)
h.hasOwnProperty(H) && (p += (p ? "&" : "?") + H + "=" + h[H]);
g = g + e + p;
document.createElement("img").src = g
}
}
function F(g) {
for (var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""), h = [], p = 0, P = g.length; p < P; p++) {
var E = g.charCodeAt(p);
127 >= E ? h.push(E) : (2047 >= E ? h.push(E >> 6 & 31 | 192) : (h.push(E >> 12 & 15 | 224),
h.push(E >> 6 & 63 | 128)),
h.push(E & 63 | 128))
}
g = "";
p = 0;
for (P = h.length; p < P; p += 3) {
g += e[h[p] >> 2];
if (p + 1 >= P) {
g += e[(h[p] & 3) << 4];
break
}
g += e[((h[p] & 3) << 4) + (h[p + 1] >> 4)];
if (p + 2 >= P) {
g += e[(h[p + 1] & 15) << 2];
break
}
g += e[((h[p + 1] & 15) << 2) + (h[p + 2] >> 6)];
g += e[h[p + 2] & 63]
}
return g
}
function K(g, e, h, p, P, E) {
var H = g.cbf
, z = g.lp_url
, L = void 0;
E = 256 < E.length ? "-" : E;
var U = h.substr(0, 256);
g.b_url && (L = g.b_url);
L += "&ih=" + E + "&vcurl=" + encodeURIComponent(U);
if (z.match(/{%vc_url%}/) || z.match(/{%ad_vc_url%}/))
z = M(z, h ? h : void 0, g.sp ? g.sp : void 0, g.pgs ? g.pgs : void 0, g.vupgv ? g.vupgv : void 0, g.nop ? g.nop : void 0);
if (1 == H)
return z += "&vo__ih=" + E + "&vo__uri=" + encodeURIComponent(U);
g = "vc_ls_pti_" + P;
e.classList.add(g);
e = document.createElement("script");
e.innerHTML = "document.getElementsByClassName('" + g + "')[0].onclick = function() {event.preventDefault();navigator.sendBeacon('" + L + "');if (event.button === 0 && ((event.ctrlKey && !event.metaKey) || (!event.ctrlKey && event.metaKey))) {window.open('" + z + "', '_blank');return;}if (event.button === 0 && event.shiftKey) {window.open('" + z + "');return;}window.location.href = '" + z + "';}";
document.head.appendChild(e);
return p
}
function M(g, e, h, p, P, E) {
if (void 0 === e || "" === e)
return g = g.replace(/{%vc_url%}/g, ""),
g = g.replace(/{%ad_vc_url%}/g, "");
var H = e.split("?")[0]
, z = "";
void 0 !== e.split("?")[1] && (z = "?" + e.split("?")[1]);
z = d(z);
if (void 0 !== h && "" !== h) {
sp_params = [];
sp_queries = h.split("&");
for (var L in sp_queries)
sp_queries.hasOwnProperty(L) && (e = sp_queries[L].split("="),
sp_params[e.shift()] = e.join("="));
for (L in sp_params)
sp_params.hasOwnProperty(L) && (z.hasOwnProperty(L) || (z[L] = sp_params[L]));
e = H + x(z)
}
g = g.replace(/{%vc_url%}/g, encodeURIComponent(e));
h = !0;
"{%ad_vc_url%}" === g && (h = !1);
if (void 0 === P || "" === P || void 0 === p || "" === p || 1 === p)
return g = h ? g.replace(/{%ad_vc_url%}/g, encodeURIComponent(e)) : e;
P = P.replace(/{%vc_url%}/g, encodeURIComponent(e));
if (3 === p)
return p = -1 === e.indexOf("?") ? e + "?" + P : e + "&" + P,
g = h ? g.replace(/{%ad_vc_url%}/g, encodeURIComponent(p)) : p;
nop_queries = [];
void 0 !== E && "" !== E && (nop_queries = E.split("&"));
vupgv_params = [];
vupgv_queries = P.split("&");
for (L in vupgv_queries)
vupgv_queries.hasOwnProperty(L) && (e = vupgv_queries[L].split("="),
vupgv_params[e.shift()] = e.join("="));
for (L in vupgv_params)
vupgv_params.hasOwnProperty(L) && (z.hasOwnProperty(L) && (-1 !== nop_queries.indexOf(L) && (vupgv_params[L] = z[L]),
delete z[L]),
z[L] = vupgv_params[L]);
p = H + x(z);
return g = h ? g.replace(/{%ad_vc_url%}/g, encodeURIComponent(p)) : p
}
function x(g) {
var e = "", h;
for (h in g)
g.hasOwnProperty(h) && (e += (e ? "&" : "?") + h + "=" + g[h]);
return e
}
var n = "https:" == document.location.protocol ? "https://" : "http://"
, q = a.r
, y = a.t
, B = a.ub
, G = a.l
, Q = a.rd
, A = []
, D = []
, V = a.p
, O = a.s
, w = a.ptn
, S = a.vcpub
, Y = a.vcid
, Z = {}
, T = void 0
, aa = function() {
var g = location.search
, e = null;
if (g) {
g = g.split("?")[1].split("&");
for (var h in g) {
var p = g[h].split("=");
if ("vcprkey" == p.shift()) {
e = p[0];
break
}
}
}
return e
}();
try {
T = (new Date(2147483647E3)).toUTCString()
} catch (g) {}
if (T && !vc_parallel_bcookie && q) {
var r = document.domain.split(".")
, m = r.length;
if (3 <= m) {
var f = "." + r[m - 3] + "." + r[m - 2] + "." + r[m - 1];
cookie_val = "_VC_PTB_=" + q + "; expires=" + T + "; path=/; domain=" + f;
document.cookie = cookie_val
}
2 <= m && (f = "." + r[m - 2] + "." + r[m - 1],
cookie_val = "_VC_PTB_=" + q + "; expires=" + T + "; path=/; domain=" + f,
document.cookie = cookie_val)
}
if (null != a.kap && (T = rebasashi(a.s, a.kap),
0 < T))
for (var k in a)
a.hasOwnProperty(k) && a[k].kaa && "2201292" == a[k].m && (f = a[k].kaa + "," + a[k].m + "," + a.kap + "," + a.s,
A[f] = void 0 === A[f] ? T : A[f] + T);
T = document.getElementsByTagName("a");
r = 0;
for (m = T.length; r < m; r++) {
f = T[r];
var C = f.href
, u = f.hostname
, v = f.pathname
, J = f.search;
if ("ck.jp.ap.valuecommerce.com" === u || "cks.jp.ap.valuecommerce.com" === u)
f.href = l(C, J, S, Y, parseInt(y, 16)),
k = d(J),
void 0 !== k.pid && (f = encodeURIComponent(k.pid + "," + (k.sid ? k.sid : "")),
Z[f] = Z[f] ? Z[f] + 1 : 1);
else if (!f.hasAttribute("data-nodal")) {
if (void 0 != Q && 0 <= (u + v).indexOf(Q.k)) {
var N = new RegExp("([?&])" + Q.p + "=[^&]+")
, X = J.match(N);
if (null != X) {
var W = decodeURIComponent(X[0].substr(Q.p.length + 2));
k = document.createElement("a");
k.href = W;
k = b(k.hostname, k.pathname, k.search, G);
if (void 0 != k) {
c(A, f, C, N, X, Q.p, n, q, y, B, V, O, w, a[k], W, r, aa);
continue
}
}
}
k = b(u, v, J, G);
void 0 != k ? t(A, f, n, q, y, B, V, O, w, a[k], C, r, aa) : (f.setAttribute("data-nodal", ""),
"" !== u && void 0 !== u && u !== location.hostname && (k = "/" != v ? u + "/" + v.split("/")[1] : u,
k = encodeURIComponent(k),
D[k] = void 0 === D[k] ? 1 : D[k] + 1))
}
}
I(n, "dalb.valuecommerce.com/b2", A, q, y, "dal");
I(n, "dalb.valuecommerce.com/b3", D, q, y, "dal");
I(n, "dalb.valuecommerce.com/b4", Z, q, y, "ck")
}
, vcdalObj = new VcDal;
if (document.addEventListener)
"loading" != document.readyState ? vcdalObj.finishLoad() : document.addEventListener("DOMContentLoaded", vcdalObj.finishLoad, !1);
else if (document.attachEvent) {
var CheckReadyState = function() {
"complete" == document.readyState && (document.detachEvent("onreadystatechange", CheckReadyState),
vcdalObj.finishLoad())
};
document.attachEvent("onreadystatechange", CheckReadyState);
(function() {
try {
document.documentElement.doScroll("left")
} catch (a) {
return
}
document.detachEvent("onreadystatechange", CheckReadyState);
vcdalObj.finishLoad()
}
)()
} else
vcdalObj.finishLoad();
function dalDynamicProcess() {
enable_link_convert_flag = !1;
for (var a = document.getElementsByTagName("a"), d = 0, l = a.length; d < l; d++) {
var b = a[d]
, c = b.hostname;
"ck.jp.ap.valuecommerce.com" === c || "cks.jp.ap.valuecommerce.com" === c || b.hasAttribute("data-nodal") || b.hasAttribute("vcdaldp-fin") || (b.setAttribute("vcdaldp-fin", ""),
enable_link_convert_flag = !0)
}
enable_link_convert_flag && vcdalObj.finishLoad()
}
setInterval(dalDynamicProcess, 1E3);
function myLinkBoxDal() {
function a(d, l) {
var b = [];
b.p = "";
b.p = d.join(",");
b._v = "1.0.0";
0 < document.referrer.length && (b._r = encodeURIComponent(document.referrer));
0 < document.URL.length && (b._s = encodeURIComponent(document.URL));
"undefined" !== typeof l && (b.vf = encodeURIComponent(l));
d = "";
for (var c in b)
b.hasOwnProperty(c) && (d += (d ? "&" : "?") + c + "=" + b[c]);
b = ("https:" == document.location.protocol ? "https://" : "http://") + "mlbc.valuecommerce.com/mlb" + d;
c = document.createElement("script");
c.src = b;
c.type = "text/javascript";
c.charset = "UTF-8";
document.getElementsByTagName("head")[0].appendChild(c)
}
this.finishLoad = function() {
mylinkbox_pid = getPid();
if (0 != mylinkbox_pid.length) {
var d = document.createElement("img")
, l = document.createElement("canvas");
d.addEventListener && "undefined" != typeof l ? (d.addEventListener("load", function() {
try {
l.width = d.naturalWidth;
l.height = d.naturalHeight;
l.getContext("2d").drawImage(d, 0, 0);
var b = l.toDataURL("image/png");
a(mylinkbox_pid, b.replace(/^data:image\/(png|jpg);base64,/, ""))
} catch (c) {
a(mylinkbox_pid)
}
}, !1),
d.crossOrigin = "anonymous",
d.style.display = "none",
d.src = "https://a.imgvc.com/i/bf.png?v=1",
document.getElementsByTagName("body")[0].appendChild(d)) : a(mylinkbox_pid)
}
}
}
function _indexOf(a, d) {
for (var l = 0; l < a.length; l++)
if (a[l] === d)
return l;
return -1
}
function getPid() {
mylinkbox = document.querySelectorAll("[vc_mylinkbox_id], [data-vc_mylinkbox_id]");
for (var a = [], d = 0; d < mylinkbox.length; d++) {
var l = void 0 !== mylinkbox[d].dataset.vc_mylinkbox_id ? mylinkbox[d].dataset.vc_mylinkbox_id : mylinkbox[d].getAttribute("vc_mylinkbox_id");
-1 == (Array.prototype.indexOf ? a.indexOf(l) : _indexOf(a, l)) && a.push(l)
}
return a
}
var vc_mlb_callback = function(a) {
a = a.linkbox;
for (var d = 0; d < mylinkbox.length; d++)
for (var l = void 0 !== mylinkbox[d].dataset.vc_mylinkbox_id ? mylinkbox[d].dataset.vc_mylinkbox_id : mylinkbox[d].getAttribute("vc_mylinkbox_id"), b = 0; b < a.length; b++)
if (a[b].p == l) {
mylinkbox[d].innerHTML = a[b].html;
break
}
};
if ("undefined" == typeof mlbObj) {
var mlbObj = new myLinkBoxDal;
document.addEventListener ? "loading" != document.readyState ? mlbObj.finishLoad() : document.addEventListener("DOMContentLoaded", mlbObj.finishLoad, !1) : document.attachEvent ? (CheckReadyState = function() {
"complete" == document.readyState && (document.detachEvent("onreadystatechange", CheckReadyState),
mlbObj.finishLoad())
}
,
document.attachEvent("onreadystatechange", CheckReadyState),
function() {
try {
document.documentElement.doScroll("left")
} catch (a) {
return
}
document.detachEvent("onreadystatechange", CheckReadyState);
mlbObj.finishLoad()
}()) : mlbObj.finishLoad()
}
void 0 == vc_parallel_bcookie && (vc_parallel_bcookie = void 0);
if (void 0 == vc_pti_ckls)
var vc_pti_ckls = [];
if (void 0 == vc_pti_ad_count)
var vc_pti_ad_count = 0;
function VcParallel() {
function a() {
var l = window.navigator.userAgent.toLowerCase();
return -1 !== l.indexOf("iphone") || -1 !== l.indexOf("ipad") ? d = !0 : -1 === l.indexOf("edge") && -1 === l.indexOf("chrome") && -1 !== l.indexOf("safari") && -1 !== l.indexOf("macintosh") ? !0 : !1
}
var d = !1;
this.finishLoad = function() {
if (a()) {
var l = "https:" == document.location.protocol ? "https://" : "http://"
, b = []
, c = ""
, t = []
, I = []
, R = []
, F = []
, K = []
, M = []
, x = []
, n = []
, q = []
, y = []
, B = [];
B._sidx = String(vc_pti_ad_count);
a: {
var G = document.cookie.split("; ");
G = $jscomp.makeIterator(G);
for (var Q = G.next(); !Q.done; Q = G.next())
if (Q = Q.value.split("="),
"_VC_PTB_" == Q[0]) {
vc_parallel_bcookie = Q[1];
break a
}
vc_parallel_bcookie = null
}
vc_parallel_bcookie && (B._b = vc_parallel_bcookie);
var A = 4 + encodeURIComponent(document.URL).substr(0, 512).length + 7 + String(vc_pti_ad_count).length;
G = document.getElementsByTagName("a");
Q = 0;
for (var D = G.length; Q < D; Q++) {
var V = G[Q]
, O = V.href
, w = V.hostname;
if (("ck.jp.ap.valuecommerce.com" === w || "cks.jp.ap.valuecommerce.com" === w) && !V.className.match(/.*vc_pti_.*/)) {
var S = V.search;
w = getParamsFromQueryString(S);
void 0 !== w.sid && (w.vs = w.sid);
void 0 !== w.pid && (w.vp = w.pid);
if (void 0 !== w.vs && void 0 !== w.vp && !(4096 < S.length)) {
4096 < A + S.length && ("" != c && b.push(c),
B._sidx = String(vc_pti_ad_count),
encodeURIComponent(document.URL).substr(0, 512),
t = [],
I = [],
R = [],
F = [],
K = [],
M = [],
x = [],
n = [],
q = [],
y = []);
I.push(w.vp);
t.push(w.vs);
R.push(w.va);
F.push(w.rid);
void 0 != w.vcptn ? K.push(decodeURIComponent(w.vcptn)) : K.push("");
c = "";
for (var Y in w)
w.hasOwnProperty(Y) && Y.match(/^vo_(.+)$/) && (c += ("" === c ? "" : ":") + Y.match(/^vo_(.+)$/)[1] + "=" + w[Y]);
M.push(c);
void 0 !== w.vcsm_url && d && (w.vc_url = w.vcsm_url);
void 0 !== w.vc_url ? (c = x,
A = c.push,
S = decodeURIComponent(w.vc_url),
S = -1 < S.indexOf("://") ? S.split("/")[2] : S.split("/")[0],
S = S.split(":")[0],
A.call(c, S)) : x.push("");
c = n;
A = c.push;
S = void 0;
var Z = w
, T = "vs sid vp pid va aid rid vcptn vcid vcpub guid vc_url vcsm_url isec iexp rdchky rdurl rdcid rdaf rdky _su _dl".split(" ")
, aa = "";
for (S in Z)
Z.hasOwnProperty(S) && (-1 !== T.indexOf(S) || S.match(/^vo_.*$/) || (aa += (aa ? "&" : "") + S + "=" + Z[S]));
A.call(c, aa);
q.push(w.isec);
y.push(w.iexp);
B.vs = t.join(",");
B.vp = I.join(",");
B.va = R.join(",");
B.rid = F.join(",");
B.vcptn = K.join(",");
B.vo = M.join(",");
B.vud = x.join(",");
B.pe = n.join(",");
B.isec = q.join(",");
B.iexp = y.join(",");
c = "?_r=" + encodeURIComponent(document.URL).substr(0, 512);
for (Y in B)
B.hasOwnProperty(Y) && ("" == B[Y] || B[Y].match(/^[,]+$/) || (c += "&" + Y + "=" + encodeURIComponent(B[Y])));
A = c.length;
w.ck = O;
vc_pti_ckls[vc_pti_ad_count] = w;
V.classList.add("vc_pti_" + vc_pti_ad_count);
vc_pti_ad_count++
}
}
}
"" != c && b.push(c);
t = 0;
for (I = b.length; t < I; t++)
R = l + "pti.valuecommerce.com/fetchpti" + b[t],
F = document.createElement("script"),
F.src = R,
F.type = "text/javascript",
F.charset = "UTF-8",
document.getElementsByTagName("head")[0].appendChild(F)
}
}
}
function getParamsFromQueryString(a) {
var d = [];
if ("" !== a) {
a = a.split("?")[1].split("&");
for (var l in a)
if (a.hasOwnProperty(l)) {
var b = a[l].split("=");
d[b.shift()] = b.join("=")
}
}
return d
}
var vc_pti_callback = function(a) {
function d(x, n, q) {
var y = 0, B = void 0, G = void 0, Q = void 0, A;
for (A in q.fetchpti) {
q.fetchpti[A].vcb && (Q = q.fetchpti[A].vcb);
for (var D in q.fetchpti[A])
if (D == n && (y = q.fetchpti[A][D].cbf,
B = q.fetchpti[A][D].b_url,
G = q.fetchpti[A][D].lp_url,
G.match(/{%vc_url%}/) || G.match(/{%ad_vc_url%}/))) {
var V = vc_pti_ckls[n].vc_url ? decodeURIComponent(vc_pti_ckls[n].vc_url) : void 0;
G = l(G, V, q.fetchpti[A][D].sp ? q.fetchpti[A][D].sp : void 0, q.fetchpti[A][D].pgs ? q.fetchpti[A][D].pgs : void 0, q.fetchpti[A][D].vupgv ? q.fetchpti[A][D].vupgv : void 0, q.fetchpti[A][D].nop ? q.fetchpti[A][D].nop : void 0)
}
}
if (void 0 !== B && void 0 !== G)
return 0 == y && (q = document.createElement("script"),
q.innerHTML = "document.getElementsByClassName('vc_pti_" + n + "')[0].onclick = function() {event.preventDefault();navigator.sendBeacon('" + B + "');if (event.button === 0 && ((event.ctrlKey && !event.metaKey) || (!event.ctrlKey && event.metaKey))) {window.open('" + G + "', '_blank');return;}if (event.button === 0 && event.shiftKey) {window.open('" + G + "');return;}window.location.href = '" + G + "';}",
document.head.appendChild(q)),
1 == y && (x.href = G),
x.classList.add("vc_pti_fin"),
x.setAttribute("data-nodal", ""),
Q
}
function l(x, n, q, y, B, G) {
if (void 0 === n || "" === n)
return x = x.replace(/{%vc_url%}/g, ""),
x = x.replace(/{%ad_vc_url%}/g, "");
var Q = n.split("?")[0]
, A = "";
void 0 !== n.split("?")[1] && (A = "?" + n.split("?")[1]);
A = getParamsFromQueryString(A);
if (void 0 !== q && "" !== q) {
sp_params = [];
sp_queries = q.split("&");
for (var D in sp_queries)
sp_queries.hasOwnProperty(D) && (n = sp_queries[D].split("="),
sp_params[n.shift()] = n.join("="));
for (D in sp_params)
sp_params.hasOwnProperty(D) && (A.hasOwnProperty(D) || (A[D] = sp_params[D]));
n = Q + b(A)
}
x = x.replace(/{%vc_url%}/g, encodeURIComponent(n));
q = !0;
"{%ad_vc_url%}" === x && (q = !1);
if (void 0 === B || "" === B || void 0 === y || "" === y || 1 === y)
return x = q ? x.replace(/{%ad_vc_url%}/g, encodeURIComponent(n)) : n;
B = B.replace(/{%vc_url%}/g, encodeURIComponent(n));
if (3 === y)
return y = -1 === n.indexOf("?") ? n + "?" + B : n + "&" + B,
x = q ? x.replace(/{%ad_vc_url%}/g, encodeURIComponent(y)) : y;
nop_queries = [];
void 0 !== G && "" !== G && (nop_queries = G.split("&"));
vupgv_params = [];
vupgv_queries = B.split("&");
for (D in vupgv_queries)
vupgv_queries.hasOwnProperty(D) && (n = vupgv_queries[D].split("="),
vupgv_params[n.shift()] = n.join("="));
for (D in vupgv_params)
vupgv_params.hasOwnProperty(D) && (A.hasOwnProperty(D) && (-1 !== nop_queries.indexOf(D) && (vupgv_params[D] = A[D]),
delete A[D]),
A[D] = vupgv_params[D]);
y = Q + b(A);
return x = q ? x.replace(/{%ad_vc_url%}/g, encodeURIComponent(y)) : y
}
function b(x) {
var n = "", q;
for (q in x)
x.hasOwnProperty(q) && (n += (n ? "&" : "?") + q + "=" + x[q]);
return n
}
for (var c = document.getElementsByTagName("a"), t = void 0, I = 0, R = c.length; I < R; I++) {
var F = c[I]
, K = F.href
, M = F.hostname;
if (("ck.jp.ap.valuecommerce.com" === M || "cks.jp.ap.valuecommerce.com" === M) && !F.className.match(/vc_pti_fin/)) {
M = null;
F.className.match(/vc_pti_(\d+$)/) && (M = F.className.match(/vc_pti_(\d+$)/)[1]);
null == M || void 0 == vc_pti_ckls[M].ck && K != vc_pti_ckls[M].ck || (t = d(F, M, a));
try {
exp = (new Date(2147483647E3)).toUTCString()
} catch (x) {
window.location.replace(vcck_url)
}
exp && !vc_parallel_bcookie && t && (F = document.domain.split("."),
K = F.length,
3 <= K && (M = "." + F[K - 3] + "." + F[K - 2] + "." + F[K - 1],
cookie_val = "_VC_PTB_=" + t + "; expires=" + exp + "; path=/; domain=" + M,
document.cookie = cookie_val),
2 <= K && (M = "." + F[K - 2] + "." + F[K - 1],
cookie_val = "_VC_PTB_=" + t + "; expires=" + exp + "; path=/; domain=" + M,
document.cookie = cookie_val))
}
}
}
, vcparallelObj = new VcParallel;
document.addEventListener ? "loading" != document.readyState ? vcparallelObj.finishLoad() : document.addEventListener("DOMContentLoaded", vcparallelObj.finishLoad, !1) : document.attachEvent ? (CheckReadyState = function() {
"complete" == document.readyState && (document.detachEvent("onreadystatechange", CheckReadyState),
vcparallelObj.finishLoad())
}
,
document.attachEvent("onreadystatechange", CheckReadyState),
function() {
try {
document.documentElement.doScroll("left")
} catch (a) {
return
}
document.detachEvent("onreadystatechange", CheckReadyState);
vcparallelObj.finishLoad()
}()) : vcparallelObj.finishLoad();
setInterval(vcparallelObj.finishLoad, 1E3);
var vcpr_param = void 0;
function VcPr() {
this.finishLoad = function() {
if (void 0 === vcpr_param) {
var a = location.search
, d = null;
if (a) {
a = a.split("?")[1].split("&");
for (var l in a) {
var b = a[l].split("=");
if ("vcprkey" == b.shift()) {
d = b[0];
break
}
}
}
vcpr_param = d
}
if (null !== vcpr_param && void 0 !== vcpr_param)
for (d = vcpr_param,
l = document.getElementsByTagName("a"),
a = 0,
b = l.length; a < b; a++) {
var c = l[a]
, t = c.href
, I = c.hostname;
if ("ck.jp.ap.valuecommerce.com" === I || "cks.jp.ap.valuecommerce.com" === I) {
if (void 0 !== t.split("?")[1]) {
if (t.split("?")[1].match(/vo__vcprkey/))
continue;
t += "&vo__vcprkey=" + d
} else
t += "?vo__vcprkey=" + d;
c.href = t
}
}
}
}
var vcprObj = new VcPr;
document.addEventListener ? "loading" != document.readyState ? vcprObj.finishLoad() : document.addEventListener("DOMContentLoaded", vcprObj.finishLoad, !1) : document.attachEvent ? (CheckReadyState = function() {
"complete" == document.readyState && (document.detachEvent("onreadystatechange", CheckReadyState),
vcprObj.finishLoad())
}
,
document.attachEvent("onreadystatechange", CheckReadyState),
function() {
try {
document.documentElement.doScroll("left")
} catch (a) {
return
}
document.detachEvent("onreadystatechange", CheckReadyState);
vcprObj.finishLoad()
}()) : vcprObj.finishLoad();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment