1function floatToString(a, b) { 2 var c = a.toFixed(b).toString(); 3 return c.match(/^\.\d+/) ? "0" + c : c 4} 5!function(a, b, c) { 6 function d(a, b) { 7 return typeof a === b 8 } 9 function e() { 10 var a, b, c, e, f, g, h; 11 for (var i in j) 12 if (j.hasOwnProperty(i)) { 13 if (a = [], 14 b = j[i], 15 b.name && (a.push(b.name.toLowerCase()), 16 b.options && b.options.aliases && b.options.aliases.length)) 17 for (c = 0; c < b.options.aliases.length; c++) 18 a.push(b.options.aliases[c].toLowerCase()); 19 for (e = d(b.fn, "function") ? b.fn() : b.fn, 20 f = 0; f < a.length; f++) 21 g = a[f], 22 h = g.split("."), 23 1 === h.length ? l[h[0]] = e : (!l[h[0]] || l[h[0]]instanceof Boolean || (l[h[0]] = new Boolean(l[h[0]])), 24 l[h[0]][h[1]] = e), 25 m.push((e ? "" : "no-") + h.join("-")) 26 } 27 } 28 function f(a) { 29 var b = n.className 30 , c = l._config.classPrefix || ""; 31 if (o && (b = b.baseVal), 32 l._config.enableJSClass) { 33 var d = new RegExp("(^|\\s)" + c + "no-js(\\s|$)"); 34 b = b.replace(d, "$1" + c + "js$2") 35 } 36 l._config.enableClasses && (b += " " + c + a.join(" " + c), 37 o ? n.className.baseVal = b : n.className = b) 38 } 39 function g() { 40 return "function" != typeof b.createElement ? b.createElement(arguments[0]) : o ? b.createElementNS.call(b, "http://www.w3.org/2000/svg", arguments[0]) : b.createElement.apply(b, arguments) 41 } 42 function h() { 43 var a = b.body; 44 return a || (a = g(o ? "svg" : "body"), 45 a.fake = !0), 46 a 47 } 48 function i(a, c, d, e) { 49 var f, i, j, k, l = "modernizr", m = g("div"), o = h(); 50 if (parseInt(d, 10)) 51 for (; d--; ) 52 j = g("div"), 53 j.id = e ? e[d] : l + (d + 1), 54 m.appendChild(j); 55 return f = g("style"), 56 f.type = "text/css", 57 f.id = "s" + l, 58 (o.fake ? o : m).appendChild(f), 59 o.appendChild(m), 60 f.styleSheet ? f.styleSheet.cssText = a : f.appendChild(b.createTextNode(a)), 61 m.id = l, 62 o.fake && (o.style.background = "", 63 o.style.overflow = "hidden", 64 k = n.style.overflow, 65 n.style.overflow = "hidden", 66 n.appendChild(o)), 67 i = c(m, a), 68 o.fake ? (o.parentNode.removeChild(o), 69 n.style.overflow = k, 70 n.offsetHeight) : m.parentNode.removeChild(m), 71 !!i 72 } 73 var j = [] 74 , k = { 75 _version: "3.6.0", 76 _config: { 77 classPrefix: "", 78 enableClasses: !0, 79 enableJSClass: !0, 80 usePrefixes: !0 81 }, 82 _q: [], 83 on: function(a, b) { 84 var c = this; 85 setTimeout(function() { 86 b(c[a]) 87 }, 0) 88 }, 89 addTest: function(a, b, c) { 90 j.push({ 91 name: a, 92 fn: b, 93 options: c 94 }) 95 }, 96 addAsyncTest: function(a) { 97 j.push({ 98 name: null, 99 fn: a 100 }) 101 } 102 } 103 , l = function() {}; 104 l.prototype = k, 105 l = new l; 106 var m = [] 107 , n = b.documentElement 108 , o = "svg" === n.nodeName.toLowerCase(); 109 o || function(a, b) { 110 function c(a, b) { 111 var c = a.createElement("p") 112 , d = a.getElementsByTagName("head")[0] || a.documentElement; 113 return c.innerHTML = "x<style>" + b + "</style>", 114 d.insertBefore(c.lastChild, d.firstChild) 115 } 116 function d() { 117 var a = t.elements; 118 return "string" == typeof a ? a.split(" ") : a 119 } 120 function e(a, b) { 121 var c = t.elements; 122 "string" != typeof c && (c = c.join(" ")), 123 "string" != typeof a && (a = a.join(" ")), 124 t.elements = c + " " + a, 125 j(b) 126 } 127 function f(a) { 128 var b = s[a[q]]; 129 return b || (b = {}, 130 r++, 131 a[q] = r, 132 s[r] = b), 133 b 134 } 135 function g(a, c, d) { 136 if (c || (c = b), 137 l) 138 return c.createElement(a); 139 d || (d = f(c)); 140 var e; 141 return e = d.cache[a] ? d.cache[a].cloneNode() : p.test(a) ? (d.cache[a] = d.createElem(a)).cloneNode() : d.createElem(a), 142 !e.canHaveChildren || o.test(a) || e.tagUrn ? e : d.frag.appendChild(e) 143 } 144 function h(a, c) { 145 if (a || (a = b), 146 l) 147 return a.createDocumentFragment(); 148 c = c || f(a); 149 for (var e = c.frag.cloneNode(), g = 0, h = d(), i = h.length; i > g; g++) 150 e.createElement(h[g]); 151 return e 152 } 153 function i(a, b) { 154 b.cache || (b.cache = {}, 155 b.createElem = a.createElement, 156 b.createFrag = a.createDocumentFragment, 157 b.frag = b.createFrag()), 158 a.createElement = function(c) { 159 return t.shivMethods ? g(c, a, b) : b.createElem(c) 160 } 161 , 162 a.createDocumentFragment = Function("h,f", "return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&(" + d().join().replace(/[\w\-:]+/g, function(a) { 163 return b.createElem(a), 164 b.frag.createElement(a), 165 'c("' + a + '")' 166 }) + ");return n}")(t, b.frag) 167 } 168 function j(a) { 169 a || (a = b); 170 var d = f(a); 171 return !t.shivCSS || k || d.hasCSS || (d.hasCSS = !!c(a, "article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{dis
171play:block}mark{background:#FF0;color:#000}template{display:none}")), 172 l || i(a, d), 173 a 174 } 175 var k, l, m = "3.7.3", n = a.html5 || {}, o = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i, p = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i, q = "_html5shiv", r = 0, s = {}; 176 !function() { 177 try { 178 var a = b.createElement("a"); 179 a.innerHTML = "<xyz></xyz>", 180 k = "hidden"in a, 181 l = 1 == a.childNodes.length || function() { 182 b.createElement("a"); 183 var a = b.createDocumentFragment(); 184 return void 0 === a.cloneNode || void 0 === a.createDocumentFragment || void 0 === a.createElement 185 }() 186 } catch (a) { 187 k = !0, 188 l = !0 189 } 190 }(); 191 var t = { 192 elements: n.elements || "abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video", 193 version: m, 194 shivCSS: !1 !== n.shivCSS, 195 supportsUnknownElements: l, 196 shivMethods: !1 !== n.shivMethods, 197 type: "default", 198 shivDocument: j, 199 createElement: g, 200 createDocumentFragment: h, 201 addElements: e 202 }; 203 a.html5 = t, 204 j(b), 205 "object" == typeof module && module.exports && (module.exports = t) 206 }(void 0 !== a ? a : this, b); 207 var p = k._config.usePrefixes ? " -webkit- -moz- -o- -ms- ".split(" ") : ["", ""]; 208 k._prefixes = p; 209 var q = k.testStyles = i; 210 l.addTest("touchevents", function() { 211 var c; 212 if ("ontouchstart"in a || a.DocumentTouch && b instanceof DocumentTouch) 213 c = !0; 214 else { 215 var d = ["@media (", p.join("touch-enabled),("), "heartz", ")", "{#modernizr{top:9px;position:absolute}}"].join(""); 216 q(d, function(a) { 217 c = 9 === a.offsetTop 218 }) 219 } 220 return c 221 }), 222 function() { 223 var a = navigator.userAgent 224 , b = a.match(/w(eb)?osbrowser/gi) 225 , c = a.match(/windows phone/gi) && a.match(/iemobile\/([0-9])+/gi) && parseFloat(RegExp.$1) >= 9; 226 return b || c 227 }() ? l.addTest("fontface", !1) : q('@font-face {font-family:"font";src:url("https://")}', function(a, c) { 228 var d = b.getElementById("smodernizr") 229 , e = d.sheet || d.styleSheet 230 , f = e ? e.cssRules && e.cssRules[0] ? e.cssRules[0].cssText : e.cssText || "" : "" 231 , g = /src/i.test(f) && 0 === f.indexOf(c.split(" ")[0]); 232 l.addTest("fontface", g) 233 }), 234 e(), 235 f(m), 236 delete k.addTest, 237 delete k.addAsyncTest; 238 for (var r = 0; r < l._q.length; r++) 239 l._q[r](); 240 a.Modernizr = l 241}(window, document), 242function(a, b) { 243 "use strict"; 244 "object" == typeof module && "object" == typeof module.exports ? module.exports = a.document ? b(a, !0) : function(a) { 245 if (!a.document) 246 throw new Error("jQuery requires a window with a document"); 247 return b(a) 248 } 249 : b(a) 250}("undefined" != typeof window ? window : this, function(a, b) { 251 "use strict"; 252 function c(a, b, c) { 253 var d, e, f = (c = c || $).createElement("script"); 254 if (f.text = a, 255 b) 256 for (d in ma) 257 (e = b[d] || b.getAttribute && b.getAttribute(d)) && f.setAttribute(d, e); 258 c.head.appendChild(f).parentNode.removeChild(f) 259 } 260 function d(a) { 261 return null == a ? a + "" : "object" == typeof a || "function" == typeof a ? ea[fa.call(a)] || "object" : typeof a 262 } 263 function e(a) { 264 var b = !!a && "length"in a && a.length 265 , c = d(a); 266 return !ka(a) && !la(a) && ("array" === c || 0 === b || "number" == typeof b && 0 < b && b - 1 in a) 267 } 268 function f(a, b) { 269 return a.nodeName && a.nodeName.toLowerCase() === b.toLowerCase() 270 } 271 function g(a, b, c) { 272 return ka(b) ? oa.grep(a, function(a, d) { 273 return !!b.call(a, d, a) !== c 274 }) : b.nodeType ? oa.grep(a, function(a) { 275 return a === b !== c 276 }) : "string" != typeof b ? oa.grep(a, function(a) { 277 return -1 < da.call(b, a) !== c 278 }) : oa.filter(b, a, c) 279 } 280 function h(a, b) { 281 for (; (a = a[b]) && 1 !== a.nodeType; ) 282 ; 283 return a 284 } 285 function i(a) { 286 return a 287 } 288 function j(a) { 289 throw a 290 } 291 function k(a, b, c, d) { 292 var e; 293 try { 294 a && ka(e = a.promise) ? e.call(a).done(b).fail(c) : a && ka(e = a.then) ? e.call(a, b, c) : b.apply(void 0, [a].slice(d)) 295 } catch (a) { 296 c.apply(void 0, [a]) 297 } 298 } 299 function l() { 300 $.removeEventListener("DOMContentLoaded", l), 301 a.removeEventListener("load", l), 302 oa.ready() 303 } 304 function m(a, b) { 305 return b.toUpperCase() 306 } 307 function n(a) { 308 return a.replace(Da, "ms-").replace(Ea, m) 309 } 310 function o() { 311 this.expando = oa.expando + o.uid++ 312 } 313 function p(a, b, c) { 314 var d, e; 315 if (void 0 === c && 1 === a.nodeType) 316 if (d = "data-" + b.replace(Ja, "-$&").toLowerCase(), 317 "string" == typeof (c = a.getAttribute(d))) { 318 try { 319 c = "true" === (e = c) || "false" !== e && ("null" === e ? null : e === +e + "" ? +e : Ia.test(e) ? JSON.parse(e) : e) 320 } catch (a) {} 321 Ha.set(a, b, c) 322 } else 323 c = void 0; 324 return c 325 } 326 function q(a, b, c, d) { 327 var e, f, g = 20, h = d ? function() { 328 return d.cur() 329 } 330 : function() { 331 return oa.css(a, b, "") 332 } 333 , i = h(), j = c && c[3] || (oa.cssNumber[b] ? "" : "px"), k = a.nodeType && (oa.cssNumber[b] || "px" !== j && +i) && La.exec(oa.css(a, b)); 334 if (k && k[3] !== j) { 335 for (i /= 2, 336 j = j || k[3], 337 k = +i || 1; g--; ) 338 oa.style(a, b, k + j), 339 (1 - f) * (1 - (f = h() / i || .5)) <= 0 && (g = 0), 340 k /= f; 341 k *= 2, 342 oa.style(a, b, k + j), 343 c = c || [] 344 } 345 return c && (k = +k || +i || 0, 346 e = c[1] ? k + (c[1] + 1) * c[2] : +c[2], 347 d && (d.unit = j, 348 d.start = k, 349 d.end = e)), 350 e 351 } 352 function r(a, b) { 353 for (var c, d, e, f, g, h, i, j = [], k = 0, l = a.length; k < l; k++) 354 (d = a[k]).style && (c = d.style.display, 355 b ? ("none" === c && (j[k] = Ga.get(d, "display") || null, 356 j[k] || (d.style.display = "")), 357 "" === d.style.display && Qa(d) && (j[k] = (i = g = f = void 0, 358 g = (e = d).ownerDocument,
vendor: 10,198 bytes, lines 359-626
359 h = e.nodeName, 360 (i = Sa[h]) || (f = g.body.appendChild(g.createElement(h)), 361 i = oa.css(f, "display"), 362 f.parentNode.removeChild(f), 363 "none" === i && (i = "block"), 364 Sa[h] = i)))) : "none" !== c && (j[k] = "none", 365 Ga.set(d, "display", c))); 366 for (k = 0; k < l; k++) 367 null != j[k] && (a[k].style.display = j[k]); 368 return a 369 } 370 function s(a, b) { 371 var c; 372 return c = void 0 !== a.getElementsByTagName ? a.getElementsByTagName(b || "*") : void 0 !== a.querySelectorAll ? a.querySelectorAll(b || "*") : [], 373 void 0 === b || b && f(a, b) ? oa.merge([a], c) : c 374 } 375 function t(a, b) { 376 for (var c = 0, d = a.length; c < d; c++) 377 Ga.set(a[c], "globalEval", !b || Ga.get(b[c], "globalEval")) 378 } 379 function u(a, b, c, e, f) { 380 for (var g, h, i, j, k, l, m = b.createDocumentFragment(), n = [], o = 0, p = a.length; o < p; o++) 381 if ((g = a[o]) || 0 === g) 382 if ("object" === d(g)) 383 oa.merge(n, g.nodeType ? [g] : g); 384 else if (Za.test(g)) { 385 for (h = h || m.appendChild(b.createElement("div")), 386 i = (Ua.exec(g) || ["", ""])[1].toLowerCase(), 387 j = Wa[i] || Wa._default, 388 h.innerHTML = j[1] + oa.htmlPrefilter(g) + j[2], 389 l = j[0]; l--; ) 390 h = h.lastChild; 391 oa.merge(n, h.childNodes), 392 (h = m.firstChild).textContent = "" 393 } else 394 n.push(b.createTextNode(g)); 395 for (m.textContent = "", 396 o = 0; g = n[o++]; ) 397 if (e && -1 < oa.inArray(g, e)) 398 f && f.push(g); 399 else if (k = Oa(g), 400 h = s(m.appendChild(g), "script"), 401 k && t(h), 402 c) 403 for (l = 0; g = h[l++]; ) 404 Va.test(g.type || "") && c.push(g); 405 return m 406 } 407 function v() { 408 return !0 409 } 410 function w() { 411 return !1 412 } 413 function x(a, b) { 414 return a === function() { 415 try { 416 return $.activeElement 417 } catch (a) {} 418 }() == ("focus" === b) 419 } 420 function y(a, b, c, d, e, f) { 421 var g, h; 422 if ("object" == typeof b) { 423 for (h in "string" != typeof c && (d = d || c, 424 c = void 0), 425 b) 426 y(a, h, c, d, b[h], f); 427 return a 428 } 429 if (null == d && null == e ? (e = c, 430 d = c = void 0) : null == e && ("string" == typeof c ? (e = d, 431 d = void 0) : (e = d, 432 d = c, 433 c = void 0)), 434 !1 === e) 435 e = w; 436 else if (!e) 437 return a; 438 return 1 === f && (g = e, 439 (e = function(a) { 440 return oa().off(a), 441 g.apply(this, arguments) 442 } 443 ).guid = g.guid || (g.guid = oa.guid++)), 444 a.each(function() { 445 oa.event.add(this, b, e, d, c) 446 }) 447 } 448 function z(a, b, c) { 449 c ? (Ga.set(a, b, !1), 450 oa.event.add(a, b, { 451 namespace: !1, 452 handler: function(a) { 453 var d, e, f = Ga.get(this, b); 454 if (1 & a.isTrigger && this[b]) { 455 if (f.length) 456 (oa.event.special[b] || {}).delegateType && a.stopPropagation(); 457 else if (f = aa.call(arguments), 458 Ga.set(this, b, f), 459 d = c(this, b), 460 this[b](), 461 f !== (e = Ga.get(this, b)) || d ? Ga.set(this, b, !1) : e = {}, 462 f !== e) 463 return a.stopImmediatePropagation(), 464 a.preventDefault(), 465 e.value 466 } else 467 f.length && (Ga.set(this, b, { 468 value: oa.event.trigger(oa.extend(f[0], oa.Event.prototype), f.slice(1), this) 469 }), 470 a.stopImmediatePropagation()) 471 } 472 })) : void 0 === Ga.get(a, b) && oa.event.add(a, b, v) 473 } 474 function A(a, b) { 475 return f(a, "table") && f(11 !== b.nodeType ? b : b.firstChild, "tr") && oa(a).children("tbody")[0] || a 476 } 477 function B(a) { 478 return a.type = (null !== a.getAttribute("type")) + "/" + a.type, 479 a 480 } 481 function C(a) { 482 return "true/" === (a.type || "").slice(0, 5) ? a.type = a.type.slice(5) : a.removeAttribute("type"), 483 a 484 } 485 function D(a, b) { 486 var c, d, e, f, g, h, i, j; 487 if (1 === b.nodeType) { 488 if (Ga.hasData(a) && (f = Ga.access(a), 489 g = Ga.set(b, f), 490 j = f.events)) 491 for (e in delete g.handle, 492 g.events = {}, 493 j) 494 for (c = 0, 495 d = j[e].length; c < d; c++) 496 oa.event.add(b, e, j[e][c]); 497 Ha.hasData(a) && (h = Ha.access(a), 498 i = oa.extend({}, h), 499 Ha.set(b, i)) 500 } 501 } 502 function E(a, b, d, e) { 503 b = ba.apply([], b); 504 var f, g, h, i, j, k, l = 0, m = a.length, n = m - 1, o = b[0], p = ka(o); 505 if (p || 1 < m && "string" == typeof o && !ja.checkClone && db.test(o)) 506 return a.each(function(c) { 507 var f = a.eq(c); 508 p && (b[0] = o.call(this, c, f.html())), 509 E(f, b, d, e) 510 }); 511 if (m && (g = (f = u(b, a[0].ownerDocument, !1, a, e)).firstChild, 512 1 === f.childNodes.length && (f = g), 513 g || e)) { 514 for (i = (h = oa.map(s(f, "script"), B)).length; l < m; l++) 515 j = f, 516 l !== n && (j = oa.clone(j, !0, !0), 517 i && oa.merge(h, s(j, "script"))), 518 d.call(a[l], j, l); 519 if (i) 520 for (k = h[h.length - 1].ownerDocument, 521 oa.map(h, C), 522 l = 0; l < i; l++) 523 j = h[l], 524 Va.test(j.type || "") && !Ga.access(j, "globalEval") && oa.contains(k, j) && (j.src && "module" !== (j.type || "").toLowerCase() ? oa._evalUrl && !j.noModule && oa._evalUrl(j.src, { 525 nonce: j.nonce || j.getAttribute("nonce") 526 }) : c(j.textContent.replace(eb, ""), j, k)) 527 } 528 return a 529 } 530 function F(a, b, c) { 531 for (var d, e = b ? oa.filter(b, a) : a, f = 0; null != (d = e[f]); f++) 532 c || 1 !== d.nodeType || oa.cleanData(s(d)), 533 d.parentNode && (c && Oa(d) && t(s(d, "script")), 534 d.parentNode.removeChild(d)); 535 return a 536 } 537 function G(a, b, c) { 538 var d, e, f, g, h = a.style; 539 return (c = c || gb(a)) && ("" !== (g = c.getPropertyValue(b) || c[b]) || Oa(a) || (g = oa.style(a, b)), 540 !ja.pixelBoxStyles() && fb.test(g) && hb.test(b) && (d = h.width, 541 e = h.minWidth, 542 f = h.maxWidth, 543 h.minWidth = h.maxWidth = h.width = g, 544 g = c.width, 545 h.width = d, 546 h.minWidth = e, 547 h.maxWidth = f)), 548 void 0 !== g ? g + "" : g 549 } 550 function H(a, b) { 551 return { 552 get: function() { 553 if (!a()) 554 return (this.get = b).apply(this, arguments); 555 delete this.get 556 } 557 } 558 } 559 function I(a) { 560 return oa.cssProps[a] || kb[a] || (a in jb ? a : kb[a] = function(a) { 561 for (var b = a[0].toUpperCase() + a.slice(1), c = ib.length; c--; ) 562 if ((a = ib[c] + b)in jb) 563 return a 564 }(a) || a) 565 } 566 function J(a, b, c) { 567 var d = La.exec(b); 568 return d ? Math.max(0, d[2] - (c || 0)) + (d[3] || "px") : b 569 } 570 function K(a, b, c, d, e, f) { 571 var g = "width" === b ? 1 : 0 572 , h = 0 573 , i = 0; 574 if (c === (d ? "border" : "content")) 575 return 0; 576 for (; g < 4; g += 2) 577 "margin" === c && (i += oa.css(a, c + Ma[g], !0, e)), 578 d ? ("content" === c && (i -= oa.css(a, "padding" + Ma[g], !0, e)), 579 "margin" !== c && (i -= oa.css(a, "border" + Ma[g] + "Width", !0, e))) : (i += oa.css(a, "padding" + Ma[g], !0, e), 580 "padding" !== c ? i += oa.css(a, "border" + Ma[g] + "Width", !0, e) : h += oa.css(a, "border" + Ma[g] + "Width", !0, e)); 581 return !d && 0 <= f && (i += Math.max(0, Math.ceil(a["offset" + b[0].toUpperCase() + b.slice(1)] - f - i - h - .5)) || 0), 582 i 583 } 584 function L(a, b, c) { 585 var d = gb(a) 586 , e = (!ja.boxSizingReliable() || c) && "border-box" === oa.css(a, "boxSizing", !1, d) 587 , f = e 588 , g = G(a, b, d) 589 , h = "offset" + b[0].toUpperCase() + b.slice(1); 590 if (fb.test(g)) { 591 if (!c) 592 return g; 593 g = "auto" 594 } 595 return (!ja.boxSizingReliable() && e || "auto" === g || !parseFloat(g) && "inline" === oa.css(a, "display", !1, d)) && a.getClientRects().length && (e = "border-box" === oa.css(a, "boxSizing", !1, d), 596 (f = h in a) && (g = a[h])), 597 (g = parseFloat(g) || 0) + K(a, b, c || (e ? "border" : "content"), f, d, g) + "px" 598 } 599 function M(a, b, c, d, e) { 600 return new M.prototype.init(a,b,c,d,e) 601 } 602 function N() { 603 qb && (!1 === $.hidden && a.requestAnimationFrame ? a.requestAnimationFrame(N) : a.setTimeout(N, oa.fx.interval), 604 oa.fx.tick()) 605 } 606 function O() { 607 return a.setTimeout(function() { 608 pb = void 0 609 }), 610 pb = Date.now() 611 } 612 function P(a, b) { 613 var c, d = 0, e = { 614 height: a 615 }; 616 for (b = b ? 1 : 0; d < 4; d += 2 - b) 617 e["margin" + (c = Ma[d])] = e["padding" + c] = a; 618 return b && (e.opacity = e.width = a), 619 e 620 } 621 function Q(a, b, c) { 622 for (var d, e = (R.tweeners[b] || []).concat(R.tweeners["*"]), f = 0, g = e.length; f < g; f++) 623 if (d = e[f].call(c, b, a)) 624 return d 625 } 626 function R(a, b, c) {
vendor: 5,578 bytes, lines 627-794
627 var d, e, f = 0, g = R.prefilters.length, h = oa.Deferred().always(function() { 628 delete i.elem 629 }), i = function() { 630 if (e) 631 return !1; 632 for (var b = pb || O(), c = Math.max(0, j.startTime + j.duration - b), d = 1 - (c / j.duration || 0), f = 0, g = j.tweens.length; f < g; f++) 633 j.tweens[f].run(d); 634 return h.notifyWith(a, [j, d, c]), 635 d < 1 && g ? c : (g || h.notifyWith(a, [j, 1, 0]), 636 h.resolveWith(a, [j]), 637 !1) 638 }, j = h.promise({ 639 elem: a, 640 props: oa.extend({}, b), 641 opts: oa.extend(!0, { 642 specialEasing: {}, 643 easing: oa.easing._default 644 }, c), 645 originalProperties: b, 646 originalOptions: c, 647 startTime: pb || O(), 648 duration: c.duration, 649 tweens: [], 650 createTween: function(b, c) { 651 var d = oa.Tween(a, j.opts, b, c, j.opts.specialEasing[b] || j.opts.easing); 652 return j.tweens.push(d), 653 d 654 }, 655 stop: function(b) { 656 var c = 0 657 , d = b ? j.tweens.length : 0; 658 if (e) 659 return this; 660 for (e = !0; c < d; c++) 661 j.tweens[c].run(1); 662 return b ? (h.notifyWith(a, [j, 1, 0]), 663 h.resolveWith(a, [j, b])) : h.rejectWith(a, [j, b]), 664 this 665 } 666 }), k = j.props; 667 for ((!function(a, b) { 668 var c, d, e, f, g; 669 for (c in a) 670 if (e = b[d = n(c)], 671 f = a[c], 672 Array.isArray(f) && (e = f[1], 673 f = a[c] = f[0]), 674 c !== d && (a[d] = f, 675 delete a[c]), 676 (g = oa.cssHooks[d]) && "expand"in g) 677 for (c in f = g.expand(f), 678 delete a[d], 679 f) 680 c in a || (a[c] = f[c], 681 b[c] = e); 682 else 683 b[d] = e 684 }(k, j.opts.specialEasing)); f < g; f++) 685 if (d = R.prefilters[f].call(j, a, k, j.opts)) 686 return ka(d.stop) && (oa._queueHooks(j.elem, j.opts.queue).stop = d.stop.bind(d)), 687 d; 688 return oa.map(k, Q, j), 689 ka(j.opts.start) && j.opts.start.call(a, j), 690 j.progress(j.opts.progress).done(j.opts.done, j.opts.complete).fail(j.opts.fail).always(j.opts.always), 691 oa.fx.timer(oa.extend(i, { 692 elem: a, 693 anim: j, 694 queue: j.opts.queue 695 })), 696 j 697 } 698 function S(a) { 699 return (a.match(za) || []).join(" ") 700 } 701 function T(a) { 702 return a.getAttribute && a.getAttribute("class") || "" 703 } 704 function U(a) { 705 return Array.isArray(a) ? a : "string" == typeof a && a.match(za) || [] 706 } 707 function V(a, b, c, e) { 708 var f; 709 if (Array.isArray(b)) 710 oa.each(b, function(b, d) { 711 c || Fb.test(a) ? e(a, d) : V(a + "[" + ("object" == typeof d && null != d ? b : "") + "]", d, c, e) 712 }); 713 else if (c || "object" !== d(b)) 714 e(a, b); 715 else 716 for (f in b) 717 V(a + "[" + f + "]", b[f], c, e) 718 } 719 function W(a) { 720 return function(b, c) { 721 "string" != typeof b && (c = b, 722 b = "*"); 723 var d, e = 0, f = b.toLowerCase().match(za) || []; 724 if (ka(c)) 725 for (; d = f[e++]; ) 726 "+" === d[0] ? (d = d.slice(1) || "*", 727 (a[d] = a[d] || []).unshift(c)) : (a[d] = a[d] || []).push(c) 728 } 729 } 730 function X(a, b, c, d) { 731 function e(h) { 732 var i; 733 return f[h] = !0, 734 oa.each(a[h] || [], function(a, h) { 735 var j = h(b, c, d); 736 return "string" != typeof j || g || f[j] ? g ? !(i = j) : void 0 : (b.dataTypes.unshift(j), 737 e(j), 738 !1) 739 }), 740 i 741 } 742 var f = {} 743 , g = a === Qb; 744 return e(b.dataTypes[0]) || !f["*"] && e("*") 745 } 746 function Y(a, b) { 747 var c, d, e = oa.ajaxSettings.flatOptions || {}; 748 for (c in b) 749 void 0 !== b[c] && ((e[c] ? a : d || (d = {}))[c] = b[c]); 750 return d && oa.extend(!0, a, d), 751 a 752 } 753 var Z = [] 754 , $ = a.document 755 , _ = Object.getPrototypeOf 756 , aa = Z.slice 757 , ba = Z.concat 758 , ca = Z.push 759 , da = Z.indexOf 760 , ea = {} 761 , fa = ea.toString 762 , ga = ea.hasOwnProperty 763 , ha = ga.toString 764 , ia = ha.call(Object) 765 , ja = {} 766 , ka = function(a) { 767 return "function" == typeof a && "number" != typeof a.nodeType 768 } 769 , la = function(a) { 770 return null != a && a === a.window 771 } 772 , ma = { 773 type: !0, 774 src: !0, 775 nonce: !0, 776 noModule: !0 777 } 778 , na = "3.4.1" 779 , oa = function(a, b) { 780 return new oa.fn.init(a,b) 781 } 782 , pa = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g; 783 oa.fn = oa.prototype = { 784 jquery: na, 785 constructor: oa, 786 length: 0, 787 toArray: function() { 788 return aa.call(this) 789 }, 790 get: function(a) { 791 return null == a ? aa.call(this) : a < 0 ? this[a + this.length] : this[a] 792 }, 793 pushStack: function(a) { 794 var b = oa.merge(this.constructor(), a);
vendor: 5,748 bytes, lines 795-949
795 return b.prevObject = this, 796 b 797 }, 798 each: function(a) { 799 return oa.each(this, a) 800 }, 801 map: function(a) { 802 return this.pushStack(oa.map(this, function(b, c) { 803 return a.call(b, c, b) 804 })) 805 }, 806 slice: function() { 807 return this.pushStack(aa.apply(this, arguments)) 808 }, 809 first: function() { 810 return this.eq(0) 811 }, 812 last: function() { 813 return this.eq(-1) 814 }, 815 eq: function(a) { 816 var b = this.length 817 , c = +a + (a < 0 ? b : 0); 818 return this.pushStack(0 <= c && c < b ? [this[c]] : []) 819 }, 820 end: function() { 821 return this.prevObject || this.constructor() 822 }, 823 push: ca, 824 sort: Z.sort, 825 splice: Z.splice 826 }, 827 oa.extend = oa.fn.extend = function() { 828 var a, b, c, d, e, f, g = arguments[0] || {}, h = 1, i = arguments.length, j = !1; 829 for ("boolean" == typeof g && (j = g, 830 g = arguments[h] || {}, 831 h++), 832 "object" == typeof g || ka(g) || (g = {}), 833 h === i && (g = this, 834 h--); h < i; h++) 835 if (null != (a = arguments[h])) 836 for (b in a) 837 d = a[b], 838 "__proto__" !== b && g !== d && (j && d && (oa.isPlainObject(d) || (e = Array.isArray(d))) ? (c = g[b], 839 f = e && !Array.isArray(c) ? [] : e || oa.isPlainObject(c) ? c : {}, 840 e = !1, 841 g[b] = oa.extend(j, f, d)) : void 0 !== d && (g[b] = d)); 842 return g 843 } 844 , 845 oa.extend({ 846 expando: "jQuery" + (na + Math.random()).replace(/\D/g, ""), 847 isReady: !0, 848 error: function(a) { 849 throw new Error(a) 850 }, 851 noop: function() {}, 852 isPlainObject: function(a) { 853 var b, c; 854 return !(!a || "[object Object]" !== fa.call(a) || (b = _(a)) && ("function" != typeof (c = ga.call(b, "constructor") && b.constructor) || ha.call(c) !== ia)) 855 }, 856 isEmptyObject: function(a) { 857 var b; 858 for (b in a) 859 return !1; 860 return !0 861 }, 862 globalEval: function(a, b) { 863 c(a, { 864 nonce: b && b.nonce 865 }) 866 }, 867 each: function(a, b) { 868 var c, d = 0; 869 if (e(a)) 870 for (c = a.length; d < c && !1 !== b.call(a[d], d, a[d]); d++) 871 ; 872 else 873 for (d in a) 874 if (!1 === b.call(a[d], d, a[d])) 875 break; 876 return a 877 }, 878 trim: function(a) { 879 return null == a ? "" : (a + "").replace(pa, "") 880 }, 881 makeArray: function(a, b) { 882 var c = b || []; 883 return null != a && (e(Object(a)) ? oa.merge(c, "string" == typeof a ? [a] : a) : ca.call(c, a)), 884 c 885 }, 886 inArray: function(a, b, c) { 887 return null == b ? -1 : da.call(b, a, c) 888 }, 889 merge: function(a, b) { 890 for (var c = +b.length, d = 0, e = a.length; d < c; d++) 891 a[e++] = b[d]; 892 return a.length = e, 893 a 894 }, 895 grep: function(a, b, c) { 896 for (var d = [], e = 0, f = a.length, g = !c; e < f; e++) 897 !b(a[e], e) !== g && d.push(a[e]); 898 return d 899 }, 900 map: function(a, b, c) { 901 var d, f, g = 0, h = []; 902 if (e(a)) 903 for (d = a.length; g < d; g++) 904 null != (f = b(a[g], g, c)) && h.push(f); 905 else 906 for (g in a) 907 null != (f = b(a[g], g, c)) && h.push(f); 908 return ba.apply([], h) 909 }, 910 guid: 1, 911 support: ja 912 }), 913 "function" == typeof Symbol && (oa.fn[Symbol.iterator] = Z[Symbol.iterator]), 914 oa.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function(a, b) { 915 ea["[object " + b + "]"] = b.toLowerCase() 916 }); 917 var qa = function(a) { 918 function b(a, b, c, d) { 919 var e, f, g, h, i, j, k, m = b && b.ownerDocument, o = b ? b.nodeType : 9; 920 if (c = c || [], 921 "string" != typeof a || !a || 1 !== o && 9 !== o && 11 !== o) 922 return c; 923 if (!d && ((b ? b.ownerDocument || b : N) !== F && E(b), 924 b = b || F, 925 H)) { 926 if (11 !== o && (i = ra.exec(a))) 927 if (e = i[1]) { 928 if (9 === o) { 929 if (!(g = b.getElementById(e))) 930 return c; 931 if (g.id === e) 932 return c.push(g), 933 c 934 } else if (m && (g = m.getElementById(e)) && L(b, g) && g.id === e) 935 return c.push(g), 936 c 937 } else { 938 if (i[2]) 939 return Z.apply(c, b.getElementsByTagName(a)), 940 c; 941 if ((e = i[3]) && u.getElementsByClassName && b.getElementsByClassName) 942 return Z.apply(c, b.getElementsByClassName(e)), 943 c 944 } 945 if (u.qsa && !T[a + " "] && (!I || !I.test(a)) && (1 !== o || "object" !== b.nodeName.toLowerCase())) { 946 if (k = a, 947 m = b, 948 1 === o && ja.test(a)) { 949 for ((h = b.getAttribute("id")) ? h = h.replace(va, wa
vendor: 5,054 bytes, lines 949-1089
949) : b.setAttribute("id", h = M), 950 f = (j = y(a)).length; f--; ) 951 j[f] = "#" + h + " " + n(j[f]); 952 k = j.join(","), 953 m = sa.test(a) && l(b.parentNode) || b 954 } 955 try { 956 return Z.apply(c, m.querySelectorAll(k)), 957 c 958 } catch (b) { 959 T(a, !0) 960 } finally { 961 h === M && b.removeAttribute("id") 962 } 963 } 964 } 965 return A(a.replace(ga, "$1"), b, c, d) 966 } 967 function c() { 968 var a = []; 969 return function b(c, d) { 970 return a.push(c + " ") > v.cacheLength && delete b[a.shift()], 971 b[c + " "] = d 972 } 973 } 974 function d(a) { 975 return a[M] = !0, 976 a 977 } 978 function e(a) { 979 var b = F.createElement("fieldset"); 980 try { 981 return !!a(b) 982 } catch (a) { 983 return !1 984 } finally { 985 b.parentNode && b.parentNode.removeChild(b), 986 b = null 987 } 988 } 989 function f(a, b) { 990 for (var c = a.split("|"), d = c.length; d--; ) 991 v.attrHandle[c[d]] = b 992 } 993 function g(a, b) { 994 var c = b && a 995 , d = c && 1 === a.nodeType && 1 === b.nodeType && a.sourceIndex - b.sourceIndex; 996 if (d) 997 return d; 998 if (c) 999 for (; c = c.nextSibling; ) 1000 if (c === b) 1001 return -1; 1002 return a ? 1 : -1 1003 } 1004 function h(a) { 1005 return function(b) { 1006 return "input" === b.nodeName.toLowerCase() && b.type === a 1007 } 1008 } 1009 function i(a) { 1010 return function(b) { 1011 var c = b.nodeName.toLowerCase(); 1012 return ("input" === c || "button" === c) && b.type === a 1013 } 1014 } 1015 function j(a) { 1016 return function(b) { 1017 return "form"in b ? b.parentNode && !1 === b.disabled ? "label"in b ? "label"in b.parentNode ? b.parentNode.disabled === a : b.disabled === a : b.isDisabled === a || b.isDisabled !== !a && ya(b) === a : b.disabled === a : "label"in b && b.disabled === a 1018 } 1019 } 1020 function k(a) { 1021 return d(function(b) { 1022 return b = +b, 1023 d(function(c, d) { 1024 for (var e, f = a([], c.length, b), g = f.length; g--; ) 1025 c[e = f[g]] && (c[e] = !(d[e] = c[e])) 1026 }) 1027 }) 1028 } 1029 function l(a) { 1030 return a && void 0 !== a.getElementsByTagName && a 1031 } 1032 function m() {} 1033 function n(a) { 1034 for (var b = 0, c = a.length, d = ""; b < c; b++) 1035 d += a[b].value; 1036 return d 1037 } 1038 function o(a, b, c) { 1039 var d = b.dir 1040 , e = b.next 1041 , f = e || d 1042 , g = c && "parentNode" === f 1043 , h = P++; 1044 return b.first ? function(b, c, e) { 1045 for (; b = b[d]; ) 1046 if (1 === b.nodeType || g) 1047 return a(b, c, e); 1048 return !1 1049 } 1050 : function(b, c, i) { 1051 var j, k, l, m = [O, h]; 1052 if (i) { 1053 for (; b = b[d]; ) 1054 if ((1 === b.nodeType || g) && a(b, c, i)) 1055 return !0 1056 } else 1057 for (; b = b[d]; ) 1058 if (1 === b.nodeType || g) 1059 if (k = (l = b[M] || (b[M] = {}))[b.uniqueID] || (l[b.uniqueID] = {}), 1060 e && e === b.nodeName.toLowerCase()) 1061 b = b[d] || b; 1062 else { 1063 if ((j = k[f]) && j[0] === O && j[1] === h) 1064 return m[2] = j[2]; 1065 if ((k[f] = m)[2] = a(b, c, i)) 1066 return !0 1067 } 1068 return !1 1069 } 1070 } 1071 function p(a) { 1072 return 1 < a.length ? function(b, c, d) { 1073 for (var e = a.length; e--; ) 1074 if (!a[e](b, c, d)) 1075 return !1; 1076 return !0 1077 } 1078 : a[0] 1079 } 1080 function q(a, b, c, d, e) { 1081 for (var f, g = [], h = 0, i = a.length, j = null != b; h < i; h++) 1082 (f = a[h]) && (c && !c(f, d, e) || (g.push(f), 1083 j && b.push(h))); 1084 return g 1085 } 1086 function r(a, c, e, f, g, h) { 1087 return f && !f[M] && (f = r(f)), 1088 g && !g[M] && (g = r(g, h)), 1089 d(function(d, h, i, j) {
vendor: 4,349 bytes, lines 1090-1159
1090 var k, l, m, n = [], o = [], p = h.length, r = d || function(a, c, d) { 1091 for (var e = 0, f = c.length; e < f; e++) 1092 b(a, c[e], d); 1093 return d 1094 }(c || "*", i.nodeType ? [i] : i, []), s = !a || !d && c ? r : q(r, n, a, i, j), t = e ? g || (d ? a : p || f) ? [] : h : s; 1095 if (e && e(s, t, i, j), 1096 f) 1097 for (k = q(t, o), 1098 f(k, [], i, j), 1099 l = k.length; l--; ) 1100 (m = k[l]) && (t[o[l]] = !(s[o[l]] = m)); 1101 if (d) { 1102 if (g || a) { 1103 if (g) { 1104 for (k = [], 1105 l = t.length; l--; ) 1106 (m = t[l]) && k.push(s[l] = m); 1107 g(null, t = [], k, j) 1108 } 1109 for (l = t.length; l--; ) 1110 (m = t[l]) && -1 < (k = g ? _(d, m) : n[l]) && (d[k] = !(h[k] = m)) 1111 } 1112 } else 1113 t = q(t === h ? t.splice(p, t.length) : t), 1114 g ? g(null, h, t, j) : Z.apply(h, t) 1115 }) 1116 } 1117 function s(a) { 1118 for (var b, c, d, e = a.length, f = v.relative[a[0].type], g = f || v.relative[" "], h = f ? 1 : 0, i = o(function(a) { 1119 return a === b 1120 }, g, !0), j = o(function(a) { 1121 return -1 < _(b, a) 1122 }, g, !0), k = [function(a, c, d) { 1123 var e = !f && (d || c !== B) || ((b = c).nodeType ? i(a, c, d) : j(a, c, d)); 1124 return b = null, 1125 e 1126 } 1127 ]; h < e; h++) 1128 if (c = v.relative[a[h].type]) 1129 k = [o(p(k), c)]; 1130 else { 1131 if ((c = v.filter[a[h].type].apply(null, a[h].matches))[M]) { 1132 for (d = ++h; d < e && !v.relative[a[d].type]; d++) 1133 ; 1134 return r(1 < h && p(k), 1 < h && n(a.slice(0, h - 1).concat({ 1135 value: " " === a[h - 2].type ? "*" : "" 1136 })).replace(ga, "$1"), c, h < d && s(a.slice(h, d)), d < e && s(a = a.slice(d)), d < e && n(a)) 1137 } 1138 k.push(c) 1139 } 1140 return p(k) 1141 } 1142 var t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M = "sizzle" + 1 * new Date, N = a.document, O = 0, P = 0, Q = c(), R = c(), S = c(), T = c(), U = function(a, b) { 1143 return a === b && (D = !0), 1144 0 1145 }, V = {}.hasOwnProperty, W = [], X = W.pop, Y = W.push, Z = W.push, $ = W.slice, _ = function(a, b) { 1146 for (var c = 0, d = a.length; c < d; c++) 1147 if (a[c] === b) 1148 return c; 1149 return -1 1150 }, aa = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", ba = "[\\x20\\t\\r\\n\\f]", ca = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+", da = "\\[" + ba + "*(" + ca + ")(?:" + ba + "*([*^$|!~]?=)" + ba + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + ca + "))|)" + ba + "*\\]", ea = ":(" + ca + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + da + ")*)|.*)\\)|)", fa = new RegExp(ba + "+","g"), ga = new RegExp("^" + ba + "+|((?:^|[^\\\\])(?:\\\\.)*)" + ba + "+$","g"), ha = new RegExp("^" + ba + "*," + ba + "*"), ia = new RegExp("^" + ba + "*([>+~]|" + ba + ")" + ba + "*"), ja = new RegExp(ba + "|>"), ka = new RegExp(ea), la = new RegExp("^" + ca + "$"), ma = { 1151 ID: new RegExp("^#(" + ca + ")"), 1152 CLASS: new RegExp("^\\.(" + ca + ")"), 1153 TAG: new RegExp("^(" + ca + "|[*])"), 1154 ATTR: new RegExp("^" + da), 1155 PSEUDO: new RegExp("^" + ea), 1156 CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + ba + "*(even|odd|(([+-]|)(\\d*)n|)" + ba + "*(?:([+-]|)" + ba + "*(\\d+)|))" + ba + "*\\)|)","i"), 1157 bool: new RegExp("^(?:" + aa + ")$","i"), 1158 needsContext: new RegExp("^" + ba + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + ba + "*((?:-\\d)?\\d*)" + ba + "*\\)|)(?=[^-]|$)","i") 1159 }
vendor: 9,713 bytes, lines 1159-1366
1159, na = /HTML$/i, oa = /^(?:input|select|textarea|button)$/i, pa = /^h\d$/i, qa = /^[^{]+\{\s*\[native \w/, ra = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, sa = /[+~]/, ta = new RegExp("\\\\([\\da-f]{1,6}" + ba + "?|(" + ba + ")|.)","ig"), ua = function(a, b, c) { 1160 var d = "0x" + b - 65536; 1161 return d != d || c ? b : d < 0 ? String.fromCharCode(d + 65536) : String.fromCharCode(d >> 10 | 55296, 1023 & d | 56320) 1162 }, va = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, wa = function(a, b) { 1163 return b ? "\0" === a ? "�" : a.slice(0, -1) + "\\" + a.charCodeAt(a.length - 1).toString(16) + " " : "\\" + a 1164 }, xa = function() { 1165 E() 1166 }, ya = o(function(a) { 1167 return !0 === a.disabled && "fieldset" === a.nodeName.toLowerCase() 1168 }, { 1169 dir: "parentNode", 1170 next: "legend" 1171 }); 1172 try { 1173 Z.apply(W = $.call(N.childNodes), N.childNodes), 1174 W[N.childNodes.length].nodeType 1175 } catch (t) { 1176 Z = { 1177 apply: W.length ? function(a, b) { 1178 Y.apply(a, $.call(b)) 1179 } 1180 : function(a, b) { 1181 for (var c = a.length, d = 0; a[c++] = b[d++]; ) 1182 ; 1183 a.length = c - 1 1184 } 1185 } 1186 } 1187 for (t in u = b.support = {}, 1188 x = b.isXML = function(a) { 1189 var b = a.namespaceURI 1190 , c = (a.ownerDocument || a).documentElement; 1191 return !na.test(b || c && c.nodeName || "HTML") 1192 } 1193 , 1194 E = b.setDocument = function(a) { 1195 var b, c, d = a ? a.ownerDocument || a : N; 1196 return d !== F && 9 === d.nodeType && d.documentElement && (G = (F = d).documentElement, 1197 H = !x(F), 1198 N !== F && (c = F.defaultView) && c.top !== c && (c.addEventListener ? c.addEventListener("unload", xa, !1) : c.attachEvent && c.attachEvent("onunload", xa)), 1199 u.attributes = e(function(a) { 1200 return a.className = "i", 1201 !a.getAttribute("className") 1202 }), 1203 u.getElementsByTagName = e(function(a) { 1204 return a.appendChild(F.createComment("")), 1205 !a.getElementsByTagName("*").length 1206 }), 1207 u.getElementsByClassName = qa.test(F.getElementsByClassName), 1208 u.getById = e(function(a) { 1209 return G.appendChild(a).id = M, 1210 !F.getElementsByName || !F.getElementsByName(M).length 1211 }), 1212 u.getById ? (v.filter.ID = function(a) { 1213 var b = a.replace(ta, ua); 1214 return function(a) { 1215 return a.getAttribute("id") === b 1216 } 1217 } 1218 , 1219 v.find.ID = function(a, b) { 1220 if (void 0 !== b.getElementById && H) { 1221 var c = b.getElementById(a); 1222 return c ? [c] : [] 1223 } 1224 } 1225 ) : (v.filter.ID = function(a) { 1226 var b = a.replace(ta, ua); 1227 return function(a) { 1228 var c = void 0 !== a.getAttributeNode && a.getAttributeNode("id"); 1229 return c && c.value === b 1230 } 1231 } 1232 , 1233 v.find.ID = function(a, b) { 1234 if (void 0 !== b.getElementById && H) { 1235 var c, d, e, f = b.getElementById(a); 1236 if (f) { 1237 if ((c = f.getAttributeNode("id")) && c.value === a) 1238 return [f]; 1239 for (e = b.getElementsByName(a), 1240 d = 0; f = e[d++]; ) 1241 if ((c = f.getAttributeNode("id")) && c.value === a) 1242 return [f] 1243 } 1244 return [] 1245 } 1246 } 1247 ), 1248 v.find.TAG = u.getElementsByTagName ? function(a, b) { 1249 return void 0 !== b.getElementsByTagName ? b.getElementsByTagName(a) : u.qsa ? b.querySelectorAll(a) : void 0 1250 } 1251 : function(a, b) { 1252 var c, d = [], e = 0, f = b.getElementsByTagName(a); 1253 if ("*" === a) { 1254 for (; c = f[e++]; ) 1255 1 === c.nodeType && d.push(c); 1256 return d 1257 } 1258 return f 1259 } 1260 , 1261 v.find.CLASS = u.getElementsByClassName && function(a, b) { 1262 if (void 0 !== b.getElementsByClassName && H) 1263 return b.getElementsByClassName(a) 1264 } 1265 , 1266 J = [], 1267 I = [], 1268 (u.qsa = qa.test(F.querySelectorAll)) && (e(function(a) { 1269 G.appendChild(a).innerHTML = "<a id='" + M + "'></a><select id='" + M + "-\r\\' msallowcapture=''><option selected=''></option></select>", 1270 a.querySelectorAll("[msallowcapture^='']").length && I.push("[*^$]=" + ba + "*(?:''|\"\")"), 1271 a.querySelectorAll("[selected]").length || I.push("\\[" + ba + "*(?:value|" + aa + ")"), 1272 a.querySelectorAll("[id~=" + M + "-]").length || I.push("~="), 1273 a.querySelectorAll(":checked").length || I.push(":checked"), 1274 a.querySelectorAll("a#" + M + "+*").length || I.push(".#.+[+~]") 1275 }), 1276 e(function(a) { 1277 a.innerHTML = "<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>"; 1278 var b = F.createElement("input"); 1279 b.setAttribute("type", "hidden"), 1280 a.appendChild(b).setAttribute("name", "D"), 1281 a.querySelectorAll("[name=d]").length && I.push("name" + ba + "*[*^$|!~]?="), 1282 2 !== a.querySelectorAll(":enabled").length && I.push(":enabled", ":disabled"), 1283 G.appendChild(a).disabled = !0, 1284 2 !== a.querySelectorAll(":disabled").length && I.push(":enabled", ":disabled"), 1285 a.querySelectorAll("*,:x"), 1286 I.push(",.*:") 1287 })), 1288 (u.matchesSelector = qa.test(K = G.matches || G.webkitMatchesSelector || G.mozMatchesSelector || G.oMatchesSelector || G.msMatchesSelector)) && e(function(a) { 1289 u.disconnectedMatch = K.call(a, "*"), 1290 K.call(a, "[s!='']:x"), 1291 J.push("!=", ea) 1292 }), 1293 I = I.length && new RegExp(I.join("|")), 1294 J = J.length && new RegExp(J.join("|")), 1295 b = qa.test(G.compareDocumentPosition), 1296 L = b || qa.test(G.contains) ? function(a, b) { 1297 var c = 9 === a.nodeType ? a.documentElement : a 1298 , d = b && b.parentNode; 1299 return a === d || !(!d || 1 !== d.nodeType || !(c.contains ? c.contains(d) : a.compareDocumentPosition && 16 & a.compareDocumentPosition(d))) 1300 } 1301 : function(a, b) { 1302 if (b) 1303 for (; b = b.parentNode; ) 1304 if (b === a) 1305 return !0; 1306 return !1 1307 } 1308 , 1309 U = b ? function(a, b) { 1310 if (a === b) 1311 return D = !0, 1312 0; 1313 var c = !a.compareDocumentPosition - !b.compareDocumentPosition; 1314 return c || (1 & (c = (a.ownerDocument || a) === (b.ownerDocument || b) ? a.compareDocumentPosition(b) : 1) || !u.sortDetached && b.compareDocumentPosition(a) === c ? a === F || a.ownerDocument === N && L(N, a) ? -1 : b === F || b.ownerDocument === N && L(N, b) ? 1 : C ? _(C, a) - _(C, b) : 0 : 4 & c ? -1 : 1) 1315 } 1316 : function(a, b) { 1317 if (a === b) 1318 return D = !0, 1319 0; 1320 var c, d = 0, e = a.parentNode, f = b.parentNode, h = [a], i = [b]; 1321 if (!e || !f) 1322 return a === F ? -1 : b === F ? 1 : e ? -1 : f ? 1 : C ? _(C, a) - _(C, b) : 0; 1323 if (e === f) 1324 return g(a, b); 1325 for (c = a; c = c.parentNode; ) 1326 h.unshift(c); 1327 for (c = b; c = c.parentNode; ) 1328 i.unshift(c); 1329 for (; h[d] === i[d]; ) 1330 d++; 1331 return d ? g(h[d], i[d]) : h[d] === N ? -1 : i[d] === N ? 1 : 0 1332 } 1333 ), 1334 F 1335 } 1336 , 1337 b.matches = function(a, c) { 1338 return b(a, null, null, c) 1339 } 1340 , 1341 b.matchesSelector = function(a, c) { 1342 if ((a.ownerDocument || a) !== F && E(a), 1343 u.matchesSelector && H && !T[c + " "] && (!J || !J.test(c)) && (!I || !I.test(c))) 1344 try { 1345 var d = K.call(a, c); 1346 if (d || u.disconnectedMatch || a.document && 11 !== a.document.nodeType) 1347 return d 1348 } catch (a) { 1349 T(c, !0) 1350 } 1351 return 0 < b(c, F, null, [a]).length 1352 } 1353 , 1354 b.contains = function(a, b) { 1355 return (a.ownerDocument || a) !== F && E(a), 1356 L(a, b) 1357 } 1358 , 1359 b.attr = function(a, b) { 1360 (a.ownerDocument || a) !== F && E(a); 1361 var c = v.attrHandle[b.toLowerCase()] 1362 , d = c && V.call(v.attrHandle, b.toLowerCase()) ? c(a, b, !H) : void 0; 1363 return void 0 !== d ? d : u.attributes || !H ? a.getAttribute(b) : (d = a.getAttributeNode(b)) && d.specified ? d.value : null 1364 } 1365 , 1366 b.escape = function(a) {
vendor: 38,115 bytes, lines 1367-2340
1367 return (a + "").replace(va, wa) 1368 } 1369 , 1370 b.error = function(a) { 1371 throw new Error("Syntax error, unrecognized expression: " + a) 1372 } 1373 , 1374 b.uniqueSort = function(a) { 1375 var b, c = [], d = 0, e = 0; 1376 if (D = !u.detectDuplicates, 1377 C = !u.sortStable && a.slice(0), 1378 a.sort(U), 1379 D) { 1380 for (; b = a[e++]; ) 1381 b === a[e] && (d = c.push(e)); 1382 for (; d--; ) 1383 a.splice(c[d], 1) 1384 } 1385 return C = null, 1386 a 1387 } 1388 , 1389 w = b.getText = function(a) { 1390 var b, c = "", d = 0, e = a.nodeType; 1391 if (e) { 1392 if (1 === e || 9 === e || 11 === e) { 1393 if ("string" == typeof a.textContent) 1394 return a.textContent; 1395 for (a = a.firstChild; a; a = a.nextSibling) 1396 c += w(a) 1397 } else if (3 === e || 4 === e) 1398 return a.nodeValue 1399 } else 1400 for (; b = a[d++]; ) 1401 c += w(b); 1402 return c 1403 } 1404 , 1405 (v = b.selectors = { 1406 cacheLength: 50, 1407 createPseudo: d, 1408 match: ma, 1409 attrHandle: {}, 1410 find: {}, 1411 relative: { 1412 ">": { 1413 dir: "parentNode", 1414 first: !0 1415 }, 1416 " ": { 1417 dir: "parentNode" 1418 }, 1419 "+": { 1420 dir: "previousSibling", 1421 first: !0 1422 }, 1423 "~": { 1424 dir: "previousSibling" 1425 } 1426 }, 1427 preFilter: { 1428 ATTR: function(a) { 1429 return a[1] = a[1].replace(ta, ua), 1430 a[3] = (a[3] || a[4] || a[5] || "").replace(ta, ua), 1431 "~=" === a[2] && (a[3] = " " + a[3] + " "), 1432 a.slice(0, 4) 1433 }, 1434 CHILD: function(a) { 1435 return a[1] = a[1].toLowerCase(), 1436 "nth" === a[1].slice(0, 3) ? (a[3] || b.error(a[0]), 1437 a[4] = +(a[4] ? a[5] + (a[6] || 1) : 2 * ("even" === a[3] || "odd" === a[3])), 1438 a[5] = +(a[7] + a[8] || "odd" === a[3])) : a[3] && b.error(a[0]), 1439 a 1440 }, 1441 PSEUDO: function(a) { 1442 var b, c = !a[6] && a[2]; 1443 return ma.CHILD.test(a[0]) ? null : (a[3] ? a[2] = a[4] || a[5] || "" : c && ka.test(c) && (b = y(c, !0)) && (b = c.indexOf(")", c.length - b) - c.length) && (a[0] = a[0].slice(0, b), 1444 a[2] = c.slice(0, b)), 1445 a.slice(0, 3)) 1446 } 1447 }, 1448 filter: { 1449 TAG: function(a) { 1450 var b = a.replace(ta, ua).toLowerCase(); 1451 return "*" === a ? function() { 1452 return !0 1453 } 1454 : function(a) { 1455 return a.nodeName && a.nodeName.toLowerCase() === b 1456 } 1457 }, 1458 CLASS: function(a) { 1459 var b = Q[a + " "]; 1460 return b || (b = new RegExp("(^|" + ba + ")" + a + "(" + ba + "|$)")) && Q(a, function(a) { 1461 return b.test("string" == typeof a.className && a.className || void 0 !== a.getAttribute && a.getAttribute("class") || "") 1462 }) 1463 }, 1464 ATTR: function(a, c, d) { 1465 return function(e) { 1466 var f = b.attr(e, a); 1467 return null == f ? "!=" === c : !c || (f += "", 1468 "=" === c ? f === d : "!=" === c ? f !== d : "^=" === c ? d && 0 === f.indexOf(d) : "*=" === c ? d && -1 < f.indexOf(d) : "$=" === c ? d && f.slice(-d.length) === d : "~=" === c ? -1 < (" " + f.replace(fa, " ") + " ").indexOf(d) : "|=" === c && (f === d || f.slice(0, d.length + 1) === d + "-")) 1469 } 1470 }, 1471 CHILD: function(a, b, c, d, e) { 1472 var f = "nth" !== a.slice(0, 3) 1473 , g = "last" !== a.slice(-4) 1474 , h = "of-type" === b; 1475 return 1 === d && 0 === e ? function(a) { 1476 return !!a.parentNode 1477 } 1478 : function(b, c, i) { 1479 var j, k, l, m, n, o, p = f !== g ? "nextSibling" : "previousSibling", q = b.parentNode, r = h && b.nodeName.toLowerCase(), s = !i && !h, t = !1; 1480 if (q) { 1481 if (f) { 1482 for (; p; ) { 1483 for (m = b; m = m[p]; ) 1484 if (h ? m.nodeName.toLowerCase() === r : 1 === m.nodeType) 1485 return !1; 1486 o = p = "only" === a && !o && "nextSibling" 1487 } 1488 return !0 1489 } 1490 if (o = [g ? q.firstChild : q.lastChild], 1491 g && s) { 1492 for (t = (n = (j = (k = (l = (m = q)[M] || (m[M] = {}))[m.uniqueID] || (l[m.uniqueID] = {}))[a] || [])[0] === O && j[1]) && j[2], 1493 m = n && q.childNodes[n]; m = ++n && m && m[p] || (t = n = 0) || o.pop(); ) 1494 if (1 === m.nodeType && ++t && m === b) { 1495 k[a] = [O, n, t]; 1496 break 1497 } 1498 } else if (s && (t = n = (j = (k = (l = (m = b)[M] || (m[M] = {}))[m.uniqueID] || (l[m.uniqueID] = {}))[a] || [])[0] === O && j[1]), 1499 !1 === t) 1500 for (; (m = ++n && m && m[p] || (t = n = 0) || o.pop()) && ((h ? m.nodeName.toLowerCase() !== r : 1 !== m.nodeType) || !++t || (s && ((k = (l = m[M] || (m[M] = {}))[m.uniqueID] || (l[m.uniqueID] = {}))[a] = [O, t]), 1501 m !== b)); ) 1502 ; 1503 return (t -= e) === d || t % d == 0 && 0 <= t / d 1504 } 1505 } 1506 }, 1507 PSEUDO: function(a, c) { 1508 var e, f = v.pseudos[a] || v.setFilters[a.toLowerCase()] || b.error("unsupported pseudo: " + a); 1509 return f[M] ? f(c) : 1 < f.length ? (e = [a, a, "", c], 1510 v.setFilters.hasOwnProperty(a.toLowerCase()) ? d(function(a, b) { 1511 for (var d, e = f(a, c), g = e.length; g--; ) 1512 a[d = _(a, e[g])] = !(b[d] = e[g]) 1513 }) : function(a) { 1514 return f(a, 0, e) 1515 } 1516 ) : f 1517 } 1518 }, 1519 pseudos: { 1520 not: d(function(a) { 1521 var b = [] 1522 , c = [] 1523 , e = z(a.replace(ga, "$1")); 1524 return e[M] ? d(function(a, b, c, d) { 1525 for (var f, g = e(a, null, d, []), h = a.length; h--; ) 1526 (f = g[h]) && (a[h] = !(b[h] = f)) 1527 }) : function(a, d, f) { 1528 return b[0] = a, 1529 e(b, null, f, c), 1530 b[0] = null, 1531 !c.pop() 1532 } 1533 }), 1534 has: d(function(a) { 1535 return function(c) { 1536 return 0 < b(a, c).length 1537 } 1538 }), 1539 contains: d(function(a) { 1540 return a = a.replace(ta, ua), 1541 function(b) { 1542 return -1 < (b.textContent || w(b)).indexOf(a) 1543 } 1544 }), 1545 lang: d(function(a) { 1546 return la.test(a || "") || b.error("unsupported lang: " + a), 1547 a = a.replace(ta, ua).toLowerCase(), 1548 function(b) { 1549 var c; 1550 do { 1551 if (c = H ? b.lang : b.getAttribute("xml:lang") || b.getAttribute("lang")) 1552 return (c = c.toLowerCase()) === a || 0 === c.indexOf(a + "-") 1553 } while ((b = b.parentNode) && 1 === b.nodeType);return !1 1554 } 1555 }), 1556 target: function(b) { 1557 var c = a.location && a.location.hash; 1558 return c && c.slice(1) === b.id 1559 }, 1560 root: function(a) { 1561 return a === G 1562 }, 1563 focus: function(a) { 1564 return a === F.activeElement && (!F.hasFocus || F.hasFocus()) && !!(a.type || a.href || ~a.tabIndex) 1565 }, 1566 enabled: j(!1), 1567 disabled: j(!0), 1568 checked: function(a) { 1569 var b = a.nodeName.toLowerCase(); 1570 return "input" === b && !!a.checked || "option" === b && !!a.selected 1571 }, 1572 selected: function(a) { 1573 return a.parentNode && a.parentNode.selectedIndex, 1574 !0 === a.selected 1575 }, 1576 empty: function(a) { 1577 for (a = a.firstChild; a; a = a.nextSibling) 1578 if (a.nodeType < 6) 1579 return !1; 1580 return !0 1581 }, 1582 parent: function(a) { 1583 return !v.pseudos.empty(a) 1584 }, 1585 header: function(a) { 1586 return pa.test(a.nodeName) 1587 }, 1588 input: function(a) { 1589 return oa.test(a.nodeName) 1590 }, 1591 button: function(a) { 1592 var b = a.nodeName.toLowerCase(); 1593 return "input" === b && "button" === a.type || "button" === b 1594 }, 1595 text: function(a) { 1596 var b; 1597 return "input" === a.nodeName.toLowerCase() && "text" === a.type && (null == (b = a.getAttribute("type")) || "text" === b.toLowerCase()) 1598 }, 1599 first: k(function() { 1600 return [0] 1601 }), 1602 last: k(function(a, b) { 1603 return [b - 1] 1604 }), 1605 eq: k(function(a, b, c) { 1606 return [c < 0 ? c + b : c] 1607 }), 1608 even: k(function(a, b) { 1609 for (var c = 0; c < b; c += 2) 1610 a.push(c); 1611 return a 1612 }), 1613 odd: k(function(a, b) { 1614 for (var c = 1; c < b; c += 2) 1615 a.push(c); 1616 return a 1617 }), 1618 lt: k(function(a, b, c) { 1619 for (var d = c < 0 ? c + b : b < c ? b : c; 0 <= --d; ) 1620 a.push(d); 1621 return a 1622 }), 1623 gt: k(function(a, b, c) { 1624 for (var d = c < 0 ? c + b : c; ++d < b; ) 1625 a.push(d); 1626 return a 1627 }) 1628 } 1629 }).pseudos.nth = v.pseudos.eq, 1630 { 1631 radio: !0, 1632 checkbox: !0, 1633 file: !0, 1634 password: !0, 1635 image: !0 1636 }) 1637 v.pseudos[t] = h(t); 1638 for (t in { 1639 submit: !0, 1640 reset: !0 1641 }) 1642 v.pseudos[t] = i(t); 1643 return m.prototype = v.filters = v.pseudos, 1644 v.setFilters = new m, 1645 y = b.tokenize = function(a, c) { 1646 var d, e, f, g, h, i, j, k = R[a + " "]; 1647 if (k) 1648 return c ? 0 : k.slice(0); 1649 for (h = a, 1650 i = [], 1651 j = v.preFilter; h; ) { 1652 for (g in d && !(e = ha.exec(h)) || (e && (h = h.slice(e[0].length) || h), 1653 i.push(f = [])), 1654 d = !1, 1655 (e = ia.exec(h)) && (d = e.shift(), 1656 f.push({ 1657 value: d, 1658 type: e[0].replace(ga, " ") 1659 }), 1660 h = h.slice(d.length)), 1661 v.filter) 1662 !(e = ma[g].exec(h)) || j[g] && !(e = j[g](e)) || (d = e.shift(), 1663 f.push({ 1664 value: d, 1665 type: g, 1666 matches: e 1667 }), 1668 h = h.slice(d.length)); 1669 if (!d) 1670 break 1671 } 1672 return c ? h.length : h ? b.error(a) : R(a, i).slice(0) 1673 } 1674 , 1675 z = b.compile = function(a, c) { 1676 var e, f, g, h, i, j, k = [], l = [], m = S[a + " "]; 1677 if (!m) { 1678 for (c || (c = y(a)), 1679 e = c.length; e--; ) 1680 (m = s(c[e]))[M] ? k.push(m) : l.push(m); 1681 (m = S(a, (f = l, 1682 h = 0 < (g = k).length, 1683 i = 0 < f.length, 1684 j = function(a, c, d, e, j) { 1685 var k, l, m, n = 0, o = "0", p = a && [], r = [], s = B, t = a || i && v.find.TAG("*", j), u = O += null == s ? 1 : Math.random() || .1, w = t.length; 1686 for (j && (B = c === F || c || j); o !== w && null != (k = t[o]); o++) { 1687 if (i && k) { 1688 for (l = 0, 1689 c || k.ownerDocument === F || (E(k), 1690 d = !H); m = f[l++]; ) 1691 if (m(k, c || F, d)) { 1692 e.push(k); 1693 break 1694 } 1695 j && (O = u) 1696 } 1697 h && ((k = !m && k) && n--, 1698 a && p.push(k)) 1699 } 1700 if (n += o, 1701 h && o !== n) { 1702 for (l = 0; m = g[l++]; ) 1703 m(p, r, c, d); 1704 if (a) { 1705 if (0 < n) 1706 for (; o--; ) 1707 p[o] || r[o] || (r[o] = X.call(e)); 1708 r = q(r) 1709 } 1710 Z.apply(e, r), 1711 j && !a && 0 < r.length && 1 < n + g.length && b.uniqueSort(e) 1712 } 1713 return j && (O = u, 1714 B = s), 1715 p 1716 } 1717 , 1718 h ? d(j) : j))).selector = a 1719 } 1720 return m 1721 } 1722 , 1723 A = b.select = function(a, b, c, d) { 1724 var e, f, g, h, i, j = "function" == typeof a && a, k = !d && y(a = j.selector || a); 1725 if (c = c || [], 1726 1 === k.length) { 1727 if (2 < (f = k[0] = k[0].slice(0)).length && "ID" === (g = f[0]).type && 9 === b.nodeType && H && v.relative[f[1].type]) { 1728 if (!(b = (v.find.ID(g.matches[0].replace(ta, ua), b) || [])[0])) 1729 return c; 1730 j && (b = b.parentNode), 1731 a = a.slice(f.shift().value.length) 1732 } 1733 for (e = ma.needsContext.test(a) ? 0 : f.length; e-- && (g = f[e], 1734 !v.relative[h = g.type]); ) 1735 if ((i = v.find[h]) && (d = i(g.matches[0].replace(ta, ua), sa.test(f[0].type) && l(b.parentNode) || b))) { 1736 if (f.splice(e, 1), 1737 !(a = d.length && n(f))) 1738 return Z.apply(c, d), 1739 c; 1740 break 1741 } 1742 } 1743 return (j || z(a, k))(d, b, !H, c, !b || sa.test(a) && l(b.parentNode) || b), 1744 c 1745 } 1746 , 1747 u.sortStable = M.split("").sort(U).join("") === M, 1748 u.detectDuplicates = !!D, 1749 E(), 1750 u.sortDetached = e(function(a) { 1751 return 1 & a.compareDocumentPosition(F.createElement("fieldset")) 1752 }), 1753 e(function(a) { 1754 return a.innerHTML = "<a href='#'></a>", 1755 "#" === a.firstChild.getAttribute("href") 1756 }) || f("type|href|height|width", function(a, b, c) { 1757 if (!c) 1758 return a.getAttribute(b, "type" === b.toLowerCase() ? 1 : 2) 1759 }), 1760 u.attributes && e(function(a) { 1761 return a.innerHTML = "<input/>", 1762 a.firstChild.setAttribute("value", ""), 1763 "" === a.firstChild.getAttribute("value") 1764 }) || f("value", function(a, b, c) { 1765 if (!c && "input" === a.nodeName.toLowerCase()) 1766 return a.defaultValue 1767 }), 1768 e(function(a) { 1769 return null == a.getAttribute("disabled") 1770 }) || f(aa, function(a, b, c) { 1771 var d; 1772 if (!c) 1773 return !0 === a[b] ? b.toLowerCase() : (d = a.getAttributeNode(b)) && d.specified ? d.value : null 1774 }), 1775 b 1776 }(a); 1777 oa.find = qa, 1778 oa.expr = qa.selectors, 1779 oa.expr[":"] = oa.expr.pseudos, 1780 oa.uniqueSort = oa.unique = qa.uniqueSort, 1781 oa.text = qa.getText, 1782 oa.isXMLDoc = qa.isXML, 1783 oa.contains = qa.contains, 1784 oa.escapeSelector = qa.escape; 1785 var ra = function(a, b, c) { 1786 for (var d = [], e = void 0 !== c; (a = a[b]) && 9 !== a.nodeType; ) 1787 if (1 === a.nodeType) { 1788 if (e && oa(a).is(c)) 1789 break; 1790 d.push(a) 1791 } 1792 return d 1793 } 1794 , sa = function(a, b) { 1795 for (var c = []; a; a = a.nextSibling) 1796 1 === a.nodeType && a !== b && c.push(a); 1797 return c 1798 } 1799 , ta = oa.expr.match.needsContext 1800 , ua = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i; 1801 oa.filter = function(a, b, c) { 1802 var d = b[0]; 1803 return c && (a = ":not(" + a + ")"), 1804 1 === b.length && 1 === d.nodeType ? oa.find.matchesSelector(d, a) ? [d] : [] : oa.find.matches(a, oa.grep(b, function(a) { 1805 return 1 === a.nodeType 1806 })) 1807 } 1808 , 1809 oa.fn.extend({ 1810 find: function(a) { 1811 var b, c, d = this.length, e = this; 1812 if ("string" != typeof a) 1813 return this.pushStack(oa(a).filter(function() { 1814 for (b = 0; b < d; b++) 1815 if (oa.contains(e[b], this)) 1816 return !0 1817 })); 1818 for (c = this.pushStack([]), 1819 b = 0; b < d; b++) 1820 oa.find(a, e[b], c); 1821 return 1 < d ? oa.uniqueSort(c) : c 1822 }, 1823 filter: function(a) { 1824 return this.pushStack(g(this, a || [], !1)) 1825 }, 1826 not: function(a) { 1827 return this.pushStack(g(this, a || [], !0)) 1828 }, 1829 is: function(a) { 1830 return !!g(this, "string" == typeof a && ta.test(a) ? oa(a) : a || [], !1).length 1831 } 1832 }); 1833 var va, wa = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/; 1834 (oa.fn.init = function(a, b, c) { 1835 var d, e; 1836 if (!a) 1837 return this; 1838 if (c = c || va, 1839 "string" == typeof a) { 1840 if (!(d = "<" === a[0] && ">" === a[a.length - 1] && 3 <= a.length ? [null, a, null] : wa.exec(a)) || !d[1] && b) 1841 return !b || b.jquery ? (b || c).find(a) : this.constructor(b).find(a); 1842 if (d[1]) { 1843 if (b = b instanceof oa ? b[0] : b, 1844 oa.merge(this, oa.parseHTML(d[1], b && b.nodeType ? b.ownerDocument || b : $, !0)), 1845 ua.test(d[1]) && oa.isPlainObject(b)) 1846 for (d in b) 1847 ka(this[d]) ? this[d](b[d]) : this.attr(d, b[d]); 1848 return this 1849 } 1850 return (e = $.getElementById(d[2])) && (this[0] = e, 1851 this.length = 1), 1852 this 1853 } 1854 return a.nodeType ? (this[0] = a, 1855 this.length = 1, 1856 this) : ka(a) ? void 0 !== c.ready ? c.ready(a) : a(oa) : oa.makeArray(a, this) 1857 } 1858 ).prototype = oa.fn, 1859 va = oa($); 1860 var xa = /^(?:parents|prev(?:Until|All))/ 1861 , ya = { 1862 children: !0, 1863 contents: !0, 1864 next: !0, 1865 prev: !0 1866 }; 1867 oa.fn.extend({ 1868 has: function(a) { 1869 var b = oa(a, this) 1870 , c = b.length; 1871 return this.filter(function() { 1872 for (var a = 0; a < c; a++) 1873 if (oa.contains(this, b[a])) 1874 return !0 1875 }) 1876 }, 1877 closest: function(a, b) { 1878 var c, d = 0, e = this.length, f = [], g = "string" != typeof a && oa(a); 1879 if (!ta.test(a)) 1880 for (; d < e; d++) 1881 for (c = this[d]; c && c !== b; c = c.parentNode) 1882 if (c.nodeType < 11 && (g ? -1 < g.index(c) : 1 === c.nodeType && oa.find.matchesSelector(c, a))) { 1883 f.push(c); 1884 break 1885 } 1886 return this.pushStack(1 < f.length ? oa.uniqueSort(f) : f) 1887 }, 1888 index: function(a) { 1889 return a ? "string" == typeof a ? da.call(oa(a), this[0]) : da.call(this, a.jquery ? a[0] : a) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1 1890 }, 1891 add: function(a, b) { 1892 return this.pushStack(oa.uniqueSort(oa.merge(this.get(), oa(a, b)))) 1893 }, 1894 addBack: function(a) { 1895 return this.add(null == a ? this.prevObject : this.prevObject.filter(a)) 1896 } 1897 }), 1898 oa.each({ 1899 parent: function(a) { 1900 var b = a.parentNode; 1901 return b && 11 !== b.nodeType ? b : null 1902 }, 1903 parents: function(a) { 1904 return ra(a, "parentNode") 1905 }, 1906 parentsUntil: function(a, b, c) { 1907 return ra(a, "parentNode", c) 1908 }, 1909 next: function(a) { 1910 return h(a, "nextSibling") 1911 }, 1912 prev: function(a) { 1913 return h(a, "previousSibling") 1914 }, 1915 nextAll: function(a) { 1916 return ra(a, "nextSibling") 1917 }, 1918 prevAll: function(a) { 1919 return ra(a, "previousSibling") 1920 }, 1921 nextUntil: function(a, b, c) { 1922 return ra(a, "nextSibling", c) 1923 }, 1924 prevUntil: function(a, b, c) { 1925 return ra(a, "previousSibling", c) 1926 }, 1927 siblings: function(a) { 1928 return sa((a.parentNode || {}).firstChild, a) 1929 }, 1930 children: function(a) { 1931 return sa(a.firstChild) 1932 }, 1933 contents: function(a) { 1934 return void 0 !== a.contentDocument ? a.contentDocument : (f(a, "template") && (a = a.content || a), 1935 oa.merge([], a.childNodes)) 1936 } 1937 }, function(a, b) { 1938 oa.fn[a] = function(c, d) { 1939 var e = oa.map(this, b, c); 1940 return "Until" !== a.slice(-5) && (d = c), 1941 d && "string" == typeof d && (e = oa.filter(d, e)), 1942 1 < this.length && (ya[a] || oa.uniqueSort(e), 1943 xa.test(a) && e.reverse()), 1944 this.pushStack(e) 1945 } 1946 }); 1947 var za = /[^\x20\t\r\n\f]+/g; 1948 oa.Callbacks = function(a) { 1949 var b, c; 1950 a = "string" == typeof a ? (b = a, 1951 c = {}, 1952 oa.each(b.match(za) || [], function(a, b) { 1953 c[b] = !0 1954 }), 1955 c) : oa.extend({}, a); 1956 var e, f, g, h, i = [], j = [], k = -1, l = function() { 1957 for (h = h || a.once, 1958 g = e = !0; j.length; k = -1) 1959 for (f = j.shift(); ++k < i.length; ) 1960 !1 === i[k].apply(f[0], f[1]) && a.stopOnFalse && (k = i.length, 1961 f = !1); 1962 a.memory || (f = !1), 1963 e = !1, 1964 h && (i = f ? [] : "") 1965 }, m = { 1966 add: function() { 1967 return i && (f && !e && (k = i.length - 1, 1968 j.push(f)), 1969 function b(c) { 1970 oa.each(c, function(c, e) { 1971 ka(e) ? a.unique && m.has(e) || i.push(e) : e && e.length && "string" !== d(e) && b(e) 1972 }) 1973 }(arguments), 1974 f && !e && l()), 1975 this 1976 }, 1977 remove: function() { 1978 return oa.each(arguments, function(a, b) { 1979 for (var c; -1 < (c = oa.inArray(b, i, c)); ) 1980 i.splice(c, 1), 1981 c <= k && k-- 1982 }), 1983 this 1984 }, 1985 has: function(a) { 1986 return a ? -1 < oa.inArray(a, i) : 0 < i.length 1987 }, 1988 empty: function() { 1989 return i && (i = []), 1990 this 1991 }, 1992 disable: function() { 1993 return h = j = [], 1994 i = f = "", 1995 this 1996 }, 1997 disabled: function() { 1998 return !i 1999 }, 2000 lock: function() { 2001 return h = j = [], 2002 f || e || (i = f = ""), 2003 this 2004 }, 2005 locked: function() { 2006 return !!h 2007 }, 2008 fireWith: function(a, b) { 2009 return h || (b = [a, (b = b || []).slice ? b.slice() : b], 2010 j.push(b), 2011 e || l()), 2012 this 2013 }, 2014 fire: function() { 2015 return m.fireWith(this, arguments), 2016 this 2017 }, 2018 fired: function() { 2019 return !!g 2020 } 2021 }; 2022 return m 2023 } 2024 , 2025 oa.extend({ 2026 Deferred: function(b) { 2027 var c = [["notify", "progress", oa.Callbacks("memory"), oa.Callbacks("memory"), 2], ["resolve", "done", oa.Callbacks("once memory"), oa.Callbacks("once memory"), 0, "resolved"], ["reject", "fail", oa.Callbacks("once memory"), oa.Callbacks("once memory"), 1, "rejected"]] 2028 , d = "pending" 2029 , e = { 2030 state: function() { 2031 return d 2032 }, 2033 always: function() { 2034 return f.done(arguments).fail(arguments), 2035 this 2036 }, 2037 catch: function(a) { 2038 return e.then(null, a) 2039 }, 2040 pipe: function() { 2041 var a = arguments; 2042 return oa.Deferred(function(b) { 2043 oa.each(c, function(c, d) { 2044 var e = ka(a[d[4]]) && a[d[4]]; 2045 f[d[1]](function() { 2046 var a = e && e.apply(this, arguments); 2047 a && ka(a.promise) ? a.promise().progress(b.notify).done(b.resolve).fail(b.reject) : b[d[0] + "With"](this, e ? [a] : arguments) 2048 }) 2049 }), 2050 a = null 2051 }).promise() 2052 }, 2053 then: function(b, d, e) { 2054 function f(b, c, d, e) { 2055 return function() { 2056 var h = this 2057 , k = arguments 2058 , l = function() { 2059 var a, l; 2060 if (!(b < g)) { 2061 if ((a = d.apply(h, k)) === c.promise()) 2062 throw new TypeError("Thenable self-resolution"); 2063 l = a && ("object" == typeof a || "function" == typeof a) && a.then, 2064 ka(l) ? e ? l.call(a, f(g, c, i, e), f(g, c, j, e)) : (g++, 2065 l.call(a, f(g, c, i, e), f(g, c, j, e), f(g, c, i, c.notifyWith))) : (d !== i && (h = void 0, 2066 k = [a]), 2067 (e || c.resolveWith)(h, k)) 2068 } 2069 } 2070 , m = e ? l : function() { 2071 try { 2072 l() 2073 } catch (a) { 2074 oa.Deferred.exceptionHook && oa.Deferred.exceptionHook(a, m.stackTrace), 2075 g <= b + 1 && (d !== j && (h = void 0, 2076 k = [a]), 2077 c.rejectWith(h, k)) 2078 } 2079 } 2080 ; 2081 b ? m() : (oa.Deferred.getStackHook && (m.stackTrace = oa.Deferred.getStackHook()), 2082 a.setTimeout(m)) 2083 } 2084 } 2085 var g = 0; 2086 return oa.Deferred(function(a) { 2087 c[0][3].add(f(0, a, ka(e) ? e : i, a.notifyWith)), 2088 c[1][3].add(f(0, a, ka(b) ? b : i)), 2089 c[2][3].add(f(0, a, ka(d) ? d : j)) 2090 }).promise() 2091 }, 2092 promise: function(a) { 2093 return null != a ? oa.extend(a, e) : e 2094 } 2095 } 2096 , f = {}; 2097 return oa.each(c, function(a, b) { 2098 var g = b[2] 2099 , h = b[5]; 2100 e[b[1]] = g.add, 2101 h && g.add(function() { 2102 d = h 2103 }, c[3 - a][2].disable, c[3 - a][3].disable, c[0][2].lock, c[0][3].lock), 2104 g.add(b[3].fire), 2105 f[b[0]] = function() { 2106 return f[b[0] + "With"](this === f ? void 0 : this, arguments), 2107 this 2108 } 2109 , 2110 f[b[0] + "With"] = g.fireWith 2111 }), 2112 e.promise(f), 2113 b && b.call(f, f), 2114 f 2115 }, 2116 when: function(a) { 2117 var b = arguments.length 2118 , c = b 2119 , d = Array(c) 2120 , e = aa.call(arguments) 2121 , f = oa.Deferred() 2122 , g = function(a) { 2123 return function(c) { 2124 d[a] = this, 2125 e[a] = 1 < arguments.length ? aa.call(arguments) : c, 2126 --b || f.resolveWith(d, e) 2127 } 2128 }; 2129 if (b <= 1 && (k(a, f.done(g(c)).resolve, f.reject, !b), 2130 "pending" === f.state() || ka(e[c] && e[c].then))) 2131 return f.then(); 2132 for (; c--; ) 2133 k(e[c], g(c), f.reject); 2134 return f.promise() 2135 } 2136 }); 2137 var Aa = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; 2138 oa.Deferred.exceptionHook = function(b, c) { 2139 a.console && a.console.warn && b && Aa.test(b.name) && a.console.warn("jQuery.Deferred exception: " + b.message, b.stack, c) 2140 } 2141 , 2142 oa.readyException = function(b) { 2143 a.setTimeout(function() { 2144 throw b 2145 }) 2146 } 2147 ; 2148 var Ba = oa.Deferred(); 2149 oa.fn.ready = function(a) { 2150 return Ba.then(a).catch(function(a) { 2151 oa.readyException(a) 2152 }), 2153 this 2154 } 2155 , 2156 oa.extend({ 2157 isReady: !1, 2158 readyWait: 1, 2159 ready: function(a) { 2160 (!0 === a ? --oa.readyWait : oa.isReady) || (oa.isReady = !0) !== a && 0 < --oa.readyWait || Ba.resolveWith($, [oa]) 2161 } 2162 }), 2163 oa.ready.then = Ba.then, 2164 "complete" === $.readyState || "loading" !== $.readyState && !$.documentElement.doScroll ? a.setTimeout(oa.ready) : ($.addEventListener("DOMContentLoaded", l), 2165 a.addEventListener("load", l)); 2166 var Ca = function(a, b, c, e, f, g, h) { 2167 var i = 0 2168 , j = a.length 2169 , k = null == c; 2170 if ("object" === d(c)) 2171 for (i in f = !0, 2172 c) 2173 Ca(a, b, i, c[i], !0, g, h); 2174 else if (void 0 !== e && (f = !0, 2175 ka(e) || (h = !0), 2176 k && (h ? (b.call(a, e), 2177 b = null) : (k = b, 2178 b = function(a, b, c) { 2179 return k.call(oa(a), c) 2180 } 2181 )), 2182 b)) 2183 for (; i < j; i++) 2184 b(a[i], c, h ? e : e.call(a[i], i, b(a[i], c))); 2185 return f ? a : k ? b.call(a) : j ? b(a[0], c) : g 2186 } 2187 , Da = /^-ms-/ 2188 , Ea = /-([a-z])/g 2189 , Fa = function(a) { 2190 return 1 === a.nodeType || 9 === a.nodeType || !+a.nodeType 2191 }; 2192 o.uid = 1, 2193 o.prototype = { 2194 cache: function(a) { 2195 var b = a[this.expando]; 2196 return b || (b = {}, 2197 Fa(a) && (a.nodeType ? a[this.expando] = b : Object.defineProperty(a, this.expando, { 2198 value: b, 2199 configurable: !0 2200 }))), 2201 b 2202 }, 2203 set: function(a, b, c) { 2204 var d, e = this.cache(a); 2205 if ("string" == typeof b) 2206 e[n(b)] = c; 2207 else 2208 for (d in b) 2209 e[n(d)] = b[d]; 2210 return e 2211 }, 2212 get: function(a, b) { 2213 return void 0 === b ? this.cache(a) : a[this.expando] && a[this.expando][n(b)] 2214 }, 2215 access: function(a, b, c) { 2216 return void 0 === b || b && "string" == typeof b && void 0 === c ? this.get(a, b) : (this.set(a, b, c), 2217 void 0 !== c ? c : b) 2218 }, 2219 remove: function(a, b) { 2220 var c, d = a[this.expando]; 2221 if (void 0 !== d) { 2222 if (void 0 !== b) { 2223 c = (b = Array.isArray(b) ? b.map(n) : (b = n(b))in d ? [b] : b.match(za) || []).length; 2224 for (; c--; ) 2225 delete d[b[c]] 2226 } 2227 (void 0 === b || oa.isEmptyObject(d)) && (a.nodeType ? a[this.expando] = void 0 : delete a[this.expando]) 2228 } 2229 }, 2230 hasData: function(a) { 2231 var b = a[this.expando]; 2232 return void 0 !== b && !oa.isEmptyObject(b) 2233 } 2234 }; 2235 var Ga = new o 2236 , Ha = new o 2237 , Ia = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/ 2238 , Ja = /[A-Z]/g; 2239 oa.extend({ 2240 hasData: function(a) { 2241 return Ha.hasData(a) || Ga.hasData(a) 2242 }, 2243 data: function(a, b, c) { 2244 return Ha.access(a, b, c) 2245 }, 2246 removeData: function(a, b) { 2247 Ha.remove(a, b) 2248 }, 2249 _data: function(a, b, c) { 2250 return Ga.access(a, b, c) 2251 }, 2252 _removeData: function(a, b) { 2253 Ga.remove(a, b) 2254 } 2255 }), 2256 oa.fn.extend({ 2257 data: function(a, b) { 2258 var c, d, e, f = this[0], g = f && f.attributes; 2259 if (void 0 === a) { 2260 if (this.length && (e = Ha.get(f), 2261 1 === f.nodeType && !Ga.get(f, "hasDataAttrs"))) { 2262 for (c = g.length; c--; ) 2263 g[c] && 0 === (d = g[c].name).indexOf("data-") && (d = n(d.slice(5)), 2264 p(f, d, e[d])); 2265 Ga.set(f, "hasDataAttrs", !0) 2266 } 2267 return e 2268 } 2269 return "object" == typeof a ? this.each(function() { 2270 Ha.set(this, a) 2271 }) : Ca(this, function(b) { 2272 var c; 2273 if (f && void 0 === b) 2274 return void 0 !== (c = Ha.get(f, a)) ? c : void 0 !== (c = p(f, a)) ? c : void 0; 2275 this.each(function() { 2276 Ha.set(this, a, b) 2277 }) 2278 }, null, b, 1 < arguments.length, null, !0) 2279 }, 2280 removeData: function(a) { 2281 return this.each(function() { 2282 Ha.remove(this, a) 2283 }) 2284 } 2285 }), 2286 oa.extend({ 2287 queue: function(a, b, c) { 2288 var d; 2289 if (a) 2290 return b = (b || "fx") + "queue", 2291 d = Ga.get(a, b), 2292 c && (!d || Array.isArray(c) ? d = Ga.access(a, b, oa.makeArray(c)) : d.push(c)), 2293 d || [] 2294 }, 2295 dequeue: function(a, b) { 2296 b = b || "fx"; 2297 var c = oa.queue(a, b) 2298 , d = c.length 2299 , e = c.shift() 2300 , f = oa._queueHooks(a, b); 2301 "inprogress" === e && (e = c.shift(), 2302 d--), 2303 e && ("fx" === b && c.unshift("inprogress"), 2304 delete f.stop, 2305 e.call(a, function() { 2306 oa.dequeue(a, b) 2307 }, f)), 2308 !d && f && f.empty.fire() 2309 }, 2310 _queueHooks: function(a, b) { 2311 var c = b + "queueHooks"; 2312 return Ga.get(a, c) || Ga.access(a, c, { 2313 empty: oa.Callbacks("once memory").add(function() { 2314 Ga.remove(a, [b + "queue", c]) 2315 }) 2316 }) 2317 } 2318 }), 2319 oa.fn.extend({ 2320 queue: function(a, b) { 2321 var c = 2; 2322 return "string" != typeof a && (b = a, 2323 a = "fx", 2324 c--), 2325 arguments.length < c ? oa.queue(this[0], a) : void 0 === b ? this : this.each(function() { 2326 var c = oa.queue(this, a, b); 2327 oa._queueHooks(this, a), 2328 "fx" === a && "inprogress" !== c[0] && oa.dequeue(this, a) 2329 }) 2330 }, 2331 dequeue: function(a) { 2332 return this.each(function() { 2333 oa.dequeue(this, a) 2334 }) 2335 }, 2336 clearQueue: function(a) { 2337 return this.queue(a || "fx", []) 2338 }, 2339 promise: function(a, b) { 2340 var c, d = 1, e = oa.Deferred(), f = this, g = this.length, h
vendor: 4,362 bytes, lines 2340-2450
2340= function() { 2341 --d || e.resolveWith(f, [f]) 2342 }; 2343 for ("string" != typeof a && (b = a, 2344 a = void 0), 2345 a = a || "fx"; g--; ) 2346 (c = Ga.get(f[g], a + "queueHooks")) && c.empty && (d++, 2347 c.empty.add(h)); 2348 return h(), 2349 e.promise(b) 2350 } 2351 }); 2352 var Ka = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source 2353 , La = new RegExp("^(?:([+-])=|)(" + Ka + ")([a-z%]*)$","i") 2354 , Ma = ["Top", "Right", "Bottom", "Left"] 2355 , Na = $.documentElement 2356 , Oa = function(a) { 2357 return oa.contains(a.ownerDocument, a) 2358 } 2359 , Pa = { 2360 composed: !0 2361 }; 2362 Na.getRootNode && (Oa = function(a) { 2363 return oa.contains(a.ownerDocument, a) || a.getRootNode(Pa) === a.ownerDocument 2364 } 2365 ); 2366 var Qa = function(a, b) { 2367 return "none" === (a = b || a).style.display || "" === a.style.display && Oa(a) && "none" === oa.css(a, "display") 2368 } 2369 , Ra = function(a, b, c, d) { 2370 var e, f, g = {}; 2371 for (f in b) 2372 g[f] = a.style[f], 2373 a.style[f] = b[f]; 2374 for (f in e = c.apply(a, d || []), 2375 b) 2376 a.style[f] = g[f]; 2377 return e 2378 } 2379 , Sa = {}; 2380 oa.fn.extend({ 2381 show: function() { 2382 return r(this, !0) 2383 }, 2384 hide: function() { 2385 return r(this) 2386 }, 2387 toggle: function(a) { 2388 return "boolean" == typeof a ? a ? this.show() : this.hide() : this.each(function() { 2389 Qa(this) ? oa(this).show() : oa(this).hide() 2390 }) 2391 } 2392 }); 2393 var Ta = /^(?:checkbox|radio)$/i 2394 , Ua = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i 2395 , Va = /^$|^module$|\/(?:java|ecma)script/i 2396 , Wa = { 2397 option: [1, "<select multiple='multiple'>", "</select>"], 2398 thead: [1, "<table>", "</table>"], 2399 col: [2, "<table><colgroup>", "</colgroup></table>"], 2400 tr: [2, "<table><tbody>", "</tbody></table>"], 2401 td: [3, "<table><tbody><tr>", "</tr></tbody></table>"], 2402 _default: [0, "", ""] 2403 }; 2404 Wa.optgroup = Wa.option, 2405 Wa.tbody = Wa.tfoot = Wa.colgroup = Wa.caption = Wa.thead, 2406 Wa.th = Wa.td; 2407 var Xa, Ya, Za = /<|&#?\w+;/; 2408 Xa = $.createDocumentFragment().appendChild($.createElement("div")), 2409 (Ya = $.createElement("input")).setAttribute("type", "radio"), 2410 Ya.setAttribute("checked", "checked"), 2411 Ya.setAttribute("name", "t"), 2412 Xa.appendChild(Ya), 2413 ja.checkClone = Xa.cloneNode(!0).cloneNode(!0).lastChild.checked, 2414 Xa.innerHTML = "<textarea>x</textarea>", 2415 ja.noCloneChecked = !!Xa.cloneNode(!0).lastChild.defaultValue; 2416 var $a = /^key/ 2417 , _a = /^(?:mouse|pointer|contextmenu|drag|drop)|click/ 2418 , ab = /^([^.]*)(?:\.(.+)|)/; 2419 oa.event = { 2420 global: {}, 2421 add: function(a, b, c, d, e) { 2422 var f, g, h, i, j, k, l, m, n, o, p, q = Ga.get(a); 2423 if (q) 2424 for (c.handler && (c = (f = c).handler, 2425 e = f.selector), 2426 e && oa.find.matchesSelector(Na, e), 2427 c.guid || (c.guid = oa.guid++), 2428 (i = q.events) || (i = q.events = {}), 2429 (g = q.handle) || (g = q.handle = function(b) { 2430 return void 0 !== oa && oa.event.triggered !== b.type ? oa.event.dispatch.apply(a, arguments) : void 0 2431 } 2432 ), 2433 j = (b = (b || "").match(za) || [""]).length; j--; ) 2434 n = p = (h = ab.exec(b[j]) || [])[1], 2435 o = (h[2] || "").split(".").sort(), 2436 n && (l = oa.event.special[n] || {}, 2437 n = (e ? l.delegateType : l.bindType) || n, 2438 l = oa.event.special[n] || {}, 2439 k = oa.extend({ 2440 type: n, 2441 origType: p, 2442 data: d, 2443 handler: c, 2444 guid: c.guid, 2445 selector: e, 2446 needsContext: e && oa.expr.match.needsContext.test(e), 2447 namespace: o.join(".") 2448 }, f), 2449 (m = i[n]) || ((m = i[n] = []).delegateCount = 0, 2450 l.setup && !1 !== l.setup.call(a, d, o, g) || a.addEventListener && a.addEventListener(n, g)),
vendor: 2,422 bytes, lines 2451-2490
2451 l.add && (l.add.call(a, k), 2452 k.handler.guid || (k.handler.guid = c.guid)), 2453 e ? m.splice(m.delegateCount++, 0, k) : m.push(k), 2454 oa.event.global[n] = !0) 2455 }, 2456 remove: function(a, b, c, d, e) { 2457 var f, g, h, i, j, k, l, m, n, o, p, q = Ga.hasData(a) && Ga.get(a); 2458 if (q && (i = q.events)) { 2459 for (j = (b = (b || "").match(za) || [""]).length; j--; ) 2460 if (n = p = (h = ab.exec(b[j]) || [])[1], 2461 o = (h[2] || "").split(".").sort(), 2462 n) { 2463 for (l = oa.event.special[n] || {}, 2464 m = i[n = (d ? l.delegateType : l.bindType) || n] || [], 2465 h = h[2] && new RegExp("(^|\\.)" + o.join("\\.(?:.*\\.|)") + "(\\.|$)"), 2466 g = f = m.length; f--; ) 2467 k = m[f], 2468 !e && p !== k.origType || c && c.guid !== k.guid || h && !h.test(k.namespace) || d && d !== k.selector && ("**" !== d || !k.selector) || (m.splice(f, 1), 2469 k.selector && m.delegateCount--, 2470 l.remove && l.remove.call(a, k)); 2471 g && !m.length && (l.teardown && !1 !== l.teardown.call(a, o, q.handle) || oa.removeEvent(a, n, q.handle), 2472 delete i[n]) 2473 } else 2474 for (n in i) 2475 oa.event.remove(a, n + b[j], c, d, !0); 2476 oa.isEmptyObject(i) && Ga.remove(a, "handle events") 2477 } 2478 }, 2479 dispatch: function(a) { 2480 var b, c, d, e, f, g, h = oa.event.fix(a), i = new Array(arguments.length), j = (Ga.get(this, "events") || {})[h.type] || [], k = oa.event.special[h.type] || {}; 2481 for (i[0] = h, 2482 b = 1; b < arguments.length; b++) 2483 i[b] = arguments[b]; 2484 if (h.delegateTarget = this, 2485 !k.preDispatch || !1 !== k.preDispatch.call(this, h)) { 2486 for (g = oa.event.handlers.call(this, h, j), 2487 b = 0; (e = g[b++]) && !h.isPropagationStopped(); ) 2488 for (h.currentTarget = e.elem, 2489 c = 0; (f = e.handlers[c++]) && !h.isImmediatePropagationStopped(); ) 2490 h.rnamespace && !1 !== f.namespace && !h.rnamespace.test(f.
vendor: 5,057 bytes, lines 2490-2624
2490namespace) || (h.handleObj = f, 2491 h.data = f.data, 2492 void 0 !== (d = ((oa.event.special[f.origType] || {}).handle || f.handler).apply(e.elem, i)) && !1 === (h.result = d) && (h.preventDefault(), 2493 h.stopPropagation())); 2494 return k.postDispatch && k.postDispatch.call(this, h), 2495 h.result 2496 } 2497 }, 2498 handlers: function(a, b) { 2499 var c, d, e, f, g, h = [], i = b.delegateCount, j = a.target; 2500 if (i && j.nodeType && !("click" === a.type && 1 <= a.button)) 2501 for (; j !== this; j = j.parentNode || this) 2502 if (1 === j.nodeType && ("click" !== a.type || !0 !== j.disabled)) { 2503 for (f = [], 2504 g = {}, 2505 c = 0; c < i; c++) 2506 void 0 === g[e = (d = b[c]).selector + " "] && (g[e] = d.needsContext ? -1 < oa(e, this).index(j) : oa.find(e, this, null, [j]).length), 2507 g[e] && f.push(d); 2508 f.length && h.push({ 2509 elem: j, 2510 handlers: f 2511 }) 2512 } 2513 return j = this, 2514 i < b.length && h.push({ 2515 elem: j, 2516 handlers: b.slice(i) 2517 }), 2518 h 2519 }, 2520 addProp: function(a, b) { 2521 Object.defineProperty(oa.Event.prototype, a, { 2522 enumerable: !0, 2523 configurable: !0, 2524 get: ka(b) ? function() { 2525 if (this.originalEvent) 2526 return b(this.originalEvent) 2527 } 2528 : function() { 2529 if (this.originalEvent) 2530 return this.originalEvent[a] 2531 } 2532 , 2533 set: function(b) { 2534 Object.defineProperty(this, a, { 2535 enumerable: !0, 2536 configurable: !0, 2537 writable: !0, 2538 value: b 2539 }) 2540 } 2541 }) 2542 }, 2543 fix: function(a) { 2544 return a[oa.expando] ? a : new oa.Event(a) 2545 }, 2546 special: { 2547 load: { 2548 noBubble: !0 2549 }, 2550 click: { 2551 setup: function(a) { 2552 var b = this || a; 2553 return Ta.test(b.type) && b.click && f(b, "input") && z(b, "click", v), 2554 !1 2555 }, 2556 trigger: function(a) { 2557 var b = this || a; 2558 return Ta.test(b.type) && b.click && f(b, "input") && z(b, "click"), 2559 !0 2560 }, 2561 _default: function(a) { 2562 var b = a.target; 2563 return Ta.test(b.type) && b.click && f(b, "input") && Ga.get(b, "click") || f(b, "a") 2564 } 2565 }, 2566 beforeunload: { 2567 postDispatch: function(a) { 2568 void 0 !== a.result && a.originalEvent && (a.originalEvent.returnValue = a.result) 2569 } 2570 } 2571 } 2572 }, 2573 oa.removeEvent = function(a, b, c) { 2574 a.removeEventListener && a.removeEventListener(b, c) 2575 } 2576 , 2577 oa.Event = function(a, b) { 2578 if (!(this instanceof oa.Event)) 2579 return new oa.Event(a,b); 2580 a && a.type ? (this.originalEvent = a, 2581 this.type = a.type, 2582 this.isDefaultPrevented = a.defaultPrevented || void 0 === a.defaultPrevented && !1 === a.returnValue ? v : w, 2583 this.target = a.target && 3 === a.target.nodeType ? a.target.parentNode : a.target, 2584 this.currentTarget = a.currentTarget, 2585 this.relatedTarget = a.relatedTarget) : this.type = a, 2586 b && oa.extend(this, b), 2587 this.timeStamp = a && a.timeStamp || Date.now(), 2588 this[oa.expando] = !0 2589 } 2590 , 2591 oa.Event.prototype = { 2592 constructor: oa.Event, 2593 isDefaultPrevented: w, 2594 isPropagationStopped: w, 2595 isImmediatePropagationStopped: w, 2596 isSimulated: !1, 2597 preventDefault: function() { 2598 var a = this.originalEvent; 2599 this.isDefaultPrevented = v, 2600 a && !this.isSimulated && a.preventDefault() 2601 }, 2602 stopPropagation: function() { 2603 var a = this.originalEvent; 2604 this.isPropagationStopped = v, 2605 a && !this.isSimulated && a.stopPropagation() 2606 }, 2607 stopImmediatePropagation: function() { 2608 var a = this.originalEvent; 2609 this.isImmediatePropagationStopped = v, 2610 a && !this.isSimulated && a.stopImmediatePropagation(), 2611 this.stopPropagation() 2612 } 2613 }, 2614 oa.each({ 2615 altKey: !0, 2616 bubbles: !0, 2617 cancelable: !0, 2618 changedTouches: !0, 2619 ctrlKey: !0, 2620 detail: !0, 2621 eventPhase: !0, 2622 metaKey: !0, 2623 pageX: !0, 2624 pageY: !0,
vendor: 7,359 bytes, lines 2625-2831
2625 shiftKey: !0, 2626 view: !0, 2627 char: !0, 2628 code: !0, 2629 charCode: !0, 2630 key: !0, 2631 keyCode: !0, 2632 button: !0, 2633 buttons: !0, 2634 clientX: !0, 2635 clientY: !0, 2636 offsetX: !0, 2637 offsetY: !0, 2638 pointerId: !0, 2639 pointerType: !0, 2640 screenX: !0, 2641 screenY: !0, 2642 targetTouches: !0, 2643 toElement: !0, 2644 touches: !0, 2645 which: function(a) { 2646 var b = a.button; 2647 return null == a.which && $a.test(a.type) ? null != a.charCode ? a.charCode : a.keyCode : !a.which && void 0 !== b && _a.test(a.type) ? 1 & b ? 1 : 2 & b ? 3 : 4 & b ? 2 : 0 : a.which 2648 } 2649 }, oa.event.addProp), 2650 oa.each({ 2651 focus: "focusin", 2652 blur: "focusout" 2653 }, function(a, b) { 2654 oa.event.special[a] = { 2655 setup: function() { 2656 return z(this, a, x), 2657 !1 2658 }, 2659 trigger: function() { 2660 return z(this, a), 2661 !0 2662 }, 2663 delegateType: b 2664 } 2665 }), 2666 oa.each({ 2667 mouseenter: "mouseover", 2668 mouseleave: "mouseout", 2669 pointerenter: "pointerover", 2670 pointerleave: "pointerout" 2671 }, function(a, b) { 2672 oa.event.special[a] = { 2673 delegateType: b, 2674 bindType: b, 2675 handle: function(a) { 2676 var c, d = a.relatedTarget, e = a.handleObj; 2677 return d && (d === this || oa.contains(this, d)) || (a.type = e.origType, 2678 c = e.handler.apply(this, arguments), 2679 a.type = b), 2680 c 2681 } 2682 } 2683 }), 2684 oa.fn.extend({ 2685 on: function(a, b, c, d) { 2686 return y(this, a, b, c, d) 2687 }, 2688 one: function(a, b, c, d) { 2689 return y(this, a, b, c, d, 1) 2690 }, 2691 off: function(a, b, c) { 2692 var d, e; 2693 if (a && a.preventDefault && a.handleObj) 2694 return d = a.handleObj, 2695 oa(a.delegateTarget).off(d.namespace ? d.origType + "." + d.namespace : d.origType, d.selector, d.handler), 2696 this; 2697 if ("object" == typeof a) { 2698 for (e in a) 2699 this.off(e, b, a[e]); 2700 return this 2701 } 2702 return !1 !== b && "function" != typeof b || (c = b, 2703 b = void 0), 2704 !1 === c && (c = w), 2705 this.each(function() { 2706 oa.event.remove(this, a, c, b) 2707 }) 2708 } 2709 }); 2710 var bb = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi 2711 , cb = /<script|<style|<link/i 2712 , db = /checked\s*(?:[^=]|=\s*.checked.)/i 2713 , eb = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g; 2714 oa.extend({ 2715 htmlPrefilter: function(a) { 2716 return a.replace(bb, "<$1></$2>") 2717 }, 2718 clone: function(a, b, c) { 2719 var d, e, f, g, h, i, j, k = a.cloneNode(!0), l = Oa(a); 2720 if (!(ja.noCloneChecked || 1 !== a.nodeType && 11 !== a.nodeType || oa.isXMLDoc(a))) 2721 for (g = s(k), 2722 d = 0, 2723 e = (f = s(a)).length; d < e; d++) 2724 h = f[d], 2725 i = g[d], 2726 "input" === (j = i.nodeName.toLowerCase()) && Ta.test(h.type) ? i.checked = h.checked : "input" !== j && "textarea" !== j || (i.defaultValue = h.defaultValue); 2727 if (b) 2728 if (c) 2729 for (f = f || s(a), 2730 g = g || s(k), 2731 d = 0, 2732 e = f.length; d < e; d++) 2733 D(f[d], g[d]); 2734 else 2735 D(a, k); 2736 return 0 < (g = s(k, "script")).length && t(g, !l && s(a, "script")), 2737 k 2738 }, 2739 cleanData: function(a) { 2740 for (var b, c, d, e = oa.event.special, f = 0; void 0 !== (c = a[f]); f++) 2741 if (Fa(c)) { 2742 if (b = c[Ga.expando]) { 2743 if (b.events) 2744 for (d in b.events) 2745 e[d] ? oa.event.remove(c, d) : oa.removeEvent(c, d, b.handle); 2746 c[Ga.expando] = void 0 2747 } 2748 c[Ha.expando] && (c[Ha.expando] = void 0) 2749 } 2750 } 2751 }), 2752 oa.fn.extend({ 2753 detach: function(a) { 2754 return F(this, a, !0) 2755 }, 2756 remove: function(a) { 2757 return F(this, a) 2758 }, 2759 text: function(a) { 2760 return Ca(this, function(a) { 2761 return void 0 === a ? oa.text(this) : this.empty().each(function() { 2762 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || (this.textContent = a) 2763 }) 2764 }, null, a, arguments.length) 2765 }, 2766 append: function() { 2767 return E(this, arguments, function(a) { 2768 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || A(this, a).appendChild(a) 2769 }) 2770 }, 2771 prepend: function() { 2772 return E(this, arguments, function(a) { 2773 if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) { 2774 var b = A(this, a); 2775 b.insertBefore(a, b.firstChild) 2776 } 2777 }) 2778 }, 2779 before: function() { 2780 return E(this, arguments, function(a) { 2781 this.parentNode && this.parentNode.insertBefore(a, this) 2782 }) 2783 }, 2784 after: function() { 2785 return E(this, arguments, function(a) { 2786 this.parentNode && this.parentNode.insertBefore(a, this.nextSibling) 2787 }) 2788 }, 2789 empty: function() { 2790 for (var a, b = 0; null != (a = this[b]); b++) 2791 1 === a.nodeType && (oa.cleanData(s(a, !1)), 2792 a.textContent = ""); 2793 return this 2794 }, 2795 clone: function(a, b) { 2796 return a = null != a && a, 2797 b = null == b ? a : b, 2798 this.map(function() { 2799 return oa.clone(this, a, b) 2800 }) 2801 }, 2802 html: function(a) { 2803 return Ca(this, function(a) { 2804 var b = this[0] || {} 2805 , c = 0 2806 , d = this.length; 2807 if (void 0 === a && 1 === b.nodeType) 2808 return b.innerHTML; 2809 if ("string" == typeof a && !cb.test(a) && !Wa[(Ua.exec(a) || ["", ""])[1].toLowerCase()]) { 2810 a = oa.htmlPrefilter(a); 2811 try { 2812 for (; c < d; c++) 2813 1 === (b = this[c] || {}).nodeType && (oa.cleanData(s(b, !1)), 2814 b.innerHTML = a); 2815 b = 0 2816 } catch (a) {} 2817 } 2818 b && this.empty().append(a) 2819 }, null, a, arguments.length) 2820 }, 2821 replaceWith: function() { 2822 var a = []; 2823 return E(this, arguments, function(b) { 2824 var c = this.parentNode; 2825 oa.inArray(this, a) < 0 && (oa.cleanData(s(this)), 2826 c && c.replaceChild(b, this)) 2827 }, a) 2828 } 2829 }), 2830 oa.each({ 2831 appendTo: "append",
vendor: 4,232 bytes, lines 2832-2957
2832 prependTo: "prepend", 2833 insertBefore: "before", 2834 insertAfter: "after", 2835 replaceAll: "replaceWith" 2836 }, function(a, b) { 2837 oa.fn[a] = function(a) { 2838 for (var c, d = [], e = oa(a), f = e.length - 1, g = 0; g <= f; g++) 2839 c = g === f ? this : this.clone(!0), 2840 oa(e[g])[b](c), 2841 ca.apply(d, c.get()); 2842 return this.pushStack(d) 2843 } 2844 }); 2845 var fb = new RegExp("^(" + Ka + ")(?!px)[a-z%]+$","i") 2846 , gb = function(b) { 2847 var c = b.ownerDocument.defaultView; 2848 return c && c.opener || (c = a), 2849 c.getComputedStyle(b) 2850 } 2851 , hb = new RegExp(Ma.join("|"),"i"); 2852 !function() { 2853 function b() { 2854 if (j) { 2855 i.style.cssText = "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0", 2856 j.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%", 2857 Na.appendChild(i).appendChild(j); 2858 var b = a.getComputedStyle(j); 2859 d = "1%" !== b.top, 2860 h = 12 === c(b.marginLeft), 2861 j.style.right = "60%", 2862 g = 36 === c(b.right), 2863 e = 36 === c(b.width), 2864 j.style.position = "absolute", 2865 f = 12 === c(j.offsetWidth / 3), 2866 Na.removeChild(i), 2867 j = null 2868 } 2869 } 2870 function c(a) { 2871 return Math.round(parseFloat(a)) 2872 } 2873 var d, e, f, g, h, i = $.createElement("div"), j = $.createElement("div"); 2874 j.style && (j.style.backgroundClip = "content-box", 2875 j.cloneNode(!0).style.backgroundClip = "", 2876 ja.clearCloneStyle = "content-box" === j.style.backgroundClip, 2877 oa.extend(ja, { 2878 boxSizingReliable: function() { 2879 return b(), 2880 e 2881 }, 2882 pixelBoxStyles: function() { 2883 return b(), 2884 g 2885 }, 2886 pixelPosition: function() { 2887 return b(), 2888 d 2889 }, 2890 reliableMarginLeft: function() { 2891 return b(), 2892 h 2893 }, 2894 scrollboxSize: function() { 2895 return b(), 2896 f 2897 } 2898 })) 2899 }(); 2900 var ib = ["Webkit", "Moz", "ms"] 2901 , jb = $.createElement("div").style 2902 , kb = {} 2903 , lb = /^(none|table(?!-c[ea]).+)/ 2904 , mb = /^--/ 2905 , nb = { 2906 position: "absolute", 2907 visibility: "hidden", 2908 display: "block" 2909 } 2910 , ob = { 2911 letterSpacing: "0", 2912 fontWeight: "400" 2913 }; 2914 oa.extend({ 2915 cssHooks: { 2916 opacity: { 2917 get: function(a, b) { 2918 if (b) { 2919 var c = G(a, "opacity"); 2920 return "" === c ? "1" : c 2921 } 2922 } 2923 } 2924 }, 2925 cssNumber: { 2926 animationIterationCount: !0, 2927 columnCount: !0, 2928 fillOpacity: !0, 2929 flexGrow: !0, 2930 flexShrink: !0, 2931 fontWeight: !0, 2932 gridArea: !0, 2933 gridColumn: !0, 2934 gridColumnEnd: !0, 2935 gridColumnStart: !0, 2936 gridRow: !0, 2937 gridRowEnd: !0, 2938 gridRowStart: !0, 2939 lineHeight: !0, 2940 opacity: !0, 2941 order: !0, 2942 orphans: !0, 2943 widows: !0, 2944 zIndex: !0, 2945 zoom: !0 2946 }, 2947 cssProps: {}, 2948 style: function(a, b, c, d) { 2949 if (a && 3 !== a.nodeType && 8 !== a.nodeType && a.style) { 2950 var e, f, g, h = n(b), i = mb.test(b), j = a.style; 2951 if (i || (b = I(h)), 2952 g = oa.cssHooks[b] || oa.cssHooks[h], 2953 void 0 === c) 2954 return g && "get"in g && void 0 !== (e = g.get(a, !1, d)) ? e : j[b]; 2955 "string" == (f = typeof c) && (e = La.exec(c)) && e[1] && (c = q(a, b, e), 2956 f = "number"), 2957 null != c && c == c && ("number" !== f || i || (c += e && e[3] || (
vendor: 6,625 bytes, lines 2957-3119
2957oa.cssNumber[h] ? "" : "px")), 2958 ja.clearCloneStyle || "" !== c || 0 !== b.indexOf("background") || (j[b] = "inherit"), 2959 g && "set"in g && void 0 === (c = g.set(a, c, d)) || (i ? j.setProperty(b, c) : j[b] = c)) 2960 } 2961 }, 2962 css: function(a, b, c, d) { 2963 var e, f, g, h = n(b); 2964 return mb.test(b) || (b = I(h)), 2965 (g = oa.cssHooks[b] || oa.cssHooks[h]) && "get"in g && (e = g.get(a, !0, c)), 2966 void 0 === e && (e = G(a, b, d)), 2967 "normal" === e && b in ob && (e = ob[b]), 2968 "" === c || c ? (f = parseFloat(e), 2969 !0 === c || isFinite(f) ? f || 0 : e) : e 2970 } 2971 }), 2972 oa.each(["height", "width"], function(a, b) { 2973 oa.cssHooks[b] = { 2974 get: function(a, c, d) { 2975 if (c) 2976 return !lb.test(oa.css(a, "display")) || a.getClientRects().length && a.getBoundingClientRect().width ? L(a, b, d) : Ra(a, nb, function() { 2977 return L(a, b, d) 2978 }) 2979 }, 2980 set: function(a, c, d) { 2981 var e, f = gb(a), g = !ja.scrollboxSize() && "absolute" === f.position, h = (g || d) && "border-box" === oa.css(a, "boxSizing", !1, f), i = d ? K(a, b, d, h, f) : 0; 2982 return h && g && (i -= Math.ceil(a["offset" + b[0].toUpperCase() + b.slice(1)] - parseFloat(f[b]) - K(a, b, "border", !1, f) - .5)), 2983 i && (e = La.exec(c)) && "px" !== (e[3] || "px") && (a.style[b] = c, 2984 c = oa.css(a, b)), 2985 J(0, c, i) 2986 } 2987 } 2988 }), 2989 oa.cssHooks.marginLeft = H(ja.reliableMarginLeft, function(a, b) { 2990 if (b) 2991 return (parseFloat(G(a, "marginLeft")) || a.getBoundingClientRect().left - Ra(a, { 2992 marginLeft: 0 2993 }, function() { 2994 return a.getBoundingClientRect().left 2995 })) + "px" 2996 }), 2997 oa.each({ 2998 margin: "", 2999 padding: "", 3000 border: "Width" 3001 }, function(a, b) { 3002 oa.cssHooks[a + b] = { 3003 expand: function(c) { 3004 for (var d = 0, e = {}, f = "string" == typeof c ? c.split(" ") : [c]; d < 4; d++) 3005 e[a + Ma[d] + b] = f[d] || f[d - 2] || f[0]; 3006 return e 3007 } 3008 }, 3009 "margin" !== a && (oa.cssHooks[a + b].set = J) 3010 }), 3011 oa.fn.extend({ 3012 css: function(a, b) { 3013 return Ca(this, function(a, b, c) { 3014 var d, e, f = {}, g = 0; 3015 if (Array.isArray(b)) { 3016 for (d = gb(a), 3017 e = b.length; g < e; g++) 3018 f[b[g]] = oa.css(a, b[g], !1, d); 3019 return f 3020 } 3021 return void 0 !== c ? oa.style(a, b, c) : oa.css(a, b) 3022 }, a, b, 1 < arguments.length) 3023 } 3024 }), 3025 ((oa.Tween = M).prototype = { 3026 constructor: M, 3027 init: function(a, b, c, d, e, f) { 3028 this.elem = a, 3029 this.prop = c, 3030 this.easing = e || oa.easing._default, 3031 this.options = b, 3032 this.start = this.now = this.cur(), 3033 this.end = d, 3034 this.unit = f || (oa.cssNumber[c] ? "" : "px") 3035 }, 3036 cur: function() { 3037 var a = M.propHooks[this.prop]; 3038 return a && a.get ? a.get(this) : M.propHooks._default.get(this) 3039 }, 3040 run: function(a) { 3041 var b, c = M.propHooks[this.prop]; 3042 return this.options.duration ? this.pos = b = oa.easing[this.easing](a, this.options.duration * a, 0, 1, this.options.duration) : this.pos = b = a, 3043 this.now = (this.end - this.start) * b + this.start, 3044 this.options.step && this.options.step.call(this.elem, this.now, this), 3045 c && c.set ? c.set(this) : M.propHooks._default.set(this), 3046 this 3047 } 3048 }).init.prototype = M.prototype, 3049 (M.propHooks = { 3050 _default: { 3051 get: function(a) { 3052 var b; 3053 return 1 !== a.elem.nodeType || null != a.elem[a.prop] && null == a.elem.style[a.prop] ? a.elem[a.prop] : (b = oa.css(a.elem, a.prop, "")) && "auto" !== b ? b : 0 3054 }, 3055 set: function(a) { 3056 oa.fx.step[a.prop] ? oa.fx.step[a.prop](a) : 1 !== a.elem.nodeType || !oa.cssHooks[a.prop] && null == a.elem.style[I(a.prop)] ? a.elem[a.prop] = a.now : oa.style(a.elem, a.prop, a.now + a.unit) 3057 } 3058 } 3059 }).scrollTop = M.propHooks.scrollLeft = { 3060 set: function(a) { 3061 a.elem.nodeType && a.elem.parentNode && (a.elem[a.prop] = a.now) 3062 } 3063 }, 3064 oa.easing = { 3065 linear: function(a) { 3066 return a 3067 }, 3068 swing: function(a) { 3069 return .5 - Math.cos(a * Math.PI) / 2 3070 }, 3071 _default: "swing" 3072 }, 3073 oa.fx = M.prototype.init, 3074 oa.fx.step = {}; 3075 var pb, qb, rb, sb, tb = /^(?:toggle|show|hide)$/, ub = /queueHooks$/; 3076 oa.Animation = oa.extend(R, { 3077 tweeners: { 3078 "*": [function(a, b) { 3079 var c = this.createTween(a, b); 3080 return q(c.elem, a, La.exec(b), c), 3081 c 3082 } 3083 ] 3084 }, 3085 tweener: function(a, b) { 3086 ka(a) ? (b = a, 3087 a = ["*"]) : a = a.match(za); 3088 for (var c, d = 0, e = a.length; d < e; d++) 3089 c = a[d], 3090 R.tweeners[c] = R.tweeners[c] || [], 3091 R.tweeners[c].unshift(b) 3092 }, 3093 prefilters: [function(a, b, c) { 3094 var d, e, f, g, h, i, j, k, l = "width"in b || "height"in b, m = this, n = {}, o = a.style, p = a.nodeType && Qa(a), q = Ga.get(a, "fxshow"); 3095 for (d in c.queue || (null == (g = oa._queueHooks(a, "fx")).unqueued && (g.unqueued = 0, 3096 h = g.empty.fire, 3097 g.empty.fire = function() { 3098 g.unqueued || h() 3099 } 3100 ), 3101 g.unqueued++, 3102 m.always(function() { 3103 m.always(function() { 3104 g.unqueued--, 3105 oa.queue(a, "fx").length || g.empty.fire() 3106 }) 3107 })), 3108 b) 3109 if (e = b[d], 3110 tb.test(e)) { 3111 if (delete b[d], 3112 f = f || "toggle" === e, 3113 e === (p ? "hide" : "show")) { 3114 if ("show" !== e || !q || void 0 === q[d]) 3115 continue; 3116 p = !0 3117 } 3118 n[d] = q && q[d] || oa.style(a, d) 3119 }
vendor: 6,050 bytes, lines 3120-3290
3120 if ((i = !oa.isEmptyObject(b)) || !oa.isEmptyObject(n)) 3121 for (d in l && 1 === a.nodeType && (c.overflow = [o.overflow, o.overflowX, o.overflowY], 3122 null == (j = q && q.display) && (j = Ga.get(a, "display")), 3123 "none" === (k = oa.css(a, "display")) && (j ? k = j : (r([a], !0), 3124 j = a.style.display || j, 3125 k = oa.css(a, "display"), 3126 r([a]))), 3127 ("inline" === k || "inline-block" === k && null != j) && "none" === oa.css(a, "float") && (i || (m.done(function() { 3128 o.display = j 3129 }), 3130 null == j && (k = o.display, 3131 j = "none" === k ? "" : k)), 3132 o.display = "inline-block")), 3133 c.overflow && (o.overflow = "hidden", 3134 m.always(function() { 3135 o.overflow = c.overflow[0], 3136 o.overflowX = c.overflow[1], 3137 o.overflowY = c.overflow[2] 3138 })), 3139 i = !1, 3140 n) 3141 i || (q ? "hidden"in q && (p = q.hidden) : q = Ga.access(a, "fxshow", { 3142 display: j 3143 }), 3144 f && (q.hidden = !p), 3145 p && r([a], !0), 3146 m.done(function() { 3147 for (d in p || r([a]), 3148 Ga.remove(a, "fxshow"), 3149 n) 3150 oa.style(a, d, n[d]) 3151 })), 3152 i = Q(p ? q[d] : 0, d, m), 3153 d in q || (q[d] = i.start, 3154 p && (i.end = i.start, 3155 i.start = 0)) 3156 } 3157 ], 3158 prefilter: function(a, b) { 3159 b ? R.prefilters.unshift(a) : R.prefilters.push(a) 3160 } 3161 }), 3162 oa.speed = function(a, b, c) { 3163 var d = a && "object" == typeof a ? oa.extend({}, a) : { 3164 complete: c || !c && b || ka(a) && a, 3165 duration: a, 3166 easing: c && b || b && !ka(b) && b 3167 }; 3168 return oa.fx.off ? d.duration = 0 : "number" != typeof d.duration && (d.duration in oa.fx.speeds ? d.duration = oa.fx.speeds[d.duration] : d.duration = oa.fx.speeds._default), 3169 null != d.queue && !0 !== d.queue || (d.queue = "fx"), 3170 d.old = d.complete, 3171 d.complete = function() { 3172 ka(d.old) && d.old.call(this), 3173 d.queue && oa.dequeue(this, d.queue) 3174 } 3175 , 3176 d 3177 } 3178 , 3179 oa.fn.extend({ 3180 fadeTo: function(a, b, c, d) { 3181 return this.filter(Qa).css("opacity", 0).show().end().animate({ 3182 opacity: b 3183 }, a, c, d) 3184 }, 3185 animate: function(a, b, c, d) { 3186 var e = oa.isEmptyObject(a) 3187 , f = oa.speed(b, c, d) 3188 , g = function() { 3189 var b = R(this, oa.extend({}, a), f); 3190 (e || Ga.get(this, "finish")) && b.stop(!0) 3191 }; 3192 return g.finish = g, 3193 e || !1 === f.queue ? this.each(g) : this.queue(f.queue, g) 3194 }, 3195 stop: function(a, b, c) { 3196 var d = function(a) { 3197 var b = a.stop; 3198 delete a.stop, 3199 b(c) 3200 }; 3201 return "string" != typeof a && (c = b, 3202 b = a, 3203 a = void 0), 3204 b && !1 !== a && this.queue(a || "fx", []), 3205 this.each(function() { 3206 var b = !0 3207 , e = null != a && a + "queueHooks" 3208 , f = oa.timers 3209 , g = Ga.get(this); 3210 if (e) 3211 g[e] && g[e].stop && d(g[e]); 3212 else 3213 for (e in g) 3214 g[e] && g[e].stop && ub.test(e) && d(g[e]); 3215 for (e = f.length; e--; ) 3216 f[e].elem !== this || null != a && f[e].queue !== a || (f[e].anim.stop(c), 3217 b = !1, 3218 f.splice(e, 1)); 3219 !b && c || oa.dequeue(this, a) 3220 }) 3221 }, 3222 finish: function(a) { 3223 return !1 !== a && (a = a || "fx"), 3224 this.each(function() { 3225 var b, c = Ga.get(this), d = c[a + "queue"], e = c[a + "queueHooks"], f = oa.timers, g = d ? d.length : 0; 3226 for (c.finish = !0, 3227 oa.queue(this, a, []), 3228 e && e.stop && e.stop.call(this, !0), 3229 b = f.length; b--; ) 3230 f[b].elem === this && f[b].queue === a && (f[b].anim.stop(!0), 3231 f.splice(b, 1)); 3232 for (b = 0; b < g; b++) 3233 d[b] && d[b].finish && d[b].finish.call(this); 3234 delete c.finish 3235 }) 3236 } 3237 }), 3238 oa.each(["toggle", "show", "hide"], function(a, b) { 3239 var c = oa.fn[b]; 3240 oa.fn[b] = function(a, d, e) { 3241 return null == a || "boolean" == typeof a ? c.apply(this, arguments) : this.animate(P(b, !0), a, d, e) 3242 } 3243 }), 3244 oa.each({ 3245 slideDown: P("show"), 3246 slideUp: P("hide"), 3247 slideToggle: P("toggle"), 3248 fadeIn: { 3249 opacity: "show" 3250 }, 3251 fadeOut: { 3252 opacity: "hide" 3253 }, 3254 fadeToggle: { 3255 opacity: "toggle" 3256 } 3257 }, function(a, b) { 3258 oa.fn[a] = function(a, c, d) { 3259 return this.animate(b, a, c, d) 3260 } 3261 }), 3262 oa.timers = [], 3263 oa.fx.tick = function() { 3264 var a, b = 0, c = oa.timers; 3265 for (pb = Date.now(); b < c.length; b++) 3266 (a = c[b])() || c[b] !== a || c.splice(b--, 1); 3267 c.length || oa.fx.stop(), 3268 pb = void 0 3269 } 3270 , 3271 oa.fx.timer = function(a) { 3272 oa.timers.push(a), 3273 oa.fx.start() 3274 } 3275 , 3276 oa.fx.interval = 13, 3277 oa.fx.start = function() { 3278 qb || (qb = !0, 3279 N()) 3280 } 3281 , 3282 oa.fx.stop = function() { 3283 qb = null 3284 } 3285 , 3286 oa.fx.speeds = { 3287 slow: 600, 3288 fast: 200, 3289 _default: 400 3290 },
vendor: 23,946 bytes, lines 3291-3881
3291 oa.fn.delay = function(b, c) { 3292 return b = oa.fx && oa.fx.speeds[b] || b, 3293 c = c || "fx", 3294 this.queue(c, function(c, d) { 3295 var e = a.setTimeout(c, b); 3296 d.stop = function() { 3297 a.clearTimeout(e) 3298 } 3299 }) 3300 } 3301 , 3302 rb = $.createElement("input"), 3303 sb = $.createElement("select").appendChild($.createElement("option")), 3304 rb.type = "checkbox", 3305 ja.checkOn = "" !== rb.value, 3306 ja.optSelected = sb.selected, 3307 (rb = $.createElement("input")).value = "t", 3308 rb.type = "radio", 3309 ja.radioValue = "t" === rb.value; 3310 var vb, wb = oa.expr.attrHandle; 3311 oa.fn.extend({ 3312 attr: function(a, b) { 3313 return Ca(this, oa.attr, a, b, 1 < arguments.length) 3314 }, 3315 removeAttr: function(a) { 3316 return this.each(function() { 3317 oa.removeAttr(this, a) 3318 }) 3319 } 3320 }), 3321 oa.extend({ 3322 attr: function(a, b, c) { 3323 var d, e, f = a.nodeType; 3324 if (3 !== f && 8 !== f && 2 !== f) 3325 return void 0 === a.getAttribute ? oa.prop(a, b, c) : (1 === f && oa.isXMLDoc(a) || (e = oa.attrHooks[b.toLowerCase()] || (oa.expr.match.bool.test(b) ? vb : void 0)), 3326 void 0 !== c ? null === c ? void oa.removeAttr(a, b) : e && "set"in e && void 0 !== (d = e.set(a, c, b)) ? d : (a.setAttribute(b, c + ""), 3327 c) : e && "get"in e && null !== (d = e.get(a, b)) ? d : null == (d = oa.find.attr(a, b)) ? void 0 : d) 3328 }, 3329 attrHooks: { 3330 type: { 3331 set: function(a, b) { 3332 if (!ja.radioValue && "radio" === b && f(a, "input")) { 3333 var c = a.value; 3334 return a.setAttribute("type", b), 3335 c && (a.value = c), 3336 b 3337 } 3338 } 3339 } 3340 }, 3341 removeAttr: function(a, b) { 3342 var c, d = 0, e = b && b.match(za); 3343 if (e && 1 === a.nodeType) 3344 for (; c = e[d++]; ) 3345 a.removeAttribute(c) 3346 } 3347 }), 3348 vb = { 3349 set: function(a, b, c) { 3350 return !1 === b ? oa.removeAttr(a, c) : a.setAttribute(c, c), 3351 c 3352 } 3353 }, 3354 oa.each(oa.expr.match.bool.source.match(/\w+/g), function(a, b) { 3355 var c = wb[b] || oa.find.attr; 3356 wb[b] = function(a, b, d) { 3357 var e, f, g = b.toLowerCase(); 3358 return d || (f = wb[g], 3359 wb[g] = e, 3360 e = null != c(a, b, d) ? g : null, 3361 wb[g] = f), 3362 e 3363 } 3364 }); 3365 var xb = /^(?:input|select|textarea|button)$/i 3366 , yb = /^(?:a|area)$/i; 3367 oa.fn.extend({ 3368 prop: function(a, b) { 3369 return Ca(this, oa.prop, a, b, 1 < arguments.length) 3370 }, 3371 removeProp: function(a) { 3372 return this.each(function() { 3373 delete this[oa.propFix[a] || a] 3374 }) 3375 } 3376 }), 3377 oa.extend({ 3378 prop: function(a, b, c) { 3379 var d, e, f = a.nodeType; 3380 if (3 !== f && 8 !== f && 2 !== f) 3381 return 1 === f && oa.isXMLDoc(a) || (b = oa.propFix[b] || b, 3382 e = oa.propHooks[b]), 3383 void 0 !== c ? e && "set"in e && void 0 !== (d = e.set(a, c, b)) ? d : a[b] = c : e && "get"in e && null !== (d = e.get(a, b)) ? d : a[b] 3384 }, 3385 propHooks: { 3386 tabIndex: { 3387 get: function(a) { 3388 var b = oa.find.attr(a, "tabindex"); 3389 return b ? parseInt(b, 10) : xb.test(a.nodeName) || yb.test(a.nodeName) && a.href ? 0 : -1 3390 } 3391 } 3392 }, 3393 propFix: { 3394 for: "htmlFor", 3395 class: "className" 3396 } 3397 }), 3398 ja.optSelected || (oa.propHooks.selected = { 3399 get: function(a) { 3400 var b = a.parentNode; 3401 return b && b.parentNode && b.parentNode.selectedIndex, 3402 null 3403 }, 3404 set: function(a) { 3405 var b = a.parentNode; 3406 b && (b.selectedIndex, 3407 b.parentNode && b.parentNode.selectedIndex) 3408 } 3409 }), 3410 oa.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function() { 3411 oa.propFix[this.toLowerCase()] = this 3412 }), 3413 oa.fn.extend({ 3414 addClass: function(a) { 3415 var b, c, d, e, f, g, h, i = 0; 3416 if (ka(a)) 3417 return this.each(function(b) { 3418 oa(this).addClass(a.call(this, b, T(this))) 3419 }); 3420 if ((b = U(a)).length) 3421 for (; c = this[i++]; ) 3422 if (e = T(c), 3423 d = 1 === c.nodeType && " " + S(e) + " ") { 3424 for (g = 0; f = b[g++]; ) 3425 d.indexOf(" " + f + " ") < 0 && (d += f + " "); 3426 e !== (h = S(d)) && c.setAttribute("class", h) 3427 } 3428 return this 3429 }, 3430 removeClass: function(a) { 3431 var b, c, d, e, f, g, h, i = 0; 3432 if (ka(a)) 3433 return this.each(function(b) { 3434 oa(this).removeClass(a.call(this, b, T(this))) 3435 }); 3436 if (!arguments.length) 3437 return this.attr("class", ""); 3438 if ((b = U(a)).length) 3439 for (; c = this[i++]; ) 3440 if (e = T(c), 3441 d = 1 === c.nodeType && " " + S(e) + " ") { 3442 for (g = 0; f = b[g++]; ) 3443 for (; -1 < d.indexOf(" " + f + " "); ) 3444 d = d.replace(" " + f + " ", " "); 3445 e !== (h = S(d)) && c.setAttribute("class", h) 3446 } 3447 return this 3448 }, 3449 toggleClass: function(a, b) { 3450 var c = typeof a 3451 , d = "string" === c || Array.isArray(a); 3452 return "boolean" == typeof b && d ? b ? this.addClass(a) : this.removeClass(a) : ka(a) ? this.each(function(c) { 3453 oa(this).toggleClass(a.call(this, c, T(this), b), b) 3454 }) : this.each(function() { 3455 var b, e, f, g; 3456 if (d) 3457 for (e = 0, 3458 f = oa(this), 3459 g = U(a); b = g[e++]; ) 3460 f.hasClass(b) ? f.removeClass(b) : f.addClass(b); 3461 else 3462 void 0 !== a && "boolean" !== c || ((b = T(this)) && Ga.set(this, "__className__", b), 3463 this.setAttribute && this.setAttribute("class", b || !1 === a ? "" : Ga.get(this, "__className__") || "")) 3464 }) 3465 }, 3466 hasClass: function(a) { 3467 var b, c, d = 0; 3468 for (b = " " + a + " "; c = this[d++]; ) 3469 if (1 === c.nodeType && -1 < (" " + S(T(c)) + " ").indexOf(b)) 3470 return !0; 3471 return !1 3472 } 3473 }); 3474 var zb = /\r/g; 3475 oa.fn.extend({ 3476 val: function(a) { 3477 var b, c, d, e = this[0]; 3478 return arguments.length ? (d = ka(a), 3479 this.each(function(c) { 3480 var e; 3481 1 === this.nodeType && (null == (e = d ? a.call(this, c, oa(this).val()) : a) ? e = "" : "number" == typeof e ? e += "" : Array.isArray(e) && (e = oa.map(e, function(a) { 3482 return null == a ? "" : a + "" 3483 })), 3484 (b = oa.valHooks[this.type] || oa.valHooks[this.nodeName.toLowerCase()]) && "set"in b && void 0 !== b.set(this, e, "value") || (this.value = e)) 3485 })) : e ? (b = oa.valHooks[e.type] || oa.valHooks[e.nodeName.toLowerCase()]) && "get"in b && void 0 !== (c = b.get(e, "value")) ? c : "string" == typeof (c = e.value) ? c.replace(zb, "") : null == c ? "" : c : void 0 3486 } 3487 }), 3488 oa.extend({ 3489 valHooks: { 3490 option: { 3491 get: function(a) { 3492 var b = oa.find.attr(a, "value"); 3493 return null != b ? b : S(oa.text(a)) 3494 } 3495 }, 3496 select: { 3497 get: function(a) { 3498 var b, c, d, e = a.options, g = a.selectedIndex, h = "select-one" === a.type, i = h ? null : [], j = h ? g + 1 : e.length; 3499 for (d = g < 0 ? j : h ? g : 0; d < j; d++) 3500 if (((c = e[d]).selected || d === g) && !c.disabled && (!c.parentNode.disabled || !f(c.parentNode, "optgroup"))) { 3501 if (b = oa(c).val(), 3502 h) 3503 return b; 3504 i.push(b) 3505 } 3506 return i 3507 }, 3508 set: function(a, b) { 3509 for (var c, d, e = a.options, f = oa.makeArray(b), g = e.length; g--; ) 3510 ((d = e[g]).selected = -1 < oa.inArray(oa.valHooks.option.get(d), f)) && (c = !0); 3511 return c || (a.selectedIndex = -1), 3512 f 3513 } 3514 } 3515 } 3516 }), 3517 oa.each(["radio", "checkbox"], function() { 3518 oa.valHooks[this] = { 3519 set: function(a, b) { 3520 if (Array.isArray(b)) 3521 return a.checked = -1 < oa.inArray(oa(a).val(), b) 3522 } 3523 }, 3524 ja.checkOn || (oa.valHooks[this].get = function(a) { 3525 return null === a.getAttribute("value") ? "on" : a.value 3526 } 3527 ) 3528 }), 3529 ja.focusin = "onfocusin"in a; 3530 var Ab = /^(?:focusinfocus|focusoutblur)$/ 3531 , Bb = function(a) { 3532 a.stopPropagation() 3533 }; 3534 oa.extend(oa.event, { 3535 trigger: function(b, c, d, e) { 3536 var f, g, h, i, j, k, l, m, n = [d || $], o = ga.call(b, "type") ? b.type : b, p = ga.call(b, "namespace") ? b.namespace.split(".") : []; 3537 if (g = m = h = d = d || $, 3538 3 !== d.nodeType && 8 !== d.nodeType && !Ab.test(o + oa.event.triggered) && (-1 < o.indexOf(".") && (o = (p = o.split(".")).shift(), 3539 p.sort()), 3540 j = o.indexOf(":") < 0 && "on" + o, 3541 (b = b[oa.expando] ? b : new oa.Event(o,"object" == typeof b && b)).isTrigger = e ? 2 : 3, 3542 b.namespace = p.join("."), 3543 b.rnamespace = b.namespace ? new RegExp("(^|\\.)" + p.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, 3544 b.result = void 0, 3545 b.target || (b.target = d), 3546 c = null == c ? [b] : oa.makeArray(c, [b]), 3547 l = oa.event.special[o] || {}, 3548 e || !l.trigger || !1 !== l.trigger.apply(d, c))) { 3549 if (!e && !l.noBubble && !la(d)) { 3550 for (i = l.delegateType || o, 3551 Ab.test(i + o) || (g = g.parentNode); g; g = g.parentNode) 3552 n.push(g), 3553 h = g; 3554 h === (d.ownerDocument || $) && n.push(h.defaultView || h.parentWindow || a) 3555 } 3556 for (f = 0; (g = n[f++]) && !b.isPropagationStopped(); ) 3557 m = g, 3558 b.type = 1 < f ? i : l.bindType || o, 3559 (k = (Ga.get(g, "events") || {})[b.type] && Ga.get(g, "handle")) && k.apply(g, c), 3560 (k = j && g[j]) && k.apply && Fa(g) && (b.result = k.apply(g, c), 3561 !1 === b.result && b.preventDefault()); 3562 return b.type = o, 3563 e || b.isDefaultPrevented() || l._default && !1 !== l._default.apply(n.pop(), c) || !Fa(d) || j && ka(d[o]) && !la(d) && ((h = d[j]) && (d[j] = null), 3564 oa.event.triggered = o, 3565 b.isPropagationStopped() && m.addEventListener(o, Bb), 3566 d[o](), 3567 b.isPropagationStopped() && m.removeEventListener(o, Bb), 3568 oa.event.triggered = void 0, 3569 h && (d[j] = h)), 3570 b.result 3571 } 3572 }, 3573 simulate: function(a, b, c) { 3574 var d = oa.extend(new oa.Event, c, { 3575 type: a, 3576 isSimulated: !0 3577 }); 3578 oa.event.trigger(d, null, b) 3579 } 3580 }), 3581 oa.fn.extend({ 3582 trigger: function(a, b) { 3583 return this.each(function() { 3584 oa.event.trigger(a, b, this) 3585 }) 3586 }, 3587 triggerHandler: function(a, b) { 3588 var c = this[0]; 3589 if (c) 3590 return oa.event.trigger(a, b, c, !0) 3591 } 3592 }), 3593 ja.focusin || oa.each({ 3594 focus: "focusin", 3595 blur: "focusout" 3596 }, function(a, b) { 3597 var c = function(a) { 3598 oa.event.simulate(b, a.target, oa.event.fix(a)) 3599 }; 3600 oa.event.special[b] = { 3601 setup: function() { 3602 var d = this.ownerDocument || this 3603 , e = Ga.access(d, b); 3604 e || d.addEventListener(a, c, !0), 3605 Ga.access(d, b, (e || 0) + 1) 3606 }, 3607 teardown: function() { 3608 var d = this.ownerDocument || this 3609 , e = Ga.access(d, b) - 1; 3610 e ? Ga.access(d, b, e) : (d.removeEventListener(a, c, !0), 3611 Ga.remove(d, b)) 3612 } 3613 } 3614 }); 3615 var Cb = a.location 3616 , Db = Date.now() 3617 , Eb = /\?/; 3618 oa.parseXML = function(b) { 3619 var c; 3620 if (!b || "string" != typeof b) 3621 return null; 3622 try { 3623 c = (new a.DOMParser).parseFromString(b, "text/xml") 3624 } catch (b) { 3625 c = void 0 3626 } 3627 return c && !c.getElementsByTagName("parsererror").length || oa.error("Invalid XML: " + b), 3628 c 3629 } 3630 ; 3631 var Fb = /\[\]$/ 3632 , Gb = /\r?\n/g 3633 , Hb = /^(?:submit|button|image|reset|file)$/i 3634 , Ib = /^(?:input|select|textarea|keygen)/i; 3635 oa.param = function(a, b) { 3636 var c, d = [], e = function(a, b) { 3637 var c = ka(b) ? b() : b; 3638 d[d.length] = encodeURIComponent(a) + "=" + encodeURIComponent(null == c ? "" : c) 3639 }; 3640 if (null == a) 3641 return ""; 3642 if (Array.isArray(a) || a.jquery && !oa.isPlainObject(a)) 3643 oa.each(a, function() { 3644 e(this.name, this.value) 3645 }); 3646 else 3647 for (c in a) 3648 V(c, a[c], b, e); 3649 return d.join("&") 3650 } 3651 , 3652 oa.fn.extend({ 3653 serialize: function() { 3654 return oa.param(this.serializeArray()) 3655 }, 3656 serializeArray: function() { 3657 return this.map(function() { 3658 var a = oa.prop(this, "elements"); 3659 return a ? oa.makeArray(a) : this 3660 }).filter(function() { 3661 var a = this.type; 3662 return this.name && !oa(this).is(":disabled") && Ib.test(this.nodeName) && !Hb.test(a) && (this.checked || !Ta.test(a)) 3663 }).map(function(a, b) { 3664 var c = oa(this).val(); 3665 return null == c ? null : Array.isArray(c) ? oa.map(c, function(a) { 3666 return { 3667 name: b.name, 3668 value: a.replace(Gb, "\r\n") 3669 } 3670 }) : { 3671 name: b.name, 3672 value: c.replace(Gb, "\r\n") 3673 } 3674 }).get() 3675 } 3676 }); 3677 var Jb = /%20/g 3678 , Kb = /#.*$/ 3679 , Lb = /([?&])_=[^&]*/ 3680 , Mb = /^(.*?):[ \t]*([^\r\n]*)$/gm 3681 , Nb = /^(?:GET|HEAD)$/ 3682 , Ob = /^\/\// 3683 , Pb = {} 3684 , Qb = {} 3685 , Rb = "*/".concat("*") 3686 , Sb = $.createElement("a"); 3687 Sb.href = Cb.href, 3688 oa.extend({ 3689 active: 0, 3690 lastModified: {}, 3691 etag: {}, 3692 ajaxSettings: { 3693 url: Cb.href, 3694 type: "GET", 3695 isLocal: /^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Cb.protocol), 3696 global: !0, 3697 processData: !0, 3698 async: !0, 3699 contentType: "application/x-www-form-urlencoded; charset=UTF-8", 3700 accepts: { 3701 "*": Rb, 3702 text: "text/plain", 3703 html: "text/html", 3704 xml: "application/xml, text/xml", 3705 json: "application/json, text/javascript" 3706 }, 3707 contents: { 3708 xml: /\bxml\b/, 3709 html: /\bhtml/, 3710 json: /\bjson\b/ 3711 }, 3712 responseFields: { 3713 xml: "responseXML", 3714 text: "responseText", 3715 json: "responseJSON" 3716 }, 3717 converters: { 3718 "* text": String, 3719 "text html": !0, 3720 "text json": JSON.parse, 3721 "text xml": oa.parseXML 3722 }, 3723 flatOptions: { 3724 url: !0, 3725 context: !0 3726 } 3727 }, 3728 ajaxSetup: function(a, b) { 3729 return b ? Y(Y(a, oa.ajaxSettings), b) : Y(oa.ajaxSettings, a) 3730 }, 3731 ajaxPrefilter: W(Pb), 3732 ajaxTransport: W(Qb), 3733 ajax: function(b, c) { 3734 function d(b, c, d, h) { 3735 var j, m, n, u, v, w = c; 3736 k || (k = !0, 3737 i && a.clearTimeout(i), 3738 e = void 0, 3739 g = h || "", 3740 x.readyState = 0 < b ? 4 : 0, 3741 j = 200 <= b && b < 300 || 304 === b, 3742 d && (u = function(a, b, c) { 3743 for (var d, e, f, g, h = a.contents, i = a.dataTypes; "*" === i[0]; ) 3744 i.shift(), 3745 void 0 === d && (d = a.mimeType || b.getResponseHeader("Content-Type")); 3746 if (d) 3747 for (e in h) 3748 if (h[e] && h[e].test(d)) { 3749 i.unshift(e); 3750 break 3751 } 3752 if (i[0]in c) 3753 f = i[0]; 3754 else { 3755 for (e in c) { 3756 if (!i[0] || a.converters[e + " " + i[0]]) { 3757 f = e; 3758 break 3759 } 3760 g || (g = e) 3761 } 3762 f = f || g 3763 } 3764 if (f) 3765 return f !== i[0] && i.unshift(f), 3766 c[f] 3767 }(o, x, d)), 3768 u = function(a, b, c, d) { 3769 var e, f, g, h, i, j = {}, k = a.dataTypes.slice(); 3770 if (k[1]) 3771 for (g in a.converters) 3772 j[g.toLowerCase()] = a.converters[g]; 3773 for (f = k.shift(); f; ) 3774 if (a.responseFields[f] && (c[a.responseFields[f]] = b), 3775 !i && d && a.dataFilter && (b = a.dataFilter(b, a.dataType)), 3776 i = f, 3777 f = k.shift()) 3778 if ("*" === f) 3779 f = i; 3780 else if ("*" !== i && i !== f) { 3781 if (!(g = j[i + " " + f] || j["* " + f])) 3782 for (e in j) 3783 if ((h = e.split(" "))[1] === f && (g = j[i + " " + h[0]] || j["* " + h[0]])) { 3784 !0 === g ? g = j[e] : !0 !== j[e] && (f = h[0], 3785 k.unshift(h[1])); 3786 break 3787 } 3788 if (!0 !== g) 3789 if (g && a.throws) 3790 b = g(b); 3791 else 3792 try { 3793 b = g(b) 3794 } catch (a) { 3795 return { 3796 state: "parsererror", 3797 error: g ? a : "No conversion from " + i + " to " + f 3798 } 3799 } 3800 } 3801 return { 3802 state: "success", 3803 data: b 3804 } 3805 }(o, u, x, j), 3806 j ? (o.ifModified && ((v = x.getResponseHeader("Last-Modified")) && (oa.lastModified[f] = v), 3807 (v = x.getResponseHeader("etag")) && (oa.etag[f] = v)), 3808 204 === b || "HEAD" === o.type ? w = "nocontent" : 304 === b ? w = "notmodified" : (w = u.state, 3809 m = u.data, 3810 j = !(n = u.error))) : (n = w, 3811 !b && w || (w = "error", 3812 b < 0 && (b = 0))), 3813 x.status = b, 3814 x.statusText = (c || w) + "", 3815 j ? r.resolveWith(p, [m, w, x]) : r.rejectWith(p, [x, w, n]), 3816 x.statusCode(t), 3817 t = void 0, 3818 l && q.trigger(j ? "ajaxSuccess" : "ajaxError", [x, o, j ? m : n]), 3819 s.fireWith(p, [x, w]), 3820 l && (q.trigger("ajaxComplete", [x, o]), 3821 --oa.active || oa.event.trigger("ajaxStop"))) 3822 } 3823 "object" == typeof b && (c = b, 3824 b = void 0), 3825 c = c || {}; 3826 var e, f, g, h, i, j, k, l, m, n, o = oa.ajaxSetup({}, c), p = o.context || o, q = o.context && (p.nodeType || p.jquery) ? oa(p) : oa.event, r = oa.Deferred(), s = oa.Callbacks("once memory"), t = o.statusCode || {}, u = {}, v = {}, w = "canceled", x = { 3827 readyState: 0, 3828 getResponseHeader: function(a) { 3829 var b; 3830 if (k) { 3831 if (!h) 3832 for (h = {}; b = Mb.exec(g); ) 3833 h[b[1].toLowerCase() + " "] = (h[b[1].toLowerCase() + " "] || []).concat(b[2]); 3834 b = h[a.toLowerCase() + " "] 3835 } 3836 return null == b ? null : b.join(", ") 3837 }, 3838 getAllResponseHeaders: function() { 3839 return k ? g : null 3840 }, 3841 setRequestHeader: function(a, b) { 3842 return null == k && (a = v[a.toLowerCase()] = v[a.toLowerCase()] || a, 3843 u[a] = b), 3844 this 3845 }, 3846 overrideMimeType: function(a) { 3847 return null == k && (o.mimeType = a), 3848 this 3849 }, 3850 statusCode: function(a) { 3851 var b; 3852 if (a) 3853 if (k) 3854 x.always(a[x.status]); 3855 else 3856 for (b in a) 3857 t[b] = [t[b], a[b]]; 3858 return this 3859 }, 3860 abort: function(a) { 3861 var b = a || w; 3862 return e && e.abort(b), 3863 d(0, b), 3864 this 3865 } 3866 }; 3867 if (r.promise(x), 3868 o.url = ((b || o.url || Cb.href) + "").replace(Ob, Cb.protocol + "//"), 3869 o.type = c.method || c.type || o.method || o.type, 3870 o.dataTypes = (o.dataType || "*").toLowerCase().match(za) || [""], 3871 null == o.crossDomain) { 3872 j = $.createElement("a"); 3873 try { 3874 j.href = o.url, 3875 j.href = j.href, 3876 o.crossDomain = Sb.protocol + "//" + Sb.host != j.protocol + "//" + j.host 3877 } catch (b) { 3878 o.crossDomain = !0 3879 } 3880 } 3881 if (o.data && o.processData && "string" != typeof o.data && (
vendor: 9,621 bytes, lines 3881-4134
3881o.data = oa.param(o.data, o.traditional)), 3882 X(Pb, o, c, x), 3883 k) 3884 return x; 3885 for (m in (l = oa.event && o.global) && 0 == oa.active++ && oa.event.trigger("ajaxStart"), 3886 o.type = o.type.toUpperCase(), 3887 o.hasContent = !Nb.test(o.type), 3888 f = o.url.replace(Kb, ""), 3889 o.hasContent ? o.data && o.processData && 0 === (o.contentType || "").indexOf("application/x-www-form-urlencoded") && (o.data = o.data.replace(Jb, "+")) : (n = o.url.slice(f.length), 3890 o.data && (o.processData || "string" == typeof o.data) && (f += (Eb.test(f) ? "&" : "?") + o.data, 3891 delete o.data), 3892 !1 === o.cache && (f = f.replace(Lb, "$1"), 3893 n = (Eb.test(f) ? "&" : "?") + "_=" + Db++ + n), 3894 o.url = f + n), 3895 o.ifModified && (oa.lastModified[f] && x.setRequestHeader("If-Modified-Since", oa.lastModified[f]), 3896 oa.etag[f] && x.setRequestHeader("If-None-Match", oa.etag[f])), 3897 (o.data && o.hasContent && !1 !== o.contentType || c.contentType) && x.setRequestHeader("Content-Type", o.contentType), 3898 x.setRequestHeader("Accept", o.dataTypes[0] && o.accepts[o.dataTypes[0]] ? o.accepts[o.dataTypes[0]] + ("*" !== o.dataTypes[0] ? ", " + Rb + "; q=0.01" : "") : o.accepts["*"]), 3899 o.headers) 3900 x.setRequestHeader(m, o.headers[m]); 3901 if (o.beforeSend && (!1 === o.beforeSend.call(p, x, o) || k)) 3902 return x.abort(); 3903 if (w = "abort", 3904 s.add(o.complete), 3905 x.done(o.success), 3906 x.fail(o.error), 3907 e = X(Qb, o, c, x)) { 3908 if (x.readyState = 1, 3909 l && q.trigger("ajaxSend", [x, o]), 3910 k) 3911 return x; 3912 o.async && 0 < o.timeout && (i = a.setTimeout(function() { 3913 x.abort("timeout") 3914 }, o.timeout)); 3915 try { 3916 k = !1, 3917 e.send(u, d) 3918 } catch (b) { 3919 if (k) 3920 throw b; 3921 d(-1, b) 3922 } 3923 } else 3924 d(-1, "No Transport"); 3925 return x 3926 }, 3927 getJSON: function(a, b, c) { 3928 return oa.get(a, b, c, "json") 3929 }, 3930 getScript: function(a, b) { 3931 return oa.get(a, void 0, b, "script") 3932 } 3933 }), 3934 oa.each(["get", "post"], function(a, b) { 3935 oa[b] = function(a, c, d, e) { 3936 return ka(c) && (e = e || d, 3937 d = c, 3938 c = void 0), 3939 oa.ajax(oa.extend({ 3940 url: a, 3941 type: b, 3942 dataType: e, 3943 data: c, 3944 success: d 3945 }, oa.isPlainObject(a) && a)) 3946 } 3947 }), 3948 oa._evalUrl = function(a, b) { 3949 return oa.ajax({ 3950 url: a, 3951 type: "GET", 3952 dataType: "script", 3953 cache: !0, 3954 async: !1, 3955 global: !1, 3956 converters: { 3957 "text script": function() {} 3958 }, 3959 dataFilter: function(a) { 3960 oa.globalEval(a, b) 3961 } 3962 }) 3963 } 3964 , 3965 oa.fn.extend({ 3966 wrapAll: function(a) { 3967 var b; 3968 return this[0] && (ka(a) && (a = a.call(this[0])), 3969 b = oa(a, this[0].ownerDocument).eq(0).clone(!0), 3970 this[0].parentNode && b.insertBefore(this[0]), 3971 b.map(function() { 3972 for (var a = this; a.firstElementChild; ) 3973 a = a.firstElementChild; 3974 return a 3975 }).append(this)), 3976 this 3977 }, 3978 wrapInner: function(a) { 3979 return ka(a) ? this.each(function(b) { 3980 oa(this).wrapInner(a.call(this, b)) 3981 }) : this.each(function() { 3982 var b = oa(this) 3983 , c = b.contents(); 3984 c.length ? c.wrapAll(a) : b.append(a) 3985 }) 3986 }, 3987 wrap: function(a) { 3988 var b = ka(a); 3989 return this.each(function(c) { 3990 oa(this).wrapAll(b ? a.call(this, c) : a) 3991 }) 3992 }, 3993 unwrap: function(a) { 3994 return this.parent(a).not("body").each(function() { 3995 oa(this).replaceWith(this.childNodes) 3996 }), 3997 this 3998 } 3999 }), 4000 oa.expr.pseudos.hidden = function(a) { 4001 return !oa.expr.pseudos.visible(a) 4002 } 4003 , 4004 oa.expr.pseudos.visible = function(a) { 4005 return !!(a.offsetWidth || a.offsetHeight || a.getClientRects().length) 4006 } 4007 , 4008 oa.ajaxSettings.xhr = function() { 4009 try { 4010 return new a.XMLHttpRequest 4011 } catch (a) {} 4012 } 4013 ; 4014 var Tb = { 4015 0: 200, 4016 1223: 204 4017 } 4018 , Ub = oa.ajaxSettings.xhr(); 4019 ja.cors = !!Ub && "withCredentials"in Ub, 4020 ja.ajax = Ub = !!Ub, 4021 oa.ajaxTransport(function(b) { 4022 var c, d; 4023 if (ja.cors || Ub && !b.crossDomain) 4024 return { 4025 send: function(e, f) { 4026 var g, h = b.xhr(); 4027 if (h.open(b.type, b.url, b.async, b.username, b.password), 4028 b.xhrFields) 4029 for (g in b.xhrFields) 4030 h[g] = b.xhrFields[g]; 4031 for (g in b.mimeType && h.overrideMimeType && h.overrideMimeType(b.mimeType), 4032 b.crossDomain || e["X-Requested-With"] || (e["X-Requested-With"] = "XMLHttpRequest"), 4033 e) 4034 h.setRequestHeader(g, e[g]); 4035 c = function(a) { 4036 return function() { 4037 c && (c = d = h.onload = h.onerror = h.onabort = h.ontimeout = h.onreadystatechange = null, 4038 "abort" === a ? h.abort() : "error" === a ? "number" != typeof h.status ? f(0, "error") : f(h.status, h.statusText) : f(Tb[h.status] || h.status, h.statusText, "text" !== (h.responseType || "text") || "string" != typeof h.responseText ? { 4039 binary: h.response 4040 } : { 4041 text: h.responseText 4042 }, h.getAllResponseHeaders())) 4043 } 4044 } 4045 , 4046 h.onload = c(), 4047 d = h.onerror = h.ontimeout = c("error"), 4048 void 0 !== h.onabort ? h.onabort = d : h.onreadystatechange = function() { 4049 4 === h.readyState && a.setTimeout(function() { 4050 c && d() 4051 }) 4052 } 4053 , 4054 c = c("abort"); 4055 try { 4056 h.send(b.hasContent && b.data || null) 4057 } catch (e) { 4058 if (c) 4059 throw e 4060 } 4061 }, 4062 abort: function() { 4063 c && c() 4064 } 4065 } 4066 }), 4067 oa.ajaxPrefilter(function(a) { 4068 a.crossDomain && (a.contents.script = !1) 4069 }), 4070 oa.ajaxSetup({ 4071 accepts: { 4072 script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" 4073 }, 4074 contents: { 4075 script: /\b(?:java|ecma)script\b/ 4076 }, 4077 converters: { 4078 "text script": function(a) { 4079 return oa.globalEval(a), 4080 a 4081 } 4082 } 4083 }), 4084 oa.ajaxPrefilter("script", function(a) { 4085 void 0 === a.cache && (a.cache = !1), 4086 a.crossDomain && (a.type = "GET") 4087 }), 4088 oa.ajaxTransport("script", function(a) { 4089 var b, c; 4090 if (a.crossDomain || a.scriptAttrs) 4091 return { 4092 send: function(d, e) { 4093 b = oa("<script>").attr(a.scriptAttrs || {}).prop({ 4094 charset: a.scriptCharset, 4095 src: a.url 4096 }).on("load error", c = function(a) { 4097 b.remove(), 4098 c = null, 4099 a && e("error" === a.type ? 404 : 200, a.type) 4100 } 4101 ), 4102 $.head.appendChild(b[0]) 4103 }, 4104 abort: function() { 4105 c && c() 4106 } 4107 } 4108 }); 4109 var Vb, Wb = [], Xb = /(=)\?(?=&|$)|\?\?/; 4110 oa.ajaxSetup({ 4111 jsonp: "callback", 4112 jsonpCallback: function() { 4113 var a = Wb.pop() || oa.expando + "_" + Db++; 4114 return this[a] = !0, 4115 a 4116 } 4117 }), 4118 oa.ajaxPrefilter("json jsonp", function(b, c, d) { 4119 var e, f, g, h = !1 !== b.jsonp && (Xb.test(b.url) ? "url" : "string" == typeof b.data && 0 === (b.contentType || "").indexOf("application/x-www-form-urlencoded") && Xb.test(b.data) && "data"); 4120 if (h || "jsonp" === b.dataTypes[0]) 4121 return e = b.jsonpCallback = ka(b.jsonpCallback) ? b.jsonpCallback() : b.jsonpCallback, 4122 h ? b[h] = b[h].replace(Xb, "$1" + e) : !1 !== b.jsonp && (b.url += (Eb.test(b.url) ? "&" : "?") + b.jsonp + "=" + e), 4123 b.converters["script json"] = function() { 4124 return g || oa.error(e + " was not called"), 4125 g[0] 4126 } 4127 , 4128 b.dataTypes[0] = "json", 4129 f = a[e], 4130 a[e] = function() { 4131 g = arguments 4132 } 4133 , 4134 d.always(function() {
vendor: 5,490 bytes, lines 4135-4280
4135 void 0 === f ? oa(a).removeProp(e) : a[e] = f, 4136 b[e] && (b.jsonpCallback = c.jsonpCallback, 4137 Wb.push(e)), 4138 g && ka(f) && f(g[0]), 4139 g = f = void 0 4140 }), 4141 "script" 4142 }), 4143 ja.createHTMLDocument = ((Vb = $.implementation.createHTMLDocument("").body).innerHTML = "<form></form><form></form>", 4144 2 === Vb.childNodes.length), 4145 oa.parseHTML = function(a, b, c) { 4146 return "string" != typeof a ? [] : ("boolean" == typeof b && (c = b, 4147 b = !1), 4148 b || (ja.createHTMLDocument ? ((d = (b = $.implementation.createHTMLDocument("")).createElement("base")).href = $.location.href, 4149 b.head.appendChild(d)) : b = $), 4150 f = !c && [], 4151 (e = ua.exec(a)) ? [b.createElement(e[1])] : (e = u([a], b, f), 4152 f && f.length && oa(f).remove(), 4153 oa.merge([], e.childNodes))); 4154 var d, e, f 4155 } 4156 , 4157 oa.fn.load = function(a, b, c) { 4158 var d, e, f, g = this, h = a.indexOf(" "); 4159 return -1 < h && (d = S(a.slice(h)), 4160 a = a.slice(0, h)), 4161 ka(b) ? (c = b, 4162 b = void 0) : b && "object" == typeof b && (e = "POST"), 4163 0 < g.length && oa.ajax({ 4164 url: a, 4165 type: e || "GET", 4166 dataType: "html", 4167 data: b 4168 }).done(function(a) { 4169 f = arguments, 4170 g.html(d ? oa("<div>").append(oa.parseHTML(a)).find(d) : a) 4171 }).always(c && function(a, b) { 4172 g.each(function() { 4173 c.apply(this, f || [a.responseText, b, a]) 4174 }) 4175 } 4176 ), 4177 this 4178 } 4179 , 4180 oa.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function(a, b) { 4181 oa.fn[b] = function(a) { 4182 return this.on(b, a) 4183 } 4184 }), 4185 oa.expr.pseudos.animated = function(a) { 4186 return oa.grep(oa.timers, function(b) { 4187 return a === b.elem 4188 }).length 4189 } 4190 , 4191 oa.offset = { 4192 setOffset: function(a, b, c) { 4193 var d, e, f, g, h, i, j = oa.css(a, "position"), k = oa(a), l = {}; 4194 "static" === j && (a.style.position = "relative"), 4195 h = k.offset(), 4196 f = oa.css(a, "top"), 4197 i = oa.css(a, "left"), 4198 ("absolute" === j || "fixed" === j) && -1 < (f + i).indexOf("auto") ? (g = (d = k.position()).top, 4199 e = d.left) : (g = parseFloat(f) || 0, 4200 e = parseFloat(i) || 0), 4201 ka(b) && (b = b.call(a, c, oa.extend({}, h))), 4202 null != b.top && (l.top = b.top - h.top + g), 4203 null != b.left && (l.left = b.left - h.left + e), 4204 "using"in b ? b.using.call(a, l) : k.css(l) 4205 } 4206 }, 4207 oa.fn.extend({ 4208 offset: function(a) { 4209 if (arguments.length) 4210 return void 0 === a ? this : this.each(function(b) { 4211 oa.offset.setOffset(this, a, b) 4212 }); 4213 var b, c, d = this[0]; 4214 return d ? d.getClientRects().length ? (b = d.getBoundingClientRect(), 4215 c = d.ownerDocument.defaultView, 4216 { 4217 top: b.top + c.pageYOffset, 4218 left: b.left + c.pageXOffset 4219 }) : { 4220 top: 0, 4221 left: 0 4222 } : void 0 4223 }, 4224 position: function() { 4225 if (this[0]) { 4226 var a, b, c, d = this[0], e = { 4227 top: 0, 4228 left: 0 4229 }; 4230 if ("fixed" === oa.css(d, "position")) 4231 b = d.getBoundingClientRect(); 4232 else { 4233 for (b = this.offset(), 4234 c = d.ownerDocument, 4235 a = d.offsetParent || c.documentElement; a && (a === c.body || a === c.documentElement) && "static" === oa.css(a, "position"); ) 4236 a = a.parentNode; 4237 a && a !== d && 1 === a.nodeType && ((e = oa(a).offset()).top += oa.css(a, "borderTopWidth", !0), 4238 e.left += oa.css(a, "borderLeftWidth", !0)) 4239 } 4240 return { 4241 top: b.top - e.top - oa.css(d, "marginTop", !0), 4242 left: b.left - e.left - oa.css(d, "marginLeft", !0) 4243 } 4244 } 4245 }, 4246 offsetParent: function() { 4247 return this.map(function() { 4248 for (var a = this.offsetParent; a && "static" === oa.css(a, "position"); ) 4249 a = a.offsetParent; 4250 return a || Na 4251 }) 4252 } 4253 }), 4254 oa.each({ 4255 scrollLeft: "pageXOffset", 4256 scrollTop: "pageYOffset" 4257 }, function(a, b) { 4258 var c = "pageYOffset" === b; 4259 oa.fn[a] = function(d) { 4260 return Ca(this, function(a, d, e) { 4261 var f; 4262 if (la(a) ? f = a : 9 === a.nodeType && (f = a.defaultView), 4263 void 0 === e) 4264 return f ? f[b] : a[d]; 4265 f ? f.scrollTo(c ? f.pageXOffset : e, c ? e : f.pageYOffset) : a[d] = e 4266 }, a, d, arguments.length) 4267 } 4268 }), 4269 oa.each(["top", "left"], function(a, b) { 4270 oa.cssHooks[b] = H(ja.pixelPosition, function(a, c) { 4271 if (c) 4272 return c = G(a, b), 4273 fb.test(c) ? oa(a).position()[b] + "px" : c 4274 }) 4275 }), 4276 oa.each({ 4277 Height: "height", 4278 Width: "width" 4279 }, function(a, b) { 4280 oa.each({
4281 padding: "inner" + a, 4282 content: b, 4283 "": "outer" + a 4284 }, function(c, d) { 4285 oa.fn[d] = function(e, f) { 4286 var g = arguments.length && (c || "boolean" != typeof e) 4287 , h = c || (!0 === e || !0 === f ? "margin" : "border"); 4288 return Ca(this, function(b, c, e) { 4289 var f; 4290 return la(b) ? 0 === d.indexOf("outer") ? b["inner" + a] : b.document.documentElement["client" + a] : 9 === b.nodeType ? (f = b.documentElement, 4291 Math.max(b.body["scroll" + a], f["scroll" + a], b.body["offset" + a], f["offset" + a], f["client" + a])) : void 0 === e ? oa.css(b, c, h) : oa.style(b, c, e, h) 4292 }, b, g ? e : void 0, g) 4293 } 4294 }) 4295 }), 4296 oa.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "), function(a, b) { 4297 oa.fn[b] = function(a, c) { 4298 return 0 < arguments.length ? this.on(b, null, a, c) : this.trigger(b) 4299 } 4300 }), 4301 oa.fn.extend({ 4302 hover: function(a, b) { 4303 return this.mouseenter(a).mouseleave(b || a) 4304 } 4305 }), 4306 oa.fn.extend({ 4307 bind: function(a, b, c) { 4308 return this.on(a, null, b, c) 4309 }, 4310 unbind: function(a, b) { 4311 return this.off(a, null, b) 4312 }, 4313 delegate: function(a, b, c, d) { 4314 return this.on(b, a, c, d) 4315 }, 4316 undelegate: function(a, b, c) { 4317 return 1 === arguments.length ? this.off(a, "**") : this.off(b, a || "**", c) 4318 } 4319 }), 4320 oa.proxy = function(a, b) { 4321 var c, d, e; 4322 if ("string" == typeof b && (c = a[b], 4323 b = a, 4324 a = c), 4325 ka(a)) 4326 return d = aa.call(arguments, 2), 4327 (e = function() { 4328 return a.apply(b || this, d.concat(aa.call(arguments))) 4329 } 4330 ).guid = a.guid = a.guid || oa.guid++, 4331 e 4332 } 4333 , 4334 oa.holdReady = function(a) { 4335 a ? oa.readyWait++ : oa.ready(!0) 4336 } 4337 , 4338 oa.isArray = Array.isArray, 4339 oa.parseJSON = JSON.parse, 4340 oa.nodeName = f, 4341 oa.isFunction = ka, 4342 oa.isWindow = la, 4343 oa.camelCase = n, 4344 oa.type = d, 4345 oa.now = Date.now, 4346 oa.isNumeric = function(a) { 4347 var b = oa.type(a); 4348 return ("number" === b || "string" === b) && !isNaN(a - parseFloat(a)) 4349 } 4350 , 4351 "function" == typeof define && define.amd && define("jquery", [], function() { 4352 return oa 4353 }); 4354 var Yb = a.jQuery 4355 , Zb = a.$; 4356 return oa.noConflict = function(b) { 4357 return a.$ === oa && (a.$ = Zb), 4358 b && a.jQuery === oa && (a.jQuery = Yb), 4359 oa 4360 } 4361 , 4362 b || (a.jQuery = a.$ = oa), 4363 oa 4364}), 4365void 0 === window.Shopify && (window.Shopify = {}), 4366Shopify.each = function(a, b) { 4367 for (var c = 0; c < a.length; c++) 4368 b(a[c], c) 4369} 4370, 4371Shopify.map = function(a, b) { 4372 for (var c = [], d = 0; d < a.length; d++) 4373 c.push(b(a[d], d)); 4374 return c 4375} 4376, 4377Shopify.arrayIncludes = function(a, b) { 4378 for (var c = 0; c < a.length; c++) 4379 if (a[c] == b) 4380 return !0; 4381 return !1 4382} 4383, 4384Shopify.uniq = function(a) { 4385 for (var b = [], c = 0; c < a.length; c++) 4386 Shopify.arrayIncludes(b, a[c]) || b.push(a[c]); 4387 return b 4388} 4389, 4390Shopify.isDefined = function(a) { 4391 return void 0 !== a 4392} 4393, 4394Shopify.getClass = function(a) { 4395 return Object.prototype.toString.call(a).slice(8, -1) 4396} 4397, 4398Shopify.extend = function(a, b) { 4399 function c() {} 4400 c.prototype = b.prototype, 4401 a.prototype = new c, 4402 a.prototype.constructor = a, 4403 a.baseConstructor = b, 4404 a.superClass = b.prototype 4405} 4406, 4407Shopify.locationSearch = function() { 4408 return window.location.search 4409} 4410, 4411Shopify.locationHash = function() { 4412 return window.location.hash 4413} 4414, 4415Shopify.replaceState = function(a) { 4416 window.history.replaceState({}, document.title, a) 4417} 4418, 4419Shopify.urlParam = function(a) { 4420 var b = RegExp("[?&]" + a + "=([^&#]*)").exec(Shopify.locationSearch()); 4421 return b && decodeURIComponent(b[1].replace(/\+/g, " ")) 4422} 4423, 4424Shopify.newState = function(a, b) { 4425 return (Shopify.urlParam(a) ? Shopify.locationSearch().replace(RegExp("(" + a + "=)[^&#]+"), "$1" + b) : "" === Shopify.locationSearch() ? "?" + a + "=" + b : Shopify.locationSearch() + "&" + a + "=" + b) + Shopify.locationHash() 4426} 4427, 4428Shopify.setParam = function(a, b) { 4429 Shopify.replaceState(Shopify.newState(a, b)) 4430} 4431, 4432Shopify.Product = function(a) { 4433 Shopify.isDefined(a) && this.update(a) 4434} 4435, 4436Shopify.Product.prototype.update = function(a) { 4437 for (property in a) 4438 this[property] = a[property] 4439} 4440, 4441Shopify.Product.prototype.optionNames = function() { 4442 return "Array" == Shopify.getClass(this.options) ? this.options : [] 4443} 4444, 4445Shopify.Product.prototype.optionValues = function(a) {
4446 if (!Shopify.isDefined(this.variants)) 4447 return null; 4448 var b = Shopify.map(this.variants, function(b) { 4449 var c = "option" + (a + 1); 4450 return void 0 == b[c] ? null : b[c] 4451 }); 4452 return null == b[0] ? null : Shopify.uniq(b) 4453} 4454, 4455Shopify.Product.prototype.getVariant = function(a) { 4456 var b = null; 4457 return a.length != this.options.length ? b : (Shopify.each(this.variants, function(c) { 4458 for (var d = !0, e = 0; e < a.length; e++) 4459 c["option" + (e + 1)] != a[e] && (d = !1); 4460 if (1 == d) 4461 return void (b = c) 4462 }), 4463 b) 4464} 4465, 4466Shopify.Product.prototype.getVariantById = function(a) { 4467 for (var b = 0; b < this.variants.length; b++) { 4468 var c = this.variants[b]; 4469 if (a == c.id) 4470 return c 4471 } 4472 return null 4473} 4474, 4475Shopify.money_format = "${{amount}}", 4476Shopify.formatMoney = function(a, b) { 4477 function c(a, b) { 4478 return void 0 === a ? b : a 4479 } 4480 function d(a, b, d, e) { 4481 if (b = c(b, 2), 4482 d = c(d, ","), 4483 e = c(e, "."), 4484 isNaN(a) || null == a) 4485 return 0; 4486 a = (a / 100).toFixed(b); 4487 var f = a.split("."); 4488 return f[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1" + d) + (f[1] ? e + f[1] : "") 4489 } 4490 "string" == typeof a && (a = a.replace(".", "")); 4491 var e = "" 4492 , f = /\{\{\s*(\w+)\s*\}\}/ 4493 , g = b || this.money_format; 4494 switch (g.match(f)[1]) { 4495 case "amount": 4496 e = d(a, 2); 4497 break; 4498 case "amount_no_decimals": 4499 e = d(a, 0); 4500 break; 4501 case "amount_with_comma_separator": 4502 e = d(a, 2, ".", ","); 4503 break; 4504 case "amount_with_space_separator": 4505 e = d(a, 2, " ", ","); 4506 break; 4507 case "amount_with_period_and_space_separator": 4508 e = d(a, 2, " ", "."); 4509 break; 4510 case "amount_no_decimals_with_comma_separator": 4511 e = d(a, 0, ".", ","); 4512 break; 4513 case "amount_no_decimals_with_space_separator": 4514 e = d(a, 0, " "); 4515 break; 4516 case "amount_with_apostrophe_separator": 4517 e = d(a, 2, "'", ".") 4518 } 4519 return g.replace(f, e) 4520} 4521, 4522Shopify.OptionSelectors = function(a, b) { 4523 return this.selectorDivClass = "selector-wrapper", 4524 this.selectorClass = "single-option-selector", 4525 this.variantIdFieldIdSuffix = "-variant-id", 4526 this.variantIdField = null, 4527 this.historyState = null, 4528 this.selectors = [], 4529 this.domIdPrefix = a, 4530 this.product = new Shopify.Product(b.product), 4531 this.onVariantSelected = Shopify.isDefined(b.onVariantSelected) ? b.onVariantSelected : function() {} 4532 , 4533 this.replaceSelector(a), 4534 this.initDropdown(), 4535 b.enableHistoryState && (this.historyState = new Shopify.OptionSelectors.HistoryState(this)), 4536 !0 4537} 4538, 4539Shopify.OptionSelectors.prototype.initDropdown = function() { 4540 var a = { 4541 initialLoad: !0 4542 }; 4543 if (!this.selectVariantFromDropdown(a)) { 4544 var b = this; 4545 setTimeout(function() { 4546 b.selectVariantFromParams(a) || b.fireOnChangeForFirstDropdown.call(b, a) 4547 }) 4548 } 4549} 4550, 4551Shopify.OptionSelectors.prototype.fireOnChangeForFirstDropdown = function(a) { 4552 this.selectors[0].element.onchange(a) 4553} 4554, 4555Shopify.OptionSelectors.prototype.selectVariantFromParamsOrDropdown = function(a) { 4556 this.selectVariantFromParams(a) || this.selectVariantFromDropdown(a) 4557} 4558, 4559Shopify.OptionSelectors.prototype.replaceSelector = function(a) { 4560 var b = document.getElementById(a) 4561 , c = b.parentNode; 4562 Shopify.each(this.buildSelectors(), function(a) { 4563 c.insertBefore(a, b) 4564 }), 4565 b.style.display = "none", 4566 this.variantIdField = b 4567} 4568, 4569Shopify.OptionSelectors.prototype.selectVariantFromDropdown = function(a) { 4570 var b = document.getElementById(this.domIdPrefix).querySelector("[selected]"); 4571 if (b || (b = document.getElementById(this.domIdPrefix).querySelector('[selected="selected"]')), 4572 !b) 4573 return !1; 4574 var c = b.value; 4575 return this.selectVariant(c, a) 4576} 4577, 4578Shopify.OptionSelectors.prototype.selectVariantFromParams = function(a) { 4579 var b = Shopify.urlParam("variant"); 4580 return this.selectVariant(b, a) 4581} 4582, 4583Shopify.OptionSelectors.prototype.selectVariant = function(a, b) { 4584 var c = this.product.getVariantById(a); 4585 if (null == c) 4586 return !1; 4587 for (var d = 0; d < this.selectors.length; d++) { 4588 var e = this.selectors[d].element 4589 , f = e.getAttribute("data-option") 4590 , g = c[f]; 4591 null != g && this.optionExistInSelect(e, g) && (e.value = g) 4592 } 4593 return "undefined" != typeof jQuery ? jQuery(this.selectors[0].element).trigger("change", b) : this.selectors[0].element.onchange(b), 4594 !0 4595} 4596, 4597Shopify.OptionSelectors.prototype.optionExistInSelect = function(a, b) { 4598 for (var c = 0; c < a.options.length; c++) 4599 if (a.options[c].value == b) 4600 return !0 4601} 4602, 4603Shopify.OptionSelectors.prototype.insertSelectors = function(a, b) { 4604 Shopify.isDefined(b) && this.setMessageElement(b), 4605 this.domIdPrefix = "product-" + this.product.id + "-variant-selector"; 4606 var c = document.getElementById(a); 4607 Shopify.each(this.buildSelectors(), function(a) { 4608 c.appendChild(a) 4609 }) 4610} 4611, 4612Shopify.OptionSelectors.prototype.buildSelectors = function() { 4613 for (var a = 0; a < this.product.optionNames().length; a++) { 4614 var b = new Shopify.SingleOptionSelector(this,a,this.product.optionNames()[a],this.product.optionValues(a)
4614); 4615 b.element.disabled = !1, 4616 this.selectors.push(b) 4617 } 4618 var c = this.selectorDivClass 4619 , d = this.product.optionNames(); 4620 return Shopify.map(this.selectors, function(a) { 4621 var b = document.createElement("div"); 4622 if (b.setAttribute("class", c), 4623 d.length > 1) { 4624 var e = document.createElement("label"); 4625 e.htmlFor = a.element.id, 4626 e.innerHTML = a.name, 4627 b.appendChild(e) 4628 } 4629 return b.appendChild(a.element), 4630 b 4631 }) 4632} 4633, 4634Shopify.OptionSelectors.prototype.selectedValues = function() { 4635 for (var a = [], b = 0; b < this.selectors.length; b++) { 4636 var c = this.selectors[b].element.value; 4637 a.push(c) 4638 } 4639 return a 4640} 4641, 4642Shopify.OptionSelectors.prototype.updateSelectors = function(a, b) { 4643 var c = this.selectedValues() 4644 , d = this.product.getVariant(c); 4645 d ? (this.variantIdField.disabled = !1, 4646 this.variantIdField.value = d.id) : this.variantIdField.disabled = !0, 4647 this.onVariantSelected(d, this, b), 4648 null != this.historyState && this.historyState.onVariantChange(d, this, b) 4649} 4650, 4651Shopify.OptionSelectorsFromDOM = function(a, b) { 4652 var c = b.optionNames || [] 4653 , d = b.priceFieldExists || !0 4654 , e = b.delimiter || "/" 4655 , f = this.createProductFromSelector(a, c, d, e); 4656 b.product = f, 4657 Shopify.OptionSelectorsFromDOM.baseConstructor.call(this, a, b) 4658} 4659, 4660Shopify.extend(Shopify.OptionSelectorsFromDOM, Shopify.OptionSelectors), 4661Shopify.OptionSelectorsFromDOM.prototype.createProductFromSelector = function(a, b, c, d) { 4662 if (!Shopify.isDefined(c)) 4663 var c = !0; 4664 if (!Shopify.isDefined(d)) 4665 var d = "/"; 4666 var e = document.getElementById(a) 4667 , f = e.childNodes 4668 , g = (e.parentNode, 4669 b.length) 4670 , h = []; 4671 Shopify.each(f, function(a) { 4672 if (1 == a.nodeType && "option" == a.tagName.toLowerCase()) { 4673 var e = a.innerHTML.split(new RegExp("\\s*\\" + d + "\\s*")); 4674 0 == b.length && (g = e.length - (c ? 1 : 0)); 4675 var f = e.slice(0, g) 4676 , i = c ? e[g] : "" 4677 , j = (a.getAttribute("value"), 4678 { 4679 available: !a.disabled, 4680 id: parseFloat(a.value), 4681 price: i, 4682 option1: f[0], 4683 option2: f[1], 4684 option3: f[2] 4685 }); 4686 h.push(j) 4687 } 4688 }); 4689 var i = { 4690 variants: h 4691 }; 4692 if (0 == b.length) { 4693 i.options = []; 4694 for (var j = 0; j < g; j++) 4695 i.options[j] = "option " + (j + 1) 4696 } else 4697 i.options = b; 4698 return i 4699} 4700, 4701Shopify.SingleOptionSelector = function(a, b, c, d) { 4702 this.multiSelector = a, 4703 this.values = d, 4704 this.index = b, 4705 this.name = c, 4706 this.element = document.createElement("select"); 4707 for (var e = 0; e < d.length; e++) { 4708 var f = document.createElement("option"); 4709 f.value = d[e], 4710 f.innerHTML = d[e], 4711 this.element.appendChild(f) 4712 } 4713 return this.element.setAttribute("class", this.multiSelector.selectorClass), 4714 this.element.setAttribute("data-option", "option" + (b + 1)), 4715 this.element.id = a.domIdPrefix + "-option-" + b, 4716 this.element.onchange = function(c, d) { 4717 d = d || {}, 4718 a.updateSelectors(b, d) 4719 } 4720 , 4721 !0 4722} 4723, 4724Shopify.Image = { 4725 preload: function(a, b) { 4726 for (var c = 0; c < a.length; c++) { 4727 var d = a[c]; 4728 this.loadImage(this.getSizedImageUrl(d, b)) 4729 } 4730 }, 4731 loadImage: function(a) { 4732 (new Image).src = a 4733 }, 4734 switchImage: function(a, b, c) { 4735 if (a && b) { 4736 var d = this.imageSize(b.src) 4737 , e = this.getSizedImageUrl(a.src, d); 4738 c ? c(e, a, b) : b.src = e 4739 } 4740 }, 4741 imageSize: function(a) { 4742 var b = a.match(/.+_((?:pico|icon|thumb|small|compact|medium|large|grande)|\d{1,4}x\d{0,4}|x\d{1,4})[_\.@]/); 4743 return null !== b ? b[1] : null 4744 }, 4745 getSizedImageUrl: function(a, b) { 4746 if (null == b) 4747 return a; 4748 if ("master" == b) 4749 return this.removeProtocol(a); 4750 var c = a.match(/\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?$/i); 4751 if (null != c) { 4752 var d = a.split(c[0]) 4753 , e = c[0]; 4754 return this.removeProtocol(d[0] + "_" + b + e) 4755 } 4756 return null 4757 }, 4758 removeProtocol: function(a) { 4759 return a.replace(/http(s)?:/, "") 4760 } 4761}, 4762Shopify.OptionSelectors.HistoryState = function(a) { 4763 this.browserSupports() && this.register(a) 4764} 4765, 4766Shopify.OptionSelectors.HistoryState.prototype.register = function(a) { 4767 window.addEventListener("popstate", function() { 4768 a.selectVariantFromParamsOrDropdown({ 4769 popStateCall: !0 4770 }) 4771 }) 4772} 4773, 4774Shopify.OptionSelectors.HistoryState.prototype.onVariantChange = function(a, b, c) { 4775 this.browserSupports() && (!a || c.initialLoad || c.popStateCall || Shopify.setParam("variant", a.id)) 4776 4777if (BOLD && BOLD.recurring_orders && BOLD.recurring_orders.app && BOLD.recurring_orders.app.ee && 4778 typeof BOLD.recurring_orders.app.ee.emit === 'function'){ 4779 BOLD.recurring_orders.app.ee.emit('variant_changed'); 4780} 4781} 4782, 4783Shopify.OptionSelectors.HistoryState.prototype.browserSupports = function() { 4784 return window.history && window.history.replaceState 4785} 4786; 4787var sameOrigin; 4788try { 4789 sameOrigin = window.parent.location.host == window.location.host 4790} catch (a) { 4791 sameOrigin = !1 4792} 4793if (sameOrigin && function(a) { 4794 var b = !1; 4795 if ("function" == typeof define && define.amd && (define(a), 4796 b = !0), 4797 "object" == typeof exports && (module.exports = a(), 4798 b = !0), 4799 !b) { 4800 var c = window.Cookies 4801 , d = window.Cookies = a(); 4802 d.noConflict = function() { 4803 return window.Cookies = c, 4804 d 4805 } 4806 } 4807}(function() { 4808 function a() { 4809 for (var a = 0, b = {}; a < arguments.length; a++) { 4810 var c = arguments[a]; 4811 for (var d in c) 4812 b[d] = c[d] 4813 } 4814 return b 4815 } 4816 function b(c) { 4817 function d(b, e, f) { 4818 var g; 4819 if ("undefined" != typeof document) { 4820 if (arguments.length > 1) { 4821 if (f = a({ 4822 path: "/" 4823 }, d.defaults, f), 4824 "number" == typeof f.expires) { 4825 var h = new Date; 4826 h.setMilliseconds(h.getMilliseconds() + 864e5 * f.expires), 4827 f.expires = h 4828 } 4829 f.expires = f.expires ? f.expires.toUTCString() : ""; 4830 try { 4831 g = JSON.stringify(e), 4832 /^[\{\[]/.test(g) && (e = g) 4833 } catch (a) {} 4834 e = c.write ? c.write(e, b) : encodeURIComponent(String(e)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), 4835 b = encodeURIComponent(String(b)), 4836 b = b.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent), 4837 b = b.replace(/[\(\)]/g, escape); 4838 var i = ""; 4839 for (var j in f) 4840 f[j] && (i += "; " + j, 4841 !0 !== f[j] && (i += "=" + f[j])); 4842 return document.cookie = b + "=" + e + i 4843 } 4844 b || (g = {}); 4845 for (var k = document.cookie ? document.cookie.split("; ") : [], l = /(%[0-9A-Z]{2})+/g, m = 0; m < k.length; m++) { 4846 var n = k[m].split("=") 4847 , o = n.slice(1).join("="); 4848 '"' === o.charAt(0) && (o = o.slice(1, -1)); 4849 try { 4850 var p = n[0].replace(l, decodeURIComponent); 4851 if (o = c.read ? c.read(o, p) : c(o, p) || o.replace(l, decodeURIComponent), 4852 this.json) 4853 try { 4854 o = JSON.parse(o) 4855 } catch (a) {} 4856 if (b === p) { 4857 g = o; 4858 break 4859 } 4860 b || (g[p] = o) 4861 } catch (a) {} 4862 } 4863 return g 4864 } 4865 } 4866 return d.set = d, 4867 d.get = function(a) { 4868 return d.call(d, a) 4869 } 4870 , 4871 d.getJSON = function() { 4872 return d.apply({ 4873 json: !0 4874 }, [].slice.call(arguments)) 4875 } 4876 , 4877 d.defaults = {}, 4878 d.remove = function(b, c) { 4879 d(b, "", a(c, { 4880 expires: -1 4881 })) 4882 } 4883 , 4884 d.withConverter = b, 4885 d 4886 } 4887 return b(function() {}) 4888}), 4889function() { 4890 "use strict"; 4891 function a(b, d) { 4892 function e(a, b) { 4893 return function() { 4894 return a.apply(b, arguments) 4895 } 4896 } 4897 var f; 4898 if (d = d || {}, 4899 this.trackingClick = !1, 4900 this.trackingClickStart = 0, 4901 this.targetElement = null, 4902 this.touchStartX = 0, 4903 this.touchStartY = 0, 4904 this.lastTouchIdentifier = 0, 4905 this.touchBoundary = d.touchBoundary || 10, 4906 this.layer = b, 4907 this.tapDelay = d.tapDelay || 200, 4908 this.tapTimeout = d.tapTimeout || 700, 4909 !a.notNeeded(b)) { 4910 for (var g = ["onMouse", "onClick", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel"], h
vendor: 10,974 bytes, lines 4910-5182
4910= this, i = 0, j = g.length; i < j; i++) 4911 h[g[i]] = e(h[g[i]], h); 4912 c && (b.addEventListener("mouseover", this.onMouse, !0), 4913 b.addEventListener("mousedown", this.onMouse, !0), 4914 b.addEventListener("mouseup", this.onMouse, !0)), 4915 b.addEventListener("click", this.onClick, !0), 4916 b.addEventListener("touchstart", this.onTouchStart, !1), 4917 b.addEventListener("touchmove", this.onTouchMove, !1), 4918 b.addEventListener("touchend", this.onTouchEnd, !1), 4919 b.addEventListener("touchcancel", this.onTouchCancel, !1), 4920 Event.prototype.stopImmediatePropagation || (b.removeEventListener = function(a, c, d) { 4921 var e = Node.prototype.removeEventListener; 4922 "click" === a ? e.call(b, a, c.hijacked || c, d) : e.call(b, a, c, d) 4923 } 4924 , 4925 b.addEventListener = function(a, c, d) { 4926 var e = Node.prototype.addEventListener; 4927 "click" === a ? e.call(b, a, c.hijacked || (c.hijacked = function(a) { 4928 a.propagationStopped || c(a) 4929 } 4930 ), d) : e.call(b, a, c, d) 4931 } 4932 ), 4933 "function" == typeof b.onclick && (f = b.onclick, 4934 b.addEventListener("click", function(a) { 4935 f(a) 4936 }, !1), 4937 b.onclick = null) 4938 } 4939 } 4940 var b = navigator.userAgent.indexOf("Windows Phone") >= 0 4941 , c = navigator.userAgent.indexOf("Android") > 0 && !b 4942 , d = /iP(ad|hone|od)/.test(navigator.userAgent) && !b 4943 , e = d && /OS 4_\d(_\d)?/.test(navigator.userAgent) 4944 , f = d && /OS [6-7]_\d/.test(navigator.userAgent) 4945 , g = navigator.userAgent.indexOf("BB10") > 0; 4946 a.prototype.needsClick = function(a) { 4947 switch (a.nodeName.toLowerCase()) { 4948 case "button": 4949 case "select": 4950 case "textarea": 4951 if (a.disabled) 4952 return !0; 4953 break; 4954 case "input": 4955 if (d && "file" === a.type || a.disabled) 4956 return !0; 4957 break; 4958 case "label": 4959 case "iframe": 4960 case "video": 4961 return !0 4962 } 4963 return /\bneedsclick\b/.test(a.className) 4964 } 4965 , 4966 a.prototype.needsFocus = function(a) { 4967 switch (a.nodeName.toLowerCase()) { 4968 case "textarea": 4969 return !0; 4970 case "select": 4971 return !c; 4972 case "input": 4973 switch (a.type) { 4974 case "button": 4975 case "checkbox": 4976 case "file": 4977 case "image": 4978 case "radio": 4979 case "submit": 4980 return !1 4981 } 4982 return !a.disabled && !a.readOnly; 4983 default: 4984 return /\bneedsfocus\b/.test(a.className) 4985 } 4986 } 4987 , 4988 a.prototype.sendClick = function(a, b) { 4989 var c, d; 4990 document.activeElement && document.activeElement !== a && document.activeElement.blur(), 4991 d = b.changedTouches[0], 4992 c = document.createEvent("MouseEvents"), 4993 c.initMouseEvent(this.determineEventType(a), !0, !0, window, 1, d.screenX, d.screenY, d.clientX, d.clientY, !1, !1, !1, !1, 0, null), 4994 c.forwardedTouchEvent = !0, 4995 a.dispatchEvent(c) 4996 } 4997 , 4998 a.prototype.determineEventType = function(a) { 4999 return c && "select" === a.tagName.toLowerCase() ? "mousedown" : "click" 5000 } 5001 , 5002 a.prototype.focus = function(a) { 5003 var b; 5004 d && a.setSelectionRange && 0 !== a.type.indexOf("date") && "time" !== a.type && "month" !== a.type ? (b = a.value.length, 5005 a.setSelectionRange(b, b)) : a.focus() 5006 } 5007 , 5008 a.prototype.updateScrollParent = function(a) { 5009 var b, c; 5010 if (!(b = a.fastClickScrollParent) || !b.contains(a)) { 5011 c = a; 5012 do { 5013 if (c.scrollHeight > c.offsetHeight) { 5014 b = c, 5015 a.fastClickScrollParent = c; 5016 break 5017 } 5018 c = c.parentElement 5019 } while (c) 5020 } 5021 b && (b.fastClickLastScrollTop = b.scrollTop) 5022 } 5023 , 5024 a.prototype.getTargetElementFromEventTarget = function(a) { 5025 return a.nodeType === Node.TEXT_NODE ? a.parentNode : a 5026 } 5027 , 5028 a.prototype.onTouchStart = function(a) { 5029 var b, c, f; 5030 if (a.targetTouches.length > 1) 5031 return !0; 5032 if (b = this.getTargetElementFromEventTarget(a.target), 5033 c = a.targetTouches[0], 5034 d) { 5035 if (f = window.getSelection(), 5036 f.rangeCount && !f.isCollapsed) 5037 return !0; 5038 if (!e) { 5039 if (c.identifier && c.identifier === this.lastTouchIdentifier) 5040 return a.preventDefault(), 5041 !1; 5042 this.lastTouchIdentifier = c.identifier, 5043 this.updateScrollParent(b) 5044 } 5045 } 5046 return this.trackingClick = !0, 5047 this.trackingClickStart = a.timeStamp, 5048 this.targetElement = b, 5049 this.touchStartX = c.pageX, 5050 this.touchStartY = c.pageY, 5051 a.timeStamp - this.lastClickTime < this.tapDelay && a.preventDefault(), 5052 !0 5053 } 5054 , 5055 a.prototype.touchHasMoved = function(a) { 5056 var b = a.changedTouches[0] 5057 , c = this.touchBoundary; 5058 return Math.abs(b.pageX - this.touchStartX) > c || Math.abs(b.pageY - this.touchStartY) > c 5059 } 5060 , 5061 a.prototype.onTouchMove = function(a) { 5062 return !this.trackingClick || ((this.targetElement !== this.getTargetElementFromEventTarget(a.target) || this.touchHasMoved(a)) && (this.trackingClick = !1, 5063 this.targetElement = null), 5064 !0) 5065 } 5066 , 5067 a.prototype.findControl = function(a) { 5068 return void 0 !== a.control ? a.control : a.htmlFor ? document.getElementById(a.htmlFor) : a.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea") 5069 } 5070 , 5071 a.prototype.onTouchEnd = function(a) { 5072 var b, g, h, i, j, k = this.targetElement; 5073 if (!this.trackingClick) 5074 return !0; 5075 if (a.timeStamp - this.lastClickTime < this.tapDelay) 5076 return this.cancelNextClick = !0, 5077 !0; 5078 if (a.timeStamp - this.trackingClickStart > this.tapTimeout) 5079 return !0; 5080 if (this.cancelNextClick = !1, 5081 this.lastClickTime = a.timeStamp, 5082 g = this.trackingClickStart, 5083 this.trackingClick = !1, 5084 this.trackingClickStart = 0, 5085 f && (j = a.changedTouches[0], 5086 k = document.elementFromPoint(j.pageX - window.pageXOffset, j.pageY - window.pageYOffset) || k, 5087 k.fastClickScrollParent = this.targetElement.fastClickScrollParent), 5088 "label" === (h = k.tagName.toLowerCase())) { 5089 if (b = this.findControl(k)) { 5090 if (this.focus(k), 5091 c) 5092 return !1; 5093 k = b 5094 } 5095 } else if (this.needsFocus(k)) 5096 return a.timeStamp - g > 100 || d && window.top !== window && "input" === h ? (this.targetElement = null, 5097 !1) : (this.focus(k), 5098 this.sendClick(k, a), 5099 d && "select" === h || (this.targetElement = null, 5100 a.preventDefault()), 5101 !1); 5102 return !(!d || e || !(i = k.fastClickScrollParent) || i.fastClickLastScrollTop === i.scrollTop) || (this.needsClick(k) || (a.preventDefault(), 5103 this.sendClick(k, a)), 5104 !1) 5105 } 5106 , 5107 a.prototype.onTouchCancel = function() { 5108 this.trackingClick = !1, 5109 this.targetElement = null 5110 } 5111 , 5112 a.prototype.onMouse = function(a) { 5113 return !this.targetElement || (!!a.forwardedTouchEvent || (!a.cancelable || (!(!this.needsClick(this.targetElement) || this.cancelNextClick) || (a.stopImmediatePropagation ? a.stopImmediatePropagation() : a.propagationStopped = !0, 5114 a.stopPropagation(), 5115 a.preventDefault(), 5116 !1)))) 5117 } 5118 , 5119 a.prototype.onClick = function(a) { 5120 var b; 5121 return this.trackingClick ? (this.targetElement = null, 5122 this.trackingClick = !1, 5123 !0) : "submit" === a.target.type && 0 === a.detail || (b = this.onMouse(a), 5124 b || (this.targetElement = null), 5125 b) 5126 } 5127 , 5128 a.prototype.destroy = function() { 5129 var a = this.layer; 5130 c && (a.removeEventListener("mouseover", this.onMouse, !0), 5131 a.removeEventListener("mousedown", this.onMouse, !0), 5132 a.removeEventListener("mouseup", this.onMouse, !0)), 5133 a.removeEventListener("click", this.onClick, !0), 5134 a.removeEventListener("touchstart", this.onTouchStart, !1), 5135 a.removeEventListener("touchmove", this.onTouchMove, !1), 5136 a.removeEventListener("touchend", this.onTouchEnd, !1), 5137 a.removeEventListener("touchcancel", this.onTouchCancel, !1) 5138 } 5139 , 5140 a.notNeeded = function(a) { 5141 var b, d, e; 5142 if (void 0 === window.ontouchstart) 5143 return !0; 5144 if (d = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [, 0])[1]) { 5145 if (!c) 5146 return !0; 5147 if (b = document.querySelector("meta[name=viewport]")) { 5148 if (-1 !== b.content.indexOf("user-scalable=no")) 5149 return !0; 5150 if (d > 31 && document.documentElement.scrollWidth <= window.outerWidth) 5151 return !0 5152 } 5153 } 5154 if (g && (e = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/), 5155 e[1] >= 10 && e[2] >= 3 && (b = document.querySelector("meta[name=viewport]")))) { 5156 if (-1 !== b.content.indexOf("user-scalable=no")) 5157 return !0; 5158 if (document.documentElement.scrollWidth <= window.outerWidth) 5159 return !0 5160 } 5161 return "none" === a.style.msTouchAction || "manipulation" === a.style.touchAction || (!!(+(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [, 0])[1] >= 27 && (b = document.querySelector("meta[name=viewport]")) && (-1 !== b.content.indexOf("user-scalable=no") || document.documentElement.scrollWidth <= window.outerWidth)) || ("none" === a.style.touchAction || "manipulation" === a.style.touchAction)) 5162 } 5163 , 5164 a.attach = function(b, c) { 5165 return new a(b,c) 5166 } 5167 , 5168 "function" == typeof define && "object" == typeof define.amd && define.amd ? define(function() { 5169 return a 5170 }) : "undefined" != typeof module && module.exports ? (module.exports = a.attach, 5171 module.exports.FastClick = a) : window.FastClick = a 5172}(), 5173function(a) { 5174 "use strict"; 5175 a.fn.fitVids = function(b) { 5176 var c = { 5177 customSelector: null 5178 }; 5179 if (!document.getElementById("fit-vids-style")) { 5180 var d = document.head || document.getElementsByTagName("head")[0] 5181 , e = document.createElement("div"); 5182 e.innerHTML = '<p>
vendor: 23,002 bytes, lines 5182-5885
5182x</p><style id="fit-vids-style">' + ".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}" + "</style>", 5183 d.appendChild(e.childNodes[1]) 5184 } 5185 return b && a.extend(c, b), 5186 this.each(function() { 5187 var b = ["iframe[src*='player.vimeo.com']", "iframe[src*='youtube.com']", "iframe[src*='youtube-nocookie.com']", "iframe[src*='kickstarter.com'][src*='video.html']", "object", "embed"]; 5188 c.customSelector && b.push(c.customSelector); 5189 var d = a(this).find(b.join(",")); 5190 d = d.not("object object"), 5191 d.each(function() { 5192 var b = a(this); 5193 if (!("embed" === this.tagName.toLowerCase() && b.parent("object").length || b.parent(".fluid-width-video-wrapper").length)) { 5194 var c = "object" === this.tagName.toLowerCase() || b.attr("height") && !isNaN(parseInt(b.attr("height"), 10)) ? parseInt(b.attr("height"), 10) : b.height() 5195 , d = isNaN(parseInt(b.attr("width"), 10)) ? b.width() : parseInt(b.attr("width"), 10) 5196 , e = c / d; 5197 if (!b.attr("id")) { 5198 var f = "fitvid" + Math.floor(999999 * Math.random()); 5199 b.attr("id", f) 5200 } 5201 b.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top", 100 * e + "%"), 5202 b.removeAttr("height").removeAttr("width") 5203 } 5204 }) 5205 }) 5206 } 5207}(window.jQuery || window.Zepto), 5208function(a, b) { 5209 "function" == typeof define && define.amd ? define("jquery-bridget/jquery-bridget", ["jquery"], function(c) { 5210 return b(a, c) 5211 }) : "object" == typeof module && module.exports ? module.exports = b(a, require("jquery")) : a.jQueryBridget = b(a, a.jQuery) 5212}(window, function(a, b) { 5213 "use strict"; 5214 function c(c, f, h) { 5215 function i(a, b, d) { 5216 var e, f = "$()." + c + '("' + b + '")'; 5217 return a.each(function(a, i) { 5218 var j = h.data(i, c); 5219 if (!j) 5220 return void g(c + " not initialized. Cannot call methods, i.e. " + f); 5221 var k = j[b]; 5222 if (!k || "_" == b.charAt(0)) 5223 return void g(f + " is not a valid method"); 5224 var l = k.apply(j, d); 5225 e = void 0 === e ? l : e 5226 }), 5227 void 0 !== e ? e : a 5228 } 5229 function j(a, b) { 5230 a.each(function(a, d) { 5231 var e = h.data(d, c); 5232 e ? (e.option(b), 5233 e._init()) : (e = new f(d,b), 5234 h.data(d, c, e)) 5235 }) 5236 } 5237 (h = h || b || a.jQuery) && (f.prototype.option || (f.prototype.option = function(a) { 5238 h.isPlainObject(a) && (this.options = h.extend(!0, this.options, a)) 5239 } 5240 ), 5241 h.fn[c] = function(a) { 5242 if ("string" == typeof a) { 5243 return i(this, a, e.call(arguments, 1)) 5244 } 5245 return j(this, a), 5246 this 5247 } 5248 , 5249 d(h)) 5250 } 5251 function d(a) { 5252 !a || a && a.bridget || (a.bridget = c) 5253 } 5254 var e = Array.prototype.slice 5255 , f = a.console 5256 , g = void 0 === f ? function() {} 5257 : function(a) { 5258 f.error(a) 5259 } 5260 ; 5261 return d(b || a.jQuery), 5262 c 5263}), 5264function(a, b) { 5265 "function" == typeof define && define.amd ? define("ev-emitter/ev-emitter", b) : "object" == typeof module && module.exports ? module.exports = b() : a.EvEmitter = b() 5266}("undefined" != typeof window ? window : this, function() { 5267 function a() {} 5268 var b = a.prototype; 5269 return b.on = function(a, b) { 5270 if (a && b) { 5271 var c = this._events = this._events || {} 5272 , d = c[a] = c[a] || []; 5273 return -1 == d.indexOf(b) && d.push(b), 5274 this 5275 } 5276 } 5277 , 5278 b.once = function(a, b) { 5279 if (a && b) { 5280 this.on(a, b); 5281 var c = this._onceEvents = this._onceEvents || {}; 5282 return (c[a] = c[a] || {})[b] = !0, 5283 this 5284 } 5285 } 5286 , 5287 b.off = function(a, b) { 5288 var c = this._events && this._events[a]; 5289 if (c && c.length) { 5290 var d = c.indexOf(b); 5291 return -1 != d && c.splice(d, 1), 5292 this 5293 } 5294 } 5295 , 5296 b.emitEvent = function(a, b) { 5297 var c = this._events && this._events[a]; 5298 if (c && c.length) { 5299 c = c.slice(0), 5300 b = b || []; 5301 for (var d = this._onceEvents && this._onceEvents[a], e = 0; e < c.length; e++) { 5302 var f = c[e]; 5303 d && d[f] && (this.off(a, f), 5304 delete d[f]), 5305 f.apply(this, b) 5306 } 5307 return this 5308 } 5309 } 5310 , 5311 b.allOff = function() { 5312 delete this._events, 5313 delete this._onceEvents 5314 } 5315 , 5316 a 5317}), 5318function(a, b) { 5319 "function" == typeof define && define.amd ? define("get-size/get-size", b) : "object" == typeof module && module.exports ? module.exports = b() : a.getSize = b() 5320}(window, function() { 5321 "use strict"; 5322 function a(a) { 5323 var b = parseFloat(a); 5324 return -1 == a.indexOf("%") && !isNaN(b) && b 5325 } 5326 function b() {} 5327 function c() { 5328 for (var a = { 5329 width: 0, 5330 height: 0, 5331 innerWidth: 0, 5332 innerHeight: 0, 5333 outerWidth: 0, 5334 outerHeight: 0 5335 }, b = 0; j > b; b++) { 5336 a[i[b]] = 0 5337 } 5338 return a 5339 } 5340 function d(a) { 5341 var b = getComputedStyle(a); 5342 return b || h("Style returned " + b + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"), 5343 b 5344 } 5345 function e() { 5346 if (!k) { 5347 k = !0; 5348 var b = document.createElement("div"); 5349 b.style.width = "200px", 5350 b.style.padding = "1px 2px 3px 4px", 5351 b.style.borderStyle = "solid", 5352 b.style.borderWidth = "1px 2px 3px 4px", 5353 b.style.boxSizing = "border-box"; 5354 var c = document.body || document.documentElement; 5355 c.appendChild(b); 5356 var e = d(b); 5357 g = 200 == Math.round(a(e.width)), 5358 f.isBoxSizeOuter = g, 5359 c.removeChild(b) 5360 } 5361 } 5362 function f(b) { 5363 if (e(), 5364 "string" == typeof b && (b = document.querySelector(b)), 5365 b && "object" == typeof b && b.nodeType) { 5366 var f = d(b); 5367 if ("none" == f.display) 5368 return c(); 5369 var h = {}; 5370 h.width = b.offsetWidth, 5371 h.height = b.offsetHeight; 5372 for (var k = h.isBorderBox = "border-box" == f.boxSizing, l = 0; j > l; l++) { 5373 var m = i[l] 5374 , n = f[m] 5375 , o = parseFloat(n); 5376 h[m] = isNaN(o) ? 0 : o 5377 } 5378 var p = h.paddingLeft + h.paddingRight 5379 , q = h.paddingTop + h.paddingBottom 5380 , r = h.marginLeft + h.marginRight 5381 , s = h.marginTop + h.marginBottom 5382 , t = h.borderLeftWidth + h.borderRightWidth 5383 , u = h.borderTopWidth + h.borderBottomWidth 5384 , v = k && g 5385 , w = a(f.width); 5386 !1 !== w && (h.width = w + (v ? 0 : p + t)); 5387 var x = a(f.height); 5388 return !1 !== x && (h.height = x + (v ? 0 : q + u)), 5389 h.innerWidth = h.width - (p + t), 5390 h.innerHeight = h.height - (q + u), 5391 h.outerWidth = h.width + r, 5392 h.outerHeight = h.height + s, 5393 h 5394 } 5395 } 5396 var g, h = "undefined" == typeof console ? b : function(a) { 5397 console.error(a) 5398 } 5399 , i = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], j = i.length, k = !1; 5400 return f 5401}), 5402function(a, b) { 5403 "use strict"; 5404 "function" == typeof define && define.amd ? define("desandro-matches-selector/matches-selector", b) : "object" == typeof module && module.exports ? module.exports = b() : a.matchesSelector = b() 5405}(window, function() { 5406 "use strict"; 5407 var a = function() { 5408 var a = window.Element.prototype; 5409 if (a.matches) 5410 return "matches"; 5411 if (a.matchesSelector) 5412 return "matchesSelector"; 5413 for (var b = ["webkit", "moz", "ms", "o"], c = 0; c < b.length; c++) { 5414 var d = b[c] 5415 , e = d + "MatchesSelector"; 5416 if (a[e]) 5417 return e 5418 } 5419 }(); 5420 return function(b, c) { 5421 return b[a](c) 5422 } 5423}), 5424function(a, b) { 5425 "function" == typeof define && define.amd ? define("fizzy-ui-utils/utils", ["desandro-matches-selector/matches-selector"], function(c) { 5426 return b(a, c) 5427 }) : "object" == typeof module && module.exports ? module.exports = b(a, require("desandro-matches-selector")) : a.fizzyUIUtils = b(a, a.matchesSelector) 5428}(window, function(a, b) { 5429 var c = {}; 5430 c.extend = function(a, b) { 5431 for (var c in b) 5432 a[c] = b[c]; 5433 return a 5434 } 5435 , 5436 c.modulo = function(a, b) { 5437 return (a % b + b) % b 5438 } 5439 ; 5440 var d = Array.prototype.slice; 5441 c.makeArray = function(a) { 5442 return Array.isArray(a) ? a : null === a || void 0 === a ? [] : "object" == typeof a && "number" == typeof a.length ? d.call(a) : [a] 5443 } 5444 , 5445 c.removeFrom = function(a, b) { 5446 var c = a.indexOf(b); 5447 -1 != c && a.splice(c, 1) 5448 } 5449 , 5450 c.getParent = function(a, c) { 5451 for (; a.parentNode && a != document.body; ) 5452 if (a = a.parentNode, 5453 b(a, c)) 5454 return a 5455 } 5456 , 5457 c.getQueryElement = function(a) { 5458 return "string" == typeof a ? document.querySelector(a) : a 5459 } 5460 , 5461 c.handleEvent = function(a) { 5462 var b = "on" + a.type; 5463 this[b] && this[b](a) 5464 } 5465 , 5466 c.filterFindElements = function(a, d) { 5467 a = c.makeArray(a); 5468 var e = []; 5469 return a.forEach(function(a) { 5470 if (a instanceof HTMLElement) { 5471 if (!d) 5472 return void e.push(a); 5473 b(a, d) && e.push(a); 5474 for (var c = a.querySelectorAll(d), f = 0; f < c.length; f++) 5475 e.push(c[f]) 5476 } 5477 }), 5478 e 5479 } 5480 , 5481 c.debounceMethod = function(a, b, c) { 5482 c = c || 100; 5483 var d = a.prototype[b] 5484 , e = b + "Timeout"; 5485 a.prototype[b] = function() { 5486 var a = this[e]; 5487 clearTimeout(a); 5488 var b = arguments 5489 , f = this; 5490 this[e] = setTimeout(function() { 5491 d.apply(f, b), 5492 delete f[e] 5493 }, c) 5494 } 5495 } 5496 , 5497 c.docReady = function(a) { 5498 var b = document.readyState; 5499 "complete" == b || "interactive" == b ? setTimeout(a) : document.addEventListener("DOMContentLoaded", a) 5500 } 5501 , 5502 c.toDashed = function(a) { 5503 return a.replace(/(.)([A-Z])/g, function(a, b, c) { 5504 return b + "-" + c 5505 }).toLowerCase() 5506 } 5507 ; 5508 var e = a.console; 5509 return c.htmlInit = function(b, d) { 5510 c.docReady(function() { 5511 var f = c.toDashed(d) 5512 , g = "data-" + f 5513 , h = document.querySelectorAll("[" + g + "]") 5514 , i = document.querySelectorAll(".js-" + f) 5515 , j = c.makeArray(h).concat(c.makeArray(i)) 5516 , k = g + "-options" 5517 , l = a.jQuery; 5518 j.forEach(function(a) { 5519 var c, f = a.getAttribute(g) || a.getAttribute(k); 5520 try { 5521 c = f && JSON.parse(f) 5522 } catch (b) { 5523 return void (e && e.error("Error parsing " + g + " on " + a.className + ": " + b)) 5524 } 5525 var h = new b(a,c); 5526 l && l.data(a, d, h) 5527 }) 5528 }) 5529 } 5530 , 5531 c 5532}), 5533function(a, b) { 5534 "function" == typeof define && define.amd ? define("outlayer/item", ["ev-emitter/ev-emitter", "get-size/get-size"], b) : "object" == typeof module && module.exports ? module.exports = b(require("ev-emitter"), require("get-size")) : (a.Outlayer = {}, 5535 a.Outlayer.Item = b(a.EvEmitter, a.getSize)) 5536}(window, function(a, b) { 5537 "use strict"; 5538 function c(a) { 5539 for (var b in a) 5540 return !1; 5541 return null, 5542 !0 5543 } 5544 function d(a, b) { 5545 a && (this.element = a, 5546 this.layout = b, 5547 this.position = { 5548 x: 0, 5549 y: 0 5550 }, 5551 this._create()) 5552 } 5553 function e(a) { 5554 return a.replace(/([A-Z])/g, function(a) { 5555 return "-" + a.toLowerCase() 5556 }) 5557 } 5558 var f = document.documentElement.style 5559 , g = "string" == typeof f.transition ? "transition" : "WebkitTransition" 5560 , h = "string" == typeof f.transform ? "transform" : "WebkitTransform" 5561 , i = { 5562 WebkitTransition: "webkitTransitionEnd", 5563 transition: "transitionend" 5564 }[g] 5565 , j = { 5566 transform: h, 5567 transition: g, 5568 transitionDuration: g + "Duration", 5569 transitionProperty: g + "Property", 5570 transitionDelay: g + "Delay" 5571 } 5572 , k = d.prototype = Object.create(a.prototype); 5573 k.constructor = d, 5574 k._create = function() { 5575 this._transn = { 5576 ingProperties: {}, 5577 clean: {}, 5578 onEnd: {} 5579 }, 5580 this.css({ 5581 position: "absolute" 5582 }) 5583 } 5584 , 5585 k.handleEvent = function(a) { 5586 var b = "on" + a.type; 5587 this[b] && this[b](a) 5588 } 5589 , 5590 k.getSize = function() { 5591 this.size = b(this.element) 5592 } 5593 , 5594 k.css = function(a) { 5595 var b = this.element.style; 5596 for (var c in a) { 5597 b[j[c] || c] = a[c] 5598 } 5599 } 5600 , 5601 k.getPosition = function() { 5602 var a = getComputedStyle(this.element) 5603 , b = this.layout._getOption("originLeft") 5604 , c = this.layout._getOption("originTop") 5605 , d = a[b ? "left" : "right"] 5606 , e = a[c ? "top" : "bottom"] 5607 , f = parseFloat(d) 5608 , g = parseFloat(e) 5609 , h = this.layout.size; 5610 -1 != d.indexOf("%") && (f = f / 100 * h.width), 5611 -1 != e.indexOf("%") && (g = g / 100 * h.height), 5612 f = isNaN(f) ? 0 : f, 5613 g = isNaN(g) ? 0 : g, 5614 f -= b ? h.paddingLeft : h.paddingRight, 5615 g -= c ? h.paddingTop : h.paddingBottom, 5616 this.position.x = f, 5617 this.position.y = g 5618 } 5619 , 5620 k.layoutPosition = function() { 5621 var a = this.layout.size 5622 , b = {} 5623 , c = this.layout._getOption("originLeft") 5624 , d = this.layout._getOption("originTop") 5625 , e = c ? "paddingLeft" : "paddingRight" 5626 , f = c ? "left" : "right" 5627 , g = c ? "right" : "left" 5628 , h = this.position.x + a[e]; 5629 b[f] = this.getXValue(h), 5630 b[g] = ""; 5631 var i = d ? "paddingTop" : "paddingBottom" 5632 , j = d ? "top" : "bottom" 5633 , k = d ? "bottom" : "top" 5634 , l = this.position.y + a[i]; 5635 b[j] = this.getYValue(l), 5636 b[k] = "", 5637 this.css(b), 5638 this.emitEvent("layout", [this]) 5639 } 5640 , 5641 k.getXValue = function(a) { 5642 var b = this.layout._getOption("horizontal"); 5643 return this.layout.options.percentPosition && !b ? a / this.layout.size.width * 100 + "%" : a + "px" 5644 } 5645 , 5646 k.getYValue = function(a) { 5647 var b = this.layout._getOption("horizontal"); 5648 return this.layout.options.percentPosition && b ? a / this.layout.size.height * 100 + "%" : a + "px" 5649 } 5650 , 5651 k._transitionTo = function(a, b) { 5652 this.getPosition(); 5653 var c = this.position.x 5654 , d = this.position.y 5655 , e = a == this.position.x && b == this.position.y; 5656 if (this.setPosition(a, b), 5657 e && !this.isTransitioning) 5658 return void this.layoutPosition(); 5659 var f = a - c 5660 , g = b - d 5661 , h = {}; 5662 h.transform = this.getTranslate(f, g), 5663 this.transition({ 5664 to: h, 5665 onTransitionEnd: { 5666 transform: this.layoutPosition 5667 }, 5668 isCleaning: !0 5669 }) 5670 } 5671 , 5672 k.getTranslate = function(a, b) { 5673 var c = this.layout._getOption("originLeft") 5674 , d = this.layout._getOption("originTop"); 5675 return a = c ? a : -a, 5676 b = d ? b : -b, 5677 "translate3d(" + a + "px, " + b + "px, 0)" 5678 } 5679 , 5680 k.goTo = function(a, b) { 5681 this.setPosition(a, b), 5682 this.layoutPosition() 5683 } 5684 , 5685 k.moveTo = k._transitionTo, 5686 k.setPosition = function(a, b) { 5687 this.position.x = parseFloat(a), 5688 this.position.y = parseFloat(b) 5689 } 5690 , 5691 k._nonTransition = function(a) { 5692 this.css(a.to), 5693 a.isCleaning && this._removeStyles(a.to); 5694 for (var b in a.onTransitionEnd) 5695 a.onTransitionEnd[b].call(this) 5696 } 5697 , 5698 k.transition = function(a) { 5699 if (!parseFloat(this.layout.options.transitionDuration)) 5700 return void this._nonTransition(a); 5701 var b = this._transn; 5702 for (var c in a.onTransitionEnd) 5703 b.onEnd[c] = a.onTransitionEnd[c]; 5704 for (c in a.to) 5705 b.ingProperties[c] = !0, 5706 a.isCleaning && (b.clean[c] = !0); 5707 if (a.from) { 5708 this.css(a.from); 5709 this.element.offsetHeight; 5710 null 5711 } 5712 this.enableTransition(a.to), 5713 this.css(a.to), 5714 this.isTransitioning = !0 5715 } 5716 ; 5717 var l = "opacity," + e(h); 5718 k.enableTransition = function() { 5719 if (!this.isTransitioning) { 5720 var a = this.layout.options.transitionDuration; 5721 a = "number" == typeof a ? a + "ms" : a, 5722 this.css({ 5723 transitionProperty: l, 5724 transitionDuration: a, 5725 transitionDelay: this.staggerDelay || 0 5726 }), 5727 this.element.addEventListener(i, this, !1) 5728 } 5729 } 5730 , 5731 k.onwebkitTransitionEnd = function(a) { 5732 this.ontransitionend(a) 5733 } 5734 , 5735 k.onotransitionend = function(a) { 5736 this.ontransitionend(a) 5737 } 5738 ; 5739 var m = { 5740 "-webkit-transform": "transform" 5741 }; 5742 k.ontransitionend = function(a) { 5743 if (a.target === this.element) { 5744 var b = this._transn 5745 , d = m[a.propertyName] || a.propertyName; 5746 if (delete b.ingProperties[d], 5747 c(b.ingProperties) && this.disableTransition(), 5748 d in b.clean && (this.element.style[a.propertyName] = "", 5749 delete b.clean[d]), 5750 d in b.onEnd) { 5751 b.onEnd[d].call(this), 5752 delete b.onEnd[d] 5753 } 5754 this.emitEvent("transitionEnd", [this]) 5755 } 5756 } 5757 , 5758 k.disableTransition = function() { 5759 this.removeTransitionStyles(), 5760 this.element.removeEventListener(i, this, !1), 5761 this.isTransitioning = !1 5762 } 5763 , 5764 k._removeStyles = function(a) { 5765 var b = {}; 5766 for (var c in a) 5767 b[c] = ""; 5768 this.css(b) 5769 } 5770 ; 5771 var n = { 5772 transitionProperty: "", 5773 transitionDuration: "", 5774 transitionDelay: "" 5775 }; 5776 return k.removeTransitionStyles = function() { 5777 this.css(n) 5778 } 5779 , 5780 k.stagger = function(a) { 5781 a = isNaN(a) ? 0 : a, 5782 this.staggerDelay = a + "ms" 5783 } 5784 , 5785 k.removeElem = function() { 5786 this.element.parentNode.removeChild(this.element), 5787 this.css({ 5788 display: "" 5789 }), 5790 this.emitEvent("remove", [this]) 5791 } 5792 , 5793 k.remove = function() { 5794 return g && parseFloat(this.layout.options.transitionDuration) ? (this.once("transitionEnd", function() { 5795 this.removeElem() 5796 }), 5797 void this.hide()) : void this.removeElem() 5798 } 5799 , 5800 k.reveal = function() { 5801 delete this.isHidden, 5802 this.css({ 5803 display: "" 5804 }); 5805 var a = this.layout.options 5806 , b = {}; 5807 b[this.getHideRevealTransitionEndProperty("visibleStyle")] = this.onRevealTransitionEnd, 5808 this.transition({ 5809 from: a.hiddenStyle, 5810 to: a.visibleStyle, 5811 isCleaning: !0, 5812 onTransitionEnd: b 5813 }) 5814 } 5815 , 5816 k.onRevealTransitionEnd = function() { 5817 this.isHidden || this.emitEvent("reveal") 5818 } 5819 , 5820 k.getHideRevealTransitionEndProperty = function(a) { 5821 var b = this.layout.options[a]; 5822 if (b.opacity) 5823 return "opacity"; 5824 for (var c in b) 5825 return c 5826 } 5827 , 5828 k.hide = function() { 5829 this.isHidden = !0, 5830 this.css({ 5831 display: "" 5832 }); 5833 var a = this.layout.options 5834 , b = {}; 5835 b[this.getHideRevealTransitionEndProperty("hiddenStyle")] = this.onHideTransitionEnd, 5836 this.transition({ 5837 from: a.visibleStyle, 5838 to: a.hiddenStyle, 5839 isCleaning: !0, 5840 onTransitionEnd: b 5841 }) 5842 } 5843 , 5844 k.onHideTransitionEnd = function() { 5845 this.isHidden && (this.css({ 5846 display: "none" 5847 }), 5848 this.emitEvent("hide")) 5849 } 5850 , 5851 k.destroy = function() { 5852 this.css({ 5853 position: "", 5854 left: "", 5855 right: "", 5856 top: "", 5857 bottom: "", 5858 transition: "", 5859 transform: "" 5860 }) 5861 } 5862 , 5863 d 5864}), 5865function(a, b) { 5866 "use strict"; 5867 "function" == typeof define && define.amd ? define("outlayer/outlayer", ["ev-emitter/ev-emitter", "get-size/get-size", "fizzy-ui-utils/utils", "./item"], function(c, d, e, f) { 5868 return b(a, c, d, e, f) 5869 }) : "object" == typeof module && module.exports ? module.exports = b(a, require("ev-emitter"), require("get-size"), require("fizzy-ui-utils"), require("./item")) : a.Outlayer = b(a, a.EvEmitter, a.getSize, a.fizzyUIUtils, a.Outlayer.Item) 5870}(window, function(a, b, c, d, e) { 5871 "use strict"; 5872 function f(a, b) { 5873 var c = d.getQueryElement(a); 5874 if (!c) 5875 return void (i && i.error("Bad element for " + this.constructor.namespace + ": " + (c || a))); 5876 this.element = c, 5877 j && (this.$element = j(this.element)), 5878 this.options = d.extend({}, this.constructor.defaults), 5879 this.option(b); 5880 var e = ++l; 5881 this.element.outlayerGUID = e, 5882 m[e] = this, 5883 this._create(), 5884 this._getOption("initLayout") && this.layout() 5885 }
vendor: 2,858 bytes, lines 5886-5989
5886 function g(a) { 5887 function b() { 5888 a.apply(this, arguments) 5889 } 5890 return b.prototype = Object.create(a.prototype), 5891 b.prototype.constructor = b, 5892 b 5893 } 5894 function h(a) { 5895 if ("number" == typeof a) 5896 return a; 5897 var b = a.match(/(^\d*\.?\d*)(\w*)/) 5898 , c = b && b[1] 5899 , d = b && b[2]; 5900 return c.length ? (c = parseFloat(c)) * (o[d] || 1) : 0 5901 } 5902 var i = a.console 5903 , j = a.jQuery 5904 , k = function() {} 5905 , l = 0 5906 , m = {}; 5907 f.namespace = "outlayer", 5908 f.Item = e, 5909 f.defaults = { 5910 containerStyle: { 5911 position: "relative" 5912 }, 5913 initLayout: !0, 5914 originLeft: !0, 5915 originTop: !0, 5916 resize: !0, 5917 resizeContainer: !0, 5918 transitionDuration: "0.4s", 5919 hiddenStyle: { 5920 opacity: 0, 5921 transform: "scale(0.001)" 5922 }, 5923 visibleStyle: { 5924 opacity: 1, 5925 transform: "scale(1)" 5926 } 5927 }; 5928 var n = f.prototype; 5929 d.extend(n, b.prototype), 5930 n.option = function(a) { 5931 d.extend(this.options, a) 5932 } 5933 , 5934 n._getOption = function(a) { 5935 var b = this.constructor.compatOptions[a]; 5936 return b && void 0 !== this.options[b] ? this.options[b] : this.options[a] 5937 } 5938 , 5939 f.compatOptions = { 5940 initLayout: "isInitLayout", 5941 horizontal: "isHorizontal", 5942 layoutInstant: "isLayoutInstant", 5943 originLeft: "isOriginLeft", 5944 originTop: "isOriginTop", 5945 resize: "isResizeBound", 5946 resizeContainer: "isResizingContainer" 5947 }, 5948 n._create = function() { 5949 this.reloadItems(), 5950 this.stamps = [], 5951 this.stamp(this.options.stamp), 5952 d.extend(this.element.style, this.options.containerStyle), 5953 this._getOption("resize") && this.bindResize() 5954 } 5955 , 5956 n.reloadItems = function() { 5957 this.items = this._itemize(this.element.children) 5958 } 5959 , 5960 n._itemize = function(a) { 5961 for (var b = this._filterFindItemElements(a), c = this.constructor.Item, d = [], e = 0; e < b.length; e++) { 5962 var f = b[e] 5963 , g = new c(f,this); 5964 d.push(g) 5965 } 5966 return d 5967 } 5968 , 5969 n._filterFindItemElements = function(a) { 5970 return d.filterFindElements(a, this.options.itemSelector) 5971 } 5972 , 5973 n.getItemElements = function() { 5974 return this.items.map(function(a) { 5975 return a.element 5976 }) 5977 } 5978 , 5979 n.layout = function() { 5980 this._resetLayout(), 5981 this._manageStamps(); 5982 var a = this._getOption("layoutInstant") 5983 , b = void 0 !== a ? a : !this._isLayoutInited; 5984 this.layoutItems(this.items, b), 5985 this._isLayoutInited = !0 5986 } 5987 , 5988 n._init = n.layout, 5989 n._resetLayout = function() {
vendor: 15,512 bytes, lines 5990-6513
5990 this.getSize() 5991 } 5992 , 5993 n.getSize = function() { 5994 this.size = c(this.element) 5995 } 5996 , 5997 n._getMeasurement = function(a, b) { 5998 var d, e = this.options[a]; 5999 e ? ("string" == typeof e ? d = this.element.querySelector(e) : e instanceof HTMLElement && (d = e), 6000 this[a] = d ? c(d)[b] : e) : this[a] = 0 6001 } 6002 , 6003 n.layoutItems = function(a, b) { 6004 a = this._getItemsForLayout(a), 6005 this._layoutItems(a, b), 6006 this._postLayout() 6007 } 6008 , 6009 n._getItemsForLayout = function(a) { 6010 return a.filter(function(a) { 6011 return !a.isIgnored 6012 }) 6013 } 6014 , 6015 n._layoutItems = function(a, b) { 6016 if (this._emitCompleteOnItems("layout", a), 6017 a && a.length) { 6018 var c = []; 6019 a.forEach(function(a) { 6020 var d = this._getItemLayoutPosition(a); 6021 d.item = a, 6022 d.isInstant = b || a.isLayoutInstant, 6023 c.push(d) 6024 }, this), 6025 this._processLayoutQueue(c) 6026 } 6027 } 6028 , 6029 n._getItemLayoutPosition = function() { 6030 return { 6031 x: 0, 6032 y: 0 6033 } 6034 } 6035 , 6036 n._processLayoutQueue = function(a) { 6037 this.updateStagger(), 6038 a.forEach(function(a, b) { 6039 this._positionItem(a.item, a.x, a.y, a.isInstant, b) 6040 }, this) 6041 } 6042 , 6043 n.updateStagger = function() { 6044 var a = this.options.stagger; 6045 return null === a || void 0 === a ? void (this.stagger = 0) : (this.stagger = h(a), 6046 this.stagger) 6047 } 6048 , 6049 n._positionItem = function(a, b, c, d, e) { 6050 d ? a.goTo(b, c) : (a.stagger(e * this.stagger), 6051 a.moveTo(b, c)) 6052 } 6053 , 6054 n._postLayout = function() { 6055 this.resizeContainer() 6056 } 6057 , 6058 n.resizeContainer = function() { 6059 if (this._getOption("resizeContainer")) { 6060 var a = this._getContainerSize(); 6061 a && (this._setContainerMeasure(a.width, !0), 6062 this._setContainerMeasure(a.height, !1)) 6063 } 6064 } 6065 , 6066 n._getContainerSize = k, 6067 n._setContainerMeasure = function(a, b) { 6068 if (void 0 !== a) { 6069 var c = this.size; 6070 c.isBorderBox && (a += b ? c.paddingLeft + c.paddingRight + c.borderLeftWidth + c.borderRightWidth : c.paddingBottom + c.paddingTop + c.borderTopWidth + c.borderBottomWidth), 6071 a = Math.max(a, 0), 6072 this.element.style[b ? "width" : "height"] = a + "px" 6073 } 6074 } 6075 , 6076 n._emitCompleteOnItems = function(a, b) { 6077 function c() { 6078 e.dispatchEvent(a + "Complete", null, [b]) 6079 } 6080 function d() { 6081 ++g == f && c() 6082 } 6083 var e = this 6084 , f = b.length; 6085 if (!b || !f) 6086 return void c(); 6087 var g = 0; 6088 b.forEach(function(b) { 6089 b.once(a, d) 6090 }) 6091 } 6092 , 6093 n.dispatchEvent = function(a, b, c) { 6094 var d = b ? [b].concat(c) : c; 6095 if (this.emitEvent(a, d), 6096 j) 6097 if (this.$element = this.$element || j(this.element), 6098 b) { 6099 var e = j.Event(b); 6100 e.type = a, 6101 this.$element.trigger(e, c) 6102 } else 6103 this.$element.trigger(a, c) 6104 } 6105 , 6106 n.ignore = function(a) { 6107 var b = this.getItem(a); 6108 b && (b.isIgnored = !0) 6109 } 6110 , 6111 n.unignore = function(a) { 6112 var b = this.getItem(a); 6113 b && delete b.isIgnored 6114 } 6115 , 6116 n.stamp = function(a) { 6117 (a = this._find(a)) && (this.stamps = this.stamps.concat(a), 6118 a.forEach(this.ignore, this)) 6119 } 6120 , 6121 n.unstamp = function(a) { 6122 (a = this._find(a)) && a.forEach(function(a) { 6123 d.removeFrom(this.stamps, a), 6124 this.unignore(a) 6125 }, this) 6126 } 6127 , 6128 n._find = function(a) { 6129 return a ? ("string" == typeof a && (a = this.element.querySelectorAll(a)), 6130 a = d.makeArray(a)) : void 0 6131 } 6132 , 6133 n._manageStamps = function() { 6134 this.stamps && this.stamps.length && (this._getBoundingRect(), 6135 this.stamps.forEach(this._manageStamp, this)) 6136 } 6137 , 6138 n._getBoundingRect = function() { 6139 var a = this.element.getBoundingClientRect() 6140 , b = this.size; 6141 this._boundingRect = { 6142 left: a.left + b.paddingLeft + b.borderLeftWidth, 6143 top: a.top + b.paddingTop + b.borderTopWidth, 6144 right: a.right - (b.paddingRight + b.borderRightWidth), 6145 bottom: a.bottom - (b.paddingBottom + b.borderBottomWidth) 6146 } 6147 } 6148 , 6149 n._manageStamp = k, 6150 n._getElementOffset = function(a) { 6151 var b = a.getBoundingClientRect() 6152 , d = this._boundingRect 6153 , e = c(a); 6154 return { 6155 left: b.left - d.left - e.marginLeft, 6156 top: b.top - d.top - e.marginTop, 6157 right: d.right - b.right - e.marginRight, 6158 bottom: d.bottom - b.bottom - e.marginBottom 6159 } 6160 } 6161 , 6162 n.handleEvent = d.handleEvent, 6163 n.bindResize = function() { 6164 a.addEventListener("resize", this), 6165 this.isResizeBound = !0 6166 } 6167 , 6168 n.unbindResize = function() { 6169 a.removeEventListener("resize", this), 6170 this.isResizeBound = !1 6171 } 6172 , 6173 n.onresize = function() { 6174 this.resize() 6175 } 6176 , 6177 d.debounceMethod(f, "onresize", 100), 6178 n.resize = function() { 6179 this.isResizeBound && this.needsResizeLayout() && this.layout() 6180 } 6181 , 6182 n.needsResizeLayout = function() { 6183 var a = c(this.element); 6184 return this.size && a && a.innerWidth !== this.size.innerWidth 6185 } 6186 , 6187 n.addItems = function(a) { 6188 var b = this._itemize(a); 6189 return b.length && (this.items = this.items.concat(b)), 6190 b 6191 } 6192 , 6193 n.appended = function(a) { 6194 var b = this.addItems(a); 6195 b.length && (this.layoutItems(b, !0), 6196 this.reveal(b)) 6197 } 6198 , 6199 n.prepended = function(a) { 6200 var b = this._itemize(a); 6201 if (b.length) { 6202 var c = this.items.slice(0); 6203 this.items = b.concat(c), 6204 this._resetLayout(), 6205 this._manageStamps(), 6206 this.layoutItems(b, !0), 6207 this.reveal(b), 6208 this.layoutItems(c) 6209 } 6210 } 6211 , 6212 n.reveal = function(a) { 6213 if (this._emitCompleteOnItems("reveal", a), 6214 a && a.length) { 6215 var b = this.updateStagger(); 6216 a.forEach(function(a, c) { 6217 a.stagger(c * b), 6218 a.reveal() 6219 }) 6220 } 6221 } 6222 , 6223 n.hide = function(a) { 6224 if (this._emitCompleteOnItems("hide", a), 6225 a && a.length) { 6226 var b = this.updateStagger(); 6227 a.forEach(function(a, c) { 6228 a.stagger(c * b), 6229 a.hide() 6230 }) 6231 } 6232 } 6233 , 6234 n.revealItemElements = function(a) { 6235 var b = this.getItems(a); 6236 this.reveal(b) 6237 } 6238 , 6239 n.hideItemElements = function(a) { 6240 var b = this.getItems(a); 6241 this.hide(b) 6242 } 6243 , 6244 n.getItem = function(a) { 6245 for (var b = 0; b < this.items.length; b++) { 6246 var c = this.items[b]; 6247 if (c.element == a) 6248 return c 6249 } 6250 } 6251 , 6252 n.getItems = function(a) { 6253 a = d.makeArray(a); 6254 var b = []; 6255 return a.forEach(function(a) { 6256 var c = this.getItem(a); 6257 c && b.push(c) 6258 }, this), 6259 b 6260 } 6261 , 6262 n.remove = function(a) { 6263 var b = this.getItems(a); 6264 this._emitCompleteOnItems("remove", b), 6265 b && b.length && b.forEach(function(a) { 6266 a.remove(), 6267 d.removeFrom(this.items, a) 6268 }, this) 6269 } 6270 , 6271 n.destroy = function() { 6272 var a = this.element.style; 6273 a.height = "", 6274 a.position = "", 6275 a.width = "", 6276 this.items.forEach(function(a) { 6277 a.destroy() 6278 }), 6279 this.unbindResize(); 6280 var b = this.element.outlayerGUID; 6281 delete m[b], 6282 delete this.element.outlayerGUID, 6283 j && j.removeData(this.element, this.constructor.namespace) 6284 } 6285 , 6286 f.data = function(a) { 6287 a = d.getQueryElement(a); 6288 var b = a && a.outlayerGUID; 6289 return b && m[b] 6290 } 6291 , 6292 f.create = function(a, b) { 6293 var c = g(f); 6294 return c.defaults = d.extend({}, f.defaults), 6295 d.extend(c.defaults, b), 6296 c.compatOptions = d.extend({}, f.compatOptions), 6297 c.namespace = a, 6298 c.data = f.data, 6299 c.Item = g(e), 6300 d.htmlInit(c, a), 6301 j && j.bridget && j.bridget(a, c), 6302 c 6303 } 6304 ; 6305 var o = { 6306 ms: 1, 6307 s: 1e3 6308 }; 6309 return f.Item = e, 6310 f 6311}), 6312function(a, b) { 6313 "function" == typeof define && define.amd ? define(["outlayer/outlayer", "get-size/get-size"], b) : "object" == typeof module && module.exports ? module.exports = b(require("outlayer"), require("get-size")) : a.Masonry = b(a.Outlayer, a.getSize) 6314}(window, function(a, b) { 6315 var c = a.create("masonry"); 6316 c.compatOptions.fitWidth = "isFitWidth"; 6317 var d = c.prototype; 6318 return d._resetLayout = function() { 6319 this.getSize(), 6320 this._getMeasurement("columnWidth", "outerWidth"), 6321 this._getMeasurement("gutter", "outerWidth"), 6322 this.measureColumns(), 6323 this.colYs = []; 6324 for (var a = 0; a < this.cols; a++) 6325 this.colYs.push(0); 6326 this.maxY = 0, 6327 this.horizontalColIndex = 0 6328 } 6329 , 6330 d.measureColumns = function() { 6331 if (this.getContainerWidth(), 6332 !this.columnWidth) { 6333 var a = this.items[0] 6334 , c = a && a.element; 6335 this.columnWidth = c && b(c).outerWidth || this.containerWidth 6336 } 6337 var d = this.columnWidth += this.gutter 6338 , e = this.containerWidth + this.gutter 6339 , f = e / d 6340 , g = d - e % d 6341 , h = g && 1 > g ? "round" : "floor"; 6342 f = Math[h](f), 6343 this.cols = Math.max(f, 1) 6344 } 6345 , 6346 d.getContainerWidth = function() { 6347 var a = this._getOption("fitWidth") 6348 , c = a ? this.element.parentNode : this.element 6349 , d = b(c); 6350 this.containerWidth = d && d.innerWidth 6351 } 6352 , 6353 d._getItemLayoutPosition = function(a) { 6354 a.getSize(); 6355 var b = a.size.outerWidth % this.columnWidth 6356 , c = b && 1 > b ? "round" : "ceil" 6357 , d = Math[c](a.size.outerWidth / this.columnWidth); 6358 d = Math.min(d, this.cols); 6359 for (var e = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", f = this[e](d, a), g = { 6360 x: this.columnWidth * f.col, 6361 y: f.y 6362 }, h = f.y + a.size.outerHeight, i = d + f.col, j = f.col; i > j; j++) 6363 this.colYs[j] = h; 6364 return g 6365 } 6366 , 6367 d._getTopColPosition = function(a) { 6368 var b = this._getTopColGroup(a) 6369 , c = Math.min.apply(Math, b); 6370 return { 6371 col: b.indexOf(c), 6372 y: c 6373 } 6374 } 6375 , 6376 d._getTopColGroup = function(a) { 6377 if (2 > a) 6378 return this.colYs; 6379 for (var b = [], c = this.cols + 1 - a, d = 0; c > d; d++) 6380 b[d] = this._getColGroupY(d, a); 6381 return b 6382 } 6383 , 6384 d._getColGroupY = function(a, b) { 6385 if (2 > b) 6386 return this.colYs[a]; 6387 var c = this.colYs.slice(a, a + b); 6388 return Math.max.apply(Math, c) 6389 } 6390 , 6391 d._getHorizontalColPosition = function(a, b) { 6392 var c = this.horizontalColIndex % this.cols; 6393 c = a > 1 && c + a > this.cols ? 0 : c; 6394 var d = b.size.outerWidth && b.size.outerHeight; 6395 return this.horizontalColIndex = d ? c + a : this.horizontalColIndex, 6396 { 6397 col: c, 6398 y: this._getColGroupY(c, a) 6399 } 6400 } 6401 , 6402 d._manageStamp = function(a) { 6403 var c = b(a) 6404 , d = this._getElementOffset(a) 6405 , e = this._getOption("originLeft") 6406 , f = e ? d.left : d.right 6407 , g = f + c.outerWidth 6408 , h = Math.floor(f / this.columnWidth); 6409 h = Math.max(0, h); 6410 var i = Math.floor(g / this.columnWidth); 6411 i -= g % this.columnWidth ? 0 : 1, 6412 i = Math.min(this.cols - 1, i); 6413 for (var j = this._getOption("originTop"), k = (j ? d.top : d.bottom) + c.outerHeight, l = h; i >= l; l++) 6414 this.colYs[l] = Math.max(k, this.colYs[l]) 6415 } 6416 , 6417 d._getContainerSize = function() { 6418 this.maxY = Math.max.apply(Math, this.colYs); 6419 var a = { 6420 height: this.maxY 6421 }; 6422 return this._getOption("fitWidth") && (a.width = this._getContainerFitWidth()), 6423 a 6424 } 6425 , 6426 d._getContainerFitWidth = function() { 6427 for (var a = 0, b = this.cols; --b && 0 === this.colYs[b]; ) 6428 a++; 6429 return (this.cols - a) * this.columnWidth - this.gutter 6430 } 6431 , 6432 d.needsResizeLayout = function() { 6433 var a = this.containerWidth; 6434 return this.getContainerWidth(), 6435 a != this.containerWidth 6436 } 6437 , 6438 c 6439}), 6440function(a, b) { 6441 "function" == typeof define && define.amd ? define("ev-emitter/ev-emitter", b) : "object" == typeof module && module.exports ? module.exports = b() : a.EvEmitter = b() 6442}("undefined" != typeof window ? window : this, function() { 6443 function a() {} 6444 var b = a.prototype; 6445 return b.on = function(a, b) { 6446 if (a && b) { 6447 var c = this._events = this._events || {} 6448 , d = c[a] = c[a] || []; 6449 return -1 == d.indexOf(b) && d.push(b), 6450 this 6451 } 6452 } 6453 , 6454 b.once = function(a, b) { 6455 if (a && b) { 6456 this.on(a, b); 6457 var c = this._onceEvents = this._onceEvents || {}; 6458 return (c[a] = c[a] || {})[b] = !0, 6459 this 6460 } 6461 } 6462 , 6463 b.off = function(a, b) { 6464 var c = this._events && this._events[a]; 6465 if (c && c.length) { 6466 var d = c.indexOf(b); 6467 return -1 != d && c.splice(d, 1), 6468 this 6469 } 6470 } 6471 , 6472 b.emitEvent = function(a, b) { 6473 var c = this._events && this._events[a]; 6474 if (c && c.length) { 6475 c = c.slice(0), 6476 b = b || []; 6477 for (var d = this._onceEvents && this._onceEvents[a], e = 0; e < c.length; e++) { 6478 var f = c[e]; 6479 d && d[f] && (this.off(a, f), 6480 delete d[f]), 6481 f.apply(this, b) 6482 } 6483 return this 6484 } 6485 } 6486 , 6487 b.allOff = function() { 6488 delete this._events, 6489 delete this._onceEvents 6490 } 6491 , 6492 a 6493}), 6494function(a, b) { 6495 "use strict"; 6496 "function" == typeof define && define.amd ? define(["ev-emitter/ev-emitter"], function(c) { 6497 return b(a, c) 6498 }) : "object" == typeof module && module.exports ? module.exports = b(a, require("ev-emitter")) : a.imagesLoaded = b(a, a.EvEmitter) 6499}("undefined" != typeof window ? window : this, function(a, b) { 6500 function c(a, b) { 6501 for (var c in b) 6502 a[c] = b[c]; 6503 return a 6504 } 6505 function d(a) { 6506 return Array.isArray(a) ? a : "object" == typeof a && "number" == typeof a.length ? j.call(a) : [a] 6507 } 6508 function e(a, b, f) { 6509 if (!(this instanceof e)) 6510 return new e(a,b,f); 6511 var g = a; 6512 return "string" == typeof a && (g = document.querySelectorAll(a)), 6513 g ? (this.elements = d(g),
vendor: 4,776 bytes, lines 6514-6659
6514 this.options = c({}, this.options), 6515 "function" == typeof b ? f = b : c(this.options, b), 6516 f && this.on("always", f), 6517 this.getImages(), 6518 h && (this.jqDeferred = new h.Deferred), 6519 void setTimeout(this.check.bind(this))) : void i.error("Bad element for imagesLoaded " + (g || a)) 6520 } 6521 function f(a) { 6522 this.img = a 6523 } 6524 function g(a, b) { 6525 this.url = a, 6526 this.element = b, 6527 this.img = new Image 6528 } 6529 var h = a.jQuery 6530 , i = a.console 6531 , j = Array.prototype.slice; 6532 e.prototype = Object.create(b.prototype), 6533 e.prototype.options = {}, 6534 e.prototype.getImages = function() { 6535 this.images = [], 6536 this.elements.forEach(this.addElementImages, this) 6537 } 6538 , 6539 e.prototype.addElementImages = function(a) { 6540 "IMG" == a.nodeName && this.addImage(a), 6541 !0 === this.options.background && this.addElementBackgroundImages(a); 6542 var b = a.nodeType; 6543 if (b && k[b]) { 6544 for (var c = a.querySelectorAll("img"), d = 0; d < c.length; d++) { 6545 var e = c[d]; 6546 this.addImage(e) 6547 } 6548 if ("string" == typeof this.options.background) { 6549 var f = a.querySelectorAll(this.options.background); 6550 for (d = 0; d < f.length; d++) { 6551 var g = f[d]; 6552 this.addElementBackgroundImages(g) 6553 } 6554 } 6555 } 6556 } 6557 ; 6558 var k = { 6559 1: !0, 6560 9: !0, 6561 11: !0 6562 }; 6563 return e.prototype.addElementBackgroundImages = function(a) { 6564 var b = getComputedStyle(a); 6565 if (b) 6566 for (var c = /url\((['"])?(.*?)\1\)/gi, d = c.exec(b.backgroundImage); null !== d; ) { 6567 var e = d && d[2]; 6568 e && this.addBackground(e, a), 6569 d = c.exec(b.backgroundImage) 6570 } 6571 } 6572 , 6573 e.prototype.addImage = function(a) { 6574 var b = new f(a); 6575 this.images.push(b) 6576 } 6577 , 6578 e.prototype.addBackground = function(a, b) { 6579 var c = new g(a,b); 6580 this.images.push(c) 6581 } 6582 , 6583 e.prototype.check = function() { 6584 function a(a, c, d) { 6585 setTimeout(function() { 6586 b.progress(a, c, d) 6587 }) 6588 } 6589 var b = this; 6590 return this.progressedCount = 0, 6591 this.hasAnyBroken = !1, 6592 this.images.length ? void this.images.forEach(function(b) { 6593 b.once("progress", a), 6594 b.check() 6595 }) : void this.complete() 6596 } 6597 , 6598 e.prototype.progress = function(a, b, c) { 6599 this.progressedCount++, 6600 this.hasAnyBroken = this.hasAnyBroken || !a.isLoaded, 6601 this.emitEvent("progress", [this, a, b]), 6602 this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, a), 6603 this.progressedCount == this.images.length && this.complete(), 6604 this.options.debug && i && i.log("progress: " + c, a, b) 6605 } 6606 , 6607 e.prototype.complete = function() { 6608 var a = this.hasAnyBroken ? "fail" : "done"; 6609 if (this.isComplete = !0, 6610 this.emitEvent(a, [this]), 6611 this.emitEvent("always", [this]), 6612 this.jqDeferred) { 6613 var b = this.hasAnyBroken ? "reject" : "resolve"; 6614 this.jqDeferred[b](this) 6615 } 6616 } 6617 , 6618 f.prototype = Object.create(b.prototype), 6619 f.prototype.check = function() { 6620 return this.getIsImageComplete() ? void this.confirm(0 !== this.img.naturalWidth, "naturalWidth") : (this.proxyImage = new Image, 6621 this.proxyImage.addEventListener("load", this), 6622 this.proxyImage.addEventListener("error", this), 6623 this.img.addEventListener("load", this), 6624 this.img.addEventListener("error", this), 6625 void (this.proxyImage.src = this.img.src)) 6626 } 6627 , 6628 f.prototype.getIsImageComplete = function() { 6629 return this.img.complete && this.img.naturalWidth 6630 } 6631 , 6632 f.prototype.confirm = function(a, b) { 6633 this.isLoaded = a, 6634 this.emitEvent("progress", [this, this.img, b]) 6635 } 6636 , 6637 f.prototype.handleEvent = function(a) { 6638 var b = "on" + a.type; 6639 this[b] && this[b](a) 6640 } 6641 , 6642 f.prototype.onload = function() { 6643 this.confirm(!0, "onload"), 6644 this.unbindEvents() 6645 } 6646 , 6647 f.prototype.onerror = function() { 6648 this.confirm(!1, "onerror"), 6649 this.unbindEvents() 6650 } 6651 , 6652 f.prototype.unbindEvents = function() { 6653 this.proxyImage.removeEventListener("load", this), 6654 this.proxyImage.removeEventListener("error", this), 6655 this.img.removeEventListener("load", this), 6656 this.img.removeEventListener("error", this) 6657 } 6658 , 6659 g.prototype = Object.create(f.prototype),
6660 g.prototype.check = function() { 6661 this.img.addEventListener("load", this), 6662 this.img.addEventListener("error", this), 6663 this.img.src = this.url, 6664 this.getIsImageComplete() && (this.confirm(0 !== this.img.naturalWidth, "naturalWidth"), 6665 this.unbindEvents()) 6666 } 6667 , 6668 g.prototype.unbindEvents = function() { 6669 this.img.removeEventListener("load", this), 6670 this.img.removeEventListener("error", this) 6671 } 6672 , 6673 g.prototype.confirm = function(a, b) { 6674 this.isLoaded = a, 6675 this.emitEvent("progress", [this, this.element, b]) 6676 } 6677 , 6678 e.makeJQueryPlugin = function(b) { 6679 (b = b || a.jQuery) && (h = b, 6680 h.fn.imagesLoaded = function(a, b) { 6681 return new e(this,a,b).jqDeferred.promise(h(this)) 6682 } 6683 ) 6684 } 6685 , 6686 e.makeJQueryPlugin(), 6687 e 6688}), 6689function(a) { 6690 a.isScrollToFixed = function(b) { 6691 return !!a(b).data("ScrollToFixed") 6692 } 6693 , 6694 a.ScrollToFixed = function(b, c) { 6695 function d() { 6696 x.trigger("preUnfixed.ScrollToFixed"), 6697 k(), 6698 x.trigger("unfixed.ScrollToFixed"), 6699 B = -1, 6700 y = x.offset().top, 6701 z = x.offset().left, 6702 q.options.offsets && (z += x.offset().left - x.position().left), 6703 -1 == A && (A = z), 6704 r = x.css("position"), 6705 w = !0, 6706 -1 != q.options.bottom && (x.trigger("preFixed.ScrollToFixed"), 6707 i(), 6708 x.trigger("fixed.ScrollToFixed")) 6709 } 6710 function e() { 6711 var a = q.options.limit; 6712 return a ? "function" == typeof a ? a.apply(x) : a : 0 6713 } 6714 function f() { 6715 return "fixed" === r 6716 } 6717 function g() { 6718 return "absolute" === r 6719 } 6720 function h() { 6721 return !(f() || g()) 6722 } 6723 function i() { 6724 if (!f()) { 6725 var a = x[0].getBoundingClientRect(); 6726 C.css({ 6727 display: x.css("display"), 6728 width: a.width, 6729 height: a.height, 6730 float: x.css("float") 6731 }), 6732 cssOptions = { 6733 "z-index": q.options.zIndex, 6734 position: "fixed", 6735 top: -1 == q.options.bottom ? m() : "", 6736 bottom: -1 == q.options.bottom ? "" : q.options.bottom, 6737 "margin-left": "0px" 6738 }, 6739 q.options.dontSetWidth || (cssOptions.width = x.css("width")), 6740 x.css(cssOptions), 6741 x.addClass(q.options.baseClassName), 6742 q.options.className && x.addClass(q.options.className), 6743 r = "fixed" 6744 } 6745 } 6746 function j() { 6747 var a = e() 6748 , b = z; 6749 q.options.removeOffsets && (b = "", 6750 a -= y), 6751 cssOptions = { 6752 position: "absolute", 6753 top: a, 6754 left: b, 6755 "margin-left": "0px", 6756 bottom: "" 6757 }, 6758 q.options.dontSetWidth || (cssOptions.width = x.css("width")), 6759 x.css(cssOptions), 6760 r = "absolute" 6761 } 6762 function k() { 6763 h() || (B = -1, 6764 C.css("display", "none"), 6765 x.css({ 6766 "z-index": v, 6767 width: "", 6768 position: s, 6769 left: "", 6770 top: u, 6771 "margin-left": "" 6772 }), 6773 x.removeClass("scroll-to-fixed-fixed"), 6774 q.options.className && x.removeClass(q.options.className), 6775 r = null) 6776 } 6777 function l(a) { 6778 a != B && (x.css("left", z - a), 6779 B = a) 6780 } 6781 function m() { 6782 var a = q.options.marginTop; 6783 return a ? "function" == typeof a ? a.apply(x) : a : 0 6784 } 6785 function n() { 6786 if (a.isScrollToFixed(x) && !x.is(":hidden")) { 6787 var b = w 6788 , c = h(); 6789 w ? h() && (y = x.offset().top, 6790 z = x.offset().left) : d(); 6791 var n = a(window).scrollLeft() 6792 , r = a(window).scrollTop() 6793 , t = e(); 6794 q.options.minWidth && a(window).width() < q.options.minWidth ? h() && b || (p(), 6795 x.trigger("preUnfixed.ScrollToFixed"), 6796 k(), 6797 x.trigger("unfixed.ScrollToFixed")) : q.options.maxWidth && a(window).width() > q.options.maxWidth ? h() && b || (p(), 6798 x.trigger("preUnfixed.ScrollToFixed"), 6799 k(), 6800 x.trigger("unfixed.ScrollToFixed")) : -1 == q.options.bottom ? t > 0 && r >= t - m() ? c || g() && b || (p(), 6801 x.trigger("preAbsolute.ScrollToFixed"), 6802 j(), 6803 x.trigger("unfixed.ScrollToFixed")) : r >= y - m() ? (f() && b || (p(), 6804 x.trigger("preFixed.ScrollToFixed"), 6805 i(), 6806 B = -1, 6807 x.trigger("fixed.ScrollToFixed")), 6808 l(n)) : h() && b || (p(), 6809 x.trigger("preUnfixed.ScrollToFixed"), 6810 k(), 6811 x.trigger("unfixed.ScrollToFixed")) : t > 0 ? r + a(window).height() - x.outerHeight(!0) >= t - (m() || -o()) ? f() && (p(), 6812 x.trigger("preUnfixed.ScrollToFixed"), 6813 "absolute" === s ? j() : k(), 6814 x.trigger("unfixed.ScrollToFixed")) : (f() || (p(), 6815 x.trigger("preFixed.ScrollToFixed"), 6816 i()), 6817 l(n), 6818 x.trigger("fixed.ScrollToFixed")) : l(n) 6819 } 6820 } 6821 function o() { 6822 return q.options.bottom ? q.options.bottom : 0 6823 } 6824 function p() { 6825 var a = x.css("position"); 6826 "absolute" == a ? x.trigger("postAbsolute.ScrollToFixed") : "fixed" == a ? x.trigger("postFixed.ScrollToFixed") : x.trigger("postUnfixed.ScrollToFixed") 6827 } 6828 var q = this; 6829 q.$el = a(b), 6830 q.el = b, 6831 q.$el.data("ScrollToFixed", q); 6832 var r, s, t, u, v, w = !1, x = q.$el, y = 0, z = 0, A = -1, B = -1, C = null, D = function(a) { 6833 x.is(":visible") ? (w = !1, 6834 n()) : k() 6835 }, E = function(a) { 6836 window.requestAnimationFrame ? requestAnimationFrame(n) : n() 6837 }, F = function(a) { 6838 a = a || window.event, 6839 a.preventDefault && a.preventDefault(), 6840 a.returnValue = !1 6841 }; 6842 q.init = function() { 6843 q.options = a.extend({}, a.ScrollToFixed.defaultOptions, c), 6844 v = x.css("z-index"), 6845 q.$el.css("z-index", q.options.zIndex), 6846 C = a("<div />"), 6847 r = x.css("position"), 6848 s = x.css("position"), 6849 t = x.css("float"), 6850 u = x.css("top"), 6851 h() && q.$el.after(C), 6852 a(window).bind("resize.ScrollToFixed", D), 6853 a(window).bind("scroll.ScrollToFixed", E), 6854 "ontouchmove"in window && a(window).bind("touchmove.ScrollToFixed", n), 6855 q.options.preFixed && x.bind("preFixed.ScrollToFixed", q.options.preFixed), 6856 q.options.postFixed && x.bind("postFixed.ScrollToFixed", q.options.postFixed), 6857 q.options.preUnfixed && x.bind("preUnfixed.ScrollToFixed", q.options.preUnfixed), 6858 q.options.postUnfixed && x.bind("postUnfixed.ScrollToFixed", q.options.postUnfixed), 6859 q.options.preAbsolute && x.bind("preAbsolute.ScrollToFixed", q.options.preAbsolute), 6860 q.options.postAbsolute && x.bind("postAbsolute.ScrollToFixed", q.options.postAbsolute), 6861 q.options.fixed && x.bind("fixed.ScrollToFixed", q.options.fixed), 6862 q.options.unfixed && x.bind("unfixed.ScrollToFixed", q.options.unfixed), 6863 q.options.spacerClass && C.addClass(q.options.spacerClass), 6864 x.bind("resize.ScrollToFixed", function() { 6865 C.height(x.height()) 6866 }), 6867 x.bind("scroll.ScrollToFixed", function() { 6868 x.trigger("preUnfixed.ScrollToFixed"), 6869 k(), 6870 x.trigger("unfixed.ScrollToFixed"), 6871 n() 6872 }), 6873 x.bind("detach.ScrollToFixed", function(b) { 6874 F(b), 6875 x.trigger("preUnfixed.ScrollToFixed"), 6876 k(), 6877 x.trigger("unfixed.ScrollToFixed"), 6878 a(window).unbind("resize.ScrollToFixed", D), 6879 a(window).unbind("scroll.ScrollToFixed", E), 6880 x.unbind(".ScrollToFixed"), 6881 C.remove(), 6882 q.$el.removeData("ScrollToFixed") 6883 }), 6884 D() 6885 } 6886 , 6887 q.init() 6888 } 6889 , 6890 a.ScrollToFixed.defaultOptions = { 6891 marginTop: 0, 6892 limit: 0, 6893 bottom: -1, 6894 zIndex: 1e3, 6895 baseClassName: "scroll-to-fixed-fixed" 6896 }, 6897 a.fn.scrollToFixed = function(b) { 6898 return this.each(function() { 6899 new a.ScrollToFixed(this,b) 6900 }) 6901 } 6902}(jQuery), 6903function(a) { 6904 "use strict"; 6905 "function" == typeof define && define.amd ? define(["jquery"], a) : "undefined" != typeof exports ? module.exports = a(require("jquery")) : a(jQuery) 6906}(function(a) { 6907 "use strict"; 6908 var b = window.Slick || {}; 6909 b = function() { 6910 function b(b, d) { 6911 var e, f = this; 6912 f.defaults = { 6913 accessibility: !0, 6914 adaptiveHeight: !1, 6915 appendArrows: a(b),
vendor: 12,052 bytes, lines 6916-7204
6916 appendDots: a(b), 6917 arrows: !0, 6918 asNavFor: null, 6919 prevArrow: '<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>', 6920 nextArrow: '<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>', 6921 autoplay: !1, 6922 autoplaySpeed: 3e3, 6923 centerMode: !1, 6924 centerPadding: "50px", 6925 cssEase: "ease", 6926 customPaging: function(b, c) { 6927 return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c + 1) 6928 }, 6929 dots: !1, 6930 dotsClass: "slick-dots", 6931 draggable: !0, 6932 easing: "linear", 6933 edgeFriction: .35, 6934 fade: !1, 6935 focusOnSelect: !1, 6936 infinite: !0, 6937 initialSlide: 0, 6938 lazyLoad: "ondemand", 6939 mobileFirst: !1, 6940 pauseOnHover: !0, 6941 pauseOnFocus: !0, 6942 pauseOnDotsHover: !1, 6943 respondTo: "window", 6944 responsive: null, 6945 rows: 1, 6946 rtl: !1, 6947 slide: "", 6948 slidesPerRow: 1, 6949 slidesToShow: 1, 6950 slidesToScroll: 1, 6951 speed: 500, 6952 swipe: !0, 6953 swipeToSlide: !1, 6954 touchMove: !0, 6955 touchThreshold: 5, 6956 useCSS: !0, 6957 useTransform: !0, 6958 variableWidth: !1, 6959 vertical: !1, 6960 verticalSwiping: !1, 6961 waitForAnimate: !0, 6962 zIndex: 1e3 6963 }, 6964 f.initials = { 6965 animating: !1, 6966 dragging: !1, 6967 autoPlayTimer: null, 6968 currentDirection: 0, 6969 currentLeft: null, 6970 currentSlide: 0, 6971 direction: 1, 6972 $dots: null, 6973 listWidth: null, 6974 listHeight: null, 6975 loadIndex: 0, 6976 $nextArrow: null, 6977 $prevArrow: null, 6978 slideCount: null, 6979 slideWidth: null, 6980 $slideTrack: null, 6981 $slides: null, 6982 sliding: !1, 6983 slideOffset: 0, 6984 swipeLeft: null, 6985 $list: null, 6986 touchObject: {}, 6987 transformsEnabled: !1, 6988 unslicked: !1 6989 }, 6990 a.extend(f, f.initials), 6991 f.activeBreakpoint = null, 6992 f.animType = null, 6993 f.animProp = null, 6994 f.breakpoints = [], 6995 f.breakpointSettings = [], 6996 f.cssTransitions = !1, 6997 f.focussed = !1, 6998 f.interrupted = !1, 6999 f.hidden = "hidden", 7000 f.paused = !0, 7001 f.positionProp = null, 7002 f.respondTo = null, 7003 f.rowCount = 1, 7004 f.shouldClick = !0, 7005 f.$slider = a(b), 7006 f.$slidesCache = null, 7007 f.transformType = null, 7008 f.transitionType = null, 7009 f.visibilityChange = "visibilitychange", 7010 f.windowWidth = 0, 7011 f.windowTimer = null, 7012 e = a(b).data("slick") || {}, 7013 f.options = a.extend({}, f.defaults, d, e), 7014 f.currentSlide = f.options.initialSlide, 7015 f.originalSettings = f.options, 7016 void 0 !== document.mozHidden ? (f.hidden = "mozHidden", 7017 f.visibilityChange = "mozvisibilitychange") : void 0 !== document.webkitHidden && (f.hidden = "webkitHidden", 7018 f.visibilityChange = "webkitvisibilitychange"), 7019 f.autoPlay = a.proxy(f.autoPlay, f), 7020 f.autoPlayClear = a.proxy(f.autoPlayClear, f), 7021 f.autoPlayIterator = a.proxy(f.autoPlayIterator, f), 7022 f.changeSlide = a.proxy(f.changeSlide, f), 7023 f.clickHandler = a.proxy(f.clickHandler, f), 7024 f.selectHandler = a.proxy(f.selectHandler, f), 7025 f.setPosition = a.proxy(f.setPosition, f), 7026 f.swipeHandler = a.proxy(f.swipeHandler, f), 7027 f.dragHandler = a.proxy(f.dragHandler, f), 7028 f.keyHandler = a.proxy(f.keyHandler, f), 7029 f.instanceUid = c++, 7030 f.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/, 7031 f.registerBreakpoints(), 7032 f.init(!0) 7033 } 7034 var c = 0; 7035 return b 7036 }(), 7037 b.prototype.activateADA = function() { 7038 this.$slideTrack.find(".slick-active").attr({ 7039 "aria-hidden": "false" 7040 }).find("a, input, button, select").attr({ 7041 tabindex: "0" 7042 }) 7043 } 7044 , 7045 b.prototype.addSlide = b.prototype.slickAdd = function(b, c, d) { 7046 var e = this; 7047 if ("boolean" == typeof c) 7048 d = c, 7049 c = null; 7050 else if (c < 0 || c >= e.slideCount) 7051 return !1; 7052 e.unload(), 7053 "number" == typeof c ? 0 === c && 0 === e.$slides.length ? a(b).appendTo(e.$slideTrack) : d ? a(b).insertBefore(e.$slides.eq(c)) : a(b).insertAfter(e.$slides.eq(c)) : !0 === d ? a(b).prependTo(e.$slideTrack) : a(b).appendTo(e.$slideTrack), 7054 e.$slides = e.$slideTrack.children(this.options.slide), 7055 e.$slideTrack.children(this.options.slide).detach(), 7056 e.$slideTrack.append(e.$slides), 7057 e.$slides.each(function(b, c) { 7058 a(c).attr("data-slick-index", b) 7059 }), 7060 e.$slidesCache = e.$slides, 7061 e.reinit() 7062 } 7063 , 7064 b.prototype.animateHeight = function() { 7065 var a = this; 7066 if (1 === a.options.slidesToShow && !0 === a.options.adaptiveHeight && !1 === a.options.vertical) { 7067 var b = a.$slides.eq(a.currentSlide).outerHeight(!0); 7068 a.$list.animate({ 7069 height: b 7070 }, a.options.speed) 7071 } 7072 } 7073 , 7074 b.prototype.animateSlide = function(b, c) { 7075 var d = {} 7076 , e = this; 7077 e.animateHeight(), 7078 !0 === e.options.rtl && !1 === e.options.vertical && (b = -b), 7079 !1 === e.transformsEnabled ? !1 === e.options.vertical ? e.$slideTrack.animate({ 7080 left: b 7081 }, e.options.speed, e.options.easing, c) : e.$slideTrack.animate({ 7082 top: b 7083 }, e.options.speed, e.options.easing, c) : !1 === e.cssTransitions ? (!0 === e.options.rtl && (e.currentLeft = -e.currentLeft), 7084 a({ 7085 animStart: e.currentLeft 7086 }).animate({ 7087 animStart: b 7088 }, { 7089 duration: e.options.speed, 7090 easing: e.options.easing, 7091 step: function(a) { 7092 a = Math.ceil(a), 7093 !1 === e.options.vertical ? (d[e.animType] = "translate(" + a + "px, 0px)", 7094 e.$slideTrack.css(d)) : (d[e.animType] = "translate(0px," + a + "px)", 7095 e.$slideTrack.css(d)) 7096 }, 7097 complete: function() { 7098 c && c.call() 7099 } 7100 })) : (e.applyTransition(), 7101 b = Math.ceil(b), 7102 !1 === e.options.vertical ? d[e.animType] = "translate3d(" + b + "px, 0px, 0px)" : d[e.animType] = "translate3d(0px," + b + "px, 0px)", 7103 e.$slideTrack.css(d), 7104 c && setTimeout(function() { 7105 e.disableTransition(), 7106 c.call() 7107 }, e.options.speed)) 7108 } 7109 , 7110 b.prototype.getNavTarget = function() { 7111 var b = this 7112 , c = b.options.asNavFor; 7113 return c && null !== c && (c = a(c).not(b.$slider)), 7114 c 7115 } 7116 , 7117 b.prototype.asNavFor = function(b) { 7118 var c = this 7119 , d = c.getNavTarget(); 7120 null !== d && "object" == typeof d && d.each(function() { 7121 var c = a(this).slick("getSlick"); 7122 c.unslicked || c.slideHandler(b, !0) 7123 }) 7124 } 7125 , 7126 b.prototype.applyTransition = function(a) { 7127 var b = this 7128 , c = {}; 7129 !1 === b.options.fade ? c[b.transitionType] = b.transformType + " " + b.options.speed + "ms " + b.options.cssEase : c[b.transitionType] = "opacity " + b.options.speed + "ms " + b.options.cssEase, 7130 !1 === b.options.fade ? b.$slideTrack.css(c) : b.$slides.eq(a).css(c) 7131 } 7132 , 7133 b.prototype.autoPlay = function() { 7134 var a = this; 7135 a.autoPlayClear(), 7136 a.slideCount > a.options.slidesToShow && (a.autoPlayTimer = setInterval(a.autoPlayIterator, a.options.autoplaySpeed)) 7137 } 7138 , 7139 b.prototype.autoPlayClear = function() { 7140 var a = this; 7141 a.autoPlayTimer && clearInterval(a.autoPlayTimer) 7142 } 7143 , 7144 b.prototype.autoPlayIterator = function() { 7145 var a = this 7146 , b = a.currentSlide + a.options.slidesToScroll; 7147 a.paused || a.interrupted || a.focussed || (!1 === a.options.infinite && (1 === a.direction && a.currentSlide + 1 === a.slideCount - 1 ? a.direction = 0 : 0 === a.direction && (b = a.currentSlide - a.options.slidesToScroll, 7148 a.currentSlide - 1 == 0 && (a.direction = 1))), 7149 a.slideHandler(b)) 7150 } 7151 , 7152 b.prototype.buildArrows = function() { 7153 var b = this; 7154 !0 === b.options.arrows && (b.$prevArrow = a(b.options.prevArrow).addClass("slick-arrow"), 7155 b.$nextArrow = a(b.options.nextArrow).addClass("slick-arrow"), 7156 b.slideCount > b.options.slidesToShow ? (b.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), 7157 b.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), 7158 b.htmlExpr.test(b.options.prevArrow) && b.$prevArrow.prependTo(b.options.appendArrows), 7159 b.htmlExpr.test(b.options.nextArrow) && b.$nextArrow.appendTo(b.options.appendArrows), 7160 !0 !== b.options.infinite && b.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true")) : b.$prevArrow.add(b.$nextArrow).addClass("slick-hidden").attr({ 7161 "aria-disabled": "true", 7162 tabindex: "-1" 7163 })) 7164 } 7165 , 7166 b.prototype.buildDots = function() { 7167 var b, c, d = this; 7168 if (!0 === d.options.dots && d.slideCount > d.options.slidesToShow) { 7169 for (d.$slider.addClass("slick-dotted"), 7170 c = a("<ul />").addClass(d.options.dotsClass), 7171 b = 0; b <= d.getDotCount(); b += 1) 7172 c.append(a("<li />").append(d.options.customPaging.call(this, d, b))); 7173 d.$dots = c.appendTo(d.options.appendDots), 7174 d.$dots.find("li").first().addClass("slick-active").attr("aria-hidden", "false") 7175 } 7176 } 7177 , 7178 b.prototype.buildOut = function() { 7179 var b = this; 7180 b.$slides = b.$slider.children(b.options.slide + ":not(.slick-cloned)").addClass("slick-slide"), 7181 b.slideCount = b.$slides.length, 7182 b.$slides.each(function(b, c) { 7183 a(c).attr("data-slick-index", b).data("originalStyling", a(c).attr("style") || "") 7184 }), 7185 b.$slider.addClass("slick-slider"), 7186 b.$slideTrack = 0 === b.slideCount ? a('<div class="slick-track"/>').appendTo(b.$slider) : b.$slides.wrapAll('<div class="slick-track"/>').parent(), 7187 b.$list = b.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(), 7188 b.$slideTrack.css("opacity", 0), 7189 !0 !== b.options.centerMode && !0 !== b.options.swipeToSlide || (b.options.slidesToScroll = 1), 7190 a("img[data-lazy]", b.$slider).not("[src]").addClass("slick-loading"), 7191 b.setupInfinite(), 7192 b.buildArrows(), 7193 b.buildDots(), 7194 b.updateDots(), 7195 b.setSlideClasses("number" == typeof b.currentSlide ? b.currentSlide : 0), 7196 !0 === b.options.draggable && b.$list.addClass("draggable") 7197 } 7198 , 7199 b.prototype.buildRows = function() { 7200 var a, b, c, d, e, f, g, h = this; 7201 if (d = document.createDocumentFragment(), 7202 f = h.$slider.children(), 7203 h.options.rows > 1) { 7204 for (g = h.options.slidesPerRow * h.options.rows,
vendor: 4,103 bytes, lines 7205-7294
7205 e = Math.ceil(f.length / g), 7206 a = 0; a < e; a++) { 7207 var i = document.createElement("div"); 7208 for (b = 0; b < h.options.rows; b++) { 7209 var j = document.createElement("div"); 7210 for (c = 0; c < h.options.slidesPerRow; c++) { 7211 var k = a * g + (b * h.options.slidesPerRow + c); 7212 f.get(k) && j.appendChild(f.get(k)) 7213 } 7214 i.appendChild(j) 7215 } 7216 d.appendChild(i) 7217 } 7218 h.$slider.empty().append(d), 7219 h.$slider.children().children().children().css({ 7220 width: 100 / h.options.slidesPerRow + "%", 7221 display: "inline-block" 7222 }) 7223 } 7224 } 7225 , 7226 b.prototype.checkResponsive = function(b, c) { 7227 var d, e, f, g = this, h = !1, i = g.$slider.width(), j = window.innerWidth || a(window).width(); 7228 if ("window" === g.respondTo ? f = j : "slider" === g.respondTo ? f = i : "min" === g.respondTo && (f = Math.min(j, i)), 7229 g.options.responsive && g.options.responsive.length && null !== g.options.responsive) { 7230 e = null; 7231 for (d in g.breakpoints) 7232 g.breakpoints.hasOwnProperty(d) && (!1 === g.originalSettings.mobileFirst ? f < g.breakpoints[d] && (e = g.breakpoints[d]) : f > g.breakpoints[d] && (e = g.breakpoints[d])); 7233 null !== e ? null !== g.activeBreakpoint ? (e !== g.activeBreakpoint || c) && (g.activeBreakpoint = e, 7234 "unslick" === g.breakpointSettings[e] ? g.unslick(e) : (g.options = a.extend({}, g.originalSettings, g.breakpointSettings[e]), 7235 !0 === b && (g.currentSlide = g.options.initialSlide), 7236 g.refresh(b)), 7237 h = e) : (g.activeBreakpoint = e, 7238 "unslick" === g.breakpointSettings[e] ? g.unslick(e) : (g.options = a.extend({}, g.originalSettings, g.breakpointSettings[e]), 7239 !0 === b && (g.currentSlide = g.options.initialSlide), 7240 g.refresh(b)), 7241 h = e) : null !== g.activeBreakpoint && (g.activeBreakpoint = null, 7242 g.options = g.originalSettings, 7243 !0 === b && (g.currentSlide = g.options.initialSlide), 7244 g.refresh(b), 7245 h = e), 7246 b || !1 === h || g.$slider.trigger("breakpoint", [g, h]) 7247 } 7248 } 7249 , 7250 b.prototype.changeSlide = function(b, c) { 7251 var d, e, f, g = this, h = a(b.currentTarget); 7252 switch (h.is("a") && b.preventDefault(), 7253 h.is("li") || (h = h.closest("li")), 7254 f = g.slideCount % g.options.slidesToScroll != 0, 7255 d = f ? 0 : (g.slideCount - g.currentSlide) % g.options.slidesToScroll, 7256 b.data.message) { 7257 case "previous": 7258 e = 0 === d ? g.options.slidesToScroll : g.options.slidesToShow - d, 7259 g.slideCount > g.options.slidesToShow && g.slideHandler(g.currentSlide - e, !1, c); 7260 break; 7261 case "next": 7262 e = 0 === d ? g.options.slidesToScroll : d, 7263 g.slideCount > g.options.slidesToShow && g.slideHandler(g.currentSlide + e, !1, c); 7264 break; 7265 case "index": 7266 var i = 0 === b.data.index ? 0 : b.data.index || h.index() * g.options.slidesToScroll; 7267 g.slideHandler(g.checkNavigable(i), !1, c), 7268 h.children().trigger("focus"); 7269 break; 7270 default: 7271 return 7272 } 7273 } 7274 , 7275 b.prototype.checkNavigable = function(a) { 7276 var b, c, d = this; 7277 if (b = d.getNavigableIndexes(), 7278 c = 0, 7279 a > b[b.length - 1]) 7280 a = b[b.length - 1]; 7281 else 7282 for (var e in b) { 7283 if (a < b[e]) { 7284 a = c; 7285 break 7286 } 7287 c = b[e] 7288 } 7289 return a 7290 } 7291 , 7292 b.prototype.cleanUpEvents = function() { 7293 var b = this; 7294 b.options.dots && null !== b.$dots && a("li", b.$dots).off("click.slick", b.changeSlide).off("mouseenter.slick", a.proxy(b.interrupt, b, !0)).off("mouseleave.
vendor: 4,520 bytes, lines 7294-7395
7294slick", a.proxy(b.interrupt, b, !1)), 7295 b.$slider.off("focus.slick blur.slick"), 7296 !0 === b.options.arrows && b.slideCount > b.options.slidesToShow && (b.$prevArrow && b.$prevArrow.off("click.slick", b.changeSlide), 7297 b.$nextArrow && b.$nextArrow.off("click.slick", b.changeSlide)), 7298 b.$list.off("touchstart.slick mousedown.slick", b.swipeHandler), 7299 b.$list.off("touchmove.slick mousemove.slick", b.swipeHandler), 7300 b.$list.off("touchend.slick mouseup.slick", b.swipeHandler), 7301 b.$list.off("touchcancel.slick mouseleave.slick", b.swipeHandler), 7302 b.$list.off("click.slick", b.clickHandler), 7303 a(document).off(b.visibilityChange, b.visibility), 7304 b.cleanUpSlideEvents(), 7305 !0 === b.options.accessibility && b.$list.off("keydown.slick", b.keyHandler), 7306 !0 === b.options.focusOnSelect && a(b.$slideTrack).children().off("click.slick", b.selectHandler), 7307 a(window).off("orientationchange.slick.slick-" + b.instanceUid, b.orientationChange), 7308 a(window).off("resize.slick.slick-" + b.instanceUid, b.resize), 7309 a("[draggable!=true]", b.$slideTrack).off("dragstart", b.preventDefault), 7310 a(window).off("load.slick.slick-" + b.instanceUid, b.setPosition), 7311 a(document).off("ready.slick.slick-" + b.instanceUid, b.setPosition) 7312 } 7313 , 7314 b.prototype.cleanUpSlideEvents = function() { 7315 var b = this; 7316 b.$list.off("mouseenter.slick", a.proxy(b.interrupt, b, !0)), 7317 b.$list.off("mouseleave.slick", a.proxy(b.interrupt, b, !1)) 7318 } 7319 , 7320 b.prototype.cleanUpRows = function() { 7321 var a, b = this; 7322 b.options.rows > 1 && (a = b.$slides.children().children(), 7323 a.removeAttr("style"), 7324 b.$slider.empty().append(a)) 7325 } 7326 , 7327 b.prototype.clickHandler = function(a) { 7328 !1 === this.shouldClick && (a.stopImmediatePropagation(), 7329 a.stopPropagation(), 7330 a.preventDefault()) 7331 } 7332 , 7333 b.prototype.destroy = function(b) { 7334 var c = this; 7335 c.autoPlayClear(), 7336 c.touchObject = {}, 7337 c.cleanUpEvents(), 7338 a(".slick-cloned", c.$slider).detach(), 7339 c.$dots && c.$dots.remove(), 7340 c.$prevArrow && c.$prevArrow.length && (c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), 7341 c.htmlExpr.test(c.options.prevArrow) && c.$prevArrow.remove()), 7342 c.$nextArrow && c.$nextArrow.length && (c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), 7343 c.htmlExpr.test(c.options.nextArrow) && c.$nextArrow.remove()), 7344 c.$slides && (c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function() { 7345 a(this).attr("style", a(this).data("originalStyling")) 7346 }), 7347 c.$slideTrack.children(this.options.slide).detach(), 7348 c.$slideTrack.detach(), 7349 c.$list.detach(), 7350 c.$slider.append(c.$slides)), 7351 c.cleanUpRows(), 7352 c.$slider.removeClass("slick-slider"), 7353 c.$slider.removeClass("slick-initialized"), 7354 c.$slider.removeClass("slick-dotted"), 7355 c.unslicked = !0, 7356 b || c.$slider.trigger("destroy", [c]) 7357 } 7358 , 7359 b.prototype.disableTransition = function(a) { 7360 var b = this 7361 , c = {}; 7362 c[b.transitionType] = "", 7363 !1 === b.options.fade ? b.$slideTrack.css(c) : b.$slides.eq(a).css(c) 7364 } 7365 , 7366 b.prototype.fadeSlide = function(a, b) { 7367 var c = this; 7368 !1 === c.cssTransitions ? (c.$slides.eq(a).css({ 7369 zIndex: c.options.zIndex 7370 }), 7371 c.$slides.eq(a).animate({ 7372 opacity: 1 7373 }, c.options.speed, c.options.easing, b)) : (c.applyTransition(a), 7374 c.$slides.eq(a).css({ 7375 opacity: 1, 7376 zIndex: c.options.zIndex 7377 }), 7378 b && setTimeout(function() { 7379 c.disableTransition(a), 7380 b.call() 7381 }, c.options.speed)) 7382 } 7383 , 7384 b.prototype.fadeSlideOut = function(a) { 7385 var b = this; 7386 !1 === b.cssTransitions ? b.$slides.eq(a).animate({ 7387 opacity: 0, 7388 zIndex: b.options.zIndex - 2 7389 }, b.options.speed, b.options.easing) : (b.applyTransition(a), 7390 b.$slides.eq(a).css({ 7391 opacity: 0, 7392 zIndex: b.options.zIndex - 2 7393 })) 7394 } 7395 ,
7396 b.prototype.filterSlides = b.prototype.slickFilter = function(a) { 7397 var b = this; 7398 null !== a && (b.$slidesCache = b.$slides, 7399 b.unload(), 7400 b.$slideTrack.children(this.options.slide).detach(), 7401 b.$slidesCache.filter(a).appendTo(b.$slideTrack), 7402 b.reinit()) 7403 } 7404 , 7405 b.prototype.focusHandler = function() { 7406 var b = this; 7407 b.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick", "*:not(.slick-arrow)", function(c) { 7408 c.stopImmediatePropagation(); 7409 var d = a(this); 7410 setTimeout(function() { 7411 b.options.pauseOnFocus && (b.focussed = d.is(":focus"), 7412 b.autoPlay()) 7413 }, 0) 7414 }) 7415 } 7416 , 7417 b.prototype.getCurrent = b.prototype.slickCurrentSlide = function() { 7418 return this.currentSlide 7419 } 7420 , 7421 b.prototype.getDotCount = function() { 7422 var a = this 7423 , b = 0 7424 , c = 0 7425 , d = 0; 7426 if (!0 === a.options.infinite) 7427 for (; b < a.slideCount; ) 7428 ++d, 7429 b = c + a.options.slidesToScroll, 7430 c += a.options.slidesToScroll <= a.options.slidesToShow ? a.options.slidesToScroll : a.options.slidesToShow; 7431 else if (!0 === a.options.centerMode) 7432 d = a.slideCount; 7433 else if (a.options.asNavFor) 7434 for (; b < a.slideCount; ) 7435 ++d, 7436 b = c + a.options.slidesToScroll, 7437 c += a.options.slidesToScroll <= a.options.slidesToShow ? a.options.slidesToScroll : a.options.slidesToShow; 7438 else 7439 d = 1 + Math.ceil((a.slideCount - a.options.slidesToShow) / a.options.slidesToScroll); 7440 return d - 1 7441 } 7442 , 7443 b.prototype.getLeft = function(a) { 7444 var b, c, d, e = this, f = 0; 7445 return e.slideOffset = 0, 7446 c = e.$slides.first().outerHeight(!0), 7447 !0 === e.options.infinite ? (e.slideCount > e.options.slidesToShow && (e.slideOffset = e.slideWidth * e.options.slidesToShow * -1, 7448 f = c * e.options.slidesToShow * -1), 7449 e.slideCount % e.options.slidesToScroll != 0 && a + e.options.slidesToScroll > e.slideCount && e.slideCount > e.options.slidesToShow && (a > e.slideCount ? (e.slideOffset = (e.options.slidesToShow - (a - e.slideCount)) * e.slideWidth * -1, 7450 f = (e.options.slidesToShow - (a - e.slideCount)) * c * -1) : (e.slideOffset = e.slideCount % e.options.slidesToScroll * e.slideWidth * -1, 7451 f = e.slideCount % e.options.slidesToScroll * c * -1))) : a + e.options.slidesToShow > e.slideCount && (e.slideOffset = (a + e.options.slidesToShow - e.slideCount) * e.slideWidth, 7452 f = (a + e.options.slidesToShow - e.slideCount) * c), 7453 e.slideCount <= e.options.slidesToShow && (e.slideOffset = 0, 7454 f = 0), 7455 !0 === e.options.centerMode && !0 === e.options.infinite ? e.slideOffset += e.slideWidth * Math.floor(e.options.slidesToShow / 2) - e.slideWidth : !0 === e.options.centerMode && (e.slideOffset = 0, 7456 e.slideOffset += e.slideWidth * Math.floor(e.options.slidesToShow / 2)), 7457 b = !1 === e.options.vertical ? a * e.slideWidth * -1 + e.slideOffset : a * c * -1 + f, 7458 !0 === e.options.variableWidth && (d = e.slideCount <= e.options.slidesToShow || !1 === e.options.infinite ? e.$slideTrack.children(".slick-slide").eq(a) : e.$slideTrack.children(".slick-slide").eq(a + e.options.slidesToShow), 7459 b = !0 === e.options.rtl ? d[0] ? -1 * (e.$slideTrack.width() - d[0].offsetLeft - d.width()) : 0 : d[0] ? -1 * d[0].offsetLeft : 0, 7460 !0 === e.options.centerMode && (d = e.slideCount <= e.options.slidesToShow || !1 === e.options.infinite ? e.$slideTrack.children(".slick-slide").eq(a) : e.$slideTrack.children(".slick-slide").eq(a + e.options.slidesToShow + 1), 7461 b = !0 === e.options.rtl ? d[0] ? -1 * (e.$slideTrack.width() - d[0].offsetLeft - d.width()) : 0 : d[0] ? -1 * d[0].offsetLeft : 0, 7462 b += (e.$list.width() - d.outerWidth()) / 2)), 7463 b 7464 } 7465 , 7466 b.prototype.getOption = b.prototype.slickGetOption = function(a) { 7467 return this.options[a] 7468 } 7469 , 7470 b.prototype.getNavigableIndexes = function() { 7471 var a, b = this, c = 0, d = 0, e = []; 7472 for (!1 === b.options.infinite ? a = b.slideCount : (c = -1 * b.options.slidesToScroll, 7473 d = -1 * b.options.slidesToScroll, 7474 a = 2 * b.slideCount); c < a; ) 7475 e.push(c), 7476 c = d + b.options.slidesToScroll, 7477 d += b.options.slidesToScroll <= b.options.slidesToShow ? b.options.slidesToScroll : b.options.slidesToShow; 7478 return e 7479 } 7480 , 7481 b.prototype.getSlick = function() { 7482 return this 7483 } 7484 , 7485 b.prototype.getSlideCount = function() { 7486 var b, c, d = this; 7487 return c = !0 === d.options.centerMode ? d.slideWidth * Math.floor(d.options.slidesToShow / 2) : 0, 7488 !0 === d.options.swipeToSlide ? (d.$slideTrack.find(".slick-slide").each(function(e, f) { 7489 if (f.offsetLeft - c + a(f).outerWidth() / 2 > -1 * d.swipeLeft) 7490 return b = f, 7491 !1 7492 }), 7493 Math.abs(a(b).attr("data-slick-index") - d.currentSlide) || 1) : d.options.slidesToScroll 7494 } 7495 , 7496 b.prototype.goTo = b.prototype.slickGoTo = function(a, b) { 7497 this.changeSlide({ 7498 data: { 7499 message: "index", 7500 index: parseInt(a) 7501 } 7502 }, b) 7503 } 7504 , 7505 b.prototype.init = function(b) { 7506 var c = this; 7507 a(c.$slider).hasClass("slick-initialized") || (a(c.$slider).addClass("slick-initialized"),
7508 c.buildRows(), 7509 c.buildOut(), 7510 c.setProps(), 7511 c.startLoad(), 7512 c.loadSlider(), 7513 c.initializeEvents(), 7514 c.updateArrows(), 7515 c.updateDots(), 7516 c.checkResponsive(!0), 7517 c.focusHandler()), 7518 b && c.$slider.trigger("init", [c]), 7519 !0 === c.options.accessibility && c.initADA(), 7520 c.options.autoplay && (c.paused = !1, 7521 c.autoPlay()) 7522 } 7523 , 7524 b.prototype.initADA = function() { 7525 var b = this; 7526 b.$slides.add(b.$slideTrack.find(".slick-cloned")).attr({ 7527 "aria-hidden": "true", 7528 tabindex: "-1" 7529 }).find("a, input, button, select").attr({ 7530 tabindex: "-1" 7531 }), 7532 b.$slideTrack.attr("role", "listbox"), 7533 b.$slides.not(b.$slideTrack.find(".slick-cloned")).each(function(c) { 7534 a(this).attr({ 7535 role: "option", 7536 "aria-describedby": "slick-slide" + b.instanceUid + c 7537 }) 7538 }), 7539 null !== b.$dots && b.$dots.attr("role", "tablist").find("li").each(function(c) { 7540 a(this).attr({ 7541 role: "presentation", 7542 "aria-selected": "false", 7543 "aria-controls": "navigation" + b.instanceUid + c, 7544 id: "slick-slide" + b.instanceUid + c 7545 }) 7546 }).first().attr("aria-selected", "true").end().find("button").attr("role", "button").end().closest("div").attr("role", "toolbar"), 7547 b.activateADA() 7548 } 7549 , 7550 b.prototype.initArrowEvents = function() { 7551 var a = this; 7552 !0 === a.options.arrows && a.slideCount > a.options.slidesToShow && (a.$prevArrow.off("click.slick").on("click.slick", { 7553 message: "previous" 7554 }, a.changeSlide), 7555 a.$nextArrow.off("click.slick").on("click.slick", { 7556 message: "next" 7557 }, a.changeSlide)) 7558 } 7559 , 7560 b.prototype.initDotEvents = function() { 7561 var b = this; 7562 !0 === b.options.dots && b.slideCount > b.options.slidesToShow && a("li", b.$dots).on("click.slick", { 7563 message: "index" 7564 }, b.changeSlide), 7565 !0 === b.options.dots && !0 === b.options.pauseOnDotsHover && a("li", b.$dots).on("mouseenter.slick", a.proxy(b.interrupt, b, !0)).on("mouseleave.slick", a.proxy(b.interrupt, b, !1)) 7566 } 7567 , 7568 b.prototype.initSlideEvents = function() { 7569 var b = this; 7570 b.options.pauseOnHover && (b.$list.on("mouseenter.slick", a.proxy(b.interrupt, b, !0)), 7571 b.$list.on("mouseleave.slick", a.proxy(b.interrupt, b, !1))) 7572 } 7573 , 7574 b.prototype.initializeEvents = function() { 7575 var b = this; 7576 b.initArrowEvents(), 7577 b.initDotEvents(), 7578 b.initSlideEvents(), 7579 b.$list.on("touchstart.slick mousedown.slick", { 7580 action: "start" 7581 }, b.swipeHandler), 7582 b.$list.on("touchmove.slick mousemove.slick", { 7583 action: "move" 7584 }, b.swipeHandler), 7585 b.$list.on("touchend.slick mouseup.slick", { 7586 action: "end" 7587 }, b.swipeHandler),
7588 b.$list.on("touchcancel.slick mouseleave.slick", { 7589 action: "end" 7590 }, b.swipeHandler), 7591 b.$list.on("click.slick", b.clickHandler), 7592 a(document).on(b.visibilityChange, a.proxy(b.visibility, b)), 7593 !0 === b.options.accessibility && b.$list.on("keydown.slick", b.keyHandler), 7594 !0 === b.options.focusOnSelect && a(b.$slideTrack).children().on("click.slick", b.selectHandler), 7595 a(window).on("orientationchange.slick.slick-" + b.instanceUid, a.proxy(b.orientationChange, b)), 7596 a(window).on("resize.slick.slick-" + b.instanceUid, a.proxy(b.resize, b)), 7597 a("[draggable!=true]", b.$slideTrack).on("dragstart", b.preventDefault), 7598 a(window).on("load.slick.slick-" + b.instanceUid, b.setPosition), 7599 a(document).on("ready.slick.slick-" + b.instanceUid, b.setPosition) 7600 } 7601 , 7602 b.prototype.initUI = function() { 7603 var a = this; 7604 !0 === a.options.arrows && a.slideCount > a.options.slidesToShow && (a.$prevArrow.show(), 7605 a.$nextArrow.show()), 7606 !0 === a.options.dots && a.slideCount > a.options.slidesToShow && a.$dots.show() 7607 } 7608 , 7609 b.prototype.keyHandler = function(a) {} 7610 , 7611 b.prototype.lazyLoad = function() { 7612 function b(b) { 7613 a("img[data-lazy]", b).each(function() { 7614 var b = a(this) 7615 , c = a(this).attr("data-lazy") 7616 , d = document.createElement("img"); 7617 d.onload = function() { 7618 b.animate({ 7619 opacity: 0 7620 }, 100, function() { 7621 b.attr("src", c).animate({ 7622 opacity: 1 7623 }, 200, function() { 7624 b.removeAttr("data-lazy").removeClass("slick-loading") 7625 }), 7626 g.$slider.trigger("lazyLoaded", [g, b, c]) 7627 }) 7628 } 7629 , 7630 d.onerror = function() { 7631 b.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), 7632 g.$slider.trigger("lazyLoadError", [g, b, c]) 7633 } 7634 , 7635 d.src = c 7636 }) 7637 } 7638 var c, d, e, f, g = this; 7639 !0 === g.options.centerMode ? !0 === g.options.infinite ? (e = g.currentSlide + (g.options.slidesToShow / 2 + 1), 7640 f = e + g.options.slidesToShow + 2) : (e = Math.max(0, g.currentSlide - (g.options.slidesToShow / 2 + 1)), 7641 f = g.options.slidesToShow / 2 + 1 + 2 + g.currentSlide) : (e = g.options.infinite ? g.options.slidesToShow + g.currentSlide : g.currentSlide, 7642 f = Math.ceil(e + g.options.slidesToShow), 7643 !0 === g.options.fade && (e > 0 && e--, 7644 f <= g.slideCount && f++)), 7645 c = g.$slider.find(".slick-slide").slice(e, f), 7646 b(c), 7647 g.slideCount <= g.options.slidesToShow ? (d = g.$slider.find(".slick-slide"), 7648 b(d)) : g.currentSlide >= g.slideCount - g.options.slidesToShow ? (d = g.$slider.find(".slick-cloned").slice(0, g.options.slidesToShow), 7649 b(d)) : 0 === g.currentSlide && (d = g.$slider.find(".slick-cloned").slice(-1 * g.options.slidesToShow), 7650 b(d)) 7651 } 7652 , 7653 b.prototype.loadSlider = function() { 7654 var a = this; 7655 a.setPosition(), 7656 a.$slideTrack.css({ 7657 opacity: 1 7658 }), 7659 a.$slider.removeClass("slick-loading"), 7660 a.initUI(), 7661 "progressive" === a.options.lazyLoad && a.progressiveLazyLoad() 7662 } 7663 , 7664 b.prototype.next = b.prototype.slickNext = function() { 7665 this.changeSlide({ 7666 data: { 7667 message: "next" 7668 } 7669 }) 7670 } 7671 , 7672 b.prototype.orientationChange = function() { 7673 var a = this; 7674 a.checkResponsive(), 7675 a.setPosition() 7676 } 7677 , 7678 b.prototype.pause = b.prototype.slickPause = function() { 7679 var a = this; 7680 a.autoPlayClear(), 7681 a.paused = !0 7682 } 7683 , 7684 b.prototype.play = b.prototype.slickPlay = function() { 7685 var a = this; 7686 a.autoPlay(), 7687 a.options.autoplay = !0, 7688 a.paused = !1, 7689 a.focussed = !1, 7690 a.interrupted = !1 7691 } 7692 , 7693 b.prototype.postSlide = function(a) { 7694 var b = this;
vendor: 4,197 bytes, lines 7695-7810
7695 b.unslicked || (b.$slider.trigger("afterChange", [b, a]), 7696 b.animating = !1, 7697 b.setPosition(), 7698 b.swipeLeft = null, 7699 b.options.autoplay && b.autoPlay(), 7700 !0 === b.options.accessibility && b.initADA()) 7701 } 7702 , 7703 b.prototype.prev = b.prototype.slickPrev = function() { 7704 this.changeSlide({ 7705 data: { 7706 message: "previous" 7707 } 7708 }) 7709 } 7710 , 7711 b.prototype.preventDefault = function(a) { 7712 a.preventDefault() 7713 } 7714 , 7715 b.prototype.progressiveLazyLoad = function(b) { 7716 b = b || 1; 7717 var c, d, e, f = this, g = a("img[data-lazy]", f.$slider); 7718 g.length ? (c = g.first(), 7719 d = c.attr("data-lazy"), 7720 e = document.createElement("img"), 7721 e.onload = function() { 7722 c.attr("src", d).removeAttr("data-lazy").removeClass("slick-loading"), 7723 !0 === f.options.adaptiveHeight && f.setPosition(), 7724 f.$slider.trigger("lazyLoaded", [f, c, d]), 7725 f.progressiveLazyLoad() 7726 } 7727 , 7728 e.onerror = function() { 7729 b < 3 ? setTimeout(function() { 7730 f.progressiveLazyLoad(b + 1) 7731 }, 500) : (c.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), 7732 f.$slider.trigger("lazyLoadError", [f, c, d]), 7733 f.progressiveLazyLoad()) 7734 } 7735 , 7736 e.src = d) : f.$slider.trigger("allImagesLoaded", [f]) 7737 } 7738 , 7739 b.prototype.refresh = function(b) { 7740 var c, d, e = this; 7741 d = e.slideCount - e.options.slidesToShow, 7742 !e.options.infinite && e.currentSlide > d && (e.currentSlide = d), 7743 e.slideCount <= e.options.slidesToShow && (e.currentSlide = 0), 7744 c = e.currentSlide, 7745 e.destroy(!0), 7746 a.extend(e, e.initials, { 7747 currentSlide: c 7748 }), 7749 e.init(), 7750 b || e.changeSlide({ 7751 data: { 7752 message: "index", 7753 index: c 7754 } 7755 }, !1) 7756 } 7757 , 7758 b.prototype.registerBreakpoints = function() { 7759 var b, c, d, e = this, f = e.options.responsive || null; 7760 if ("array" === a.type(f) && f.length) { 7761 e.respondTo = e.options.respondTo || "window"; 7762 for (b in f) 7763 if (d = e.breakpoints.length - 1, 7764 c = f[b].breakpoint, 7765 f.hasOwnProperty(b)) { 7766 for (; d >= 0; ) 7767 e.breakpoints[d] && e.breakpoints[d] === c && e.breakpoints.splice(d, 1), 7768 d--; 7769 e.breakpoints.push(c), 7770 e.breakpointSettings[c] = f[b].settings 7771 } 7772 e.breakpoints.sort(function(a, b) { 7773 return e.options.mobileFirst ? a - b : b - a 7774 }) 7775 } 7776 } 7777 , 7778 b.prototype.reinit = function() { 7779 var b = this; 7780 b.$slides = b.$slideTrack.children(b.options.slide).addClass("slick-slide"), 7781 b.slideCount = b.$slides.length, 7782 b.currentSlide >= b.slideCount && 0 !== b.currentSlide && (b.currentSlide = b.currentSlide - b.options.slidesToScroll), 7783 b.slideCount <= b.options.slidesToShow && (b.currentSlide = 0), 7784 b.registerBreakpoints(), 7785 b.setProps(), 7786 b.setupInfinite(), 7787 b.buildArrows(), 7788 b.updateArrows(), 7789 b.initArrowEvents(), 7790 b.buildDots(), 7791 b.updateDots(), 7792 b.initDotEvents(), 7793 b.cleanUpSlideEvents(), 7794 b.initSlideEvents(), 7795 b.checkResponsive(!1, !0), 7796 !0 === b.options.focusOnSelect && a(b.$slideTrack).children().on("click.slick", b.selectHandler), 7797 b.setSlideClasses("number" == typeof b.currentSlide ? b.currentSlide : 0), 7798 b.setPosition(), 7799 b.focusHandler(), 7800 b.paused = !b.options.autoplay, 7801 b.autoPlay(), 7802 b.$slider.trigger("reInit", [b]) 7803 } 7804 , 7805 b.prototype.resize = function() { 7806 var b = this; 7807 a(window).width() !== b.windowWidth && (clearTimeout(b.windowDelay), 7808 b.windowDelay = window.setTimeout(function() { 7809 b.windowWidth = a(window).width(), 7810 b.checkResponsive(),
vendor: 6,003 bytes, lines 7811-7941
7811 b.unslicked || b.setPosition() 7812 }, 50)) 7813 } 7814 , 7815 b.prototype.removeSlide = b.prototype.slickRemove = function(a, b, c) { 7816 var d = this; 7817 if ("boolean" == typeof a ? (b = a, 7818 a = !0 === b ? 0 : d.slideCount - 1) : a = !0 === b ? --a : a, 7819 d.slideCount < 1 || a < 0 || a > d.slideCount - 1) 7820 return !1; 7821 d.unload(), 7822 !0 === c ? d.$slideTrack.children().remove() : d.$slideTrack.children(this.options.slide).eq(a).remove(), 7823 d.$slides = d.$slideTrack.children(this.options.slide), 7824 d.$slideTrack.children(this.options.slide).detach(), 7825 d.$slideTrack.append(d.$slides), 7826 d.$slidesCache = d.$slides, 7827 d.reinit() 7828 } 7829 , 7830 b.prototype.setCSS = function(a) { 7831 var b, c, d = this, e = {}; 7832 !0 === d.options.rtl && (a = -a), 7833 b = "left" == d.positionProp ? Math.ceil(a) + "px" : "0px", 7834 c = "top" == d.positionProp ? Math.ceil(a) + "px" : "0px", 7835 e[d.positionProp] = a, 7836 !1 === d.transformsEnabled ? d.$slideTrack.css(e) : (e = {}, 7837 !1 === d.cssTransitions ? (e[d.animType] = "translate(" + b + ", " + c + ")", 7838 d.$slideTrack.css(e)) : (e[d.animType] = "translate3d(" + b + ", " + c + ", 0px)", 7839 d.$slideTrack.css(e))) 7840 } 7841 , 7842 b.prototype.setDimensions = function() { 7843 var a = this; 7844 !1 === a.options.vertical ? !0 === a.options.centerMode && a.$list.css({ 7845 padding: "0px " + a.options.centerPadding 7846 }) : (a.$list.height(a.$slides.first().outerHeight(!0) * a.options.slidesToShow), 7847 !0 === a.options.centerMode && a.$list.css({ 7848 padding: a.options.centerPadding + " 0px" 7849 })), 7850 a.listWidth = a.$list.width(), 7851 a.listHeight = a.$list.height(), 7852 !1 === a.options.vertical && !1 === a.options.variableWidth ? (a.slideWidth = Math.ceil(a.listWidth / a.options.slidesToShow), 7853 a.$slideTrack.width(Math.ceil(a.slideWidth * a.$slideTrack.children(".slick-slide").length))) : !0 === a.options.variableWidth ? a.$slideTrack.width(5e3 * a.slideCount) : (a.slideWidth = Math.ceil(a.listWidth), 7854 a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0) * a.$slideTrack.children(".slick-slide").length))); 7855 var b = a.$slides.first().outerWidth(!0) - a.$slides.first().width(); 7856 !1 === a.options.variableWidth && a.$slideTrack.children(".slick-slide").width(a.slideWidth - b) 7857 } 7858 , 7859 b.prototype.setFade = function() { 7860 var b, c = this; 7861 c.$slides.each(function(d, e) { 7862 b = c.slideWidth * d * -1, 7863 !0 === c.options.rtl ? a(e).css({ 7864 position: "relative", 7865 right: b, 7866 top: 0, 7867 zIndex: c.options.zIndex - 2, 7868 opacity: 0 7869 }) : a(e).css({ 7870 position: "relative", 7871 left: b, 7872 top: 0, 7873 zIndex: c.options.zIndex - 2, 7874 opacity: 0 7875 }) 7876 }), 7877 c.$slides.eq(c.currentSlide).css({ 7878 zIndex: c.options.zIndex - 1, 7879 opacity: 1 7880 }) 7881 } 7882 , 7883 b.prototype.setHeight = function() { 7884 var a = this; 7885 if (1 === a.options.slidesToShow && !0 === a.options.adaptiveHeight && !1 === a.options.vertical) { 7886 var b = a.$slides.eq(a.currentSlide).outerHeight(!0); 7887 a.$list.css("height", b) 7888 } 7889 } 7890 , 7891 b.prototype.setOption = b.prototype.slickSetOption = function() { 7892 var b, c, d, e, f, g = this, h = !1; 7893 if ("object" === a.type(arguments[0]) ? (d = arguments[0], 7894 h = arguments[1], 7895 f = "multiple") : "string" === a.type(arguments[0]) && (d = arguments[0], 7896 e = arguments[1], 7897 h = arguments[2], 7898 "responsive" === arguments[0] && "array" === a.type(arguments[1]) ? f = "responsive" : void 0 !== arguments[1] && (f = "single")), 7899 "single" === f) 7900 g.options[d] = e; 7901 else if ("multiple" === f) 7902 a.each(d, function(a, b) { 7903 g.options[a] = b 7904 }); 7905 else if ("responsive" === f) 7906 for (c in e) 7907 if ("array" !== a.type(g.options.responsive)) 7908 g.options.responsive = [e[c]]; 7909 else { 7910 for (b = g.options.responsive.length - 1; b >= 0; ) 7911 g.options.responsive[b].breakpoint === e[c].breakpoint && g.options.responsive.splice(b, 1), 7912 b--; 7913 g.options.responsive.push(e[c]) 7914 } 7915 h && (g.unload(), 7916 g.reinit()) 7917 } 7918 , 7919 b.prototype.setPosition = function() { 7920 var a = this; 7921 a.setDimensions(), 7922 a.setHeight(), 7923 !1 === a.options.fade ? a.setCSS(a.getLeft(a.currentSlide)) : a.setFade(), 7924 a.$slider.trigger("setPosition", [a]) 7925 } 7926 , 7927 b.prototype.setProps = function() { 7928 var a = this 7929 , b = document.body.style; 7930 a.positionProp = !0 === a.options.vertical ? "top" : "left", 7931 "top" === a.positionProp ? a.$slider.addClass("slick-vertical") : a.$slider.removeClass("slick-vertical"), 7932 void 0 === b.WebkitTransition && void 0 === b.MozTransition && void 0 === b.msTransition || !0 === a.options.useCSS && (a.cssTransitions = !0), 7933 a.options.fade && ("number" == typeof a.options.zIndex ? a.options.zIndex < 3 && (a.options.zIndex = 3) : a.options.zIndex = a.defaults.zIndex), 7934 void 0 !== b.OTransform && (a.animType = "OTransform", 7935 a.transformType = "-o-transform", 7936 a.transitionType = "OTransition", 7937 void 0 === b.perspectiveProperty && void 0 === b.webkitPerspective && (a.animType = !1)), 7938 void 0 !== b.MozTransform && (a.animType = "MozTransform", 7939 a.transformType = "-moz-transform", 7940 a.transitionType = "MozTransition", 7941 void 0 === b.perspectiveProperty && void 0 === b.MozPerspective && (a.animType = !1)),
7942 void 0 !== b.webkitTransform && (a.animType = "webkitTransform", 7943 a.transformType = "-webkit-transform", 7944 a.transitionType = "webkitTransition", 7945 void 0 === b.perspectiveProperty && void 0 === b.webkitPerspective && (a.animType = !1)), 7946 void 0 !== b.msTransform && (a.animType = "msTransform", 7947 a.transformType = "-ms-transform", 7948 a.transitionType = "msTransition", 7949 void 0 === b.msTransform && (a.animType = !1)), 7950 void 0 !== b.transform && !1 !== a.animType && (a.animType = "transform", 7951 a.transformType = "transform", 7952 a.transitionType = "transition"), 7953 a.transformsEnabled = a.options.useTransform && null !== a.animType && !1 !== a.animType 7954 } 7955 , 7956 b.prototype.setSlideClasses = function(a) { 7957 var b, c, d, e, f = this; 7958 c = f.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden", "true"), 7959 f.$slides.eq(a).addClass("slick-current"), 7960 !0 === f.options.centerMode ? (b = Math.floor(f.options.slidesToShow / 2), 7961 !0 === f.options.infinite && (a >= b && a <= f.slideCount - 1 - b ? f.$slides.slice(a - b, a + b + 1).addClass("slick-active").attr("aria-hidden", "false") : (d = f.options.slidesToShow + a, 7962 c.slice(d - b + 1, d + b + 2).addClass("slick-active").attr("aria-hidden", "false")), 7963 0 === a ? c.eq(c.length - 1 - f.options.slidesToShow).addClass("slick-center") : a === f.slideCount - 1 && c.eq(f.options.slidesToShow).addClass("slick-center")), 7964 f.$slides.eq(a).addClass("slick-center")) : a >= 0 && a <= f.slideCount - f.options.slidesToShow ? f.$slides.slice(a, a + f.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false") : c.length <= f.options.slidesToShow ? c.addClass("slick-active").attr("aria-hidden", "false") : (e = f.slideCount % f.options.slidesToShow, 7965 d = !0 === f.options.infinite ? f.options.slidesToShow + a : a, 7966 f.options.slidesToShow == f.options.slidesToScroll && f.slideCount - a < f.options.slidesToShow ? c.slice(d - (f.options.slidesToShow - e), d + e).addClass("slick-active").attr("aria-hidden", "false") : c.slice(d, d + f.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false")), 7967 "ondemand" === f.options.lazyLoad && f.lazyLoad() 7968 } 7969 , 7970 b.prototype.setupInfinite = function() { 7971 var b, c, d, e = this; 7972 if (!0 === e.options.fade && (e.options.centerMode = !1), 7973 !0 === e.options.infinite && !1 === e.options.fade && (c = null, 7974 e.slideCount > e.options.slidesToShow)) { 7975 for (d = !0 === e.options.centerMode ? e.options.slidesToShow + 1 : e.options.slidesToShow, 7976 b = e.slideCount; b > e.slideCount - d; b -= 1) 7977 c = b - 1, 7978 a(e.$slides[c]).clone(!0).attr("id", "").attr("data-slick-index", c - e.slideCount).prependTo(e.$slideTrack).addClass("slick-cloned"); 7979 for (b = 0; b < d; b += 1) 7980 c = b, 7981 a(e.$slides[c]).clone(!0).attr("id", "").attr("data-slick-index", c + e.slideCount).appendTo(e.$slideTrack).addClass("slick-cloned"); 7982 e.$slideTrack.find(".slick-cloned").find("[id]").each(function() { 7983 a(this).attr("id", "") 7984 }) 7985 } 7986 } 7987 , 7988 b.prototype.interrupt = function(a) { 7989 var b = this; 7990 a || b.autoPlay(), 7991 b.interrupted = a 7992 } 7993 , 7994 b.prototype.selectHandler = function(b) { 7995 var c = this 7996 , d = a(b.target).is(".slick-slide") ? a(b.target) : a(b.target).parents(".slick-slide") 7997 , e = parseInt(d.attr("data-slick-index")); 7998 if (e || (e = 0), 7999 c.slideCount <= c.options.slidesToShow) 8000 return c.setSlideClasses(e), 8001 void c.asNavFor(e); 8002 c.slideHandler(e) 8003 } 8004 , 8005 b.prototype.slideHandler = function(a, b, c) { 8006 var d, e, f, g, h, i = null, j = this; 8007 if (b = b || !1, 8008 (!0 !== j.animating || !0 !== j.options.waitForAnimate) && !(!0 === j.options.fade && j.currentSlide === a || j.slideCount <= j.options.slidesToShow)) { 8009 if (!1 === b && j.asNavFor(a), 8010 d = a, 8011 i = j.getLeft(d), 8012 g = j.getLeft(j.currentSlide), 8013 j.currentLeft = null === j.swipeLeft ? g : j.swipeLeft, 8014 !1 === j.options.infinite && !1 === j.options.centerMode && (a < 0 || a > j.getDotCount() * j.options.slidesToScroll)) 8015 return void (!1 === j.options.fade && (d = j.currentSlide, 8016 !0 !== c ? j.animateSlide(g, function() { 8017 j.postSlide(d) 8018 }) : j.postSlide(d))); 8019 if (!1 === j.options.infinite && !0 === j.options.centerMode && (a < 0 || a > j.slideCount - j.options.slidesToScroll)) 8020 return void (!1 === j.options.fade && (d = j.currentSlide, 8021 !0 !== c ? j.animateSlide(g, function() { 8022 j.postSlide(d) 8023 }) : j.postSlide(d))); 8024 if (j.options.autoplay && clearInterval(j.autoPlayTimer), 8025 e = d < 0 ? j.slideCount % j.options.slidesToScroll != 0 ? j.slideCount - j.slideCount % j.options.slidesToScroll : j.slideCount + d : d >= j.slideCount ? j.slideCount % j.options.slidesToScroll != 0 ? 0 : d - j.slideCount : d, 8026 j.animating = !0, 8027 j.$slider.trigger("beforeChange", [j, j.currentSlide, e]), 8028 f = j.currentSlide, 8029 j.currentSlide = e, 8030 j.setSlideClasses(j.currentSlide), 8031 j.options.asNavFor && (h = j.getNavTarget(), 8032 h = h.slick("getSlick"), 8033 h.slideCount <= h.options.slidesToShow && h.setSlideClasses(j.currentSlide)), 8034 j.updateDots(), 8035 j.updateArrows(), 8036 !0 === j.options.fade) 8037 return !0 !== c ? (j.fadeSlideOut(f), 8038 j.fadeSlide(e, function() { 8039 j.postSlide(e) 8040 })) : j.postSlide(e), 8041 void j.animateHeight(); 8042 !0 !== c ? j.animateSlide(i, function() { 8043 j.postSlide(e) 8044 }) : j.postSlide(e) 8045 } 8046 } 8047 , 8048 b.prototype.startLoad = function() { 8049 var a = this; 8050 !0 === a.options.arrows && a.slideCount > a.options.slidesToShow && (a.$prevArrow.hide(), 8051 a.$nextArrow.hide()), 8052 !0 === a.options.dots && a.slideCount > a.options.slidesToShow && a.$dots.hide(), 8053 a.$slider.addClass("slick-loading") 8054 } 8055 , 8056 b.prototype.swipeDirection = function() { 8057 var a, b, c, d, e = this; 8058 return a = e.touchObject.startX - e.touchObject.curX, 8059 b = e.touchObject.startY - e.touchObject.curY, 8060 c = Math.atan2(b, a), 8061 d = Math.round(180 * c / Math.PI), 8062 d < 0 && (d = 360 - Math.abs(d)), 8063 d <= 45 && d >= 0 ? !1 === e.options.rtl ? "left" : "right" : d <= 360 && d >= 315 ? !1 === e.options.rtl ? "left" : "right" : d >= 135 && d <= 225 ? !1 === e.options.rtl ? "right" : "left" : !0 === e.options.verticalSwiping ? d >= 35 && d <= 135 ? "down" : "up" : "vertical" 8064 } 8065 , 8066 b.prototype.swipeEnd = function(a) { 8067 var b, c, d = this; 8068 if (d.dragging = !1, 8069 d.interrupted = !1, 8070 d.shouldClick = !(d.touchObject.swipeLength > 10), 8071 void 0 === d.touchObject.curX) 8072 return !1; 8073 if (!0 === d.touchObject.edgeHit && d.$slider.trigger("edge", [d, d.swipeDirection()]), 8074 d.touchObject.swipeLength >= d.touchObject.minSwipe) { 8075 switch (c = d.swipeDirection()) {
vendor: 4,549 bytes, lines 8076-8161
8076 case "left": 8077 case "down": 8078 b = d.options.swipeToSlide ? d.checkNavigable(d.currentSlide + d.getSlideCount()) : d.currentSlide + d.getSlideCount(), 8079 d.currentDirection = 0; 8080 break; 8081 case "right": 8082 case "up": 8083 b = d.options.swipeToSlide ? d.checkNavigable(d.currentSlide - d.getSlideCount()) : d.currentSlide - d.getSlideCount(), 8084 d.currentDirection = 1 8085 } 8086 "vertical" != c && (d.slideHandler(b), 8087 d.touchObject = {}, 8088 d.$slider.trigger("swipe", [d, c])) 8089 } else 8090 d.touchObject.startX !== d.touchObject.curX && (d.slideHandler(d.currentSlide), 8091 d.touchObject = {}) 8092 } 8093 , 8094 b.prototype.swipeHandler = function(a) { 8095 var b = this; 8096 if (!(!1 === b.options.swipe || "ontouchend"in document && !1 === b.options.swipe || !1 === b.options.draggable && -1 !== a.type.indexOf("mouse"))) 8097 switch (b.touchObject.fingerCount = a.originalEvent && void 0 !== a.originalEvent.touches ? a.originalEvent.touches.length : 1, 8098 b.touchObject.minSwipe = b.listWidth / b.options.touchThreshold, 8099 !0 === b.options.verticalSwiping && (b.touchObject.minSwipe = b.listHeight / b.options.touchThreshold), 8100 a.data.action) { 8101 case "start": 8102 b.swipeStart(a); 8103 break; 8104 case "move": 8105 b.swipeMove(a); 8106 break; 8107 case "end": 8108 b.swipeEnd(a) 8109 } 8110 } 8111 , 8112 b.prototype.swipeMove = function(a) { 8113 var b, c, d, e, f, g = this; 8114 return f = void 0 !== a.originalEvent ? a.originalEvent.touches : null, 8115 !(!g.dragging || f && 1 !== f.length) && (b = g.getLeft(g.currentSlide), 8116 g.touchObject.curX = void 0 !== f ? f[0].pageX : a.clientX, 8117 g.touchObject.curY = void 0 !== f ? f[0].pageY : a.clientY, 8118 g.touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(g.touchObject.curX - g.touchObject.startX, 2))), 8119 !0 === g.options.verticalSwiping && (g.touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(g.touchObject.curY - g.touchObject.startY, 2)))), 8120 "vertical" !== (c = g.swipeDirection()) ? (void 0 !== a.originalEvent && g.touchObject.swipeLength > 4 && a.preventDefault(), 8121 e = (!1 === g.options.rtl ? 1 : -1) * (g.touchObject.curX > g.touchObject.startX ? 1 : -1), 8122 !0 === g.options.verticalSwiping && (e = g.touchObject.curY > g.touchObject.startY ? 1 : -1), 8123 d = g.touchObject.swipeLength, 8124 g.touchObject.edgeHit = !1, 8125 !1 === g.options.infinite && (0 === g.currentSlide && "right" === c || g.currentSlide >= g.getDotCount() && "left" === c) && (d = g.touchObject.swipeLength * g.options.edgeFriction, 8126 g.touchObject.edgeHit = !0), 8127 !1 === g.options.vertical ? g.swipeLeft = b + d * e : g.swipeLeft = b + d * (g.$list.height() / g.listWidth) * e, 8128 !0 === g.options.verticalSwiping && (g.swipeLeft = b + d * e), 8129 !0 !== g.options.fade && !1 !== g.options.touchMove && (!0 === g.animating ? (g.swipeLeft = null, 8130 !1) : void g.setCSS(g.swipeLeft))) : void 0) 8131 } 8132 , 8133 b.prototype.swipeStart = function(a) { 8134 var b, c = this; 8135 if (c.interrupted = !0, 8136 1 !== c.touchObject.fingerCount || c.slideCount <= c.options.slidesToShow) 8137 return c.touchObject = {}, 8138 !1; 8139 void 0 !== a.originalEvent && void 0 !== a.originalEvent.touches && (b = a.originalEvent.touches[0]), 8140 c.touchObject.startX = c.touchObject.curX = void 0 !== b ? b.pageX : a.clientX, 8141 c.touchObject.startY = c.touchObject.curY = void 0 !== b ? b.pageY : a.clientY, 8142 c.dragging = !0 8143 } 8144 , 8145 b.prototype.unfilterSlides = b.prototype.slickUnfilter = function() { 8146 var a = this; 8147 null !== a.$slidesCache && (a.unload(), 8148 a.$slideTrack.children(this.options.slide).detach(), 8149 a.$slidesCache.appendTo(a.$slideTrack), 8150 a.reinit()) 8151 } 8152 , 8153 b.prototype.unload = function() { 8154 var b = this; 8155 a(".slick-cloned", b.$slider).remove(), 8156 b.$dots && b.$dots.remove(), 8157 b.$prevArrow && b.htmlExpr.test(b.options.prevArrow) && b.$prevArrow.remove(), 8158 b.$nextArrow && b.htmlExpr.test(b.options.nextArrow) && b.$nextArrow.remove(), 8159 b.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden", "true").css("width", "") 8160 } 8161 ,
8162 b.prototype.unslick = function(a) { 8163 var b = this; 8164 b.$slider.trigger("unslick", [b, a]), 8165 b.destroy() 8166 } 8167 , 8168 b.prototype.updateArrows = function() { 8169 var a = this; 8170 Math.floor(a.options.slidesToShow / 2), 8171 !0 === a.options.arrows && a.slideCount > a.options.slidesToShow && !a.options.infinite && (a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), 8172 a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), 8173 0 === a.currentSlide ? (a.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true"), 8174 a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : a.currentSlide >= a.slideCount - a.options.slidesToShow && !1 === a.options.centerMode ? (a.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), 8175 a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : a.currentSlide >= a.slideCount - 1 && !0 === a.options.centerMode && (a.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), 8176 a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false"))) 8177 } 8178 , 8179 b.prototype.updateDots = function() { 8180 var a = this; 8181 null !== a.$dots && (a.$dots.find("li").removeClass("slick-active").attr("aria-hidden", "true"), 8182 a.$dots.find("li").eq(Math.floor(a.currentSlide / a.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden", "false")) 8183 } 8184 , 8185 b.prototype.visibility = function() { 8186 var a = this; 8187 a.options.autoplay && (document[a.hidden] ? a.interrupted = !0 : a.interrupted = !1) 8188 } 8189 , 8190 a.fn.slick = function() { 8191 var a, c, d = this, e = arguments[0], f = Array.prototype.slice.call(arguments, 1), g = d.length; 8192 for (a = 0; a < g; a++) 8193 if ("object" == typeof e || void 0 === e ? d[a].slick = new b(d[a],e) : c = d[a].slick[e].apply(d[a].slick, f), 8194 void 0 !== c) 8195 return c; 8196 return d 8197 } 8198}), 8199function(a) { 8200 "function" == typeof define && define.amd ? define(["jquery"], a) : a("object" == typeof exports ? require("jquery") : window.jQuery || window.Zepto) 8201}(function(a) { 8202 var b, c, d, e, f, g, h = "Close", i = "BeforeClose", j = "MarkupParse", k = "Open", l = "Change", m = "mfp", n = "." + m, o = "mfp-ready", p = "mfp-removing", q = "mfp-prevent-close", r = function() {}, s = !!window.jQuery, t = a(window), u = function(a, c) { 8203 b.ev.on(m + a + n, c) 8204 }, v = function(b, c, d, e) { 8205 var f = document.createElement("div"); 8206 return f.className = "mfp-" + b, 8207 d && (f.innerHTML = d), 8208 e ? c && c.appendChild(f) : (f = a(f), 8209 c && f.appendTo(c)), 8210 f 8211 }, w = function(c, d) { 8212 b.ev.triggerHandler(m + c, d), 8213 b.st.callbacks && (c = c.charAt(0).toLowerCase() + c.slice(1), 8214 b.st.callbacks[c] && b.st.callbacks[c].apply(b, a.isArray(d) ? d : [d])) 8215 }, x = function(c) { 8216 return c === g && b.currTemplate.closeBtn || (b.currTemplate.closeBtn = a(b.st.closeMarkup.replace("%title%", b.st.tClose)), 8217 g = c), 8218 b.currTemplate.closeBtn 8219 }, y = function() { 8220 a.magnificPopup.instance || (b = new r, 8221 b.init(), 8222 a.magnificPopup.instance = b) 8223 }, z = function() { 8224 var a = document.createElement("p").style 8225 , b = ["ms", "O", "Moz", "Webkit"]; 8226 if (void 0 !== a.transition) 8227 return !0; 8228 for (; b.length; ) 8229 if (b.pop() + "Transition"in a) 8230 return !0; 8231 return !1 8232 }; 8233 r.prototype = { 8234 constructor: r, 8235 init: function() { 8236 var c = navigator.appVersion; 8237 b.isLowIE = b.isIE8 = document.all && !document.addEventListener, 8238 b.isAndroid = /android/gi.test(c), 8239 b.isIOS = /iphone|ipad|ipod/gi.test(c), 8240 b.supportsTransition = z(), 8241 b.probablyMobile = b.isAndroid || b.isIOS || /(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent), 8242 d = a(document), 8243 b.popupsCache = {} 8244 }, 8245 open: function(c) { 8246 var e; 8247 if (!1 === c.isObj) { 8248 b.items = c.items.toArray(), 8249 b.index = 0; 8250 var g, h = c.items; 8251 for (e = 0; e < h.length; e++) 8252 if (g = h[e], 8253 g.parsed && (g = g.el[0]), 8254 g === c.el[0]) { 8255 b.index = e; 8256 break 8257 } 8258 } else 8259 b.items = a.isArray(c.items) ? c.items : [c.items], 8260 b.index = c.index || 0; 8261 if (b.isOpen) 8262 return void b.updateItemHTML(); 8263 b.types = [], 8264 f = "", 8265 c.mainEl && c.mainEl.length ? b.ev = c.mainEl.eq(0) : b.ev = d, 8266 c.key ? (b.popupsCache[c.key] || (b.popupsCache[c.key] = {}), 8267 b.currTemplate = b.popupsCache[c.key]) : b.currTemplate = {}, 8268 b.st = a.extend(!0, {}, a.magnificPopup.defaults, c), 8269 b.fixedContentPos = "auto" === b.st.fixedContentPos ? !b.probablyMobile : b.st.fixedContentPos, 8270 b.st.modal && (b.st.closeOnContentClick = !1, 8271 b.st.closeOnBgClick = !1, 8272 b.st.showCloseBtn = !1, 8273 b.st.enableEscapeKey = !1), 8274 b.bgOverlay || (b.bgOverlay = v("bg").on("click" + n, function() { 8275 b.close() 8276 }), 8277 b.wrap = v("wrap").attr("tabindex", -1).on("click" + n, function(a) { 8278 b._checkIfClose(a.target) && b.close() 8279 }), 8280 b.container = v("container", b.wrap)), 8281 b.contentContainer = v("content"), 8282 b.st.preloader && (b.preloader = v("preloader", b.container, b.st.tLoading)); 8283 var i = a.magnificPopup.modules; 8284 for (e = 0; e < i.length; e++) { 8285 var l = i[e]; 8286 l = l.charAt(0).toUpperCase() + l.slice(1), 8287 b["init" + l].call(b) 8288 } 8289 w("BeforeOpen"), 8290 b.st.showCloseBtn && (b.st.closeBtnInside ? (u(j, function(a, b, c, d) { 8291 c.close_replaceWith = x(d.type) 8292 }), 8293 f += " mfp-close-btn-in") : b.wrap.append(x())), 8294 b.st.alignTop && (f += " mfp-align-top"), 8295 b.fixedContentPos ? b.wrap.css({ 8296 overflow: b.st.overflowY, 8297 overflowX: "hidden", 8298 overflowY: b.st.overflowY 8299 }) : b.wrap.css({ 8300 top: t.scrollTop(), 8301 position: "absolute" 8302 }), 8303 (!1 === b.st.fixedBgPos || "auto" === b.st.fixedBgPos && !b.fixedContentPos) && b.bgOverlay.css({ 8304 height: d.height(), 8305 position: "absolute" 8306 }), 8307 b.st.enableEscapeKey && d.on("keyup" + n, function(a) { 8308 27 === a.keyCode && b.close() 8309 }), 8310 t.on("resize" + n, function() { 8311 b.updateSize() 8312 }), 8313 b.st.closeOnContentClick || (f += " mfp-auto-cursor"), 8314 f && b.wrap.addClass(f); 8315 var m = b.wH = t.height() 8316 , p = {}; 8317 if (b.fixedContentPos && b._hasScrollBar(m)) { 8318 var q = b._getScrollbarSize(); 8319 q && (p.marginRight = q) 8320 } 8321 b.fixedContentPos && (b.isIE7 ? a("body, html").css("overflow", "hidden") : p.overflow = "hidden"); 8322 var r = b.st.mainClass; 8323 return b.isIE7 && (r += " mfp-ie7"), 8324 r && b._addClassToMFP(r), 8325 b.updateItemHTML(), 8326 w("BuildControls"), 8327 a("html").css(p),
8328 b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo || a(document.body)), 8329 b._lastFocusedEl = document.activeElement, 8330 setTimeout(function() { 8331 b.content ? (b._addClassToMFP(o), 8332 b._setFocus()) : b.bgOverlay.addClass(o), 8333 d.on("focusin" + n, b._onFocusIn) 8334 }, 16), 8335 b.isOpen = !0, 8336 b.updateSize(m), 8337 w(k), 8338 c 8339 }, 8340 close: function() { 8341 b.isOpen && (w(i), 8342 b.isOpen = !1, 8343 b.st.removalDelay && !b.isLowIE && b.supportsTransition ? (b._addClassToMFP(p), 8344 setTimeout(function() { 8345 b._close() 8346 }, b.st.removalDelay)) : b._close()) 8347 }, 8348 _close: function() { 8349 w(h); 8350 var c = p + " " + o + " "; 8351 if (b.bgOverlay.detach(), 8352 b.wrap.detach(), 8353 b.container.empty(), 8354 b.st.mainClass && (c += b.st.mainClass + " "), 8355 b._removeClassFromMFP(c), 8356 b.fixedContentPos) { 8357 var e = { 8358 marginRight: "" 8359 }; 8360 b.isIE7 ? a("body, html").css("overflow", "") : e.overflow = "", 8361 a("html").css(e) 8362 } 8363 d.off("keyup" + n + " focusin" + n), 8364 b.ev.off(n), 8365 b.wrap.attr("class", "mfp-wrap").removeAttr("style"), 8366 b.bgOverlay.attr("class", "mfp-bg"), 8367 b.container.attr("class", "mfp-container"), 8368 !b.st.showCloseBtn || b.st.closeBtnInside && !0 !== b.currTemplate[b.currItem.type] || b.currTemplate.closeBtn && b.currTemplate.closeBtn.detach(), 8369 b.st.autoFocusLast && b._lastFocusedEl && a(b._lastFocusedEl).focus(), 8370 b.currItem = null, 8371 b.content = null, 8372 b.currTemplate = null, 8373 b.prevHeight = 0, 8374 w("AfterClose") 8375 }, 8376 updateSize: function(a) { 8377 if (b.isIOS) { 8378 var c = document.documentElement.clientWidth / window.innerWidth 8379 , d = window.innerHeight * c; 8380 b.wrap.css("height", d), 8381 b.wH = d 8382 } else 8383 b.wH = a || t.height(); 8384 b.fixedContentPos || b.wrap.css("height", b.wH), 8385 w("Resize") 8386 }, 8387 updateItemHTML: function() { 8388 var c = b.items[b.index]; 8389 b.contentContainer.detach(), 8390 b.content && b.content.detach(), 8391 c.parsed || (c = b.parseEl(b.index)); 8392 var d = c.type; 8393 if (w("BeforeChange", [b.currItem ? b.currItem.type : "", d]), 8394 b.currItem = c, 8395 !b.currTemplate[d]) { 8396 var f = !!b.st[d] && b.st[d].markup; 8397 w("FirstMarkupParse", f), 8398 b.currTemplate[d] = !f || a(f) 8399 } 8400 e && e !== c.type && b.container.removeClass("mfp-" + e + "-holder"); 8401 var g = b["get" + d.charAt(0).toUpperCase() + d.slice(1)](c, b.currTemplate[d]); 8402 b.appendContent(g, d), 8403 c.preloaded = !0, 8404 w(l, c), 8405 e = c.type, 8406 b.container.prepend(b.contentContainer), 8407 w("AfterChange") 8408 }, 8409 appendContent: function(a, c) { 8410 b.content = a, 8411 a ? b.st.showCloseBtn && b.st.closeBtnInside && !0 === b.currTemplate[c] ? b.content.find(".mfp-close").length || b.content.append(x()) : b.content = a : b.content = "", 8412 w("BeforeAppend"), 8413 b.container.addClass("mfp-" + c + "-holder"), 8414 b.contentContainer.append(b.content) 8415 }, 8416 parseEl: function(c) { 8417 var d, e = b.items[c]; 8418 if (e.tagName ? e = { 8419 el: a(e) 8420 } : (d = e.type, 8421 e = { 8422 data: e, 8423 src: e.src 8424 }), 8425 e.el) { 8426 for (var f = b.types, g = 0; g < f.length; g++) 8427 if (e.el.hasClass("mfp-" + f[g])) { 8428 d = f[g]; 8429 break 8430 } 8431 e.src = e.el.attr("data-mfp-src"), 8432 e.src || (e.src = e.el.attr("href")) 8433 } 8434 return e.type = d || b.st.type || "inline", 8435 e.index = c, 8436 e.parsed = !0, 8437 b.items[c] = e, 8438 w("ElementParse", e),
8439 b.items[c] 8440 }, 8441 addGroup: function(a, c) { 8442 var d = function(d) { 8443 d.mfpEl = this, 8444 b._openClick(d, a, c) 8445 }; 8446 c || (c = {}); 8447 var e = "click.magnificPopup"; 8448 c.mainEl = a, 8449 c.items ? (c.isObj = !0, 8450 a.off(e).on(e, d)) : (c.isObj = !1, 8451 c.delegate ? a.off(e).on(e, c.delegate, d) : (c.items = a, 8452 a.off(e).on(e, d))) 8453 }, 8454 _openClick: function(c, d, e) { 8455 if ((void 0 !== e.midClick ? e.midClick : a.magnificPopup.defaults.midClick) || !(2 === c.which || c.ctrlKey || c.metaKey || c.altKey || c.shiftKey)) { 8456 var f = void 0 !== e.disableOn ? e.disableOn : a.magnificPopup.defaults.disableOn; 8457 if (f) 8458 if (a.isFunction(f)) { 8459 if (!f.call(b)) 8460 return !0 8461 } else if (t.width() < f) 8462 return !0; 8463 c.type && (c.preventDefault(), 8464 b.isOpen && c.stopPropagation()), 8465 e.el = a(c.mfpEl), 8466 e.delegate && (e.items = d.find(e.delegate)), 8467 b.open(e) 8468 } 8469 }, 8470 updateStatus: function(a, d) { 8471 if (b.preloader) { 8472 c !== a && b.container.removeClass("mfp-s-" + c), 8473 d || "loading" !== a || (d = b.st.tLoading); 8474 var e = { 8475 status: a, 8476 text: d 8477 }; 8478 w("UpdateStatus", e), 8479 a = e.status, 8480 d = e.text, 8481 b.preloader.html(d), 8482 b.preloader.find("a").on("click", function(a) { 8483 a.stopImmediatePropagation() 8484 }), 8485 b.container.addClass("mfp-s-" + a), 8486 c = a 8487 } 8488 }, 8489 _checkIfClose: function(c) { 8490 if (!a(c).hasClass(q)) { 8491 var d = b.st.closeOnContentClick 8492 , e = b.st.closeOnBgClick; 8493 if (d && e) 8494 return !0; 8495 if (!b.content || a(c).hasClass("mfp-close") || b.preloader && c === b.preloader[0]) 8496 return !0; 8497 if (c === b.content[0] || a.contains(b.content[0], c)) { 8498 if (d) 8499 return !0 8500 } else if (e && a.contains(document, c)) 8501 return !0; 8502 return !1 8503 } 8504 }, 8505 _addClassToMFP: function(a) { 8506 b.bgOverlay.addClass(a), 8507 b.wrap.addClass(a) 8508 }, 8509 _removeClassFromMFP: function(a) { 8510 this.bgOverlay.removeClass(a), 8511 b.wrap.removeClass(a) 8512 }, 8513 _hasScrollBar: function(a) { 8514 return (b.isIE7 ? d.height() : document.body.scrollHeight) > (a || t.height()) 8515 }, 8516 _setFocus: function() { 8517 (b.st.focus ? b.content.find(b.st.focus).eq(0) : b.wrap).focus() 8518 }, 8519 _onFocusIn: function(c) { 8520 return c.target === b.wrap[0] || a.contains(b.wrap[0], c.target) ? void 0 : (b._setFocus(), 8521 !1) 8522 }, 8523 _parseMarkup: function(b, c, d) { 8524 var e; 8525 d.data && (c = a.extend(d.data, c)), 8526 w(j, [b, c, d]), 8527 a.each(c, function(c, d) { 8528 if (void 0 === d || !1 === d) 8529 return !0; 8530 if (e = c.split("_"), 8531 e.length > 1) { 8532 var f = b.find(n + "-" + e[0]); 8533 if (f.length > 0) { 8534 var g = e[1]; 8535 "replaceWith" === g ? f[0] !== d[0] && f.replaceWith(d) : "img" === g ? f.is("img") ? f.attr("src", d) : f.replaceWith(a("<img>").attr("src", d).attr("class", f.attr("class"))) : f.attr(e[1], d) 8536 } 8537 } else 8538 b.find(n + "-" + c).html(d) 8539 }) 8540 }, 8541 _getScrollbarSize: function() { 8542 if (void 0 === b.scrollbarSize) { 8543 var a = document.createElement("div"); 8544 a.style.cssText = "width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;", 8545 document.body.appendChild(a), 8546 b.scrollbarSize = a.offsetWidth - a.clientWidth, 8547 document.body.removeChild(a) 8548 } 8549 return b.scrollbarSize 8550 } 8551 }, 8552 a.magnificPopup = { 8553 instance: null, 8554 proto: r.prototype, 8555 modules: [], 8556 open: function(b, c) { 8557 return y(), 8558 b = b ? a.extend(!0, {}, b) : {}, 8559 b.isObj = !0, 8560 b.index = c || 0, 8561 this.instance.open(b) 8562 }, 8563 close: function() { 8564 return a.magnificPopup.instance && a.magnificPopup.instance.close() 8565 }, 8566 registerModule: function(b, c) { 8567 c.options && (a.magnificPopup.defaults[b] = c.options), 8568 a.extend(this.proto, c.proto), 8569 this.modules.push(b) 8570 }, 8571 defaults: { 8572 disableOn: 0, 8573 key: null, 8574 midClick: !1, 8575 mainClass: "", 8576 preloader: !0, 8577 focus: "", 8578 closeOnContentClick: !1, 8579 closeOnBgClick: !0, 8580 closeBtnInside: !0, 8581 showCloseBtn: !0, 8582 enableEscapeKey: !0, 8583 modal: !1, 8584 alignTop: !1, 8585 removalDelay: 0, 8586 prependTo: null, 8587 fixedContentPos: "auto", 8588 fixedBgPos: "auto", 8589 overflowY: "auto", 8590 closeMarkup: '<button title="%title%" type="button" class="mfp-close">×</button>', 8591 tClose: "Close (Esc)", 8592 tLoading: "Loading...", 8593 autoFocusLast: !0 8594 } 8595 }, 8596 a.fn.magnificPopup = function(c) { 8597 y(); 8598 var d = a(this); 8599 if ("string" == typeof c) 8600 if ("open" === c) { 8601 var e, f = s ? d.data("magnificPopup") : d[0].magnificPopup, g = parseInt(arguments[1], 10) || 0; 8602 f.items ? e = f.items[g] : (e = d, 8603 f.delegate && (e = e.find(f.delegate)), 8604 e = e.eq(g)), 8605 b._openClick({ 8606 mfpEl: e 8607 }, d, f) 8608 } else 8609 b.isOpen && b[c].apply(b, Array.prototype.slice.call(arguments, 1)); 8610 else 8611 c = a.extend(!0, {}, c), 8612 s ? d.data("magnificPopup", c) : d[0].magnificPopup = c, 8613 b.addGroup(d, c); 8614 return d 8615 } 8616 ; 8617 var A, B, C, D = "inline", E = function() { 8618 C && (B.after(C.addClass(A)).detach(), 8619 C = null) 8620 }; 8621 a.magnificPopup.registerModule(D, { 8622 options: { 8623 hiddenClass: "hide", 8624 markup: "", 8625 tNotFound: "Content not found" 8626 }, 8627 proto: { 8628 initInline: function() { 8629 b.types.push(D), 8630 u(h + "." + D, function() { 8631 E() 8632 }) 8633 }, 8634 getInline: function(c, d) { 8635 if (E(), 8636 c.src) { 8637 var e = b.st.inline 8638 , f = a(c.src); 8639 if (f.length) { 8640 var g = f[0].parentNode; 8641 g && g.tagName && (B || (A = e.hiddenClass, 8642 B = v(A), 8643 A = "mfp-" + A), 8644 C = f.after(B).detach().removeClass(A)), 8645 b.updateStatus("ready") 8646 } else 8647 b.updateStatus("error", e.tNotFound), 8648 f = a("<div>"); 8649 return c.inlineElement = f, 8650 f 8651 } 8652 return b.updateStatus("ready"), 8653 b._parseMarkup(d, {}, c), 8654 d 8655 } 8656 } 8657 }); 8658 var F, G = "ajax", H = function() { 8659 F && a(document.body).removeClass(F) 8660 }, I = function() { 8661 H(), 8662 b.req && b.req.abort() 8663 }; 8664 a.magnificPopup.registerModule(G, { 8665 options: { 8666 settings: null, 8667 cursor: "mfp-ajax-cur", 8668 tError: '<a href="%url%">The content</a> could not be loaded.' 8669 }, 8670 proto: { 8671 initAjax: function() { 8672 b.types.push(G), 8673 F = b.st.ajax.cursor, 8674 u(h + "." + G, I), 8675 u("BeforeChange." + G, I) 8676 }, 8677 getAjax: function(c) { 8678 F && a(document.body).addClass(F), 8679 b.updateStatus("loading"); 8680 var d = a.extend({ 8681 url: c.src, 8682 success: function(d, e, f) { 8683 var g = { 8684 data: d, 8685 xhr: f 8686 }; 8687 w("ParseAjax", g), 8688 b.appendContent(a(g.data), G), 8689 c.finished = !0, 8690 H(), 8691 b._setFocus(), 8692 setTimeout(function() { 8693 b.wrap.addClass(o) 8694 }, 16), 8695 b.updateStatus("ready"), 8696 w("AjaxContentAdded") 8697 }, 8698 error: function() { 8699 H(), 8700 c.finished = c.loadError = !0, 8701 b.updateStatus("error", b.st.ajax.tError.replace("%url%", c.src)) 8702 } 8703 }, b.st.ajax.settings); 8704 return b.req = a.ajax(d), 8705 "" 8706 } 8707 } 8708 }); 8709 var J, K = function(c) { 8710 if (c.data && void 0 !== c.data.title) 8711 return c.data.title;
8712 var d = b.st.image.titleSrc; 8713 if (d) { 8714 if (a.isFunction(d)) 8715 return d.call(b, c); 8716 if (c.el) 8717 return c.el.attr(d) || "" 8718 } 8719 return "" 8720 }; 8721 a.magnificPopup.registerModule("image", { 8722 options: { 8723 markup: '<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>', 8724 cursor: "mfp-zoom-out-cur", 8725 titleSrc: "title", 8726 verticalFit: !0, 8727 tError: '<a href="%url%">The image</a> could not be loaded.' 8728 }, 8729 proto: { 8730 initImage: function() { 8731 var c = b.st.image 8732 , d = ".image"; 8733 b.types.push("image"), 8734 u(k + d, function() { 8735 "image" === b.currItem.type && c.cursor && a(document.body).addClass(c.cursor) 8736 }), 8737 u(h + d, function() { 8738 c.cursor && a(document.body).removeClass(c.cursor), 8739 t.off("resize" + n) 8740 }), 8741 u("Resize" + d, b.resizeImage), 8742 b.isLowIE && u("AfterChange", b.resizeImage) 8743 }, 8744 resizeImage: function() { 8745 var a = b.currItem; 8746 if (a && a.img && b.st.image.verticalFit) { 8747 var c = 0; 8748 b.isLowIE && (c = parseInt(a.img.css("padding-top"), 10) + parseInt(a.img.css("padding-bottom"), 10)), 8749 a.img.css("max-height", b.wH - c) 8750 } 8751 }, 8752 _onImageHasSize: function(a) { 8753 a.img && (a.hasSize = !0, 8754 J && clearInterval(J), 8755 a.isCheckingImgSize = !1, 8756 w("ImageHasSize", a), 8757 a.imgHidden && (b.content && b.content.removeClass("mfp-loading"), 8758 a.imgHidden = !1)) 8759 }, 8760 findImageSize: function(a) { 8761 var c = 0 8762 , d = a.img[0] 8763 , e = function(f) { 8764 J && clearInterval(J), 8765 J = setInterval(function() { 8766 return d.naturalWidth > 0 ? void b._onImageHasSize(a) : (c > 200 && clearInterval(J), 8767 c++, 8768 void (3 === c ? e(10) : 40 === c ? e(50) : 100 === c && e(500))) 8769 }, f) 8770 }; 8771 e(1) 8772 }, 8773 getImage: function(c, d) { 8774 var e = 0 8775 , f = function() { 8776 c && (c.img[0].complete ? (c.img.off(".mfploader"), 8777 c === b.currItem && (b._onImageHasSize(c), 8778 b.updateStatus("ready")), 8779 c.hasSize = !0, 8780 c.loaded = !0, 8781 w("ImageLoadComplete")) : (e++, 8782 200 > e ? setTimeout(f, 100) : g())) 8783 } 8784 , g = function() { 8785 c && (c.img.off(".mfploader"), 8786 c === b.currItem && (b._onImageHasSize(c), 8787 b.updateStatus("error", h.tError.replace("%url%", c.src))), 8788 c.hasSize = !0, 8789 c.loaded = !0, 8790 c.loadError = !0) 8791 } 8792 , h = b.st.image 8793 , i = d.find(".mfp-img"); 8794 if (i.length) { 8795 var j = document.createElement("img"); 8796 j.className = "mfp-img", 8797 c.el && c.el.find("img").length && (j.alt = c.el.find("img").attr("alt")), 8798 c.img = a(j).on("load.mfploader", f).on("error.mfploader", g), 8799 j.src = c.src, 8800 i.is("img") && (c.img = c.img.clone()), 8801 j = c.img[0], 8802 j.naturalWidth > 0 ? c.hasSize = !0 : j.width || (c.hasSize = !1) 8803 } 8804 return b._parseMarkup(d, { 8805 title: K(c), 8806 img_replaceWith: c.img 8807 }, c), 8808 b.resizeImage(), 8809 c.hasSize ? (J && clearInterval(J), 8810 c.loadError ? (d.addClass("mfp-loading"), 8811 b.updateStatus("error", h.tError.replace("%url%", c.src))) : (d.removeClass("mfp-loading"), 8812 b.updateStatus("ready")), 8813 d) : (b.updateStatus("loading"), 8814 c.loading = !0, 8815 c.hasSize || (c.imgHidden = !0, 8816 d.addClass("mfp-loading"), 8817 b.findImageSize(c)), 8818 d) 8819 } 8820 } 8821 }); 8822 var L, M = function() { 8823 return void 0 === L && (L = void 0 !== document.createElement("p").style.MozTransform), 8824 L 8825 }; 8826 a.magnificPopup.registerModule("zoom", { 8827 options: { 8828 enabled: !1, 8829 easing: "ease-in-out", 8830 duration: 300, 8831 opener: function(a) { 8832 return a.is("img") ? a : a.find("img") 8833 } 8834 }, 8835 proto: { 8836 initZoom: function() { 8837 var a, c = b.st.zoom, d = ".zoom"; 8838 if (c.enabled && b.supportsTransition) { 8839 var e, f, g = c.duration, j = function(a) { 8840 var b = a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image") 8841 , d = "all " + c.duration / 1e3 + "s " + c.easing 8842 , e = { 8843 position: "fixed", 8844 zIndex: 9999, 8845 left: 0, 8846 top: 0, 8847 "-webkit-backface-visibility": "hidden" 8848 } 8849 , f = "transition"; 8850 return e["-webkit-" + f] = e["-moz-" + f] = e["-o-" + f] = e[f] = d, 8851 b.css(e), 8852 b 8853 }, k = function() { 8854 b.content.css("visibility", "visible") 8855 }; 8856 u("BuildControls" + d, function() { 8857 if (b._allowZoom()) { 8858 if (clearTimeout(e), 8859 b.content.css("visibility", "hidden"), 8860 !(a = b._getItemToZoom())) 8861 return void k(); 8862 f = j(a), 8863 f.css(b._getOffset()), 8864 b.wrap.append(f), 8865 e = setTimeout(function() { 8866 f.css(b._getOffset(!0)), 8867 e = setTimeout(function() { 8868 k(), 8869 setTimeout(function() { 8870 f.remove(), 8871 a = f = null, 8872 w("ZoomAnimationEnded") 8873 }, 16) 8874 }, g) 8875 }, 16) 8876 } 8877 }), 8878 u(i + d, function() { 8879 if (b._allowZoom()) { 8880 if (clearTimeout(e), 8881 b.st.removalDelay = g, 8882 !a) { 8883 if (!(a = b._getItemToZoom())) 8884 return; 8885 f = j(a) 8886 } 8887 f.css(b._getOffset(!0)), 8888 b.wrap.append(f), 8889 b.content.css("visibility", "hidden"), 8890 setTimeout(function() { 8891 f.css(b._getOffset()) 8892 }, 16) 8893 } 8894 }), 8895 u(h + d, function() { 8896 b._allowZoom() && (k(), 8897 f && f.remove(), 8898 a = null) 8899 }) 8900 } 8901 }, 8902 _allowZoom: function() { 8903 return "image" === b.currItem.type 8904 }, 8905 _getItemToZoom: function() { 8906 return !!b.currItem.hasSize && b.currItem.img 8907 }, 8908 _getOffset: function(c) { 8909 var d; 8910 d = c ? b.currItem.img : b.st.zoom.opener(b.currItem.el || b.currItem); 8911 var e = d.offset() 8912 , f = parseInt(d.css("padding-top"), 10) 8913 , g = parseInt(d.css("padding-bottom"), 10); 8914 e.top -= a(window).scrollTop() - f; 8915 var h = { 8916 width: d.width(), 8917 height: (s ? d.innerHeight() : d[0].offsetHeight) - g - f 8918 }; 8919 return M() ? h["-moz-transform"] = h.transform = "translate(" + e.left + "px," + e.top + "px)" : (h.left = e.left, 8920 h.top = e.top), 8921 h 8922 } 8923 } 8924 }); 8925 var N = "iframe" 8926 , O = "//about:blank" 8927 , P = function(a) { 8928 if (b.currTemplate[N]) { 8929 var c = b.currTemplate[N].find("iframe"); 8930 c.length && (a || (c[0].src = O), 8931 b.isIE8 && c.css("display", a ? "block" : "none")) 8932 } 8933 }; 8934 a.magnificPopup.registerModule(N, { 8935 options: { 8936 markup: '<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>', 8937 srcAction: "iframe_src", 8938 patterns: { 8939 youtube: { 8940 index: "youtube.com", 8941 id: "v=", 8942 src: "//www.youtube.com/embed/%id%?autoplay=1&rel=0" 8943 }, 8944 vimeo: { 8945 index: "vimeo.com/", 8946 id: "/", 8947 src: "//player.vimeo.com/video/%id%?autoplay=1" 8948 }, 8949 gmaps: { 8950 index: "//maps.google.", 8951 src: "%id%&output=embed" 8952 } 8953 } 8954 }, 8955 proto: { 8956 initIframe: function() { 8957 b.types.push(N), 8958 u("BeforeChange", function(a, b, c) { 8959 b !== c && (b === N ? P() : c === N && P(!0)) 8960 }), 8961 u(h + "." + N, function() { 8962 P() 8963 }) 8964 }, 8965 getIframe: function(c, d) { 8966 var e = c.src 8967 , f = b.st.iframe; 8968 a.each(f.patterns, function() { 8969 return e.indexOf(this.index) > -1 ? (this.id && (e = "string" == typeof this.id ? e.substr(e.lastIndexOf(this.id
8969) + this.id.length, e.length) : this.id.call(this, e)), 8970 e = this.src.replace("%id%", e), 8971 !1) : void 0 8972 }); 8973 var g = {}; 8974 return f.srcAction && (g[f.srcAction] = e), 8975 b._parseMarkup(d, g, c), 8976 b.updateStatus("ready"), 8977 d 8978 } 8979 } 8980 }); 8981 var Q = function(a) { 8982 var c = b.items.length; 8983 return a > c - 1 ? a - c : 0 > a ? c + a : a 8984 } 8985 , R = function(a, b, c) { 8986 return a.replace(/%curr%/gi, b + 1).replace(/%total%/gi, c) 8987 }; 8988 a.magnificPopup.registerModule("gallery", { 8989 options: { 8990 enabled: !1, 8991 arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>', 8992 preload: [0, 2], 8993 navigateByImgClick: !0, 8994 arrows: !0, 8995 tPrev: "Previous (Left arrow key)", 8996 tNext: "Next (Right arrow key)", 8997 tCounter: "%curr% of %total%" 8998 }, 8999 proto: { 9000 initGallery: function() { 9001 var c = b.st.gallery 9002 , e = ".mfp-gallery"; 9003 return b.direction = !0, 9004 !(!c || !c.enabled) && (f += " mfp-gallery", 9005 u(k + e, function() { 9006 c.navigateByImgClick && b.wrap.on("click" + e, ".mfp-img", function() { 9007 return b.items.length > 1 ? (b.next(), 9008 !1) : void 0 9009 }), 9010 d.on("keydown" + e, function(a) { 9011 37 === a.keyCode ? b.prev() : 39 === a.keyCode && b.next() 9012 }) 9013 }), 9014 u("UpdateStatus" + e, function(a, c) { 9015 c.text && (c.text = R(c.text, b.currItem.index, b.items.length)) 9016 }), 9017 u(j + e, function(a, d, e, f) { 9018 var g = b.items.length; 9019 e.counter = g > 1 ? R(c.tCounter, f.index, g) : "" 9020 }), 9021 u("BuildControls" + e, function() { 9022 if (b.items.length > 1 && c.arrows && !b.arrowLeft) { 9023 var d = c.arrowMarkup 9024 , e = b.arrowLeft = a(d.replace(/%title%/gi, c.tPrev).replace(/%dir%/gi, "left")).addClass(q) 9025 , f = b.arrowRight = a(d.replace(/%title%/gi, c.tNext).replace(/%dir%/gi, "right")).addClass(q); 9026 e.click(function() { 9027 b.prev() 9028 }), 9029 f.click(function() { 9030 b.next() 9031 }), 9032 b.container.append(e.add(f)) 9033 } 9034 }), 9035 u(l + e, function() { 9036 b._preloadTimeout && clearTimeout(b._preloadTimeout), 9037 b._preloadTimeout = setTimeout(function() { 9038 b.preloadNearbyImages(), 9039 b._preloadTimeout = null 9040 }, 16) 9041 }), 9042 void u(h + e, function() { 9043 d.off(e), 9044 b.wrap.off("click" + e), 9045 b.arrowRight = b.arrowLeft = null 9046 })) 9047 }, 9048 next: function() { 9049 b.direction = !0, 9050 b.index = Q(b.index + 1), 9051 b.updateItemHTML() 9052 }, 9053 prev: function() { 9054 b.direction = !1, 9055 b.index = Q(b.index - 1), 9056 b.updateItemHTML() 9057 }, 9058 goTo: function(a) { 9059 b.direction = a >= b.index, 9060 b.index = a, 9061 b.updateItemHTML() 9062 }, 9063 preloadNearbyImages: function() { 9064 var a, c = b.st.gallery.preload, d = Math.min(c[0], b.items.length), e = Math.min(c[1], b.items.length); 9065 for (a = 1; a <= (b.direction ? e : d); a++) 9066 b._preloadItem(b.index + a); 9067 for (a = 1; a <= (b.direction ? d : e); a++) 9068 b._preloadItem(b.index - a) 9069 }, 9070 _preloadItem: function(c) { 9071 if (c = Q(c), 9072 !b.items[c].preloaded) { 9073 var d = b.items[c]; 9074 d.parsed || (d = b.parseEl(c)), 9075 w("LazyLoad", d),
9076 "image" === d.type && (d.img = a('<img class="mfp-img" />').on("load.mfploader", function() { 9077 d.hasSize = !0 9078 }).on("error.mfploader", function() { 9079 d.hasSize = !0, 9080 d.loadError = !0, 9081 w("LazyLoadError", d) 9082 }).attr("src", d.src)), 9083 d.preloaded = !0 9084 } 9085 } 9086 } 9087 }); 9088 var S = "retina"; 9089 a.magnificPopup.registerModule(S, { 9090 options: { 9091 replaceSrc: function(a) { 9092 return a.src.replace(/\.\w+$/, function(a) { 9093 return "@2x" + a 9094 }) 9095 }, 9096 ratio: 1 9097 }, 9098 proto: { 9099 initRetina: function() { 9100 if (window.devicePixelRatio > 1) { 9101 var a = b.st.retina 9102 , c = a.ratio; 9103 (c = isNaN(c) ? c() : c) > 1 && (u("ImageHasSize." + S, function(a, b) { 9104 b.img.css({ 9105 "max-width": b.img[0].naturalWidth / c, 9106 width: "100%" 9107 }) 9108 }), 9109 u("ElementParse." + S, function(b, d) { 9110 d.src = a.replaceSrc(d, c) 9111 })) 9112 } 9113 } 9114 } 9115 }), 9116 y() 9117}), 9118function(a, b) { 9119 "function" == typeof define && define.amd ? define(b) : "object" == typeof exports ? module.exports = b() : a.PhotoSwipe = b() 9120}(this, function() { 9121 "use strict"; 9122 return function(a, b, c, d) { 9123 var e = { 9124 features: null, 9125 bind: function(a, b, c, d) { 9126 var e = (d ? "remove" : "add") + "EventListener"; 9127 b = b.split(" "); 9128 for (var f = 0; f < b.length; f++) 9129 b[f] && a[e](b[f], c, !1) 9130 }, 9131 isArray: function(a) { 9132 return a instanceof Array 9133 }, 9134 createEl: function(a, b) { 9135 var c = document.createElement(b || "div"); 9136 return a && (c.className = a), 9137 c 9138 }, 9139 getScrollY: function() { 9140 var a = window.pageYOffset; 9141 return void 0 !== a ? a : document.documentElement.scrollTop 9142 }, 9143 unbind: function(a, b, c) { 9144 e.bind(a, b, c, !0) 9145 }, 9146 removeClass: function(a, b) { 9147 var c = new RegExp("(\\s|^)" + b + "(\\s|$)"); 9148 a.className = a.className.replace(c, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "") 9149 }, 9150 addClass: function(a, b) { 9151 e.hasClass(a, b) || (a.className += (a.className ? " " : "") + b) 9152 }, 9153 hasClass: function(a, b) { 9154 return a.className && new RegExp("(^|\\s)" + b + "(\\s|$)").test(a.className) 9155 }, 9156 getChildByClass: function(a, b) { 9157 for (var c = a.firstChild; c; ) { 9158 if (e.hasClass(c, b)) 9159 return c; 9160 c = c.nextSibling 9161 } 9162 }, 9163 arraySearch: function(a, b, c) { 9164 for (var d = a.length; d--; ) 9165 if (a[d][c] === b) 9166 return d; 9167 return -1 9168 }, 9169 extend: function(a, b, c) { 9170 for (var d in b) 9171 if (b.hasOwnProperty(d)) { 9172 if (c && a.hasOwnProperty(d)) 9173 continue; 9174 a[d] = b[d] 9175 } 9176 }, 9177 easing: { 9178 sine: { 9179 out: function(a) { 9180 return Math.sin(a * (Math.PI / 2)) 9181 }, 9182 inOut: function(a) { 9183 return -(Math.cos(Math.PI * a) - 1) / 2 9184 } 9185 }, 9186 cubic: { 9187 out: function(a) { 9188 return --a * a * a + 1 9189 } 9190 } 9191 }, 9192 detectFeatures: function() { 9193 if (e.features) 9194 return e.features; 9195 var a = e.createEl() 9196 , b = a.style 9197 , c = "" 9198 , d = {}; 9199 if (d.oldIE = document.all && !document.addEventListener, 9200 d.touch = "ontouchstart"in window, 9201 window.requestAnimationFrame && (d.raf = window.requestAnimationFrame, 9202 d.caf = window.cancelAnimationFrame), 9203 d.pointerEvent = !!window.PointerEvent || navigator.msPointerEnabled, 9204 !d.pointerEvent) { 9205 var f = navigator.userAgent; 9206 if (/iP(hone|od)/.test(navigator.platform)) { 9207 var g = navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/); 9208 g && g.length > 0 && (g = parseInt(g[1], 10)) >= 1 && g < 8 && (d.isOldIOSPhone = !0) 9209 } 9210 var h = f.match(/Android\s([0-9\.]*)/) 9211 , i = h ? h[1] : 0; 9212 i = parseFloat(i), 9213 i >= 1 && (i < 4.4 && (d.isOldAndroid = !0), 9214 d.androidVersion = i),
9215 d.isMobileOpera = /opera mini|opera mobi/i.test(f) 9216 } 9217 for (var j, k, l = ["transform", "perspective", "animationName"], m = ["", "webkit", "Moz", "ms", "O"], n = 0; n < 4; n++) { 9218 c = m[n]; 9219 for (var o = 0; o < 3; o++) 9220 j = l[o], 9221 k = c + (c ? j.charAt(0).toUpperCase() + j.slice(1) : j), 9222 !d[j] && k in b && (d[j] = k); 9223 c && !d.raf && (c = c.toLowerCase(), 9224 d.raf = window[c + "RequestAnimationFrame"], 9225 d.raf && (d.caf = window[c + "CancelAnimationFrame"] || window[c + "CancelRequestAnimationFrame"])) 9226 } 9227 if (!d.raf) { 9228 var p = 0; 9229 d.raf = function(a) { 9230 var b = (new Date).getTime() 9231 , c = Math.max(0, 16 - (b - p)) 9232 , d = window.setTimeout(function() { 9233 a(b + c) 9234 }, c); 9235 return p = b + c, 9236 d 9237 } 9238 , 9239 d.caf = function(a) { 9240 clearTimeout(a) 9241 } 9242 } 9243 return d.svg = !!document.createElementNS && !!document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect, 9244 e.features = d, 9245 d 9246 } 9247 }; 9248 e.detectFeatures(), 9249 e.features.oldIE && (e.bind = function(a, b, c, d) { 9250 b = b.split(" "); 9251 for (var e, f = (d ? "detach" : "attach") + "Event", g = function() { 9252 c.handleEvent.call(c) 9253 }, h = 0; h < b.length; h++) 9254 if (e = b[h]) 9255 if ("object" == typeof c && c.handleEvent) { 9256 if (d) { 9257 if (!c["oldIE" + e]) 9258 return !1 9259 } else 9260 c["oldIE" + e] = g; 9261 a[f]("on" + e, c["oldIE" + e]) 9262 } else 9263 a[f]("on" + e, c) 9264 } 9265 ); 9266 var f = this 9267 , g = 25 9268 , h = 3 9269 , i = { 9270 allowPanToNext: !0, 9271 spacing: .12, 9272 bgOpacity: 1, 9273 mouseUsed: !1, 9274 loop: !0, 9275 pinchToClose: !0, 9276 closeOnScroll: !0, 9277 closeOnVerticalDrag: !0, 9278 verticalDragRange: .75, 9279 hideAnimationDuration: 333, 9280 showAnimationDuration: 333, 9281 showHideOpacity: !1, 9282 focus: !0, 9283 escKey: !0, 9284 arrowKeys: !0, 9285 mainScrollEndFriction: .35, 9286 panEndFriction: .35, 9287 isClickableElement: function(a) { 9288 return "A" === a.tagName 9289 }, 9290 getDoubleTapZoom: function(a, b) { 9291 return a ? 1 : b.initialZoomLevel < .7 ? 1 : 1.33 9292 }, 9293 maxSpreadZoom: 1.33, 9294 modal: !0, 9295 scaleMode: "fit" 9296 }; 9297 e.extend(i, d); 9298 var j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, $, _, aa, ba, ca, da, ea, fa, ga, ha, ia, ja, ka, la, ma = function() { 9299 return { 9300 x: 0, 9301 y: 0 9302 } 9303 }, na = ma(), oa = ma(), pa = ma(), qa = {}, ra = 0, sa = {}, ta = ma(), ua = 0, va = !0, wa = [], xa = {}, ya = !1, za = function(a, b) { 9304 e.extend(f, b.publicMethods), 9305 wa.push(a) 9306 }, Aa = function(a) { 9307 var b = ac(); 9308 return a > b - 1 ? a - b : a < 0 ? b + a : a 9309 }, Ba = {}, Ca = function(a, b) { 9310 return Ba[a] || (Ba[a] = []), 9311 Ba[a].push(b) 9312 }, Da = function(a) { 9313 var b = Ba[a]; 9314 if (b) { 9315 var c = Array.prototype.slice.call(arguments); 9316 c.shift(); 9317 for (var d = 0; d < b.length; d++) 9318 b[d].apply(f, c) 9319 } 9320 }, Ea = function() { 9321 return (new Date).getTime() 9322 }, Fa = function(a) { 9323 ja = a, 9324 f.bg.style.opacity = a * i.bgOpacity 9325 }, Ga = function(a, b, c, d, e) { 9326 (!ya || e && e !== f.currItem) && (d /= e ? e.fitRatio : f.currItem.fitRatio), 9327 a[E] = u + b + "px, " + c + "px" + v + " scale(" + d + ")" 9328 }, Ha = function(a) { 9329 ea && (a && (s > f.currItem.fitRatio ? ya || (mc(f.currItem, !1, !0), 9330 ya = !0) : ya && (mc(f.currItem), 9331 ya = !1)), 9332 Ga(ea, pa.x, pa.y, s)) 9333 }, Ia = function(a) { 9334 a.container && Ga(a.container.style, a.initialPosition.x, a.initialPosition.y, a.initialZoomLevel, a) 9335 }, Ja = function(a, b) { 9336 b[E] = u + a + "px, 0px" + v 9337 }, Ka = function(a, b) { 9338 if (!i.loop && b) { 9339 var c = m + (ta.x * ra - a) / ta.x 9340 , d = Math.round(a - tb.x); 9341 (c < 0 && d > 0 || c >= ac() - 1 && d < 0) && (a = tb.x + d * i.mainScrollEndFriction) 9342 } 9343 tb.x = a, 9344 Ja(a, n) 9345 }, La = function(a, b) { 9346 var c = ub[a] - sa[a]; 9347 return oa[a] + na[a] + c - c * (b / t) 9348 }, Ma = function(a, b) { 9349 a.x = b.x, 9350 a.y = b.y, 9351 b.id && (a.id = b.id) 9352 }, Na = function(a) { 9353 a.x = Math.round(a.x), 9354 a.y = Math.round(a.y) 9355 }, Oa = null, Pa = function() { 9356 Oa && (e.unbind(document, "mousemove", Pa), 9357 e.addClass(a, "pswp--has_mouse"), 9358 i.mouseUsed = !0, 9359 Da("mouseUsed")), 9360 Oa = setTimeout(function() { 9361 Oa = null 9362 }, 100) 9363 }, Qa = function() { 9364 e.bind(document, "keydown", f), 9365 N.transform && e.bind(f.scrollWrap, "click", f), 9366 i.mouseUsed || e.bind(document, "mousemove", Pa), 9367 e.bind(window, "resize scroll orientationchange", f), 9368 Da("bindEvents") 9369 }, Ra = function() { 9370 e.unbind(window, "resize scroll orientationchange", f), 9371 e.unbind(window, "scroll", r.scroll), 9372 e.unbind(document, "keydown", f), 9373 e.unbind(document, "mousemove", Pa), 9374 N.transform && e.unbind(f.scrollWrap, "click", f), 9375 V && e.unbind(window, p, f), 9376 clearTimeout(O), 9377 Da("unbindEvents") 9378 }, Sa = function(a, b) { 9379 var c = ic(f.currItem, qa, a); 9380 return b && (da = c), 9381 c 9382 }, Ta = function(a) { 9383 return a || (a = f.currItem), 9384 a.initialZoomLevel 9385 }, Ua = function(a) { 9386 return a || (a = f.currItem), 9387 a.w > 0 ? i.maxSpreadZoom : 1 9388 }, Va = function(a, b, c, d) { 9389 return d === f.currItem.initialZoomLevel ? (c[a] = f.currItem.initialPosition[a], 9390 !0) : (c[a] = La(a, d), 9391 c[a] > b.min[a] ? (c[a] = b.min[a], 9392 !0) : c[a] < b.max[a] && (c[a] = b.max[a], 9393 !0)) 9394 }, Wa = function() { 9395 if (E) { 9396 var b = N.perspective && !G; 9397 return u = "translate" + (b ? "3d(" : "("), 9398 void (v = N.perspective ? ", 0px)" : ")") 9399 } 9400 E = "left", 9401 e.addClass(a, "pswp--ie"), 9402 Ja = function(a, b) { 9403 b.left = a + "px" 9404 } 9405 , 9406 Ia = function(a) { 9407 var b = a.fitRatio > 1 ? 1 : a.fitRatio 9408 , c = a.container.style 9409 , d = b * a.w 9410 , e = b * a.h; 9411 c.width = d + "px", 9412 c.height = e + "px", 9413 c.left = a.initialPosition.x + "px", 9414 c.top = a.initialPosition.y + "px" 9415 } 9416 , 9417 Ha = function() { 9418 if (ea) { 9419 var a = ea 9420 , b = f.currItem 9421 , c = b.fitRatio > 1 ? 1 : b.fitRatio 9422 , d = c * b.w 9423 , e = c * b.h; 9424 a.width = d + "px", 9425 a.height = e + "px", 9426 a.left = pa.x + "px", 9427 a.top = pa.y + "px" 9428 } 9429 } 9430 }, Xa = function(a) { 9431 var b = ""; 9432 i.escKey && 27 === a.keyCode ? b = "close" : i.arrowKeys && (37 === a.keyCode ? b = "prev" : 39 === a.keyCode && (b = "next")), 9433 b && (a.ctrlKey || a.altKey || a.shiftKey || a.metaKey || (a.preventDefault ? a.preventDefault() : a.returnValue = !1, 9434 f[b]())) 9435 }, Ya = function(a) { 9436 a && (Y || X || fa || T) && (a.preventDefault(), 9437 a.stopPropagation()) 9438 }, Za = function() { 9439 f.setScrollOffset(0, e.getScrollY()) 9440 }, $a = {}, _a = 0, ab = function(a) { 9441 $a[a] && ($a[a].raf && I($a[a].raf), 9442 _a--, 9443 delete $a[a]) 9444 }, bb = function(a) { 9445 $a[a] && ab(a), 9446 $a[a] || (_a++, 9447 $a[a] = {}) 9448 }, cb = function() { 9449 for (var a in $a) 9450 $a.hasOwnProperty(a) && ab(a) 9451 }, db = function(a, b, c, d, e, f, g) { 9452 var h, i = Ea(); 9453 bb(a); 9454 var j = function() {
9455 if ($a[a]) { 9456 if ((h = Ea() - i) >= d) 9457 return ab(a), 9458 f(c), 9459 void (g && g()); 9460 f((c - b) * e(h / d) + b), 9461 $a[a].raf = H(j) 9462 } 9463 }; 9464 j() 9465 }, eb = { 9466 shout: Da, 9467 listen: Ca, 9468 viewportSize: qa, 9469 options: i, 9470 isMainScrollAnimating: function() { 9471 return fa 9472 }, 9473 getZoomLevel: function() { 9474 return s 9475 }, 9476 getCurrentIndex: function() { 9477 return m 9478 }, 9479 isDragging: function() { 9480 return V 9481 }, 9482 isZooming: function() { 9483 return aa 9484 }, 9485 setScrollOffset: function(a, b) { 9486 sa.x = a, 9487 M = sa.y = b, 9488 Da("updateScrollOffset", sa) 9489 }, 9490 applyZoomPan: function(a, b, c, d) { 9491 pa.x = b, 9492 pa.y = c, 9493 s = a, 9494 Ha(d) 9495 }, 9496 init: function() { 9497 if (!j && !k) { 9498 var c; 9499 f.framework = e, 9500 f.template = a, 9501 f.bg = e.getChildByClass(a, "pswp__bg"), 9502 J = a.className, 9503 j = !0, 9504 N = e.detectFeatures(), 9505 H = N.raf, 9506 I = N.caf, 9507 E = N.transform, 9508 L = N.oldIE, 9509 f.scrollWrap = e.getChildByClass(a, "pswp__scroll-wrap"), 9510 f.container = e.getChildByClass(f.scrollWrap, "pswp__container"), 9511 n = f.container.style, 9512 f.itemHolders = y = [{ 9513 el: f.container.children[0], 9514 wrap: 0, 9515 index: -1 9516 }, { 9517 el: f.container.children[1], 9518 wrap: 0, 9519 index: -1 9520 }, { 9521 el: f.container.children[2], 9522 wrap: 0, 9523 index: -1 9524 }], 9525 y[0].el.style.display = y[2].el.style.display = "none", 9526 Wa(), 9527 r = { 9528 resize: f.updateSize, 9529 orientationchange: function() { 9530 clearTimeout(O), 9531 O = setTimeout(function() { 9532 qa.x !== f.scrollWrap.clientWidth && f.updateSize() 9533 }, 500) 9534 }, 9535 scroll: Za, 9536 keydown: Xa, 9537 click: Ya 9538 }; 9539 var d = N.isOldIOSPhone || N.isOldAndroid || N.isMobileOpera; 9540 for (N.animationName && N.transform && !d || (i.showAnimationDuration = i.hideAnimationDuration = 0), 9541 c = 0; c < wa.length; c++) 9542 f["init" + wa[c]](); 9543 if (b) { 9544 (f.ui = new b(f,e)).init() 9545 } 9546 Da("firstUpdate"), 9547 m = m || i.index || 0, 9548 (isNaN(m) || m < 0 || m >= ac()) && (m = 0), 9549 f.currItem = _b(m), 9550 (N.isOldIOSPhone || N.isOldAndroid) && (va = !1), 9551 a.setAttribute("aria-hidden", "false"), 9552 i.modal && (va ? a.style.position = "fixed" : (a.style.position = "absolute", 9553 a.style.top = e.getScrollY() + "px")), 9554 void 0 === M && (Da("initialLayout"), 9555 M = K = e.getScrollY()); 9556 var g = "pswp--open "; 9557 for (i.mainClass && (g += i.mainClass + " "), 9558 i.showHideOpacity && (g += "pswp--animate_opacity "),
9559 g += G ? "pswp--touch" : "pswp--notouch", 9560 g += N.animationName ? " pswp--css_animation" : "", 9561 g += N.svg ? " pswp--svg" : "", 9562 e.addClass(a, g), 9563 f.updateSize(), 9564 o = -1, 9565 ua = null, 9566 c = 0; c < h; c++) 9567 Ja((c + o) * ta.x, y[c].el.style); 9568 L || e.bind(f.scrollWrap, q, f), 9569 Ca("initialZoomInEnd", function() { 9570 f.setContent(y[0], m - 1), 9571 f.setContent(y[2], m + 1), 9572 y[0].el.style.display = y[2].el.style.display = "block", 9573 i.focus && a.focus(), 9574 Qa() 9575 }), 9576 f.setContent(y[1], m), 9577 f.updateCurrItem(), 9578 Da("afterInit"), 9579 va || (w = setInterval(function() { 9580 _a || V || aa || s !== f.currItem.initialZoomLevel || f.updateSize() 9581 }, 1e3)), 9582 e.addClass(a, "pswp--visible") 9583 } 9584 }, 9585 close: function() { 9586 j && (j = !1, 9587 k = !0, 9588 Da("close"), 9589 Ra(), 9590 cc(f.currItem, null, !0, f.destroy)) 9591 }, 9592 destroy: function() { 9593 Da("destroy"), 9594 Xb && clearTimeout(Xb), 9595 a.setAttribute("aria-hidden", "true"), 9596 a.className = J, 9597 w && clearInterval(w), 9598 e.unbind(f.scrollWrap, q, f), 9599 e.unbind(window, "scroll", f), 9600 zb(), 9601 cb(), 9602 Ba = null 9603 }, 9604 panTo: function(a, b, c) { 9605 c || (a > da.min.x ? a = da.min.x : a < da.max.x && (a = da.max.x), 9606 b > da.min.y ? b = da.min.y : b < da.max.y && (b = da.max.y)), 9607 pa.x = a, 9608 pa.y = b, 9609 Ha() 9610 }, 9611 handleEvent: function(a) { 9612 a = a || window.event, 9613 r[a.type] && r[a.type](a) 9614 }, 9615 goTo: function(a) { 9616 a = Aa(a); 9617 var b = a - m; 9618 ua = b, 9619 m = a, 9620 f.currItem = _b(m), 9621 ra -= b, 9622 Ka(ta.x * ra), 9623 cb(), 9624 fa = !1, 9625 f.updateCurrItem() 9626 }, 9627 next: function() { 9628 f.goTo(m + 1) 9629 }, 9630 prev: function() { 9631 f.goTo(m - 1) 9632 }, 9633 updateCurrZoomItem: function(a) { 9634 if (a && Da("beforeChange", 0), 9635 y[1].el.children.length) { 9636 var b = y[1].el.children[0]; 9637 ea = e.hasClass(b, "pswp__zoom-wrap") ? b.style : null 9638 } else 9639 ea = null; 9640 da = f.currItem.bounds, 9641 t = s = f.currItem.initialZoomLevel, 9642 pa.x = da.center.x, 9643 pa.y = da.center.y, 9644 a && Da("afterChange") 9645 }, 9646 invalidateCurrItems: function() { 9647 x = !0; 9648 for (var a = 0; a < h; a++) 9649 y[a].item && (y[a].item.needsUpdate = !0) 9650 }, 9651 updateCurrItem: function(a) { 9652 if (0 !== ua) { 9653 var b, c = Math.abs(ua); 9654 if (!(a && c < 2)) { 9655 f.currItem = _b(m), 9656 ya = !1, 9657 Da("beforeChange", ua), 9658 c >= h && (o += ua + (ua > 0 ? -h : h), 9659 c = h); 9660 for (var d = 0; d < c; d++) 9661 ua > 0 ? (b = y.shift(), 9662 y[h - 1] = b, 9663 o++, 9664 Ja((o + 2) * ta.x, b.el.style), 9665 f.setContent(b, m - c + d + 1 + 1)) : (b = y.pop(), 9666 y.unshift(b), 9667 o--, 9668 Ja(o * ta.x, b.el.style), 9669 f.setContent(b, m + c - d - 1 - 1)); 9670 if (ea && 1 === Math.abs(ua)) { 9671 var e = _b(z); 9672 e.initialZoomLevel !== s && (ic(e, qa), 9673 mc(e), 9674 Ia(e)) 9675 } 9676 ua = 0, 9677 f.updateCurrZoomItem(), 9678 z = m, 9679 Da("afterChange") 9680 } 9681 } 9682 }, 9683 updateSize: function(b) { 9684 if (!va && i.modal) { 9685 var c = e.getScrollY(); 9686 if (M !== c && (a.style.top = c + "px", 9687 M = c), 9688 !b && xa.x === window.innerWidth && xa.y === window.innerHeight) 9689 return; 9690 xa.x = window.innerWidth, 9691 xa.y = window.innerHeight, 9692 a.style.height = xa.y + "px" 9693 } 9694 if (qa.x = f.scrollWrap.clientWidth, 9695 qa.y = f.scrollWrap.clientHeight, 9696 Za(), 9697 ta.x = qa.x + Math.round(qa.x * i.spacing), 9698 ta.y = qa.y, 9699 Ka(ta.x * ra), 9700 Da("beforeResize"), 9701 void 0 !== o) { 9702 for (var d, g, j, k = 0; k < h; k++) 9703 d = y[k], 9704 Ja((k + o) * ta.x, d.el.style), 9705 j = m + k - 1, 9706 i.loop && ac() > 2 && (j = Aa(j)), 9707 g = _b(j), 9708 g && (x || g.needsUpdate || !g.bounds) ? (f.cleanSlide(g), 9709 f.setContent(d, j), 9710 1 === k && (f.currItem = g, 9711 f.updateCurrZoomItem(!0)), 9712 g.needsUpdate = !1) : -1 === d.index && j >= 0 && f.setContent(d, j), 9713 g && g.container && (ic(g, qa), 9714 mc(g), 9715 Ia(g)); 9716 x = !1 9717 } 9718 t = s = f.currItem.initialZoomLevel, 9719 da = f.currItem.bounds, 9720 da && (pa.x = da.center.x, 9721 pa.y = da.center.y, 9722 Ha(!0)), 9723 Da("resize") 9724 }, 9725 zoomTo: function(a, b, c, d, f) { 9726 b && (t = s, 9727 ub.x = Math.abs(b.x) - pa.x, 9728 ub.y = Math.abs(b.y) - pa.y, 9729 Ma(oa, pa)); 9730 var g = Sa(a, !1) 9731 , h = {}; 9732 Va("x", g, h, a), 9733 Va("y", g, h, a); 9734 var i = s 9735 , j = { 9736 x: pa.x, 9737 y: pa.y 9738 }; 9739 Na(h); 9740 var k = function(b) { 9741 1 === b ? (s = a, 9742 pa.x = h.x,
9743 pa.y = h.y) : (s = (a - i) * b + i, 9744 pa.x = (h.x - j.x) * b + j.x, 9745 pa.y = (h.y - j.y) * b + j.y), 9746 f && f(b), 9747 Ha(1 === b) 9748 }; 9749 c ? db("customZoomTo", 0, 1, c, d || e.easing.sine.inOut, k) : k(1) 9750 } 9751 }, fb = 30, gb = 10, hb = {}, ib = {}, jb = {}, kb = {}, lb = {}, mb = [], nb = {}, ob = [], pb = {}, qb = 0, rb = ma(), sb = 0, tb = ma(), ub = ma(), vb = ma(), wb = function(a, b) { 9752 return a.x === b.x && a.y === b.y 9753 }, xb = function(a, b) { 9754 return Math.abs(a.x - b.x) < g && Math.abs(a.y - b.y) < g 9755 }, yb = function(a, b) { 9756 return pb.x = Math.abs(a.x - b.x), 9757 pb.y = Math.abs(a.y - b.y), 9758 Math.sqrt(pb.x * pb.x + pb.y * pb.y) 9759 }, zb = function() { 9760 Z && (I(Z), 9761 Z = null) 9762 }, Ab = function() { 9763 V && (Z = H(Ab), 9764 Qb()) 9765 }, Bb = function() { 9766 return !("fit" === i.scaleMode && s === f.currItem.initialZoomLevel) 9767 }, Cb = function(a, b) { 9768 return !(!a || a === document) && !(a.getAttribute("class") && a.getAttribute("class").indexOf("pswp__scroll-wrap") > -1) && (b(a) ? a : Cb(a.parentNode, b)) 9769 }, Db = {}, Eb = function(a, b) { 9770 return Db.prevent = !Cb(a.target, i.isClickableElement), 9771 Da("preventDragEvent", a, b, Db), 9772 Db.prevent 9773 }, Fb = function(a, b) { 9774 return b.x = a.pageX, 9775 b.y = a.pageY, 9776 b.id = a.identifier, 9777 b 9778 }, Gb = function(a, b, c) { 9779 c.x = .5 * (a.x + b.x), 9780 c.y = .5 * (a.y + b.y) 9781 }, Hb = function(a, b, c) { 9782 if (a - Q > 50) { 9783 var d = ob.length > 2 ? ob.shift() : {}; 9784 d.x = b, 9785 d.y = c, 9786 ob.push(d), 9787 Q = a 9788 } 9789 }, Ib = function() { 9790 var a = pa.y - f.currItem.initialPosition.y; 9791 return 1 - Math.abs(a / (qa.y / 2)) 9792 }, Jb = {}, Kb = {}, Lb = [], Mb = function(a) { 9793 for (; Lb.length > 0; ) 9794 Lb.pop(); 9795 return F ? (la = 0, 9796 mb.forEach(function(a) { 9797 0 === la ? Lb[0] = a : 1 === la && (Lb[1] = a), 9798 la++ 9799 })) : a.type.indexOf("touch") > -1 ? a.touches && a.touches.length > 0 && (Lb[0] = Fb(a.touches[0], Jb), 9800 a.touches.length > 1 && (Lb[1] = Fb(a.touches[1], Kb))) : (Jb.x = a.pageX, 9801 Jb.y = a.pageY, 9802 Jb.id = "", 9803 Lb[0] = Jb), 9804 Lb 9805 }, Nb = function(a, b) { 9806 var c, d, e, g, h = pa[a] + b[a], j = b[a] > 0, k = tb.x + b.x, l = tb.x - nb.x; 9807 return c = h > da.min[a] || h < da.max[a] ? i.panEndFriction : 1, 9808 h = pa[a] + b[a] * c, 9809 !i.allowPanToNext && s !== f.currItem.initialZoomLevel || (ea ? "h" !== ga || "x" !== a || X || (j ? (h > da.min[a] && (c = i.panEndFriction, 9810 da.min[a] - h, 9811 d = da.min[a] - oa[a]), 9812 (d <= 0 || l < 0) && ac() > 1 ? (g = k, 9813 l < 0 && k > nb.x && (g = nb.x)) : da.min.x !== da.max.x && (e = h)) : (h < da.max[a] && (c = i.panEndFriction, 9814 h - da.max[a], 9815 d = oa[a] - da.max[a]), 9816 (d <= 0 || l > 0) && ac() > 1 ? (g = k, 9817 l > 0 && k < nb.x && (g = nb.x)) : da.min.x !== da.max.x && (e = h))) : g = k, 9818 "x" !== a) ? void (fa || $ || s > f.currItem.fitRatio && (pa[a] += b[a] * c)) : (void 0 !== g && (Ka(g, !0), 9819 $ = g !== nb.x), 9820 da.min.x !== da.max.x && (void 0 !== e ? pa.x = e : $ || (pa.x += b.x * c)), 9821 void 0 !== g) 9822 }, Ob = function(a) { 9823 if (!("mousedown" === a.type && a.button > 0)) { 9824 if ($b) 9825 return void a.preventDefault(); 9826 if (!U || "mousedown" !== a.type) { 9827 if (Eb(a, !0) && a.preventDefault(), 9828 Da("pointerDown"), 9829 F) { 9830 var b = e.arraySearch(mb, a.pointerId, "id"); 9831 b < 0 && (b = mb.length), 9832 mb[b] = { 9833 x: a.pageX, 9834 y: a.pageY, 9835 id: a.pointerId 9836 } 9837 } 9838 var c = Mb(a) 9839 , d = c.length; 9840 _ = null, 9841 cb(),
vendor: 9,511 bytes, lines 9842-10077
9842 V && 1 !== d || (V = ha = !0, 9843 e.bind(window, p, f), 9844 S = ka = ia = T = $ = Y = W = X = !1, 9845 ga = null, 9846 Da("firstTouchStart", c), 9847 Ma(oa, pa), 9848 na.x = na.y = 0, 9849 Ma(kb, c[0]), 9850 Ma(lb, kb), 9851 nb.x = ta.x * ra, 9852 ob = [{ 9853 x: kb.x, 9854 y: kb.y 9855 }], 9856 Q = P = Ea(), 9857 Sa(s, !0), 9858 zb(), 9859 Ab()), 9860 !aa && d > 1 && !fa && !$ && (t = s, 9861 X = !1, 9862 aa = W = !0, 9863 na.y = na.x = 0, 9864 Ma(oa, pa), 9865 Ma(hb, c[0]), 9866 Ma(ib, c[1]), 9867 Gb(hb, ib, vb), 9868 ub.x = Math.abs(vb.x) - pa.x, 9869 ub.y = Math.abs(vb.y) - pa.y, 9870 ba = ca = yb(hb, ib)) 9871 } 9872 } 9873 }, Pb = function(a) { 9874 if (a.preventDefault(), 9875 F) { 9876 var b = e.arraySearch(mb, a.pointerId, "id"); 9877 if (b > -1) { 9878 var c = mb[b]; 9879 c.x = a.pageX, 9880 c.y = a.pageY 9881 } 9882 } 9883 if (V) { 9884 var d = Mb(a); 9885 if (ga || Y || aa) 9886 _ = d; 9887 else if (tb.x !== ta.x * ra) 9888 ga = "h"; 9889 else { 9890 var f = Math.abs(d[0].x - kb.x) - Math.abs(d[0].y - kb.y); 9891 Math.abs(f) >= gb && (ga = f > 0 ? "h" : "v", 9892 _ = d) 9893 } 9894 } 9895 }, Qb = function() { 9896 if (_) { 9897 var a = _.length; 9898 if (0 !== a) 9899 if (Ma(hb, _[0]), 9900 jb.x = hb.x - kb.x, 9901 jb.y = hb.y - kb.y, 9902 aa && a > 1) { 9903 if (kb.x = hb.x, 9904 kb.y = hb.y, 9905 !jb.x && !jb.y && wb(_[1], ib)) 9906 return; 9907 Ma(ib, _[1]), 9908 X || (X = !0, 9909 Da("zoomGestureStarted")); 9910 var b = yb(hb, ib) 9911 , c = Vb(b); 9912 c > f.currItem.initialZoomLevel + f.currItem.initialZoomLevel / 15 && (ka = !0); 9913 var d = 1 9914 , e = Ta() 9915 , g = Ua(); 9916 if (c < e) 9917 if (i.pinchToClose && !ka && t <= f.currItem.initialZoomLevel) { 9918 var h = e - c 9919 , j = 1 - h / (e / 1.2); 9920 Fa(j), 9921 Da("onPinchClose", j), 9922 ia = !0 9923 } else 9924 d = (e - c) / e, 9925 d > 1 && (d = 1), 9926 c = e - d * (e / 3); 9927 else 9928 c > g && (d = (c - g) / (6 * e), 9929 d > 1 && (d = 1), 9930 c = g + d * e); 9931 d < 0 && (d = 0), 9932 ba = b, 9933 Gb(hb, ib, rb), 9934 na.x += rb.x - vb.x, 9935 na.y += rb.y - vb.y, 9936 Ma(vb, rb), 9937 pa.x = La("x", c), 9938 pa.y = La("y", c), 9939 S = c > s, 9940 s = c, 9941 Ha() 9942 } else { 9943 if (!ga) 9944 return; 9945 if (ha && (ha = !1, 9946 Math.abs(jb.x) >= gb && (jb.x -= _[0].x - lb.x), 9947 Math.abs(jb.y) >= gb && (jb.y -= _[0].y - lb.y)), 9948 kb.x = hb.x, 9949 kb.y = hb.y, 9950 0 === jb.x && 0 === jb.y) 9951 return; 9952 if ("v" === ga && i.closeOnVerticalDrag && !Bb()) { 9953 na.y += jb.y, 9954 pa.y += jb.y; 9955 var k = Ib(); 9956 return T = !0, 9957 Da("onVerticalDrag", k), 9958 Fa(k), 9959 void Ha() 9960 } 9961 Hb(Ea(), hb.x, hb.y), 9962 Y = !0, 9963 da = f.currItem.bounds; 9964 var l = Nb("x", jb); 9965 l || (Nb("y", jb), 9966 Na(pa), 9967 Ha()) 9968 } 9969 } 9970 }, Rb = function(a) { 9971 if (N.isOldAndroid) { 9972 if (U && "mouseup" === a.type) 9973 return; 9974 a.type.indexOf("touch") > -1 && (clearTimeout(U), 9975 U = setTimeout(function() { 9976 U = 0 9977 }, 600)) 9978 } 9979 Da("pointerUp"), 9980 Eb(a, !1) && a.preventDefault(); 9981 var b; 9982 if (F) { 9983 var c = e.arraySearch(mb, a.pointerId, "id"); 9984 if (c > -1) 9985 if (b = mb.splice(c, 1)[0], 9986 navigator.msPointerEnabled) { 9987 var d = { 9988 4: "mouse", 9989 2: "touch", 9990 3: "pen" 9991 }; 9992 b.type = d[a.pointerType], 9993 b.type || (b.type = a.pointerType || "mouse") 9994 } else 9995 b.type = a.pointerType || "mouse" 9996 } 9997 var g, h = Mb(a), j = h.length; 9998 if ("mouseup" === a.type && (j = 0), 9999 2 === j) 10000 return _ = null, 10001 !0; 10002 1 === j && Ma(lb, h[0]), 10003 0 !== j || ga || fa || (b || ("mouseup" === a.type ? b = { 10004 x: a.pageX, 10005 y: a.pageY, 10006 type: "mouse" 10007 } : a.changedTouches && a.changedTouches[0] && (b = { 10008 x: a.changedTouches[0].pageX, 10009 y: a.changedTouches[0].pageY, 10010 type: "touch" 10011 })), 10012 Da("touchRelease", a, b)); 10013 var k = -1; 10014 if (0 === j && (V = !1, 10015 e.unbind(window, p, f), 10016 zb(), 10017 aa ? k = 0 : -1 !== sb && (k = Ea() - sb)), 10018 sb = 1 === j ? Ea() : -1, 10019 g = -1 !== k && k < 150 ? "zoom" : "swipe", 10020 aa && j < 2 && (aa = !1, 10021 1 === j && (g = "zoomPointerUp"), 10022 Da("zoomGestureEnded")), 10023 _ = null, 10024 Y || X || fa || T) 10025 if (cb(), 10026 R || (R = Sb()), 10027 R.calculateSwipeSpeed("x"), 10028 T) { 10029 var l = Ib(); 10030 if (l < i.verticalDragRange) 10031 f.close(); 10032 else { 10033 var m = pa.y 10034 , n = ja; 10035 db("verticalDrag", 0, 1, 300, e.easing.cubic.out, function(a) { 10036 pa.y = (f.currItem.initialPosition.y - m) * a + m, 10037 Fa((1 - n) * a + n), 10038 Ha() 10039 }), 10040 Da("onVerticalDrag", 1) 10041 } 10042 } else { 10043 if (($ || fa) && 0 === j) { 10044 var o = Ub(g, R); 10045 if (o) 10046 return; 10047 g = "zoomPointerUp" 10048 } 10049 if (!fa) 10050 return "swipe" !== g ? void Wb() : void (!$ && s > f.currItem.fitRatio && Tb(R)) 10051 } 10052 }, Sb = function() { 10053 var a, b, c = { 10054 lastFlickOffset: {}, 10055 lastFlickDist: {}, 10056 lastFlickSpeed: {}, 10057 slowDownRatio: {}, 10058 slowDownRatioReverse: {}, 10059 speedDecelerationRatio: {}, 10060 speedDecelerationRatioAbs: {}, 10061 distanceOffset: {}, 10062 backAnimDestination: {}, 10063 backAnimStarted: {}, 10064 calculateSwipeSpeed: function(d) { 10065 ob.length > 1 ? (a = Ea() - Q + 50, 10066 b = ob[ob.length - 2][d]) : (a = Ea() - P, 10067 b = lb[d]), 10068 c.lastFlickOffset[d] = kb[d] - b, 10069 c.lastFlickDist[d] = Math.abs(c.lastFlickOffset[d]), 10070 c.lastFlickDist[d] > 20 ? c.lastFlickSpeed[d] = c.lastFlickOffset[d] / a : c.lastFlickSpeed[d] = 0, 10071 Math.abs(c.lastFlickSpeed[d]) < .1 && (c.lastFlickSpeed[d] = 0), 10072 c.slowDownRatio[d] = .95, 10073 c.slowDownRatioReverse[d] = 1 - c.slowDownRatio[d], 10074 c.speedDecelerationRatio[d] = 1 10075 }, 10076 calculateOverBoundsAnimOffset: function(a, b) { 10077 c.backAnimStarted[a] || (pa[a] > da.min[a] ? c.backAnimDestination[a] = da.min[a] : pa[a] < da.max[a] && (c.backA
10077nimDestination[a] = da.max[a]), 10078 void 0 !== c.backAnimDestination[a] && (c.slowDownRatio[a] = .7, 10079 c.slowDownRatioReverse[a] = 1 - c.slowDownRatio[a], 10080 c.speedDecelerationRatioAbs[a] < .05 && (c.lastFlickSpeed[a] = 0, 10081 c.backAnimStarted[a] = !0, 10082 db("bounceZoomPan" + a, pa[a], c.backAnimDestination[a], b || 300, e.easing.sine.out, function(b) { 10083 pa[a] = b, 10084 Ha() 10085 })))) 10086 }, 10087 calculateAnimOffset: function(a) { 10088 c.backAnimStarted[a] || (c.speedDecelerationRatio[a] = c.speedDecelerationRatio[a] * (c.slowDownRatio[a] + c.slowDownRatioReverse[a] - c.slowDownRatioReverse[a] * c.timeDiff / 10), 10089 c.speedDecelerationRatioAbs[a] = Math.abs(c.lastFlickSpeed[a] * c.speedDecelerationRatio[a]), 10090 c.distanceOffset[a] = c.lastFlickSpeed[a] * c.speedDecelerationRatio[a] * c.timeDiff, 10091 pa[a] += c.distanceOffset[a]) 10092 }, 10093 panAnimLoop: function() { 10094 if ($a.zoomPan && ($a.zoomPan.raf = H(c.panAnimLoop), 10095 c.now = Ea(), 10096 c.timeDiff = c.now - c.lastNow, 10097 c.lastNow = c.now, 10098 c.calculateAnimOffset("x"), 10099 c.calculateAnimOffset("y"), 10100 Ha(), 10101 c.calculateOverBoundsAnimOffset("x"), 10102 c.calculateOverBoundsAnimOffset("y"), 10103 c.speedDecelerationRatioAbs.x < .05 && c.speedDecelerationRatioAbs.y < .05)) 10104 return pa.x = Math.round(pa.x), 10105 pa.y = Math.round(pa.y), 10106 Ha(), 10107 void ab("zoomPan") 10108 } 10109 }; 10110 return c 10111 }, Tb = function(a) { 10112 return a.calculateSwipeSpeed("y"), 10113 da = f.currItem.bounds, 10114 a.backAnimDestination = {}, 10115 a.backAnimStarted = {}, 10116 Math.abs(a.lastFlickSpeed.x) <= .05 && Math.abs(a.lastFlickSpeed.y) <= .05 ? (a.speedDecelerationRatioAbs.x = a.speedDecelerationRatioAbs.y = 0, 10117 a.calculateOverBoundsAnimOffset("x"), 10118 a.calculateOverBoundsAnimOffset("y"), 10119 !0) : (bb("zoomPan"), 10120 a.lastNow = Ea(), 10121 void a.panAnimLoop()) 10122 }, Ub = function(a, b) { 10123 var c; 10124 fa || (qb = m); 10125 var d; 10126 if ("swipe" === a) { 10127 var g = kb.x - lb.x 10128 , h = b.lastFlickDist.x < 10; 10129 g > fb && (h || b.lastFlickOffset.x > 20) ? d = -1 : g < -fb && (h || b.lastFlickOffset.x < -20) && (d = 1) 10130 } 10131 var j; 10132 d && (m += d, 10133 m < 0 ? (m = i.loop ? ac() - 1 : 0, 10134 j = !0) : m >= ac() && (m = i.loop ? 0 : ac() - 1, 10135 j = !0), 10136 j && !i.loop || (ua += d, 10137 ra -= d, 10138 c = !0)); 10139 var k, l = ta.x * ra, n = Math.abs(l - tb.x); 10140 return c || l > tb.x == b.lastFlickSpeed.x > 0 ? (k = Math.abs(b.lastFlickSpeed.x) > 0 ? n / Math.abs(b.lastFlickSpeed.x) : 333, 10141 k = Math.min(k, 400), 10142 k = Math.max(k, 250)) : k = 333, 10143 qb === m && (c = !1), 10144 fa = !0, 10145 Da("mainScrollAnimStart"), 10146 db("mainScroll", tb.x, l, k, e.easing.cubic.out, Ka, function() { 10147 cb(), 10148 fa = !1, 10149 qb = -1, 10150 (c || qb !== m) && f.updateCurrItem(), 10151 Da("mainScrollAnimComplete") 10152 }), 10153 c && f.updateCurrItem(!0), 10154 c 10155 }, Vb = function(a) { 10156 return 1 / ca * a * t 10157 }, Wb = function() { 10158 var a = s 10159 , b = Ta() 10160 , c = Ua(); 10161 s < b ? a = b : s > c && (a = c); 10162 var d, g = ja; 10163 return ia && !S && !ka && s < b ? (f.close(), 10164 !0) : (ia && (d = function(a) { 10165 Fa((1 - g) * a + g) 10166 } 10167 ), 10168 f.zoomTo(a, 0, 200, e.easing.cubic.out, d), 10169 !0) 10170 }; 10171 za("Gestures", { 10172 publicMethods: { 10173 initGestures: function() { 10174 var a = function(a, b, c, d, e) { 10175 A = a + b, 10176 B = a + c, 10177 C = a + d, 10178 D = e ? a + e : "" 10179 }; 10180 F = N.pointerEvent, 10181 F && N.touch && (N.touch = !1), 10182 F ? navigator.msPointerEnabled ? a("MSPointer", "Down", "Move", "Up", "Cancel") : a("pointer", "down", "move", "up", "cancel") : N.touch ? (a("touch", "start", "move", "end", "cancel"), 10183 G = !0) : a("mouse", "down", "move", "up"), 10184 p = B + " " + C + " " + D, 10185 q = A, 10186 F && !G && (G = navigator.maxTouchPoints > 1 || navigator.msMaxTouchPoints > 1), 10187 f.likelyTouchDevice = G, 10188 r[A] = Ob, 10189 r[B] = Pb, 10190 r[C] = Rb, 10191 D && (r[D] = r[C]), 10192 N.touch && (q += " mousedown", 10193 p += " mousemove mouseup", 10194 r.mousedown = r[A], 10195 r.mousemove = r[B], 10196 r.mouseup = r[C]), 10197 G || (i.allowPanToNext = !1) 10198 } 10199 } 10200 }); 10201 var Xb, Yb, Zb, $b, _b, ac, bc, cc = function(b, c, d, g) { 10202 Xb && clearTimeout(Xb), 10203 $b = !0, 10204 Zb = !0; 10205 var h; 10206 b.initialLayout ? (h = b.initialLayout, 10207 b.initialLayout = null) : h = i.getThumbBoundsFn && i.getThumbBoundsFn(m); 10208 var j = d ? i.hideAnimationDuration : i.showAnimationDuration 10209 , k = function() { 10210 ab("initialZoom"), 10211 d ? (f.template.removeAttribute("style"), 10212 f.bg.removeAttribute("style")) : (Fa(1), 10213 c && (c.style.display = "block"), 10214 e.addClass(a, "pswp--animated-in"), 10215 Da("initialZoom" + (d ? "OutEnd" : "InEnd"))), 10216 g && g(), 10217 $b = !1 10218 }; 10219 if (!j || !h || void 0 === h.x) 10220 return Da("initialZoom" + (d ? "Out" : "In")), 10221 s = b.initialZoomLevel, 10222 Ma(pa, b.initialPosition), 10223 Ha(), 10224 a.style.opacity = d ? 0 : 1, 10225 Fa(1), 10226 void (j ? setTimeout(function() { 10227 k() 10228 }, j) : k()); 10229 !function() { 10230 var c = l 10231 , g = !f.currItem.src || f.currItem.loadError || i.showHideOpacity; 10232 b.miniImg && (b.miniImg.style.webkitBackfaceVisibility = "hidden"), 10233 d || (s = h.w / b.w, 10234 pa.x = h.x, 10235 pa.y = h.y - K, 10236 f[g ? "template" : "bg"].style.opacity = .001,
10237 Ha()), 10238 bb("initialZoom"), 10239 d && !c && e.removeClass(a, "pswp--animated-in"), 10240 g && (d ? e[(c ? "remove" : "add") + "Class"](a, "pswp--animate_opacity") : setTimeout(function() { 10241 e.addClass(a, "pswp--animate_opacity") 10242 }, 30)), 10243 Xb = setTimeout(function() { 10244 if (Da("initialZoom" + (d ? "Out" : "In")), 10245 d) { 10246 var f = h.w / b.w 10247 , i = { 10248 x: pa.x, 10249 y: pa.y 10250 } 10251 , l = s 10252 , m = ja 10253 , n = function(b) { 10254 1 === b ? (s = f, 10255 pa.x = h.x, 10256 pa.y = h.y - M) : (s = (f - l) * b + l, 10257 pa.x = (h.x - i.x) * b + i.x, 10258 pa.y = (h.y - M - i.y) * b + i.y), 10259 Ha(), 10260 g ? a.style.opacity = 1 - b : Fa(m - b * m) 10261 }; 10262 c ? db("initialZoom", 0, 1, j, e.easing.cubic.out, n, k) : (n(1), 10263 Xb = setTimeout(k, j + 20)) 10264 } else 10265 s = b.initialZoomLevel, 10266 Ma(pa, b.initialPosition), 10267 Ha(), 10268 Fa(1), 10269 g ? a.style.opacity = 1 : Fa(1), 10270 Xb = setTimeout(k, j + 20) 10271 }, d ? 25 : 90) 10272 }() 10273 }, dc = {}, ec = [], fc = { 10274 index: 0, 10275 errorMsg: '<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>', 10276 forceProgressiveLoading: !1, 10277 preload: [1, 1], 10278 getNumItemsFn: function() { 10279 return Yb.length 10280 } 10281 }, gc = function() { 10282 return { 10283 center: { 10284 x: 0, 10285 y: 0 10286 }, 10287 max: { 10288 x: 0, 10289 y: 0 10290 }, 10291 min: { 10292 x: 0, 10293 y: 0 10294 } 10295 } 10296 }, hc = function(a, b, c) { 10297 var d = a.bounds; 10298 d.center.x = Math.round((dc.x - b) / 2), 10299 d.center.y = Math.round((dc.y - c) / 2) + a.vGap.top, 10300 d.max.x = b > dc.x ? Math.round(dc.x - b) : d.center.x, 10301 d.max.y = c > dc.y ? Math.round(dc.y - c) + a.vGap.top : d.center.y, 10302 d.min.x = b > dc.x ? 0 : d.center.x, 10303 d.min.y = c > dc.y ? a.vGap.top : d.center.y 10304 }, ic = function(a, b, c) { 10305 if (a.src && !a.loadError) { 10306 var d = !c; 10307 if (d && (a.vGap || (a.vGap = { 10308 top: 0, 10309 bottom: 0 10310 }), 10311 Da("parseVerticalMargin", a)), 10312 dc.x = b.x, 10313 dc.y = b.y - a.vGap.top - a.vGap.bottom, 10314 d) { 10315 var e = dc.x / a.w 10316 , f = dc.y / a.h; 10317 a.fitRatio = e < f ? e : f; 10318 var g = i.scaleMode; 10319 "orig" === g ? c = 1 : "fit" === g && (c = a.fitRatio), 10320 c > 1 && (c = 1), 10321 a.initialZoomLevel = c, 10322 a.bounds || (a.bounds = gc()) 10323 } 10324 if (!c) 10325 return; 10326 return hc(a, a.w * c, a.h * c), 10327 d && c === a.initialZoomLevel && (a.initialPosition = a.bounds.center), 10328 a.bounds 10329 } 10330 return a.w = a.h = 0, 10331 a.initialZoomLevel = a.fitRatio = 1, 10332 a.bounds = gc(), 10333 a.initialPosition = a.bounds.center, 10334 a.bounds 10335 }, jc = function(a, b, c, d, e, g) { 10336 b.loadError || d && (b.imageAppended = !0, 10337 mc(b, d, b === f.currItem && ya), 10338 c.appendChild(d), 10339 g && setTimeout(function() { 10340 b && b.loaded && b.placeholder && (b.placeholder.style.display = "none", 10341 b.placeholder = null) 10342 }, 500)) 10343 }, kc = function(a) { 10344 a.loading = !0, 10345 a.loaded = !1; 10346 var b = a.img = e.createEl("pswp__img", "img") 10347 , c = function() { 10348 a.loading = !1, 10349 a.loaded = !0, 10350 a.loadComplete ? a.loadComplete(a) : a.img = null, 10351 b.onload = b.onerror = null, 10352 b = null 10353 }; 10354 return b.onload = c, 10355 b.onerror = function() { 10356 a.loadError = !0, 10357 c() 10358 } 10359 , 10360 b.src = a.src, 10361 b 10362 }, lc = function(a, b) { 10363 if (a.src && a.loadError && a.container) 10364 return b && (a.container.innerHTML = ""), 10365 a.container.innerHTML = i.errorMsg.replace("%url%", a.src), 10366 !0 10367 }, mc = function(a, b, c) { 10368 if (a.src) { 10369 b || (b = a.container.lastChild); 10370 var d = c ? a.w : Math.round(a.w * a.fitRatio) 10371 , e = c ? a.h : Math.round(a.h * a.fitRatio); 10372 a.placeholder && !a.loaded && (a.placeholder.style.width = d + "px", 10373 a.placeholder.style.height = e + "px"), 10374 b.style.width = d + "px", 10375 b.style.height = e + "px" 10376 } 10377 }, nc = function() { 10378 if (ec.length) { 10379 for (var a, b = 0; b < ec.length; b++) 10380 a = ec[b], 10381 a.holder.index === a.index && jc(a.index, a.item, a.baseDiv, a.img, !1, a.clearPlaceholder); 10382 ec = [] 10383 } 10384 }; 10385 za("Controller", { 10386 publicMethods: { 10387 lazyLoadItem: function(a) { 10388 a = Aa(a); 10389 var b = _b(a); 10390 b && (!b.loaded && !b.loading || x) && (Da("gettingData", a, b), 10391 b.src && kc(b)) 10392 }, 10393 initController: function() { 10394 e.extend(i, fc, !0), 10395 f.items = Yb = c, 10396 _b = f.getItemAt, 10397 ac = i.getNumItemsFn, 10398 bc = i.loop, 10399 ac() < 3 && (i.loop = !1), 10400 Ca("beforeChange", function(a) { 10401 var b, c = i.preload, d = null === a || a >= 0, e = Math.min(c[0], ac()), g = Math.min(c[1], ac()); 10402 for (b = 1; b <= (d ? g : e); b++) 10403 f.lazyLoadItem(m + b); 10404 for (b = 1; b <= (d ? e : g); b++) 10405 f.lazyLoadItem(m - b) 10406 }), 10407 Ca("initialLayout", function() { 10408 f.currItem.initialLayout = i.getThumbBoundsFn && i.getThumbBoundsFn(m) 10409 }), 10410 Ca("mainScrollAnimComplete", nc), 10411 Ca("initialZoomInEnd", nc), 10412 Ca("destroy", function() { 10413 for (var a, b = 0; b < Yb.length; b++) 10414 a = Yb[b], 10415 a.container && (a.container = null),
10416 a.placeholder && (a.placeholder = null), 10417 a.img && (a.img = null), 10418 a.preloader && (a.preloader = null), 10419 a.loadError && (a.loaded = a.loadError = !1); 10420 ec = null 10421 }) 10422 }, 10423 getItemAt: function(a) { 10424 return a >= 0 && void 0 !== Yb[a] && Yb[a] 10425 }, 10426 allowProgressiveImg: function() { 10427 return i.forceProgressiveLoading || !G || i.mouseUsed || screen.width > 1200 10428 }, 10429 setContent: function(a, b) { 10430 i.loop && (b = Aa(b)); 10431 var c = f.getItemAt(a.index); 10432 c && (c.container = null); 10433 var d, g = f.getItemAt(b); 10434 if (!g) 10435 return void (a.el.innerHTML = ""); 10436 Da("gettingData", b, g), 10437 a.index = b, 10438 a.item = g; 10439 var h = g.container = e.createEl("pswp__zoom-wrap"); 10440 if (!g.src && g.html && (g.html.tagName ? h.appendChild(g.html) : h.innerHTML = g.html), 10441 lc(g), 10442 ic(g, qa), 10443 !g.src || g.loadError || g.loaded) 10444 g.src && !g.loadError && (d = e.createEl("pswp__img", "img"), 10445 d.style.opacity = 1, 10446 d.src = g.src, 10447 mc(g, d), 10448 jc(b, g, h, d, !0)); 10449 else { 10450 if (g.loadComplete = function(c) { 10451 if (j) { 10452 if (a && a.index === b) { 10453 if (lc(c, !0)) 10454 return c.loadComplete = c.img = null, 10455 ic(c, qa), 10456 Ia(c), 10457 void (a.index === m && f.updateCurrZoomItem()); 10458 c.imageAppended ? !$b && c.placeholder && (c.placeholder.style.display = "none", 10459 c.placeholder = null) : N.transform && (fa || $b) ? ec.push({ 10460 item: c, 10461 baseDiv: h, 10462 img: c.img, 10463 index: b, 10464 holder: a, 10465 clearPlaceholder: !0 10466 }) : jc(b, c, h, c.img, fa || $b, !0) 10467 } 10468 c.loadComplete = null, 10469 c.img = null, 10470 Da("imageLoadComplete", b, c) 10471 } 10472 } 10473 , 10474 e.features.transform) { 10475 var k = "pswp__img pswp__img--placeholder"; 10476 k += g.msrc ? "" : " pswp__img--placeholder--blank"; 10477 var l = e.createEl(k, g.msrc ? "img" : ""); 10478 g.msrc && (l.src = g.msrc), 10479 mc(g, l), 10480 h.appendChild(l), 10481 g.placeholder = l 10482 } 10483 g.loading || kc(g), 10484 f.allowProgressiveImg() && (!Zb && N.transform ? ec.push({ 10485 item: g, 10486 baseDiv: h, 10487 img: g.img, 10488 index: b, 10489 holder: a 10490 }) : jc(b, g, h, g.img, !0, !0)) 10491 } 10492 Zb || b !== m ? Ia(g) : (ea = h.style, 10493 cc(g, d || g.img)), 10494 a.el.innerHTML = "", 10495 a.el.appendChild(h) 10496 }, 10497 cleanSlide: function(a) { 10498 a.img && (a.img.onload = a.img.onerror = null),
10499 a.loaded = a.loading = a.img = a.imageAppended = !1 10500 } 10501 } 10502 }); 10503 var oc, pc = {}, qc = function(a, b, c) { 10504 var d = document.createEvent("CustomEvent") 10505 , e = { 10506 origEvent: a, 10507 target: a.target, 10508 releasePoint: b, 10509 pointerType: c || "touch" 10510 }; 10511 d.initCustomEvent("pswpTap", !0, !0, e), 10512 a.target.dispatchEvent(d) 10513 }; 10514 za("Tap", { 10515 publicMethods: { 10516 initTap: function() { 10517 Ca("firstTouchStart", f.onTapStart), 10518 Ca("touchRelease", f.onTapRelease), 10519 Ca("destroy", function() { 10520 pc = {}, 10521 oc = null 10522 }) 10523 }, 10524 onTapStart: function(a) { 10525 a.length > 1 && (clearTimeout(oc), 10526 oc = null) 10527 }, 10528 onTapRelease: function(a, b) { 10529 if (b && !Y && !W && !_a) { 10530 var c = b; 10531 if (oc && (clearTimeout(oc), 10532 oc = null, 10533 xb(c, pc))) 10534 return void Da("doubleTap", c); 10535 if ("mouse" === b.type) 10536 return void qc(a, b, "mouse"); 10537 if ("BUTTON" === a.target.tagName.toUpperCase() || e.hasClass(a.target, "pswp__single-tap")) 10538 return void qc(a, b); 10539 Ma(pc, c), 10540 oc = setTimeout(function() { 10541 qc(a, b), 10542 oc = null 10543 }, 300) 10544 } 10545 } 10546 } 10547 }); 10548 var rc; 10549 za("DesktopZoom", { 10550 publicMethods: { 10551 initDesktopZoom: function() { 10552 L || (G ? Ca("mouseUsed", function() { 10553 f.setupDesktopZoom() 10554 }) : f.setupDesktopZoom(!0)) 10555 }, 10556 setupDesktopZoom: function(b) { 10557 rc = {}; 10558 var c = "wheel mousewheel DOMMouseScroll"; 10559 Ca("bindEvents", function() { 10560 e.bind(a, c, f.handleMouseWheel) 10561 }), 10562 Ca("unbindEvents", function() { 10563 rc && e.unbind(a, c, f.handleMouseWheel) 10564 }), 10565 f.mouseZoomedIn = !1; 10566 var d, g = function() { 10567 f.mouseZoomedIn && (e.removeClass(a, "pswp--zoomed-in"), 10568 f.mouseZoomedIn = !1), 10569 s < 1 ? e.addClass(a, "pswp--zoom-allowed") : e.removeClass(a, "pswp--zoom-allowed"), 10570 h() 10571 }, h = function() { 10572 d && (e.removeClass(a, "pswp--dragging"), 10573 d = !1) 10574 }; 10575 Ca("resize", g), 10576 Ca("afterChange", g), 10577 Ca("pointerDown", function() { 10578 f.mouseZoomedIn && (d = !0, 10579 e.addClass(a, "pswp--dragging")) 10580 }), 10581 Ca("pointerUp", h), 10582 b || g() 10583 }, 10584 handleMouseWheel: function(a) { 10585 if (s <= f.currItem.fitRatio) 10586 return i.modal && (!i.closeOnScroll || _a || V ? a.preventDefault() : E && Math.abs(a.deltaY) > 2 && (l = !0, 10587 f.close())), 10588 !0; 10589 if (a.stopPropagation(), 10590 rc.x = 0, 10591 "deltaX"in a) 10592 1 === a.deltaMode ? (rc.x = 18 * a.deltaX, 10593 rc.y = 18 * a.deltaY) : (rc.x = a.deltaX, 10594 rc.y = a.deltaY); 10595 else if ("wheelDelta"in a) 10596 a.wheelDeltaX && (rc.x = -.16 * a.wheelDeltaX), 10597 a.wheelDeltaY ? rc.y = -.16 * a.wheelDeltaY : rc.y = -.16 * a.wheelDelta; 10598 else { 10599 if (!("detail"in a)) 10600 return; 10601 rc.y = a.detail 10602 } 10603 Sa(s, !0); 10604 var b = pa.x - rc.x 10605 , c = pa.y - rc.y; 10606 (i.modal || b <= da.min.x && b >= da.max.x && c <= da.min.y && c >= da.max.y) && a.preventDefault(), 10607 f.panTo(b, c) 10608 }, 10609 toggleDesktopZoom: function(b) { 10610 b = b || { 10611 x: qa.x / 2 + sa.x, 10612 y: qa.y / 2 + sa.y 10613 }; 10614 var c = i.getDoubleTapZoom(!0, f.currItem) 10615 , d = s === c; 10616 f.mouseZoomedIn = !d, 10617 f.zoomTo(d ? f.currItem.initialZoomLevel : c, b, 333), 10618 e[(d ? "remove" : "add") + "Class"](a, "pswp--zoomed-in") 10619 } 10620 } 10621 }); 10622 var sc, tc, uc, vc, wc, xc, yc, zc, Ac, Bc, Cc, Dc, Ec = { 10623 history: !0, 10624 galleryUID: 1 10625 }, Fc = function() { 10626 return Cc.hash.substring(1) 10627 }, Gc = function() { 10628 sc && clearTimeout(sc), 10629 uc && clearTimeout(uc) 10630 }, Hc = function() { 10631 var a = Fc() 10632 , b = {}; 10633 if (a.length < 5) 10634 return b; 10635 var c, d = a.split("&"); 10636 for (c = 0; c < d.length; c++) 10637 if (d[c]) { 10638 var e = d[c].split("="); 10639 e.length < 2 || (b[e[0]] = e[1]) 10640 } 10641 if (i.galleryPIDs) { 10642 var f = b.pid; 10643 for (b.pid = 0, 10644 c = 0; c < Yb.length; c++) 10645 if (Yb[c].pid === f) { 10646 b.pid = c; 10647 break 10648 } 10649 } else 10650 b.pid = parseInt(b.pid, 10) - 1; 10651 return b.pid < 0 && (b.pid = 0), 10652 b 10653 }, Ic = function() { 10654 if (uc && clearTimeout(uc), 10655 _a || V) 10656 return void (uc = setTimeout(Ic, 500)); 10657 vc ? clearTimeout(tc) : vc = !0; 10658 var a = m + 1 10659 , b = _b(m); 10660 b.hasOwnProperty("pid") && (a = b.pid); 10661 var c = yc + "&gid=" + i.galleryUID + "&pid=" + a; 10662 zc || -1 === Cc.hash.indexOf(c) && (Bc = !0); 10663 var d = Cc.href.split("#")[0] + "#" + c; 10664 Dc ? "#" + c !== window.location.hash && history[zc ? "replaceState" : "pushState"]("", document.title, d) : zc ?
10664Cc.replace(d) : Cc.hash = c, 10665 zc = !0, 10666 tc = setTimeout(function() { 10667 vc = !1 10668 }, 60) 10669 }; 10670 za("History", { 10671 publicMethods: { 10672 initHistory: function() { 10673 if (e.extend(i, Ec, !0), 10674 i.history) { 10675 Cc = window.location, 10676 Bc = !1, 10677 Ac = !1, 10678 zc = !1, 10679 yc = Fc(), 10680 Dc = "pushState"in history, 10681 yc.indexOf("gid=") > -1 && (yc = yc.split("&gid=")[0], 10682 yc = yc.split("?gid=")[0]), 10683 Ca("afterChange", f.updateURL), 10684 Ca("unbindEvents", function() { 10685 e.unbind(window, "hashchange", f.onHashChange) 10686 }); 10687 var a = function() { 10688 xc = !0, 10689 Ac || (Bc ? history.back() : yc ? Cc.hash = yc : Dc ? history.pushState("", document.title, Cc.pathname + Cc.search) : Cc.hash = ""), 10690 Gc() 10691 }; 10692 Ca("unbindEvents", function() { 10693 l && a() 10694 }), 10695 Ca("destroy", function() { 10696 xc || a() 10697 }), 10698 Ca("firstUpdate", function() { 10699 m = Hc().pid 10700 }); 10701 var b = yc.indexOf("pid="); 10702 b > -1 && (yc = yc.substring(0, b), 10703 "&" === yc.slice(-1) && (yc = yc.slice(0, -1))), 10704 setTimeout(function() { 10705 j && e.bind(window, "hashchange", f.onHashChange) 10706 }, 40) 10707 } 10708 }, 10709 onHashChange: function() { 10710 return Fc() === yc ? (Ac = !0, 10711 void f.close()) : void (vc || (wc = !0, 10712 f.goTo(Hc().pid), 10713 wc = !1)) 10714 }, 10715 updateURL: function() { 10716 Gc(), 10717 wc || (zc ? sc = setTimeout(Ic, 800) : Ic()) 10718 } 10719 } 10720 }), 10721 e.extend(f, eb) 10722 } 10723}), 10724function(a, b) { 10725 "function" == typeof define && define.amd ? define(b) : "object" == typeof exports ? module.exports = b() : a.PhotoSwipeUI_Default = b() 10726}(this, function() { 10727 "use strict"; 10728 return function(a, b) { 10729 var c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v = this, w = !1, x = !0, y = !0, z = { 10730 barsSize: { 10731 top: 44, 10732 bottom: "auto" 10733 }, 10734 closeElClasses: ["item", "caption", "zoom-wrap", "ui", "top-bar"], 10735 timeToIdle: 4e3, 10736 timeToIdleOutside: 1e3, 10737 loadingIndicatorDelay: 1e3, 10738 addCaptionHTMLFn: function(a, b) { 10739 return a.title ? (b.children[0].innerHTML = a.title, 10740 !0) : (b.children[0].innerHTML = "", 10741 !1) 10742 }, 10743 closeEl: !0, 10744 captionEl: !0, 10745 fullscreenEl: !0, 10746 zoomEl: !0, 10747 shareEl: !0, 10748 counterEl: !0, 10749 arrowEl: !0, 10750 preloaderEl: !0, 10751 tapToClose: !1, 10752 tapToToggleControls: !0, 10753 clickToCloseNonZoomable: !0, 10754 shareButtons: [{ 10755 id: "facebook", 10756 label: "Share on Facebook", 10757 url: "https://www.facebook.com/sharer/sharer.php?u={{url}}" 10758 }, { 10759 id: "twitter", 10760 label: "Tweet", 10761 url: "https://twitter.com/intent/tweet?text={{text}}&url={{url}}" 10762 }, { 10763 id: "pinterest", 10764 label: "Pin it", 10765 url: "http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}" 10766 }, { 10767 id: "download", 10768 label: "Download image", 10769 url: "{{raw_image_url}}", 10770 download: !0 10771 }], 10772 getImageURLForShare: function() { 10773 return a.currItem.src || "" 10774 }, 10775 getPageURLForShare: function() { 10776 return window.location.href 10777 }, 10778 getTextForShare: function() { 10779 return a.currItem.title || "" 10780 }, 10781 indexIndicatorSep: " / ", 10782 fitControlsWidth: 1200 10783 }, A = function(a) { 10784 if (r) 10785 return !0; 10786 a = a || window.event, 10787 q.timeToIdle && q.mouseUsed && !k && K(); 10788 for (var c, d, e = a.target || a.srcElement, f = e.getAttribute("class") || "", g = 0; g < S.length; g++) 10789 c = S[g], 10790 c.onTap && f.indexOf("pswp__" + c.name) > -1 && (c.onTap(), 10791 d = !0); 10792 if (d) { 10793 a.stopPropagation && a.stopPropagation(), 10794 r = !0; 10795 var h = b.features.isOldAndroid ? 600 : 30; 10796 s = setTimeout(function() { 10797 r = !1 10798 }, h) 10799 } 10800 }, B = function() { 10801 return !a.likelyTouchDevice || q.mouseUsed || screen.width > q.fitControlsWidth 10802 }, C = function(a, c, d) { 10803 b[(d ? "add" : "remove") + "Class"](a, "pswp__" + c) 10804 }, D = function() { 10805 var a = 1 === q.getNumItemsFn(); 10806 a !== p && (C(d, "ui--one-slide", a), 10807 p = a) 10808 }, E = function() { 10809 C(i, "share-modal--hidden", y) 10810 }, F = function() { 10811 return y = !y, 10812 y ? (b.removeClass(i, "pswp__share-modal--fade-in"), 10813 setTimeout(function() { 10814 y && E() 10815 }, 300)) : (E(), 10816 setTimeout(function() { 10817 y || b.addClass(i, "pswp__share-modal--fade-in") 10818 }, 30)), 10819 y || H(), 10820 !1 10821 }, G = function(b) { 10822 b = b || window.event; 10823 var c = b.target || b.srcElement; 10824 return a.shout("shareLinkClick", b, c), 10825 !(!c.href || !c.hasAttribute("download") && (window.open(c.href, "pswp_share", "scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left=" + (window.screen ? Math.round(screen.width / 2 - 275) : 100)), 10826 y || F(), 10827 1)) 10828 }, H = function() { 10829 for (var a, b, c, d, e, f = "", g = 0; g < q.shareButtons.length; g++) 10830 a = q.shareButtons[g], 10831 c = q.getImageURLForShare(a), 10832 d = q.getPageURLForShare(a), 10833 e = q.getTextForShare(a), 10834 b = a.url.replace("{{url}}", encodeURIComponent(d)).replace("{{image_url}}", encodeURIComponent(c)).replace("{{raw_image_url}}", c).replace("{{text}}", encodeURIComponent(e)), 10835 f += '<a href="' + b + '" target="_blank" class="pswp__share--' + a.id + '"' + (a.download ? "download" : "") + ">" + a.label + "</a>", 10836 q.parseShareButtonOut && (f = q.parseShareButtonOut(a, f)); 10837 i.children[0].innerHTML = f, 10838 i.children[0].onclick = G 10839 }, I = function(a) { 10840 for (var c = 0; c < q.closeElClasses.length; c++) 10841 if (b.hasClass(a, "pswp__" + q.closeElClasses[c])) 10842 return !0 10843 }, J = 0, K = function() { 10844 clearTimeout(u), 10845 J = 0, 10846 k && v.setIdle(!1) 10847 }, L = function(a) { 10848 a = a || window.event; 10849 var b = a.relatedTarget || a.toElement; 10850 b && "HTML" !== b.nodeName || (clearTimeout(u), 10851 u = setTimeout(function() { 10852 v.setIdle(!0) 10853 }, q.timeToIdleOutside)) 10854 }, M = function() { 10855 q.fullscreenEl && !b.features.isOldAndroid && (c || (c = v.getFullscreenAPI()), 10856 c ? (b.bind(document, c.eventK, v.updateFullscreen), 10857 v.updateFullscreen(), 10858 b.addClass(a.template, "pswp--supports-fs")) : b.removeClass(a.template, "pswp--supports-fs")) 10859 }, N = function() { 10860 q.preloaderEl && (O(!0), 10861 l("beforeChange", function() { 10862 clearTimeout(o), 10863 o = setTimeout(function() { 10864 a.currItem && a.currItem.loading ? (!a.allowProgressiveImg() || a.currItem.img && !a.currItem.img.naturalWi
10864dth) && O(!1) : O(!0) 10865 }, q.loadingIndicatorDelay) 10866 }), 10867 l("imageLoadComplete", function(b, c) { 10868 a.currItem === c && O(!0) 10869 })) 10870 }, O = function(a) { 10871 n !== a && (C(m, "preloader--active", !a), 10872 n = a) 10873 }, P = function(a) { 10874 var c = a.vGap; 10875 if (B()) { 10876 var g = q.barsSize; 10877 if (q.captionEl && "auto" === g.bottom) 10878 if (f || (f = b.createEl("pswp__caption pswp__caption--fake"), 10879 f.appendChild(b.createEl("pswp__caption__center")), 10880 d.insertBefore(f, e), 10881 b.addClass(d, "pswp__ui--fit")), 10882 q.addCaptionHTMLFn(a, f, !0)) { 10883 var h = f.clientHeight; 10884 c.bottom = parseInt(h, 10) || 44 10885 } else 10886 c.bottom = g.top; 10887 else 10888 c.bottom = "auto" === g.bottom ? 0 : g.bottom; 10889 c.top = g.top 10890 } else 10891 c.top = c.bottom = 0 10892 }, Q = function() { 10893 q.timeToIdle && l("mouseUsed", function() { 10894 b.bind(document, "mousemove", K), 10895 b.bind(document, "mouseout", L), 10896 t = setInterval(function() { 10897 2 === ++J && v.setIdle(!0) 10898 }, q.timeToIdle / 2) 10899 }) 10900 }, R = function() { 10901 l("onVerticalDrag", function(a) { 10902 x && a < .95 ? v.hideControls() : !x && a >= .95 && v.showControls() 10903 }); 10904 var a; 10905 l("onPinchClose", function(b) { 10906 x && b < .9 ? (v.hideControls(), 10907 a = !0) : a && !x && b > .9 && v.showControls() 10908 }), 10909 l("zoomGestureEnded", function() { 10910 (a = !1) && !x && v.showControls() 10911 }) 10912 }, S = [{ 10913 name: "caption", 10914 option: "captionEl", 10915 onInit: function(a) { 10916 e = a 10917 } 10918 }, { 10919 name: "share-modal", 10920 option: "shareEl", 10921 onInit: function(a) { 10922 i = a 10923 }, 10924 onTap: function() { 10925 F() 10926 } 10927 }, { 10928 name: "button--share", 10929 option: "shareEl", 10930 onInit: function(a) { 10931 h = a 10932 }, 10933 onTap: function() { 10934 F() 10935 } 10936 }, { 10937 name: "button--zoom", 10938 option: "zoomEl", 10939 onTap: a.toggleDesktopZoom 10940 }, { 10941 name: "counter", 10942 option: "counterEl", 10943 onInit: function(a) { 10944 g = a 10945 } 10946 }, { 10947 name: "button--close", 10948 option: "closeEl", 10949 onTap: a.close 10950 }, { 10951 name: "button--arrow--left", 10952 option: "arrowEl", 10953 onTap: a.prev 10954 }, { 10955 name: "button--arrow--right", 10956 option: "arrowEl", 10957 onTap: a.next 10958 }, { 10959 name: "button--fs", 10960 option: "fullscreenEl", 10961 onTap: function() { 10962 c.isFullscreen() ? c.exit() : c.enter() 10963 } 10964 }, { 10965 name: "preloader", 10966 option: "preloaderEl", 10967 onInit: function(a) { 10968 m = a 10969 } 10970 }], T = function() { 10971 var a, c, e, f = function(d) { 10972 if (d) 10973 for (var f = d.length, g = 0; g < f; g++) { 10974 a = d[g], 10975 c = a.className; 10976 for (var h = 0; h < S.length; h++) 10977 e = S[h], 10978 c.indexOf("pswp__" + e.name) > -1 && (q[e.option] ? (b.removeClass(a, "pswp__element--disabled"), 10979 e.onInit && e.onInit(a)) : b.addClass(a, "pswp__element--disabled")) 10980 } 10981 }; 10982 f(d.children); 10983 var g = b.getChildByClass(d, "pswp__top-bar"); 10984 g && f(g.children) 10985 }; 10986 v.init = function() { 10987 b.extend(a.options, z, !0), 10988 q = a.options,
10989 d = b.getChildByClass(a.scrollWrap, "pswp__ui"), 10990 l = a.listen, 10991 R(), 10992 l("beforeChange", v.update), 10993 l("doubleTap", function(b) { 10994 var c = a.currItem.initialZoomLevel; 10995 a.getZoomLevel() !== c ? a.zoomTo(c, b, 333) : a.zoomTo(q.getDoubleTapZoom(!1, a.currItem), b, 333) 10996 }), 10997 l("preventDragEvent", function(a, b, c) { 10998 var d = a.target || a.srcElement; 10999 d && d.getAttribute("class") && a.type.indexOf("mouse") > -1 && (d.getAttribute("class").indexOf("__caption") > 0 || /(SMALL|STRONG|EM)/i.test(d.tagName)) && (c.prevent = !1) 11000 }), 11001 l("bindEvents", function() { 11002 b.bind(d, "pswpTap click", A), 11003 b.bind(a.scrollWrap, "pswpTap", v.onGlobalTap), 11004 a.likelyTouchDevice || b.bind(a.scrollWrap, "mouseover", v.onMouseOver) 11005 }), 11006 l("unbindEvents", function() { 11007 y || F(), 11008 t && clearInterval(t), 11009 b.unbind(document, "mouseout", L), 11010 b.unbind(document, "mousemove", K), 11011 b.unbind(d, "pswpTap click", A), 11012 b.unbind(a.scrollWrap, "pswpTap", v.onGlobalTap), 11013 b.unbind(a.scrollWrap, "mouseover", v.onMouseOver), 11014 c && (b.unbind(document, c.eventK, v.updateFullscreen), 11015 c.isFullscreen() && (q.hideAnimationDuration = 0, 11016 c.exit()), 11017 c = null) 11018 }), 11019 l("destroy", function() { 11020 q.captionEl && (f && d.removeChild(f), 11021 b.removeClass(e, "pswp__caption--empty")), 11022 i && (i.children[0].onclick = null), 11023 b.removeClass(d, "pswp__ui--over-close"), 11024 b.addClass(d, "pswp__ui--hidden"), 11025 v.setIdle(!1) 11026 }), 11027 q.showAnimationDuration || b.removeClass(d, "pswp__ui--hidden"), 11028 l("initialZoomIn", function() { 11029 q.showAnimationDuration && b.removeClass(d, "pswp__ui--hidden") 11030 }), 11031 l("initialZoomOut", function() { 11032 b.addClass(d, "pswp__ui--hidden") 11033 }), 11034 l("parseVerticalMargin", P), 11035 T(), 11036 q.shareEl && h && i && (y = !0), 11037 D(), 11038 Q(), 11039 M(), 11040 N() 11041 } 11042 , 11043 v.setIdle = function(a) { 11044 k = a, 11045 C(d, "ui--idle", a) 11046 } 11047 , 11048 v.update = function() { 11049 x && a.currItem ? (v.updateIndexIndicator(), 11050 q.captionEl && (q.addCaptionHTMLFn(a.currItem, e), 11051 C(e, "caption--empty", !a.currItem.title)), 11052 w = !0) : w = !1, 11053 y || F(), 11054 D() 11055 } 11056 , 11057 v.updateFullscreen = function(d) { 11058 d && setTimeout(function() { 11059 a.setScrollOffset(0, b.getScrollY()) 11060 }, 50), 11061 b[(c.isFullscreen() ? "add" : "remove") + "Class"](a.template, "pswp--fs") 11062 } 11063 , 11064 v.updateIndexIndicator = function() { 11065 q.counterEl && (g.innerHTML = a.getCurrentIndex() + 1 + q.indexIndicatorSep + q.getNumItemsFn()) 11066 } 11067 , 11068 v.onGlobalTap = function(c) { 11069 c = c || window.event; 11070 var d = c.target || c.srcElement; 11071 if (!r) 11072 if (c.detail && "mouse" === c.detail.pointerType) { 11073 if (I(d)) 11074 return void a.close(); 11075 b.hasClass(d, "pswp__img") && (1 === a.getZoomLevel() && a.getZoomLevel() <= a.currItem.fitRatio ? q.clickToCloseNonZoomable && a.close() : a.toggleDesktopZoom(c.detail.releasePoint)) 11076 } else if (q.tapToToggleControls && (x ? v.hideControls() : v.showControls()), 11077 q.tapToClose && (b.hasClass(d, "pswp__img") || I(d))) 11078 return void a.close() 11079 } 11080 , 11081 v.onMouseOver = function(a) { 11082 a = a || window.event; 11083 var b = a.target || a.srcElement; 11084 C(d, "ui--over-close", I(b)) 11085 } 11086 , 11087 v.hideControls = function() { 11088 b.addClass(d, "pswp__ui--hidden"), 11089 x = !1 11090 } 11091 , 11092 v.showControls = function() { 11093 x = !0,
11094 w || v.update(), 11095 b.removeClass(d, "pswp__ui--hidden") 11096 } 11097 , 11098 v.supportsFullscreen = function() { 11099 var a = document; 11100 return !!(a.exitFullscreen || a.mozCancelFullScreen || a.webkitExitFullscreen || a.msExitFullscreen) 11101 } 11102 , 11103 v.getFullscreenAPI = function() { 11104 var b, c = document.documentElement, d = "fullscreenchange"; 11105 return c.requestFullscreen ? b = { 11106 enterK: "requestFullscreen", 11107 exitK: "exitFullscreen", 11108 elementK: "fullscreenElement", 11109 eventK: d 11110 } : c.mozRequestFullScreen ? b = { 11111 enterK: "mozRequestFullScreen", 11112 exitK: "mozCancelFullScreen", 11113 elementK: "mozFullScreenElement", 11114 eventK: "moz" + d 11115 } : c.webkitRequestFullscreen ? b = { 11116 enterK: "webkitRequestFullscreen", 11117 exitK: "webkitExitFullscreen", 11118 elementK: "webkitFullscreenElement", 11119 eventK: "webkit" + d 11120 } : c.msRequestFullscreen && (b = { 11121 enterK: "msRequestFullscreen", 11122 exitK: "msExitFullscreen", 11123 elementK: "msFullscreenElement", 11124 eventK: "MSFullscreenChange" 11125 }), 11126 b && (b.enter = function() { 11127 return j = q.closeOnScroll, 11128 q.closeOnScroll = !1, 11129 "webkitRequestFullscreen" !== this.enterK ? a.template[this.enterK]() : void a.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT) 11130 } 11131 , 11132 b.exit = function() { 11133 return q.closeOnScroll = j, 11134 document[this.exitK]() 11135 } 11136 , 11137 b.isFullscreen = function() { 11138 return document[this.elementK] 11139 } 11140 ), 11141 b 11142 } 11143 } 11144}), 11145"object" == typeof navigator && function(a, b) { 11146 "object" == typeof exports && "undefined" != typeof module ? module.exports = b() : "function" == typeof define && define.amd ? define("Plyr", b) : a.Plyr = b() 11147}(this, function() { 11148 "use strict"; 11149 function a(a, b) { 11150 return a(b = { 11151 exports: {} 11152 }, b.exports), 11153 b.exports 11154 } 11155 function b(a) { 11156 var b, c; 11157 this.promise = new a(function(a, d) { 11158 if (void 0 !== b || void 0 !== c) 11159 throw TypeError("Bad Promise constructor"); 11160 b = a, 11161 c = d 11162 } 11163 ), 11164 this.resolve = ka(b), 11165 this.reject = ka(c) 11166 } 11167 function c(a, b, c) { 11168 var d = arguments.length > 3 && void 0 !== arguments[3] && arguments[3] 11169 , e = this 11170 , f = !(arguments.length > 4 && void 0 !== arguments[4]) || arguments[4] 11171 , g = arguments.length > 5 && void 0 !== arguments[5] && arguments[5]; 11172 if (a && "addEventListener"in a && !Qf.empty(b) && Qf.function(c)) { 11173 var h = b.split(" ") 11174 , i = g; 11175 Rf && (i = { 11176 passive: f, 11177 capture: g 11178 }), 11179 h.forEach(function(b) { 11180 e && e.eventListeners && d && e.eventListeners.push({ 11181 element: a, 11182 type: b, 11183 callback: c, 11184 options: i 11185 }), 11186 a[d ? "addEventListener" : "removeEventListener"](b, c, i) 11187 }) 11188 } 11189 } 11190 function d(a) { 11191 var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "" 11192 , d = arguments[2] 11193 , e = !(arguments.length > 3 && void 0 !== arguments[3]) || arguments[3] 11194 , f = arguments.length > 4 && void 0 !== arguments[4] && arguments[4]; 11195 c.call(this, a, b, d, !0, e, f) 11196 } 11197 function e(a) { 11198 var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "" 11199 , d = arguments[2] 11200 , e = !(arguments.length > 3 && void 0 !== arguments[3]) || arguments[3] 11201 , f = arguments.length > 4 && void 0 !== arguments[4] && arguments[4]; 11202 c.call(this, a, b, d, !1, e, f) 11203 } 11204 function f(a) { 11205 var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "" 11206 , d = arguments[2] 11207 , f = !(arguments.length > 3 && void 0 !== arguments[3]) || arguments[3] 11208 , g = arguments.length > 4 && void 0 !== arguments[4] && arguments[4]; 11209 c.call(this, a, b, function c() { 11210 e(a, b, c, f, g); 11211 for (var h = arguments.length, i = Array(h), j = 0; j < h; j++) 11212 i[j] = arguments[j]; 11213 d.apply(this, i) 11214 }, !0, f, g) 11215 }
vendor: 1,064 bytes, lines 11216-11244
11216 function g(a) { 11217 var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "" 11218 , c = arguments.length > 2 && void 0 !== arguments[2] && arguments[2] 11219 , d = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}; 11220 if (Qf.element(a) && !Qf.empty(b)) { 11221 var e = new CustomEvent(b,{ 11222 bubbles: c, 11223 detail: Object.assign({}, d, { 11224 plyr: this 11225 }) 11226 }); 11227 a.dispatchEvent(e) 11228 } 11229 } 11230 function h(a, b) { 11231 var c = a.length ? a : [a]; 11232 Array.from(c).reverse().forEach(function(a, c) { 11233 var d = c > 0 ? b.cloneNode(!0) : b 11234 , e = a.parentNode 11235 , f = a.nextSibling; 11236 d.appendChild(a), 11237 f ? e.insertBefore(d, f) : e.appendChild(d) 11238 }) 11239 } 11240 function i(a, b) { 11241 Qf.element(a) && !Qf.empty(b) && Object.entries(b).filter(function(a) { 11242 var b = Vf(a, 2)[1]; 11243 return !Qf.nullOrUndefined(b) 11244 }
11244).forEach(function(b) { 11245 var c = Vf(b, 2) 11246 , d = c[0] 11247 , e = c[1]; 11248 return a.setAttribute(d, e) 11249 }) 11250 } 11251 function j(a, b, c) { 11252 var d = document.createElement(a); 11253 return Qf.object(b) && i(d, b), 11254 Qf.string(c) && (d.innerText = c), 11255 d 11256 } 11257 function k(a, b, c, d) { 11258 b.appendChild(j(a, c, d)) 11259 } 11260 function l(a) { 11261 Qf.nodeList(a) || Qf.array(a) ? Array.from(a).forEach(l) : Qf.element(a) && Qf.element(a.parentNode) && a.parentNode.removeChild(a) 11262 } 11263 function m(a) { 11264 for (var b = a.childNodes.length; b > 0; ) 11265 a.removeChild(a.lastChild), 11266 b -= 1 11267 } 11268 function n(a, b) { 11269 return Qf.element(b) && Qf.element(b.parentNode) && Qf.element(a) ? (b.parentNode.replaceChild(a, b), 11270 a) : null 11271 } 11272 function o(a, b) { 11273 if (!Qf.string(a) || Qf.empty(a)) 11274 return {}; 11275 var c = {} 11276 , d = b; 11277 return a.split(",").forEach(function(a) { 11278 var b = a.trim() 11279 , e = b.replace(".", "") 11280 , f = b.replace(/[[\]]/g, "").split("=") 11281 , g = f[0] 11282 , h = f.length > 1 ? f[1].replace(/["']/g, "") : ""; 11283 switch (b.charAt(0)) { 11284 case ".": 11285 Qf.object(d) && Qf.string(d.class) && (d.class += " " + e), 11286 c.class = e; 11287 break; 11288 case "#": 11289 c.id = b.replace("#", ""); 11290 break; 11291 case "[": 11292 c[g] = h 11293 } 11294 }), 11295 c 11296 } 11297 function p(a, b) { 11298 if (Qf.element(a)) { 11299 var c = b; 11300 Qf.boolean(c) || (c = !a.hasAttribute("hidden")), 11301 c ? a.setAttribute("hidden", "") : a.removeAttribute("hidden") 11302 } 11303 } 11304 function q(a, b, c) { 11305 if (Qf.element(a)) { 11306 var d = "toggle"; 11307 return void 0 !== c && (d = c ? "add" : "remove"), 11308 a.classList[d](b), 11309 a.classList.contains(b) 11310 } 11311 return null 11312 } 11313 function r(a, b) { 11314 return Qf.element(a) && a.classList.contains(b) 11315 } 11316 function s(a, b) { 11317 var c = { 11318 Element: Element 11319 }; 11320 return (c.matches || c.webkitMatchesSelector || c.mozMatchesSelector || c.msMatchesSelector || function() { 11321 return Array.from(document.querySelectorAll(b)).includes(this) 11322 } 11323 ).call(a, b) 11324 } 11325 function t(a) { 11326 return this.elements.container.querySelectorAll(a) 11327 } 11328 function u(a) { 11329 return this.elements.container.querySelector(a) 11330 } 11331 function v() { 11332 var a = document.activeElement; 11333 return a = a && a !== document.body ? document.querySelector(":focus") : null 11334 } 11335 function w(a, b) { 11336 return b.split(".").reduce(function(a, b) { 11337 return a && a[b] 11338 }, a) 11339 } 11340 function x() { 11341 for (var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, b = arguments.length, c = Array(b > 1 ? b - 1 : 0), d = 1; d < b; d++) 11342 c[d - 1] = arguments[d]; 11343 if (!c.length) 11344 return a; 11345 var e = c.shift(); 11346 return Qf.object(e) ? (Object.keys(e).forEach(function(b) { 11347 Qf.object(e[b]) ? (Object.keys(a).includes(b) || Object.assign(a, Uf({}, b, {})), 11348 x(a[b], e[b])) : Object.assign(a, Uf({}, b, e[b])) 11349 }), 11350 x.apply(void 0, [a].concat(c))) : a 11351 } 11352 function y(a) { 11353 for (var b = arguments.length, c = Array(b > 1 ? b - 1 : 0), d = 1; d < b; d++) 11354 c[d - 1] = arguments[d]; 11355 return Qf.empty(a) ? a : a.toString().replace(/{(\d+)}/g, function(a, b) { 11356 return c[b].toString() 11357 }) 11358 } 11359 function z() { 11360 var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "" 11361 , b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "" 11362 , c = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : ""; 11363 return a.replace(new RegExp(b.toString().replace(/([.*+?^=!:${}()|[\]\/\\])/g, "\\$1"),"g"), c.toString()) 11364 } 11365 function A() { 11366 return (arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "").toString().replace(/\w\S*/g, function(a) { 11367 return a.charAt(0).toUpperCase() + a.substr(1).toLowerCase() 11368 }) 11369 } 11370 function B() { 11371 var a = (arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "").toString(); 11372 return (a = function() { 11373 var a = (arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "").toString(); 11374 return a = z(a, "-", " "), 11375 a = z(a, "_", " "), 11376 z(a = A(a), " ", "") 11377 }(a)).charAt(0).toLowerCase() + a.slice(1) 11378 } 11379 function C(a) { 11380 var b = document.createElement("div"); 11381 return b.appendChild(a), 11382 b.innerHTML 11383 } 11384 function D(a) { 11385 return Qf.array(a) ? a.filter(function(b, c) { 11386 return a.indexOf(b) === c 11387 }) : a 11388 } 11389 function E(a) { 11390 var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "text"; 11391 return new Promise(function(c, d) { 11392 try { 11393 var e = new XMLHttpRequest; 11394 if (!("withCredentials"in e)) 11395 return; 11396 e.addEventListener("load", function() { 11397 if ("text" === b) 11398 try { 11399 c(JSON.parse(e.responseText)) 11400 } catch (a) { 11401 c(e.responseText) 11402 } 11403 else 11404 c(e.response) 11405 }), 11406 e.addEventListener("error", function() { 11407 throw new Error(e.status) 11408 }), 11409 e.open("GET", a, !0), 11410 e.responseType = b, 11411 e.send() 11412 } catch (a) { 11413 d(a) 11414 } 11415 } 11416 ) 11417 } 11418 function F(a, b) { 11419 if (Qf.string(a)) { 11420 var c = Qf.string(b) 11421 , d = function() { 11422 return null !== document.getElementById(b) 11423 } 11424 , e = function(a, b) { 11425 a.innerHTML = b, 11426 c && d() || document.body.insertAdjacentElement("afterbegin", a) 11427 }; 11428 if (!c || !d()) { 11429 var f = ag.supported 11430 , g = document.createElement("div"); 11431 if (g.setAttribute("hidden", ""), 11432 c && g.setAttribute("id", b), 11433 f) { 11434 var h = window.localStorage.getItem("cache-" + b); 11435 if (null !== h) { 11436 var i = JSON.parse(h); 11437 e(g, i.content) 11438 } 11439 } 11440 E(a).then(function(a) { 11441 Qf.empty(a) || (f && window.localStorage.setItem("cache-" + b, JSON.stringify({ 11442 content: a 11443 })), 11444 e(g, a)) 11445 }).catch(function() {}) 11446 } 11447 } 11448 } 11449 function G() { 11450 var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0 11451 , b = arguments.length > 1 && void 0 !== arguments[1] && arguments[1] 11452 , c = arguments.length > 2 && void 0 !== arguments[2] && arguments[2]; 11453 if (!Qf.number(a)) 11454 return G(null, b, c); 11455 var d = function(a) { 11456 return ("0" + a).slice(-2) 11457 } 11458 , e = bg(a) 11459 , f = cg(a) 11460 , g = dg(a); 11461 return b || e > 0 ? e += ":" : e = "", 11462 (c && a > 0 ? "-" : "") + e + d(f) + ":" + d(g) 11463 } 11464 function H(a) { 11465 var b = a; 11466 if (!(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1]) { 11467 var c = document.createElement("a"); 11468 c.href = b, 11469 b = c.href 11470 } 11471 try { 11472 return new URL(b) 11473 } catch (a) { 11474 return null 11475 } 11476 } 11477 function I(a) { 11478 var b = new URLSearchParams;
11479 return Qf.object(a) && Object.entries(a).forEach(function(a) { 11480 var c = Vf(a, 2) 11481 , d = c[0] 11482 , e = c[1]; 11483 b.set(d, e) 11484 }), 11485 b 11486 } 11487 function J() { 11488 if (this.enabled) { 11489 var a = this.player.elements.buttons.fullscreen; 11490 Qf.element(a) && (a.pressed = this.active), 11491 g.call(this.player, this.target, this.active ? "enterfullscreen" : "exitfullscreen", !0), 11492 Xf.isIos || function() { 11493 var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null 11494 , b = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; 11495 if (Qf.element(a)) { 11496 var d = t.call(this, "button:not(:disabled), input:not(:disabled), [tabindex]") 11497 , e = d[0] 11498 , f = d[d.length - 1]; 11499 c.call(this, this.elements.container, "keydown", function(a) { 11500 if ("Tab" === a.key && 9 === a.keyCode) { 11501 var b = v(); 11502 b !== f || a.shiftKey ? b === e && a.shiftKey && (f.focus(), 11503 a.preventDefault()) : (e.focus(), 11504 a.preventDefault()) 11505 } 11506 }, b, !1) 11507 } 11508 } 11509 .call(this.player, this.target, this.active) 11510 } 11511 } 11512 function K() { 11513 var a = arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; 11514 a ? this.scrollPosition = { 11515 x: window.scrollX || 0, 11516 y: window.scrollY || 0 11517 } : window.scrollTo(this.scrollPosition.x, this.scrollPosition.y), 11518 document.body.style.overflow = a ? "hidden" : "", 11519 q(this.target, this.player.config.classNames.fullscreen.fallback, a), 11520 J.call(this) 11521 } 11522 function L(a) { 11523 var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1; 11524 return new Promise(function(c, d) { 11525 var e = new Image 11526 , f = function() { 11527 delete e.onload, 11528 delete e.onerror, 11529 (e.naturalWidth >= b ? c : d)(e) 11530 }; 11531 Object.assign(e, { 11532 onload: f, 11533 onerror: f, 11534 src: a 11535 }) 11536 } 11537 ) 11538 } 11539 function M(a) { 11540 return new Promise(function(b, c) { 11541 og(a, { 11542 success: b, 11543 error: c 11544 }) 11545 } 11546 ) 11547 } 11548 function N(a) { 11549 a && !this.embed.hasPlayed && (this.embed.hasPlayed = !0), 11550 this.media.paused === a && (this.media.paused = !a, 11551 g.call(this, this.media, a ? "play" : "pause")) 11552 } 11553 function O(a) { 11554 var b = Object.entries({ 11555 hd2160: 2160, 11556 hd1440: 1440, 11557 hd1080: 1080, 11558 hd720: 720, 11559 large: 480, 11560 medium: 360, 11561 small: 240, 11562 tiny: 144 11563 }).find(function(b) { 11564 return b.includes(a) 11565 }); 11566 return b ? b.find(function(b) { 11567 return b !== a 11568 }) : "default" 11569 } 11570 function P(a) { 11571 a && !this.embed.hasPlayed && (this.embed.hasPlayed = !0), 11572 this.media.paused === a && (this.media.paused = !a, 11573 g.call(this, this.media, a ? "play" : "pause")) 11574 } 11575 var Q = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {} 11576 , R = a(function(a) { 11577 var b = a.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")(); 11578 "number" == typeof __g && (__g = b) 11579 }) 11580 , S = a(function(a) { 11581 var b = a.exports = { 11582 version: "2.5.3" 11583 }; 11584 "number" == typeof __e && (__e = b) 11585 }) 11586 , T = (S.version, 11587 function(a) { 11588 return "object" == typeof a ? null !== a : "function" == typeof a 11589 } 11590 ) 11591 , U = function(a) { 11592 if (!T(a)) 11593 throw TypeError(a + " is not an object!"); 11594 return a 11595 } 11596 , V = function(a) { 11597 try { 11598 return !!a() 11599 } catch (a) { 11600 return !0 11601 } 11602 } 11603 , W = !V(function() { 11604 return 7 != Object.defineProperty({}, "a", { 11605 get: function() { 11606 return 7 11607 } 11608 }).a 11609 }) 11610 , X = R.document 11611 , Y = T(X) && T(X.createElement) 11612 , Z = function(a) { 11613 return Y ? X.createElement(a) : {} 11614 } 11615 , $ = !W && !V(function() { 11616 return 7 != Object.defineProperty(Z("div"), "a", { 11617 get: function() { 11618 return 7 11619 } 11620 }).a 11621 }) 11622 , _ = function(a, b) { 11623 if (!T(a)) 11624 return a; 11625 var c, d; 11626 if (b && "function" == typeof (c = a.toString) && !T(d = c.call(a))) 11627 return d; 11628 if ("function" == typeof (c = a.valueOf) && !T(d = c.call(a))) 11629 return d; 11630 if (!b && "function" == typeof (c = a.toString) && !T(d = c.call(a))) 11631 return d; 11632 throw TypeError("Can't convert object to primitive value") 11633 } 11634 , aa = Object.defineProperty 11635 , ba = { 11636 f: W ? Object.defineProperty : function(a, b, c) { 11637 if (U(a), 11638 b = _(b, !0), 11639 U(c), 11640 $) 11641 try { 11642 return aa(a, b, c) 11643 } catch (a) {} 11644 if ("get"in c || "set"in c) 11645 throw TypeError("Accessors not supported!"); 11646 return "value"in c && (a[b] = c.value), 11647 a 11648 } 11649 } 11650 , ca = function(a, b) { 11651 return { 11652 enumerable: !(1 & a), 11653 configurable: !(2 & a), 11654 writable: !(4 & a), 11655 value: b 11656 } 11657 } 11658 , da = W ? function(a, b, c) { 11659 return ba.f(a, b, ca(1, c)) 11660 } 11661 : function(a, b, c) { 11662 return a[b] = c, 11663 a 11664 } 11665 , ea = {}.hasOwnProperty 11666 , fa = function(a, b) { 11667 return ea.call(a, b) 11668 } 11669 , ga = 0 11670 , ha = Math.random() 11671 , ia = function(a) { 11672 return "Symbol(".concat(void 0 === a ? "" : a, ")_", (++ga + ha).toString(36)) 11673 } 11674 , ja = a(function(a) { 11675 var b = ia("src") 11676 , c = Function.toString 11677 , d = ("" + c).split("toString"); 11678 S.inspectSource = function(a) { 11679 return c.call(a) 11680 } 11681 , 11682 (a.exports = function(a, c, e, f) { 11683 var g = "function" == typeof e; 11684 g && (fa(e, "name") || da(e, "name", c)), 11685 a[c] !== e && (g && (fa(e, b) || da(e, b, a[c] ? "" + a[c] : d.join(String(c)))), 11686 a === R ? a[c] = e : f ? a[c] ? a[c] = e : da(a, c, e) : (delete a[c], 11687 da(a, c, e))) 11688 } 11689 )(Function.prototype, "toString", function() { 11690 return "function" == typeof this && this[b] || c.call(this) 11691 }) 11692 }) 11693 , ka = function(a) { 11694 if ("function" != typeof a) 11695 throw TypeError(a + " is not a function!"); 11696 return a 11697 } 11698 , la = function(a, b, c) { 11699 if (ka(a), 11700 void 0 === b) 11701 return a; 11702 switch (c) { 11703 case 1: 11704 return function(c) { 11705 return a.call(b, c) 11706 } 11707 ; 11708 case 2: 11709 return function(c, d) { 11710 return a.call(b, c, d) 11711 } 11712 ; 11713 case 3: 11714 return function(c, d, e) { 11715 return a.call(b, c, d, e) 11716 } 11717 } 11718 return function() { 11719 return a.apply(b, arguments) 11720 } 11721 } 11722 , ma = function(a, b, c) { 11723 var d, e, f, g, h = a & ma.F, i = a & ma.G, j = a & ma.S, k = a & ma.P, l = a & ma.B, m = i ? R : j ? R[b] || (R[b] = {}) : (R[b] || {}).prototype, n = i ? S : S[b] || (S[b] = {}), o = n.prototype || (n.prototype = {}); 11724 for (d in i && (c = b), 11725 c) 11726 f = ((e = !h && m && void 0 !== m[d]) ? m : c)[d], 11727 g = l && e ? la(f, R) : k && "function" == typeof f ? la(Function.call, f) : f, 11728 m && ja(m, d, f, a & ma.U), 11729 n[d] != f && da(n, d, g), 11730 k && o[d] != f && (o[d] = f) 11731 }; 11732 R.core = S, 11733 ma.F = 1, 11734 ma.G = 2, 11735 ma.S = 4, 11736 ma.P = 8, 11737 ma.B = 16, 11738 ma.W = 32, 11739 ma.U = 64, 11740 ma.R = 128; 11741 for (var na, oa = ma, pa = ia("typed_array"), qa = ia("view"), ra = !(!R.ArrayBuffer || !R.DataView), sa = ra, ta = 0, ua = "Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(","); ta < 9; ) 11742 (na = R[ua[ta++]]) ? (da(na.prototype, pa, !0), 11743 da(na.prototype, qa, !0)) : sa = !1; 11744 var va = { 11745 ABV: ra, 11746 CONSTR: sa, 11747 TYPED: pa, 11748 VIEW: qa 11749 } 11750 , wa = function(a, b, c) { 11751 for (var d in b) 11752 ja(a, d, b[d], c); 11753 return a 11754 } 11755 , xa = function(a, b, c, d) { 11756 if (!(a instanceof b) || void 0 !== d && d in a) 11757 throw TypeError(c + ": incorrect invocation!"); 11758 return a 11759 } 11760 , ya = Math.ceil 11761 , za = Math.floor 11762 , Aa = function(a) { 11763 return isNaN(a = +a) ? 0 : (a > 0 ? za : ya)(a) 11764 } 11765 , Ba = Math.min 11766 , Ca = function(a) { 11767 return a > 0 ? Ba(Aa(a), 9007199254740991) : 0 11768 } 11769 , Da = function(a) { 11770 if (void 0 === a) 11771 return 0; 11772 var b = Aa(a) 11773 , c = Ca(b); 11774 if (b !== c) 11775 throw RangeError("Wrong length!"); 11776 return c 11777 } 11778 , Ea = {}.toString 11779 , Fa = function(a) { 11780 return Ea.call(a).slice(8, -1) 11781 } 11782 , Ga = Object("z").propertyIsEnumerable(0) ? Object : function(a) { 11783 return "String" == Fa(a) ? a.split("") : Object(a) 11784 } 11785 , Ha = function(a) { 11786 if (null == a) 11787 throw TypeError("Can't call method on " + a); 11788 return a 11789 } 11790 , Ia = function(a) { 11791 return Ga(Ha(a)) 11792 } 11793 , Ja = Math.max 11794 , Ka = Math.min 11795 , La = function(a, b) { 11796 return (a = Aa(a)) < 0 ? Ja(a + b, 0) : Ka(a, b) 11797 } 11798 , Ma = function(a) { 11799 return function(b, c, d) { 11800 var e, f = Ia(b), g = Ca(f.length), h = La(d, g); 11801 if (a && c != c) { 11802 for (; g > h; ) 11803 if ((e = f[h++]) != e) 11804 return !0 11805 } else 11806 for (; g > h; h++) 11807 if ((a || h in f) && f[h] === c) 11808 return a || h || 0; 11809 return !a && -1 11810 } 11811 } 11812 , Na = R["__core-js_shared__"] || (R["__core-js_shared__"] = {}) 11813 , Oa = function(a) { 11814 return Na[a] || (Na[a] = {}) 11815 } 11816 , Pa = Oa("keys") 11817 , Qa = function(a) { 11818 return Pa[a] || (Pa[a] = ia(a)) 11819 } 11820 , Ra = Ma(!1) 11821 , Sa = Qa("IE_PROTO") 11822 , Ta = function(a, b) { 11823 var c, d = Ia(a), e = 0, f = []; 11824 for (c in d) 11825 c != Sa && fa(d, c) && f.push(c); 11826 for (; b.length > e; ) 11827 fa(d, c = b[e++]) && (~Ra(f, c) || f.push(c)); 11828 return f 11829 } 11830 , Ua = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleStr
vendor: 18,791 bytes, lines 11830-12432
11830ing,toString,valueOf".split(",") 11831 , Va = Ua.concat("length", "prototype") 11832 , Wa = { 11833 f: Object.getOwnPropertyNames || function(a) { 11834 return Ta(a, Va) 11835 } 11836 } 11837 , Xa = function(a) { 11838 return Object(Ha(a)) 11839 } 11840 , Ya = function(a) { 11841 for (var b = Xa(this), c = Ca(b.length), d = arguments.length, e = La(d > 1 ? arguments[1] : void 0, c), f = d > 2 ? arguments[2] : void 0, g = void 0 === f ? c : La(f, c); g > e; ) 11842 b[e++] = a; 11843 return b 11844 } 11845 , Za = a(function(a) { 11846 var b = Oa("wks") 11847 , c = R.Symbol 11848 , d = "function" == typeof c; 11849 (a.exports = function(a) { 11850 return b[a] || (b[a] = d && c[a] || (d ? c : ia)("Symbol." + a)) 11851 } 11852 ).store = b 11853 }) 11854 , $a = ba.f 11855 , _a = Za("toStringTag") 11856 , ab = function(a, b, c) { 11857 a && !fa(a = c ? a : a.prototype, _a) && $a(a, _a, { 11858 configurable: !0, 11859 value: b 11860 }) 11861 } 11862 , bb = a(function(a, b) { 11863 function c(a, b, c) { 11864 var d, e, f, g = new Array(c), h = 8 * c - b - 1, i = (1 << h) - 1, j = i >> 1, k = 23 === b ? y(2, -24) - y(2, -77) : 0, l = 0, m = a < 0 || 0 === a && 1 / a < 0 ? 1 : 0; 11865 for ((a = x(a)) != a || a === v ? (e = a != a ? 1 : 0, 11866 d = i) : (d = z(A(a) / B), 11867 a * (f = y(2, -d)) < 1 && (d--, 11868 f *= 2), 11869 (a += d + j >= 1 ? k / f : k * y(2, 1 - j)) * f >= 2 && (d++, 11870 f /= 2), 11871 d + j >= i ? (e = 0, 11872 d = i) : d + j >= 1 ? (e = (a * f - 1) * y(2, b), 11873 d += j) : (e = a * y(2, j - 1) * y(2, b), 11874 d = 0)); b >= 8; g[l++] = 255 & e, 11875 e /= 256, 11876 b -= 8) 11877 ; 11878 for (d = d << b | e, 11879 h += b; h > 0; g[l++] = 255 & d, 11880 d /= 256, 11881 h -= 8) 11882 ; 11883 return g[--l] |= 128 * m, 11884 g 11885 } 11886 function d(a, b, c) { 11887 var d, e = 8 * c - b - 1, f = (1 << e) - 1, g = f >> 1, h = e - 7, i = c - 1, j = a[i--], k = 127 & j; 11888 for (j >>= 7; h > 0; k = 256 * k + a[i], 11889 i--, 11890 h -= 8) 11891 ; 11892 for (d = k & (1 << -h) - 1, 11893 k >>= -h, 11894 h += b; h > 0; d = 256 * d + a[i], 11895 i--, 11896 h -= 8) 11897 ; 11898 if (0 === k) 11899 k = 1 - g; 11900 else { 11901 if (k === f) 11902 return d ? NaN : j ? -v : v; 11903 d += y(2, b), 11904 k -= g 11905 } 11906 return (j ? -1 : 1) * d * y(2, k - b) 11907 } 11908 function e(a) { 11909 return a[3] << 24 | a[2] << 16 | a[1] << 8 | a[0] 11910 } 11911 function f(a) { 11912 return [255 & a] 11913 } 11914 function g(a) { 11915 return [255 & a, a >> 8 & 255] 11916 } 11917 function h(a) { 11918 return [255 & a, a >> 8 & 255, a >> 16 & 255, a >> 24 & 255] 11919 } 11920 function i(a) { 11921 return c(a, 52, 8) 11922 } 11923 function j(a) { 11924 return c(a, 23, 4) 11925 } 11926 function k(a, b, c) { 11927 o(a[p], b, { 11928 get: function() { 11929 return this[c] 11930 } 11931 }) 11932 } 11933 function l(a, b, c, d) { 11934 var e = Da(+c); 11935 if (e + b > a[D]) 11936 throw u(q); 11937 var f = a[C]._b 11938 , g = e + a[E] 11939 , h = f.slice(g, g + b); 11940 return d ? h : h.reverse() 11941 } 11942 function m(a, b, c, d, e, f) { 11943 var g = Da(+c); 11944 if (g + b > a[D]) 11945 throw u(q); 11946 for (var h = a[C]._b, i = g + a[E], j = d(+e), k = 0; k < b; k++) 11947 h[i + k] = j[f ? k : b - k - 1] 11948 } 11949 var n = Wa.f 11950 , o = ba.f 11951 , p = "prototype" 11952 , q = "Wrong index!" 11953 , r = R.ArrayBuffer 11954 , s = R.DataView 11955 , t = R.Math 11956 , u = R.RangeError 11957 , v = R.Infinity 11958 , w = r 11959 , x = t.abs 11960 , y = t.pow 11961 , z = t.floor 11962 , A = t.log 11963 , B = t.LN2 11964 , C = W ? "_b" : "buffer" 11965 , D = W ? "_l" : "byteLength" 11966 , E = W ? "_o" : "byteOffset"; 11967 if (va.ABV) { 11968 if (!V(function() { 11969 r(1) 11970 }) || !V(function() { 11971 new r(-1) 11972 }) || V(function() { 11973 return new r, 11974 new r(1.5), 11975 new r(NaN), 11976 "ArrayBuffer" != r.name 11977 })) { 11978 for (var F, G = (r = function(a) { 11979 return xa(this, r), 11980 new w(Da(a)) 11981 } 11982 )[p] = w[p], H = n(w), I = 0; H.length > I; ) 11983 (F = H[I++])in r || da(r, F, w[F]); 11984 G.constructor = r 11985 } 11986 var J = new s(new r(2)) 11987 , K = s[p].setInt8; 11988 J.setInt8(0, 2147483648), 11989 J.setInt8(1, 2147483649), 11990 !J.getInt8(0) && J.getInt8(1) || wa(s[p], { 11991 setInt8: function(a, b) { 11992 K.call(this, a, b << 24 >> 24) 11993 }, 11994 setUint8: function(a, b) { 11995 K.call(this, a, b << 24 >> 24) 11996 } 11997 }, !0) 11998 } else 11999 r = function(a) { 12000 xa(this, r, "ArrayBuffer"); 12001 var b = Da(a); 12002 this._b = Ya.call(new Array(b), 0), 12003 this[D] = b 12004 } 12005 , 12006 s = function(a, b, c) { 12007 xa(this, s, "DataView"), 12008 xa(a, r, "DataView"); 12009 var d = a[D] 12010 , e = Aa(b); 12011 if (e < 0 || e > d) 12012 throw u("Wrong offset!"); 12013 if (e + (c = void 0 === c ? d - e : Ca(c)) > d) 12014 throw u("Wrong length!"); 12015 this[C] = a, 12016 this[E] = e, 12017 this[D] = c 12018 } 12019 , 12020 W && (k(r, "byteLength", "_l"), 12021 k(s, "buffer", "_b"), 12022 k(s, "byteLength", "_l"), 12023 k(s, "byteOffset", "_o")), 12024 wa(s[p], { 12025 getInt8: function(a) { 12026 return l(this, 1, a)[0] << 24 >> 24 12027 }, 12028 getUint8: function(a) { 12029 return l(this, 1, a)[0] 12030 }, 12031 getInt16: function(a) { 12032 var b = l(this, 2, a, arguments[1]); 12033 return (b[1] << 8 | b[0]) << 16 >> 16 12034 }, 12035 getUint16: function(a) { 12036 var b = l(this, 2, a, arguments[1]); 12037 return b[1] << 8 | b[0] 12038 }, 12039 getInt32: function(a) { 12040 return e(l(this, 4, a, arguments[1])) 12041 }, 12042 getUint32: function(a) { 12043 return e(l(this, 4, a, arguments[1])) >>> 0 12044 }, 12045 getFloat32: function(a) { 12046 return d(l(this, 4, a, arguments[1]), 23, 4) 12047 }, 12048 getFloat64: function(a) { 12049 return d(l(this, 8, a, arguments[1]), 52, 8) 12050 }, 12051 setInt8: function(a, b) { 12052 m(this, 1, a, f, b) 12053 }, 12054 setUint8: function(a, b) { 12055 m(this, 1, a, f, b) 12056 }, 12057 setInt16: function(a, b) { 12058 m(this, 2, a, g, b, arguments[2]) 12059 }, 12060 setUint16: function(a, b) { 12061 m(this, 2, a, g, b, arguments[2]) 12062 }, 12063 setInt32: function(a, b) { 12064 m(this, 4, a, h, b, arguments[2]) 12065 }, 12066 setUint32: function(a, b) { 12067 m(this, 4, a, h, b, arguments[2]) 12068 }, 12069 setFloat32: function(a, b) { 12070 m(this, 4, a, j, b, arguments[2]) 12071 }, 12072 setFloat64: function(a, b) { 12073 m(this, 8, a, i, b, arguments[2]) 12074 } 12075 }); 12076 ab(r, "ArrayBuffer"), 12077 ab(s, "DataView"), 12078 da(s[p], va.VIEW, !0), 12079 b.ArrayBuffer = r, 12080 b.DataView = s 12081 }) 12082 , cb = Za("species") 12083 , db = function(a, b) { 12084 var c, d = U(a).constructor; 12085 return void 0 === d || null == (c = U(d)[cb]) ? b : ka(c) 12086 } 12087 , eb = Za("species") 12088 , fb = function(a) { 12089 var b = R[a]; 12090 W && b && !b[eb] && ba.f(b, eb, { 12091 configurable: !0, 12092 get: function() { 12093 return this 12094 } 12095 }) 12096 } 12097 , gb = R.ArrayBuffer 12098 , hb = bb.ArrayBuffer 12099 , ib = bb.DataView 12100 , jb = va.ABV && gb.isView 12101 , kb = hb.prototype.slice 12102 , lb = va.VIEW; 12103 oa(oa.G + oa.W + oa.F * (gb !== hb), { 12104 ArrayBuffer: hb 12105 }), 12106 oa(oa.S + oa.F * !va.CONSTR, "ArrayBuffer", { 12107 isView: function(a) { 12108 return jb && jb(a) || T(a) && lb in a 12109 } 12110 }), 12111 oa(oa.P + oa.U + oa.F * V(function() { 12112 return !new hb(2).slice(1, void 0).byteLength 12113 }), "ArrayBuffer", { 12114 slice: function(a, b) { 12115 if (void 0 !== kb && void 0 === b) 12116 return kb.call(U(this), a); 12117 for (var c = U(this).byteLength, d = La(a, c), e = La(void 0 === b ? c : b, c), f = new (db(this, hb))(Ca(e - d)), g = new ib(this), h = new ib(f), i = 0; d < e; ) 12118 h.setUint8(i++, g.getUint8(d++)); 12119 return f 12120 } 12121 }), 12122 fb("ArrayBuffer"); 12123 var mb = Za("toStringTag") 12124 , nb = "Arguments" == Fa(function() { 12125 return arguments 12126 }()) 12127 , ob = function(a) { 12128 var b, c, d; 12129 return void 0 === a ? "Undefined" : null === a ? "Null" : "string" == typeof (c = function(a, b) { 12130 try { 12131 return a[b] 12132 } catch (a) {} 12133 }(b = Object(a), mb)) ? c : nb ? Fa(b) : "Object" == (d = Fa(b)) && "function" == typeof b.callee ? "Arguments" : d 12134 } 12135 , pb = {} 12136 , qb = Za("iterator") 12137 , rb = Array.prototype 12138 , sb = function(a) { 12139 return void 0 !== a && (pb.Array === a || rb[qb] === a) 12140 } 12141 , tb = Object.keys || function(a) { 12142 return Ta(a, Ua) 12143 } 12144 , ub = W ? Object.defineProperties : function(a, b) { 12145 U(a); 12146 for (var c, d = tb(b), e = d.length, f = 0; e > f; ) 12147 ba.f(a, c = d[f++], b[c]); 12148 return a 12149 } 12150 , vb = R.document 12151 , wb = vb && vb.documentElement 12152 , xb = Qa("IE_PROTO") 12153 , yb = function() {} 12154 , zb = function() { 12155 var a, b = Z("iframe"), c = Ua.length; 12156 for (b.style.display = "none", 12157 wb.appendChild(b), 12158 b.src = "javascript:", 12159 (a = b.contentWindow.document).open(), 12160 a.write("<script>document.F=Object<\/script>"), 12161 a.close(), 12162 zb = a.F; c--; ) 12163 delete zb.prototype[Ua[c]]; 12164 return zb() 12165 } 12166 , Ab = Object.create || function(a, b) { 12167 var c; 12168 return null !== a ? (yb.prototype = U(a), 12169 c = new yb, 12170 yb.prototype = null, 12171 c[xb] = a) : c = zb(), 12172 void 0 === b ? c : ub(c, b) 12173 } 12174 , Bb = Qa("IE_PROTO") 12175 , Cb = Object.prototype 12176 , Db = Object.getPrototypeOf || function(a) { 12177 return a = Xa(a), 12178 fa(a, Bb) ? a[Bb] : "function" == typeof a.constructor && a instanceof a.constructor ? a.constructor.prototype : a instanceof Object ? Cb : null 12179 } 12180 , Eb = Za("iterator") 12181 , Fb = S.getIteratorMethod = function(a) { 12182 if (null != a) 12183 return a[Eb] || a["@@iterator"] || pb[ob(a)] 12184 } 12185 , Gb = Array.isArray || function(a) { 12186 return "Array" == Fa(a) 12187 } 12188 , Hb = Za("species") 12189 , Ib = function(a, b) { 12190 return new (function(a) { 12191 var b; 12192 return Gb(a) && ("function" != typeof (b = a.constructor) || b !== Array && !Gb(b.prototype) || (b = void 0), 12193 T(b) && null === (b = b[Hb]) && (b = void 0)), 12194 void 0 === b ? Array : b 12195 }(a))(b) 12196 } 12197 , Jb = function(a, b) { 12198 var c = 1 == a 12199 , d = 2 == a 12200 , e = 3 == a 12201 , f = 4 == a 12202 , g = 6 == a 12203 , h = 5 == a || g 12204 , i = b || Ib; 12205 return function(b, j, k) { 12206 for (var l, m, n = Xa(b), o = Ga(n), p = la(j, k, 3), q = Ca(o.length), r = 0, s = c ? i(b, q) : d ? i(b, 0) : void 0; q > r; r++) 12207 if ((h || r in o) && (m = p(l = o[r], r, n), 12208 a)) 12209 if (c) 12210 s[r] = m; 12211 else if (m) 12212 switch (a) { 12213 case 3: 12214 return !0; 12215 case 5: 12216 return l; 12217 case 6: 12218 return r; 12219 case 2: 12220 s.push(l) 12221 } 12222 else if (f) 12223 return !1; 12224 return g ? -1 : e || f ? f : s 12225 } 12226 } 12227 , Kb = Za("unscopables") 12228 , Lb = Array.prototype; 12229 null == Lb[Kb] && da(Lb, Kb, {}); 12230 var Mb = function(a) { 12231 Lb[Kb][a] = !0 12232 } 12233 , Nb = function(a, b) { 12234 return { 12235 value: b, 12236 done: !!a 12237 } 12238 } 12239 , Ob = {}; 12240 da(Ob, Za("iterator"), function() { 12241 return this 12242 }); 12243 var Pb = function(a, b, c) { 12244 a.prototype = Ab(Ob, { 12245 next: ca(1, c) 12246 }), 12247 ab(a, b + " Iterator") 12248 } 12249 , Qb = Za("iterator") 12250 , Rb = !([].keys && "next"in [].keys()) 12251 , Sb = function() { 12252 return this 12253 } 12254 , Tb = function(a, b, c, d, e, f, g) { 12255 Pb(c, b, d); 12256 var h, i, j, k = function(a) { 12257 if (!Rb && a in o) 12258 return o[a]; 12259 switch (a) { 12260 case "keys": 12261 case "values": 12262 return function() { 12263 return new c(this,a) 12264 } 12265 } 12266 return function() { 12267 return new c(this,a) 12268 } 12269 }, l = b + " Iterator", m = "values" == e, n = !1, o = a.prototype, p = o[Qb] || o["@@iterator"] || e && o[e], q = !Rb && p || k(e), r = e ? m ? k("entries") : q : void 0, s = "Array" == b && o.entries || p; 12270 if (s && (j = Db(s.call(new a))) !== Object.prototype && j.next && (ab(j, l, !0), 12271 fa(j, Qb) || da(j, Qb, Sb)), 12272 m && p && "values" !== p.name && (n = !0, 12273 q = function() { 12274 return p.call(this) 12275 } 12276 ), 12277 (Rb || n || !o[Qb]) && da(o, Qb, q), 12278 pb[b] = q, 12279 pb[l] = Sb, 12280 e) 12281 if (h = { 12282 values: m ? q : k("values"), 12283 keys: f ? q : k("keys"), 12284 entries: r 12285 }, 12286 g) 12287 for (i in h) 12288 i in o || ja(o, i, h[i]); 12289 else 12290 oa(oa.P + oa.F * (Rb || n), b, h); 12291 return h 12292 } 12293 , Ub = Tb(Array, "Array", function(a, b) { 12294 this._t = Ia(a), 12295 this._i = 0, 12296 this._k = b 12297 }, function() { 12298 var a = this._t 12299 , b = this._k 12300 , c = this._i++; 12301 return !a || c >= a.length ? (this._t = void 0, 12302 Nb(1)) : Nb(0, "keys" == b ? c : "values" == b ? a[c] : [c, a[c]]) 12303 }, "values"); 12304 pb.Arguments = pb.Array, 12305 Mb("keys"), 12306 Mb("values"), 12307 Mb("entries"); 12308 var Vb = Za("iterator") 12309 , Wb = !1; 12310 try { 12311 [7][Vb]().return = function() { 12312 Wb = !0 12313 } 12314 } catch (Q) {} 12315 var Xb = function(a, b) { 12316 if (!b && !Wb) 12317 return !1; 12318 var c = !1; 12319 try { 12320 var d = [7] 12321 , e = d[Vb](); 12322 e.next = function() { 12323 return { 12324 done: c = !0 12325 } 12326 } 12327 , 12328 d[Vb] = function() { 12329 return e 12330 } 12331 , 12332 a(d) 12333 } catch (a) {} 12334 return c 12335 } 12336 , Yb = [].copyWithin || function(a, b) { 12337 var c = Xa(this) 12338 , d = Ca(c.length) 12339 , e = La(a, d) 12340 , f = La(b, d) 12341 , g = arguments.length > 2 ? arguments[2] : void 0 12342 , h = Math.min((void 0 === g ? d : La(g, d)) - f, d - e) 12343 , i = 1; 12344 for (f < e && e < f + h && (i = -1, 12345 f += h - 1, 12346 e += h - 1); h-- > 0; ) 12347 f in c ? c[e] = c[f] : delete c[e], 12348 e += i, 12349 f += i; 12350 return c 12351 } 12352 , Zb = { 12353 f: {}.propertyIsEnumerable 12354 } 12355 , $b = Object.getOwnPropertyDescriptor 12356 , _b = { 12357 f: W ? $b : function(a, b) { 12358 if (a = Ia(a), 12359 b = _(b, !0), 12360 $) 12361 try { 12362 return $b(a, b) 12363 } catch (a) {} 12364 if (fa(a, b)) 12365 return ca(!Zb.f.call(a, b), a[b]) 12366 } 12367 } 12368 , ac = a(function(a) { 12369 if (W) { 12370 var b = R 12371 , c = V 12372 , d = oa 12373 , e = va 12374 , f = bb 12375 , g = la 12376 , h = xa 12377 , i = ca 12378 , j = da 12379 , k = wa 12380 , l = Aa 12381 , m = Ca 12382 , n = Da 12383 , o = La 12384 , p = _ 12385 , q = fa 12386 , r = ob 12387 , s = T 12388 , t = Xa 12389 , u = sb 12390 , v = Ab 12391 , w = Db 12392 , x = Wa.f 12393 , y = Fb 12394 , z = ia 12395 , A = Za 12396 , B = Jb 12397 , C = Ma 12398 , D = db 12399 , E = Ub 12400 , F = pb 12401 , G = Xb 12402 , H = fb 12403 , I = Ya 12404 , J = Yb 12405 , K = ba 12406 , L = _b 12407 , M = K.f 12408 , N = L.f 12409 , O = b.RangeError 12410 , P = b.TypeError 12411 , Q = b.Uint8Array 12412 , S = Array.prototype 12413 , U = f.ArrayBuffer 12414 , X = f.DataView 12415 , Y = B(0) 12416 , Z = B(2) 12417 , $ = B(3) 12418 , aa = B(4) 12419 , ea = B(5) 12420 , ga = B(6) 12421 , ha = C(!0) 12422 , ja = C(!1) 12423 , ka = E.values 12424 , ma = E.keys 12425 , na = E.entries 12426 , pa = S.lastIndexOf 12427 , qa = S.reduce 12428 , ra = S.reduceRight 12429 , sa = S.join 12430 , ta = S.sort 12431 , ua = S.slice 12432 , ya = S.toString
vendor: 6,049 bytes, lines 12433-12586
12433 , za = S.toLocaleString 12434 , Ba = A("iterator") 12435 , Ea = A("toStringTag") 12436 , Fa = z("typed_constructor") 12437 , Ga = z("def_constructor") 12438 , Ha = e.CONSTR 12439 , Ia = e.TYPED 12440 , Ja = e.VIEW 12441 , Ka = B(1, function(a, b) { 12442 return Ra(D(a, a[Ga]), b) 12443 }) 12444 , Na = c(function() { 12445 return 1 === new Q(new Uint16Array([1]).buffer)[0] 12446 }) 12447 , Oa = !!Q && !!Q.prototype.set && c(function() { 12448 new Q(1).set({}) 12449 }) 12450 , Pa = function(a, b) { 12451 var c = l(a); 12452 if (c < 0 || c % b) 12453 throw O("Wrong offset!"); 12454 return c 12455 } 12456 , Qa = function(a) { 12457 if (s(a) && Ia in a) 12458 return a; 12459 throw P(a + " is not a typed array!") 12460 } 12461 , Ra = function(a, b) { 12462 if (!(s(a) && Fa in a)) 12463 throw P("It is not a typed array constructor!"); 12464 return new a(b) 12465 } 12466 , Sa = function(a, b) { 12467 return Ta(D(a, a[Ga]), b) 12468 } 12469 , Ta = function(a, b) { 12470 for (var c = 0, d = b.length, e = Ra(a, d); d > c; ) 12471 e[c] = b[c++]; 12472 return e 12473 } 12474 , Ua = function(a, b, c) { 12475 M(a, b, { 12476 get: function() { 12477 return this._d[c] 12478 } 12479 }) 12480 } 12481 , Va = function(a) { 12482 var b, c, d, e, f, h, i = t(a), j = arguments.length, k = j > 1 ? arguments[1] : void 0, l = void 0 !== k, n = y(i); 12483 if (null != n && !u(n)) { 12484 for (h = n.call(i), 12485 d = [], 12486 b = 0; !(f = h.next()).done; b++) 12487 d.push(f.value); 12488 i = d 12489 } 12490 for (l && j > 2 && (k = g(k, arguments[2], 2)), 12491 b = 0, 12492 c = m(i.length), 12493 e = Ra(this, c); c > b; b++) 12494 e[b] = l ? k(i[b], b) : i[b]; 12495 return e 12496 } 12497 , $a = function() { 12498 for (var a = 0, b = arguments.length, c = Ra(this, b); b > a; ) 12499 c[a] = arguments[a++]; 12500 return c 12501 } 12502 , _a = !!Q && c(function() { 12503 za.call(new Q(1)) 12504 }) 12505 , ab = function() { 12506 return za.apply(_a ? ua.call(Qa(this)) : Qa(this), arguments) 12507 } 12508 , cb = { 12509 copyWithin: function(a, b) { 12510 return J.call(Qa(this), a, b, arguments.length > 2 ? arguments[2] : void 0) 12511 }, 12512 every: function(a) { 12513 return aa(Qa(this), a, arguments.length > 1 ? arguments[1] : void 0) 12514 }, 12515 fill: function(a) { 12516 return I.apply(Qa(this), arguments) 12517 }, 12518 filter: function(a) { 12519 return Sa(this, Z(Qa(this), a, arguments.length > 1 ? arguments[1] : void 0)) 12520 }, 12521 find: function(a) { 12522 return ea(Qa(this), a, arguments.length > 1 ? arguments[1] : void 0) 12523 }, 12524 findIndex: function(a) { 12525 return ga(Qa(this), a, arguments.length > 1 ? arguments[1] : void 0) 12526 }, 12527 forEach: function(a) { 12528 Y(Qa(this), a, arguments.length > 1 ? arguments[1] : void 0) 12529 }, 12530 indexOf: function(a) { 12531 return ja(Qa(this), a, arguments.length > 1 ? arguments[1] : void 0) 12532 }, 12533 includes: function(a) { 12534 return ha(Qa(this), a, arguments.length > 1 ? arguments[1] : void 0) 12535 }, 12536 join: function(a) { 12537 return sa.apply(Qa(this), arguments) 12538 }, 12539 lastIndexOf: function(a) { 12540 return pa.apply(Qa(this), arguments) 12541 }, 12542 map: function(a) { 12543 return Ka(Qa(this), a, arguments.length > 1 ? arguments[1] : void 0) 12544 }, 12545 reduce: function(a) { 12546 return qa.apply(Qa(this), arguments) 12547 }, 12548 reduceRight: function(a) { 12549 return ra.apply(Qa(this), arguments) 12550 }, 12551 reverse: function() { 12552 for (var a, b = Qa(this).length, c = Math.floor(b / 2), d = 0; d < c; ) 12553 a = this[d], 12554 this[d++] = this[--b], 12555 this[b] = a; 12556 return this 12557 }, 12558 some: function(a) { 12559 return $(Qa(this), a, arguments.length > 1 ? arguments[1] : void 0) 12560 }, 12561 sort: function(a) { 12562 return ta.call(Qa(this), a) 12563 }, 12564 subarray: function(a, b) { 12565 var c = Qa(this) 12566 , d = c.length 12567 , e = o(a, d); 12568 return new (D(c, c[Ga]))(c.buffer,c.byteOffset + e * c.BYTES_PER_ELEMENT,m((void 0 === b ? d : o(b, d)) - e)) 12569 } 12570 } 12571 , eb = function(a, b) { 12572 return Sa(this, ua.call(Qa(this), a, b)) 12573 } 12574 , gb = function(a) { 12575 Qa(this); 12576 var b = Pa(arguments[1], 1) 12577 , c = this.length 12578 , d = t(a) 12579 , e = m(d.length) 12580 , f = 0; 12581 if (e + b > c) 12582 throw O("Wrong length!"); 12583 for (; f < e; ) 12584 this[b + f] = d[f++] 12585 } 12586 , hb = {
vendor: 15,348 bytes, lines 12587-13044
12587 entries: function() { 12588 return na.call(Qa(this)) 12589 }, 12590 keys: function() { 12591 return ma.call(Qa(this)) 12592 }, 12593 values: function() { 12594 return ka.call(Qa(this)) 12595 } 12596 } 12597 , ib = function(a, b) { 12598 return s(a) && a[Ia] && "symbol" != typeof b && b in a && String(+b) == String(b) 12599 } 12600 , jb = function(a, b) { 12601 return ib(a, b = p(b, !0)) ? i(2, a[b]) : N(a, b) 12602 } 12603 , kb = function(a, b, c) { 12604 return !(ib(a, b = p(b, !0)) && s(c) && q(c, "value")) || q(c, "get") || q(c, "set") || c.configurable || q(c, "writable") && !c.writable || q(c, "enumerable") && !c.enumerable ? M(a, b, c) : (a[b] = c.value, 12605 a) 12606 }; 12607 Ha || (L.f = jb, 12608 K.f = kb), 12609 d(d.S + d.F * !Ha, "Object", { 12610 getOwnPropertyDescriptor: jb, 12611 defineProperty: kb 12612 }), 12613 c(function() { 12614 ya.call({}) 12615 }) && (ya = za = function() { 12616 return sa.call(this) 12617 } 12618 ); 12619 var lb = k({}, cb); 12620 k(lb, hb), 12621 j(lb, Ba, hb.values), 12622 k(lb, { 12623 slice: eb, 12624 set: gb, 12625 constructor: function() {}, 12626 toString: ya, 12627 toLocaleString: ab 12628 }), 12629 Ua(lb, "buffer", "b"), 12630 Ua(lb, "byteOffset", "o"), 12631 Ua(lb, "byteLength", "l"), 12632 Ua(lb, "length", "e"), 12633 M(lb, Ea, { 12634 get: function() { 12635 return this[Ia] 12636 } 12637 }), 12638 a.exports = function(a, f, g, i) { 12639 var k = a + ((i = !!i) ? "Clamped" : "") + "Array" 12640 , l = "get" + a 12641 , o = "set" + a 12642 , p = b[k] 12643 , q = p || {} 12644 , t = p && w(p) 12645 , u = !p || !e.ABV 12646 , y = {} 12647 , z = p && p.prototype 12648 , A = function(a, b) { 12649 M(a, b, { 12650 get: function() { 12651 return function(a, b) { 12652 var c = a._d; 12653 return c.v[l](b * f + c.o, Na) 12654 }(this, b) 12655 }, 12656 set: function(a) { 12657 return function(a, b, c) { 12658 var d = a._d; 12659 i && (c = (c = Math.round(c)) < 0 ? 0 : c > 255 ? 255 : 255 & c), 12660 d.v[o](b * f + d.o, c, Na) 12661 }(this, b, a) 12662 }, 12663 enumerable: !0 12664 }) 12665 }; 12666 u ? (p = g(function(a, b, c, d) { 12667 h(a, p, k, "_d"); 12668 var e, g, i, l, o = 0, q = 0; 12669 if (s(b)) { 12670 if (!(b instanceof U || "ArrayBuffer" == (l = r(b)) || "SharedArrayBuffer" == l)) 12671 return Ia in b ? Ta(p, b) : Va.call(p, b); 12672 e = b, 12673 q = Pa(c, f); 12674 var t = b.byteLength; 12675 if (void 0 === d) { 12676 if (t % f) 12677 throw O("Wrong length!"); 12678 if ((g = t - q) < 0) 12679 throw O("Wrong length!") 12680 } else if ((g = m(d) * f) + q > t) 12681 throw O("Wrong length!"); 12682 i = g / f 12683 } else 12684 i = n(b), 12685 e = new U(g = i * f); 12686 for (j(a, "_d", { 12687 b: e, 12688 o: q, 12689 l: g, 12690 e: i, 12691 v: new X(e) 12692 }); o < i; ) 12693 A(a, o++) 12694 }), 12695 z = p.prototype = v(lb), 12696 j(z, "constructor", p)) : c(function() { 12697 p(1) 12698 }) && c(function() { 12699 new p(-1) 12700 }) && G(function(a) { 12701 new p, 12702 new p(null), 12703 new p(1.5), 12704 new p(a) 12705 }, !0) || (p = g(function(a, b, c, d) { 12706 var e; 12707 return h(a, p, k), 12708 s(b) ? b instanceof U || "ArrayBuffer" == (e = r(b)) || "SharedArrayBuffer" == e ? void 0 !== d ? new q(b,Pa(c, f),d) : void 0 !== c ? new q(b,Pa(c, f)) : new q(b) : Ia in b ? Ta(p, b) : Va.call(p, b) : new q(n(b)) 12709 }), 12710 Y(t !== Function.prototype ? x(q).concat(x(t)) : x(q), function(a) { 12711 a in p || j(p, a, q[a]) 12712 }), 12713 p.prototype = z, 12714 z.constructor = p); 12715 var B = z[Ba] 12716 , C = !!B && ("values" == B.name || null == B.name) 12717 , D = hb.values; 12718 j(p, Fa, !0), 12719 j(z, Ia, k), 12720 j(z, Ja, !0), 12721 j(z, Ga, p), 12722 (i ? new p(1)[Ea] == k : Ea in z) || M(z, Ea, { 12723 get: function() { 12724 return k 12725 } 12726 }), 12727 y[k] = p, 12728 d(d.G + d.W + d.F * (p != q), y), 12729 d(d.S, k, { 12730 BYTES_PER_ELEMENT: f 12731 }), 12732 d(d.S + d.F * c(function() { 12733 q.of.call(p, 1) 12734 }), k, { 12735 from: Va, 12736 of: $a 12737 }), 12738 "BYTES_PER_ELEMENT"in z || j(z, "BYTES_PER_ELEMENT", f), 12739 d(d.P, k, cb), 12740 H(k), 12741 d(d.P + d.F * Oa, k, { 12742 set: gb 12743 }), 12744 d(d.P + d.F * !C, k, hb), 12745 z.toString != ya && (z.toString = ya), 12746 d(d.P + d.F * c(function() { 12747 new p(1).slice() 12748 }), k, { 12749 slice: eb 12750 }), 12751 d(d.P + d.F * (c(function() { 12752 return [1, 2].toLocaleString() != new p([1, 2]).toLocaleString() 12753 }) || !c(function() { 12754 z.toLocaleString.call([1, 2]) 12755 })), k, { 12756 toLocaleString: ab 12757 }), 12758 F[k] = C ? B : D, 12759 C || j(z, Ba, D) 12760 } 12761 } else 12762 a.exports = function() {} 12763 }); 12764 ac("Int8", 1, function(a) { 12765 return function(b, c, d) { 12766 return a(this, b, c, d) 12767 } 12768 }), 12769 ac("Uint8", 1, function(a) { 12770 return function(b, c, d) { 12771 return a(this, b, c, d) 12772 } 12773 }), 12774 ac("Uint8", 1, function(a) { 12775 return function(b, c, d) { 12776 return a(this, b, c, d) 12777 } 12778 }, !0), 12779 ac("Int16", 2, function(a) { 12780 return function(b, c, d) { 12781 return a(this, b, c, d) 12782 } 12783 }), 12784 ac("Uint16", 2, function(a) { 12785 return function(b, c, d) { 12786 return a(this, b, c, d) 12787 } 12788 }), 12789 ac("Int32", 4, function(a) { 12790 return function(b, c, d) { 12791 return a(this, b, c, d) 12792 } 12793 }), 12794 ac("Uint32", 4, function(a) { 12795 return function(b, c, d) { 12796 return a(this, b, c, d) 12797 } 12798 }), 12799 ac("Float32", 4, function(a) { 12800 return function(b, c, d) { 12801 return a(this, b, c, d) 12802 } 12803 }), 12804 ac("Float64", 8, function(a) { 12805 return function(b, c, d) { 12806 return a(this, b, c, d) 12807 } 12808 }); 12809 var bc = function(a, b, c, d) { 12810 try { 12811 return d ? b(U(c)[0], c[1]) : b(c) 12812 } catch (b) { 12813 var e = a.return; 12814 throw void 0 !== e && U(e.call(a)), 12815 b 12816 } 12817 } 12818 , cc = a(function(a) { 12819 var b = {} 12820 , c = {} 12821 , d = a.exports = function(a, d, e, f, g) { 12822 var h, i, j, k, l = g ? function() { 12823 return a 12824 } 12825 : Fb(a), m = la(e, f, d ? 2 : 1), n = 0; 12826 if ("function" != typeof l) 12827 throw TypeError(a + " is not iterable!"); 12828 if (sb(l)) { 12829 for (h = Ca(a.length); h > n; n++) 12830 if ((k = d ? m(U(i = a[n])[0], i[1]) : m(a[n])) === b || k === c) 12831 return k 12832 } else 12833 for (j = l.call(a); !(i = j.next()).done; ) 12834 if ((k = bc(j, m, i.value, d)) === b || k === c) 12835 return k 12836 } 12837 ; 12838 d.BREAK = b, 12839 d.RETURN = c 12840 }) 12841 , dc = a(function(a) { 12842 var b = ia("meta") 12843 , c = ba.f 12844 , d = 0 12845 , e = Object.isExtensible || function() { 12846 return !0 12847 } 12848 , f = !V(function() { 12849 return e(Object.preventExtensions({})) 12850 }) 12851 , g = function(a) { 12852 c(a, b, { 12853 value: { 12854 i: "O" + ++d, 12855 w: {} 12856 } 12857 }) 12858 } 12859 , h = a.exports = { 12860 KEY: b, 12861 NEED: !1, 12862 fastKey: function(a, c) { 12863 if (!T(a)) 12864 return "symbol" == typeof a ? a : ("string" == typeof a ? "S" : "P") + a; 12865 if (!fa(a, b)) { 12866 if (!e(a)) 12867 return "F"; 12868 if (!c) 12869 return "E"; 12870 g(a) 12871 } 12872 return a[b].i 12873 }, 12874 getWeak: function(a, c) { 12875 if (!fa(a, b)) { 12876 if (!e(a)) 12877 return !0; 12878 if (!c) 12879 return !1; 12880 g(a) 12881 } 12882 return a[b].w 12883 }, 12884 onFreeze: function(a) { 12885 return f && h.NEED && e(a) && !fa(a, b) && g(a), 12886 a 12887 } 12888 } 12889 }) 12890 , ec = (dc.KEY, 12891 dc.NEED, 12892 dc.fastKey, 12893 dc.getWeak, 12894 dc.onFreeze, 12895 function(a, b) { 12896 if (!T(a) || a._t !== b) 12897 throw TypeError("Incompatible receiver, " + b + " required!"); 12898 return a 12899 } 12900 ) 12901 , fc = ba.f 12902 , gc = dc.fastKey 12903 , hc = W ? "_s" : "size" 12904 , ic = function(a, b) { 12905 var c, d = gc(b); 12906 if ("F" !== d) 12907 return a._i[d]; 12908 for (c = a._f; c; c = c.n) 12909 if (c.k == b) 12910 return c 12911 } 12912 , jc = { 12913 getConstructor: function(a, b, c, d) { 12914 var e = a(function(a, f) { 12915 xa(a, e, b, "_i"), 12916 a._t = b, 12917 a._i = Ab(null), 12918 a._f = void 0, 12919 a._l = void 0, 12920 a[hc] = 0, 12921 null != f && cc(f, c, a[d], a) 12922 }); 12923 return wa(e.prototype, { 12924 clear: function() { 12925 for (var a = ec(this, b), c = a._i, d = a._f; d; d = d.n) 12926 d.r = !0, 12927 d.p && (d.p = d.p.n = void 0), 12928 delete c[d.i]; 12929 a._f = a._l = void 0, 12930 a[hc] = 0 12931 }, 12932 delete: function(a) { 12933 var c = ec(this, b) 12934 , d = ic(c, a); 12935 if (d) { 12936 var e = d.n 12937 , f = d.p; 12938 delete c._i[d.i], 12939 d.r = !0, 12940 f && (f.n = e), 12941 e && (e.p = f), 12942 c._f == d && (c._f = e), 12943 c._l == d && (c._l = f), 12944 c[hc]-- 12945 } 12946 return !!d 12947 }, 12948 forEach: function(a) { 12949 ec(this, b); 12950 for (var c, d = la(a, arguments.length > 1 ? arguments[1] : void 0, 3); c = c ? c.n : this._f; ) 12951 for (d(c.v, c.k, this); c && c.r; ) 12952 c = c.p 12953 }, 12954 has: function(a) { 12955 return !!ic(ec(this, b), a) 12956 } 12957 }), 12958 W && fc(e.prototype, "size", { 12959 get: function() { 12960 return ec(this, b)[hc] 12961 } 12962 }), 12963 e 12964 }, 12965 def: function(a, b, c) { 12966 var d, e, f = ic(a, b); 12967 return f ? f.v = c : (a._l = f = { 12968 i: e = gc(b, !0), 12969 k: b, 12970 v: c, 12971 p: d = a._l, 12972 n: void 0, 12973 r: !1 12974 }, 12975 a._f || (a._f = f), 12976 d && (d.n = f), 12977 a[hc]++, 12978 "F" !== e && (a._i[e] = f)), 12979 a 12980 }, 12981 getEntry: ic, 12982 setStrong: function(a, b, c) { 12983 Tb(a, b, function(a, c) { 12984 this._t = ec(a, b), 12985 this._k = c, 12986 this._l = void 0 12987 }, function() { 12988 for (var a = this._k, b = this._l; b && b.r; ) 12989 b = b.p; 12990 return this._t && (this._l = b = b ? b.n : this._t._f) ? Nb(0, "keys" == a ? b.k : "values" == a ? b.v : [b.k, b.v]) : (this._t = void 0, 12991 Nb(1)) 12992 }, c ? "entries" : "values", !c, !0), 12993 fb(b) 12994 } 12995 } 12996 , kc = function(a, b) { 12997 if (U(a), 12998 !T(b) && null !== b) 12999 throw TypeError(b + ": can't set as prototype!") 13000 } 13001 , lc = { 13002 set: Object.setPrototypeOf || ("__proto__"in {} ? function(a, b, c) { 13003 try { 13004 (c = la(Function.call, _b.f(Object.prototype, "__proto__").set, 2))(a, []), 13005 b = !(a instanceof Array) 13006 } catch (a) { 13007 b = !0 13008 } 13009 return function(a, d) { 13010 return kc(a, d), 13011 b ? a.__proto__ = d : c(a, d), 13012 a 13013 } 13014 }({}, !1) : void 0), 13015 check: kc 13016 } 13017 , mc = lc.set 13018 , nc = function(a, b, c, d, e, f) { 13019 var g = R[a] 13020 , h = g 13021 , i = e ? "set" : "add" 13022 , j = h && h.prototype 13023 , k = {} 13024 , l = function(a) { 13025 var b = j[a]; 13026 ja(j, a, "delete" == a ? function(a) { 13027 return !(f && !T(a)) && b.call(this, 0 === a ? 0 : a) 13028 } 13029 : "has" == a ? function(a) { 13030 return !(f && !T(a)) && b.call(this, 0 === a ? 0 : a) 13031 } 13032 : "get" == a ? function(a) { 13033 return f && !T(a) ? void 0 : b.call(this, 0 === a ? 0 : a) 13034 } 13035 : "add" == a ? function(a) { 13036 return b.call(this, 0 === a ? 0 : a), 13037 this 13038 } 13039 : function(a, c) { 13040 return b.call(this, 0 === a ? 0 : a, c), 13041 this 13042 } 13043 ) 13044 };
vendor: 5,814 bytes, lines 13045-13225
13045 if ("function" == typeof h && (f || j.forEach && !V(function() { 13046 (new h).entries().next() 13047 }))) { 13048 var m = new h 13049 , n = m[i](f ? {} : -0, 1) != m 13050 , o = V(function() { 13051 m.has(1) 13052 }) 13053 , p = Xb(function(a) { 13054 new h(a) 13055 }) 13056 , q = !f && V(function() { 13057 for (var a = new h, b = 5; b--; ) 13058 a[i](b, b); 13059 return !a.has(-0) 13060 }); 13061 p || ((h = b(function(b, c) { 13062 xa(b, h, a); 13063 var d = function(a, b, c) { 13064 var d, e = b.constructor; 13065 return e !== c && "function" == typeof e && (d = e.prototype) !== c.prototype && T(d) && mc && mc(a, d), 13066 a 13067 }(new g, b, h); 13068 return null != c && cc(c, e, d[i], d), 13069 d 13070 })).prototype = j, 13071 j.constructor = h), 13072 (o || q) && (l("delete"), 13073 l("has"), 13074 e && l("get")), 13075 (q || n) && l(i), 13076 f && j.clear && delete j.clear 13077 } else 13078 h = d.getConstructor(b, a, e, i), 13079 wa(h.prototype, c), 13080 dc.NEED = !0; 13081 return ab(h, a), 13082 k[a] = h, 13083 oa(oa.G + oa.W + oa.F * (h != g), k), 13084 f || d.setStrong(h, a, e), 13085 h 13086 } 13087 , oc = (nc("Map", function(a) { 13088 return function() { 13089 return a(this, arguments.length > 0 ? arguments[0] : void 0) 13090 } 13091 }, { 13092 get: function(a) { 13093 var b = jc.getEntry(ec(this, "Map"), a); 13094 return b && b.v 13095 }, 13096 set: function(a, b) { 13097 return jc.def(ec(this, "Map"), 0 === a ? 0 : a, b) 13098 } 13099 }, jc, !0), 13100 nc("Set", function(a) { 13101 return function() { 13102 return a(this, arguments.length > 0 ? arguments[0] : void 0) 13103 } 13104 }, { 13105 add: function(a) { 13106 return jc.def(ec(this, "Set"), a = 0 === a ? 0 : a, a) 13107 } 13108 }, jc), 13109 { 13110 f: Object.getOwnPropertySymbols 13111 }) 13112 , pc = Object.assign 13113 , qc = !pc || V(function() { 13114 var a = {} 13115 , b = {} 13116 , c = Symbol() 13117 , d = "abcdefghijklmnopqrst"; 13118 return a[c] = 7, 13119 d.split("").forEach(function(a) { 13120 b[a] = a 13121 }), 13122 7 != pc({}, a)[c] || Object.keys(pc({}, b)).join("") != d 13123 }) ? function(a, b) { 13124 for (var c = Xa(a), d = arguments.length, e = 1, f = oc.f, g = Zb.f; d > e; ) 13125 for (var h, i = Ga(arguments[e++]), j = f ? tb(i).concat(f(i)) : tb(i), k = j.length, l = 0; k > l; ) 13126 g.call(i, h = j[l++]) && (c[h] = i[h]); 13127 return c 13128 } 13129 : pc 13130 , rc = dc.getWeak 13131 , sc = Jb(5) 13132 , tc = Jb(6) 13133 , uc = 0 13134 , vc = function(a) { 13135 return a._l || (a._l = new wc) 13136 } 13137 , wc = function() { 13138 this.a = [] 13139 } 13140 , xc = function(a, b) { 13141 return sc(a.a, function(a) { 13142 return a[0] === b 13143 }) 13144 }; 13145 wc.prototype = { 13146 get: function(a) { 13147 var b = xc(this, a); 13148 if (b) 13149 return b[1] 13150 }, 13151 has: function(a) { 13152 return !!xc(this, a) 13153 }, 13154 set: function(a, b) { 13155 var c = xc(this, a); 13156 c ? c[1] = b : this.a.push([a, b]) 13157 }, 13158 delete: function(a) { 13159 var b = tc(this.a, function(b) { 13160 return b[0] === a 13161 }); 13162 return ~b && this.a.splice(b, 1), 13163 !!~b 13164 } 13165 }; 13166 var yc = { 13167 getConstructor: function(a, b, c, d) { 13168 var e = a(function(a, f) { 13169 xa(a, e, b, "_i"), 13170 a._t = b, 13171 a._i = uc++, 13172 a._l = void 0, 13173 null != f && cc(f, c, a[d], a) 13174 }); 13175 return wa(e.prototype, { 13176 delete: function(a) { 13177 if (!T(a)) 13178 return !1; 13179 var c = rc(a); 13180 return !0 === c ? vc(ec(this, b)).delete(a) : c && fa(c, this._i) && delete c[this._i] 13181 }, 13182 has: function(a) { 13183 if (!T(a)) 13184 return !1; 13185 var c = rc(a); 13186 return !0 === c ? vc(ec(this, b)).has(a) : c && fa(c, this._i) 13187 } 13188 }), 13189 e 13190 }, 13191 def: function(a, b, c) { 13192 var d = rc(U(b), !0); 13193 return !0 === d ? vc(a).set(b, c) : d[a._i] = c, 13194 a 13195 }, 13196 ufstore: vc 13197 }; 13198 a(function(a) { 13199 var b, c = Jb(0), d = dc.getWeak, e = Object.isExtensible, f = yc.ufstore, g = {}, h = function(a) { 13200 return function() { 13201 return a(this, arguments.length > 0 ? arguments[0] : void 0) 13202 } 13203 }, i = { 13204 get: function(a) { 13205 if (T(a)) { 13206 var b = d(a); 13207 return !0 === b ? f(ec(this, "WeakMap")).get(a) : b ? b[this._i] : void 0 13208 } 13209 }, 13210 set: function(a, b) { 13211 return yc.def(ec(this, "WeakMap"), a, b) 13212 } 13213 }, j = a.exports = nc("WeakMap", h, i, yc, !0, !0); 13214 V(function() { 13215 return 7 != (new j).set((Object.freeze || Object)(g), 7).get(g) 13216 }) && (b = yc.getConstructor(h, "WeakMap"), 13217 qc(b.prototype, i), 13218 dc.NEED = !0, 13219 c(["delete", "has", "get", "set"], function(a) { 13220 var c = j.prototype 13221 , d = c[a]; 13222 ja(c, a, function(c, f) { 13223 if (T(c) && !e(c)) { 13224 this._f || (this._f = new b); 13225 var g = this._f[a](c, f);
vendor: 25,812 bytes, lines 13226-14098
13226 return "set" == a ? this : g 13227 } 13228 return d.call(this, c, f) 13229 }) 13230 })) 13231 }), 13232 nc("WeakSet", function(a) { 13233 return function() { 13234 return a(this, arguments.length > 0 ? arguments[0] : void 0) 13235 } 13236 }, { 13237 add: function(a) { 13238 return yc.def(ec(this, "WeakSet"), a, !0) 13239 } 13240 }, yc, !1, !0); 13241 var zc = (R.Reflect || {}).apply 13242 , Ac = Function.apply; 13243 oa(oa.S + oa.F * !V(function() { 13244 zc(function() {}) 13245 }), "Reflect", { 13246 apply: function(a, b, c) { 13247 var d = ka(a) 13248 , e = U(c); 13249 return zc ? zc(d, b, e) : Ac.call(d, b, e) 13250 } 13251 }); 13252 var Bc = function(a, b, c) { 13253 var d = void 0 === c; 13254 switch (b.length) { 13255 case 0: 13256 return d ? a() : a.call(c); 13257 case 1: 13258 return d ? a(b[0]) : a.call(c, b[0]); 13259 case 2: 13260 return d ? a(b[0], b[1]) : a.call(c, b[0], b[1]); 13261 case 3: 13262 return d ? a(b[0], b[1], b[2]) : a.call(c, b[0], b[1], b[2]); 13263 case 4: 13264 return d ? a(b[0], b[1], b[2], b[3]) : a.call(c, b[0], b[1], b[2], b[3]) 13265 } 13266 return a.apply(c, b) 13267 } 13268 , Cc = [].slice 13269 , Dc = {} 13270 , Ec = Function.bind || function(a) { 13271 var b = ka(this) 13272 , c = Cc.call(arguments, 1) 13273 , d = function() { 13274 var e = c.concat(Cc.call(arguments)); 13275 return this instanceof d ? function(a, b, c) { 13276 if (!(b in Dc)) { 13277 for (var d = [], e = 0; e < b; e++) 13278 d[e] = "a[" + e + "]"; 13279 Dc[b] = Function("F,a", "return new F(" + d.join(",") + ")") 13280 } 13281 return Dc[b](a, c) 13282 }(b, e.length, e) : Bc(b, e, a) 13283 }; 13284 return T(b.prototype) && (d.prototype = b.prototype), 13285 d 13286 } 13287 , Fc = (R.Reflect || {}).construct 13288 , Gc = V(function() { 13289 function a() {} 13290 return !(Fc(function() {}, [], a)instanceof a) 13291 }) 13292 , Hc = !V(function() { 13293 Fc(function() {}) 13294 }); 13295 oa(oa.S + oa.F * (Gc || Hc), "Reflect", { 13296 construct: function(a, b) { 13297 ka(a), 13298 U(b); 13299 var c = arguments.length < 3 ? a : ka(arguments[2]); 13300 if (Hc && !Gc) 13301 return Fc(a, b, c); 13302 if (a == c) { 13303 switch (b.length) { 13304 case 0: 13305 return new a; 13306 case 1: 13307 return new a(b[0]); 13308 case 2: 13309 return new a(b[0],b[1]); 13310 case 3: 13311 return new a(b[0],b[1],b[2]); 13312 case 4: 13313 return new a(b[0],b[1],b[2],b[3]) 13314 } 13315 var d = [null]; 13316 return d.push.apply(d, b), 13317 new (Ec.apply(a, d)) 13318 } 13319 var e = c.prototype 13320 , f = Ab(T(e) ? e : Object.prototype) 13321 , g = Function.apply.call(a, f, b); 13322 return T(g) ? g : f 13323 } 13324 }), 13325 oa(oa.S + oa.F * V(function() { 13326 Reflect.defineProperty(ba.f({}, 1, { 13327 value: 1 13328 }), 1, { 13329 value: 2 13330 }) 13331 }), "Reflect", { 13332 defineProperty: function(a, b, c) { 13333 U(a), 13334 b = _(b, !0), 13335 U(c); 13336 try { 13337 return ba.f(a, b, c), 13338 !0 13339 } catch (a) { 13340 return !1 13341 } 13342 } 13343 }); 13344 var Ic = _b.f; 13345 oa(oa.S, "Reflect", { 13346 deleteProperty: function(a, b) { 13347 var c = Ic(U(a), b); 13348 return !(c && !c.configurable) && delete a[b] 13349 } 13350 }), 13351 oa(oa.S, "Reflect", { 13352 get: function a(b, c) { 13353 var d, e, f = arguments.length < 3 ? b : arguments[2]; 13354 return U(b) === f ? b[c] : (d = _b.f(b, c)) ? fa(d, "value") ? d.value : void 0 !== d.get ? d.get.call(f) : void 0 : T(e = Db(b)) ? a(e, c, f) : void 0 13355 } 13356 }), 13357 oa(oa.S, "Reflect", { 13358 getOwnPropertyDescriptor: function(a, b) { 13359 return _b.f(U(a), b) 13360 } 13361 }), 13362 oa(oa.S, "Reflect", { 13363 getPrototypeOf: function(a) { 13364 return Db(U(a)) 13365 } 13366 }), 13367 oa(oa.S, "Reflect", { 13368 has: function(a, b) { 13369 return b in a 13370 } 13371 }); 13372 var Jc = Object.isExtensible; 13373 oa(oa.S, "Reflect", { 13374 isExtensible: function(a) { 13375 return U(a), 13376 !Jc || Jc(a) 13377 } 13378 }); 13379 var Kc = R.Reflect 13380 , Lc = Kc && Kc.ownKeys || function(a) { 13381 var b = Wa.f(U(a)) 13382 , c = oc.f; 13383 return c ? b.concat(c(a)) : b 13384 } 13385 ; 13386 oa(oa.S, "Reflect", { 13387 ownKeys: Lc 13388 }); 13389 var Mc = Object.preventExtensions; 13390 oa(oa.S, "Reflect", { 13391 preventExtensions: function(a) { 13392 U(a); 13393 try { 13394 return Mc && Mc(a), 13395 !0 13396 } catch (a) { 13397 return !1 13398 } 13399 } 13400 }), 13401 oa(oa.S, "Reflect", { 13402 set: function a(b, c, d) { 13403 var e, f, g = arguments.length < 4 ? b : arguments[3], h = _b.f(U(b), c); 13404 if (!h) { 13405 if (T(f = Db(b))) 13406 return a(f, c, d, g); 13407 h = ca(0) 13408 } 13409 return fa(h, "value") ? !(!1 === h.writable || !T(g) || ((e = _b.f(g, c) || ca(0)).value = d, 13410 ba.f(g, c, e), 13411 0)) : void 0 !== h.set && (h.set.call(g, d), 13412 !0) 13413 } 13414 }), 13415 lc && oa(oa.S, "Reflect", { 13416 setPrototypeOf: function(a, b) { 13417 lc.check(a, b); 13418 try { 13419 return lc.set(a, b), 13420 !0 13421 } catch (a) { 13422 return !1 13423 } 13424 } 13425 }); 13426 var Nc, Oc, Pc, Qc = R.process, Rc = R.setImmediate, Sc = R.clearImmediate, Tc = R.MessageChannel, Uc = R.Dispatch, Vc = 0, Wc = {}, Xc = function() { 13427 var a = +this; 13428 if (Wc.hasOwnProperty(a)) { 13429 var b = Wc[a]; 13430 delete Wc[a], 13431 b() 13432 } 13433 }, Yc = function(a) { 13434 Xc.call(a.data) 13435 }; 13436 Rc && Sc || (Rc = function(a) { 13437 for (var b = [], c = 1; arguments.length > c; ) 13438 b.push(arguments[c++]); 13439 return Wc[++Vc] = function() { 13440 Bc("function" == typeof a ? a : Function(a), b) 13441 } 13442 , 13443 Nc(Vc), 13444 Vc 13445 } 13446 , 13447 Sc = function(a) { 13448 delete Wc[a] 13449 } 13450 , 13451 "process" == Fa(Qc) ? Nc = function(a) { 13452 Qc.nextTick(la(Xc, a, 1)) 13453 } 13454 : Uc && Uc.now ? Nc = function(a) { 13455 Uc.now(la(Xc, a, 1)) 13456 } 13457 : Tc ? (Pc = (Oc = new Tc).port2, 13458 Oc.port1.onmessage = Yc, 13459 Nc = la(Pc.postMessage, Pc, 1)) : R.addEventListener && "function" == typeof postMessage && !R.importScripts ? (Nc = function(a) { 13460 R.postMessage(a + "", "*") 13461 } 13462 , 13463 R.addEventListener("message", Yc, !1)) : Nc = "onreadystatechange"in Z("script") ? function(a) { 13464 wb.appendChild(Z("script")).onreadystatechange = function() { 13465 wb.removeChild(this), 13466 Xc.call(a) 13467 } 13468 } 13469 : function(a) { 13470 setTimeout(la(Xc, a, 1), 0) 13471 } 13472 ); 13473 var Zc, $c, _c, ad, bd = { 13474 set: Rc, 13475 clear: Sc 13476 }, cd = bd.set, dd = R.MutationObserver || R.WebKitMutationObserver, ed = R.process, fd = R.Promise, gd = "process" == Fa(ed), hd = { 13477 f: function(a) { 13478 return new b(a) 13479 } 13480 }, id = function(a) { 13481 try { 13482 return { 13483 e: !1, 13484 v: a() 13485 } 13486 } catch (a) { 13487 return { 13488 e: !0, 13489 v: a 13490 } 13491 } 13492 }, jd = bd.set, kd = function() { 13493 var a, b, c, d = function() { 13494 var d, e; 13495 for (gd && (d = ed.domain) && d.exit(); a; ) { 13496 e = a.fn, 13497 a = a.next; 13498 try { 13499 e() 13500 } catch (d) { 13501 throw a ? c() : b = void 0, 13502 d 13503 } 13504 } 13505 b = void 0, 13506 d && d.enter() 13507 }; 13508 if (gd) 13509 c = function() { 13510 ed.nextTick(d) 13511 } 13512 ; 13513 else if (!dd || R.navigator && R.navigator.standalone) 13514 if (fd && fd.resolve) { 13515 var e = fd.resolve(); 13516 c = function() { 13517 e.then(d) 13518 } 13519 } else 13520 c = function() { 13521 cd.call(R, d) 13522 } 13523 ; 13524 else { 13525 var f = !0 13526 , g = document.createTextNode(""); 13527 new dd(d).observe(g, { 13528 characterData: !0 13529 }), 13530 c = function() { 13531 g.data = f = !f 13532 } 13533 } 13534 return function(d) { 13535 var e = { 13536 fn: d, 13537 next: void 0 13538 }; 13539 b && (b.next = e), 13540 a || (a = e, 13541 c()), 13542 b = e 13543 } 13544 }(), ld = R.TypeError, md = R.process, nd = R.Promise, od = "process" == ob(md), pd = function() {}, qd = $c = hd.f, rd = !!function() { 13545 try { 13546 var a = nd.resolve(1) 13547 , b = (a.constructor = {})[Za("species")] = function(a) { 13548 a(pd, pd) 13549 } 13550 ; 13551 return (od || "function" == typeof PromiseRejectionEvent) && a.then(pd)instanceof b 13552 } catch (a) {} 13553 }(), sd = function(a) { 13554 var b; 13555 return !(!T(a) || "function" != typeof (b = a.then)) && b 13556 }, td = function(a, b) { 13557 if (!a._n) { 13558 a._n = !0; 13559 var c = a._c; 13560 kd(function() { 13561 for (var d = a._v, e = 1 == a._s, f = 0, g = function(b) { 13562 var c, f, g = e ? b.ok : b.fail, h = b.resolve, i = b.reject, j = b.domain; 13563 try { 13564 g ? (e || (2 == a._h && wd(a), 13565 a._h = 1), 13566 !0 === g ? c = d : (j && j.enter(), 13567 c = g(d), 13568 j && j.exit()), 13569 c === b.promise ? i(ld("Promise-chain cycle")) : (f = sd(c)) ? f.call(c, h, i) : h(c)) : i(d) 13570 } catch (a) { 13571 i(a) 13572 } 13573 }; c.length > f; ) 13574 g(c[f++]); 13575 a._c = [], 13576 a._n = !1, 13577 b && !a._h && ud(a) 13578 }) 13579 } 13580 }, ud = function(a) { 13581 jd.call(R, function() { 13582 var b, c, d, e = a._v, f = vd(a); 13583 if (f && (b = id(function() { 13584 od ? md.emit("unhandledRejection", e, a) : (c = R.onunhandledrejection) ? c({ 13585 promise: a, 13586 reason: e 13587 }) : (d = R.console) && d.error && d.error("Unhandled promise rejection", e) 13588 }), 13589 a._h = od || vd(a) ? 2 : 1), 13590 a._a = void 0, 13591 f && b.e) 13592 throw b.v 13593 }) 13594 }, vd = function(a) { 13595 return 1 !== a._h && 0 === (a._a || a._c).length 13596 }, wd = function(a) { 13597 jd.call(R, function() { 13598 var b; 13599 od ? md.emit("rejectionHandled", a) : (b = R.onrejectionhandled) && b({ 13600 promise: a, 13601 reason: a._v 13602 }) 13603 }) 13604 }, xd = function(a) { 13605 var b = this; 13606 b._d || (b._d = !0, 13607 (b = b._w || b)._v = a, 13608 b._s = 2, 13609 b._a || (b._a = b._c.slice()), 13610 td(b, !0)) 13611 }, yd = function(a) { 13612 var b, c = this; 13613 if (!c._d) { 13614 c._d = !0, 13615 c = c._w || c; 13616 try { 13617 if (c === a) 13618 throw ld("Promise can't be resolved itself"); 13619 (b = sd(a)) ? kd(function() { 13620 var d = { 13621 _w: c, 13622 _d: !1 13623 }; 13624 try { 13625 b.call(a, la(yd, d, 1), la(xd, d, 1)) 13626 } catch (a) { 13627 xd.call(d, a) 13628 } 13629 }) : (c._v = a, 13630 c._s = 1, 13631 td(c, !1)) 13632 } catch (a) { 13633 xd.call({ 13634 _w: c, 13635 _d: !1 13636 }, a) 13637 } 13638 } 13639 }; 13640 rd || (nd = function(a) { 13641 xa(this, nd, "Promise", "_h"), 13642 ka(a), 13643 Zc.call(this); 13644 try { 13645 a(la(yd, this, 1), la(xd, this, 1)) 13646 } catch (a) { 13647 xd.call(this, a) 13648 } 13649 } 13650 , 13651 (Zc = function(a) { 13652 this._c = [], 13653 this._a = void 0, 13654 this._s = 0, 13655 this._d = !1, 13656 this._v = void 0, 13657 this._h = 0, 13658 this._n = !1 13659 } 13660 ).prototype = wa(nd.prototype, { 13661 then: function(a, b) { 13662 var c = qd(db(this, nd)); 13663 return c.ok = "function" != typeof a || a, 13664 c.fail = "function" == typeof b && b, 13665 c.domain = od ? md.domain : void 0, 13666 this._c.push(c), 13667 this._a && this._a.push(c), 13668 this._s && td(this, !1), 13669 c.promise 13670 }, 13671 catch: function(a) { 13672 return this.then(void 0, a) 13673 } 13674 }), 13675 _c = function() { 13676 var a = new Zc; 13677 this.promise = a, 13678 this.resolve = la(yd, a, 1), 13679 this.reject = la(xd, a, 1) 13680 } 13681 , 13682 hd.f = qd = function(a) { 13683 return a === nd || a === ad ? new _c(a) : $c(a) 13684 } 13685 ), 13686 oa(oa.G + oa.W + oa.F * !rd, { 13687 Promise: nd 13688 }), 13689 ab(nd, "Promise"), 13690 fb("Promise"), 13691 ad = S.Promise, 13692 oa(oa.S + oa.F * !rd, "Promise", { 13693 reject: function(a) { 13694 var b = qd(this); 13695 return (0, 13696 b.reject)(a), 13697 b.promise 13698 } 13699 }), 13700 oa(oa.S + oa.F * !rd, "Promise", { 13701 resolve: function(a) { 13702 return function(a, b) { 13703 if (U(a), 13704 T(b) && b.constructor === a) 13705 return b; 13706 var c = hd.f(a); 13707 return (0, 13708 c.resolve)(b), 13709 c.promise 13710 }(this, a) 13711 } 13712 }), 13713 oa(oa.S + oa.F * !(rd && Xb(function(a) { 13714 nd.all(a).catch(pd) 13715 })), "Promise", { 13716 all: function(a) { 13717 var b = this 13718 , c = qd(b) 13719 , d = c.resolve 13720 , e = c.reject 13721 , f = id(function() { 13722 var c = [] 13723 , f = 0 13724 , g = 1; 13725 cc(a, !1, function(a) { 13726 var h = f++ 13727 , i = !1; 13728 c.push(void 0), 13729 g++, 13730 b.resolve(a).then(function(a) { 13731 i || (i = !0, 13732 c[h] = a, 13733 --g || d(c)) 13734 }, e) 13735 }), 13736 --g || d(c) 13737 }); 13738 return f.e && e(f.v), 13739 c.promise 13740 }, 13741 race: function(a) { 13742 var b = this 13743 , c = qd(b) 13744 , d = c.reject 13745 , e = id(function() { 13746 cc(a, !1, function(a) { 13747 b.resolve(a).then(c.resolve, d) 13748 }) 13749 }); 13750 return e.e && d(e.v), 13751 c.promise 13752 } 13753 }); 13754 var zd = { 13755 f: Za 13756 } 13757 , Ad = ba.f 13758 , Bd = function(a) { 13759 var b = S.Symbol || (S.Symbol = R.Symbol || {}); 13760 "_" == a.charAt(0) || a in b || Ad(b, a, { 13761 value: zd.f(a) 13762 }) 13763 } 13764 , Cd = Wa.f 13765 , Dd = {}.toString 13766 , Ed = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [] 13767 , Fd = { 13768 f: function(a) { 13769 return Ed && "[object Window]" == Dd.call(a) ? function(a) { 13770 try { 13771 return Cd(a) 13772 } catch (a) { 13773 return Ed.slice() 13774 } 13775 }(a) : Cd(Ia(a)) 13776 } 13777 } 13778 , Gd = dc.KEY 13779 , Hd = _b.f 13780 , Id = ba.f 13781 , Jd = Fd.f 13782 , Kd = R.Symbol 13783 , Ld = R.JSON 13784 , Md = Ld && Ld.stringify 13785 , Nd = Za("_hidden") 13786 , Od = Za("toPrimitive") 13787 , Pd = {}.propertyIsEnumerable 13788 , Qd = Oa("symbol-registry") 13789 , Rd = Oa("symbols") 13790 , Sd = Oa("op-symbols") 13791 , Td = Object.prototype 13792 , Ud = "function" == typeof Kd 13793 , Vd = R.QObject 13794 , Wd = !Vd || !Vd.prototype || !Vd.prototype.findChild 13795 , Xd = W && V(function() { 13796 return 7 != Ab(Id({}, "a", { 13797 get: function() { 13798 return Id(this, "a", { 13799 value: 7 13800 }).a 13801 } 13802 })).a 13803 }) ? function(a, b, c) { 13804 var d = Hd(Td, b); 13805 d && delete Td[b], 13806 Id(a, b, c), 13807 d && a !== Td && Id(Td, b, d) 13808 } 13809 : Id 13810 , Yd = function(a) { 13811 var b = Rd[a] = Ab(Kd.prototype); 13812 return b._k = a, 13813 b 13814 } 13815 , Zd = Ud && "symbol" == typeof Kd.iterator ? function(a) { 13816 return "symbol" == typeof a 13817 } 13818 : function(a) { 13819 return a instanceof Kd 13820 } 13821 , $d = function(a, b, c) { 13822 return a === Td && $d(Sd, b, c), 13823 U(a), 13824 b = _(b, !0), 13825 U(c), 13826 fa(Rd, b) ? (c.enumerable ? (fa(a, Nd) && a[Nd][b] && (a[Nd][b] = !1), 13827 c = Ab(c, { 13828 enumerable: ca(0, !1) 13829 })) : (fa(a, Nd) || Id(a, Nd, ca(1, {})), 13830 a[Nd][b] = !0), 13831 Xd(a, b, c)) : Id(a, b, c) 13832 } 13833 , _d = function(a, b) { 13834 U(a); 13835 for (var c, d = function(a) { 13836 var b = tb(a) 13837 , c = oc.f; 13838 if (c) 13839 for (var d, e = c(a), f = Zb.f, g = 0; e.length > g; ) 13840 f.call(a, d = e[g++]) && b.push(d); 13841 return b 13842 }(b = Ia(b)), e = 0, f = d.length; f > e; ) 13843 $d(a, c = d[e++], b[c]); 13844 return a 13845 } 13846 , ae = function(a) { 13847 var b = Pd.call(this, a = _(a, !0)); 13848 return !(this === Td && fa(Rd, a) && !fa(Sd, a)) && (!(b || !fa(this, a) || !fa(Rd, a) || fa(this, Nd) && this[Nd][a]) || b) 13849 } 13850 , be = function(a, b) { 13851 if (a = Ia(a), 13852 b = _(b, !0), 13853 a !== Td || !fa(Rd, b) || fa(Sd, b)) { 13854 var c = Hd(a, b); 13855 return !c || !fa(Rd, b) || fa(a, Nd) && a[Nd][b] || (c.enumerable = !0), 13856 c 13857 } 13858 } 13859 , ce = function(a) { 13860 for (var b, c = Jd(Ia(a)), d = [], e = 0; c.length > e; ) 13861 fa(Rd, b = c[e++]) || b == Nd || b == Gd || d.push(b); 13862 return d 13863 } 13864 , de = function(a) { 13865 for (var b, c = a === Td, d = Jd(c ? Sd : Ia(a)), e = [], f = 0; d.length > f; ) 13866 !fa(Rd, b = d[f++]) || c && !fa(Td, b) || e.push(Rd[b]); 13867 return e 13868 }; 13869 Ud || (ja((Kd = function() { 13870 if (this instanceof Kd) 13871 throw TypeError("Symbol is not a constructor!"); 13872 var a = ia(arguments.length > 0 ? arguments[0] : void 0) 13873 , b = function(c) { 13874 this === Td && b.call(Sd, c), 13875 fa(this, Nd) && fa(this[Nd], a) && (this[Nd][a] = !1), 13876 Xd(this, a, ca(1, c)) 13877 }; 13878 return W && Wd && Xd(Td, a, { 13879 configurable: !0, 13880 set: b 13881 }), 13882 Yd(a) 13883 } 13884 ).prototype, "toString", function() { 13885 return this._k 13886 }), 13887 _b.f = be, 13888 ba.f = $d, 13889 Wa.f = Fd.f = ce, 13890 Zb.f = ae, 13891 oc.f = de, 13892 W && ja(Td, "propertyIsEnumerable", ae, !0), 13893 zd.f = function(a) { 13894 return Yd(Za(a)) 13895 } 13896 ), 13897 oa(oa.G + oa.W + oa.F * !Ud, { 13898 Symbol: Kd 13899 }); 13900 for (var ee = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), fe = 0; ee.length > fe; ) 13901 Za(ee[fe++]); 13902 for (var ge = tb(Za.store), he = 0; ge.length > he; ) 13903 Bd(ge[he++]); 13904 oa(oa.S + oa.F * !Ud, "Symbol", { 13905 for: function(a) { 13906 return fa(Qd, a += "") ? Qd[a] : Qd[a] = Kd(a) 13907 }, 13908 keyFor: function(a) { 13909 if (!Zd(a)) 13910 throw TypeError(a + " is not a symbol!"); 13911 for (var b in Qd) 13912 if (Qd[b] === a) 13913 return b 13914 }, 13915 useSetter: function() { 13916 Wd = !0 13917 }, 13918 useSimple: function() { 13919 Wd = !1 13920 } 13921 }), 13922 oa(oa.S + oa.F * !Ud, "Object", { 13923 create: function(a, b) { 13924 return void 0 === b ? Ab(a) : _d(Ab(a), b) 13925 }, 13926 defineProperty: $d, 13927 defineProperties: _d, 13928 getOwnPropertyDescriptor: be, 13929 getOwnPropertyNames: ce, 13930 getOwnPropertySymbols: de 13931 }), 13932 Ld && oa(oa.S + oa.F * (!Ud || V(function() { 13933 var a = Kd(); 13934 return "[null]" != Md([a]) || "{}" != Md({ 13935 a: a 13936 }) || "{}" != Md(Object(a)) 13937 })), "JSON", { 13938 stringify: function(a) { 13939 for (var b, c, d = [a], e = 1; arguments.length > e; ) 13940 d.push(arguments[e++]); 13941 if (c = b = d[1], 13942 (T(b) || void 0 !== a) && !Zd(a)) 13943 return Gb(b) || (b = function(a, b) { 13944 if ("function" == typeof c && (b = c.call(this, a, b)), 13945 !Zd(b)) 13946 return b 13947 } 13948 ), 13949 d[1] = b, 13950 Md.apply(Ld, d) 13951 } 13952 }), 13953 Kd.prototype[Od] || da(Kd.prototype, Od, Kd.prototype.valueOf), 13954 ab(Kd, "Symbol"), 13955 ab(Math, "Math", !0), 13956 ab(R.JSON, "JSON", !0); 13957 var ie = function(a, b) { 13958 var c = (S.Object || {})[a] || Object[a] 13959 , d = {}; 13960 d[a] = b(c), 13961 oa(oa.S + oa.F * V(function() { 13962 c(1) 13963 }), "Object", d) 13964 } 13965 , je = dc.onFreeze; 13966 ie("freeze", function(a) { 13967 return function(b) { 13968 return a && T(b) ? a(je(b)) : b 13969 } 13970 }); 13971 var ke = dc.onFreeze; 13972 ie("seal", function(a) { 13973 return function(b) { 13974 return a && T(b) ? a(ke(b)) : b 13975 } 13976 }); 13977 var le = dc.onFreeze; 13978 ie("preventExtensions", function(a) { 13979 return function(b) { 13980 return a && T(b) ? a(le(b)) : b 13981 } 13982 }), 13983 ie("isFrozen", function(a) { 13984 return function(b) { 13985 return !T(b) || !!a && a(b) 13986 } 13987 }), 13988 ie("isSealed", function(a) { 13989 return function(b) { 13990 return !T(b) || !!a && a(b) 13991 } 13992 }), 13993 ie("isExtensible", function(a) { 13994 return function(b) { 13995 return !!T(b) && (!a || a(b)) 13996 } 13997 }); 13998 var me = _b.f; 13999 ie("getOwnPropertyDescriptor", function() { 14000 return function(a, b) { 14001 return me(Ia(a), b) 14002 } 14003 }), 14004 ie("getPrototypeOf", function() { 14005 return function(a) { 14006 return Db(Xa(a)) 14007 } 14008 }), 14009 ie("keys", function() { 14010 return function(a) { 14011 return tb(Xa(a)) 14012 } 14013 }), 14014 ie("getOwnPropertyNames", function() { 14015 return Fd.f 14016 }), 14017 oa(oa.S + oa.F, "Object", { 14018 assign: qc 14019 }); 14020 var ne = Object.is || function(a, b) { 14021 return a === b ? 0 !== a || 1 / a == 1 / b : a != a && b != b 14022 } 14023 ; 14024 oa(oa.S, "Object", { 14025 is: ne 14026 }); 14027 var oe = ba.f 14028 , pe = Function.prototype 14029 , qe = /^\s*function ([^ (]*)/; 14030 "name"in pe || W && oe(pe, "name", { 14031 configurable: !0, 14032 get: function() { 14033 try { 14034 return ("" + this).match(qe)[1] 14035 } catch (a) { 14036 return "" 14037 } 14038 } 14039 }), 14040 oa(oa.S, "String", { 14041 raw: function(a) { 14042 for (var b = Ia(a.raw), c = Ca(b.length), d = arguments.length, e = [], f = 0; c > f; ) 14043 e.push(String(b[f++])), 14044 f < d && e.push(String(arguments[f])); 14045 return e.join("") 14046 } 14047 }); 14048 var re = String.fromCharCode 14049 , se = String.fromCodePoint; 14050 oa(oa.S + oa.F * (!!se && 1 != se.length), "String", { 14051 fromCodePoint: function(a) { 14052 for (var b, c = [], d = arguments.length, e = 0; d > e; ) { 14053 if (b = +arguments[e++], 14054 La(b, 1114111) !== b) 14055 throw RangeError(b + " is not a valid code point"); 14056 c.push(b < 65536 ? re(b) : re(55296 + ((b -= 65536) >> 10), b % 1024 + 56320)) 14057 } 14058 return c.join("") 14059 } 14060 }); 14061 var te, ue = (te = !1, 14062 function(a, b) { 14063 var c, d, e = String(Ha(a)), f = Aa(b), g = e.length; 14064 return f < 0 || f >= g ? te ? "" : void 0 : (c = e.charCodeAt(f)) < 55296 || c > 56319 || f + 1 === g || (d = e.charCodeAt(f + 1)) < 56320 || d > 57343 ? te ? e.charAt(f) : c : te ? e.slice(f, f + 2) : d - 56320 + (c - 55296 << 10) + 65536 14065 } 14066 ); 14067 oa(oa.P, "String", { 14068 codePointAt: function(a) { 14069 return ue(this, a) 14070 } 14071 }); 14072 var ve = function(a) { 14073 var b = String(Ha(this)) 14074 , c = "" 14075 , d = Aa(a); 14076 if (d < 0 || d == 1 / 0) 14077 throw RangeError("Count can't be negative"); 14078 for (; d > 0; (d >>>= 1) && (b += b)) 14079 1 & d && (c += b); 14080 return c 14081 }; 14082 oa(oa.P, "String", { 14083 repeat: ve 14084 }); 14085 var we = Za("match") 14086 , xe = function(a) { 14087 var b; 14088 return T(a) && (void 0 !== (b = a[we]) ? !!b : "RegExp" == Fa(a)) 14089 } 14090 , ye = function(a, b, c) { 14091 if (xe(b)) 14092 throw TypeError("String#" + c + " doesn't accept regex!"); 14093 return String(Ha(a)) 14094 } 14095 , ze = Za("match") 14096 , Ae = function(a) { 14097 var b = /./; 14098 try {
vendor: 5,106 bytes, lines 14099-14234
14099 "/./"[a](b) 14100 } catch (c) { 14101 try { 14102 return b[ze] = !1, 14103 !"/./"[a](b) 14104 } catch (a) {} 14105 } 14106 return !0 14107 } 14108 , Be = "".startsWith; 14109 oa(oa.P + oa.F * Ae("startsWith"), "String", { 14110 startsWith: function(a) { 14111 var b = ye(this, a, "startsWith") 14112 , c = Ca(Math.min(arguments.length > 1 ? arguments[1] : void 0, b.length)) 14113 , d = String(a); 14114 return Be ? Be.call(b, d, c) : b.slice(c, c + d.length) === d 14115 } 14116 }); 14117 var Ce = "".endsWith; 14118 oa(oa.P + oa.F * Ae("endsWith"), "String", { 14119 endsWith: function(a) { 14120 var b = ye(this, a, "endsWith") 14121 , c = arguments.length > 1 ? arguments[1] : void 0 14122 , d = Ca(b.length) 14123 , e = void 0 === c ? d : Math.min(Ca(c), d) 14124 , f = String(a); 14125 return Ce ? Ce.call(b, f, e) : b.slice(e - f.length, e) === f 14126 } 14127 }), 14128 oa(oa.P + oa.F * Ae("includes"), "String", { 14129 includes: function(a) { 14130 return !!~ye(this, a, "includes").indexOf(a, arguments.length > 1 ? arguments[1] : void 0) 14131 } 14132 }), 14133 W && "g" != /./g.flags && ba.f(RegExp.prototype, "flags", { 14134 configurable: !0, 14135 get: function() { 14136 var a = U(this) 14137 , b = ""; 14138 return a.global && (b += "g"), 14139 a.ignoreCase && (b += "i"), 14140 a.multiline && (b += "m"), 14141 a.unicode && (b += "u"), 14142 a.sticky && (b += "y"), 14143 b 14144 } 14145 }); 14146 var De = function(a, b, c) { 14147 var d = Za(a) 14148 , e = c(Ha, d, ""[a]) 14149 , f = e[0] 14150 , g = e[1]; 14151 V(function() { 14152 var b = {}; 14153 return b[d] = function() { 14154 return 7 14155 } 14156 , 14157 7 != ""[a](b) 14158 }) && (ja(String.prototype, a, f), 14159 da(RegExp.prototype, d, 2 == b ? function(a, b) { 14160 return g.call(a, this, b) 14161 } 14162 : function(a) { 14163 return g.call(a, this) 14164 } 14165 )) 14166 }; 14167 De("match", 1, function(a, b, c) { 14168 return [function(c) { 14169 var d = a(this) 14170 , e = null == c ? void 0 : c[b]; 14171 return void 0 !== e ? e.call(c, d) : new RegExp(c)[b](String(d)) 14172 } 14173 , c] 14174 }), 14175 De("replace", 2, function(a, b, c) { 14176 return [function(d, e) { 14177 var f = a(this) 14178 , g = null == d ? void 0 : d[b]; 14179 return void 0 !== g ? g.call(d, f, e) : c.call(String(f), d, e) 14180 } 14181 , c] 14182 }), 14183 De("split", 2, function(a, b, c) { 14184 var d = xe 14185 , e = c 14186 , f = [].push; 14187 if ("c" == "abbc".split(/(b)*/)[1] || 4 != "test".split(/(?:)/, -1).length || 2 != "ab".split(/(?:ab)*/).length || 4 != ".".split(/(.?)(.?)/).length || ".".split(/()()/).length > 1 || "".split(/.?/).length) { 14188 var g = void 0 === /()??/.exec("")[1]; 14189 c = function(a, b) { 14190 var c = String(this); 14191 if (void 0 === a && 0 === b) 14192 return []; 14193 if (!d(a)) 14194 return e.call(c, a, b); 14195 var h, i, j, k, l, m = [], n = (a.ignoreCase ? "i" : "") + (a.multiline ? "m" : "") + (a.unicode ? "u" : "") + (a.sticky ? "y" : ""), o = 0, p = void 0 === b ? 4294967295 : b >>> 0, q = new RegExp(a.source,n + "g"); 14196 for (g || (h = new RegExp("^" + q.source + "$(?!\\s)",n)); (i = q.exec(c)) && !((j = i.index + i[0].length) > o && (m.push(c.slice(o, i.index)), 14197 !g && i.length > 1 && i[0].replace(h, function() { 14198 for (l = 1; l < arguments.length - 2; l++) 14199 void 0 === arguments[l] && (i[l] = void 0) 14200 }), 14201 i.length > 1 && i.index < c.length && f.apply(m, i.slice(1)), 14202 k = i[0].length, 14203 o = j, 14204 m.length >= p)); ) 14205 q.lastIndex === i.index && q.lastIndex++; 14206 return o === c.length ? !k && q.test("") || m.push("") : m.push(c.slice(o)), 14207 m.length > p ? m.slice(0, p) : m 14208 } 14209 } else 14210 "0".split(void 0, 0).length && (c = function(a, b) { 14211 return void 0 === a && 0 === b ? [] : e.call(this, a, b) 14212 } 14213 ); 14214 return [function(d, e) { 14215 var f = a(this) 14216 , g = null == d ? void 0 : d[b]; 14217 return void 0 !== g ? g.call(d, f, e) : c.call(String(f), d, e) 14218 } 14219 , c] 14220 }), 14221 De("search", 1, function(a, b, c) { 14222 return [function(c) { 14223 var d = a(this) 14224 , e = null == c ? void 0 : c[b]; 14225 return void 0 !== e ? e.call(c, d) : new RegExp(c)[b](String(d)) 14226 } 14227 , c] 14228 }); 14229 var Ee = function(a, b, c) { 14230 b in a ? ba.f(a, b, ca(0, c)) : a[b] = c 14231 }; 14232 oa(oa.S + oa.F * !Xb(function(a) {}), "Array", { 14233 from: function(a) { 14234 var b, c, d, e, f = Xa(a), g = "function" == typeof this ? this
vendor: 20,941 bytes, lines 14234-14845
14234: Array, h = arguments.length, i = h > 1 ? arguments[1] : void 0, j = void 0 !== i, k = 0, l = Fb(f); 14235 if (j && (i = la(i, h > 2 ? arguments[2] : void 0, 2)), 14236 null == l || g == Array && sb(l)) 14237 for (c = new g(b = Ca(f.length)); b > k; k++) 14238 Ee(c, k, j ? i(f[k], k) : f[k]); 14239 else 14240 for (e = l.call(f), 14241 c = new g; !(d = e.next()).done; k++) 14242 Ee(c, k, j ? bc(e, i, [d.value, k], !0) : d.value); 14243 return c.length = k, 14244 c 14245 } 14246 }), 14247 oa(oa.S + oa.F * V(function() { 14248 function a() {} 14249 return !(Array.of.call(a)instanceof a) 14250 }), "Array", { 14251 of: function() { 14252 for (var a = 0, b = arguments.length, c = new ("function" == typeof this ? this : Array)(b); b > a; ) 14253 Ee(c, a, arguments[a++]); 14254 return c.length = b, 14255 c 14256 } 14257 }), 14258 oa(oa.P, "Array", { 14259 copyWithin: Yb 14260 }), 14261 Mb("copyWithin"); 14262 var Fe = Jb(5) 14263 , Ge = !0; 14264 "find"in [] && Array(1).find(function() { 14265 Ge = !1 14266 }), 14267 oa(oa.P + oa.F * Ge, "Array", { 14268 find: function(a) { 14269 return Fe(this, a, arguments.length > 1 ? arguments[1] : void 0) 14270 } 14271 }), 14272 Mb("find"); 14273 var He = Jb(6) 14274 , Ie = !0; 14275 "findIndex"in [] && Array(1).findIndex(function() { 14276 Ie = !1 14277 }), 14278 oa(oa.P + oa.F * Ie, "Array", { 14279 findIndex: function(a) { 14280 return He(this, a, arguments.length > 1 ? arguments[1] : void 0) 14281 } 14282 }), 14283 Mb("findIndex"), 14284 oa(oa.P, "Array", { 14285 fill: Ya 14286 }), 14287 Mb("fill"); 14288 var Je = R.isFinite; 14289 oa(oa.S, "Number", { 14290 isFinite: function(a) { 14291 return "number" == typeof a && Je(a) 14292 } 14293 }); 14294 var Ke = Math.floor 14295 , Le = function(a) { 14296 return !T(a) && isFinite(a) && Ke(a) === a 14297 }; 14298 oa(oa.S, "Number", { 14299 isInteger: Le 14300 }); 14301 var Me = Math.abs; 14302 oa(oa.S, "Number", { 14303 isSafeInteger: function(a) { 14304 return Le(a) && Me(a) <= 9007199254740991 14305 } 14306 }), 14307 oa(oa.S, "Number", { 14308 isNaN: function(a) { 14309 return a != a 14310 } 14311 }), 14312 oa(oa.S, "Number", { 14313 EPSILON: Math.pow(2, -52) 14314 }), 14315 oa(oa.S, "Number", { 14316 MIN_SAFE_INTEGER: -9007199254740991 14317 }), 14318 oa(oa.S, "Number", { 14319 MAX_SAFE_INTEGER: 9007199254740991 14320 }); 14321 var Ne = Math.log1p || function(a) { 14322 return (a = +a) > -1e-8 && a < 1e-8 ? a - a * a / 2 : Math.log(1 + a) 14323 } 14324 , Oe = Math.sqrt 14325 , Pe = Math.acosh; 14326 oa(oa.S + oa.F * !(Pe && 710 == Math.floor(Pe(Number.MAX_VALUE)) && Pe(1 / 0) == 1 / 0), "Math", { 14327 acosh: function(a) { 14328 return (a = +a) < 1 ? NaN : a > 94906265.62425156 ? Math.log(a) + Math.LN2 : Ne(a - 1 + Oe(a - 1) * Oe(a + 1)) 14329 } 14330 }); 14331 var Qe = Math.asinh; 14332 oa(oa.S + oa.F * !(Qe && 1 / Qe(0) > 0), "Math", { 14333 asinh: function a(b) { 14334 return isFinite(b = +b) && 0 != b ? b < 0 ? -a(-b) : Math.log(b + Math.sqrt(b * b + 1)) : b 14335 } 14336 }); 14337 var Re = Math.atanh; 14338 oa(oa.S + oa.F * !(Re && 1 / Re(-0) < 0), "Math", { 14339 atanh: function(a) { 14340 return 0 == (a = +a) ? a : Math.log((1 + a) / (1 - a)) / 2 14341 } 14342 }); 14343 var Se = Math.sign || function(a) { 14344 return 0 == (a = +a) || a != a ? a : a < 0 ? -1 : 1 14345 } 14346 ; 14347 oa(oa.S, "Math", { 14348 cbrt: function(a) { 14349 return Se(a = +a) * Math.pow(Math.abs(a), 1 / 3) 14350 } 14351 }), 14352 oa(oa.S, "Math", { 14353 clz32: function(a) { 14354 return (a >>>= 0) ? 31 - Math.floor(Math.log(a + .5) * Math.LOG2E) : 32 14355 } 14356 }); 14357 var Te = Math.exp; 14358 oa(oa.S, "Math", { 14359 cosh: function(a) { 14360 return (Te(a = +a) + Te(-a)) / 2 14361 } 14362 }); 14363 var Ue = Math.expm1 14364 , Ve = !Ue || Ue(10) > 22025.465794806718 || Ue(10) < 22025.465794806718 || -2e-17 != Ue(-2e-17) ? function(a) { 14365 return 0 == (a = +a) ? a : a > -1e-6 && a < 1e-6 ? a + a * a / 2 : Math.exp(a) - 1 14366 } 14367 : Ue; 14368 oa(oa.S + oa.F * (Ve != Math.expm1), "Math", { 14369 expm1: Ve 14370 }); 14371 var We = Math.pow 14372 , Xe = We(2, -52) 14373 , Ye = We(2, -23) 14374 , Ze = We(2, 127) * (2 - Ye) 14375 , $e = We(2, -126) 14376 , _e = Math.fround || function(a) { 14377 var b, c, d = Math.abs(a), e = Se(a); 14378 return d < $e ? e * (d / $e / Ye + 1 / Xe - 1 / Xe) * $e * Ye : (c = (b = (1 + Ye / Xe) * d) - (b - d)) > Ze || c != c ? e * (1 / 0) : e * c 14379 } 14380 ; 14381 oa(oa.S, "Math", { 14382 fround: _e 14383 }); 14384 var af = Math.abs; 14385 oa(oa.S, "Math", { 14386 hypot: function(a, b) { 14387 for (var c, d, e = 0, f = 0, g = arguments.length, h = 0; f < g; ) 14388 h < (c = af(arguments[f++])) ? (e = e * (d = h / c) * d + 1, 14389 h = c) : e += c > 0 ? (d = c / h) * d : c; 14390 return h === 1 / 0 ? 1 / 0 : h * Math.sqrt(e) 14391 } 14392 }); 14393 var bf = Math.imul; 14394 oa(oa.S + oa.F * V(function() { 14395 return -5 != bf(4294967295, 5) || 2 != bf.length 14396 }), "Math", { 14397 imul: function(a, b) { 14398 var c = +a 14399 , d = +b 14400 , e = 65535 & c 14401 , f = 65535 & d; 14402 return 0 | e * f + ((65535 & c >>> 16) * f + e * (65535 & d >>> 16) << 16 >>> 0) 14403 } 14404 }), 14405 oa(oa.S, "Math", { 14406 log1p: Ne 14407 }), 14408 oa(oa.S, "Math", { 14409 log10: function(a) { 14410 return Math.log(a) * Math.LOG10E 14411 } 14412 }), 14413 oa(oa.S, "Math", { 14414 log2: function(a) { 14415 return Math.log(a) / Math.LN2 14416 } 14417 }), 14418 oa(oa.S, "Math", { 14419 sign: Se 14420 }); 14421 var cf = Math.exp; 14422 oa(oa.S + oa.F * V(function() { 14423 return -2e-17 != !Math.sinh(-2e-17) 14424 }), "Math", { 14425 sinh: function(a) { 14426 return Math.abs(a = +a) < 1 ? (Ve(a) - Ve(-a)) / 2 : (cf(a - 1) - cf(-a - 1)) * (Math.E / 2) 14427 } 14428 }); 14429 var df = Math.exp; 14430 oa(oa.S, "Math", { 14431 tanh: function(a) { 14432 var b = Ve(a = +a) 14433 , c = Ve(-a); 14434 return b == 1 / 0 ? 1 : c == 1 / 0 ? -1 : (b - c) / (df(a) + df(-a)) 14435 } 14436 }), 14437 oa(oa.S, "Math", { 14438 trunc: function(a) { 14439 return (a > 0 ? Math.floor : Math.ceil)(a) 14440 } 14441 }); 14442 var ef = Ma(!0); 14443 oa(oa.P, "Array", { 14444 includes: function(a) { 14445 return ef(this, a, arguments.length > 1 ? arguments[1] : void 0) 14446 } 14447 }), 14448 Mb("includes"); 14449 var ff = Zb.f 14450 , gf = function(a) { 14451 return function(b) { 14452 for (var c, d = Ia(b), e = tb(d), f = e.length, g = 0, h = []; f > g; ) 14453 ff.call(d, c = e[g++]) && h.push(a ? [c, d[c]] : d[c]); 14454 return h 14455 } 14456 } 14457 , hf = gf(!1); 14458 oa(oa.S, "Object", { 14459 values: function(a) { 14460 return hf(a) 14461 } 14462 }); 14463 var jf = gf(!0); 14464 oa(oa.S, "Object", { 14465 entries: function(a) { 14466 return jf(a) 14467 } 14468 }), 14469 oa(oa.S, "Object", { 14470 getOwnPropertyDescriptors: function(a) { 14471 for (var b, c, d = Ia(a), e = _b.f, f = Lc(d), g = {}, h = 0; f.length > h; ) 14472 void 0 !== (c = e(d, b = f[h++])) && Ee(g, b, c); 14473 return g 14474 } 14475 }); 14476 var kf = function(a, b, c, d) { 14477 var e = String(Ha(a)) 14478 , f = e.length 14479 , g = void 0 === c ? " " : String(c) 14480 , h = Ca(b); 14481 if (h <= f || "" == g) 14482 return e; 14483 var i = h - f 14484 , j = ve.call(g, Math.ceil(i / g.length)); 14485 return j.length > i && (j = j.slice(0, i)), 14486 d ? j + e : e + j 14487 } 14488 , lf = R.navigator 14489 , mf = lf && lf.userAgent || ""; 14490 oa(oa.P + oa.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(mf), "String", { 14491 padStart: function(a) { 14492 return kf(this, a, arguments.length > 1 ? arguments[1] : void 0, !0) 14493 } 14494 }), 14495 oa(oa.P + oa.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(mf), "String", { 14496 padEnd: function(a) { 14497 return kf(this, a, arguments.length > 1 ? arguments[1] : void 0, !1) 14498 } 14499 }); 14500 var nf = [].slice 14501 , of = /MSIE .\./.test(mf) 14502 , pf = function(a) { 14503 return function(b, c) { 14504 var d = arguments.length > 2 14505 , e = !!d && nf.call(arguments, 2); 14506 return a(d ? function() { 14507 ("function" == typeof b ? b : Function(b)).apply(this, e) 14508 } 14509 : b, c) 14510 } 14511 }; 14512 oa(oa.G + oa.B + oa.F * of, { 14513 setTimeout: pf(R.setTimeout), 14514 setInterval: pf(R.setInterval) 14515 }), 14516 oa(oa.G + oa.B, { 14517 setImmediate: bd.set, 14518 clearImmediate: bd.clear 14519 }); 14520 for (var qf = Za("iterator"), rf = Za("toStringTag"), sf = pb.Array, tf = { 14521 CSSRuleList: !0, 14522 CSSStyleDeclaration: !1, 14523 CSSValueList: !1, 14524 ClientRectList: !1, 14525 DOMRectList: !1, 14526 DOMStringList: !1, 14527 DOMTokenList: !0, 14528 DataTransferItemList: !1, 14529 FileList: !1, 14530 HTMLAllCollection: !1, 14531 HTMLCollection: !1, 14532 HTMLFormElement: !1, 14533 HTMLSelectElement: !1, 14534 MediaList: !0, 14535 MimeTypeArray: !1, 14536 NamedNodeMap: !1, 14537 NodeList: !0, 14538 PaintRequestList: !1, 14539 Plugin: !1, 14540 PluginArray: !1, 14541 SVGLengthList: !1, 14542 SVGNumberList: !1, 14543 SVGPathSegList: !1, 14544 SVGPointList: !1, 14545 SVGStringList: !1, 14546 SVGTransformList: !1, 14547 SourceBufferList: !1, 14548 StyleSheetList: !0, 14549 TextTrackCueList: !1, 14550 TextTrackList: !1, 14551 TouchList: !1 14552 }, uf = tb(tf), vf = 0; vf < uf.length; vf++) { 14553 var wf, xf = uf[vf], yf = tf[xf], zf = R[xf], Af = zf && zf.prototype; 14554 if (Af && (Af[qf] || da(Af, qf, sf), 14555 Af[rf] || da(Af, rf, xf), 14556 pb[xf] = sf, 14557 yf)) 14558 for (wf in Ub) 14559 Af[wf] || ja(Af, wf, Ub[wf], !0) 14560 } 14561 a(function(a) { 14562 !function(b) { 14563 function c(a, b, c, f) { 14564 var g = b && b.prototype instanceof e ? b : e 14565 , h = Object.create(g.prototype) 14566 , i = new m(f || []); 14567 return h._invoke = function(a, b, c) { 14568 var e = x; 14569 return function(f, g) { 14570 if (e === z) 14571 throw new Error("Generator is already running"); 14572 if (e === A) { 14573 if ("throw" === f) 14574 throw g; 14575 return o() 14576 } 14577 for (c.method = f, 14578 c.arg = g; ; ) { 14579 var h = c.delegate; 14580 if (h) { 14581 var i = j(h, c); 14582 if (i) { 14583 if (i === B) 14584 continue; 14585 return i 14586 } 14587 } 14588 if ("next" === c.method) 14589 c.sent = c._sent = c.arg; 14590 else if ("throw" === c.method) { 14591 if (e === x) 14592 throw e = A, 14593 c.arg; 14594 c.dispatchException(c.arg) 14595 } else 14596 "return" === c.method && c.abrupt("return", c.arg); 14597 e = z; 14598 var k = d(a, b, c); 14599 if ("normal" === k.type) { 14600 if (e = c.done ? A : y, 14601 k.arg === B) 14602 continue; 14603 return { 14604 value: k.arg, 14605 done: c.done 14606 } 14607 } 14608 "throw" === k.type && (e = A, 14609 c.method = "throw", 14610 c.arg = k.arg) 14611 } 14612 } 14613 }(a, c, i), 14614 h 14615 } 14616 function d(a, b, c) { 14617 try { 14618 return { 14619 type: "normal", 14620 arg: a.call(b, c) 14621 } 14622 } catch (a) { 14623 return { 14624 type: "throw", 14625 arg: a 14626 } 14627 } 14628 } 14629 function e() {} 14630 function f() {} 14631 function g() {} 14632 function h(a) { 14633 ["next", "throw", "return"].forEach(function(b) { 14634 a[b] = function(a) { 14635 return this._invoke(b, a) 14636 } 14637 }) 14638 } 14639 function i(a) { 14640 function c(b, e, f, g) { 14641 var h = d(a[b], a, e); 14642 if ("throw" !== h.type) { 14643 var i = h.arg 14644 , j = i.value; 14645 return j && "object" == typeof j && r.call(j, "__await") ? Promise.resolve(j.__await).then(function(a) { 14646 c("next", a, f, g) 14647 }, function(a) { 14648 c("throw", a, f, g) 14649 }) : Promise.resolve(j).then(function(a) { 14650 i.value = a, 14651 f(i) 14652 }, g) 14653 } 14654 g(h.arg) 14655 } 14656 var e; 14657 "object" == typeof b.process && b.process.domain && (c = b.process.domain.bind(c)), 14658 this._invoke = function(a, b) { 14659 function d() { 14660 return new Promise(function(d, e) { 14661 c(a, b, d, e) 14662 } 14663 ) 14664 } 14665 return e = e ? e.then(d, d) : d() 14666 } 14667 } 14668 function j(a, b) { 14669 var c = a.iterator[b.method]; 14670 if (c === p) { 14671 if (b.delegate = null, 14672 "throw" === b.method) { 14673 if (a.iterator.return && (b.method = "return", 14674 b.arg = p, 14675 j(a, b), 14676 "throw" === b.method)) 14677 return B; 14678 b.method = "throw", 14679 b.arg = new TypeError("The iterator does not provide a 'throw' method") 14680 } 14681 return B 14682 } 14683 var e = d(c, a.iterator, b.arg); 14684 if ("throw" === e.type) 14685 return b.method = "throw", 14686 b.arg = e.arg, 14687 b.delegate = null, 14688 B; 14689 var f = e.arg; 14690 return f ? f.done ? (b[a.resultName] = f.value, 14691 b.next = a.nextLoc, 14692 "return" !== b.method && (b.method = "next", 14693 b.arg = p), 14694 b.delegate = null, 14695 B) : f : (b.method = "throw", 14696 b.arg = new TypeError("iterator result is not an object"), 14697 b.delegate = null, 14698 B) 14699 } 14700 function k(a) { 14701 var b = { 14702 tryLoc: a[0] 14703 }; 14704 1 in a && (b.catchLoc = a[1]), 14705 2 in a && (b.finallyLoc = a[2], 14706 b.afterLoc = a[3]), 14707 this.tryEntries.push(b) 14708 } 14709 function l(a) { 14710 var b = a.completion || {}; 14711 b.type = "normal", 14712 delete b.arg, 14713 a.completion = b 14714 } 14715 function m(a) { 14716 this.tryEntries = [{ 14717 tryLoc: "root" 14718 }], 14719 a.forEach(k, this), 14720 this.reset(!0) 14721 } 14722 function n(a) { 14723 if (a) { 14724 var b = a[t]; 14725 if (b) 14726 return b.call(a); 14727 if ("function" == typeof a.next) 14728 return a; 14729 if (!isNaN(a.length)) { 14730 var c = -1 14731 , d = function b() { 14732 for (; ++c < a.length; ) 14733 if (r.call(a, c)) 14734 return b.value = a[c], 14735 b.done = !1, 14736 b; 14737 return b.value = p, 14738 b.done = !0, 14739 b 14740 }; 14741 return d.next = d 14742 } 14743 } 14744 return { 14745 next: o 14746 } 14747 } 14748 function o() { 14749 return { 14750 value: p, 14751 done: !0 14752 } 14753 } 14754 var p, q = Object.prototype, r = q.hasOwnProperty, s = "function" == typeof Symbol ? Symbol : {}, t = s.iterator || "@@iterator", u = s.asyncIterator || "@@asyncIterator", v = s.toStringTag || "@@toStringTag", w = b.regeneratorRuntime; 14755 if (w) 14756 a.exports = w; 14757 else { 14758 (w = b.regeneratorRuntime = a.exports).wrap = c; 14759 var x = "suspendedStart" 14760 , y = "suspendedYield" 14761 , z = "executing" 14762 , A = "completed" 14763 , B = {} 14764 , C = {}; 14765 C[t] = function() { 14766 return this 14767 } 14768 ; 14769 var D = Object.getPrototypeOf 14770 , E = D && D(D(n([]))); 14771 E && E !== q && r.call(E, t) && (C = E); 14772 var F = g.prototype = e.prototype = Object.create(C); 14773 f.prototype = F.constructor = g, 14774 g.constructor = f, 14775 g[v] = f.displayName = "GeneratorFunction", 14776 w.isGeneratorFunction = function(a) { 14777 var b = "function" == typeof a && a.constructor; 14778 return !!b && (b === f || "GeneratorFunction" === (b.displayName || b.name)) 14779 } 14780 , 14781 w.mark = function(a) { 14782 return Object.setPrototypeOf ? Object.setPrototypeOf(a, g) : (a.__proto__ = g, 14783 v in a || (a[v] = "GeneratorFunction")), 14784 a.prototype = Object.create(F), 14785 a 14786 } 14787 , 14788 w.awrap = function(a) { 14789 return { 14790 __await: a 14791 } 14792 } 14793 , 14794 h(i.prototype), 14795 i.prototype[u] = function() { 14796 return this 14797 } 14798 , 14799 w.AsyncIterator = i, 14800 w.async = function(a, b, d, e) { 14801 var f = new i(c(a, b, d, e)); 14802 return w.isGeneratorFunction(b) ? f : f.next().then(function(a) { 14803 return a.done ? a.value : f.next() 14804 }) 14805 } 14806 , 14807 h(F), 14808 F[v] = "Generator", 14809 F[t] = function() { 14810 return this 14811 } 14812 , 14813 F.toString = function() { 14814 return "[object Generator]" 14815 } 14816 , 14817 w.keys = function(a) { 14818 var b = []; 14819 for (var c in a) 14820 b.push(c); 14821 return b.reverse(), 14822 function c() { 14823 for (; b.length; ) { 14824 var d = b.pop(); 14825 if (d in a) 14826 return c.value = d, 14827 c.done = !1, 14828 c 14829 } 14830 return c.done = !0, 14831 c 14832 } 14833 } 14834 , 14835 w.values = n, 14836 m.prototype = { 14837 constructor: m, 14838 reset: function(a) { 14839 if (this.prev = 0, 14840 this.next = 0, 14841 this.sent = this._sent = p, 14842 this.done = !1, 14843 this.delegate = null, 14844 this.method = "next", 14845 this.arg = p,
vendor: 4,437 bytes, lines 14846-14931
14846 this.tryEntries.forEach(l), 14847 !a) 14848 for (var b in this) 14849 "t" === b.charAt(0) && r.call(this, b) && !isNaN(+b.slice(1)) && (this[b] = p) 14850 }, 14851 stop: function() { 14852 this.done = !0; 14853 var a = this.tryEntries[0].completion; 14854 if ("throw" === a.type) 14855 throw a.arg; 14856 return this.rval 14857 }, 14858 dispatchException: function(a) { 14859 function b(b, d) { 14860 return f.type = "throw", 14861 f.arg = a, 14862 c.next = b, 14863 d && (c.method = "next", 14864 c.arg = p), 14865 !!d 14866 } 14867 if (this.done) 14868 throw a; 14869 for (var c = this, d = this.tryEntries.length - 1; d >= 0; --d) { 14870 var e = this.tryEntries[d] 14871 , f = e.completion; 14872 if ("root" === e.tryLoc) 14873 return b("end"); 14874 if (e.tryLoc <= this.prev) { 14875 var g = r.call(e, "catchLoc") 14876 , h = r.call(e, "finallyLoc"); 14877 if (g && h) { 14878 if (this.prev < e.catchLoc) 14879 return b(e.catchLoc, !0); 14880 if (this.prev < e.finallyLoc) 14881 return b(e.finallyLoc) 14882 } else if (g) { 14883 if (this.prev < e.catchLoc) 14884 return b(e.catchLoc, !0) 14885 } else { 14886 if (!h) 14887 throw new Error("try statement without catch or finally"); 14888 if (this.prev < e.finallyLoc) 14889 return b(e.finallyLoc) 14890 } 14891 } 14892 } 14893 }, 14894 abrupt: function(a, b) { 14895 for (var c = this.tryEntries.length - 1; c >= 0; --c) { 14896 var d = this.tryEntries[c]; 14897 if (d.tryLoc <= this.prev && r.call(d, "finallyLoc") && this.prev < d.finallyLoc) { 14898 var e = d; 14899 break 14900 } 14901 } 14902 e && ("break" === a || "continue" === a) && e.tryLoc <= b && b <= e.finallyLoc && (e = null); 14903 var f = e ? e.completion : {}; 14904 return f.type = a, 14905 f.arg = b, 14906 e ? (this.method = "next", 14907 this.next = e.finallyLoc, 14908 B) : this.complete(f) 14909 }, 14910 complete: function(a, b) { 14911 if ("throw" === a.type) 14912 throw a.arg; 14913 return "break" === a.type || "continue" === a.type ? this.next = a.arg : "return" === a.type ? (this.rval = this.arg = a.arg, 14914 this.method = "return", 14915 this.next = "end") : "normal" === a.type && b && (this.next = b), 14916 B 14917 }, 14918 finish: function(a) { 14919 for (var b = this.tryEntries.length - 1; b >= 0; --b) { 14920 var c = this.tryEntries[b]; 14921 if (c.finallyLoc === a) 14922 return this.complete(c.completion, c.afterLoc), 14923 l(c), 14924 B 14925 } 14926 }, 14927 catch: function(a) { 14928 for (var b = this.tryEntries.length - 1; b >= 0; --b) { 14929 var c = this.tryEntries[b]; 14930 if (c.tryLoc === a) { 14931 var d = c.completion;
14932 if ("throw" === d.type) { 14933 var e = d.arg; 14934 l(c) 14935 } 14936 return e 14937 } 14938 } 14939 throw new Error("illegal catch attempt") 14940 }, 14941 delegateYield: function(a, b, c) { 14942 return this.delegate = { 14943 iterator: n(a), 14944 resultName: b, 14945 nextLoc: c 14946 }, 14947 "next" === this.method && (this.arg = p), 14948 B 14949 } 14950 } 14951 } 14952 }("object" == typeof Q ? Q : "object" == typeof window ? window : "object" == typeof self ? self : Q) 14953 }); 14954 try { 14955 var Bf = new window.CustomEvent("test"); 14956 if (Bf.preventDefault(), 14957 !0 !== Bf.defaultPrevented) 14958 throw new Error("Could not prevent default") 14959 } catch (Q) { 14960 var Cf = function(a, b) { 14961 var c, d; 14962 return b = b || { 14963 bubbles: !1, 14964 cancelable: !1, 14965 detail: void 0 14966 }, 14967 (c = document.createEvent("CustomEvent")).initCustomEvent(a, b.bubbles, b.cancelable, b.detail), 14968 d = c.preventDefault, 14969 c.preventDefault = function() { 14970 d.call(this); 14971 try { 14972 Object.defineProperty(this, "defaultPrevented", { 14973 get: function() { 14974 return !0 14975 } 14976 }) 14977 } catch (a) { 14978 this.defaultPrevented = !0 14979 } 14980 } 14981 , 14982 c 14983 }; 14984 Cf.prototype = window.Event.prototype, 14985 window.CustomEvent = Cf 14986 } 14987 !function(a) { 14988 var b = function() { 14989 try { 14990 return !!Symbol.iterator 14991 } catch (a) { 14992 return !1 14993 } 14994 }() 14995 , c = function(a) { 14996 var c = { 14997 next: function() { 14998 var b = a.shift(); 14999 return { 15000 done: void 0 === b, 15001 value: b 15002 } 15003 } 15004 }; 15005 return b && (c[Symbol.iterator] = function() { 15006 return c 15007 } 15008 ), 15009 c 15010 } 15011 , d = function(a) { 15012 return encodeURIComponent(a).replace(/%20/g, "+") 15013 } 15014 , e = function(a) { 15015 return decodeURIComponent(a).replace(/\+/g, " ") 15016 }; 15017 "URLSearchParams"in a && "a=1" === new URLSearchParams("?a=1").toString() || function() { 15018 var f = function(a) { 15019 if (Object.defineProperty(this, "_entries", { 15020 value: {} 15021 }), 15022 "string" == typeof a) { 15023 if ("" !== a) 15024 for (var b, c = (a = a.replace(/^\?/, "")).split("&"), d = 0; d < c.length; d++) 15025 b = c[d].split("="), 15026 this.append(e(b[0]), b.length > 1 ? e(b[1]) : "") 15027 } else if (a instanceof f) { 15028 var g = this; 15029 a.forEach(function(a, b) { 15030 g.append(a, b) 15031 }) 15032 } 15033 } 15034 , g = f.prototype; 15035 g.append = function(a, b) { 15036 a in this._entries ? this._entries[a].push(b.toString()) : this._entries[a] = [b.toString()] 15037 } 15038 , 15039 g.delete = function(a) { 15040 delete this._entries[a] 15041 } 15042 , 15043 g.get = function(a) { 15044 return a in this._entries ? this._entries[a][0] : null 15045 } 15046 , 15047 g.getAll = function(a) { 15048 return a in this._entries ? this._entries[a].slice(0) : [] 15049 } 15050 , 15051 g.has = function(a) { 15052 return a in this._entries 15053 } 15054 , 15055 g.set = function(a, b) { 15056 this._entries[a] = [b.toString()] 15057 } 15058 , 15059 g.forEach = function(a, b) { 15060 var c; 15061 for (var d in this._entries) 15062 if (this._entries.hasOwnProperty(d)) { 15063 c = this._entries[d]; 15064 for (var e = 0; e < c.length; e++) 15065 a.call(b, c[e], d, this) 15066 } 15067 } 15068 , 15069 g.keys = function() { 15070 var a = []; 15071 return this.forEach(function(b, c) { 15072 a.push(c) 15073 }), 15074 c(a) 15075 } 15076 , 15077 g.values = function() { 15078 var a = []; 15079 return this.forEach(function(b) { 15080 a.push(b) 15081 }), 15082 c(a) 15083 } 15084 , 15085 g.entries = function() { 15086 var a = []; 15087 return this.forEach(function(b, c) { 15088 a.push([c, b]) 15089 }), 15090 c(a) 15091 } 15092 , 15093 b && (g[Symbol.iterator] = g.entries), 15094 g.toString = function() { 15095 var a = ""; 15096 return this.forEach(function(b, c) { 15097 a.length > 0 && (a += "&"), 15098 a += d(c) + "=" + d(b) 15099 }), 15100 a 15101 } 15102 , 15103 a.URLSearchParams = f 15104 }() 15105 }(void 0 !== Q ? Q : "undefined" != typeof window ? window : "undefined" != typeof self ? self : Q), 15106 function(a) { 15107 if (function() { 15108 try { 15109 var a = new URL("b","http://a"); 15110 return a.pathname = "c%20d", 15111 "http://a/c%20d" === a.href && a.searchParams 15112 } catch (a) { 15113 return !1 15114 } 15115 }() || function() { 15116 var b = a.URL 15117 , c = function(a, b) { 15118 "string" != typeof a && (a = String(a)); 15119 var c = document.implementation.createHTMLDocument(""); 15120 if (window.doc = c, 15121 b) { 15122 var d = c.createElement("base"); 15123 d.href = b, 15124 c.head.appendChild(d) 15125 } 15126 var e = c.createElement("a"); 15127 if (e.href = a, 15128 c.body.appendChild(e), 15129 e.href = e.href, 15130 ":" === e.protocol || !/:/.test(e.href)) 15131 throw new TypeError("Invalid URL"); 15132 Object.defineProperty(this, "_anchorElement", { 15133 value: e 15134 }) 15135 } 15136 , d = c.prototype; 15137 ["hash", "host", "hostname", "port", "protocol", "search"].forEach(function(a) { 15138 !function(a) { 15139 Object.defineProperty(d, a, { 15140 get: function() { 15141 return this._anchorElement[a] 15142 }, 15143 set: function(b) { 15144 this._anchorElement[a] = b 15145 }, 15146 enumerable: !0 15147 }) 15148 }(a) 15149 }), 15150 Object.defineProperties(d, { 15151 toString: { 15152 get: function() { 15153 var a = this; 15154 return function() { 15155 return a.href 15156 } 15157 } 15158 }, 15159 href: { 15160 get: function() { 15161 return this._anchorElement.href.replace(/\?$/, "") 15162 }, 15163 set: function(a) { 15164 this._anchorElement.href = a 15165 }, 15166 enumerable: !0 15167 }, 15168 pathname: { 15169 get: function() { 15170 return this._anchorElement.pathname.replace(/(^\/?)/, "/") 15171 }, 15172 set: function(a) { 15173 this._anchorElement.pathname = a 15174 }, 15175 enumerable: !0 15176 }, 15177 origin: { 15178 get: function() { 15179 var a = { 15180 "http:": 80, 15181 "https:": 443, 15182 "ftp:": 21 15183 }[this._anchorElement.protocol] 15184 , b = this._anchorElement.port != a && "" !== this._anchorElement.port; 15185 return this._anchorElement.protocol + "//" + this._anchorElement.hostname + (b ? ":" + this._anchorElement.port : "") 15186 }, 15187 enumerable: !0 15188 }, 15189 password: { 15190 get: function() { 15191 return "" 15192 }, 15193 set: function(a) {}, 15194 enumerable: !0 15195 }, 15196 username: { 15197 get: function() { 15198 return "" 15199 }, 15200 set: function(a) {}, 15201 enumerable: !0 15202 }, 15203 searchParams: { 15204 get: function() { 15205 var a = new URLSearchParams(this.search) 15206 , b = this; 15207 return ["append", "delete", "set"].forEach(function(c) { 15208 var d = a[c]; 15209 a[c] = function() { 15210 d.apply(a, arguments), 15211 b.search = a.toString() 15212 } 15213 }), 15214 a 15215 }, 15216 enumerable: !0 15217 } 15218 }), 15219 c.createObjectURL = function(a) { 15220 return b.createObjectURL.apply(b, arguments) 15221 } 15222 , 15223 c.revokeObjectURL = function(a) { 15224 return b.revokeObjectURL.apply(b, arguments) 15225 } 15226 , 15227 a.URL = c 15228 }(), 15229 void 0 !== a.location && !("origin"in a.location)) { 15230 var b = function() { 15231 return a.location.protocol + "//" + a.location.hostname + (a.location.port ? ":" + a.location.port : "") 15232 }; 15233 try { 15234 Object.defineProperty(a.location, "origin", { 15235 get: b, 15236 enumerable: !0 15237 }) 15238 } catch (c) { 15239 setInterval(function() { 15240 a.location.origin = b() 15241 }, 100) 15242 } 15243 } 15244 }(void 0 !== Q ? Q : "undefined" != typeof window ? window : "undefined" != typeof self ? self : Q); 15245 var Df, Ef, Ff, Gf, Hf, If = function(a) { 15246 return null != a ? a.constructor : null 15247 }, Jf = function(a, b) {
15248 return Boolean(a && b && a instanceof b) 15249 }, Kf = function(a) { 15250 return null == a 15251 }, Lf = function(a) { 15252 return If(a) === Object 15253 }, Mf = function(a) { 15254 return If(a) === String 15255 }, Nf = function(a) { 15256 return Array.isArray(a) 15257 }, Of = function(a) { 15258 return Jf(a, NodeList) 15259 }, Pf = function(a) { 15260 return Kf(a) || (Mf(a) || Nf(a) || Of(a)) && !a.length || Lf(a) && !Object.keys(a).length 15261 }, Qf = { 15262 nullOrUndefined: Kf, 15263 object: Lf, 15264 number: function(a) { 15265 return If(a) === Number && !Number.isNaN(a) 15266 }, 15267 string: Mf, 15268 boolean: function(a) { 15269 return If(a) === Boolean 15270 }, 15271 function: function(a) { 15272 return If(a) === Function 15273 }, 15274 array: Nf, 15275 weakMap: function(a) { 15276 return Jf(a, WeakMap) 15277 }, 15278 nodeList: Of, 15279 element: function(a) { 15280 return Jf(a, Element) 15281 }, 15282 textNode: function(a) { 15283 return If(a) === Text 15284 }, 15285 event: function(a) { 15286 return Jf(a, Event) 15287 }, 15288 cue: function(a) { 15289 return Jf(a, window.TextTrackCue) || Jf(a, window.VTTCue) 15290 }, 15291 track: function(a) { 15292 return Jf(a, TextTrack) || !Kf(a) && Mf(a.kind) 15293 }, 15294 url: function(a) { 15295 if (Jf(a, window.URL)) 15296 return !0; 15297 var b = a; 15298 a.startsWith("http://") && a.startsWith("https://") || (b = "http://" + a); 15299 try { 15300 return !Pf(new URL(b).hostname) 15301 } catch (a) { 15302 return !1 15303 } 15304 }, 15305 empty: Pf 15306 }, Rf = function() { 15307 var a = !1; 15308 try { 15309 var b = Object.defineProperty({}, "passive", { 15310 get: function() { 15311 return a = !0, 15312 null 15313 } 15314 }); 15315 window.addEventListener("test", null, b), 15316 window.removeEventListener("test", null, b) 15317 } catch (a) {} 15318 return a 15319 }(), Sf = function(a, b) { 15320 if (!(a instanceof b)) 15321 throw new TypeError("Cannot call a class as a function") 15322 }, Tf = function() { 15323 function a(a, b) { 15324 for (var c = 0; c < b.length; c++) { 15325 var d = b[c]; 15326 d.enumerable = d.enumerable || !1, 15327 d.configurable = !0, 15328 "value"in d && (d.writable = !0), 15329 Object.defineProperty(a, d.key, d) 15330 } 15331 } 15332 return function(b, c, d) { 15333 return c && a(b.prototype, c), 15334 d && a(b, d), 15335 b 15336 } 15337 }(), Uf = function(a, b, c) { 15338 return b in a ? Object.defineProperty(a, b, { 15339 value: c, 15340 enumerable: !0, 15341 configurable: !0, 15342 writable: !0 15343 }) : a[b] = c, 15344 a 15345 }, Vf = function() { 15346 return function(a, b) { 15347 if (Array.isArray(a)) 15348 return a; 15349 if (Symbol.iterator in Object(a)) 15350 return function(a, b) { 15351 var c = [] 15352 , d = !0 15353 , e = !1 15354 , f = void 0; 15355 try { 15356 for (var g, h = a[Symbol.iterator](); !(d = (g = h.next()).done) && (c.push(g.value), 15357 !b || c.length !== b); d = !0) 15358 ; 15359 } catch (a) { 15360 e = !0, 15361 f = a 15362 } finally { 15363 try { 15364 !d && h.return && h.return() 15365 } finally { 15366 if (e) 15367 throw f 15368 } 15369 } 15370 return c 15371 }(a, b); 15372 throw new TypeError("Invalid attempt to destructure non-iterable instance") 15373 } 15374 }(), Wf = (Df = document.createElement("span"), 15375 Ef = { 15376 WebkitTransition: "webkitTransitionEnd", 15377 MozTransition: "transitionend", 15378 OTransition: "oTransitionEnd otransitionend", 15379 transition: "transitionend" 15380 }, 15381 Ff = Object.keys(Ef).find(function(a) { 15382 return void 0 !== Df.style[a] 15383 }), 15384 !!Qf.string(Ff) && Ef[Ff]), Xf = { 15385 isIE: !!document.documentMode, 15386 isWebkit: "WebkitAppearance"in document.documentElement.style && !/Edge/.test(navigator.userAgent), 15387 isIPhone: /(iPhone|iPod)/gi.test(navigator.platform), 15388 isIos: /(iPad|iPhone|iPod)/gi.test(navigator.platform) 15389 }, Yf = { 15390 "audio/ogg": "vorbis", 15391 "audio/wav": "1", 15392 "video/webm": "vp8, vorbis", 15393 "video/mp4": "avc1.42E01E, mp4a.40.2", 15394 "video/ogg": "theora" 15395 }, Zf = { 15396 audio: "canPlayType"in document.createElement("audio"), 15397 video: "canPlayType"in document.createElement("video"), 15398 check: function(a, b, c) { 15399 var d = Xf.isIPhone && c && Zf.playsinline 15400 , e = Zf[a] || "html5" !== b; 15401 return { 15402 api: e, 15403 ui: e && Zf.rangeInput && ("video" !== a || !Xf.isIPhone || d) 15404 } 15405 }, 15406 pip: !Xf.isIPhone && Qf.function(j("video").webkitSetPresentationMode), 15407 airplay: Qf.function(window.WebKitPlaybackTargetAvailabilityEvent),
15408 playsinline: "playsInline"in document.createElement("video"), 15409 mime: function(a) { 15410 var b = a.split("/") 15411 , c = Vf(b, 1)[0]; 15412 if (!this.isHTML5 || c !== this.type) 15413 return !1; 15414 var d = void 0; 15415 a && a.includes("codecs=") ? d = a : "audio/mpeg" === a ? d = "audio/mpeg;" : a in Yf && (d = a + '; codecs="' + Yf[a] + '"'); 15416 try { 15417 return Boolean(d && this.media.canPlayType(d).replace(/no/, "")) 15418 } catch (a) { 15419 return !1 15420 } 15421 }, 15422 textTracks: "textTracks"in document.createElement("video"), 15423 rangeInput: (Gf = document.createElement("input"), 15424 Gf.type = "range", 15425 "range" === Gf.type), 15426 touch: "ontouchstart"in document.documentElement, 15427 transitions: !1 !== Wf, 15428 reducedMotion: "matchMedia"in window && window.matchMedia("(prefers-reduced-motion)").matches 15429 }, $f = { 15430 getSources: function() { 15431 var a = this; 15432 return this.isHTML5 ? Array.from(this.media.querySelectorAll("source")).filter(function(b) { 15433 return Zf.mime.call(a, b.getAttribute("type")) 15434 }) : [] 15435 }, 15436 getQualityOptions: function() { 15437 return $f.getSources.call(this).map(function(a) { 15438 return Number(a.getAttribute("size")) 15439 }).filter(Boolean) 15440 }, 15441 extend: function() { 15442 if (this.isHTML5) { 15443 var a = this; 15444 Object.defineProperty(a.media, "quality", { 15445 get: function() { 15446 var b = $f.getSources.call(a).find(function(b) { 15447 return b.getAttribute("src") === a.source 15448 }); 15449 return b && Number(b.getAttribute("size")) 15450 }, 15451 set: function(b) { 15452 var c = $f.getSources.call(a).find(function(a) { 15453 return Number(a.getAttribute("size")) === b 15454 }); 15455 if (c) { 15456 var d = a.media 15457 , e = d.currentTime 15458 , f = d.paused 15459 , h = d.preload 15460 , i = d.readyState; 15461 a.media.src = c.getAttribute("src"), 15462 ("none" !== h || i) && (a.once("loadedmetadata", function() { 15463 a.currentTime = e, 15464 f || a.play() 15465 }), 15466 a.media.load()), 15467 g.call(a, a.media, "qualitychange", !1, { 15468 quality: b 15469 }) 15470 } 15471 } 15472 }) 15473 } 15474 }, 15475 cancelRequests: function() { 15476 this.isHTML5 && (l($f.getSources.call(this)), 15477 this.media.setAttribute("src", this.config.blankVideo), 15478 this.media.load(), 15479 this.debug.log("Cancelled network requests")) 15480 } 15481 }, _f = function() { 15482 var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "" 15483 , b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; 15484 if (Qf.empty(a) || Qf.empty(b)) 15485 return ""; 15486 var c = w(b.i18n, a); 15487 if (Qf.empty(c)) 15488 return ""; 15489 var d = { 15490 "{seektime}": b.seekTime, 15491 "{title}": b.title 15492 }; 15493 return Object.entries(d).forEach(function(a) { 15494 var b = Vf(a, 2) 15495 , d = b[0] 15496 , e = b[1]; 15497 c = z(c, d, e) 15498 }), 15499 c 15500 }, ag = function() { 15501 function a(b) { 15502 Sf(this, a), 15503 this.enabled = b.config.storage.enabled, 15504 this.key = b.config.storage.key 15505 } 15506 return Tf(a, [{ 15507 key: "get", 15508 value: function(b) { 15509 if (!a.supported || !this.enabled) 15510 return null; 15511 var c = window.localStorage.getItem(this.key); 15512 if (Qf.empty(c)) 15513 return null; 15514 var d = JSON.parse(c); 15515 return Qf.string(b) && b.length ? d[b] : d 15516 } 15517 }, { 15518 key: "set", 15519 value: function(b) { 15520 if (a.supported && this.enabled && Qf.object(b)) { 15521 var c = this.get(); 15522 Qf.empty(c) && (c = {}), 15523 x(c, b), 15524 window.localStorage.setItem(this.key, JSON.stringify(c)) 15525 } 15526 } 15527 }], [{
15528 key: "supported", 15529 get: function() { 15530 try { 15531 return "localStorage"in window && (window.localStorage.setItem("___test", "___test"), 15532 window.localStorage.removeItem("___test"), 15533 !0) 15534 } catch (a) { 15535 return !1 15536 } 15537 } 15538 }]), 15539 a 15540 }(), bg = function(a) { 15541 return parseInt(a / 60 / 60 % 60, 10) 15542 }, cg = function(a) { 15543 return parseInt(a / 60 % 60, 10) 15544 }, dg = function(a) { 15545 return parseInt(a % 60, 10) 15546 }, eg = { 15547 getIconUrl: function() { 15548 var a = new URL(this.config.iconUrl,window.location).host !== window.location.host || Xf.isIE && !window.svg4everybody; 15549 return { 15550 url: this.config.iconUrl, 15551 cors: a 15552 } 15553 }, 15554 findElements: function() { 15555 try { 15556 return this.elements.controls = u.call(this, this.config.selectors.controls.wrapper), 15557 this.elements.buttons = { 15558 play: t.call(this, this.config.selectors.buttons.play), 15559 pause: u.call(this, this.config.selectors.buttons.pause), 15560 restart: u.call(this, this.config.selectors.buttons.restart), 15561 rewind: u.call(this, this.config.selectors.buttons.rewind), 15562 fastForward: u.call(this, this.config.selectors.buttons.fastForward), 15563 mute: u.call(this, this.config.selectors.buttons.mute), 15564 pip: u.call(this, this.config.selectors.buttons.pip), 15565 airplay: u.call(this, this.config.selectors.buttons.airplay), 15566 settings: u.call(this, this.config.selectors.buttons.settings), 15567 captions: u.call(this, this.config.selectors.buttons.captions), 15568 fullscreen: u.call(this, this.config.selectors.buttons.fullscreen) 15569 }, 15570 this.elements.progress = u.call(this, this.config.selectors.progress), 15571 this.elements.inputs = { 15572 seek: u.call(this, this.config.selectors.inputs.seek), 15573 volume: u.call(this, this.config.selectors.inputs.volume) 15574 }, 15575 this.elements.display = { 15576 buffer: u.call(this, this.config.selectors.display.buffer), 15577 currentTime: u.call(this, this.config.selectors.display.currentTime), 15578 duration: u.call(this, this.config.selectors.display.duration) 15579 }, 15580 Qf.element(this.elements.progress) && (this.elements.display.seekTooltip = this.elements.progress.querySelector("." + this.config.classNames.tooltip)), 15581 !0 15582 } catch (a) { 15583 return this.debug.warn("It looks like there is a problem with your custom controls HTML", a), 15584 this.toggleNativeControls(!0), 15585 !1 15586 } 15587 }, 15588 createIcon: function(a, b) { 15589 var c = eg.getIconUrl.call(this) 15590 , d = (c.cors ? "" : c.url) + "#" + this.config.iconPrefix 15591 , e = document.createElementNS("http://www.w3.org/2000/svg", "svg"); 15592 i(e, x(b, { 15593 role: "presentation", 15594 focusable: "false" 15595 })); 15596 var f = document.createElementNS("http://www.w3.org/2000/svg", "use") 15597 , g = d + "-" + a; 15598 return "href"in f ? f.setAttributeNS("http://www.w3.org/1999/xlink", "href", g) : f.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", g), 15599 e.appendChild(f), 15600 e 15601 }, 15602 createLabel: function(a) { 15603 var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {} 15604 , c = { 15605 pip: "PIP", 15606 airplay: "AirPlay" 15607 }[a] || _f(a, this.config); 15608 return j("span", Object.assign({}, b, { 15609 class: [b.class, this.config.classNames.hidden].filter(Boolean).join(" ") 15610 }), c) 15611 }, 15612 createBadge: function(a) { 15613 if (Qf.empty(a)) 15614 return null; 15615 var b = j("span", { 15616 class: this.config.classNames.menu.value 15617 }); 15618 return b.appendChild(j("span", { 15619 class: this.config.classNames.menu.badge 15620 }, a)), 15621 b 15622 }, 15623 createButton: function(a, b) { 15624 var c = j("button") 15625 , d = Object.assign({}, b) 15626 , e = B(a) 15627 , f = !1 15628 , g = void 0 15629 , h = void 0 15630 , k = void 0 15631 , l = void 0; 15632 switch ("type"in d || (d.type = "button"), 15633 "class"in d ? d.class.includes(this.config.classNames.c
15633ontrol) || (d.class += " " + this.config.classNames.control) : d.class = this.config.classNames.control, 15634 a) { 15635 case "play": 15636 f = !0, 15637 g = "play", 15638 k = "pause", 15639 h = "play", 15640 l = "pause"; 15641 break; 15642 case "mute": 15643 f = !0, 15644 g = "mute", 15645 k = "unmute", 15646 h = "volume", 15647 l = "muted"; 15648 break; 15649 case "captions": 15650 f = !0, 15651 g = "enableCaptions", 15652 k = "disableCaptions", 15653 h = "captions-off", 15654 l = "captions-on"; 15655 break; 15656 case "fullscreen": 15657 f = !0, 15658 g = "enterFullscreen", 15659 k = "exitFullscreen", 15660 h = "enter-fullscreen", 15661 l = "exit-fullscreen"; 15662 break; 15663 case "play-large": 15664 d.class += " " + this.config.classNames.control + "--overlaid", 15665 e = "play", 15666 g = "play", 15667 h = "play"; 15668 break; 15669 default: 15670 g = e, 15671 h = a 15672 } 15673 f ? (c.appendChild(eg.createIcon.call(this, l, { 15674 class: "icon--pressed" 15675 })), 15676 c.appendChild(eg.createIcon.call(this, h, { 15677 class: "icon--not-pressed" 15678 })), 15679 c.appendChild(eg.createLabel.call(this, k, { 15680 class: "label--pressed" 15681 })), 15682 c.appendChild(eg.createLabel.call(this, g, { 15683 class: "label--not-pressed" 15684 }))) : (c.appendChild(eg.createIcon.call(this, h)), 15685 c.appendChild(eg.createLabel.call(this, g))), 15686 x(d, o(this.config.selectors.buttons[e], d)), 15687 i(c, d), 15688 "play" === e ? (Qf.array(this.elements.buttons[e]) || (this.elements.buttons[e] = []), 15689 this.elements.buttons[e].push(c)) : this.elements.buttons[e] = c; 15690 var m = this.config.classNames.controlPressed; 15691 return Object.defineProperty(c, "pressed", { 15692 enumerable: !0, 15693 get: function() { 15694 return r(c, m) 15695 }, 15696 set: function() { 15697 var a = arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; 15698 q(c, m, a) 15699 } 15700 }), 15701 c 15702 }, 15703 createRange: function(a, b) { 15704 var c = j("input", x(o(this.config.selectors.inputs[a]), { 15705 type: "range", 15706 min: 0, 15707 max: 100, 15708 step: .01, 15709 value: 0, 15710 autocomplete: "off", 15711 role: "slider", 15712 "aria-label": _f(a, this.config), 15713 "aria-valuemin": 0, 15714 "aria-valuemax": 100, 15715 "aria-valuenow": 0 15716 }, b)); 15717 return this.elements.inputs[a] = c, 15718 eg.updateRangeFill.call(this, c), 15719 c 15720 }, 15721 createProgress: function(a, b) { 15722 var c = j("progress", x(o(this.config.selectors.display[a]), { 15723 min: 0, 15724 max: 100, 15725 value: 0, 15726 role: "presentation", 15727 "aria-hidden": !0 15728 }, b)); 15729 if ("volume" !== a) { 15730 c.appendChild(j("span", null, "0")); 15731 var d = { 15732 played: "played", 15733 buffer: "buffered" 15734 }[a] 15735 , e = d ? _f(d, this.config) : ""; 15736 c.innerText = "% " + e.toLowerCase() 15737 } 15738 return this.elements.display[a] = c, 15739 c 15740 }, 15741 createTime: function(a) { 15742 var b = o(this.config.selectors.display[a]) 15743 , c = j("div", x(b, { 15744 class: "plyr__time " + b.class, 15745 "aria-label": _f(a, this.config) 15746 }), "00:00"); 15747 return this.elements.display[a] = c, 15748 c 15749 }, 15750 createMenuItem: function(a) { 15751 var b = a.value 15752 , c = a.list 15753 , d = a.type 15754 , e = a.title 15755 , f = a.badge 15756 , g = void 0 === f ? null : f 15757 , h = a.checked 15758 , i = void 0 !== h && h 15759 , k = j("li") 15760 , l = j("label", {
15761 class: this.config.classNames.control 15762 }) 15763 , m = j("input", x(o(this.config.selectors.inputs[d]), { 15764 type: "radio", 15765 name: "plyr-" + d, 15766 value: b, 15767 checked: i, 15768 class: "plyr__sr-only" 15769 })) 15770 , n = j("span", { 15771 hidden: "" 15772 }); 15773 l.appendChild(m), 15774 l.appendChild(n), 15775 l.insertAdjacentHTML("beforeend", e), 15776 Qf.element(g) && l.appendChild(g), 15777 k.appendChild(l), 15778 c.appendChild(k) 15779 }, 15780 formatTime: function() { 15781 var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0 15782 , b = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; 15783 return Qf.number(a) ? G(a, bg(this.duration) > 0, b) : a 15784 }, 15785 updateTimeDisplay: function() { 15786 var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null 15787 , b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0 15788 , c = arguments.length > 2 && void 0 !== arguments[2] && arguments[2]; 15789 Qf.element(a) && Qf.number(b) && (a.innerText = eg.formatTime(b, c)) 15790 }, 15791 updateVolume: function() { 15792 this.supported.ui && (Qf.element(this.elements.inputs.volume) && eg.setRange.call(this, this.elements.inputs.volume, this.muted ? 0 : this.volume), 15793 Qf.element(this.elements.buttons.mute) && (this.elements.buttons.mute.pressed = this.muted || 0 === this.volume)) 15794 }, 15795 setRange: function(a) { 15796 var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; 15797 Qf.element(a) && (a.value = b, 15798 eg.updateRangeFill.call(this, a)) 15799 }, 15800 updateProgress: function(a) { 15801 var b = this; 15802 if (this.supported.ui && Qf.event(a)) { 15803 var c, d, e = 0; 15804 if (a) 15805 switch (a.type) { 15806 case "timeupdate": 15807 case "seeking": 15808 case "seeked": 15809 c = this.currentTime, 15810 d = this.duration, 15811 e = 0 === c || 0 === d || Number.isNaN(c) || Number.isNaN(d) ? 0 : (c / d * 100).toFixed(2), 15812 "timeupdate" === a.type && eg.setRange.call(this, this.elements.inputs.seek, e); 15813 break; 15814 case "playing": 15815 case "progress": 15816 !function(a, c) { 15817 var d = Qf.number(c) ? c : 0 15818 , e = Qf.element(a) ? a : b.elements.display.buffer; 15819 if (Qf.element(e)) { 15820 e.value = d; 15821 var f = e.getElementsByTagName("span")[0]; 15822 Qf.element(f) && (f.childNodes[0].nodeValue = d) 15823 } 15824 }(this.elements.display.buffer, 100 * this.buffered) 15825 } 15826 } 15827 }, 15828 updateRangeFill: function(a) { 15829 var b = Qf.event(a) ? a.target : a; 15830 if (Qf.element(b) && "range" === b.getAttribute("type")) { 15831 if (s(b, this.config.selectors.inputs.seek)) { 15832 b.setAttribute("aria-valuenow", this.currentTime); 15833 var c = eg.formatTime(this.currentTime) 15834 , d = eg.formatTime(this.duration) 15835 , e = _f("seekLabel", this.config); 15836 b.setAttribute("aria-valuetext", e.replace("{currentTime}", c).replace("{duration}", d)) 15837 } else if (s(b, this.config.selectors.inputs.volume)) { 15838 var f = 100 * b.value; 15839 b.setAttribute("aria-valuenow", f), 15840 b.setAttribute("aria-valuetext", f + "%") 15841 } else 15842 b.setAttribute("aria-valuenow", b.value); 15843 Xf.isWebkit && b.style.setProperty("--value", b.value / b.max * 100 + "%") 15844 } 15845 }, 15846 updateSeekTooltip: function(a) { 15847 var b = this; 15848 if (this.config.tooltips.seek && Qf.element(this.elements.inputs.seek) && Qf.element(this.elements.display.seekTooltip) && 0 !== this.duration) { 15849 var c = 0 15850 , d = this.elements.progress.getBoundingClientRect() 15851 , e = this.config.classNames.tooltip + "--visible" 15852 , f = function(a) { 15853 q(b.elements.display.seekTooltip, e, a) 15854 }; 15855 if (this.touch) 15856 f(!1); 15857 else { 15858 if (Qf.event(a)) 15859 c = 100 / d.width * (a.pageX - d.left); 15860 else { 15861 if (!r(this.elements.display.seekTooltip, e)) 15862 return; 15863 c = parseFloat(this.elements.display.seekTooltip.style.left, 10) 15864 } 15865 c < 0 ? c = 0 : c > 100 && (c = 100), 15866 eg.updateTimeDisplay.call(this, this.elements.display.seekTooltip, this.duration / 100 * c), 15867 this.elements.display.seekTooltip.style.left = c + "%", 15868 Qf.event(a) && ["mouseenter", "mouseleave"].includes(a.type) && f("mouseenter" === a.type) 15869 } 15870 } 15871 }, 15872 timeUpdate: function(a) { 15873 var b = !Qf.element(this.elements.display.duration) && this.config.invertTime; 15874 eg.updateTimeDisplay.call(this, this.elements.display.currentTime, b ? this.duration - this.currentTime : this.currentTime, b), 15875 a && "timeupdate" === a.type && this.media.seeking || eg.updateProgress.call(this, a) 15876 }, 15877 durationUpdate: function() { 15878 if (this.supported.ui && (this.config.invertTime || !this.currentTime)) { 15879 if (this.duration >= Math.pow(2, 32)) 15880 return p(this.elements.display.currentTime, !0), 15881 void p(this.elements.progress, !0); 15882 Qf.element(this.elements.inputs.seek) && this.elements.inputs.seek.setAttribute("aria-valuemax", this.duration); 15883 var a = Qf.element(this.elements.display.duration); 15884 !a && this.config.displayDuration && this.paused && eg.updateTimeDisplay.call(this, this.elements.display.currentTime, this.duration), 15885 a && eg.updateTimeDisplay.call(this, this.elements.display.duration, this.duration), 15886 eg.updateSeekTooltip.call(this) 15887 } 15888 }, 15889 toggleTab: function(a, b) { 15890 p(this.elements.settings.tabs[a], !b) 15891 }, 15892 setQualityMenu: function(a) { 15893 var b = this; 15894 if (Qf.element(this.elements.settings.panes.quality)) { 15895 var c = this.elements.settings.panes.quality.querySelector("ul"); 15896 Qf.array(a) && (this.options.quality = D(a).filter(function(a) { 15897 return b.config.quality.options.includes(a) 15898 })); 15899 var d = !Qf.empty(this.options.quality) && this.options.quality.length > 1; 15900 eg.toggleTab.call(this, "quality", d), 15901 eg.checkMenu.call(this), 15902 d && (m(c), 15903 this.options.quality.sort(function(a, c) { 15904 var d = b.config.quality.options; 15905 return d.indexOf(a) > d.indexOf(c) ? 1 : -1 15906 }
15906).forEach(function(a) { 15907 eg.createMenuItem.call(b, { 15908 value: a, 15909 list: c, 15910 type: "quality", 15911 title: eg.getLabel.call(b, "quality", a), 15912 badge: function(a) { 15913 var c = _f("qualityBadge." + a, b.config); 15914 return c.length ? eg.createBadge.call(b, c) : null 15915 }(a) 15916 }) 15917 }), 15918 eg.updateSetting.call(this, "quality", c)) 15919 } 15920 }, 15921 getLabel: function(a, b) { 15922 switch (a) { 15923 case "speed": 15924 return 1 === b ? _f("normal", this.config) : b + "×"; 15925 case "quality": 15926 if (Qf.number(b)) { 15927 var c = _f("qualityLabel." + b, this.config); 15928 return c.length ? c : b + "p" 15929 } 15930 return A(b); 15931 case "captions": 15932 return fg.getLabel.call(this); 15933 default: 15934 return null 15935 } 15936 }, 15937 updateSetting: function(a, b, c) { 15938 var d = this.elements.settings.panes[a] 15939 , e = null 15940 , f = b; 15941 if ("captions" === a) 15942 e = this.currentTrack; 15943 else { 15944 if (e = Qf.empty(c) ? this[a] : c, 15945 Qf.empty(e) && (e = this.config[a].default), 15946 !Qf.empty(this.options[a]) && !this.options[a].includes(e)) 15947 return void this.debug.warn("Unsupported value of '" + e + "' for " + a); 15948 if (!this.config[a].options.includes(e)) 15949 return void this.debug.warn("Disabled value of '" + e + "' for " + a) 15950 } 15951 if (Qf.element(f) || (f = d && d.querySelector("ul")), 15952 Qf.element(f)) { 15953 this.elements.settings.tabs[a].querySelector("." + this.config.classNames.menu.value).innerHTML = eg.getLabel.call(this, a, e); 15954 var g = f && f.querySelector('input[value="' + e + '"]'); 15955 Qf.element(g) && (g.checked = !0) 15956 } 15957 }, 15958 setCaptionsMenu: function() { 15959 var a = this 15960 , b = this.elements.settings.panes.captions.querySelector("ul") 15961 , c = fg.getTracks.call(this); 15962 if (eg.toggleTab.call(this, "captions", c.length), 15963 m(b), 15964 eg.checkMenu.call(this), 15965 c.length) { 15966 var d = c.map(function(c, d) { 15967 return { 15968 value: d, 15969 checked: a.captions.toggled && a.currentTrack === d, 15970 title: fg.getLabel.call(a, c), 15971 badge: c.language && eg.createBadge.call(a, c.language.toUpperCase()), 15972 list: b, 15973 type: "language" 15974 } 15975 }); 15976 d.unshift({ 15977 value: -1, 15978 checked: !this.captions.toggled, 15979 title: _f("disabled", this.config), 15980 list: b, 15981 type: "language" 15982 }), 15983 d.forEach(eg.createMenuItem.bind(this)), 15984 eg.updateSetting.call(this, "captions", b) 15985 } 15986 }, 15987 setSpeedMenu: function(a) { 15988 var b = this; 15989 if (this.config.controls.includes("settings") && this.config.settings.includes("speed") && Qf.element(this.elements.settings.panes.speed)) { 15990 Qf.array(a) ? this.options.speed = a : (this.isHTML5 || this.isVimeo) && (this.options.speed = [.5, .75, 1, 1.25, 1.5, 1.75, 2]), 15991 this.options.speed = this.options.speed.filter(function(a) { 15992 return b.config.speed.options.includes(a) 15993 }); 15994 var c = !Qf.empty(this.options.speed) && this.options.speed.length > 1; 15995 if (eg.toggleTab.call(this, "speed", c), 15996 eg.checkMenu.call(this), 15997 c) { 15998 var d = this.elements.settings.panes.speed.querySelector("ul"); 15999 m(d), 16000 this.options.speed.forEach(function(a) { 16001 eg.createMenuItem.call(b, { 16002 value: a, 16003 list: d, 16004 type: "speed", 16005 title: eg.getLabel.call(b, "speed", a) 16006 }) 16007 }), 16008 eg.updateSetting.call(this, "speed", d) 16009 } 16010 } 16011 }, 16012 checkMenu: function() { 16013 var a = this.elements.settings.tabs 16014 , b = !Qf.empty(a) && Object.values(a).some(function(a) { 16015 return !a.hidden 16016 }); 16017 p(this.elements.settings.menu, !b) 16018 }, 16019 toggleMenu: function(a) { 16020 var b = this.elements.settings.form 16021 , c = this.elements.buttons.settings; 16022 if (Qf.element(b) && Qf.element(c)) { 16023 var d = Qf.boolean(a) ? a : Qf.element(b) && b.hasAttribute("hidden"); 16024 if (Qf.event(a)) { 16025 var e = Qf.element(b) && b.contains(a.target) 16026 , f = a.target === this.elements.buttons.settings; 16027 if (e || !e && !f && d) 16028 return; 16029 f && a.stopPropagation() 16030 } 16031 Qf.element(c) && c.setAttribute("aria-expanded", d), 16032 Qf.element(b) && (p(b, !d), 16033 q(this.elements.container, this.config.classNames.menu.open, d), 16034 d ? b.removeAttribute("tabindex") : b.setAttribute("tabindex", -1)) 16035 } 16036 }, 16037 getTabSize: function(a) { 16038 var b = a.cloneNode(!0); 16039 b.style.position = "absolute", 16040 b.style.opacity = 0, 16041 b.removeAttribute("hidden"), 16042 Array.from(b.querySelectorAll("input[name]")).forEac
16042h(function(a) { 16043 var b = a.getAttribute("name"); 16044 a.setAttribute("name", b + "-clone") 16045 }), 16046 a.parentNode.appendChild(b); 16047 var c = b.scrollWidth 16048 , d = b.scrollHeight; 16049 return l(b), 16050 { 16051 width: c, 16052 height: d 16053 } 16054 }, 16055 showTab: function() { 16056 var a = this 16057 , b = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "" 16058 , c = this.elements.settings.menu 16059 , f = document.getElementById(b); 16060 if (Qf.element(f) && "tabpanel" === f.getAttribute("role")) { 16061 var g = c.querySelector('[role="tabpanel"]:not([hidden])') 16062 , h = g.parentNode; 16063 if (Array.from(c.querySelectorAll('[aria-controls="' + g.getAttribute("id") + '"]')).forEach(function(a) { 16064 a.setAttribute("aria-expanded", !1) 16065 }), 16066 Zf.transitions && !Zf.reducedMotion) { 16067 h.style.width = g.scrollWidth + "px", 16068 h.style.height = g.scrollHeight + "px"; 16069 var i = eg.getTabSize.call(this, f); 16070 d.call(this, h, Wf, function b(c) { 16071 c.target === h && ["width", "height"].includes(c.propertyName) && (h.style.width = "", 16072 h.style.height = "", 16073 e.call(a, h, Wf, b)) 16074 }), 16075 h.style.width = i.width + "px", 16076 h.style.height = i.height + "px" 16077 } 16078 p(g, !0), 16079 g.setAttribute("tabindex", -1), 16080 p(f, !1); 16081 var j = t.call(this, '[aria-controls="' + b + '"]'); 16082 Array.from(j).forEach(function(a) { 16083 a.setAttribute("aria-expanded", !0) 16084 }), 16085 f.removeAttribute("tabindex"), 16086 f.querySelectorAll("button:not(:disabled), input:not(:disabled), [tabindex]")[0].focus() 16087 } 16088 }, 16089 create: function(a) { 16090 var b = this; 16091 if (Qf.empty(this.config.controls)) 16092 return null; 16093 var c = j("div", o(this.config.selectors.controls.wrapper)); 16094 if (this.config.controls.includes("restart") && c.appendChild(eg.createButton.call(this, "restart")), 16095 this.config.controls.includes("rewind") && c.appendChild(eg.createButton.call(this, "rewind")), 16096 this.config.controls.includes("play") && c.appendChild(eg.createButton.call(this, "play")), 16097 this.config.controls.includes("fast-forward") && c.appendChild(eg.createButton.call(this, "fast-forward")), 16098 this.config.controls.includes("progress")) { 16099 var d = j("div", o(this.config.selectors.progress)); 16100 if (d.appendChild(eg.createRange.call(this, "seek", { 16101 id: "plyr-seek-" + a.id 16102 })), 16103 d.appendChild(eg.createProgress.call(this, "buffer")), 16104 this.config.tooltips.seek) { 16105 var e = j("span", { 16106 class: this.config.classNames.tooltip 16107 }, "00:00"); 16108 d.appendChild(e), 16109 this.elements.display.seekTooltip = e 16110 } 16111 this.elements.progress = d, 16112 c.appendChild(this.elements.progress) 16113 } 16114 if (this.config.controls.includes("current-time") && c.appendChild(eg.createTime.call(this, "currentTime")), 16115 this.config.controls.includes("duration") && c.appendChild(eg.createTime.call(this, "duration")), 16116 this.config.controls.includes("mute") && c.appendChild(eg.createButton.call(this, "mute")), 16117 this.config.controls.includes("volume")) { 16118 var f = j("div", { 16119 class: "plyr__volume" 16120 }) 16121 , g = { 16122 max: 1, 16123 step: .05, 16124 value: this.config.volume 16125 }; 16126 f.appendChild(eg.createRange.call(this, "volume", x(g, { 16127 id: "plyr-volume-" + a.id 16128 }))), 16129 this.elements.volume = f, 16130 c.appendChild(f) 16131 } 16132 if (this.config.controls.includes("captions") && c.appendChild(eg.createButton.call(this, "captions")), 16133 this.config.controls.includes("settings") && !Qf.empty(this.config.settings)) { 16134 var h = j("div", { 16135 class: "plyr__menu", 16136 hidden: "" 16137 }); 16138 h.appendChild(eg.createButton.call(this, "settings", { 16139 id: "plyr-settings-toggle-" + a.id, 16140 "aria-haspopup": !0, 16141 "aria-controls": "plyr-settings-" + a.id, 16142 "aria-expanded": !1 16143 })); 16144 var i = j("form", { 16145 class: "plyr__menu__container", 16146 id: "plyr-settings-" + a.id, 16147 hidden: "", 16148 "aria-labelled-by": "plyr-settings-toggle-" + a.id, 16149 role: "tablist", 16150 tabindex: -1 16151 }) 16152 , k = j("div") 16153 , l = j("div", { 16154 id: "plyr-settings-" + a.id + "-home", 16155 "aria-labelled-by": "plyr-settings-toggle-" + a.id, 16156 role: "tabpanel" 16157 }) 16158 , m = j("ul", { 16159 role: "tablist" 16160 });
16161 this.config.settings.forEach(function(c) { 16162 var d = j("li", { 16163 role: "tab", 16164 hidden: "" 16165 }) 16166 , e = j("button", x(o(b.config.selectors.buttons.settings), { 16167 type: "button", 16168 class: b.config.classNames.control + " " + b.config.classNames.control + "--forward", 16169 id: "plyr-settings-" + a.id + "-" + c + "-tab", 16170 "aria-haspopup": !0, 16171 "aria-controls": "plyr-settings-" + a.id + "-" + c, 16172 "aria-expanded": !1 16173 }), _f(c, b.config)) 16174 , f = j("span", { 16175 class: b.config.classNames.menu.value 16176 }); 16177 f.innerHTML = a[c], 16178 e.appendChild(f), 16179 d.appendChild(e), 16180 m.appendChild(d), 16181 b.elements.settings.tabs[c] = d 16182 }), 16183 l.appendChild(m), 16184 k.appendChild(l), 16185 this.config.settings.forEach(function(c) { 16186 var d = j("div", { 16187 id: "plyr-settings-" + a.id + "-" + c, 16188 hidden: "", 16189 "aria-labelled-by": "plyr-settings-" + a.id + "-" + c + "-tab", 16190 role: "tabpanel", 16191 tabindex: -1 16192 }) 16193 , e = j("button", { 16194 type: "button", 16195 class: b.config.classNames.control + " " + b.config.classNames.control + "--back", 16196 "aria-haspopup": !0, 16197 "aria-controls": "plyr-settings-" + a.id + "-home", 16198 "aria-expanded": !1 16199 }, _f(c, b.config)); 16200 d.appendChild(e); 16201 var f = j("ul"); 16202 d.appendChild(f), 16203 k.appendChild(d), 16204 b.elements.settings.panes[c] = d 16205 }), 16206 i.appendChild(k), 16207 h.appendChild(i), 16208 c.appendChild(h), 16209 this.elements.settings.form = i, 16210 this.elements.settings.menu = h 16211 } 16212 return this.config.controls.includes("pip") && Zf.pip && c.appendChild(eg.createButton.call(this, "pip")), 16213 this.config.controls.includes("airplay") && Zf.airplay && c.appendChild(eg.createButton.call(this, "airplay")), 16214 this.config.controls.includes("fullscreen") && c.appendChild(eg.createButton.call(this, "fullscreen")), 16215 this.config.controls.includes("play-large") && this.elements.container.appendChild(eg.createButton.call(this, "play-large")), 16216 this.elements.controls = c, 16217 this.isHTML5 && eg.setQualityMenu.call(this, $f.getQualityOptions.call(this)), 16218 eg.setSpeedMenu.call(this), 16219 c 16220 }, 16221 inject: function() { 16222 var a = this; 16223 if (this.config.loadSprite) { 16224 var b = eg.getIconUrl.call(this); 16225 b.cors && F(b.url, "sprite-plyr") 16226 } 16227 this.id = Math.floor(1e4 * Math.random()); 16228 var c = null; 16229 this.elements.controls = null; 16230 var d = { 16231 id: this.id, 16232 seektime: this.config.seekTime, 16233 title: this.config.title 16234 } 16235 , e = !0; 16236 Qf.string(this.config.controls) || Qf.element(this.config.controls) ? c = this.config.controls : Qf.function(this.config.controls) ? c = this.config.controls.call(this, d) : (c = eg.create.call(this, { 16237 id: this.id, 16238 seektime: this.config.seekTime, 16239 speed: this.speed, 16240 quality: this.quality, 16241 captions: fg.getLabel.call(this) 16242 }), 16243 e = !1); 16244 var f = function(a) { 16245 var b = a;
16246 return Object.entries(d).forEach(function(a) { 16247 var c = Vf(a, 2) 16248 , d = c[0] 16249 , e = c[1]; 16250 b = z(b, "{" + d + "}", e) 16251 }), 16252 b 16253 }; 16254 e && (Qf.string(this.config.controls) ? c = f(c) : Qf.element(c) && (c.innerHTML = f(c.innerHTML))); 16255 var g, h = void 0; 16256 if (Qf.string(this.config.selectors.controls.container) && (h = document.querySelector(this.config.selectors.controls.container)), 16257 Qf.element(h) || (h = this.elements.container), 16258 Qf.element(c) ? h.appendChild(c) : c && h.insertAdjacentHTML("beforeend", c), 16259 Qf.element(this.elements.controls) || eg.findElements.call(this), 16260 window.navigator.userAgent.includes("Edge") && (g = h, 16261 setTimeout(function() { 16262 p(g, !0), 16263 g.offsetHeight, 16264 p(g, !1) 16265 }, 0)), 16266 this.config.tooltips.controls) { 16267 var i = this.config 16268 , j = i.classNames 16269 , k = i.selectors 16270 , l = k.controls.wrapper + " " + k.labels + " ." + j.hidden 16271 , m = t.call(this, l); 16272 Array.from(m).forEach(function(b) { 16273 q(b, a.config.classNames.hidden, !1), 16274 q(b, a.config.classNames.tooltip, !0) 16275 }) 16276 } 16277 } 16278 }, fg = { 16279 setup: function() { 16280 if (this.supported.ui) 16281 if (!this.isVideo || this.isYouTube || this.isHTML5 && !Zf.textTracks) 16282 Qf.array(this.config.controls) && this.config.controls.includes("settings") && this.config.settings.includes("captions") && eg.setCaptionsMenu.call(this); 16283 else { 16284 var a, b; 16285 if (Qf.element(this.elements.captions) || (this.elements.captions = j("div", o(this.config.selectors.captions)), 16286 a = this.elements.captions, 16287 (b = this.elements.wrapper).parentNode.insertBefore(a, b.nextSibling)), 16288 Xf.isIE && window.URL) { 16289 var c = this.media.querySelectorAll("track"); 16290 Array.from(c).forEach(function(a) { 16291 var b = a.getAttribute("src") 16292 , c = H(b); 16293 null !== c && c.hostname !== window.location.href.hostname && ["http:", "https:"].includes(c.protocol) && E(b, "blob").then(function(b) { 16294 a.setAttribute("src", window.URL.createObjectURL(b)) 16295 }).catch(function() { 16296 l(a) 16297 }) 16298 }) 16299 } 16300 var e = D(Array.from(navigator.languages || navigator.userLanguage).map(function(a) { 16301 return a.split("-")[0] 16302 })) 16303 , f = (this.storage.get("language") || this.config.captions.language || "auto").toLowerCase(); 16304 "auto" === f && (f = Vf(e, 1)[0]); 16305 var g = this.storage.get("captions"); 16306 if (Qf.boolean(g) || (g = this.config.captions.active), 16307 Object.assign(this.captions, { 16308 toggled: !1, 16309 active: g, 16310 language: f, 16311 languages: e 16312 }), 16313 this.isHTML5) { 16314 var h = this.config.captions.update ? "addtrack removetrack" : "removetrack"; 16315 d.call(this, this.media.textTracks, h, fg.update.bind(this)) 16316 } 16317 setTimeout(fg.update.bind(this), 0) 16318 } 16319 }, 16320 update: function() { 16321 var a = this 16322 , b = fg.getTracks.call(this, !0) 16323 , c = this.captions 16324 , e = c.active 16325 , f = c.language 16326 , g = c.meta 16327 , h = c.currentTrackNode 16328 , i = Boolean(b.find(function(a) { 16329 return a.language === f 16330 })); 16331 this.isHTML5 && this.isVideo && b.filter(function(a) { 16332 return !g.get(a) 16333 }
16333).forEach(function(b) { 16334 a.debug.log("Track added", b), 16335 g.set(b, { 16336 default: "showing" === b.mode 16337 }), 16338 b.mode = "hidden", 16339 d.call(a, b, "cuechange", function() { 16340 return fg.updateCues.call(a) 16341 }) 16342 }), 16343 (i && this.language !== f || !b.includes(h)) && (fg.setLanguage.call(this, f), 16344 fg.toggle.call(this, e && i)), 16345 q(this.elements.container, this.config.classNames.captions.enabled, !Qf.empty(b)), 16346 (this.config.controls || []).includes("settings") && this.config.settings.includes("captions") && eg.setCaptionsMenu.call(this) 16347 }, 16348 toggle: function(a) { 16349 var b = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1]; 16350 if (this.supported.ui) { 16351 var c = this.captions.toggled 16352 , d = this.config.classNames.captions.active 16353 , e = Qf.nullOrUndefined(a) ? !c : a; 16354 if (e !== c) { 16355 if (b || (this.captions.active = e, 16356 this.storage.set({ 16357 captions: e 16358 })), 16359 !this.language && e && !b) { 16360 var f = fg.getTracks.call(this) 16361 , h = fg.findTrack.call(this, [this.captions.language].concat(function(a) { 16362 if (Array.isArray(a)) { 16363 for (var b = 0, c = Array(a.length); b < a.length; b++) 16364 c[b] = a[b]; 16365 return c 16366 } 16367 return Array.from(a) 16368 }(this.captions.languages)), !0); 16369 return this.captions.language = h.language, 16370 void fg.set.call(this, f.indexOf(h)) 16371 } 16372 this.elements.buttons.captions && (this.elements.buttons.captions.pressed = e), 16373 q(this.elements.container, d, e), 16374 this.captions.toggled = e, 16375 eg.updateSetting.call(this, "captions"), 16376 g.call(this, this.media, e ? "captionsenabled" : "captionsdisabled") 16377 } 16378 } 16379 }, 16380 set: function(a) { 16381 var b = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1] 16382 , c = fg.getTracks.call(this); 16383 if (-1 !== a) 16384 if (Qf.number(a)) 16385 if (a in c) { 16386 if (this.captions.currentTrack !== a) { 16387 this.captions.currentTrack = a; 16388 var d = c[a] 16389 , e = (d || {}).language; 16390 this.captions.currentTrackNode = d, 16391 eg.updateSetting.call(this, "captions"), 16392 b || (this.captions.language = e, 16393 this.storage.set({ 16394 language: e 16395 })), 16396 this.isVimeo && this.embed.enableTextTrack(e), 16397 g.call(this, this.media, "languagechange") 16398 } 16399 fg.toggle.call(this, !0, b), 16400 this.isHTML5 && this.isVideo && fg.updateCues.call(this) 16401 } else 16402 this.debug.warn("Track not found", a); 16403 else 16404 this.debug.warn("Invalid caption argument", a); 16405 else 16406 fg.toggle.call(this, !1, b) 16407 }, 16408 setLanguage: function(a) { 16409 var b = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1]; 16410 if (Qf.string(a)) { 16411 var c = a.toLowerCase(); 16412 this.captions.language = c; 16413 var d = fg.getTracks.call(this) 16414 , e = fg.findTrack.call(this, [c]); 16415 fg.set.call(this, d.indexOf(e), b) 16416 } else 16417 this.debug.warn("Invalid language argument", a) 16418 }, 16419 getTracks: function() { 16420 var a = this 16421 , b = arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; 16422 return Array.from((this.media || {}).textTracks || []).filter(function(c) { 16423 return !a.isHTML5 || b || a.captions.meta.has(c) 16424 }).filter(function(a) { 16425 return ["captions", "subtitles"].includes(a.kind) 16426 }) 16427 }, 16428 findTrack: function(a) { 16429 var b = this 16430 , c = arguments.length > 1 && void 0 !== arguments[1] && arguments[1] 16431 , d = fg.getTracks.call(this) 16432 , e = function(a) { 16433 return Number((b.captions.meta.get(a) || {}).default) 16434 } 16435 , f = Array.from(d).sort(function(a, b) { 16436 return e(b) - e(a) 16437 }) 16438 , g = void 0; 16439 return a.every(function(a) { 16440 return !(g = f.find(function(b) { 16441 return b.language === a 16442 })) 16443 }), 16444 g || (c ? f[0] : void 0) 16445 }, 16446 getCurrentTrack: function() { 16447 return fg.getTracks.call(this)[this.currentTrack] 16448 }, 16449 getLabel: function(a) { 16450 var b = a; 16451 return !Qf.track(b) && Zf.textTracks && this.captions.toggled && (b = fg.getCurrentTrack.call(this)), 16452 Qf.track(b) ? Qf.empty(b.label) ? Qf.empty(b.language) ? _f("enabled", this.config) : a.language.toUpperCase() : b.label : _f("disabled", this.config) 16453 }, 16454 updateCues: function(a) { 16455 if (this.supported.ui) 16456 if (Qf.element(this.elements.captions)) 16457 if (Qf.nullOrUndefined(a) || Array.isArray(a)) { 16458 var b = a; 16459 if (!b) { 16460 var c = fg.getCurrentTrack.call(this); 16461 b = Array.from((c || {}).activeCues || []).map(function(a) { 16462 return a.getCueAsHTML() 16463 }).map(C) 16464 } 16465 var d = b.map(function(a) { 16466 return a.trim() 16467 }).join("\n"); 16468 if (d !== this.elements.captions.innerHTML) { 16469 m(this.elements.captions); 16470 var e = j("span", o(this.config.selectors.caption)); 16471 e.innerHTML = d, 16472 this.elements.captions.appendChild(e), 16473 g.call(this, this.media, "cuechange") 16474 } 16475 } else 16476 this.debug.warn("updateCues: Invalid input", a); 16477 else 16478 this.debug.warn("No captions element to render to") 16479 } 16480 }, gg = { 16481 enabled: !0, 16482 title: "", 16483 debug: !1, 16484 autoplay: !1, 16485 autopause: !0, 16486 playsinline: !0, 16487 seekTime: 10, 16488 volume: 1, 16489 muted: !1, 16490 duration: null, 16491 displayDuration: !0, 16492 invertTime: !0, 16493 toggleInvert: !0, 16494 ratio: "16:9", 16495 clickToPlay: !0, 16496 hideControls: !0, 16497 resetOnEnd: !1, 16498 disableContextMenu: !0, 16499 loadSprite: !0, 16500 iconPrefix: "plyr", 16501 iconUrl: "https://cdn.plyr.io/3.3.12/plyr.svg", 16502 blankVideo: "https://cdn.plyr.io/static/blank.mp4", 16503 quality: { 16504 default: 576, 16505 options: [4320, 2880, 2160, 1440, 1080, 720, 576, 480, 360, 240, "default"] 16506 }, 16507 loop: { 16508 active: !1 16509 }, 16510 speed: { 16511 selected: 1, 16512 options: [.5, .75, 1, 1.25, 1.5, 1.75, 2] 16513 }, 16514 keyboard: { 16515 focused: !0, 16516 global: !1 16517 }, 16518 tooltips: { 16519 controls: !1, 16520 seek: !0 16521 }, 16522 captions: { 16523 active: !1, 16524 language: "auto", 16525 update: !1 16526 }, 16527 fullscreen: { 16528 enabled: !0, 16529 fallback: !0, 16530 iosNative: !1 16531 }, 16532 storage: { 16533 enabled: !0, 16534 key: "plyr" 16535 }, 16536 controls: ["play-large", "play", "progress", "current-time", "mute", "volume", "captions", "settings", "pip", "airplay", "fullscreen"], 16537 settings: ["captions", "quality", "speed"], 16538 i18n: { 16539 restart: "Restart", 16540 rewind: "Rewind {seektime}s", 16541 play: "Play", 16542 pause: "Pause", 16543 fastForward: "Forward {seektime}s", 16544 seek: "Seek", 16545 seekLabel: "{currentTime} of {duration}", 16546 played: "Played", 16547 buffered: "Buffered", 16548 currentTime: "Current time", 16549 duration: "Duration", 16550 volume: "Volume", 16551 mute: "Mute", 16552 unmute: "Unmute", 16553 enableCaptions: "Enable captions", 16554 disableCaptions: "Disable captions", 16555 enterFullscreen: "Enter fullscreen", 16556 exitFullscreen: "Exit fullscreen", 16557 frameTitle: "Player for {title}", 16558 captions: "Captions", 16559 settings: "Settings", 16560 menuBack: "Go back to previous menu", 16561 speed: "Speed", 16562 normal: "Normal", 16563 quality: "Quality", 16564 loop: "Loop", 16565 start: "Start", 16566 end: "End", 16567 all: "All", 16568 reset: "Reset", 16569 disabled: "Disabled", 16570 enabled: "Enabled", 16571 advertisement: "Ad", 16572 qualityBadge: { 16573 2160: "4K", 16574 1440: "HD", 16575 1080: "HD", 16576 720: "HD", 16577 576: "SD", 16578 480: "SD" 16579 } 16580 }, 16581 urls: { 16582 vimeo: { 16583 sdk: "https://player.vimeo.com/api/player.js", 16584 iframe: "https://player.vimeo.com/video/{0}?{1}", 16585 api: "https://vimeo.com/api/v2/video/{0}.json" 16586 }, 16587 youtube: { 16588 sdk: "https://www.youtube.com/iframe_api", 16589 api: "https://www.googleapis.com/youtube/v3/videos?id={0}&key={1}&fields=items(snippet(title))&part=snippet" 16590 }, 16591 googleIMA: { 16592 sdk: "https://imasdk.googleapis.com/js/sdkloader/ima3.js" 16593 } 16594 }, 16595 listeners: { 16596 seek: null, 16597 play: null, 16598 pause: null, 16599 restart: null, 16600 rewind: null, 16601 fastForward: null, 16602 mute: null, 16603 volume: null, 16604 captions: null, 16605 fullscreen: null, 16606 pip: null, 16607 airplay: null, 16608 speed: null, 16609 quality: null, 16610 loop: null, 16611 language: null 16612 }, 16613 events: ["ended", "progress", "stalled", "playing", "waiting", "canplay", "canplaythrough", "loadstart", "loadeddata", "loadedmetadata", "timeupdate", "volumechange", "play", "pause", "error", "seeking", "seeked", "emptied", "ratechange", "cue
16613change", "enterfullscreen", "exitfullscreen", "captionsenabled", "captionsdisabled", "languagechange", "controlshidden", "controlsshown", "ready", "statechange", "qualitychange", "qualityrequested", "adsloaded", "adscontentpause", "adscontentresume", "adstarted", "adsmidpoint", "adscomplete", "adsallcomplete", "adsimpression", "adsclick"], 16614 selectors: { 16615 editable: "input, textarea, select, [contenteditable]", 16616 container: ".plyr", 16617 controls: { 16618 container: null, 16619 wrapper: ".plyr__controls" 16620 }, 16621 labels: "[data-plyr]", 16622 buttons: { 16623 play: '[data-plyr="play"]', 16624 pause: '[data-plyr="pause"]', 16625 restart: '[data-plyr="restart"]', 16626 rewind: '[data-plyr="rewind"]', 16627 fastForward: '[data-plyr="fast-forward"]', 16628 mute: '[data-plyr="mute"]', 16629 captions: '[data-plyr="captions"]', 16630 fullscreen: '[data-plyr="fullscreen"]', 16631 pip: '[data-plyr="pip"]', 16632 airplay: '[data-plyr="airplay"]', 16633 settings: '[data-plyr="settings"]', 16634 loop: '[data-plyr="loop"]' 16635 }, 16636 inputs: { 16637 seek: '[data-plyr="seek"]', 16638 volume: '[data-plyr="volume"]', 16639 speed: '[data-plyr="speed"]', 16640 language: '[data-plyr="language"]', 16641 quality: '[data-plyr="quality"]' 16642 }, 16643 display: { 16644 currentTime: ".plyr__time--current", 16645 duration: ".plyr__time--duration", 16646 buffer: ".plyr__progress__buffer", 16647 loop: ".plyr__progress__loop", 16648 volume: ".plyr__volume--display" 16649 }, 16650 progress: ".plyr__progress", 16651 captions: ".plyr__captions", 16652 caption: ".plyr__caption", 16653 menu: { 16654 quality: ".js-plyr__menu__list--quality" 16655 } 16656 }, 16657 classNames: { 16658 type: "plyr--{0}", 16659 provider: "plyr--{0}", 16660 video: "plyr__video-wrapper", 16661 embed: "plyr__video-embed", 16662 embedContainer: "plyr__video-embed__container", 16663 poster: "plyr__poster", 16664 posterEnabled: "plyr__poster-enabled", 16665 ads: "plyr__ads", 16666 control: "plyr__control", 16667 controlPressed: "plyr__control--pressed", 16668 playing: "plyr--playing", 16669 paused: "plyr--paused", 16670 stopped: "plyr--stopped", 16671 loading: "plyr--loading", 16672 hover: "plyr--hover", 16673 tooltip: "plyr__tooltip", 16674 cues: "plyr__cues", 16675 hidden: "plyr__sr-only", 16676 hideControls: "plyr--hide-controls", 16677 isIos: "plyr--is-ios", 16678 isTouch: "plyr--is-touch", 16679 uiSupported: "plyr--full-ui", 16680 noTransition: "plyr--no-transition", 16681 menu: { 16682 value: "plyr__menu__value", 16683 badge: "plyr__badge", 16684 open: "plyr--menu-open" 16685 }, 16686 captions: { 16687 enabled: "plyr--captions-enabled", 16688 active: "plyr--captions-active" 16689 }, 16690 fullscreen: { 16691 enabled: "plyr--fullscreen-enabled", 16692 fallback: "plyr--fullscreen-fallback" 16693 }, 16694 pip: { 16695 supported: "plyr--pip-supported", 16696 active: "plyr--pip-active" 16697 }, 16698 airplay: { 16699 supported: "plyr--airplay-supported", 16700 active: "plyr--airplay-active" 16701 }, 16702 tabFocus: "plyr__tab-focus" 16703 }, 16704 attributes: { 16705 embed: { 16706 provider: "data-plyr-provider", 16707 id: "data-plyr-embed-id" 16708 } 16709 }, 16710 keys: { 16711 google: null 16712 }, 16713 ads: { 16714 enabled: !1, 16715 publisherId: "" 16716 } 16717 }, hg = { 16718 html5: "html5", 16719 youtube: "youtube", 16720 vimeo: "vimeo" 16721 }, ig = { 16722 audio: "audio", 16723 video: "video" 16724 }, jg = function() {}, kg = function() { 16725 function a() { 16726 var b = arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; 16727 Sf(this, a), 16728 this.enabled = window.console && b, 16729 this.enabled && this.log("Debugging enabled") 16730 } 16731 return Tf(a, [{ 16732 key: "log", 16733 get: function() { 16734 return this.enabled ? Function.prototype.bind.call(console.log, console) : jg 16735 } 16736 }, { 16737 key: "warn", 16738 get: function() { 16739 return this.enabled ? Function.prototype.bind.call(console.warn, console) : jg 16740 } 16741 }, { 16742 key: "error", 16743 get: function() { 16744 return this.enabled ? Function.prototype.bind.call(console.error, console) : jg 16745 } 16746 }]), 16747 a 16748 }(), lg = function() { 16749 function a(b) { 16750 var c = this; 16751 Sf(this, a), 16752 this.player = b, 16753 this.prefix = a.prefix, 16754 this.property = a.property, 16755 this.scrollPosition = { 16756 x: 0, 16757 y: 0 16758 }, 16759 d.call(this.player, document, "ms" === this.prefix ? "MSFullscreenChange" : this.prefix + "fullscreenchange", function() { 16760 J.call(c) 16761 }), 16762 d.call(this.player, this.player.elements.container, "dblclick", function(a) { 16763 Qf.element(c.player.elements.controls) && c.player.elements.controls.contains(a.target) || c.toggle() 16764 }), 16765 this.update() 16766 } 16767 return Tf(a, [{ 16768 key: "update", 16769 value: function() { 16770 this.enabled ? this.player.debug.log((a.native ? "Native" : "Fallback") + " fullscreen enabled") : this.player.debug.log("Fullscreen not supported and fallback disabled"), 16771 q(this.player.elements.container, this.player.config.classNames.fullscreen.enabled, this.enabled) 16772 } 16773 }, { 16774 key: "enter", 16775 value: function() { 16776 this.enabled && (Xf.isIos && this.player.config.fullscreen.iosNative ? this.player.playing && this.target.webkitEnterFullscreen() : a.native ? this.prefix ? Qf.empty(this.prefix) || this.target[this.prefix + "Request" + this.property]() : this.target.requestFullscreen() : K.call(this, !0)) 16777 } 16778 }, { 16779 key: "exit", 16780 value: function() { 16781 if (this.enabled) 16782 if (Xf.isIos && this.player.config.fullscreen.iosNative) 16783 this.target.webkitExitFullscreen(), 16784 this.player.play(); 16785 else if (a.native) 16786 if (this.prefix) { 16787 if (!Qf.empty(this.prefix)) { 16788 var b = "moz" === this.prefix ? "Cancel" : "Exit"; 16789 document["" + this.prefix + b + this.property]() 16790 } 16791 } else 16792 (document.cancelFullScreen || document.exitFullscreen).call(document); 16793 else 16794 K.call(this, !1) 16795 } 16796 }, { 16797 key: "toggle", 16798 value: function() { 16799 this.active ? this.exit() : this.enter() 16800 } 16801 }, { 16802 key: "enabled", 16803 get: function() { 16804 return (a.native || this.player.config.fullscreen.fallback) && this.player.config.fullscreen.enabled && this.player.supported.ui && this.player.isVideo 16805 } 16806 }, { 16807 key: "active", 16808 get: function() { 16809 return !!this.enabled && (a.native ? (this.prefix ? document["" + this.prefix + this.property + "Element"] : document.fullscreenElement) === this.target : r(this.target, this.player.config.classNames.fullscreen.fallback)) 16810 } 16811 }, { 16812 key: "target", 16813 get: function() { 16814 return Xf.isIos && this.player.config.fullscreen.iosNative ? this.player.media : this.player.elements.container 16815 } 16816 }], [{ 16817 key: "native", 16818 get: function() { 16819 return !!(document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled || document.msFullscreenEnabled) 16820 } 16821 }, { 16822 key: "prefix", 16823 get: function() { 16824 if (Qf.function(document.exitFullscreen)) 16825 return ""; 16826 var a = ""; 16827 return ["webkit", "moz", "ms"].some(function(b) { 16828 return !(!Qf.function(document[b + "ExitFullscreen"]) && !Qf.function(document[b + "CancelFullScreen"]) || (a = b, 16829 0)) 16830 }), 16831 a 16832 } 16833 }, { 16834 key: "property", 16835 get: function() { 16836 return "moz" === this.prefix ? "FullScreen" : "Fullscreen" 16837 } 16838 }]), 16839 a 16840 }(), mg = { 16841 addStyleHook: function() { 16842 q(this.elements.container, this.config.selectors.container.replace(".", ""), !0), 16843 q(this.elements.container, this.config.classNames.uiSupported, this.supported.ui) 16844 }, 16845 toggleNativeControls: function() { 16846 arguments.length > 0 && void 0 !== arguments[0] && arguments[0] && this.isHTML5 ? this.media.setAttribute("controls", "") : this.media.removeAttribute("controls") 16847 }, 16848 build: function() { 16849 var a = this; 16850 if (this.listeners.media(), 16851 !this.supported.ui) 16852 return this.debug.warn("Basic support only for " + this.provider + " " + this.type), 16853 void mg.toggleNativeControls.call(this, !0); 16854 Qf.element(this.elements.controls) || (eg.inject.call(this), 16855 this.listeners.controls()), 16856 mg.toggleNativeControls.call(this), 16857 this.isHTML5 && fg.setup.call(this), 16858 this.volume = null, 16859 this.muted = null, 16860 this.speed = null, 16861 this.loop = null,
16862 this.quality = null, 16863 eg.updateVolume.call(this), 16864 eg.timeUpdate.call(this), 16865 mg.checkPlaying.call(this), 16866 q(this.elements.container, this.config.classNames.pip.supported, Zf.pip && this.isHTML5 && this.isVideo), 16867 q(this.elements.container, this.config.classNames.airplay.supported, Zf.airplay && this.isHTML5), 16868 q(this.elements.container, this.config.classNames.isIos, Xf.isIos), 16869 q(this.elements.container, this.config.classNames.isTouch, this.touch), 16870 this.ready = !0, 16871 setTimeout(function() { 16872 g.call(a, a.media, "ready") 16873 }, 0), 16874 mg.setTitle.call(this), 16875 this.poster && mg.setPoster.call(this, this.poster, !1).catch(function() {}), 16876 this.config.duration && eg.durationUpdate.call(this) 16877 }, 16878 setTitle: function() { 16879 var a = _f("play", this.config); 16880 if (Qf.string(this.config.title) && !Qf.empty(this.config.title) && (a += ", " + this.config.title), 16881 Array.from(this.elements.buttons.play || []).forEach(function(b) { 16882 b.setAttribute("aria-label", a) 16883 }), 16884 this.isEmbed) { 16885 var b = u.call(this, "iframe"); 16886 if (!Qf.element(b)) 16887 return; 16888 var c = Qf.empty(this.config.title) ? "video" : this.config.title 16889 , d = _f("frameTitle", this.config); 16890 b.setAttribute("title", d.replace("{title}", c)) 16891 } 16892 }, 16893 togglePoster: function(a) { 16894 q(this.elements.container, this.config.classNames.posterEnabled, a) 16895 }, 16896 setPoster: function(a) { 16897 var b = this; 16898 return arguments.length > 1 && void 0 !== arguments[1] && !arguments[1] || !this.poster ? (this.media.setAttribute("poster", a), 16899 function() { 16900 var a = this; 16901 return new Promise(function(b) { 16902 return a.ready ? setTimeout(b, 0) : d.call(a, a.elements.container, "ready", b) 16903 } 16904 ).then(function() {}) 16905 } 16906 .call(this).then(function() { 16907 return L(a) 16908 }).catch(function(c) { 16909 throw a === b.poster && mg.togglePoster.call(b, !1), 16910 c 16911 }).then(function() { 16912 if (a !== b.poster) 16913 throw new Error("setPoster cancelled by later call to setPoster") 16914 }).then(function() { 16915 return Object.assign(b.elements.poster.style, { 16916 backgroundImage: "url('" + a + "')", 16917 backgroundSize: "" 16918 }), 16919 mg.togglePoster.call(b, !0), 16920 a 16921 })) : Promise.reject(new Error("Poster already set")) 16922 }, 16923 checkPlaying: function(a) { 16924 var b = this; 16925 q(this.elements.container, this.config.classNames.playing, this.playing), 16926 q(this.elements.container, this.config.classNames.paused, this.paused), 16927 q(this.elements.container, this.config.classNames.stopped, this.stopped), 16928 Array.from(this.elements.buttons.play || []).forEach(function(a) { 16929 a.pressed = b.playing 16930 }), 16931 Qf.event(a) && "timeupdate" === a.type || mg.toggleControls.call(this) 16932 }, 16933 checkLoading: function(a) { 16934 var b = this; 16935 this.loading = ["stalled", "waiting"].includes(a.type), 16936 clearTimeout(this.timers.loading), 16937 this.timers.loading = setTimeout(function() { 16938 q(b.elements.container, b.config.classNames.loading, b.loading), 16939 mg.toggleControls.call(b) 16940 }, this.loading ? 250 : 0) 16941 }, 16942 toggleControls: function(a) { 16943 var b = this.elements.controls; 16944 b && this.config.hideControls && this.toggleControls(Boolean(a || this.loading || this.paused || b.pressed || b.hover)) 16945 } 16946 }, ng = function() { 16947 function a(b) { 16948 Sf(this, a), 16949 this.player = b, 16950 this.lastKey = null, 16951 this.handleKey = this.handleKey.bind(this), 16952 this.toggleMenu = this.toggleMenu.bind(this), 16953 this.firstTouch = this.firstTouch.bind(this) 16954 } 16955 return Tf(a, [{ 16956 key: "handleKey", 16957 value: function(a) { 16958 var b = this 16959 , c = a.keyCode ? a.keyCode : a.which 16960 , d = "keydown" === a.type 16961 , e = d && c === this.lastKey; 16962 if (!(a.altKey || a.ctrlKey || a.metaKey || a.shiftKey) && Qf.number(c)) 16963 if (d) { 16964 var f = v(); 16965 if (Qf.element(f) && f !== this.player.elements.inputs.seek && s(f, this.player.config.selectors.editable)) 16966 return; 16967 switch ([32, 37, 38, 39, 40, 48, 49, 50, 51, 52, 53, 54, 56, 57, 67, 70, 73, 75, 76, 77, 79].includes(c) && (a.preventDefault(), 16968 a.stopPropagation()), 16969 c) { 16970 case 48: 16971 case 49: 16972 case 50: 16973 case 51: 16974 case 52: 16975 case 53: 16976 case 54: 16977 case 55: 16978 case 56: 16979 case 57: 16980 e || (b.player.currentTime = b.player.duration / 10 * (c - 48)); 16981 break; 16982 case 32: 16983 case 75: 16984 e || this.player.togglePlay(); 16985 break; 16986 case 38: 16987 this.player.increaseVolume(.1); 16988 break; 16989 case 40: 16990 this.player.decreaseVolume(.1); 16991 break; 16992 case 77: 16993 e || (this.player.muted = !this.player.muted); 16994 break; 16995 case 39: 16996 this.player.forward(); 16997 break; 16998 case 37: 16999 this.player.rewind(); 17000 break; 17001 case 70: 17002 this.player.fullscreen.toggle(); 17003 break; 17004 case 67: 17005 e || this.player.toggleCaptions(); 17006 break; 17007 case 76: 17008 this.player.loop = !this.player.loop 17009 } 17010 !this.player.fullscreen.enabled && this.player.fullscreen.active && 27 === c && this.player.fullscreen.toggle(), 17011 this.lastKey = c 17012 } else 17013 this.lastKey = null 17014 } 17015 }, { 17016 key: "toggleMenu", 17017 value: function(a) { 17018 eg.toggleMenu.call(this.player, a) 17019 } 17020 }, { 17021 key: "firstTouch", 17022 value: function() { 17023 this.player.touch = !0, 17024 q(this.player.elements.container, this.player.config.classNames.isTouch, !0) 17025 } 17026 }, { 17027 key: "global", 17028 value: function() { 17029 var a = !(arguments.length > 0 && void 0 !== arguments[0]) || arguments[0]; 17030 this.player.config.keyboard.global && c.call(this.player, window, "keydown keyup", this.handleKey, a, !1), 17031 c.call(this.player, document.body, "click", this.toggleMenu, a), 17032 f.call(this.player, document.body, "touchstart", this.firstTouch) 17033 } 17034 }, { 17035 key: "container", 17036 value: function() { 17037 var a = this; 17038 !this.player.config.keyboard.global && this.player.config.keyboard.focused && d.call(this.player, this.player.elements.container, "keydown keyup", this.handleKey, !1), 17039 d.call(this.player, this.player.elements.container, "focu
17039sout", function(b) { 17040 q(b.target, a.player.config.classNames.tabFocus, !1) 17041 }), 17042 d.call(this.player, this.player.elements.container, "keydown", function(b) { 17043 9 === b.keyCode && setTimeout(function() { 17044 q(v(), a.player.config.classNames.tabFocus, !0) 17045 }, 0) 17046 }), 17047 d.call(this.player, this.player.elements.container, "mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen", function(b) { 17048 var c = a.player.elements.controls; 17049 "enterfullscreen" === b.type && (c.pressed = !1, 17050 c.hover = !1); 17051 var d = 0; 17052 ["touchstart", "touchmove", "mousemove"].includes(b.type) && (mg.toggleControls.call(a.player, !0), 17053 d = a.player.touch ? 3e3 : 2e3), 17054 clearTimeout(a.player.timers.controls), 17055 a.player.timers.controls = setTimeout(function() { 17056 return mg.toggleControls.call(a.player, !1) 17057 }, d) 17058 }) 17059 } 17060 }, { 17061 key: "media", 17062 value: function() { 17063 var a = this; 17064 if (d.call(this.player, this.player.media, "timeupdate seeking seeked", function(b) { 17065 return eg.timeUpdate.call(a.player, b) 17066 }), 17067 d.call(this.player, this.player.media, "durationchange loadeddata loadedmetadata", function(b) { 17068 return eg.durationUpdate.call(a.player, b) 17069 }), 17070 d.call(this.player, this.player.media, "canplay", function() { 17071 p(a.player.elements.volume, !a.player.hasAudio), 17072 p(a.player.elements.buttons.mute, !a.player.hasAudio) 17073 }), 17074 d.call(this.player, this.player.media, "ended", function() { 17075 a.player.isHTML5 && a.player.isVideo && a.player.config.resetOnEnd && a.player.restart() 17076 }), 17077 d.call(this.player, this.player.media, "progress playing seeking seeked", function(b) { 17078 return eg.updateProgress.call(a.player, b) 17079 }), 17080 d.call(this.player, this.player.media, "volumechange", function(b) { 17081 return eg.updateVolume.call(a.player, b) 17082 }), 17083 d.call(this.player, this.player.media, "playing play pause ended emptied timeupdate", function(b) { 17084 return mg.checkPlaying.call(a.player, b) 17085 }), 17086 d.call(this.player, this.player.media, "waiting canplay seeked playing", function(b) { 17087 return mg.checkLoading.call(a.player, b) 17088 }), 17089 d.call(this.player, this.player.media, "playing", function() { 17090 a.player.ads && a.player.ads.enabled && !a.player.ads.initialized && a.player.ads.managerPromise.then(function() { 17091 return a.player.ads.play() 17092 }).catch(function() { 17093 return a.player.play() 17094 }) 17095 }), 17096 this.player.supported.ui && this.player.config.clickToPlay && !this.player.isAudio) { 17097 var b = u.call(this.player, "." + this.player.config.classNames.video); 17098 if (!Qf.element(b)) 17099 return; 17100 d.call(this.player, b, "click", function() { 17101 a.player.config.hideControls && a.player.touch && !a.player.paused || (a.player.paused ? a.player.play() : a.player.ended ? (a.player.restart(), 17102 a.player.play()) : a.player.pause()) 17103 }) 17104 } 17105 this.player.supported.ui && this.player.config.disableContextMenu && d.call(this.player, this.player.elements.wrapper, "contextmenu", function(a) { 17106 a.preventDefault() 17107 }, !1), 17108 d.call(this.player, this.player.media, "volumechange", function() { 17109 a.player.storage.set({ 17110 volume: a.player.volume, 17111 muted: a.player.muted 17112 }) 17113 }), 17114 d.call(this.player, this.player.media, "ratechange", function() { 17115 eg.updateSetting.call(a.player, "speed"), 17116 a.player.storage.set({ 17117 speed: a.player.speed 17118 }) 17119 }), 17120 d.call(this.player, this.player.media, "qualityrequested", function(b) { 17121 a.player.storage.set({ 17122 quality: b.detail.quality 17123 }) 17124 }), 17125 d.call(this.player, this.player.media, "qualitychange", function(b) { 17126 eg.updateSetting.call(a.player, "quality", null, b.detail.quality) 17127 }); 17128 var c = this.player.config.events.concat(["keyup", "keydown"]).join(" "); 17129 d.call(this.player, this.player.media, c, function(b) { 17130 var c = b.detail 17131 , d = void 0 === c ? {}
17131 : c; 17132 "error" === b.type && (d = a.player.media.error), 17133 g.call(a.player, a.player.elements.container, b.type, !0, d) 17134 }) 17135 } 17136 }, { 17137 key: "controls", 17138 value: function() { 17139 var a = this 17140 , b = Xf.isIE ? "change" : "input" 17141 , c = function(b, c, d) { 17142 var e = a.player.config.listeners[d] 17143 , f = !0; 17144 Qf.function(e) && (f = e.call(a.player, b)), 17145 f && Qf.function(c) && c.call(a.player, b) 17146 } 17147 , e = function(b, e, f, g) { 17148 var h = !(arguments.length > 4 && void 0 !== arguments[4]) || arguments[4] 17149 , i = a.player.config.listeners[g] 17150 , j = Qf.function(i); 17151 d.call(a.player, b, e, function(a) { 17152 return c(a, f, g) 17153 }, h && !j) 17154 }; 17155 this.player.elements.buttons.play && Array.from(this.player.elements.buttons.play).forEach(function(b) { 17156 e(b, "click", a.player.togglePlay, "play") 17157 }), 17158 e(this.player.elements.buttons.restart, "click", this.player.restart, "restart"), 17159 e(this.player.elements.buttons.rewind, "click", this.player.rewind, "rewind"), 17160 e(this.player.elements.buttons.fastForward, "click", this.player.forward, "fastForward"), 17161 e(this.player.elements.buttons.mute, "click", function() { 17162 a.player.muted = !a.player.muted 17163 }, "mute"), 17164 e(this.player.elements.buttons.captions, "click", function() { 17165 return a.player.toggleCaptions() 17166 }), 17167 e(this.player.elements.buttons.fullscreen, "click", function() { 17168 a.player.fullscreen.toggle() 17169 }, "fullscreen"), 17170 e(this.player.elements.buttons.pip, "click", function() { 17171 a.player.pip = "toggle" 17172 }, "pip"), 17173 e(this.player.elements.buttons.airplay, "click", this.player.airplay, "airplay"), 17174 e(this.player.elements.buttons.settings, "click", function(b) { 17175 eg.toggleMenu.call(a.player, b) 17176 }), 17177 e(this.player.elements.settings.form, "click", function(b) { 17178 b.stopPropagation(); 17179 var d = function() { 17180 var b = "plyr-settings-" + a.player.id + "-home"; 17181 eg.showTab.call(a.player, b) 17182 }; 17183 if (s(b.target, a.player.config.selectors.inputs.language)) 17184 c(b, function() { 17185 a.player.currentTrack = Number(b.target.value), 17186 d() 17187 }, "language"); 17188 else if (s(b.target, a.player.config.selectors.inputs.quality)) 17189 c(b, function() { 17190 a.player.quality = b.target.value, 17191 d() 17192 }, "quality"); 17193 else if (s(b.target, a.player.config.selectors.inputs.speed)) 17194 c(b, function() { 17195 a.player.speed = parseFloat(b.target.value), 17196 d() 17197 }, "speed"); 17198 else { 17199 var e = b.target; 17200 eg.showTab.call(a.player, e.getAttribute("aria-controls")) 17201 } 17202 }), 17203 e(this.player.elements.inputs.seek, "mousedown mousemove", function(b) { 17204 var c = a.player.elements.progress.getBoundingClientRect() 17205 , d = 100 / c.width * (b.pageX - c.left); 17206 b.currentTarget.setAttribute("seek-value", d) 17207 }), 17208 e(this.player.elements.inputs.seek, "mousedown mouseup keydown keyup touchstart touchend", function(b) { 17209 var c = b.currentTarget 17210 , d = b.keyCode ? b.keyCode : b.which 17211 , e = b.type;
17212 if ("keydown" !== e && "keyup" !== e || 39 === d || 37 === d) { 17213 var f = c.hasAttribute("play-on-seeked") 17214 , g = ["mouseup", "touchend", "keyup"].includes(b.type); 17215 f && g ? (c.removeAttribute("play-on-seeked"), 17216 a.player.play()) : !g && a.player.playing && (c.setAttribute("play-on-seeked", ""), 17217 a.player.pause()) 17218 } 17219 }), 17220 e(this.player.elements.inputs.seek, b, function(b) { 17221 var c = b.currentTarget 17222 , d = c.getAttribute("seek-value"); 17223 Qf.empty(d) && (d = c.value), 17224 c.removeAttribute("seek-value"), 17225 a.player.currentTime = d / c.max * a.player.duration 17226 }, "seek"), 17227 this.player.config.toggleInvert && !Qf.element(this.player.elements.display.duration) && e(this.player.elements.display.currentTime, "click", function() { 17228 0 !== a.player.currentTime && (a.player.config.invertTime = !a.player.config.invertTime, 17229 eg.timeUpdate.call(a.player)) 17230 }), 17231 e(this.player.elements.inputs.volume, b, function(b) { 17232 a.player.volume = b.target.value 17233 }, "volume"), 17234 Xf.isWebkit && Array.from(t.call(this.player, 'input[type="range"]')).forEach(function(b) { 17235 e(b, "input", function(b) { 17236 return eg.updateRangeFill.call(a.player, b.target) 17237 }) 17238 }), 17239 e(this.player.elements.progress, "mouseenter mouseleave mousemove", function(b) { 17240 return eg.updateSeekTooltip.call(a.player, b) 17241 }), 17242 e(this.player.elements.controls, "mouseenter mouseleave", function(b) { 17243 a.player.elements.controls.hover = !a.player.touch && "mouseenter" === b.type 17244 }), 17245 e(this.player.elements.controls, "mousedown mouseup touchstart touchend touchcancel", function(b) { 17246 a.player.elements.controls.pressed = ["mousedown", "touchstart"].includes(b.type) 17247 }), 17248 e(this.player.elements.controls, "focusin focusout", function(b) { 17249 var c = a.player 17250 , d = c.config 17251 , e = c.elements 17252 , f = c.timers; 17253 if (q(e.controls, d.classNames.noTransition, "focusin" === b.type), 17254 mg.toggleControls.call(a.player, "focusin" === b.type), 17255 "focusin" === b.type) { 17256 setTimeout(function() { 17257 q(e.controls, d.classNames.noTransition, !1) 17258 }, 0); 17259 var g = a.touch ? 3e3 : 4e3; 17260 clearTimeout(f.controls), 17261 f.controls = setTimeout(function() { 17262 return mg.toggleControls.call(a.player, !1) 17263 }, g) 17264 } 17265 }), 17266 e(this.player.elements.inputs.volume, "wheel", function(b) { 17267 var c = b.webkitDirectionInvertedFromDevice 17268 , d = [b.deltaX, -b.deltaY].map(function(a) { 17269 return c ? -a : a 17270 }) 17271 , e = Vf(d, 2) 17272 , f = e[0] 17273 , g = e[1] 17274 , h = Math.sign(Math.abs(f) > Math.abs(g) ? f : g); 17275 a.player.increaseVolume(h / 50); 17276 var i = a.player.media.volume; 17277 (1 === h && i < 1 || -1 === h && i > 0) && b.preventDefault() 17278 }, "volume", !1) 17279 } 17280 }]), 17281 a 17282 }(), og = a(function(a, b) { 17283 var c; 17284 c = function() { 17285 function a(a, b) { 17286 if (a) { 17287 var c = h[a]; 17288 if (g[a] = b, 17289 c) 17290 for (; c.length; ) 17291 c[0](a, b), 17292 c.splice(0, 1) 17293 } 17294 } 17295 function b(a, b) { 17296 a.call && (a = { 17297 success: a 17298 }), 17299 b.length ? (a.error || e)(b) : (a.success || e)(a) 17300 } 17301 function c(a, b, d, f) { 17302 var g, h, i = document, j = d.async, k = (d.numRetries || 0) + 1, l = d.before || e, m = a.replace(/^(css|img)!/, ""); 17303 f = f || 0, 17304 /(^css!|\.css$)/.test(a) ? (g = !0, 17305 (h = i.createElement("link")).rel = "stylesheet", 17306 h.href = m) : /(^img!|\.(png|gif|jpg|svg)$)/.test(a) ? (h = i.createElement("img")).src = m : ((h = i.createElement("script")).src = a, 17307 h.async = void 0 === j || j), 17308 h.onload = h.onerror = h.onbeforeload = function(e) { 17309 var i = e.type[0]; 17310 if (g && "hideFocus"in h) 17311 try { 17312 h.sheet.cssText.length || (i = "e") 17313 } catch (e) { 17314 i = "e" 17315 } 17316 if ("e" == i && (f += 1) < k) 17317 return c(a, b, d, f); 17318 b(a, i, e.defaultPrevented) 17319 } 17320 ,
17321 !1 !== l(a, h) && i.head.appendChild(h) 17322 } 17323 function d(d, e, g) { 17324 var h, i; 17325 if (e && e.trim && (h = e), 17326 i = (h ? g : e) || {}, 17327 h) { 17328 if (h in f) 17329 throw "LoadJS"; 17330 f[h] = !0 17331 } 17332 !function(a, b, d) { 17333 var e, f, g = (a = a.push ? a : [a]).length, h = g, i = []; 17334 for (e = function(a, c, d) { 17335 if ("e" == c && i.push(a), 17336 "b" == c) { 17337 if (!d) 17338 return; 17339 i.push(a) 17340 } 17341 --g || b(i) 17342 } 17343 , 17344 f = 0; f < h; f++) 17345 c(a[f], e, d) 17346 }(d, function(c) { 17347 b(i, c), 17348 a(h, c) 17349 }, i) 17350 } 17351 var e = function() {} 17352 , f = {} 17353 , g = {} 17354 , h = {}; 17355 return d.ready = function(a, c) { 17356 return function(a, b) { 17357 a = a.push ? a : [a]; 17358 var c, d, e, f = [], i = a.length, j = i; 17359 for (c = function(a, c) { 17360 c.length && f.push(a), 17361 --j || b(f) 17362 } 17363 ; i--; ) 17364 d = a[i], 17365 (e = g[d]) ? c(d, e) : (h[d] = h[d] || []).push(c) 17366 }(a, function(a) { 17367 b(c, a) 17368 }), 17369 d 17370 } 17371 , 17372 d.done = function(b) { 17373 a(b, []) 17374 } 17375 , 17376 d.reset = function() { 17377 f = {}, 17378 g = {}, 17379 h = {} 17380 } 17381 , 17382 d.isDefined = function(a) { 17383 return a in f 17384 } 17385 , 17386 d 17387 } 17388 , 17389 a.exports = c() 17390 }), pg = { 17391 setup: function() { 17392 var a = this; 17393 q(this.elements.wrapper, this.config.classNames.embed, !0), 17394 pg.setAspectRatio.call(this), 17395 Qf.object(window.Vimeo) ? pg.ready.call(this) : M(this.config.urls.vimeo.sdk).then(function() { 17396 pg.ready.call(a) 17397 }).catch(function(b) { 17398 a.debug.warn("Vimeo API failed to load", b) 17399 }) 17400 }, 17401 setAspectRatio: function(a) { 17402 var b = (Qf.string(a) ? a : this.config.ratio).split(":") 17403 , c = Vf(b, 2) 17404 , d = 100 / c[0] * c[1]; 17405 if (this.elements.wrapper.style.paddingBottom = d + "%", 17406 this.supported.ui) { 17407 var e = (240 - d) / 4.8; 17408 this.media.style.transform = "translateY(-" + e + "%)" 17409 } 17410 }, 17411 ready: function() { 17412 var a = this 17413 , b = this 17414 , c = I({ 17415 loop: b.config.loop.active, 17416 autoplay: b.autoplay, 17417 byline: !1, 17418 portrait: !1, 17419 title: !1, 17420 speed: !0, 17421 transparent: 0, 17422 gesture: "media", 17423 playsinline: !this.config.fullscreen.iosNative 17424 }) 17425 , d = b.media.getAttribute("src"); 17426 Qf.empty(d) && (d = b.media.getAttribute(b.config.attributes.embed.id)); 17427 var e, f = (e = d, 17428 Qf.empty(e) ? null : Qf.number(Number(e)) ? e : e.match(/^.*(vimeo.com\/|video\/)(\d+).*/) ? RegExp.$2 : e), h = j("iframe"), i = y(b.config.urls.vimeo.iframe, f, c); 17429 h.setAttribute("src", i), 17430 h.setAttribute("allowfullscreen", ""), 17431 h.setAttribute("allowtransparency", ""), 17432 h.setAttribute("allow", "autoplay"); 17433 var k = j("div", { 17434 poster: b.poster, 17435 class: b.config.classNames.embedContainer 17436 }); 17437 k.appendChild(h), 17438 b.media = n(k, b.media), 17439 E(y(b.config.urls.vimeo.api, f), "json").then(function(a) { 17440 if (!Qf.empty(a)) { 17441 var c = new URL(a[0].thumbnail_large); 17442 c.pathname = c.pathname.split("_")[0] + ".jpg", 17443 mg.setPoster.call(b, c.href).catch(function() {}) 17444 } 17445 }), 17446 b.embed = new window.Vimeo.Player(h,{
17447 autopause: b.config.autopause, 17448 muted: b.muted 17449 }), 17450 b.media.paused = !0, 17451 b.media.currentTime = 0, 17452 b.supported.ui && b.embed.disableTextTrack(), 17453 b.media.play = function() { 17454 return N.call(b, !0), 17455 b.embed.play() 17456 } 17457 , 17458 b.media.pause = function() { 17459 return N.call(b, !1), 17460 b.embed.pause() 17461 } 17462 , 17463 b.media.stop = function() { 17464 b.pause(), 17465 b.currentTime = 0 17466 } 17467 ; 17468 var l = b.media.currentTime; 17469 Object.defineProperty(b.media, "currentTime", { 17470 get: function() { 17471 return l 17472 }, 17473 set: function(a) { 17474 var c = b.embed 17475 , d = b.media 17476 , e = b.paused 17477 , f = b.volume 17478 , h = e && !c.hasPlayed; 17479 d.seeking = !0, 17480 g.call(b, d, "seeking"), 17481 Promise.resolve(h && c.setVolume(0)).then(function() { 17482 return c.setCurrentTime(a) 17483 }).then(function() { 17484 return h && c.pause() 17485 }).then(function() { 17486 return h && c.setVolume(f) 17487 }).catch(function() {}) 17488 } 17489 }); 17490 var m = b.config.speed.selected; 17491 Object.defineProperty(b.media, "playbackRate", { 17492 get: function() { 17493 return m 17494 }, 17495 set: function(a) { 17496 b.embed.setPlaybackRate(a).then(function() { 17497 m = a, 17498 g.call(b, b.media, "ratechange") 17499 }).catch(function(a) { 17500 "Error" === a.name && eg.setSpeedMenu.call(b, []) 17501 }) 17502 } 17503 }); 17504 var o = b.config.volume; 17505 Object.defineProperty(b.media, "volume", { 17506 get: function() { 17507 return o 17508 }, 17509 set: function(a) { 17510 b.embed.setVolume(a).then(function() { 17511 o = a, 17512 g.call(b, b.media, "volumechange") 17513 }) 17514 } 17515 }); 17516 var p = b.config.muted; 17517 Object.defineProperty(b.media, "muted", { 17518 get: function() { 17519 return p 17520 }, 17521 set: function(a) { 17522 var c = !!Qf.boolean(a) && a; 17523 b.embed.setVolume(c ? 0 : b.config.volume).then(function() { 17524 p = c, 17525 g.call(b, b.media, "volumechange") 17526 }) 17527 } 17528 }); 17529 var q = b.config.loop; 17530 Object.defineProperty(b.media, "loop", { 17531 get: function() { 17532 return q 17533 }, 17534 set: function(a) { 17535 var c = Qf.boolean(a) ? a : b.config.loop.active; 17536 b.embed.setLoop(c).then(function() { 17537 q = c 17538 }) 17539 } 17540 }); 17541 var r = void 0; 17542 b.embed.getVideoUrl().then(function(a) { 17543 r = a 17544 }).catch(function(b) { 17545 a.debug.warn(b) 17546 }), 17547 Object.defineProperty(b.media, "currentSrc", { 17548 get: function() { 17549 return r 17550 } 17551 }), 17552 Object.defineProperty(b.media, "ended", { 17553 get: function() { 17554 return b.currentTime === b.duration 17555 } 17556 }), 17557 Promise.all([b.embed.getVideoWidth(), b.embed.getVideoHeight()]).then(function(b) { 17558 var c = function(a, b) { 17559 var c = function a(b, c) { 17560 return 0 === c ? b : a(c, b % c) 17561 }(a, b); 17562 return a / c + ":" + b / c 17563 }(b[0], b[1]); 17564 pg.setAspectRatio.call(a, c) 17565 }),
17566 b.embed.setAutopause(b.config.autopause).then(function(a) { 17567 b.config.autopause = a 17568 }), 17569 b.embed.getVideoTitle().then(function(c) { 17570 b.config.title = c, 17571 mg.setTitle.call(a) 17572 }), 17573 b.embed.getCurrentTime().then(function(a) { 17574 l = a, 17575 g.call(b, b.media, "timeupdate") 17576 }), 17577 b.embed.getDuration().then(function(a) { 17578 b.media.duration = a, 17579 g.call(b, b.media, "durationchange") 17580 }), 17581 b.embed.getTextTracks().then(function(a) { 17582 b.media.textTracks = a, 17583 fg.setup.call(b) 17584 }), 17585 b.embed.on("cuechange", function(a) { 17586 var c = a.cues 17587 , d = (void 0 === c ? [] : c).map(function(a) { 17588 return b = a.text, 17589 c = document.createDocumentFragment(), 17590 d = document.createElement("div"), 17591 c.appendChild(d), 17592 d.innerHTML = b, 17593 c.firstChild.innerText; 17594 var b, c, d 17595 }); 17596 fg.updateCues.call(b, d) 17597 }), 17598 b.embed.on("loaded", function() { 17599 b.embed.getPaused().then(function(a) { 17600 N.call(b, !a), 17601 a || g.call(b, b.media, "playing") 17602 }), 17603 Qf.element(b.embed.element) && b.supported.ui && b.embed.element.setAttribute("tabindex", -1) 17604 }), 17605 b.embed.on("play", function() { 17606 N.call(b, !0), 17607 g.call(b, b.media, "playing") 17608 }), 17609 b.embed.on("pause", function() { 17610 N.call(b, !1) 17611 }), 17612 b.embed.on("timeupdate", function(a) { 17613 b.media.seeking = !1, 17614 l = a.seconds, 17615 g.call(b, b.media, "timeupdate") 17616 }), 17617 b.embed.on("progress", function(a) { 17618 b.media.buffered = a.percent, 17619 g.call(b, b.media, "progress"), 17620 1 === parseInt(a.percent, 10) && g.call(b, b.media, "canplaythrough"), 17621 b.embed.getDuration().then(function(a) { 17622 a !== b.media.duration && (b.media.duration = a, 17623 g.call(b, b.media, "durationchange")) 17624 }) 17625 }), 17626 b.embed.on("seeked", function() { 17627 b.media.seeking = !1, 17628 g.call(b, b.media, "seeked") 17629 }), 17630 b.embed.on("ended", function() { 17631 b.media.paused = !0, 17632 g.call(b, b.media, "ended") 17633 }), 17634 b.embed.on("error", function(a) { 17635 b.media.error = a, 17636 g.call(b, b.media, "error") 17637 }), 17638 setTimeout(function() { 17639 return mg.build.call(b) 17640 }, 0) 17641 } 17642 }, qg = { 17643 setup: function() { 17644 var a = this; 17645 q(this.elements.wrapper, this.config.classNames.embed, !0), 17646 qg.setAspectRatio.call(this), 17647 Qf.object(window.YT) && Qf.function(window.YT.Player) ? qg.ready.call(this) : (M(this.config.urls.youtube.sdk).catch(function(b) { 17648 a.debug.warn("YouTube API failed to load", b) 17649 }), 17650 window.onYouTubeReadyCallbacks = window.onYouTubeReadyCallbacks || [], 17651 window.onYouTubeReadyCallbacks.push(function() { 17652 qg.ready.call(a) 17653 }), 17654 window.onYouTubeIframeAPIReady = function() { 17655 window.onYouTubeReadyCallbacks.forEach(function(a) { 17656 a() 17657 }) 17658 } 17659 ) 17660 }, 17661 getTitle: function(a) { 17662 var b = this; 17663 if (Qf.function(this.embed.getVideoData)) { 17664 var c = this.embed.getVideoData().title; 17665 if (Qf.empty(c)) 17666 return this.config.title = c, 17667 void mg.setTitle.call(this) 17668 } 17669 var d = this.config.keys.google; 17670 Qf.string(d) && !Qf.empty(d) && E(y(this.config.urls.youtube.api, a, d)).then(function(a) { 17671 Qf.object(a) && (b.config.title = a.items[0].snippet.title, 17672 mg.setTitle.call(b)) 17673 }).catch(function() {}) 17674 }, 17675 setAspectRatio: function() { 17676 var a = this.config.ratio.split(":"); 17677 this.elements.wrapper.style.paddingBottom = 100 / a[0] * a[1] + "%" 17678 }, 17679 ready: function() { 17680 var a = this 17681 , b = a.media.getAttribute("id"); 17682 if (Qf.empty(b) || !b.startsWith("youtube-")) { 17683 var c = a.media.getAttribute("src"); 17684 Qf.empty(c) && (c = a.media.getAttribute(this.config.attributes.embed.id)); 17685 var d, e = (d = c, 17686 Qf.empty(d) ? null : d.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/) ? RegExp.$2 : d), f = a.provider + "-" + Math.floor(1e4 * Math.random()), h = j("div", { 17687 id: f, 17688 poster: a.poster 17689 }); 17690 a.media = n(h, a.media); 17691 var i = function(a) { 17692 return "https://img.youtube.com/vi/" + e + "/" + a + "default.jpg" 17693 }; 17694 L(i("maxres"), 121).catch(function() { 17695 return L(i("sd"), 121) 17696 }).catch(function() { 17697 return L(i("hq")) 17698 }).then(function(b) { 17699 return mg.setPoster.call(a, b.src) 17700 }).then(function(b) { 17701 b.includes("maxres") || (a.elements.poster.style.backgroundSize = "cover") 17702 }).catch(function() {}), 17703 a.embed = new window.YT.Player(f,{ 17704 videoId: e, 17705 playerVars: {
17706 autoplay: a.config.autoplay ? 1 : 0, 17707 controls: a.supported.ui ? 0 : 1, 17708 rel: 0, 17709 showinfo: 0, 17710 iv_load_policy: 3, 17711 modestbranding: 1, 17712 disablekb: 1, 17713 playsinline: 1, 17714 widget_referrer: window ? window.location.href : null, 17715 cc_load_policy: a.captions.active ? 1 : 0, 17716 cc_lang_pref: a.config.captions.language 17717 }, 17718 events: { 17719 onError: function(b) { 17720 if (!a.media.error) { 17721 var c = b.data 17722 , d = { 17723 2: "The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.", 17724 5: "The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.", 17725 100: "The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.", 17726 101: "The owner of the requested video does not allow it to be played in embedded players.", 17727 150: "The owner of the requested video does not allow it to be played in embedded players." 17728 }[c] || "An unknown error occured"; 17729 a.media.error = { 17730 code: c, 17731 message: d 17732 }, 17733 g.call(a, a.media, "error") 17734 } 17735 }, 17736 onPlaybackQualityChange: function() { 17737 g.call(a, a.media, "qualitychange", !1, { 17738 quality: a.media.quality 17739 }) 17740 }, 17741 onPlaybackRateChange: function(b) { 17742 var c = b.target; 17743 a.media.playbackRate = c.getPlaybackRate(), 17744 g.call(a, a.media, "ratechange") 17745 }, 17746 onReady: function(b) { 17747 var c = b.target; 17748 qg.getTitle.call(a, e), 17749 a.media.play = function() { 17750 P.call(a, !0), 17751 c.playVideo() 17752 } 17753 , 17754 a.media.pause = function() { 17755 P.call(a, !1), 17756 c.pauseVideo() 17757 } 17758 , 17759 a.media.stop = function() { 17760 c.stopVideo() 17761 } 17762 , 17763 a.media.duration = c.getDuration(), 17764 a.media.paused = !0, 17765 a.media.currentTime = 0, 17766 Object.defineProperty(a.media, "currentTime", { 17767 get: function() { 17768 return Number(c.getCurrentTime()) 17769 }, 17770 set: function(b) { 17771 a.paused && !a.embed.hasPlayed && a.embed.mute(), 17772 a.media.seeking = !0, 17773 g.call(a, a.media, "seeking"), 17774 c.seekTo(b) 17775 } 17776 }), 17777 Object.defineProperty(a.media, "playbackRate", { 17778 get: function() { 17779 return c.getPlaybackRate() 17780 }, 17781 set: function(a) { 17782 c.setPlaybackRate(a) 17783 } 17784 }), 17785 Object.defineProperty(a.media, "quality", { 17786 get: function() { 17787 return O(c.getPlaybackQuality()) 17788 }, 17789 set: function(a) { 17790 c.setPlaybackQuality(O(a)) 17791 } 17792 }); 17793 var d = a.config.volume; 17794 Object.defineProperty(a.media, "volume", { 17795 get: function() { 17796 return d 17797 }, 17798 set: function(b) { 17799 d = b, 17800 c.setVolume(100 * d), 17801 g.call(a, a.media, "volumechange") 17802 } 17803 }); 17804 var f = a.config.muted; 17805 Object.defineProperty(a.media, "muted", { 17806 get: function() { 17807 return f 17808 }, 17809 set: function(b) { 17810 var d = Qf.boolean(b) ? b : f; 17811 f = d, 17812 c[d ? "mute" : "unMute"](), 17813 g.call(a, a.media, "volumechange") 17814 } 17815 }), 17816 Object.defineProperty(a.media, "currentSrc", { 17817 get: function() { 17818 return c.getVideoUrl() 17819 } 17820 }), 17821 Object.defineProperty(a.media, "ended", { 17822 get: function() { 17823 return a.currentTime === a.duration 17824 } 17825 }), 17826 a.options.speed = c.getAvailablePlaybackRates(), 17827 a.supported.ui && a.media.setAttribute("tabindex", -1), 17828 g.call(a, a.media, "timeupdate"), 17829 g.call(a, a.media, "durationchange"), 17830 clearInterval(a.timers.buffering), 17831 a.timers.buffering = setInterval(function() { 17832 a.media.buffered = c.getVideoLoadedFraction(), 17833 (null === a.media.lastBuffered || a.media.lastBuffered < a.media.buffered) && g.call(a, a.media, "progress"), 17834 a.media.lastBuffered = a.media.buffered, 17835 1 === a.media.buffered && (clearInterval(a.timers.buffering), 17836 g.call(a, a.media, "canplaythrough")) 17837 }, 200), 17838 setTimeout(function() { 17839 return mg.build.call(a) 17840 }, 50) 17841 }, 17842 onStateChange: function(b) { 17843 var c, d = b.target; 17844 switch (clearInterval(a.timers.playing), 17845 a.media.seeking && [1, 2].includes(b.data) && (a.media.seeking = !1, 17846 g.call(a, a.media, "seeked")), 17847 b.data) { 17848 case -1: 17849 g.call(a, a.media, "timeupdate"), 17850 a.media.buffered = d.getVideoLoadedFraction(), 17851 g.call(a, a.media, "progress"); 17852 break; 17853 case 0: 17854 P.call(a, !1), 17855 a.media.loop ? (d.stopVideo(), 17856 d.playVideo()) : g.call(a, a.media, "ended"); 17857 break; 17858 case 1: 17859 a.media.paused && !a.embed.hasPlayed ? a.media.pause() : (P.call(a, !0), 17860 g.call(a, a.media, "playing"), 17861 a.timers.playing = setInterval(function() { 17862 g.call(a, a.media, "timeupdate") 17863 }, 50), 17864 a.media.duration !== d.getDuration() && (a.media.duration = d.getDuration(), 17865 g.call(a, a.media, "durationchange")), 17866 eg.setQualityMenu.call(a, (c = d.getAvailableQualityLevels(), 17867 Qf.empty(c) ? c : D(c.map(function(a) { 17868 return O(a) 17869 }))))); 17870 break; 17871 case 2: 17872 a.muted || a.embed.unMute(), 17873 P.call(a, !1) 17874 } 17875 g.call(a, a.elements.container, "statechange", !1, { 17876 code: b.data 17877 }) 17878 } 17879 } 17880 }) 17881 } 17882 } 17883 }, rg = { 17884 setup: function() { 17885 this.media ? (q(this.elements.container, this.config.classNames.type.replace("{0}", this.type), !0), 17886 q(this.elements.container, this.config.classNames.provider.replace("{0}", this.provider), !0), 17887 this.isEmbed && q(this.elements.container, this.config.classNames.type.replace("{0}", "video"), !0), 17888 this.isVideo && (this.elements.wrapper = j("div", { 17889 class: this.config.classNames.video 17890 }), 17891 h(this.media, this.elements.wrapper), 17892 this.elements.poster = j("div", { 17893 class: this.config.classNames.poster 17894 }), 17895 this.elements.wrapper.appendChild(this.elements.poster)), 17896 this.isHTML5 ? $f.extend.call(this) : this.isYouTube ? qg.setup.call(this) : this.isVimeo && pg.setup.call(this)) : this.debug.warn("No media element found!") 17897 } 17898 }, sg = function() { 17899 function a(b) { 17900 var c = this; 17901 Sf(this, a), 17902 this.player = b, 17903 this.publisherId = b.config.ads.publisherId, 17904 this.playing = !1, 17905 this.initialized = !1, 17906 this.elements = { 17907 container: null, 17908 displayContainer: null 17909 }, 17910 this.manager = null, 17911 this.loader = null, 17912 this.cuePoints = null, 17913 this.events = {}, 17914 this.safetyTimer = null, 17915 this.countdownTimer = null, 17916 this.managerPromise = new Promise(function(a, b) { 17917 c.on("loaded", a), 17918 c.on("error", b) 17919 } 17920 ), 17921 this.load() 17922 } 17923 return Tf(a, [{ 17924 key: "load", 17925 value: function() { 17926 var a = this; 17927 this.enabled && (Qf.object(window.google) && Qf.object(window.google.ima) ? this.ready() : M(this.player.config.urls.googleIMA.sdk).then(function() { 17928 a.ready() 17929 }).catch(function() { 17930 a.trigger("error", new Error("Google IMA SDK failed to load")) 17931 })) 17932 } 17933 }, { 17934 key: "ready", 17935 value: function() { 17936 var a = this; 17937 this.startSafetyTimer(12e3, "ready()"), 17938 this.managerPromise.then(function() { 17939 a.clearSafetyTimer("onAdsManagerLoaded()") 17940 }), 17941 this.listeners(), 17942 this.setupIMA() 17943 } 17944 }, { 17945 key: "setupIMA", 17946 value: function() { 17947 this.elements.container = j("div", { 17948 class: this.player.config.classNames.ads 17949 }), 17950 this.player.elements.container.appendChild(this.elements.container), 17951 google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED), 17952 google.ima.settings.setLocale(this.player.config.ads.language), 17953 this.elements.displayContainer = new google.ima.AdDisplayContainer(this.elements.container), 17954 this.requestAds() 17955 } 17956 }, { 17957 key: "requestAds", 17958 value: function() { 17959 var a = this 17960 , b = this.player.elements.container; 17961 try { 17962 this.loader = new google.ima.AdsLoader(this.elements.displayContainer), 17963 this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, function(b) { 17964 return a.onAdsManagerLoaded(b) 17965 }, !1), 17966 this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, function(b) { 17967 return a.onAdError(b) 17968 }, !1); 17969 var c = new google.ima.AdsRequest; 17970 c.adTagUrl = this.tagUrl, 17971 c.linearAdSlotWidth = b.offsetWidth, 17972 c.linearAdSlotHeight = b.offsetHeight, 17973 c.nonLinearAdSlotWidth = b.offsetWidth, 17974 c.nonLinearAdSlotHeight = b.offsetHeight, 17975 c.forceNonLinearFullSlot = !1, 17976 c.setAdWillPlayMuted(!this.player.muted), 17977 this.loader.requestAds(c) 17978 } catch (a) { 17979 this.onAdError(a) 17980 } 17981 } 17982 }, { 17983 key: "pollCountdown", 17984 value: function() { 17985 var a = this; 17986 if (!(arguments.length > 0 && void 0 !== arguments[0] && arguments[0])) 17987 return clearInterval(this.countdownTimer), 17988 void this.elements.container.removeAttribute("data-badge-text"); 17989 this.countdownTimer = setInterval(function() { 17990 var b = G(Math.max(a.manager.getRemainingTime(), 0
17990)) 17991 , c = _f("advertisement", a.player.config) + " - " + b; 17992 a.elements.container.setAttribute("data-badge-text", c) 17993 }, 100) 17994 } 17995 }, { 17996 key: "onAdsManagerLoaded", 17997 value: function(a) { 17998 var b = this 17999 , c = new google.ima.AdsRenderingSettings; 18000 c.restoreCustomPlaybackStateOnAdBreakComplete = !0, 18001 c.enablePreloading = !0, 18002 this.manager = a.getAdsManager(this.player, c), 18003 this.cuePoints = this.manager.getCuePoints(), 18004 Qf.empty(this.cuePoints) || this.cuePoints.forEach(function(a) { 18005 if (0 !== a && -1 !== a && a < b.player.duration) { 18006 var c = b.player.elements.progress; 18007 if (Qf.element(c)) { 18008 var d = 100 / b.player.duration * a 18009 , e = j("span", { 18010 class: b.player.config.classNames.cues 18011 }); 18012 e.style.left = d.toString() + "%", 18013 c.appendChild(e) 18014 } 18015 } 18016 }), 18017 this.manager.setVolume(this.player.volume), 18018 this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, function(a) { 18019 return b.onAdError(a) 18020 }), 18021 Object.keys(google.ima.AdEvent.Type).forEach(function(a) { 18022 b.manager.addEventListener(google.ima.AdEvent.Type[a], function(a) { 18023 return b.onAdEvent(a) 18024 }) 18025 }), 18026 this.trigger("loaded") 18027 } 18028 }, { 18029 key: "onAdEvent", 18030 value: function(a) { 18031 var b = this 18032 , c = this.player.elements.container 18033 , d = a.getAd() 18034 , e = function(a) { 18035 var c = "ads" + a.replace(/_/g, "").toLowerCase(); 18036 g.call(b.player, b.player.media, c) 18037 }; 18038 switch (a.type) { 18039 case google.ima.AdEvent.Type.LOADED: 18040 this.trigger("loaded"), 18041 e(a.type), 18042 this.pollCountdown(!0), 18043 d.isLinear() || (d.width = c.offsetWidth, 18044 d.height = c.offsetHeight); 18045 break; 18046 case google.ima.AdEvent.Type.ALL_ADS_COMPLETED: 18047 e(a.type), 18048 this.loadAds(); 18049 break; 18050 case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED: 18051 e(a.type), 18052 this.pauseContent(); 18053 break; 18054 case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED: 18055 e(a.type), 18056 this.pollCountdown(), 18057 this.resumeContent(); 18058 break; 18059 case google.ima.AdEvent.Type.STARTED: 18060 case google.ima.AdEvent.Type.MIDPOINT: 18061 case google.ima.AdEvent.Type.COMPLETE: 18062 case google.ima.AdEvent.Type.IMPRESSION: 18063 case google.ima.AdEvent.Type.CLICK: 18064 e(a.type) 18065 } 18066 } 18067 }, { 18068 key: "onAdError", 18069 value: function(a) { 18070 this.cancel(), 18071 this.player.debug.warn("Ads error", a) 18072 } 18073 }, { 18074 key: "listeners", 18075 value: function() { 18076 var a = this 18077 , b = this.player.elements.container 18078 , c = void 0; 18079 this.player.on("ended", function() { 18080 a.loader.contentComplete() 18081 }), 18082 this.player.on("seeking", function() { 18083 return c = a.player.currentTime 18084 }), 18085 this.player.on("seeked", function() { 18086 var b = a.player.currentTime;
18087 Qf.empty(a.cuePoints) || a.cuePoints.forEach(function(d, e) { 18088 c < d && d < b && (a.manager.discardAdBreak(), 18089 a.cuePoints.splice(e, 1)) 18090 }) 18091 }), 18092 window.addEventListener("resize", function() { 18093 a.manager && a.manager.resize(b.offsetWidth, b.offsetHeight, google.ima.ViewMode.NORMAL) 18094 }) 18095 } 18096 }, { 18097 key: "play", 18098 value: function() { 18099 var a = this 18100 , b = this.player.elements.container; 18101 this.managerPromise || this.resumeContent(), 18102 this.managerPromise.then(function() { 18103 a.elements.displayContainer.initialize(); 18104 try { 18105 a.initialized || (a.manager.init(b.offsetWidth, b.offsetHeight, google.ima.ViewMode.NORMAL), 18106 a.manager.start()), 18107 a.initialized = !0 18108 } catch (b) { 18109 a.onAdError(b) 18110 } 18111 }).catch(function() {}) 18112 } 18113 }, { 18114 key: "resumeContent", 18115 value: function() { 18116 this.elements.container.style.zIndex = "", 18117 this.playing = !1, 18118 this.player.currentTime < this.player.duration && this.player.play() 18119 } 18120 }, { 18121 key: "pauseContent", 18122 value: function() { 18123 this.elements.container.style.zIndex = 3, 18124 this.playing = !0, 18125 this.player.pause() 18126 } 18127 }, { 18128 key: "cancel", 18129 value: function() { 18130 this.initialized && this.resumeContent(), 18131 this.trigger("error"), 18132 this.loadAds() 18133 } 18134 }, { 18135 key: "loadAds", 18136 value: function() { 18137 var a = this; 18138 this.managerPromise.then(function() { 18139 a.manager && a.manager.destroy(), 18140 a.managerPromise = new Promise(function(b) { 18141 a.on("loaded", b), 18142 a.player.debug.log(a.manager) 18143 } 18144 ), 18145 a.requestAds() 18146 }).catch(function() {}) 18147 } 18148 }, { 18149 key: "trigger", 18150 value: function(a) { 18151 for (var b = this, c = arguments.length, d = Array(c > 1 ? c - 1 : 0), e = 1; e < c; e++) 18152 d[e - 1] = arguments[e]; 18153 var f = this.events[a]; 18154 Qf.array(f) && f.forEach(function(a) { 18155 Qf.function(a) && a.apply(b, d) 18156 }) 18157 } 18158 }, { 18159 key: "on", 18160 value: function(a, b) { 18161 return Qf.array(this.events[a]) || (this.events[a] = []), 18162 this.events[a].push(b), 18163 this 18164 } 18165 }, { 18166 key: "startSafetyTimer", 18167 value: function(a, b) { 18168 var c = this; 18169 this.player.debug.log("Safety timer invoked from: " + b), 18170 this.safetyTimer = setTimeout(function() { 18171 c.cancel(), 18172 c.clearSafetyTimer("startSafetyTimer()") 18173 }, a) 18174 } 18175 }, { 18176 key: "clearSafetyTimer", 18177 value: function(a) { 18178 Qf.nullOrUndefined(this.safetyTimer) || (this.player.debug.log("Safety timer cleared from: " + a), 18179 clearTimeout(this.safetyTimer), 18180 this.safetyTimer = null) 18181 } 18182 }, { 18183 key: "enabled", 18184 get: function() { 18185 return this.player.isHTML5 && this.player.isVideo && this.player.config.ads.enabled && !Qf.empty(this.publisherId) 18186 } 18187 }, { 18188 key: "tagUrl", 18189 get: function() { 18190 return "https://go.aniview.com/api/adserver6/vast/?" + I({ 18191 AV_PUBLISHERID: "58c25bb0073ef448b1087ad6", 18192 AV_CHANNELID: "5a0458dc28a06145e4519d21", 18193 AV_URL: window.location.hostname, 18194 cb: Date.now(), 18195 AV_WIDTH: 640, 18196 AV_HEIGHT: 480, 18197 AV_CDIM2: this.publisherId 18198 }) 18199 } 18200 }]), 18201 a 18202 }(), tg = { 18203 insertElements: function(a, b) { 18204 var c = this; 18205 Qf.string(b) ? k(a, this.media, { 18206 src: b 18207 }) : Qf.array(b) && b.forEach(function(b) { 18208 k(a, c.media, b) 18209 }) 18210 }, 18211 change: function(a) { 18212 var b = this; 18213 w(a, "sources.length") ? ($f.cancelRequests.call(this), 18214 this.destroy.call(this, function() { 18215 b.options.quality = [], 18216 l(b.media), 18217 b.media = null, 18218 Qf.element(b.elements.container) && b.elements.container.removeAttribute("class"); 18219 var c = a.sources 18220 , d = a.type 18221 , e = Vf(c, 1)[0] 18222 , f = e.provider 18223 , g = void 0 === f ? hg.html5 : f 18224 , h = e.src 18225 , i = "html5" === g ? d : "div" 18226 , k = "html5" === g ? {} : { 18227 src: h 18228 }; 18229 Object.assign(b, { 18230 provider: g, 18231 type: d, 18232 supported: Zf.check(d, g, b.config.playsinline), 18233 media: j(i, k) 18234 }), 18235 b.elements.container.appendChild(b.media),
vendor: 4,178 bytes, lines 18236-18324
18236 Qf.boolean(a.autoplay) && (b.config.autoplay = a.autoplay), 18237 b.isHTML5 && (b.config.crossorigin && b.media.setAttribute("crossorigin", ""), 18238 b.config.autoplay && b.media.setAttribute("autoplay", ""), 18239 Qf.empty(a.poster) || (b.poster = a.poster), 18240 b.config.loop.active && b.media.setAttribute("loop", ""), 18241 b.config.muted && b.media.setAttribute("muted", ""), 18242 b.config.playsinline && b.media.setAttribute("playsinline", "")), 18243 mg.addStyleHook.call(b), 18244 b.isHTML5 && tg.insertElements.call(b, "source", c), 18245 b.config.title = a.title, 18246 rg.setup.call(b), 18247 b.isHTML5 && ("tracks"in a && tg.insertElements.call(b, "track", a.tracks), 18248 b.media.load()), 18249 (b.isHTML5 || b.isEmbed && !b.supported.ui) && mg.build.call(b), 18250 b.fullscreen.update() 18251 }, !0)) : this.debug.warn("Invalid source format") 18252 } 18253 }, ug = function() { 18254 function a(b, c) { 18255 var e = this; 18256 if (Sf(this, a), 18257 this.timers = {}, 18258 this.ready = !1, 18259 this.loading = !1, 18260 this.failed = !1, 18261 this.touch = Zf.touch, 18262 this.media = b, 18263 Qf.string(this.media) && (this.media = document.querySelectorAll(this.media)), 18264 (window.jQuery && this.media instanceof jQuery || Qf.nodeList(this.media) || Qf.array(this.media)) && (this.media = this.media[0]), 18265 this.config = x({}, gg, a.defaults, c || {}, function() { 18266 try { 18267 return JSON.parse(e.media.getAttribute("data-plyr-config")) 18268 } catch (a) { 18269 return {} 18270 } 18271 }()), 18272 this.elements = { 18273 container: null, 18274 buttons: {}, 18275 display: {}, 18276 progress: {}, 18277 inputs: {}, 18278 settings: { 18279 menu: null, 18280 panes: {}, 18281 tabs: {} 18282 }, 18283 captions: null 18284 }, 18285 this.captions = { 18286 active: null, 18287 currentTrack: -1, 18288 meta: new WeakMap 18289 }, 18290 this.fullscreen = { 18291 active: !1 18292 }, 18293 this.options = { 18294 speed: [], 18295 quality: [] 18296 }, 18297 this.debug = new kg(this.config.debug), 18298 this.debug.log("Config", this.config), 18299 this.debug.log("Support", Zf), 18300 !Qf.nullOrUndefined(this.media) && Qf.element(this.media)) 18301 if (this.media.plyr) 18302 this.debug.warn("Target already setup"); 18303 else if (this.config.enabled) 18304 if (Zf.check().api) { 18305 var f = this.media.cloneNode(!0); 18306 f.autoplay = !1, 18307 this.elements.original = f; 18308 var g = this.media.tagName.toLowerCase() 18309 , i = null 18310 , k = null; 18311 switch (g) { 18312 case "div": 18313 if (i = this.media.querySelector("iframe"), 18314 Qf.element(i)) { 18315 if (k = H(i.getAttribute("src")), 18316 this.provider = function(a) { 18317 return /^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.?be)\/.+$/.test(a) ? hg.youtube : /^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(a) ? hg.vimeo : null 18318 }(k.toString()), 18319 this.elements.container = this.media, 18320 this.media = i, 18321 this.elements.container.className = "", 18322 k.searchParams.length) { 18323 var l = ["1", "true"]; 18324 l.includes(k.searchParams.get("autoplay")) && (this.config.auto
18324play = !0), 18325 l.includes(k.searchParams.get("loop")) && (this.config.loop.active = !0), 18326 this.isYouTube ? this.config.playsinline = l.includes(k.searchParams.get("playsinline")) : this.config.playsinline = !0 18327 } 18328 } else 18329 this.provider = this.media.getAttribute(this.config.attributes.embed.provider), 18330 this.media.removeAttribute(this.config.attributes.embed.provider); 18331 if (Qf.empty(this.provider) || !Object.keys(hg).includes(this.provider)) 18332 return void this.debug.error("Setup failed: Invalid provider"); 18333 this.type = ig.video; 18334 break; 18335 case "video": 18336 case "audio": 18337 this.type = g, 18338 this.provider = hg.html5, 18339 this.media.hasAttribute("crossorigin") && (this.config.crossorigin = !0), 18340 this.media.hasAttribute("autoplay") && (this.config.autoplay = !0), 18341 this.media.hasAttribute("playsinline") && (this.config.playsinline = !0), 18342 this.media.hasAttribute("muted") && (this.config.muted = !0), 18343 this.media.hasAttribute("loop") && (this.config.loop.active = !0); 18344 break; 18345 default: 18346 return void this.debug.error("Setup failed: unsupported type") 18347 } 18348 this.supported = Zf.check(this.type, this.provider, this.config.playsinline), 18349 this.supported.api ? (this.eventListeners = [], 18350 this.listeners = new ng(this), 18351 this.storage = new ag(this), 18352 this.media.plyr = this, 18353 Qf.element(this.elements.container) || (this.elements.container = j("div"), 18354 h(this.media, this.elements.container)), 18355 mg.addStyleHook.call(this), 18356 rg.setup.call(this), 18357 this.config.debug && d.call(this, this.elements.container, this.config.events.join(" "), function(a) { 18358 e.debug.log("event: " + a.type) 18359 }), 18360 (this.isHTML5 || this.isEmbed && !this.supported.ui) && mg.build.call(this), 18361 this.listeners.container(), 18362 this.listeners.global(), 18363 this.fullscreen = new lg(this), 18364 this.ads = new sg(this), 18365 this.config.autoplay && this.play()) : this.debug.error("Setup failed: no support") 18366 } else 18367 this.debug.error("Setup failed: no support"); 18368 else 18369 this.debug.error("Setup failed: disabled by config"); 18370 else 18371 this.debug.error("Setup failed: no suitable element passed") 18372 } 18373 return Tf(a, [{ 18374 key: "play", 18375 value: function() { 18376 return Qf.function(this.media.play) ? this.media.play() : null 18377 } 18378 }, { 18379 key: "pause", 18380 value: function() { 18381 this.playing && Qf.function(this.media.pause) && this.media.pause() 18382 } 18383 }, { 18384 key: "togglePlay", 18385 value: function(a) { 18386 (Qf.boolean(a) ? a : !this.playing) ? this.play() : this.pause() 18387 } 18388 }, { 18389 key: "stop", 18390 value: function() { 18391 this.isHTML5 ? (this.pause(), 18392 this.restart()) : Qf.function(this.media.stop) && this.media.stop() 18393 } 18394 }, { 18395 key: "restart", 18396 value: function() { 18397 this.currentTime = 0 18398 } 18399 }, { 18400 key: "rewind", 18401 value: function(a) { 18402 this.currentTime = this.currentTime - (Qf.number(a) ? a : this.config.seekTime) 18403 } 18404 }, { 18405 key: "forward", 18406 value: function(a) { 18407 this.currentTime = this.currentTime + (Qf.number(a) ? a : this.config.seekTime) 18408 } 18409 }, { 18410 key: "increaseVolume", 18411 value: function(a) { 18412 var b = this.media.muted ? 0 : this.volume; 18413 this.volume = b + (Qf.number(a) ? a : 0) 18414 } 18415 }, { 18416 key: "decreaseVolume", 18417 value: function(a) { 18418 this.increaseVolume(-a) 18419 } 18420 }, { 18421 key: "toggleCaptions", 18422 value: function(a) { 18423 fg.toggle.call(this, a, !1) 18424 } 18425 }, { 18426 key: "airplay", 18427 value: function() { 18428 Zf.airplay && this.media.webkitShowPlaybackTargetPicker() 18429 } 18430 }, { 18431 key: "toggleControls", 18432 value: function(a) { 18433 if (this.supported.ui && !this.isAudio) { 18434 var b = r(this.elements.container, this.config.classNames.hideControls) 18435 , c = void 0 === a ? void 0 : !a 18436 , d = q(this.elements.container, this.config.classNames.hideControls, c); 18437 if (d && this.config.controls.includes("settings") && !Qf.empty(this.config.settings) && eg.toggleMenu.call(this, !1), 18438 d !== b) { 18439 var e = d ? "controlshidden" : "controlsshown"; 18440 g.call(this, this.media, e) 18441 } 18442 return !d 18443 } 18444 return !1 18445 } 18446 }, { 18447 key: "on", 18448 value: function(a, b) { 18449 d.call(this, this.elements.container, a, b) 18450 } 18451 }, { 18452 key: "once", 18453 value: function(a, b) { 18454 f.call(this, this.elements.container, a, b) 18455 } 18456 }, { 18457 key: "off", 18458 value: function(a, b) { 18459 e(this.elements.container, a, b) 18460 } 18461 }, {
18462 key: "destroy", 18463 value: function(a) { 18464 var b = this 18465 , c = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; 18466 if (this.ready) { 18467 var d = function() { 18468 document.body.style.overflow = "", 18469 b.embed = null, 18470 c ? (Object.keys(b.elements).length && (l(b.elements.buttons.play), 18471 l(b.elements.captions), 18472 l(b.elements.controls), 18473 l(b.elements.wrapper), 18474 b.elements.buttons.play = null, 18475 b.elements.captions = null, 18476 b.elements.controls = null, 18477 b.elements.wrapper = null), 18478 Qf.function(a) && a()) : (function() { 18479 this && this.eventListeners && (this.eventListeners.forEach(function(a) { 18480 var b = a.element 18481 , c = a.type 18482 , d = a.callback 18483 , e = a.options; 18484 b.removeEventListener(c, d, e) 18485 }), 18486 this.eventListeners = []) 18487 } 18488 .call(b), 18489 n(b.elements.original, b.elements.container), 18490 g.call(b, b.elements.original, "destroyed", !0), 18491 Qf.function(a) && a.call(b.elements.original), 18492 b.ready = !1, 18493 setTimeout(function() { 18494 b.elements = null, 18495 b.media = null 18496 }, 200)) 18497 }; 18498 this.stop(), 18499 this.isHTML5 ? (clearTimeout(this.timers.loading), 18500 mg.toggleNativeControls.call(this, !0), 18501 d()) : this.isYouTube ? (clearInterval(this.timers.buffering), 18502 clearInterval(this.timers.playing), 18503 null !== this.embed && Qf.function(this.embed.destroy) && this.embed.destroy(), 18504 d()) : this.isVimeo && (null !== this.embed && this.embed.unload().then(d), 18505 setTimeout(d, 200)) 18506 } 18507 } 18508 }, { 18509 key: "supports", 18510 value: function(a) { 18511 return Zf.mime.call(this, a) 18512 } 18513 }, { 18514 key: "isHTML5", 18515 get: function() { 18516 return Boolean(this.provider === hg.html5) 18517 } 18518 }, { 18519 key: "isEmbed", 18520 get: function() { 18521 return Boolean(this.isYouTube || this.isVimeo) 18522 } 18523 }, { 18524 key: "isYouTube", 18525 get: function() { 18526 return Boolean(this.provider === hg.youtube) 18527 } 18528 }, { 18529 key: "isVimeo", 18530 get: function() { 18531 return Boolean(this.provider === hg.vimeo) 18532 } 18533 }, { 18534 key: "isVideo", 18535 get: function() { 18536 return Boolean(this.type === ig.video) 18537 } 18538 }, { 18539 key: "isAudio", 18540 get: function() { 18541 return Boolean(this.type === ig.audio) 18542 } 18543 }, { 18544 key: "playing", 18545 get: function() { 18546 return Boolean(this.ready && !this.paused && !this.ended) 18547 } 18548 }, { 18549 key: "paused", 18550 get: function() { 18551 return Boolean(this.media.paused) 18552 } 18553 }, { 18554 key: "stopped", 18555 get: function() { 18556 return Boolean(this.paused && 0 === this.currentTime) 18557 } 18558 }, { 18559 key: "ended", 18560 get: function() { 18561 return Boolean(this.media.ended) 18562 } 18563 }, { 18564 key: "currentTime", 18565 set: function(a) { 18566 if (this.duration) { 18567 var b = Qf.number(a) && a > 0; 18568 this.media.currentTime = b ? Math.min(a, this.duration) : 0, 18569 this.debug.log("Seeking to " + this.currentTime + " seconds") 18570 } 18571 }, 18572 get: function() { 18573 return Number(this.media.currentTime) 18574 } 18575 }, { 18576 key: "buffered", 18577 get: function() { 18578 var a = this.media.buffered; 18579 return Qf.number(a) ? a : a && a.length && this.duration > 0 ? a.end(0) / this.duration : 0 18580 } 18581 }, { 18582 key: "seeking", 18583 get: function() { 18584 return Boolean(this.media.seeking) 18585 } 18586 }, { 18587 key: "duration", 18588 get: function() { 18589 var a = parseFloat(this.config.duration) 18590 , b = (this.media || {}).duration 18591 , c = Qf.number(b) && b !== 1 / 0 ? b : 0; 18592 return a || c 18593 } 18594 }, { 18595 key: "volume", 18596 set: function(a) { 18597 var b = a; 18598 Qf.string(b) && (b = Number(b)), 18599 Qf.number(b) || (b = this.storage.get("volume")), 18600 Qf.number(b) || (b = this.config.volume), 18601 b > 1 && (b = 1), 18602 b < 0 && (b = 0), 18603 this.config.volume = b, 18604 this.media.volume = b, 18605 !Qf.empty(a) && this.muted && b > 0 && (this.muted = !1) 18606 }, 18607 get: function() { 18608 return Number(this.media.volume) 18609 } 18610 }, { 18611 key: "muted", 18612 set: function(a) { 18613 var b = a; 18614 Qf.boolean(b) || (b = this.storage.get("muted")), 18615 Qf.boolean(b) || (b = this.config.muted), 18616 this.config.muted = b, 18617 this.media.muted = b 18618 }, 18619 get: function() { 18620 return Boolean(this.media.muted) 18621 } 18622 }, { 18623 key: "hasAudio", 18624 get: function() { 18625 return !this.isHTML5 || !!this.isAudio || Boolean(this.media.mozHasAudio) || Boolean(this.media.webkitAudioDecodedByteCount) || Boolean(this.media.audioTracks && this.media.audioTracks.length) 18626 } 18627 }, { 18628 key: "speed", 18629 set: function(a) { 18630 var b = null; 18631 Qf.number(a) && (b = a), 18632 Qf.number(b) || (b = this.storage.get("speed")), 18633 Qf.number(b) || (b = this.config.speed.selected), 18634 b < .1 && (b = .1), 18635 b > 2 && (b = 2), 18636 this.config.speed.options.includes(b) ? (this.config.speed.selected = b, 18637 this.media.playbackRate = b) : this.debug.warn("Unsupported speed (" + b + ")") 18638 }, 18639 get: function() { 18640 return Number(this.media.playbackRate) 18641 } 18642 }, { 18643 key: "quality", 18644 set: function(a) { 18645 var b = this.config.quality 18646 , c = this.options.quality; 18647 if (c.length) { 18648 var d = [!Qf.empty(a) && Number(a), this.storage.get("quality"), b.selected, b.default].find(Qf.number); 18649 if (!c.includes(d)) { 18650 var e = function(a, b) { 18651 return Qf.array(a) && a.length ? a.reduce(function(a, c) { 18652 return Math.abs(c - b) < Math.abs(a - b) ? c : a 18653 }) : null 18654 }(c, d); 18655 this.debug.warn("Unsupported quality option: " + d + ", using " + e + " instead"), 18656 d = e 18657 } 18658 g.call(this, this.media, "qualityrequested", !1, { 18659 quality: d 18660 }), 18661 b.selected = d, 18662 this.media.quality = d 18663 } 18664 }, 18665 get: function() { 18666 return this.media.quality 18667 } 18668 }, { 18669 key: "loop", 18670 set: function(a) { 18671 var b = Qf.boolean(a) ? a : this.config.loop.active; 18672 this.config.loop.active = b, 18673 this.media.loop = b 18674 }, 18675 get: function() { 18676 return Boolean(this.media.loop) 18677 } 18678 }, { 18679 key: "source", 18680 set: function(a) { 18681 tg.change.call(this, a) 18682 }, 18683 get: function() { 18684 return this.media.currentSrc 18685 } 18686 }, { 18687 key: "poster", 18688 set: function(a) { 18689 this.isVideo ? mg.setPoster.call(this, a, !1).catch(function() {}) : this.debug.warn("Poster can only be set for video") 18690 }, 18691 get: function() { 18692 return this.isVideo ? this.media.getAttribute("poster") : null 18693 } 18694 }, {
18695 key: "autoplay", 18696 set: function(a) { 18697 var b = Qf.boolean(a) ? a : this.config.autoplay; 18698 this.config.autoplay = b 18699 }, 18700 get: function() { 18701 return Boolean(this.config.autoplay) 18702 } 18703 }, { 18704 key: "currentTrack", 18705 set: function(a) { 18706 fg.set.call(this, a, !1) 18707 }, 18708 get: function() { 18709 var a = this.captions 18710 , b = a.toggled 18711 , c = a.currentTrack; 18712 return b ? c : -1 18713 } 18714 }, { 18715 key: "language", 18716 set: function(a) { 18717 fg.setLanguage.call(this, a, !1) 18718 }, 18719 get: function() { 18720 return (fg.getCurrentTrack.call(this) || {}).language 18721 } 18722 }, { 18723 key: "pip", 18724 set: function(a) { 18725 var b = "inline"; 18726 if (Zf.pip) { 18727 var c = Qf.boolean(a) ? a : this.pip === b; 18728 this.media.webkitSetPresentationMode(c ? "picture-in-picture" : b) 18729 } 18730 }, 18731 get: function() { 18732 return Zf.pip ? this.media.webkitPresentationMode : null 18733 } 18734 }], [{ 18735 key: "supported", 18736 value: function(a, b, c) { 18737 return Zf.check(a, b, c) 18738 } 18739 }, { 18740 key: "loadSprite", 18741 value: function(a, b) { 18742 return F(a, b) 18743 } 18744 }, { 18745 key: "setup", 18746 value: function(b) { 18747 var c = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {} 18748 , d = null; 18749 return Qf.string(b) ? d = Array.from(document.querySelectorAll(b)) : Qf.nodeList(b) ? d = Array.from(b) : Qf.array(b) && (d = b.filter(Qf.element)), 18750 Qf.empty(d) ? null : d.map(function(b) { 18751 return new a(b,c) 18752 }) 18753 } 18754 }]), 18755 a 18756 }(); 18757 return ug.defaults = (Hf = gg, 18758 JSON.parse(JSON.stringify(Hf))), 18759 ug 18760}), 18761function(a, b) { 18762 "object" == typeof exports && "undefined" != typeof module ? module.exports = b() : "function" == typeof define && define.amd ? define(b) : a.fecha = b() 18763}(this, function() { 18764 "use strict"; 18765 function a(a, b) { 18766 for (var c = [], d = 0, e = a.length; d < e; d++) 18767 c.push(a[d].substr(0, b)); 18768 return c 18769 } 18770 function b(a) { 18771 return function(b, c, d) { 18772 var e = d[a].indexOf(c.charAt(0).toUpperCase() + c.substr(1).toLowerCase()); 18773 ~e && (b.month = e) 18774 } 18775 } 18776 function c(a, b) { 18777 for (a = String(a), 18778 b = b || 2; a.length < b; ) 18779 a = "0" + a; 18780 return a 18781 } 18782 var d = {} 18783 , e = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g 18784 , f = "[^\\s]+" 18785 , g = /\[([^]*?)\]/gm 18786 , h = function() {} 18787 , i = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] 18788 , j = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "
18788November", "December"] 18789 , k = a(j, 3) 18790 , l = a(i, 3); 18791 d.i18n = { 18792 dayNamesShort: l, 18793 dayNames: i, 18794 monthNamesShort: k, 18795 monthNames: j, 18796 amPm: ["am", "pm"], 18797 DoFn: function(a) { 18798 return a + ["th", "st", "nd", "rd"][a % 10 > 3 ? 0 : (a - a % 10 != 10) * a % 10] 18799 } 18800 }; 18801 var m = { 18802 D: function(a) { 18803 return a.getDate() 18804 }, 18805 DD: function(a) { 18806 return c(a.getDate()) 18807 }, 18808 Do: function(a, b) { 18809 return b.DoFn(a.getDate()) 18810 }, 18811 d: function(a) { 18812 return a.getDay() 18813 }, 18814 dd: function(a) { 18815 return c(a.getDay()) 18816 }, 18817 ddd: function(a, b) { 18818 return b.dayNamesShort[a.getDay()] 18819 }, 18820 dddd: function(a, b) { 18821 return b.dayNames[a.getDay()] 18822 }, 18823 M: function(a) { 18824 return a.getMonth() + 1 18825 }, 18826 MM: function(a) { 18827 return c(a.getMonth() + 1) 18828 }, 18829 MMM: function(a, b) { 18830 return b.monthNamesShort[a.getMonth()] 18831 }, 18832 MMMM: function(a, b) { 18833 return b.monthNames[a.getMonth()] 18834 }, 18835 YY: function(a) { 18836 return c(String(a.getFullYear()), 4).substr(2) 18837 }, 18838 YYYY: function(a) { 18839 return c(a.getFullYear(), 4) 18840 }, 18841 h: function(a) { 18842 return a.getHours() % 12 || 12 18843 }, 18844 hh: function(a) { 18845 return c(a.getHours() % 12 || 12) 18846 }, 18847 H: function(a) { 18848 return a.getHours() 18849 }, 18850 HH: function(a) { 18851 return c(a.getHours()) 18852 }, 18853 m: function(a) { 18854 return a.getMinutes() 18855 }, 18856 mm: function(a) { 18857 return c(a.getMinutes()) 18858 }, 18859 s: function(a) { 18860 return a.getSeconds() 18861 }, 18862 ss: function(a) { 18863 return c(a.getSeconds()) 18864 }, 18865 S: function(a) { 18866 return Math.round(a.getMilliseconds() / 100) 18867 }, 18868 SS: function(a) { 18869 return c(Math.round(a.getMilliseconds() / 10), 2) 18870 }, 18871 SSS: function(a) { 18872 return c(a.getMilliseconds(), 3) 18873 }, 18874 a: function(a, b) { 18875 return a.getHours() < 12 ? b.amPm[0] : b.amPm[1] 18876 }, 18877 A: function(a, b) { 18878 return a.getHours() < 12 ? b.amPm[0].toUpperCase() : b.amPm[1].toUpperCase() 18879 }, 18880 ZZ: function(a) { 18881 var b = a.getTimezoneOffset(); 18882 return (b > 0 ? "-" : "+") + c(100 * Math.floor(Math.abs(b) / 60) + Math.abs(b) % 60, 4) 18883 } 18884 } 18885 , n = { 18886 D: ["\\d\\d?", function(a, b) { 18887 a.day = b 18888 } 18889 ], 18890 Do: ["\\d\\d?" + f, function(a, b) { 18891 a.day = parseInt(b, 10) 18892 } 18893 ], 18894 M: ["\\d\\d?", function(a, b) { 18895 a.month = b - 1 18896 } 18897 ], 18898 YY: ["\\d\\d?", function(a, b) { 18899 var c = +("" + (new Date).getFullYear()).substr(0, 2); 18900 a.year = "" + (b > 68 ? c - 1 : c) + b 18901 } 18902 ], 18903 h: ["\\d\\d?", function(a, b) { 18904 a.hour = b 18905 } 18906 ], 18907 m: ["\\d\\d?", function(a, b) { 18908 a.minute = b 18909 } 18910 ], 18911 s: ["\\d\\d?", function(a, b) { 18912 a.second = b 18913 } 18914 ], 18915 YYYY: ["\\d{4}", function(a, b) { 18916 a.year = b 18917 } 18918 ], 18919 S: ["\\d", function(a, b) { 18920 a.millisecond = 100 * b 18921 } 18922 ], 18923 SS: ["\\d{2}", function(a, b) { 18924 a.millisecond = 10 * b 18925 } 18926 ], 18927 SSS: ["\\d{3}", function(a, b) { 18928 a.millisecond = b 18929 } 18930 ], 18931 d: ["\\d\\d?", h], 18932 ddd: [f, h], 18933 MMM: [f, b("monthNamesShort")], 18934 MMMM: [f, b("monthNames")], 18935 a: [f, function(a, b, c) { 18936 var d = b.toLowerCase(); 18937 d === c.amPm[0] ? a.isPm = !1 : d === c.amPm[1] && (a.isPm = !0) 18938 } 18939 ], 18940 ZZ: ["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z", function(a, b) { 18941 var c, d = (b + "").match(/([+-]|\d\d)/gi); 18942 d && (c = 60 * d[1] + parseInt(d[2], 10), 18943 a.timezoneOffset = "+" === d[0] ? c : -c) 18944 } 18945 ] 18946 }; 18947 return n.dd = n.d, 18948 n.dddd = n.ddd, 18949 n.DD = n.D, 18950 n.mm = n.m, 18951 n.hh = n.H = n.HH = n.h, 18952 n.MM = n.M, 18953 n.ss = n.s, 18954 n.A = n.a, 18955 d.masks = { 18956 default: "ddd MMM DD YYYY HH:mm:ss", 18957 shortDate: "M/D/YY", 18958 mediumDate: "MMM D, YYYY", 18959 longDate: "MMMM D, YYYY", 18960 fullDate: "dddd, MMMM D, YYYY", 18961 shortTime: "HH:mm", 18962 mediumTime: "HH:mm:ss", 18963 longTime: "HH:mm:ss.SSS" 18964 }, 18965 d.format = function(a, b, c) { 18966 var f = c || d.i18n; 18967 if ("number" == typeof a && (a = new Date(a)), 18968 "[object Date]" !== Object.prototype.toString.call(a) || isNaN(a.getTime())) 18969 throw new Error("Invalid Date in fecha.format"); 18970 var h = []; 18971 return (b = (b = (b = d.masks[b] || b || d.masks.default).replace(g, function(a, b) { 18972 return h.push(b), 18973 "??" 18974 })).replace(e, function(b) { 18975 return b in m ? m[b](a, f) : b.slice(1, b.length - 1) 18976 })).replace(/\?\?/g, function() { 18977 return h.shift() 18978 }) 18979 } 18980 , 18981 d.parse = function(a, b, c) { 18982 var f = c || d.i18n; 18983 if ("string" != typeof b) 18984 throw new Error("Invalid format in fecha.parse"); 18985 if (b = d.masks[b] || b, 18986 a.length > 1e3) 18987 return null; 18988 var g, h = {}, i = [], j = (g = b, 18989 g.replace(/[|\\{()[^$+*?.-]/g, "\\$&")).replace(e, function(a) { 18990 if (n[a]) { 18991 var b = n[a]; 18992 return i.push(b[1]), 18993 "(" + b[0] + ")" 18994 } 18995 return a 18996 }), k = a.match(new RegExp(j,"i")); 18997 if (!k) 18998 return null; 18999 for (var l = 1; l < k.length; l++) 19000 i[l - 1](h, k[l], f); 19001 var m, o = new Date; 19002 return !0 === h.isPm && null != h.hour && 12 != +h.hour ? h.hour = +h.hour + 12 : !1 === h.isPm && 12 == +h.hour && (h.hour = 0), 19003 null != h.timezoneOffset ? (h.minute = +(h.minute || 0) - +h.timezoneOffset, 19004 m = new Date(Date.UTC(h.year || o.getFullYear(), h.month || 0, h.day || 1, h.hour || 0, h.minute || 0, h.second || 0, h.millisecond || 0))) : m = new Date(h.year || o.getFullYear(),h.month || 0,h.day || 1,h.hour || 0,h.minute || 0,h.second || 0,h.millisecond || 0), 19005 m 19006 } 19007 , 19008 d 19009}), 19010function(a) { 19011 a.fn.appendAround = function() { 19012 return this.each(function() { 19013 function b(b) { 19014 return "none" === a(b).css("display") 19015 } 19016 function c() { 19017 if (b(g)) { 19018 var a = 0; 19019 i.each(function() { 19020 b(this) || a || (d.appendTo(this), 19021 a++, 19022 g = this) 19023 }) 19024 } 19025 } 19026 var d = a(this) 19027 , e = "data-set" 19028 , f = d.parent() 19029 , g = f[0] 19030 , h = f.attr(e) 19031 , i = a("[" + e + "='" + h + "']"); 19032 c(), 19033 a(window).bind("resize", c) 19034 }) 19035 } 19036}(jQuery), 19037function(a, b) { 19038 "object" == typeof exports && "object" == typeof module ? module.exports = b() : "function" == typeof define && define.amd ? define([], b) : "object" == typeof exports ? exports.Handlebars = b() : a.Handlebars = b() 19039}(this, function() { 19040 return function(a) { 19041 function b(d) { 19042 if (c[d]) 19043 return c[d].exports; 19044 var e = c[d] = { 19045 exports: {}, 19046 id: d, 19047 loaded: !1 19048 }; 19049 return a[d].call(e.exports, e, e.exports, b), 19050 e.loaded = !0, 19051 e.exports 19052 } 19053 var c = {}; 19054 return b.m = a, 19055 b.c = c, 19056 b.p = "", 19057 b(0) 19058 }([function(a, b, c) { 19059 "use strict"; 19060 function d() { 19061 var a = r(); 19062 return a.compile = function(b, c) { 19063 return k.compile(b, c, a) 19064 } 19065 , 19066 a.precompile = function(b, c) { 19067 return k.precompile(b, c, a) 19068 } 19069 , 19070 a.AST = i.default, 19071 a.Compiler = k.Compiler, 19072 a.JavaScriptCompiler = m.default, 19073 a.Parser = j.parser, 19074 a.parse = j.parse, 19075 a.parseWithoutProcessing = j.parseWithoutProcessing, 19076 a 19077 } 19078 var e = c(1).default; 19079 b.__esModule = !0; 19080 var f = c(2) 19081 , g = e(f) 19082 , h = c(40) 19083 , i = e(h) 19084 , j = c(41) 19085 , k = c(46) 19086 , l = c(49) 19087 , m = e(l) 19088 , n = c(44) 19089 , o = e(n) 19090 , p = c(39) 19091 , q = e(p) 19092 , r = g.default.create 19093 , s = d(); 19094 s.create = d, 19095 q.default(s), 19096 s.Visitor = o.default, 19097 s.default = s, 19098 b.default = s, 19099 a.exports = b.default 19100 } 19101 , function(a, b) { 19102 "use strict"; 19103 b.default = function(a) { 19104 return a && a.__esModule ? a : { 19105 default: a 19106 } 19107 } 19108 , 19109 b.__esModule = !0 19110 } 19111 , function(a, b, c) { 19112 "use strict"; 19113 function d() { 19114 var a = new h.HandlebarsEnvironment; 19115 return n.extend(a, h), 19116 a.SafeString = j.default, 19117 a.Exception = l.default, 19118 a.Utils = n, 19119 a.escapeExpression = n.escapeExpression, 19120 a.VM = p, 19121 a.template = function(b) { 19122 return p.template(b, a) 19123 } 19124 , 19125 a 19126 } 19127 var e = c(3).default 19128 , f = c(1).default; 19129 b.__esModule = !0; 19130 var g = c(4) 19131 , h = e(g) 19132 , i = c(33) 19133 , j = f(i) 19134 , k = c(6) 19135 , l = f(k) 19136 , m = c(5) 19137 , n = e(m) 19138 , o = c(34) 19139 , p = e(o) 19140 , q = c(39) 19141 , r = f(q) 19142 , s = d(); 19143 s.create = d, 19144 r.default(s), 19145 s.default = s, 19146 b.default = s, 19147 a.exports = b.default 19148 } 19149 , function(a, b) { 19150 "use strict"; 19151 b.default = function(a) { 19152 if (a && a.__esModule) 19153 return a; 19154 var b = {}; 19155 if (null != a) 19156 for (var c in a) 19157 Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]); 19158 return b.default = a, 19159 b 19160 } 19161 , 19162 b.__esModule = !0 19163 } 19164 , function(a, b, c) { 19165 "use strict"; 19166 function d(a, b, c) { 19167 this.helpers = a || {}, 19168 this.partials = b || {}, 19169 this.decorators = c || {}, 19170 i.registerDefaultHelpers(this), 19171 j.registerDefaultDecorators(this) 19172 } 19173 var e = c(1).default; 19174 b.__esModule = !0, 19175 b.HandlebarsEnvironment = d; 19176 var f = c(5) 19177 , g = c(6) 19178 , h = e(g) 19179 , i = c(10) 19180 , j = c(30) 19181 , k = c(32) 19182 , l = e(k); 19183 b.VERSION = "4.5.3", 19184 b.COMPILER_REVISION = 8, 19185 b.LAST_COMPATIBLE_COMPILER_REVISION = 7; 19186 var m = { 19187 1: "<= 1.0.rc.2", 19188 2: "== 1.0.0-rc.3", 19189 3: "== 1.0.0-rc.4", 19190 4: "== 1.x.x", 19191 5: "== 2.0.0-alpha.x", 19192 6: ">
vendor: 9,504 bytes, lines 19192-19484
19192= 2.0.0-beta.1", 19193 7: ">= 4.0.0 <4.3.0", 19194 8: ">= 4.3.0" 19195 }; 19196 b.REVISION_CHANGES = m; 19197 var n = "[object Object]"; 19198 d.prototype = { 19199 constructor: d, 19200 logger: l.default, 19201 log: l.default.log, 19202 registerHelper: function(a, b) { 19203 if (f.toString.call(a) === n) { 19204 if (b) 19205 throw new h.default("Arg not supported with multiple helpers"); 19206 f.extend(this.helpers, a) 19207 } else 19208 this.helpers[a] = b 19209 }, 19210 unregisterHelper: function(a) { 19211 delete this.helpers[a] 19212 }, 19213 registerPartial: function(a, b) { 19214 if (f.toString.call(a) === n) 19215 f.extend(this.partials, a); 19216 else { 19217 if (void 0 === b) 19218 throw new h.default('Attempting to register a partial called "' + a + '" as undefined'); 19219 this.partials[a] = b 19220 } 19221 }, 19222 unregisterPartial: function(a) { 19223 delete this.partials[a] 19224 }, 19225 registerDecorator: function(a, b) { 19226 if (f.toString.call(a) === n) { 19227 if (b) 19228 throw new h.default("Arg not supported with multiple decorators"); 19229 f.extend(this.decorators, a) 19230 } else 19231 this.decorators[a] = b 19232 }, 19233 unregisterDecorator: function(a) { 19234 delete this.decorators[a] 19235 } 19236 }; 19237 var o = l.default.log; 19238 b.log = o, 19239 b.createFrame = f.createFrame, 19240 b.logger = l.default 19241 } 19242 , function(a, b) { 19243 "use strict"; 19244 function c(a) { 19245 return k[a] 19246 } 19247 function d(a) { 19248 for (var b = 1; b < arguments.length; b++) 19249 for (var c in arguments[b]) 19250 Object.prototype.hasOwnProperty.call(arguments[b], c) && (a[c] = arguments[b][c]); 19251 return a 19252 } 19253 function e(a, b) { 19254 for (var c = 0, d = a.length; c < d; c++) 19255 if (a[c] === b) 19256 return c; 19257 return -1 19258 } 19259 function f(a) { 19260 if ("string" != typeof a) { 19261 if (a && a.toHTML) 19262 return a.toHTML(); 19263 if (null == a) 19264 return ""; 19265 if (!a) 19266 return a + ""; 19267 a = "" + a 19268 } 19269 return m.test(a) ? a.replace(l, c) : a 19270 } 19271 function g(a) { 19272 return !a && 0 !== a || !(!p(a) || 0 !== a.length) 19273 } 19274 function h(a) { 19275 var b = d({}, a); 19276 return b._parent = a, 19277 b 19278 } 19279 function i(a, b) { 19280 return a.path = b, 19281 a 19282 } 19283 function j(a, b) { 19284 return (a ? a + "." : "") + b 19285 } 19286 b.__esModule = !0, 19287 b.extend = d, 19288 b.indexOf = e, 19289 b.escapeExpression = f, 19290 b.isEmpty = g, 19291 b.createFrame = h, 19292 b.blockParams = i, 19293 b.appendContextPath = j; 19294 var k = { 19295 "&": "&", 19296 "<": "<", 19297 ">": ">", 19298 '"': """, 19299 "'": "'", 19300 "`": "`", 19301 "=": "=" 19302 } 19303 , l = /[&<>"'`=]/g 19304 , m = /[&<>"'`=]/ 19305 , n = Object.prototype.toString; 19306 b.toString = n; 19307 var o = function(a) { 19308 return "function" == typeof a 19309 }; 19310 o(/x/) && (b.isFunction = o = function(a) { 19311 return "function" == typeof a && "[object Function]" === n.call(a) 19312 } 19313 ), 19314 b.isFunction = o; 19315 var p = Array.isArray || function(a) { 19316 return !(!a || "object" != typeof a) && "[object Array]" === n.call(a) 19317 } 19318 ; 19319 b.isArray = p 19320 } 19321 , function(a, b, c) { 19322 "use strict"; 19323 function d(a, b) { 19324 var c = b && b.loc 19325 , g = void 0 19326 , h = void 0 19327 , i = void 0 19328 , j = void 0; 19329 c && (g = c.start.line, 19330 h = c.end.line, 19331 i = c.start.column, 19332 j = c.end.column, 19333 a += " - " + g + ":" + i); 19334 for (var k = Error.prototype.constructor.call(this, a), l = 0; l < f.length; l++) 19335 this[f[l]] = k[f[l]]; 19336 Error.captureStackTrace && Error.captureStackTrace(this, d); 19337 try { 19338 c && (this.lineNumber = g, 19339 this.endLineNumber = h, 19340 e ? (Object.defineProperty(this, "column", { 19341 value: i, 19342 enumerable: !0 19343 }), 19344 Object.defineProperty(this, "endColumn", { 19345 value: j, 19346 enumerable: !0 19347 })) : (this.column = i, 19348 this.endColumn = j)) 19349 } catch (a) {} 19350 } 19351 var e = c(7).default; 19352 b.__esModule = !0; 19353 var f = ["description", "fileName", "lineNumber", "endLineNumber", "message", "name", "number", "stack"]; 19354 d.prototype = new Error, 19355 b.default = d, 19356 a.exports = b.default 19357 } 19358 , function(a, b, c) { 19359 a.exports = { 19360 default: c(8), 19361 __esModule: !0 19362 } 19363 } 19364 , function(a, b, c) { 19365 var d = c(9); 19366 a.exports = function(a, b, c) { 19367 return d.setDesc(a, b, c) 19368 } 19369 } 19370 , function(a, b) { 19371 var c = Object; 19372 a.exports = { 19373 create: c.create, 19374 getProto: c.getPrototypeOf, 19375 isEnum: {}.propertyIsEnumerable, 19376 getDesc: c.getOwnPropertyDescriptor, 19377 setDesc: c.defineProperty, 19378 setDescs: c.defineProperties, 19379 getKeys: c.keys, 19380 getNames: c.getOwnPropertyNames, 19381 getSymbols: c.getOwnPropertySymbols, 19382 each: [].forEach 19383 } 19384 } 19385 , function(a, b, c) { 19386 "use strict"; 19387 function d(a) { 19388 h.default(a), 19389 j.default(a), 19390 l.default(a), 19391 n.default(a), 19392 p.default(a), 19393 r.default(a), 19394 t.default(a) 19395 } 19396 function e(a, b, c) { 19397 a.helpers[b] && (a.hooks[b] = a.helpers[b], 19398 c || delete a.helpers[b]) 19399 } 19400 var f = c(1).default; 19401 b.__esModule = !0, 19402 b.registerDefaultHelpers = d, 19403 b.moveHelperToHooks = e; 19404 var g = c(11) 19405 , h = f(g) 19406 , i = c(12) 19407 , j = f(i) 19408 , k = c(25) 19409 , l = f(k) 19410 , m = c(26) 19411 , n = f(m) 19412 , o = c(27) 19413 , p = f(o) 19414 , q = c(28) 19415 , r = f(q) 19416 , s = c(29) 19417 , t = f(s) 19418 } 19419 , function(a, b, c) { 19420 "use strict"; 19421 b.__esModule = !0; 19422 var d = c(5); 19423 b.default = function(a) { 19424 a.registerHelper("blockHelperMissing", function(b, c) { 19425 var e = c.inverse 19426 , f = c.fn; 19427 if (!0 === b) 19428 return f(this); 19429 if (!1 === b || null == b) 19430 return e(this); 19431 if (d.isArray(b)) 19432 return b.length > 0 ? (c.ids && (c.ids = [c.name]), 19433 a.helpers.each(b, c)) : e(this); 19434 if (c.data && c.ids) { 19435 var g = d.createFrame(c.data); 19436 g.contextPath = d.appendContextPath(c.data.contextPath, c.name), 19437 c = { 19438 data: g 19439 } 19440 } 19441 return f(b, c) 19442 }) 19443 } 19444 , 19445 a.exports = b.default 19446 } 19447 , function(a, b, c) { 19448 (function(d) { 19449 "use strict"; 19450 var e = c(13).default 19451 , f = c(1).default; 19452 b.__esModule = !0; 19453 var g = c(5) 19454 , h = c(6) 19455 , i = f(h); 19456 b.default = function(a) { 19457 a.registerHelper("each", function(a, b) { 19458 function c(b, c, d) { 19459 l && (l.key = b, 19460 l.index = c, 19461 l.first = 0 === c, 19462 l.last = !!d, 19463 m && (l.contextPath = m + b)), 19464 k += f(a[b], { 19465 data: l, 19466 blockParams: g.blockParams([a[b], b], [m + b, null]) 19467 }) 19468 } 19469 if (!b) 19470 throw new i.default("Must pass iterator to #each"); 19471 var f = b.fn 19472 , h = b.inverse 19473 , j = 0 19474 , k = "" 19475 , l = void 0 19476 , m = void 0; 19477 if (b.data && b.ids && (m = g.appendContextPath(b.data.contextPath, b.ids[0]) + "."), 19478 g.isFunction(a) && (a = a.call(this)), 19479 b.data && (l = g.createFrame(b.data)), 19480 a && "object" == typeof a) 19481 if (g.isArray(a)) 19482 for (var n = a.length; j < n; j++) 19483 j in a && c(j, j, j === a.length - 1); 19484 else if (d.Symbol && a[d.Symbol.iterator]) {
vendor: 6,483 bytes, lines 19485-19686
19485 for (var o = [], p = a[d.Symbol.iterator](), q = p.next(); !q.done; q = p.next()) 19486 o.push(q.value); 19487 a = o; 19488 for (var n = a.length; j < n; j++) 19489 c(j, j, j === a.length - 1) 19490 } else 19491 !function() { 19492 var b = void 0; 19493 e(a).forEach(function(a) { 19494 void 0 !== b && c(b, j - 1), 19495 b = a, 19496 j++ 19497 }), 19498 void 0 !== b && c(b, j - 1, !0) 19499 }(); 19500 return 0 === j && (k = h(this)), 19501 k 19502 }) 19503 } 19504 , 19505 a.exports = b.default 19506 } 19507 ).call(b, function() { 19508 return this 19509 }()) 19510 } 19511 , function(a, b, c) { 19512 a.exports = { 19513 default: c(14), 19514 __esModule: !0 19515 } 19516 } 19517 , function(a, b, c) { 19518 c(15), 19519 a.exports = c(21).Object.keys 19520 } 19521 , function(a, b, c) { 19522 var d = c(16); 19523 c(18)("keys", function(a) { 19524 return function(b) { 19525 return a(d(b)) 19526 } 19527 }) 19528 } 19529 , function(a, b, c) { 19530 var d = c(17); 19531 a.exports = function(a) { 19532 return Object(d(a)) 19533 } 19534 } 19535 , function(a, b) { 19536 a.exports = function(a) { 19537 if (void 0 == a) 19538 throw TypeError("Can't call method on " + a); 19539 return a 19540 } 19541 } 19542 , function(a, b, c) { 19543 var d = c(19) 19544 , e = c(21) 19545 , f = c(24); 19546 a.exports = function(a, b) { 19547 var c = (e.Object || {})[a] || Object[a] 19548 , g = {}; 19549 g[a] = b(c), 19550 d(d.S + d.F * f(function() { 19551 c(1) 19552 }), "Object", g) 19553 } 19554 } 19555 , function(a, b, c) { 19556 var d = c(20) 19557 , e = c(21) 19558 , f = c(22) 19559 , g = "prototype" 19560 , h = function(a, b, c) { 19561 var i, j, k, l = a & h.F, m = a & h.G, n = a & h.S, o = a & h.P, p = a & h.B, q = a & h.W, r = m ? e : e[b] || (e[b] = {}), s = m ? d : n ? d[b] : (d[b] || {})[g]; 19562 m && (c = b); 19563 for (i in c) 19564 (j = !l && s && i in s) && i in r || (k = j ? s[i] : c[i], 19565 r[i] = m && "function" != typeof s[i] ? c[i] : p && j ? f(k, d) : q && s[i] == k ? function(a) { 19566 var b = function(b) { 19567 return this instanceof a ? new a(b) : a(b) 19568 }; 19569 return b[g] = a[g], 19570 b 19571 }(k) : o && "function" == typeof k ? f(Function.call, k) : k, 19572 o && ((r[g] || (r[g] = {}))[i] = k)) 19573 }; 19574 h.F = 1, 19575 h.G = 2, 19576 h.S = 4, 19577 h.P = 8, 19578 h.B = 16, 19579 h.W = 32, 19580 a.exports = h 19581 } 19582 , function(a, b) { 19583 var c = a.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")(); 19584 "number" == typeof __g && (__g = c) 19585 } 19586 , function(a, b) { 19587 var c = a.exports = { 19588 version: "1.2.6" 19589 }; 19590 "number" == typeof __e && (__e = c) 19591 } 19592 , function(a, b, c) { 19593 var d = c(23); 19594 a.exports = function(a, b, c) { 19595 if (d(a), 19596 void 0 === b) 19597 return a; 19598 switch (c) { 19599 case 1: 19600 return function(c) { 19601 return a.call(b, c) 19602 } 19603 ; 19604 case 2: 19605 return function(c, d) { 19606 return a.call(b, c, d) 19607 } 19608 ; 19609 case 3: 19610 return function(c, d, e) { 19611 return a.call(b, c, d, e) 19612 } 19613 } 19614 return function() { 19615 return a.apply(b, arguments) 19616 } 19617 } 19618 } 19619 , function(a, b) { 19620 a.exports = function(a) { 19621 if ("function" != typeof a) 19622 throw TypeError(a + " is not a function!"); 19623 return a 19624 } 19625 } 19626 , function(a, b) { 19627 a.exports = function(a) { 19628 try { 19629 return !!a() 19630 } catch (a) { 19631 return !0 19632 } 19633 } 19634 } 19635 , function(a, b, c) { 19636 "use strict"; 19637 var d = c(1).default; 19638 b.__esModule = !0; 19639 var e = c(6) 19640 , f = d(e); 19641 b.default = function(a) { 19642 a.registerHelper("helperMissing", function() { 19643 if (1 !== arguments.length) 19644 throw new f.default('Missing helper: "' + arguments[arguments.length - 1].name + '"') 19645 }) 19646 } 19647 , 19648 a.exports = b.default 19649 } 19650 , function(a, b, c) { 19651 "use strict"; 19652 var d = c(1).default; 19653 b.__esModule = !0; 19654 var e = c(5) 19655 , f = c(6) 19656 , g = d(f); 19657 b.default = function(a) { 19658 a.registerHelper("if", function(a, b) { 19659 if (2 != arguments.length) 19660 throw new g.default("#if requires exactly one argument"); 19661 return e.isFunction(a) && (a = a.call(this)), 19662 !b.hash.includeZero && !a || e.isEmpty(a) ? b.inverse(this) : b.fn(this) 19663 }), 19664 a.registerHelper("unless", function(b, c) { 19665 if (2 != arguments.length) 19666 throw new g.default("#unless requires exactly one argument"); 19667 return a.helpers.if.call(this, b, { 19668 fn: c.inverse, 19669 inverse: c.fn, 19670 hash: c.hash 19671 }) 19672 }) 19673 } 19674 , 19675 a.exports = b.default 19676 } 19677 , function(a, b) { 19678 "use strict"; 19679 b.__esModule = !0, 19680 b.default = function(a) { 19681 a.registerHelper("log", function() { 19682 for (var b = [void 0], c = arguments[arguments.length - 1], d = 0; d < arguments.length - 1; d++) 19683 b.push(arguments[d]); 19684 var e = 1; 19685 null != c.hash.level ? e = c.hash.level : c.data && null != c.data.level && (e = c.data.level), 19686 b[0] = e,
vendor: 8,393 bytes, lines 19687-19905
19687 a.log.apply(a, b) 19688 }) 19689 } 19690 , 19691 a.exports = b.default 19692 } 19693 , function(a, b) { 19694 "use strict"; 19695 b.__esModule = !0; 19696 var c = /^(constructor|__defineGetter__|__defineSetter__|__lookupGetter__|__proto__)$/; 19697 b.dangerousPropertyRegex = c, 19698 b.default = function(a) { 19699 a.registerHelper("lookup", function(a, b) { 19700 return a ? !c.test(String(b)) || Object.prototype.propertyIsEnumerable.call(a, b) ? a[b] : void 0 : a 19701 }) 19702 } 19703 } 19704 , function(a, b, c) { 19705 "use strict"; 19706 var d = c(1).default; 19707 b.__esModule = !0; 19708 var e = c(5) 19709 , f = c(6) 19710 , g = d(f); 19711 b.default = function(a) { 19712 a.registerHelper("with", function(a, b) { 19713 if (2 != arguments.length) 19714 throw new g.default("#with requires exactly one argument"); 19715 e.isFunction(a) && (a = a.call(this)); 19716 var c = b.fn; 19717 if (e.isEmpty(a)) 19718 return b.inverse(this); 19719 var d = b.data; 19720 return b.data && b.ids && (d = e.createFrame(b.data), 19721 d.contextPath = e.appendContextPath(b.data.contextPath, b.ids[0])), 19722 c(a, { 19723 data: d, 19724 blockParams: e.blockParams([a], [d && d.contextPath]) 19725 }) 19726 }) 19727 } 19728 , 19729 a.exports = b.default 19730 } 19731 , function(a, b, c) { 19732 "use strict"; 19733 function d(a) { 19734 g.default(a) 19735 } 19736 var e = c(1).default; 19737 b.__esModule = !0, 19738 b.registerDefaultDecorators = d; 19739 var f = c(31) 19740 , g = e(f) 19741 } 19742 , function(a, b, c) { 19743 "use strict"; 19744 b.__esModule = !0; 19745 var d = c(5); 19746 b.default = function(a) { 19747 a.registerDecorator("inline", function(a, b, c, e) { 19748 var f = a; 19749 return b.partials || (b.partials = {}, 19750 f = function(e, f) { 19751 var g = c.partials; 19752 c.partials = d.extend({}, g, b.partials); 19753 var h = a(e, f); 19754 return c.partials = g, 19755 h 19756 } 19757 ), 19758 b.partials[e.args[0]] = e.fn, 19759 f 19760 }) 19761 } 19762 , 19763 a.exports = b.default 19764 } 19765 , function(a, b, c) { 19766 "use strict"; 19767 b.__esModule = !0; 19768 var d = c(5) 19769 , e = { 19770 methodMap: ["debug", "info", "warn", "error"], 19771 level: "info", 19772 lookupLevel: function(a) { 19773 if ("string" == typeof a) { 19774 var b = d.indexOf(e.methodMap, a.toLowerCase()); 19775 a = b >= 0 ? b : parseInt(a, 10) 19776 } 19777 return a 19778 }, 19779 log: function(a) { 19780 if (a = e.lookupLevel(a), 19781 "undefined" != typeof console && e.lookupLevel(e.level) <= a) { 19782 var b = e.methodMap[a]; 19783 console[b] || (b = "log"); 19784 for (var c = arguments.length, d = Array(c > 1 ? c - 1 : 0), f = 1; f < c; f++) 19785 d[f - 1] = arguments[f]; 19786 console[b].apply(console, d) 19787 } 19788 } 19789 }; 19790 b.default = e, 19791 a.exports = b.default 19792 } 19793 , function(a, b) { 19794 "use strict"; 19795 function c(a) { 19796 this.string = a 19797 } 19798 b.__esModule = !0, 19799 c.prototype.toString = c.prototype.toHTML = function() { 19800 return "" + this.string 19801 } 19802 , 19803 b.default = c, 19804 a.exports = b.default 19805 } 19806 , function(a, b, c) { 19807 "use strict"; 19808 function d(a) { 19809 var b = a && a[0] || 1 19810 , c = s.COMPILER_REVISION; 19811 if (!(b >= s.LAST_COMPATIBLE_COMPILER_REVISION && b <= s.COMPILER_REVISION)) { 19812 if (b < s.LAST_COMPATIBLE_COMPILER_REVISION) { 19813 var d = s.REVISION_CHANGES[c] 19814 , e = s.REVISION_CHANGES[b]; 19815 throw new r.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" + d + ") or downgrade your runtime to an older version (" + e + ").") 19816 } 19817 throw new r.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + a[1] + ").") 19818 } 19819 } 19820 function e(a, b) { 19821 function c(c, d, e) { 19822 e.hash && (d = p.extend({}, d, e.hash), 19823 e.ids && (e.ids[0] = !0)), 19824 c = b.VM.resolvePartial.call(this, c, d, e); 19825 var f = p.extend({}, e, { 19826 hooks: this.hooks 19827 }) 19828 , g = b.VM.invokePartial.call(this, c, d, f); 19829 if (null == g && b.compile && (e.partials[e.name] = b.compile(c, a.compilerOptions, b), 19830 g = e.partials[e.name](d, f)), 19831 null != g) { 19832 if (e.indent) { 19833 for (var h = g.split("\n"), i = 0, j = h.length; i < j && (h[i] || i + 1 !== j); i++) 19834 h[i] = e.indent + h[i]; 19835 g = h.join("\n") 19836 } 19837 return g 19838 } 19839 throw new r.default("The partial " + e.name + " could not be compiled when running in runtime-only mode") 19840 } 19841 function d(b) { 19842 function c(b) { 19843 return "" + a.main(g, b, g.helpers, g.partials, f, i, h) 19844 } 19845 var e = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1] 19846 , f = e.data; 19847 d._setup(e), 19848 !e.partial && a.useData && (f = j(b, f)); 19849 var h = void 0 19850 , i = a.useBlockParams ? [] : void 0; 19851 return a.useDepths && (h = e.depths ? b != e.depths[0] ? [b].concat(e.depths) : e.depths : [b]), 19852 (c = k(a.main, c, g, e.depths || [], f, i))(b, e) 19853 } 19854 if (!b) 19855 throw new r.default("No environment passed to template"); 19856 if (!a || !a.main) 19857 throw new r.default("Unknown template object: " + typeof a); 19858 a.main.decorator = a.main_d, 19859 b.VM.checkRevision(a.compiler); 19860 var e = a.compiler && 7 === a.compiler[0] 19861 , g = { 19862 strict: function(a, b, c) { 19863 if (!(a && b in a)) 19864 throw new r.default('"' + b + '" not defined in ' + a,{ 19865 loc: c 19866 }); 19867 return a[b] 19868 }, 19869 lookup: function(a, b) { 19870 for (var c = a.length, d = 0; d < c; d++) 19871 if (a[d] && null != a[d][b]) 19872 return a[d][b] 19873 }, 19874 lambda: function(a, b) { 19875 return "function" == typeof a ? a.call(b) : a 19876 }, 19877 escapeExpression: p.escapeExpression, 19878 invokePartial: c, 19879 fn: function(b) { 19880 var c = a[b]; 19881 return c.decorator = a[b + "_d"], 19882 c 19883 }, 19884 programs: [], 19885 program: function(a, b, c, d, e) { 19886 var g = this.programs[a] 19887 , h = this.fn(a); 19888 return b || e || d || c ? g = f(this, a, h, b, c, d, e) : g || (g = this.programs[a] = f(this, a, h)), 19889 g 19890 }, 19891 data: function(a, b) { 19892 for (; a && b--; ) 19893 a = a._parent; 19894 return a 19895 }, 19896 nullContext: l({}), 19897 noop: b.VM.noop, 19898 compilerInfo: a.compiler 19899 }; 19900 return d.isTop = !0, 19901 d._setup = function(c) { 19902 if (c.partial) 19903 g.helpers = c.helpers, 19904 g.partials = c.partials, 19905 g.decorators = c.decorators,
vendor: 6,667 bytes, lines 19906-20109
19906 g.hooks = c.hooks; 19907 else { 19908 g.helpers = p.extend({}, b.helpers, c.helpers), 19909 a.usePartial && (g.partials = p.extend({}, b.partials, c.partials)), 19910 (a.usePartial || a.useDecorators) && (g.decorators = p.extend({}, b.decorators, c.decorators)), 19911 g.hooks = {}; 19912 var d = c.allowCallsToHelperMissing || e; 19913 t.moveHelperToHooks(g, "helperMissing", d), 19914 t.moveHelperToHooks(g, "blockHelperMissing", d) 19915 } 19916 } 19917 , 19918 d._child = function(b, c, d, e) { 19919 if (a.useBlockParams && !d) 19920 throw new r.default("must pass block params"); 19921 if (a.useDepths && !e) 19922 throw new r.default("must pass parent depths"); 19923 return f(g, b, a[b], c, 0, d, e) 19924 } 19925 , 19926 d 19927 } 19928 function f(a, b, c, d, e, f, g) { 19929 function h(b) { 19930 var e = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1] 19931 , h = g; 19932 return !g || b == g[0] || b === a.nullContext && null === g[0] || (h = [b].concat(g)), 19933 c(a, b, a.helpers, a.partials, e.data || d, f && [e.blockParams].concat(f), h) 19934 } 19935 return h = k(c, h, a, g, d, f), 19936 h.program = b, 19937 h.depth = g ? g.length : 0, 19938 h.blockParams = e || 0, 19939 h 19940 } 19941 function g(a, b, c) { 19942 return a ? a.call || c.name || (c.name = a, 19943 a = c.partials[a]) : a = "@partial-block" === c.name ? c.data["partial-block"] : c.partials[c.name], 19944 a 19945 } 19946 function h(a, b, c) { 19947 var d = c.data && c.data["partial-block"]; 19948 c.partial = !0, 19949 c.ids && (c.data.contextPath = c.ids[0] || c.data.contextPath); 19950 var e = void 0; 19951 if (c.fn && c.fn !== i && function() { 19952 c.data = s.createFrame(c.data); 19953 var a = c.fn; 19954 e = c.data["partial-block"] = function(b) { 19955 var c = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1]; 19956 return c.data = s.createFrame(c.data), 19957 c.data["partial-block"] = d, 19958 a(b, c) 19959 } 19960 , 19961 a.partials && (c.partials = p.extend({}, c.partials, a.partials)) 19962 }(), 19963 void 0 === a && e && (a = e), 19964 void 0 === a) 19965 throw new r.default("The partial " + c.name + " could not be found"); 19966 if (a instanceof Function) 19967 return a(b, c) 19968 } 19969 function i() { 19970 return "" 19971 } 19972 function j(a, b) { 19973 return b && "root"in b || (b = b ? s.createFrame(b) : {}, 19974 b.root = a), 19975 b 19976 } 19977 function k(a, b, c, d, e, f) { 19978 if (a.decorator) { 19979 var g = {}; 19980 b = a.decorator(b, g, c, d && d[0], e, f, d), 19981 p.extend(b, g) 19982 } 19983 return b 19984 } 19985 var l = c(35).default 19986 , m = c(3).default 19987 , n = c(1).default; 19988 b.__esModule = !0, 19989 b.checkRevision = d, 19990 b.template = e, 19991 b.wrapProgram = f, 19992 b.resolvePartial = g, 19993 b.invokePartial = h, 19994 b.noop = i; 19995 var o = c(5) 19996 , p = m(o) 19997 , q = c(6) 19998 , r = n(q) 19999 , s = c(4) 20000 , t = c(10) 20001 } 20002 , function(a, b, c) { 20003 a.exports = { 20004 default: c(36), 20005 __esModule: !0 20006 } 20007 } 20008 , function(a, b, c) { 20009 c(37), 20010 a.exports = c(21).Object.seal 20011 } 20012 , function(a, b, c) { 20013 var d = c(38); 20014 c(18)("seal", function(a) { 20015 return function(b) { 20016 return a && d(b) ? a(b) : b 20017 } 20018 }) 20019 } 20020 , function(a, b) { 20021 a.exports = function(a) { 20022 return "object" == typeof a ? null !== a : "function" == typeof a 20023 } 20024 } 20025 , function(a, b) { 20026 (function(c) { 20027 "use strict"; 20028 b.__esModule = !0, 20029 b.default = function(a) { 20030 var b = void 0 !== c ? c : window 20031 , d = b.Handlebars; 20032 a.noConflict = function() { 20033 return b.Handlebars === a && (b.Handlebars = d), 20034 a 20035 } 20036 } 20037 , 20038 a.exports = b.default 20039 } 20040 ).call(b, function() { 20041 return this 20042 }()) 20043 } 20044 , function(a, b) { 20045 "use strict"; 20046 b.__esModule = !0; 20047 var c = { 20048 helpers: { 20049 helperExpression: function(a) { 20050 return "SubExpression" === a.type || ("MustacheStatement" === a.type || "BlockStatement" === a.type) && !!(a.params && a.params.length || a.hash) 20051 }, 20052 scopedId: function(a) { 20053 return /^\.|this\b/.test(a.original) 20054 }, 20055 simpleId: function(a) { 20056 return 1 === a.parts.length && !c.helpers.scopedId(a) && !a.depth 20057 } 20058 } 20059 }; 20060 b.default = c, 20061 a.exports = b.default 20062 } 20063 , function(a, b, c) { 20064 "use strict"; 20065 function d(a, b) { 20066 return "Program" === a.type ? a : (i.default.yy = o, 20067 o.locInfo = function(a) { 20068 return new o.SourceLocation(b && b.srcName,a) 20069 } 20070 , 20071 i.default.parse(a)) 20072 } 20073 function e(a, b) { 20074 var c = d(a, b); 20075 return new k.default(b).accept(c) 20076 } 20077 var f = c(1).default 20078 , g = c(3).default; 20079 b.__esModule = !0, 20080 b.parseWithoutProcessing = d, 20081 b.parse = e; 20082 var h = c(42) 20083 , i = f(h) 20084 , j = c(43) 20085 , k = f(j) 20086 , l = c(45) 20087 , m = g(l) 20088 , n = c(5); 20089 b.parser = i.default; 20090 var o = {}; 20091 n.extend(o, m) 20092 } 20093 , function(a, b) { 20094 "use strict"; 20095 b.__esModule = !0; 20096 var c = function() { 20097 function a() { 20098 this.yy = {} 20099 } 20100 var b = { 20101 trace: function() {}, 20102 yy: {}, 20103 symbols_: { 20104 error: 2, 20105 root: 3, 20106 program: 4, 20107 EOF: 5, 20108 program_repetition0: 6, 20109 statement: 7,
20110 mustache: 8, 20111 block: 9, 20112 rawBlock: 10, 20113 partial: 11, 20114 partialBlock: 12, 20115 content: 13, 20116 COMMENT: 14, 20117 CONTENT: 15, 20118 openRawBlock: 16, 20119 rawBlock_repetition0: 17, 20120 END_RAW_BLOCK: 18, 20121 OPEN_RAW_BLOCK: 19, 20122 helperName: 20, 20123 openRawBlock_repetition0: 21, 20124 openRawBlock_option0: 22, 20125 CLOSE_RAW_BLOCK: 23, 20126 openBlock: 24, 20127 block_option0: 25, 20128 closeBlock: 26, 20129 openInverse: 27, 20130 block_option1: 28, 20131 OPEN_BLOCK: 29, 20132 openBlock_repetition0: 30, 20133 openBlock_option0: 31, 20134 openBlock_option1: 32, 20135 CLOSE: 33, 20136 OPEN_INVERSE: 34, 20137 openInverse_repetition0: 35, 20138 openInverse_option0: 36, 20139 openInverse_option1: 37, 20140 openInverseChain: 38, 20141 OPEN_INVERSE_CHAIN: 39, 20142 openInverseChain_repetition0: 40, 20143 openInverseChain_option0: 41, 20144 openInverseChain_option1: 42, 20145 inverseAndProgram: 43, 20146 INVERSE: 44, 20147 inverseChain: 45, 20148 inverseChain_option0: 46, 20149 OPEN_ENDBLOCK: 47, 20150 OPEN: 48, 20151 mustache_repetition0: 49, 20152 mustache_option0: 50, 20153 OPEN_UNESCAPED: 51, 20154 mustache_repetition1: 52, 20155 mustache_option1: 53, 20156 CLOSE_UNESCAPED: 54, 20157 OPEN_PARTIAL: 55, 20158 partialName: 56, 20159 partial_repetition0: 57, 20160 partial_option0: 58, 20161 openPartialBlock: 59, 20162 OPEN_PARTIAL_BLOCK: 60, 20163 openPartialBlock_repetition0: 61, 20164 openPartialBlock_option0: 62, 20165 param: 63, 20166 sexpr: 64, 20167 OPEN_SEXPR: 65, 20168 sexpr_repetition0: 66, 20169 sexpr_option0: 67, 20170 CLOSE_SEXPR: 68, 20171 hash: 69, 20172 hash_repetition_plus0: 70, 20173 hashSegment: 71, 20174 ID: 72, 20175 EQUALS: 73, 20176 blockParams: 74, 20177 OPEN_BLOCK_PARAMS: 75, 20178 blockParams_repetition_plus0: 76, 20179 CLOSE_BLOCK_PARAMS: 77, 20180 path: 78, 20181 dataName: 79, 20182 STRING: 80, 20183 NUMBER: 81, 20184 BOOLEAN: 82, 20185 UNDEFINED: 83, 20186 NULL: 84, 20187 DATA: 85, 20188 pathSegments: 86, 20189 SEP: 87, 20190 $accept: 0, 20191 $end: 1 20192 }, 20193 terminals_: { 20194 2: "error", 20195 5: "EOF", 20196 14: "COMMENT", 20197 15: "CONTENT", 20198 18: "END_RAW_BLOCK", 20199 19: "OPEN_RAW_BLOCK", 20200 23: "CLOSE_RAW_BLOCK", 20201 29: "OPEN_BLOCK", 20202 33: "CLOSE", 20203 34: "OPEN_INVERSE", 20204 39: "OPEN_INVERSE_CHAIN", 20205 44: "INVERSE", 20206 47: "OPEN_ENDBLOCK", 20207 48: "OPEN", 20208 51: "OPEN_UNESCAPED", 20209 54: "CLOSE_UNESCAPED", 20210 55: "OPEN_PARTIAL", 20211 60: "OPEN_PARTIAL_BLOCK", 20212 65: "OPEN_SEXPR", 20213 68: "CLOSE_SEXPR", 20214 72: "ID", 20215 73: "EQUALS", 20216 75: "OPEN_BLOCK_PARAMS", 20217 77: "CLOSE_BLOCK_PARAMS", 20218 80: "STRING", 20219 81: "NUMBER", 20220 82: "BOOLEAN", 20221 83: "UNDEFINED", 20222 84: "NULL", 20223 85: "DATA", 20224 87: "SEP" 20225 }, 20226 productions_: [0, [3, 2], [4, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [13, 1], [10, 3], [16, 5], [9, 4], [9, 4], [24, 6], [27, 6], [38, 6], [43, 2], [45, 3], [45, 1], [26, 3], [8, 5], [8, 5], [11, 5], [12, 3], [59, 5], [63, 1], [63, 1], [64, 5], [69, 1], [71, 3], [74, 3], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [56, 1], [56, 1], [79, 2], [78, 1], [86, 3], [86, 1], [6, 0], [6, 2], [17, 0], [17, 2], [21, 0], [21, 2], [22, 0], [22, 1], [25, 0], [25, 1], [28, 0], [28, 1], [30, 0], [30, 2], [31, 0], [31, 1], [32, 0], [32, 1], [35, 0], [35, 2], [36, 0], [36, 1], [37, 0], [37, 1], [40, 0], [40, 2], [41, 0], [41, 1], [42, 0], [42,
vendor: 8,804 bytes, lines 20226-20440
202261], [46, 0], [46, 1], [49, 0], [49, 2], [50, 0], [50, 1], [52, 0], [52, 2], [53, 0], [53, 1], [57, 0], [57, 2], [58, 0], [58, 1], [61, 0], [61, 2], [62, 0], [62, 1], [66, 0], [66, 2], [67, 0], [67, 1], [70, 1], [70, 2], [76, 1], [76, 2]], 20227 performAction: function(a, b, c, d, e, f, g) { 20228 var h = f.length - 1; 20229 switch (e) { 20230 case 1: 20231 return f[h - 1]; 20232 case 2: 20233 this.$ = d.prepareProgram(f[h]); 20234 break; 20235 case 3: 20236 case 4: 20237 case 5: 20238 case 6: 20239 case 7: 20240 case 8: 20241 this.$ = f[h]; 20242 break; 20243 case 9: 20244 this.$ = { 20245 type: "CommentStatement", 20246 value: d.stripComment(f[h]), 20247 strip: d.stripFlags(f[h], f[h]), 20248 loc: d.locInfo(this._$) 20249 }; 20250 break; 20251 case 10: 20252 this.$ = { 20253 type: "ContentStatement", 20254 original: f[h], 20255 value: f[h], 20256 loc: d.locInfo(this._$) 20257 }; 20258 break; 20259 case 11: 20260 this.$ = d.prepareRawBlock(f[h - 2], f[h - 1], f[h], this._$); 20261 break; 20262 case 12: 20263 this.$ = { 20264 path: f[h - 3], 20265 params: f[h - 2], 20266 hash: f[h - 1] 20267 }; 20268 break; 20269 case 13: 20270 this.$ = d.prepareBlock(f[h - 3], f[h - 2], f[h - 1], f[h], !1, this._$); 20271 break; 20272 case 14: 20273 this.$ = d.prepareBlock(f[h - 3], f[h - 2], f[h - 1], f[h], !0, this._$); 20274 break; 20275 case 15: 20276 this.$ = { 20277 open: f[h - 5], 20278 path: f[h - 4], 20279 params: f[h - 3], 20280 hash: f[h - 2], 20281 blockParams: f[h - 1], 20282 strip: d.stripFlags(f[h - 5], f[h]) 20283 }; 20284 break; 20285 case 16: 20286 case 17: 20287 this.$ = { 20288 path: f[h - 4], 20289 params: f[h - 3], 20290 hash: f[h - 2], 20291 blockParams: f[h - 1], 20292 strip: d.stripFlags(f[h - 5], f[h]) 20293 }; 20294 break; 20295 case 18: 20296 this.$ = { 20297 strip: d.stripFlags(f[h - 1], f[h - 1]), 20298 program: f[h] 20299 }; 20300 break; 20301 case 19: 20302 var i = d.prepareBlock(f[h - 2], f[h - 1], f[h], f[h], !1, this._$) 20303 , j = d.prepareProgram([i], f[h - 1].loc); 20304 j.chained = !0, 20305 this.$ = { 20306 strip: f[h - 2].strip, 20307 program: j, 20308 chain: !0 20309 }; 20310 break; 20311 case 20: 20312 this.$ = f[h]; 20313 break; 20314 case 21: 20315 this.$ = { 20316 path: f[h - 1], 20317 strip: d.stripFlags(f[h - 2], f[h]) 20318 }; 20319 break; 20320 case 22: 20321 case 23: 20322 this.$ = d.prepareMustache(f[h - 3], f[h - 2], f[h - 1], f[h - 4], d.stripFlags(f[h - 4], f[h]), this._$); 20323 break; 20324 case 24: 20325 this.$ = { 20326 type: "PartialStatement", 20327 name: f[h - 3], 20328 params: f[h - 2], 20329 hash: f[h - 1], 20330 indent: "", 20331 strip: d.stripFlags(f[h - 4], f[h]), 20332 loc: d.locInfo(this._$) 20333 }; 20334 break; 20335 case 25: 20336 this.$ = d.preparePartialBlock(f[h - 2], f[h - 1], f[h], this._$); 20337 break; 20338 case 26: 20339 this.$ = { 20340 path: f[h - 3], 20341 params: f[h - 2], 20342 hash: f[h - 1], 20343 strip: d.stripFlags(f[h - 4], f[h]) 20344 }; 20345 break; 20346 case 27: 20347 case 28: 20348 this.$ = f[h]; 20349 break; 20350 case 29: 20351 this.$ = { 20352 type: "SubExpression", 20353 path: f[h - 3], 20354 params: f[h - 2], 20355 hash: f[h - 1], 20356 loc: d.locInfo(this._$) 20357 }; 20358 break; 20359 case 30: 20360 this.$ = { 20361 type: "Hash", 20362 pairs: f[h], 20363 loc: d.locInfo(this._$) 20364 }; 20365 break; 20366 case 31: 20367 this.$ = { 20368 type: "HashPair", 20369 key: d.id(f[h - 2]), 20370 value: f[h], 20371 loc: d.locInfo(this._$) 20372 }; 20373 break; 20374 case 32: 20375 this.$ = d.id(f[h - 1]); 20376 break; 20377 case 33: 20378 case 34: 20379 this.$ = f[h]; 20380 break; 20381 case 35: 20382 this.$ = { 20383 type: "StringLiteral", 20384 value: f[h], 20385 original: f[h], 20386 loc: d.locInfo(this._$) 20387 }; 20388 break; 20389 case 36: 20390 this.$ = { 20391 type: "NumberLiteral", 20392 value: Number(f[h]), 20393 original: Number(f[h]), 20394 loc: d.locInfo(this._$) 20395 }; 20396 break; 20397 case 37: 20398 this.$ = { 20399 type: "BooleanLiteral", 20400 value: "true" === f[h], 20401 original: "true" === f[h], 20402 loc: d.locInfo(this._$) 20403 }; 20404 break; 20405 case 38: 20406 this.$ = { 20407 type: "UndefinedLiteral", 20408 original: void 0, 20409 value: void 0, 20410 loc: d.locInfo(this._$) 20411 }; 20412 break; 20413 case 39: 20414 this.$ = { 20415 type: "NullLiteral", 20416 original: null, 20417 value: null, 20418 loc: d.locInfo(this._$) 20419 }; 20420 break; 20421 case 40: 20422 case 41: 20423 this.$ = f[h]; 20424 break; 20425 case 42: 20426 this.$ = d.preparePath(!0, f[h], this._$); 20427 break; 20428 case 43: 20429 this.$ = d.preparePath(!1, f[h], this._$); 20430 break; 20431 case 44: 20432 f[h - 2].push({ 20433 part: d.id(f[h]), 20434 original: f[h], 20435 separator: f[h - 1] 20436 }), 20437 this.$ = f[h - 2]; 20438 break; 20439 case 45: 20440 this.$ = [{
vendor: 13,597 bytes, lines 20441-20874
20441 part: d.id(f[h]), 20442 original: f[h] 20443 }]; 20444 break; 20445 case 46: 20446 this.$ = []; 20447 break; 20448 case 47: 20449 f[h - 1].push(f[h]); 20450 break; 20451 case 48: 20452 this.$ = []; 20453 break; 20454 case 49: 20455 f[h - 1].push(f[h]); 20456 break; 20457 case 50: 20458 this.$ = []; 20459 break; 20460 case 51: 20461 f[h - 1].push(f[h]); 20462 break; 20463 case 58: 20464 this.$ = []; 20465 break; 20466 case 59: 20467 f[h - 1].push(f[h]); 20468 break; 20469 case 64: 20470 this.$ = []; 20471 break; 20472 case 65: 20473 f[h - 1].push(f[h]); 20474 break; 20475 case 70: 20476 this.$ = []; 20477 break; 20478 case 71: 20479 f[h - 1].push(f[h]); 20480 break; 20481 case 78: 20482 this.$ = []; 20483 break; 20484 case 79: 20485 f[h - 1].push(f[h]); 20486 break; 20487 case 82: 20488 this.$ = []; 20489 break; 20490 case 83: 20491 f[h - 1].push(f[h]); 20492 break; 20493 case 86: 20494 this.$ = []; 20495 break; 20496 case 87: 20497 f[h - 1].push(f[h]); 20498 break; 20499 case 90: 20500 this.$ = []; 20501 break; 20502 case 91: 20503 f[h - 1].push(f[h]); 20504 break; 20505 case 94: 20506 this.$ = []; 20507 break; 20508 case 95: 20509 f[h - 1].push(f[h]); 20510 break; 20511 case 98: 20512 this.$ = [f[h]]; 20513 break; 20514 case 99: 20515 f[h - 1].push(f[h]); 20516 break; 20517 case 100: 20518 this.$ = [f[h]]; 20519 break; 20520 case 101: 20521 f[h - 1].push(f[h]) 20522 } 20523 }, 20524 table: [{ 20525 3: 1, 20526 4: 2, 20527 5: [2, 46], 20528 6: 3, 20529 14: [2, 46], 20530 15: [2, 46], 20531 19: [2, 46], 20532 29: [2, 46], 20533 34: [2, 46], 20534 48: [2, 46], 20535 51: [2, 46], 20536 55: [2, 46], 20537 60: [2, 46] 20538 }, { 20539 1: [3] 20540 }, { 20541 5: [1, 4] 20542 }, { 20543 5: [2, 2], 20544 7: 5, 20545 8: 6, 20546 9: 7, 20547 10: 8, 20548 11: 9, 20549 12: 10, 20550 13: 11, 20551 14: [1, 12], 20552 15: [1, 20], 20553 16: 17, 20554 19: [1, 23], 20555 24: 15, 20556 27: 16, 20557 29: [1, 21], 20558 34: [1, 22], 20559 39: [2, 2], 20560 44: [2, 2], 20561 47: [2, 2], 20562 48: [1, 13], 20563 51: [1, 14], 20564 55: [1, 18], 20565 59: 19, 20566 60: [1, 24] 20567 }, { 20568 1: [2, 1] 20569 }, { 20570 5: [2, 47], 20571 14: [2, 47], 20572 15: [2, 47], 20573 19: [2, 47], 20574 29: [2, 47], 20575 34: [2, 47], 20576 39: [2, 47], 20577 44: [2, 47], 20578 47: [2, 47], 20579 48: [2, 47], 20580 51: [2, 47], 20581 55: [2, 47], 20582 60: [2, 47] 20583 }, { 20584 5: [2, 3], 20585 14: [2, 3], 20586 15: [2, 3], 20587 19: [2, 3], 20588 29: [2, 3], 20589 34: [2, 3], 20590 39: [2, 3], 20591 44: [2, 3], 20592 47: [2, 3], 20593 48: [2, 3], 20594 51: [2, 3], 20595 55: [2, 3], 20596 60: [2, 3] 20597 }, { 20598 5: [2, 4], 20599 14: [2, 4], 20600 15: [2, 4], 20601 19: [2, 4], 20602 29: [2, 4], 20603 34: [2, 4], 20604 39: [2, 4], 20605 44: [2, 4], 20606 47: [2, 4], 20607 48: [2, 4], 20608 51: [2, 4], 20609 55: [2, 4], 20610 60: [2, 4] 20611 }, { 20612 5: [2, 5], 20613 14: [2, 5], 20614 15: [2, 5], 20615 19: [2, 5], 20616 29: [2, 5], 20617 34: [2, 5], 20618 39: [2, 5], 20619 44: [2, 5], 20620 47: [2, 5], 20621 48: [2, 5], 20622 51: [2, 5], 20623 55: [2, 5], 20624 60: [2, 5] 20625 }, { 20626 5: [2, 6], 20627 14: [2, 6], 20628 15: [2, 6], 20629 19: [2, 6], 20630 29: [2, 6], 20631 34: [2, 6], 20632 39: [2, 6], 20633 44: [2, 6], 20634 47: [2, 6], 20635 48: [2, 6], 20636 51: [2, 6], 20637 55: [2, 6], 20638 60: [2, 6] 20639 }, { 20640 5: [2, 7], 20641 14: [2, 7], 20642 15: [2, 7], 20643 19: [2, 7], 20644 29: [2, 7], 20645 34: [2, 7], 20646 39: [2, 7], 20647 44: [2, 7], 20648 47: [2, 7], 20649 48: [2, 7], 20650 51: [2, 7], 20651 55: [2, 7], 20652 60: [2, 7] 20653 }, { 20654 5: [2, 8], 20655 14: [2, 8], 20656 15: [2, 8], 20657 19: [2, 8], 20658 29: [2, 8], 20659 34: [2, 8], 20660 39: [2, 8], 20661 44: [2, 8], 20662 47: [2, 8], 20663 48: [2, 8], 20664 51: [2, 8], 20665 55: [2, 8], 20666 60: [2, 8] 20667 }, { 20668 5: [2, 9], 20669 14: [2, 9], 20670 15: [2, 9], 20671 19: [2, 9], 20672 29: [2, 9], 20673 34: [2, 9], 20674 39: [2, 9], 20675 44: [2, 9], 20676 47: [2, 9], 20677 48: [2, 9], 20678 51: [2, 9], 20679 55: [2, 9], 20680 60: [2, 9] 20681 }, { 20682 20: 25, 20683 72: [1, 35], 20684 78: 26, 20685 79: 27, 20686 80: [1, 28], 20687 81: [1, 29], 20688 82: [1, 30], 20689 83: [1, 31], 20690 84: [1, 32], 20691 85: [1, 34], 20692 86: 33 20693 }, { 20694 20: 36, 20695 72: [1, 35], 20696 78: 26, 20697 79: 27, 20698 80: [1, 28], 20699 81: [1, 29], 20700 82: [1, 30], 20701 83: [1, 31], 20702 84: [1, 32], 20703 85: [1, 34], 20704 86: 33 20705 }, { 20706 4: 37, 20707 6: 3, 20708 14: [2, 46], 20709 15: [2, 46], 20710 19: [2, 46], 20711 29: [2, 46], 20712 34: [2, 46], 20713 39: [2, 46], 20714 44: [2, 46], 20715 47: [2, 46], 20716 48: [2, 46], 20717 51: [2, 46], 20718 55: [2, 46], 20719 60: [2, 46] 20720 }, { 20721 4: 38, 20722 6: 3, 20723 14: [2, 46], 20724 15: [2, 46], 20725 19: [2, 46], 20726 29: [2, 46], 20727 34: [2, 46], 20728 44: [2, 46], 20729 47: [2, 46], 20730 48: [2, 46], 20731 51: [2, 46], 20732 55: [2, 46], 20733 60: [2, 46] 20734 }, { 20735 15: [2, 48], 20736 17: 39, 20737 18: [2, 48] 20738 }, { 20739 20: 41, 20740 56: 40, 20741 64: 42, 20742 65: [1, 43], 20743 72: [1, 35], 20744 78: 26, 20745 79: 27, 20746 80: [1, 28], 20747 81: [1, 29], 20748 82: [1, 30], 20749 83: [1, 31], 20750 84: [1, 32], 20751 85: [1, 34], 20752 86: 33 20753 }, { 20754 4: 44, 20755 6: 3, 20756 14: [2, 46], 20757 15: [2, 46], 20758 19: [2, 46], 20759 29: [2, 46], 20760 34: [2, 46], 20761 47: [2, 46], 20762 48: [2, 46], 20763 51: [2, 46], 20764 55: [2, 46], 20765 60: [2, 46] 20766 }, { 20767 5: [2, 10], 20768 14: [2, 10], 20769 15: [2, 10], 20770 18: [2, 10], 20771 19: [2, 10], 20772 29: [2, 10], 20773 34: [2, 10], 20774 39: [2, 10], 20775 44: [2, 10], 20776 47: [2, 10], 20777 48: [2, 10], 20778 51: [2, 10], 20779 55: [2, 10], 20780 60: [2, 10] 20781 }, { 20782 20: 45, 20783 72: [1, 35], 20784 78: 26, 20785 79: 27, 20786 80: [1, 28], 20787 81: [1, 29], 20788 82: [1, 30], 20789 83: [1, 31], 20790 84: [1, 32], 20791 85: [1, 34], 20792 86: 33 20793 }, { 20794 20: 46, 20795 72: [1, 35], 20796 78: 26, 20797 79: 27, 20798 80: [1, 28], 20799 81: [1, 29], 20800 82: [1, 30], 20801 83: [1, 31], 20802 84: [1, 32], 20803 85: [1, 34], 20804 86: 33 20805 }, { 20806 20: 47, 20807 72: [1, 35], 20808 78: 26, 20809 79: 27, 20810 80: [1, 28], 20811 81: [1, 29], 20812 82: [1, 30], 20813 83: [1, 31], 20814 84: [1, 32], 20815 85: [1, 34], 20816 86: 33 20817 }, { 20818 20: 41, 20819 56: 48, 20820 64: 42, 20821 65: [1, 43], 20822 72: [1, 35], 20823 78: 26, 20824 79: 27, 20825 80: [1, 28], 20826 81: [1, 29], 20827 82: [1, 30], 20828 83: [1, 31], 20829 84: [1, 32], 20830 85: [1, 34], 20831 86: 33 20832 }, { 20833 33: [2, 78], 20834 49: 49, 20835 65: [2, 78], 20836 72: [2, 78], 20837 80: [2, 78], 20838 81: [2, 78], 20839 82: [2, 78], 20840 83: [2, 78], 20841 84: [2, 78], 20842 85: [2, 78] 20843 }, { 20844 23: [2, 33], 20845 33: [2, 33], 20846 54: [2, 33], 20847 65: [2, 33], 20848 68: [2, 33], 20849 72: [2, 33], 20850 75: [2, 33], 20851 80: [2, 33], 20852 81: [2, 33], 20853 82: [2, 33], 20854 83: [2, 33], 20855 84: [2, 33], 20856 85: [2, 33] 20857 }, { 20858 23: [2, 34], 20859 33: [2, 34], 20860 54: [2, 34], 20861 65: [2, 34], 20862 68: [2, 34], 20863 72: [2, 34], 20864 75: [2, 34], 20865 80: [2, 34], 20866 81: [2, 34], 20867 82: [2, 34], 20868 83: [2, 34], 20869 84: [2, 34], 20870 85: [2, 34] 20871 }, { 20872 23: [2, 35], 20873 33: [2, 35], 20874 54: [2, 35],
vendor: 16,384 bytes, lines 20875-21406
20875 65: [2, 35], 20876 68: [2, 35], 20877 72: [2, 35], 20878 75: [2, 35], 20879 80: [2, 35], 20880 81: [2, 35], 20881 82: [2, 35], 20882 83: [2, 35], 20883 84: [2, 35], 20884 85: [2, 35] 20885 }, { 20886 23: [2, 36], 20887 33: [2, 36], 20888 54: [2, 36], 20889 65: [2, 36], 20890 68: [2, 36], 20891 72: [2, 36], 20892 75: [2, 36], 20893 80: [2, 36], 20894 81: [2, 36], 20895 82: [2, 36], 20896 83: [2, 36], 20897 84: [2, 36], 20898 85: [2, 36] 20899 }, { 20900 23: [2, 37], 20901 33: [2, 37], 20902 54: [2, 37], 20903 65: [2, 37], 20904 68: [2, 37], 20905 72: [2, 37], 20906 75: [2, 37], 20907 80: [2, 37], 20908 81: [2, 37], 20909 82: [2, 37], 20910 83: [2, 37], 20911 84: [2, 37], 20912 85: [2, 37] 20913 }, { 20914 23: [2, 38], 20915 33: [2, 38], 20916 54: [2, 38], 20917 65: [2, 38], 20918 68: [2, 38], 20919 72: [2, 38], 20920 75: [2, 38], 20921 80: [2, 38], 20922 81: [2, 38], 20923 82: [2, 38], 20924 83: [2, 38], 20925 84: [2, 38], 20926 85: [2, 38] 20927 }, { 20928 23: [2, 39], 20929 33: [2, 39], 20930 54: [2, 39], 20931 65: [2, 39], 20932 68: [2, 39], 20933 72: [2, 39], 20934 75: [2, 39], 20935 80: [2, 39], 20936 81: [2, 39], 20937 82: [2, 39], 20938 83: [2, 39], 20939 84: [2, 39], 20940 85: [2, 39] 20941 }, { 20942 23: [2, 43], 20943 33: [2, 43], 20944 54: [2, 43], 20945 65: [2, 43], 20946 68: [2, 43], 20947 72: [2, 43], 20948 75: [2, 43], 20949 80: [2, 43], 20950 81: [2, 43], 20951 82: [2, 43], 20952 83: [2, 43], 20953 84: [2, 43], 20954 85: [2, 43], 20955 87: [1, 50] 20956 }, { 20957 72: [1, 35], 20958 86: 51 20959 }, { 20960 23: [2, 45], 20961 33: [2, 45], 20962 54: [2, 45], 20963 65: [2, 45], 20964 68: [2, 45], 20965 72: [2, 45], 20966 75: [2, 45], 20967 80: [2, 45], 20968 81: [2, 45], 20969 82: [2, 45], 20970 83: [2, 45], 20971 84: [2, 45], 20972 85: [2, 45], 20973 87: [2, 45] 20974 }, { 20975 52: 52, 20976 54: [2, 82], 20977 65: [2, 82], 20978 72: [2, 82], 20979 80: [2, 82], 20980 81: [2, 82], 20981 82: [2, 82], 20982 83: [2, 82], 20983 84: [2, 82], 20984 85: [2, 82] 20985 }, { 20986 25: 53, 20987 38: 55, 20988 39: [1, 57], 20989 43: 56, 20990 44: [1, 58], 20991 45: 54, 20992 47: [2, 54] 20993 }, { 20994 28: 59, 20995 43: 60, 20996 44: [1, 58], 20997 47: [2, 56] 20998 }, { 20999 13: 62, 21000 15: [1, 20], 21001 18: [1, 61] 21002 }, { 21003 33: [2, 86], 21004 57: 63, 21005 65: [2, 86], 21006 72: [2, 86], 21007 80: [2, 86], 21008 81: [2, 86], 21009 82: [2, 86], 21010 83: [2, 86], 21011 84: [2, 86], 21012 85: [2, 86] 21013 }, { 21014 33: [2, 40], 21015 65: [2, 40], 21016 72: [2, 40], 21017 80: [2, 40], 21018 81: [2, 40], 21019 82: [2, 40], 21020 83: [2, 40], 21021 84: [2, 40], 21022 85: [2, 40] 21023 }, { 21024 33: [2, 41], 21025 65: [2, 41], 21026 72: [2, 41], 21027 80: [2, 41], 21028 81: [2, 41], 21029 82: [2, 41], 21030 83: [2, 41], 21031 84: [2, 41], 21032 85: [2, 41] 21033 }, { 21034 20: 64, 21035 72: [1, 35], 21036 78: 26, 21037 79: 27, 21038 80: [1, 28], 21039 81: [1, 29], 21040 82: [1, 30], 21041 83: [1, 31], 21042 84: [1, 32], 21043 85: [1, 34], 21044 86: 33 21045 }, { 21046 26: 65, 21047 47: [1, 66] 21048 }, { 21049 30: 67, 21050 33: [2, 58], 21051 65: [2, 58], 21052 72: [2, 58], 21053 75: [2, 58], 21054 80: [2, 58], 21055 81: [2, 58], 21056 82: [2, 58], 21057 83: [2, 58], 21058 84: [2, 58], 21059 85: [2, 58] 21060 }, { 21061 33: [2, 64], 21062 35: 68, 21063 65: [2, 64], 21064 72: [2, 64], 21065 75: [2, 64], 21066 80: [2, 64], 21067 81: [2, 64], 21068 82: [2, 64], 21069 83: [2, 64], 21070 84: [2, 64], 21071 85: [2, 64] 21072 }, { 21073 21: 69, 21074 23: [2, 50], 21075 65: [2, 50], 21076 72: [2, 50], 21077 80: [2, 50], 21078 81: [2, 50], 21079 82: [2, 50], 21080 83: [2, 50], 21081 84: [2, 50], 21082 85: [2, 50] 21083 }, { 21084 33: [2, 90], 21085 61: 70, 21086 65: [2, 90], 21087 72: [2, 90], 21088 80: [2, 90], 21089 81: [2, 90], 21090 82: [2, 90], 21091 83: [2, 90], 21092 84: [2, 90], 21093 85: [2, 90] 21094 }, { 21095 20: 74, 21096 33: [2, 80], 21097 50: 71, 21098 63: 72, 21099 64: 75, 21100 65: [1, 43], 21101 69: 73, 21102 70: 76, 21103 71: 77, 21104 72: [1, 78], 21105 78: 26, 21106 79: 27, 21107 80: [1, 28], 21108 81: [1, 29], 21109 82: [1, 30], 21110 83: [1, 31], 21111 84: [1, 32], 21112 85: [1, 34], 21113 86: 33 21114 }, { 21115 72: [1, 79] 21116 }, { 21117 23: [2, 42], 21118 33: [2, 42], 21119 54: [2, 42], 21120 65: [2, 42], 21121 68: [2, 42], 21122 72: [2, 42], 21123 75: [2, 42], 21124 80: [2, 42], 21125 81: [2, 42], 21126 82: [2, 42], 21127 83: [2, 42], 21128 84: [2, 42], 21129 85: [2, 42], 21130 87: [1, 50] 21131 }, { 21132 20: 74, 21133 53: 80, 21134 54: [2, 84], 21135 63: 81, 21136 64: 75, 21137 65: [1, 43], 21138 69: 82, 21139 70: 76, 21140 71: 77, 21141 72: [1, 78], 21142 78: 26, 21143 79: 27, 21144 80: [1, 28], 21145 81: [1, 29], 21146 82: [1, 30], 21147 83: [1, 31], 21148 84: [1, 32], 21149 85: [1, 34], 21150 86: 33 21151 }, { 21152 26: 83, 21153 47: [1, 66] 21154 }, { 21155 47: [2, 55] 21156 }, { 21157 4: 84, 21158 6: 3, 21159 14: [2, 46], 21160 15: [2, 46], 21161 19: [2, 46], 21162 29: [2, 46], 21163 34: [2, 46], 21164 39: [2, 46], 21165 44: [2, 46], 21166 47: [2, 46], 21167 48: [2, 46], 21168 51: [2, 46], 21169 55: [2, 46], 21170 60: [2, 46] 21171 }, { 21172 47: [2, 20] 21173 }, { 21174 20: 85, 21175 72: [1, 35], 21176 78: 26, 21177 79: 27, 21178 80: [1, 28], 21179 81: [1, 29], 21180 82: [1, 30], 21181 83: [1, 31], 21182 84: [1, 32], 21183 85: [1, 34], 21184 86: 33 21185 }, { 21186 4: 86, 21187 6: 3, 21188 14: [2, 46], 21189 15: [2, 46], 21190 19: [2, 46], 21191 29: [2, 46], 21192 34: [2, 46], 21193 47: [2, 46], 21194 48: [2, 46], 21195 51: [2, 46], 21196 55: [2, 46], 21197 60: [2, 46] 21198 }, { 21199 26: 87, 21200 47: [1, 66] 21201 }, { 21202 47: [2, 57] 21203 }, { 21204 5: [2, 11], 21205 14: [2, 11], 21206 15: [2, 11], 21207 19: [2, 11], 21208 29: [2, 11], 21209 34: [2, 11], 21210 39: [2, 11], 21211 44: [2, 11], 21212 47: [2, 11], 21213 48: [2, 11], 21214 51: [2, 11], 21215 55: [2, 11], 21216 60: [2, 11] 21217 }, { 21218 15: [2, 49], 21219 18: [2, 49] 21220 }, { 21221 20: 74, 21222 33: [2, 88], 21223 58: 88, 21224 63: 89, 21225 64: 75, 21226 65: [1, 43], 21227 69: 90, 21228 70: 76, 21229 71: 77, 21230 72: [1, 78], 21231 78: 26, 21232 79: 27, 21233 80: [1, 28], 21234 81: [1, 29], 21235 82: [1, 30], 21236 83: [1, 31], 21237 84: [1, 32], 21238 85: [1, 34], 21239 86: 33 21240 }, { 21241 65: [2, 94], 21242 66: 91, 21243 68: [2, 94], 21244 72: [2, 94], 21245 80: [2, 94], 21246 81: [2, 94], 21247 82: [2, 94], 21248 83: [2, 94], 21249 84: [2, 94], 21250 85: [2, 94] 21251 }, { 21252 5: [2, 25], 21253 14: [2, 25], 21254 15: [2, 25], 21255 19: [2, 25], 21256 29: [2, 25], 21257 34: [2, 25], 21258 39: [2, 25], 21259 44: [2, 25], 21260 47: [2, 25], 21261 48: [2, 25], 21262 51: [2, 25], 21263 55: [2, 25], 21264 60: [2, 25] 21265 }, { 21266 20: 92, 21267 72: [1, 35], 21268 78: 26, 21269 79: 27, 21270 80: [1, 28], 21271 81: [1, 29], 21272 82: [1, 30], 21273 83: [1, 31], 21274 84: [1, 32], 21275 85: [1, 34], 21276 86: 33 21277 }, { 21278 20: 74, 21279 31: 93, 21280 33: [2, 60], 21281 63: 94, 21282 64: 75, 21283 65: [1, 43], 21284 69: 95, 21285 70: 76, 21286 71: 77, 21287 72: [1, 78], 21288 75: [2, 60], 21289 78: 26, 21290 79: 27, 21291 80: [1, 28], 21292 81: [1, 29], 21293 82: [1, 30], 21294 83: [1, 31], 21295 84: [1, 32], 21296 85: [1, 34], 21297 86: 33 21298 }, { 21299 20: 74, 21300 33: [2, 66], 21301 36: 96, 21302 63: 97, 21303 64: 75, 21304 65: [1, 43], 21305 69: 98, 21306 70: 76, 21307 71: 77, 21308 72: [1, 78], 21309 75: [2, 66], 21310 78: 26, 21311 79: 27, 21312 80: [1, 28], 21313 81: [1, 29], 21314 82: [1, 30], 21315 83: [1, 31], 21316 84: [1, 32], 21317 85: [1, 34], 21318 86: 33 21319 }, { 21320 20: 74, 21321 22: 99, 21322 23: [2, 52], 21323 63: 100, 21324 64: 75, 21325 65: [1, 43], 21326 69: 101, 21327 70: 76, 21328 71: 77, 21329 72: [1, 78], 21330 78: 26, 21331 79: 27, 21332 80: [1, 28], 21333 81: [1, 29], 21334 82: [1, 30], 21335 83: [1, 31], 21336 84: [1, 32], 21337 85: [1, 34], 21338 86: 33 21339 }, { 21340 20: 74, 21341 33: [2, 92], 21342 62: 102, 21343 63: 103, 21344 64: 75, 21345 65: [1, 43], 21346 69: 104, 21347 70: 76, 21348 71: 77, 21349 72: [1, 78], 21350 78: 26, 21351 79: 27, 21352 80: [1, 28], 21353 81: [1, 29], 21354 82: [1, 30], 21355 83: [1, 31], 21356 84: [1, 32], 21357 85: [1, 34], 21358 86: 33 21359 }, { 21360 33: [1, 105] 21361 }, { 21362 33: [2, 79], 21363 65: [2, 79], 21364 72: [2, 79], 21365 80: [2, 79], 21366 81: [2, 79], 21367 82: [2, 79], 21368 83: [2, 79], 21369 84: [2, 79], 21370 85: [2, 79] 21371 }, { 21372 33: [2, 81] 21373 }, { 21374 23: [2, 27], 21375 33: [2, 27], 21376 54: [2, 27], 21377 65: [2, 27], 21378 68: [2, 27], 21379 72: [2, 27], 21380 75: [2, 27], 21381 80: [2, 27], 21382 81: [2, 27], 21383 82: [2, 27], 21384 83: [2, 27], 21385 84: [2, 27], 21386 85: [2, 27] 21387 }, { 21388 23: [2, 28], 21389 33: [2, 28], 21390 54: [2, 28], 21391 65: [2, 28], 21392 68: [2, 28], 21393 72: [2, 28], 21394 75: [2, 28], 21395 80: [2, 28], 21396 81: [2, 28], 21397 82: [2, 28], 21398 83: [2, 28], 21399 84: [2, 28], 21400 85: [2, 28] 21401 }, { 21402 23: [2, 30], 21403 33: [2, 30], 21404 54: [2, 30], 21405 68: [2, 30], 21406
21406 71: 106, 21407 72: [1, 107], 21408 75: [2, 30] 21409 }, { 21410 23: [2, 98], 21411 33: [2, 98], 21412 54: [2, 98], 21413 68: [2, 98], 21414 72: [2, 98], 21415 75: [2, 98] 21416 }, { 21417 23: [2, 45], 21418 33: [2, 45], 21419 54: [2, 45], 21420 65: [2, 45], 21421 68: [2, 45], 21422 72: [2, 45], 21423 73: [1, 108], 21424 75: [2, 45], 21425 80: [2, 45], 21426 81: [2, 45], 21427 82: [2, 45], 21428 83: [2, 45], 21429 84: [2, 45], 21430 85: [2, 45], 21431 87: [2, 45] 21432 }, { 21433 23: [2, 44], 21434 33: [2, 44], 21435 54: [2, 44], 21436 65: [2, 44], 21437 68: [2, 44], 21438 72: [2, 44], 21439 75: [2, 44], 21440 80: [2, 44], 21441 81: [2, 44], 21442 82: [2, 44], 21443 83: [2, 44], 21444 84: [2, 44], 21445 85: [2, 44], 21446 87: [2, 44] 21447 }, { 21448 54: [1, 109] 21449 }, { 21450 54: [2, 83], 21451 65: [2, 83], 21452 72: [2, 83], 21453 80: [2, 83], 21454 81: [2, 83], 21455 82: [2, 83], 21456 83: [2, 83], 21457 84: [2, 83], 21458 85: [2, 83] 21459 }, { 21460 54: [2, 85] 21461 }, { 21462 5: [2, 13], 21463 14: [2, 13], 21464 15: [2, 13], 21465 19: [2, 13], 21466 29: [2, 13], 21467 34: [2, 13], 21468 39: [2, 13], 21469 44: [2, 13], 21470 47: [2, 13], 21471 48: [2, 13], 21472 51: [2, 13], 21473 55: [2, 13], 21474 60: [2, 13] 21475 }, { 21476 38: 55, 21477 39: [1, 57], 21478 43: 56, 21479 44: [1, 58], 21480 45: 111, 21481 46: 110, 21482 47: [2, 76] 21483 }, { 21484 33: [2, 70], 21485 40: 112, 21486 65: [2, 70], 21487 72: [2, 70], 21488 75: [2, 70], 21489 80: [2, 70], 21490 81: [2, 70], 21491 82: [2, 70], 21492 83: [2, 70], 21493 84: [2, 70], 21494 85: [2, 70] 21495 }, { 21496 47: [2, 18] 21497 }, { 21498 5: [2, 14], 21499 14: [2, 14], 21500 15: [2, 14], 21501 19: [2, 14], 21502 29: [2, 14], 21503 34: [2, 14], 21504 39: [2, 14], 21505 44: [2, 14], 21506 47: [2, 14], 21507 48: [2, 14], 21508 51: [2, 14], 21509 55: [2, 14], 21510 60: [2, 14] 21511 }, { 21512 33: [1, 113] 21513 }, { 21514 33: [2, 87], 21515 65: [2, 87], 21516 72: [2, 87], 21517 80: [2, 87], 21518 81: [2, 87], 21519 82: [2, 87], 21520 83: [2, 87], 21521 84: [2, 87], 21522 85: [2, 87] 21523 }, { 21524 33: [2, 89] 21525 }, { 21526 20: 74, 21527 63: 115, 21528 64: 75, 21529 65: [1, 43], 21530 67: 114, 21531 68: [2, 96], 21532 69: 116, 21533 70: 76, 21534 71: 77, 21535 72: [1, 78], 21536 78: 26, 21537 79: 27, 21538 80: [1, 28], 21539 81: [1, 29], 21540 82: [1, 30], 21541 83: [1, 31], 21542 84: [1, 32], 21543 85: [1, 34], 21544 86: 33 21545 }, {
vendor: 9,795 bytes, lines 21546-21863
21546 33: [1, 117] 21547 }, { 21548 32: 118, 21549 33: [2, 62], 21550 74: 119, 21551 75: [1, 120] 21552 }, { 21553 33: [2, 59], 21554 65: [2, 59], 21555 72: [2, 59], 21556 75: [2, 59], 21557 80: [2, 59], 21558 81: [2, 59], 21559 82: [2, 59], 21560 83: [2, 59], 21561 84: [2, 59], 21562 85: [2, 59] 21563 }, { 21564 33: [2, 61], 21565 75: [2, 61] 21566 }, { 21567 33: [2, 68], 21568 37: 121, 21569 74: 122, 21570 75: [1, 120] 21571 }, { 21572 33: [2, 65], 21573 65: [2, 65], 21574 72: [2, 65], 21575 75: [2, 65], 21576 80: [2, 65], 21577 81: [2, 65], 21578 82: [2, 65], 21579 83: [2, 65], 21580 84: [2, 65], 21581 85: [2, 65] 21582 }, { 21583 33: [2, 67], 21584 75: [2, 67] 21585 }, { 21586 23: [1, 123] 21587 }, { 21588 23: [2, 51], 21589 65: [2, 51], 21590 72: [2, 51], 21591 80: [2, 51], 21592 81: [2, 51], 21593 82: [2, 51], 21594 83: [2, 51], 21595 84: [2, 51], 21596 85: [2, 51] 21597 }, { 21598 23: [2, 53] 21599 }, { 21600 33: [1, 124] 21601 }, { 21602 33: [2, 91], 21603 65: [2, 91], 21604 72: [2, 91], 21605 80: [2, 91], 21606 81: [2, 91], 21607 82: [2, 91], 21608 83: [2, 91], 21609 84: [2, 91], 21610 85: [2, 91] 21611 }, { 21612 33: [2, 93] 21613 }, { 21614 5: [2, 22], 21615 14: [2, 22], 21616 15: [2, 22], 21617 19: [2, 22], 21618 29: [2, 22], 21619 34: [2, 22], 21620 39: [2, 22], 21621 44: [2, 22], 21622 47: [2, 22], 21623 48: [2, 22], 21624 51: [2, 22], 21625 55: [2, 22], 21626 60: [2, 22] 21627 }, { 21628 23: [2, 99], 21629 33: [2, 99], 21630 54: [2, 99], 21631 68: [2, 99], 21632 72: [2, 99], 21633 75: [2, 99] 21634 }, { 21635 73: [1, 108] 21636 }, { 21637 20: 74, 21638 63: 125, 21639 64: 75, 21640 65: [1, 43], 21641 72: [1, 35], 21642 78: 26, 21643 79: 27, 21644 80: [1, 28], 21645 81: [1, 29], 21646 82: [1, 30], 21647 83: [1, 31], 21648 84: [1, 32], 21649 85: [1, 34], 21650 86: 33 21651 }, { 21652 5: [2, 23], 21653 14: [2, 23], 21654 15: [2, 23], 21655 19: [2, 23], 21656 29: [2, 23], 21657 34: [2, 23], 21658 39: [2, 23], 21659 44: [2, 23], 21660 47: [2, 23], 21661 48: [2, 23], 21662 51: [2, 23], 21663 55: [2, 23], 21664 60: [2, 23] 21665 }, { 21666 47: [2, 19] 21667 }, { 21668 47: [2, 77] 21669 }, { 21670 20: 74, 21671 33: [2, 72], 21672 41: 126, 21673 63: 127, 21674 64: 75, 21675 65: [1, 43], 21676 69: 128, 21677 70: 76, 21678 71: 77, 21679 72: [1, 78], 21680 75: [2, 72], 21681 78: 26, 21682 79: 27, 21683 80: [1, 28], 21684 81: [1, 29], 21685 82: [1, 30], 21686 83: [1, 31], 21687 84: [1, 32], 21688 85: [1, 34], 21689 86: 33 21690 }, { 21691 5: [2, 24], 21692 14: [2, 24], 21693 15: [2, 24], 21694 19: [2, 24], 21695 29: [2, 24], 21696 34: [2, 24], 21697 39: [2, 24], 21698 44: [2, 24], 21699 47: [2, 24], 21700 48: [2, 24], 21701 51: [2, 24], 21702 55: [2, 24], 21703 60: [2, 24] 21704 }, { 21705 68: [1, 129] 21706 }, { 21707 65: [2, 95], 21708 68: [2, 95], 21709 72: [2, 95], 21710 80: [2, 95], 21711 81: [2, 95], 21712 82: [2, 95], 21713 83: [2, 95], 21714 84: [2, 95], 21715 85: [2, 95] 21716 }, { 21717 68: [2, 97] 21718 }, { 21719 5: [2, 21], 21720 14: [2, 21], 21721 15: [2, 21], 21722 19: [2, 21], 21723 29: [2, 21], 21724 34: [2, 21], 21725 39: [2, 21], 21726 44: [2, 21], 21727 47: [2, 21], 21728 48: [2, 21], 21729 51: [2, 21], 21730 55: [2, 21], 21731 60: [2, 21] 21732 }, { 21733 33: [1, 130] 21734 }, { 21735 33: [2, 63] 21736 }, { 21737 72: [1, 132], 21738 76: 131 21739 }, { 21740 33: [1, 133] 21741 }, { 21742 33: [2, 69] 21743 }, { 21744 15: [2, 12], 21745 18: [2, 12] 21746 }, { 21747 14: [2, 26], 21748 15: [2, 26], 21749 19: [2, 26], 21750 29: [2, 26], 21751 34: [2, 26], 21752 47: [2, 26], 21753 48: [2, 26], 21754 51: [2, 26], 21755 55: [2, 26], 21756 60: [2, 26] 21757 }, { 21758 23: [2, 31], 21759 33: [2, 31], 21760 54: [2, 31], 21761 68: [2, 31], 21762 72: [2, 31], 21763 75: [2, 31] 21764 }, { 21765 33: [2, 74], 21766 42: 134, 21767 74: 135, 21768 75: [1, 120] 21769 }, { 21770 33: [2, 71], 21771 65: [2, 71], 21772 72: [2, 71], 21773 75: [2, 71], 21774 80: [2, 71], 21775 81: [2, 71], 21776 82: [2, 71], 21777 83: [2, 71], 21778 84: [2, 71], 21779 85: [2, 71] 21780 }, { 21781 33: [2, 73], 21782 75: [2, 73] 21783 }, { 21784 23: [2, 29], 21785 33: [2, 29], 21786 54: [2, 29], 21787 65: [2, 29], 21788 68: [2, 29], 21789 72: [2, 29], 21790 75: [2, 29], 21791 80: [2, 29], 21792 81: [2, 29], 21793 82: [2, 29], 21794 83: [2, 29], 21795 84: [2, 29], 21796 85: [2, 29] 21797 }, { 21798 14: [2, 15], 21799 15: [2, 15], 21800 19: [2, 15], 21801 29: [2, 15], 21802 34: [2, 15], 21803 39: [2, 15], 21804 44: [2, 15], 21805 47: [2, 15], 21806 48: [2, 15], 21807 51: [2, 15], 21808 55: [2, 15], 21809 60: [2, 15] 21810 }, { 21811 72: [1, 137], 21812 77: [1, 136] 21813 }, { 21814 72: [2, 100], 21815 77: [2, 100] 21816 }, { 21817 14: [2, 16], 21818 15: [2, 16], 21819 19: [2, 16], 21820 29: [2, 16], 21821 34: [2, 16], 21822 44: [2, 16], 21823 47: [2, 16], 21824 48: [2, 16], 21825 51: [2, 16], 21826 55: [2, 16], 21827 60: [2, 16] 21828 }, { 21829 33: [1, 138] 21830 }, { 21831 33: [2, 75] 21832 }, { 21833 33: [2, 32] 21834 }, { 21835 72: [2, 101], 21836 77: [2, 101] 21837 }, { 21838 14: [2, 17], 21839 15: [2, 17], 21840 19: [2, 17], 21841 29: [2, 17], 21842 34: [2, 17], 21843 39: [2, 17], 21844 44: [2, 17], 21845 47: [2, 17], 21846 48: [2, 17], 21847 51: [2, 17], 21848 55: [2, 17], 21849 60: [2, 17] 21850 }], 21851 defaultActions: { 21852 4: [2, 1], 21853 54: [2, 55], 21854 56: [2, 20], 21855 60: [2, 57], 21856 73: [2, 81], 21857 82: [2, 85], 21858 86: [2, 18], 21859 90: [2, 89], 21860 101: [2, 53], 21861 104: [2, 93], 21862 110: [2, 19], 21863 111: [2, 77],
vendor: 16,384 bytes, lines 21864-22213
21864 116: [2, 97], 21865 119: [2, 63], 21866 122: [2, 69], 21867 135: [2, 75], 21868 136: [2, 32] 21869 }, 21870 parseError: function(a, b) { 21871 throw new Error(a) 21872 }, 21873 parse: function(a) { 21874 function b() { 21875 var a; 21876 return a = c.lexer.lex() || 1, 21877 "number" != typeof a && (a = c.symbols_[a] || a), 21878 a 21879 } 21880 var c = this 21881 , d = [0] 21882 , e = [null] 21883 , f = [] 21884 , g = this.table 21885 , h = "" 21886 , i = 0 21887 , j = 0 21888 , k = 0; 21889 this.lexer.setInput(a), 21890 this.lexer.yy = this.yy, 21891 this.yy.lexer = this.lexer, 21892 this.yy.parser = this, 21893 void 0 === this.lexer.yylloc && (this.lexer.yylloc = {}); 21894 var l = this.lexer.yylloc; 21895 f.push(l); 21896 var m = this.lexer.options && this.lexer.options.ranges; 21897 "function" == typeof this.yy.parseError && (this.parseError = this.yy.parseError); 21898 for (var n, o, p, q, r, s, t, u, v, w = {}; ; ) { 21899 if (p = d[d.length - 1], 21900 this.defaultActions[p] ? q = this.defaultActions[p] : (null !== n && void 0 !== n || (n = b()), 21901 q = g[p] && g[p][n]), 21902 void 0 === q || !q.length || !q[0]) { 21903 var x = ""; 21904 if (!k) { 21905 v = []; 21906 for (s in g[p]) 21907 this.terminals_[s] && s > 2 && v.push("'" + this.terminals_[s] + "'"); 21908 x = this.lexer.showPosition ? "Parse error on line " + (i + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + v.join(", ") + ", got '" + (this.terminals_[n] || n) + "'" : "Parse error on line " + (i + 1) + ": Unexpected " + (1 == n ? "end of input" : "'" + (this.terminals_[n] || n) + "'"), 21909 this.parseError(x, { 21910 text: this.lexer.match, 21911 token: this.terminals_[n] || n, 21912 line: this.lexer.yylineno, 21913 loc: l, 21914 expected: v 21915 }) 21916 } 21917 } 21918 if (q[0]instanceof Array && q.length > 1) 21919 throw new Error("Parse Error: multiple actions possible at state: " + p + ", token: " + n); 21920 switch (q[0]) { 21921 case 1: 21922 d.push(n), 21923 e.push(this.lexer.yytext), 21924 f.push(this.lexer.yylloc), 21925 d.push(q[1]), 21926 n = null, 21927 o ? (n = o, 21928 o = null) : (j = this.lexer.yyleng, 21929 h = this.lexer.yytext, 21930 i = this.lexer.yylineno, 21931 l = this.lexer.yylloc, 21932 k > 0 && k--); 21933 break; 21934 case 2: 21935 if (t = this.productions_[q[1]][1], 21936 w.$ = e[e.length - t], 21937 w._$ = { 21938 first_line: f[f.length - (t || 1)].first_line, 21939 last_line: f[f.length - 1].last_line, 21940 first_column: f[f.length - (t || 1)].first_column, 21941 last_column: f[f.length - 1].last_column 21942 }, 21943 m && (w._$.range = [f[f.length - (t || 1)].range[0], f[f.length - 1].range[1]]), 21944 void 0 !== (r = this.performAction.call(w, h, j, i, this.yy, q[1], e, f))) 21945 return r; 21946 t && (d = d.slice(0, -1 * t * 2), 21947 e = e.slice(0, -1 * t), 21948 f = f.slice(0, -1 * t)), 21949 d.push(this.productions_[q[1]][0]), 21950 e.push(w.$), 21951 f.push(w._$), 21952 u = g[d[d.length - 2]][d[d.length - 1]], 21953 d.push(u); 21954 break; 21955 case 3: 21956 return !0 21957 } 21958 } 21959 return !0 21960 } 21961 } 21962 , c = function() { 21963 var a = { 21964 EOF: 1, 21965 parseError: function(a, b) { 21966 if (!this.yy.parser) 21967 throw new Error(a); 21968 this.yy.parser.parseError(a, b) 21969 }, 21970 setInput: function(a) { 21971 return this._input = a, 21972 this._more = this._less = this.done = !1, 21973 this.yylineno = this.yyleng = 0, 21974 this.yytext = this.matched = this.match = "", 21975 this.conditionStack = ["INITIAL"], 21976 this.yylloc = { 21977 first_line: 1, 21978 first_column: 0, 21979 last_line: 1, 21980 last_column: 0 21981 }, 21982 this.options.ranges && (this.yylloc.range = [0, 0]), 21983 this.offset = 0, 21984 this 21985 }, 21986 input: function() { 21987 var a = this._input[0]; 21988 return this.yytext += a, 21989 this.yyleng++, 21990 this.offset++, 21991 this.match += a, 21992 this.matched += a, 21993 a.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, 21994 this.yylloc.last_line++) : this.yylloc.last_column++, 21995 this.options.ranges && this.yylloc.range[1]++, 21996 this._input = this._input.slice(1), 21997 a 21998 }, 21999 unput: function(a) { 22000 var b = a.length 22001 , c = a.split(/(?:\r\n?|\n)/g); 22002 this._input = a + this._input, 22003 this.yytext = this.yytext.substr(0, this.yytext.length - b - 1), 22004 this.offset -= b; 22005 var d = this.match.split(/(?:\r\n?|\n)/g); 22006 this.match = this.match.substr(0, this.match.length - 1), 22007 this.matched = this.matched.substr(0, this.matched.length - 1), 22008 c.length - 1 && (this.yylineno -= c.length - 1); 22009 var e = this.yylloc.range; 22010 return this.yylloc = { 22011 first_line: this.yylloc.first_line, 22012 last_line: this.yylineno + 1, 22013 first_column: this.yylloc.first_column, 22014 last_column: c ? (c.length === d.length ? this.yylloc.first_column : 0) + d[d.length - c.length].length - c[0].length : this.yylloc.first_column - b 22015 }, 22016 this.options.ranges && (this.yylloc.range = [e[0], e[0] + this.yyleng - b]), 22017 this 22018 }, 22019 more: function() { 22020 return this._more = !0, 22021 this 22022 }, 22023 less: function(a) { 22024 this.unput(this.match.slice(a)) 22025 }, 22026 pastInput: function() { 22027 var a = this.matched.substr(0, this.matched.length - this.match.length); 22028 return (a.length > 20 ? "..." : "") + a.substr(-20).replace(/\n/g, "") 22029 }, 22030 upcomingInput: function() { 22031 var a = this.match; 22032 return a.length < 20 && (a += this._input.substr(0, 20 - a.length)), 22033 (a.substr(0, 20) + (a.length > 20 ? "..." : "")).replace(/\n/g, "") 22034 }, 22035 showPosition: function() { 22036 var a = this.pastInput() 22037 , b = new Array(a.length + 1).join("-"); 22038 return a + this.upcomingInput() + "\n" + b + "^" 22039 }, 22040 next: function() { 22041 if (this.done) 22042 return this.EOF; 22043 this._input || (this.done = !0); 22044 var a, b, c, d, e; 22045 this._more || (this.yytext = "", 22046 this.match = ""); 22047 for (var f = this._currentRules(), g = 0; g < f.length && (!(c = this._input.match(this.rules[f[g]])) || b && !(c[0].length > b[0].length) || (b = c, 22048 d = g, 22049 this.options.flex)); g++) 22050 ; 22051 return b ? (e = b[0].match(/(?:\r\n?|\n).*/g), 22052 e && (this.yylineno += e.length), 22053 this.yylloc = { 22054 first_line: this.yylloc.last_line, 22055 last_line: this.yylineno + 1, 22056 first_column: this.yylloc.last_column, 22057 last_column: e ? e[e.length - 1].length - e[e.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + b[0].length 22058 }, 22059 this.yytext += b[0], 22060 this.match += b[0], 22061 this.matches = b, 22062 this.yyleng = this.yytext.length, 22063 this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), 22064 this._more = !1, 22065 this._input = this._input.slice(b[0].length), 22066 this.matched += b[0], 22067 a = this.performAction.call(this, this.yy, this, f[d], this.conditionStack[this.conditionStack.length - 1]), 22068 this.done && this._input && (this.done = !1), 22069 a || void 0) : "" === this._input ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), { 22070 text: "", 22071 token: null, 22072 line: this.yylineno 22073 }) 22074 }, 22075 lex: function() { 22076 var a = this.next(); 22077 return void 0 !== a ? a : this.lex() 22078 }, 22079 begin: function(a) { 22080 this.conditionStack.push(a) 22081 }, 22082 popState: function() { 22083 return this.conditionStack.pop() 22084 }, 22085 _currentRules: function() { 22086 return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules 22087 }, 22088 topState: function() { 22089 return this.conditionStack[this.conditionStack.length - 2] 22090 }, 22091 pushState: function(a) { 22092 this.begin(a) 22093 } 22094 }; 22095 return a.options = {}, 22096 a.performAction = function(a, b, c, d) { 22097 function e(a, c) { 22098 return b.yytext = b.yytext.substring(a, b.yyleng - c + a) 22099 } 22100 switch (c) { 22101 case 0: 22102 if ("\\\\" === b.yytext.slice(-2) ? (e(0, 1), 22103 this.begin("mu")) : "\\" === b.yytext.slice(-1) ? (e(0, 1), 22104 this.begin("emu")) : this.begin("mu"), 22105 b.yytext) 22106 return 15; 22107 break; 22108 case 1: 22109 return 15; 22110 case 2: 22111 return this.popState(), 22112 15; 22113 case 3: 22114 return this.begin("raw"), 22115 15; 22116 case 4: 22117 return this.popState(), 22118 "raw" === this.conditionStack[this.conditionStack.length - 1] ? 15 : (e(5, 9), 22119 "END_RAW_BLOCK"); 22120 case 5: 22121 return 15; 22122 case 6: 22123 return this.popState(), 22124 14; 22125 case 7: 22126 return 65; 22127 case 8: 22128 return 68; 22129 case 9: 22130 return 19; 22131 case 10: 22132 return this.popState(), 22133 this.begin("raw"), 22134 23; 22135 case 11: 22136 return 55; 22137 case 12: 22138 return 60; 22139 case 13: 22140 return 29; 22141 case 14: 22142 return 47; 22143 case 15: 22144 case 16: 22145 return this.popState(), 22146 44; 22147 case 17: 22148 return 34; 22149 case 18: 22150 return 39; 22151 case 19: 22152 return 51; 22153 case 20: 22154 return 48; 22155 case 21: 22156 this.unput(b.yytext), 22157 this.popState(), 22158 this.begin("com"); 22159 break; 22160 case 22: 22161 return this.popState(), 22162 14; 22163 case 23: 22164 return 48; 22165 case 24: 22166 return 73; 22167 case 25: 22168 case 26: 22169 return 72; 22170 case 27: 22171 return 87; 22172 case 28: 22173 break; 22174 case 29: 22175 return this.popState(), 22176 54; 22177 case 30: 22178 return this.popState(), 22179 33; 22180 case 31: 22181 return b.yytext = e(1, 2).replace(/\\"/g, '"'), 22182 80; 22183 case 32: 22184 return b.yytext = e(1, 2).replace(/\\'/g, "'"), 22185 80; 22186 case 33: 22187 return 85; 22188 case 34: 22189 case 35: 22190 return 82; 22191 case 36: 22192 return 83; 22193 case 37: 22194 return 84; 22195 case 38: 22196 return 81; 22197 case 39: 22198 return 75; 22199 case 40: 22200 return 77; 22201 case 41: 22202 return 72; 22203 case 42: 22204 return b.yytext = b.yytext.replace(/\\([\\\]])/g, "$1"), 22205 72; 22206 case 43: 22207 return "INVALID"; 22208 case 44: 22209 return 5 22210 } 22211 } 22212 , 22213 a.rules = [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^
vendor: 11,627 bytes, lines 22213-22513
22213\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[^\/]))/, /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, /^(?:[^\x00]+?(?=(\{\{\{\{)))/, /^(?:[\s\S]*?--(~)?\}\})/, /^(?:\()/, /^(?:\))/, /^(?:\{\{\{\{)/, /^(?:\}\}\}\})/, /^(?:\{\{(~)?>)/, /^(?:\{\{(~)?#>)/, /^(?:\{\{(~)?#\*?)/, /^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, /^(?:\{\{(~)?\^)/, /^(?:\{\{(~)?\s*else\b)/, /^(?:\{\{(~)?\{)/, /^(?:\{\{(~)?&)/, /^(?:\{\{(~)?!--)/, /^(?:\{\{(~)?![\s\S]*?\}\})/, /^(?:\{\{(~)?\*?)/, /^(?:=)/, /^(?:\.\.)/, /^(?:\.(?=([=~}\s\/.)|])))/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:\}(~)?\}\})/, /^(?:(~)?\}\})/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\s)])))/, /^(?:false(?=([~}\s)])))/, /^(?:undefined(?=([~}\s)])))/, /^(?:null(?=([~}\s)])))/, /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/, /^(?:\|)/, /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[(\\\]|[^\]])*\])/, /^(?:.)/, /^(?:$)/], 22214 a.conditions = { 22215 mu: { 22216 rules: [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], 22217 inclusive: !1 22218 }, 22219 emu: { 22220 rules: [2], 22221 inclusive: !1 22222 }, 22223 com: { 22224 rules: [6], 22225 inclusive: !1 22226 }, 22227 raw: { 22228 rules: [3, 4, 5], 22229 inclusive: !1 22230 }, 22231 INITIAL: { 22232 rules: [0, 1, 44], 22233 inclusive: !0 22234 } 22235 }, 22236 a 22237 }(); 22238 return b.lexer = c, 22239 a.prototype = b, 22240 b.Parser = a, 22241 new a 22242 }(); 22243 b.default = c, 22244 a.exports = b.default 22245 } 22246 , function(a, b, c) { 22247 "use strict"; 22248 function d() { 22249 var a = arguments.length <= 0 || void 0 === arguments[0] ? {} : arguments[0]; 22250 this.options = a 22251 } 22252 function e(a, b, c) { 22253 void 0 === b && (b = a.length); 22254 var d = a[b - 1] 22255 , e = a[b - 2]; 22256 return d ? "ContentStatement" === d.type ? (e || !c ? /\r?\n\s*?$/ : /(^|\r?\n)\s*?$/).test(d.original) : void 0 : c 22257 } 22258 function f(a, b, c) { 22259 void 0 === b && (b = -1); 22260 var d = a[b + 1] 22261 , e = a[b + 2]; 22262 return d ? "ContentStatement" === d.type ? (e || !c ? /^\s*?\r?\n/ : /^\s*?(\r?\n|$)/).test(d.original) : void 0 : c 22263 } 22264 function g(a, b, c) { 22265 var d = a[null == b ? 0 : b + 1]; 22266 if (d && "ContentStatement" === d.type && (c || !d.rightStripped)) { 22267 var e = d.value; 22268 d.value = d.value.replace(c ? /^\s+/ : /^[ \t]*\r?\n?/, ""), 22269 d.rightStripped = d.value !== e 22270 } 22271 } 22272 function h(a, b, c) { 22273 var d = a[null == b ? a.length - 1 : b - 1]; 22274 if (d && "ContentStatement" === d.type && (c || !d.leftStripped)) { 22275 var e = d.value; 22276 return d.value = d.value.replace(c ? /\s+$/ : /[ \t]+$/, ""), 22277 d.leftStripped = d.value !== e, 22278 d.leftStripped 22279 } 22280 } 22281 var i = c(1).default; 22282 b.__esModule = !0; 22283 var j = c(44) 22284 , k = i(j); 22285 d.prototype = new k.default, 22286 d.prototype.Program = function(a) { 22287 var b = !this.options.ignoreStandalone 22288 , c = !this.isRootSeen; 22289 this.isRootSeen = !0; 22290 for (var d = a.body, i = 0, j = d.length; i < j; i++) { 22291 var k = d[i] 22292 , l = this.accept(k); 22293 if (l) { 22294 var m = e(d, i, c) 22295 , n = f(d, i, c) 22296 , o = l.openStandalone && m 22297 , p = l.closeStandalone && n 22298 , q = l.inlineStandalone && m && n; 22299 l.close && g(d, i, !0), 22300 l.open && h(d, i, !0), 22301 b && q && (g(d, i), 22302 h(d, i) && "PartialStatement" === k.type && (k.indent = /([ \t]+$)/.exec(d[i - 1].original)[1])), 22303 b && o && (g((k.program || k.inverse).body), 22304 h(d, i)), 22305 b && p && (g(d, i), 22306 h((k.inverse || k.program).body)) 22307 } 22308 } 22309 return a 22310 } 22311 , 22312 d.prototype.BlockStatement = d.prototype.DecoratorBlock = d.prototype.PartialBlockStatement = function(a) { 22313 this.accept(a.program), 22314 this.accept(a.inverse); 22315 var b = a.program || a.inverse 22316 , c = a.program && a.inverse 22317 , d = c 22318 , i = c; 22319 if (c && c.chained) 22320 for (d = c.body[0].program; i.chained; ) 22321 i = i.body[i.body.length - 1].program; 22322 var j = { 22323 open: a.openStrip.open, 22324 close: a.closeStrip.close, 22325 openStandalone: f(b.body), 22326 closeStandalone: e((d || b).body) 22327 }; 22328 if (a.openStrip.close && g(b.body, null, !0), 22329 c) { 22330 var k = a.inverseStrip; 22331 k.open && h(b.body, null, !0), 22332 k.close && g(d.body, null, !0), 22333 a.closeStrip.open && h(i.body, null, !0), 22334 !this.options.ignoreStandalone && e(b.body) && f(d.body) && (h(b.body), 22335 g(d.body)) 22336 } else 22337 a.closeStrip.open && h(b.body, null, !0); 22338 return j 22339 } 22340 , 22341 d.prototype.Decorator = d.prototype.MustacheStatement = function(a) { 22342 return a.strip 22343 } 22344 , 22345 d.prototype.PartialStatement = d.prototype.CommentStatement = function(a) { 22346 var b = a.strip || {}; 22347 return { 22348 inlineStandalone: !0, 22349 open: b.open, 22350 close: b.close 22351 } 22352 } 22353 , 22354 b.default = d, 22355 a.exports = b.default 22356 } 22357 , function(a, b, c) { 22358 "use strict"; 22359 function d() { 22360 this.parents = [] 22361 } 22362 function e(a) { 22363 this.acceptRequired(a, "path"), 22364 this.acceptArray(a.params), 22365 this.acceptKey(a, "hash") 22366 } 22367 function f(a) { 22368 e.call(this, a), 22369 this.acceptKey(a, "program"), 22370 this.acceptKey(a, "inverse") 22371 } 22372 function g(a) { 22373 this.acceptRequired(a, "name"), 22374 this.acceptArray(a.params), 22375 this.acceptKey(a, "hash") 22376 } 22377 var h = c(1).default; 22378 b.__esModule = !0; 22379 var i = c(6) 22380 , j = h(i); 22381 d.prototype = { 22382 constructor: d, 22383 mutating: !1, 22384 acceptKey: function(a, b) { 22385 var c = this.accept(a[b]); 22386 if (this.mutating) { 22387 if (c && !d.prototype[c.type]) 22388 throw new j.default('Unexpected node type "' + c.type + '" found when accepting ' + b + " on " + a.type); 22389 a[b] = c 22390 } 22391 }, 22392 acceptRequired: function(a, b) { 22393 if (this.acceptKey(a, b), 22394 !a[b]) 22395 throw new j.default(a.type + " requires " + b) 22396 }, 22397 acceptArray: function(a) { 22398 for (var b = 0, c = a.length; b < c; b++) 22399 this.acceptKey(a, b), 22400 a[b] || (a.splice(b, 1), 22401 b--, 22402 c--) 22403 }, 22404 accept: function(a) { 22405 if (a) { 22406 if (!this[a.type]) 22407 throw new j.default("Unknown type: " + a.type,a); 22408 this.current && this.parents.unshift(this.current), 22409 this.current = a; 22410 var b = this[a.type](a); 22411 return this.current = this.parents.shift(), 22412 !this.mutating || b ? b : !1 !== b ? a : void 0 22413 } 22414 }, 22415 Program: function(a) { 22416 this.acceptArray(a.body) 22417 }, 22418 MustacheStatement: e, 22419 Decorator: e, 22420 BlockStatement: f, 22421 DecoratorBlock: f, 22422 PartialStatement: g, 22423 PartialBlockStatement: function(a) { 22424 g.call(this, a), 22425 this.acceptKey(a, "program") 22426 }, 22427 ContentStatement: function() {}, 22428 CommentStatement: function() {}, 22429 SubExpression: e, 22430 PathExpression: function() {}, 22431 StringLiteral: function() {}, 22432 NumberLiteral: function() {}, 22433 BooleanLiteral: function() {}, 22434 UndefinedLiteral: function() {}, 22435 NullLiteral: function() {}, 22436 Hash: function(a) { 22437 this.acceptArray(a.pairs) 22438 }, 22439 HashPair: function(a) { 22440 this.acceptRequired(a, "value") 22441 } 22442 }, 22443 b.default = d, 22444 a.exports = b.default 22445 } 22446 , function(a, b, c) { 22447 "use strict"; 22448 function d(a, b) { 22449 if (b = b.path ? b.path.original : b, 22450 a.path.original !== b) { 22451 var c = { 22452 loc: a.path.loc 22453 }; 22454 throw new q.default(a.path.original + " doesn't match " + b,c) 22455 } 22456 } 22457 function e(a, b) { 22458 this.source = a, 22459 this.start = { 22460 line: b.first_line, 22461 column: b.first_column 22462 }, 22463 this.end = { 22464 line: b.last_line, 22465 column: b.last_column 22466 } 22467 } 22468 function f(a) { 22469 return /^\[.*\]$/.test(a) ? a.substring(1, a.length - 1) : a 22470 } 22471 function g(a, b) { 22472 return { 22473 open: "~" === a.charAt(2), 22474 close: "~" === b.charAt(b.length - 3) 22475 } 22476 } 22477 function h(a) { 22478 return a.replace(/^\{\{~?!-?-?/, "").replace(/-?-?~?\}\}$/, "") 22479 } 22480 function i(a, b, c) { 22481 c = this.locInfo(c); 22482 for (var d = a ? "@" : "", e = [], f = 0, g = 0, h = b.length; g < h; g++) { 22483 var i = b[g].part 22484 , j = b[g].original !== i; 22485 if (d += (b[g].separator || "") + i, 22486 j || ".." !== i && "." !== i && "this" !== i) 22487 e.push(i); 22488 else { 22489 if (e.length > 0) 22490 throw new q.default("Invalid path: " + d,{ 22491 loc: c 22492 }); 22493 ".." === i && f++ 22494 } 22495 } 22496 return { 22497 type: "PathExpression", 22498 data: a, 22499 depth: f, 22500 parts: e, 22501 original: d, 22502 loc: c 22503 } 22504 } 22505 function j(a, b, c, d, e, f) { 22506 var g = d.charAt(3) || d.charAt(2) 22507 , h = "{" !== g && "&" !== g; 22508 return { 22509 type: /\*/.test(d) ? "Decorator" : "MustacheStatement", 22510 path: a, 22511 params: b, 22512 hash: c, 22513 escaped: h,
vendor: 8,623 bytes, lines 22514-22769
22514 strip: e, 22515 loc: this.locInfo(f) 22516 } 22517 } 22518 function k(a, b, c, e) { 22519 d(a, c), 22520 e = this.locInfo(e); 22521 var f = { 22522 type: "Program", 22523 body: b, 22524 strip: {}, 22525 loc: e 22526 }; 22527 return { 22528 type: "BlockStatement", 22529 path: a.path, 22530 params: a.params, 22531 hash: a.hash, 22532 program: f, 22533 openStrip: {}, 22534 inverseStrip: {}, 22535 closeStrip: {}, 22536 loc: e 22537 } 22538 } 22539 function l(a, b, c, e, f, g) { 22540 e && e.path && d(a, e); 22541 var h = /\*/.test(a.open); 22542 b.blockParams = a.blockParams; 22543 var i = void 0 22544 , j = void 0; 22545 if (c) { 22546 if (h) 22547 throw new q.default("Unexpected inverse block on decorator",c); 22548 c.chain && (c.program.body[0].closeStrip = e.strip), 22549 j = c.strip, 22550 i = c.program 22551 } 22552 return f && (f = i, 22553 i = b, 22554 b = f), 22555 { 22556 type: h ? "DecoratorBlock" : "BlockStatement", 22557 path: a.path, 22558 params: a.params, 22559 hash: a.hash, 22560 program: b, 22561 inverse: i, 22562 openStrip: a.strip, 22563 inverseStrip: j, 22564 closeStrip: e && e.strip, 22565 loc: this.locInfo(g) 22566 } 22567 } 22568 function m(a, b) { 22569 if (!b && a.length) { 22570 var c = a[0].loc 22571 , d = a[a.length - 1].loc; 22572 c && d && (b = { 22573 source: c.source, 22574 start: { 22575 line: c.start.line, 22576 column: c.start.column 22577 }, 22578 end: { 22579 line: d.end.line, 22580 column: d.end.column 22581 } 22582 }) 22583 } 22584 return { 22585 type: "Program", 22586 body: a, 22587 strip: {}, 22588 loc: b 22589 } 22590 } 22591 function n(a, b, c, e) { 22592 return d(a, c), 22593 { 22594 type: "PartialBlockStatement", 22595 name: a.path, 22596 params: a.params, 22597 hash: a.hash, 22598 program: b, 22599 openStrip: a.strip, 22600 closeStrip: c && c.strip, 22601 loc: this.locInfo(e) 22602 } 22603 } 22604 var o = c(1).default; 22605 b.__esModule = !0, 22606 b.SourceLocation = e, 22607 b.id = f, 22608 b.stripFlags = g, 22609 b.stripComment = h, 22610 b.preparePath = i, 22611 b.prepareMustache = j, 22612 b.prepareRawBlock = k, 22613 b.prepareBlock = l, 22614 b.prepareProgram = m, 22615 b.preparePartialBlock = n; 22616 var p = c(6) 22617 , q = o(p) 22618 } 22619 , function(a, b, c) { 22620 "use strict"; 22621 function d() {} 22622 function e(a, b, c) { 22623 if (null == a || "string" != typeof a && "Program" !== a.type) 22624 throw new l.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + a); 22625 b = b || {}, 22626 "data"in b || (b.data = !0), 22627 b.compat && (b.useDepths = !0); 22628 var d = c.parse(a, b) 22629 , e = (new c.Compiler).compile(d, b); 22630 return (new c.JavaScriptCompiler).compile(e, b) 22631 } 22632 function f(a, b, c) { 22633 function d() { 22634 var d = c.parse(a, b) 22635 , e = (new c.Compiler).compile(d, b) 22636 , f = (new c.JavaScriptCompiler).compile(e, b, void 0, !0); 22637 return c.template(f) 22638 } 22639 function e(a, b) { 22640 return f || (f = d()), 22641 f.call(this, a, b) 22642 } 22643 if (void 0 === b && (b = {}), 22644 null == a || "string" != typeof a && "Program" !== a.type) 22645 throw new l.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed " + a); 22646 b = m.extend({}, b), 22647 "data"in b || (b.data = !0), 22648 b.compat && (b.useDepths = !0); 22649 var f = void 0; 22650 return e._setup = function(a) { 22651 return f || (f = d()), 22652 f._setup(a) 22653 } 22654 , 22655 e._child = function(a, b, c, e) { 22656 return f || (f = d()), 22657 f._child(a, b, c, e) 22658 } 22659 , 22660 e 22661 } 22662 function g(a, b) { 22663 if (a === b) 22664 return !0; 22665 if (m.isArray(a) && m.isArray(b) && a.length === b.length) { 22666 for (var c = 0; c < a.length; c++) 22667 if (!g(a[c], b[c])) 22668 return !1; 22669 return !0 22670 } 22671 } 22672 function h(a) { 22673 if (!a.path.parts) { 22674 var b = a.path; 22675 a.path = { 22676 type: "PathExpression", 22677 data: !1, 22678 depth: 0, 22679 parts: [b.original + ""], 22680 original: b.original + "", 22681 loc: b.loc 22682 } 22683 } 22684 } 22685 var i = c(47).default 22686 , j = c(1).default; 22687 b.__esModule = !0, 22688 b.Compiler = d, 22689 b.precompile = e, 22690 b.compile = f; 22691 var k = c(6) 22692 , l = j(k) 22693 , m = c(5) 22694 , n = c(40) 22695 , o = j(n) 22696 , p = [].slice; 22697 d.prototype = { 22698 compiler: d, 22699 equals: function(a) { 22700 var b = this.opcodes.length; 22701 if (a.opcodes.length !== b) 22702 return !1; 22703 for (var c = 0; c < b; c++) { 22704 var d = this.opcodes[c] 22705 , e = a.opcodes[c]; 22706 if (d.opcode !== e.opcode || !g(d.args, e.args)) 22707 return !1 22708 } 22709 b = this.children.length; 22710 for (var c = 0; c < b; c++) 22711 if (!this.children[c].equals(a.children[c])) 22712 return !1; 22713 return !0 22714 }, 22715 guid: 0, 22716 compile: function(a, b) { 22717 return this.sourceNode = [], 22718 this.opcodes = [], 22719 this.children = [], 22720 this.options = b, 22721 this.stringParams = b.stringParams, 22722 this.trackIds = b.trackIds, 22723 b.blockParams = b.blockParams || [], 22724 b.knownHelpers = m.extend(i(null), { 22725 helperMissing: !0, 22726 blockHelperMissing: !0, 22727 each: !0, 22728 if: !0, 22729 unless: !0, 22730 with: !0, 22731 log: !0, 22732 lookup: !0 22733 }, b.knownHelpers), 22734 this.accept(a) 22735 }, 22736 compileProgram: function(a) { 22737 var b = new this.compiler 22738 , c = b.compile(a, this.options) 22739 , d = this.guid++; 22740 return this.usePartial = this.usePartial || c.usePartial, 22741 this.children[d] = c, 22742 this.useDepths = this.useDepths || c.useDepths, 22743 d 22744 }, 22745 accept: function(a) { 22746 if (!this[a.type]) 22747 throw new l.default("Unknown type: " + a.type,a); 22748 this.sourceNode.unshift(a); 22749 var b = this[a.type](a); 22750 return this.sourceNode.shift(), 22751 b 22752 }, 22753 Program: function(a) { 22754 this.options.blockParams.unshift(a.blockParams); 22755 for (var b = a.body, c = b.length, d = 0; d < c; d++) 22756 this.accept(b[d]); 22757 return this.options.blockParams.shift(), 22758 this.isSimple = 1 === c, 22759 this.blockParams = a.blockParams ? a.blockParams.length : 0, 22760 this 22761 }, 22762 BlockStatement: function(a) { 22763 h(a); 22764 var b = a.program 22765 , c = a.inverse; 22766 b = b && this.compileProgram(b), 22767 c = c && this.compileProgram(c); 22768 var d = this.classifySexpr(a); 22769 "helper" === d ? this.helperSexpr(a, b, c) : "simple" === d ? (this.simpleSex
vendor: 9,037 bytes, lines 22769-22983
22769pr(a), 22770 this.opcode("pushProgram", b), 22771 this.opcode("pushProgram", c), 22772 this.opcode("emptyHash"), 22773 this.opcode("blockValue", a.path.original)) : (this.ambiguousSexpr(a, b, c), 22774 this.opcode("pushProgram", b), 22775 this.opcode("pushProgram", c), 22776 this.opcode("emptyHash"), 22777 this.opcode("ambiguousBlockValue")), 22778 this.opcode("append") 22779 }, 22780 DecoratorBlock: function(a) { 22781 var b = a.program && this.compileProgram(a.program) 22782 , c = this.setupFullMustacheParams(a, b, void 0) 22783 , d = a.path; 22784 this.useDecorators = !0, 22785 this.opcode("registerDecorator", c.length, d.original) 22786 }, 22787 PartialStatement: function(a) { 22788 this.usePartial = !0; 22789 var b = a.program; 22790 b && (b = this.compileProgram(a.program)); 22791 var c = a.params; 22792 if (c.length > 1) 22793 throw new l.default("Unsupported number of partial arguments: " + c.length,a); 22794 c.length || (this.options.explicitPartialContext ? this.opcode("pushLiteral", "undefined") : c.push({ 22795 type: "PathExpression", 22796 parts: [], 22797 depth: 0 22798 })); 22799 var d = a.name.original 22800 , e = "SubExpression" === a.name.type; 22801 e && this.accept(a.name), 22802 this.setupFullMustacheParams(a, b, void 0, !0); 22803 var f = a.indent || ""; 22804 this.options.preventIndent && f && (this.opcode("appendContent", f), 22805 f = ""), 22806 this.opcode("invokePartial", e, d, f), 22807 this.opcode("append") 22808 }, 22809 PartialBlockStatement: function(a) { 22810 this.PartialStatement(a) 22811 }, 22812 MustacheStatement: function(a) { 22813 this.SubExpression(a), 22814 a.escaped && !this.options.noEscape ? this.opcode("appendEscaped") : this.opcode("append") 22815 }, 22816 Decorator: function(a) { 22817 this.DecoratorBlock(a) 22818 }, 22819 ContentStatement: function(a) { 22820 a.value && this.opcode("appendContent", a.value) 22821 }, 22822 CommentStatement: function() {}, 22823 SubExpression: function(a) { 22824 h(a); 22825 var b = this.classifySexpr(a); 22826 "simple" === b ? this.simpleSexpr(a) : "helper" === b ? this.helperSexpr(a) : this.ambiguousSexpr(a) 22827 }, 22828 ambiguousSexpr: function(a, b, c) { 22829 var d = a.path 22830 , e = d.parts[0] 22831 , f = null != b || null != c; 22832 this.opcode("getContext", d.depth), 22833 this.opcode("pushProgram", b), 22834 this.opcode("pushProgram", c), 22835 d.strict = !0, 22836 this.accept(d), 22837 this.opcode("invokeAmbiguous", e, f) 22838 }, 22839 simpleSexpr: function(a) { 22840 var b = a.path; 22841 b.strict = !0, 22842 this.accept(b), 22843 this.opcode("resolvePossibleLambda") 22844 }, 22845 helperSexpr: function(a, b, c) { 22846 var d = this.setupFullMustacheParams(a, b, c) 22847 , e = a.path 22848 , f = e.parts[0]; 22849 if (this.options.knownHelpers[f]) 22850 this.opcode("invokeKnownHelper", d.length, f); 22851 else { 22852 if (this.options.knownHelpersOnly) 22853 throw new l.default("You specified knownHelpersOnly, but used the unknown helper " + f,a); 22854 e.strict = !0, 22855 e.falsy = !0, 22856 this.accept(e), 22857 this.opcode("invokeHelper", d.length, e.original, o.default.helpers.simpleId(e)) 22858 } 22859 }, 22860 PathExpression: function(a) { 22861 this.addDepth(a.depth), 22862 this.opcode("getContext", a.depth); 22863 var b = a.parts[0] 22864 , c = o.default.helpers.scopedId(a) 22865 , d = !a.depth && !c && this.blockParamIndex(b); 22866 d ? this.opcode("lookupBlockParam", d, a.parts) : b ? a.data ? (this.options.data = !0, 22867 this.opcode("lookupData", a.depth, a.parts, a.strict)) : this.opcode("lookupOnContext", a.parts, a.falsy, a.strict, c) : this.opcode("pushContext") 22868 }, 22869 StringLiteral: function(a) { 22870 this.opcode("pushString", a.value) 22871 }, 22872 NumberLiteral: function(a) { 22873 this.opcode("pushLiteral", a.value) 22874 }, 22875 BooleanLiteral: function(a) { 22876 this.opcode("pushLiteral", a.value) 22877 }, 22878 UndefinedLiteral: function() { 22879 this.opcode("pushLiteral", "undefined") 22880 }, 22881 NullLiteral: function() { 22882 this.opcode("pushLiteral", "null") 22883 }, 22884 Hash: function(a) { 22885 var b = a.pairs 22886 , c = 0 22887 , d = b.length; 22888 for (this.opcode("pushHash"); c < d; c++) 22889 this.pushParam(b[c].value); 22890 for (; c--; ) 22891 this.opcode("assignToHash", b[c].key); 22892 this.opcode("popHash") 22893 }, 22894 opcode: function(a) { 22895 this.opcodes.push({ 22896 opcode: a, 22897 args: p.call(arguments, 1), 22898 loc: this.sourceNode[0].loc 22899 }) 22900 }, 22901 addDepth: function(a) { 22902 a && (this.useDepths = !0) 22903 }, 22904 classifySexpr: function(a) { 22905 var b = o.default.helpers.simpleId(a.path) 22906 , c = b && !!this.blockParamIndex(a.path.parts[0]) 22907 , d = !c && o.default.helpers.helperExpression(a) 22908 , e = !c && (d || b); 22909 if (e && !d) { 22910 var f = a.path.parts[0] 22911 , g = this.options; 22912 g.knownHelpers[f] ? d = !0 : g.knownHelpersOnly && (e = !1) 22913 } 22914 return d ? "helper" : e ? "ambiguous" : "simple" 22915 }, 22916 pushParams: function(a) { 22917 for (var b = 0, c = a.length; b < c; b++) 22918 this.pushParam(a[b]) 22919 }, 22920 pushParam: function(a) { 22921 var b = null != a.value ? a.value : a.original || ""; 22922 if (this.stringParams) 22923 b.replace && (b = b.replace(/^(\.?\.\/)*/g, "").replace(/\//g, ".")), 22924 a.depth && this.addDepth(a.depth), 22925 this.opcode("getContext", a.depth || 0), 22926 this.opcode("pushStringParam", b, a.type), 22927 "SubExpression" === a.type && this.accept(a); 22928 else { 22929 if (this.trackIds) { 22930 var c = void 0; 22931 if (!a.parts || o.default.helpers.scopedId(a) || a.depth || (c = this.blockParamIndex(a.parts[0])), 22932 c) { 22933 var d = a.parts.slice(1).join("."); 22934 this.opcode("pushId", "BlockParam", c, d) 22935 } else 22936 b = a.original || b, 22937 b.replace && (b = b.replace(/^this(?:\.|$)/, "").replace(/^\.\//, "").replace(/^\.$/, "")), 22938 this.opcode("pushId", a.type, b) 22939 } 22940 this.accept(a) 22941 } 22942 }, 22943 setupFullMustacheParams: function(a, b, c, d) { 22944 var e = a.params; 22945 return this.pushParams(e), 22946 this.opcode("pushProgram", b), 22947 this.opcode("pushProgram", c), 22948 a.hash ? this.accept(a.hash) : this.opcode("emptyHash", d), 22949 e 22950 }, 22951 blockParamIndex: function(a) { 22952 for (var b = 0, c = this.options.blockParams.length; b < c; b++) { 22953 var d = this.options.blockParams[b] 22954 , e = d && m.indexOf(d, a); 22955 if (d && e >= 0) 22956 return [b, e] 22957 } 22958 } 22959 } 22960 } 22961 , function(a, b, c) { 22962 a.exports = { 22963 default: c(48), 22964 __esModule: !0 22965 } 22966 } 22967 , function(a, b, c) { 22968 var d = c(9); 22969 a.exports = function(a, b) { 22970 return d.create(a, b) 22971 } 22972 } 22973 , function(a, b, c) { 22974 "use strict"; 22975 function d(a) { 22976 this.value = a 22977 } 22978 function e() {} 22979 function f(a, b, c, d) { 22980 var e = b.popStack() 22981 , f = 0 22982 , g = c.length; 22983 for (a && g--; f < g; f++)
vendor: 4,221 bytes, lines 22984-23075
22984 e = b.nameLookup(e, c[f], d); 22985 return a ? [b.aliasable("container.strict"), "(", e, ", ", b.quotedString(c[f]), ", ", JSON.stringify(b.source.currentLocation), " )"] : e 22986 } 22987 var g = c(13).default 22988 , h = c(1).default; 22989 b.__esModule = !0; 22990 var i = c(4) 22991 , j = c(6) 22992 , k = h(j) 22993 , l = c(5) 22994 , m = c(50) 22995 , n = h(m) 22996 , o = c(28); 22997 e.prototype = { 22998 nameLookup: function(a, b) { 22999 function c() { 23000 return e.isValidJavaScriptVariableName(b) ? [a, ".", b] : [a, "[", JSON.stringify(b), "]"] 23001 } 23002 if (o.dangerousPropertyRegex.test(b)) { 23003 return ["(", [this.aliasable("container.propertyIsEnumerable"), ".call(", a, ",", JSON.stringify(b), ")"], "?", c(), " : undefined)"] 23004 } 23005 return c() 23006 }, 23007 depthedLookup: function(a) { 23008 return [this.aliasable("container.lookup"), '(depths, "', a, '")'] 23009 }, 23010 compilerInfo: function() { 23011 var a = i.COMPILER_REVISION; 23012 return [a, i.REVISION_CHANGES[a]] 23013 }, 23014 appendToBuffer: function(a, b, c) { 23015 return l.isArray(a) || (a = [a]), 23016 a = this.source.wrap(a, b), 23017 this.environment.isSimple ? ["return ", a, ";"] : c ? ["buffer += ", a, ";"] : (a.appendToBuffer = !0, 23018 a) 23019 }, 23020 initializeBuffer: function() { 23021 return this.quotedString("") 23022 }, 23023 compile: function(a, b, c, d) { 23024 this.environment = a, 23025 this.options = b, 23026 this.stringParams = this.options.stringParams, 23027 this.trackIds = this.options.trackIds, 23028 this.precompile = !d, 23029 this.name = this.environment.name, 23030 this.isChild = !!c, 23031 this.context = c || { 23032 decorators: [], 23033 programs: [], 23034 environments: [] 23035 }, 23036 this.preamble(), 23037 this.stackSlot = 0, 23038 this.stackVars = [], 23039 this.aliases = {}, 23040 this.registers = { 23041 list: [] 23042 }, 23043 this.hashes = [], 23044 this.compileStack = [], 23045 this.inlineStack = [], 23046 this.blockParams = [], 23047 this.compileChildren(a, b), 23048 this.useDepths = this.useDepths || a.useDepths || a.useDecorators || this.options.compat, 23049 this.useBlockParams = this.useBlockParams || a.useBlockParams; 23050 var e = a.opcodes 23051 , f = void 0 23052 , g = void 0 23053 , h = void 0 23054 , i = void 0; 23055 for (h = 0, 23056 i = e.length; h < i; h++) 23057 f = e[h], 23058 this.source.currentLocation = f.loc, 23059 g = g || f.loc, 23060 this[f.opcode].apply(this, f.args); 23061 if (this.source.currentLocation = g, 23062 this.pushSource(""), 23063 this.stackSlot || this.inlineStack.length || this.compileStack.length) 23064 throw new k.default("Compile completed with content left on stack"); 23065 this.decorators.isEmpty() ? this.decorators = void 0 : (this.useDecorators = !0, 23066 this.decorators.prepend("var decorators = container.decorators;\n"), 23067 this.decorators.push("return fn;"), 23068 d ? this.decorators = Function.apply(this, ["fn", "props", "container", "depth0", "data", "blockParams", "depths", this.decorators.merge()]) : (this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"), 23069 this.decorators.push("}\n"), 23070 this.decorators = this.decorators.merge())); 23071 var j = this.createFunctionContext(d); 23072 if (this.isChild) 23073 return j; 23074 var l = { 23075 compiler: this.compilerInfo(),
vendor: 12,314 bytes, lines 23076-23331
23076 main: j 23077 }; 23078 this.decorators && (l.main_d = this.decorators, 23079 l.useDecorators = !0); 23080 var m = this.context 23081 , n = m.programs 23082 , o = m.decorators; 23083 for (h = 0, 23084 i = n.length; h < i; h++) 23085 n[h] && (l[h] = n[h], 23086 o[h] && (l[h + "_d"] = o[h], 23087 l.useDecorators = !0)); 23088 return this.environment.usePartial && (l.usePartial = !0), 23089 this.options.data && (l.useData = !0), 23090 this.useDepths && (l.useDepths = !0), 23091 this.useBlockParams && (l.useBlockParams = !0), 23092 this.options.compat && (l.compat = !0), 23093 d ? l.compilerOptions = this.options : (l.compiler = JSON.stringify(l.compiler), 23094 this.source.currentLocation = { 23095 start: { 23096 line: 1, 23097 column: 0 23098 } 23099 }, 23100 l = this.objectLiteral(l), 23101 b.srcName ? (l = l.toStringWithSourceMap({ 23102 file: b.destName 23103 }), 23104 l.map = l.map && l.map.toString()) : l = l.toString()), 23105 l 23106 }, 23107 preamble: function() { 23108 this.lastContext = 0, 23109 this.source = new n.default(this.options.srcName), 23110 this.decorators = new n.default(this.options.srcName) 23111 }, 23112 createFunctionContext: function(a) { 23113 var b = this 23114 , c = "" 23115 , d = this.stackVars.concat(this.registers.list); 23116 d.length > 0 && (c += ", " + d.join(", ")); 23117 var e = 0; 23118 g(this.aliases).forEach(function(a) { 23119 var d = b.aliases[a]; 23120 d.children && d.referenceCount > 1 && (c += ", alias" + ++e + "=" + a, 23121 d.children[0] = "alias" + e) 23122 }); 23123 var f = ["container", "depth0", "helpers", "partials", "data"]; 23124 (this.useBlockParams || this.useDepths) && f.push("blockParams"), 23125 this.useDepths && f.push("depths"); 23126 var h = this.mergeSource(c); 23127 return a ? (f.push(h), 23128 Function.apply(this, f)) : this.source.wrap(["function(", f.join(","), ") {\n ", h, "}"]) 23129 }, 23130 mergeSource: function(a) { 23131 var b = this.environment.isSimple 23132 , c = !this.forceBuffer 23133 , d = void 0 23134 , e = void 0 23135 , f = void 0 23136 , g = void 0; 23137 return this.source.each(function(a) { 23138 a.appendToBuffer ? (f ? a.prepend(" + ") : f = a, 23139 g = a) : (f && (e ? f.prepend("buffer += ") : d = !0, 23140 g.add(";"), 23141 f = g = void 0), 23142 e = !0, 23143 b || (c = !1)) 23144 }), 23145 c ? f ? (f.prepend("return "), 23146 g.add(";")) : e || this.source.push('return "";') : (a += ", buffer = " + (d ? "" : this.initializeBuffer()), 23147 f ? (f.prepend("return buffer + "), 23148 g.add(";")) : this.source.push("return buffer;")), 23149 a && this.source.prepend("var " + a.substring(2) + (d ? "" : ";\n")), 23150 this.source.merge() 23151 }, 23152 blockValue: function(a) { 23153 var b = this.aliasable("container.hooks.blockHelperMissing") 23154 , c = [this.contextName(0)]; 23155 this.setupHelperArgs(a, 0, c); 23156 var d = this.popStack(); 23157 c.splice(1, 0, d), 23158 this.push(this.source.functionCall(b, "call", c)) 23159 }, 23160 ambiguousBlockValue: function() { 23161 var a = this.aliasable("container.hooks.blockHelperMissing") 23162 , b = [this.contextName(0)]; 23163 this.setupHelperArgs("", 0, b, !0), 23164 this.flushInline(); 23165 var c = this.topStack(); 23166 b.splice(1, 0, c), 23167 this.pushSource(["if (!", this.lastHelper, ") { ", c, " = ", this.source.functionCall(a, "call", b), "}"]) 23168 }, 23169 appendContent: function(a) { 23170 this.pendingContent ? a = this.pendingContent + a : this.pendingLocation = this.source.currentLocation, 23171 this.pendingContent = a 23172 }, 23173 append: function() { 23174 if (this.isInline()) 23175 this.replaceStack(function(a) { 23176 return [" != null ? ", a, ' : ""'] 23177 }), 23178 this.pushSource(this.appendToBuffer(this.popStack())); 23179 else { 23180 var a = this.popStack(); 23181 this.pushSource(["if (", a, " != null) { ", this.appendToBuffer(a, void 0, !0), " }"]), 23182 this.environment.isSimple && this.pushSource(["else { ", this.appendToBuffer("''", void 0, !0), " }"]) 23183 } 23184 }, 23185 appendEscaped: function() { 23186 this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"), "(", this.popStack(), ")"])) 23187 }, 23188 getContext: function(a) { 23189 this.lastContext = a 23190 }, 23191 pushContext: function() { 23192 this.pushStackLiteral(this.contextName(this.lastContext)) 23193 }, 23194 lookupOnContext: function(a, b, c, d) { 23195 var e = 0; 23196 d || !this.options.compat || this.lastContext ? this.pushContext() : this.push(this.depthedLookup(a[e++])), 23197 this.resolvePath("context", a, e, b, c) 23198 }, 23199 lookupBlockParam: function(a, b) { 23200 this.useBlockParams = !0, 23201 this.push(["blockParams[", a[0], "][", a[1], "]"]), 23202 this.resolvePath("context", b, 1) 23203 }, 23204 lookupData: function(a, b, c) { 23205 a ? this.pushStackLiteral("container.data(data, " + a + ")") : this.pushStackLiteral("data"), 23206 this.resolvePath("data", b, 0, !0, c) 23207 }, 23208 resolvePath: function(a, b, c, d, e) { 23209 var g = this; 23210 if (this.options.strict || this.options.assumeObjects) 23211 return void this.push(f(this.options.strict && e, this, b, a)); 23212 for (var h = b.length; c < h; c++) 23213 this.replaceStack(function(e) { 23214 var f = g.nameLookup(e, b[c], a); 23215 return d ? [" && ", f] : [" != null ? ", f, " : ", e] 23216 }) 23217 }, 23218 resolvePossibleLambda: function() { 23219 this.push([this.aliasable("container.lambda"), "(", this.popStack(), ", ", this.contextName(0), ")"]) 23220 }, 23221 pushStringParam: function(a, b) { 23222 this.pushContext(), 23223 this.pushString(b), 23224 "SubExpression" !== b && ("string" == typeof a ? this.pushString(a) : this.pushStackLiteral(a)) 23225 }, 23226 emptyHash: function(a) { 23227 this.trackIds && this.push("{}"), 23228 this.stringParams && (this.push("{}"), 23229 this.push("{}")), 23230 this.pushStackLiteral(a ? "undefined" : "{}") 23231 }, 23232 pushHash: function() { 23233 this.hash && this.hashes.push(this.hash), 23234 this.hash = { 23235 values: {}, 23236 types: [], 23237 contexts: [], 23238 ids: [] 23239 } 23240 }, 23241 popHash: function() { 23242 var a = this.hash; 23243 this.hash = this.hashes.pop(), 23244 this.trackIds && this.push(this.objectLiteral(a.ids)), 23245 this.stringParams && (this.push(this.objectLiteral(a.contexts)), 23246 this.push(this.objectLiteral(a.types))), 23247 this.push(this.objectLiteral(a.values)) 23248 }, 23249 pushString: function(a) { 23250 this.pushStackLiteral(this.quotedString(a)) 23251 }, 23252 pushLiteral: function(a) { 23253 this.pushStackLiteral(a) 23254 }, 23255 pushProgram: function(a) { 23256 null != a ? this.pushStackLiteral(this.programExpression(a)) : this.pushStackLiteral(null) 23257 }, 23258 registerDecorator: function(a, b) { 23259 var c = this.nameLookup("decorators", b, "decorator") 23260 , d = this.setupHelperArgs(b, a); 23261 this.decorators.push(["fn = ", this.decorators.functionCall(c, "", ["fn", "props", "container", d]), " || fn;"]) 23262 }, 23263 invokeHelper: function(a, b, c) { 23264 var d = this.popStack() 23265 , e = this.setupHelper(a, b) 23266 , f = []; 23267 c && f.push(e.name), 23268 f.push(d), 23269 this.options.strict || f.push(this.aliasable("container.hooks.helperMissing")); 23270 var g = ["(", this.itemsSeparatedBy(f, "||"), ")"] 23271 , h = this.source.functionCall(g, "call", e.callParams); 23272 this.push(h) 23273 }, 23274 itemsSeparatedBy: function(a, b) { 23275 var c = []; 23276 c.push(a[0]); 23277 for (var d = 1; d < a.length; d++) 23278 c.push(b, a[d]); 23279 return c 23280 }, 23281 invokeKnownHelper: function(a, b) { 23282 var c = this.setupHelper(a, b); 23283 this.push(this.source.functionCall(c.name, "call", c.callParams)) 23284 }, 23285 invokeAmbiguous: function(a, b) { 23286 this.useRegister("helper"); 23287 var c = this.popStack(); 23288 this.emptyHash(); 23289 var d = this.setupHelper(0, a, b) 23290 , e = this.lastHelper = this.nameLookup("helpers", a, "helper") 23291 , f = ["(", "(helper = ", e, " || ", c, ")"]; 23292 this.options.strict || (f[0] = "(helper = ", 23293 f.push(" != null ? helper : ", this.aliasable("container.hooks.helperMissing"))), 23294 this.push(["(", f, d.paramsInit ? ["),(", d.paramsInit] : [], "),", "(typeof helper === ", this.aliasable('"function"'), " ? ", this.source.functionCall("helper", "call", d.callParams), " : helper))"]) 23295 }, 23296 invokePartial: function(a, b, c) { 23297 var d = [] 23298 , e = this.setupParams(b, 1, d); 23299 a && (b = this.popStack(), 23300 delete e.name), 23301 c && (e.indent = JSON.stringify(c)), 23302 e.helpers = "helpers", 23303 e.partials = "partials", 23304 e.decorators = "container.decorators", 23305 a ? d.unshift(b) : d.unshift(this.nameLookup("partials", b, "partial")), 23306 this.options.compat && (e.depths = "depths"), 23307 e = this.objectLiteral(e), 23308 d.push(e), 23309 this.push(this.source.functionCall("container.invokePartial", "", d)) 23310 }, 23311 assignToHash: function(a) { 23312 var b = this.popStack() 23313 , c = void 0 23314 , d = void 0 23315 , e = void 0; 23316 this.trackIds && (e = this.popStack()), 23317 this.stringParams && (d = this.popStack(), 23318 c = this.popStack()); 23319 var f = this.hash; 23320 c && (f.contexts[a] = c), 23321 d && (f.types[a] = d), 23322 e && (f.ids[a] = e), 23323 f.values[a] = b 23324 }, 23325 pushId: function(a, b, c) { 23326 "BlockParam" === a ? this.pushStackLiteral("blockParams[" + b[0] + "].path[" + b[1] + "]" + (c ? " + " + JSON.stringify("." + c) : "")) : "PathExpression" === a ? this.pushString(b) : "SubExpression" === a ? this.pushStackLiteral("true") : this.pushStackLiteral("null") 23327 }, 23328 compiler: e, 23329 compileChildren: function(a, b) { 23330 for (var c = a.children, d = void 0, e = void 0, f = 0, g = c.length; f < g; f++) { 23331 d = c[f],
vendor: 5,283 bytes, lines 23332-23454
23332 e = new this.compiler; 23333 var h = this.matchExistingProgram(d); 23334 if (null == h) { 23335 this.context.programs.push(""); 23336 var i = this.context.programs.length; 23337 d.index = i, 23338 d.name = "program" + i, 23339 this.context.programs[i] = e.compile(d, b, this.context, !this.precompile), 23340 this.context.decorators[i] = e.decorators, 23341 this.context.environments[i] = d, 23342 this.useDepths = this.useDepths || e.useDepths, 23343 this.useBlockParams = this.useBlockParams || e.useBlockParams, 23344 d.useDepths = this.useDepths, 23345 d.useBlockParams = this.useBlockParams 23346 } else 23347 d.index = h.index, 23348 d.name = "program" + h.index, 23349 this.useDepths = this.useDepths || h.useDepths, 23350 this.useBlockParams = this.useBlockParams || h.useBlockParams 23351 } 23352 }, 23353 matchExistingProgram: function(a) { 23354 for (var b = 0, c = this.context.environments.length; b < c; b++) { 23355 var d = this.context.environments[b]; 23356 if (d && d.equals(a)) 23357 return d 23358 } 23359 }, 23360 programExpression: function(a) { 23361 var b = this.environment.children[a] 23362 , c = [b.index, "data", b.blockParams]; 23363 return (this.useBlockParams || this.useDepths) && c.push("blockParams"), 23364 this.useDepths && c.push("depths"), 23365 "container.program(" + c.join(", ") + ")" 23366 }, 23367 useRegister: function(a) { 23368 this.registers[a] || (this.registers[a] = !0, 23369 this.registers.list.push(a)) 23370 }, 23371 push: function(a) { 23372 return a instanceof d || (a = this.source.wrap(a)), 23373 this.inlineStack.push(a), 23374 a 23375 }, 23376 pushStackLiteral: function(a) { 23377 this.push(new d(a)) 23378 }, 23379 pushSource: function(a) { 23380 this.pendingContent && (this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent), this.pendingLocation)), 23381 this.pendingContent = void 0), 23382 a && this.source.push(a) 23383 }, 23384 replaceStack: function(a) { 23385 var b = ["("] 23386 , c = void 0 23387 , e = void 0 23388 , f = void 0; 23389 if (!this.isInline()) 23390 throw new k.default("replaceStack on non-inline"); 23391 var g = this.popStack(!0); 23392 if (g instanceof d) 23393 c = [g.value], 23394 b = ["(", c], 23395 f = !0; 23396 else { 23397 e = !0; 23398 var h = this.incrStack(); 23399 b = ["((", this.push(h), " = ", g, ")"], 23400 c = this.topStack() 23401 } 23402 var i = a.call(this, c); 23403 f || this.popStack(), 23404 e && this.stackSlot--, 23405 this.push(b.concat(i, ")")) 23406 }, 23407 incrStack: function() { 23408 return this.stackSlot++, 23409 this.stackSlot > this.stackVars.length && this.stackVars.push("stack" + this.stackSlot), 23410 this.topStackName() 23411 }, 23412 topStackName: function() { 23413 return "stack" + this.stackSlot 23414 }, 23415 flushInline: function() { 23416 var a = this.inlineStack; 23417 this.inlineStack = []; 23418 for (var b = 0, c = a.length; b < c; b++) { 23419 var e = a[b]; 23420 if (e instanceof d) 23421 this.compileStack.push(e); 23422 else { 23423 var f = this.incrStack(); 23424 this.pushSource([f, " = ", e, ";"]), 23425 this.compileStack.push(f) 23426 } 23427 } 23428 }, 23429 isInline: function() { 23430 return this.inlineStack.length 23431 }, 23432 popStack: function(a) { 23433 var b = this.isInline() 23434 , c = (b ? this.inlineStack : this.compileStack).pop(); 23435 if (!a && c instanceof d) 23436 return c.value; 23437 if (!b) { 23438 if (!this.stackSlot) 23439 throw new k.default("Invalid stack pop"); 23440 this.stackSlot-- 23441 } 23442 return c 23443 }, 23444 topStack: function() { 23445 var a = this.isInline() ? this.inlineStack : this.compileStack 23446 , b = a[a.length - 1]; 23447 return b instanceof d ? b.value : b 23448 }, 23449 contextName: function(a) { 23450 return this.useDepths && a ? "depths[" + a + "]" : "depth" + a 23451 }, 23452 quotedString: function(a) { 23453 return this.source.quotedString(a) 23454 },
vendor: 4,927 bytes, lines 23455-23575
23455 objectLiteral: function(a) { 23456 return this.source.objectLiteral(a) 23457 }, 23458 aliasable: function(a) { 23459 var b = this.aliases[a]; 23460 return b ? (b.referenceCount++, 23461 b) : (b = this.aliases[a] = this.source.wrap(a), 23462 b.aliasable = !0, 23463 b.referenceCount = 1, 23464 b) 23465 }, 23466 setupHelper: function(a, b, c) { 23467 var d = []; 23468 return { 23469 params: d, 23470 paramsInit: this.setupHelperArgs(b, a, d, c), 23471 name: this.nameLookup("helpers", b, "helper"), 23472 callParams: [this.aliasable(this.contextName(0) + " != null ? " + this.contextName(0) + " : (container.nullContext || {})")].concat(d) 23473 } 23474 }, 23475 setupParams: function(a, b, c) { 23476 var d = {} 23477 , e = [] 23478 , f = [] 23479 , g = [] 23480 , h = !c 23481 , i = void 0; 23482 h && (c = []), 23483 d.name = this.quotedString(a), 23484 d.hash = this.popStack(), 23485 this.trackIds && (d.hashIds = this.popStack()), 23486 this.stringParams && (d.hashTypes = this.popStack(), 23487 d.hashContexts = this.popStack()); 23488 var j = this.popStack() 23489 , k = this.popStack(); 23490 (k || j) && (d.fn = k || "container.noop", 23491 d.inverse = j || "container.noop"); 23492 for (var l = b; l--; ) 23493 i = this.popStack(), 23494 c[l] = i, 23495 this.trackIds && (g[l] = this.popStack()), 23496 this.stringParams && (f[l] = this.popStack(), 23497 e[l] = this.popStack()); 23498 return h && (d.args = this.source.generateArray(c)), 23499 this.trackIds && (d.ids = this.source.generateArray(g)), 23500 this.stringParams && (d.types = this.source.generateArray(f), 23501 d.contexts = this.source.generateArray(e)), 23502 this.options.data && (d.data = "data"), 23503 this.useBlockParams && (d.blockParams = "blockParams"), 23504 d 23505 }, 23506 setupHelperArgs: function(a, b, c, d) { 23507 var e = this.setupParams(a, b, c); 23508 return e.loc = JSON.stringify(this.source.currentLocation), 23509 e = this.objectLiteral(e), 23510 d ? (this.useRegister("options"), 23511 c.push("options"), 23512 ["options=", e]) : c ? (c.push(e), 23513 "") : e 23514 } 23515 }, 23516 function() { 23517 for (var a = "break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "), b = e.RESERVED_WORDS = {}, c = 0, d = a.length; c < d; c++) 23518 b[a[c]] = !0 23519 }(), 23520 e.isValidJavaScriptVariableName = function(a) { 23521 return !e.RESERVED_WORDS[a] && /^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(a) 23522 } 23523 , 23524 b.default = e, 23525 a.exports = b.default 23526 } 23527 , function(a, b, c) { 23528 "use strict"; 23529 function d(a, b, c) { 23530 if (g.isArray(a)) { 23531 for (var d = [], e = 0, f = a.length; e < f; e++) 23532 d.push(b.wrap(a[e], c)); 23533 return d 23534 } 23535 return "boolean" == typeof a || "number" == typeof a ? a + "" : a 23536 } 23537 function e(a) { 23538 this.srcFile = a, 23539 this.source = [] 23540 } 23541 var f = c(13).default; 23542 b.__esModule = !0; 23543 var g = c(5) 23544 , h = void 0; 23545 h || (h = function(a, b, c, d) { 23546 this.src = "", 23547 d && this.add(d) 23548 } 23549 , 23550 h.prototype = { 23551 add: function(a) { 23552 g.isArray(a) && (a = a.join("")), 23553 this.src += a 23554 }, 23555 prepend: function(a) { 23556 g.isArray(a) && (a = a.join("")), 23557 this.src = a + this.src 23558 }, 23559 toStringWithSourceMap: function() { 23560 return { 23561 code: this.toString() 23562 } 23563 }, 23564 toString: function() { 23565 return this.src 23566 } 23567 }), 23568 e.prototype = { 23569 isEmpty: function() { 23570 return !this.source.length 23571 }, 23572 prepend: function(a, b) { 23573 this.source.unshift(this.wrap(a, b)) 23574 }, 23575 push: function(a, b) {
vendor: 1,736 bytes, lines 23576-23616
23576 this.source.push(this.wrap(a, b)) 23577 }, 23578 merge: function() { 23579 var a = this.empty(); 23580 return this.each(function(b) { 23581 a.add([" ", b, "\n"]) 23582 }), 23583 a 23584 }, 23585 each: function(a) { 23586 for (var b = 0, c = this.source.length; b < c; b++) 23587 a(this.source[b]) 23588 }, 23589 empty: function() { 23590 var a = this.currentLocation || { 23591 start: {} 23592 }; 23593 return new h(a.start.line,a.start.column,this.srcFile) 23594 }, 23595 wrap: function(a) { 23596 var b = arguments.length <= 1 || void 0 === arguments[1] ? this.currentLocation || { 23597 start: {} 23598 } : arguments[1]; 23599 return a instanceof h ? a : (a = d(a, this, b), 23600 new h(b.start.line,b.start.column,this.srcFile,a)) 23601 }, 23602 functionCall: function(a, b, c) { 23603 return c = this.generateList(c), 23604 this.wrap([a, b ? "." + b + "(" : "(", c, ")"]) 23605 }, 23606 quotedString: function(a) { 23607 return '"' + (a + "").replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029") + '"' 23608 }, 23609 objectLiteral: function(a) { 23610 var b = this 23611 , c = []; 23612 f(a).forEach(function(e) { 23613 var f = d(a[e], b); 23614 "undefined" !== f && c.push([b.quotedString(e), ":", f]) 23615 }); 23616 var e = this.generateList(c);
23617 return e.prepend("{"), 23618 e.add("}"), 23619 e 23620 }, 23621 generateList: function(a) { 23622 for (var b = this.empty(), c = 0, e = a.length; c < e; c++) 23623 c && b.add(","), 23624 b.add(d(a[c], this)); 23625 return b 23626 }, 23627 generateArray: function(a) { 23628 var b = this.generateList(a); 23629 return b.prepend("["), 23630 b.add("]"), 23631 b 23632 } 23633 }, 23634 b.default = e, 23635 a.exports = b.default 23636 } 23637 ]) 23638}), 23639function(a) { 23640 var b = [] 23641 , c = [] 23642 , d = {}; 23643 Array.prototype.insert = function(a, b) { 23644 this.splice(a, 0, b) 23645 } 23646 , 23647 d.passwordListener = function(c, d) { 23648 var e = "" == d.passwordFiled ? ".disabledAutoFillPassword" : d.passwordFiled; 23649 c.find("[type=password]").length > 0 && c.find("[type=password]").attr("type", "text").addClass("disabledAutoFillPassword"), 23650 a(c).on("keyup", e, function() { 23651 for (var c = a(this).val(), e = c.length, f = this.selectionStart, g = 0; g < e; g++) 23652 "*" != c[g] && (void 0 === b[g] ? b[g] = c[g] : f != e && b.insert(f - 1, c[g])); 23653 a(this).val(c.replace(/./g, "*")), 23654 d.debugMode && (console.log("Current keyup position: " + f), 23655 console.log("Password length: " + e), 23656 console.log("Real password:"), 23657 console.log(b)) 23658 }) 23659 } 23660 , 23661 d.formSubmitListener = function(b, c) { 23662 var e = "" == c.submitButton ? ".disableAutoFillSubmit" : c.submitButton; 23663 a(b).on("click", e, function(a) { 23664 d.restoreInput(b, c), 23665 c.callback.call() && (c.debugMode ? console.log(b.serialize()) : b.submit()), 23666 c.randomizeInputName && d.randomizeInput(b, c), 23667 d.passwordListener(b, c) 23668 }) 23669 } 23670 , 23671 d.randomizeInput = function(b, d) { 23672 b.find("input").each(function(b) { 23673 c[b] = a(this).attr("name"), 23674 a(this).attr("name", Math.random().toString(36).replace(/[^a-z]+/g, "")) 23675 }) 23676 } 23677 , 23678 d.restoreInput = function(d, e) { 23679 e.randomizeInputName && d.find("input").each(function(b) { 23680 a(this).attr("name", c[b]) 23681 }), 23682 e.textToPassword && d.find(e.passwordFiled).attr("type", "password"), 23683 d.find(e.passwordFiled).val(b.join("")) 23684 } 23685 , 23686 a.fn.disableAutoFill = function(b) { 23687 var c = a.extend({}, a.fn.disableAutoFill.defaults, b); 23688 this.find("[type=submit]").length > 0 && this.find("[type=submit]").attr("type", "button").addClass("disableAutoFillSubmit"), 23689 this.attr("autocomplete", "off"), 23690 c.randomizeInputName && d.randomizeInput(this, c), 23691 d.passwordListener(this, c), 23692 d.formSubmitListener(this, c) 23693 } 23694 , 23695 a.fn.disableAutoFill.defaults = { 23696 debugMode: !1, 23697 textToPassword: !0, 23698 randomizeInputName: !0, 23699 passwordFiled: "", 23700 submitButton: "", 23701 callback: function() { 23702 return !0 23703 } 23704 } 23705}(jQuery), 23706function(a) { 23707 "use strict"; 23708 "function" == typeof define && define.amd ? define(["jquery"], a) : a("object" == typeof exports && "function" == typeof require ? require("jquery") : jQuery) 23709}(function(a) { 23710 "use strict"; 23711 function b(c, d) { 23712 var e = this; 23713 e.element = c, 23714 e.el = a(c), 23715 e.suggestions = [], 23716 e.badQueries = [], 23717 e.selectedIndex = -1, 23718 e.currentValue = e.element.value, 23719 e.timeoutId = null, 23720 e.cachedResponse = {}, 23721 e.onChangeTimeout = null, 23722 e.onChange = null, 23723 e.isLocal = !1, 23724 e.suggestionsContainer = null, 23725 e.noSuggestionsContainer = null, 23726 e.options = a.extend(!0, {}, b.defaults, d), 23727 e.classes = { 23728 selected: "autocomplete-selected", 23729 suggestion: "autocomplete-suggestion" 23730 }, 23731 e.hint = null, 23732 e.hintValue = "", 23733 e.selection = null, 23734 e.initialize(), 23735 e.setOptions(d) 23736 } 23737 function c(a, b, c) { 23738 return -1 !== a.value.toLowerCase().indexOf(c) 23739 } 23740 function d(b) { 23741 return "string" == typeof b ? a.parseJSON(b) : b 23742 } 23743 function e(a, b) { 23744 if (!b) 23745 return a.value; 23746 var c = "(" + g.escapeRegExChars(b) + ")"; 23747 return a.value.replace(new RegExp(c,"gi"), "<strong>$1</strong>").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/<(\/?strong)>/g, "<$1>") 23748 } 23749 function f(a, b) { 23750 return '<div class="autocomplete-group">' + b + "</div>" 23751 } 23752 var g = function() { 23753 return { 23754 escapeRegExChars: function(a) { 23755 return a.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&") 23756 }, 23757 createNode: function(a) { 23758 var b = document.createElement("div"); 23759 return b.className = a, 23760 b.style.position = "absolute", 23761 b.style.display = "none", 23762 b 23763 } 23764 } 23765 }() 23766 , h = { 23767 ESC: 27, 23768 TAB: 9, 23769 RETURN: 13, 23770 LEFT: 37, 23771 UP: 38, 23772 RIGHT: 39, 23773 DOWN: 40 23774 }
23775 , i = a.noop; 23776 b.utils = g, 23777 a.Autocomplete = b, 23778 b.defaults = { 23779 ajaxSettings: {}, 23780 autoSelectFirst: !1, 23781 appendTo: "body", 23782 serviceUrl: null, 23783 lookup: null, 23784 onSelect: null, 23785 width: "auto", 23786 minChars: 1, 23787 maxHeight: 300, 23788 deferRequestBy: 0, 23789 params: {}, 23790 formatResult: e, 23791 formatGroup: f, 23792 delimiter: null, 23793 zIndex: 9999, 23794 type: "GET", 23795 noCache: !1, 23796 onSearchStart: i, 23797 onSearchComplete: i, 23798 onSearchError: i, 23799 preserveInput: !1, 23800 containerClass: "autocomplete-suggestions", 23801 tabDisabled: !1, 23802 dataType: "text", 23803 currentRequest: null, 23804 triggerSelectOnValidInput: !0, 23805 preventBadQueries: !0, 23806 lookupFilter: c, 23807 paramName: "query", 23808 transformResult: d, 23809 showNoSuggestionNotice: !1, 23810 noSuggestionNotice: "No results", 23811 orientation: "bottom", 23812 forceFixPosition: !1 23813 }, 23814 b.prototype = { 23815 initialize: function() { 23816 var c, d = this, e = "." + d.classes.suggestion, f = d.classes.selected, g = d.options; 23817 d.element.setAttribute("autocomplete", "nope"), 23818 d.noSuggestionsContainer = a('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0), 23819 d.suggestionsContainer = b.utils.createNode(g.containerClass), 23820 c = a(d.suggestionsContainer), 23821 c.appendTo(g.appendTo || "body"), 23822 "auto" !== g.width && c.css("width", g.width), 23823 c.on("mouseover.autocomplete", e, function() { 23824 d.activate(a(this).data("index")) 23825 }), 23826 c.on("mouseout.autocomplete", function() { 23827 d.selectedIndex = -1, 23828 c.children("." + f).removeClass(f) 23829 }), 23830 c.on("click.autocomplete", e, function() { 23831 d.select(a(this).data("index")) 23832 }), 23833 c.on("click.autocomplete", function() { 23834 clearTimeout(d.blurTimeoutId) 23835 }), 23836 d.fixPositionCapture = function() { 23837 d.visible && d.fixPosition() 23838 } 23839 , 23840 a(window).on("resize.autocomplete", d.fixPositionCapture), 23841 d.el.on("keydown.autocomplete", function(a) { 23842 d.onKeyPress(a) 23843 }), 23844 d.el.on("keyup.autocomplete", function(a) { 23845 d.onKeyUp(a) 23846 }), 23847 d.el.on("blur.autocomplete", function() { 23848 d.onBlur() 23849 }), 23850 d.el.on("focus.autocomplete", function() { 23851 d.onFocus() 23852 }), 23853 d.el.on("change.autocomplete", function(a) { 23854 d.onKeyUp(a) 23855 }), 23856 d.el.on("input.autocomplete", function(a) { 23857 d.onKeyUp(a) 23858 }) 23859 }, 23860 onFocus: function() { 23861 var a = this; 23862 a.fixPosition(), 23863 a.el.val().length >= a.options.minChars && a.onValueChange() 23864 }, 23865 onBlur: function() { 23866 var a = this; 23867 a.blurTimeoutId = setTimeout(function() { 23868 a.hide() 23869 }, 200) 23870 }, 23871 abortAjax: function() { 23872 var a = this; 23873 a.currentRequest && (a.currentRequest.abort(), 23874 a.currentRequest = null) 23875 }, 23876 setOptions: function(b) { 23877 var c = this 23878 , d = a.extend({}, c.options, b); 23879 c.isLocal = Array.isArray(d.lookup), 23880 c.isLocal && (d.lookup = c.verifySuggestionsFormat(d.lookup)), 23881 d.orientation = c.validateOrientation(d.orientation, "bottom"), 23882 a(c.suggestionsContainer).css({ 23883 "max-height": d.maxHeight + "px", 23884 width: d.width + "px", 23885 "z-index": d.zIndex 23886 }), 23887 this.options = d 23888 }, 23889 clearCache: function() { 23890 this.cachedResponse = {}, 23891 this.badQueries = [] 23892 }, 23893 clear: function() { 23894 this.clearCache(), 23895 this.currentValue = "", 23896 this.suggestions = [] 23897 }, 23898 disable: function() { 23899 var a = this; 23900 a.disabled = !0, 23901 clearTimeout(a.onChangeTimeout), 23902 a.abortAjax() 23903 }, 23904 enable: function() { 23905 this.disabled = !1 23906 }, 23907 fixPosition: function() { 23908 var b = this 23909 , c = a(b.suggestionsContainer) 23910 , d = c.parent().get(0); 23911 if (d === document.body || b.options.forceFixPosition) { 23912 var e = b.options.orientation 23913 , f = c.outerHeight() 23914 , g = b.el.outerHeight() 23915 , h = b.el.offset() 23916 , i = { 23917 top: h.top, 23918 left: h.left 23919 }; 23920 if ("auto" === e) { 23921 var j = a(window).height() 23922 , k = a(window).scrollTop() 23923 , l = -k + h.top - f 23924 , m = k + j - (h.top + g + f); 23925 e = Math.max(l, m) === l ? "top" : "bottom" 23926 } 23927 if (i.top += "top" === e ? -f : g, 23928 d !== document.body) { 23929 var n, o = c.css("opacity"); 23930 b.visible || c.css("opacity", 0).show(), 23931 n = c.offsetParent().offset(), 23932 i.top -= n.top, 23933 i.top += d.scrollTop, 23934 i.left -= n.left, 23935 b.visible || c.css("opacity", o).hide() 23936 } 23937 "auto" === b.options.width && (i.width = b.el.outerWidth() + "px"), 23938 c.css(i) 23939 } 23940 }, 23941 isCursorAtEnd: function() { 23942 var a, b = this, c = b.el.val().length, d = b.element.selectionStart; 23943 return "number" == typeof d ? d === c : !document.selection || (a = document.selection.createRange(), 23944 a.moveStart("character", -c), 23945 c === a.text.length) 23946 }, 23947 onKeyPress: function(a) { 23948 var b = this; 23949 if (!b.disabled && !b.visible && a.which === h.DOWN && b.currentValue) 23950 return void b.suggest(); 23951 if (!b.disabled && b.visible) { 23952 switch (a.which) { 23953 case h.ESC: 23954 b.el.val(b.currentValue), 23955 b.hide(); 23956 break; 23957 case h.RIGHT: 23958 if (b.hint && b.options.onHint && b.isCursorAtEnd()) { 23959 b.selectHint(); 23960 break 23961 } 23962 return; 23963 case h.TAB: 23964 if (b.hint && b.options.onHint) 23965 return void b.selectHint(); 23966 if (-1 === b.selectedIndex) 23967 return void b.hide(); 23968 if (b.select(b.selectedIndex), 23969 !1 === b.options.tabDisabled) 23970 return; 23971 break; 23972 case h.RETURN: 23973 if (-1 === b.selectedIndex) 23974 return void b.hide(); 23975 b.select(b.selectedIndex); 23976 break; 23977 case h.UP: 23978 b.moveUp(); 23979 break; 23980 case h.DOWN: 23981 b.moveDown(); 23982 break; 23983 default: 23984 return 23985 } 23986 a.stopImmediatePropagation(), 23987 a.preventDefault() 23988 } 23989 }, 23990 onKeyUp: function(a) { 23991 var b = this; 23992 if (!b.disabled) { 23993 switch (a.which) { 23994 case h.UP: 23995 case h.DOWN: 23996 return 23997 } 23998 clearTimeout(b.onChangeTimeout), 23999 b.currentValue !== b.el.val() && (b.findBestHint(), 24000 b.options.deferRequestBy > 0 ? b.onChangeTimeout = setTimeout(function() { 24001 b.onValueChange() 24002 }, b.options.deferRequestBy) : b.onValueChange()) 24003 } 24004 }, 24005 onValueChange: function() { 24006 if (this.ignoreValueChange) 24007 return void (this.ignoreValueChange = !1); 24008 var b = this 24009 , c = b.options 24010 , d = b.el.val() 24011 , e = b.getQuery(d); 24012 return b.selection && b.currentValue !== e && (b.selection = null, 24013 (c.onInvalidateSelection || a.noop).call(b.element)), 24014 clearTimeout(b.onChangeTimeout), 24015 b.currentValue = d, 24016 b.selectedIndex = -1, 24017 c.triggerSelectOnValidInput && b.isExactMatch(e) ? void b.select(0) : void (e.length < c.minChars ? b.hide() : b.getSuggestions(e)) 24018 }, 24019 isExactMatch: function(a) { 24020 var b = this.suggestions; 24021 return 1 === b.length && b[0].value.toLowerCase() === a.toLowerCase() 24022 }, 24023 getQuery: function(b) { 24024 var c, d = this.options.delimiter; 24025 return d ? (c = b.split(d), 24026 a.trim(c[c.length - 1])) : b 24027 }, 24028 getSuggestionsLocal: function(b) { 24029 var c, d = this, e = d.options, f = b.toLowerCase(), g = e.lookupFilter, h = parseInt(e.lookupLimit, 10); 24030 return c = { 24031 suggestions: a.grep(e.lookup, function(a) { 24032 return g(a, b, f) 24033 }) 24034 }, 24035 h && c.suggestions.length > h && (c.suggestions = c.suggestions.slice(0, h)), 24036 c 24037 }, 24038 getSuggestions: function(b) { 24039 var c, d, e, f, g = this, h = g.options, i = h.serviceUrl; 24040 if (h.params[h.paramName] = b, 24041 !1 !== h.onSearchStart.call(g.element, h.params)) { 24042 if (d = h.ignoreParams ? null : h.params, 24043 a.isFunction(h.lookup)) 24044 return void h.lookup(b, function(a) { 24045 g.suggestions = a.suggestions, 24046 g.suggest(), 24047 h.onSearchComplete.call(g.element, b, a.suggestions) 24048 }); 24049 g.isLocal ? c = g.getSuggestionsLocal(b) : (a.isFunction(i) && (i = i.call(g.element, b)), 24050 e = i + "?" + a.param(d || {}), 24051 c = g.cachedResponse[e]), 24052 c && Array.isArray(c.suggestions) ? (g.suggestions = c.suggestions, 24053 g.suggest(), 24054 h.onSearchComplete.call(g.element, b, c.suggestions)) : g.isBadQuery(b) ? h.onSearchComplete.call(g.element, b, []) : (g.abortAjax(), 24055 f = { 24056 url: i, 24057 data: d, 24058 type: h.type, 24059 dataType: h.dataType 24060 }, 24061 a.extend(f, h.ajaxSettings), 24062 g.currentRequest = a.ajax(f).done(function(a) { 24063 var c; 24064 g.currentRequest = null, 24065 c = h.transformResult(a, b), 24066 g.processResponse(c, b, e), 24067 h.onSearchComplete.call(g.element, b, c.suggestions) 24068 }).fail(function(a, c, d) { 24069 h.onSearchError.call(g.element, b, a, c, d) 24070 })) 24071 } 24072 }, 24073 isBadQuery: function(a) { 24074 if (!this.options.preventBadQueries) 24075 return !1; 24076 for (var b = this.badQueries, c = b.length; c--; ) 24077 if (0 === a.indexOf(b[c])) 24078 return !0; 24079 return !1 24080 }, 24081 hide: function() { 24082 var b = this 24083 , c = a(b.suggestionsContainer); 24084 a.isFunction(b.options.onHide) && b.visible && b.options.onHide.call(b.element, c), 24085 b.visible = !1, 24086 b.selectedIndex = -1, 24087 clearTimeout(b.onChangeTimeout), 24088 a(b.suggestionsContainer).hide(), 24089 b.signalHint(null) 24090 }, 24091 suggest: function() { 24092 if (!this.suggestions.length) 24093 return void (this.options.showNoSuggestionNotice ? this.noSuggestions() : this.hide()); 24094 var b, c = this, d = c.options, e = d.groupBy, f = d.formatResult, g = c.getQuery(c.currentValue), h
24094= c.classes.suggestion, i = c.classes.selected, j = a(c.suggestionsContainer), k = a(c.noSuggestionsContainer), l = d.beforeRender, m = "", n = function(a, c) { 24095 var f = a.data[e]; 24096 return b === f ? "" : (b = f, 24097 d.formatGroup(a, b)) 24098 }; 24099 return d.triggerSelectOnValidInput && c.isExactMatch(g) ? void c.select(0) : (a.each(c.suggestions, function(a, b) { 24100 e && (m += n(b, g, a)), 24101 m += '<div class="' + h + '" data-index="' + a + '">' + f(b, g, a) + "</div>" 24102 }), 24103 this.adjustContainerWidth(), 24104 k.detach(), 24105 j.html(m), 24106 a.isFunction(l) && l.call(c.element, j, c.suggestions), 24107 c.fixPosition(), 24108 j.show(), 24109 d.autoSelectFirst && (c.selectedIndex = 0, 24110 j.scrollTop(0), 24111 j.children("." + h).first().addClass(i)), 24112 c.visible = !0, 24113 void c.findBestHint()) 24114 }, 24115 noSuggestions: function() { 24116 var b = this 24117 , c = b.options.beforeRender 24118 , d = a(b.suggestionsContainer) 24119 , e = a(b.noSuggestionsContainer); 24120 this.adjustContainerWidth(), 24121 e.detach(), 24122 d.empty(), 24123 d.append(e), 24124 a.isFunction(c) && c.call(b.element, d, b.suggestions), 24125 b.fixPosition(), 24126 d.show(), 24127 b.visible = !0 24128 }, 24129 adjustContainerWidth: function() { 24130 var b, c = this, d = c.options, e = a(c.suggestionsContainer); 24131 "auto" === d.width ? (b = c.el.outerWidth(), 24132 e.css("width", b > 0 ? b : 300)) : "flex" === d.width && e.css("width", "") 24133 }, 24134 findBestHint: function() { 24135 var b = this 24136 , c = b.el.val().toLowerCase() 24137 , d = null; 24138 c && (a.each(b.suggestions, function(a, b) { 24139 var e = 0 === b.value.toLowerCase().indexOf(c); 24140 return e && (d = b), 24141 !e 24142 }), 24143 b.signalHint(d)) 24144 }, 24145 signalHint: function(b) { 24146 var c = "" 24147 , d = this; 24148 b && (c = d.currentValue + b.value.substr(d.currentValue.length)), 24149 d.hintValue !== c && (d.hintValue = c, 24150 d.hint = b, 24151 (this.options.onHint || a.noop)(c)) 24152 }, 24153 verifySuggestionsFormat: function(b) { 24154 return b.length && "string" == typeof b[0] ? a.map(b, function(a) { 24155 return { 24156 value: a, 24157 data: null 24158 } 24159 }) : b 24160 }, 24161 validateOrientation: function(b, c) { 24162 return b = a.trim(b || "").toLowerCase(), 24163 -1 === a.inArray(b, ["auto", "bottom", "top"]) && (b = c), 24164 b 24165 }, 24166 processResponse: function(a, b, c) { 24167 var d = this 24168 , e = d.options; 24169 a.suggestions = d.verifySuggestionsFormat(a.suggestions), 24170 e.noCache || (d.cachedResponse[c] = a, 24171 e.preventBadQueries && !a.suggestions.length && d.badQueries.push(b)), 24172 b === d.getQuery(d.currentValue) && (d.suggestions = a.suggestions, 24173 d.suggest()) 24174 }, 24175 activate: function(b) { 24176 var c, d = this, e = d.classes.selected, f = a(d.suggestionsContainer), g = f.find("." + d.classes.suggestion); 24177 return f.find("." + e).removeClass(e), 24178 d.selectedIndex = b, 24179 -1 !== d.selectedIndex && g.length > d.selectedIndex ? (c = g.get(d.selectedIndex), 24180 a(c).addClass(e), 24181 c) : null 24182 }, 24183 selectHint: function() { 24184 var b = this 24185 , c = a.inArray(b.hint, b.suggestions); 24186 b.select(c) 24187 }, 24188 select: function(a) { 24189 var b = this; 24190 b.hide(), 24191 b.onSelect(a) 24192 }, 24193 moveUp: function() { 24194 var b = this; 24195 if (-1 !== b.selectedIndex) 24196 return 0 === b.selectedIndex ? (a(b.suggestionsContainer).children("." + b.classes.suggestion).first().removeClass(b.classes.selected), 24197 b.selectedIndex = -1, 24198 b.ignoreValueChange = !1, 24199 b.el.val(b.currentValue), 24200 void b.findBestHint()) : void b.adjustScroll(b.selectedIndex - 1) 24201 }, 24202 moveDown: function() { 24203 var a = this; 24204 a.selectedIndex !== a.suggestions.length - 1 && a.adjustScroll(a.selectedIndex + 1) 24205 }, 24206 adjustScroll: function(b) { 24207 var c = this 24208 , d = c.activate(b); 24209 if (d) { 24210 var e, f, g, h = a(d).outerHeight(); 24211 e = d.offsetTop, 24212 f = a(c.suggestionsContainer).scrollTop(), 24213 g = f + c.options.maxHeight - h, 24214 e < f ? a(c.suggestionsContainer).scrollTop(e) : e > g && a(c.suggestionsContainer).scrollTop(e - c.options.maxHeight + h), 24215 c.options.preserveInput || (c.ignoreValueChange = !0, 24216 c.el.val(c.getValue(c.suggestions[b].value))), 24217 c.signalHint(null) 24218 } 24219 }, 24220 onSelect: function(b) { 24221 var c = this 24222 , d = c.options.onSelect 24223 , e = c.suggestions[b]; 24224 c.currentValue = c.getValue(e.value), 24225 c.currentValue === c.el.val() || c.options.preserveInput || c.el.val(c.currentValue), 24226 c.signalHint(null), 24227 c.suggestions = [], 24228 c.selection = e, 24229 a.isFunction(d) && d.call(c.element, e) 24230 }, 24231 getValue: function(a) { 24232 var b, c, d = this, e = d.options.delimiter; 24233 return e ? (b = d.currentValue, 24234 c = b.split(e), 24235 1 === c.length ? a : b.substr(0, b.length - c[c.length - 1].length) + a) : a 24236 }, 24237 dispose: function() { 24238 var b = this; 24239 b.el.off(".autocomplete").removeData("autocomplete"), 24240 a(window).off("resize.autocomplete", b.fixPositionCapture), 24241 a(b.suggestionsContainer).remove() 24242 } 24243 }, 24244 a.fn.devbridgeAutocomplete = function(c, d) { 24245 var e = "autocomplete"; 24246 return arguments.length ? this.each(function() { 24247 var f = a(this) 24248 , g = f.data(e); 24249 "string" == typeof c ? g && "function" == typeof g[c] && g[c](d) : (g && g.dispose && g.dispose(), 24250 g = new b(this,c), 24251 f.data(e, g)) 24252 }) : this.first().data(e) 24253 } 24254 , 24255 a.fn.autocomplete || (a.fn.autocomplete = a.fn.devbridgeAutocomplete) 24256}), 24257"undefined" != typeof Cookies) { 24258 if (void 0 === Currency) 24259 var Currency = {}; 24260 Currency.cookie = { 24261 configuration: { 24262 expires: 365, 24263 path: "/", 24264 domain: window.location.hostname 24265 }, 24266 name: "currency", 24267 write: function(a) { 24268 Cookies(this.name, a, this.configuration) 24269 }, 24270 read: function() { 24271 return Cookies(this.name) 24272 }, 24273 destroy: function() { 24274 Cookies(this.name, null, this.configuration) 24275 } 24276 }, 24277 Currency.moneyFormats = { 24278 USD: { 24279 money_format: "${{amount}}", 24280 money_with_currency_format: "${{amount}} USD" 24281 }, 24282 EUR: { 24283 money_format: "€{{amount}}", 24284 money_with_currency_format: "€{{amount}} EUR" 24285 }, 24286 GBP: { 24287 money_format: "£{{amount}}", 24288 money_with_currency_format: "£{{amount}} GBP" 24289 }, 24290 CAD: { 24291 money_format: "${{amount}}", 24292 money_with_currency_format: "${{amount}} CAD" 24293 }, 24294 ALL: { 24295 money_format: "Lek {{amount}}", 24296 money_with_currency_format: "Lek {{amount}} ALL" 24297 }, 24298 DZD: { 24299 money_format: "DA {{amount}}", 24300 money_with_currency_format: "DA {{amount}} DZD" 24301 }, 24302 AOA: { 24303 money_format: "Kz{{amount}}", 24304 money_with_currency_format: "Kz{{amount}} AOA" 24305 }, 24306 ARS: { 24307 money_format: "${{amount_with_comma_separator}}", 24308 money_with_currency_format: "${{amount_with_comma_separator}} ARS" 24309 }, 24310 AMD: { 24311 money_format: "{{amount}} AMD", 24312 money_with_currency_format: "{{amount}} AMD" 24313 }, 24314 AWG: { 24315 money_format: "Afl{{amount}}", 24316 money_with_currency_format: "Afl{{amount}} AWG" 24317 }, 24318 AUD: { 24319 money_format: "${{amount}}", 24320 money_with_currency_format: "${{amount}} AUD" 24321 }, 24322 BBD: { 24323 money_format: "${{amount}}", 24324 money_with_currency_format: "${{amount}} Bds" 24325 }, 24326 AZN: { 24327 money_format: "m.{{amount}}", 24328 money_with_currency_format: "m.{{amount}} AZN" 24329 }, 24330 BDT: { 24331 money_format: "Tk {{amount}}", 24332 money_with_currency_format: "Tk {{amount}} BDT" 24333 }, 24334 BSD: { 24335 money_format: "BS${{amount}}", 24336 money_with_currency_format: "BS${{amount}} BSD" 24337 }, 24338 BHD: { 24339 money_format: "{{amount}}0 BD", 24340 money_with_currency_format: "{{amount}}0 BHD" 24341 }, 24342 BYR: { 24343 money_format: "Br {{amount}}", 24344 money_with_currency_format: "Br {{amount}} BYR" 24345 }, 24346 BZD: { 24347 money_format: "BZ${{amount}}", 24348 money_with_currency_format: "BZ${{amount}} BZD" 24349 }, 24350 BTN: { 24351 money_format: "Nu {{amount}}", 24352 money_with_currency_format: "Nu {{amount}} BTN" 24353 }, 24354 BAM: { 24355 money_format: "KM {{amount_with_comma_separator}}", 24356 money_with_currency_format: "KM {{amount_with_comma_separator}} BAM" 24357 }, 24358 BRL: { 24359 money_format: "R$ {{amount_with_comma_separator}}", 24360 money_with_currency_format: "R$ {{amount_with_comma_separator}} BRL" 24361 }, 24362 BOB: { 24363 money_format: "Bs{{amount_with_comma_separator}}", 24364 money_with_currency_format: "Bs{{amount_with_comma_separator}} BOB" 24365 }, 24366 BWP: { 24367 money_format: "P{{amount}}", 24368 money_with_currency_format: "P{{amount}} BWP" 24369 }, 24370 BND: { 24371 money_format: "${{amount}}", 24372 money_with_currency_format: "${{amount}} BND" 24373 }, 24374 BGN: { 24375 money_format: "{{amount}} лв", 24376 money_with_currency_format: "{{amount}} лв BGN" 24377 }, 24378 MMK: { 24379 money_format: "K{{amount}}", 24380 money_with_currency_format: "K{{amount}} MMK" 24381 }, 24382 KHR: { 24383 money_format: "KHR{{amount}}", 24384 money_with_currency_format: "KHR{{amount}}" 24385 }, 24386 KYD: { 24387 money_format: "${{amount}}", 24388 money_with_currency_format: "${{amount}} KYD" 24389 }, 24390 XAF: { 24391 money_format: "FCFA{{amount}}", 24392 money_with_currency_format: "FCFA{{amount}} XAF" 24393 }, 24394 CLP: { 24395 money_format: "${{amount_no_decimals}}", 24396 money_with_currency_format: "${{amount_no_decimals}} CLP" 24397 }, 24398 CNY: { 24399 money_format: "¥{{amount}}", 24400 money_with_currency_format: "¥{{amount}} CNY" 24401 }, 24402 COP: { 24403 money_format: "${{amount_with_comma_separator}}", 24404 money_with_currency_format: "${{amount_with_comma_separator}} COP" 24405 }, 24406 CRC: { 24407 money_format: "₡ {{amount_with_comma_separator}}", 24408 money_with_currency_format: "₡ {{amount_with_comma_separator}} CRC" 24409 }, 24410 HRK: { 24411 money_format: "{{amount_with_comma_separator}} kn", 24412 money_with_currency_format: "{{amount_with_comma_separator}} kn HRK" 24413 }, 24414 CZK: { 24415 money_format: "{{amount_with_comma_separator}} Kč", 24416 money_with_currency_format: "{{amount_with_comma_separator}} Kč" 24417 }, 24418 DKK: { 24419 money_format: "{{amount_with_comma_separator}}", 24420 money_with_currency_format: "kr.{{amount_with_comma_separator}}" 24421 }, 24422 DOP: { 24423 money_format: "RD$ {{amount}}", 24424 money_with_currency_format: "RD$ {{amount}}" 24425 }, 24426 XCD: { 24427 money_format: "${{amount}}", 24428 money_with_currency_format: "EC${{amount}}" 24429 }, 24430 EGP: { 24431 money_format: "LE {{amount}}", 24432 money_with_currency_format: "LE {{amount}} EGP" 24433 }, 24434 ETB: { 24435 money_format: "Br{{amount}}", 24436 money_with_currency_format: "Br{{amount}} ETB" 24437 }, 24438 XPF: { 24439 money_format: "{{amount_no_decimals_with_comma_separator}} XPF", 24440 money_with_currency_format: "{{amount_no_decimals_with_comma_separator}} XPF" 24441 }, 24442 FJD: { 24443 money_format: "${{amount}}", 24444 money_with_currency_format: "FJ${{amount}}" 24445 }, 24446 GMD: { 24447 money_format: "D {{amount}}", 24448 money_with_currency_format: "D {{amount}} GMD" 24449 }, 24450 GHS: { 24451 money_format: "GH₵{{amount}}", 24452 money_with_currency_format: "GH₵{{amount}}" 24453 }, 24454 GTQ: { 24455 money_format: "Q{{amount}}", 24456 money_with_currency_format: "{{amount}} GTQ" 24457 }, 24458 GYD: { 24459 money_format: "G${{amount}}", 24460 money_with_currency_format: "${{amount}} GYD" 24461 }, 24462 GEL: { 24463 money_format: "{{amount}} GEL", 24464 money_with_currency_format: "{{amount}} GEL" 24465 }, 24466 HNL: { 24467 money_format: "L {{amount}}", 24468 money_with_currency_format: "L {{amount}} HNL" 24469 }, 24470 HKD: { 24471 money_format: "${{amount}}", 24472 money_with_currency_format: "HK${{amount}}" 24473 }, 24474 HUF: { 24475 money_format: "{{amount_no_decimals_with_comma_separator}}", 24476 money_with_currency_format: "{{amount_no_decimals_with_comma_separator}} Ft" 24477 }, 24478 ISK: { 24479 money_format: "{{amount_no_decimals}} kr", 24480 money_with_currency_format: "{{amount_no_decimals}} kr ISK" 24481 }, 24482 INR: { 24483 money_format: "Rs. {{amount}}", 24484 money_with_currency_format: "Rs. {{amount}}" 24485 }, 24486 IDR: { 24487 money_format: "{{amount_with_comma_separator}}", 24488 money_with_currency_format: "Rp {{amount_with_comma_separator}}" 24489 }, 24490 ILS: { 24491 money_format: "{{amount}} NIS", 24492 money_with_currency_format: "{{amount}} NIS" 24493 }, 24494 JMD: { 24495 money_format: "${{amount}}", 24496 money_with_currency_format: "${{amount}} JMD" 24497 }, 24498 JPY: { 24499 money_format: "¥{{amount_no_decimals}}", 24500 money_with_currency_format: "¥{{amount_no_decimals}} JPY" 24501 }, 24502 JEP: { 24503 money_format: "£{{amount}}", 24504 money_with_currency_format: "£{{amount}} JEP" 24505 }, 24506 JOD: { 24507 money_format: "{{amount}}0 JD", 24508 money_with_currency_format: "{{amount}}0 JOD" 24509 }, 24510 KZT: { 24511 money_format: "{{amount}} KZT", 24512 money_with_currency_format: "{{amount}} KZT" 24513 }, 24514 KES: { 24515 money_format: "KSh{{amount}}", 24516 money_with_currency_format: "KSh{{amount}}" 24517 }, 24518 KWD: { 24519 money_format: "{{amount}}0 KD", 24520 money_with_currency_format: "{{amount}}0 KWD" 24521 }, 24522 KGS: { 24523 money_format: "лв{{amount}}", 24524 money_with_currency_format: "лв{{amount}}" 24525 }, 24526 LVL: { 24527 money_format: "Ls {{amount}}", 24528 money_with_currency_format: "Ls {{amount}} LVL" 24529 }, 24530 LBP: { 24531 money_format: "L£{{amount}}", 24532 money_with_currency_format: "L£{{amount}} LBP" 24533 }, 24534 LTL: { 24535 money_format: "{{amount}} Lt", 24536 money_with_currency_format: "{{amount}} Lt" 24537 }, 24538 MGA: { 24539 money_format: "Ar {{amount}}", 24540 money_with_currency_format: "Ar {{amount}} MGA" 24541 }, 24542 MKD: { 24543 money_format: "ден {{amount}}", 24544 money_with_
24544currency_format: "ден {{amount}} MKD" 24545 }, 24546 MOP: { 24547 money_format: "MOP${{amount}}", 24548 money_with_currency_format: "MOP${{amount}}" 24549 }, 24550 MVR: { 24551 money_format: "Rf{{amount}}", 24552 money_with_currency_format: "Rf{{amount}} MRf" 24553 }, 24554 MXN: { 24555 money_format: "$ {{amount}}", 24556 money_with_currency_format: "$ {{amount}} MXN" 24557 }, 24558 MYR: { 24559 money_format: "RM{{amount}} MYR", 24560 money_with_currency_format: "RM{{amount}} MYR" 24561 }, 24562 MUR: { 24563 money_format: "Rs {{amount}}", 24564 money_with_currency_format: "Rs {{amount}} MUR" 24565 }, 24566 MDL: { 24567 money_format: "{{amount}} MDL", 24568 money_with_currency_format: "{{amount}} MDL" 24569 }, 24570 MAD: { 24571 money_format: "{{amount}} dh", 24572 money_with_currency_format: "Dh {{amount}} MAD" 24573 }, 24574 MNT: { 24575 money_format: "{{amount_no_decimals}} ₮", 24576 money_with_currency_format: "{{amount_no_decimals}} MNT" 24577 }, 24578 MZN: { 24579 money_format: "{{amount}} Mt", 24580 money_with_currency_format: "Mt {{amount}} MZN" 24581 }, 24582 NAD: { 24583 money_format: "N${{amount}}", 24584 money_with_currency_format: "N${{amount}} NAD" 24585 }, 24586 NPR: { 24587 money_format: "Rs{{amount}}", 24588 money_with_currency_format: "Rs{{amount}} NPR" 24589 }, 24590 ANG: { 24591 money_format: "ƒ{{amount}}", 24592 money_with_currency_format: "{{amount}} NAƒ" 24593 }, 24594 NZD: { 24595 money_format: "${{amount}}", 24596 money_with_currency_format: "${{amount}} NZD" 24597 }, 24598 NIO: { 24599 money_format: "C${{amount}}", 24600 money_with_currency_format: "C${{amount}} NIO" 24601 }, 24602 NGN: { 24603 money_format: "₦{{amount}}", 24604 money_with_currency_format: "₦{{amount}} NGN" 24605 }, 24606 NOK: { 24607 money_format: "kr {{amount_with_comma_separator}}", 24608 money_with_currency_format: "kr {{amount_with_comma_separator}} NOK" 24609 }, 24610 OMR: { 24611 money_format: "{{amount_with_comma_separator}} OMR", 24612 money_with_currency_format: "{{amount_with_comma_separator}} OMR" 24613 }, 24614 PKR: { 24615 money_format: "Rs.{{amount}}", 24616 money_with_currency_format: "Rs.{{amount}} PKR" 24617 }, 24618 PGK: { 24619 money_format: "K {{amount}}", 24620 money_with_currency_format: "K {{amount}} PGK" 24621 }, 24622 PYG: { 24623 money_format: "Gs. {{amount_no_decimals_with_comma_separator}}", 24624 money_with_currency_format: "Gs. {{amount_no_decimals_with_comma_separator}} PYG" 24625 }, 24626 PEN: { 24627 money_format: "S/. {{amount}}", 24628 money_with_currency_format: "S/. {{amount}} PEN" 24629 }, 24630 PHP: { 24631 money_format: "₱{{amount}}", 24632 money_with_currency_format: "₱{{amount}} PHP" 24633 }, 24634 PLN: { 24635 money_format: "{{amount_with_comma_separator}} zl", 24636 money_with_currency_format: "{{amount_with_comma_separator}} zl PLN" 24637 }, 24638 QAR: { 24639 money_format: "QAR {{amount_with_comma_separator}}", 24640 money_with_currency_format: "QAR {{amount_with_comma_separator}}" 24641 }, 24642 RON: { 24643 money_format: "{{amount_with_comma_separator}} lei", 24644 money_with_currency_format: "{{amount_with_comma_separator}} lei RON" 24645 }, 24646 RUB: { 24647 money_format: "руб{{amount_with_comma_separator}}", 24648 money_with_currency_format: "руб{{amount_with_comma_separator}} RUB" 24649 }, 24650 RWF: { 24651 money_format: "{{amount_no_decimals}} RF", 24652 money_with_currency_format: "{{amount_no_decimals}} RWF" 24653 }, 24654 WST: { 24655 money_format: "WS$ {{amount}}", 24656 money_with_currency_format: "WS$ {{amount}} WST" 24657 }, 24658 SAR: { 24659 money_format: "{{amount}} SR", 24660 money_with_currency_format: "{{amount}} SAR" 24661 }, 24662 STD: { 24663 money_format: "Db {{amount}}", 24664 money_with_currency_format: "Db {{amount}} STD" 24665 }, 24666 RSD: { 24667 money_format: "{{amount}} RSD", 24668 money_with_currency_format: "{{amount}} RSD" 24669 }, 24670 SCR: { 24671 money_format: "Rs {{amount}}", 24672 money_with_currency_format: "Rs {{amount}} SCR" 24673 }, 24674 SGD: { 24675 money_format: "${{amount}}", 24676 money_with_currency_format: "${{amount}} SGD" 24677 }, 24678 SYP: { 24679 money_format: "S£{{amount}}", 24680 money_with_currency_format: "S£{{amount}} SYP" 24681 }, 24682 ZAR: { 24683 money_format: "R {{amount}}", 24684 money_with_currency_format: "R {{amount}} ZAR" 24685 }, 24686 KRW: { 24687 money_format: "₩{{amount_no_decimals}}", 24688 money_with_currency_format: "₩{{amount_no_decimals}} KRW" 24689 }, 24690 LKR: { 24691 money_format: "Rs {{amount}}", 24692 money_with_currency_format: "Rs {{amount}} LKR" 24693 }, 24694 SEK: { 24695 money_format: "{{amount_no_decimals}} kr", 24696 money_with_currency_format: "{{amount_no_decimals}} kr SEK" 24697 }, 24698 CHF: { 24699 money_format: "SFr. {{amount}}", 24700 money_with_currency_format: "SFr. {{amount}} CHF" 24701 }, 24702 TWD: { 24703 money_format: "${{amount}}", 24704 money_with_currency_format: "${{amount}} TWD" 24705 }, 24706 THB: { 24707 money_format: "{{amount}} ฿", 24708 money_with_currency_format: "{{amount}} ฿ THB" 24709 }, 24710 TZS: { 24711 money_format: "{{amount}} TZS", 24712 money_with_currency_format: "{{amount}} TZS" 24713 }, 24714 TTD: { 24715 money_format: "${{amount}}", 24716 money_with_currency_format: "${{amount}} TTD" 24717 }, 24718 TND: { 24719 money_format: "{{amount}}", 24720 money_with_currency_format: "{{amount}} DT" 24721 }, 24722 TRY: { 24723 money_format: "{{amount}}TL", 24724 money_with_currency_format: "{{amount}}TL" 24725 }, 24726 UGX: { 24727 money_format: "Ush {{amount_no_decimals}}", 24728 money_with_currency_format: "Ush {{amount_no_decimals}} UGX" 24729 }, 24730 UAH: { 24731 money_format: "â´{{amount}}", 24732 money_with_currency_format: "â´{{amount}} UAH" 24733 }, 24734 AED: { 24735 money_format: "Dhs. {{amount}}", 24736 money_with_currency_format: "Dhs. {{amount}} AED" 24737 }, 24738 UYU: { 24739 money_format: "${{amount_with_comma_separator}}", 24740 money_with_currency_format: "${{amount_with_comma_separator}} UYU" 24741 }, 24742 VUV: { 24743 money_format: "${{amount}}", 24744 money_with_currency_format: "${{amount}}VT" 24745 }, 24746 VEF: { 24747 money_format: "Bs. {{amount_with_comma_separator}}", 24748 money_with_currency_format: "Bs. {{amount_with_comma_separator}} VEF" 24749 }, 24750 VND: { 24751 money_format: "{{amount_no_decimals_with_comma_separator}}₫", 24752 money_with_currency_format: "{{amount_no_decimals_with_comma_separator}} VND" 24753 }, 24754 XBT: { 24755 money_format: "{{amount_no_decimals}} BTC", 24756 money_with_currency_format: "{{amount_no_decimals}} BTC" 24757 }, 24758 XOF: { 24759 money_format: "CFA{{amount}}", 24760 money_with_currency_format: "CFA{{amount}} XOF" 24761 }, 24762 ZMW: { 24763 money_format: "K{{amount_no_decimals_with_comma_separator}}", 24764 money_with_currency_format: "ZMW{{amount_no_decimals_with_comma_separator}}" 24765 } 24766 }, 24767 Currency.formatMoney = function(a, b) { 24768 function c(a, b) { 24769 return void 0 === a ? b : a 24770 } 24771 function d(a, b, d, e) { 24772 if (b = c(b, 2), 24773 d = c(d, ","), 24774 e = c(e, "."), 24775 isNaN(a) || null == a) 24776 return 0; 24777 a = (a / 100).toFixed(b); 24778 var f = a.split("."); 24779 return f[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1" + d) + (f[1] ? e + f[1] : "") 24780 } 24781 if ("function" == typeof Shopify.formatMoney) 24782 return Shopify.formatMoney(a, b); 24783 "string" == typeof a && (a = a.replace(".", "")); 24784 var e = "" 24785 , f = /\{\{\s*(\w+)\s*\}\}/ 24786 , g = b || "${{amount}}"; 24787 switch (g.match(f)[1]) { 24788 case "amount": 24789 e = d(a, 2); 24790 break; 24791 case "amount_no_decimals": 24792 e = d(a, 0); 24793 break; 24794 case "amount_with_comma_separator": 24795 e = d(a, 2, ".", ","); 24796 break; 24797 case "amount_no_decimals_with_comma_separator": 24798 e = d(a, 0, ".", ",") 24799 } 24800 return g.replace(f, e) 24801 } 24802 , 24803 Currency.currentCurrency = "", 24804 Currency.format = "money_with_currency_format", 24805 Currency.convertAll = function(a, b, c, d) { 24806 jQuery(c || "span.money").each(function() { 24807 if (jQuery(this).attr("data-currency") !== b) { 24808 if (jQuery(this).attr("data-currency-" + b)) 24809 jQuery(this).html(jQuery(this).attr("data-currency-" + b)); 24810 else { 24811 var c = 0 24812 , e = Currency.moneyFormats[a][d || Currency.format] || "{{amount}}" 24813 , f = Currency.moneyFormats[b][d || Currency.format] || "{{amount}}"; 24814 c = -1 !== e.indexOf("amount_no_decimals") ? Currency.convert(100 * parseInt(j
24814Query(this).html().replace(/[^0-9]/g, ""), 10), a, b) : "JOD" === a || "KWD" == a || "BHD" == a ? Currency.convert(parseInt(jQuery(this).html().replace(/[^0-9]/g, ""), 10) / 10, a, b) : Currency.convert(parseInt(jQuery(this).html().replace(/[^0-9]/g, ""), 10), a, b); 24815 var g = Currency.formatMoney(c, f); 24816 jQuery(this).html(g), 24817 jQuery(this).attr("data-currency-" + b, g) 24818 } 24819 jQuery(this).attr("data-currency", b) 24820 } 24821 }), 24822 this.currentCurrency = b, 24823 this.cookie.write(b) 24824 } 24825}
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.