1/* 2* Project: @gamedistribution.com/html5-sdk 3* Description: GameDistribution.com HTML5 SDK 4* Development By: GameDistribution.com 5* Copyright(c): 2021 6* Version: 1.15.7 (01-09-2021 11:07) 7*/ 8!function r(i, o, a) { 9 function s(t, e) { 10 if (!o[t]) { 11 if (!i[t]) { 12 var n = "function" == typeof require && require; 13 if (!e && n) 14 return n(t, !0); 15 if (c) 16 return c(t, !0); 17 throw (n = new Error("Cannot find module '" + t + "'")).code = "MODULE_NOT_FOUND", 18 n 19 } 20 n = o[t] = { 21 exports: {} 22 }, 23 i[t][0].call(n.exports, function(e) { 24 return s(i[t][1][e] || e) 25 }, n, n.exports, r, i, o, a) 26 } 27 return o[t].exports 28 } 29 for (var c = "function" == typeof require && require, e = 0; e < a.length; e++) 30 s(a[e]); 31 return s 32}({ 33 1: [function(e, t, n) { 34 !function(pf, gf) { 35 !function() { 36 !function() { 37 "use strict"; 38 function p(e, t) { 39 if (e !== t) 40 throw new TypeError("Cannot instantiate an arrow function") 41 } 42 function t(e) { 43 return (t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 44 return typeof e 45 } 46 : function(e) { 47 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e 48 } 49 )(e) 50 } 51 var je = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : void 0 !== pf ? pf : "undefined" != typeof self ? self : {} 52 , e = function(e) { 53 return e && e.Math == Math && e 54 } 55 , n = e("object" == typeof globalThis && globalThis) || e("object" == typeof window && window) || e("object" == typeof self && self) || e("object" == typeof je && je) || function() { 56 return this 57 }() || Function("return this")() 58 , r = {} 59 , i = function(e) { 60 try { 61 return !!e() 62 } catch (e) { 63 return !0 64 } 65 } 66 , o = !i(function() { 67 return 7 != Object.defineProperty({}, 1, { 68 get: function() { 69 return 7 70 } 71 })[1] 72 }) 73 , a = {} 74 , s = {}.propertyIsEnumerable 75 , c = Object.getOwnPropertyDescriptor 76 , u = c && !s.call({ 77 1: 2 78 }, 1); 79 a.f = u ? function(e) { 80 e = c(this, e); 81 return !!e && e.enumerable 82 } 83 : s; 84 function d(e, t) { 85 return { 86 enumerable: !(1 & e), 87 configurable: !(2 & e), 88 writable: !(4 & e), 89 value: t 90 } 91 } 92 function l(e) { 93 if (null == e) 94 throw TypeError("Can't call method on " + e); 95 return e 96 } 97 function h(e) { 98 return _(w(e)) 99 } 100 function f(e) { 101 return "object" == typeof e ? null !== e : "function" == typeof e 102 } 103 var g = {}.toString 104 , m = function(e) { 105 return g.call(e).slice(8, -1) 106 } 107 , v = m 108 , y = "".split 109 , b = i(function() { 110 return !Object("z").propertyIsEnumerable(0) 111 }) ? function(e) { 112 return "String" == v(e) ? y.call(e, "") : Object(e) 113 } 114 : Object 115 , _ = b 116 , w = l 117 , A = n 118 , E = function(e, t) { 119 return arguments.length < 2 ? "function" == typeof (n = A[e]) ? n : void 0 : A[e] && A[e][t]; 120 var n 121 } 122 , k = E("navigator", "userAgent") || "" 123 , x = k 124 , S = n.process 125 , D = n.Deno 126 , T = S && S.versions || D && D.version 127 , R = T && T.v8; 128 R ? yn = (mn = R.split("."))[0] < 4 ? 1 : mn[0] + mn[1] : x && (!(mn = x.match(/Edge\/(\d+)/)) || 74 <= mn[1]) && (mn = x.match(/Chrome\/(\d+)/)) && (yn = mn[1]); 129 var O = yn && +yn 130 , C = O 131 , I = i 132 , P = !!Object.getOwnPropertySymbols && !I(function() { 133 var e = Symbol(); 134 return !String(e) || !(Object(e)instanceof Symbol) || !Symbol.sham && C && C < 41 135 }) 136 , L = P && !Symbol.sham && "symbol" == typeof Symbol.iterator 137 , j = E 138 , B = L ? function(e) { 139 return "symbol" == typeof e 140 } 141 : function(e) { 142 var t = j("Symbol"); 143 return "function" == typeof t && Object(e)instanceof t 144 } 145 , M = f 146 , U = { 147 exports: {} 148 } 149 , N = n 150 , G = function(t, n) { 151 try { 152 Object.defineProperty(N, t, { 153 value: n, 154 configurable: !0, 155 writable: !0 156 }) 157 } catch (e) { 158 N[t] = n 159 } 160 return n 161 } 162 , F = G 163 , q = "__core-js_shared__" 164 , z = n[q] || F(q, {}) 165 , V = z; 166 (U.exports = function(e, t) { 167 return V[e] || (V[e] = void 0 !== t ? t : {}) 168 } 169 )("versions", []).push({ 170 version: "3.16.1", 171 mode: "global", 172 copyright: "é 2021 Denis Pushkarev (zloirock.ru)" 173 }); 174 var K = l 175 , H = function(e) { 176 return Object(K(e)) 177 } 178 , W = H 179 , $ = {}.hasOwnProperty 180 , Y = Object.hasOwn || function(e, t) { 181 return $.call(W(e), t) 182 } 183 , Q = 0 184 , J = Math.random() 185 , Z = function(e) { 186 return "Symbol(" + String(void 0 === e ? "" : e) + ")_" + (++Q + J).toString(36) 187 } 188 , X = n 189 , ee = U.exports 190 , te = Y 191 , ne = Z 192 , re = P 193 , ie = L 194 , oe = ee("wks") 195 , ae = X.Symbol 196 , se = ie ? ae : ae && ae.withoutSetter || ne 197 , ce = function(e) { 198 return te(oe, e) && (re || "string" == typeof oe[e]) || (re && te(ae, e) ? oe[e] = ae[e] : oe[e] = se("Symbol." + e)), 199 oe[e] 200 } 201 , ue = f 202 , de = B 203 , le = function(e, t) { 204 var n, r; 205 if ("string" === t && "function" == typeof (n = e.toString) && !M(r = n.call(e))) 206 return r; 207 if ("function" == typeof (n = e.valueOf) && !M(r = n.call(e))) 208 return r; 209 if ("string" !== t && "function" == typeof (n = e.toString) && !M(r = n.call(e))) 210 return r; 211 throw TypeError("Can't convert object to primitive value") 212 } 213 , he = ce("toPrimitive") 214 , fe = B 215 , pe = function(e) { 216 e = function(e, t) { 217 if (!ue(e) || de(e)) 218 return e; 219 var n = e[he]; 220 if (void 0 === n) 221 return le(e, t = void 0 === t ? "number" : t); 222 if (t = n.call(e, t = void 0 === t ? "default" : t), 223 !ue(t) || de(t)) 224 return t; 225 throw TypeError("Can't convert object to primitive value") 226 }(e, "string"); 227 return fe(e) ? e : String(e) 228 } 229 , ge = f 230 , me = n.document 231 , ve = ge(me) && ge(me.createElement) 232 , ye = function(e) { 233 return ve ? me.createElement(e) : {} 234 } 235 , be = ye 236 , _e = !o && !i(function() { 237 return 7 != Object.defineProperty(be("div"), "a", { 238 get: function() { 239 return 7 240 } 241 }).a 242 }) 243 , we = a 244 , Ae = d 245 , Ee = h 246 , ke = pe 247 , xe = Y 248 , Se = _e 249 , De = Object.getOwnPropertyDescriptor; 250 r.f = o ? De : function(e, t) { 251 if (e = Ee(e), 252 t = ke(t), 253 Se) 254 try { 255 return De(e, t) 256 } catch (e) {} 257 if (xe(e, t)) 258 return Ae(!we.f.call(e, t), e[t]) 259 } 260 ; 261 function Te(e) { 262 if (!Oe(e)) 263 throw TypeError(String(e) + " is not an object"); 264 return e 265 } 266 var Re = {} 267 , Oe = f 268 , Ce = _e 269 , Ie = Te 270 , Pe = pe 271 , Le = Object.defineProperty; 272 Re.f = o ? Le : function(e, t, n) { 273 if (Ie(e), 274 t = Pe(t), 275 Ie(n), 276 Ce) 277 try { 278 return Le(e, t, n) 279 } catch (e) {} 280 if ("get"in n || "set"in n) 281 throw TypeError("Accessors not supported"); 282 return "value"in n && (e[t] = n.value), 283 e 284 } 285 ; 286 var Be = Re 287 , Me = d 288 , Ue = o ? function(e, t, n) { 289 return Be.f(e, t, Me(1, n)) 290 } 291 : function(e, t, n) { 292 return e[t] = n, 293 e 294 } 295 , Ne = { 296 exports: {} 297 } 298 , Ge = z 299 , Fe = Function.toString; 300 "function" != typeof Ge.inspectSource && (Ge.inspectSource = function(e) { 301 return Fe.call(e) 302 } 303 ); 304 var qe, ze, Ve, Ke, He, We, $e, Ye, Qe = Ge.inspectSource, Je = Qe, Ze = n.WeakMap, Xe = "function" == typeof Ze && /native code/.test(Je(Ze)), et = U.exports, tt = Z, nt = et("keys"), rt = function(e) { 305 return nt[e] || (nt[e] = tt(e)) 306 }, it = {}, ot = f, at = Ue, st = Y, ct = z, ut = rt, dt = it, lt = "Object already initialized", ht = n.WeakMap; 307 $e = Xe || ct.state ? (qe = ct.state || (ct.state = new ht), 308 ze = qe.get, 309 Ve = qe.has, 310 Ke = qe.set, 311 He = function(e, t) { 312 if (Ve.call(qe, e)) 313 throw new TypeError(lt); 314 return t.facade = e, 315 Ke.call(qe, e, t), 316 t 317 } 318 , 319 We = function(e) { 320 return ze.call(qe, e) || {} 321 } 322 , 323 function(e) { 324 return Ve.call(qe, e) 325 } 326 ) : (dt[Ye = ut("state")] = !0, 327 He = function(e, t) { 328 if (st(e, Ye)) 329 throw new TypeError(lt); 330 return t.facade = e, 331 at(e, Ye, t), 332 t 333 } 334 , 335 We = function(e) { 336 return st(e, Ye) ? e[Ye] : {} 337 } 338 , 339 function(e) { 340 return st(e, Ye) 341 } 342 ); 343 var ft = { 344 set: He, 345 get: We, 346 has: $e, 347 enforce: function(e) { 348 return $e(e) ? We(e) : He(e, {}) 349 }, 350 getterFor: function(n) { 351 return function(e) { 352 var t; 353 if (!ot(e) || (t = We(e)).type !== n) 354 throw TypeError("Incompatible receiver, " + n + " required"); 355 return t 356 } 357 } 358 } 359 , pt = n 360 , gt = Ue 361 , mt = Y 362 , vt = G 363 , yt = Qe 364 , bt = ft.get 365 , _t = ft.enforce 366 , wt = String(String).split("String"); 367 (Ne.exports = function(e, t, n, r) { 368 var i = !!r && !!r.unsafe 369 , o = !!r && !!r.enumerable 370 , a = !!r && !!r.noTargetGet; 371 "function" == typeof n && ("string" != typeof t || mt(n, "name") || gt(n, "name", t), 372 (r = _t(n)).source || (r.source = wt.join("string" == typeof t ? t : ""))),
373 e !== pt ? (i ? !a && e[t] && (o = !0) : delete e[t], 374 o ? e[t] = n : gt(e, t, n)) : o ? e[t] = n : vt(t, n) 375 } 376 )(Function.prototype, "toString", function() { 377 return "function" == typeof this && bt(this).source || yt(this) 378 }); 379 function At(e) { 380 return 0 < e ? Tt(Dt(e), 9007199254740991) : 0 381 } 382 var Et = {} 383 , kt = Math.ceil 384 , xt = Math.floor 385 , St = function(e) { 386 return isNaN(e = +e) ? 0 : (0 < e ? xt : kt)(e) 387 } 388 , Dt = St 389 , Tt = Math.min 390 , Rt = St 391 , Ot = Math.max 392 , Ct = Math.min 393 , It = function(e, t) { 394 e = Rt(e); 395 return e < 0 ? Ot(e + t, 0) : Ct(e, t) 396 } 397 , Pt = h 398 , Lt = At 399 , jt = It 400 , Bt = function(s) { 401 return function(e, t, n) { 402 var r, i = Pt(e), o = Lt(i.length), a = jt(n, o); 403 if (s && t != t) { 404 for (; a < o; ) 405 if ((r = i[a++]) != r) 406 return !0 407 } else 408 for (; a < o; a++) 409 if ((s || a in i) && i[a] === t) 410 return s || a || 0; 411 return !s && -1 412 } 413 } 414 , Mt = { 415 includes: Bt(!0), 416 indexOf: Bt(!1) 417 } 418 , Ut = Y 419 , Nt = h 420 , Gt = Mt.indexOf 421 , Ft = it 422 , qt = function(e, t) { 423 var n, r = Nt(e), i = 0, o = []; 424 for (n in r) 425 !Ut(Ft, n) && Ut(r, n) && o.push(n); 426 for (; t.length > i; ) 427 Ut(r, n = t[i++]) && (~Gt(o, n) || o.push(n)); 428 return o 429 } 430 , e = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"] 431 , zt = qt 432 , Vt = e.concat("length", "prototype"); 433 Et.f = Object.getOwnPropertyNames || function(e) { 434 return zt(e, Vt) 435 } 436 ; 437 u = {}; 438 u.f = Object.getOwnPropertySymbols; 439 var Kt = Et 440 , Ht = u 441 , Wt = Te 442 , s = E("Reflect", "ownKeys") || function(e) { 443 var t = Kt.f(Wt(e)) 444 , n = Ht.f; 445 return n ? t.concat(n(e)) : t 446 } 447 , $t = Y 448 , Yt = s 449 , Qt = r 450 , Jt = Re 451 , S = function(e, t) { 452 for (var n = Yt(t), r = Jt.f, i = Qt.f, o = 0; o < n.length; o++) { 453 var a = n[o]; 454 $t(e, a) || r(e, a, i(t, a)) 455 } 456 } 457 , Zt = i 458 , Xt = /#|\.prototype\./ 459 , D = function(e, t) { 460 e = tn[en(e)]; 461 return e == rn || e != nn && ("function" == typeof t ? Zt(t) : !!t) 462 } 463 , en = D.normalize = function(e) { 464 return String(e).replace(Xt, ".").toLowerCase() 465 } 466 , tn = D.data = {} 467 , nn = D.NATIVE = "N" 468 , rn = D.POLYFILL = "P" 469 , T = D 470 , on = n 471 , an = r.f 472 , sn = Ue 473 , cn = Ne.exports 474 , un = G 475 , dn = S 476 , ln = T 477 , R = function(e, t) { 478 var n, r, i, o, a = e.target, s = e.global, c = e.stat; 479 if (n = s ? on : c ? on[a] || un(a, {}) : (on[a] || {}).prototype) 480 for (r in t) { 481 if (i = t[r], 482 o = e.noTargetGet ? (o = an(n, r)) && o.value : n[r], 483 !ln(s ? r : a + (c ? "." : "#") + r, e.forced) && void 0 !== o) { 484 if (typeof i == typeof o) 485 continue; 486 dn(i, o) 487 } 488 (e.sham || o && o.sham) && sn(i, "sham", !0), 489 cn(n, r, i, e) 490 } 491 } 492 , hn = qt 493 , fn = e 494 , x = Object.keys || function(e) { 495 return hn(e, fn) 496 } 497 , pn = H 498 , gn = x; 499 R({ 500 target: "Object", 501 stat: !0, 502 forced: i(function() { 503 gn(1) 504 }) 505 }, { 506 keys: function(e) { 507 return gn(pn(e)) 508 } 509 }); 510 var mn = function(e) { 511 if ("function" != typeof e) 512 throw TypeError(String(e) + " is not a function"); 513 return e 514 } 515 , vn = mn 516 , yn = function(r, i, e) { 517 if (vn(r), 518 void 0 === i) 519 return r; 520 switch (e) { 521 case 0: 522 return function() { 523 return r.call(i) 524 } 525 ; 526 case 1: 527 return function(e) { 528 return r.call(i, e) 529 } 530 ; 531 case 2: 532 return function(e, t) { 533 return r.call(i, e, t) 534 } 535 ; 536 case 3: 537 return function(e, t, n) { 538 return r.call(i, e, t, n) 539 } 540 } 541 return function() { 542 return r.apply(i, arguments) 543 } 544 } 545 , bn = m 546 , I = Array.isArray || function(e) { 547 return "Array" == bn(e) 548 } 549 , _n = f 550 , wn = I 551 , An = ce("species") 552 , F = function(e, t) { 553 return new (void 0 === (n = wn(e = e) && ("function" == typeof (n = e.constructor) && (n === Array || wn(n.prototype)) || _n(n) && null === (n = n[An])) ? void 0 : n) ? Array : n)(0 === t ? 0 : t); 554 var n 555 } 556 , En = yn 557 , kn = b 558 , xn = H 559 , Sn = At 560 , Dn = F 561 , Tn = [].push 562 , q = function(h) { 563 var f = 1 == h 564 , p = 2 == h 565 , g = 3 == h 566 , m = 4 == h 567 , v = 6 == h 568 , y = 7 == h 569 , b = 5 == h || v; 570 return function(e, t, n, r) { 571 for (var i, o, a = xn(e), s = kn(a), c = En(t, n, 3), u = Sn(s.length), d = 0, r = r || Dn, l = f ? r(e, u) : p || y ? r(e, 0) : void 0; d < u; d++) 572 if ((b || d in s) && (o = c(i = s[d], d, a), 573 h)) 574 if (f) 575 l[d] = o; 576 else if (o) 577 switch (h) { 578 case 3: 579 return !0; 580 case 5: 581 return i; 582 case 6: 583 return d; 584 case 2: 585 Tn.call(l, i) 586 } 587 else 588 switch (h) { 589 case 4: 590 return !1; 591 case 7: 592 Tn.call(l, i) 593 } 594 return v ? -1 : g || m ? m : l 595 } 596 } 597 , L = {
598 forEach: q(0), 599 map: q(1), 600 filter: q(2), 601 some: q(3), 602 every: q(4), 603 find: q(5), 604 findIndex: q(6), 605 filterReject: q(7) 606 } 607 , Rn = i 608 , On = O 609 , Cn = ce("species") 610 , ee = function(t) { 611 return 51 <= On || !Rn(function() { 612 var e = []; 613 return (e.constructor = {})[Cn] = function() { 614 return { 615 foo: 1 616 } 617 } 618 , 619 1 !== e[t](Boolean).foo 620 }) 621 } 622 , In = L.filter; 623 R({ 624 target: "Array", 625 proto: !0, 626 forced: !ee("filter") 627 }, { 628 filter: function(e) { 629 return In(this, e, 1 < arguments.length ? arguments[1] : void 0) 630 } 631 }); 632 var X = R 633 , ie = i 634 , Pn = h 635 , Ln = r.f 636 , ne = o 637 , ge = ie(function() { 638 Ln(1) 639 }); 640 X({ 641 target: "Object", 642 stat: !0, 643 forced: !ne || ge, 644 sham: !ne 645 }, { 646 getOwnPropertyDescriptor: function(e, t) { 647 return Ln(Pn(e), t) 648 } 649 }); 650 var jn = pe 651 , Bn = Re 652 , Mn = d 653 , _e = function(e, t, n) { 654 t = jn(t); 655 t in e ? Bn.f(e, t, Mn(0, n)) : e[t] = n 656 } 657 , Un = s 658 , Nn = h 659 , Gn = r 660 , Fn = _e; 661 function qn(e, t, n) { 662 return t in e ? Object.defineProperty(e, t, { 663 value: n, 664 enumerable: !0, 665 configurable: !0, 666 writable: !0 667 }) : e[t] = n, 668 e 669 } 670 function zn(e, t, n, r, i, o, a) { 671 try { 672 var s = e[o](a) 673 , c = s.value 674 } catch (e) { 675 return n(e), 676 0 677 } 678 s.done ? t(c) : Promise.resolve(c).then(r, i) 679 } 680 function Vn(s) { 681 return function() { 682 var e = this 683 , a = arguments; 684 return new Promise(function(t, n) { 685 var r = s.apply(e, a); 686 function i(e) { 687 zn(r, t, n, i, o, "next", e) 688 } 689 function o(e) { 690 zn(r, t, n, i, o, "throw", e) 691 } 692 i(void 0) 693 } 694 ) 695 } 696 } 697 function Kn(e, t) { 698 if (!(e instanceof t)) 699 throw new TypeError("Cannot call a class as a function") 700 } 701 function Hn(e, t) { 702 for (var n = 0; n < t.length; n++) { 703 var r = t[n]; 704 r.enumerable = r.enumerable || !1, 705 r.configurable = !0, 706 "value"in r && (r.writable = !0), 707 Object.defineProperty(e, r.key, r) 708 } 709 } 710 function Wn(e, t, n) { 711 return t && Hn(e.prototype, t), 712 n && Hn(e, n), 713 e 714 } 715 R({ 716 target: "Object", 717 stat: !0, 718 sham: !o 719 }, { 720 getOwnPropertyDescriptors: function(e) { 721 for (var t, n, r = Nn(e), i = Gn.f, o = Un(r), a = {}, s = 0; o.length > s; ) 722 void 0 !== (n = i(r, t = o[s++])) && Fn(a, t, n); 723 return a 724 } 725 }); 726 var $n = { 727 exports: {} 728 }; 729 !function() { 730 var t = function(a) { 731 var c, e = Object.prototype, u = e.hasOwnProperty, t = "function" == typeof Symbol ? Symbol : {}, r = t.iterator || "@@iterator", n = t.asyncIterator || "@@asyncIterator", i = t.toStringTag || "@@toStringTag"; 732 function o(e, t, n) { 733 return Object.defineProperty(e, t, { 734 value: n, 735 enumerable: !0, 736 configurable: !0, 737 writable: !0 738 }), 739 e[t] 740 } 741 try { 742 o({}, "") 743 } catch (a) { 744 o = function(e, t, n) { 745 return e[t] = n 746 } 747 } 748 function s(e, t, n, r) { 749 var i, o, a, s, t = t && t.prototype instanceof m ? t : m, t = Object.create(t.prototype), r = new x(r || []); 750 return t._invoke = (i = e, 751 o = n, 752 a = r, 753 s = l, 754 function(e, t) { 755 if (s === f) 756 throw new Error("Generator is already running"); 757 if (s === p) { 758 if ("throw" === e) 759 throw t; 760 return D() 761 } 762 for (a.method = e, 763 a.arg = t; ; ) { 764 var n = a.delegate; 765 if (n) { 766 var r = function e(t, n) { 767 var r = t.iterator[n.method]; 768 if (r === c) { 769 if (n.delegate = null, 770 "throw" === n.method) { 771 if (t.iterator.return && (n.method = "return", 772 n.arg = c, 773 e(t, n), 774 "throw" === n.method)) 775 return g; 776 n.method = "throw", 777 n.arg = new TypeError("The iterator does not provide a 'throw' method") 778 } 779 return g 780 } 781 var r = d(r, t.iterator, n.arg); 782 if ("throw" === r.type) 783 return n.method = "throw", 784 n.arg = r.arg, 785 n.delegate = null, 786 g; 787 r = r.arg;
vendor: 18,800 bytes, lines 788-1126
788 return r ? r.done ? (n[t.resultName] = r.value, 789 n.next = t.nextLoc, 790 "return" !== n.method && (n.method = "next", 791 n.arg = c), 792 n.delegate = null, 793 g) : r : (n.method = "throw", 794 n.arg = new TypeError("iterator result is not an object"), 795 n.delegate = null, 796 g) 797 }(n, a); 798 if (r) { 799 if (r === g) 800 continue; 801 return r 802 } 803 } 804 if ("next" === a.method) 805 a.sent = a._sent = a.arg; 806 else if ("throw" === a.method) { 807 if (s === l) 808 throw s = p, 809 a.arg; 810 a.dispatchException(a.arg) 811 } else 812 "return" === a.method && a.abrupt("return", a.arg); 813 s = f; 814 r = d(i, o, a); 815 if ("normal" === r.type) { 816 if (s = a.done ? p : h, 817 r.arg === g) 818 continue; 819 return { 820 value: r.arg, 821 done: a.done 822 } 823 } 824 "throw" === r.type && (s = p, 825 a.method = "throw", 826 a.arg = r.arg) 827 } 828 } 829 ), 830 t 831 } 832 function d(e, t, n) { 833 try { 834 return { 835 type: "normal", 836 arg: e.call(t, n) 837 } 838 } catch (e) { 839 return { 840 type: "throw", 841 arg: e 842 } 843 } 844 } 845 a.wrap = s; 846 var l = "suspendedStart" 847 , h = "suspendedYield" 848 , f = "executing" 849 , p = "completed" 850 , g = {}; 851 function m() {} 852 function v() {} 853 function y() {} 854 var b = {}; 855 o(b, r, function() { 856 return this 857 }); 858 t = Object.getPrototypeOf, 859 t = t && t(t(S([]))); 860 t && t !== e && u.call(t, r) && (b = t); 861 var _ = y.prototype = m.prototype = Object.create(b); 862 function w(e) { 863 ["next", "throw", "return"].forEach(function(t) { 864 o(e, t, function(e) { 865 return this._invoke(t, e) 866 }) 867 }) 868 } 869 function A(a, s) { 870 var t; 871 this._invoke = function(n, r) { 872 function e() { 873 return new s(function(e, t) { 874 !function t(e, n, r, i) { 875 e = d(a[e], a, n); 876 if ("throw" !== e.type) { 877 var o = e.arg; 878 return (n = o.value) && "object" == typeof n && u.call(n, "__await") ? s.resolve(n.__await).then(function(e) { 879 t("next", e, r, i) 880 }, function(e) { 881 t("throw", e, r, i) 882 }) : s.resolve(n).then(function(e) { 883 o.value = e, 884 r(o) 885 }, function(e) { 886 return t("throw", e, r, i) 887 }) 888 } 889 i(e.arg) 890 }(n, r, e, t) 891 } 892 ) 893 } 894 return t = t ? t.then(e, e) : e() 895 } 896 } 897 function E(e) { 898 var t = { 899 tryLoc: e[0] 900 }; 901 1 in e && (t.catchLoc = e[1]), 902 2 in e && (t.finallyLoc = e[2], 903 t.afterLoc = e[3]), 904 this.tryEntries.push(t) 905 } 906 function k(e) { 907 var t = e.completion || {}; 908 t.type = "normal", 909 delete t.arg, 910 e.completion = t 911 } 912 function x(e) { 913 this.tryEntries = [{ 914 tryLoc: "root" 915 }], 916 e.forEach(E, this), 917 this.reset(!0) 918 } 919 function S(t) { 920 if (t) { 921 var e = t[r]; 922 if (e) 923 return e.call(t); 924 if ("function" == typeof t.next) 925 return t; 926 if (!isNaN(t.length)) { 927 var n = -1 928 , e = function e() { 929 for (; ++n < t.length; ) 930 if (u.call(t, n)) 931 return e.value = t[n], 932 e.done = !1, 933 e; 934 return e.value = c, 935 e.done = !0, 936 e 937 }; 938 return e.next = e 939 } 940 } 941 return { 942 next: D 943 } 944 } 945 function D() { 946 return { 947 value: c, 948 done: !0 949 } 950 } 951 return o(_, "constructor", v.prototype = y), 952 o(y, "constructor", v), 953 v.displayName = o(y, i, "GeneratorFunction"), 954 a.isGeneratorFunction = function(e) { 955 e = "function" == typeof e && e.constructor; 956 return !!e && (e === v || "GeneratorFunction" === (e.displayName || e.name)) 957 } 958 , 959 a.mark = function(e) { 960 return Object.setPrototypeOf ? Object.setPrototypeOf(e, y) : (e.__proto__ = y, 961 o(e, i, "GeneratorFunction")), 962 e.prototype = Object.create(_), 963 e 964 } 965 , 966 a.awrap = function(e) { 967 return { 968 __await: e 969 } 970 } 971 , 972 w(A.prototype), 973 o(A.prototype, n, function() { 974 return this 975 }), 976 a.AsyncIterator = A, 977 a.async = function(e, t, n, r, i) { 978 void 0 === i && (i = Promise); 979 var o = new A(s(e, t, n, r),i); 980 return a.isGeneratorFunction(t) ? o : o.next().then(function(e) { 981 return e.done ? e.value : o.next() 982 }) 983 } 984 , 985 w(_), 986 o(_, i, "Generator"), 987 o(_, r, function() { 988 return this 989 }), 990 o(_, "toString", function() { 991 return "[object Generator]" 992 }), 993 a.keys = function(n) { 994 var e, r = []; 995 for (e in n) 996 r.push(e); 997 return r.reverse(), 998 function e() { 999 for (; r.length; ) { 1000 var t = r.pop(); 1001 if (t in n) 1002 return e.value = t, 1003 e.done = !1, 1004 e 1005 } 1006 return e.done = !0, 1007 e 1008 } 1009 } 1010 , 1011 a.values = S, 1012 x.prototype = { 1013 constructor: x, 1014 reset: function(e) { 1015 if (this.prev = 0, 1016 this.next = 0, 1017 this.sent = this._sent = c, 1018 this.done = !1, 1019 this.delegate = null, 1020 this.method = "next", 1021 this.arg = c, 1022 this.tryEntries.forEach(k), 1023 !e) 1024 for (var t in this) 1025 "t" === t.charAt(0) && u.call(this, t) && !isNaN(+t.slice(1)) && (this[t] = c) 1026 }, 1027 stop: function() { 1028 this.done = !0; 1029 var e = this.tryEntries[0].completion; 1030 if ("throw" === e.type) 1031 throw e.arg; 1032 return this.rval 1033 }, 1034 dispatchException: function(n) { 1035 if (this.done) 1036 throw n; 1037 var r = this; 1038 function e(e, t) { 1039 return o.type = "throw", 1040 o.arg = n, 1041 r.next = e, 1042 t && (r.method = "next", 1043 r.arg = c), 1044 !!t 1045 } 1046 for (var t = this.tryEntries.length - 1; 0 <= t; --t) { 1047 var i = this.tryEntries[t] 1048 , o = i.completion; 1049 if ("root" === i.tryLoc) 1050 return e("end"); 1051 if (i.tryLoc <= this.prev) { 1052 var a = u.call(i, "catchLoc") 1053 , s = u.call(i, "finallyLoc"); 1054 if (a && s) { 1055 if (this.prev < i.catchLoc) 1056 return e(i.catchLoc, !0); 1057 if (this.prev < i.finallyLoc) 1058 return e(i.finallyLoc) 1059 } else if (a) { 1060 if (this.prev < i.catchLoc) 1061 return e(i.catchLoc, !0) 1062 } else { 1063 if (!s) 1064 throw new Error("try statement without catch or finally"); 1065 if (this.prev < i.finallyLoc) 1066 return e(i.finallyLoc) 1067 } 1068 } 1069 } 1070 }, 1071 abrupt: function(e, t) { 1072 for (var n = this.tryEntries.length - 1; 0 <= n; --n) { 1073 var r = this.tryEntries[n]; 1074 if (r.tryLoc <= this.prev && u.call(r, "finallyLoc") && this.prev < r.finallyLoc) { 1075 var i = r; 1076 break 1077 } 1078 } 1079 var o = (i = i && ("break" === e || "continue" === e) && i.tryLoc <= t && t <= i.finallyLoc ? null : i) ? i.completion : {}; 1080 return o.type = e, 1081 o.arg = t, 1082 i ? (this.method = "next", 1083 this.next = i.finallyLoc, 1084 g) : this.complete(o) 1085 }, 1086 complete: function(e, t) { 1087 if ("throw" === e.type) 1088 throw e.arg; 1089 return "break" === e.type || "continue" === e.type ? this.next = e.arg : "return" === e.type ? (this.rval = this.arg = e.arg, 1090 this.method = "return", 1091 this.next = "end") : "normal" === e.type && t && (this.next = t), 1092 g 1093 }, 1094 finish: function(e) { 1095 for (var t = this.tryEntries.length - 1; 0 <= t; --t) { 1096 var n = this.tryEntries[t]; 1097 if (n.finallyLoc === e) 1098 return this.complete(n.completion, n.afterLoc), 1099 k(n), 1100 g 1101 } 1102 }, 1103 catch: function(e) { 1104 for (var t = this.tryEntries.length - 1; 0 <= t; --t) { 1105 var n = this.tryEntries[t]; 1106 if (n.tryLoc === e) { 1107 var r, i = n.completion; 1108 return "throw" === i.type && (r = i.arg, 1109 k(n)), 1110 r 1111 } 1112 } 1113 throw new Error("illegal catch attempt") 1114 }, 1115 delegateYield: function(e, t, n) { 1116 return this.delegate = { 1117 iterator: S(e), 1118 resultName: t, 1119 nextLoc: n 1120 }, 1121 "next" === this.method && (this.arg = c), 1122 g 1123 } 1124 }, 1125 a 1126 }
1126($n.exports); 1127 try { 1128 regeneratorRuntime = t 1129 } catch (e) { 1130 "object" == typeof globalThis ? globalThis.regeneratorRuntime = t : Function("r", "regeneratorRuntime = r")(t) 1131 } 1132 }(); 1133 var Yn = $n.exports 1134 , Ge = {}; 1135 Ge[ce("toStringTag")] = "z"; 1136 var Je = "[object z]" === String(Ge) 1137 , Ze = Je 1138 , Qn = m 1139 , Jn = ce("toStringTag") 1140 , Zn = "Arguments" == Qn(function() { 1141 return arguments 1142 }()) 1143 , et = Ze ? Qn : function(e) { 1144 var t; 1145 return void 0 === e ? "Undefined" : null === e ? "Null" : "string" == typeof (e = function(e, t) { 1146 try { 1147 return e[t] 1148 } catch (e) {} 1149 }(t = Object(e), Jn)) ? e : Zn ? Qn(t) : "Object" == (e = Qn(t)) && "function" == typeof t.callee ? "Arguments" : e 1150 } 1151 , Xn = et 1152 , z = Ne.exports; 1153 Je || z(Object.prototype, "toString", Je ? {}.toString : function() { 1154 return "[object " + Xn(this) + "]" 1155 } 1156 , { 1157 unsafe: !0 1158 }); 1159 function er(e, t) { 1160 this.stopped = e, 1161 this.result = t 1162 } 1163 var Xe = n.Promise 1164 , tr = Ne.exports 1165 , nr = f 1166 , rr = Te 1167 , ct = Object.setPrototypeOf || ("__proto__"in {} ? function() { 1168 var n, r = !1, e = {}; 1169 try { 1170 (n = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set).call(e, []), 1171 r = e instanceof Array 1172 } catch (n) {} 1173 return function(e, t) { 1174 return rr(e), 1175 function(e) { 1176 if (!nr(e) && null !== e) 1177 throw TypeError("Can't set " + String(e) + " as a prototype") 1178 }(t), 1179 r ? n.call(e, t) : e.__proto__ = t, 1180 e 1181 } 1182 }() : void 0) 1183 , ir = Re.f 1184 , or = Y 1185 , ar = ce("toStringTag") 1186 , ht = function(e, t, n) { 1187 e && !or(e = n ? e : e.prototype, ar) && ir(e, ar, { 1188 configurable: !0, 1189 value: t 1190 }) 1191 } 1192 , sr = E 1193 , cr = Re 1194 , ur = o 1195 , dr = ce("species") 1196 , dt = function(e) { 1197 var t = sr(e) 1198 , e = cr.f; 1199 ur && t && !t[dr] && e(t, dr, { 1200 configurable: !0, 1201 get: function() { 1202 return this 1203 } 1204 }) 1205 } 1206 , ut = {} 1207 , lr = ut 1208 , hr = ce("iterator") 1209 , fr = Array.prototype 1210 , Bt = function(e) { 1211 return void 0 !== e && (lr.Array === e || fr[hr] === e) 1212 } 1213 , pr = et 1214 , gr = ut 1215 , mr = ce("iterator") 1216 , D = function(e) { 1217 if (null != e) 1218 return e[mr] || e["@@iterator"] || gr[pr(e)] 1219 } 1220 , vr = Te 1221 , G = function(e) { 1222 var t = e.return; 1223 if (void 0 !== t) 1224 return vr(t.call(e)).value 1225 } 1226 , yr = Te 1227 , br = Bt 1228 , _r = At 1229 , wr = yn 1230 , Ar = D 1231 , Er = G 1232 , kr = ce("iterator") 1233 , xr = !1; 1234 try { 1235 var Sr = 0 1236 , Dr = { 1237 next: function() { 1238 return { 1239 done: !!Sr++ 1240 } 1241 }, 1242 return: function() { 1243 xr = !0 1244 } 1245 }; 1246 Dr[kr] = function() { 1247 return this 1248 } 1249 , 1250 Array.from(Dr, function() { 1251 throw 2 1252 }) 1253 } catch (p) {} 1254 var Tr, Rr, qt = function(e, t) { 1255 if (!t && !xr) 1256 return !1; 1257 var n = !1; 1258 try { 1259 var r = {}; 1260 r[kr] = function() { 1261 return { 1262 next: function() { 1263 return { 1264 done: n = !0 1265 } 1266 } 1267 } 1268 } 1269 , 1270 e(r) 1271 } catch (e) {} 1272 return n 1273 }, Or = Te, Cr = mn, Ir = ce("species"), b = function(e, t) { 1274 var n, e = Or(e).constructor; 1275 return void 0 === e || null == (n = Or(e)[Ir]) ? t : Cr(n) 1276 }, q = E("document", "documentElement"), ie = /(?:iphone|ipod|ipad).*applewebkit/i.test(k), X = "process" == m(n.process), Pr = n, ge = i, ne = yn, Lr = q, jr = ye, s = ie, Ge = X, Ze = Pr.setImmediate, z = Pr.clearImmediate, Br = Pr.process, Je = Pr.MessageChannel, Mr = Pr.Dispatch, Ur = 0, Nr = {}; 1277 try { 1278 Tr = Pr.location 1279 } catch (p) {} 1280 function Gr(e) { 1281 return function() { 1282 Fr(e) 1283 } 1284 } 1285 var Fr = function(e) { 1286 var t; 1287 Nr.hasOwnProperty(e) && (t = Nr[e], 1288 delete Nr[e], 1289 t()) 1290 } 1291 , et = function(e) { 1292 Fr(e.data) 1293 } 1294 , Dr = function(e) { 1295 Pr.postMessage(String(e), Tr.protocol + "//" + Tr.host) 1296 }; 1297 Ze && z || (Ze = function(e) { 1298 for (var t = [], n = arguments.length, r = 1; r < n; ) 1299 t.push(arguments[r++]); 1300 return Nr[++Ur] = function() { 1301 ("function" == typeof e ? e : Function(e)).apply(void 0, t) 1302 } 1303 , 1304 Rr(Ur), 1305 Ur 1306 } 1307 , 1308 z = function(e) { 1309 delete Nr[e] 1310 } 1311 , 1312 Ge ? Rr = function(e) { 1313 Br.nextTick(Gr(e)) 1314 } 1315 : Mr && Mr.now ? Rr = function(e) { 1316 Mr.now(Gr(e)) 1317 } 1318 : Je && !s ? (Zr = (Qr = new Je).port2, 1319 Qr.port1.onmessage = et, 1320 Rr = ne(Zr.postMessage, Zr, 1)) : Pr.addEventListener && "function" == typeof postMessage && !Pr.importScripts && Tr && "file:" !== Tr.protocol && !ge(Dr) ? (Rr = Dr, 1321 Pr.addEventListener("message", et, !1)) : Rr = "onreadystatechange"in jr("script") ? function(e) { 1322 Lr.appendChild(jr("script")).onreadystatechange = function() { 1323 Lr.removeChild(this), 1324 Fr(e) 1325 } 1326 } 1327 : function(e) { 1328 setTimeout(Gr(e), 0) 1329 } 1330 ); 1331 var qr, zr, Vr, Kr, Hr, Wr, $r, Yr, s = { 1332 set: Ze, 1333 clear: z 1334 }, Je = n, Qr = /iphone|ipod|ipad/i.test(k) && void 0 !== Je.Pebble, ne = /web0s(?!.*chrome)/i.test(k), Jr = n, Zr = r.f, Xr = s.set, ge = ie, Dr = Qr, et = ne, ei = X, Ze = Jr.MutationObserver || Jr.WebKitMutationObserver, z = Jr.document, ti = Jr.process, Je = Jr.Promise, k = Zr(Jr, "queueMicrotask"), ie = k && k.value; 1335 ie || (qr = function() { 1336 var e, t; 1337 for (ei && (e = ti.domain) && e.exit(); zr; ) { 1338 t = zr.fn, 1339 zr = zr.next; 1340 try { 1341 t() 1342 } catch (e) { 1343 throw zr ? Kr() : Vr = void 0, 1344 e 1345 } 1346 } 1347 Vr = void 0, 1348 e && e.enter() 1349 } 1350 , 1351 Kr = ge || ei || et || !Ze || !z ? !Dr && Je && Je.resolve ? (($r = Je.resolve(void 0)).constructor = Je, 1352 Yr = $r.then, 1353 function() { 1354 Yr.call($r, qr) 1355 } 1356 ) : ei ? function() { 1357 ti.nextTick(qr) 1358 } 1359 : function() { 1360 Xr.call(Jr, qr) 1361 } 1362 : (Hr = !0, 1363 Wr = z.createTextNode(""), 1364 new Ze(qr).observe(Wr, { 1365 characterData: !0 1366 }), 1367 function() { 1368 Wr.data = Hr = !Hr 1369 } 1370 )); 1371 function ni(e) { 1372 var n, r; 1373 this.promise = new e(function(e, t) { 1374 if (void 0 !== n || void 0 !== r) 1375 throw TypeError("Bad Promise constructor"); 1376 n = e, 1377 r = t 1378 } 1379 ), 1380 this.resolve = ri(n), 1381 this.reject = ri(r) 1382 } 1383 var Qr = ie || function(e) { 1384 e = { 1385 fn: e, 1386 next: void 0 1387 }; 1388 Vr && (Vr.next = e), 1389 zr || (zr = e, 1390 Kr()), 1391 Vr = e 1392 } 1393 , ne = {} 1394 , ri = mn; 1395 ne.f = function(e) { 1396 return new ni(e) 1397 } 1398 ; 1399 function ii(e, t, n) { 1400 function r(e) { 1401 return o && Er(o), 1402 new er(!0,e) 1403 } 1404 function i(e) { 1405 return h ? (yr(e), 1406 p ? g(e[0], e[1], r) : g(e[0], e[1])) : p ? g(e, r) : g(e) 1407 } 1408 var o, a, s, c, u, d, l = n && n.that, h = !(!n || !n.AS_ENTRIES), f = !(!n || !n.IS_ITERATOR), p = !(!n || !n.INT
1408ERRUPTED), g = wr(t, l, 1 + h + p); 1409 if (f) 1410 o = e; 1411 else { 1412 if ("function" != typeof (f = Ar(e))) 1413 throw TypeError("Target is not iterable"); 1414 if (br(f)) { 1415 for (a = 0, 1416 s = _r(e.length); a < s; a++) 1417 if ((c = i(e[a])) && c instanceof er) 1418 return c; 1419 return new er(!1) 1420 } 1421 o = f.call(e) 1422 } 1423 for (u = o.next; !(d = u.call(o)).done; ) { 1424 try { 1425 c = i(d.value) 1426 } catch (e) { 1427 throw Er(o), 1428 e 1429 } 1430 if ("object" == typeof c && c && c instanceof er) 1431 return c 1432 } 1433 return new er(!1) 1434 } 1435 var oi, ai, si, ci, ui = Te, di = f, li = ne, Zr = function(e, t) { 1436 if (ui(e), 1437 di(t) && t.constructor === e) 1438 return t; 1439 e = li.f(e); 1440 return (0, 1441 e.resolve)(t), 1442 e.promise 1443 }, hi = n, k = "object" == typeof window, ge = R, fi = n, et = E, Dr = Xe, Je = Ne.exports, z = ct, Ze = ht, ie = dt, pi = f, gi = mn, mi = Qe, Qe = qt, vi = b, yi = s.set, bi = Qr, _i = Zr, s = ne, wi = function(e) { 1444 try { 1445 return { 1446 error: !1, 1447 value: e() 1448 } 1449 } catch (e) { 1450 return { 1451 error: !0, 1452 value: e 1453 } 1454 } 1455 }, Qr = ft, ne = T, Ai = k, Ei = X, ki = O, xi = ce("species"), Si = "Promise", Di = Qr.get, Ti = Qr.set, Ri = Qr.getterFor(Si), X = Dr && Dr.prototype, Oi = Dr, Qr = X, Ci = fi.TypeError, Ii = fi.document, Pi = fi.process, Li = s.f, ji = Li, Bi = !!(Ii && Ii.createEvent && fi.dispatchEvent), Mi = "function" == typeof PromiseRejectionEvent, Ui = "unhandledrejection", Ni = !1, ne = ne(Si, function() { 1456 var e = mi(Oi) 1457 , t = e !== String(Oi); 1458 if (!t && 66 === ki) 1459 return !0; 1460 if (51 <= ki && /native code/.test(e)) 1461 return !1; 1462 var n = new Oi(function(e) { 1463 e(1) 1464 } 1465 ) 1466 , e = function(e) { 1467 e(function() {}, function() {}) 1468 }; 1469 return (n.constructor = {})[xi] = e, 1470 !(Ni = n.then(function() {})instanceof e) || !t && Ai && !Mi 1471 }), Qe = ne || !Qe(function(e) { 1472 Oi.all(e).catch(function() {}) 1473 }), Gi = function(e) { 1474 var t; 1475 return !(!pi(e) || "function" != typeof (t = e.then)) && t 1476 }, Fi = function(h, f) { 1477 var p; 1478 h.notified || (h.notified = !0, 1479 p = h.reactions, 1480 bi(function() { 1481 for (var r, e = h.value, t = 1 == h.state, n = 0; p.length > n; ) { 1482 var i, o, a, s = p[n++], c = t ? s.ok : s.fail, u = s.resolve, d = s.reject, l = s.domain; 1483 try { 1484 c ? (t || (2 === h.rejection && function(t) { 1485 yi.call(fi, function() { 1486 var e = t.facade; 1487 Ei ? Pi.emit("rejectionHandled", e) : qi("rejectionhandled", e, t.value) 1488 }) 1489 }(h), 1490 h.rejection = 1), 1491 !0 === c ? i = e : (l && l.enter(), 1492 i = c(e), 1493 l && (l.exit(), 1494 a = !0)), 1495 i === s.promise ? d(Ci("Promise-chain cycle")) : (o = Gi(i)) ? o.call(i, u, d) : u(i)) : d(e) 1496 } catch (e) { 1497 l && !a && l.exit(), 1498 d(e) 1499 } 1500 } 1501 h.reactions = [], 1502 h.notified = !1, 1503 f && !h.rejection && (r = h, 1504 yi.call(fi, function() { 1505 var e, t = r.facade, n = r.value; 1506 if (zi(r) && (e = wi(function() { 1507 Ei ? Pi.emit("unhandledRejection", n, t) : qi(Ui, t, n) 1508 }), 1509 r.rejection = Ei || zi(r) ? 2 : 1, 1510 e.error)) 1511 throw e.value 1512 })) 1513 })) 1514 }, qi = function(e, t, n) { 1515 var r, i; 1516 Bi ? ((r = Ii.createEvent("Event")).promise = t, 1517 r.reason = n, 1518 r.initEvent(e, !1, !0), 1519 fi.dispatchEvent(r)) : r = { 1520 promise: t, 1521 reason: n 1522 }, 1523 !Mi && (i = fi["on" + e]) ? i(r) : e === Ui && function(e, t) { 1524 var n = hi.console; 1525 n && n.error && (1 === arguments.length ? n.error(e) : n.error(e, t)) 1526 }("Unhandled promise rejection", n) 1527 }, zi = function(e) { 1528 return 1 !== e.rejection && !e.parent 1529 }, Vi = function(t, n, r) { 1530 return function(e) { 1531 t(n, e, r) 1532 } 1533 }, Ki = function(e, t, n) { 1534 e.done || (e.done = !0, 1535 (e = n ? n : e).value = t, 1536 e.state = 2, 1537 Fi(e, !0)) 1538 }, Hi = function(n, e, t) { 1539 if (!n.done) { 1540 n.done = !0, 1541 t && (n = t); 1542 try { 1543 if (n.facade === e) 1544 throw Ci("Promise can't be resolved
1544itself"); 1545 var r = Gi(e); 1546 r ? bi(function() { 1547 var t = { 1548 done: !1 1549 }; 1550 try { 1551 r.call(e, Vi(Hi, t, n), Vi(Ki, t, n)) 1552 } catch (e) { 1553 Ki(t, e, n) 1554 } 1555 }) : (n.value = e, 1556 n.state = 1, 1557 Fi(n, !1)) 1558 } catch (e) { 1559 Ki({ 1560 done: !1 1561 }, e, n) 1562 } 1563 } 1564 }; 1565 if (ne && (Qr = (Oi = function(e) { 1566 (function(e, t, n) { 1567 if (!(e instanceof t)) 1568 throw TypeError("Incorrect " + (n ? n + " " : "") + "invocation") 1569 } 1570 )(this, Oi, Si), 1571 gi(e), 1572 oi.call(this); 1573 var t = Di(this); 1574 try { 1575 e(Vi(Hi, t), Vi(Ki, t)) 1576 } catch (e) { 1577 Ki(t, e) 1578 } 1579 } 1580 ).prototype, 1581 (oi = function(e) { 1582 Ti(this, { 1583 type: Si, 1584 done: !1, 1585 notified: !1, 1586 parent: !1, 1587 reactions: [], 1588 rejection: !1, 1589 state: 0, 1590 value: void 0 1591 }) 1592 } 1593 ).prototype = function(e, t, n) { 1594 for (var r in t) 1595 tr(e, r, t[r], n); 1596 return e 1597 }(Qr, { 1598 then: function(e, t) { 1599 var n = Ri(this) 1600 , r = Li(vi(this, Oi)); 1601 return r.ok = "function" != typeof e || e, 1602 r.fail = "function" == typeof t && t, 1603 r.domain = Ei ? Pi.domain : void 0, 1604 n.parent = !0, 1605 n.reactions.push(r), 1606 0 != n.state && Fi(n, !1), 1607 r.promise 1608 }, 1609 catch: function(e) { 1610 return this.then(void 0, e) 1611 } 1612 }), 1613 ai = function() { 1614 var e = new oi 1615 , t = Di(e); 1616 this.promise = e, 1617 this.resolve = Vi(Hi, t), 1618 this.reject = Vi(Ki, t) 1619 } 1620 , 1621 s.f = Li = function(e) { 1622 return e === Oi || e === si ? new ai : ji(e) 1623 } 1624 , 1625 "function" == typeof Dr && X !== Object.prototype)) { 1626 ci = X.then, 1627 Ni || (Je(X, "then", function(e, t) { 1628 var n = this; 1629 return new Oi(function(e, t) { 1630 ci.call(n, e, t) 1631 } 1632 ).then(e, t) 1633 }, { 1634 unsafe: !0 1635 }), 1636 Je(X, "catch", Qr.catch, { 1637 unsafe: !0 1638 })); 1639 try { 1640 delete X.constructor 1641 } catch (p) {} 1642 z && z(X, Qr) 1643 } 1644 ge({ 1645 global: !0, 1646 wrap: !0, 1647 forced: ne 1648 }, { 1649 Promise: Oi 1650 }), 1651 Ze(Oi, Si, !1), 1652 ie(Si), 1653 si = et(Si), 1654 ge({ 1655 target: Si, 1656 stat: !0, 1657 forced: ne 1658 }, { 1659 reject: function(e) { 1660 var t = Li(this); 1661 return t.reject.call(void 0, e), 1662 t.promise 1663 } 1664 }), 1665 ge({ 1666 target: Si, 1667 stat: !0, 1668 forced: ne 1669 }, { 1670 resolve: function(e) { 1671 return _i(this, e) 1672 } 1673 }), 1674 ge({ 1675 target: Si, 1676 stat: !0, 1677 forced: Qe 1678 }, { 1679 all: function(e) { 1680 var s = this 1681 , t = Li(s) 1682 , c = t.resolve 1683 , u = t.reject 1684 , n = wi(function() { 1685 var r = gi(s.resolve) 1686 , i = [] 1687 , o = 0 1688 , a = 1; 1689 ii(e, function(e) { 1690 var t = o++ 1691 , n = !1; 1692 i.push(void 0), 1693 a++, 1694 r.call(s, e).then(function(e) { 1695 n || (n = !0, 1696 i[t] = e, 1697 --a || c(i)) 1698 }, u) 1699 }), 1700 --a || c(i) 1701 }); 1702 return n.error && u(n.value), 1703 t.promise 1704 }, 1705 race: function(e) { 1706 var n = this 1707 , r = Li(n) 1708 , i = r.reject 1709 , t = wi(function() { 1710 var t = gi(n.resolve); 1711 ii(e, function(e) { 1712 t.call(n, e).then(r.resolve, i) 1713 }) 1714 }); 1715 return t.error && i(t.value), 1716 r.promise 1717 } 1718 }); 1719 var Je = R 1720 , Wi = Xe 1721 , z = i 1722 , $i = E 1723 , Yi = b 1724 , Qi = Zr 1725 , X = Ne.exports; 1726 Je({ 1727 target: "Promise", 1728 proto: !0, 1729 real: !0, 1730 forced: !!Wi && z(function() { 1731 Wi.prototype.finally.call({ 1732 then: function() {} 1733 }, function() {}) 1734 }) 1735 }, { 1736 finally: function(t) { 1737 var n = Yi(this, $i("Promise")) 1738 , e = "function" == typeof t; 1739 return this.then(e ? function(e) { 1740 return Qi(n, t()).then(function() { 1741 return e 1742 }) 1743 } 1744 : t, e ? function(e) { 1745 return Qi(n, t()).then(function() { 1746 throw e 1747 }) 1748 } 1749 : t) 1750 } 1751 }), 1752 "function" == typeof Wi && (bo = $i("Promise").prototype.finally, 1753 Wi.prototype.finally !== bo && X(Wi.prototype, "finally", bo, {
1754 unsafe: !0 1755 })); 1756 function Ji(e, t) { 1757 return RegExp(e, t) 1758 } 1759 var Zi = B 1760 , Qr = function(e) { 1761 if (Zi(e)) 1762 throw TypeError("Cannot convert a Symbol value to a string"); 1763 return String(e) 1764 } 1765 , Xi = Te 1766 , Ze = function() { 1767 var e = Xi(this) 1768 , t = ""; 1769 return e.global && (t += "g"), 1770 e.ignoreCase && (t += "i"), 1771 e.multiline && (t += "m"), 1772 e.dotAll && (t += "s"), 1773 e.unicode && (t += "u"), 1774 e.sticky && (t += "y"), 1775 t 1776 } 1777 , ie = {} 1778 , et = i; 1779 ie.UNSUPPORTED_Y = et(function() { 1780 var e = Ji("a", "y"); 1781 return e.lastIndex = 2, 1782 null != e.exec("abcd") 1783 }), 1784 ie.BROKEN_CARET = et(function() { 1785 var e = Ji("^r", "gy"); 1786 return e.lastIndex = 2, 1787 null != e.exec("str") 1788 }); 1789 function eo() {} 1790 function to(e) { 1791 e.write(fo("")), 1792 e.close(); 1793 var t = e.parentWindow.Object; 1794 return e = null, 1795 t 1796 } 1797 var no, ro = Re, io = Te, oo = x, ne = o ? Object.defineProperties : function(e, t) { 1798 io(e); 1799 for (var n, r = oo(t), i = r.length, o = 0; o < i; ) 1800 ro.f(e, n = r[o++], t[n]); 1801 return e 1802 } 1803 , ao = Te, so = ne, co = e, ge = it, uo = q, lo = ye, ho = rt("IE_PROTO"), fo = function(e) { 1804 return "<script>" + e + "<\/script>" 1805 }, po = function() { 1806 try { 1807 no = new ActiveXObject("htmlfile") 1808 } catch (e) {} 1809 po = (!document.domain || !no) && function() { 1810 var e = lo("iframe"); 1811 if (e.style) 1812 return e.style.display = "none", 1813 uo.appendChild(e), 1814 e.src = String("javascript:"), 1815 (e = e.contentWindow.document).open(), 1816 e.write(fo("document.F=Object")), 1817 e.close(), 1818 e.F 1819 }() || to(no); 1820 for (var e = co.length; e--; ) 1821 delete po.prototype[co[e]]; 1822 return po() 1823 }; 1824 ge[ho] = !0; 1825 var Qe = Object.create || function(e, t) { 1826 var n; 1827 return null !== e ? (eo.prototype = ao(e), 1828 n = new eo, 1829 eo.prototype = null, 1830 n[ho] = e) : n = po(), 1831 void 0 === t ? n : so(n, t) 1832 } 1833 , Xe = i(function() { 1834 var e = RegExp(".", "string".charAt(0)); 1835 return !e.dotAll || !e.exec("\n") || "s" !== e.flags 1836 }) 1837 , Zr = i(function() { 1838 var e = RegExp("(?<a>b)", "string".charAt(5)); 1839 return "b" !== e.exec("b").groups.a || "bc" !== "b".replace(e, "$<a>c") 1840 }) 1841 , go = Qr 1842 , mo = Ze 1843 , Je = ie 1844 , z = U.exports 1845 , vo = Qe 1846 , yo = ft.get 1847 , X = Xe 1848 , bo = Zr 1849 , _o = RegExp.prototype.exec 1850 , wo = z("native-string-replace", String.prototype.replace) 1851 , Ao = _o 1852 , Eo = (et = /a/, 1853 ne = /b*/g, 1854 _o.call(et, "a"), 1855 _o.call(ne, "a"), 1856 0 !== et.lastIndex || 0 !== ne.lastIndex) 1857 , ko = Je.UNSUPPORTED_Y || Je.BROKEN_CARET 1858 , xo = void 0 !== /()??/.exec("")[1] 1859 , e = Ao = Eo || xo || ko || X || bo ? function(e) { 1860 var t, n, r, i, o, a, s = this, c = yo(s), u = go(e), d = c.raw; 1861 if (d) 1862 return d.lastIndex = s.lastIndex,
1863 f = Ao.call(d, u), 1864 s.lastIndex = d.lastIndex, 1865 f; 1866 var l = c.groups 1867 , h = ko && s.sticky 1868 , e = mo.call(s) 1869 , d = s.source 1870 , f = 0 1871 , c = u; 1872 if (h && (-1 === (e = e.replace("y", "")).indexOf("g") && (e += "g"), 1873 c = u.slice(s.lastIndex), 1874 0 < s.lastIndex && (!s.multiline || s.multiline && "\n" !== u.charAt(s.lastIndex - 1)) && (d = "(?: " + d + ")", 1875 c = " " + c, 1876 f++), 1877 t = new RegExp("^(?:" + d + ")",e)), 1878 xo && (t = new RegExp("^" + d + "$(?!\\s)",e)), 1879 Eo && (n = s.lastIndex), 1880 r = _o.call(h ? t : s, c), 1881 h ? r ? (r.input = r.input.slice(f), 1882 r[0] = r[0].slice(f), 1883 r.index = s.lastIndex, 1884 s.lastIndex += r[0].length) : s.lastIndex = 0 : Eo && r && (s.lastIndex = s.global ? r.index + r[0].length : n), 1885 xo && r && 1 < r.length && wo.call(r[0], t, function() { 1886 for (i = 1; i < arguments.length - 2; i++) 1887 void 0 === arguments[i] && (r[i] = void 0) 1888 }), 1889 r && l) 1890 for (r.groups = o = vo(null), 1891 i = 0; i < l.length; i++) 1892 o[(a = l[i])[0]] = r[a[1]]; 1893 return r 1894 } 1895 : Ao; 1896 R({ 1897 target: "RegExp", 1898 proto: !0, 1899 forced: /./.exec !== e 1900 }, { 1901 exec: e 1902 }); 1903 var So = Ne.exports 1904 , Do = e 1905 , To = i 1906 , Ro = ce 1907 , Oo = Ue 1908 , Co = Ro("species") 1909 , Io = RegExp.prototype 1910 , q = function(n, e, t, r) { 1911 var a, i = Ro(n), s = !To(function() { 1912 var e = {}; 1913 return e[i] = function() { 1914 return 7 1915 } 1916 , 1917 7 != ""[n](e) 1918 }), o = s && !To(function() { 1919 var e = !1 1920 , t = /a/; 1921 return "split" === n && ((t = {}).constructor = {}, 1922 t.constructor[Co] = function() { 1923 return t 1924 } 1925 , 1926 t.flags = "", 1927 t[i] = /./[i]), 1928 t.exec = function() { 1929 return e = !0, 1930 null 1931 } 1932 , 1933 t[i](""), 1934 !e 1935 }); 1936 s && o && !t || (a = /./[i], 1937 e = e(i, ""[n], function(e, t, n, r, i) { 1938 var o = t.exec; 1939 return o === Do || o === Io.exec ? s && !i ? { 1940 done: !0, 1941 value: a.call(t, n, r) 1942 } : { 1943 done: !0, 1944 value: e.call(n, t, r) 1945 } : { 1946 done: !1 1947 } 1948 }), 1949 So(String.prototype, n, e[0]), 1950 So(Io, i, e[1])), 1951 r && Oo(Io[i], "sham", !0) 1952 } 1953 , ye = Object.is || function(e, t) { 1954 return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t 1955 } 1956 , Po = m 1957 , Lo = e 1958 , ge = function(e, t) { 1959 var n = e.exec; 1960 if ("function" == typeof n) { 1961 n = n.call(e, t); 1962 if ("object" != typeof n) 1963 throw TypeError("RegExp exec method returned something other than an Object or null"); 1964 return n 1965 } 1966 if ("RegExp" !== Po(e)) 1967 throw TypeError("RegExp#exec called on incompatible receiver"); 1968 return Lo.call(e, t) 1969 } 1970 , jo = Te 1971 , Bo = l 1972 , Mo = ye 1973 , Uo = Qr 1974 , No = ge; 1975 q("search", function(r, i, o) { 1976 return [function(e) { 1977 var t = Bo(this) 1978 , n = null == e ? void 0 : e[r]; 1979 return void 0 !== n ? n.call(e, t) : new RegExp(e)[r](Uo(t)) 1980 } 1981 , function(e) { 1982 var t = jo(this) 1983 , n = Uo(e) 1984 , e = o(i, t, n); 1985 if (e.done) 1986 return e.value; 1987 e = t.lastIndex; 1988 Mo(e, 0) || (t.lastIndex = 0); 1989 n = No(t, n); 1990 return Mo(t.lastIndex, e) || (t.lastIndex = e), 1991 null === n ? -1 : n.index 1992 } 1993 ] 1994 }); 1995 var Go, Fo = l, qo = Qr, z = "[\t\n\v\f\r àášâ¬Ã¢â¬â¬Ã¢â¬Âââ¬âÃ¢â¬ÆÃ¢â¬âââ¬â¦Ã¢â¬â ââ¬â¡Ã¢â¬Ëââ¬â°Ã¢â¬Å ââ¬Â¯Ã¢ÂŸãâ¬â¬\u2028\u2029\ufeff]", zo = RegExp("^" + z + z + "*"), Vo = RegExp(z + z + "*$"), et = function(t) { 1996 return function(e) { 1997 e = qo(Fo(e)); 1998 return 1 & t && (e = e.replace(zo, "")), 1999 e = 2 & t ? e.replace(Vo, "") : e 2000 } 2001 }, ne = { 2002 start: et(1), 2003 end: et(2), 2004 trim: et(3) 2005 }, Je = i, Ko = "\t\n\v\f\r àášâ¬Ã¢â¬â¬Ã¢â¬Âââ¬âÃ¢â¬ÆÃ¢â¬âââ¬â¦Ã¢â¬â ââ¬â¡Ã¢â¬Ëââ¬â°Ã¢â¬Å ââ¬Â¯Ã¢ÂŸãâ¬â¬\u2028\u2029\ufeff", Ho = ne.trim; 2006 R({ 2007 target: "String", 2008 proto: !0, 2009 forced: (Go = "trim", 2010 Je(function() { 2011 return !!Ko[Go]() || "ââ¬â¹Ãâ¦Ã¡Â Ž" != "ââ¬â¹Ãâ¦Ã¡Â Ž"[Go]() || Ko[Go].name !== Go 2012 })) 2013 }, { 2014 trim: function() { 2015 return Ho(this) 2016 } 2017 }); 2018 var Wo, $o, X = { 2019 CSSRuleList: 0, 2020 CSSStyleDeclaration: 0, 2021 CSSValueList: 0, 2022 ClientRectList: 0, 2023 DOMRectList: 0, 2024 DOMStringList: 0, 2025 DOMTokenList: 1, 2026 DataTransferItemList: 0, 2027 FileList: 0, 2028 HTMLAllCollection: 0, 2029 HTMLCollection: 0, 2030 HTMLFormElement: 0, 2031 HTMLSelectElement: 0, 2032 MediaList: 0, 2033 MimeTypeArray: 0, 2034 NamedNodeMap: 0, 2035 NodeList: 1, 2036 PaintRequestList: 0, 2037 Plugin: 0, 2038 PluginArray: 0, 2039 SVGLengthList: 0, 2040 SVGNumberList: 0, 2041 SVGPathSegList: 0, 2042 SVGPointList: 0, 2043 SVGStringList: 0, 2044 SVGTransformList: 0, 2045 SourceBufferList: 0, 2046 StyleSheetList: 0, 2047 TextTrackCueList: 0, 2048 TextTrackList: 0, 2049 TouchList: 0 2050 }
2050, bo = i, Yo = L.forEach, Qo = n, ye = X, Jo = (Wo = [].forEach) && bo(function() { 2051 Wo.call(null, function() { 2052 throw 1 2053 }, 1) 2054 }) ? [].forEach : function(e) { 2055 return Yo(this, e, 1 < arguments.length ? arguments[1] : void 0) 2056 } 2057 , Zo = Ue; 2058 for ($o in ye) { 2059 var Xo = Qo[$o] 2060 , Xo = Xo && Xo.prototype; 2061 if (Xo && Xo.forEach !== Jo) 2062 try { 2063 Zo(Xo, "forEach", Jo) 2064 } catch (p) { 2065 Xo.forEach = Jo 2066 } 2067 } 2068 var ea = f 2069 , ta = ct 2070 , na = f 2071 , ra = m 2072 , ia = ce("match") 2073 , z = function(e) { 2074 var t; 2075 return na(e) && (void 0 !== (t = e[ia]) ? !!t : "RegExp" == ra(e)) 2076 } 2077 , et = o 2078 , ne = n 2079 , Je = T 2080 , oa = function(e, t, n) { 2081 var r, i; 2082 return ta && "function" == typeof (r = t.constructor) && r !== n && ea(i = r.prototype) && i !== n.prototype && ta(e, i), 2083 e 2084 } 2085 , aa = Ue 2086 , sa = Re.f 2087 , bo = Et.f 2088 , ca = z 2089 , ua = Qr 2090 , da = Ze 2091 , ye = ie 2092 , m = Ne.exports 2093 , T = i 2094 , la = Y 2095 , ha = ft.enforce 2096 , dt = dt 2097 , fa = Xe 2098 , pa = Zr 2099 , ga = ce("match") 2100 , ma = ne.RegExp 2101 , va = ma.prototype 2102 , ya = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/ 2103 , ba = /a/g 2104 , _a = /a/g 2105 , Zr = new ma(ba) !== ba 2106 , wa = ye.UNSUPPORTED_Y; 2107 if (Je("RegExp", et && (!Zr || wa || fa || pa || T(function() { 2108 return _a[ga] = !1, 2109 ma(ba) != ba || ma(_a) == _a || "/a/i" != ma(ba, "i") 2110 })))) { 2111 for (var Aa = function(e, t) { 2112 var n, r, i = this instanceof Aa, o = ca(e), a = void 0 === t, s = [], c = e; 2113 if (!i && o && a && e.constructor === Aa) 2114 return e; 2115 if ((o || e instanceof Aa) && (e = e.source, 2116 a && (t = "flags"in c ? c.flags : da.call(c))), 2117 e = void 0 === e ? "" : ua(e), 2118 t = void 0 === t ? "" : ua(t), 2119 c = e, 2120 o = t = fa && "dotAll"in ba && (n = !!t && -1 < t.indexOf("s")) ? t.replace(/s/g, "") : t, 2121 wa && "sticky"in ba && (r = !!t && -1 < t.indexOf("y")) && (t = t.replace(/y/g, "")), 2122 pa && (e = (a = function(e) { 2123 for (var t, n = e.length, r = 0, i = "", o = [], a = {}, s = !1, c = !1, u = 0, d = ""; r <= n; r++) { 2124 if ("\\" === (t = e.charAt(r))) 2125 t += e.charAt(++r); 2126 else if ("]" === t) 2127 s = !1; 2128 else if (!s) 2129 switch (!0) { 2130 case "[" === t: 2131 s = !0; 2132 break; 2133 case "(" === t: 2134 ya.test(e.slice(r + 1)) && (r += 2, 2135 c = !0), 2136 i += t, 2137 u++; 2138 continue; 2139 case ">" === t && c: 2140 if ("" === d || la(a, d)) 2141 throw new SyntaxError("Invalid capture group name"); 2142 a[d] = !0, 2143 o.push([d, u]), 2144 c = !1, 2145 d = ""; 2146 continue 2147 } 2148 c ? d += t : i += t 2149 } 2150 return [i, o] 2151 }(e))[0], 2152 s = a[1]),
2153 t = oa(ma(e, t), i ? this : va, Aa), 2154 (n || r || s.length) && (i = ha(t), 2155 n && (i.dotAll = !0, 2156 i.raw = Aa(function(e) { 2157 for (var t, n = e.length, r = 0, i = "", o = !1; r <= n; r++) 2158 "\\" !== (t = e.charAt(r)) ? o || "." !== t ? ("[" === t ? o = !0 : "]" === t && (o = !1), 2159 i += t) : i += "[\\s\\S]" : i += t + e.charAt(++r); 2160 return i 2161 }(e), o)), 2162 r && (i.sticky = !0), 2163 s.length && (i.groups = s)), 2164 e !== c) 2165 try { 2166 aa(t, "source", "" === c ? "(?:)" : c) 2167 } catch (e) {} 2168 return t 2169 }, Ea = bo(ma), ka = 0; Ea.length > ka; ) 2170 !function(t) { 2171 t in Aa || sa(Aa, t, { 2172 configurable: !0, 2173 get: function() { 2174 return ma[t] 2175 }, 2176 set: function(e) { 2177 ma[t] = e 2178 } 2179 }) 2180 }(Ea[ka++]); 2181 (va.constructor = Aa).prototype = va, 2182 m(ne, "RegExp", Aa) 2183 } 2184 dt("RegExp"); 2185 var T = Ne.exports 2186 , xa = Te 2187 , Sa = Qr 2188 , bo = i 2189 , Da = Ze 2190 , m = "toString" 2191 , Ta = RegExp.prototype 2192 , Ra = Ta.toString 2193 , ne = bo(function() { 2194 return "/a/b" != Ra.call({ 2195 source: "a", 2196 flags: "b" 2197 }) 2198 }) 2199 , dt = Ra.name != m; 2200 (ne || dt) && T(RegExp.prototype, m, function() { 2201 var e = xa(this) 2202 , t = Sa(e.source) 2203 , n = e.flags; 2204 return "/" + t + "/" + Sa(void 0 === n && e instanceof RegExp && !("flags"in Ta) ? Da.call(e) : n) 2205 }, { 2206 unsafe: !0 2207 }); 2208 var Ze = R 2209 , bo = i 2210 , Oa = I 2211 , Ca = f 2212 , Ia = H 2213 , Pa = At 2214 , La = _e 2215 , ja = F 2216 , ne = ee 2217 , dt = O 2218 , Ba = ce("isConcatSpreadable") 2219 , Ma = 9007199254740991 2220 , Ua = "Maximum allowed index exceeded" 2221 , T = 51 <= dt || !bo(function() { 2222 var e = []; 2223 return e[Ba] = !1, 2224 e.concat()[0] !== e 2225 }) 2226 , m = ne("concat"); 2227 Ze({ 2228 target: "Array", 2229 proto: !0, 2230 forced: !T || !m 2231 }, { 2232 concat: function(e) { 2233 for (var t, n, r, i = Ia(this), o = ja(i, 0), a = 0, s = -1, c = arguments.length; s < c; s++) 2234 if (function(e) { 2235 if (!Ca(e)) 2236 return !1; 2237 var t = e[Ba]; 2238 return void 0 !== t ? !!t : Oa(e) 2239 }(r = -1 === s ? i : arguments[s])) { 2240 if (a + (n = Pa(r.length)) > Ma) 2241 throw TypeError(Ua); 2242 for (t = 0; t < n; t++, 2243 a++) 2244 t in r && La(o, a, r[t]) 2245 } else { 2246 if (Ma <= a) 2247 throw TypeError(Ua); 2248 La(o, a++, r) 2249 } 2250 return o.length = a, 2251 o 2252 } 2253 }); 2254 var Na = z 2255 , F = function(e) { 2256 if (Na(e)) 2257 throw TypeError("The method doesn't accept regular expressions"); 2258 return e 2259 } 2260 , Ga = ce("match") 2261 , O = function(t) { 2262 var n = /./; 2263 try { 2264 "/./"[t](n) 2265 } catch (e) { 2266 try { 2267 return n[Ga] = !1, 2268 "/./"[t](n) 2269 } catch (t) {} 2270 } 2271 return !1 2272 } 2273 , dt = R 2274 , bo = r.f 2275 , Fa = At 2276 , qa = Qr 2277 , za = F 2278 , Va = l 2279 , ne = O 2280 , Ka = "".startsWith 2281 , Ha = Math.min 2282 , Ze = ne("startsWith"); 2283 dt({ 2284 target: "String", 2285 proto: !0, 2286 forced: !(!Ze && ((is = bo(String.prototype, "startsWith")) && !is.writable) || Ze) 2287 }, { 2288 startsWith: function(e) { 2289 var t = qa(Va(this)); 2290 za(e); 2291 var n = Fa(Ha(1 < arguments.length ? arguments[1] : void 0, t.length)) 2292 , e = qa(e); 2293 return Ka ? Ka.call(t, e, n) : t.slice(n, n + e.length) === e 2294 } 2295 }); 2296 var T = Re.f 2297 , m = Function.prototype 2298 , Wa = m.toString 2299 , $a = /^\s*function ([^ (]*)/; 2300 !o || "name"in m || T(m, "name", { 2301 configurable: !0, 2302 get: function() { 2303 try { 2304 return Wa.call(this).match($a)[1] 2305 } catch (e) { 2306 return "" 2307 } 2308 } 2309 }); 2310 var Ya = St 2311 , Qa = Qr 2312 , Ja = l
2313 , ne = function(o) { 2314 return function(e, t) { 2315 var n, r = Qa(Ja(e)), i = Ya(t), e = r.length; 2316 return i < 0 || e <= i ? o ? "" : void 0 : (t = r.charCodeAt(i)) < 55296 || 56319 < t || i + 1 === e || (n = r.charCodeAt(i + 1)) < 56320 || 57343 < n ? o ? r.charAt(i) : t : o ? r.slice(i, i + 2) : n - 56320 + (t - 55296 << 10) + 65536 2317 } 2318 } 2319 , dt = { 2320 codeAt: ne(!1), 2321 charAt: ne(!0) 2322 } 2323 , Za = dt.charAt 2324 , bo = function(e, t, n) { 2325 return t + (n ? Za(e, t).length : 1) 2326 } 2327 , Xa = H 2328 , es = Math.floor 2329 , ts = "".replace 2330 , ns = /\$([$&'`]|\d{1,2}|<[^>]*>)/g 2331 , rs = /\$([$&'`]|\d{1,2})/g 2332 , is = q 2333 , Ze = i 2334 , os = Te 2335 , as = St 2336 , ss = At 2337 , cs = Qr 2338 , us = l 2339 , ds = bo 2340 , ls = ge 2341 , hs = ce("replace") 2342 , fs = Math.max 2343 , ps = Math.min 2344 , T = "$0" === "a".replace(/./, "$0") 2345 , gs = !!/./[hs] && "" === /./[hs]("a", "$0"); 2346 is("replace", function(e, b, _) { 2347 var w = gs ? "$" : "$0"; 2348 return [function(e, t) { 2349 var n = us(this) 2350 , r = null == e ? void 0 : e[hs]; 2351 return void 0 !== r ? r.call(e, n, t) : b.call(cs(n), e, t) 2352 } 2353 , function(e, t) { 2354 var n = os(this) 2355 , r = cs(e); 2356 if ("string" == typeof t && -1 === t.indexOf(w) && -1 === t.indexOf("$<")) { 2357 e = _(b, n, r, t); 2358 if (e.done) 2359 return e.value 2360 } 2361 var i = "function" == typeof t; 2362 i || (t = cs(t)); 2363 var o, a = n.global; 2364 a && (o = n.unicode, 2365 n.lastIndex = 0); 2366 for (var s = []; ; ) { 2367 var c = ls(n, r); 2368 if (null === c) 2369 break; 2370 if (s.push(c), 2371 !a) 2372 break; 2373 "" === cs(c[0]) && (n.lastIndex = ds(r, ss(n.lastIndex), o)) 2374 } 2375 for (var u, d = "", l = 0, h = 0; h < s.length; h++) { 2376 for (var c = s[h], f = cs(c[0]), p = fs(ps(as(c.index), r.length), 0), g = [], m = 1; m < c.length; m++) 2377 g.push(void 0 === (u = c[m]) ? u : String(u)); 2378 var v, y = c.groups, y = i ? (v = [f].concat(g, p, r), 2379 void 0 !== y && v.push(y), 2380 cs(t.apply(void 0, v))) : function(o, a, s, c, u, e) { 2381 var d = s + o.length 2382 , l = c.length 2383 , t = rs; 2384 return void 0 !== u && (u = Xa(u), 2385 t = ns), 2386 ts.call(e, t, function(e, t) { 2387 var n; 2388 switch (t.charAt(0)) { 2389 case "$": 2390 return "$"; 2391 case "&": 2392 return o; 2393 case "`": 2394 return a.slice(0, s);
2395 case "'": 2396 return a.slice(d); 2397 case "<": 2398 n = u[t.slice(1, -1)]; 2399 break; 2400 default: 2401 var r = +t; 2402 if (0 == r) 2403 return e; 2404 if (l < r) { 2405 var i = es(r / 10); 2406 return 0 !== i && i <= l ? void 0 === c[i - 1] ? t.charAt(1) : c[i - 1] + t.charAt(1) : e 2407 } 2408 n = c[r - 1] 2409 } 2410 return void 0 === n ? "" : n 2411 }) 2412 }(f, r, p, g, y, t); 2413 l <= p && (d += r.slice(l, p) + y, 2414 l = p + f.length) 2415 } 2416 return d + r.slice(l) 2417 } 2418 ] 2419 }, !!Ze(function() { 2420 var e = /./; 2421 return e.exec = function() { 2422 var e = []; 2423 return e.groups = { 2424 a: "7" 2425 }, 2426 e 2427 } 2428 , 2429 "7" !== "".replace(e, "$<a>") 2430 }) || !T || gs); 2431 var m = {} 2432 , ms = h 2433 , vs = Et.f 2434 , ys = {}.toString 2435 , bs = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; 2436 m.f = function(e) { 2437 return bs && "[object Window]" == ys.call(e) ? function(e) { 2438 try { 2439 return vs(e) 2440 } catch (e) { 2441 return bs.slice() 2442 } 2443 }(e) : vs(ms(e)) 2444 } 2445 ; 2446 ne = {}; 2447 ne.f = ce; 2448 function _s(e, t) { 2449 var n = oc[e] = Gs(Xs.prototype); 2450 return Qs(n, {
2451 type: Ys, 2452 tag: e, 2453 description: t 2454 }), 2455 Rs || (n.description = t), 2456 n 2457 } 2458 function ws(e, t, n) { 2459 return e === Zs && ws(ac, t, n), 2460 Ls(e), 2461 t = Ms(t), 2462 Ls(n), 2463 Os(oc, t) ? (n.enumerable ? (Os(e, $s) && e[$s][t] && (e[$s][t] = !1), 2464 n = Gs(n, { 2465 enumerable: Ns(0, !1) 2466 })) : (Os(e, $s) || nc(e, $s, Ns(1, {})), 2467 e[$s][t] = !0), 2468 dc(e, t, n)) : nc(e, t, n) 2469 } 2470 function As(t, e) { 2471 Ls(t); 2472 var n = Bs(e) 2473 , e = Fs(n).concat(ks(n)); 2474 return Ws(e, function(e) { 2475 Rs && !Es.call(n, e) || ws(t, e, n[e]) 2476 }), 2477 t 2478 } 2479 function Es(e) { 2480 var t = Ms(e) 2481 , e = ic.call(this, t); 2482 return !(this === Zs && Os(oc, t) && !Os(ac, t)) && (!(e || !Os(this, t) || !Os(oc, t) || Os(this, $s) && this[$s][t]) || e) 2483 } 2484 function ks(e) { 2485 var t = e === Zs 2486 , e = rc(t ? ac : Bs(e)) 2487 , n = []; 2488 return Ws(e, function(e) { 2489 !Os(oc, e) || t && !Os(Zs, e) || n.push(oc[e]) 2490 }), 2491 n 2492 } 2493 var xs = n 2494 , Ss = Y 2495 , Ds = ne 2496 , Ts = Re.f 2497 , St = function(e) { 2498 var t = xs.Symbol || (xs.Symbol = {}); 2499 Ss(t, e) || Ts(t, e, { 2500 value: Ds.f(e) 2501 }) 2502 } 2503 , is = R 2504 , Ze = n 2505 , T = E 2506 , Rs = o 2507 , E = P 2508 , P = i 2509 , Os = Y 2510 , Cs = I 2511 , Is = f 2512 , Ps = B 2513 , Ls = Te 2514 , js = H 2515 , Bs = h 2516 , Ms = pe 2517 , Us = Qr 2518 , Ns = d 2519 , Gs = Qe 2520 , Fs = x 2521 , B = Et 2522 , pe = m 2523 , qs = u 2524 , x = r 2525 , Et = Re 2526 , m = a 2527 , u = Ue 2528 , r = Ne.exports 2529 , a = U.exports 2530 , zs = it 2531 , Vs = Z 2532 , Ks = ce 2533 , U = ne 2534 , Hs = St 2535 , it = ht 2536 , Z = ft 2537 , Ws = L.forEach 2538 , $s = rt("hidden") 2539 , Ys = "Symbol" 2540 , ne = Ks("toPrimitive") 2541 , Qs = Z.set 2542 , Js = Z.getterFor(Ys) 2543 , Zs = Object.prototype 2544 , Xs = Ze.Symbol 2545 , ec = T("JSON", "stringify") 2546 , tc = x.f 2547 , nc = Et.f 2548 , rc = pe.f 2549 , ic = m.f 2550 , oc = a("symbols") 2551 , ac = a("op-symbols") 2552 , sc = a("string-to-symbol-registry") 2553 , cc = a("symbol-to-string-registry") 2554 , T = a("wks") 2555 , a = Ze.QObject 2556 , uc = !a || !a.prototype || !a.prototype.findChild 2557 , dc = Rs && P(function() { 2558 return 7 != Gs(nc({}, "a", { 2559 get: function() { 2560 return nc(this, "a", { 2561 value: 7 2562 }).a 2563 } 2564 })).a 2565 }) ? function(e, t, n) { 2566 var r = tc(Zs, t); 2567 r && delete Zs[t], 2568 nc(e, t, n), 2569 r && e !== Zs && nc(Zs, t, r) 2570 } 2571 : nc 2572 , Ze = function(e, t) { 2573 var n = Bs(e) 2574 , e = Ms(t);
vendor: 5,280 bytes, lines 2575-2708
2575 if (n !== Zs || !Os(oc, e) || Os(ac, e)) { 2576 t = tc(n, e); 2577 return !t || !Os(oc, e) || Os(n, $s) && n[$s][e] || (t.enumerable = !0), 2578 t 2579 } 2580 } 2581 , a = function(e) { 2582 var e = rc(Bs(e)) 2583 , t = []; 2584 return Ws(e, function(e) { 2585 Os(oc, e) || Os(zs, e) || t.push(e) 2586 }), 2587 t 2588 }; 2589 E || (r((Xs = function() { 2590 if (this instanceof Xs) 2591 throw TypeError("Symbol is not a constructor"); 2592 var e = arguments.length && void 0 !== arguments[0] ? Us(arguments[0]) : void 0 2593 , t = Vs(e) 2594 , n = function(e) { 2595 this === Zs && n.call(ac, e), 2596 Os(this, $s) && Os(this[$s], t) && (this[$s][t] = !1), 2597 dc(this, t, Ns(1, e)) 2598 }; 2599 return Rs && uc && dc(Zs, t, { 2600 configurable: !0, 2601 set: n 2602 }), 2603 _s(t, e) 2604 } 2605 ).prototype, "toString", function() { 2606 return Js(this).tag 2607 }), 2608 r(Xs, "withoutSetter", function(e) { 2609 return _s(Vs(e), e) 2610 }), 2611 m.f = Es, 2612 Et.f = ws, 2613 x.f = Ze, 2614 B.f = pe.f = a, 2615 qs.f = ks, 2616 U.f = function(e) { 2617 return _s(Ks(e), e) 2618 } 2619 , 2620 Rs && (nc(Xs.prototype, "description", { 2621 configurable: !0, 2622 get: function() { 2623 return Js(this).description 2624 } 2625 }), 2626 r(Zs, "propertyIsEnumerable", Es, { 2627 unsafe: !0 2628 }))), 2629 is({ 2630 global: !0, 2631 wrap: !0, 2632 forced: !E, 2633 sham: !E 2634 }, { 2635 Symbol: Xs 2636 }), 2637 Ws(Fs(T), function(e) { 2638 Hs(e) 2639 }), 2640 is({ 2641 target: Ys, 2642 stat: !0, 2643 forced: !E 2644 }, { 2645 for: function(e) { 2646 var t = Us(e); 2647 if (Os(sc, t)) 2648 return sc[t]; 2649 e = Xs(t); 2650 return sc[t] = e, 2651 cc[e] = t, 2652 e 2653 }, 2654 keyFor: function(e) { 2655 if (!Ps(e)) 2656 throw TypeError(e + " is not a symbol"); 2657 if (Os(cc, e)) 2658 return cc[e] 2659 }, 2660 useSetter: function() { 2661 uc = !0 2662 }, 2663 useSimple: function() { 2664 uc = !1 2665 } 2666 }), 2667 is({ 2668 target: "Object", 2669 stat: !0, 2670 forced: !E, 2671 sham: !Rs 2672 }, { 2673 create: function(e, t) { 2674 return void 0 === t ? Gs(e) : As(Gs(e), t) 2675 }, 2676 defineProperty: ws, 2677 defineProperties: As, 2678 getOwnPropertyDescriptor: Ze 2679 }), 2680 is({ 2681 target: "Object", 2682 stat: !0, 2683 forced: !E 2684 }, { 2685 getOwnPropertyNames: a, 2686 getOwnPropertySymbols: ks 2687 }), 2688 is({ 2689 target: "Object", 2690 stat: !0, 2691 forced: P(function() { 2692 qs.f(1) 2693 }) 2694 }, { 2695 getOwnPropertySymbols: function(e) { 2696 return qs.f(js(e)) 2697 } 2698 }), 2699 ec && is({ 2700 target: "JSON", 2701 stat: !0, 2702 forced: !E || P(function() { 2703 var e = Xs(); 2704 return "[null]" != ec([e]) || "{}" != ec({ 2705 a: e 2706 }) || "{}" != ec(Object(e)) 2707 }) 2708 }, {
2709 stringify: function(e, t, n) { 2710 for (var r, i = [e], o = 1; o < arguments.length; ) 2711 i.push(arguments[o++]); 2712 if ((Is(r = t) || void 0 !== e) && !Ps(e)) 2713 return Cs(t) || (t = function(e, t) { 2714 if ("function" == typeof r && (t = r.call(this, e, t)), 2715 !Ps(t)) 2716 return t 2717 } 2718 ), 2719 i[1] = t, 2720 ec.apply(null, i) 2721 } 2722 }), 2723 Xs.prototype[ne] || u(Xs.prototype, ne, Xs.prototype.valueOf), 2724 it(Xs, Ys), 2725 zs[$s] = !0; 2726 var lc, hc, fc, pc, gc, ne = R, mc = Y, vc = f, it = Re.f, S = S, yc = n.Symbol; 2727 !o || "function" != typeof yc || "description"in yc.prototype && void 0 === yc().description || (lc = {}, 2728 S(hc = function() { 2729 var e = arguments.length < 1 || void 0 === arguments[0] ? void 0 : String(arguments[0]) 2730 , t = this instanceof hc ? new yc(e) : void 0 === e ? yc() : yc(e); 2731 return "" === e && (lc[t] = !0), 2732 t 2733 } 2734 , yc), 2735 (S = hc.prototype = yc.prototype).constructor = hc, 2736 fc = S.toString, 2737 pc = "Symbol(test)" == String(yc("test")), 2738 gc = /^Symbol\((.*)\)[^)]+$/, 2739 it(S, "description", { 2740 configurable: !0, 2741 get: function() { 2742 var e = vc(this) ? this.valueOf() : this 2743 , t = fc.call(e); 2744 if (mc(lc, e)) 2745 return ""; 2746 t = pc ? t.slice(7, -1) : t.replace(gc, "$1"); 2747 return "" === t ? void 0 : t 2748 } 2749 }), 2750 ne({ 2751 global: !0, 2752 forced: !0 2753 }, { 2754 Symbol: hc 2755 })); 2756 var ne = Qe 2757 , Re = Re 2758 , bc = ce("unscopables") 2759 , _c = Array.prototype; 2760 null == _c[bc] && Re.f(_c, bc, { 2761 configurable: !0, 2762 value: ne(null) 2763 }); 2764 var ne = function(e) { 2765 _c[bc][e] = !0 2766 } 2767 , wc = Mt.includes 2768 , Mt = ne; 2769 R({ 2770 target: "Array", 2771 proto: !0 2772 }, { 2773 includes: function(e) { 2774 return wc(this, e, 1 < arguments.length ? arguments[1] : void 0) 2775 } 2776 }), 2777 Mt("includes"); 2778 var Ac = F 2779 , Ec = l 2780 , kc = Qr; 2781 R({ 2782 target: "String", 2783 proto: !0, 2784 forced: !O("includes") 2785 }, { 2786 includes: function(e) { 2787 return !!~kc(Ec(this)).indexOf(kc(Ac(e)), 1 < arguments.length ? arguments[1] : void 0) 2788 } 2789 }); 2790 var O = R 2791 , xc = L.find 2792 , L = ne 2793 , Sc = !0; 2794 "find"in [] && Array(1).find(function() { 2795 Sc = !1 2796 }), 2797 O({ 2798 target: "Array", 2799 proto: !0, 2800 forced: Sc 2801 }, { 2802 find: function(e) { 2803 return xc(this, e, 1 < arguments.length ? arguments[1] : void 0) 2804 } 2805 }), 2806 L("find"); 2807 var Dc, Tc, Rc = "undefined" != typeof globalThis && globalThis || "undefined" != typeof self && self || void 0 !== Rc && Rc, Oc = "URLSearchParams"in Rc, Cc
vendor: 7,461 bytes, lines 2807-2938
2807= "Symbol"in Rc && "iterator"in Symbol, Ic = "FileReader"in Rc && "Blob"in Rc && function() { 2808 try { 2809 return new Blob, 2810 !0 2811 } catch (e) { 2812 return !1 2813 } 2814 }(), Pc = "FormData"in Rc, Lc = "ArrayBuffer"in Rc; 2815 function jc(e) { 2816 if ("string" != typeof e && (e = String(e)), 2817 /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e) || "" === e) 2818 throw new TypeError('Invalid character in header field name: "' + e + '"'); 2819 return e.toLowerCase() 2820 } 2821 function Bc(e) { 2822 return e = "string" != typeof e ? String(e) : e 2823 } 2824 function Mc(t) { 2825 var e = { 2826 next: function() { 2827 var e = t.shift(); 2828 return { 2829 done: void 0 === e, 2830 value: e 2831 } 2832 } 2833 }; 2834 return Cc && (e[Symbol.iterator] = function() { 2835 return e 2836 } 2837 ), 2838 e 2839 } 2840 function Uc(t) { 2841 this.map = {}, 2842 t instanceof Uc ? t.forEach(function(e, t) { 2843 this.append(t, e) 2844 }, this) : Array.isArray(t) ? t.forEach(function(e) { 2845 this.append(e[0], e[1]) 2846 }, this) : t && Object.getOwnPropertyNames(t).forEach(function(e) { 2847 this.append(e, t[e]) 2848 }, this) 2849 } 2850 function Nc(e) { 2851 if (e.bodyUsed) 2852 return Promise.reject(new TypeError("Already read")); 2853 e.bodyUsed = !0 2854 } 2855 function Gc(n) { 2856 return new Promise(function(e, t) { 2857 n.onload = function() { 2858 e(n.result) 2859 } 2860 , 2861 n.onerror = function() { 2862 t(n.error) 2863 } 2864 } 2865 ) 2866 } 2867 function Fc(e) { 2868 var t = new FileReader 2869 , n = Gc(t); 2870 return t.readAsArrayBuffer(e), 2871 n 2872 } 2873 function qc(e) { 2874 if (e.slice) 2875 return e.slice(0); 2876 var t = new Uint8Array(e.byteLength); 2877 return t.set(new Uint8Array(e)), 2878 t.buffer 2879 } 2880 function zc() { 2881 return this.bodyUsed = !1, 2882 this._initBody = function(e) { 2883 var t; 2884 this.bodyUsed = this.bodyUsed, 2885 (this._bodyInit = e) ? "string" == typeof e ? this._bodyText = e : Ic && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : Pc && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : Oc && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : Lc && Ic && (t = e) && DataView.prototype.isPrototypeOf(t) ? (this._bodyArrayBuffer = qc(e.buffer), 2886 this._bodyInit = new Blob([this._bodyArrayBuffer])) : Lc && (ArrayBuffer.prototype.isPrototypeOf(e) || Tc(e)) ? this._bodyArrayBuffer = qc(e) : this._bodyText = e = Object.prototype.toString.call(e) : this._bodyText = "", 2887 this.headers.get("content-type") || ("string" == typeof e ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : Oc && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8")) 2888 } 2889 , 2890 Ic && (this.blob = function() { 2891 var e = Nc(this); 2892 if (e) 2893 return e; 2894 if (this._bodyBlob) 2895 return Promise.resolve(this._bodyBlob); 2896 if (this._bodyArrayBuffer) 2897 return Promise.resolve(new Blob([this._bodyArrayBuffer])); 2898 if (this._bodyFormData) 2899 throw new Error("could not read FormData body as blob"); 2900 return Promise.resolve(new Blob([this._bodyText])) 2901 } 2902 , 2903 this.arrayBuffer = function() { 2904 return this._bodyArrayBuffer ? Nc(this) || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)) : Promise.resolve(this._bodyArrayBuffer)) : this.blob().then(Fc) 2905 } 2906 ), 2907 this.text = function() { 2908 var e, t, n = Nc(this); 2909 if (n) 2910 return n; 2911 if (this._bodyBlob) 2912 return e = this._bodyBlob, 2913 t = new FileReader, 2914 n = Gc(t), 2915 t.readAsText(e), 2916 n; 2917 if (this._bodyArrayBuffer) 2918 return Promise.resolve(function(e) { 2919 for (var t = new Uint8Array(e), n = new Array(t.length), r = 0; r < t.length; r++) 2920 n[r] = String.fromCharCode(t[r]); 2921 return n.join("") 2922 }(this._bodyArrayBuffer)); 2923 if (this._bodyFormData) 2924 throw new Error("could not read FormData body as text"); 2925 return Promise.resolve(this._bodyText) 2926 } 2927 , 2928 Pc && (this.formData = function() { 2929 return this.text().then(Hc) 2930 } 2931 ), 2932 this.json = function() { 2933 return this.text().then(JSON.parse) 2934 } 2935 , 2936 this 2937 } 2938 Lc && (Dc = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array
2938]"], 2939 Tc = ArrayBuffer.isView || function(e) { 2940 return e && -1 < Dc.indexOf(Object.prototype.toString.call(e)) 2941 } 2942 ), 2943 Uc.prototype.append = function(e, t) { 2944 e = jc(e), 2945 t = Bc(t); 2946 var n = this.map[e]; 2947 this.map[e] = n ? n + ", " + t : t 2948 } 2949 , 2950 Uc.prototype.delete = function(e) { 2951 delete this.map[jc(e)] 2952 } 2953 , 2954 Uc.prototype.get = function(e) { 2955 return e = jc(e), 2956 this.has(e) ? this.map[e] : null 2957 } 2958 , 2959 Uc.prototype.has = function(e) { 2960 return this.map.hasOwnProperty(jc(e)) 2961 } 2962 , 2963 Uc.prototype.set = function(e, t) { 2964 this.map[jc(e)] = Bc(t) 2965 } 2966 , 2967 Uc.prototype.forEach = function(e, t) { 2968 for (var n in this.map) 2969 this.map.hasOwnProperty(n) && e.call(t, this.map[n], n, this) 2970 } 2971 , 2972 Uc.prototype.keys = function() { 2973 var n = []; 2974 return this.forEach(function(e, t) { 2975 n.push(t) 2976 }), 2977 Mc(n) 2978 } 2979 , 2980 Uc.prototype.values = function() { 2981 var t = []; 2982 return this.forEach(function(e) { 2983 t.push(e) 2984 }), 2985 Mc(t) 2986 } 2987 , 2988 Uc.prototype.entries = function() { 2989 var n = []; 2990 return this.forEach(function(e, t) { 2991 n.push([t, e]) 2992 }), 2993 Mc(n) 2994 } 2995 , 2996 Cc && (Uc.prototype[Symbol.iterator] = Uc.prototype.entries); 2997 var Vc = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"]; 2998 function Kc(e, t) { 2999 if (!(this instanceof Kc)) 3000 throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.'); 3001 var n, r = (t = t || {}).body; 3002 if (e instanceof Kc) { 3003 if (e.bodyUsed) 3004 throw new TypeError("Already read"); 3005 this.url = e.url, 3006 this.credentials = e.credentials, 3007 t.headers || (this.headers = new Uc(e.headers)), 3008 this.method = e.method, 3009 this.mode = e.mode, 3010 this.signal = e.signal, 3011 r || null == e._bodyInit || (r = e._bodyInit, 3012 e.bodyUsed = !0) 3013 } else 3014 this.url = String(e); 3015 if (this.credentials = t.credentials || this.credentials || "same-origin", 3016 !t.headers && this.headers || (this.headers = new Uc(t.headers)), 3017 this.method = (n = t.method || this.method || "GET", 3018 e = n.toUpperCase(), 3019 -1 < Vc.indexOf(e) ? e : n), 3020 this.mode = t.mode || this.mode || null, 3021 this.signal = t.signal || this.signal, 3022 this.referrer = null, 3023 ("GET" === this.method || "HEAD" === this.method) && r) 3024 throw new TypeError("Body not allowed for GET or HEAD requests"); 3025 this._initBody(r), 3026 "GET" !== this.method && "HEAD" !== this.method || "no-store" !== t.cache && "no-cache" !== t.cache || ((t = /([?&])_=[^&]*/).test(this.url) ? this.url = this.url.replace(t, "$1_=" + (new Date).getTime()) : this.url += (/\?/.test(this.url) ? "&" : "?") + "_=" + (new Date).getTime()) 3027 } 3028 function Hc(e) { 3029 var n = new FormData; 3030 return e.trim().split("&").forEach(function(e) { 3031 var t; 3032 e && (e = (t = e.split("=")).shift().replace(/\+/g, " "), 3033 t = t.join("=").replace(/\+/g, " "), 3034 n.append(decodeURIComponent(e), decodeURIComponent(t))) 3035 }), 3036 n 3037 } 3038 function Wc(e, t) { 3039 if (!(this instanceof Wc)) 3040 throw new TypeError('Please use the "new" operator, this DOM object c
vendor: 3,622 bytes, lines 3040-3118
3040onstructor cannot be called as a function.'); 3041 t = t || {}, 3042 this.type = "default", 3043 this.status = void 0 === t.status ? 200 : t.status, 3044 this.ok = 200 <= this.status && this.status < 300, 3045 this.statusText = void 0 === t.statusText ? "" : "" + t.statusText, 3046 this.headers = new Uc(t.headers), 3047 this.url = t.url || "", 3048 this._initBody(e) 3049 } 3050 Kc.prototype.clone = function() { 3051 return new Kc(this,{ 3052 body: this._bodyInit 3053 }) 3054 } 3055 , 3056 zc.call(Kc.prototype), 3057 zc.call(Wc.prototype), 3058 Wc.prototype.clone = function() { 3059 return new Wc(this._bodyInit,{ 3060 status: this.status, 3061 statusText: this.statusText, 3062 headers: new Uc(this.headers), 3063 url: this.url 3064 }) 3065 } 3066 , 3067 Wc.error = function() { 3068 var e = new Wc(null,{ 3069 status: 0, 3070 statusText: "" 3071 }); 3072 return e.type = "error", 3073 e 3074 } 3075 ; 3076 var $c = [301, 302, 303, 307, 308]; 3077 Wc.redirect = function(e, t) { 3078 if (-1 === $c.indexOf(t)) 3079 throw new RangeError("Invalid status code"); 3080 return new Wc(null,{ 3081 status: t, 3082 headers: { 3083 location: e 3084 } 3085 }) 3086 } 3087 ; 3088 var Yc = Rc.DOMException; 3089 try { 3090 new Yc 3091 } catch (p) { 3092 (Yc = function(e, t) { 3093 this.message = e, 3094 this.name = t; 3095 e = Error(e); 3096 this.stack = e.stack 3097 } 3098 ).prototype = Object.create(Error.prototype), 3099 Yc.prototype.constructor = Yc 3100 } 3101 function Qc(r, a) { 3102 return new Promise(function(i, e) { 3103 var t = new Kc(r,a); 3104 if (t.signal && t.signal.aborted) 3105 return e(new Yc("Aborted","AbortError")); 3106 var o = new XMLHttpRequest; 3107 function n() { 3108 o.abort() 3109 } 3110 o.onload = function() { 3111 var e, n, t = { 3112 status: o.status, 3113 statusText: o.statusText, 3114 headers: (e = o.getAllResponseHeaders() || "", 3115 n = new Uc, 3116 e.replace(/\r?\n[\t ]+/g, " ").split("\r").map(function(e) { 3117 return 0 === e.indexOf("\n") ? e.substr(1, e.length) : e 3118 }
3118).forEach(function(e) { 3119 var t = e.split(":") 3120 , e = t.shift().trim(); 3121 e && (t = t.join(":").trim(), 3122 n.append(e, t)) 3123 }), 3124 n) 3125 }; 3126 t.url = "responseURL"in o ? o.responseURL : t.headers.get("X-Request-URL"); 3127 var r = "response"in o ? o.response : o.responseText; 3128 setTimeout(function() { 3129 i(new Wc(r,t)) 3130 }, 0) 3131 } 3132 , 3133 o.onerror = function() { 3134 setTimeout(function() { 3135 e(new TypeError("Network request failed")) 3136 }, 0) 3137 } 3138 , 3139 o.ontimeout = function() { 3140 setTimeout(function() { 3141 e(new TypeError("Network request failed")) 3142 }, 0) 3143 } 3144 , 3145 o.onabort = function() { 3146 setTimeout(function() { 3147 e(new Yc("Aborted","AbortError")) 3148 }, 0) 3149 } 3150 , 3151 o.open(t.method, function(t) { 3152 try { 3153 return "" === t && Rc.location.href ? Rc.location.href : t 3154 } catch (e) { 3155 return t 3156 } 3157 }(t.url), !0), 3158 "include" === t.credentials ? o.withCredentials = !0 : "omit" === t.credentials && (o.withCredentials = !1), 3159 "responseType"in o && (Ic ? o.responseType = "blob" : Lc && t.headers.get("Content-Type") && -1 !== t.headers.get("Content-Type").indexOf("application/octet-stream") && (o.responseType = "arraybuffer")), 3160 !a || "object" != typeof a.headers || a.headers instanceof Uc ? t.headers.forEach(function(e, t) { 3161 o.setRequestHeader(t, e) 3162 }) : Object.getOwnPropertyNames(a.headers).forEach(function(e) { 3163 o.setRequestHeader(e, Bc(a.headers[e])) 3164 }), 3165 t.signal && (t.signal.addEventListener("abort", n), 3166 o.onreadystatechange = function() { 3167 4 === o.readyState && t.signal.removeEventListener("abort", n) 3168 } 3169 ), 3170 o.send(void 0 === t._bodyInit ? null : t._bodyInit) 3171 } 3172 ) 3173 } 3174 Qc.polyfill = !0, 3175 Rc.fetch || (Rc.fetch = Qc, 3176 Rc.Headers = Uc, 3177 Rc.Request = Kc, 3178 Rc.Response = Wc); 3179 var Jc = "1.15.7" 3180 , L = q 3181 , Zc = z 3182 , Xc = Te 3183 , eu = l 3184 , tu = b 3185 , nu = bo 3186 , ru = At 3187 , iu = Qr 3188 , ou = ge 3189 , au = e 3190 , e = i 3191 , su = ie.UNSUPPORTED_Y 3192 , cu = [].push 3193 , uu = Math.min 3194 , du = 4294967295; 3195 L("split", function(i, p, g) { 3196 var m = "c" == "abbc".split(/(b)*/)[1] || 4 != "test".split(/(?:)/, -1).length || 2 != "ab".split(/(?:ab)*/).length || 4 != ".".split(/(.?)(.?)/).length || 1 < ".".split(/()()/).length || "".split(/.?/).length ? function(e, t) { 3197 var n = iu(eu(this)) 3198 , r = void 0 === t ? du : t >>> 0; 3199 if (0 == r) 3200 return []; 3201 if (void 0 === e) 3202 return [n]; 3203 if (!Zc(e)) 3204 return p.call(n, e, r); 3205 for (var i, o, a, s = [], t = (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.unicode ? "u" : "") + (e.sticky ? "y" : ""), c = 0, u = new RegExp(e.source,t + "g"); (i = au.call(u, n)) && !((o = u.lastIndex) > c && (s.push(n.slice(c, i.index)), 3206 1 < i.length && i.index < n.length && cu.apply(s, i.slice(1)), 3207 a = i[0].length, 3208 c = o, 3209 s.length >= r)); ) 3210 u.lastIndex === i.index && u.lastIndex++; 3211 return c === n.length ? !a && u.test("") || s.push("") : s.push(n.slice(c)), 3212 s.length > r ? s.slice(0, r) : s 3213 } 3214 : "0".split(void 0, 0).length ? function(e, t) { 3215 return void 0 === e && 0 === t ? [] : p.call(this, e, t) 3216 } 3217 : p; 3218 return [function(e, t) { 3219 var n = eu(this) 3220 , r = null == e ? void 0 : e[i]; 3221 return void 0 !== r ? r.call(e, n, t) : m.call(iu(n), e, t) 3222 } 3223 , function(e, t) { 3224 var n = Xc(this) 3225 , r = iu(e) 3226 , i = g(m, n, r, t, m !== p); 3227 if (i.done) 3228 return i.value; 3229 var e = tu(n, RegExp) 3230 , o = n.unicode 3231 , i = (n.ignoreCase ? "i" : "") + (n.multiline ? "m" : "") + (n.unicode ? "u" : "") + (su ? "g" : "y") 3232 , a = new e(su ? "^(?:" + n.source + ")" : n,i) 3233 , s = void 0 === t ? du : t >>> 0; 3234 if (0 == s) 3235 return []; 3236 if (0 === r.length) 3237 return null === ou(a, r) ? [r] : []; 3238 for (var c = 0, u = 0, d = []; u < r.length; ) { 3239 a.lastIndex = su ? 0 : u; 3240 var l, h = ou(a, su ? r.slice(u) : r); 3241 if (null === h || (l = uu(ru(a.lastIndex + (su ? u : 0)), r.length)) === c) 3242 u = nu(r, u, o); 3243 else { 3244 if (d.push(r.slice(c, u)), 3245 d.length === s) 3246 return d; 3247 for (var f = 1; f <= h.length - 1; f++) 3248 if (d.push(h[f]), 3249 d.length === s) 3250 return d; 3251 u = c = l 3252 } 3253 } 3254 return d.push(r.slice(c)), 3255 d 3256 } 3257 ] 3258 }, !!e(function() { 3259 var e = /(?:)/ 3260 , t = e.exec; 3261 e.exec = function() { 3262 return t.apply(this, arguments) 3263 } 3264 ; 3265 e = "ab".split(e); 3266 return 2 !== e.length || "a" !== e[0] || "b" !== e[1] 3267 }), su); 3268 var lu = Te 3269 , hu = At 3270 , fu = Qr 3271 , pu = l 3272 , gu = bo 3273 , mu = ge; 3274 q("match", function(r, s, c) { 3275 return [function(e) { 3276 var t = pu(this) 3277 , n = null == e ? void 0 : e[r]; 3278 return void 0 !== n ? n.call(e, t) : new RegExp(e)[r](fu(t)) 3279 } 3280 , function(e) { 3281 var t = lu(this) 3282 , n = fu(e) 3283 , e = c(s, t, n); 3284 if (e.done) 3285 return e.value; 3286 if (!t.global) 3287 return mu(t, n); 3288 for (var r = t.unicode, i = [], o = t.lastIndex = 0; null !== (a = mu(t, n)); ) {
3289 var a = fu(a[0]); 3290 "" === (i[o] = a) && (t.lastIndex = gu(n, hu(t.lastIndex), r)), 3291 o++ 3292 } 3293 return 0 === o ? null : i 3294 } 3295 ] 3296 }); 3297 var vu = {} 3298 , yu = Object.prototype.hasOwnProperty; 3299 function bu(e) { 3300 try { 3301 return decodeURIComponent(e.replace(/\+/g, " ")) 3302 } catch (e) { 3303 return null 3304 } 3305 } 3306 function _u(e) { 3307 try { 3308 return encodeURIComponent(e) 3309 } catch (e) { 3310 return null 3311 } 3312 } 3313 vu.stringify = function(e, t) { 3314 var n, r, i = []; 3315 for (r in "string" != typeof (t = t || "") && (t = "?"), 3316 e) 3317 if (yu.call(e, r)) { 3318 if ((n = e[r]) || null != n && !isNaN(n) || (n = ""), 3319 r = _u(r), 3320 n = _u(n), 3321 null === r || null === n) 3322 continue; 3323 i.push(r + "=" + n) 3324 } 3325 return i.length ? t + i.join("&") : "" 3326 } 3327 , 3328 vu.parse = function(e) { 3329 for (var t = /([^=?#&]+)=?([^&]*)/g, n = {}; i = t.exec(e); ) { 3330 var r = bu(i[1]) 3331 , i = bu(i[2]); 3332 null === r || null === i || r in n || (n[r] = i) 3333 } 3334 return n 3335 } 3336 ; 3337 function wu(e, t) { 3338 if (t = t.split(":")[0], 3339 e = +e) { 3340 switch (t) { 3341 case "http": 3342 case "ws": 3343 return 80 !== e; 3344 case "https": 3345 case "wss": 3346 return 443 !== e; 3347 case "ftp": 3348 return 21 !== e; 3349 case "gopher": 3350 return 70 !== e; 3351 case "file": 3352 return 3353 } 3354 return 0 !== e 3355 } 3356 } 3357 var Au = vu 3358 , Eu = /^[A-Za-z][A-Za-z0-9+-.]*:\/\// 3359 , ku = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i 3360 , xu = /^[a-zA-Z]:/ 3361 , Su = new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+"); 3362 function Du(e) { 3363 return (e || "").toString().replace(Su, "") 3364 } 3365 var Tu = [["#", "hash"], ["?", "query"], function(e, t) { 3366 return Cu(t.protocol) ? e.replace(/\\/g, "/") : e 3367 } 3368 , ["/", "pathname"], ["@", "auth", 1], [NaN, "host", void 0, 1, 1], [/:(\d+)$/, "port", void 0, 1], [NaN, "hostname", void 0, 1, 1]] 3369 , Ru = { 3370 hash: 1, 3371 query: 1 3372 }; 3373 function Ou(e) { 3374 var t, n = ("undefined" != typeof window ? window : void 0 !== je ? je : "undefined" != typeof self ? self : {}).location || {}, r = {}, n = typeof (e = e || n); 3375 if ("blob:" === e.protocol) 3376 r = new Pu(unescape(e.pathname),{}); 3377 else if ("string" == n) 3378 for (t in r = new Pu(e,{}), 3379 Ru) 3380 delete r[t]; 3381 else if ("object" == n) { 3382 for (t in e) 3383 t in Ru || (r[t] = e[t]); 3384 void 0 === r.slashes && (r.slashes = Eu.test(e.href)) 3385 } 3386 return r 3387 } 3388 function Cu(e) { 3389 return "file:" === e || "ftp:" === e || "http:" === e || "https:" === e || "ws:" === e || "wss:" === e 3390 } 3391 function Iu(e, t) { 3392 e = Du(e), 3393 t = t || {}; 3394 var n, r = ku.exec(e), i = r[1] ? r[1].toLowerCase() : "", o = !!r[2], a = !!r[3], e = 0; 3395 return o ? e = a ? (n = r[2] + r[3] + r[4], 3396 r[2].length + r[3].length) : (n = r[2] + r[4], 3397 r[2].length) : a ? (n = r[3] + r[4], 3398 e = r[3].length) : n = r[4], 3399 "file:" === i ? 2 <= e && (n = n.slice(2)) : Cu(i) ? n = r[4] : i ? o && (n = n.slice(2)) : 2 <= e && Cu(t.protocol) && (n = r[4]), 3400 { 3401 protocol: i, 3402 slashes: o || Cu(i), 3403 slashesCount: e, 3404 rest: n 3405 } 3406 } 3407 function Pu(e, t, n) { 3408 if (e = Du(e), 3409 !(this instanceof Pu)) 3410 return new Pu(e,t,n); 3411 var r, i, o, a, s, c = Tu.slice(), u = typeof t, d = this, l = 0; 3412 for ("object" != u && "string" != u && (n = t, 3413 t = null),
3414 n && "function" != typeof n && (n = Au.parse), 3415 r = !(u = Iu(e || "", t = Ou(t))).protocol && !u.slashes, 3416 d.slashes = u.slashes || r && t.slashes, 3417 d.protocol = u.protocol || t.protocol || "", 3418 e = u.rest, 3419 ("file:" === u.protocol && (2 !== u.slashesCount || xu.test(e)) || !u.slashes && (u.protocol || u.slashesCount < 2 || !Cu(d.protocol))) && (c[3] = [/(.*)/, "pathname"]); l < c.length; l++) 3420 "function" != typeof (o = c[l]) ? (i = o[0], 3421 s = o[1], 3422 i != i ? d[s] = e : "string" == typeof i ? ~(a = e.indexOf(i)) && (e = "number" == typeof o[2] ? (d[s] = e.slice(0, a), 3423 e.slice(a + o[2])) : (d[s] = e.slice(a), 3424 e.slice(0, a))) : (a = i.exec(e)) && (d[s] = a[1], 3425 e = e.slice(0, a.index)), 3426 d[s] = d[s] || r && o[3] && t[s] || "", 3427 o[4] && (d[s] = d[s].toLowerCase())) : e = o(e, d); 3428 n && (d.query = n(d.query)), 3429 r && t.slashes && "/" !== d.pathname.charAt(0) && ("" !== d.pathname || "" !== t.pathname) && (d.pathname = function(e, t) { 3430 if ("" === e) 3431 return t; 3432 for (var n = (t || "/").split("/").slice(0, -1).concat(e.split("/")), r = n.length, e = n[r - 1], i = !1, o = 0; r--; ) 3433 "." === n[r] ? n.splice(r, 1) : ".." === n[r] ? (n.splice(r, 1), 3434 o++) : o && (0 === r && (i = !0), 3435 n.splice(r, 1), 3436 o--); 3437 return i && n.unshift(""), 3438 "." !== e && ".." !== e || n.push(""), 3439 n.join("/") 3440 }(d.pathname, t.pathname)), 3441 "/" !== d.pathname.charAt(0) && Cu(d.protocol) && (d.pathname = "/" + d.pathname), 3442 wu(d.port, d.protocol) || (d.host = d.hostname, 3443 d.port = ""), 3444 d.username = d.password = "", 3445 d.auth && (o = d.auth.split(":"), 3446 d.username = o[0] || "", 3447 d.password = o[1] || ""), 3448 d.origin = "file:" !== d.protocol && Cu(d.protocol) && d.host ? d.protocol + "//" + d.host : "null", 3449 d.href = d.toString() 3450 } 3451 Pu.prototype = { 3452 set: function(e, t, n) { 3453 var r, i = this; 3454 switch (e) { 3455 case "query": 3456 "string" == typeof t && t.length && (t = (n || Au.parse)(t)), 3457 i[e] = t; 3458 break; 3459 case "port": 3460 i[e] = t, 3461 wu(t, i.protocol) ? t && (i.host = i.hostname + ":" + t) : (i.host = i.hostname, 3462 i[e] = ""); 3463 break; 3464 case "hostname": 3465 i[e] = t, 3466 i.port && (t += ":" + i.port), 3467 i.host = t; 3468 break; 3469 case "host": 3470 i[e] = t, 3471 /:\d+$/.test(t) ? (t = t.split(":"), 3472 i.port = t.pop(), 3473 i.hostname = t.join(":")) : (i.hostname = t, 3474 i.port = ""); 3475 break; 3476 case "protocol": 3477 i.protocol = t.toLowerCase(), 3478 i.slashes = !n; 3479 break; 3480 case "pathname": 3481 case "hash": 3482 t ? (r = "pathname" === e ? "/" : "#", 3483 i[e] = t.charAt(0) !== r ? r + t : t) : i[e] = t; 3484 break; 3485 default: 3486 i[e] = t 3487 } 3488 for (var o = 0; o < Tu.length; o++) { 3489 var a = Tu[o]; 3490 a[4] && (i[a[1]] = i[a[1]].toLowerCase()) 3491 } 3492 return i.origin = "file:" !== i.protocol && Cu(i.protocol) && i.host ? i.protocol + "//" + i.host : "null", 3493 i.href = i.toString(), 3494 i 3495 }, 3496 toString: function(e) { 3497 e && "function" == typeof e || (e = Au.stringify); 3498 var t = this 3499 , n = t.protocol; 3500 n && ":" !== n.charAt(n.length - 1) && (n += ":"); 3501 n += t.slashes || Cu(t.protocol) ? "//" : ""; 3502 return t.username && (n += t.username, 3503 t.password && (n += ":" + t.password), 3504 n += "@"), 3505 n += t.host + t.pathname, 3506 (e = "object" == typeof t.query ? e(t.query) : t.query) && (n += "?" !== e.charAt(0) ? "?" + e : e), 3507 t.hash && (n += t.hash), 3508 n 3509 } 3510 }, 3511 Pu.extractProtocol = Iu, 3512 Pu.location = Ou, 3513 Pu.trimLeft = Du, 3514 Pu.qs = Au; 3515 var Lu = Pu 3516 , q = { 3517 exports: {} 3518 }; 3519 !function(e, t) { 3520 var r = "__lodash_hash_undefined__" 3521 , c = 9007199254740991 3522 , p = "[object Arguments]" 3523 , g = "[object Boolean]" 3524 , m = "[object Date]" 3525 , v = "[object Function]" 3526 , y = "[object GeneratorFunction]" 3527 , b = "[object Map]" 3528 , _ = "[object Number]" 3529 , w = "[object Object]" 3530 , n = "[object Promise]" 3531 , A = "[object RegExp]" 3532 , E = "[object Set]" 3533 , k = "[object String]" 3534 , x = "[object Symbol]" 3535 , i = "[object WeakMap]" 3536 , S = "[object ArrayBuffer]" 3537 , D = "[object DataView]" 3538 , T = "[object Float32Array]"
3539 , R = "[object Float64Array]" 3540 , O = "[object Int8Array]" 3541 , C = "[object Int16Array]" 3542 , I = "[object Int32Array]" 3543 , P = "[object Uint8Array]" 3544 , L = "[object Uint8ClampedArray]" 3545 , j = "[object Uint16Array]" 3546 , B = "[object Uint32Array]" 3547 , M = /\w*$/ 3548 , o = /^\[object .+?Constructor\]$/ 3549 , u = /^(?:0|[1-9]\d*)$/ 3550 , U = {}; 3551 U[p] = U["[object Array]"] = U[S] = U[D] = U[g] = U[m] = U[T] = U[R] = U[O] = U[C] = U[I] = U[b] = U[_] = U[w] = U[A] = U[E] = U[k] = U[x] = U[P] = U[L] = U[j] = U[B] = !0, 3552 U["[object Error]"] = U[v] = U[i] = !1; 3553 var a = "object" == typeof je && je && je.Object === Object && je 3554 , s = "object" == typeof self && self && self.Object === Object && self 3555 , d = a || s || Function("return this")() 3556 , l = t && !t.nodeType && t 3557 , h = l && e && !e.nodeType && e 3558 , f = h && h.exports === l; 3559 function N(e, t) { 3560 return e.set(t[0], t[1]), 3561 e 3562 } 3563 function G(e, t) { 3564 return e.add(t), 3565 e 3566 } 3567 function F(e, t, n, r) { 3568 var i = -1 3569 , o = e ? e.length : 0; 3570 for (r && o && (n = e[++i]); ++i < o; ) 3571 n = t(n, e[i], i, e); 3572 return n 3573 } 3574 function q(e) { 3575 var t = !1; 3576 if (null != e && "function" != typeof e.toString) 3577 try { 3578 t = !!(e + "") 3579 } catch (e) {} 3580 return t 3581 } 3582 function z(e) { 3583 var n = -1 3584 , r = Array(e.size); 3585 return e.forEach(function(e, t) { 3586 r[++n] = [t, e] 3587 }), 3588 r 3589 } 3590 function V(t, n) { 3591 return function(e) { 3592 return t(n(e)) 3593 } 3594 } 3595 function K(e) { 3596 var t = -1 3597 , n = Array(e.size); 3598 return e.forEach(function(e) { 3599 n[++t] = e 3600 }), 3601 n 3602 } 3603 var a = Array.prototype 3604 , s = Function.prototype 3605 , H = Object.prototype 3606 , t = d["__core-js_shared__"] 3607 , W = (h = /[^.]+$/.exec(t && t.keys && t.keys.IE_PROTO || "")) ? "Symbol(src)_1." + h : "" 3608 , $ = s.toString 3609 , Y = H.hasOwnProperty 3610 , Q = H.toString 3611 , J = RegExp("^" + $.call(Y).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$") 3612 , l = f ? d.Buffer : void 0 3613 , t = d.Symbol 3614 , Z = d.Uint8Array 3615 , X = V(Object.getPrototypeOf, Object) 3616 , ee = Object.create 3617 , te = H.propertyIsEnumerable 3618 , ne = a.splice 3619 , h = Object.getOwnPropertySymbols 3620 , s = l ? l.isBuffer : void 0 3621 , re = V(Object.keys, Object) 3622 , f = Ee(d, "DataView") 3623 , ie = Ee(d, "Map") 3624 , a = Ee(d, "Promise") 3625 , l = Ee(d, "Set") 3626 , d = Ee(d, "WeakMap") 3627 , oe = Ee(Object, "create") 3628 , ae = De(f) 3629 , se = De(ie) 3630 , ce = De(a) 3631 , ue = De(l) 3632 , de = De(d) 3633 , t = t ? t.prototype : void 0 3634 , le = t ? t.valueOf : void 0; 3635 function he(e) { 3636 var t = -1 3637 , n = e ? e.length : 0; 3638 for (this.clear(); ++t < n; ) { 3639 var r = e[t]; 3640 this.set(r[0], r[1]) 3641 } 3642 } 3643 function fe(e) { 3644 var t = -1 3645 , n = e ? e.length : 0; 3646 for (this.clear(); ++t < n; ) { 3647 var r = e[t]; 3648 this.set(r[0], r[1]) 3649 } 3650 } 3651 function pe(e) { 3652 var t = -1 3653 , n = e ? e.length : 0; 3654 for (this.clear(); ++t < n; ) { 3655 var r = e[t]; 3656 this.set(r[0], r[1]) 3657 } 3658 } 3659 function ge(e) { 3660 this.__data__ = new fe(e) 3661 } 3662 function me(e, t) { 3663 var n, r, i, o = Re(e) || (r = n = e) && "object" == typeof r && Oe(r) && Y.call(n, "callee") && (!te.call(n, "callee") || Q.call(n) == p) ? function(e, t) { 3664 for (var n = -1, r = Array(e); ++n < e; ) 3665 r[n] = t(n); 3666 return r 3667 }(e.length, String) : [], a = o.length, s = !!a; 3668 for (i in e) 3669 !t && !Y.call(e, i) || s && ("length" == i || function e(t, n) { 3670 return !!(n = null == n ? c : n) && ("number" == typeof t || u.test(t)) && -1 < t && t % 1 == 0 && t < n 3671 }(i, a)) || o.push(i); 3672 return o 3673 } 3674 function ve(e, t, n) { 3675 var r = e[t]; 3676 Y.call(e, t) && Te(r, n) && (void 0 !== n || t in e) || (e[t] = n) 3677 } 3678 function ye(e, t) { 3679 for (var n = e.length; n--; ) 3680 if (Te(e[n][0], t)) 3681 return n; 3682 return -1 3683 } 3684 function be(o, a, s, c, e, t, u) { 3685 var d; 3686 if (void 0 !== (d = c ? t ? c(o, e, t, u) : c(o) : d)) 3687 return d; 3688 if (!Pe(o)) 3689 return o; 3690 var n, r = Re(o); 3691 if (r) { 3692 if (e = (n = o).length, 3693 i = n.constructor(e), 3694 e && "string" == typeof n[0] && Y.call(n, "index") && (i.index = n.index, 3695 i.input = n.input), 3696 d = i, 3697 !a) 3698 return function(e, t) { 3699 var n = -1 3700 , r = e.length; 3701 for (t = t || Array(r); ++n < r; ) 3702 t[n] = e[n]; 3703 return t 3704 }(o, d) 3705 } else { 3706 var l = xe(o) 3707 , i = l == v || l == y; 3708 if (Ce(o)) 3709 return function(e) { 3710 if (a) 3711 return e.slice(); 3712 var t = new e.constructor(e.length); 3713 return e.copy(t), 3714 t 3715 }(o); 3716 if (l == w || l == p || i && !t) { 3717 if (q(o)) 3718 return t ? o : {}; 3719 if (d = "function" != typeof (i = i ? {} : o).constructor || Se(i) ? {}
3719 : Pe(i = X(i)) ? ee(i) : {}, 3720 !a) 3721 return i = o, 3722 f = (f = d) && we(o, Le(o), f), 3723 we(i, ke(i), f) 3724 } else { 3725 if (!U[l]) 3726 return t ? o : {}; 3727 d = function(e, t, n) { 3728 var r, i, o, a, s = e.constructor; 3729 switch (l) { 3730 case S: 3731 return _e(e); 3732 case g: 3733 case m: 3734 return new s(+e); 3735 case D: 3736 return o = e, 3737 a = n ? _e(o.buffer) : o.buffer, 3738 new o.constructor(a,o.byteOffset,o.byteLength); 3739 case T: 3740 case R: 3741 case O: 3742 case C: 3743 case I: 3744 case P: 3745 case L: 3746 case j: 3747 case B: 3748 return a = e, 3749 o = n ? _e(a.buffer) : a.buffer, 3750 new a.constructor(o,a.byteOffset,a.length); 3751 case b: 3752 return i = e, 3753 F(n ? t(z(i), !0) : z(i), N, new i.constructor); 3754 case _: 3755 case k: 3756 return new s(e); 3757 case A: 3758 return (r = new (i = e).constructor(i.source,M.exec(i))).lastIndex = i.lastIndex, 3759 r; 3760 case E: 3761 return r = e, 3762 F(n ? t(K(r), !0) : K(r), G, new r.constructor); 3763 case x: 3764 return le ? Object(le.call(e)) : {} 3765 } 3766 }(o, be, a) 3767 } 3768 } 3769 var h, f = (u = u || new ge).get(o); 3770 return f || (u.set(o, d), 3771 function(e) { 3772 for (var t, n, r = -1, i = e ? e.length : 0; ++r < i && !1 !== (t = e[r], 3773 n = r, 3774 h && (t = o[n = t]), 3775 void ve(d, n, be(t, a, s, c, n, o, u))); ) 3776 ; 3777 }((h = !r ? s ? (t = ke, 3778 r = Le(f = o), 3779 Re(f) ? r : function(e, t) { 3780 for (var n = -1, r = t.length, i = e.length; ++n < r; ) 3781 e[i + n] = t[n]; 3782 return e 3783 }(r, t(f))) : Le(o) : h) || o), 3784 d) 3785 } 3786 function _e(e) { 3787 var t = new e.constructor(e.byteLength); 3788 return new Z(t).set(new Z(e)), 3789 t 3790 } 3791 function we(e, t, n, r) { 3792 n = n || {};
3793 for (var i = -1, o = t.length; ++i < o; ) { 3794 var a = t[i] 3795 , s = r ? r(n[a], e[a], a, n, e) : void 0; 3796 ve(n, a, void 0 === s ? e[a] : s) 3797 } 3798 return n 3799 } 3800 function Ae(e, t) { 3801 var n = e.__data__; 3802 return ("string" == (e = typeof t) || "number" == e || "symbol" == e || "boolean" == e ? "__proto__" !== t : null === t) ? n["string" == typeof t ? "string" : "hash"] : n.map 3803 } 3804 function Ee(e, t) { 3805 t = null == e ? void 0 : e[t]; 3806 return function e(t) { 3807 return Pe(t) && !(W && W in t) && (Ie(t) || q(t) ? J : o).test(De(t)) 3808 }(t) ? t : void 0 3809 } 3810 he.prototype.clear = function() { 3811 this.__data__ = oe ? oe(null) : {} 3812 } 3813 , 3814 he.prototype.delete = function(e) { 3815 return this.has(e) && delete this.__data__[e] 3816 } 3817 , 3818 he.prototype.get = function(e) { 3819 var t = this.__data__; 3820 if (oe) { 3821 var n = t[e]; 3822 return n === r ? void 0 : n 3823 } 3824 return Y.call(t, e) ? t[e] : void 0 3825 } 3826 , 3827 he.prototype.has = function(e) { 3828 var t = this.__data__; 3829 return oe ? void 0 !== t[e] : Y.call(t, e) 3830 } 3831 , 3832 he.prototype.set = function(e, t) { 3833 return this.__data__[e] = oe && void 0 === t ? r : t, 3834 this 3835 } 3836 , 3837 fe.prototype.clear = function() { 3838 this.__data__ = [] 3839 } 3840 , 3841 fe.prototype.delete = function(e) { 3842 var t = this.__data__ 3843 , e = ye(t, e); 3844 return !(e < 0 || (e == t.length - 1 ? t.pop() : ne.call(t, e, 1), 3845 0)) 3846 } 3847 , 3848 fe.prototype.get = function(e) { 3849 var t = this.__data__ 3850 , e = ye(t, e); 3851 return e < 0 ? void 0 : t[e][1] 3852 } 3853 , 3854 fe.prototype.has = function(e) { 3855 return -1 < ye(this.__data__, e) 3856 } 3857 , 3858 fe.prototype.set = function(e, t) { 3859 var n = this.__data__ 3860 , r = ye(n, e); 3861 return r < 0 ? n.push([e, t]) : n[r][1] = t, 3862 this 3863 } 3864 , 3865 pe.prototype.clear = function() { 3866 this.__data__ = { 3867 hash: new he, 3868 map: new (ie || fe), 3869 string: new he 3870 } 3871 } 3872 , 3873 pe.prototype.delete = function(e) { 3874 return Ae(this, e).delete(e) 3875 } 3876 , 3877 pe.prototype.get = function(e) { 3878 return Ae(this, e).get(e) 3879 } 3880 , 3881 pe.prototype.has = function(e) { 3882 return Ae(this, e).has(e) 3883 } 3884 , 3885 pe.prototype.set = function(e, t) { 3886 return Ae(this, e).set(e, t), 3887 this 3888 } 3889 , 3890 ge.prototype.clear = function() { 3891 this.__data__ = new fe 3892 } 3893 , 3894 ge.prototype.delete = function(e) { 3895 return this.__data__.delete(e) 3896 } 3897 , 3898 ge.prototype.get = function(e) { 3899 return this.__data__.get(e) 3900 } 3901 , 3902 ge.prototype.has = function(e) { 3903 return this.__data__.has(e) 3904 } 3905 , 3906 ge.prototype.set = function(e, t) { 3907 var n = this.__data__; 3908 if (n instanceof fe) { 3909 var r = n.__data__; 3910 if (!ie || r.length < 199) 3911 return r.push([e, t]), 3912 this; 3913 n = this.__data__ = new pe(r) 3914 } 3915 return n.set(e, t), 3916 this 3917 } 3918 ; 3919 var ke = h ? V(h, Object) : function() { 3920 return [] 3921 } 3922 , xe = function(e) { 3923 return Q.call(e) 3924 }; 3925 function Se(e) { 3926 var t = e && e.constructor; 3927 return e === ("function" == typeof t && t.prototype || H) 3928 } 3929 function De(e) { 3930 if (null != e) { 3931 try { 3932 return $.call(e) 3933 } catch (e) {} 3934 try { 3935 return e + "" 3936 } catch (e) {} 3937 } 3938 return "" 3939 } 3940 function Te(e, t) { 3941 return e === t || e != e && t != t 3942 } 3943 (f && xe(new f(new ArrayBuffer(1))) != D || ie && xe(new ie) != b || a && xe(a.resolve()) != n || l && xe(new l) != E || d && xe(new d) != i) && (xe = function(e) { 3944 var t = Q.call(e) 3945 , e = t == w ? e.constructor : void 0 3946 , e = e ? De(e) : void 0; 3947 if (e) 3948 switch (e) { 3949 case ae: 3950 return D; 3951 case se: 3952 return b; 3953 case ce: 3954 return n; 3955 case ue: 3956 return E; 3957 case de: 3958 return i 3959 } 3960 return t 3961 } 3962 ); 3963 var Re = Array.isArray; 3964 function Oe(e) { 3965 return null != e && ("number" == typeof (t = e.length) && -1 < t && t % 1 == 0 && t <= c) && !Ie(e); 3966 var t 3967 } 3968 var Ce = s || function() { 3969 return !1 3970 } 3971 ; 3972 function Ie(e) { 3973 e = Pe(e) ? Q.call(e) : ""; 3974 return e == v || e == y 3975 } 3976 function Pe(e) { 3977 var t = typeof e; 3978 return e && ("object" == t || "function" == t) 3979 } 3980 function Le(e) { 3981 return (Oe(e) ? me : function(e) { 3982 if (!Se(e)) 3983 return re(e); 3984 var t, n = []; 3985 for (t in Object(e)) 3986 Y.call(e, t) && "constructor" != t && n.push(t); 3987 return n 3988 } 3989 )(e) 3990 } 3991 e.exports = function(e) { 3992 return be(e, !0, !0) 3993 } 3994 }(q, q.exports); 3995 var ju = q.exports; 3996 function Bu(e) { 3997 return "[object Object]" === Object.prototype.toString.call(e) 3998 } 3999 function Mu(e) { 4000 return !1 !== Bu(e) && (void 0 === (e = e.constructor) || !1 !== Bu(e = e.prototype) && !1 !== e.hasOwnProperty("isPrototypeOf")) 4001 } 4002 function Uu(e) { 4003 if (e) { 4004 var t = Vu.call(e); 4005 return "[object Function]" === t || "function" == typeof e && "[object RegExp]" !== t || "undefined" != typeof window && (e === window.setTimeout || e === window.alert || e === window.confirm || e === window.prompt) 4006 } 4007 } 4008 var Nu = String.prototype.valueOf 4009 , Gu = Object.prototype.toString 4010 , Fu = function() { 4011 if ("function" != typeof Symbol || "function" != typeof Object.getOwnPropertySymbols) 4012 return !1; 4013 if ("symbol" == typeof Symbol.iterator) 4014 return !0; 4015 var e = {} 4016 , t = Symbol("test") 4017 , n = Object(t); 4018 if ("string" == typeof t) 4019 return !1; 4020 if ("[object Symbol]" !== Object.prototype.toString.call(t)) 4021 return !1; 4022 if ("[object Symbol]" !== Object.prototype.toString.call(n)) 4023 return !1; 4024 for (t in e[t] = 42, 4025 e) 4026 return !1; 4027 if ("function" == typeof Object.keys && 0 !== Object.keys(e).length) 4028 return !1; 4029 if ("function" == typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(e).length) 4030 return !1; 4031 n = Object.getOwnPropertySymbols(e); 4032 if (1 !== n.length || n[0] !== t) 4033 return !1; 4034 if (!Object.prototype.propertyIsEnumerable.call(e, t)) 4035 return !1; 4036 if ("function" == typeof Object.getOwnPropertyDescriptor) { 4037 e = Object.getOwnPropertyDescriptor(e, t); 4038 if (42 !== e.value || !0 !== e.enumerable) 4039 return !1 4040 } 4041 return !0 4042 }() && !!Symbol.toStringTag 4043 , q = Array.isArray 4044 , qu = Object.prototype.toString 4045 , zu = q || function(e) { 4046 return !!e && "[object Array]" == qu.call(e) 4047 } 4048 , Vu = Object.prototype.toString 4049 , q = { 4050 exports: {} 4051 } 4052 , Ku = q 4053 , Hu = q.exports; 4054 (function(i, l) { 4055 function o(e, t) { 4056 if ("object" == typeof e && (t = e, 4057 e = l), 4058 !(this instanceof o)) 4059 return new o(e,t).getResult(); 4060 var n = e || (void 0 !== i && i.navigator && i.navigator.userAgent ? i.navigator.userAgent : "") 4061 , r = t ? v.extend(_, t) : _; 4062 return this.getBrowser = function() { 4063 var e = { 4064 name: l, 4065 version: l 4066 }; 4067 return y.rgx.call(e, n, r.browser), 4068 e.major = v.major(e.version), 4069 e 4070 } 4071 , 4072 this.getCPU = function() { 4073 var e = { 4074 architecture: l 4075 }; 4076 return y.rgx.call(e, n, r.cpu), 4077 e 4078 } 4079 , 4080 this.getDevice = function() { 4081 var e = { 4082 vendor: l, 4083 model: l, 4084 type: l 4085 }; 4086 return y.rgx.call(e, n, r.device), 4087 e 4088 } 4089 , 4090 this.getEngine = function() { 4091 var e = { 4092 name: l, 4093 version: l 4094 }; 4095 return y.rgx.call(e, n, r.engine), 4096 e 4097 } 4098 , 4099 this.getOS = function() { 4100 var e = { 4101 name: l, 4102 version: l 4103 }; 4104 return y.rgx.call(e, n, r.os), 4105 e 4106 } 4107 , 4108 this.getResult = function() { 4109 return { 4110 ua: this.getUA(), 4111 browser: this.getBrowser(), 4112 engine: this.getEngine(), 4113 os: this.getOS(), 4114 device: this.getDevice(), 4115 cpu: this.getCPU() 4116 } 4117 } 4118 , 4119 this.getUA = function() { 4120 return n 4121 } 4122 , 4123 this.setUA = function(e) { 4124 return n = typeof e == a && 255 < e.length ? v.trim(e, 255) : e, 4125 this 4126 } 4127 , 4128 this.setUA(n), 4129 this 4130 } 4131 var h = "function" 4132 , a = "string" 4133 , e = "model" 4134 , t = "name" 4135 , n = "type" 4136 , r = "vendor" 4137 , s = "version" 4138 , c = "architecture" 4139 , u = "console" 4140 , d = "mobile" 4141
4141 , f = "tablet" 4142 , p = "smarttv" 4143 , g = "wearable" 4144 , m = "embedded" 4145 , v = { 4146 extend: function(e, t) { 4147 var n, r = {}; 4148 for (n in e) 4149 t[n] && t[n].length % 2 == 0 ? r[n] = t[n].concat(e[n]) : r[n] = e[n]; 4150 return r 4151 }, 4152 has: function(e, t) { 4153 return typeof e == a && -1 !== t.toLowerCase().indexOf(e.toLowerCase()) 4154 }, 4155 lowerize: function(e) { 4156 return e.toLowerCase() 4157 }, 4158 major: function(e) { 4159 return typeof e == a ? e.replace(/[^\d\.]/g, "").split(".")[0] : l 4160 }, 4161 trim: function(e, t) { 4162 return e = e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""), 4163 void 0 === t ? e : e.substring(0, 255) 4164 } 4165 } 4166 , y = { 4167 rgx: function(e, t) { 4168 for (var n, r, i, o, a, s = 0; s < t.length && !o; ) { 4169 for (var c = t[s], u = t[s + 1], d = n = 0; d < c.length && !o; ) 4170 if (o = c[d++].exec(e)) 4171 for (r = 0; r < u.length; r++) 4172 a = o[++n], 4173 "object" == typeof (i = u[r]) && 0 < i.length ? 2 == i.length ? typeof i[1] == h ? this[i[0]] = i[1].call(this, a) : this[i[0]] = i[1] : 3 == i.length ? typeof i[1] != h || i[1].exec && i[1].test ? this[i[0]] = a ? a.replace(i[1], i[2]) : l : this[i[0]] = a ? i[1].call(this, a, i[2]) : l : 4 == i.length && (this[i[0]] = a ? i[3].call(this, a.replace(i[1], i[2])) : l) : this[i] = a || l; 4174 s += 2 4175 } 4176 }, 4177 str: function(e, t) { 4178 for (var n in t) 4179 if ("object" == typeof t[n] && 0 < t[n].length) { 4180 for (var r = 0; r < t[n].length; r++) 4181 if (v.has(t[n][r], e)) 4182 return "?" === n ? l : n 4183 } else if (v.has(t[n], e)) 4184 return "?" === n ? l : n; 4185 return e 4186 } 4187 } 4188 , b = { 4189 browser: { 4190 oldSafari: { 4191 version: { 4192 "1.0": "/8", 4193 1.2: "/1", 4194 1.3: "/3", 4195 "2.0": "/412", 4196 "2.0.2": "/416", 4197 "2.0.3": "/417", 4198 "2.0.4": "/419", 4199 "?": "/" 4200 } 4201 }, 4202 oldEdge: { 4203 version: { 4204 .1: "12.", 4205 21: "13.", 4206 31: "14.", 4207 39: "15.", 4208 41: "16.", 4209 42: "17.", 4210 44: "18." 4211 } 4212 } 4213 }, 4214 os: { 4215 windows: { 4216 version: { 4217 ME: "4.90", 4218 "NT 3.11": "NT3.51", 4219 "NT 4.0": "NT4.0", 4220 2e3: "NT 5.0", 4221 XP: ["NT 5.1", "NT 5.2"], 4222 Vista: "NT 6.0", 4223 7: "NT 6.1", 4224 8: "NT 6.2", 4225 8.1: "NT 6.3", 4226 10: ["NT 6.4", "NT 10.0"], 4227 RT: "ARM" 4228 } 4229 } 4230 } 4231 } 4232 , _ = { 4233 browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [s, [t, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [s, [t, "Edge"]], [/(opera\smini)\/([\w\.-]+)/i, /(opera\s[mobiletab]{3,6})\b.+version\/([\w\.-]+)/i, /(opera)(?:.+version\/|[\/\s]+)([\w\.]+)/i], [t, s], [/opios[\/\s]+([\w\.]+)/i], [s, [t, "Opera Mini"]], [/\sopr\/([\w\.]+)/i], [s, [t, "Opera"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i, /(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i, /(ba?idubrowser)[\/\s]?([\w\.]+)/i, /(?:ms|\()(ie)\s([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i, /(rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([\w\.]+)/i, /(weibo)__([\d\.]+)/i], [t, s], [/(?:[\s\/]uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i], [s, [t, "UCBrowser"]], [/(?:windowswechat)?\sqbcore\/([\w\.]+)\b.*(?:windowswechat)?/i], [s, [t, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [s, [t, "WeChat"]], [/konqueror\/([\w\.]+)/i], [s, [t, "Konqueror"]], [/trident.+rv[:\s]([\w\.]{1,9})\b.+like\sgecko/i], [s, [t, "IE"]], [/yabrowser\/([\w\.]+)/i], [s, [t, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[t, /(.+)/, "$1 Secure Browser"], s], [/focus\/([\w\.]+)/i], [s, [t, "Firefox Focus"]], [/opt\/([\w\.]+)/i], [s, [t, "Opera Touch"]], [/coc_coc_browser\/([\w\.]+)/i], [s, [t, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [s, [t, "Dolphin"]], [/coast\/([\w\.]+)/i], [s, [t, "Opera Coast"]], [/xiaomi\/miuibrowser\/([\w\.]+)/i], [s, [t, "MIUI Browser"]], [/fxios\/([\w\.-]+)/i], [s, [t, "Firefox"]], [/(qihu|qhbrowser|qihoobrowser|360browser)/i], [[t, "360 Browser"]], [/(oculus|samsung|sailfish)browser\/([\w\.]+)/i], [[t, /(.+)/, "$1 Browser"], s], [/(comodo_dragon)\/([\w\.]+)/i], [[t, /_/g, " "], s], [/\s(electron)\/([\w\.]+)\ssafari/i, /(tesla)(?:\sqtcarbrowser|\/(20[12]\d\.[\w\.-]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/\s]?([\w\.]+)/i], [t, s], [/(MetaSr)[\/\s]?([\w\.]+)/i, /(LBBROWSER)/i], [t], [/;fbav\/([\w\.]+);/i], [s, [t, "Facebook"]], [/FBAN\/FBIOS|FB_IAB\/FB4A/i], [[t, "Facebook"]], [/safari\s(line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/\s]([\w\.-]+)/i], [t, s], [/\bgsa\/([\w\.]+)\s.*safari\//i], [s, [t, "GSA"]], [/headlesschrome(?:\/([\w\.]+)|\s)/i], [s, [t, "Chrome Headless"]], [/\swv\).+(chrome)\/([\w\.]+)/i], [[t, "Chrome WebView"], s], [/droid.+\sversion\/([\w\.]+)\b.+(?:mobile\ssafari|safari)/i], [s, [t, "Android Browser"]], [/(chrome|omniweb|arora|[t
vendor: 7,849 bytes, lines 4233-4235
4233izenoka]{5}\s?browser)\/v?([\w\.]+)/i], [t, s], [/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i], [s, [t, "Mobile Safari"]], [/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i], [s, t], [/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i], [t, [s, y.str, b.browser.oldSafari.version]], [/(webkit|khtml)\/([\w\.]+)/i], [t, s], [/(navigator|netscape)\/([\w\.-]+)/i], [[t, "Netscape"], s], [/ile\svr;\srv:([\w\.]+)\).+firefox/i], [s, [t, "Firefox Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i, /(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i, /(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i, /(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i, /(links)\s\(([\w\.]+)/i, /(gobrowser)\/?([\w\.]*)/i, /(ice\s?browser)\/v?([\w\._]+)/i, /(mosaic)[\/\s]([\w\.]+)/i], [t, s]], 4234 cpu: [[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i], [[c, "amd64"]], [/(ia32(?=;))/i], [[c, v.lowerize]], [/((?:i[346]|x)86)[;\)]/i], [[c, "ia32"]], [/\b(aarch64|armv?8e?l?)\b/i], [[c, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[c, "armhf"]], [/windows\s(ce|mobile);\sppc;/i], [[c, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i], [[c, /ower/, "", v.lowerize]], [/(sun4\w)[;\)]/i], [[c, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[c, v.lowerize]]], 4235 device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus\s10)/i], [e, [r, "Samsung"], [n, f]], [/\b((?:s[cgp]h|gt|sm)-\w+|galaxy\snexus)/i, /\ssamsung[\s-]([\w-]+)/i, /sec-(sgh\w+)/i], [e, [r, "Samsung"], [n, d]], [/\((ip(?:hone|od)[\s\w]*);/i], [e, [r, "Apple"], [n, d]], [/\((ipad);[\w\s\),;-]+apple/i, /applecoremedia\/[\w\.]+\s\((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [e, [r, "Apple"], [n, f]], [/\b((?:agr|ags[23]|bah2?|sht?)-a?[lw]\d{2})/i], [e, [r, "Huawei"], [n, f]], [/d\/huawei([\w\s-]+)[;\)]/i, /\b(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?|ele-l\d\d)/i, /\b(\w{2,4}-[atu][ln][01259][019])[;\)\s]/i], [e, [r, "Huawei"], [n, d]], [/\b(poco[\s\w]+)(?:\sbuild|\))/i, /\b;\s(\w+)\sbuild\/hm\1/i, /\b(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i, /\b(redmi[\s\-_]?(?:note|k)?[\w\s_]+)(?:\sbuild|\))/i, /\b(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i], [[e, /_/g, " "], [r, "Xiaomi"], [n, d]], [/\b(mi[\s\-_]?(?:pad)(?:[\w\s_]+))(?:\sbuild|\))/i], [[e, /_/g, " "], [r, "Xiaomi"], [n, f]], [/;\s(\w+)\sbuild.+\soppo/i, /\s(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i], [e, [r, "OPPO"], [n, d]], [/\svivo\s(\w+)(?:\sbuild|\))/i, /\s(v[12]\d{3}\w?[at])(?:\sbuild|;)/i], [e, [r, "Vivo"], [n, d]], [/\s(rmx[12]\d{3})(?:\sbuild|;)/i], [e, [r, "Realme"], [n, d]], [/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)\b[\w\s]+build\//i, /\smot(?:orola)?[\s-](\w*)/i, /((?:moto[\s\w\(\)]+|xt\d{3,4}|nexus\s6)(?=\sbuild|\)))/i], [e, [r, "Motorola"], [n, d]], [/\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i], [e, [r, "Motorola"], [n, f]], [/((?=lg)?[vl]k\-?\d{3})\sbuild|\s3\.[\s\w;-]{10}lg?-([06cv9]{3,4})/i], [e, [r, "LG"], [n, f]], [/(lm-?f100[nv]?|nexus\s[45])/i, /lg[e;\s\/-]+((?!browser|netcast)\w+)/i, /\blg(\-?[\d\w]+)\sbuild/i], [e, [r, "LG"], [n, d]], [/(ideatab[\w\-\s]+)/i, /lenovo\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+)|yt[\d\w-]{6}|tb[\d\w-]{6})/i], [e, [r, "Lenovo"], [n, f]], [/(?:maemo|nokia).*(n900|lumia\s\d+)/i, /nokia[\s_-]?([\w\.-]*)/i], [[e, /_/g, " "], [r, "Nokia"], [n, d]], [/droid.+;\s(pixel\sc)[\s)]/i], [e, [r, "Google"], [n, f]], [/droid.+;\s(pixel[\s\daxl]{0,6})(?:\sbuild|\))/i], [e, [r, "Google"], [n, d]], [/droid.+\s([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [e, [r, "Sony"], [n, d]], [/sony\stablet\s[ps]\sbuild\//i, /(?:sony)?sgp\w+(?:\sbuild\/|\))/i], [[e, "Xperia Tablet"], [r, "Sony"], [n, f]], [/\s(kb2005|in20[12]5|be20[12][59])\b/i, /\ba000(1)\sbuild/i, /\boneplus\s(a\d{4})[\s)]/i], [e, [r, "OnePlus"], [n, d]], [/(alexa)webm/i, /(kf[a-z]{2}wi)(\sbuild\/|\))/i, /(kf[a-z]+)(\sbuild\/|\)).+silk\//i], [e, [r, "Amazon"], [n, f]], [/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i], [[e, "Fire Phone"], [r, "Amazon"], [n, d]], [/\((playbook);[\w\s\),;-]+(rim)/i], [e, r, [n, f]], [/((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10;\s(\w+)/i], [e, [r, "BlackBerry"], [n, d]], [/(?:\b|asus_)(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus\s7|padfone|p00[cj])/i], [e, [r, "ASUS"], [n, f]], [/\s(z[es]6[027][01][km][ls]|zenfone\s\d\w?)\b/i], [e, [r, "ASUS"], [n, d]], [/(nexus\s9)/i], [e, [r, "HTC"], [n, f]], [/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i, /(zte)-(\w*)/i, /(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i], [r, [e, /_/g, " "], [n, d]], [/droid[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i], [e, [r, "Acer"], [n, f]], [/droid.+;\s(m[1-5]\snote)\sbuild/i, /\bmz-([\w-]{2,})/i], [e, [r, "Meizu"], [n, d]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i, /(hp)\s([\w\s]+\w)/i, /(asus)-?(\w+)/i, /(microsoft);\s(lumia[\s\w]+)/i, /(lenovo)[_\s-]?([\w-]+)/i, /linux;.+(jolla);/i, /droid.+;\s(oppo)\s?([\w\s]+)\sbuild/i], [r, e, [n, d]], [/(archos)\s(gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /\s(nook)[\w\s]+build\/(\w+)/i, /(dell)\s(strea[kpr\s\d]*[\dko])/i, /[;\/]\s?(le[\s\-]+pan)[\s\-]+(\w{1,9})\sbuild/i, /[;\/]\s?(trinity)[\-\s]*(t\d{3})\sbuild/i, /\b(gigaset)[\s\-]+(q\w{1,9})\sbuild/i, /\b(vodafone)\s([\w\s]+)(?:\)|\sbuild)/i], [r, e, [n, f]], [/\s(surface\sduo)\s/i], [e, [r, "Microsoft"], [n, f]], [/droid\s[\d\.]+;\s(fp\du?)\sbuild/i], [e, [r, "Fairphone"], [n, d]], [/\s(u304aa)\sbuild/i], [e, [r, "AT&T"], [n, d]], [/sie-(\w*)/i], [e, [r, "Siemens"], [n, d]], [/[;\/]\s?(rct\w+)\sbuild/i], [e, [r, "RCA"], [n, f]], [/[;\/\s](venue[\d\s]{2,7})\sbuild/i], [e, [r, "Dell"], [n, f]], [/[;\/]\s?(q(?:mv|ta)\w+)\sbuild/i], [e, [r, "Verizon"], [n, f]], [/[;\/]\s(?:barnes[&\s]+noble\s|bn[rt])([\w\s\+]*)\sbuild/i], [e, [r, "Barnes & Noble"], [n, f]], [/[;\/]\s(tm\d{3}\w+)\sbuild/i], [e, [r, "NuVision"], [n, f]], [/;\s(k88)\sbuild/i], [e, [r, "ZTE"], [n, f]], [/;\s(nx\d{3}j)\sbuild/i], [e, [r, "ZTE"], [n, d]], [/[;\/]\s?(gen\d{3})\sbuild.*49h/i], [e, [r, "Swiss"], [n, d]], [/[;\/]\s?(zur\d{3})\sbuild/i], [e, [r, "Swiss"], [n, f]], [/[;\/]\s?((zeki)?tb.*\b)\sbuild/i], [e, [r, "Zeki"], [n, f]], [/[;\/]\s([yr]\d{2})\sbuild/i, /[;\/]\s(dragon[\-\s]+touch\s|dt)(\w{5})\sbuild/i], [[r, "Dragon Touch"], e, [n, f]], [/[;\/]\s?(ns-?\w{0,9})\sbuild/i], [e, [r, "Insignia"], [n, f]], [/[;\/]\s?((nxa|Next)-?\w{0,9})\sbuild/i], [e, [r, "NextBook"], [n, f]], [/[;\/]\s?(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05]))\sbuild/i], [[r, "Voice"], e, [n, d]], [/[;\/]\s?(lvtel\-)?(v1[12])\sbuild/i], [[r, "LvTel"], e, [n, d]], [/;\s(ph-1)\s/i], [e, [r, "Essential"], [n, d]], [/[;\/]\s?(v(100md|700na|7011|917g).*\b)\sbuild/i], [e, [r, "Envizen"], [n, f]], [/[;\/]\s?(trio[\s\w\-\.]+)\sbuild/i], [e, [r, "MachSpeed"], [n, f]], [/[;\/]\s?tu_(1491)\sbuild/i], [e, [r, "Rotor"], [n, f]], [/(shield[\w\s]+)\sbuild/i], [e, [r, "Nvidia"], [n, f]], [/(sprint)\s(\w+)/i], [r, e, [n, d]], [/(kin\.[onetw]{3})/i], [[e, /\./g, " "], [r, "Microsoft"], [n, d]], [/droid\s[\d\.]+;\s(cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [e, [r, "Zebra"], [n, f]], [/droid\s[\d\.]+;\s(ec30|ps20|tc[2-8]\d[kx])\)/i], [e, [r, "Zebra"], [n, d]], [/\s(ouya)\s/i, /(nintendo)\s([wids3utch]+)/i], [r, e, [n, u]], [/droid.+;\s(shield)\sbuild/i], [e, [r, "Nvidia"], [n, u]], [/(playstation\s[345portablevi]+)/i], [e, [r, "Sony"], [n, u]], [/[\
4235s\(;](xbox(?:\sone)?(?!;\sxbox))[\s\);]/i], [e, [r, "Microsoft"], [n, u]], [/smart-tv.+(samsung)/i], [r, [n, p]], [/hbbtv.+maple;(\d+)/i], [[e, /^/, "SmartTV"], [r, "Samsung"], [n, p]], [/(?:linux;\snetcast.+smarttv|lg\snetcast\.tv-201\d)/i], [[r, "LG"], [n, p]], [/(apple)\s?tv/i], [r, [e, "Apple TV"], [n, p]], [/crkey/i], [[e, "Chromecast"], [r, "Google"], [n, p]], [/droid.+aft([\w])(\sbuild\/|\))/i], [e, [r, "Amazon"], [n, p]], [/\(dtv[\);].+(aquos)/i], [e, [r, "Sharp"], [n, p]], [/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i], [[r, v.trim], [e, v.trim], [n, p]], [/[\s\/\(](android\s|smart[-\s]?|opera\s)tv[;\)\s]/i], [[n, p]], [/((pebble))app\/[\d\.]+\s/i], [r, e, [n, g]], [/droid.+;\s(glass)\s\d/i], [e, [r, "Google"], [n, g]], [/droid\s[\d\.]+;\s(wt63?0{2,3})\)/i], [e, [r, "Zebra"], [n, g]], [/(tesla)(?:\sqtcarbrowser|\/20[12]\d\.[\w\.-]+)/i], [r, [n, m]], [/droid .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i], [e, [n, d]], [/droid .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i], [e, [n, f]], [/\s(tablet|tab)[;\/]/i, /\s(mobile)(?:[;\/]|\ssafari)/i], [[n, v.lowerize]], [/(android[\w\.\s\-]{0,9});.+build/i], [e, [r, "Generic"]], [/(phone)/i], [[n, d]]], 4236 engine: [[/windows.+\sedge\/([\w\.]+)/i], [s, [t, "EdgeHTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [s, [t, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i, /(icab)[\/\s]([23]\.[\d\.]+)/i], [t, s], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [s, t]], 4237 os: [[/microsoft\s(windows)\s(vista|xp)/i], [t, s], [/(windows)\snt\s6\.2;\s(arm)/i, /(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i, /(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)(?!.+xbox)/i], [t, [s, y.str, b.os.windows.version]], [/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i], [[t, "Windows"], [s, y.str, b.os.windows.version]], [/ip[honead]{2,4}\b(?:.*os\s([\w]+)\slike\smac|;\sopera)/i, /cfnetwork\/.+darwin/i], [[s, /_/g, "."], [t, "iOS"]], [/(mac\sos\sx)\s?([\w\s\.]*)/i, /(macintosh|mac(?=_powerpc)\s)(?!.+haiku)/i], [[t, "Mac OS"], [s, /_/g, "."]], [/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/\s]([\w\.]+)/i, /\((series40);/i], [t, s], [/\(bb(10);/i], [s, [t, "BlackBerry"]], [/(?:symbian\s?os|symbos|s60(?=;)|series60)[\/\s-]?([\w\.]*)/i], [s, [t, "Symbian"]], [/mozilla.+\(mobile;.+gecko.+firefox/i], [[t, "Firefox OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [s, [t, "webOS"]], [/crkey\/([\d\.]+)/i], [s, [t, "Chromecast"]], [/(cros)\s[\w]+\s([\w\.]+\w)/i], [[t, "Chromium OS"], s], [/(nintendo|playstation)\s([wids345portablevuch]+)/i, /(xbox);\s+xbox\s([^\);]+)/i, /(mint)[\/\s\(\)]?(\w*)/i, /(mageia|vectorlinux)[;\s]/i, /(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?=\slinux)|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus|raspbian)(?:\sgnu\/linux)?(?:\slinux)?[\/\s-]?(?!chrom|package)([\w\.-]*)/i, /(hurd|linux)\s?([\w\.]*)/i, /(gnu)\s?([\w\.]*)/i, /\s([frentopc-]{0,4}bsd|dragonfly)\s?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku)\s(\w+)/i], [t, s], [/(sunos)\s?([\w\.\d]*)/i], [[t, "Solaris"], s], [/((?:open)?solaris)[\/\s-]?([\w\.]*)/i, /(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i, /(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i, /(unix)\s?([\w\.]*)/i], [t, s]] 4238 }; 4239 o.VERSION = "0.7.28", 4240 o.BROWSER = { 4241 NAME: t, 4242 MAJOR: "major", 4243 VERSION: s 4244 }, 4245 o.CPU = { 4246 ARCHITECTURE: c 4247 }, 4248 o.DEVICE = { 4249 MODEL: e, 4250 VENDOR: r, 4251 TYPE: n, 4252 CONSOLE: u, 4253 MOBILE: d, 4254 SMARTTV: p, 4255 TABLET: f, 4256 WEARABLE: g, 4257 EMBEDDED: m 4258 }, 4259 o.ENGINE = { 4260 NAME: t, 4261 VERSION: s 4262 }, 4263 o.OS = { 4264 NAME: t, 4265 VERSION: s 4266 }, 4267 (Hu = Ku.exports ? Ku.exports = o : Hu).UAParser = o; 4268 var w, A = void 0 !== i && (i.jQuery || i.Zepto); 4269 A && !A.ua && (w = new o, 4270 A.ua = w.getResult(), 4271 A.ua.get = function() { 4272 return w.getUA() 4273 } 4274 , 4275 A.ua.set = function(e) { 4276 w.setUA(e); 4277 var t, n = w.getResult(); 4278 for (t in n) 4279 A.ua[t] = n[t] 4280 } 4281 ) 4282 } 4283 )("object" == typeof window ? window : je); 4284 var Wu, $u = q.exports, Yu = { 4285 exports: {} 4286 }; 4287 Wu = Yu, 4288 q = "undefined" != typeof self ? self : "undefined" != typeof window ? window : je, 4289 Wu.exports = function(t) { 4290 function n(e) { 4291 if (e.length < 2) 4292 return (t = e.charCodeAt(0)) < 128 ? e : t < 2048 ? d(192 | t >>> 6) + d(128 | 63 & t) : d(224 | t >>> 12 & 15) + d(128 | t >>> 6 & 63) + d(128 | 63 & t); 4293 var t = 65536 + 1024 * (e.charCodeAt(0) - 55296) + (e.charCodeAt(1) - 56320); 4294 return d(240 | t >>> 18 & 7) + d(128 | t >>> 12 & 63) + d(128 | t >>> 6 & 63) + d(128 | 63 & t) 4295 } 4296 function r(e) { 4297 var t = [0, 2, 1][e.length % 3] 4298 , e = e.charCodeAt(0) << 16 | (1 < e.length ? e.charCodeAt(1) : 0) << 8 | (2 < e.length ? e.charCodeAt(2) : 0); 4299 return [u.charAt(e >>> 18), u.charAt(e >>> 12 & 63), 2 <= t ? "=" : u.charAt(e >>> 6 & 63), 1 <= t ? "=" : u.charAt(63 & e)].join("") 4300 } 4301 function i(e) { 4302 return f(h(String(e))) 4303 } 4304 function c(e) { 4305 return e.replace(/[+\/]/g, function(e) { 4306 return "+" == e ? "-" : "_" 4307 }).replace(/=/g, "") 4308 } 4309 function o(e, t) { 4310 return t ? c(i(e)) : i(e) 4311 } 4312 var e, a = (t = t || {}).Base64, u = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
4312+/", s = function(e) { 4313 for (var t = {}, n = 0, r = e.length; n < r; n++) 4314 t[e.charAt(n)] = n; 4315 return t 4316 }(u), d = String.fromCharCode, l = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, h = function(e) { 4317 return e.replace(l, n) 4318 }, f = t.btoa && "function" == typeof t.btoa ? function(e) { 4319 return t.btoa(e) 4320 } 4321 : function(e) { 4322 if (e.match(/[^\x00-\xFF]/)) 4323 throw new RangeError("The string contains invalid characters."); 4324 return e.replace(/[\s\S]{1,3}/g, r) 4325 } 4326 ; 4327 t.Uint8Array && (e = function(e, t) { 4328 for (var n = "", r = 0, i = e.length; r < i; r += 3) { 4329 var o = e[r] 4330 , a = e[r + 1] 4331 , s = e[r + 2] 4332 , o = o << 16 | a << 8 | s; 4333 n += u.charAt(o >>> 18) + u.charAt(o >>> 12 & 63) + (void 0 !== a ? u.charAt(o >>> 6 & 63) : "=") + (void 0 !== s ? u.charAt(63 & o) : "=") 4334 } 4335 return t ? c(n) : n 4336 } 4337 ); 4338 function p(e) { 4339 switch (e.length) { 4340 case 4: 4341 var t = ((7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3)) - 65536; 4342 return d(55296 + (t >>> 10)) + d(56320 + (1023 & t)); 4343 case 3: 4344 return d((15 & e.charCodeAt(0)) << 12 | (63 & e.charCodeAt(1)) << 6 | 63 & e.charCodeAt(2)); 4345 default: 4346 return d((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1)) 4347 } 4348 } 4349 function g(e) { 4350 var t = e.length 4351 , n = t % 4 4352 , e = (0 < t ? s[e.charAt(0)] << 18 : 0) | (1 < t ? s[e.charAt(1)] << 12 : 0) | (2 < t ? s[e.charAt(2)] << 6 : 0) | (3 < t ? s[e.charAt(3)] : 0); 4353 return (e = [d(e >>> 16), d(e >>> 8 & 255), d(255 & e)]).length -= [0, 0, 2, 1][n], 4354 e.join("") 4355 } 4356 function m(e) { 4357 return A(String(e).replace(/[^A-Za-z0-9\+\/]/g, "")) 4358 } 4359 function v(e) { 4360 return String(e).replace(/[-_]/g, function(e) { 4361 return "-" == e ? "+" : "/" 4362 }).replace(/[^A-Za-z0-9\+\/]/g, "") 4363 } 4364 function y(e) { 4365 return e = v(e), 4366 w(A(e)) 4367 } 4368 var b, _ = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, w = function(e) { 4369 return e.replace(_, p) 4370 }, A = t.atob && "function" == typeof t.atob ? function(e) { 4371 return t.atob(e) 4372 } 4373 : function(e) { 4374 return e.replace(/\S{1,4}/g, g) 4375 } 4376 ; 4377 t.Uint8Array && (b = function(e) { 4378 return Uint8Array.from(m(v(e)), function(e) { 4379 return e.charCodeAt(0) 4380 }) 4381 } 4382 ); 4383 var E; 4384 return t.Base64 = { 4385 VERSION: "2.6.4", 4386 atob: m, 4387 btoa: f, 4388 fromBase64: y, 4389 toBase64: o, 4390 utob: h, 4391 encode: o, 4392 encodeURI: function(e) { 4393 return o(e, !0) 4394 }, 4395 btou: w, 4396 decode: y, 4397 noConflict: function() { 4398 var e = t.Base64; 4399 return t.Base64 = a, 4400 e 4401 }, 4402 fromUint8Array: e, 4403 toUint8Array: b 4404 }, 4405 "function" == typeof Object.defineProperty && (E = function(e) { 4406 return { 4407 value: e, 4408 enumerable: !1, 4409 writable: !0, 4410 configurable: !0 4411 } 4412 } 4413 , 4414 t.Base64.extendString = function() { 4415 Object.defineProperty(String.prototype, "fromBase64", E(function() { 4416 return y(this) 4417 })), 4418 Object.defineProperty(String.prototype, "toBase64", E(function(e) { 4419 return o(this, e) 4420 })), 4421 Object.defineProperty(String.prototype, "toBase64URI", E(function() { 4422 return o(this, !0) 4423 })) 4424 } 4425 ), 4426 t.Meteor && (Base64 = t.Base64), 4427 Wu.exports && (Wu.exports.Base64 = t.Base64), 4428 { 4429 Base64: t.Base64 4430 } 4431 }(q); 4432 var Qu = { 4433 Rewarded: "rewarded", 4434 Interstitial: "interstitial", 4435 Preroll: "interstitial", 4436 Midroll: "interstitial", 4437 Display: "display" 4438 }; 4439 function Ju(e, t) { 4440 for (var n in t) 4441 t.hasOwnProperty(n) && null !== t[n] && void 0 !== t[n] && (e[n] = t[n]); 4442 return e 4443 } 4444 function Zu(e, t) { 4445 t = t || window.location.href, 4446 t = new RegExp("[?&]" + e + "=([^&#]*)","i").exec(t); 4447 return t ? t[1] : null 4448 } 4449 function Xu() { 4450 for (var e, t = /\+/g, n = /([^&=]+)=?([^&]*)/g, r = function(e) { 4451 return decodeURIComponent(e.toLowerCase().replace(t, " ")) 4452 }, i = window.location.search.substring(1), o = {}; e = n.exec(i); ) 4453 o[r(e[1])] = r(e[2]); 4454 return o 4455 } 4456 function ed(e) { 4457 for (; function e(t) {
4458 return (t = t || "") !== decodeURIComponent(t) 4459 }(e); ) 4460 e = decodeURIComponent(e); 4461 return e 4462 } 4463 function td(o, a, s) { 4464 return new Promise(function(e, t) { 4465 var n, r, i; 4466 s && s.exists && s.exists() ? e() : (r = (n = s && s.alternates && 0 < s.alternates.length ? function(e) { 4467 if (e && e.length) { 4468 var t = document.querySelectorAll("script"); 4469 if (t) 4470 for (var n in t) { 4471 n = t[n]; 4472 if (e.includes(n.src)) 4473 return n 4474 } 4475 } 4476 }(s.alternates) : void 0) || document.createElement("script"), 4477 i = s && s.error_prefix ? s.error_prefix : "Failed:", 4478 r.onload = function() { 4479 s && s.exists && !s.exists() ? t("".concat(i, " ").concat(o)) : e() 4480 } 4481 , 4482 r.onerror = function() { 4483 t("".concat(i, " ").concat(o)) 4484 } 4485 , 4486 n || (r.type = "text/javascript", 4487 !0 === s.defer ? r.defer = !0 : r.async = !0, 4488 r.src = o, 4489 r.id = a, 4490 document.head.appendChild(r))) 4491 } 4492 ) 4493 }
4494 function nd() { 4495 var e = 0 4496 , t = window; 4497 try { 4498 for (; t != t.parent; ) 4499 e++, 4500 t = t.parent 4501 } catch (e) {} 4502 return e 4503 } 4504 function rd(e, t) { 4505 return function e(t) { 4506 return localStorage.getItem(t) 4507 }(e) ? "true" === (e = localStorage.getItem(e)) || !0 === e || 1 === e || "1" === e : t 4508 } 4509 function id(e) { 4510 localStorage.removeItem(e) 4511 } 4512 function od(e, t) { 4513 localStorage.setItem(e, t) 4514 } 4515 var ad = function() { 4516 var e = Date.now(); 4517 try { 4518 return localStorage.setItem(e, e), 4519 localStorage.removeItem(e), 4520 !0 4521 } catch (e) { 4522 return !1 4523 } 4524 }() 4525 , sd = Date.now() 4526 , cd = { 4527 console: !1 4528 }; 4529 function ud(e, t, n) { 4530 try { 4531 var r, i; 4532 (ad && rd("gd_debug_ex") || cd && !0 === cd.console) && (r = "error" === n ? "background: #c4161e; color: #fff" : "warning" === n ? "background: #ff8c1c; color: #fff" : "info" === n ? "background: #ff0080; color: #fff" : "background: #44a5ab; color: #fff", 4533 i = console.log("[" + (Date.now() - sd) / 1e3 + "s]%c %c %c gdsdk %c %c %c " + e + " ", "background: #9854d8", "background: #6c2ca7", "color: #fff; background: #450f78;", "background: #6c2ca7", "background: #9854d8", r, void 0 !== t ? t : ""), 4534 console.log.apply(console, i)) 4535 } catch (e) { 4536 console.log(e) 4537 } 4538 } 4539 var dd = ["SDK_READY", "SDK_ERROR", "SDK_LB_LOGIN", "SDK_SHW_LB", "SDK_GAME_START", "SDK_GAME_PAUSE", "SDK_GDPR_TRACKING", "SDK_GDPR_TARGETING", "SDK_GDPR_THIRD_PARTY", "AD_SDK_MANAGER_READY", "AD_SDK_CANCELED", "AD_IS_ALREADY_RUNNING"] 4540 , ld = ["AD_ERROR", "AD_BREAK_READY", "AD_METADATA", "ALL_ADS_COMPLETED", "CLICK", "COMPLETE", "CONTENT_PAUSE_REQUESTED", "CONTENT_RESUME_REQUESTED", "DURATION_CHANGE", "FIRST_QUARTILE", "IMPRESSION", "INTERACTION", "LINEAR_CHANGED", "LOADED", "LOG", "MIDPOINT", "PAUSED", "RESUMED", "SKIPPABLE_STATE_CHANGED", "SKIPPED", "STARTED", "THIRD_QUARTILE", "USER_CLOSE", "VOLUME_CHANGED", "VOLUME_MUTED", "DISPLAYAD_IMPRESSION", "DISPLAYAD_ERROR"] 4541 , hd = 1010 4542 , fd = 1020 4543 , pd = 1100 4544 , gd = null 4545 , md = (Wn(Rd, [{ 4546 key: "_getListenerIdx", 4547 value: function(e, t, n) { 4548 var r, i = this.listeners[e], o = -1; 4549 if (!i || 0 === i.length) 4550 return o; 4551 for (r = 0; r < i.length; r++) 4552 if (i[r].callback === t && (!n || n === i[r].scope)) { 4553 o = r; 4554 break 4555 } 4556 return o 4557 } 4558 }, { 4559 key: "subscribe", 4560 value: function(e, t, n) { 4561 if (!e) 4562 throw new Error("Event name cannot be null or undefined."); 4563 if (!t || "function" != typeof t) 4564 throw new Error("Listener must be of type function."); 4565 0 <= this._getListenerIdx(e, t, n) ? console.log(e, n) : (n = { 4566 callback: t, 4567 scope: n 4568 }, 4569 this.listeners[e] = this.listeners[e] || [], 4570 this.listeners[e].push(n)) 4571 } 4572 }, { 4573 key: "unsubscribeScope", 4574 value: function(e) { 4575 for (var t = Object.keys(this.listeners), n = 0; n < t.length; n++) { 4576 for (var r = t[n], i = this.listeners[r], o = 0; o < i.length; o++) 4577 i[o].scope === e && (i.splice(o, 1), 4578 o--); 4579 0 === i.length && delete this.listeners[r] 4580 } 4581 } 4582 }, { 4583 key: "broadcast", 4584 value: function(e, t) { 4585 var n = this.listeners[e]; 4586 e && this.listeners[e] && ((t = t || {}).name = t.name || e,
4587 n.forEach(function(e) { 4588 e.callback.call(e.scope, t, e.scope) 4589 })) 4590 } 4591 }, { 4592 key: "printScope", 4593 value: function(e) { 4594 for (var t = Object.keys(this.listeners), n = 0; n < t.length; n++) 4595 for (var r = t[n], i = this.listeners[r], o = 0; o < i.length; o++) 4596 i[o].scope === e && console.log(r, e) 4597 } 4598 }]), 4599 Rd) 4600 , vd = (Wn(Td, [{ 4601 key: "transform", 4602 value: function(e, t) { 4603 e = ju(e); 4604 return this.transformValue(e, t) 4605 } 4606 }, { 4607 key: "transformValue", 4608 value: function(t, e) { 4609 if (Mu(t) || zu(t)) 4610 for (var n in t) 4611 t[n] = this.transformValue(t[n], e); 4612 else if ("string" == typeof (c = t) || "object" == typeof c && (Fu ? function(e) { 4613 try { 4614 return Nu.call(e), 4615 !0 4616 } catch (e) { 4617 return !1 4618 } 4619 }(c) : "[object String]" === Gu.call(c))) { 4620 var r, i, o, a = /\{\{(\w+)\}\}/g, s = []; 4621 do {} while ((r = a.exec(t)) && (r[0], 4622 i = r[1], 4623 void 0 !== (o = this.getMacroKeyValue(i, e)) && s.push({ 4624 key: i, 4625 value: o 4626 })), 4627 r); 4628 0 < s.length && s.forEach(function(e) { 4629 t = t.replace(new RegExp("{{" + e.key + "}}","g"), e.value) 4630 }) 4631 } 4632 var c; 4633 return t 4634 } 4635 }, { 4636 key: "getMacroKeyValue", 4637 value: function(e, t) { 4638 switch (e) { 4639 case "CACHEBUSTER": 4640 return Date.now(); 4641 case "GAME_ID": 4642 return this.game.gameId; 4643 case "GAME_TITLE": 4644 return this.game.title; 4645 case "COUNTRY_CODE": 4646 return this.game.ctry; 4647 case "PAGE_URL": 4648 return this.bridge.parentURL; 4649 case "PAGE_URL_ESC": 4650 return encodeURIComponent(this.bridge.parentURL); 4651 case "PAGE_URL_ESC_ESC": 4652 return encodeURIComponent(encodeURIComponent(this.bridge.parentURL)); 4653 case "DOMAIN_MATCHED": 4654 return this.bridge.domainMatched ? 1 : 0; 4655 case "DOMAIN_PARENT": 4656 return this.bridge.parentDomain; 4657 case "DOMAIN_TOP": 4658 return this.bridge.topDomain; 4659 case "DEPTH": 4660 case "GAME_DEPTH": 4661 return this.bridge.depth; 4662 default: 4663 if (t && Uu(t.get)) 4664 return t.get(e) 4665 } 4666 } 4667 }]), 4668 Td) 4669 , yd = (Wn(Dd, [{ 4670 key: "send", 4671 value: function(e, t) { 4672 if (!this._config.isCoreSDKMode) { 4673 var n = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth 4674 , r = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; 4675 r -= r % 64, 4676 this._size = "".concat(n -= n % 64, " x ").concat(r); 4677 r = this._topic_counter[e] || 0; 4678 this._topic_counter[e] = ++r; 4679 t = { 4680 gmid: this._config.gameId, 4681 tdmn: this._config.topDomain, 4682 domn: this._config.domain, 4683 rfrr: this._config.referrer, 4684 lthr: this._config.hours, 4685 ctry: this._config.country, 4686 dpth: this._config.depth, 4687 vers: this._config.version, 4688 trac: this._config.tracking, 4689 whlb: this._config.whitelabel, 4690 plat: this._config.platform, 4691 tpct: r, 4692 args: t, 4693 ttle: document.title, 4694 size: this._size, 4695 brnm: this._ua.browser.name, 4696 brmj: this._ua.browser.major, 4697 osnm: this._ua.os.name, 4698 osvr: this._ua.os.version, 4699 dvmd: this._ua.device.model, 4700 byld: this._config.byloader, 4701 bylv: this._config.byloaderVersion, 4702 imgu: this._config.isMasterGameURL, 4703 iegu: this._config.isExtHostedGameURL, 4704 itgu: this._config.isTokenGameURL, 4705 cmpe: !1, 4706 host: window.location.hostname 4707 }; 4708 "undefined" != typeof idhb && void 0 !== idhb.iabCmpExists() && (t.cmpe = idhb.iabCmpExists()); 4709 try { 4710 t = encodeURIComponent(Yu.exports.Base64.encode(JSON.stringify([t]))), 4711 fetch(this._url + "?tp=com.gdsdk.".concat(e, "&ar=").concat(t, "&ts=").concat(Date.now())) 4712 } catch (e) {} 4713 } 4714 } 4715 }, { 4716 key: "setGameData", 4717 value: function(e) { 4718 this._gameData = e, 4719 this._config.country = e.ctry 4720 } 4721 }]), 4722 Dd) 4723 , bd = null 4724 , _d = (Wn(Sd, [{ 4725 key: "start", 4726 value: function() { 4727 var e = "\n #gdsdk__console_container {\n display: flex;\n box-sizing: border-box;\n padding: 3px;\n background: linear-gradient(90deg,#3d1b5d,#5c3997);\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);\n color: #fff;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 8px;\n }\n #gdsdk__console_container button {\n flex: 1;\n background: #44a5ab;\n padding: 3px 10px;\n margin: 2px;\n border: 0;\n border-radius: 3px;\n color: #fff;\n outline: 0;\n cursor: pointer;\n font-size: 8px;\n box-shadow: 0 0 0 transparent;\n text-shadow: 0 0 0 transparent;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n #gdsdk__console_container button:hover {\n background: #4fb3b9;\n }\n #gdsdk__console_container button:active {\n background: #62bbc0;\n }\n " 4728 , t = document.head || document.getElementsByTagName("head")[0] 4729 , n = document.createElement("style"); 4730 n.type = "text/css", 4731 n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e)), 4732 t.appendChild(n); 4733 var r = document.body || document.getElementsByTagName("body")[0] 4734 , i = document.createElement("div"); 4735 i.id = "gdsdk__console", 4736 i.style.position = "fixed", 4737 i.style.zIndex = pd, 4738 i.style.bottom = "0", 4739 i.style.left = "0", 4740 i.style.width = "100%", 4741 i.innerHTML = '\n <div id="gdsdk__console_container">\n <button id="gdsdk__hbgdDebug">Activate hbgd debug</button>\n <button id="gdsdk__hbgdConfig">Log idhb config</button>\n \x3c!--\n <button id="gdsdk__resumeGame">Resume</button>\n <button id="gdsdk__pauseGame">Pause</button>\n --\x3e\n <button id="gdsdk__showLeaderboard">LeaderBoard</button>\n <button id="gdsdk__showInterstitial">Interstitial</button>\n <button id="gdsdk__showRewarded">Rewarded</button>\n \x3c!--\n <button id="gdsdk__preloadRewarded">Preload rewarded</button>\n --\x3e\n <button id="gdsdk__cancel">Cancel</button>\n <button id="gdsdk__demo">Demo VAST tag</button>\n <button id="gdsdk__disableMidrollTimer">Disable delay</button>\n <button id="gdsdk__closeDebug">Close</button>\n </div>\n ', 4742 r.appendChild(i); 4743 var o = document.getElementById("gdsdk__showLeaderboard") 4744 , a = document.getElementById("gdsdk__showInterstitial") 4745 , s = document.getElementById("gdsdk__showRewarded") 4746 , c = document.getElementById("gdsdk__cancel") 4747 , e = document.getElementById("gdsdk__demo") 4748 , t = document.getElementById("gdsdk__disableMidrollTimer") 4749 , n = document.getElementById("gdsdk__hbgdDebug") 4750 , r = document.getElementById("gdsdk__hbgdConfig") 4751 , i = document.getElementById("gdsdk__closeDebug"); 4752 rd("gd_tag") ? (e.innerHTML = "Revert Vast tag", 4753 e.style.background = "#ff8c1c") : (e.innerHTML = "Demo VAST tag", 4754 e.style.background = "#44a5ab"), 4755 rd("gd_disable_midroll_timer") ? (t.innerHTML = "Revert delay", 4756 t.style.background = "#ff8c1c") : (t.innerHTML = "Disable delay", 4757 t.style.background = "#44a5ab"), 4758 rd("gd_hb_debug") ? (n.innerHTML = "Revert HB Debug", 4759 n.style.background = "#ff8c1c") : (n.innerHTML = "HB Debug", 4760 n.style.background = "#44a5ab"), 4761 o.addEventListener("click", function() { 4762 window.gdsdk.showLeaderBoard().catch(function(e) {}) 4763 }), 4764 a.addEventListener("click", function() { 4765 window.gdsdk.showAd(Qu.Interstitial).catch(function(e) {}) 4766 }), 4767 s.addEventListener("click", function() { 4768 window.gdsdk.showAd(Qu.Rewarded).catch(function(e) {}) 4769 }), 4770 c.addEventListener("click", function() { 4771 window.gdsdk.cancelAd().then(function(e) {}).catch(function(e) {}) 4772 }), 4773 e.addEventListener("click", function() { 4774 try { 4775 rd("gd_tag") ? id("gd_tag") : od("gd_tag", !0), 4776 location.reload() 4777 } catch (e) { 4778 console.log(e) 4779 } 4780 }), 4781 t.addEventListener("click", function() { 4782 try { 4783 rd("gd_disable_midroll_timer") ? id("gd_disable_midroll_timer")
4783: od("gd_disable_midroll_timer", !0), 4784 location.reload() 4785 } catch (e) { 4786 console.log(e) 4787 } 4788 }), 4789 i.addEventListener("click", function() { 4790 try { 4791 rd("gd_debug_ex") ? id("gd_debug_ex") : od("gd_debug_ex", !0), 4792 location.reload() 4793 } catch (e) { 4794 console.log(e) 4795 } 4796 }), 4797 n.addEventListener("click", function() { 4798 try { 4799 rd("gd_hb_debug") ? id("gd_hb_debug") : od("gd_hb_debug", !0), 4800 window.idhb && window.idhb.debug(!(!ad || !rd("gd_hb_debug"))), 4801 location.reload() 4802 } catch (e) { 4803 console.log(e) 4804 } 4805 }), 4806 r.addEventListener("click", function() { 4807 try { 4808 var e = window.idhb.getConfig(); 4809 console.info(e) 4810 } catch (e) { 4811 console.log(e) 4812 } 4813 }) 4814 } 4815 }]), 4816 Sd) 4817 , wd = (Wn(xd, [{ 4818 key: "_getFakeCustomParams", 4819 value: function() { 4820 var e, t = { 4821 _vid: ["bla_bla1", "bla_bla2", "bla_bla3"], 4822 _1ld: ["1ld_1", "1ld_2", "1ld_3", "1ld_4"], 4823 _1lp: ["1lp_1", "1lp_2"] 4824 }, n = {}; 4825 for (e in t) { 4826 var r = t[e]; 4827 n[e] = r[Math.floor(Math.random() * r.length)] 4828 } 4829 return n 4830 } 4831 }, { 4832 key: "checkCustomParams", 4833 value: function() { 4834 try { 4835 var e = {}; 4836 if (this.gameData.diagnostic && this.gameData.diagnostic.cp && this.gameData.diagnostic.cp.enabled) { 4837 var t, n = new Lu(location.href,!0); 4838 for (t in n.query) 4839 e[t] = n.query[t]; 4840 return Object.keys(e).length, 4841 e 4842 } 4843 } catch (e) { 4844 console.log("_checkCustomParams.Error", e) 4845 } 4846 } 4847 }]), 4848 xd) 4849 , Ad = (Wn(kd, [{ 4850 key: "show", 4851 value: function() { 4852 this.adResumeButton.style.display = "block", 4853 this.adResumeButtonOverlay.style.display = "block" 4854 } 4855 }, { 4856 key: "hide", 4857 value: function() { 4858 this.adResumeButton.style.display = "none", 4859 this.adResumeButtonOverlay.style.display = "none" 4860 } 4861 }, { 4862 key: "add", 4863 value: function() { 4864 var e = this; 4865 try { 4866 var t = document.createElement("div"); 4867 (this.adResumeButton = t).id = "gd__resume__button", 4868 t.setAttribute("title", "Resume"), 4869 this.addStyles(), 4870 t.classList.add("gd__resume__button"), 4871 t.addEventListener("click", function() { 4872 p(this, e), 4873 this.onResume() 4874 } 4875 .bind(this)), 4876 this.adContainer.appendChild(t); 4877 var n = document.createElement("div"); 4878 (this.adResumeButtonOverlay = n).id = "gd__resume__button__overlay", 4879 n.classList.add("gd__resume__button__overlay"), 4880 this.adContainer.appendChild(n) 4881 } catch (e) { 4882 console.log("Resume button add error", e) 4883 } 4884 } 4885 }, { 4886 key: "addStyles", 4887 value: function() { 4888 var e = document.body || document.getElementsByTagName("body")[0]; 4889 this.addStylesheet("gd__resume__button__style", e, '\n .gd__resume__button{\n background-image: url("https://img.gamedistribution.com/play-black.svg");\n background-color:white; \n width: 120px;\n height: 120px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(50% - 60px);\n left: calc(50% - 60px);\n margin: 0;\n border-radius: 50%;\n border: 2px solid white;\n animation: play-button 1s ease-in-out infinite alternate;\n -webkit-animation: play-button 1s ease-in-out infinite alternate;\n }\n \n .gd__resume__button__overlay {\n position: fixed;\n display: none;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0,0,0,0.5);\n z-index: 1999;\n cursor: pointer;\n }\n @keyframes play-button {\n 0% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n 100% {\n transform: scale(1.1);\n -webkit-transform: scale(1.1);\n }\n }\n .gd__resume__button:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }\n ') 4890 } 4891 }, { 4892 key: "addStylesheet", 4893 value: function(e, t, n) { 4894 var r; 4895 document.getElementById(e) || ((r = document.createElement("style")).type = "text/css", 4896 r.id = e, 4897 r.styleSheet ? r.styleSheet.cssText = n : r.appendChild(document.createTextNode(n)), 4898 t.appendChild(r)) 4899 } 4900 }]), 4901 kd)
4902 , Ed = (new Blob([new Uint8Array([255, 227, 24, 196, 0, 0, 0, 3, 72, 1, 64, 0, 0, 4, 132, 16, 31, 227, 192, 225, 76, 255, 67, 12, 255, 221, 27, 255, 228, 97, 73, 63, 255, 195, 131, 69, 192, 232, 223, 255, 255, 207, 102, 239, 255, 255, 255, 101, 158, 206, 70, 20, 59, 255, 254, 95, 70, 149, 66, 4, 16, 128, 0, 2, 2, 32, 240, 138, 255, 36, 106, 183, 255, 227, 24, 196, 59, 11, 34, 62, 80, 49, 135, 40, 0, 253, 29, 191, 209, 200, 141, 71, 7, 255, 252, 152, 74, 15, 130, 33, 185, 6, 63, 255, 252, 195, 70, 203, 86, 53, 15, 255, 255, 247, 103, 76, 121, 64, 32, 47, 255, 34, 227, 194, 209, 138, 76, 65, 77, 69, 51, 46, 57, 55, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 255, 227, 24, 196, 73, 13, 153, 210, 100, 81, 135, 56, 0, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170])],{ 4903 type: "audio/mpeg" 4904 }), 4905 new Blob([new Uint8Array([0, 0, 0, 28, 102, 116, 121, 112, 105, 115, 111, 109, 0, 0, 2, 0, 105, 115, 111, 109, 105, 115, 111, 50, 109, 112, 52, 49, 0, 0, 0, 8, 102, 114, 101, 101, 0, 0, 2, 239, 109, 100, 97, 116, 33, 16, 5, 32, 164, 27, 255, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 55, 167, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 33, 16, 5, 32, 164, 27, 255, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 55, 167, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 0, 0, 2, 194, 109, 111, 111, 118, 0, 0, 0, 108, 109, 118, 104, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 232, 0, 0, 0, 47, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 1, 236, 116, 114, 97, 10
49057, 0, 0, 0, 92, 116, 107, 104, 100, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 101, 100, 116, 115, 0, 0, 0, 28, 101, 108, 115, 116, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 47, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 100, 109, 100, 105, 97, 0, 0, 0, 32, 109, 100, 104, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 68, 0, 0, 8, 0, 85, 196, 0, 0, 0, 0, 0, 45, 104, 100, 108, 114, 0, 0, 0, 0, 0, 0, 0, 0, 115, 111, 117, 110, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 111, 117, 110, 100, 72, 97, 110, 100, 108, 101, 114, 0, 0, 0, 1, 15, 109, 105, 110, 102, 0, 0, 0, 16, 115, 109, 104, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 100, 105, 110, 102, 0, 0, 0, 28, 100, 114, 101, 102, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 12, 117, 114, 108, 32, 0, 0, 0, 1, 0, 0, 0, 211, 115, 116, 98, 108, 0, 0, 0, 103, 115, 116, 115, 100, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 87, 109, 112, 52, 97, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 16, 0, 0, 0, 0, 172, 68, 0, 0, 0, 0, 0, 51, 101, 115, 100, 115, 0, 0, 0, 0, 3, 128, 128, 128, 34, 0, 2, 0, 4, 128, 128, 128, 20, 64, 21, 0, 0, 0, 0, 1, 244, 0, 0, 1, 243, 249, 5, 128, 128, 128, 2, 18, 16, 6, 128, 128, 128, 1, 2, 0, 0, 0, 24, 115, 116, 116, 115, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 4, 0, 0, 0, 0, 28, 115, 116, 115, 99, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 28, 115, 116, 115, 122, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 1, 115, 0, 0, 1, 116, 0, 0, 0, 20, 115, 116, 99, 111, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 44, 0, 0, 0, 98, 117, 100, 116, 97, 0, 0, 0, 90, 109, 101, 116, 97, 0, 0, 0, 0, 0, 0, 0, 33, 104, 100, 108, 114, 0, 0, 0, 0, 0, 0, 0, 0, 109, 100, 105, 114, 97, 112, 112, 108, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 105, 108, 115, 116, 0, 0, 0, 37, 169, 116, 111, 111, 0, 0, 0, 29, 100, 97, 116, 97, 0, 0, 0, 1, 0, 0, 0, 0, 76, 97, 118, 102, 53, 54, 46, 52, 48, 46, 49, 48, 49])],{ 4906 type: "video/mp4" 4907 })); 4908 function kd(e, t) { 4909 Kn(this, kd), 4910 this.adContainer = e, 4911 this.onResume = t 4912 } 4913 function xd(e) { 4914 Kn(this, xd), 4915 this.gameData = e 4916 } 4917 function Sd(e) { 4918 if (Kn(this, Sd), 4919 bd) 4920 return bd; 4921 (bd = this).eventBus = new md, 4922 this._sdk = e 4923 } 4924 function Dd(e) { 4925 Kn(this, Dd), 4926 this._config = e || {}, 4927 this._url = e.url || "json/ping.json?https://msgrt.gamedistribution.com/collect", 4928 this._topic_counter = {}, 4929 this._ua = (new $u).getResult() 4930 } 4931 function Td(e) { 4932 Kn(this, Td), 4933 this.game = e.game, 4934 this.bridge = e.bridge 4935 } 4936 function Rd() { 4937 if (Kn(this, Rd), 4938 gd) 4939 return gd; 4940 (gd = this).listeners = {} 4941 } 4942 function Od(e) { 4943 return Object.assign({ 4944 muted: !1, 4945 timeout: 250, 4946 inline: !1 4947 }, e) 4948 } 4949 function Cd(e, t) { 4950 var r, n = e.muted, i = e.timeout, e = e.inline, t = t(), o = t.element, t = t.source, a = void 0, s = void 0; 4951 return !0 === (o.muted = n) && o.setAttribute("muted", "muted"), 4952 !0 === e && o.setAttribute("playsinline", "playsinline"), 4953 o.src = t, 4954 new Promise(function(n) { 4955 a = o.play(), 4956 r = setTimeout(function() { 4957 s(!1, new Error("Timeout " + i + " ms has been reached")) 4958 }, i), 4959 s = function(e) { 4960 var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : null; 4961 o.remove(), 4962 o.srcObject = null, 4963 clearTimeout(r), 4964 n({ 4965 result: e, 4966 error: t 4967 }) 4968 } 4969 , 4970 void 0 !== a ? a.then(function() { 4971 return s(!0) 4972 }).catch(function(e) { 4973 return s(!1, e) 4974 }) : s(!0) 4975 } 4976 ) 4977 } 4978 var Id = function(e) { 4979 return Cd(e = Od(e), function() { 4980 return { 4981 element: document.createElement("video"), 4982 source: URL.createObjectURL(Ed) 4983 } 4984 }) 4985 } 4986 , q = { 4987 exports: {} 4988 }; 4989 !function(e, t) { 4990 var r = "__lodash_hash_undefined__" 4991 , i = 9007199254740991 4992 , n = "[object Arguments]" 4993 , o = "[object Function]" 4994 , f = "[object Object]" 4995 , a = /^\[object .+?Constructor\]$/ 4996 , s = /^(?:0|[1-9]\d*)$/ 4997 , c = {}; 4998 c["[object Float32Array]"] = c["[object Float64Array
4998]"] = c["[object Int8Array]"] = c["[object Int16Array]"] = c["[object Int32Array]"] = c["[object Uint8Array]"] = c["[object Uint8ClampedArray]"] = c["[object Uint16Array]"] = c["[object Uint32Array]"] = !0, 4999 c[n] = c["[object Array]"] = c["[object ArrayBuffer]"] = c["[object Boolean]"] = c["[object DataView]"] = c["[object Date]"] = c["[object Error]"] = c[o] = c["[object Map]"] = c["[object Number]"] = c[f] = c["[object RegExp]"] = c["[object Set]"] = c["[object String]"] = c["[object WeakMap]"] = !1; 5000 var u = "object" == typeof je && je && je.Object === Object && je 5001 , d = "object" == typeof self && self && self.Object === Object && self 5002 , l = u || d || Function("return this")() 5003 , h = t && !t.nodeType && t 5004 , p = h && e && !e.nodeType && e 5005 , g = p && p.exports === h 5006 , m = g && u.process 5007 , d = function() { 5008 try { 5009 return p && p.require && p.require("util").types || m && m.binding && m.binding("util") 5010 } catch (e) {} 5011 }() 5012 , t = d && d.isTypedArray; 5013 var v, y, h = Array.prototype, u = Function.prototype, b = Object.prototype, d = l["__core-js_shared__"], _ = u.toString, w = b.hasOwnProperty, A = (d = /[^.]+$/.exec(d && d.keys && d.keys.IE_PROTO || "")) ? "Symbol(src)_1." + d : "", E = b.toString, k = _.call(Object), x = RegExp("^" + _.call(w).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), d = g ? l.Buffer : void 0, g = l.Symbol, S = l.Uint8Array, D = (d && d.allocUnsafe, 5014 v = Object.getPrototypeOf, 5015 y = Object, 5016 function(e) { 5017 return v(y(e)) 5018 } 5019 ), T = Object.create, R = b.propertyIsEnumerable, O = h.splice, C = g ? g.toStringTag : void 0, I = function() { 5020 try { 5021 var e = J(Object, "defineProperty"); 5022 return e({}, "", {}), 5023 e 5024 } catch (e) {} 5025 }(), d = d ? d.isBuffer : void 0, P = Math.max, L = Date.now, j = J(l, "Map"), B = J(Object, "create"), M = function(e) { 5026 if (!he(e)) 5027 return {}; 5028 if (T) 5029 return T(e); 5030 U.prototype = e; 5031 e = new U; 5032 return U.prototype = void 0, 5033 e 5034 }; 5035 function U() {} 5036 function N(e) { 5037 var t = -1 5038 , n = null == e ? 0 : e.length; 5039 for (this.clear(); ++t < n; ) { 5040 var r = e[t]; 5041 this.set(r[0], r[1]) 5042 } 5043 } 5044 function G(e) { 5045 var t = -1 5046 , n = null == e ? 0 : e.length; 5047 for (this.clear(); ++t < n; ) { 5048 var r = e[t]; 5049 this.set(r[0], r[1]) 5050 } 5051 } 5052 function F(e) { 5053 var t = -1 5054 , n = null == e ? 0 : e.length; 5055 for (this.clear(); ++t < n; ) { 5056 var r = e[t]; 5057 this.set(r[0], r[1]) 5058 } 5059 } 5060 function q(e) { 5061 e = this.__data__ = new G(e); 5062 this.size = e.size 5063 } 5064 function z(e, t, n) { 5065 (void 0 === n || oe(e[t], n)) && (void 0 !== n || t in e) || K(e, t, n) 5066 } 5067 function V(e, t) { 5068 for (var n = e.length; n--; ) 5069 if (oe(e[n][0], t)) 5070 return n; 5071 return -1 5072 } 5073 function K(e, t, n) { 5074 "__proto__" == t && I ? I(e, t, { 5075 configurable: !0, 5076 enumerable: !0, 5077 value: n, 5078 writable: !0 5079 }) : e[t] = n 5080 } 5081 N.prototype.clear = function() { 5082 this.__data__ = B ? B(null) : {}, 5083 this.size = 0 5084 } 5085 , 5086 N.prototype.delete = function(e) { 5087 e = this.has(e) && delete this.__data__[e]; 5088 return this.size -= e ? 1 : 0, 5089 e 5090 } 5091 , 5092 N.prototype.get = function(e) { 5093 var t = this.__data__; 5094 if (B) { 5095 var n = t[e]; 5096 return n === r ? void 0 : n 5097 } 5098 return w.call(t, e) ? t[e] : void 0 5099 } 5100 , 5101 N.prototype.has = function(e) { 5102 var t = this.__data__; 5103 return B ? void 0 !== t[e] : w.call(t, e) 5104 } 5105 , 5106 N.prototype.set = function(e, t) { 5107 var n = this.__data__; 5108 return this.size += this.has(e) ? 0 : 1, 5109 n[e] = B && void 0 === t ? r : t, 5110 this 5111 } 5112 , 5113 G.prototype.clear = function() { 5114 this.__data__ = [], 5115 this.size = 0 5116 } 5117 , 5118 G.prototype.delete = function(e) { 5119 var t = this.__data__ 5120 , e = V(t, e); 5121 return !(e < 0 || (e == t.length - 1 ? t.pop() : O.call(t, e, 1), 5122 --this.size, 5123 0)) 5124 } 5125 , 5126 G.prototype.get = function(e) { 5127 var t = this.__data__ 5128 , e = V(t, e); 5129 return e < 0 ? void 0 : t[e][1] 5130 } 5131 , 5132 G.prototype.has = function(e) { 5133 return -1 < V(this.__data__, e) 5134 } 5135 , 5136 G.prototype.set = function(e, t) { 5137 var n = this.__data__ 5138 , r = V(n, e); 5139 return r < 0 ? (++this.size, 5140 n.push([e, t])) : n[r][1] = t, 5141 this 5142 } 5143 , 5144 F.prototype.clear = function() { 5145 this.size = 0, 5146 this.__data__ = { 5147 hash: new N, 5148 map: new (j || G),
5149 string: new N 5150 } 5151 } 5152 , 5153 F.prototype.delete = function(e) { 5154 e = Q(this, e).delete(e); 5155 return this.size -= e ? 1 : 0, 5156 e 5157 } 5158 , 5159 F.prototype.get = function(e) { 5160 return Q(this, e).get(e) 5161 } 5162 , 5163 F.prototype.has = function(e) { 5164 return Q(this, e).has(e) 5165 } 5166 , 5167 F.prototype.set = function(e, t) { 5168 var n = Q(this, e) 5169 , r = n.size; 5170 return n.set(e, t), 5171 this.size += n.size == r ? 0 : 1, 5172 this 5173 } 5174 , 5175 q.prototype.clear = function() { 5176 this.__data__ = new G, 5177 this.size = 0 5178 } 5179 , 5180 q.prototype.delete = function(e) { 5181 var t = this.__data__ 5182 , e = t.delete(e); 5183 return this.size = t.size, 5184 e 5185 } 5186 , 5187 q.prototype.get = function(e) { 5188 return this.__data__.get(e) 5189 } 5190 , 5191 q.prototype.has = function(e) { 5192 return this.__data__.has(e) 5193 } 5194 , 5195 q.prototype.set = function(e, t) { 5196 var n = this.__data__; 5197 if (n instanceof G) { 5198 var r = n.__data__; 5199 if (!j || r.length < 199) 5200 return r.push([e, t]), 5201 this.size = ++n.size, 5202 this; 5203 n = this.__data__ = new F(r) 5204 } 5205 return n.set(e, t), 5206 this.size = n.size, 5207 this 5208 } 5209 ; 5210 var H = function(e, t, n) { 5211 for (var r = -1, i = Object(e), o = n(e), a = o.length; a--; ) { 5212 var s = o[++r]; 5213 if (!1 === t(i[s], s, i)) 5214 break 5215 } 5216 return e 5217 }; 5218 function W(e) { 5219 return null == e ? void 0 === e ? "[object Undefined]" : "[object Null]" : C && C in Object(e) ? function(e) { 5220 var t = w.call(e, C) 5221 , n = e[C]; 5222 try { 5223 var r = !(e[C] = void 0) 5224 } catch (e) {} 5225 var i = E.call(e); 5226 return r && (t ? e[C] = n : delete e[C]), 5227 i 5228 }(e) : E.call(e) 5229 } 5230 function $(e) { 5231 return fe(e) && W(e) == n 5232 } 5233 function Y(r, i, o, a, s) { 5234 r !== i && H(i, function(e, t) { 5235 var n; 5236 s = s || new q, 5237 he(e) ? function(e, t, n, r, i, o, a) { 5238 var s = ee(e, n) 5239 , c = ee(t, n) 5240 , u = a.get(c); 5241 if (u) 5242 return z(e, n, u); 5243 var d, l = o ? o(s, c, n + "", e, t, a) : void 0, h = void 0 === l; 5244 h && (u = !(d = se(c)) && ue(c), 5245 t = !d && !u && ge(c), 5246 l = c, 5247 d || u || t ? l = se(s) ? s : fe(d = s) && ce(d) ? function(e, t) { 5248 var n = -1 5249 , r = e.length; 5250 for (t = t || Array(r); ++n < r; ) 5251 t[n] = e[n]; 5252 return t 5253 }(s) : u ? (h = !1, 5254 c.slice()) : t ? (h = !1, 5255 t = new (u = (d = c).buffer).constructor(u.byteLength), 5256 new S(t).set(new S(u)), 5257 new d.constructor(t,d.byteOffset,d.length)) : [] : function(e) { 5258 if (fe(e) && W(e) == f) { 5259 e = D(e); 5260 if (null === e) 5261 return 1; 5262 e = w.call(e, "constructor") && e.constructor; 5263 return "function" == typeof e && e instanceof e && _.call(e) == k 5264 } 5265 }(c) || ae(c) ? ae(l = s) ? l = function(e, t, n) { 5266 var r = !n; 5267 n = n || {};
5268 for (var i = -1, o = t.length; ++i < o; ) { 5269 var a = t[i] 5270 , s = void 0; 5271 (r ? K : function e(t, n, r) { 5272 var i = t[n]; 5273 w.call(t, n) && oe(i, r) && (void 0 !== r || n in t) || K(t, n, r) 5274 } 5275 )(n, a, s = void 0 === s ? e[a] : s) 5276 } 5277 return n 5278 }(s, me(s)) : he(s) && !de(s) || (l = "function" != typeof c.constructor || X(c) ? {} : M(D(c))) : h = !1), 5279 h && (a.set(c, l), 5280 i(l, c, r, o, a), 5281 a.delete(c)), 5282 z(e, n, l) 5283 }(r, i, t, o, Y, a, s) : (n = a ? a(ee(r, t), e, t + "", r, i, s) : void 0, 5284 z(r, t, n = void 0 === n ? e : n)) 5285 }, me) 5286 } 5287 function Q(e, t) { 5288 var n = e.__data__; 5289 return ("string" == (e = typeof t) || "number" == e || "symbol" == e || "boolean" == e ? "__proto__" !== t : null === t) ? n["string" == typeof t ? "string" : "hash"] : n.map 5290 } 5291 function J(e, t) { 5292 t = null == e ? void 0 : e[t]; 5293 return function e(t) { 5294 return he(t) && !(A && A in t) && (de(t) ? x : a).test(function(e) { 5295 if (null != e) { 5296 try { 5297 return _.call(e) 5298 } catch (e) {} 5299 try { 5300 return e + "" 5301 } catch (e) {} 5302 } 5303 return "" 5304 }(t)) 5305 }(t) ? t : void 0 5306 } 5307 function Z(e, t) { 5308 var n = typeof e; 5309 return (t = null == t ? i : t) && ("number" == n || "symbol" != n && s.test(e)) && -1 < e && e % 1 == 0 && e < t 5310 } 5311 function X(e) { 5312 var t = e && e.constructor; 5313 return e === ("function" == typeof t && t.prototype || b) 5314 } 5315 function ee(e, t) { 5316 if (("constructor" !== t || "function" != typeof e[t]) && "__proto__" != t) 5317 return e[t] 5318 } 5319 var te, ne, re, ie = (te = I ? function(e, t) { 5320 return I(e, "toString", { 5321 configurable: !0, 5322 enumerable: !1, 5323 value: (n = t, 5324 function() { 5325 return n 5326 } 5327 ), 5328 writable: !0 5329 }); 5330 var n 5331 } 5332 : ye, 5333 re = ne = 0, 5334 function() { 5335 var e = L() 5336 , t = 16 - (e - re); 5337 if (re = e, 5338 0 < t) { 5339 if (800 <= ++ne) 5340 return arguments[0] 5341 } else 5342 ne = 0; 5343 return te.apply(void 0, arguments) 5344 } 5345 ); 5346 function oe(e, t) { 5347 return e === t || e != e && t != t 5348 } 5349 var ae = $(function() { 5350 return arguments 5351 }()) ? $ : function(e) { 5352 return fe(e) && w.call(e, "callee") && !R.c
5352all(e, "callee") 5353 } 5354 , se = Array.isArray; 5355 function ce(e) { 5356 return null != e && le(e.length) && !de(e) 5357 } 5358 var ue = d || function() { 5359 return !1 5360 } 5361 ; 5362 function de(e) { 5363 if (he(e)) { 5364 e = W(e); 5365 return e == o || "[object GeneratorFunction]" == e || "[object AsyncFunction]" == e || "[object Proxy]" == e 5366 } 5367 } 5368 function le(e) { 5369 return "number" == typeof e && -1 < e && e % 1 == 0 && e <= i 5370 } 5371 function he(e) { 5372 var t = typeof e; 5373 return null != e && ("object" == t || "function" == t) 5374 } 5375 function fe(e) { 5376 return null != e && "object" == typeof e 5377 } 5378 var pe, ge = t ? (pe = t, 5379 function(e) { 5380 return pe(e) 5381 } 5382 ) : function(e) { 5383 return fe(e) && le(e.length) && !!c[W(e)] 5384 } 5385 ; 5386 function me(e) { 5387 return ce(e) ? function e(t, n) { 5388 var r, i = se(t), o = !i && ae(t), a = !i && !o && ue(t), s = !i && !o && !a && ge(t), c = i || o || a || s, u = c ? function(e, t) { 5389 for (var n = -1, r = Array(e); ++n < e; ) 5390 r[n] = t(n); 5391 return r 5392 }(t.length, String) : [], d = u.length; 5393 for (r in t) 5394 !n && !w.call(t, r) || c && ("length" == r || a && ("offset" == r || "parent" == r) || s && ("buffer" == r || "byteLength" == r || "byteOffset" == r) || Z(r, d)) || u.push(r); 5395 return u 5396 }(e, !0) : function e(n) { 5397 if (!he(n)) 5398 return function() { 5399 var e = []; 5400 if (null != n) 5401 for (var t in Object(n)) 5402 e.push(t); 5403 return e 5404 }(); 5405 var t, r = X(n), i = []; 5406 for (t in n) 5407 ("constructor" != t || !r && w.call(n, t)) && i.push(t); 5408 return i 5409 }(e) 5410 } 5411 var ve, t = (ve = function(e, t, n) { 5412 Y(e, t, n) 5413 } 5414 , 5415 function e(t, n) { 5416 return ie((o = t, 5417 s = ye, 5418 a = P(void 0 === (a = n) ? o.length - 1 : a, 0), 5419 function() { 5420 for (var e = arguments, t = -1, n = P(e.length - a, 0), r = Array(n); ++t < n; ) 5421 r[t] = e[a + t]; 5422 for (var t = -1, i = Array(a + 1); ++t < a; ) 5423 i[t] = e[t]; 5424 return i[a] = s(r), 5425 function e(t, n, r) { 5426 switch (r.length) { 5427 case 0: 5428 return t.call(n); 5429 case 1: 5430 return t.call(n, r[0]); 5431 case 2: 5432 return t.call(n, r[0], r[1]); 5433 case 3: 5434 return t.call(n, r[0], r[1], r[2]) 5435 } 5436 return t.apply(n, r) 5437 }(o, this, i) 5438 } 5439 ), t + ""); 5440 var o, a, s 5441 }(function(e, t) { 5442 var n = -1 5443 , r = t.length 5444 , i = 1 < r ? t[r - 1] : void 0 5445 , o = 2 < r ? t[2] : void 0 5446 , i = 3 < ve.length && "function" == typeof i ? (r--, 5447 i) : void 0; 5448 for (o && function(e, t, n) { 5449 if (he(n)) { 5450 var r = typeof t; 5451 return ("number" == r ? ce(n) && Z(t, n.length) : "string" == r && t in n) && oe(n[t], e) 5452 } 5453 }(t[0], t[1], o) && (i = r < 3 ? void 0 : i, 5454 r = 1), 5455 e = Object(e); ++n < r; ) { 5456 var a = t[n]; 5457 a && ve(e, a, n) 5458 } 5459 return e 5460 })); 5461 function ye(e) { 5462 return e 5463 } 5464 e.exports = t 5465 }(q, q.exports); 5466 var Pd = q.exports; 5467 function Ld(t, e) { 5468 var n, r = Object.keys(t); 5469 return Object.getOwnPropertySymbols && (n = Object.getOwnPropertySymbols(t), 5470 e && (n = n.filter(function(e) { 5471 return Object.getOwnPropertyDescriptor(t, e).enumerable 5472 })), 5473 r.push.apply(r, n)), 5474 r 5475 }
5476 function jd(t) { 5477 for (var e = 1; e < arguments.length; e++) { 5478 var n = null != arguments[e] ? arguments[e] : {}; 5479 e % 2 ? Ld(Object(n), !0).forEach(function(e) { 5480 qn(t, e, n[e]) 5481 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ld(Object(n)).forEach(function(e) { 5482 Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)) 5483 }) 5484 } 5485 return t 5486 } 5487 function Bd(e) { 5488 return (null != e && e.error_url ? "<vmap:VASTAdData>".concat(((t = e).promo_url ? '<VAST version="3.0">\n <Ad id="'.concat(t.id, '">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(t.error_url, "]]></Error>\n <Impression><![CDATA[").concat(t.impression_url, "]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(t.adtag_url, ']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(t.promo_imp_green_url, "]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(t.promo_url, ']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>') : '<VAST version="3.0">\n <Ad id="'.concat(t.id, '">\n <Wrapper>\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(t.error_url, "]]></Error>\n <Impression><![CDATA[").concat(t.impression_url, "]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(t.adtag_url, "]]></VASTAdTagURI>\n </Wrapper>\n </Ad>\n </VAST>")).trim(), "</vmap:VASTAdData>") : '<vmap:AdTagURI templateType="vast3"><![CDATA['.concat(null == e ? void 0 : e.adtag_url, "]]></vmap:AdTagURI>")).trim(); 5489 var t 5490 } 5491 const Md = "function" == typeof atob 5492 , Ud = "function" == typeof btoa 5493 , Nd = "function" == typeof gf 5494 , Gd = "function" == typeof TextDecoder ? new TextDecoder : void 0 5495 , Fd = "function" == typeof TextEncoder ? new TextEncoder : void 0 5496 , qd = [..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="] 5497 , zd = (e=>{ 5498 let n = {}; 5499 return e.forEach((e,t)=>n[e] = t), 5500 n 5501 } 5502 )(qd) 5503 , Vd = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/ 5504 , Kd = String.fromCharCode.bind(String) 5505 , Hd = "function" == typeof Uint8Array.from ? Uint8Array.from.bind(Uint8Array) : (e,t=e=>e)=>new Uint8Array(Array.prototype.slice.call(e, 0).map(t)) 5506 , Wd = e=>e.replace(/[^A-Za-z0-9\+\/]/g, "") 5507 , $d = Ud ? e=>btoa(e) : Nd ? e=>gf.from(e, "binary").toString("base64") : t=>{ 5508 let n, r, i, o, a = ""; 5509 var e = t.length % 3; 5510 for (let e = 0; e < t.length; ) { 5511 if (255 < (r = t.charCodeAt(e++)) || 255 < (i = t.charCodeAt(e++)) || 255 < (o = t.charCodeAt(e++))) 5512 throw new TypeError("invalid character found"); 5513 n = r << 16 | i << 8 | o, 5514 a += qd[n >> 18 & 63] + qd[n >> 12 & 63] + qd[n >> 6 & 63] + qd[63 & n] 5515 } 5516 return e ? a.slice(0, e - 3) + "===".substring(e) : a 5517 } 5518 , Yd = Nd ? e=>gf.from(e).toString("base64") : n=>{ 5519 let r = []; 5520 for (let e = 0, t = n.length; e < t; e += 4096) 5521 r.push(Kd.apply(null, n.subarray(e, e + 4096))); 5522 return $d(r.join("")) 5523 } 5524 , Qd = e=>{ 5525 if (e.length < 2) 5526 return (t = e.charCodeAt(0)) < 128 ? e : t < 2048 ? Kd(192 | t >>> 6) + Kd(128 | 63 & t) : Kd(224 | t >>> 12 & 15) + Kd(128 | t >>> 6 & 63) + Kd(128 | 63 & t); 5527 var t = 65536 + 1024 * (e.charCodeAt(0) - 55296) + (e.charCodeAt(1) - 56320); 5528 return Kd(240 | t >>> 18 & 7) + Kd(128 | t >>> 12 & 63) + Kd(128 | t >>> 6 & 63) + Kd(128 | 63 & t) 5529 } 5530 , Jd = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g 5531 , Zd = Nd ? e=>gf.from(e, "utf8").toString("base64") : Fd ? e=>Yd(Fd.encode(e)) : e=>$d((e=>e.replace(Jd, Qd))(e)) 5532 , Xd = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g 5533 , el = e=>{ 5534 switch (e.length) { 5535 case 4: 5536 var t = ((7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3)) - 65536; 5537 return Kd(55296 + (t >>> 10)) + Kd(56320 + (1023 & t)); 5538 case 3: 5539 return Kd((15 & e.charCodeAt(0)) << 12 | (63 & e.charCodeAt(1)) << 6 | 63 & e.charCodeAt(2)); 5540 default: 5541 return Kd((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1)) 5542 } 5543 } 5544 , tl = Md ? e=>atob(Wd(e)) : Nd ? e=>gf.from(e, "base64").toString("binary") : t=>{ 5545 if (t = t.replace(/\s+/g, ""), 5546 !Vd.test(t)) 5547 throw new TypeError("malformed base64."); 5548 t += "==".slice(2 - (3 & t.length)); 5549 let n, r, i, o = ""; 5550 for (let e = 0; e < t.length; ) 5551 n = zd[t.charAt(e++)] << 18 | zd[t.charAt(e++)] << 12 | (r = zd[t.charAt(e++)]) << 6 | (i = zd[t.charAt(e++)]), 5552 o += 64 === r ? Kd(n >> 16 & 255) : 64 === i ? Kd(n >> 16 & 255, n >> 8 & 255) : Kd(n >> 16 & 255, n >> 8 & 255, 255 & n); 5553 return o 5554 } 5555 , nl = Nd ? e=>Hd(gf.from(e, "base64")) : e=>Hd(tl(e), e=>e.charCodeAt(0)) 5556 , rl = Nd ? e=>gf.from(e, "base64").toString("utf8") : Gd ? e=>Gd.decode(nl(e)) : e=>(e=>e.replace(Xd, el))(tl(e)) 5557 , il = (e,t=!1)=>t ? (e=>e.replace(/[+\/]/g, e=>"+" == e ? "-" : "_").replace(/=+$/m, ""))(Zd(e)) : Zd(e) 5558 , ol = e=>rl((e=>Wd(e.replace(/[-_]/g, e=>"-" == e ? "+" : "/")))(e)); 5559 function al(t, e) { 5560 var n, r = Object.keys(t); 5561 return Object.getOwnPropertySymbols && (n = Object.getOwnPropertySymbols(t), 5562 e && (n = n.filter(function(e) { 5563 return Object.getOwnPropertyDescriptor(t, e).enumerable 5564 })), 5565 r.push.apply(r, n)), 5566 r 5567 } 5568 function sl(t) { 5569 for (var e = 1; e < arguments.length; e++) { 5570 var n = null != arguments[e] ? arguments[e] : {};
5571 e % 2 ? al(Object(n), !0).forEach(function(e) { 5572 qn(t, e, n[e]) 5573 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : al(Object(n)).forEach(function(e) { 5574 Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)) 5575 }) 5576 } 5577 return t 5578 } 5579 var cl, ul, dl, ll, hl, fl, pl, gl, ml, vl, yl, bl, _l = null, wl = (Wn(Cl, [{ 5580 key: "start", 5581 value: (bl = Vn(Yn.mark(function e() { 5582 var t, n, r = this; 5583 return Yn.wrap(function(e) { 5584 for (; ; ) 5585 switch (e.prev = e.next) { 5586 case 0: 5587 return e.prev = 0, 5588 n = this._getPrebidScripts(), 5589 t = n[0], 5590 window.HB_OPTIONSgd = { 5591 gameId: this.gameId 5592 }, 5593 e.next = 6, 5594 td(t, "gdsdk_prebid", { 5595 alternates: n, 5596 error_prefix: "Blocked:", 5597 exists: function() { 5598 return p(this, r), 5599 window.idhb 5600 } 5601 .bind(this) 5602 }); 5603 case 6: 5604 return window.idhb = window.idhb || {}, 5605 window.idhb.que = window.idhb.que || [], 5606 window.idhb.que.push(function() { 5607 var i = this; 5608 p(this, r), 5609 window.idhb.addEventListener("slotRenderEnded", function(e) { 5610 var t = this; 5611 p(this, i); 5612 try { 5613 var n, r = 1 === (r = e.slotId.split("@")).length ? r[0] : r[1]; 5614 e.isEmpty ? (null !== (n = this.atom_display) && void 0 !== n && n.error_url && (fetch(this.atom_display.error_url).catch(function(e) { 5615 p(this, t) 5616 } 5617 .bind(this)), 5618 delete this.atom_display), 5619 this.eventBus.broadcast("DISPLAYAD_ERROR", { 5620 message: r, 5621 status: "warning" 5622 })) : (this.atom_display.impression_url && (fetch(this.atom_display.impression_url).catch(function(e) { 5623 p(this, t) 5624 } 5625 .bind(this)), 5626 delete this.atom_display), 5627 this.eventBus.broadcast("DISPLAYAD_IMPRESSION", { 5628 message: r, 5629 status: "success" 5630 })) 5631 } catch (e) {} 5632 } 5633 .bind(this)) 5634 } 5635 .bind(this)), 5636 t = ["https://imasdk.googleapis.com/js/sdkloader/ima3_debug.js", "https://imasdk.googleapis.com/js/sdkloader/ima3.js", "http://imasdk.googleapis.com/js/sdkloader/ima3_debug.js", "http://imasdk.googleapis.com/js/sdkloader/ima3.js"], 5637 n = this.options.debug ? t[0] : t[1], 5638 e.next = 13, 5639 td(n, "gdsdk_ima", { 5640 alternates: t, 5641 error_prefix: "Blocked:", 5642 exists: function() { 5643 return p(this, r), 5644 window.google && window.google.ima 5645 } 5646 .bind(this) 5647 }); 5648 case 13: 5649 this._createPlayer(), 5650 this._setUpIMA(), 5651 e.next = 20; 5652 break; 5653 case 17: 5654 throw e.prev = 17, 5655 e.t0 = e.catch(0), 5656 new Error(e.t0); 5657 case 20: 5658 case "end": 5659 return e.stop() 5660 } 5661 }, e, this, [[0, 17]]) 5662 })), 5663 function() { 5664 return bl.apply(this, arguments) 5665 } 5666 ) 5667 }, { 5668 key: "_getAdVast", 5669 value: function(u, d) { 5670 var t, l = this; 5671 return new Promise((t = Vn(Yn.mark(function e(i) { 5672 var t, o, n, a, r, s, c = this; 5673 return Yn.wrap(function(e) { 5674 for (; ; ) 5675 switch (e.prev = e.next) { 5676 case 0: 5677 if (ad && rd("gd_debug_ex") && rd("gd_tag")) 5678 return t = l.IMASampleTags[u], 5679 n = Math.floor(Math.random() * t.length), 5680 n = t[n], 5681 i({ 5682 url: n 5683 }), 5684 e.abrupt("return"); 5685 e.next = 6; 5686 break; 5687 case 6: 5688 if (void 0 === window.idhb.requestAds) 5689 throw new Error("Prebid.js wrapper script hit an error or didn't exist!"); 5690 e.next = 8; 5691 break; 5692 case 8: 5693 return e.prev = 8, 5694 e.next = 11, 5695 l._getTunnlKeys(u); 5696 case 11: 5697 if (r = e.sent, 5698 o = r.data, 5699 n = o.nsid || "TNL_T-17102571517", 5700 r = o.tid || "TNL_NS-18101700058", 5701 a = "".concat(n, "/").concat(r), 5702 delete o.nsid, 5703 delete o.tid, 5704 Pd(o, { 5705 tnl_system: "1", 5706 tnl_content_category: l.category.toLowerCase() 5707 }), 5708 l.eventBus.broadcast("AD_REQUEST", { 5709 message: o.tnl_ad_pos 5710 }), 5711 r = l.options, 5712 "preroll" === o.tnl_ad_pos && Mu(r.preroll) ? r = r.preroll : "midroll" === o.tnl_ad_pos && Mu(r.midroll) ? r = r.midroll : "rewarded" === o.tnl_ad_pos && Mu(r.rewarded) && (r = r.rewarded), 5713 d && d.retry_on_success && Mu(r.retry_on_success) && Mu(r.retry_on_success.vast)) 5714 return e.abrupt("return", i(l._createCustomAdVastUrl(r.retry_on_success.vast, { 5715 tnl_keys: o 5716 }))); 5717 e.next = 26; 5718 break; 5719 case 26: 5720 if (d && d.retry_on_failure && l.options.retry_on_failure && Mu(r.retry_on_failure.vast)) 5721 return e.abrupt("return", i(l._createCustomAdVastUrl(r.retry_on_failure.vast, { 5722 tnl_keys: o 5723 }))); 5724 e.next = 30; 5725 break; 5726 case 30: 5727 if (Mu(r.vast)) 5728 return e.abrupt("return", i(l._createCustomAdVastUrl(r.vast, { 5729 tnl_keys: o 5730 }))); 5731 e.next = 32; 5732 break; 5733 case 32: 5734 return e.next = 34, 5735 l._create_dp_context(o.tnl_ad_pos); 5736 case 34: 5737 s = e.sent, 5738 window.idhb.que.push(function() { 5739 var r = this; 5740 p(this, c), 5741 window.idhb.setRefererUrl(encodeURIComponent(l.parentURL)), 5742 window.idhb.allowPersonalizedAds(!!parseInt(l.userAllowedPersonalizedAds)); 5743 var e = "rewarded" === o.tnl_ad_pos ? "rewardedVideo" : "gdbanner" === o.tnl_ad_pos ? "gd__banner" : "midroll" === o.tnl_ad_pos ? "midroll" : "video1"; 5744 window.idhb.setDfpAdUnitCo
5744deForAdSlot(e, a), 5745 window.idhb.setAdserverTargetingForAdSlot(e, o), 5746 window.idhb.requestAds({ 5747 slots: qn({}, e, { 5748 bidFloor: null != s && s.floor_price ? s.floor_price : void 0 5749 }), 5750 callback: function(e, t) { 5751 var n = this; 5752 p(this, r), 5753 s && !t.bidFloorApplied && fetch(s.skip_url).catch(function(e) { 5754 p(this, n) 5755 } 5756 .bind(this)), 5757 i({ 5758 tnl_keys: o, 5759 url: e, 5760 dp: s, 5761 hl: t 5762 }) 5763 } 5764 .bind(this) 5765 }) 5766 } 5767 .bind(this)), 5768 e.next = 41; 5769 break; 5770 case 38: 5771 throw e.prev = 38, 5772 e.t0 = e.catch(8), 5773 new Error(e.t0); 5774 case 41: 5775 case "end": 5776 return e.stop() 5777 } 5778 }, e, this, [[8, 38]]) 5779 })), 5780 function(e) { 5781 return t.apply(this, arguments) 5782 } 5783 )) 5784 } 5785 }, { 5786 key: "nextAdPosition", 5787 value: function(e) { 5788 if (e === Qu.Rewarded) 5789 return this.adRewardedCount++, 5790 "rewarded"; 5791 if (e !== Qu.Interstitial) 5792 return "midroll"; 5793 e = !1 === this.gameData.preroll || !0 === this.noPreroll || 1 === this.adPrerollCount; 5794 return e ? this.adMidrollCount++ : this.adPrerollCount++, 5795 e || 0 < this.adMidrollCount ? "midroll" : "preroll" 5796 } 5797 }, { 5798 key: "getAdPosition", 5799 value: function(e) { 5800 return e === Qu.Rewarded ? "rewarded" : e !== Qu.Interstitial || !1 === this.gameData.preroll || !0 === this.noPreroll || 1 === this.adPrerollCount || 0 < this.adMidrollCount ? "midroll" : "preroll" 5801 } 5802 }, { 5803 key: "_getTunnlKeys", 5804 value: function(s) { 5805 var c = this; 5806 return new Promise(function(n) { 5807 var r = this; 5808 p(this, c); 5809 var e = !navigator.userAgent.match(/Crosswalk/i) && void 0 === window.cordova || "m.hopy.com" !== this.parentDomain ? "page_url=".concat(encodeURIComponent(this.parentURL)) : "bundle=com.hopy.frivgames" 5810 , i = this.nextAdPosition(s) 5811 , t = Zu("ch", window.location.href) 5812 , o = Zu("ch_date", window.location.href) 5813 , t = t ? "&ch=".concat(t) : "" 5814 , o = o ? "&ch_date=".concat(o) : "" 5815 , a = "json/null.json?https://pub.headerlift.com/opphb?".concat(e, "&player_width=").concat(this.options.width, "&player_height=").concat(this.options.height, "&ad_type=video_image&game_id=").concat(this.gameId, "&ad_position=").concat(i).c
5815oncat(t).concat(o, "&correlator=").concat(Date.now()) 5816 , o = new Request(a,{ 5817 method: "GET" 5818 }); 5819 fetch(o).then(function(e) { 5820 p(this, r); 5821 var t = e.headers.get("content-type"); 5822 if (t && -1 !== t.indexOf("application/json")) 5823 return e.json(); 5824 throw new TypeError("Oops, we didn't get JSON!") 5825 } 5826 .bind(this)).then(function(e) { 5827 p(this, r), 5828 function(e) { 5829 if (e) { 5830 for (var t in e) 5831 if (e.hasOwnProperty(t)) 5832 return; 5833 return 1 5834 } 5835 }(e) && (e = this._createTunnlReportingFallbackKeys(i), 5836 this.eventBus.broadcast("AD_REQUEST_KEYS_EMPTY", { 5837 message: "Tunnl returned empty response.", 5838 details: a 5839 })), 5840 n({ 5841 data: e, 5842 url: a 5843 }) 5844 } 5845 .bind(this)).catch(function(e) { 5846 p(this, r); 5847 var t = this._createTunnlReportingFallbackKeys(i); 5848 this.eventBus.broadcast("AD_REQUEST_KEYS_FALLBACK", { 5849 message: e.message, 5850 details: a 5851 }), 5852 n({ 5853 data: t, 5854 url: a 5855 }) 5856 } 5857 .bind(this)) 5858 } 5859 .bind(this)) 5860 } 5861 }, { 5862 key: "_createTunnlReportingFallbackKeys", 5863 value: function(e) { 5864 return { 5865 tid: "TNL_T-17102571517", 5866 nsid: "TNL_NS-18101700058", 5867 tnl_tid: "T-17102571517", 5868 tnl_nsid: "NS-18101700058", 5869 tnl_pw: this.options.width, 5870 tnl_ph: this.options.height, 5871 tnl_pt: "22", 5872 tnl_pid: "P-17101800031", 5873 tnl_paid: "17", 5874 tnl_ad_type: "video_image", 5875 tnl_asset_id: this.gameId.toString(), 5876 tnl_ad_pos: e, 5877 tnl_skippable: "1", 5878 tnl_cp1: "", 5879 tnl_cp2: "", 5880 tnl_cp3: "", 5881 tnl_cp4: "", 5882 tnl_cp5: "", 5883 tnl_cp6: "", 5884 tnl_campaign: "2", 5885 tnl_gdpr: "0", 5886 tnl_gdpr_consent: "1", 5887 consent_string: "BOWJjG9OWJjG9CLAAAENBx-AAAAiDAAA", 5888 tnl_content_category: this.category.toLowerCase() 5889 } 5890 } 5891 }, { 5892 key: "_requestAd", 5893 value: function(l, h) { 5894 var f = this; 5895 return h = h || {}, 5896 new Promise(function(e) { 5897 if (p(this, f), 5898 "undefined" == typeof google) 5899 throw new Error("Unable to load ad, google IMA SDK not defined."); 5900 try { 5901 var t, n = null == l || null === (t = l.tnl_keys) || void 0 === t ? void 0 : t.tnl_ad_pos; 5902 this.adSuccess = !1; 5903 var r = new google.ima.AdsRequest 5904 , i = this._transformVast(l, h) 5905 , o = sl(sl({}, h), {}, { 5906 adTag: i, 5907 tnl_ad_pos: n 5908 }); 5909 this.adCounter[n] = this.adCounter[n] || 0, 5910 this.adCounter[n]++; 5911 var a, s, c = l.dp, u = l.hl; 5912 c && (c.adtag_url = i.url), 5913 this._isVMAP(n) ? (a = function(e) { 5914 var t = e.position || "midroll" 5915 , n = e.dp_1 5916 , r = e.dp_2 5917 , i = Date.now() 5918 , o = new Lu(e.adtag_url_1,!0); 5919 o.query = jd(jd({}, o.query), {}, { 5920 ad_rule: 0, 5921 vpos: t, 5922 pod: 1, 5923 ppos: 1, 5924 lip: !0, 5925 correlator: i, 5926 output: "xml_vast3" 5927 }); 5928 o = o.toString(), 5929 e = new Lu(e.adtag_url_2,!0); 5930 e.query = jd(jd({}, e.query), {}, { 5931 ad_rule: 0, 5932 vpos: t, 5933 pod: 1, 5934 correlator: ++i, 5935 output: "xml_vast3" 5936 }); 5937 i = e.toString(), 5938 e = Date.now(); 5939 return '<?xml version="1.0" encoding="UTF-8"?>\n<vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">\n<vmap:AdBreak timeOffset="start" breakType="linear,nonlinear" breakId="break-1">\n <vmap:AdSource id="'.concat(e++, '" allowMultipleAds="false" followRedirects="true">\n ').concat(Bd({ 5940 id: e++, 5941 adtag_url: o, 5942 error_url: null == n ? void 0 : n.error_url, 5943 impression_url: null == n ? void 0 : n.impression_url 5944 }), '\n </vmap:AdSource>\n</vmap:AdBreak>\n<vmap:AdBreak timeOffset="start" breakType="linear,nonlinear" breakId="break-2">\n <vmap:AdSource id="').concat(e++, '" allowMultipleAds="false" followRedirects="true">\n ').concat(Bd({ 5945 id: e++, 5946 adtag_url: i, 5947 error_url: null == r ? void 0 : r.error_url, 5948 impression_url: null == r ? void 0 : r.impression_url 5949 }), '\n </vmap:AdSource>\n <vmap:Extensions>\n <vmap:Extension type="bumper" suppress_bumper="true"></vmap:Extension>\n </vmap:Extensions>\n</vmap:AdBreak>\n</vmap:VMAP>').trim() 5950 }(this._get_vmap_context({ 5951 dp: c, 5952 adtag: i, 5953 position: "preroll" === o.tnl_ad_pos ? "preroll" : "midroll", 5954 config: this._get_vmap_config(n) 5955 })), 5956 r.adsResponse = a) : c && u.bidFloorApplied ? (s = ((d = c).promo_url ? '<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(d.id, '">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(d.error_url, "]]></Error>\n <Impression><![CDATA[").concat(d.impression_url, "]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(d.adtag_url, ']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(d.promo_imp_green_url, "]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(d.promo_url, ']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>') : '<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(d.id, '">\n <Wrapper>\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(d.error_url, "]]></Error>\n <Impression><![CDATA[").concat(d.impression_url, "]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(d.adtag_url, "]]></VASTAdTagURI>\n </Wrapper>\n </Ad>\n </VAST>")).trim(), 5957 r.adsResponse = s) : r.adTagUrl = i.url, 5958 r.linearAdSlotWidth = this.options.width, 5959 r.linearAdSlotHeight = this.options.height,
5960 r.nonLinearAdSlotWidth = this.options.width, 5961 r.nonLinearAdSlotHeight = this.options.height, 5962 r.forceNonLinearFullSlot = !0, 5963 this.options.vast_load_timeout && (r.vastLoadTimeout = this.options.vast_load_timeout), 5964 r.setAdWillAutoPlay(h.autoplayAllowed), 5965 r.setAdWillPlayMuted(h.autoplayRequiresMute), 5966 this.adsLoader.requestAds(r, o); 5967 try { 5968 this.eventBus.broadcast("AD_SDK_REQUEST", { 5969 message: o 5970 }) 5971 } catch (e) {} 5972 e(r) 5973 } catch (e) { 5974 throw new Error(e) 5975 } 5976 var d 5977 } 5978 .bind(this)) 5979 } 5980 }, { 5981 key: "cancel", 5982 value: function() { 5983 var e; 5984 !1 !== this.requestRunning && (this.requestRunning = !1, 5985 this._resetAdsLoader(), 5986 this._hide("cancel"), 5987 this.eventBus.broadcast(e = "AD_SDK_CANCELED", { 5988 name: e, 5989 message: "Advertisement has been canceled.", 5990 status: "warning", 5991 analytics: { 5992 category: this.eventCategory, 5993 action: e, 5994 label: this.gameId 5995 } 5996 })) 5997 } 5998 }, { 5999 key: "_checkAutoPlay", 6000 value: (yl = Vn(Yn.mark(function e() { 6001 var i = this; 6002 return Yn.wrap(function(e) { 6003 for (; ; ) 6004 switch (e.prev = e.next) { 6005 case 0: 6006 return e.abrupt("return", new Promise(function(n, e) { 6007 var r = this; 6008 p(this, i); 6009 var t = navigator.userAgent.toLowerCase(); 6010 -1 < t.indexOf("safari") && t.indexOf("chrome") < 0 ? n({ 6011 autoplayAllowed: !0, 6012 autoplayRequiresMute: !0 6013 }) : Id({ 6014 inline: !0, 6015 muted: !1 6016 }).then(function(e) { 6017 p(this, r); 6018 var t = e.result; 6019 e.error, 6020 n(!0 === t ? { 6021 autoplayAllowed: !0, 6022 autoplayRequiresMute: !1 6023 } : { 6024 autoplayAllowed: !0, 6025 autoplayRequiresMute: !0 6026 }) 6027 } 6028 .bind(this)) 6029 } 6030 .bind(this))); 6031 case 1: 6032 case "end": 6033 return e.stop() 6034 } 6035 }, e, this) 6036 })), 6037 function() { 6038 return yl.apply(this, arguments) 6039 } 6040 ) 6041 }, { 6042 key: "_initDisplayContainerWithAutoPlay", 6043 value: (vl = Vn(Yn.mark(function e() { 6044 var t; 6045 return Yn.wrap(function(e) { 6046 for (; ; ) 6047 switch (e.prev = e.next) { 6048 case 0: 6049 return e.next = 2, 6050 this._checkAutoPlay(!1); 6051 case 2: 6052 return t = e.sent, 6053 this._autoplay = t, 6054 this.video_ad_player.autoplay = t.autoplayAllowed, 6055 this.video_ad_player.volume = t.autoplayRequiresMute ? 0 : 1, 6056 this.video_ad_player.muted = !!t.autoplayRequiresMute, 6057 t.adDisplayContainerInitialized || (this.adDisplayContainer.initialize(), 6058 this.adDisplayContainerInitialized = !0), 6059 e.abrupt("return", t); 6060 case 9: 6061 case "end": 6062 return e.stop() 6063 } 6064 }, e, this) 6065 })), 6066 function() {
6067 return vl.apply(this, arguments) 6068 } 6069 ) 6070 }, { 6071 key: "startAd", 6072 value: (ml = Vn(Yn.mark(function e(t, n) { 6073 return Yn.wrap(function(e) { 6074 for (; ; ) 6075 switch (e.prev = e.next) { 6076 case 0: 6077 if (t === Qu.Interstitial) 6078 return e.abrupt("return", this._startInterstitialAd(n)); 6079 e.next = 4; 6080 break; 6081 case 4: 6082 if (t === Qu.Rewarded) 6083 return e.abrupt("return", this._startRewardedAd(n)); 6084 e.next = 8; 6085 break; 6086 case 8: 6087 throw new Error("Unsupported ad type"); 6088 case 9: 6089 case "end": 6090 return e.stop() 6091 } 6092 }, e, this) 6093 })), 6094 function(e, t) { 6095 return ml.apply(this, arguments) 6096 } 6097 ) 6098 }, { 6099 key: "preloadAd", 6100 value: (gl = Vn(Yn.mark(function e(t) { 6101 return Yn.wrap(function(e) { 6102 for (; ; ) 6103 switch (e.prev = e.next) { 6104 case 0: 6105 if (t === Qu.Interstitial) 6106 return e.abrupt("return", this._preloadInterstitialAd()); 6107 e.next = 4; 6108 break; 6109 case 4: 6110 if (t === Qu.Rewarded) 6111 return e.abrupt("return", this._preloadRewardedAd()); 6112 e.next = 8; 6113 break; 6114 case 8: 6115 throw new Error("Unsupported ad type"); 6116 case 9: 6117 case "end": 6118 return e.stop() 6119 } 6120 }, e, this) 6121 })), 6122 function(e) { 6123 return gl.apply(this, arguments) 6124 } 6125 ) 6126 }, { 6127 key: "addAdResume", 6128 value: function() { 6129 var e = this 6130 , t = function() { 6131 p(this, e), 6132 this.adsManager.resume() 6133 } 6134 .bind(this); 6135 try { 6136 this.adResume = new Ad(this.adContainer,t), 6137 this.adResume.add() 6138 } catch (e) { 6139 console.log("error on adding adResume", e) 6140 } 6141 } 6142 }, { 6143 key: "loadDisplayAd", 6144 value: (pl = Vn(Yn.mark(function e(c) { 6145 var u = this; 6146 return Yn.wrap(function(e) { 6147 for (; ; ) 6148 switch (e.prev = e.next) { 6149 case 0: 6150 return e.abrupt("return", new Promise(function() { 6151 var n = Vn(Yn.mark(function e(t, n) { 6152 var r, i, o, a, s = this; 6153 return Yn.wrap(function(e) { 6154 for (; ; ) 6155 switch (e.prev = e.next) { 6156 case 0: 6157 return e.prev = 0, 6158 (o = c ? c.containerId : null) || n("Container id is not specified"), 6159 r = document.getElementById(o), 6160 document.getElementById(o) || n("No container is found with this id - ".concat(o)), 6161 void 0 === window.idhb.requestAds && n("Prebid.js wrapper script hit an error or didn't exist!"), 6162 i = c.slotId || "gd__banner@".concat(o), 6163 document.getElementById(i) || (o = "\n .gd__banner{\n z-index: ".concat(fd, ";\n height: 100%;\n display: flex !important;\n align-items: center;\n justify-content: center;\n }"), 6164 document.getElementById("gd__banner__style") || ((a = document.createElement("style")).type = "text/css", 6165 a.id = "gd__banner__style", 6166 a.styleSheet ? a.styleSheet.cssText = o : a.appendChild(document.createTextNode(o)), 6167 r.appendChild(a)), 6168 (a = document.createElement("div")).id = i, 6169 a.classList.add("gd__banner"), 6170 r.appendChild(a)), 6171 e.next = 10, 6172 u._create_dp_display_context(); 6173 case 10: 6174 u.atom_display = e.sent, 6175 window.idhb.que.push(function() { 6176 var e, t = this; 6177 p(this, s), 6178 window.idhb.setRefererUrl(encodeURIComponent(u.parentURL)), 6179 window.idhb.allowPersonalizedAds(!!parseInt(u.userAllowedPersonalizedAds)), 6180 window.idhb.setDefaultGdprConsentString("BOWJjG9OWJjG9CLAAAENBx-AAAAiDAAA"), 6181 null !== (e = u.atom_display) && void 0 !== e && e.params && window.idhb.setAdserverTargeting(null === (n = u.atom_display) || void 0 === n ? void 0 : n.params); 6182 var n = {}; 6183 n[i] = { 6184 maxSize: [r.offsetWidth, r.offsetHeight] 6185 }, 6186 window.idhb.requestAds({ 6187 slots: n, 6188 callback: function(e) { 6189 p(this, t) 6190 } 6191 .bind(this) 6192 }) 6193 } 6194 .bind(this)), 6195 t(), 6196 e.next = 18; 6197 break; 6198 case 15: 6199 e.prev = 15, 6200 e.t0 = e.catch(0), 6201 n(e.t0.message || e.t0); 6202 case 18: 6203 case "end": 6204 return e.stop() 6205 } 6206 }, e, this, [[0, 15]]) 6207 })); 6208 return function(e, t) { 6209 return n.apply(this, arguments) 6210 } 6211 }())); 6212 case 1: 6213 case "end": 6214 return e.stop() 6215 } 6216 }, e) 6217 })), 6218 function(e) { 6219 return pl.apply(this, arguments) 6220 } 6221 ) 6222 }, { 6223 key: "_startInterstitialAd", 6224 value: (fl = Vn(Yn.mark(function e(t) { 6225 var n; 6226 return Yn.wrap(function(e) { 6227 for (; ; ) 6228 switch (e.prev = e.next) { 6229 case 0: 6230 if (e.prev = 0, 6231 this.requestRunning) 6232 return this.eventBus.broadcast("AD_IS_ALREADY_RUNNING", { 6233 status: "warning" 6234 }), 6235 e.abrupt("return"); 6236 e.next = 4; 6237 break; 6238 case 4: 6239 return this.requestRunning = !0, 6240 e.next = 7, 6241 this._initDisplayContainerWithAutoPlay(); 6242 case 7: 6243 return n = e.sent, 6244 e.next = 10, 6245 this._loadInterstitialAd(sl(sl({}, n), t)); 6246 case 10: 6247 n.autoplayRequiresMute && this.adsManager.setVolume(0), 6248 this.adsManager.init(this.options.width, this.options.height, google.ima.ViewMode.NORMAL), 6249 this.adsManager.start(), 6250 e.next = 19; 6251 break; 6252 case 15: 6253 throw e.prev = 15, 6254 e.t0 = e.catch(0), 6255 this._onError(e.t0), 6256 e.t0; 6257 case 19: 6258 case "end": 6259 return e.stop() 6260 } 6261 }, e, this, [[0, 15]]) 6262 })), 6263 function(e) { 6264 return fl.apply(this, arguments) 6265 } 6266 ) 6267 }, { 6268 key: "_loadInterstitialAd", 6269 value: (hl = Vn(Yn.mark(function e(t) { 6270 var n, r, a = this; 6271 return Yn.wrap(function(e) { 6272 for (; ; ) 6273 switch (e.prev = e.next) { 6274 case 0: 6275 if (this._resetAdsLoader(), 6276 e.prev = 1, 6277 e.t0 = this.preloadedInterstitialAdVast, 6278 e.t0) { 6279 e.next = 7; 6280 break 6281 } 6282 return e.next = 6, 6283 this._getAdVast(Qu.Interstitial, t); 6284 case 6: 6285 e.t0 = e.sent; 6286 case 7: 6287 return n = e.t0, 6288 delete this.preloadedInterstitialAdVast, 6289 e.next = 11, 6290 this._requestAd(n, sl({ 6291 adType: Qu.Interstitial 6292 }, t)); 6293 case 11: 6294 return r = e.sent, 6295 e.next = 14, 6296 new Promise(function(t, n) { 6297 var r = this; 6298 p(this, a); 6299 var i = "videoad.preloadad"; 6300 this.eventBus.unsubscribeScope(i); 6301 var e = function(e) { 6302 p(this, r), 6303 this.eventBus.unsubscribeScope(i), 6304 t(e.message) 6305 } 6306 .bind(this) 6307 , o = function(e) { 6308 p(this, r), 6309 this.eventBus.unsubscribeScope(i), 6310 n(e.message) 6311 } 6312 .bind(this); 6313 this.eventBus.subscribe("AD_SDK_MANAGER_READY", e, i), 6314 this.eventBus.subscribe("AD_SDK_CANCELED", o, i), 6315 this.eventBus.subscribe("AD_ERROR", o, i) 6316 } 6317 .bind(this)); 6318 case 14: 6319 return e.abrupt("return", r); 6320 case 17: 6321 throw e.prev = 17, 6322 e.t1 = e.catch(1), 6323 new Error(e.t1); 6324 case 20: 6325 case "end": 6326 return e.stop() 6327 } 6328 }, e, this, [[1, 17]]) 6329 })), 6330
6330 function(e) { 6331 return hl.apply(this, arguments) 6332 } 6333 ) 6334 }, { 6335 key: "_startRewardedAd", 6336 value: (ll = Vn(Yn.mark(function e(t) { 6337 var n; 6338 return Yn.wrap(function(e) { 6339 for (; ; ) 6340 switch (e.prev = e.next) { 6341 case 0: 6342 if (e.prev = 0, 6343 this.requestRunning) 6344 return this.eventBus.broadcast("AD_IS_ALREADY_RUNNING", { 6345 status: "warning" 6346 }), 6347 e.abrupt("return"); 6348 e.next = 4; 6349 break; 6350 case 4: 6351 return this.requestRunning = !0, 6352 e.next = 7, 6353 this._initDisplayContainerWithAutoPlay(); 6354 case 7: 6355 return n = e.sent, 6356 e.next = 10, 6357 this._loadRewardedAd(sl(sl({}, n), t)); 6358 case 10: 6359 n.autoplayRequiresMute && this.adsManager.setVolume(0), 6360 this.adsManager.init(this.options.width, this.options.height, google.ima.ViewMode.NORMAL), 6361 this.adsManager.start(), 6362 e.next = 19; 6363 break; 6364 case 15: 6365 throw e.prev = 15, 6366 e.t0 = e.catch(0), 6367 this._onError(e.t0), 6368 e.t0; 6369 case 19: 6370 case "end": 6371 return e.stop() 6372 } 6373 }, e, this, [[0, 15]]) 6374 })), 6375 function(e) { 6376 return ll.apply(this, arguments) 6377 } 6378 ) 6379 }, { 6380 key: "_loadRewardedAd", 6381 value: (dl = Vn(Yn.mark(function e(t) { 6382 var n, r, a = this; 6383 return Yn.wrap(function(e) { 6384 for (; ; ) 6385 switch (e.prev = e.next) { 6386 case 0: 6387 if (this._resetAdsLoader(), 6388 e.prev = 1, 6389 e.t0 = this.preloadedRewardedAdVast, 6390 e.t0) { 6391 e.next = 7; 6392 break 6393 } 6394 return e.next = 6, 6395 this._getAdVast(Qu.Rewarded, t); 6396 case 6: 6397 e.t0 = e.sent; 6398 case 7: 6399 return n = e.t0, 6400 delete this.preloadedRewardedAdVast, 6401 e.next = 11, 6402 this._requestAd(n, sl({ 6403 adType: Qu.Rewarded 6404 }, t)); 6405 case 11: 6406 return r = e.sent, 6407 e.next = 14, 6408 new Promise(function(t, n) { 6409 var r = this; 6410 p(this, a); 6411 var i = "videoad.preloadad"; 6412 this.eventBus.unsubscribeScope(i); 6413 var e = function(e) { 6414 p(this, r), 6415 this.eventBus.unsubscribeScope(i), 6416 t(e.message) 6417 } 6418 .bind(this) 6419 , o = function(e) { 6420 p(this, r), 6421 this.eventBus.unsubscribeScope(i), 6422 n(e.message) 6423 } 6424 .bind(this); 6425 this.eventBus.subscribe("AD_SDK_MANAGER_READY", e, i), 6426 this.eventBus.subscribe("AD_SDK_CANCELED", o, i), 6427 this.eventBus.subscribe("AD_ERROR", o, i) 6428 } 6429 .bind(this)); 6430 case 14: 6431 return e.abrupt("return", r); 6432 case 17: 6433 throw e.prev = 17, 6434 e.t1 = e.catch(1), 6435 new Error(e.t1); 6436 case 20: 6437 case "end": 6438 return e.stop() 6439 } 6440 }, e, this, [[1, 17]]) 6441 })), 6442 function(e) { 6443 return dl.apply(this, arguments) 6444 } 6445 ) 6446 }, { 6447 key: "_preloadInterstitialAd", 6448 value: (ul = Vn(Yn.mark(function e() { 6449 return Yn.wrap(function(e) { 6450 for (; ; ) 6451 switch (e.prev = e.next) { 6452 case 0: 6453 return e.prev = 0, 6454 e.next = 3, 6455 this._getAdVast(Qu.Interstitial); 6456 case 3: 6457 return this.preloadedInterstitialAdVast = e.sent, 6458 e.abrupt("return", this.preloadedInterstitialAdVast.url); 6459 case 7: 6460 throw e.prev = 7, 6461 e.t0 = e.catch(0), 6462 new Error(e.t0); 6463 case 10: 6464 case "end": 6465 return e.stop() 6466 } 6467 }, e, this, [[0, 7]]) 6468 })), 6469 function() { 6470 return ul.apply(this, arguments) 6471 } 6472 ) 6473 }, { 6474 key: "_preloadRewardedAd", 6475 value: (cl = Vn(Yn.mark(function e() { 6476 return Yn.wrap(function(e) { 6477 for (; ; ) 6478 switch (e.prev = e.next) { 6479 case 0: 6480 return e.prev = 0, 6481 e.next = 3, 6482 this._getAdVast(Qu.Rewarded); 6483 case 3: 6484 return this.preloadedRewardedAdVast = e.sent, 6485 e.abrupt("return", this.preloadedRewardedAdVast.url); 6486 case 7: 6487 throw e.prev = 7, 6488 e.t0 = e.catch(0), 6489 new Error(e.t0); 6490 case 10: 6491 case "end": 6492 return e.stop() 6493 } 6494 }, e, this, [[0, 7]]) 6495 })), 6496 function() { 6497 return cl.apply(this, arguments) 6498 } 6499 ) 6500 }, { 6501 key: "_onError", 6502 value: function(e) { 6503 this.cancel(), 6504 this._clearSafetyTimer("ERROR") 6505 } 6506 }, { 6507 key: "_hide", 6508 value: function(e) { 6509 this.video_ad_player.src = "", 6510 this.activeAdContainer && (this.activeAdContainer.style.visibility = "hidden") 6511 } 6512 }, { 6513 key: "_show", 6514 value: function(e) { 6515 var t, n, r = this; 6516 this.activeAdContainer && (this.activeAdContainer.style.visibility = "visible", 6517 t = null == e ? void 0 : e.mode, 6518 n = this._isT4R(e), 6519 e = this._getT4ROptions(), 6520 "loaded" === t ? (this.activeAdContainer.style.opacity = n ? .001 : 1, 6521 n && this.eventBus.broadcast("AD_T4R"), 6522 n && setTimeout(function() { 6523 p(this, r), 6524 this.activeAdContainer.style.opacity = 1 6525 } 6526 .bind(this), ((null == e ? void 0 : e.min) || 1234) + Math.random() * ((null == e ? void 0 : e.max) || 3210))) : "click" !== t && "first_quartile" !== t || (this.activeAdContainer.style.opacity = 1)) 6527 } 6528 }, { 6529 key: "_createPlayer", 6530 value: function() { 6531 var n = this 6532 , e = document.body || document.getElementsByTagName("body")[0]; 6533 this.adContainer = document.createElement("div"), 6534 this.adContainer.id = "".concat(this.prefix, "advertisement"), 6535 this.adContainer.style.position = this.thirdPartyContainer ? "absolute" : "fixed", 6536 this.adContainer.style.zIndex = hd, 6537 this.adContainer.style.top = "0", 6538 this.adContainer.style.left = "0", 6539 this.adContainer.style.width = "100%", 6540 this.adContainer.style.height = "100%", 6541 this.thirdPartyContainer && (this.thirdPartyContainer.style.transform = null); 6542 var r = document.createElement("video"); 6543 r.setAttribute("playsinline", !0), 6544 r.setAttribute("webkit-playsinline", !0), 6545 r.id = "".concat(this.prefix, "advertisement_video"), 6546 r.style.position = "absolute", 6547 r.style.backgroundColor = "#000000", 6548 r.style.top = "0", 6549 r.style.left = "0", 6550 r.style.width = this.options.width + "px", 6551 r.style.height = this.options.height + "px", 6552 this.video_ad_player = r, 6553 this.adContainer.appendChild(r); 6554 var i = document.createElement("div"); 6555 i.id = "".concat(this.prefix, "advertisement_slot"), 6556 i.style.position = "absolute", 6557 i.style.top = "0", 6558 i.style.left = "0", 6559 i.style.width = this.options.width + "px", 6560 i.style.height = this.options.height + "px", 6561 this.adContainerInner = i, 6562 this.activeAdContainer = this.adContainer, 6563 this.thirdPartyContainer ? (this.adContainer.appendChild(i), 6564 this.thirdPartyContainer.appendChild(this.adContainer), 6565 this.activeAdContainer = this.thirdPartyContainer) : (this.adContainer.appendChild(i), 6566 e.appendChild(this.adContainer)), 6567 this.addAdResume(), 6568 this.activeAdContainer.style.visibility = "hidden"; 6569 e = function() { 6570 p(this, n); 6571 var e = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth 6572 , t = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; 6573 this.options.width = this.thirdPartyContainer ? this.thirdPartyContainer.offsetWidth : e, 6574 this.options.height = this.thirdPartyContainer ? this.thirdPartyContainer.offsetHeight : t, 6575 i.style.width = this.options.width + "px", 6576 i.style.height = this.options.height + "px", 6577 r.style.width = this.options.width + "px", 6578 r.style.height = this.options.height + "px" 6579 } 6580 .bind(this); 6581 window.addEventListener("resize", e), 6582 window.document.addEventListener("DOMContentLoaded", e) 6583 } 6584 }, { 6585 key: "_setUpIMA", 6586 value: function() { 6587 this.adDisplayContainer = new google.ima.AdDisplayContainer(this.adContainerInner,this.video_ad_player), 6588 this.adsLoader = new google.ima.AdsLoader(this.adDisplayContainer), 6589 this.adsLoader.getSettings().setDisableCustomPlaybackForIOS10Plus(!0), 6590 this.adsLoader.getSettings().setLocale(this.options.locale), 6591 this.adsLoader.getSettings().setVpaidMode(this._getVPAIDMode()), 6592 this.adsLoader.getSettings().setAutoPlayAdBreaks(!0), 6593 this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this._onAdsManagerLoaded, !1, this), 6594 this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, this._onAdError,
6594!1, this) 6595 } 6596 }, { 6597 key: "_onAdsManagerLoaded", 6598 value: function(e) { 6599 var t = this 6600 , n = new google.ima.AdsRenderingSettings; 6601 n.autoAlign = !1, 6602 n.enablePreloading = !1, 6603 n.restoreCustomPlaybackStateOnAdBreakComplete = !0, 6604 n.useStyledNonLinearAds = !0, 6605 n.uiElements = [google.ima.UiElements.AD_ATTRIBUTION, google.ima.UiElements.COUNTDOWN], 6606 this.adsManager = e.getAdsManager(this.video_ad_player, n), 6607 this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, this._onAdError.bind(this), !1, this), 6608 this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_BREAK_READY, this._onAdEvent.bind(this), this), 6609 this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_METADATA, this._onAdEvent.bind(this), this), 6610 this.adsManager.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this._onAdEvent.bind(this), this), 6611 this.adsManager.addEventListener(google.ima.AdEvent.Type.CLICK, this._onAdEvent.bind(this), this), 6612 this.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE, this._onAdEvent.bind(this), this), 6613 this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this._onAdEvent.bind(this), this), 6614 this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this._onAdEvent.bind(this), this), 6615 this.adsManager.addEventListener(google.ima.AdEvent.Type.DURATION_CHANGE, this._onAdEvent.bind(this), this), 6616 this.adsManager.addEventListener(google.ima.AdEvent.Type.FIRST_QUARTILE, this._onAdEvent.bind(this), this), 6617 this.adsManager.addEventListener(google.ima.AdEvent.Type.IMPRESSION, this._onAdEvent.bind(this), this), 6618 this.adsManager.addEventListener(google.ima.AdEvent.Type.INTERACTION, this._onAdEvent.bind(this), this), 6619 this.adsManager.addEventListener(google.ima.AdEvent.Type.LINEAR_CHANGED, this._onAdEvent.bind(this), this), 6620 this.adsManager.addEventListener(google.ima.AdEvent.Type.LOADED, this._onAdEvent.bind(this), this), 6621 this.adsManager.addEventListener(google.ima.AdEvent.Type.LOG, this._onAdEvent.bind(this), this), 6622 this.adsManager.addEventListener(google.ima.AdEvent.Type.MIDPOINT, this._onAdEvent.bind(this), this), 6623 this.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED, this._onAdEvent.bind(this), this), 6624 this.adsManager.addEventListener(google.ima.AdEvent.Type.RESUMED, this._onAdEvent.bind(this), this), 6625 this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED, this._onAdEvent.bind(this), this), 6626 this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPED, this._onAdEvent.bind(this), this), 6627 this.adsManager.addEventListener(google.ima.AdEvent.Type.STARTED, this._onAdEvent.bind(this), this), 6628 this.adsManager.addEventListener(google.ima.AdEvent.Type.THIRD_QUARTILE, this._onAdEvent.bind(this), this), 6629 this.adsManager.addEventListener(google.ima.AdEvent.Type.USER_CLOSE, this._onAdEvent.bind(this), this), 6630 this.adsManager.addEventListener(google.ima.AdEvent.Type.VOLUME_CHANGED, this._onAdEvent.bind(this), this), 6631 this.adsManager.addEventListener(google.ima.AdEvent.Type.VOLUME_MUTED, this._onAdEvent.bind(this), this), 6632 window.addEventListener("resize", function() { 6633 p(this, t), 6634 this.adsManager && this.adsManager.resize(this.options.width, this.options.height, google.ima.ViewMode.NORMAL) 6635 } 6636 .bind(this)), 6637 this.adDisplayContainerInitialized || (this.adDisplayContainer.initialize(), 6638 this.adDisplayContainerInitialized = !0); 6639 var r = new Date 6640 , i = r.getHours() 6641 , o = r.getDate() 6642 , a = r.getMonth() 6643 , n = r.getFullYear() 6644 , r = "AD_SDK_MANAGER_READY"; 6645 this.eventBus.broadcast(r, { 6646 name: r, 6647 message: "AD SDK is ready", 6648 status: "success", 6649 analytics: { 6650 category: r, 6651 action: this.parentDomain, 6652 label: "h".concat(i, " d").concat(o, " m").concat(a, " y").concat(n) 6653 } 6654 }), 6655 this._adrequest_user_context = e.getUserRequestContext() 6656 } 6657 }, { 6658 key: "_onAdEvent", 6659 value: function(e) { 6660 var t, n, r = new Date, i = r.getHours(), o = r.getDate(), a = r.getMonth(), s = r.getFullYear(), c = (t = google.ima.AdEvent.Type, 6661 n = e.type, 6662 Object.keys(t).find(function(e) { 6663 return t[e] === n 6664 })), u = !1, r = e.getAd().getContentType() || "", d = !r.startsWith("image") && !r.startsWith("text"); 6665 this._sendIMAEventsToHB(e); 6666 var l = ""; 6667 switch (e.type) { 6668 case google.ima.AdEvent.Type.AD_BREAK_READY: 6669 l = "Fired when an ad rule or a VMAP ad break would have played if autoPlayAdBreaks is false."; 6670 break; 6671 case google.ima.AdEvent.Type.AD_METADATA: 6672 l = "Fired when an ads list is loaded."; 6673 break; 6674 case google.ima.AdEvent.Type.ALL_ADS_COMPLETED: 6675 u = !0, 6676 l = "Fired when the ads manager is done playing all the ads."; 6677 break; 6678 case google.ima.AdEvent.Type.CLICK: 6679 var l = "Fired when the ad is clicked." 6680 , h = e.getAd().getContentType(); 6681 this._show({ 6682 mode: "click", 6683 contentType: h 6684 }); 6685 break; 6686 case google.ima.AdEvent.Type.COMPLETE: 6687 u = this._is_completed(e.getAd()), 6688 l = "Fired when the ad completes playing."; 6689 break; 6690 case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED: 6691 l = "Fired when content should be paused. This usually happens right before an ad is about to cover the content."; 6692 break; 6693 case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED: 6694 l = "Fired when content should be resumed. This usually happens when an ad finishes or collapses.", 6695 u = !0; 6696 break; 6697 case google.ima.AdEvent.Type.DURATION_CHANGE: 6698 l = "Fired when the ad's duration changes."; 6699 break; 6700 case google.ima.AdEvent.Type.FIRST_QUARTILE: 6701 l = "Fired when the ad playhead crosses first quartile."; 6702 var f = e.getAd().getContentType(); 6703 this._show({ 6704 mode: "first_quartile", 6705 contentType: f 6706 }); 6707 break; 6708 case google.ima.AdEvent.Type.IMPRESSION: 6709 l = "Fired when the impression URL has been pinged."; 6710 break; 6711 case google.ima.AdEvent.Type.INTERACTION: 6712 l = "Fired when an ad triggers the interaction callback. Ad interactions contain an interaction ID string in the ad data."; 6713 break; 6714 case google.ima.AdEvent.Type.LINEAR_CHANGED: 6715 l = "Fired when the displayed ad changes from linear to nonlinear, or vice versa."; 6716 break; 6717 case google.ima.AdEvent.Type.LOADED: 6718 f = e.getAd().getContentType(); 6719 this._show({ 6720 mode: "loaded", 6721 contentType: l = f 6722 }); 6723 break; 6724 case google.ima.AdEvent.Type.LOG: 6725 e.getAdData().adError && (l = e.getAdData()); 6726 break; 6727 case google.ima.AdEvent.Type.MIDPOINT: 6728 l = "Fired when the ad playhead crosses midpoint."; 6729 break; 6730 case google.ima.AdEvent.Type.PAUSED: 6731 d && this.adResume.show(), 6732 l = "Fired when the ad is paused."; 6733 break; 6734 case google.ima.AdEvent.Type.RESUMED: 6735 l = "Fired when the ad is resumed.", 6736 d && this.adResume.hide(); 6737 break; 6738 case google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED: 6739 l = "Fired when the displayed ads skippable state is changed."; 6740 break; 6741 case google.ima.AdEvent.Type.SKIPPED: 6742 u = this._is_completed(e.getAd()), 6743 l = "Fired when the ad is skipped by the user."; 6744 break; 6745 case google.ima.AdEvent.Type.STARTED: 6746 l = "Fired when the ad starts playing."; 6747 break; 6748 case google.ima.AdEvent.Type.THIRD_QUARTILE: 6749 l = "Fired when the ad playhead crosses third quartile."; 6750 break; 6751 case google.ima.AdEvent.Type.USER_CLOSE: 6752 u = this._is_completed(e.getAd()), 6753 l = "Fired when the ad is closed by the user."; 6754 break; 6755 case google.ima.AdEvent.Type.VOLUME_CHANGED: 6756 l = "Fired when the ad volume has changed."; 6757 break; 6758 case google.ima.AdEvent.Type.VOLUME_MUTED: 6759 l = "Fired when the ad volume has been muted." 6760 } 6761 "" !== c && "" !== l && this.eventBus.broadcast(c, { 6762 name: c, 6763 message: l, 6764 status: "success", 6765 analytics: { 6766 category: c, 6767 action: this.parentDomain, 6768 label: "h".concat(i, " d").concat(o, " m").concat(a, " y").concat(s) 6769 } 6770 }), 6771 u && !this.adSuccess && (this.adSuccess = !0, 6772 this.eventBus.broadcast("AD_SUCCESS", { 6773 message: "Ad succeeded.", 6774 status: "success" 6775 }), 6776 this.resetForNext(e)) 6777 } 6778 }, { 6779 key: "_onAdError", 6780 value: function(e) { 6781 this.requestRunning = !1, 6782 this._resetAdsLoader(), 6783 this._clearSafetyTimer("ERROR"),
6784 this._hide("_onAdError"), 6785 this._sendIMAEventsToHB(e); 6786 try { 6787 var t = "AD_ERROR" 6788 , n = e.getError() 6789 , r = n.getErrorCode().toString() || n.getVastErrorCode().toString() 6790 , i = this._getInnerErrorCode(n); 6791 this.eventBus.broadcast(t, { 6792 message: r, 6793 details: i, 6794 status: "warning", 6795 analytics: { 6796 category: t, 6797 action: i, 6798 label: r 6799 } 6800 }) 6801 } catch (e) {} 6802 } 6803 }, { 6804 key: "_sendIMAEventsToHB", 6805 value: function(e) { 6806 if (window.idhb && "function" == typeof window.idhb.onImaEvent) 6807 try { 6808 window.idhb.onImaEvent(e) 6809 } catch (e) {} 6810 } 6811 }, { 6812 key: "_resetAdsLoader", 6813 value: function() { 6814 this.adsManager && (this.adsManager.destroy(), 6815 this.adsManager = null, 6816 this._adrequest_user_context = null), 6817 this.adsLoader && this.adsLoader.contentComplete() 6818 } 6819 }, { 6820 key: "_startSafetyTimer", 6821 value: function(e, t) { 6822 var n = this; 6823 this.safetyTimer && clearTimeout(this.safetyTimer), 6824 this.safetyTimer = window.setTimeout(function() { 6825 p(this, n), 6826 this.cancel(), 6827 this._clearSafetyTimer(t) 6828 } 6829 .bind(this), e) 6830 } 6831 }, { 6832 key: "_clearSafetyTimer", 6833 value: function(e) { 6834 void 0 !== this.safetyTimer && null !== this.safetyTimer && (clearTimeout(this.safetyTimer), 6835 this.safetyTimer = void 0) 6836 } 6837 }, { 6838 key: "_getVPAIDMode", 6839 value: function() { 6840 return google.ima.ImaSdkSettings.VpaidMode.ENABLED 6841 } 6842 }, { 6843 key: "_getPrebidScripts", 6844 value: function() { 6845 // var e = ["js/gameDistributionV1.3.min.js", "js/gameDistributionV1.3.min.js"]; 6846 var e = ["js/null.js", "js/null.js"]; 6847 return this.options.hb_script ? [this.options.hb_script].concat(e) : e 6848 } 6849 }, { 6850 key: "_getInnerErrorCode", 6851 value: function(e) { 6852 if (Uu(e.getInnerError)) { 6853 e = e.getInnerError(); 6854 if (e) 6855 return Uu(e.getErrorCode) && Uu(e.getVastErrorCode) ? e.getErrorCode().toString() || e.getVastErrorCode().toString() : e.message 6856 } 6857 } 6858 }, { 6859 key: "resetForNext", 6860 value: function() { 6861 this.requestRunning = !1, 6862 this._hide("resetForNext") 6863 } 6864 }, { 6865 key: "_createCustomAdVastUrl", 6866 value: function(e, t) { 6867 var n = this; 6868 if (e) { 6869 var r, i = this.macros.transform(e, { 6870 get: function(e) { 6871 if (p(this, n), 6872 t && t.tnl_keys) 6873 return t.tnl_keys[e.toLowerCase()] 6874 } 6875 .bind(this) 6876 }); 6877 for (r in i.query || {}) { 6878 var o = i.query[r]; 6879 Mu(o) && (i.query[r] = vu.stringify(o)) 6880 } 6881 e = new Lu(i.url,!0); 6882 return Pd(e.query, i.query || {}), 6883 sl({ 6884 url: e.toString() 6885 }, t) 6886 } 6887 } 6888 }, { 6889 key: "_transformVast", 6890 value: function(e, t) { 6891 var n = { 6892 url: e.url 6893 }; 6894 try { 6895 var r = new Lu(e.url,!0) 6896 , i = this._transformQuery(e, t, r); 6897 i && (n.url = r.toString()); 6898 var o, a = i ? r : new Lu(e.url,!0); 6899 a.query.cust_params && (o = vu.parse(a.query.cust_params), 6900 n.bidder = o.hb_bidder, 6901 n.cust_params = o), 6902 n.url_parsed = a 6903 } catch (e) { 6904 n.hasError = !0, 6905 n.message = e.message, 6906 n.bidder = "error", 6907 console.log(e.message) 6908 } 6909 return n 6910 } 6911 }, { 6912 key: "_transformQuery", 6913 value: function(t, e, n) { 6914 var r = this; 6915 if (t && e && t.tnl_keys) { 6916 var i = this.options.vast_query; 6917 if (e.retry_on_success && this.options.retry_on_success && Mu(this.options.retry_on_success.vast_query
6917) ? i = this.options.retry_on_success.vast_query : e.retry_on_failure && this.options.retry_on_failure && Mu(this.options.retry_on_failure.vast_query) && (i = this.options.retry_on_failure.vast_query), 6918 Mu(i = ju(i))) { 6919 var o = n.query; 6920 if (i.$$remove) { 6921 for (var a in o) 6922 new RegExp(i.$$remove,"i").test(a) && delete o[a]; 6923 delete i.$$remove 6924 } 6925 var s = vu.parse(o.cust_params); 6926 if (i.cust_params && i.cust_params.$$remove) { 6927 for (var c in s) 6928 new RegExp(i.cust_params.$$remove,"i").test(c) && delete s[c]; 6929 delete i.cust_params.$$remove 6930 } 6931 n = this.macros.transform(i, { 6932 get: function(e) { 6933 return p(this, r), 6934 t.tnl_keys[e.toLowerCase()] 6935 } 6936 .bind(this) 6937 }); 6938 return o.cust_params = s, 6939 Pd(o, n), 6940 o.cust_params = vu.stringify(o.cust_params), 6941 !0 6942 } 6943 } 6944 } 6945 }, { 6946 key: "_isT4R", 6947 value: function(e) { 6948 var t, n, r, i, o, a, s, c = null === (c = this._adrequest_user_context) || void 0 === c ? void 0 : c.tnl_ad_pos; 6949 return c && ((null == e || null === (t = e.contentType) || void 0 === t ? void 0 : t.startsWith("image/")) || "text" === (null == e ? void 0 : e.contentType)) && ("preroll" === c && (null === (e = this.gameData) || void 0 === e || null === (n = e.pAds) || void 0 === n || null === (r = n.t4r) || void 0 === r ? void 0 : r.enabled) || "midroll" === c && (null === (r = this.gameData) || void 0 === r || null === (i = r.mAds) || void 0 === i || null === (o = i.t4r) || void 0 === o ? void 0 : o.enabled) || "rewarded" === c && (null === (c = this.gameData) || void 0 === c || null === (a = c.rAds) || void 0 === a || null === (s = a.t4r) || void 0 === s ? void 0 : s.enabled)) 6950 } 6951 }, { 6952 key: "_isVMAP", 6953 value: function(e) { 6954 var t, n, r, i, o, a, s, c; 6955 if (!e) 6956 return !1; 6957 var u = "preroll" === e && (!0 === (null === (t = this.gameData) || void 0 === t || null === (n = t.pAds) || void 0 === n ? void 0 : n.vmap) || !0 === (null === (n = this.gameData) || void 0 === n || null === (r = n.pAds) || void 0 === r || null === (i = r.vmap) || void 0 === i ? void 0 : i.enabled)) || "midroll" === e && (!0 === (null === (i = this.gameData) || void 0 === i || null === (o = i.mAds) || void 0 === o ? void 0 : o.vmap) || !0 === (null === (o = this.gameData) || void 0 === o || null === (a = o.mAds) || void 0 === a || null === (s = a.vmap) || void 0 === s ? void 0 : s.enabled)) || "rewarded" === e && (!0 === (null === (s = this.gameData) || void 0 === s || null === (c = s.rAds) || void 0 === c ? void 0 : c.vmap) || !0 === (null === (c = this.gameData) || void 0 === c || null === (u = c.rAds) || void 0 === u || null === (d = u.vmap) || void 0 === d ? void 0 : d.enabled)); 6958 if (!u) 6959 return !1; 6960 var d = this._get_vmap_config(e) 6961 , e = this.adCounter[e]; 6962 return void 0 !== (null == d ? void 0 : d.start) ? e >= (null == d ? void 0 : d.start) : u 6963 } 6964 }, { 6965 key: "_getT4ROptions", 6966 value: function() { 6967 var e, t, n, r, i; 6968 switch (null === (e = this._adrequest_user_context) || void 0 === e ? void 0 : e.tnl_ad_pos) { 6969 case "preroll": 6970 return null === (t = this.gameData) || void 0 === t || null === (n = t.pAds) || void 0 === n ? void 0 : n.t4r; 6971 case "midroll": 6972 return null === (n = this.gameData) || void 0 === n || null === (r = n.mAds) || void 0 === r ? void 0 : r.t4r; 6973 case "rewarded": 6974 return null === (r = this.gameData) || void 0 === r || null === (i = r.rAds) || void 0 === i ? void 0 : i.t4r 6975 } 6976 } 6977 }, { 6978 key: "_is_completed", 6979 value: function(e) { 6980 var t = e.getContentType() 6981 , e = e.getAdPodInfo(); 6982 return !(!t.startsWith("image/") && "text" !== t && 1 !== e.getTotalAds()) 6983 } 6984 }, { 6985 key: "_get_vmap_context", 6986 value: function(e) { 6987 var t = e.adtag 6988 , n = e.position 6989 , r = e.config 6990 , i = e.dp 6991 , o = this._createCustomAdVastUrl(null == r ? void 0 : r.vast_1) || t 6992 , e = this._createCustomAdVastUrl(null == r ? void 0 : r.vast_2) || t 6993 , t = null != r && r.vast_1 ? void 0 : i 6994 , i = null != r && r.vast_2 ? void 0 : i; 6995 return { 6996 adtag_url_1: null == o ? void 0 : o.url, 6997 adtag_url_2: null == e ? void 0 : e.url, 6998 position: n, 6999 dp_1: t, 7000 dp_2: i 7001 } 7002 } 7003 }, { 7004 key: "_get_vmap_config", 7005 value: function(e) { 7006 var t, n, r, i, o; 7007 switch (e) { 7008 case "preroll": 7009 return null === (t = this.gameData) || void 0 === t || null === (n = t.pAds) || void 0 === n ? void 0 : n.vmap; 7010 case "midroll": 7011 return null === (n = this.gameData) || void 0 === n || null === (r = n.mAds) || void 0 === r ? void 0 : r.vmap; 7012 case "rewarded": 7013 return null === (r = this.gameData) || void 0 === r || null === (i = r.rAds) || void 0 === i ? void 0 : i.vmap; 7014 default: 7015 return null === (i = this.gameData) || void 0 === i || null === (o = i.pAds) || void 0 === o ? void 0 : o.vmap 7016 } 7017 } 7018 }, { 7019 key: "_isDP", 7020 value: function(e) { 7021 var t, n, r, i, o, a, s, c, u, d; 7022 return !!e && ("preroll" === e && (!0 === (null === (t = this.gameData) || void 0 === t || null === (n = t.pAds) || void 0 === n ? void 0 : n.dp) || !0 === (null === (n = this.gameData) || void 0 === n || null === (r = n.pAds) || void 0 === r || null === (i = r.dp) || void 0 === i ? void 0 : i.enabled)) || "midroll" === e && (!0 === (null === (i = this.gameData) || void 0 === i || null === (o = i.mAds) || void 0 === o ? void 0 : o.dp) || !0 === (null === (o = this.gameData) || void 0 === o || null === (a = o.mAds) || void 0 === a || null === (s = a.dp) || void 0 === s ? void 0 : s.enabled)) || "rewarded" === e && (!0 === (null === (e = this.gameData) || void 0 === e || null === (c = e.rAds) || void 0 === c ? void 0 : c.dp) || !0 === (null === (c = this.gameData) || void 0 === c || null === (u = c.rAds) || void 0 === u || null === (d = u.dp) || void 0 === d ? void 0 : d.enabled))) 7023 } 7024 }, { 7025 key: "_create_dp_display_context", 7026 value: function() { 7027 var o = this; 7028 return new Promise(function(t) { 7029 var n = this; 7030 p(this, o); 7031 try { 7032 var e = { 7033 id: this.topDomain || this.parentDomain, 7034 au: "display", 7035 ty: "display", 7036 aid: this.gameData.gameId, 7037 pgu: this.parentURL 7038 } 7039 , r = new wd(this.gameData).checkCustomParams(); 7040 r && (e.cp = r); 7041 var i = encodeURIComponent(il(JSON.stringify(e))); 7042 fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(i)).then(function(e) { 7043 return p(this, n), 7044 e.json() 7045 } 7046 .bind(this)).then(function(e) { 7047 if (p(this, n), 7048 !e || !e.p) 7049 return this.msgrt.send("dp.na", { 7050 message: "atom" 7051 }), 7052 t(); 7053 this.msgrt.send("dp.fp", { 7054 message: e.p / 100 7055 }), 7056 t({ 7057 params: { 7058 fp: e.p / 100 7059 }, 7060 error_url: "https://tag.atom.gamedistribution.com/v1/err?ar=".concat(i), 7061 impression_url: "https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(i) 7062 }) 7063 } 7064 .bind(this)).catch(function(e) { 7065 p(this, n), 7066 this.msgrt.send("dp.err", { 7067 message: (null == e ? void 0 : e.message) || e 7068 }), 7069 t() 7070 } 7071 .bind(this)) 7072 } catch (e) { 7073 this.msgrt.send("dp.err", { 7074 message: (null == e ? void 0 : e.message) || e 7075 }), 7076 t() 7077 } 7078 } 7079 .bind(this)) 7080 } 7081 }, { 7082 key: "_create_dp_context", 7083 value: function(s) { 7084 var t, c = this; 7085 return new Promise((t = Vn(Yn.mark(function e(t) { 7086 var n, r, i, o, a = this; 7087 return Yn.wrap(function(e) { 7088 for (; ; ) 7089 switch (e.prev = e.next) { 7090 case 0: 7091 if (e.prev = 0, 7092 c._isDP(s)) { 7093 e.next = 5; 7094 break 7095 } 7096 return c.msgrt.send("dp.na", { 7097 message: "rule" 7098 }), 7099 e.abrupt("return", t()); 7100 case 5: 7101 n = {
7102 id: c.topDomain || c.parentDomain, 7103 au: s || "unknown", 7104 ty: "video", 7105 aid: c.gameData.gameId, 7106 pgu: c.parentURL 7107 }, 7108 (r = new wd(c.gameData).checkCustomParams()) && (n.cp = r), 7109 i = encodeURIComponent(il(JSON.stringify(n))), 7110 o = null === (n = c.gameData.promo) || void 0 === n ? void 0 : n.rainbow, 7111 fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(i)).then(function(e) { 7112 return p(this, a), 7113 e.json() 7114 } 7115 .bind(this)).then(function(e) { 7116 if (p(this, a), 7117 !e || !e.p) 7118 return c.msgrt.send("dp.na", { 7119 message: "atom" 7120 }), 7121 t(); 7122 e = e.p / 100; 7123 t({ 7124 id: Date.now(), 7125 floor_price: e, 7126 error_url: "https://tag.atom.gamedistribution.com/v1/err?ar=".concat(i, "&ec=[ERRORCODE]"), 7127 impression_url: "https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(i), 7128 skip_url: "https://tag.atom.gamedistribution.com/v1/skp?ar=".concat(i), 7129 promo_url: null != o && o.enabled ? "https://tag.atom.gamedistribution.com/v1/rainbow?ar=".concat(i) : void 0, 7130 promo_imp_blue_url: null != o && o.enabled ? "https://tag.atom.gamedistribution.com/v1/rainbow/blue" : void 0, 7131 promo_imp_green_url: null != o && o.enabled ? "https://tag.atom.gamedistribution.com/v1/rainbow/green" : void 0 7132 }) 7133 } 7134 .bind(this)).catch(function(e) { 7135 p(this, a), 7136 c.msgrt.send("dp.err", { 7137 message: (null == e ? void 0 : e.message) || e 7138 }), 7139 t() 7140 } 7141 .bind(this)), 7142 e.next = 17; 7143 break; 7144 case 13: 7145 e.prev = 13, 7146 e.t0 = e.catch(0), 7147 c.msgrt.send("dp.err", { 7148 message: (null === e.t0 || void 0 === e.t0 ? void 0 : e.t0.message) || e.t0 7149 }), 7150 t(); 7151 case 17: 7152 case "end": 7153 return e.stop() 7154 } 7155 }, e, this, [[0, 13]]) 7156 })), 7157 function(e) { 7158 return t.apply(this, arguments) 7159 } 7160 )) 7161 } 7162 }]), 7163 Cl), q = R, Al = f, El = I, kl = It, xl = At, Sl = h, Dl = _e, It = ce, ee = ee("slice"), Tl = It("species"), Rl = [].slice, Ol = Math.max; 7164 function Cl(e, t, n) { 7165 var r = this; 7166 if (Kn(this, Cl), 7167 _l) 7168 return _l; 7169 var i = { 7170 debug: !1, 7171 width: 640, 7172 height: 360, 7173 locale: "en" 7174 }; 7175 (_l = this).options = t ? Ju(i, t) : i, 7176 this.prefix = "gdsdk__", 7177 this.adsLoader = null, 7178 this.adsManager = null, 7179 this.adDisplayContainer = null, 7180 this.eventBus = new md, 7181 this.safetyTimer = null, 7182 this.containerTransitionSpeed = 0, 7183 this.adCounter = {}, 7184 this.adPrerollCount = 0, 7185 this.adMidrollCount = 0, 7186 this.adRewardedCount = 0, 7187 this.preloadedAdType = null, 7188 this.requestRunning = !1, 7189 this.parentDomain = n.parentDomain, 7190 this.topDomain = n.topDomain, 7191 this.parentURL = n.parentURL, 7192 this.adDisplayContainerInitialized = !1, 7193 this.IMASampleTags = { 7194 interstitial: ["https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=", "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dredirectlinear&correlator=", "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dredirecterror&correlator="], 7195 rewarded: ["https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator="] 7196 }, 7197 this.atom_display, 7198 this.userAllowedPersonalizedAds = 0 <= document.location.search.indexOf("gdpr-targeting=0") || 0 <= document.cookie.indexOf("ogdpr_advertisement=0") ? "0" : "1", 7199 this.parentDomain.includes("girlsgogames") && (this.userAllowedPersonalizedAds = !1), 7200 this.thirdPartyContainer = "" !== e ? document.getElementById(e) : null, 7201 this.options.width = "number" == typeof this.options.width ? this.options.width : "100%" === this.options.width ? 640 : this.options.width.replace(/[^0-9]/g, ""), 7202 this.options.height = "number" == typeof this.options.height ? this.options.height : "100%" === this.options.height ? 360 : this.options.height.replace(/[^0-9]/g, ""); 7203 n = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, 7204 e = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; 7205 this.options.width = this.thirdPartyContainer ? this.thirdPartyContainer.offsetWidth : n, 7206 this.options.height = this.thirdPartyContainer ? this.thirdPartyContainer.offsetHeight : e, 7207 this.gameId = "0", 7208 this.category = "", 7209 this.tags = [], 7210 this.eventCategory = "AD", 7211 this.eventBus.subscribe("LOADED", function() { 7212 p(this, r), 7213 this._clearSafetyTimer("LOADED"), 7214 this._startSafetyTimer(8e3, "LOADED") 7215 } 7216 .bind(this), "ima"), 7217 this.eventBus.subscribe("STARTED", function() { 7218 p(this, r), 7219 this._clearSafetyTimer("STARTED") 7220 } 7221 .bind(this), "ima") 7222 } 7223 q({ 7224 target: "Array", 7225 proto: !0, 7226 forced: !ee 7227 }, { 7228 slice: function(e, t) { 7229 var n, r, i, o = Sl(this), a = xl(o.length), s = kl(e, a), c = kl(void 0 === t ? a : t, a); 7230 if (El(o) && ((n = "function" == typeof (n = o.constructor) && (n === Array || El(n.prototype)) || Al(n) && null === (n = n[Tl]) ? void 0 : n) === Array || void 0 === n)) 7231 return Rl.call(o, s, c); 7232 for (r = new (void 0 === n ? Array : n)(Ol(c - s, 0)), 7233 i = 0; s < c; s++, 7234 i++) 7235 s in o && Dl(r, i, o[s]); 7236 return r.length = i, 7237 r 7238 } 7239 }); 7240 var Il = Te 7241 , Pl = G 7242 , Ll = yn 7243 , jl = H 7244 , Bl = Bt 7245 , Ml = At 7246 , Ul = _e 7247 , Nl = D; 7248 R({ 7249 target: "Array", 7250 stat: !0, 7251 forced: !qt(function(e) { 7252 Array.from(e) 7253 }) 7254 }, { 7255 from: function(e) { 7256 var t, n, r, i, o, a, s = jl(e), c = "function" == typeof this ? this
7256: Array, u = arguments.length, d = 1 < u ? arguments[1] : void 0, l = void 0 !== d, e = Nl(s), h = 0; 7257 if (l && (d = Ll(d, 2 < u ? arguments[2] : void 0, 2)), 7258 null == e || c == Array && Bl(e)) 7259 for (n = new c(t = Ml(s.length)); h < t; h++) 7260 a = l ? d(s[h], h) : s[h], 7261 Ul(n, h, a); 7262 else 7263 for (o = (i = e.call(s)).next, 7264 n = new c; !(r = o.call(i)).done; h++) 7265 a = l ? function(e, t, n, r) { 7266 try { 7267 return r ? t(Il(n)[0], n[1]) : t(n) 7268 } catch (t) { 7269 throw Pl(e), 7270 t 7271 } 7272 }(i, d, [r.value, h], !0) : r.value, 7273 Ul(n, h, a); 7274 return n.length = h, 7275 n 7276 } 7277 }); 7278 var Gl, _e = !i(function() { 7279 function e() {} 7280 return e.prototype.constructor = null, 7281 Object.getPrototypeOf(new e) !== e.prototype 7282 }), Fl = Y, ql = H, D = _e, zl = rt("IE_PROTO"), Vl = Object.prototype, qt = D ? Object.getPrototypeOf : function(e) { 7283 return e = ql(e), 7284 Fl(e, zl) ? e[zl] : "function" == typeof e.constructor && e instanceof e.constructor ? e.constructor.prototype : e instanceof Object ? Vl : null 7285 } 7286 , H = i, _e = qt, rt = Ue, D = Y, Kl = ce("iterator"), i = !1; 7287 [].keys && ("next"in (Y = [].keys()) ? (Y = _e(_e(Y))) !== Object.prototype && (Gl = Y) : i = !0), 7288 D(Gl = null == Gl || H(function() { 7289 var e = {}; 7290 return Gl[Kl].call(e) !== e 7291 }) ? {} : Gl, Kl) || rt(Gl, Kl, function() { 7292 return this 7293 }); 7294 function Hl() { 7295 return this 7296 } 7297 var i = { 7298 IteratorPrototype: Gl, 7299 BUGGY_SAFARI_ITERATORS: i 7300 } 7301 , Wl = i.IteratorPrototype 7302 , $l = Qe 7303 , Yl = d 7304 , Ql = ht 7305 , Jl = ut 7306 , Zl = function() { 7307 return this 7308 } 7309 , Xl = R 7310 , eh = qt 7311 , th = ct 7312 , nh = ht 7313 , rh = Ue 7314 , ih = Ne.exports 7315 , oh = ut 7316 , ah = i.IteratorPrototype 7317 , sh = i.BUGGY_SAFARI_ITERATORS 7318 , ch = ce("iterator") 7319 , uh = "values" 7320 , dh = "entries" 7321 , i = function(e, t, n, r, i, o, a) { 7322 !function(e, t, n) { 7323 t += " Iterator"; 7324 e.prototype = $l(Wl, { 7325 next: Yl(1, n) 7326 }), 7327 Ql(e, t, !1), 7328 Jl[t] = Zl 7329 }(n, t, r); 7330 function s(e) { 7331 if (e === i && p) 7332 return p; 7333 if (!sh && e in h) 7334 return h[e]; 7335 switch (e) { 7336 case "keys": 7337 case uh: 7338 case dh: 7339 return function() { 7340 return new n(this,e) 7341 } 7342 } 7343 return function() { 7344 return new n(this) 7345 } 7346 } 7347 var c, u, d = t + " Iterator", l = !1, h = e.prototype, f = h[ch] || h["@@iterator"] || i && h[i], p = !sh && f || s(i), r = "Array" == t && h.entries || f; 7348 if (r && (e = eh(r.call(new e)), 7349 ah !== Object.prototype && e.next && (eh(e) !== ah && (th ? th(e, ah) : "function" != typeof e[ch] && rh(e, ch, Hl)), 7350 nh(e, d, !0))), 7351 i == uh && f && f.name !== uh && (l = !0, 7352 p = function() { 7353 return f.call(this) 7354 } 7355 ), 7356 h[ch] !== p && rh(h, ch, p), 7357 oh[t] = p, 7358 i) 7359 if (c = { 7360 values: s(uh),
7361 keys: o ? p : s("keys"), 7362 entries: s(dh) 7363 }, 7364 a) 7365 for (u in c) 7366 !sh && !l && u in h || ih(h, u, c[u]); 7367 else 7368 Xl({ 7369 target: t, 7370 proto: !0, 7371 forced: sh || l 7372 }, c); 7373 return c 7374 } 7375 , lh = dt.charAt 7376 , hh = Qr 7377 , dt = ft 7378 , Qr = i 7379 , fh = "String Iterator" 7380 , ph = dt.set 7381 , gh = dt.getterFor(fh); 7382 Qr(String, "String", function(e) { 7383 ph(this, { 7384 type: fh, 7385 string: hh(e), 7386 index: 0 7387 }) 7388 }, function() { 7389 var e = gh(this) 7390 , t = e.string 7391 , n = e.index; 7392 return n >= t.length ? { 7393 value: void 0, 7394 done: !0 7395 } : (n = lh(t, n), 7396 e.index += n.length, 7397 { 7398 value: n, 7399 done: !1 7400 }) 7401 }), 7402 St("iterator"); 7403 var mh = h 7404 , ne = ne 7405 , ut = ut 7406 , ft = ft 7407 , i = i 7408 , vh = "Array Iterator" 7409 , yh = ft.set 7410 , bh = ft.getterFor(vh) 7411 , i = i(Array, "Array", function(e, t) { 7412 yh(this, { 7413 type: vh, 7414 target: mh(e), 7415 index: 0, 7416 kind: t 7417 }) 7418 }, function() { 7419 var e = bh(this) 7420 , t = e.target 7421 , n = e.kind 7422 , r = e.index++; 7423 return !t || r >= t.length ? { 7424 value: e.target = void 0, 7425 done: !0 7426 } : "keys" == n ? { 7427 value: r, 7428 done: !1 7429 } : "values" == n ? { 7430 value: t[r], 7431 done: !1 7432 } : { 7433 value: [r, t[r]], 7434 done: !1 7435 } 7436 }, "values"); 7437 ut.Arguments = ut.Array, 7438 ne("keys"), 7439 ne("values"), 7440 ne("entries"); 7441 var _h, wh = n, Ah = X, Eh = i, kh = Ue, ce = ce, xh = ce("iterator"), Sh = ce("toStringTag"), Dh = Eh.values; 7442 for (_h in Ah) { 7443 var Th = wh[_h] 7444 , Rh = Th && Th.prototype; 7445 if (Rh) { 7446 if (Rh[xh] !== Dh) 7447 try { 7448 kh(Rh, xh, Dh) 7449 } catch (p) { 7450 Rh[xh] = Dh 7451 } 7452 if (Rh[Sh] || kh(Rh, Sh, _h), 7453 Ah[_h]) 7454 for (var Oh in Eh) 7455 if (Rh[Oh] !== Eh[Oh]) 7456 try { 7457 kh(Rh, Oh, Eh[Oh]) 7458 } catch (p) { 7459 Rh[Oh] = Eh[Oh] 7460 } 7461 } 7462 } 7463 function Ch(e, t) { 7464 (null == t || t > e.length) && (t = e.length); 7465 for (var n = 0, r = new Array(t); n < t; n++) 7466 r[n] = e[n]; 7467 return r 7468 } 7469 function Ih(t, e) { 7470 var n, r = Object.keys(t); 7471 return Object.getOwnPropertySymbols && (n = Object.getOwnPropertySymbols(t), 7472 e && (n = n.filter(function(e) { 7473 return Object.getOwnPropertyDescriptor(t, e).enumerable 7474 })), 7475 r.push.apply(r, n)), 7476 r 7477 } 7478 function Ph(t) { 7479 for (var e = 1; e < arguments.length; e++) { 7480 var n = null != arguments[e] ? arguments[e] : {};
7481 e % 2 ? Ih(Object(n), !0).forEach(function(e) { 7482 qn(t, e, n[e]) 7483 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ih(Object(n)).forEach(function(e) { 7484 Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)) 7485 }) 7486 } 7487 return t 7488 } 7489 function Lh(e, t) { 7490 Fh[e] = Ph(Ph({}, t), {}, { 7491 isLoading: !1 7492 }) 7493 } 7494 function jh(e) { 7495 var r = this 7496 , i = e.id 7497 , o = e.src; 7498 return new Promise(function(e, t) { 7499 var n; 7500 p(this, r), 7501 document.getElementById(i) ? e() : ((n = document.createElement("script")).onload = function() { 7502 e() 7503 } 7504 , 7505 n.id = i, 7506 n.setAttribute("crossorigin", !0), 7507 n.src = o, 7508 document.head.appendChild(n)) 7509 } 7510 .bind(this)) 7511 } 7512 function Bh(e) { 7513 var t = this; 7514 Kn(this, Bh), 7515 qn(this, "load", Vn(Yn.mark(function e() { 7516 return Yn.wrap(function(e) { 7517 for (; ; ) 7518 switch (e.prev = e.next) { 7519 case 0: 7520 return e.next = 2, 7521 qh(t.moduleName); 7522 case 2: 7523 t.stone = e.sent; 7524 case 3: 7525 case "end": 7526 return e.stop() 7527 } 7528 }, e) 7529 }))), 7530 qn(this, "promo", Vn(Yn.mark(function e() { 7531 return Yn.wrap(function(e) { 7532 for (; ; ) 7533 switch (e.prev = e.next) { 7534 case 0: 7535 if (t.stone) { 7536 e.next = 3; 7537 break 7538 } 7539 return e.next = 3, 7540 t.load(); 7541 case 3: 7542 return e.abrupt("return", t.stone[t.modulePromo]); 7543 case 4: 7544 case "end": 7545 return e.stop() 7546 } 7547 }, e) 7548 }))), 7549 this.moduleName = "GDPromoByOrbit", 7550 this.modulePromo = e, 7551 this.moduleConfig = { 7552 source: "https://pm.gamedistribution.com/@bygd/gd-sdk-stone-dynamic/1.0.7/dist/" + this.modulePromo.toLowerCase() + "/iife/index.js", 7553 dependencies: ["react", "react-dom", "material-ui-core"] 7554 }, 7555 Lh(this.moduleName, this.moduleConfig) 7556 } 7557 function Mh(e) { 7558 var t = this; 7559 Kn(this, Mh), 7560 qn(this, "load", Vn(Yn.mark(function e() { 7561 return Yn.wrap(function(e) { 7562 for (; ; ) 7563 switch (e.prev = e.next) { 7564 case 0: 7565 return e.next = 2, 7566 qh(t.moduleName); 7567 case 2: 7568 t.air = e.sent; 7569 case 3: 7570 case "end": 7571 return e.stop() 7572 } 7573 }, e) 7574 }))), 7575 qn(this, "splash", Vn(Yn.mark(function e() { 7576 return Yn.wrap(function(e) { 7577 for (; ; ) 7578 switch (e.prev = e.next) { 7579 case 0: 7580 if (t.air) { 7581 e.next = 3; 7582 break 7583 } 7584 return e.next = 3, 7585 t.load(); 7586 case 3: 7587 return e.abrupt("return", t.air[t.moduleSplash]); 7588 case 4: 7589 case "end": 7590 return e.stop() 7591 } 7592 }, e) 7593 }))); 7594 var n = e.package || "gd-sdk-air-dynamic" 7595 , r = e.package_version || "1.2.0" 7596 , i = e.template || "pluto" 7597 , e = e.dependencies || []; 7598 this.moduleName = "GDSplashDynamic", 7599 this.moduleSplash = i.charAt(0).toUpperCase() + i.slice(1), 7600 this.moduleConfig = { 7601 source: "https://pm.gamedistribution.com/@bygd/".concat(n, "/").concat(r, "/dist/").concat(i.toLowerCase(), "/iife/index.js"),
7602 dependencies: e 7603 }, 7604 Lh(this.moduleName, this.moduleConfig) 7605 } 7606 function Uh(e, t) { 7607 console.log(e, t) 7608 } 7609 var Nh, Gh = { 7610 react: { 7611 src: "https://pm.gamedistribution.com/react/16.14.0/umd/react.production.min.js", 7612 name: "React" 7613 }, 7614 "react-dom": { 7615 src: "https://pm.gamedistribution.com/react-dom/16.14.0/umd/react-dom.production.min.js", 7616 name: "ReactDOM" 7617 }, 7618 redux: { 7619 src: "https://pm.gamedistribution.com/redux/4.0.5/dist/redux.min.js", 7620 name: "Redux" 7621 }, 7622 "react-redux": { 7623 src: "https://pm.gamedistribution.com/react-redux/7.2.1/dist/react-redux.min.js", 7624 name: "ReactRedux" 7625 }, 7626 "material-ui-core": { 7627 src: "https://pm.gamedistribution.com/@material-ui/core/4.11.3/umd/material-ui.production.min.js", 7628 name: "MaterialUI" 7629 } 7630 }, Fh = {}, qh = (Nh = Vn(Yn.mark(function e(t) { 7631 var n, r, i, o, a, s; 7632 return Yn.wrap(function(e) { 7633 for (; ; ) 7634 switch (e.prev = e.next) { 7635 case 0: 7636 if (n = window[t]) 7637 return e.abrupt("return", n); 7638 e.next = 3; 7639 break; 7640 case 3: 7641 if ((r = Fh[t]).isLoading) 7642 return e.abrupt("return"); 7643 e.next = 6; 7644 break; 7645 case 6: 7646 r.isLoading = !0, 7647 i = function e(t, n) { 7648 var r = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"]; 7649 if (!r) { 7650 if (Array.isArray(t) || (r = function(e) { 7651 if (e) { 7652 if ("string" == typeof e) 7653 return Ch(e, void 0); 7654 var t = Object.prototype.toString.call(e).slice(8, -1); 7655 return "Map" === (t = "Object" === t && e.constructor ? e.constructor.name : t) || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Ch(e, void 0) : void 0 7656 } 7657 }(t)) || n && t && "number" == typeof t.length) { 7658 r && (t = r); 7659 var i = 0 7660 , n = function() {}; 7661 return { 7662 s: n, 7663 n: function() { 7664 return i >= t.length ? { 7665 done: !0 7666 } : { 7667 done: !1, 7668 value: t[i++] 7669 } 7670 }, 7671 e: function(e) { 7672 throw e 7673 }, 7674 f: n 7675 } 7676 } 7677 throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") 7678 } 7679 var o, a = !0, s = !1; 7680 return { 7681 s: function() { 7682 r = r.call(t) 7683 }, 7684 n: function() { 7685 var e = r.next(); 7686 return a = e.done, 7687 e 7688 }, 7689 e: function(e) { 7690 s = !0, 7691 o = e 7692 }, 7693 f: function() { 7694 try { 7695 a || null == r.return || r.return() 7696 } finally { 7697 if (s) 7698 throw o 7699 } 7700 } 7701 } 7702 }(r.dependencies), 7703 e.prev = 8, 7704 i.s(); 7705 case 10: 7706 if ((a = i.n()).done) { 7707 e.next = 26; 7708 break 7709 } 7710 if (o = a.value, 7711 e.prev = 12, 7712 s = Gh[o].name, 7713 window[s]) 7714 return e.abrupt("continue", 24); 7715 e.next = 16; 7716 break; 7717 case 16: 7718 return e.next = 18, 7719 jh({ 7720 id: o, 7721 src: Gh[o].src 7722 }); 7723 case 18: 7724 e.next = 24; 7725 break; 7726 case 20: 7727 e.prev = 20, 7728 e.t0 = e.catch(12), 7729 a = o.id, 7730 s = o.src, 7731 console.log("Could not load external script ".concat(a, " ").concat(s), e.t0); 7732 case 24: 7733 e.next = 10; 7734 break; 7735 case 26: 7736 e.next = 31; 7737 break; 7738 case 28: 7739 e.prev = 28, 7740 e.t1 = e.catch(8), 7741 i.e(e.t1); 7742 case 31: 7743 return e.prev = 31, 7744 i.f(), 7745 e.finish(31); 7746 case 34: 7747 return e.prev = 34, 7748 e.next = 37, 7749 jh({ 7750 id: t, 7751 src: r.source 7752 }); 7753 case 37: 7754 n = window[t], 7755 e.next = 43; 7756 break; 7757 case 40: 7758 e.prev = 40, 7759 e.t2 = e.catch(34), 7760 console.log("Could not load module ".concat(t, " ").concat(r.source, "."), e.t2); 7761 case 43: 7762 return r.isLoading = !1, 7763 e.abrupt("return", n); 7764 case 45: 7765 case "end": 7766 return e.stop() 7767 } 7768 }, e, null, [[8, 28, 31, 34], [12, 20], [34, 40]]) 7769 })), 7770 function(e) { 7771 return Nh.apply(this, arguments) 7772 } 7773 ), zh = {}, Vh = {}, Kh = null; 7774 function Hh() { 7775 for (var e, t = window, n = null, r = null; !e; ) { 7776 try { 7777 if ("function" == typeof t.__tcfapi || "function" == typeof t.__cmp) { 7778 n = "function" == typeof t.__tcfapi ? (r = 2, 7779 t.__tcfapi) : (r = 1, 7780 t.__cmp), 7781 e = t; 7782 break 7783 } 7784 } catch (e) {} 7785 try { 7786 if (t.frames.__tcfapiLocator) { 7787 r = 2, 7788 e = t; 7789 break 7790 } 7791 } catch (e) {} 7792 try { 7793 if (t.frames.__cmpLocator) { 7794 r = 1, 7795 e = t; 7796 break 7797 } 7798 } catch (e) {} 7799 if (t === window.top) 7800 break; 7801 t = t.parent 7802 } 7803 return zh.version = r, 7804 zh.frame = e, 7805 zh.function = n, 7806 zh.version 7807 } 7808 function Wh(r) { 7809 var t = this; 7810 return Kh = Kh || new Promise(function(n) { 7811 function e(e, t) { 7812 if (Uh("Received a response from CMP", e), 7813 t) { 7814 if (!1 !== e.gdprApplies) 7815 return "tcloaded" === e.eventStatus || "useractioncomplete" === e.eventStatus ? (("boolean" != typeof (t = e && "boolean" == typeof e.gdprApplies ? e.gdprApplies : r.defaultGdprScope) || !0 === t && "string" != typeof e.tcString) && n({ 7816 result: "cmpUnexpectedResponse", 7817 cmp: zh, 7818 consentData: e 7819 }), 7820 void n({ 7821 result: "ok", 7822 consentData: e 7823 })) : void 0; 7824 n({ 7825 result: "ok", 7826 consentData: e 7827 }) 7828 } else 7829 n({ 7830 result: "cmpCallFailed" 7831 }) 7832 } 7833 p(this, t), 7834 Hh(), 7835 zh.frame ? 2 === zh.version ? (Uh("TCF v2 CMP found. Fetching the consent."), 7836 zh.function ? (Uh("CMP API is directly accessible, calling it now..."), 7837 zh.function("addEventListener", zh.version, e)) : (Uh("CMP API is outside the current iframe, calling it now..."), 7838 function(o, e) { 7839 var a = this 7840 , s = "__tcfapi"; 7841 window[s] = function(e, t, n, r) { 7842 p(this, a); 7843 var i = Math.random() + "" 7844 , t = qn({}, "".concat(s, "Call"), {
7845 command: e, 7846 parameter: r, 7847 callId: i, 7848 version: t 7849 }); 7850 Vh[i] = n, 7851 o.postMessage(t, "*") 7852 } 7853 .bind(this), 7854 window.addEventListener("message", function e(t) { 7855 var n = "".concat(s, "Return"); 7856 (t = "string" == typeof t.data && 0 <= t.data.indexOf(n) ? JSON.parse(t.data) : t.data)[n] && t[n].callId && (n = t[n], 7857 void 0 !== Vh[n.callId] && Vh[n.callId](n.returnValue, n.success)) 7858 }, !1), 7859 window[s]("addEventListener", zh.version, e) 7860 }(zh.frame, e))) : n({ 7861 result: "cmpVersionNotV2", 7862 cmp: zh 7863 }) : n({ 7864 result: "cmpNotFound" 7865 }) 7866 } 7867 .bind(this)) 7868 } 7869 var $h, Yh = (Wn(Qh, [{ 7870 key: "track", 7871 value: ($h = Vn(Yn.mark(function e(t) { 7872 var n, r, i, o, a; 7873 return Yn.wrap(function(e) { 7874 for (; ; ) 7875 switch (e.prev = e.next) { 7876 case 0: 7877 if (r = null == t || null === (n = t.visitor) || void 0 === n ? void 0 : n.visitorId) { 7878 e.next = 3; 7879 break 7880 } 7881 return e.abrupt("return"); 7882 case 3: 7883 return i = encodeURIComponent(this.productName), 7884 o = encodeURIComponent(r), 7885 e.prev = 5, 7886 a = "json/null.json?https://tracker-v4.gamedock.io/v1/events-tracker/track/product/".concat(i, "/user_id/").concat(o), 7887 e.next = 9, 7888 fetch(a, { 7889 method: "POST" 7890 }); 7891 case 9: 7892 e.next = 25; 7893 break; 7894 case 12: 7895 return e.prev = 12, 7896 e.t0 = e.catch(5), 7897 console.log("GAME_DOCK. fail v4", e.t0), 7898 e.prev = 15, 7899 a = "json/null.json?https://tracker.gamedock.io/v1/events-tracker/track/product/".concat(i, "/user_id/").concat(o), 7900 e.next = 19, 7901 fetch(a, { 7902 method: "POST" 7903 }); 7904 case 19: 7905 e.next = 25; 7906 break; 7907 case 22: 7908 e.prev = 22, 7909 e.t1 = e.catch(15), 7910 console.log("GAME_DOCK. fail v6", e.t1); 7911 case 25: 7912 case "end": 7913 return e.stop() 7914 } 7915 }, e, this, [[5, 12], [15, 22]]) 7916 })), 7917 function(e) { 7918 return $h.apply(this, arguments) 7919 } 7920 ) 7921 }]), 7922 new Qh); 7923 function Qh() { 7924 Kn(this, Qh), 7925 this.productName = "Game Distribution" 7926 } 7927 function Jh(t, e) { 7928 var n, r = Object.keys(t); 7929 return Object.getOwnPropertySymbols && (n = Object.getOwnPropertySymbols(t), 7930 e && (n = n.filter(function(e) { 7931 return Object.getOwnPropertyDescriptor(t, e).enumerable 7932 })), 7933 r.push.apply(r, n)), 7934 r 7935 } 7936 function Zh(t) { 7937 for (var e = 1; e < arguments.length; e++) { 7938 var n = null != arguments[e] ? arguments[e] : {};
7939 e % 2 ? Jh(Object(n), !0).forEach(function(e) { 7940 qn(t, e, n[e]) 7941 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Jh(Object(n)).forEach(function(e) { 7942 Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)) 7943 }) 7944 } 7945 return t 7946 } 7947 var Xh, ef, tf, nf, rf, of, af, sf, cf, uf = null, ce = (Wn(hf, [{ 7948 key: "testConsent", 7949 value: function() { 7950 console.log("test-consent. Finding CMP"); 7951 try { 7952 var e = Hh(); 7953 console.log("CMP found", e), 7954 Vn(Yn.mark(function e() { 7955 var t; 7956 return Yn.wrap(function(e) { 7957 for (; ; ) 7958 switch (e.prev = e.next) { 7959 case 0: 7960 return e.next = 2, 7961 Wh({}); 7962 case 2: 7963 t = e.sent, 7964 console.log("After lookup IAB consent", t); 7965 case 4: 7966 case "end": 7967 return e.stop() 7968 } 7969 }, e) 7970 }))() 7971 } catch (e) { 7972 console.log("find CMP error", e) 7973 } 7974 } 7975 }, { 7976 key: "_sendLoaderDataEvent", 7977 value: function() { 7978 try { 7979 this.options.onLoaderEvent({ 7980 name: "LOADER_DATA", 7981 message: { 7982 game: this._gameData, 7983 bridge: this._bridge 7984 }, 7985 status: this._sdk_ready ? "success" : "error" 7986 }) 7987 } catch (e) {} 7988 } 7989 }, { 7990 key: "isLoaded", 7991 value: function() { 7992 var e, t, n; 7993 return void 0 === this._isLoaded && (e = this._isTokenGameURL(), 7994 t = this._isExtHostedGameURL(), 7995 n = this._isMasterGameURL(), 7996 this._isLoaded = (e || t && !n) && this._gameData.loader.enabled), 7997 this._isLoaded 7998 } 7999 }, { 8000 key: "setIsLoaded", 8001 value: function(e) { 8002 this._isLoaded = e 8003 } 8004 }, { 8005 key: "_sendLoadedEvent", 8006 value: function() { 8007 if (!this.isLoaded()) { 8008 this.setIsLoaded(!0); 8009 try { 8010 this._sendTunnlEvent(1), 8011 this.msgrt.send("loaded", { 8012 message: this._hasBlocker ? "Has Blocker" : "No Blocker" 8013 }), 8014 this._initGamedockTracker(window.GamedockSDK, "gameplay") 8015 } catch (e) {} 8016 } 8017 } 8018 }, { 8019 key: "_safeInit", 8020 value: function() { 8021 this._checkUserDeclinedTracking(), 8022 this._checkWhitelabelPartner(), 8023 this._gdpr(); 8024 var e = this._gameData.diagnostic; 8025 void 0 !== e && void 0 !== e.close_ga && !1 !== e.close_ga || this._bridge.isCoreSDKMode || this._loadGoogleAnalytics(), 8026 void 0 !== e && void 0 !== e.close_gamedock && !1 !== e.close_gamedock || this._bridge.isCoreSDKMode || this._bridge.noGamedockSDK || this._loadGamedockTracker(), 8027 void 0 !== e && void 0 !== e.close_minijuegos && !1 !== e.close_minijuegos || !this._bridge.isCoreSDKMode && !this._bridge.noMinijuegosSDK && 0 <= document.location.search.indexOf("mp_game_id") && this._loadMiniJuegosGratisTracker() 8028 } 8029 }, { 8030 key: "_initializeSDKWithGameData", 8031 value: (cf = Vn(Yn.mark(function e(t, n) { 8032 var r, i = this; 8033 return Yn.wrap(function(e) { 8034 for (; ; ) 8035 switch (e.prev = e.next) { 8036 case 0: 8037 return e.prev = 0, 8038 e.next = 3, 8039 this._getGameData(); 8040 case 3: 8041 this._gameData = e.sent, 8042 this._bridge.isCoreSDKMode = !(!0 === this._gameData.enableAds || !0 === (null === (r = this._gameData.enableAds) || void 0 === r ? void 0 : r.enabled)), 8043 this._safeInit(), 8044 this._checkGameId(), 8045 this._checkGameDeleted(), 8046 this._checkBlocking(), 8047 this._changeMidrollInDebugMode(), 8048 void 0 !== this._gameData.diagnostic && void 0 !== this._gameData.diagnostic.close_ads && !1 !== this._gameData.diagnostic.close_ads || (this.videoAdReady = this._initializeVideoAd().catch(function(e) { 8049 return p(this, i), 8050 console.error(e.message || e) 8051 } 8052 .bind(this))), 8053 this._sendSDKReady(), 8054 t(this._gameData), 8055 e.next = 20; 8056 break; 8057 case 15: 8058 e.prev = 15, 8059 e.t0 = e.catch(0), 8060 this._sendSDKError(e.t0), 8061 this.onResumeGame(e.t0.message, "warning"), 8062 n(e.t0); 8063 case 20: 8064 case "end": 8065 return e.stop() 8066 } 8067 }, e, this, [[0, 15]]) 8068 })), 8069 function(e, t) { 8070 return cf.apply(this, arguments) 8071 } 8072 ) 8073 }, { 8074 key: "_getDefaultOptions", 8075 value: function() { 8076 return { 8077 debug: !1, 8078 testing: !1, 8079 gameId: "4f3d7d38d24b740c95da2b03dc3a2333", 8080 prefix: "gdsdk__", 8081 onEvent: function(e) {}, 8082 onLoaderEvent: function(e) {}, 8083 flashSettings: { 8084 adContainerId: "", 8085 splashContainerId: "" 8086 }, 8087 advertisementSettings: {}, 8088 resumeGame: function() {}, 8089 pauseGame: function() {}, 8090 onInit: function(e) {}, 8091 onError: function(e) {}, 8092 loader: {} 8093 } 8094 } 8095 }, { 8096 key: "_extendDefaultOptions", 8097 value: function(e, t) { 8098 e = ju(e); 8099 this.options = t ? Ju(e, t) : e, 8100 this.options.gameId = this.options.gameId.trim() 8101 } 8102 }, { 8103 key: "_setConsoleBanner", 8104 value: function() { 8105 var e; 8106 this._bridge.noConsoleBanner || (e = console.log("%c %c %c GameDistribution.com HTML5 SDK | Version: 1.15.7 %c %c %c", "background: #9854d8", "background: #6c2ca7", "color: #fff; background: #450f78;", "background: #6c2ca7", "background: #9854d8", "background: #ffffff"), 8107 console.log.apply(console, e)) 8108 } 8109 }, { 8110 key: "_sendTunnlEvent", 8111 value: function(e) { 8112 var t = null !== (t = this._gameData.diagnostic && this._gameData.diagnostic.useTopDomains) && void 0 !== t && t 8113 , e = { 8114 page_url: decodeURIComponent(t ? this._topD
8114omain : this._parentURL), 8115 game_id: this.options.gameId, 8116 eventtype: e, 8117 ts: Date.now() 8118 }; 8119 fetch("json/null.json?https://ana.headerlift.com/event?".concat(vu.stringify(e))) 8120 } 8121 }, { 8122 key: "_sendAdRequestContext", 8123 value: function(e) { 8124 this.msgrt.send("adctx", { 8125 message: e.adTag.bidder 8126 }) 8127 } 8128 }, { 8129 key: "_checkWhitelabelPartner", 8130 value: function() { 8131 this._whitelabelPartner = !1; 8132 var e = Xu(); 8133 e.hasOwnProperty("xanthophyll") && "true" === e.xanthophyll && (this._whitelabelPartner = !0, 8134 ud("White label publisher", "".concat(this._whitelabelPartner), "success")) 8135 } 8136 }, { 8137 key: "_checkConsole", 8138 value: function() { 8139 try { 8140 if (!ad) 8141 return; 8142 "developer.gamedistribution.com" === this._parentDomain ? (od("gd_debug_ex", !0), 8143 od("gd_disable_midroll_timer", !0), 8144 od("gd_tag", !0)) : "localhost:3000" === this._parentDomain && (od("gd_debug_ex", !0), 8145 od("gd_disable_midroll_timer", !0)), 8146 rd("gd_debug_ex") && (this.openConsole(), 8147 this.msgrt.send("dev.console", { 8148 message: this._parentDomain 8149 })) 8150 } catch (e) {} 8151 } 8152 }, { 8153 key: "_checkUserDeclinedTracking", 8154 value: function() { 8155 this._userDeclinedTracking = this._bridge.isCoreSDKMode || 0 <= document.location.search.indexOf("gdpr-tracking=0") || 0 <= document.cookie.indexOf("ogdpr_tracking=0") 8156 } 8157 }, { 8158 key: "_initializeMessageRouter", 8159 value: function() { 8160 var e; 8161 this.msgrt = new yd({ 8162 gameId: this.options.gameId, 8163 hours: (new Date).getHours(), 8164 topDomain: this._topDomain, 8165 domain: this._parentDomain, 8166 referrer: this._parentURL, 8167 depth: nd(), 8168 version: Jc, 8169 tracking: this._userDeclinedTracking, 8170 whitelabel: this._whitelabelPartner, 8171 platform: (e = navigator.userAgent || navigator.vendor || window.opera, 8172 /windows phone/i.test(e) ? "windows" : /android/i.test(e) ? "android" : /iPad|iPhone|iPod/.test(e) && !window.MSStream ? "ios" : ""), 8173 byloader: this._bridge.isTokenGameURL, 8174 isTokenGameURL: this._bridge.isTokenGameURL, 8175 isMasterGameURL: this._bridge.isMasterGameURL, 8176 isExtHostedGameURL: this._bridge.isExtHostedGameURL, 8177 byloaderVersion: this._bridge.version 8178 }) 8179 } 8180 }, { 8181 key: "_loadGamedockTracker", 8182 value: function() { 8183 var t = this; 8184 try { 8185 var e = ["js/null.js?https://cdn.gamedock.io/gamedock-web-tracker/4.3.0/script/gamedock-sdk.min.js"]; 8186 td(e[0], "GamedockSDK", { 8187 alternates: e 8188 }).then(function() { 8189 p(this, t); 8190 var e = this._initGamedockTracker(window.GamedockSDK, "pageview"); 8191 Yh.track(e) 8192 } 8193 .bind(this)).catch(function(e) { 8194 p(this, t), 8195 this._sendSDKError(e) 8196 } 8197 .bind(this)) 8198 } catch (e) {} 8199 } 8200 }, { 8201 key: "_initGamedockTracker", 8202 value: function(e, t) { 8203 if (!this._bridge.isCoreSDKMode) { 8204 e = e.initialize("gd", this._parentDomain); 8205 return e.tracking.trackEvent(t, { 8206 pageId: this.options.gameId, 8207 pageType: "game" 8208 }), 8209 e 8210 } 8211 } 8212 }, { 8213 key: "_loadMiniJuegosGratisTracker", 8214 value: function() { 8215 var t = this; 8216 window.mpConfig = { 8217 game: this.options.gameId, 8218 partner: "game-distribution" 8219 }; 8220 var e = ["https://ext.minijuegosgratis.com/external-host/main.js"]; 8221 td(e[0], "MinijuegosSDK", { 8222 alternates: e 8223 }).catch(function(e) { 8224 p(this, t), 8225 this._sendSDKError(e) 8226 } 8227 .bind(this)) 8228 } 8229 }, { 8230 key: "_loadGoogleAnalytics", 8231 value: function() { 8232 var t = this
8233 , e = ["js/null.js?https://www.google-analytics.com/analytics.js"]; 8234 td(e[0], "gdsdk_google_analytics", { 8235 alternates: e, 8236 error_prefix: "Blocked:", 8237 exists: function() { 8238 return p(this, t), 8239 window.ga 8240 } 8241 .bind(this) 8242 }).then(function() { 8243 p(this, t), 8244 window.ga("create", "UA-60359297-49", { 8245 name: "gd", 8246 cookieExpires: 7776e3, 8247 sampleRate: 5 8248 }, "auto"), 8249 this._bridge.noGAPageView || window.ga("gd.send", "pageview"), 8250 this._userDeclinedTracking || window.ga("gd.set", "anonymizeIp", !0) 8251 } 8252 .bind(this)).catch(function(e) { 8253 p(this, t), 8254 this._sendSDKError(e) 8255 } 8256 .bind(this)) 8257 } 8258 }, { 8259 key: "_subscribeToEvents", 8260 value: function() { 8261 var n = this; 8262 this.eventBus = new md, 8263 dd.forEach(function(e) { 8264 var t = this; 8265 return p(this, n), 8266 this.eventBus.subscribe(e, function(e) { 8267 return p(this, t), 8268 this._onEvent(e) 8269 } 8270 .bind(this), "sdk") 8271 } 8272 .bind(this)), 8273 this.eventBus.subscribe("AD_SDK_CANCELED", function() { 8274 p(this, n) 8275 } 8276 .bind(this), "sdk"), 8277 ld.forEach(function(e) { 8278 var t = this; 8279 return p(this, n), 8280 this.eventBus.subscribe(e, function(e) { 8281 return p(this, t), 8282 this._onEvent(e) 8283 } 8284 .bind(this), "ima") 8285 } 8286 .bind(this)), 8287 this.eventBus.subscribe("COMPLETE", function() { 8288 if (p(this, n), 8289 "developer.gamedistribution.com" === this._parentDomain || !0 === new RegExp("^localhost").test(this._parentDomain)) { 8290 fetch("https://game.api.gamedistribution.com/game/v2/hasapi/".concat(this.options.gameId, "?timestamp=").concat((new Date).valueOf())); 8291 try { 8292 var e = JSON.stringify({ 8293 type: "GD_SDK_IMPLEMENTED", 8294 gameID: this.options.gameId 8295 }); 8296 window.location !== window.top.location ? window.top.postMessage(e, "*") : null !== window.opener && window.opener.location !== window.location && window.opener.postMessage(e, "*") 8297 } catch (e) {} 8298 } 8299 } 8300 .bind(this), "ima"), 8301 this.eventBus.subscribe("CONTENT_PAUSE_REQUESTED", function() { 8302 return p(this, n), 8303 this.onPauseGame("New advertisements requested and loaded", "success") 8304 } 8305 .bind(this), "ima"), 8306 this.eventBus.subscribe("IMPRESSION", function(e) { 8307 p(this, n), 8308 this.msgrt.send("ad.impression") 8309 } 8310 .bind(this), "ima"), 8311 this.eventBus.subscribe("SKIPPED", function(e) { 8312 p(this, n) 8313 } 8314 .bind(this), "ima"), 8315 this.eventBus.subscribe("AD_ERROR", function(e) { 8316 p(this, n), 8317 this.msgrt.send("ad.error", { 8318 message: e.message, 8319 details: e.details 8320 }) 8321 } 8322 .bind(this), "ima"), 8323 this.eventBus.subscribe("CLICK", function(e) { 8324 p(this, n) 8325 } 8326 .bind(this), "ima"), 8327 this.eventBus.subscribe("COMPLETE", function(e) { 8328 p(this, n) 8329 } 8330 .bind(this), "ima"), 8331 this.eventBus.subscribe("AD_SDK_REQUEST", function(e) { 8332 p(this, n), 8333 this._sendAdRequestContext(e.message) 8334 } 8335 .bind(this), "sdk"), 8336 this.eventBus.subscribe("SDK_ERROR", function(e) { 8337 p(this, n), 8338 e.message.startsWith("Blocked:") ? this._bridge.noBlockerEvent || (this.msgrt.send("error", { 8339 message: e.message 8340 }), 8341 this._hasBlocker || (this._hasBlocker = !0, 8342 this._sendTunnlEvent(3))) : this.msgrt.send("error", { 8343 message: e.message 8344 }) 8345 } 8346 .bind(this), "sdk"), 8347 this.eventBus.subscribe("AD_REQUEST", function(e) { 8348 p(this, n) 8349 } 8350 .bind(this), "sdk"), 8351 this.eventBus.subscribe("AD_REQUEST_KEYS_EMPTY", function(e) { 8352 p(this, n), 8353 this.msgrt.send("tunnl.keys.empty", { 8354 message: e.message, 8355 details: e.details 8356 }) 8357 } 8358 .bind(this), "sdk"), 8359 this.eventBus.subscribe("AD_REQUEST_KEYS_FALLBACK", function(e) { 8360 p(this, n), 8361 this.msgrt.send("tunnl.keys.fallback", { 8362 message: e.message, 8363 details: e.details 8364 }) 8365 } 8366 .bind(this), "sdk"), 8367 this.eventBus.subscribe("AD_T4R", function(e) { 8368 return p(this, n), 8369 this.msgrt.send("adt4r") 8370 } 8371 .bind(this), "sdk") 8372 } 8373 }, { 8374 key: "_gdpr", 8375 value: function() { 8376 var t = this 8377 , e = !this._bridge.isCoreSDKMode && 0 <= document.location.search.indexOf("gdpr-tracking") 8378 , n = 0 <= document.location.search.indexOf("gdpr-tracking=1") 8379 , r = !this._bridge.isCoreSDKMode && 0 <= document.location.search.indexOf("gdpr-targeting") 8380 , i = 0 <= document.location.search.indexOf("gdpr-targeting=1") 8381 , o = !this._bridge.isCoreSDKMode && 0 <= document.location.search.indexOf("gdpr-third-party") 8382 , a = 0 <= document.location.search.indexOf("gdpr-third-party=1"); 8383 [{ 8384 name: "SDK_GDPR_TRACKING", 8385 message: e ? n ? "Allowed" : "Not allowed" : "Not set", 8386 status: n ? "success" : "warning", 8387 label: e ? n ? "1" : "0" : "not set" 8388 }, { 8389 name: "SDK_GDPR_TARGETING", 8390 message: r ? i ? "Allowed" : "Not allowed" : "Not set", 8391 status: i ? "success" : "warning", 8392 label: r ? i ? "1" : "0" : "not set" 8393 }, { 8394 name: "SDK_GDPR_THIRD_PARTY", 8395 message: o ? a ? "Allowed" : "Not allowed" : "Not set", 8396 status: a ? "success" : "warning", 8397 label: o ? a ? "1" : "0" : "not set" 8398 }
8398].forEach(function(e) { 8399 p(this, t), 8400 this.eventBus.broadcast(e.name, { 8401 name: e.name, 8402 message: e.message, 8403 status: e.status, 8404 analytics: { 8405 category: e.name, 8406 action: this._parentDomain, 8407 label: e.label 8408 } 8409 }) 8410 } 8411 .bind(this)) 8412 } 8413 }, { 8414 key: "_checkGameId", 8415 value: function() { 8416 this.options.gameId === this._defaults.gameId && this._sendSDKError("Check correctness of your GAME ID. Otherwise, no revenue will be recorded.") 8417 } 8418 }, { 8419 key: "_getDefaultGameData", 8420 value: function() { 8421 return { 8422 gameId: this.options.gameId, 8423 enableAds: !0, 8424 preroll: !0, 8425 midroll: 12e4, 8426 rewardedAds: !1, 8427 title: "", 8428 tags: [], 8429 category: "", 8430 assets: [], 8431 dmain: !0, 8432 sdk: this._getDefaultAdSDKData(), 8433 loader: this._getDefaultLoaderData(), 8434 splash: this._getDefaultSplashData(), 8435 promo: this._getDefaultPromoData(), 8436 dAds: this._getDefaultDisplayAdsData(), 8437 pAds: this._getDefaultPrerollAdsData(), 8438 mAds: this._getDefaultMidrollAdsData(), 8439 rAds: this._getDefaultRewardedAdsData() 8440 } 8441 } 8442 }, { 8443 key: "_getDefaultAdSDKData", 8444 value: function() { 8445 return {} 8446 } 8447 }, { 8448 key: "_getDefaultLoaderData", 8449 value: function() { 8450 return {} 8451 } 8452 }, { 8453 key: "_getDefaultSplashData", 8454 value: function() { 8455 return {} 8456 } 8457 }, { 8458 key: "_getDefaultPromoData", 8459 value: function() { 8460 return {} 8461 } 8462 }, { 8463 key: "_getDefaultDisplayAdsData", 8464 value: function() { 8465 return { 8466 enabled: !0 8467 } 8468 } 8469 }, { 8470 key: "_getDefaultPrerollAdsData", 8471 value: function() { 8472 return {} 8473 } 8474 }, { 8475 key: "_getDefaultMidrollAdsData", 8476 value: function() { 8477 return {} 8478 } 8479 }, { 8480 key: "_getDefaultRewardedAdsData", 8481 value: function() { 8482 return {} 8483 } 8484 }, { 8485 key: "_getGameDataUrl", 8486 value: function() { 8487 var e = void 0 !== this._topDomain && "undefined" !== this._topDomain ? this._topDomain : this._parentDomain; 8488 return "json/config.json?https://game.api.gamedistribution.com/game/v4/get/".concat(this.options.gameId.replace(/-/g, ""), "/?domain=").concat(e, "&v=").concat(Jc, "&localTime=").concat((new Date).getHours()) 8489 } 8490 }, { 8491 key: "_checkBlocking", 8492 value: (sf = Vn(Yn.mark(function e() { 8493 var t, n, r = this; 8494 return Yn.wrap(function(e) { 8495 for (; ; ) 8496 switch (e.prev = e.next) { 8497 case 0: 8498 console.log("Block And Redirect!"); 8499 n = this._gameData, 8500 t = void 0 === this._gameData.dmain || this._gameData.dmain, 8501 (n.bloc_gard && !0 === n.bloc_gard.enabled || !t) && (this.msgrt.send("blocked"), 8502 setTimeout(function() { 8503 p(this, r), 8504 window.location.href == "https://html5.api.gamedistribution.com/blocked.html?".concat(vu.stringify({ 8505 domain: this._parentDomain, 8506 id: n.gameId, 8507 img: this._get_game_thumbnail_url(), 8508 title: n.title 8509 })) 8510 } 8511 .bind(this), 100)); 8512 case 5: 8513 case "end": 8514 return e.stop() 8515 } 8516 }, e, this) 8517 })), 8518 function() { 8519 return sf.apply(this, arguments) 8520 } 8521 ) 8522 }, { 8523 key: "_checkGameDeleted", 8524 value: function() { 8525 var e = this; 8526 6 === this._gameData.status && (console.log("%c %c %c This game was deleted, please remove it in your website... ", "background: #F2181A", "background: #F23818", "color: #fff; background: #F23818;", "background: #F55E60", "background: #F55E60", "background: #c4161e;
8526 color: #fff;"), 8527 setTimeout(function() { 8528 p(this, e), 8529 document.location = "https://html5.api.gamedistribution.com/deleted.html" 8530 } 8531 .bind(this), 100)) 8532 } 8533 }, { 8534 key: "_changeMidrollInDebugMode", 8535 value: function() { 8536 var e = this._gameData; 8537 ad && rd("gd_debug_ex") && (rd("gd_disable_midroll_timer") ? e.midroll = 0 : e.midroll = this._getDefaultGameData().midroll) 8538 } 8539 }, { 8540 key: "_checkSplashAndPromoScreens", 8541 value: function() { 8542 this._gameData.loader && !1 === this._gameData.loader.mobile && this._getisMobile() && (this._gameData.loader.enabled = !1); 8543 var e = this._gameData 8544 , t = e.gdpr && !0 === e.gdpr.consent 8545 , n = e.loader 8546 , r = e.promo; 8547 e.preroll || (this.adRequestTimer = Date.now()), 8548 this.options.loader.enabled ? r.enabled ? this._createPromoBeforeSplash(e, t) : n.enabled ? this._createSplash(e, t) : this.onResumeGame("Advertisement(s) are done. Start / resume the game.", "success") : n.enabled || this._bridge.isTokenGameURL && this._bridge.isExtHostedGameURL || (this.options.advertisementSettings.autoplay || t ? r.enabled ? this._createPromoBeforeSplash(e, t) : !1 !== n.enabled && this._createSplash(e, t) : r.enabled && this._createPromo(e, t)) 8549 } 8550 }, { 8551 key: "_initializeVideoAd", 8552 value: (af = Vn(Yn.mark(function e() { 8553 var t; 8554 return Yn.wrap(function(e) { 8555 for (; ; ) 8556 switch (e.prev = e.next) { 8557 case 0: 8558 if (this._bridge.isCoreSDKMode) 8559 return e.abrupt("return"); 8560 e.next = 2; 8561 break; 8562 case 2: 8563 return (t = this._gameData).sdk.enabled && (this.options.advertisementSettings = Ju(this.options.advertisementSettings, t.sdk)), 8564 this.macros = new vd({ 8565 game: t, 8566 bridge: this._bridge 8567 }), 8568 this.adInstance = new wl(this.options.flashSettings.adContainerId,this.options.advertisementSettings,{ 8569 parentURL: this._parentURL, 8570 parentDomain: this._parentDomain, 8571 topDomain: this._topDomain 8572 }), 8573 this.adInstance.gameId = t.gameId, 8574 this.adInstance.category = t.category, 8575 this.adInstance.tags = t.tags, 8576 this.adInstance.noPreroll = this._bridge.noPreroll, 8577 this.adInstance.macros = this.macros, 8578 this.adInstance.gameData = t, 8579 this.adInstance.msgrt = this.msgrt, 8580 e.next = 15, 8581 this.adInstance.start(); 8582 case 15: 8583 case "end": 8584 return e.stop() 8585 } 8586 }, e, this) 8587 })), 8588 function() { 8589 return af.apply(this, arguments) 8590 } 8591 ) 8592 }, { 8593 key: "_sendSDKReady", 8594 value: function() { 8595 var e = "Everything is ready.";
8596 this.eventBus.broadcast("SDK_READY", { 8597 message: e, 8598 status: "success" 8599 }); 8600 try { 8601 this.options.onInit(e) 8602 } catch (e) { 8603 ud("DEVELOPER_ERROR", e.message, "warning") 8604 } 8605 } 8606 }, { 8607 key: "_sendSDKError", 8608 value: function(e) { 8609 e = e.message ? e : { 8610 message: e 8611 }, 8612 this.eventBus.broadcast("SDK_ERROR", { 8613 message: e.message, 8614 status: "error" 8615 }); 8616 try { 8617 this.options.onError(e) 8618 } catch (e) { 8619 ud("DEVELOPER_ERROR", e.message, "warning") 8620 } 8621 } 8622 }, { 8623 key: "_onEvent", 8624 value: function(e) { 8625 ud(e.name, e.message, e.status); 8626 try { 8627 this.options.onEvent({ 8628 name: e.name, 8629 message: e.message, 8630 status: e.status 8631 }) 8632 } catch (e) { 8633 ud("DEVELOPER_ERROR", e.message, "warning") 8634 } 8635 } 8636 }, { 8637 key: "_getGameData", 8638 value: function() { 8639 var t = this; 8640 return new Promise(function(n) { 8641 var r = this; 8642 p(this, t); 8643 var i = this._getDefaultGameData() 8644 , e = this._getGameDataUrl(); 8645 fetch(e).then(function(e) { 8646 return p(this, r), 8647 e.json() 8648 } 8649 .bind(this)).then(function(e) { 8650 var t; 8651 p(this, r), 8652 e.success ? (t = { 8653 gameId: (e = e.result.game).gameMd5, 8654 status: e.status, 8655 description: e.description, 8656 enableAds: !0 === e.enableAds || !0 === (null === (t = e.enableAds) || void 0 === t ? void 0 : t.enabled), 8657 preroll: e.preRoll, 8658 midroll: 6e4 * e.timeAds, 8659 rewardedAds: e.rewardedAds, 8660 title: e.title, 8661 tags: e.tags, 8662 category: e.category, 8663 assets: e.assets, 8664 disp_2nd_prer: e.disp_2nd_prer, 8665 ctry_vst: e.ctry_vst, 8666 ctry: e.ctry, 8667 crtv: e.crtv, 8668 dmain: e.dmain, 8669 block_exts: this._parseAndSelectRandomOne(e.push_cuda), 8670 bloc_gard: this._parseAndSelectRandomOne(e.bloc_gard), 8671 cookie: this._parseAndSelectRandomOne(e.cookie), 8672 gdpr: this._parseAndSelectRandomOne(e.gdpr), 8673 diagnostic: this._parseAndSelectRandomOne(e.diagnostic), 8674 sdk: this._parseAndSelectRandomOne(e.sdk) || this._getDefaultAdSDKData(), 8675 loader: this._parseAndSelectRandomOne(e.loader) || this._getDefaultLoaderData(), 8676 splash: this._parseAndSelectRandomOne(e.splash) || this._getDefaultSplashData(), 8677 promo: this._parseAndSelectRandomOne(e.promo) || this._getDefaultPromoData(), 8678 dAds: this._parseAndSelectRandomOne(e.dads) || this._getDefaultDisplayAdsData(), 8679 pAds: this._parseAndSelectRandomOne(e.pads) || this._getDefaultPrerollAdsData(), 8680 mAds: this._parseAndSelectRandomOne(e.mads) || this._getDefaultMidrollAdsData(), 8681 rAds: this._parseAndSelectRandomOne(e.rads) || this._getDefaultRewardedAdsData() 8682 }, 8683 e = Ju(ju(i), t), 8684 this._bridge.noPreroll = (!this._getisMobile() || !1 !== e.loader.mobile) && this._bridge.noPreroll, 8685 this._bridge.noPreroll && (this.adRequestTimer = Date.now()), 8686 this.msgrt.setGameData(e), 8687 t = e.diagnostic, 8688 cd = t, 8689 n(e)) : (i.failed = !0, 8690 n(i)) 8691 } 8692 .bind(this)).catch(function(e) { 8693 p(this, r), 8694 i.failed = !0, 8695 n(i) 8696 } 8697 .bind(this)) 8698 } 8699 .bind(this)) 8700 } 8701 }, { 8702 key: "_createSplash", 8703 value: (of = Vn(Yn.mark(function e(t, n) { 8704 var r, i, o = this; 8705 return Yn.wrap(function(e) { 8706 for (; ; ) 8707 switch (e.prev = e.next) { 8708 case 0: 8709 return e.next = 2, 8710 this._getSplashTemplate(t); 8711 case 2: 8712 r = e.sent, 8713 (i = new r(Zh(Zh({}, this.options), {}, { 8714 isConsentDomain: n, 8715 version: Jc 8716 }),t,this._parentDomain)).on("playClick", function() { 8717 var e, t = this; 8718 p(this, o), 8719 n && ((e = new Date).setDate(e.getDate() + 90), 8720 document.cookie = "ogdpr_tracking=1; expires=".concat(e.toUTCString(), "; path=/")), 8721 this.showAd(Qu.Interstitial).catch(function(e) { 8722 p(this, t) 8723 } 8724 .bind(this)) 8725 } 8726 .bind(this)), 8727 i.on("slotVisibilityChanged", function(e) { 8728 p(this, o) 8729 } 8730 .bind(this)), 8731 this.onPauseGame("Pause the game and wait for a user gesture", "success"), 8732 this.eventBus.subscribe("SDK_GAME_PAUSE", function() { 8733 p(this, o), 8734 i.hide() 8735 } 8736 .bind(this)), 8737 this.eventBus.subscribe("SDK_GAME_START", function() { 8738 p(this, o), 8739 i.hide() 8740 } 8741 .bind(this)); 8742 case 9: 8743 case "end": 8744 return e.stop() 8745 } 8746 }, e, this) 8747 })), 8748 function(e, t) { 8749 return of.apply(this, arguments) 8750 } 8751 ) 8752 }, { 8753 key: "_createPromoBeforeSplash", 8754 value: (rf = Vn(Yn.mark(function e(t, n) { 8755 var r, i, o = this; 8756 return Yn.wrap(function(e) { 8757 for (; ; ) 8758 switch (e.prev = e.next) { 8759 case 0: 8760 return e.next = 2, 8761 this._instancePromo(t); 8762 case 2: 8763 r = e.sent, 8764 (i = new r(Zh(Zh({}, this.options), {}, { 8765 isConsentDomain: n, 8766 version: Jc 8767 }),t)).on("skipClick", function() { 8768 p(this, o), 8769 i.hide(), 8770 this._createSplash(t, n) 8771 } 8772 .bind(this)), 8773 i.on("adCompleted", function() { 8774 p(this, o), 8775 i.hide(), 8776 this._createSplash(t, n) 8777 } 8778 .bind(this)); 8779 case 6: 8780 case "end": 8781 return e.stop() 8782 } 8783 }, e, this) 8784 })), 8785 function(e, t) { 8786 return rf.apply(this, arguments) 8787 } 8788 ) 8789 }, { 8790 key: "_createPromo", 8791 value: (nf = Vn(Yn.mark(function e(t, n) { 8792 var r, i, o = this; 8793 return Yn.wrap(function(e) { 8794 for (; ; ) 8795 switch (e.prev = e.next) { 8796 case 0: 8797 return e.next = 2, 8798 this._instancePromo(t); 8799 case 2: 8800 r = e.sent, 8801 (i = new r(Zh(Zh({}, this.options), {}, { 8802 isConsentDomain: n, 8803 version: Jc 8804 }),t)).on("skipClick", function() { 8805 p(this, o), 8806 i.hide(), 8807 this.onResumeGame("Resumed after the promo", "warning") 8808 } 8809 .bind(this)), 8810 this.onPauseGame("Pause the game for the promo", "success"); 8811 case 6: 8812 case "end": 8813 return e.stop() 8814 } 8815 }, e, this) 8816 })), 8817 function(e, t) { 8818 return nf.apply(this, arguments) 8819 } 8820 ) 8821 }, { 8822 key: "showBanner", 8823 value: function() { 8824 var t = this; 8825 this.showAd(Qu.Interstitial).catch(function(e) { 8826 p(this, t) 8827 } 8828 .bind(this)) 8829 } 8830 }, { 8831 key: "showAd", 8832 value: (tf = Vn(Yn.mark(function e(d, l) { 8833 var h = this; 8834 return Yn.wrap(function(e) { 8835 for (; ; ) 8836 switch (e.prev = e.next) { 8837 case 0: 8838 return e.abrupt("return", new Promise(function() { 8839 var n = Vn(Yn.mark(function e(o, a) { 8840 var s, i, c, t, n, u = this; 8841 return Yn.wrap(function(e) { 8842 for (; ; ) 8843 switch (e.prev = e.next) { 8844 case 0: 8845 return e.prev = 0, 8846 e.next = 3, 8847 h.sdkReady; 8848 case 3: 8849 return s = e.sent, 8850 e.next = 6, 8851 h.videoAdReady; 8852 case 6: 8853 if (h._sendLoadedEvent(), 8854 s.bloc_gard && !0 === s.bloc_gard.enabled) 8855 throw new Error("Game or domain is blocked."); 8856 e.next = 9; 8857 break; 8858 case 9: 8859 if (!s.enableAds || h._whitelabelPartner) 8860 throw new Error("Advertisements are disabled."); 8861 e.next = 11; 8862 break; 8863 case 11: 8864 if (d) { 8865 e.next = 15; 8866 break 8867 } 8868 d = Qu.Interstitial, 8869 e.next = 17; 8870 break; 8871 case 15: 8872 if (d !== Qu.Interstitial && d !== Qu.Rewarded) 8873 throw new Error("Unsupported an advertisement type: ",d); 8874 e.next = 17; 8875
8875 break; 8876 case 17: 8877 if (d !== Qu.Rewarded || s.rewardedAds) { 8878 e.next = 19; 8879 break 8880 } 8881 throw new Error("Rewarded ads are disabled."); 8882 case 19: 8883 if (d !== Qu.Interstitial || void 0 === h.adRequestTimer) { 8884 e.next = 23; 8885 break 8886 } 8887 if (Date.now() - h.adRequestTimer < s.midroll) 8888 throw new Error("The advertisement was requested too soon."); 8889 e.next = 23; 8890 break; 8891 case 23: 8892 return i = "main.showad", 8893 c = function(r) { 8894 var i = this; 8895 p(this, u), 8896 h.adInstance.resetForNext(), 8897 h.showAd(d, r).then(function(e) { 8898 p(this, i), 8899 h.adRequestTimer = Date.now(), 8900 h.onResumeGame("Advertisement(s) are done. Start / resume the game.", "success"), 8901 o("") 8902 } 8903 .bind(this)).catch(function(e) { 8904 var t, n = this; 8905 p(this, i), 8906 r.retry_on_success ? (h.adRequestTimer = Date.now(), 8907 h.onResumeGame("Advertisement(s) are done. Start / resume the game.", "success"), 8908 o("")) : r.retry_on_failure && (t = (s.promo || {}).puzzle || {}).enabled && (t.trigger.interstitial_failure && d === Qu.Interstitial || t.trigger.rewarded_failure && d === Qu.Rewarded) ? h._showPromoDisplayAd().then(function(e) { 8909 p(this, n), 8910 h.onResumeGame("DisplayAd succeded.", "success"), 8911 o("DisplayAd succeded.") 8912 } 8913 .bind(this)).catch(function(e) { 8914 p(this, n), 8915 h.onResumeGame("DisplayAd failed.", "warning"), 8916 a("DisplayAd failed.") 8917 } 8918 .bind(this)) : (h.onResumeGame(e.message || e, "warning"), 8919 a(e.message || e)) 8920 } 8921 .bind(this)) 8922 } 8923 .bind(this), 8924 t = function(e) { 8925 var t, n, r = this; 8926 p(this, u), 8927 h.eventBus.unsubscribeScope(i), 8928 void 0 !== l ? a(e.message) : h._isRetryOnFailureEnabled(d) ? c({ 8929 retry_on_failure: !0 8930 }) : (h.adRequestTimer = Date.now(), 8931 (n = (s.promo || {}).puzzle || {}).enabled && (n.trigger.interstitial_failure && d === Qu.Interstitial || n.trigger.rewarded_failure && d === Qu.Rewarded) ? h._showPromoDisplayAd().then(function(e) { 8932 p(this, r), 8933 h.onResumeGame("DisplayAd succeded.", "success"), 8934 o("DisplayAd succeded.") 8935 } 8936 .bind(this)).catch(function(e) { 8937 p(this, r), 8938 h.onResumeGame("DisplayAd failed.", "warning"), 8939 a("DisplayAd failed.") 8940 } 8941 .bind(this)) : (!0 === (null === (n = h._gameData.promo) || void 0 === n || null === (t = n.puzzle) || void 0 === t ? void 0 : t.enableAfterPreroll) && (h._gameData.promo.puzzle.enabled = !0), 8942 h.onResumeGame(e.message, "warning"), 8943 a(e.message))) 8944 } 8945 .bind(this), 8946 n = function(e) { 8947 p(this, u), 8948 h.eventBus.unsubscribeScope(i), 8949 void 0 !== l ? o(e.message) : h._isRetryOnSuccessEnabled(d) ? c({ 8950 retry_on_success: !0 8951 }) : (h.adRequestTimer = Date.now(), 8952 h.onResumeGame("Advertisement(s) are done. Start / resume the game.", "success"), 8953 o(e.message)) 8954 } 8955 .bind(this), 8956 h.eventBus.subscribe("AD_ERROR", t, i), 8957 h.eventBus.subscribe("AD_SDK_CANCELED", t, i), 8958 h.eventBus.subscribe("AD_SUCCESS", n, i), 8959 e.next = 32, 8960 h.adInstance.startAd(d, l); 8961 case 32: 8962 h._post_message({ 8963 topic: "adrequest.instream" 8964 }), 8965 e.next = 39; 8966 break; 8967 case 35: 8968 e.prev = 35, 8969 e.t0 = e.catch(0), 8970 h.onResumeGame(e.t0.message, "warning"), 8971 a(e.t0.message); 8972 case 39: 8973 case "end": 8974 return e.stop() 8975 } 8976 }, e, this, [[0, 35]]) 8977 })); 8978 return function(e, t) { 8979 return n.apply(this, arguments) 8980 } 8981 }())); 8982 case 1: 8983 case "end": 8984 return e.stop() 8985 } 8986 }, e) 8987 })), 8988 function(e, t) { 8989 return tf.apply(this, arguments) 8990 } 8991 ) 8992 }, { 8993 key: "_isRetryOnSuccessEnabled", 8994 value: function(e) { 8995 var t = this._gameData 8996 , n = this.adInstance.getAdPosition(e) 8997 , e = t.sdk.enabled && (!0 === t.sdk.retry_on_success || Mu(t.sdk.retry_on_success)); 8998 return "preroll" === n && void 0 !== t.pAds.retry_on_success ? e = e && t.pAds.retry_on_success : "midroll" === n && void 0 !== t.mAds.retry_on_success ? e = e && t.mAds.retry_on_success : "rewarded" === n && void 0 !== t.rAds.retry_on_success && (e = e && t.rAds.retry_on_success), 8999 e 9000 } 9001 }, { 9002 key: "_isRetryOnFailureEnabled", 9003 value: function(e) { 9004 var t = this._gameData 9005 , n = this.adInstance.getAdPosition(e) 9006 , e = t.sdk.enabled && (!0 === t.sdk.retry_on_failure || Mu(t.sdk.retry_on_failure)); 9007 return "preroll" === n && void 0 !== t.pAds.retry_on_failure ? e = e && t.pAds.retry_on_failure : "midroll" === n && void 0 !== t.mAds.retry_on_failure ? e = e && t.mAds.retry_on_failure : "rewarded" === n && void 0 !== t.rAds.retry_on_failure && (e = e && t.rAds.retry_on_failure), 9008 e 9009 } 9010 }, { 9011 key: "preloadAd", 9012 value: (ef = Vn(Yn.mark(function e(o) { 9013 var a = this; 9014 return Yn.wrap(function(e) { 9015 for (; ; ) 9016 switch (e.prev = e.next) { 9017 case 0: 9018 return e.abrupt("return", new Promise(function() { 9019 var n = Vn(Yn.mark(function e(t, n) { 9020 var r, i; 9021 return Yn.wrap(function(e) { 9022 for (; ; ) 9023 switch (e.prev = e.next) { 9024 case 0: 9025 return e.prev = 0, 9026 e.next = 3, 9027 a.sdkReady; 9028 case 3: 9029 return r = e.sent, 9030 e.next = 6, 9031 a.videoAdReady; 9032 case 6: 9033 if (r.bloc_gard && !0 === r.bloc_gard.enabled) 9034 throw new Error("Game or domain is blocked."); 9035 e.next = 8; 9036 break; 9037 case 8: 9038 if (!r.enableAds || a._whitelabelPartner) 9039 throw new Error("Advertisements are disabled."); 9040 e.next = 10; 9041 break; 9042 case 10: 9043 if (o) { 9044 e.next = 14; 9045 break 9046 } 9047 o = Qu.Rewarded, 9048 e.next = 16; 9049 break; 9050 case 14: 9051 if (o !== Qu.Interstitial && o !== Qu.Rewarded) 9052 throw new Error("Unsupported an advertisement type:" + o); 9053 e.next = 16; 9054 break; 9055 case 16: 9056 if (o !== Qu.Rewarded || r.rewardedAds) { 9057 e.next = 18; 9058 break 9059 } 9060 throw new Error("Rewarded ads are disabled."); 9061 case 18: 9062 return e.next = 20, 9063 a.adInstance.preloadAd(o); 9064 case 20: 9065 i = e.sent, 9066 t(i), 9067 e.next = 27; 9068 break; 9069 case 24: 9070 e.prev = 24, 9071 e.t0 = e.catch(0), 9072 n(e.t0); 9073 case 27: 9074 case "end": 9075 return e.stop() 9076
9076 } 9077 }, e, null, [[0, 24]]) 9078 })); 9079 return function(e, t) { 9080 return n.apply(this, arguments) 9081 } 9082 }())); 9083 case 1: 9084 case "end": 9085 return e.stop() 9086 } 9087 }, e) 9088 })), 9089 function(e) { 9090 return ef.apply(this, arguments) 9091 } 9092 ) 9093 }, { 9094 key: "cancelAd", 9095 value: (Xh = Vn(Yn.mark(function e() { 9096 var r = this; 9097 return Yn.wrap(function(e) { 9098 for (; ; ) 9099 switch (e.prev = e.next) { 9100 case 0: 9101 return e.abrupt("return", new Promise(function() { 9102 var n = Vn(Yn.mark(function e(t, n) { 9103 return Yn.wrap(function(e) { 9104 for (; ; ) 9105 switch (e.prev = e.next) { 9106 case 0: 9107 try { 9108 r.adInstance.cancel(), 9109 r.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.", "success"), 9110 n() 9111 } catch (e) { 9112 r.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.", "success"), 9113 t(e.message) 9114 } 9115 case 1: 9116 case "end": 9117 return e.stop() 9118 } 9119 }, e) 9120 })); 9121 return function(e, t) { 9122 return n.apply(this, arguments) 9123 } 9124 }())); 9125 case 1: 9126 case "end": 9127 return e.stop() 9128 } 9129 }, e) 9130 })), 9131 function() { 9132 return Xh.apply(this, arguments) 9133 } 9134 ) 9135 }, { 9136 key: "showDisplayAd", 9137 value: function(i) { 9138 var n, o = this; 9139 return new Promise((n = Vn(Yn.mark(function e(t, n) { 9140 var r; 9141 return Yn.wrap(function(e) { 9142 for (; ; ) 9143 switch (e.prev = e.next) { 9144 case 0: 9145 return e.prev = 0, 9146 e.next = 3, 9147 o.sdkReady; 9148 case 3: 9149 return r = e.sent, 9150 e.next = 6, 9151 o.videoAdReady; 9152 case 6: 9153 if (r.dAds.enabled) 9154 return e.next = 9, 9155 o.adInstance.loadDisplayAd(i); 9156 e.next = 13; 9157 break; 9158 case 9: 9159 o._post_message({ 9160 topic: "adrequest.display" 9161 }), 9162 t(), 9163 e.next = 14; 9164 break; 9165 case 13: 9166 n("Display-Ads are disabled."); 9167 case 14: 9168 e.next = 19; 9169 break; 9170 case 16: 9171 e.prev = 16, 9172 e.t0 = e.catch(0), 9173 n(e.t0.message || e.t0); 9174 case 19: 9175 case "end": 9176 return e.stop() 9177 } 9178 }, e, null, [[0, 16]]) 9179 })), 9180 function(e, t) { 9181 return n.apply(this, arguments) 9182 } 9183 )) 9184 } 9185 }, { 9186 key: "onResumeGame", 9187 value: function(e, t) { 9188 this._allowExternals({ 9189 enabled: !1 9190 }); 9191 try { 9192 this.options.resumeGame() 9193 } catch (e) { 9194 ud("DEVELOPER_ERROR", e.message, "warning") 9195 } 9196 var n = "SDK_GAME_START"; 9197 this.eventBus.broadcast(n, { 9198 name: n, 9199 message: e, 9200 status: t, 9201 analytics: { 9202 category: "SDK", 9203 action: n, 9204 label: this.options.gameId + "" 9205 } 9206 }) 9207 } 9208 }, { 9209 key: "onPauseGame", 9210 value: function(e, t) { 9211 this._allowExternals({ 9212 enabled: !0 9213 }); 9214 try { 9215 this.options.pauseGame() 9216 } catch (e) { 9217 ud("DEVELOPER_ERROR", e.message, "warning") 9218 } 9219 var n = "SDK_GAME_PAUSE"; 9220 this.eventBus.broadcast(n, { 9221 name: n, 9222 message: e, 9223 status: t, 9224 analytics: { 9225 category: "SDK", 9226 action: n, 9227 label: this.options.gameId + "" 9228 } 9229 }) 9230 } 9231 }, { 9232 key: "openConsole", 9233 value: function() { 9234 try { 9235 new _d(this).start(), 9236 od("gd_debug_ex", !0) 9237 } catch (e) { 9238 console.log(e) 9239 } 9240 } 9241 }, { 9242 key: "_initBlockingExternals", 9243 value: function() { 9244 var e = this._gameData; 9245 (e.failed || e.block_exts && e.block_exts.enabled) && (this.window_open = window.open, 9246 this._allowExternals({ 9247 enabled: !1 9248 }), 9249 this._removeExternalsInHtml({ 9250 enabled: !1 9251 })) 9252 } 9253 }, { 9254 key: "_checkFullscreen", 9255 value: function() { 9256 var n = this; 9257 try { 9258 var e = this._gameData; 9259 e.sdk.fullscreen && "auto" === e.sdk.fullscreen && document.addEventListener("click", function() { 9260 var e, t; 9261 p(this, n), 9262 this._isFullScreen || ((e = (t = document.body).requestFullScreen || t.webkitRequestFullScreen || t.mozRequestFullScreen || t.msRequestFullscreen) ? e.call(t) : void 0 === window.ActiveXObject || null !== (t = new ActiveXObject("WScript.Shell")) && t.SendKeys("{F11}"), 9263 this._isFullScreen = !0) 9264 } 9265 .bind(this)) 9266 } catch (e) { 9267 console.log("Fullscreen error handled...", e) 9268 } 9269 } 9270 }, { 9271 key: "_allowExternals", 9272 value: function(e) { 9273 var t = this; 9274 void 0 !== this.window_open && (!1 === e.enabled ? window.open = function(e) { 9275 p(this, t), 9276 this.msgrt.send("external", { 9277 message: "C> ".concat(e) 9278 }), 9279 (e.startsWith("https://play.google.com") || e.startsWith("https://itunes.apple.com")) && this.window_open.call(null, e) 9280 } 9281 .bind(this) : window.open = this.window_open) 9282 } 9283 }, { 9284 key: "_removeExternalsInHtml", 9285 value: function(e) { 9286 var i = this; 9287 !1 === e.enabled && window.document.querySelectorAll("a").forEach(function(e) { 9288 var t = this; 9289 p(this, i); 9290 var n = !!(e.innerText.toLowerCase().includes("start") || e.innerText.toLowerCase().includes("play") || e.innerText.toLowerCase().includes("continue")) 9291 , r = e.getAttribute("href"); 9292 e.removeAttribute("href"), 9293 n || (e.onclick = function(e) { 9294 return p(this, t), 9295 e.preventDefault(), 9296 this.msgrt.send("external", { 9297 message: "H> ".concat(r) 9298 }), 9299 !1 9300 } 9301 .bind(this)) 9302 } 9303 .bind(this)) 9304 } 9305 }, { 9306 key: "_getBridgeContext", 9307 value: function() { 9308 var e, t, n = this._isTokenGameURL(), r = this._isMasterGameURL(), i = this._isExtHostedGameURL(), o = (o = n || i ? this._getTokenGameURLConfig() : {}) || {}, a = decodeURIComponent((n || i) && o.parentURL ? o.parentURL : function() { 9309 var e = Xu(); 9310 if (e.gd_sdk_referrer_url)
9311 return e.gd_sdk_referrer_url; 9312 var t = window.location !== window.parent.location && document.referrer && "" !== document.referrer ? document.referrer : document.location.href; 9313 return -1 !== document.referrer.indexOf("gameplayer.io") ? (t = "https://gamedistribution.com", 9314 (e = Zu("ref", document.referrer)) && "" !== e && "{portal%20name}" !== e && "{spilgames}" !== e && "{portal name}" !== e && (t = ed(e).replace(/^(?:https?:\/\/)?(?:\/\/)?/i, ""), 9315 t = "https://".concat(t))) : -1 !== document.referrer.indexOf("localhost") && (t = "https://gamedistribution.com/"), 9316 t 9317 }()), s = decodeURIComponent((n || i) && o.parentDomain ? o.parentDomain : (e = Xu(), 9318 t = (e.gd_sdk_referrer_url || (window.location !== window.parent.location && document.referrer && "" !== document.referrer ? document.referrer.split("/")[2] : document.location.host)).replace(/^(?:https?:\/\/)?(?:\/\/)?(?:www\.)?/i, "").split("/")[0], 9319 -1 !== document.referrer.indexOf("gameplayer.io") ? (t = "gamedistribution.com", 9320 (e = Zu("ref", document.referrer)) && "" !== e && "{portal%20name}" !== e && "{spilgames}" !== e && "{portal name}" !== e && (t = ed(e).replace(/^(?:https?:\/\/)?(?:\/\/)?(?:www\.)?/i, "").split("/")[0])) : -1 !== document.referrer.indexOf("localhost") && (t = "gamedistribution.com"), 9321 t)), c = decodeURIComponent((n || i) && o.topDomain ? o.topDomain : function() { 9322 var e = nd(); 9323 if (0 === e) 9324 return location.host.replace(/^www\.(.*)$/i, "$1"); 9325 if (location.ancestorOrigins && 0 < location.ancestorOrigins.length) 9326 return location.ancestorOrigins[location.ancestorOrigins.length - 1].replace(/^https?:\/\/(www\.)?(.*)$/i, "$2"); 9327 if (1 === e) { 9328 e = function(e) { 9329 if (e && "" !== e) 9330 try { 9331 return new Lu(e) 9332 } catch (e) {} 9333 }(document.referrer); 9334 if (e) 9335 return e.host.replace(/^www\.(.*)$/i, "$1") 9336 } 9337 }()), u = (n || i) && o.loaderEnabled, d = (n || i) && o.loaderEnabled, l = (n || i) && o.loaderEnabled, h = (n || i) && o.loaderEnabled, f = (n || i) && o.loaderEnabled, p = (n || i) && o.loaderEnabled, g = (n || i) && o.loaderEnabled, e = (n || i) && o.loaderEnabled, t = (n || i) && o.loaderEnabled && o.hasImpression && "1.1.24" <= o.version; 9338 return { 9339 isTokenGameURL: n, 9340 isMasterGameURL: r, 9341 isExtHostedGameURL: i, 9342 noConsoleBanner: u, 9343 noLoadedEvent: d, 9344 noBlockerEvent: l, 9345 noPreroll: e, 9346 parentURL: a, 9347 parentDomain: s, 9348 topDomain: c, 9349 noGAPageView: h, 9350 noLotamePageView: f, 9351 noGamedockSDK: p, 9352 noMinijuegosSDK: g, 9353 version: o.version, 9354 pauseGameOnStartup: t, 9355 depth: nd(), 9356 domainMatched: s === c, 9357 exports: { 9358 formatTokenURLSearch: this._formatTokenURLSearch.bind(this), 9359 extendUrlQuery: this._extendUrlQuery.bind(this), 9360 base64Encode: this._base64_encode.bind(this) 9361 } 9362 } 9363 } 9364 }, { 9365 key: "_isMasterGameURL", 9366 value: function() { 9367 var e = /http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i; 9368 return e.test(location.href) || !this._isTokenGameURL() && e.test(document.referrer) 9369 } 9370 }, { 9371 key: "_isTokenGameURL", 9372 value: function() { 9373 var e = /http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i; 9374 return e.test(location.href) || e.test(document.referrer) 9375 } 9376 }, { 9377 key: "_isExtHostedGameURL", 9378 value: function() { 9379 var e = /^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i; 9380 return e.test(location.href) || e.test(document.referrer) 9381 } 9382 }, { 9383 key: "_getTokenGameURLConfig", 9384 value: function() { 9385 try { 9386 var e, t = /http[s]?:\/\/html5\.gamedistribution\.com\/[A-Za-z0-9]{8}\/[A-Fa-f0-9]{32}\/.*/i; 9387 if (t.test(location.href)) { 9388 var n = new Lu(location.href,!0); 9389 if (!n.query.gd_zone_config) 9390 return; 9391 e = n.query.gd_zone_config 9392 } else if (t.test(document.referrer)) { 9393 var r = new Lu(document.referrer,!0); 9394 if (!r.query.gd_zone_config) 9395 return; 9396 e = r.query.gd_zone_config 9397 } else { 9398 var i = new Lu(location.href,!0); 9399 if (!i.query.gd_zone_config) 9400 return; 9401 e = i.query.gd_zone_config 9402 } 9403 return JSON.parse(ol(decodeURIComponent(e))) 9404 } catch (e) {} 9405 } 9406 }, { 9407 key: "_getSplashTemplate", 9408 value: function(e) { 9409 return new Mh(e.splash).splash() 9410 } 9411 }, { 9412 key: "_instancePromo", 9413 value: function(e) { 9414 e = null !== (e = e.promo) && void 0 !== e && e.puzzle ? "Puzzle" : "Hammer"; 9415 return new Bh(e).promo() 9416 } 9417 }, { 9418 key: "_formatTokenURLSearch", 9419 value: function(e) { 9420 var t = ""; 9421 try { 9422 t = encodeURIComponent(il(JSON.stringify(e))) 9423 } catch (e) {} 9424 try { 9425 var n = new Lu(location.href,!0); 9426 return n.query = n.query || {}, 9427 n.query.gd_zone_config = t, 9428 "?".concat(vu.stringify(n.query)) 9429 } catch (e) { 9430 return "?gd_zone_config=".concat(t) 9431 } 9432 } 9433 }, { 9434 key: "_extendUrlQuery", 9435 value: function(e, t) { 9436 e = new Lu(e,!0); 9437 return e.query = Zh(Zh({}, e.query), t), 9438 e.toString() 9439 } 9440 }, { 9441 key: "_base64_encode", 9442 value: function(e) { 9443 return il(JSON.stringify(e)) 9444 } 9445 }, { 9446 key: "_parseAndSelectRandomOne", 9447 value: function(e) { 9448 e = this._selectRandomOne("object" === t(e) ? e : function(e) { 9449 if (e) 9450 try { 9451 return JSON.parse(e) 9452 } catch (e) {} 9453 }(e)); 9454 return !e || !e.version || Jc >= e.version ? e : void 0 9455 } 9456 }, { 9457 key: "_selectRandomOne", 9458 value: function(e) { 9459 var t = this; 9460 if (!zu(e) || 0 === e.length) 9461 return e; 9462 if (1 === e.length) 9463 return e[0]; 9464 var n = 0; 9465 e.forEach(function(e) { 9466 p(this, t),
9467 e.weight = e.weight || 1, 9468 n += e.weight 9469 } 9470 .bind(this)); 9471 for (var r = Math.floor(Math.random() * Math.floor(n)), n = 0, i = 0; i < e.length; i++) { 9472 var o = e[i]; 9473 if (r < (n += o.weight)) 9474 return o 9475 } 9476 } 9477 }, { 9478 key: "session", 9479 value: function() { 9480 var n, i = this; 9481 return new Promise((n = Vn(Yn.mark(function e(t, n) { 9482 var r; 9483 return Yn.wrap(function(e) { 9484 for (; ; ) 9485 switch (e.prev = e.next) { 9486 case 0: 9487 return e.prev = 0, 9488 e.next = 3, 9489 i.sdkReady; 9490 case 3: 9491 e.next = 7; 9492 break; 9493 case 5: 9494 e.prev = 5, 9495 e.t0 = e.catch(0); 9496 case 7: 9497 r = i._gameData, 9498 t({ 9499 ads: { 9500 display: { 9501 enabled: r.dAds.enabled 9502 }, 9503 rewarded: { 9504 enabled: r.rewardedAds 9505 } 9506 }, 9507 location: { 9508 parentDomain: i._bridge.parentDomain, 9509 topDomain: i._bridge.topDomain, 9510 parentURL: i._bridge.parentURL, 9511 depth: i._bridge.depth, 9512 loadedByGameZone: i._bridge.isTokenGameURL 9513 } 9514 }); 9515 case 9: 9516 case "end": 9517 return e.stop() 9518 } 9519 }, e, null, [[0, 5]]) 9520 })), 9521 function(e, t) { 9522 return n.apply(this, arguments) 9523 } 9524 )) 9525 } 9526 }, { 9527 key: "_showPromoDisplayAd", 9528 value: function() { 9529 var e = this; 9530 return new Promise(function(o, a) { 9531 var s = this; 9532 p(this, e); 9533 var c = this._gameData; 9534 this._instancePromo(c).then(function(e) { 9535 var t = this; 9536 p(this, s); 9537 var n = new e(Zh(Zh({}, this.options), {}, { 9538 version: Jc 9539 }),c) 9540 , r = "promo-display"; 9541 this.eventBus.unsubscribeScope(r); 9542 var i = function() { 9543 p(this, t), 9544 this.eventBus.unsubscribeScope(r), 9545 n.show() 9546 } 9547 .bind(this) 9548 , e = function() { 9549 p(this, t), 9550 this.eventBus.unsubscribeScope(r), 9551 n.hide(), 9552 a("No promo display ad") 9553 } 9554 .bind(this); 9555 this.eventBus.subscribe("DISPLAYAD_IMPRESSION", i, r), 9556 this.eventBus.subscribe("DISPLAYAD_
9556ERROR", e, r), 9557 this.showDisplayAd({ 9558 containerId: n.getSlotContainerId(), 9559 slotId: n.getSlotId(), 9560 visible: !0 9561 }).catch(function(e) { 9562 p(this, t), 9563 n.hide(), 9564 a(e) 9565 } 9566 .bind(this)), 9567 n.on("skipClick", function() { 9568 p(this, t), 9569 n.hide(), 9570 o() 9571 } 9572 .bind(this)), 9573 n.on("adCompleted", function() { 9574 p(this, t), 9575 n.hide(), 9576 o() 9577 } 9578 .bind(this)) 9579 } 9580 .bind(this)) 9581 } 9582 .bind(this)) 9583 } 9584 }, { 9585 key: "_getisMobile", 9586 value: function() { 9587 var e = !1 9588 , t = navigator.userAgent || navigator.vendor || window.opera; 9589 return e = !1 === (e = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0, 4)) ? !0 : e) && -1 < window.orientation ? !0 : e 9590 } 9591 }, { 9592 key: "_get_game_thumbnail_url", 9593 value: function() { 9594 var t = this 9595 , e = this._gameData 9596 , n = (n = e.assets.find(function(e) { 9597 return p(this, t), 9598 e.hasOwnProperty("name") && 512 === e.width && 512 === e.height 9599 } 9600 .bind(this))) || (0 < e.assets.length ? e.assets[0] : { 9601 name: "logo.svg" 9602 }); 9603 return "https://img.gamedistribution.com/".concat(n.name) 9604 } 9605 }, { 9606 key: "_post_message", 9607 value: function(e) { 9608 var t = e.topic 9609 , n = e.data 9610 , r = null !== (r = location.ancestorOrigins) && void 0 !== r && r.length ? location.ancestorOrigins[location.ancestorOrigins.length - 1] : "*"; 9611 try { 9612 var i = window.top || window.parent; 9613 i && i.postMessage({ 9614 source: "gdsdk", 9615 topic: t, 9616 data: n 9617 }, r) 9618 } catch (e) { 9619 console.error((null == e ? void 0 : e.message) || e) 9620 } 9621 } 9622 }]), 9623 hf), df = new function e() { 9624 var t, n, r = this; 9625 Kn(this, e), 9626 qn(this, "load", Vn(Yn.mark(function e() { 9627 return Yn.wrap(function(e) { 9628 for (; ; ) 9629 switch (e.prev = e.next) { 9630 case 0: 9631 return e.next = 2, 9632 qh("Leaderboard"); 9633 case 2: 9634 r.leaderboard = e.sent; 9635 case 3: 9636 case "end": 9637 return e.stop() 9638 } 9639 }, e) 9640 }))), 9641 qn(this, "showLeaderboard", (n = Vn(Yn.mark(function e(t) { 9642 var n; 9643 return Yn.wrap(function(e) { 9644 for (; ; ) 9645 switch (e.prev = e.next) { 9646 case 0: 9647 if (n = window.GD_OPTIONS.gameId, 9648 r.leaderboard) { 9649 e.next = 4; 9650 break 9651 } 9652 return e.next = 4, 9653 r.load(); 9654 case 4: 9655 r.leaderboard.showLeaderBoard(n, t); 9656 case 5: 9657 case "end": 9658 return e.stop() 9659 } 9660 }, e) 9661 })), 9662 function(e) { 9663 return n.apply(this, arguments) 9664 } 9665 )), 9666 qn(this, "addScore", (t = Vn(Yn.mark(function e(t) { 9667 return Yn.wrap(function(e) { 9668 for (; ; ) 9669 switch (e.prev = e.next) { 9670 case 0: 9671 if (r.leaderboard) { 9672 e.next = 3; 9673 break 9674 } 9675 return e.next = 3, 9676 r.load(); 9677 case 3: 9678 r.leaderboard.addScore(t); 9679 case 4: 9680 case "end": 9681 return e.stop() 9682 } 9683 }, e) 9684 })), 9685 function(e) { 9686 return t.apply(this, arguments) 9687 } 9688 )), 9689 this.moduleName = "Leaderboard", 9690 this.moduleConfig = { 9691 source: "https://pm.gamedistribution.com/@bygd/gd-sdk-leaderboard/0.1.43/dist/default/iife/index.js", 9692 dependencies: ["react", "react-dom", "redux", "react-redux", "material-ui-core"] 9693 }, 9694 Lh(this.moduleName, this.moduleConfig) 9695 } 9696 , lf = new ce(function() { 9697 var e = {}; 9698 try { 9699 "object" === ("undefined" == typeof GD_OPTIONS ? "undefined" : t(GD_OPTIONS)) && GD_OPTIONS ? e = GD_OPTIONS : window.gdApi && "object" === t(window.gdApi.q[0][0]) && window.gdApi.q[0][0] && ((e = window.gdApi.q[0][0]).hasOwnProperty("advertisementSettings") || (e.advertisementSettings = { 9700 autoplay: !0 9701 })) 9702 } catch (e) { 9703 console.log("_get_developer_sets failed", e) 9704 } 9705 return e 9706 }()); 9707 function hf(e) { 9708 var n = this; 9709 if (Kn(this, hf), 9710 uf) 9711 return uf; 9712 (uf = this)._defaults = this._getDefaultOptions(), 9713 this._extendDefaultOptions(this._defaults, e), 9714 this._version = e.version || "0.0.0", 9715 this._bridge = this._getBridgeContext(), 9716 this._parentURL = this._bridge.parentURL, 9717 this._parentDomain = this._bridge.parentDomain,
9718 this._topDomain = this._bridge.topDomain, 9719 this._isFullScreen = !1, 9720 this._setConsoleBanner(), 9721 this._initializeMessageRouter(), 9722 this._checkConsole(), 9723 this._subscribeToEvents(), 9724 this.sdkReady = new Promise(this._initializeSDKWithGameData.bind(this)), 9725 this.sdkReady.then(function(e) { 9726 p(this, n), 9727 this._sdk_ready = !0 9728 } 9729 .bind(this)).catch(function(e) { 9730 p(this, n), 9731 this._sdk_ready = !1 9732 } 9733 .bind(this)).finally(function() { 9734 var t = this; 9735 p(this, n), 9736 this._sendLoaderDataEvent(), 9737 this._checkSplashAndPromoScreens(), 9738 this._initBlockingExternals(), 9739 window.addEventListener("DOMNodeInserted", function() { 9740 var e; 9741 p(this, t), 9742 this._gameData.block_exts && this._removeExternalsInHtml({ 9743 enabled: !1 9744 }), 9745 document.getElementsByClassName("webgl-content")[0] && (e = document.getElementsByClassName("webgl-content")[0].getElementsByClassName("footer")[0]) && e.setAttribute("style", "display:none") 9746 } 9747 .bind(this)), 9748 this._checkFullscreen() 9749 } 9750 .bind(this)) 9751 } 9752 function ff() { 9753 var t = this; 9754 this.AdType = Qu, 9755 this.preloadAd = function(e) { 9756 return lf.preloadAd(e) 9757 } 9758 , 9759 this.showAd = function(e, t) { 9760 return e === Qu.Display ? lf.showDisplayAd(t) : lf.showAd(e) 9761 } 9762 , 9763 this.cancelAd = function() { 9764 return lf.cancelAd() 9765 } 9766 , 9767 this.openConsole = function() { 9768 lf.openConsole() 9769 } 9770 ,
9771 this.getSession = function() { 9772 return lf.session() 9773 } 9774 , 9775 this.leaderboard = { 9776 show: function() { 9777 p(this, t), 9778 df.showLeaderboard() 9779 } 9780 .bind(this), 9781 addScore: function(e) { 9782 p(this, t), 9783 df.addScore(e) 9784 } 9785 .bind(this) 9786 } 9787 } 9788 ff.prototype = new function() { 9789 this.showBanner = function() { 9790 lf.showBanner() 9791 } 9792 , 9793 this.play = function() {} 9794 , 9795 this.customLog = function() {} 9796 } 9797 , 9798 window.gdsdk = new ff, 9799 window.gdApi = window.gdsdk 9800 }() 9801 } 9802 .call(this) 9803 } 9804 .call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}, e("buffer").Buffer) 9805 } 9806 , { 9807 buffer: 3 9808 }], 9809 2: [function(e, t, n) { 9810 "use strict"; 9811 n.byteLength = function e(t) { 9812 var n = l(t) 9813 , t = n[0] 9814 , n = n[1]; 9815 return 3 * (t + n) / 4 - n 9816 } 9817 , 9818 n.toByteArray = function e(t) { 9819 var n, r, i = l(t), o = i[0], i = i[1], a = new d(function e(t, n, r) { 9820 return 3 * (n + r) / 4 - r 9821 }(0, o, i)), s = 0, c = 0 < i ? o - 4 : o; 9822 for (r = 0; r < c; r += 4) 9823 n = u[t.charCodeAt(r)] << 18 | u[t.charCodeAt(r + 1)] << 12 | u[t.charCodeAt(r + 2)] << 6 | u[t.charCodeAt(r + 3)], 9824 a[s++] = n >> 16 & 255, 9825 a[s++] = n >> 8 & 255, 9826 a[s++] = 255 & n; 9827 2 === i && (n = u[t.charCodeAt(r)] << 2 | u[t.charCodeAt(r + 1)] >> 4, 9828 a[s++] = 255 & n); 9829 1 === i && (n = u[t.charCodeAt(r)] << 10 | u[t.charCodeAt(r + 1)] << 4 | u[t.charCodeAt(r + 2)] >> 2, 9830 a[s++] = n >> 8 & 255, 9831 a[s++] = 255 & n); 9832 return a 9833 } 9834 , 9835 n.fromByteArray = function e(t) { 9836 for (var n, r = t.length, i = r % 3, o = [], a = 0, s = r - i; a < s; a += 16383) 9837 o.push(function e(t, n, r) { 9838 for (var i, o = [], a = n; a < r; a += 3) 9839 i = (t[a] << 16 & 16711680) + (t[a + 1] << 8 & 65280) + (255 & t[a + 2]), 9840 o.push(function e(t) { 9841 return c[t >> 18 & 63] + c[t >> 12 & 63] + c[t >> 6 & 63] + c[63 & t] 9842 }(i)); 9843 return o.join("") 9844 }(t, a, s < a + 16383 ? s : a + 16383)); 9845 1 == i ? (n = t[r - 1], 9846 o.push(c[n >> 2] + c[n << 4 & 63] + "==")) : 2 == i && (n = (t[r - 2] << 8) + t[r - 1], 9847 o.push(c[n >> 10] + c[n >> 4 & 63] + c[n << 2 & 63] + "=")); 9848 return o.join("") 9849 } 9850 ; 9851 for (var c = [], u = [], d = "undefined" != typeof Uint8Array ? Uint8Array : Array, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", i = 0, o = r.length; i < o; ++i) 9852 c[i] = r[i], 9853 u[r.charCodeAt(i)] = i; 9854 function l(e) { 9855 var t = e.length; 9856 if (0 < t % 4) 9857 throw new Error("Invalid string. Length must be a multiple of 4"); 9858 e = e.indexOf("="); 9859 return [e = -1 === e ? t : e, e === t ? 0 : 4 - e % 4] 9860 } 9861 u["-".charCodeAt(0)] = 62, 9862 u["_".charCodeAt(0)] = 63 9863 } 9864 , {}], 9865 3: [function(C, e, I) { 9866 !function(e) { 9867 !function() { 9868 "use strict"; 9869 var i = C("base64-js") 9870 , o = C("ieee754"); 9871 I.Buffer = h, 9872 I.SlowBuffer = function e(t) { 9873 +t != t && (t = 0); 9874 return h.alloc(+t) 9875 } 9876 , 9877 I.INSPECT_MAX_BYTES = 50; 9878 var t = 2147483647; 9879 function a(e) { 9880 if (t < e) 9881 throw new RangeError('The value "' + e + '" is invali
vendor: 20,936 bytes, lines 9881-10315
9881d for option "size"'); 9882 e = new Uint8Array(e); 9883 return e.__proto__ = h.prototype, 9884 e 9885 } 9886 function h(e, t, n) { 9887 if ("number" != typeof e) 9888 return r(e, t, n); 9889 if ("string" == typeof t) 9890 throw new TypeError('The "string" argument must be of type string. Received type number'); 9891 return c(e) 9892 } 9893 function r(e, t, n) { 9894 if ("string" == typeof e) 9895 return function e(t, n) { 9896 "string" == typeof n && "" !== n || (n = "utf8"); 9897 if (!h.isEncoding(n)) 9898 throw new TypeError("Unknown encoding: " + n); 9899 var r = 0 | l(t, n) 9900 , i = a(r) 9901 , n = i.write(t, n); 9902 n !== r && (i = i.slice(0, n)); 9903 return i 9904 }(e, t); 9905 if (ArrayBuffer.isView(e)) 9906 return u(e); 9907 if (null == e) 9908 throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e); 9909 if (R(e, ArrayBuffer) || e && R(e.buffer, ArrayBuffer)) 9910 return function e(t, n, r) { 9911 if (n < 0 || t.byteLength < n) 9912 throw new RangeError('"offset" is outside of buffer bounds'); 9913 if (t.byteLength < n + (r || 0)) 9914 throw new RangeError('"length" is outside of buffer bounds'); 9915 r = void 0 === n && void 0 === r ? new Uint8Array(t) : void 0 === r ? new Uint8Array(t,n) : new Uint8Array(t,n,r); 9916 return r.__proto__ = h.prototype, 9917 r 9918 }(e, t, n); 9919 if ("number" == typeof e) 9920 throw new TypeError('The "value" argument must not be of type number. Received type number'); 9921 var r = e.valueOf && e.valueOf(); 9922 if (null != r && r !== e) 9923 return h.from(r, t, n); 9924 r = function e(t) { 9925 if (h.isBuffer(t)) { 9926 var n = 0 | d(t.length) 9927 , r = a(n); 9928 return 0 === r.length ? r : (t.copy(r, 0, 0, n), 9929 r) 9930 } 9931 if (void 0 !== t.length) 9932 return "number" != typeof t.length || O(t.length) ? a(0) : u(t); 9933 if ("Buffer" === t.type && Array.isArray(t.data)) 9934 return u(t.data) 9935 }(e); 9936 if (r) 9937 return r; 9938 if ("undefined" != typeof Symbol && null != Symbol.toPrimitive && "function" == typeof e[Symbol.toPrimitive]) 9939 return h.from(e[Symbol.toPrimitive]("string"), t, n); 9940 throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e) 9941 } 9942 function s(e) { 9943 if ("number" != typeof e) 9944 throw new TypeError('"size" argument must be of type number'); 9945 if (e < 0) 9946 throw new RangeError('The value "' + e + '" is invalid for option "size"') 9947 } 9948 function c(e) { 9949 return s(e), 9950 a(e < 0 ? 0 : 0 | d(e)) 9951 } 9952 function u(e) { 9953 for (var t = e.length < 0 ? 0 : 0 | d(e.length), n = a(t), r = 0; r < t; r += 1) 9954 n[r] = 255 & e[r]; 9955 return n 9956 } 9957 function d(e) { 9958 if (t <= e) 9959 throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + t.toString(16) + " bytes"); 9960 return 0 | e 9961 } 9962 function l(e, t) { 9963 if (h.isBuffer(e)) 9964 return e.length; 9965 if (ArrayBuffer.isView(e) || R(e, ArrayBuffer)) 9966 return e.byteLength; 9967 if ("string" != typeof e) 9968 throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof e); 9969 var n = e.length 9970 , r = 2 < arguments.length && !0 === arguments[2]; 9971 if (!r && 0 === n) 9972 return 0; 9973 for (var i = !1; ; ) 9974 switch (t) { 9975 case "ascii": 9976 case "latin1": 9977 case "binary": 9978 return n; 9979 case "utf8": 9980 case "utf-8": 9981 return S(e).length; 9982 case "ucs2": 9983 case "ucs-2": 9984 case "utf16le": 9985 case "utf-16le": 9986 return 2 * n; 9987 case "hex": 9988 return n >>> 1; 9989 case "base64": 9990 return D(e).length; 9991 default: 9992 if (i) 9993 return r ? -1 : S(e).length; 9994 t = ("" + t).toLowerCase(), 9995 i = !0 9996 } 9997 } 9998 function n(e, t, n) { 9999 var r = !1; 10000 if ((t = void 0 === t || t < 0 ? 0 : t) > this.length) 10001 return ""; 10002 if ((n = void 0 === n || n > this.length ? this.length : n) <= 0) 10003 return ""; 10004 if ((n >>>= 0) <= (t >>>= 0)) 10005 return ""; 10006 for (e = e || "utf8"; ; ) 10007 switch (e) { 10008 case "hex": 10009 return function e(t, n, r) { 10010 var i = t.length; 10011 (!n || n < 0) && (n = 0); 10012 (!r || r < 0 || i < r) && (r = i); 10013 for (var o = "", a = n; a < r; ++a) 10014 o += function e(t) { 10015 return t < 16 ? "0" + t.toString(16) : t.toString(16) 10016 }(t[a]); 10017 return o 10018 }(this, t, n); 10019 case "utf8": 10020 case "utf-8": 10021 return y(this, t, n); 10022 case "ascii": 10023 return function e(t, n, r) { 10024 var i = ""; 10025 r = Math.min(t.length, r); 10026 for (var o = n; o < r; ++o) 10027 i += String.fromCharCode(127 & t[o]); 10028 return i 10029 }(this, t, n); 10030 case "latin1": 10031 case "binary": 10032 return function e(t, n, r) { 10033 var i = ""; 10034 r = Math.min(t.length, r); 10035 for (var o = n; o < r; ++o) 10036 i += String.fromCharCode(t[o]); 10037 return i 10038 }(this, t, n); 10039 case "base64": 10040 return function e(t, n, r) { 10041 return 0 === n && r === t.length ? i.fromByteArray(t) : i.fromByteArray(t.slice(n, r)) 10042 }(this, t, n); 10043 case "ucs2": 10044 case "ucs-2": 10045 case "utf16le": 10046 case "utf-16le": 10047 return function e(t, n, r) { 10048 for (var i = t.slice(n, r), o = "", a = 0; a < i.length; a += 2) 10049 o += String.fromCharCode(i[a] + 256 * i[a + 1]); 10050 return o 10051 }(this, t, n); 10052 default: 10053 if (r) 10054 throw new TypeError("Unknown encoding: " + e); 10055 e = (e + "").toLowerCase(), 10056 r = !0 10057 } 10058 } 10059 function f(e, t, n) { 10060 var r = e[t]; 10061 e[t] = e[n], 10062 e[n] = r 10063 } 10064 function p(e, t, n, r, i) { 10065 if (0 === e.length) 10066 return -1; 10067 if ("string" == typeof n ? (r = n, 10068 n = 0) : 2147483647 < n ? n = 2147483647 : n < -2147483648 && (n = -2147483648), 10069 (n = (n = O(n = +n) ? i ? 0 : e.length - 1 : n) < 0 ? e.length + n : n) >= e.length) { 10070 if (i) 10071 return -1; 10072 n = e.length - 1 10073 } else if (n < 0) { 10074 if (!i) 10075 return -1; 10076 n = 0 10077 } 10078 if ("string" == typeof t && (t = h.from(t, r)), 10079 h.isBuffer(t)) 10080 return 0 === t.length ? -1 : g(e, t, n, r, i); 10081 if ("number" == typeof t) 10082 return t &= 255, 10083 "function" == typeof Uint8Array.prototype.indexOf ? (i ? Uint8Array.prototype.indexOf : Uint8Array.prototype.lastIndexOf).call(e, t, n) : g(e, [t], n, r, i); 10084 throw new TypeError("val must be string, number or Buffer") 10085 } 10086 function g(e, t, n, r, i) { 10087 var o = 1 10088 , a = e.length 10089 , s = t.length; 10090 if (void 0 !== r && ("ucs2" === (r = String(r).toLowerCase()) || "ucs-2" === r || "utf16le" === r || "utf-16le" === r)) { 10091 if (e.length < 2 || t.length < 2) 10092 return -1; 10093 a /= o = 2, 10094 s /= 2, 10095 n /= 2 10096 } 10097 function c(e, t) { 10098 return 1 === o ? e[t] : e.readUInt16BE(t * o) 10099 } 10100 if (i) 10101 for (var u = -1, d = n; d < a; d++) 10102 if (c(e, d) === c(t, -1 === u ? 0 : d - u)) { 10103 if (d - (u = -1 === u ? d : u) + 1 === s) 10104 return u * o 10105 } else 10106 -1 !== u && (d -= d - u), 10107 u = -1; 10108 else 10109 for (d = n = a < n + s ? a - s : n; 0 <= d; d--) { 10110 for (var l = !0, h = 0; h < s; h++) 10111 if (c(e, d + h) !== c(t, h)) { 10112 l = !1; 10113 break 10114 } 10115 if (l) 10116 return d 10117 } 10118 return -1 10119 } 10120 function m(e, t, n, r) { 10121 return T(function e(t) { 10122 for (var n = [], r = 0; r < t.length; ++r) 10123 n.push(255 & t.charCodeAt(r)); 10124 return n 10125 }(t), e, n, r) 10126 } 10127 function v(e, t, n, r) { 10128 return T(function e(t, n) { 10129 for (var r, i, o = [], a = 0; a < t.length && !((n -= 2) < 0); ++a) 10130 i = t.charCodeAt(a), 10131 r = i >> 8, 10132 i = i % 256, 10133 o.push(i), 10134 o.push(r); 10135 return o 10136 }(t, e.length - n), e, n, r) 10137 } 10138 function y(e, t, n) { 10139 n = Math.min(e.length, n); 10140 for (var r = [], i = t; i < n; ) { 10141 var o, a, s, c, u = e[i], d = null, l = 239 < u ? 4 : 223 < u ? 3 : 191 < u ? 2 : 1; 10142 if (i + l <= n) 10143 switch (l) { 10144 case 1: 10145 u < 128 && (d = u); 10146 break; 10147 case 2: 10148 128 == (192 & (o = e[i + 1])) && 127 < (c = (31 & u) << 6 | 63 & o) && (d = c); 10149 break; 10150 case 3: 10151 o = e[i + 1], 10152 a = e[i + 2], 10153 128 == (192 & o) && 128 == (192 & a) && 2047 < (c = (15 & u) << 12 | (63 & o) << 6 | 63 & a) && (c < 55296 || 57343 < c) && (d = c); 10154 break; 10155 case 4: 10156 o = e[i + 1], 10157 a = e[i + 2], 10158 s = e[i + 3], 10159 128 == (192 & o) && 128 == (192 & a) && 128 == (192 & s) && 65535 < (c = (15 & u) << 18 | (63 & o) << 12 | (63 & a) << 6 | 63 & s) && c < 1114112 && (d = c) 10160 } 10161 null === d ? (d = 65533, 10162 l = 1) : 65535 < d && (d -= 65536, 10163 r.push(d >>> 10 & 1023 | 55296), 10164 d = 56320 | 1023 & d), 10165 r.push(d), 10166 i += l 10167 } 10168 return function e(t) { 10169 var n = t.length; 10170 if (n <= b) 10171 return String.fromCharCode.apply(String, t); 10172 var r = "" 10173 , i = 0; 10174 for (; i < n; ) 10175 r += String.fromCharCode.apply(String, t.slice(i, i += b)); 10176 return r 10177 }(r) 10178 } 10179 I.kMaxLength = t, 10180 (h.TYPED_ARRAY_SUPPORT = function e() { 10181 try { 10182 var t = new Uint8Array(1); 10183 return t.__proto__ = { 10184 __proto__: Uint8Array.prototype, 10185 foo: function() { 10186 return 42 10187 } 10188 }, 10189 42 === t.foo() 10190 } catch (e) { 10191 return !1 10192 } 10193 }()) || "undefined" == typeof console || "function" != typeof console.error || console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."), 10194 Object.defineProperty(h.prototype, "parent", { 10195 enumerable: !0, 10196 get: function() { 10197 if (h.isBuffer(this)) 10198 return this.buffer 10199 } 10200 }), 10201 Object.defineProperty(h.prototype, "offset", { 10202 enumerable: !0, 10203 get: function() { 10204 if (h.isBuffer(this)) 10205 return this.byteOffset 10206 } 10207 }), 10208 "undefined" != typeof Symbol && null != Symbol.species && h[Symbol.species] === h && Object.defineProperty(h, Symbol.species, { 10209 value: null, 10210 configurable: !0, 10211 enumerable: !1, 10212 writable: !1 10213 }), 10214 h.poolSize = 8192, 10215 h.from = r, 10216 h.prototype.__proto__ = Uint8Array.prototype, 10217 h.__proto__ = Uint8Array, 10218 h.alloc = function e(t, n, r) { 10219 return s(t), 10220 !(t <= 0) && void 0 !== n ? "string" == typeof r ? a(t).fill(n, r) : a(t).fill(n) : a(t) 10221 } 10222 , 10223 h.allocUnsafe = c, 10224 h.allocUnsafeSlow = c, 10225 h.isBuffer = function e(t) { 10226 return null != t && !0 === t._isBuffer && t !== h.prototype 10227 } 10228 , 10229 h.compare = function e(t, n) { 10230 if (R(t, Uint8Array) && (t = h.from(t, t.offset, t.byteLength)), 10231 R(n, Uint8Array) && (n = h.from(n, n.offset, n.byteLength)), 10232 !h.isBuffer(t) || !h.isBuffer(n)) 10233 throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'); 10234 if (t === n) 10235 return 0; 10236 for (var r = t.length, i = n.length, o = 0, a = Math.min(r, i); o < a; ++o) 10237 if (t[o] !== n[o]) { 10238 r = t[o], 10239 i = n[o]; 10240 break 10241 } 10242 return r < i ? -1 : i < r ? 1 : 0 10243 } 10244 , 10245 h.isEncoding = function e(t) { 10246 switch (String(t).toLowerCase()) { 10247 case "hex": 10248 case "utf8": 10249 case "utf-8": 10250 case "ascii": 10251 case "latin1": 10252 case "binary": 10253 case "base64": 10254 case "ucs2": 10255 case "ucs-2": 10256 case "utf16le": 10257 case "utf-16le": 10258 return !0; 10259 default: 10260 return !1 10261 } 10262 } 10263 , 10264 h.concat = function e(t, n) { 10265 if (!Array.isArray(t)) 10266 throw new TypeError('"list" argument must be an Array of Buffers'); 10267 if (0 === t.length) 10268 return h.alloc(0); 10269 if (void 0 === n) 10270 for (o = n = 0; o < t.length; ++o) 10271 n += t[o].length; 10272 for (var r = h.allocUnsafe(n), i = 0, o = 0; o < t.length; ++o) { 10273 var a = t[o]; 10274 if (R(a, Uint8Array) && (a = h.from(a)), 10275 !h.isBuffer(a)) 10276 throw new TypeError('"list" argument must be an Array of Buffers'); 10277 a.copy(r, i), 10278 i += a.length 10279 } 10280 return r 10281 } 10282 , 10283 h.byteLength = l, 10284 h.prototype._isBuffer = !0, 10285 h.prototype.swap16 = function e() { 10286 var t = this.length; 10287 if (t % 2 != 0) 10288 throw new RangeError("Buffer size must be a multiple of 16-bits"); 10289 for (var n = 0; n < t; n += 2) 10290 f(this, n, n + 1); 10291 return this 10292 } 10293 , 10294 h.prototype.swap32 = function e() { 10295 var t = this.length; 10296 if (t % 4 != 0) 10297 throw new RangeError("Buffer size must be a multiple of 32-bits"); 10298 for (var n = 0; n < t; n += 4) 10299 f(this, n, n + 3), 10300 f(this, n + 1, n + 2); 10301 return this 10302 } 10303 , 10304 h.prototype.swap64 = function e() { 10305 var t = this.length; 10306 if (t % 8 != 0) 10307 throw new RangeError("Buffer size must be a multiple of 64-bits"); 10308 for (var n = 0; n < t; n += 8) 10309 f(this, n, n + 7), 10310 f(this, n + 1, n + 6), 10311 f(this, n + 2, n + 5), 10312 f(this, n + 3, n + 4); 10313 return this 10314 } 10315 ,
10316 h.prototype.toLocaleString = h.prototype.toString = function e() { 10317 var t = this.length; 10318 return 0 === t ? "" : 0 === arguments.length ? y(this, 0, t) : n.apply(this, arguments) 10319 } 10320 , 10321 h.prototype.equals = function e(t) { 10322 if (!h.isBuffer(t)) 10323 throw new TypeError("Argument must be a Buffer"); 10324 return this === t || 0 === h.compare(this, t) 10325 } 10326 , 10327 h.prototype.inspect = function e() { 10328 var t = "" 10329 , n = I.INSPECT_MAX_BYTES 10330 , t = this.toString("hex", 0, n).replace(/(.{2})/g, "$1 ").trim(); 10331 return this.length > n && (t += " ... "), 10332 "<Buffer " + t + ">" 10333 } 10334 , 10335 h.prototype.compare = function e(t, n, r, i, o) { 10336 if (R(t, Uint8Array) && (t = h.from(t, t.offset, t.byteLength)), 10337 !h.isBuffer(t)) 10338 throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof t); 10339 if (void 0 === r && (r = t ? t.length : 0), 10340 void 0 === i && (i = 0), 10341 void 0 === o && (o = this.length), 10342 (n = void 0 === n ? 0 : n) < 0 || r > t.length || i < 0 || o > this.length) 10343 throw new RangeError("out of range index"); 10344 if (o <= i && r <= n) 10345 return 0; 10346 if (o <= i) 10347 return -1; 10348 if (r <= n) 10349 return 1; 10350 if (this === t) 10351 return 0; 10352 for (var a = (o >>>= 0) - (i >>>= 0), s = (r >>>= 0) - (n >>>= 0), c = Math.min(a, s), u = this.slice(i, o), d = t.slice(n, r), l = 0; l < c; ++l) 10353 if (u[l] !== d[l]) { 10354 a = u[l], 10355 s = d[l]; 10356 break 10357 } 10358 return a < s ? -1 : s < a ? 1 : 0 10359 } 10360 , 10361 h.prototype.includes = function e(t, n, r) { 10362 return -1 !== this.indexOf(t, n, r) 10363 } 10364 , 10365 h.prototype.indexOf = function e(t, n, r) { 10366 return p(this, t, n, r, !0) 10367 } 10368 , 10369 h.prototype.lastIndexOf = function e(t, n, r) { 10370 return p(this, t, n, r, !1) 10371 } 10372 , 10373 h.prototype.write = function e(t, n, r, i) { 10374 if (void 0 === n) 10375 i = "utf8", 10376 r = this.length, 10377 n = 0; 10378 else if (void 0 === r && "string" == typeof n) 10379 i = n, 10380 r = this.length, 10381 n = 0; 10382 else { 10383 if (!isFinite(n)) 10384 throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); 10385 n >>>= 0, 10386 isFinite(r) ? (r >>>= 0, 10387 void 0 === i && (i = "utf8")) : (i = r, 10388 r = void 0) 10389 } 10390 var o = this.length - n; 10391 if ((void 0 === r || o < r) && (r = o), 10392 0 < t.length && (r < 0 || n < 0) || n > this.length) 10393 throw new RangeError("Attempt to write outside buffer bounds"); 10394 i = i || "utf8"; 10395 for (var a = !1; ; ) 10396 switch (i) { 10397 case "hex": 10398 return function e(t, n, r, i) { 10399 r = Number(r) || 0; 10400 var o = t.length - r; 10401 (!i || o < (i = Number(i))) && (i = o), 10402 (o = n.length) / 2 < i && (i = o / 2); 10403 for (var a = 0; a < i; ++a) { 10404 var s = parseInt(n.substr(2 * a, 2), 16); 10405 if (O(s)) 10406 return a; 10407 t[r + a] = s 10408 } 10409 return a 10410 }(this, t, n, r); 10411 case "utf8": 10412 case "utf-8": 10413 return function e(t, n, r, i) { 10414 return T(S(n, t.length - r), t, r, i) 10415 }(this, t, n, r); 10416 case "ascii": 10417 return m(this, t, n, r); 10418 case "latin1": 10419 case "binary": 10420 return m(this, t, n, r); 10421 case "base64": 10422 return function e(t, n, r, i) { 10423 return T(D(n), t, r, i) 10424 }(this, t, n, r); 10425 case "ucs2": 10426 case "ucs-2": 10427 case "utf16le": 10428 case "utf-16le": 10429 return v(this, t, n, r); 10430 default: 10431 if (a) 10432 throw new TypeError("Unknown encoding: " + i); 10433 i = ("" + i).toLowerCase(), 10434 a = !0 10435 } 10436 } 10437 , 10438 h.prototype.toJSON = function e() { 10439 return { 10440 type: "Buffer", 10441 data: Array.prototype.slice.call(this._arr || this, 0) 10442 } 10443 } 10444 ; 10445 var b = 4096; 10446 function _(e, t, n) { 10447 if (e % 1 != 0 || e < 0) 10448 throw new RangeError("offset is not uint"); 10449 if (n < e + t) 10450 throw new RangeError("Trying to access beyond buffer length") 10451 } 10452 function w(e, t, n, r, i, o) { 10453 if (!h.isBuffer(e)) 10454 throw new TypeError('"buffer" argument must be a Buffer instance');
vendor: 21,664 bytes, lines 10455-10980
10455 if (i < t || t < o) 10456 throw new RangeError('"value" argument is out of bounds'); 10457 if (n + r > e.length) 10458 throw new RangeError("Index out of range") 10459 } 10460 function A(e, t, n, r) { 10461 if (n + r > e.length) 10462 throw new RangeError("Index out of range"); 10463 if (n < 0) 10464 throw new RangeError("Index out of range") 10465 } 10466 function E(e, t, n, r, i) { 10467 return t = +t, 10468 n >>>= 0, 10469 i || A(e, 0, n, 4), 10470 o.write(e, t, n, r, 23, 4), 10471 n + 4 10472 } 10473 function k(e, t, n, r, i) { 10474 return t = +t, 10475 n >>>= 0, 10476 i || A(e, 0, n, 8), 10477 o.write(e, t, n, r, 52, 8), 10478 n + 8 10479 } 10480 h.prototype.slice = function e(t, n) { 10481 var r = this.length; 10482 (t = ~~t) < 0 ? (t += r) < 0 && (t = 0) : r < t && (t = r), 10483 (n = void 0 === n ? r : ~~n) < 0 ? (n += r) < 0 && (n = 0) : r < n && (n = r), 10484 n < t && (n = t); 10485 n = this.subarray(t, n); 10486 return n.__proto__ = h.prototype, 10487 n 10488 } 10489 , 10490 h.prototype.readUIntLE = function e(t, n, r) { 10491 t >>>= 0, 10492 n >>>= 0, 10493 r || _(t, n, this.length); 10494 for (var i = this[t], o = 1, a = 0; ++a < n && (o *= 256); ) 10495 i += this[t + a] * o; 10496 return i 10497 } 10498 , 10499 h.prototype.readUIntBE = function e(t, n, r) { 10500 t >>>= 0, 10501 n >>>= 0, 10502 r || _(t, n, this.length); 10503 for (var i = this[t + --n], o = 1; 0 < n && (o *= 256); ) 10504 i += this[t + --n] * o; 10505 return i 10506 } 10507 , 10508 h.prototype.readUInt8 = function e(t, n) { 10509 return t >>>= 0, 10510 n || _(t, 1, this.length), 10511 this[t] 10512 } 10513 , 10514 h.prototype.readUInt16LE = function e(t, n) { 10515 return t >>>= 0, 10516 n || _(t, 2, this.length), 10517 this[t] | this[t + 1] << 8 10518 } 10519 , 10520 h.prototype.readUInt16BE = function e(t, n) { 10521 return t >>>= 0, 10522 n || _(t, 2, this.length), 10523 this[t] << 8 | this[t + 1] 10524 } 10525 , 10526 h.prototype.readUInt32LE = function e(t, n) { 10527 return t >>>= 0, 10528 n || _(t, 4, this.length), 10529 (this[t] | this[t + 1] << 8 | this[t + 2] << 16) + 16777216 * this[t + 3] 10530 } 10531 , 10532 h.prototype.readUInt32BE = function e(t, n) { 10533 return t >>>= 0, 10534 n || _(t, 4, this.length), 10535 16777216 * this[t] + (this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]) 10536 } 10537 , 10538 h.prototype.readIntLE = function e(t, n, r) { 10539 t >>>= 0, 10540 n >>>= 0, 10541 r || _(t, n, this.length); 10542 for (var i = this[t], o = 1, a = 0; ++a < n && (o *= 256); ) 10543 i += this[t + a] * o; 10544 return (o *= 128) <= i && (i -= Math.pow(2, 8 * n)), 10545 i 10546 } 10547 , 10548 h.prototype.readIntBE = function e(t, n, r) { 10549 t >>>= 0, 10550 n >>>= 0, 10551 r || _(t, n, this.length); 10552 for (var i = n, o = 1, a = this[t + --i]; 0 < i && (o *= 256); ) 10553 a += this[t + --i] * o; 10554 return (o *= 128) <= a && (a -= Math.pow(2, 8 * n)), 10555 a 10556 } 10557 , 10558 h.prototype.readInt8 = function e(t, n) { 10559 return t >>>= 0, 10560 n || _(t, 1, this.length), 10561 128 & this[t] ? -1 * (255 - this[t] + 1) : this[t] 10562 } 10563 , 10564 h.prototype.readInt16LE = function e(t, n) { 10565 t >>>= 0, 10566 n || _(t, 2, this.length); 10567 t = this[t] | this[t + 1] << 8; 10568 return 32768 & t ? 4294901760 | t : t 10569 } 10570 , 10571 h.prototype.readInt16BE = function e(t, n) { 10572 t >>>= 0, 10573 n || _(t, 2, this.length); 10574 t = this[t + 1] | this[t] << 8; 10575 return 32768 & t ? 4294901760 | t : t 10576 } 10577 , 10578 h.prototype.readInt32LE = function e(t, n) { 10579 return t >>>= 0, 10580 n || _(t, 4, this.length), 10581 this[t] | this[t + 1] << 8 | this[t + 2] << 16 | this[t + 3] << 24 10582 } 10583 , 10584 h.prototype.readInt32BE = function e(t, n) { 10585 return t >>>= 0, 10586 n || _(t, 4, this.length), 10587 this[t] << 24 | this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3] 10588 } 10589 , 10590 h.prototype.readFloatLE = function e(t, n) { 10591 return t >>>= 0, 10592 n || _(t, 4, this.length), 10593 o.read(this, t, !0, 23, 4) 10594 } 10595 , 10596 h.prototype.readFloatBE = function e(t, n) { 10597 return t >>>= 0, 10598 n || _(t, 4, this.length), 10599 o.read(this, t, !1, 23, 4) 10600 } 10601 , 10602 h.prototype.readDoubleLE = function e(t, n) { 10603 return t >>>= 0, 10604 n || _(t, 8, this.length), 10605 o.read(this, t, !0, 52, 8) 10606 } 10607 , 10608 h.prototype.readDoubleBE = function e(t, n) { 10609 return t >>>= 0, 10610 n || _(t, 8, this.length), 10611 o.read(this, t, !1, 52, 8) 10612 } 10613 , 10614 h.prototype.writeUIntLE = function e(t, n, r, i) { 10615 t = +t, 10616 n >>>= 0, 10617 r >>>= 0, 10618 i || w(this, t, n, r, Math.pow(2, 8 * r) - 1, 0); 10619 var o = 1 10620 , a = 0; 10621 for (this[n] = 255 & t; ++a < r && (o *= 256); ) 10622 this[n + a] = t / o & 255; 10623 return n + r 10624 } 10625 , 10626 h.prototype.writeUIntBE = function e(t, n, r, i) { 10627 t = +t, 10628 n >>>= 0, 10629 r >>>= 0, 10630 i || w(this, t, n, r, Math.pow(2, 8 * r) - 1, 0); 10631 var o = r - 1 10632 , a = 1; 10633 for (this[n + o] = 255 & t; 0 <= --o && (a *= 256); ) 10634 this[n + o] = t / a & 255; 10635 return n + r 10636 } 10637 , 10638 h.prototype.writeUInt8 = function e(t, n, r) { 10639 return t = +t, 10640 n >>>= 0, 10641 r || w(this, t, n, 1, 255, 0), 10642 this[n] = 255 & t, 10643 n + 1 10644 } 10645 , 10646 h.prototype.writeUInt16LE = function e(t, n, r) { 10647 return t = +t, 10648 n >>>= 0, 10649 r || w(this, t, n, 2, 65535, 0), 10650 this[n] = 255 & t, 10651 this[n + 1] = t >>> 8, 10652 n + 2 10653 } 10654 , 10655 h.prototype.writeUInt16BE = function e(t, n, r) { 10656 return t = +t, 10657 n >>>= 0, 10658 r || w(this, t, n, 2, 65535, 0), 10659 this[n] = t >>> 8, 10660 this[n + 1] = 255 & t, 10661 n + 2 10662 } 10663 , 10664 h.prototype.writeUInt32LE = function e(t, n, r) { 10665 return t = +t, 10666 n >>>= 0, 10667 r || w(this, t, n, 4, 4294967295, 0), 10668 this[n + 3] = t >>> 24, 10669 this[n + 2] = t >>> 16, 10670 this[n + 1] = t >>> 8, 10671 this[n] = 255 & t, 10672 n + 4 10673 } 10674 , 10675 h.prototype.writeUInt32BE = function e(t, n, r) { 10676 return t = +t, 10677 n >>>= 0, 10678 r || w(this, t, n, 4, 4294967295, 0), 10679 this[n] = t >>> 24, 10680 this[n + 1] = t >>> 16, 10681 this[n + 2] = t >>> 8, 10682 this[n + 3] = 255 & t, 10683 n + 4 10684 } 10685 , 10686 h.prototype.writeIntLE = function e(t, n, r, i) { 10687 t = +t, 10688 n >>>= 0, 10689 i || w(this, t, n, r, (i = Math.pow(2, 8 * r - 1)) - 1, -i); 10690 var o = 0 10691 , a = 1 10692 , s = 0; 10693 for (this[n] = 255 & t; ++o < r && (a *= 256); ) 10694 t < 0 && 0 === s && 0 !== this[n + o - 1] && (s = 1), 10695 this[n + o] = (t / a >> 0) - s & 255; 10696 return n + r 10697 } 10698 , 10699 h.prototype.writeIntBE = function e(t, n, r, i) { 10700 t = +t, 10701 n >>>= 0, 10702 i || w(this, t, n, r, (i = Math.pow(2, 8 * r - 1)) - 1, -i); 10703 var o = r - 1 10704 , a = 1 10705 , s = 0; 10706 for (this[n + o] = 255 & t; 0 <= --o && (a *= 256); ) 10707 t < 0 && 0 === s && 0 !== this[n + o + 1] && (s = 1), 10708 this[n + o] = (t / a >> 0) - s & 255; 10709 return n + r 10710 } 10711 , 10712 h.prototype.writeInt8 = function e(t, n, r) { 10713 return t = +t, 10714 n >>>= 0, 10715 r || w(this, t, n, 1, 127, -128), 10716 this[n] = 255 & (t = t < 0 ? 255 + t + 1 : t), 10717 n + 1 10718 } 10719 , 10720 h.prototype.writeInt16LE = function e(t, n, r) { 10721 return t = +t, 10722 n >>>= 0, 10723 r || w(this, t, n, 2, 32767, -32768), 10724 this[n] = 255 & t, 10725 this[n + 1] = t >>> 8, 10726 n + 2 10727 } 10728 , 10729 h.prototype.writeInt16BE = function e(t, n, r) { 10730 return t = +t, 10731 n >>>= 0, 10732 r || w(this, t, n, 2, 32767, -32768), 10733 this[n] = t >>> 8, 10734 this[n + 1] = 255 & t, 10735 n + 2 10736 } 10737 , 10738 h.prototype.writeInt32LE = function e(t, n, r) { 10739 return t = +t, 10740 n >>>= 0, 10741 r || w(this, t, n, 4, 2147483647, -2147483648), 10742 this[n] = 255 & t, 10743 this[n + 1] = t >>> 8, 10744 this[n + 2] = t >>> 16, 10745 this[n + 3] = t >>> 24, 10746 n + 4 10747 } 10748 , 10749 h.prototype.writeInt32BE = function e(t, n, r) { 10750 return t = +t, 10751 n >>>= 0, 10752 r || w(this, t, n, 4, 2147483647, -2147483648), 10753 this[n] = (t = t < 0 ? 4294967295 + t + 1 : t) >>> 24, 10754 this[n + 1] = t >>> 16, 10755 this[n + 2] = t >>> 8, 10756 this[n + 3] = 255 & t, 10757 n + 4 10758 } 10759 , 10760 h.prototype.writeFloatLE = function e(t, n, r) { 10761 return E(this, t, n, !0, r) 10762 } 10763 , 10764 h.prototype.writeFloatBE = function e(t, n, r) { 10765 return E(this, t, n, !1, r) 10766 } 10767 , 10768 h.prototype.writeDoubleLE = function e(t, n, r) { 10769 return k(this, t, n, !0, r) 10770 } 10771 , 10772 h.prototype.writeDoubleBE = function e(t, n, r) { 10773 return k(this, t, n, !1, r) 10774 } 10775 , 10776 h.prototype.copy = function e(t, n, r, i) { 10777 if (!h.isBuffer(t)) 10778 throw new TypeError("argument should be a Buffer"); 10779 if (r = r || 0, 10780 i || 0 === i || (i = this.length), 10781 n >= t.length && (n = t.length), 10782 (i = 0 < i && i < r ? r : i) === r) 10783 return 0; 10784 if (0 === t.length || 0 === this.length) 10785 return 0; 10786 if ((n = n || 0) < 0) 10787 throw new RangeError("targetStart out of bounds"); 10788 if (r < 0 || r >= this.length) 10789 throw new RangeError("Index out of range"); 10790 if (i < 0) 10791 throw new RangeError("sourceEnd out of bounds"); 10792 i > this.length && (i = this.length); 10793 var o = (i = t.length - n < i - r ? t.length - n + r : i) - r; 10794 if (this === t && "function" == typeof Uint8Array.prototype.copyWithin) 10795 this.copyWithin(n, r, i); 10796 else if (this === t && r < n && n < i) 10797 for (var a = o - 1; 0 <= a; --a) 10798 t[a + n] = this[a + r]; 10799 else 10800 Uint8Array.prototype.set.call(t, this.subarray(r, i), n); 10801 return o 10802 } 10803 , 10804 h.prototype.fill = function e(t, n, r, i) { 10805 if ("string" == typeof t) { 10806 if ("string" == typeof n ? (i = n, 10807 n = 0, 10808 r = this.length) : "string" == typeof r && (i = r, 10809 r = this.length), 10810 void 0 !== i && "string" != typeof i) 10811 throw new TypeError("encoding must be a string"); 10812 if ("string" == typeof i && !h.isEncoding(i)) 10813 throw new TypeError("Unknown encoding: " + i); 10814 var o; 10815 1 === t.length && (o = t.charCodeAt(0), 10816 ("utf8" === i && o < 128 || "latin1" === i) && (t = o)) 10817 } else 10818 "number" == typeof t && (t &= 255); 10819 if (n < 0 || this.length < n || this.length < r) 10820 throw new RangeError("Out of range index"); 10821 if (r <= n) 10822 return this; 10823 var a; 10824 if (n >>>= 0, 10825 r = void 0 === r ? this.length : r >>> 0, 10826 "number" == typeof (t = t || 0)) 10827 for (a = n; a < r; ++a) 10828 this[a] = t; 10829 else { 10830 var s = h.isBuffer(t) ? t : h.from(t, i) 10831 , c = s.length; 10832 if (0 === c) 10833 throw new TypeError('The value "' + t + '" is invalid for argument "value"'); 10834 for (a = 0; a < r - n; ++a) 10835 this[a + n] = s[a % c] 10836 } 10837 return this 10838 } 10839 ; 10840 var x = /[^+/0-9A-Za-z-_]/g; 10841 function S(e, t) { 10842 var n; 10843 t = t || 1 / 0; 10844 for (var r = e.length, i = null, o = [], a = 0; a < r; ++a) { 10845 if (55295 < (n = e.charCodeAt(a)) && n < 57344) { 10846 if (!i) { 10847 if (56319 < n) { 10848 -1 < (t -= 3) && o.push(239, 191, 189); 10849 continue 10850 } 10851 if (a + 1 === r) { 10852 -1 < (t -= 3) && o.push(239, 191, 189); 10853 continue 10854 } 10855 i = n; 10856 continue 10857 } 10858 if (n < 56320) { 10859 -1 < (t -= 3) && o.push(239, 191, 189), 10860 i = n; 10861 continue 10862 } 10863 n = 65536 + (i - 55296 << 10 | n - 56320) 10864 } else 10865 i && -1 < (t -= 3) && o.push(239, 191, 189); 10866 if (i = null, 10867 n < 128) { 10868 if (--t < 0) 10869 break; 10870 o.push(n) 10871 } else if (n < 2048) { 10872 if ((t -= 2) < 0) 10873 break; 10874 o.push(n >> 6 | 192, 63 & n | 128) 10875 } else if (n < 65536) { 10876 if ((t -= 3) < 0) 10877 break; 10878 o.push(n >> 12 | 224, n >> 6 & 63 | 128, 63 & n | 128) 10879 } else { 10880 if (!(n < 1114112)) 10881 throw new Error("Invalid code point"); 10882 if ((t -= 4) < 0) 10883 break; 10884 o.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, 63 & n | 128) 10885 } 10886 } 10887 return o 10888 } 10889 function D(e) { 10890 return i.toByteArray(function e(t) { 10891 if ((t = (t = t.split("=")[0]).trim().replace(x, "")).length < 2) 10892 return ""; 10893 for (; t.length % 4 != 0; ) 10894 t += "="; 10895 return t 10896 }(e)) 10897 } 10898 function T(e, t, n, r) { 10899 for (var i = 0; i < r && !(i + n >= t.length || i >= e.length); ++i) 10900 t[i + n] = e[i]; 10901 return i 10902 } 10903 function R(e, t) { 10904 return e instanceof t || null != e && null != e.constructor && null != e.constructor.name && e.constructor.name === t.name 10905 } 10906 function O(e) { 10907 return e != e 10908 } 10909 } 10910 .call(this) 10911 } 10912 .call(this, C("buffer").Buffer) 10913 } 10914 , { 10915 "base64-js": 2, 10916 buffer: 3, 10917 ieee754: 4 10918 }], 10919 4: [function(e, t, n) { 10920 n.read = function(e, t, n, r, i) { 10921 var o, a, s = 8 * i - r - 1, c = (1 << s) - 1, u = c >> 1, d = -7, l = n ? i - 1 : 0, h = n ? -1 : 1, n = e[t + l]; 10922 for (l += h, 10923 o = n & (1 << -d) - 1, 10924 n >>= -d, 10925 d += s; 0 < d; o = 256 * o + e[t + l], 10926 l += h, 10927 d -= 8) 10928 ; 10929 for (a = o & (1 << -d) - 1, 10930 o >>= -d, 10931 d += r; 0 < d; a = 256 * a + e[t + l], 10932 l += h, 10933 d -= 8) 10934 ; 10935 if (0 === o) 10936 o = 1 - u; 10937 else { 10938 if (o === c) 10939 return a ? NaN : 1 / 0 * (n ? -1 : 1); 10940 a += Math.pow(2, r), 10941 o -= u 10942 } 10943 return (n ? -1 : 1) * a * Math.pow(2, o - r) 10944 } 10945 , 10946 n.write = function(e, t, n, r, i, o) { 10947 var a, s, c = 8 * o - i - 1, u = (1 << c) - 1, d = u >> 1, l = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0, h = r ? 0 : o - 1, f = r ? 1 : -1, o = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0; 10948 for (t = Math.abs(t), 10949 isNaN(t) || t === 1 / 0 ? (s = isNaN(t) ? 1 : 0, 10950 a = u) : (a = Math.floor(Math.log(t) / Math.LN2), 10951 t * (r = Math.pow(2, -a)) < 1 && (a--, 10952 r *= 2), 10953 2 <= (t += 1 <= a + d ? l / r : l * Math.pow(2, 1 - d)) * r && (a++, 10954 r /= 2), 10955 u <= a + d ? (s = 0, 10956 a = u) : 1 <= a + d ? (s = (t * r - 1) * Math.pow(2, i), 10957 a += d) : (s = t * Math.pow(2, d - 1) * Math.pow(2, i), 10958 a = 0)); 8 <= i; e[n + h] = 255 & s, 10959 h += f, 10960 s /= 256, 10961 i -= 8) 10962 ; 10963 for (a = a << i | s, 10964 c += i; 0 < c; e[n + h] = 255 & a, 10965 h += f, 10966 a /= 256, 10967 c -= 8) 10968 ; 10969 e[n + h - f] |= 128 * o 10970 } 10971 } 10972 , {}], 10973 5: [function(e, t, n) { 10974 "use strict"; 10975 e("@bygd/gd-sdk-pes/dist/default") 10976 } 10977 , { 10978 "@bygd/gd-sdk-pes/dist/default": 1 10979 }] 10980}, {}, [5]);
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.