1!(function (t) { 2 'use strict'; 3 if (void 0 === t) throw new Error('Geetest requires browser environment'); 4 var e = t.document, 5 r = t.Math, 6 n = e.getElementsByTagName('head')[0]; 7 function o(t) { 8 this._obj = t; 9 } 10 o.prototype = { 11 _each: function (t) { 12 var e = this._obj; 13 for (var r in e) e.hasOwnProperty(r) && t(r, e[r]); 14 return this; 15 }, 16 _extend: function (t) { 17 var e = this; 18 new o(t)._each(function (t, r) { 19 e._obj[t] = r; 20 }); 21 }, 22 }; 23 function a(t) { 24 var e = this; 25 new o(t)._each(function (t, r) { 26 e[t] = r; 27 }); 28 } 29 a.prototype = { 30 apiServers: ['gcaptcha4.geetest.com', 'gcaptcha4.geevisit.com', 'gcaptcha4.gsensebot.com'], 31 staticServers: ['static.geetest.com', 'static.geevisit.com'], 32 protocol: 'http://', 33 typePath: '/load', 34 fallback_config: { 35 bypass: { staticServers: ['static.geetest.com', 'static.geevisit.com'], type: 'bypass', bypass: '/v4/bypass.js' }, 36 }, 37 _get_fallback_config: function () { 38 var t = this; 39 return c(t.type) ? t.fallback_config[t.type] : t.fallback_config.bypass; 40 }, 41 _extend: function (t) { 42 var e = this; 43 new o(t)._each(function (t, r) { 44 e[t] = r; 45 }); 46 }, 47 }; 48 var c = function (t) { 49 return 'string' == typeof t; 50 }, 51 i = function (t) { 52 return 'function' == typeof t; 53 }, 54 s = /Mobi/i.test(navigator.userAgent), 55 u = {}, 56 l = {}, 57 f = Object.prototype.toString; 58 function p(t, e) { 59 if ( 60 (r = t) !== Object(r) || 61 (function (t) { 62 return '[object Date]' == f.call(t); 63 })(t) || 64 (function (t) { 65 return '[object RegExp]' == f.call(t); 66 })(t) || 67 (function (t) { 68 return '[object Boolean]' == f.call(t); 69 })(t) || 70 (function (t) { 71 return 'function' == typeof t; 72 })(t) 73 ) 74 return e 75 ? (function (t) { 76 return t.replace(/(\S)(_([a-zA-Z]))/g, function (t, e, r, n) { 77 return e + n.toUpperCase() || ''; 78 }); 79 })(t) 80 : t; 81 var r; 82 if ( 83 (function (t) { 84 return '[object Array]' == f.call(t); 85 })(t) 86 ) 87 for (var n = [], o = 0; o < t.length; o++) n.push(p(t[o])); 88 else { 89 n = {}; 90 for (var a in t) t.hasOwnProperty(a) && (n[p(a, !0)] = p(t[a])); 91 } 92 return n; 93 } 94 var g = function (t, e, r, n) { 95 e = (function (t) { 96 return t.replace(/^https?:\/\/|\/$/g, ''); 97 })(e); 98 var a = 99 (function (t) { 100 return (0 !== (t = t && t.replace(/\/+/g, '/')).indexOf('/') && (t = '/' + t), t); 101 })(r) + 102 (function (t) { 103 if (!t) return ''; 104 var e = '?'; 105 return ( 106 new o(t)._each(function (t, r) { 107 (c(r) || 108 (function (t) { 109 return 'number' == typeof t; 110 })(r) || 111 (function (t) { 112 return 'boolean' == typeof t; 113 })(r)) && 114 (e = e + encodeURIComponent(t) + '=' + encodeURIComponent(r) + '&'); 115 }), 116 '?' === e && (e = ''), 117 e.replace(/&$/, '') 118 ); 119 })(n); 120 return (e && (a = t + e + a), a); 121 }, 122 d = function (o, a, c, i, s, u, l) { 123 var f = function (p) { 124 if (l) { 125 var d = 'geetest_' + (parseInt(1e4 * r.random()) + new Date().valueOf()); 126 ((t[d] = (function (t, e) { 127 if ('function' == typeof t) { 128 var r = Array.prototype.slice.call(arguments, 2); 129 return Function.prototype.bind 130 ? t.bind(e, r) 131 : function () { 132 var n = Array.prototype.slice.call(arguments); 133 return t.apply(e, r.concat(n)); 134 }; 135 } 136 })(l, null, d)), 137 (s.callback = d)); 138 } 139 !(function (t, r, o) { 140 var a = e.createElement('script'); 141 ((a.charset = 'UTF-8'), 142 (a.async = !0), 143 /static\.geetest\.com/g.test(t) && (a.crossOrigin = 'anonymous'), 144 (a.onerror = function () { 145 (r(!0), (c = !0)); 146 })); 147 var c = !1; 148 ((a.onload = a.onreadystatechange = 149 function () { 150 c || 151 (a.readyState && 'loaded' !== a.readyState && 'complete' !== a.readyState) || 152 ((c = !0), 153 setTimeout(function () { 154 r(!1); 155 }, 0)); 156 }), 157 (a.src = t), 158 n.appendChild(a), 159 setTimeout(function () { 160 c || ((a.onerror = a.onload = null), a.remove && a.remove(), r(!0)); 161 }, o || 1e4)); 162 })( 163 g(a, c[p], i, s), 164 function (e) { 165 if (e) { 166 if (d) 167 try { 168 t[d] = function () { 169 t[d] = null; 170 }; 171 } catch (t) {} 172 p >= c.length - 1 ? u(!0) : f(p + 1); 173 } else u(!1); 174 }, 175 o.timeout, 176 ); 177 }; 178 f(0); 179 }, 180 v = function (t, e, r) { 181 if ('function' != typeof e.onError) 182 throw new Error({ networkError: 'ç½âç»Åéââ¢Ã¨Â¯Â¯', gtTypeError: 'gtÃ¥Ââ段ä¸ÂæË¯åÂâ符串类åžâ¹' }[t]); 183 e.onError({ desc: r.desc, msg: r.msg, code: r.code }); 184 }; 185 (t.Geetest || e.getElementById('gt_lib')) && (l.slide = 'loaded'); 186 t.initGeetest4 = function (n, c) { 187 var f, 188 g = new a(n); 189 (n.https ? (g.protocol = 'https://') : n.protocol || (g.protocol = t.location.protocol + '//'), 190 'object' == typeof (f = n.getType) && null !== f && g._extend(n.getType), 191 (function (e, n, o, a) { 192 d( 193 o, 194 o.protocol, 195 e, 196 n, 197 { 198 callback: '', 199 captcha_id: o.captchaId, 200 challenge: 201 o.challenge || 202 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (t) { 203 var e = (16 * r.random()) | 0; 204 return ('x' === t ? e : (3 & e) | 8).toString(16); 205 }), 206 client_type: s ? 'h5' : 'web', 207 risk_type: o.riskType, 208 user_info: o.userInfo, 209 call_type: o.callType, 210 lang: o.language 211 ? o.language 212 : 'Netscape' === navigator.appName 213 ? navigator.language.toLowerCase() 214 : navigator.userLanguage.toLowerCase(), 215 }, 216 function (t) { 217 t && 'function' == typeof o.offlineCb ? o.offlineCb() : t && a(o._get_fallback_config()); 218 }, 219 function (e, r) { 220 ('success' == r.status ? a(r.data) : (r.status, a(r)), (t[e] = void 0)); 221 try { 222 delete t[e]; 223 } catch (t) {} 224 }, 225 ); 226 })(g.apiServers, g.typePath, g, function (r) { 227 if ('error' === (r = p(r)).status) return v('networkError', g, r); 228 var n = r.type; 229 g.debug && new o(r)._extend(g.debug); 230 var a = function () { 231 (g._extend(r), c(new t.Geetest4(g))); 232 }; 233 u[n] = u[n] || []; 234 var s = l[n] || 'init'; 235 if ('init' === s) 236 ((l[n] = 'loading'), 237 u[n].push(a), 238 r.gctPath && 239 d( 240 g, 241 g.protocol, 242 Object.hasOwnProperty.call(g, 'staticServers') ? g.staticServers : r.staticServers || g.staticServers, 243 r.gctPath, 244 null, 245 function (t) { 246 t && 247 v('networkError', g, { 248 code: '60205', 249 msg: 'Network failure', 250 desc: { detail: 'gct resource load timeout' }, 251 }); 252 }, 253 ), 254 d( 255 g, 256 g.protocol, 257 Object.hasOwnProperty.call(g, 'staticServers') ? g.staticServers : r.staticServers || g.staticServers, 258 r.bypass || r.staticPath + r.js, 259 null, 260 function (t) { 261 if (t) 262 ((l[n] = 'fail'), 263 v('networkError', g, { 264 code: '60204', 265 msg: 'Network failure', 266 desc: { detail: 'js resource load timeout' }, 267 })); 268 else { 269 l[n] = 'loaded'; 270 for (var e = u[n], r = 0, o = e.length; r < o; r += 1) { 271 var a = e[r]; 272 i(a) && a(); 273 }
274 ((u[n] = []), (l[n] = 'init')); 275 } 276 }, 277 )); 278 else { 279 if ('loaded' === s) 280 return ( 281 r.gctPath && 282 !(function (t) { 283 var r = !1, 284 n = t && { js: 'script', css: 'link' }[t.split('.').pop()]; 285 if (void 0 !== n) { 286 var o = e.getElementsByTagName(n); 287 for (var a in o) 288 ((o[a].href && o[a].href.toString().indexOf(t) > 0) || 289 (o[a].src && o[a].src.toString().indexOf(t) > 0)) && 290 (r = !0); 291 } 292 return r; 293 })(r.gctPath) && 294 d( 295 g, 296 g.protocol, 297 Object.hasOwnProperty.call(g, 'staticServers') ? g.staticServers : r.staticServers || g.staticServers, 298 r.gctPath, 299 null, 300 function (t) { 301 t && 302 v('networkError', g, { 303 code: '60205', 304 msg: 'Network failure', 305 desc: { detail: 'gct resource load timeout' }, 306 }); 307 }, 308 ), 309 a() 310 ); 311 'fail' === s 312 ? v('networkError', g, { 313 code: '60204', 314 msg: 'Network failure', 315 desc: { detail: 'js resource load timeout' }, 316 }) 317 : 'loading' === s && u[n].push(a); 318 } 319 })); 320 }; 321})(window);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.