Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 81.88 KB | None | 0 0
  1. 'use strict';
  2. /** @type {function(!Object): ?} */
  3. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(name) {
  4. return typeof name;
  5. } : function(obj) {
  6. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  7. };
  8.  
  9. /** @type {!Array} */
  10. var _cf = _cf || [];
  11. var bmak = {
  12. ver: 1.43,
  13. ke_cnt_lmt: 150,
  14. mme_cnt_lmt: 100,
  15. mduce_cnt_lmt: 75,
  16. pme_cnt_lmt: 25,
  17. pduce_cnt_lmt: 25,
  18. tme_cnt_lmt: 25,
  19. tduce_cnt_lmt: 25,
  20. doe_cnt_lmt: 10,
  21. dme_cnt_lmt: 10,
  22. vc_cnt_lmt: 100,
  23. doa_throttle: 0,
  24. dma_throttle: 0,
  25. session_id: 'default_session',
  26. js_post: false,
  27. loc: '',
  28. cf_url: ('https:' === document.location.protocol ? 'https://' : 'http://') + 'apid.cformanalytics.com/api/v1/attempt',
  29. auth: '',
  30. api_public_key: null,
  31. aj_lmt_doact: 1,
  32. aj_lmt_dmact: 1,
  33. aj_lmt_tact: 1,
  34. ce_js_post: 0,
  35. init_time: 0,
  36. informinfo: '',
  37. prevfid: -1,
  38. fidcnt: 0,
  39. sensor_data: 0,
  40. ins: null,
  41. cns: null,
  42. enGetLoc: 0,
  43. enReadDocUrl: 0,
  44. disFpCalOnTimeout: 0,
  45. xagg: -1,
  46. pen: -1,
  47. brow: '',
  48. browver: '',
  49. psub: '-',
  50. lang: '-',
  51. prod: '-',
  52. plen: -1,
  53. doadma_en: 0,
  54. sdfn: [],
  55. d2: 0,
  56. d3: 0,
  57. thr: 0,
  58. cs: '0a46G5m17Vrp4o4c',
  59. hn: 'unk',
  60. z1: 0,
  61. o9: 0,
  62. vc: '',
  63. y1: 2016,
  64. ta: 0,
  65. tst: -1,
  66. t_tst: 0,
  67. ckie: '_abck',
  68. n_ck: '0',
  69. ckurl: 0,
  70. bm: false,
  71. mr: '-1',
  72. altFonts: false,
  73. rst: false,
  74. runFonts: true,
  75. fsp: false,
  76. mn_mc_lmt: 10,
  77. mn_state: 0,
  78. mn_mc_indx: 0,
  79. mn_sen: 0,
  80. mn_tout: 100,
  81. mn_stout: 1e3,
  82. mn_ct: 1,
  83. mn_cc: '',
  84. mn_cd: 1e4,
  85. mn_lc: [],
  86. mn_ld: [],
  87. mn_lcl: 0,
  88. mn_al: [],
  89. mn_il: [],
  90. mn_tcl: [],
  91. mn_r: [],
  92. mn_abck: '',
  93. mn_psn: '',
  94. mn_ts: '',
  95. mn_lg: [],
  96. ir: function handleMessageFromWorker() {
  97. bmak.start_ts = Date.now ? Date.now() : +new Date;
  98. bmak.kact = '';
  99. /** @type {number} */
  100. bmak.ke_cnt = 0;
  101. /** @type {number} */
  102. bmak.ke_vel = 0;
  103. bmak.mact = '';
  104. /** @type {number} */
  105. bmak.mme_cnt = 0;
  106. /** @type {number} */
  107. bmak.mduce_cnt = 0;
  108. /** @type {number} */
  109. bmak.me_vel = 0;
  110. bmak.pact = '';
  111. /** @type {number} */
  112. bmak.pme_cnt = 0;
  113. /** @type {number} */
  114. bmak.pduce_cnt = 0;
  115. /** @type {number} */
  116. bmak.pe_vel = 0;
  117. bmak.tact = '';
  118. /** @type {number} */
  119. bmak.tme_cnt = 0;
  120. /** @type {number} */
  121. bmak.tduce_cnt = 0;
  122. /** @type {number} */
  123. bmak.te_vel = 0;
  124. bmak.doact = '';
  125. /** @type {number} */
  126. bmak.doe_cnt = 0;
  127. /** @type {number} */
  128. bmak.doe_vel = 0;
  129. bmak.dmact = '';
  130. /** @type {number} */
  131. bmak.dme_cnt = 0;
  132. /** @type {number} */
  133. bmak.dme_vel = 0;
  134. bmak.vcact = '';
  135. /** @type {number} */
  136. bmak.vc_cnt = 0;
  137. /** @type {number} */
  138. bmak.aj_indx = 0;
  139. /** @type {number} */
  140. bmak.aj_ss = 0;
  141. /** @type {number} */
  142. bmak.aj_type = -1;
  143. /** @type {number} */
  144. bmak.aj_indx_doact = 0;
  145. /** @type {number} */
  146. bmak.aj_indx_dmact = 0;
  147. /** @type {number} */
  148. bmak.aj_indx_tact = 0;
  149. /** @type {number} */
  150. bmak.me_cnt = 0;
  151. /** @type {number} */
  152. bmak.pe_cnt = 0;
  153. /** @type {number} */
  154. bmak.te_cnt = 0;
  155. },
  156. get_cf_date: function handleMessageFromWorker() {
  157. return Date.now ? Date.now() : +new Date;
  158. },
  159. sd_debug: function innerExpandValues(context) {
  160. if (!bmak.js_post) {
  161. var accContext = context;
  162. if ('string' == (typeof _sd_trace === "undefined" ? "undefined" : _typeof(_sd_trace))) {
  163. _sd_trace = _sd_trace + accContext;
  164. } else {
  165. _sd_trace = accContext;
  166. }
  167. }
  168. },
  169. pi: function pi(name) {
  170. return parseInt(name);
  171. },
  172. uar: function formatTagString() {
  173. return window.navigator.userAgent.replace(/\\|"/g, '');
  174. },
  175. gd: function gd() {
  176. var artistTrack = bmak.uar();
  177. var t = '' + bmak.ab(artistTrack);
  178. /** @type {number} */
  179. var e = bmak.start_ts / 2;
  180. var n = window.screen ? window.screen.availWidth : -1;
  181. var o = window.screen ? window.screen.availHeight : -1;
  182. var m = window.screen ? window.screen.width : -1;
  183. var r = window.screen ? window.screen.height : -1;
  184. var i = window.innerWidth || document.body.clientWidth;
  185. var c = window.innerHeight || document.body.clientHeight;
  186. var b = window.outerWidth || document.body.outerWidth;
  187. bmak.z1 = bmak.pi(bmak.start_ts / (bmak.y1 * bmak.y1));
  188. var lastNewline = Math.random();
  189. var I = bmak.pi(1e3 * lastNewline / 2);
  190. var l = lastNewline + '';
  191. return l = l.slice(0, 11) + I, bmak.get_browser(), bmak.bc(), bmak.bmisc(), artistTrack + ',uaend,' + bmak.xagg + ',' + bmak.psub + ',' + bmak.lang + ',' + bmak.prod + ',' + bmak.plen + ',' + bmak.pen + ',' + bmak.wen + ',' + bmak.den + ',' + bmak.z1 + ',' + bmak.d3 + ',' + n + ',' + o + ',' + m + ',' + r + ',' + i + ',' + c + ',' + b + ',' +
  192. bmak.bd() + ',' + t + ',' + l + ',' + e + ',loc:' + bmak.loc;
  193. },
  194. get_browser: function get_browser() {
  195. if (navigator.productSub) {
  196. bmak.psub = navigator.productSub;
  197. }
  198. if (navigator.language) {
  199. bmak.lang = navigator.language;
  200. }
  201. if (navigator.product) {
  202. bmak.prod = navigator.product;
  203. }
  204. bmak.plen = void 0 !== navigator.plugins ? navigator.plugins.length : -1;
  205. },
  206. bc: function bc() {
  207. /** @type {number} */
  208. var a = window.addEventListener ? 1 : 0;
  209. /** @type {number} */
  210. var b = window.XMLHttpRequest ? 1 : 0;
  211. /** @type {number} */
  212. var c = window.XDomainRequest ? 1 : 0;
  213. /** @type {number} */
  214. var n = window.emit ? 1 : 0;
  215. /** @type {number} */
  216. var o = window.DeviceOrientationEvent ? 1 : 0;
  217. /** @type {number} */
  218. var m = window.DeviceMotionEvent ? 1 : 0;
  219. /** @type {number} */
  220. var r = window.TouchEvent ? 1 : 0;
  221. /** @type {number} */
  222. var i = window.spawn ? 1 : 0;
  223. /** @type {number} */
  224. var e = window.innerWidth ? 1 : 0;
  225. /** @type {number} */
  226. var t = window.outerWidth ? 1 : 0;
  227. /** @type {number} */
  228. var d = window.chrome ? 1 : 0;
  229. /** @type {number} */
  230. var k = Function.prototype.bind ? 1 : 0;
  231. /** @type {number} */
  232. var l = window.Buffer ? 1 : 0;
  233. /** @type {number} */
  234. var s = window.PointerEvent ? 1 : 0;
  235. /** @type {number} */
  236. bmak.xagg = a + (b << 1) + (c << 2) + (n << 3) + (o << 4) + (m << 5) + (r << 6) + (i << 7) + (e << 8) + (t << 9) + (d << 10) + (k << 11) + (l << 12) + (s << 13);
  237. },
  238. bmisc: function bmisc() {
  239. /** @type {number} */
  240. bmak.pen = window._phantom ? 1 : 0;
  241. /** @type {number} */
  242. bmak.wen = window.webdriver ? 1 : 0;
  243. /** @type {number} */
  244. bmak.den = window.domAutomation ? 1 : 0;
  245. },
  246. bd: function innerExpandValues() {
  247. /** @type {!Array} */
  248. var EnvJasmine = [];
  249. /** @type {number} */
  250. var DOMContentLoaded = window.callPhantom ? 1 : 0;
  251. EnvJasmine.push(',cpen:' + DOMContentLoaded);
  252. try {
  253. /** @type {number} */
  254. var code = (new Function('return/*@cc_on!@*/!1'))() ? 1 : 0;
  255. } catch (a) {
  256. /** @type {number} */
  257. code = 0;
  258. }
  259. EnvJasmine.push('i1:' + code);
  260. /** @type {number} */
  261. var _V5 = 'number' == _typeof(document.documentMode) ? 1 : 0;
  262. EnvJasmine.push('dm:' + _V5);
  263. /** @type {number} */
  264. var PL$23 = window.chrome && window.chrome.webstore ? 1 : 0;
  265. EnvJasmine.push('cwen:' + PL$23);
  266. /** @type {number} */
  267. var PL$20 = navigator.onLine ? 1 : 0;
  268. EnvJasmine.push('non:' + PL$20);
  269. /** @type {number} */
  270. var PL$15 = window.opera ? 1 : 0;
  271. EnvJasmine.push('opc:' + PL$15);
  272. /** @type {number} */
  273. var status = 'undefined' != (typeof InstallTrigger === "undefined" ? "undefined" : _typeof(InstallTrigger)) ? 1 : 0;
  274. EnvJasmine.push('fc:' + status);
  275. /** @type {number} */
  276. var passed = window.HTMLElement && Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0 ? 1 : 0;
  277. EnvJasmine.push('sc:' + passed);
  278. /** @type {number} */
  279. var failed = 'function' == _typeof(window.RTCPeerConnection) || 'function' == _typeof(window.mozRTCPeerConnection) || 'function' == _typeof(window.webkitRTCPeerConnection) ? 1 : 0;
  280. EnvJasmine.push('wrc:' + failed);
  281. var d = 'mozInnerScreenY' in window ? window.mozInnerScreenY : 0;
  282. EnvJasmine.push('isc:' + d);
  283. bmak.d2 = bmak.pi(bmak.z1 / 23);
  284. /** @type {number} */
  285. var k = 'function' == _typeof(navigator.vibrate) ? 1 : 0;
  286. EnvJasmine.push('vib:' + k);
  287. /** @type {number} */
  288. var l = 'function' == _typeof(navigator.getBattery) ? 1 : 0;
  289. EnvJasmine.push('bat:' + l);
  290. /** @type {number} */
  291. var s = Array.prototype.forEach ? 0 : 1;
  292. EnvJasmine.push('x11:' + s);
  293. /** @type {number} */
  294. var u = 'FileReader' in window ? 1 : 0;
  295. return EnvJasmine.push('x12:' + u), EnvJasmine.join(',');
  296. },
  297. fas: function buildFullCalendar() {
  298. try {
  299. return Boolean(navigator.credentials) + (Boolean(navigator.appMinorVersion) << 1) + (Boolean(navigator.bluetooth) << 2) + (Boolean(navigator.storage) << 3) + (Boolean(Math.imul) << 4) + (Boolean(navigator.getGamepads) << 5) + (Boolean(navigator.getStorageUpdates) << 6) + (Boolean(navigator.hardwareConcurrency) << 7) + (Boolean(navigator.mediaDevices) << 8) + (Boolean(navigator.mozAlarms) << 9) + (Boolean(navigator.mozConnection) << 10) + (Boolean(navigator.mozIsLocallyAvailable) << 11) + (Boolean(navigator.mozPhoneNumberService) << 12) + (Boolean(navigator.msManipulationViewsEnabled) <<
  300. 13) + (Boolean(navigator.permissions) << 14) + (Boolean(navigator.registerProtocolHandler) << 15) + (Boolean(navigator.requestMediaKeySystemAccess) << 16) + (Boolean(navigator.requestWakeLock) << 17) + (Boolean(navigator.sendBeacon) << 18) + (Boolean(navigator.serviceWorker) << 19) + (Boolean(navigator.storeWebWideTrackingException) << 20) + (Boolean(navigator.webkitGetGamepads) << 21) + (Boolean(navigator.webkitTemporaryStorage) << 22) + (Boolean(Number.parseInt) << 23) + (Boolean(Math.hypot) << 24);
  301. } catch (a) {
  302. return 0;
  303. }
  304. },
  305. getmr: function innerExpandValues() {
  306. try {
  307. if ('undefined' == (typeof performance === "undefined" ? "undefined" : _typeof(performance)) || void 0 === performance.now || 'undefined' == (typeof JSON === "undefined" ? "undefined" : _typeof(JSON))) {
  308. return void(bmak.mr = 'undef');
  309. }
  310. var a = '';
  311. /** @type {number} */
  312. var t = 1e3;
  313. /** @type {!Array} */
  314. var PL$13 = [Math.abs, Math.acos, Math.asin, Math.atanh, Math.cbrt, Math.exp, Math.random, Math.round, Math.sqrt, isFinite, isNaN, parseFloat, parseInt, JSON.parse];
  315. /** @type {number} */
  316. var PL$17 = 0;
  317. for (; PL$17 < PL$13.length; PL$17++) {
  318. /** @type {!Array} */
  319. var o = [];
  320. /** @type {number} */
  321. var yDiff = 0;
  322. var yMin = performance.now();
  323. /** @type {number} */
  324. var xDiff = 0;
  325. /** @type {number} */
  326. var up = 0;
  327. if (void 0 !== PL$13[PL$17]) {
  328. /** @type {number} */
  329. xDiff = 0;
  330. for (; xDiff < t && yDiff < .6; xDiff++) {
  331. var cornerRad = performance.now();
  332. /** @type {number} */
  333. var d = 0;
  334. for (; d < 4e3; d++) {
  335. PL$13[PL$17](3.14);
  336. }
  337. var yMax = performance.now();
  338. o.push(Math.round(1e3 * (yMax - cornerRad)));
  339. /** @type {number} */
  340. yDiff = yMax - yMin;
  341. }
  342. var l = o.sort();
  343. /** @type {number} */
  344. up = l[Math.floor(l.length / 2)] / 5;
  345. }
  346. a = a + up + ',';
  347. }
  348. bmak.mr = a;
  349. } catch (a) {
  350. bmak.mr = 'exception';
  351. }
  352. },
  353. sed: function sed() {
  354. var a;
  355. a = window.$cdc_asdjflasutopfhvcZLmcfl_ || document.$cdc_asdjflasutopfhvcZLmcfl_ ? '1' : '0';
  356. var t;
  357. t = null != window.document.documentElement.getAttribute('webdriver') ? '1' : '0';
  358. var e;
  359. e = void 0 !== navigator.webdriver && navigator.webdriver ? '1' : '0';
  360. var n;
  361. n = void 0 !== window.webdriver ? '1' : '0';
  362. var o;
  363. o = void 0 !== window.XPathResult || void 0 !== document.XPathResult ? '1' : '0';
  364. var m;
  365. m = null != window.document.documentElement.getAttribute('driver') ? '1' : '0';
  366. var r;
  367. return r = null != window.document.documentElement.getAttribute('selenium') ? '1' : '0', [a, t, e, n, o, m, r].join(',');
  368. },
  369. cma: function handleFooLinkMouseOut(event, el) {
  370. try {
  371. if (1 == el && bmak.mme_cnt < bmak.mme_cnt_lmt || 1 != el && bmak.mduce_cnt < bmak.mduce_cnt_lmt) {
  372. var e = event || window.event;
  373. /** @type {number} */
  374. var tfm = -1;
  375. /** @type {number} */
  376. var i = -1;
  377. if (e && e.pageX && e.pageY) {
  378. tfm = Math.floor(e.pageX);
  379. i = Math.floor(e.pageY);
  380. } else {
  381. if (e && e.clientX && e.clientY) {
  382. tfm = Math.floor(e.clientX);
  383. i = Math.floor(e.clientY);
  384. }
  385. }
  386. var ofs = e.toElement;
  387. if (null == ofs) {
  388. ofs = e.target;
  389. }
  390. var r = bmak.gf(ofs);
  391. /** @type {number} */
  392. var jQId = bmak.get_cf_date() - bmak.start_ts;
  393. var s = bmak.me_cnt + ',' + el + ',' + jQId + ',' + tfm + ',' + i;
  394. if (1 != el) {
  395. s = s + ',' + r;
  396. var n = void 0 !== e.which ? e.which : e.button;
  397. if (null != n && 1 != n) {
  398. s = s + ',' + n;
  399. }
  400. }
  401. s = s + ';';
  402. bmak.me_vel = bmak.me_vel + bmak.me_cnt + el + jQId + tfm + i;
  403. bmak.mact = bmak.mact + s;
  404. bmak.ta += jQId;
  405. }
  406. if (1 == el) {
  407. bmak.mme_cnt++;
  408. } else {
  409. bmak.mduce_cnt++;
  410. }
  411. bmak.me_cnt++;
  412. if (bmak.js_post && 3 == el) {
  413. /** @type {number} */
  414. bmak.aj_type = 1;
  415. bmak.bpd();
  416. bmak.pd(true);
  417. /** @type {number} */
  418. bmak.ce_js_post = 1;
  419. }
  420. } catch (a) {}
  421. },
  422. x2: function isVarName() {
  423. var pad = bmak.ff;
  424. var s = pad(98) + pad(109) + pad(97) + pad(107) + pad(46) + pad(103) + pad(101) + pad(116);
  425. return s = s + pad(95) + pad(99) + pad(102) + pad(95), s = 'return ' + s + pad(100) + pad(97) + pad(116) + pad(101) + pad(40) + pad(41), s = s + ';', (new Function(s))();
  426. },
  427. cpa: function prefetchGroupsInfo(courseId, canCreateDiscussions) {
  428. try {
  429. /** @type {boolean} */
  430. var e = false;
  431. if (1 == canCreateDiscussions && bmak.pme_cnt < bmak.pme_cnt_lmt || 1 != canCreateDiscussions && bmak.pduce_cnt < bmak.pduce_cnt_lmt) {
  432. var props = courseId || window.event;
  433. if (props && 'mouse' != props.pointerType) {
  434. /** @type {boolean} */
  435. e = true;
  436. /** @type {number} */
  437. var g = -1;
  438. /** @type {number} */
  439. var b = -1;
  440. if (props && props.pageX && props.pageY) {
  441. g = Math.floor(props.pageX);
  442. b = Math.floor(props.pageY);
  443. } else {
  444. if (props && props.clientX && props.clientY) {
  445. g = Math.floor(props.clientX);
  446. b = Math.floor(props.clientY);
  447. }
  448. }
  449. /** @type {number} */
  450. var r = bmak.get_cf_date() - bmak.start_ts;
  451. var i = bmak.pe_cnt + ',' + canCreateDiscussions + ',' + r + ',' + g + ',' + b + ';';
  452. bmak.pe_vel = bmak.pe_vel + bmak.pe_cnt + canCreateDiscussions + r + g + b;
  453. bmak.pact = bmak.pact + i;
  454. bmak.ta += r;
  455. if (1 == canCreateDiscussions) {
  456. bmak.pme_cnt++;
  457. } else {
  458. bmak.pduce_cnt++;
  459. }
  460. }
  461. }
  462. if (1 == canCreateDiscussions) {
  463. bmak.pme_cnt++;
  464. } else {
  465. bmak.pduce_cnt++;
  466. }
  467. bmak.pe_cnt++;
  468. if (bmak.js_post && 3 == canCreateDiscussions && e) {
  469. /** @type {number} */
  470. bmak.aj_type = 2;
  471. bmak.bpd();
  472. bmak.pd(true);
  473. /** @type {number} */
  474. bmak.ce_js_post = 1;
  475. }
  476. } catch (a) {}
  477. },
  478. ab: function documentCompare(b) {
  479. if (null == b) {
  480. return -1;
  481. }
  482. try {
  483. /** @type {number} */
  484. var raw_unread_count = 0;
  485. /** @type {number} */
  486. var a = 0;
  487. for (; a < b.length; a++) {
  488. var delta = b.charCodeAt(a);
  489. if (delta < 128) {
  490. raw_unread_count = raw_unread_count + delta;
  491. }
  492. }
  493. return raw_unread_count;
  494. } catch (a) {
  495. return -2;
  496. }
  497. },
  498. ff: function makeColorMaterial(a) {
  499. return String.fromCharCode(a);
  500. },
  501. to: function BinaryBundle() {
  502. /** @type {number} */
  503. var x = bmak.x2() % 1e7;
  504. /** @type {number} */
  505. bmak.d3 = x;
  506. /** @type {number} */
  507. var fn = x;
  508. /** @type {number} */
  509. var e = 0;
  510. for (; e < 5; e++) {
  511. /** @type {number} */
  512. var n = bmak.pi(x / Math.pow(10, e)) % 10;
  513. /** @type {number} */
  514. var count = n + 1;
  515. var markerFactoryBody = 'return a' + bmak.cc(n) + count + ';';
  516. fn = (new Function('a', markerFactoryBody))(fn);
  517. }
  518. bmak.o9 = fn;
  519. },
  520. gf: function documentCompare(a) {
  521. var rv;
  522. if (rv = null == a ? document.activeElement : a, null == document.activeElement) {
  523. return -1;
  524. }
  525. var e = rv.getAttribute('name');
  526. if (null == e) {
  527. var n = rv.getAttribute('id');
  528. return null == n ? -1 : bmak.ab(n);
  529. }
  530. return bmak.ab(e);
  531. },
  532. cc: function makeColorMaterial(a) {
  533. /** @type {number} */
  534. var remainder = a % 4;
  535. if (2 == remainder) {
  536. /** @type {number} */
  537. remainder = 3;
  538. }
  539. /** @type {number} */
  540. var total = 42 + remainder;
  541. return String.fromCharCode(total);
  542. },
  543. isIgn: function documentCompare(a) {
  544. var el = document.activeElement;
  545. if (null == document.activeElement) {
  546. return 0;
  547. }
  548. var val = el.getAttribute('type');
  549. return 1 == (null == val ? -1 : bmak.get_type(val)) && bmak.fidcnt > 12 && -2 == a ? 1 : 0;
  550. },
  551. cka: function _processPhoneNumber(event, number) {
  552. try {
  553. var e = event || window.event;
  554. /** @type {number} */
  555. var n = -1;
  556. /** @type {number} */
  557. var s = 1;
  558. if (bmak.ke_cnt < bmak.ke_cnt_lmt && e) {
  559. n = e.keyCode;
  560. var f = e.charCode;
  561. /** @type {number} */
  562. var r = e.shiftKey ? 1 : 0;
  563. /** @type {number} */
  564. var g = e.ctrlKey ? 1 : 0;
  565. /** @type {number} */
  566. var b = e.metaKey ? 1 : 0;
  567. /** @type {number} */
  568. var alen = e.altKey ? 1 : 0;
  569. /** @type {number} */
  570. var j = 8 * r + 4 * g + 2 * b + alen;
  571. /** @type {number} */
  572. var m = bmak.get_cf_date() - bmak.start_ts;
  573. var dy = bmak.gf(null);
  574. /** @type {number} */
  575. var s = 0;
  576. if (f && n) {
  577. n = 0 != f && 0 != n && f != n ? -1 : 0 != n ? n : f;
  578. }
  579. if (0 == g && 0 == b && 0 == alen && n >= 32) {
  580. /** @type {number} */
  581. n = 3 == number && n >= 32 && n <= 126 ? -2 : n >= 33 && n <= 47 ? -3 : n >= 112 && n <= 123 ? -4 : -2;
  582. }
  583. if (dy != bmak.prevfid) {
  584. /** @type {number} */
  585. bmak.fidcnt = 0;
  586. bmak.prevfid = dy;
  587. } else {
  588. bmak.fidcnt = bmak.fidcnt + 1;
  589. }
  590. if (0 == bmak.isIgn(n)) {
  591. var top = bmak.ke_cnt + ',' + number + ',' + m + ',' + n + ',' + s + ',' + j + ',' + dy;
  592. if (null != e.isTrusted && false === e.isTrusted) {
  593. top = top + ',0';
  594. }
  595. top = top + ';';
  596. bmak.kact = bmak.kact + top;
  597. bmak.ke_vel = bmak.ke_vel + bmak.ke_cnt + number + m + n + j + dy;
  598. bmak.ta += m;
  599. } else {
  600. /** @type {number} */
  601. s = 0;
  602. }
  603. }
  604. if (s && e) {
  605. bmak.ke_cnt++;
  606. }
  607. if (!(!bmak.js_post || 1 != number || 13 != n && 9 != n)) {
  608. /** @type {number} */
  609. bmak.aj_type = 3;
  610. bmak.bpd();
  611. bmak.pd(true);
  612. /** @type {number} */
  613. bmak.ce_js_post = 1;
  614. }
  615. } catch (a) {}
  616. },
  617. cta: function handleFooLinkMouseOut(event, el) {
  618. try {
  619. if (1 == el && bmak.tme_cnt < bmak.tme_cnt_lmt || 1 != el && bmak.tduce_cnt < bmak.tduce_cnt_lmt) {
  620. var e = event || window.event;
  621. /** @type {number} */
  622. var lib = -1;
  623. /** @type {number} */
  624. var code = -1;
  625. if (e && e.pageX && e.pageY) {
  626. lib = Math.floor(e.pageX);
  627. code = Math.floor(e.pageY);
  628. } else {
  629. if (e && e.clientX && e.clientY) {
  630. lib = Math.floor(e.clientX);
  631. code = Math.floor(e.clientY);
  632. }
  633. }
  634. /** @type {number} */
  635. var name = bmak.get_cf_date() - bmak.start_ts;
  636. var r = bmak.te_cnt + ',' + el + ',' + name + ',' + lib + ',' + code + ';';
  637. bmak.tact = bmak.tact + r;
  638. bmak.ta += name;
  639. bmak.te_vel = bmak.te_vel + bmak.te_cnt + el + name + lib + code;
  640. /** @type {number} */
  641. bmak.doa_throttle = 0;
  642. /** @type {number} */
  643. bmak.dma_throttle = 0;
  644. }
  645. if (1 == el) {
  646. bmak.tme_cnt++;
  647. } else {
  648. bmak.tduce_cnt++;
  649. }
  650. bmak.te_cnt++;
  651. if (bmak.js_post && 2 == el && bmak.aj_indx_tact < bmak.aj_lmt_tact) {
  652. /** @type {number} */
  653. bmak.aj_type = 5;
  654. bmak.bpd();
  655. bmak.pd(true);
  656. /** @type {number} */
  657. bmak.ce_js_post = 1;
  658. bmak.aj_indx_tact++;
  659. }
  660. } catch (a) {}
  661. },
  662. getFloatVal: function get_step_data(increment) {
  663. try {
  664. if (-1 != bmak.chknull(increment) && !isNaN(increment)) {
  665. /** @type {number} */
  666. var value = parseFloat(increment);
  667. if (!isNaN(value)) {
  668. return value.toFixed(2);
  669. }
  670. }
  671. } catch (a) {}
  672. return -1;
  673. },
  674. cdoa: function makeColorMaterial(a) {
  675. try {
  676. if (bmak.doe_cnt < bmak.doe_cnt_lmt && bmak.doa_throttle < 2 && a) {
  677. /** @type {number} */
  678. var t = bmak.get_cf_date() - bmak.start_ts;
  679. var e = bmak.getFloatVal(a.alpha);
  680. var n = bmak.getFloatVal(a.beta);
  681. var o = bmak.getFloatVal(a.gamma);
  682. var m = bmak.doe_cnt + ',' + t + ',' + e + ',' + n + ',' + o + ';';
  683. bmak.doact = bmak.doact + m;
  684. bmak.ta += t;
  685. bmak.doe_vel = bmak.doe_vel + bmak.doe_cnt + t;
  686. bmak.doe_cnt++;
  687. }
  688. if (bmak.js_post && bmak.doe_cnt > 1 && bmak.aj_indx_doact < bmak.aj_lmt_doact) {
  689. /** @type {number} */
  690. bmak.aj_type = 6;
  691. bmak.bpd();
  692. bmak.pd(true);
  693. /** @type {number} */
  694. bmak.ce_js_post = 1;
  695. bmak.aj_indx_doact++;
  696. }
  697. bmak.doa_throttle++;
  698. } catch (a) {}
  699. },
  700. cdma: function makeColorMaterial(a) {
  701. try {
  702. if (bmak.dme_cnt < bmak.dme_cnt_lmt && bmak.dma_throttle < 2 && a) {
  703. /** @type {number} */
  704. var t = bmak.get_cf_date() - bmak.start_ts;
  705. /** @type {number} */
  706. var e = -1;
  707. /** @type {number} */
  708. var n = -1;
  709. /** @type {number} */
  710. var o = -1;
  711. if (a.acceleration) {
  712. e = bmak.getFloatVal(a.acceleration.x);
  713. n = bmak.getFloatVal(a.acceleration.y);
  714. o = bmak.getFloatVal(a.acceleration.z);
  715. }
  716. /** @type {number} */
  717. var m = -1;
  718. /** @type {number} */
  719. var r = -1;
  720. /** @type {number} */
  721. var i = -1;
  722. if (a.accelerationIncludingGravity) {
  723. m = bmak.getFloatVal(a.accelerationIncludingGravity.x);
  724. r = bmak.getFloatVal(a.accelerationIncludingGravity.y);
  725. i = bmak.getFloatVal(a.accelerationIncludingGravity.z);
  726. }
  727. /** @type {number} */
  728. var c = -1;
  729. /** @type {number} */
  730. var b = -1;
  731. /** @type {number} */
  732. var d = 1;
  733. if (a.rotationRate) {
  734. c = bmak.getFloatVal(a.rotationRate.alpha);
  735. b = bmak.getFloatVal(a.rotationRate.beta);
  736. d = bmak.getFloatVal(a.rotationRate.gamma);
  737. }
  738. var k = bmak.dme_cnt + ',' + t + ',' + e + ',' + n + ',' + o + ',' + m + ',' + r + ',' + i + ',' + c + ',' + b + ',' + d + ';';
  739. bmak.dmact = bmak.dmact + k;
  740. bmak.ta += t;
  741. bmak.dme_vel = bmak.dme_vel + bmak.dme_cnt + t;
  742. bmak.dme_cnt++;
  743. }
  744. if (bmak.js_post && bmak.dme_cnt > 1 && bmak.aj_indx_dmact < bmak.aj_lmt_dmact) {
  745. /** @type {number} */
  746. bmak.aj_type = 7;
  747. bmak.bpd();
  748. bmak.pd(true);
  749. /** @type {number} */
  750. bmak.ce_js_post = 1;
  751. bmak.aj_indx_dmact++;
  752. }
  753. bmak.dma_throttle++;
  754. } catch (a) {}
  755. },
  756. get_type: function getCoreTestFilePath(module) {
  757. return module = module.toLowerCase(), 'text' == module || 'search' == module || 'url' == module || 'email' == module || 'tel' == module || 'number' == module ? 0 : 'password' == module ? 1 : 2;
  758. },
  759. chknull: function makeColorMaterial(a) {
  760. return null == a ? -1 : a;
  761. },
  762. getforminfo: function getforminfo() {
  763. var a = '';
  764. var t = '';
  765. var PL$13 = document.getElementsByTagName('input');
  766. /** @type {number} */
  767. var n = -1;
  768. /** @type {number} */
  769. var PL$17 = 0;
  770. for (; PL$17 < PL$13.length; PL$17++) {
  771. var matches = PL$13[PL$17];
  772. var r = bmak.ab(matches.getAttribute('name'));
  773. var i = bmak.ab(matches.getAttribute('id'));
  774. var c = matches.getAttribute('required');
  775. /** @type {number} */
  776. var b = null == c ? 0 : 1;
  777. var artistTrack = matches.getAttribute('type');
  778. var up = null == artistTrack ? -1 : bmak.get_type(artistTrack);
  779. var l = matches.getAttribute('autocomplete');
  780. if (null == l) {
  781. /** @type {number} */
  782. n = -1;
  783. } else {
  784. l = l.toLowerCase();
  785. /** @type {number} */
  786. n = 'off' == l ? 0 : 'on' == l ? 1 : 2;
  787. }
  788. var lead = matches.defaultValue;
  789. var type = matches.value;
  790. /** @type {number} */
  791. var GearType = 0;
  792. /** @type {number} */
  793. var weight_col = 0;
  794. if (lead && 0 != lead.length) {
  795. /** @type {number} */
  796. weight_col = 1;
  797. }
  798. if (!(!type || 0 == type.length || weight_col && type == lead)) {
  799. /** @type {number} */
  800. GearType = 1;
  801. }
  802. if (2 != up) {
  803. a = a + up + ',' + n + ',' + GearType + ',' + b + ',' + i + ',' + r + ',' + weight_col + ';';
  804. }
  805. t = t + GearType + ';';
  806. }
  807. return null == bmak.ins && (bmak.ins = t), bmak.cns = t, a;
  808. },
  809. startdoadma: function startdoadma() {
  810. if (0 == bmak.doadma_en && window.addEventListener) {
  811. window.addEventListener('deviceorientation', bmak.cdoa, true);
  812. window.addEventListener('devicemotion', bmak.cdma, true);
  813. /** @type {number} */
  814. bmak.doadma_en = 1;
  815. }
  816. /** @type {number} */
  817. bmak.doa_throttle = 0;
  818. /** @type {number} */
  819. bmak.dma_throttle = 0;
  820. },
  821. updatet: function updatet() {
  822. return bmak.get_cf_date() - bmak.start_ts;
  823. },
  824. htm: function makeColorMaterial(a) {
  825. bmak.cta(a, 1);
  826. },
  827. hts: function makeColorMaterial(a) {
  828. bmak.cta(a, 2);
  829. },
  830. hte: function makeColorMaterial(a) {
  831. bmak.cta(a, 3);
  832. },
  833. htc: function makeColorMaterial(a) {
  834. bmak.cta(a, 4);
  835. },
  836. hmm: function makeColorMaterial(a) {
  837. bmak.cma(a, 1);
  838. },
  839. hc: function makeColorMaterial(a) {
  840. bmak.cma(a, 2);
  841. },
  842. hmd: function makeColorMaterial(a) {
  843. bmak.cma(a, 3);
  844. },
  845. hmu: function makeColorMaterial(a) {
  846. bmak.cma(a, 4);
  847. },
  848. hpd: function makeColorMaterial(a) {
  849. bmak.cpa(a, 3);
  850. },
  851. hpu: function makeColorMaterial(a) {
  852. bmak.cpa(a, 4);
  853. },
  854. hkd: function makeColorMaterial(a) {
  855. bmak.cka(a, 1);
  856. },
  857. hku: function makeColorMaterial(a) {
  858. bmak.cka(a, 2);
  859. },
  860. hkp: function makeColorMaterial(a) {
  861. bmak.cka(a, 3);
  862. },
  863. cfsubmit: function cfsubmit() {
  864. bmak.sd_debug('<cfsubmit/>');
  865. if (bmak.js_post) {
  866. /** @type {number} */
  867. bmak.aj_type = 4;
  868. bmak.bpd();
  869. if (0 == bmak.ce_js_post && bmak.cns != bmak.ins) {
  870. bmak.pd(true);
  871. }
  872. } else {
  873. bmak.bpd();
  874. }
  875. },
  876. getdurl: function formatTagString() {
  877. return bmak.enReadDocUrl ? document.URL.replace(/\\|"/g, '') : '';
  878. },
  879. x1: function x1() {
  880. return Math.floor(16777216 * (1 + Math.random())).toString(36);
  881. },
  882. gck: function gck() {
  883. var i = bmak.x1() + bmak.x1() + bmak.x1() + bmak.x1();
  884. return bmak.set_cookie(bmak.ckie, i + '_' + bmak.ab(i)), i;
  885. },
  886. set_cookie: function compareAlphabetically(a, b) {
  887. if (void 0 !== document.cookie) {
  888. document.cookie = a + '=' + b + '; path=/; expires=Fri, 01 Feb 2025 08:00:00 GMT;';
  889. }
  890. },
  891. get_cookie: function get_cookie() {
  892. try {
  893. var a = bmak.cookie_chk_read(bmak.ckie);
  894. return a || (bmak.n_ck = 1, a = bmak.bm ? '2' : bmak.gck()), a;
  895. } catch (a) {}
  896. return '2';
  897. },
  898. cookie_chk_read: function documentCompare(a) {
  899. if (document.cookie) {
  900. var data = a + '=';
  901. var PL$13 = document.cookie.split('; ');
  902. /** @type {number} */
  903. var PL$17 = 0;
  904. for (; PL$17 < PL$13.length; PL$17++) {
  905. var packByNumType = PL$13[PL$17];
  906. if (0 === packByNumType.indexOf(data)) {
  907. var c_user = packByNumType.substring(data.length, packByNumType.length);
  908. if (!bmak.bm) {
  909. return c_user;
  910. }
  911. if (-1 != c_user.indexOf('~') || -1 != decodeURIComponent(c_user).indexOf('~')) {
  912. return c_user;
  913. }
  914. }
  915. }
  916. }
  917. return false;
  918. },
  919. bpd: function _getDataset() {
  920. bmak.sd_debug('<bpd>');
  921. /** @type {number} */
  922. var $start = 0;
  923. try {
  924. $start = bmak.get_cf_date();
  925. var mma_frontpage_item_course_search = bmak.updatet();
  926. var _maskLayer = '3';
  927. if (bmak.ckie) {
  928. _maskLayer = bmak.get_cookie();
  929. }
  930. var n = bmak.gd();
  931. var moz = window.DeviceOrientationEvent ? 'do_en' : 'do_dis';
  932. var remainder = window.DeviceMotionEvent ? 'dm_en' : 'dm_dis';
  933. var size1 = window.TouchEvent ? 't_en' : 't_dis';
  934. var i = moz + ',' + remainder + ',' + size1;
  935. var c = bmak.getforminfo();
  936. var b = bmak.getdurl();
  937. var d = bmak.aj_type + ',' + bmak.aj_indx;
  938. if (!bmak.fpcf.fpValCalculated && (0 == bmak.js_post || bmak.aj_indx > 0)) {
  939. bmak.fpcf.fpVal();
  940. }
  941. var mma_frontpage_item_all_course_list = bmak.ke_vel + bmak.me_vel + bmak.doe_vel + bmak.dme_vel + bmak.te_vel + bmak.pe_vel;
  942. /** @type {number} */
  943. var l = bmak.get_cf_date() - bmak.start_ts;
  944. var s = bmak.pi(bmak.d2 / 6);
  945. var u = bmak.fas();
  946. /** @type {!Array} */
  947. var frontpageItems = [bmak.ke_vel + 1, bmak.me_vel + 1, bmak.te_vel, bmak.doe_vel, bmak.dme_vel, bmak.pe_vel, mma_frontpage_item_all_course_list, mma_frontpage_item_course_search, bmak.init_time, bmak.start_ts, bmak.fpcf.td, bmak.d2, bmak.ke_cnt, bmak.me_cnt, s, bmak.pe_cnt, bmak.te_cnt, l, bmak.ta, bmak.n_ck, _maskLayer, bmak.ab(_maskLayer), bmak.fpcf.rVal, bmak.fpcf.rCFP, u];
  948. var f = frontpageItems.join(',');
  949. var p = '' + bmak.ab(bmak.fpcf.fpValstr);
  950. var v = bmak.sed();
  951. var h = '';
  952. var g = '';
  953. if (void 0 !== bmak.mn_r[1]) {
  954. h = bmak.mn_r[1];
  955. }
  956. if (void 0 !== bmak.mn_r[2]) {
  957. g = bmak.mn_r[2];
  958. }
  959. bmak.sensor_data = bmak.ver + '-1,2,-94,-100,' + n + '-1,2,-94,-101,' + i + '-1,2,-94,-105,' + bmak.informinfo + '-1,2,-94,-102,' + c + '-1,2,-94,-108,' + bmak.kact + '-1,2,-94,-110,' + bmak.mact + '-1,2,-94,-117,' + bmak.tact + '-1,2,-94,-111,' + bmak.doact + '-1,2,-94,-109,' + bmak.dmact + '-1,2,-94,-114,' + bmak.pact + '-1,2,-94,-103,' + bmak.vcact + '-1,2,-94,-112,' + b + '-1,2,-94,-115,' + f + '-1,2,-94,-106,' + d;
  960. bmak.sensor_data = bmak.sensor_data + '-1,2,-94,-119,' + bmak.mr + '-1,2,-94,-122,' + v + '-1,2,-94,-123,' + h + '-1,2,-94,-124,' + g;
  961. var w = bmak.ab(bmak.sensor_data);
  962. bmak.sensor_data = bmak.sensor_data + '-1,2,-94,-70,' + bmak.fpcf.fpValstr + '-1,2,-94,-80,' + p + '-1,2,-94,-116,' + bmak.o9 + '-1,2,-94,-118,' + w + '-1,2,-94,-121,';
  963. bmak.sd_debug(',s1:' + bmak.sensor_data.slice(0, 10));
  964. } catch (filter) {
  965. try {
  966. bmak.sd_debug(',s2:' + filter);
  967. bmak.sensor_data = bmak.ver + '-1,2,-94,-100,' + bmak.uar() + '-1,2,-94,-120,' + filter.replace(/"/g, '\'');
  968. } catch (a) {
  969. bmak.sd_debug(',s3:' + a);
  970. }
  971. }
  972. try {
  973. var y = bmak.od(bmak.cs, bmak.api_public_key).slice(0, 16);
  974. var ot = Math.floor(bmak.get_cf_date() / 36e5);
  975. var j = bmak.get_cf_date();
  976. var $eol = y + bmak.od(ot, y) + bmak.sensor_data;
  977. bmak.sensor_data = $eol + ';' + (bmak.get_cf_date() - $start) + ';' + bmak.tst + ';' + (bmak.get_cf_date() - j);
  978. } catch (a) {}
  979. try {
  980. if (0 == bmak.sdfn.length) {
  981. bmak.sd_debug(',s4');
  982. if (document.getElementById('sensor_data')) {
  983. bmak.sd_debug(',s5');
  984. document.getElementById('sensor_data').value = bmak.sensor_data;
  985. }
  986. } else {
  987. bmak.sd_debug(',s6:');
  988. /** @type {number} */
  989. var S = 0;
  990. for (; S < bmak.sdfn.length; S++) {
  991. if (bmak.sd_debug(',a-' + bmak.sdfn[S]), document.getElementById(bmak.sdfn[S])) {
  992. bmak.sd_debug(',b');
  993. document.getElementById(bmak.sdfn[S]).value = bmak.sensor_data;
  994. var value = document.getElementById(bmak.sdfn[S]).value;
  995. if ('string' == (typeof value === "undefined" ? "undefined" : _typeof(value))) {
  996. bmak.sd_debug(',c-' + value.slice(0, 5));
  997. } else {
  998. bmak.sd_debug(',c-null');
  999. }
  1000. } else {
  1001. bmak.sd_debug(',d');
  1002. }
  1003. }
  1004. }
  1005. } catch (a) {
  1006. bmak.sd_debug(',s7:' + a + ',' + bmak.sensor_data);
  1007. }
  1008. bmak.sd_debug('</bpd>');
  1009. },
  1010. od: function propertyStringReplacer(value, key) {
  1011. try {
  1012. /** @type {string} */
  1013. value = String(value);
  1014. /** @type {string} */
  1015. key = String(key);
  1016. /** @type {!Array} */
  1017. var e = [];
  1018. var entry = key.length;
  1019. if (entry > 0) {
  1020. /** @type {number} */
  1021. var property = 0;
  1022. for (; property < value.length; property++) {
  1023. var props = value.charCodeAt(property);
  1024. var prop = value.charAt(property);
  1025. var augmentWritable = key.charCodeAt(property % entry);
  1026. props = bmak.rir(props, 47, 57, augmentWritable);
  1027. if (props != value.charCodeAt(property)) {
  1028. prop = String.fromCharCode(props);
  1029. }
  1030. e.push(prop);
  1031. }
  1032. if (e.length > 0) {
  1033. return e.join('');
  1034. }
  1035. }
  1036. } catch (a) {}
  1037. return value;
  1038. },
  1039. rir: function _findLF(i, n, t, chunk) {
  1040. return i > n && i <= t && (i = i + chunk % (t - n)) > t && (i = i - t + n), i;
  1041. },
  1042. lvc: function makeColorMaterial(b) {
  1043. try {
  1044. if (bmak.vc_cnt < bmak.vc_cnt_lmt) {
  1045. /** @type {number} */
  1046. var w = bmak.get_cf_date() - bmak.start_ts;
  1047. var e = b + ',' + w + ';';
  1048. bmak.vcact = bmak.vcact + e;
  1049. }
  1050. bmak.vc_cnt++;
  1051. } catch (a) {}
  1052. },
  1053. hvc: function hvc() {
  1054. try {
  1055. /** @type {number} */
  1056. var artistTrack = 1;
  1057. if (document[bmak.hn]) {
  1058. /** @type {number} */
  1059. artistTrack = 0;
  1060. }
  1061. bmak.lvc(artistTrack);
  1062. } catch (a) {}
  1063. },
  1064. hb: function makeColorMaterial(a) {
  1065. bmak.lvc(2);
  1066. },
  1067. hf: function makeColorMaterial(a) {
  1068. bmak.lvc(3);
  1069. },
  1070. rve: function rve() {
  1071. if (void 0 !== document.hidden) {
  1072. bmak.hn = 'hidden';
  1073. bmak.vc = 'visibilitychange';
  1074. } else {
  1075. if (void 0 !== document.mozHidden) {
  1076. bmak.hn = 'mozHidden';
  1077. bmak.vc = 'mozvisibilitychange';
  1078. } else {
  1079. if (void 0 !== document.msHidden) {
  1080. bmak.hn = 'msHidden';
  1081. bmak.vc = 'msvisibilitychange';
  1082. } else {
  1083. if (void 0 !== document.webkitHidden) {
  1084. bmak.hn = 'webkitHidden';
  1085. bmak.vc = 'webkitvisibilitychange';
  1086. }
  1087. }
  1088. }
  1089. }
  1090. if (document.addEventListener) {
  1091. if ('unk' != bmak.hn) {
  1092. document.addEventListener(bmak.vc, bmak.hvc, true);
  1093. }
  1094. } else {
  1095. if (document.attachEvent && 'unk' != bmak.hn) {
  1096. document.attachEvent(bmak.vc, bmak.hvc);
  1097. }
  1098. }
  1099. window.onblur = bmak.hb;
  1100. window.onfocus = bmak.hf;
  1101. },
  1102. startTracking: function _executeCallbackAfterASufficientIdlePeriod() {
  1103. bmak.startdoadma();
  1104. try {
  1105. bmak.to();
  1106. } catch (a) {
  1107. /** @type {number} */
  1108. bmak.o9 = -654321;
  1109. }
  1110. setInterval(function() {
  1111. bmak.startdoadma();
  1112. }, 3e3);
  1113. if (document.addEventListener) {
  1114. document.addEventListener('touchmove', bmak.htm, true);
  1115. document.addEventListener('touchstart', bmak.hts, true);
  1116. document.addEventListener('touchend', bmak.hte, true);
  1117. document.addEventListener('touchcancel', bmak.htc, true);
  1118. document.addEventListener('mousemove', bmak.hmm, true);
  1119. document.addEventListener('click', bmak.hc, true);
  1120. document.addEventListener('mousedown', bmak.hmd, true);
  1121. document.addEventListener('mouseup', bmak.hmu, true);
  1122. document.addEventListener('pointerdown', bmak.hpd, true);
  1123. document.addEventListener('pointerup', bmak.hpu, true);
  1124. document.addEventListener('keydown', bmak.hkd, true);
  1125. document.addEventListener('keyup', bmak.hku, true);
  1126. document.addEventListener('keypress', bmak.hkp, true);
  1127. } else {
  1128. if (document.attachEvent) {
  1129. document.attachEvent('touchmove', bmak.htm);
  1130. document.attachEvent('touchstart', bmak.hts);
  1131. document.attachEvent('touchend', bmak.hte);
  1132. document.attachEvent('touchcancel', bmak.htc);
  1133. document.attachEvent('onmousemove', bmak.hmm);
  1134. document.attachEvent('onclick', bmak.hc);
  1135. document.attachEvent('onmousedown', bmak.hmd);
  1136. document.attachEvent('onmouseup', bmak.hmu);
  1137. document.attachEvent('onpointerdown', bmak.hpd);
  1138. document.attachEvent('onpointerup', bmak.hpu);
  1139. document.attachEvent('onkeydown', bmak.hkd);
  1140. document.attachEvent('onkeyup', bmak.hku);
  1141. document.attachEvent('onkeypress', bmak.hkp);
  1142. }
  1143. }
  1144. bmak.rve();
  1145. bmak.informinfo = bmak.getforminfo();
  1146. if (bmak.js_post) {
  1147. /** @type {number} */
  1148. bmak.aj_type = 0;
  1149. bmak.bpd();
  1150. bmak.pd(true);
  1151. }
  1152. },
  1153. gb: function compareAlphabetically(a, b) {
  1154. var n = a.charCodeAt(b);
  1155. return n = n > 255 ? 0 : n;
  1156. },
  1157. encode: function encode(script) {
  1158. if ('undefined' != (typeof btoa === "undefined" ? "undefined" : _typeof(btoa))) {
  1159. return btoa(script);
  1160. }
  1161. var n;
  1162. var e;
  1163. var first;
  1164. var bBody;
  1165. var real_day;
  1166. var aBody;
  1167. var setValue;
  1168. var c = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
  1169. var real_year = '';
  1170. /** @type {number} */
  1171. var oALen = 3 * Math.floor(script.length / 3);
  1172. /** @type {number} */
  1173. var len = 0;
  1174. for (; len < oALen; len = len + 3) {
  1175. n = bmak.gb(script, len);
  1176. e = bmak.gb(script, len + 1);
  1177. first = bmak.gb(script, len + 2);
  1178. /** @type {number} */
  1179. bBody = n >> 2;
  1180. /** @type {number} */
  1181. real_day = ((3 & n) << 4) + (e >> 4);
  1182. /** @type {number} */
  1183. aBody = ((15 & e) << 2) + (first >> 6);
  1184. /** @type {number} */
  1185. setValue = 63 & first;
  1186. real_year = real_year + c.charAt(bBody) + c.charAt(real_day) + c.charAt(aBody) + c.charAt(setValue);
  1187. }
  1188. return script.length % 3 == 1 && (n = bmak.gb(script, len), bBody = n >> 2, real_day = (3 & n) << 4, real_year = real_year + c.charAt(bBody) + c.charAt(real_day) + '=='), script.length % 3 == 2 && (n = bmak.gb(script, len), e = bmak.gb(script, len + 1), bBody = n >> 2, real_day = ((3 & n) << 4) + (e >> 4), aBody = (15 & e) << 2, real_year = real_year + c.charAt(bBody) + c.charAt(real_day) + c.charAt(aBody) + '='), real_year;
  1189. },
  1190. ie9OrLower: function isShallowEqual() {
  1191. try {
  1192. if ('string' == _typeof(navigator.appVersion) && -1 != navigator.appVersion.indexOf('MSIE')) {
  1193. if (parseFloat(navigator.appVersion.split('MSIE')[1]) <= 9) {
  1194. return true;
  1195. }
  1196. }
  1197. } catch (a) {}
  1198. return false;
  1199. },
  1200. apicall: function getXhr(url, callback) {
  1201. var cookiesToString;
  1202. cookiesToString = window.XDomainRequest ? new XDomainRequest : window.XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject('Microsoft.XMLHTTP');
  1203. cookiesToString.open('POST', url, callback);
  1204. var CHUNK_SIZE = bmak.encode(bmak.api_public_key + ':');
  1205. bmak.auth = ',"auth" : "' + CHUNK_SIZE + '"';
  1206. if (cookiesToString.setRequestHeader) {
  1207. cookiesToString.setRequestHeader('Content-type', 'application/json');
  1208. cookiesToString.setRequestHeader('Authorization', 'Basic ' + CHUNK_SIZE);
  1209. bmak.auth = '';
  1210. }
  1211. var cookies = '{"session_id" : "' + bmak.session_id + '","sensor_data" : "' + bmak.sensor_data + '"' + bmak.auth + '}';
  1212. cookiesToString.send(cookies);
  1213. },
  1214. apicall_bm: function getXhr(url, options, callback) {
  1215. var xhr;
  1216. if (void 0 !== window.XMLHttpRequest) {
  1217. /** @type {!XMLHttpRequest} */
  1218. xhr = new XMLHttpRequest;
  1219. } else {
  1220. if (void 0 !== window.XDomainRequest) {
  1221. /** @type {!XDomainRequest} */
  1222. xhr = new XDomainRequest;
  1223. /**
  1224. * @return {undefined}
  1225. */
  1226. xhr.onload = function() {
  1227. /** @type {number} */
  1228. this.readyState = 4;
  1229. if (this.onreadystatechange instanceof Function) {
  1230. this.onreadystatechange();
  1231. }
  1232. };
  1233. } else {
  1234. xhr = new ActiveXObject('Microsoft.XMLHTTP');
  1235. }
  1236. }
  1237. xhr.open('POST', url, options);
  1238. if (void 0 !== xhr.withCredentials) {
  1239. /** @type {boolean} */
  1240. xhr.withCredentials = true;
  1241. }
  1242. var mime = '{"sensor_data":"' + bmak.sensor_data + '"}';
  1243. /**
  1244. * @return {undefined}
  1245. */
  1246. xhr.onreadystatechange = function() {
  1247. if (xhr.readyState > 3 && callback) {
  1248. callback(xhr);
  1249. }
  1250. };
  1251. xhr.send(mime);
  1252. },
  1253. pd_en: function pd_en() {
  1254. var a;
  1255. var t = bmak.getdurl();
  1256. return 0 == bmak.thr ? 1 : (a = t.indexOf('home.html') > -1 ? 1 : 0, bmak.start_ts % 10 != 0 ? 0 : bmak.aj_indx > 3 ? 0 : a && bmak.aj_indx > 0 ? 0 : 1);
  1257. },
  1258. pd: function makeColorMaterial(a) {
  1259. var t;
  1260. if (t = bmak.pd_en()) {
  1261. if (bmak.bm) {
  1262. if (bmak.check_stop_protocol()) {
  1263. bmak.apicall_bm(bmak.cf_url, a, bmak.patp);
  1264. }
  1265. } else {
  1266. bmak.apicall(bmak.cf_url, a);
  1267. }
  1268. bmak.aj_indx = bmak.aj_indx + 1;
  1269. }
  1270. },
  1271. check_stop_protocol: function check_stop_protocol() {
  1272. var tiledImageTLs = bmak.get_stop_signals();
  1273. var tiledImageBR = tiledImageTLs[0];
  1274. if (!bmak.rst && tiledImageBR > -1) {
  1275. bmak.ir();
  1276. /** @type {boolean} */
  1277. bmak.rst = true;
  1278. }
  1279. var tiledImageTL = tiledImageTLs[1];
  1280. return -1 == tiledImageTL || bmak.aj_ss < tiledImageTL;
  1281. },
  1282. get_stop_signals: function _gen_title() {
  1283. /** @type {!Array} */
  1284. var ret = [-1, -1];
  1285. var c_user = bmak.cookie_chk_read(bmak.ckie);
  1286. if (false !== c_user) {
  1287. try {
  1288. var e = decodeURIComponent(c_user).split('~');
  1289. if (e.length >= 4) {
  1290. var value = bmak.pi(e[1]);
  1291. var a = bmak.pi(e[3]);
  1292. value = isNaN(value) ? -1 : value;
  1293. a = isNaN(a) ? -1 : a;
  1294. /** @type {!Array} */
  1295. ret = [a, value];
  1296. }
  1297. } catch (a) {}
  1298. }
  1299. return ret;
  1300. },
  1301. patp: function makeColorMaterial(a) {
  1302. bmak.aj_ss++;
  1303. /** @type {boolean} */
  1304. bmak.rst = false;
  1305. },
  1306. get_mn_params_from_abck: function getExercise() {
  1307. /** @type {!Array} */
  1308. var exercise = [
  1309. []
  1310. ];
  1311. try {
  1312. var c_user = bmak.cookie_chk_read(bmak.ckie);
  1313. if (false !== c_user) {
  1314. var tiledImageTLs = decodeURIComponent(c_user).split('~');
  1315. if (tiledImageTLs.length >= 5) {
  1316. var replaceState = tiledImageTLs[0];
  1317. var tiledImageTL = tiledImageTLs[4];
  1318. var options = tiledImageTL.split('||');
  1319. if (options.length > 0) {
  1320. /** @type {number} */
  1321. var i = 0;
  1322. for (; i < options.length; i++) {
  1323. var filterOption = options[i];
  1324. var c = filterOption.split('-');
  1325. if (c.length >= 5) {
  1326. var pushState = bmak.pi(c[0]);
  1327. var committer_date_iso_8601_strict = c[1];
  1328. var s = bmak.pi(c[2]);
  1329. var l = bmak.pi(c[3]);
  1330. var u = bmak.pi(c[4]);
  1331. /** @type {number} */
  1332. var k = 1;
  1333. if (c.length >= 6) {
  1334. k = bmak.pi(c[5]);
  1335. }
  1336. /** @type {!Array} */
  1337. var methodsToOverwrite = [pushState, replaceState, committer_date_iso_8601_strict, s, l, u, k];
  1338. if (2 == k) {
  1339. exercise.splice(0, 0, methodsToOverwrite);
  1340. } else {
  1341. exercise.push(methodsToOverwrite);
  1342. }
  1343. }
  1344. }
  1345. }
  1346. }
  1347. }
  1348. } catch (a) {}
  1349. return exercise;
  1350. },
  1351. mn_update_challenge_details: function makeColorMaterial(a) {
  1352. bmak.mn_sen = a[0];
  1353. bmak.mn_abck = a[1];
  1354. bmak.mn_psn = a[2];
  1355. bmak.mn_cd = a[3];
  1356. bmak.mn_tout = a[4];
  1357. bmak.mn_stout = a[5];
  1358. bmak.mn_ct = a[6];
  1359. bmak.mn_ts = bmak.start_ts;
  1360. bmak.mn_cc = bmak.mn_abck + bmak.start_ts + bmak.mn_psn;
  1361. },
  1362. mn_get_new_challenge_params: function makeColorMaterial(a) {
  1363. /** @type {null} */
  1364. var i = null;
  1365. /** @type {null} */
  1366. var length = null;
  1367. if (null != a) {
  1368. /** @type {number} */
  1369. var v = 0;
  1370. for (; v < a.length; v++) {
  1371. var o = a[v];
  1372. if (o.length > 0) {
  1373. var row = o[0];
  1374. var undefined = bmak.mn_abck + bmak.start_ts + o[2];
  1375. var reqVal = o[3];
  1376. var hasBaseRule = o[6];
  1377. /** @type {number} */
  1378. var reqVar = 0;
  1379. for (; reqVar < bmak.mn_lcl && 1 == row && bmak.mn_lc[reqVar] != undefined && bmak.mn_ld[reqVar] != reqVal; reqVar++) {}
  1380. if (reqVar == bmak.mn_lcl) {
  1381. /** @type {number} */
  1382. i = v;
  1383. if (2 == hasBaseRule) {
  1384. /** @type {number} */
  1385. length = v;
  1386. }
  1387. }
  1388. }
  1389. if (null != length) {
  1390. break;
  1391. }
  1392. }
  1393. }
  1394. return null != length ? a[length] : null != i ? a[i] : null;
  1395. },
  1396. mn_poll: function onImageUpdated() {
  1397. if (0 == bmak.mn_state) {
  1398. var button2 = bmak.get_mn_params_from_abck();
  1399. var button2Component = bmak.mn_get_new_challenge_params(button2);
  1400. if (null != button2Component) {
  1401. bmak.mn_update_challenge_details(button2Component);
  1402. if (bmak.mn_sen) {
  1403. /** @type {number} */
  1404. bmak.mn_state = 1;
  1405. /** @type {number} */
  1406. bmak.mn_mc_indx = 0;
  1407. /** @type {!Array} */
  1408. bmak.mn_al = [];
  1409. /** @type {!Array} */
  1410. bmak.mn_il = [];
  1411. /** @type {!Array} */
  1412. bmak.mn_tcl = [];
  1413. /** @type {!Array} */
  1414. bmak.mn_lg = [];
  1415. setTimeout(bmak.mn_w, bmak.mn_tout);
  1416. }
  1417. }
  1418. }
  1419. },
  1420. mn_init: function _executeCallbackAfterASufficientIdlePeriod() {
  1421. setInterval(bmak.mn_poll, 1e3);
  1422. },
  1423. rotate_left: function compareAlphabetically(a, b) {
  1424. return a << b | a >>> 32 - b;
  1425. },
  1426. encode_utf8: function enc_utf8(s) {
  1427. return unescape(encodeURIComponent(s));
  1428. },
  1429. mn_h: function getLevenshteinDistance(b) {
  1430. /** @type {number} */
  1431. var H2 = 1732584193;
  1432. /** @type {number} */
  1433. var f = 4023233417;
  1434. /** @type {number} */
  1435. var offset = 2562383102;
  1436. /** @type {number} */
  1437. var s = 271733878;
  1438. /** @type {number} */
  1439. var k = 3285377520;
  1440. var sumB = bmak.encode_utf8(b);
  1441. /** @type {number} */
  1442. var label = 8 * sumB.length;
  1443. sumB = sumB + String.fromCharCode(128);
  1444. /** @type {number} */
  1445. var delta = sumB.length / 4 + 2;
  1446. var max = Math.ceil(delta / 16);
  1447. /** @type {!Array} */
  1448. var arr = new Array(max);
  1449. /** @type {number} */
  1450. var y = 0;
  1451. for (; y < max; y++) {
  1452. /** @type {!Array} */
  1453. arr[y] = new Array(16);
  1454. /** @type {number} */
  1455. var x = 0;
  1456. for (; x < 16; x++) {
  1457. /** @type {number} */
  1458. arr[y][x] = sumB.charCodeAt(64 * y + 4 * x) << 24 | sumB.charCodeAt(64 * y + 4 * x + 1) << 16 | sumB.charCodeAt(64 * y + 4 * x + 2) << 8 | sumB.charCodeAt(64 * y + 4 * x + 3) << 0;
  1459. }
  1460. }
  1461. /** @type {number} */
  1462. var value = label / Math.pow(2, 32);
  1463. arr[max - 1][14] = Math.floor(value);
  1464. /** @type {number} */
  1465. arr[max - 1][15] = 4294967295 & label;
  1466. /** @type {number} */
  1467. var x = 0;
  1468. for (; x < max; x++) {
  1469. var r;
  1470. var imagesw;
  1471. var Error;
  1472. /** @type {!Array} */
  1473. var w = new Array(80);
  1474. var c = H2;
  1475. var g = f;
  1476. var j = offset;
  1477. var i = s;
  1478. var a = k;
  1479. /** @type {number} */
  1480. y = 0;
  1481. for (; y < 80; y++) {
  1482. w[y] = y < 16 ? arr[x][y] : bmak.rotate_left(w[y - 3] ^ w[y - 8] ^ w[y - 14] ^ w[y - 16], 1);
  1483. if (y < 20) {
  1484. /** @type {number} */
  1485. r = g & j | ~g & i;
  1486. /** @type {number} */
  1487. imagesw = 1518500249;
  1488. } else {
  1489. if (y < 40) {
  1490. /** @type {number} */
  1491. r = g ^ j ^ i;
  1492. /** @type {number} */
  1493. imagesw = 1859775393;
  1494. } else {
  1495. if (y < 60) {
  1496. /** @type {number} */
  1497. r = g & j | g & i | j & i;
  1498. /** @type {number} */
  1499. imagesw = 2400959708;
  1500. } else {
  1501. /** @type {number} */
  1502. r = g ^ j ^ i;
  1503. /** @type {number} */
  1504. imagesw = 3395469782;
  1505. }
  1506. }
  1507. }
  1508. Error = bmak.rotate_left(c, 5) + r + a + imagesw + w[y];
  1509. a = i;
  1510. i = j;
  1511. j = bmak.rotate_left(g, 30);
  1512. g = c;
  1513. c = Error;
  1514. }
  1515. H2 = H2 + c;
  1516. f = f + g;
  1517. offset = offset + j;
  1518. s = s + i;
  1519. k = k + a;
  1520. }
  1521. return [H2 >> 24 & 255, H2 >> 16 & 255, H2 >> 8 & 255, 255 & H2, f >> 24 & 255, f >> 16 & 255, f >> 8 & 255, 255 & f, offset >> 24 & 255, offset >> 16 & 255, offset >> 8 & 255, 255 & offset, s >> 24 & 255, s >> 16 & 255, s >> 8 & 255, 255 & s, k >> 24 & 255, k >> 16 & 255, k >> 8 & 255, 255 & k];
  1522. },
  1523. bdm: function getCharPath(s, c) {
  1524. /** @type {number} */
  1525. var d = 0;
  1526. /** @type {number} */
  1527. var jsonProp = 0;
  1528. for (; jsonProp < s.length; ++jsonProp) {
  1529. /** @type {number} */
  1530. d = (d << 8 | s[jsonProp]) >>> 0;
  1531. /** @type {number} */
  1532. d = d % c;
  1533. }
  1534. return d;
  1535. },
  1536. mn_w: function onImageUpdated() {
  1537. try {
  1538. /** @type {number} */
  1539. var a = 0;
  1540. /** @type {number} */
  1541. var currentColumn = 0;
  1542. /** @type {number} */
  1543. var resumeTimeout = 0;
  1544. var end = '';
  1545. var imgW = bmak.get_cf_date();
  1546. var artistTrack = bmak.mn_cd + bmak.mn_mc_indx;
  1547. for (; 0 == a;) {
  1548. end = Math.random().toString(16);
  1549. var r = bmak.mn_cc + artistTrack.toString() + end;
  1550. var specificResourceHandler = bmak.mn_h(r);
  1551. if (0 == bmak.bdm(specificResourceHandler, artistTrack)) {
  1552. /** @type {number} */
  1553. a = 1;
  1554. /** @type {number} */
  1555. resumeTimeout = bmak.get_cf_date() - imgW;
  1556. bmak.mn_al.push(end);
  1557. bmak.mn_tcl.push(resumeTimeout);
  1558. bmak.mn_il.push(currentColumn);
  1559. if (0 == bmak.mn_mc_indx) {
  1560. bmak.mn_lg.push(bmak.mn_abck);
  1561. bmak.mn_lg.push(bmak.mn_ts);
  1562. bmak.mn_lg.push(bmak.mn_psn);
  1563. bmak.mn_lg.push(bmak.mn_cc);
  1564. bmak.mn_lg.push(bmak.mn_cd.toString());
  1565. bmak.mn_lg.push(artistTrack.toString());
  1566. bmak.mn_lg.push(end);
  1567. bmak.mn_lg.push(r);
  1568. bmak.mn_lg.push(specificResourceHandler);
  1569. }
  1570. } else {
  1571. if ((currentColumn = currentColumn + 1) % 1e3 == 0 && (resumeTimeout = bmak.get_cf_date() - imgW) > bmak.mn_stout) {
  1572. return void setTimeout(bmak.mn_w, 1e3 + bmak.mn_stout);
  1573. }
  1574. }
  1575. }
  1576. bmak.mn_mc_indx += 1;
  1577. if (bmak.mn_mc_indx < bmak.mn_mc_lmt) {
  1578. setTimeout(bmak.mn_w, bmak.mn_tout + resumeTimeout);
  1579. } else {
  1580. /** @type {number} */
  1581. bmak.mn_mc_indx = 0;
  1582. /** @type {number} */
  1583. bmak.mn_state = 0;
  1584. bmak.mn_lc[bmak.mn_lcl] = bmak.mn_cc;
  1585. bmak.mn_ld[bmak.mn_lcl] = bmak.mn_cd;
  1586. bmak.mn_lcl = bmak.mn_lcl + 1;
  1587. bmak.mn_r[bmak.mn_ct] = bmak.mn_pr();
  1588. if (bmak.js_post) {
  1589. /** @type {number} */
  1590. bmak.aj_type = 8;
  1591. bmak.bpd();
  1592. bmak.pd(true);
  1593. }
  1594. }
  1595. } catch (a) {
  1596. bmak.sd_debug(',mn_w:' + a);
  1597. }
  1598. },
  1599. mn_pr: function mn_pr() {
  1600. return bmak.mn_al.join(',') + ';' + bmak.mn_tcl.join(',') + ';' + bmak.mn_il.join(',') + ';' + bmak.mn_lg.join(',') + ';';
  1601. },
  1602. calc_fp: function calc_fp() {
  1603. bmak.fpcf.fpVal();
  1604. if (bmak.js_post) {
  1605. /** @type {number} */
  1606. bmak.aj_type = 9;
  1607. bmak.bpd();
  1608. bmak.pd(true);
  1609. }
  1610. },
  1611. listFunctions: {
  1612. _setJsPost: function makeColorMaterial(a) {
  1613. bmak.js_post = a;
  1614. if (bmak.js_post) {
  1615. /** @type {number} */
  1616. bmak.enReadDocUrl = 1;
  1617. }
  1618. },
  1619. _setSessionId: function makeColorMaterial(a) {
  1620. bmak.session_id = a;
  1621. },
  1622. _setJavaScriptKey: function makeColorMaterial(a) {
  1623. bmak.api_public_key = a;
  1624. },
  1625. _setEnAddHidden: function makeColorMaterial(a) {
  1626. bmak.enAddHidden = a;
  1627. },
  1628. _setInitTime: function makeColorMaterial(a) {
  1629. bmak.init_time = a;
  1630. },
  1631. _setApiUrl: function makeColorMaterial(a) {
  1632. bmak.cf_url = a;
  1633. },
  1634. _setEnGetLoc: function makeColorMaterial(a) {
  1635. bmak.enGetLoc = a;
  1636. },
  1637. _setEnReadDocUrl: function makeColorMaterial(a) {
  1638. bmak.enReadDocUrl = a;
  1639. },
  1640. _setDisFpCalOnTimeout: function makeColorMaterial(a) {
  1641. bmak.disFpCalOnTimeout = a;
  1642. },
  1643. _setCookie: function makeColorMaterial(a) {
  1644. bmak.ckie = a;
  1645. },
  1646. _setCS: function basicCompare(a) {
  1647. bmak.cs = (String(a) + bmak.cs).slice(0, 16);
  1648. },
  1649. _setFsp: function makeColorMaterial(a) {
  1650. bmak.fsp = a;
  1651. if (bmak.fsp) {
  1652. bmak.cf_url = bmak.cf_url.replace(/^http:\/\//i, 'https://');
  1653. }
  1654. },
  1655. _setBm: function makeColorMaterial(a) {
  1656. bmak.bm = a;
  1657. if (bmak.bm) {
  1658. bmak.cf_url = (bmak.fsp ? 'https:' : document.location.protocol) + '//' + document.location.hostname + '/_bm/_data';
  1659. bmak.api_public_key = 'afSbep8yjnZUjq3aL010jO15Sawj2VZfdYK8uY90uxq';
  1660. /** @type {boolean} */
  1661. bmak.js_post = true;
  1662. /** @type {number} */
  1663. bmak.enReadDocUrl = 1;
  1664. /** @type {boolean} */
  1665. bmak.runFonts = false;
  1666. }
  1667. },
  1668. _setAu: function createActionInstance(a) {
  1669. if ('string' == (typeof a === "undefined" ? "undefined" : _typeof(a)) && 0 === a.lastIndexOf('/', 0)) {
  1670. bmak.cf_url = (bmak.fsp ? 'https:' : document.location.protocol) + '//' + document.location.hostname + a;
  1671. }
  1672. },
  1673. _setSDFieldNames: function _setSDFieldNames() {
  1674. try {
  1675. var x;
  1676. /** @type {number} */
  1677. x = 0;
  1678. for (; x < arguments.length; x = x + 1) {
  1679. bmak.sdfn.push(arguments[x]);
  1680. }
  1681. } catch (a) {
  1682. bmak.sd_debug(',setSDFN:' + a);
  1683. }
  1684. },
  1685. _setUseAltFonts: function makeColorMaterial(a) {
  1686. bmak.altFonts = a;
  1687. }
  1688. },
  1689. applyFunc: function applyFunc() {
  1690. var x;
  1691. var indexLookupKey;
  1692. var batch;
  1693. /** @type {number} */
  1694. x = 0;
  1695. for (; x < arguments.length; x = x + 1) {
  1696. batch = arguments[x];
  1697. }
  1698. indexLookupKey = batch.shift();
  1699. if (bmak.listFunctions[indexLookupKey]) {
  1700. bmak.listFunctions[indexLookupKey].apply(bmak.listFunctions, batch);
  1701. }
  1702. }
  1703. };
  1704. bmak.sd_debug('<init/>');
  1705. /** @type {number} */
  1706. var i = 0;
  1707. for (; i < _cf.length; i++) {
  1708. bmak.applyFunc(_cf[i]);
  1709. }
  1710. bmak.sd_debug('<setSDFN>' + bmak.sdfn.join() + '</setSDFN>'), _cf = {
  1711. push: bmak.applyFunc
  1712. },
  1713. function(beacons) {
  1714. var data = {};
  1715. beacons.fpcf = data;
  1716. /**
  1717. * @return {?}
  1718. */
  1719. data.sf4 = function() {
  1720. var a = bmak.uar();
  1721. return !(!~a.indexOf('Version/4.0') || !(~a.indexOf('iPad;') || ~a.indexOf('iPhone') || ~a.indexOf('Mac OS X 10_5')));
  1722. };
  1723. data.fpValstr = '-1';
  1724. /** @type {boolean} */
  1725. data.fpValCalculated = false;
  1726. data.rVal = '-1';
  1727. data.rCFP = '-1';
  1728. data.cache = {};
  1729. /** @type {number} */
  1730. data.td = -999999;
  1731. /**
  1732. * @return {undefined}
  1733. */
  1734. data.clearCache = function() {
  1735. data.cache = {};
  1736. };
  1737. /**
  1738. * @return {undefined}
  1739. */
  1740. data.fpVal = function() {
  1741. /** @type {boolean} */
  1742. data.fpValCalculated = true;
  1743. try {
  1744. /** @type {number} */
  1745. var b = 0;
  1746. b = Date.now ? Date.now() : +new Date;
  1747. var filter = data.data();
  1748. data.fpValstr = filter.replace(/"/g, '\\"');
  1749. /** @type {number} */
  1750. var g = 0;
  1751. g = Date.now ? Date.now() : +new Date;
  1752. /** @type {number} */
  1753. data.td = g - b;
  1754. } catch (a) {}
  1755. };
  1756. /**
  1757. * @return {?}
  1758. */
  1759. data.timezoneOffsetKey = function() {
  1760. return (new Date).getTimezoneOffset();
  1761. };
  1762. /**
  1763. * @return {?}
  1764. */
  1765. data.data = function() {
  1766. var a = screen.colorDepth ? screen.colorDepth : -1;
  1767. var e = screen.pixelDepth ? screen.pixelDepth : -1;
  1768. var n = navigator.cookieEnabled ? navigator.cookieEnabled : -1;
  1769. var o = navigator.javaEnabled ? navigator.javaEnabled() : -1;
  1770. var m = navigator.doNotTrack ? navigator.doNotTrack : -1;
  1771. var r = 'default';
  1772. return r = bmak.runFonts ? bmak.altFonts ? data.fonts_optm() : data.fonts() : 'dis', [data.canvas(), r, data.pluginInfo(), data.sessionStorageKey(), data.localStorageKey(), data.indexedDbKey(), data.timezoneOffsetKey(), data.webrtcKey(), a, e, n, o, m].join(';');
  1773. };
  1774. /** @type {!Array} */
  1775. data.PLUGINS = ['WebEx64 General Plugin Container', 'YouTube Plug-in', 'Java Applet Plug-in', 'Shockwave Flash', 'iPhotoPhotocast', 'SharePoint Browser Plug-in', 'Chrome Remote Desktop Viewer', 'Chrome PDF Viewer', 'Native Client', 'Unity Player', 'WebKit-integrierte PDF', 'QuickTime Plug-in', 'RealPlayer Version Plugin', 'RealPlayer(tm) G2 LiveConnect-Enabled Plug-In (32-bit)', 'Mozilla Default Plug-in', 'Adobe Acrobat', 'AdobeAAMDetect', 'Google Earth Plug-in', 'Java Plug-in 2 for NPAPI Browsers', 'Widevine Content Decryption Module', 'Microsoft Office Live Plug-in', 'Windows Media Player Plug-in Dynamic Link Library', 'Google Talk Plugin Video Renderer', 'Edge PDF Viewer', 'Shockwave for Director', 'Default Browser Helper', 'Silverlight Plug-In'];
  1776. /**
  1777. * @return {?}
  1778. */
  1779. data.pluginInfo = function() {
  1780. if (void 0 === navigator.plugins) {
  1781. return null;
  1782. }
  1783. var complexSize = data.PLUGINS.length;
  1784. var out = '';
  1785. /** @type {number} */
  1786. var c = 0;
  1787. for (; c < complexSize; c++) {
  1788. var choiceId = data.PLUGINS[c];
  1789. if (void 0 !== navigator.plugins[choiceId]) {
  1790. out = out + ',' + c;
  1791. }
  1792. }
  1793. return out;
  1794. };
  1795. /**
  1796. * @return {?}
  1797. */
  1798. data.canvas = function() {
  1799. try {
  1800. if (void 0 !== data.cache.canvas) {
  1801. return data.cache.canvas;
  1802. }
  1803. /** @type {number} */
  1804. var a = -1;
  1805. if (!data.sf4()) {
  1806. var x = document.createElement('canvas');
  1807. if (x.width = 280, x.height = 60, x.style.display = 'none', 'function' == _typeof(x.getContext)) {
  1808. var n = x.getContext('2d');
  1809. n.fillStyle = 'rgb(102, 204, 0)';
  1810. n.fillRect(100, 5, 80, 50);
  1811. n.fillStyle = '#f60';
  1812. n.font = '16pt Arial';
  1813. n.fillText('<@nv45. F1n63r,Pr1n71n6!', 10, 40);
  1814. n.strokeStyle = 'rgb(120, 186, 176)';
  1815. n.arc(80, 10, 20, 0, Math.PI, false);
  1816. n.stroke();
  1817. var PL$42 = x.toDataURL();
  1818. /** @type {number} */
  1819. a = 0;
  1820. /** @type {number} */
  1821. var PL$41 = 0;
  1822. for (; PL$41 < PL$42.length; PL$41++) {
  1823. a = (a << 5) - a + PL$42.charCodeAt(PL$41);
  1824. /** @type {number} */
  1825. a = a & a;
  1826. }
  1827. a = a.toString();
  1828. var b = document.createElement('canvas');
  1829. /** @type {number} */
  1830. b.width = 16;
  1831. /** @type {number} */
  1832. b.height = 16;
  1833. var packByNumType = b.getContext('2d');
  1834. packByNumType.font = '6pt Arial';
  1835. data.rVal = Math.floor(1e3 * Math.random()).toString();
  1836. packByNumType.fillText(data.rVal, 1, 12);
  1837. var params = b.toDataURL();
  1838. /** @type {number} */
  1839. var hash = 0;
  1840. /** @type {number} */
  1841. var i = 0;
  1842. for (; i < params.length; i++) {
  1843. hash = (hash << 5) - hash + params.charCodeAt(i);
  1844. /** @type {number} */
  1845. hash = hash & hash;
  1846. }
  1847. data.rCFP = hash.toString();
  1848. }
  1849. }
  1850. return a;
  1851. } catch (a) {
  1852. return 'exception';
  1853. }
  1854. };
  1855. /**
  1856. * @return {?}
  1857. */
  1858. data.fonts_optm = function() {
  1859. /** @type {number} */
  1860. var maxvalue = 200;
  1861. var dec_step = bmak.get_cf_date();
  1862. /** @type {!Array} */
  1863. var n = [];
  1864. if (!data.sf4()) {
  1865. /** @type {!Array} */
  1866. var sharePlaylist = ['sans-serif', 'monospace'];
  1867. /** @type {!Array} */
  1868. var item = [0, 0];
  1869. /** @type {!Array} */
  1870. var newJoinDoc = [0, 0];
  1871. var store = document.createElement('div');
  1872. store.style.cssText = 'position: relative; left: -9999px; visibility: hidden; display: block !important';
  1873. var _id;
  1874. /** @type {number} */
  1875. _id = 0;
  1876. for (; _id < sharePlaylist.length; _id++) {
  1877. var id = document.createElement('span');
  1878. id.innerHTML = 'abcdefhijklmnopqrstuvxyz1234567890;+-.';
  1879. id.style.fontSize = '90px';
  1880. id.style.fontFamily = sharePlaylist[_id];
  1881. store.appendChild(id);
  1882. }
  1883. document.body.appendChild(store);
  1884. /** @type {number} */
  1885. _id = 0;
  1886. for (; _id < store.childNodes.length; _id++) {
  1887. id = store.childNodes[_id];
  1888. item[_id] = id.offsetWidth;
  1889. newJoinDoc[_id] = id.offsetHeight;
  1890. }
  1891. if (document.body.removeChild(store), bmak.get_cf_date() - dec_step > maxvalue) {
  1892. return '';
  1893. }
  1894. /** @type {!Array} */
  1895. var PL$58 = ['Geneva', 'Lobster', 'New York', 'Century', 'Apple Gothic', 'Minion Pro', 'Apple LiGothic', 'Century Gothic', 'Monaco', 'Lato', 'Fantasque Sans Mono', 'Adobe Braille', 'Cambria', 'Futura', 'Bell MT', 'Courier', 'Courier New', 'Calibri', 'Avenir Next', 'Birch Std', 'Palatino', 'Ubuntu Regular', 'Oswald', 'Batang', 'Ubuntu Medium', 'Cantarell', 'Droid Serif', 'Roboto', 'Helvetica Neue', 'Corsiva Hebrew', 'Adobe Hebrew', 'TI-Nspire', 'Comic Neue', 'Noto', 'AlNile', 'Palatino-Bold', 'ArialHebrew-Light', 'Avenir', 'Papyrus', 'Open Sans', 'Times', 'Quicksand', 'Source Sans Pro', 'Damascus', 'Microsoft Sans Serif'];
  1896. var container = document.createElement('div');
  1897. container.style.cssText = 'position: relative; left: -9999px; visibility: hidden; display: block !important';
  1898. /** @type {!Array} */
  1899. var PL$78 = [];
  1900. /** @type {number} */
  1901. var PL$79 = 0;
  1902. for (; PL$79 < PL$58.length; PL$79++) {
  1903. var data = document.createElement('div');
  1904. /** @type {number} */
  1905. _id = 0;
  1906. for (; _id < sharePlaylist.length; _id++) {
  1907. id = document.createElement('span');
  1908. id.innerHTML = 'abcdefhijklmnopqrstuvxyz1234567890;+-.';
  1909. id.style.fontSize = '90px';
  1910. id.style.fontFamily = PL$58[PL$79] + ',' + sharePlaylist[_id];
  1911. data.appendChild(id);
  1912. }
  1913. container.appendChild(data);
  1914. }
  1915. if (bmak.get_cf_date() - dec_step > maxvalue) {
  1916. return '';
  1917. }
  1918. document.body.appendChild(container);
  1919. /** @type {number} */
  1920. PL$79 = 0;
  1921. for (; PL$79 < container.childNodes.length; PL$79++) {
  1922. /** @type {boolean} */
  1923. var inactiveTag = false;
  1924. data = container.childNodes[PL$79];
  1925. /** @type {number} */
  1926. _id = 0;
  1927. for (; _id < data.childNodes.length; _id++) {
  1928. id = data.childNodes[_id];
  1929. if (id.offsetWidth !== item[_id] || id.offsetHeight !== newJoinDoc[_id]) {
  1930. /** @type {boolean} */
  1931. inactiveTag = true;
  1932. break;
  1933. }
  1934. }
  1935. if (inactiveTag && PL$78.push(PL$79), bmak.get_cf_date() - dec_step > maxvalue) {
  1936. break;
  1937. }
  1938. }
  1939. document.body.removeChild(container);
  1940. n = PL$78.sort();
  1941. }
  1942. return n.join(',');
  1943. };
  1944. /**
  1945. * @return {?}
  1946. */
  1947. data.fonts = function() {
  1948. /** @type {!Array} */
  1949. var a = [];
  1950. if (!data.sf4()) {
  1951. /** @type {!Array} */
  1952. var dynacAttrs = ['serif', 'sans-serif', 'monospace'];
  1953. /** @type {!Array} */
  1954. var testStyle = [0, 0, 0];
  1955. /** @type {!Array} */
  1956. var declarations = [0, 0, 0];
  1957. var style = document.createElement('span');
  1958. style.innerHTML = 'abcdefhijklmnopqrstuvxyz1234567890;+-.';
  1959. style.style.fontSize = '90px';
  1960. var property;
  1961. /** @type {number} */
  1962. property = 0;
  1963. for (; property < dynacAttrs.length; property++) {
  1964. style.style.fontFamily = dynacAttrs[property];
  1965. document.body.appendChild(style);
  1966. testStyle[property] = style.offsetWidth;
  1967. declarations[property] = style.offsetHeight;
  1968. document.body.removeChild(style);
  1969. }
  1970. /** @type {!Array} */
  1971. var lookup = ['Geneva', 'Lobster', 'New York', 'Century', 'Apple Gothic', 'Minion Pro', 'Apple LiGothic', 'Century Gothic', 'Monaco', 'Lato', 'Fantasque Sans Mono', 'Adobe Braille', 'Cambria', 'Futura', 'Bell MT', 'Courier', 'Courier New', 'Calibri', 'Avenir Next', 'Birch Std', 'Palatino', 'Ubuntu Regular', 'Oswald', 'Batang', 'Ubuntu Medium', 'Cantarell', 'Droid Serif', 'Roboto', 'Helvetica Neue', 'Corsiva Hebrew', 'Adobe Hebrew', 'TI-Nspire', 'Comic Neue', 'Noto', 'AlNile', 'Palatino-Bold', 'ArialHebrew-Light', 'Avenir', 'Papyrus', 'Open Sans', 'Times', 'Quicksand', 'Source Sans Pro', 'Damascus', 'Microsoft Sans Serif'];
  1972. /** @type {!Array} */
  1973. var columnsScalesMap = [];
  1974. /** @type {number} */
  1975. var val = 0;
  1976. for (; val < lookup.length; val++) {
  1977. /** @type {boolean} */
  1978. var d = false;
  1979. /** @type {number} */
  1980. property = 0;
  1981. for (; property < dynacAttrs.length; property++) {
  1982. if (style.style.fontFamily = lookup[val] + ',' + dynacAttrs[property], document.body.appendChild(style), style.offsetWidth === testStyle[property] && style.offsetHeight === declarations[property] || (d = true), document.body.removeChild(style), d) {
  1983. columnsScalesMap.push(val);
  1984. break;
  1985. }
  1986. }
  1987. }
  1988. a = columnsScalesMap.sort();
  1989. }
  1990. return a.join(',');
  1991. };
  1992. /**
  1993. * @return {?}
  1994. */
  1995. data.webrtcKey = function() {
  1996. return 'function' == _typeof(window.RTCPeerConnection) || 'function' == _typeof(window.mozRTCPeerConnection) || 'function' == _typeof(window.webkitRTCPeerConnection);
  1997. };
  1998. /**
  1999. * @return {?}
  2000. */
  2001. data.indexedDbKey = function() {
  2002. return !!data.hasIndexedDB();
  2003. };
  2004. /**
  2005. * @return {?}
  2006. */
  2007. data.sessionStorageKey = function() {
  2008. return !!data.hasSessionStorage();
  2009. };
  2010. /**
  2011. * @return {?}
  2012. */
  2013. data.localStorageKey = function() {
  2014. return !!data.hasLocalStorage();
  2015. };
  2016. /**
  2017. * @return {?}
  2018. */
  2019. data.hasSessionStorage = function() {
  2020. try {
  2021. return !!window.sessionStorage;
  2022. } catch (a) {
  2023. return false;
  2024. }
  2025. };
  2026. /**
  2027. * @return {?}
  2028. */
  2029. data.hasLocalStorage = function() {
  2030. try {
  2031. return !!window.localStorage;
  2032. } catch (a) {
  2033. return false;
  2034. }
  2035. };
  2036. /**
  2037. * @return {?}
  2038. */
  2039. data.hasIndexedDB = function() {
  2040. return !!window.indexedDB;
  2041. };
  2042. }(bmak);
  2043. try {
  2044. if (bmak.ckie) {
  2045. bmak.get_cookie();
  2046. }
  2047. } catch (a) {}
  2048. try {
  2049. bmak.ir();
  2050. bmak.t_tst = bmak.get_cf_date();
  2051. bmak.startTracking();
  2052. /** @type {number} */
  2053. bmak.tst = bmak.get_cf_date() - bmak.t_tst;
  2054. if (!bmak.disFpCalOnTimeout) {
  2055. setTimeout(bmak.calc_fp, 100);
  2056. }
  2057. /** @type {number} */
  2058. i = 0;
  2059. for (; i < 3; i++) {
  2060. setTimeout(bmak.getmr, 400 + 5e3 * i);
  2061. }
  2062. setTimeout(bmak.mn_init, 1e3);
  2063. } catch (a) {};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement