1/*1772202676000*/ 2! function(c, t) { 3 "use strict"; 4 c.fn.adjustCaptionWidth = function(t) { 5 if (!this.length) return !1; 6 var e, n, i, r, s, o, a = c.extend({ 7 selectors: { 8 ref: "[data-js-gs18-adjust-caption-width-ref]", 9 target: "[data-js-gs18-adjust-caption-width-target]" 10 } 11 }, t); 12 return e = function(t) { 13 i(t) 14 }, n = function() { 15 return window.MEL_SETTINGS.helper.getMediaMode() 16 }, i = function(t) { 17 var e = _.throttle(function() { 18 r(t) 19 }, 200); 20 c(window).on("load resize", e) 21 }, r = function(t) { 22 "large" === n() ? s(t) : o(t) 23 }, s = function(t) { 24 var e = t.find(a.selectors.ref), 25 n = t.find(a.selectors.target), 26 i = e.outerWidth(); 27 n.css("max-width", i + "px") 28 }, o = function(t) { 29 t.find(a.selectors.target).attr("style", "") 30 }, this.each(function() { 31 e(c(this)) 32 }), this 33 } 34}(jQuery);; 35! function(d, a) { 36 "use strict"; 37 d.fn.createLocalNavDepth = function(a) { 38 if (!this.length) return !1; 39 var t, i, r, l, c = d.extend({ 40 selectors: { 41 breadcrumb: "[data-js-gs18-breadcrumb]" 42 } 43 }, a), 44 s = 1, 45 n = d("<ul />").addClass(["gs18-LocalNavList", "gs18-LocalNavList--Root"]); 46 return t = function(s) { 47 if (!c.local_nav_json_path) return !!s.hide(); 48 d.ajax({ 49 type: "GET", 50 url: c.local_nav_json_path 51 }).done(function(a) { 52 var t = i(a), 53 n = t.find(".is-current"), 54 e = n.siblings(), 55 r = n.parents("li"); 56 e.addClass("is-sibling"), r.addClass("is-current"), s.append(t), l(t), c.callback() 57 }).fail(function() {}) 58 }, i = function(a) { 59 return n.append(a.map(r)) 60 }, r = function(a) { 61 s++; 62 var t = d("<ul />").addClass(["gs18-LocalNavList", "gs18-LocalNavList--Depth" + s]), 63 n = d("<li />").addClass("gs18-LocalNavItem"), 64 e = a.url ? d("<a />").attr("href", a.url) : d("<span />"); 65 return e.text(a.title), n.append(e), a.children && a.children.length && (t.append(a.children.map(r)), n.append(t)), t.children(".is-current").length && t.addClass("gs18-LocalNavList--Last"), a.url === window.MEL_SETTINGS.current_path && n.addClass("is-current"), s--, n 66 }, l = function(a) { 67 var t = d(c.selectors.breadcrumb); 68 if (t.length) { 69 var r = d('<ul class="gs18-BreadcrumbList"></ul>'); 70 r.append('<li class="gs18-BreadcrumbItem"><a href="/en/">Home</a></li>'), a.find(".is-current").find("> a, > span").each(function(a) { 71 var t = d(this), 72 n = d('<li class="gs18-BreadcrumbItem" />'), 73 e = t.is("span") ? d("<a />") : d("<a />").attr("href", t.attr("href")); 74 e.text(t.text()), r.append(n.append(e)) 75 }), r.find("li:last a").attr({ 76 href: null, 77 "aria-current": "page" 78 }), t.append(r) 79 } 80 }, this.each(function() { 81 t(d(this)) 82 }), this 83 } 84}(jQuery);; 85! function(e, t) { 86 "use strict"; 87 e.fn.jsFacebookResize = function(t) { 88 if (!this.length) return !1; 89 var i = e.extend({ 90 this: this, 91 timer: null 92 }, t); 93 return this.each(function() { 94 var t = e(this).html(); 95 e(window).on("resize", function() { 96 clearTimeout(i.timer), i.timer = setTimeout(function() { 97 e(this).html(t), window.FB.XFBML.parse() 98 }, 100) 99 }) 100 }), this 101 } 102}(jQuery);; 103! function(i, t) { 104 "use strict"; 105 i.fn.fileTypeBlank = function(t) { 106 if (!this.length) return !1; 107 var e = i.extend({ 108 this: this, 109 filetype: t 110 }, t); 111 return this.each(function() { 112 i(this).find('a[href*=".' + e.filetype + '"]').attr("target", "_blank") 113 }), this 114 } 115}(jQuery);; 116! function(f, t) { 117 "use strict"; 118 f.fn.getFeeds = function(t) { 119 if (!this.length) return !1; 120 var e, r, a; 121 f.extend({ 122 foo: "bar" 123 }, t); 124 return e = function(i) { 125 var t = i.data("js-gs18-feeds"), 126 s = _.template(i.find('[type="text/template"]').text()); 127 f.ajax({ 128 url: t, 129 type: "get" 130 }).done(function(t) { 131 var e = i.data("js-gs18-feeds-count") || -1, 132 n = a(t).slice(0, e); 133 i.append(s({ 134 items: n 135 })) 136 }) 137 }, r = function(t) { 138 return (t = ("" + t).split(" ").slice(1, 4))[1] = t[1] + ",", t.join(" ") 139 }, a = function(t) { 140 var s = []; 141 return f(t).find("item").each(function() { 142 var t = f(this), 143 e = { 144 title: t.find("title").text(),
145 link: t.find("link").text(), 146 description: t.find("description").text() 147 }, 148 n = new Date(t.find("description").next().text()); 149 n = r(n); 150 var i = _.find(s, function(t) { 151 return t.date === n 152 }); 153 i ? i.items.push(e) : s.push({ 154 date: n, 155 items: [e] 156 }) 157 }), s 158 }, this.each(function() { 159 e(f(this)) 160 }), this 161 } 162}(jQuery);; 163! function(o, n) { 164 "use strict"; 165 o.fn.includeFooter = function(n) { 166 if (!this.length) return !1; 167 var t, i, a, c = o.extend({ 168 path: "/gws_template_responsive/assets_gws_template_responsive/include/_footer.html", 169 noajax: !1, 170 callback: function(n) {} 171 }, n); 172 return t = function(n) { 173 i(n) 174 }, 175 function(n) {}, 176 function(n) {}, 177 function(n) {}, a = function(n) { 178 c.callback(n) 179 }, i = function(i) { 180 var n = function(n) { 181 var t = n ? o(n) : i; 182 t.addClass(i.prop("class")), i.replaceWith(t), a(t) 183 }; 184 c.noajax ? n() : o.ajax({ 185 url: c.path 186 }).done(n).fail(function() {}) 187 }, this.each(function() { 188 t(o(this)) 189 }), this 190 } 191}(window.jQuery3 || jQuery);; 192! function(L, e) { 193 "use strict"; 194 L.fn.includeHeader = function(e) { 195 if (!this.length) return !1; 196 var s, n, l, r, a, o, i, t, d, c, u, g, p, f, m, v, h, C, T, b, w, k, x, M, y, j, $, H = L.extend({ 197 enableFlyOut: !0, 198 enableSetCurrent: !0, 199 enableResponsiveLayout: !0, 200 mediaMode: null, 201 path: "/gws_template_responsive/assets_gws_template_responsive/include/_header.html", 202 noajax: !1, 203 regionsPath: "/gws_template_responsive/assets_gws_template_responsive/include/_regions.html", 204 duration: "fast", 205 hidePosTop: 200, 206 selectors: { 207 header: "[data-js-gs18-header]", 208 regions: "[data-js-gs18-region]", 209 pulldown: ".gs18-HeaderPulldown",
210 globalMenuTrigger: "[data-js-gs18-pulldown-open-global-menu]", 211 menuTrigger: "[data-js-gs18-pulldown-open-menu]", 212 closeMenuTrigger: "[data-js-gs18-pulldown-close-menu]", 213 globalLinkTrigger: "[data-js-gs18-pulldown-open-menu=globalLink]", 214 closeGlobalLinkTrigger: "[data-js-gs18-pulldown-close-menu=globalLink]", 215 submenuTrigger: "[data-js-gs18-pulldown-open-sub-menu]", 216 slideMenuTrigger: "[data-js-gs18-pulldown-slide-menu]", 217 searchBox: ".gs18-Header__Search", 218 searchBoxTrigger: "[data-js-gs18-search-open-box]" 219 }, 220 classes: { 221 fog: "gs18-HeaderFog" 222 }, 223 callback: function(e) {} 224 }, e); 225 return s = function(e) { 226 var s = e.data("js-gs18-header"); 227 "pc" === s ? H.mediaMode = "large" : "sp" === s && (H.mediaMode = "small"), n(e) 228 }, r = function(e) { 229 location.pathname.match("search/search.html") && e.addClass("has-no-searchbox") 230 }, a = function(s) { 231 if (H.enableFlyOut) { 232 var n, a = L(window), 233 e = _.throttle(function() { 234 var e = a.scrollTop(); 235 e > H.hidePosTop && s.addClass("is-hidden"), e < n && s.removeClass("is-hidden"), n = e 236 }, 100); 237 a.on("scroll", e), s.addClass("is-flyout") 238 } 239 }, o = function(e) { 240 if (H.enableFlyOut) { 241 var s = L(window), 242 n = s.scrollTop(); 243 e.is(".is-flyout") && e.data("last-scroll-pos-top", n), e.removeClass(["is-flyout", "is-hidden"]), s.scrollTop(0) 244 } 245 }, i = function(e) { 246 if (H.enableFlyOut) { 247 var s = L(window), 248 n = e.data("last-scroll-pos-top"); 249 s.scrollTop(n), e.addClass("is-flyout"), setTimeout(function() { 250 e.removeClass("is-hidden") 251 }, 10) 252 } 253 }, t = function(e) { 254 var s = c().match(/^\/en\/[^/]*\//); 255 if (H.enableSetCurrent && s) { 256 var n = e.find(".gs18-HeaderNav__Text"), 257 a = new RegExp("^" + s[0]); 258 n.each(function() { 259 var e = L(this), 260 s = e.prop("pathname"); 261 a.test(s) && e.addClass("is-current") 262 }) 263 } 264 }, d = function() { 265 return H.mediaMode || window.MEL_SETTINGS.helper.getMediaMode() 266 }, c = window.MEL_SETTINGS.helper.getCurrentPath, u = function(e) { 267 var s = e.find(H.selectors.menuTrigger), 268 n = e.find(H.selectors.pulldown), 269 a = n.filter(".gs18-HeaderPulldown--Region"), 270 l = e.find(H.selectors.searchBox); 271 a.is(".is-open") && i(e), s.removeClass("is-open"), e.find(".
271is-nav-open").removeClass("is-nav-open"), n.slideUp(H.duration, function() { 272 n.removeClass("is-open").css("display", "") 273 }), l.removeClass("is-open") 274 }, 275 function(e) { 276 e.find(".is-open").removeClass("is-open"), e.find(".is-open-small").removeClass("is-open-small"), e.find(".is-nav-open").removeClass("is-nav-open") 277 }, p = function(e) { 278 var s = e.find(H.selectors.globalLinkTrigger), 279 n = s.next(); 280 n.removeClass("is-open-small"), s.removeClass("is-open-small"), n.addClass("is-transition-small"), i(e), setTimeout(function() { 281 n.removeClass("is-transition-small") 282 }, 500) 283 }, g = function(e) { 284 var s = e.find(H.selectors.globalMenuTrigger), 285 n = s.prev(), 286 a = s.next(); 287 s.removeClass("is-open-small"), n.removeClass("is-open-small"), a.removeClass("is-open-small") 288 }, f = function(e) { 289 var s = e.find(H.selectors.submenuTrigger), 290 n = s.next(); 291 s.removeClass("is-open"), n.removeClass("is-open") 292 }, m = function() { 293 L("body").addClass(H.classes.fog) 294 }, v = function() { 295 L("body").removeClass(H.classes.fog) 296 }, h = function(e) { 297 if ("small" !== d()) return this; 298 e.preventDefault(); 299 var s = L(e.currentTarget), 300 n = s.prev(), 301 a = s.next(), 302 l = s.parents(H.selectors.header); 303 p(l), s.is(".is-open-small") ? (s.removeClass("is-open-small"), n.removeClass("is-open-small"), a.removeClass("is-open-small"), i(l), setTimeout(function() { 304 v() 305 }, 500)) : (s.addClass("is-open-small"), n.addClass("is-open-small"), a.addClass("is-open-small"), m(), setTimeout(function() { 306 o(l) 307 }, 500)) 308 }, C = function(e) { 309 if ("small" !== d()) return this; 310 e.preventDefault(); 311 var s = L(e.currentTarget), 312 n = s.next(), 313 a = s.parents(H.selectors.header); 314 g(a), s.is(".is-open-small") ? (n.removeClass("is-open-small"), s.removeClass("is-open-small"), n.addClass("is-transition-small"), setTimeout(function() { 315 n.removeClass("is-transition-small"), v() 316 }, 500), i(a)) : (n.addClass("is-open-small"), s.addClass("is-open-small"), setTimeout(function() { 317 o(a) 318 }, 500), m()) 319 }, T = function(e) { 320 if ("small" !== d()) return this; 321 e.preventDefault(); 322 var s = L(e.currentTarget).parents(H.selectors.pulldown), 323 n = s.siblings(H.selectors.globalLinkTrigger), 324 a = s.parents(H.selectors.header); 325 n.removeClass("is-open-small"), s.removeClass("is-open-small"), s.addClass("is-transition-small"), i(a), setTimeout(function() { 326 s.removeClass("is-transition-small"), v() 327 }, 500) 328 }, b = function(e) { 329 var s = L(e.currentTarget), 330 n = s.next(H.selectors.pulldown); 331 if (!n.length || "large" !== d()) return this; 332 e.preventDefault(); 333 var a = H.duration, 334 l = s.parents(H.selectors.header), 335 r = l.find(".gs18-HeaderNav"); 336 s.blur(), n.is(":visible") ? (n.is(".gs18-HeaderPulldown--Region") && i(l), n.slideUp(a, function() { 337 n.removeClass("is-open").css("display", ""), s.removeClass("is-open"), r.removeClass("is-nav-open"), v() 338 })) : (u(e.data.$header), r.addClass("is-nav-open"), m(), n.slideDown(a, function() { 339 n.is(".gs18-HeaderPulldown--Region") && o(l), s.addClass("is-open"), n.addClass("is-open").css("display", "") 340 })) 341 }, w = function(e) { 342 if ("large" !== d()) return this; 343 e.preventDefault(); 344 var s = L(e.currentTarget).parents(H.selectors.pulldown), 345 n = s.siblings(H.selectors.menuTrigger), 346 a = s.parents(H.selectors.header), 347 l = a.find(".gs18-HeaderNav"); 348 s.is(".gs18-HeaderPulldown--Region") && i(a), s.slideUp(H.duration, function() { 349 s.removeClass("is-open").css("display", ""), l.removeClass("is-nav-open"), v() 350 }), n.removeClass("is-open") 351 }, x = function(e) { 352 if ("large" !== d()) return this; 353 e.preventDefault(); 354 var s = L(e.currentTarget), 355 n = s.next(), 356 a = s.parents(H.selectors.header); 357 n.is(".is-open") ? (n.removeClass("is-open"), s.removeClass("is-open").blur()
357) : (f(a), n.addClass("is-open"), s.addClass("is-open")) 358 }, k = function(e) { 359 if ("large" !== d()) return this; 360 e.preventDefault(); 361 var s = L(e.currentTarget), 362 n = s.parents(H.selectors.searchBox), 363 a = e.data.$header.find(".gs18-HeaderNav"); 364 s.blur(), n.is(".is-open") ? (u(e.data.$header), n.removeClass("is-open"), a.removeClass("is-hidden")) : (u(e.data.$header), n.addClass("is-open"), a.addClass("is-hidden"), setTimeout(function() { 365 n.find(":text").focus() 366 }, 500)) 367 }, M = function(e) { 368 if ("small" !== d()) return this; 369 e.preventDefault(); 370 var s = L(e.currentTarget), 371 n = s.next(), 372 a = s.parents(".is-current-small").first(), 373 l = s.parents(".gs18-HeaderNav__Menu"), 374 r = s.data("js-gs18-pulldown-slide-menu") || "go", 375 o = Math.abs(l.position().left, 10), 376 i = ("go" === r ? 1 : -1) + Math.round(o / L("body").width()); 377 "go" === r ? n.addClass("is-current-small") : "back" === r && setTimeout(function() { 378 a.removeClass("is-current-small") 379 }, 500), l.removeClass(["is-step0", "is-step1", "is-step2"]), l.addClass("is-step" + i) 380 }, y = function(e) { 381 if (e.target === e.currentTarget) { 382 var s = e.data.$header; 383 s.find(H.selectors.searchBox); 384 e.preventDefault(), "large" === d() ? s.find(".is-open " + H.selectors.closeMenuTrigger).trigger("click") : "small" === d() && (s.find(".is-open-small" + H.selectors.globalMenuTr
384igger).trigger("click"), s.find(".is-open-small " + H.selectors.closeGlobalLinkTrigger).trigger("click")) 385 } 386 }, j = function(e) { 387 L("body").on("click", { 388 $header: e 389 }, y), e.find(H.selectors.menuTrigger).on("click", { 390 $header: e 391 }, b), e.find(H.selectors.closeMenuTrigger).on("click", { 392 $header: e 393 }, w), e.find(H.selectors.submenuTrigger).on("click", { 394 $header: e 395 }, x), e.find(H.selectors.searchBoxTrigger).on("click", { 396 $header: e 397 }, k), e.find(H.selectors.globalMenuTrigger).on("click", { 398 $header: e 399 }, h), e.find(H.selectors.globalLinkTrigger).on("click", { 400 $header: e 401 }, C); 402 e.find(H.selectors.closeGlobalLinkTrigger).on("click", { 403 $header: e 404 }, T); 405 e.find(H.selectors.slideMenuTrigger).on("click", { 406 $header: e 407 }, M) 408 }, $ = function(e) { 409 t(e), a(e), j(e), H.callback(e) 410 }, n = function(a) { 411 var e = function(e) { 412 var s = e ? L(e) : a, 413 n = s.find(H.selectors.regions); 414 s.addClass(a.prop("class")), a.replaceWith(s), r(s), H.regionsPath ? l(n).done(function() { 415 $(s) 416 }) : $(s) 417 }; 418 H.noajax ? e() : L.ajax({ 419 url: H.path 420 }).done(e).fail(function() {}) 421 }, l = function(n) { 422 return L.ajax({ 423 url: H.regionsPath 424 }).done(function(e) { 425 var s = L(e); 426 n.replaceWith(s) 427 }) 428 }, this.each(function() { 429 s(L(this)) 430 }), this 431 } 432}(window.jQuery3 || jQuery);; 433! function(u, n) { 434 "use strict"; 435 u.fn.includeHTML = function(n) { 436 return !!this.length && (t = function(n) { 437 i(n) 438 }, i = function(i) { 439 u.ajax({ 440 url: i.data("js-gs18-html-include") 441 }).done(function(n) { 442 var t = u(n); 443 i.append(t) 444 }).fail(function() {}) 445 }, this.each(function() { 446 t(u(this)) 447 }), this); 448 var t, i 449 } 450}(window.jQuery3 || jQuery);; 451! function(u, n) { 452 "use strict"; 453 u.fn.includeLocalNav = function(n) { 454 if (!this.length) return !1; 455 var t, a, c, i, o, l, e = u.extend({ 456 path: "/gws_template_responsive/assets_gws_template_responsive/include/_local-nav.html", 457 callback: function(n) {} 458 }, n); 459 return t = function(n) { 460 a(n) 461 }, c = function(n) { 462 i(n) 463 }, 464 function(n) {}, i = function(n) { 465 var t = n.find(".gs18-LocalNavList"), 466 a = []; 467 t.each(function(n) { 468 a[n] = u(this).css("height", "").height() 469 }), t.height(Math.max.apply(null, a)) 470 }, o = function(n) { 471 u(window).on("resize", _.throttle(function() { 472 i(n) 473 }, 200)) 474 }, l = function(n) { 475 n.createLocalNavDepth({ 476 local_nav_json_path: e.local_nav_json_path, 477 callback: function() { 478 i(n) 479 } 480 }), o(n), e.callback(n) 481 }, a = function(a) { 482 u.ajax({ 483 url: e.path 484 }).done(function(n) { 485 var t = u(n); 486 a.replaceWith(t), c(t), l(t) 487 }).fail(function() {}) 488 }, this.each(function() { 489 t(u(this)) 490 }), this 491 } 492}(jQuery);; 493! function(r, t) { 494 "use strict"; 495 r.fn.goTopScroll = function(t) { 496 if (!this.length) return !1; 497 var i = r.extend({ 498 this: this 499 }, t); 500 return this.each(function() { 501 var t = i.this.attr("href"), 502 n = r("html").find("#" === t ? "body" : t).offset().top; 503 return r("html, body").animate({ 504 scrollTop: n 505 }, 500, "swing"), !1 506 }), this 507 } 508}(jQuery);; 509! function(n, t) { 510 "use strict"; 511 n.fn.jsExample = function(t) { 512 if (!this.length) return !1; 513 var e; 514 n.extend({ 515 foo: "bar" 516 }, t); 517 return e = function(t, e) {}, this.each(function() { 518 var t; 519 t = n(this), e(t.prop("tagName"), "." + t.prop("className").replace(/ /g, ".")) 520 }), this 521 } 522}(jQuery);; 523! function(i, e) { 524 "use strict"; 525 i.fn.microMacro = function(e) { 526 if (!this.length) return !1; 527 var s, n, c = i.extend({ 528 classes: { 529 open: "is-open", 530 rootOpen: "is-tile-open" 531 }, 532 selectors: { 533 tile: ".gs18-MicroMacro__Item" 534 } 535 }, e); 536 return s = function(e) { 537 n(e) 538 }, n = function(t) { 539 var r = t.find(c.selectors.tile); 540 r.on("click keydown", function(e) { 541 if (!(i(e.target).is("a") || e.keyCode && 13 !== e.keyCode)) { 542 var s, n; 543 e.preventDefault(); 544 var o = i(e.currentTarget); 545 s = function() { 546 t.addClass(c.classes.rootOpen), r.removeClass(c.classes.open), o.addClass(c.classes.open) 547 }, n = function() { 548 t.removeClass(c.classes.rootOpen), o.removeClass(c.classes.open), o.blur() 549 }, o.is("." + c.classes.open) ? n() : s() 550 } 551 }) 552 }, this.each(function() { 553 s(i(this)) 554 }), this 555 } 556}(jQuery);; 557! function(c, n) { 558 "use strict"; 559 c.fn.pulldownLink = function(n) { 560 return !!this.length && (t = function(n) { 561 n.on("change", e) 562 }, e = function(n) { 563 var t = c(n.currentTarget), 564 e = t.val(), 565 i = t.find(":selected").data("target"); 566 e && (i ? window.open(e, i) : location.href = e) 567 }, this.each(function() { 568 t(c(this)) 569 }), this); 570 var t, e 571 } 572}(jQuery);; 573! function(n, t) { 574 "use strict"; 575 n.fn.setResponsiveTable = function(t) { 576 if (!this.length) return !1; 577 var i = n(window); 578 return this.each(function() { 579 var e, r, t; 580 e = n(this), r = e.find(">table"), t = function() { 581 var t = r.outerWidth(), 582 i = r.outerHeight(), 583 n = e.parent().width() / t; 584 n < 1 ? (e.height(i * n), r.css("transform", "scale(" + n + ")")) : (e.height(""), r.css("transform", "")) 585 }, r.css("transformOrigin", "0 0"), i.on("resize", t), t() 586 }), this 587 } 588}(jQuery);; 589! function(f, e) { 590 "use strict"; 591 f.fn.setLearnMoreNews = function(e) { 592 if (!this.length) return !1; 593 var t, a, r, c, i, g, s, o, n = "data-js-gs18-learn-more-news-deferred-img", 594 d = f.extend({ 595 partialItemsLength: 10, 596 attrs: { 597 deferredImg: n 598 }, 599 selectors: { 600 source: "[data-js-gs18-learn-more-news-source]", 601 newsList: "[data-js-gs18-learn-more-news-contents]", 602 trigger: "[data-js-gs18-learn-more-news-trigger]", 603 triggerContainer: "[data-js-gs18-learn-more-news-trigger-container]", 604 deferredImg: "[" + n + "]" 605 } 606 }, e); 607 return t = function(e) { 608 var t = e.find(d.selectors.source), 609 r = c(a(t)), 610 n = e.find(d.selectors.newsList), 611 s = e.find(d.selectors.trigger), 612 i = e.find(d.selectors.triggerContainer); 613 g(n, r, i), o(s, i, n, r) 614 }, a = function(e) { 615 return "" + e.html() 616 }, r = function(e) { 617 return e.replace(/<img([^>]*[^/])\/*>/g, "<span " + d.attrs.deferredImg + " $1></span>") 618 }, c = function(e) { 619 return f("<div />").append(r(e)).find(d.selectors.newsList).children() 620 }, i = function(e) { 621 var t = f("<img />"); 622 f(e[0].attributes).each(function() { 623 t.attr(this.name, this.value) 624 }), e.replaceWith(t) 625 }, g = function(e, t, r) { 626 0 === t.length && r.hide() 627 }, s = function(e) { 628 e.preventDefault(); 629 var t = e.data.$list, 630 r = e.data.$newsItems, 631 n = (e.data.$trigger, e.data.$triggerContainer), 632 s = f(r.splice(0, d.partialItemsLength)); 633 s.find(d.selectors.deferredImg).each(function() { 634 i(f(this)) 635 }), s.css("opacity", 0), t.append(s), s.animate({ 636 opacity: 1 637 }), 0 === r.length && n.hide() 638 }, o = function(e, t, r, n) { 639 e.on("click", { 640 $trigger: e, 641 $triggerContainer: t, 642 $list: r, 643 $newsItems: n 644 }, s) 645 }, this.each(function() { 646 t(f(this)) 647 }), this 648 } 649}(jQuery);; 650! function(g, e) { 651 "use strict"; 652 g.fn.setLearnMoreTile = function(e) { 653 if (!this.length) return !1; 654 var r, t, a, i = g.extend({ 655 selectors: { 656 target: "[data-js-gs18-learn-more-tile-target]", 657 triggerWrapper: "[data-js-gs18-learn-more-tile-trigger-wrapper]", 658 trigger: "[data-js-gs18-learn-more-tile-trigger]" 659 } 660 }, e); 661 return r = function(e) { 662 var r = e.find(i.selectors.target), 663 t = e.find(i.selectors.triggerWrapper); 664 a(t, r) 665 }, t = function(e) { 666 e.preventDefault(); 667 var r = e.data.$target, 668 t = e.data.$triggerWrapper; 669 r.show(), r.height(), r.removeAttr("data-js-gs18-learn-more-tile-target"), t.hide() 670 }, a = function(e, r) { 671 e.find(i.selectors.trigger).on("click", { 672 $target: r, 673 $triggerWrapper: e 674 }, t) 675 }, this.each(function() { 676 r(g(this)) 677 }), this 678 } 679}(jQuery);; 680! function(l, t) { 681 "use strict"; 682 l.fn.setModal = function(t) { 683 if (!this.length) return !1; 684 var n, o, e, s, a, c, i, u, d, f = l.extend({ 685 contentPath: "", 686 countryCookieName: "mel_country_shown", 687 selectors: { 688 bg: "[data-js-gs18-modal-bg]", 689 body: "[data-js-gs18-modal-body]", 690 closeButton: "[data-js-gs18-modal-close]" 691 } 692 }, t); 693 return n = function(t) { 694 var n = o(t); 695 f.contentPath && !a(f.countryCookieName) && (c(f.countryCookieName), e(f.contentPath, n)), l(window).on("resize", function() { 696 s(n) 697 }) 698 }, o = function(t) { 699 if (!t.is("body")) return t; 700 var n = l('<div class="gs18-ModalBg" data-js-gs18-modal-bg="" />'), 701 o = l(['<div class="gs18-Modal" data-js-gs18-modal="">
701', '<button data-js-gs18-modal-close="" class="gs18-Modal__Button">Cancel</button>', "</div>"].join("\n")); 702 return t.append(n), t.append(o), o 703 }, a = function(n) { 704 return !!document.cookie.split(";").filter(function(t) { 705 return 0 <= t.indexOf(n + "=") 706 }).length 707 }, c = function(t) { 708 document.cookie = t + "=us;path=/;max-age=2592000;" 709 }, e = function(t, e) { 710 l.ajax({ 711 url: t 712 }).done(function(t) { 713 var n, o; 714 e.find(f.selectors.body).remove(), e.prepend(t), n = e.prev(f.selectors.bg), e.find(f.selectors.body), o = e.find(f.selectors.closeButton), u(n, e), d(n, e, o) 715 }).fail(function() {}) 716 }, s = function(t) { 717 var n = t.find(f.selectors.body).css("height", ""), 718 o = t.find(f.selectors.closeButton).last(), 719 e = l(window).height(), 720 s = t.height(), 721 a = parseInt(t.css("left"), 10), 722 c = parseInt(t.css("margin-top"), 10), 723 i = parseInt(t.css("right"), 10), 724 u = n.offset(), 725 d = e - s - c, 726 r = d / 2; 727 d < 2 * a && (n.height(e - c - 2 * a), r += a), t.css("top", a < r ? r : a), o.css("margin-right", u.left - i) 728 }, u = function(t, n) { 729 n.attr("tabIndex", 0), t.fadeIn(), n.fadeIn(), setTimeout(function() { 730 s(n), n.focus() 731 }, 100) 732 }, i = function(t, n) { 733 f.contentPath && l("body").attr("tabIndex", 0).focus(), t.fadeOut(), n.fadeOut() 734 }, d = function(n, o, t) { 735 n.on("click", function(t) { 736 t.preventDefault(), i(n, o) 737 }), t.on("click", function(t) { 738 t.preventDefault(), i(n, o) 739 }) 740 }, this.each(function() { 741 n(l(this)) 742 }), this 743 } 744}(jQuery);;; 745! function(c, t) { 746 "use strict"; 747 c.fn.tidyStaticLocalNav = function(t) { 748 if (!this.length) return !1; 749 var n, i, h; 750 c.extend({ 751 foo: "bar" 752 }, t); 753 return n = function(t) { 754 i(t), h(t) 755 }, i = function(t) { 756 var n = t.find(".gs18-LocalNavList"), 757 i = []; 758 n.each(function(t) { 759 i[t] = c(this).css("height", "").height() 760 }), n.height(Math.max.apply(null, i)) 761 }, h = function(t) { 762 c(window).on("resize", _.throttle(function() { 763 i(t) 764 }, 200)) 765 }, this.each(function() { 766 n(c(this)) 767 }), this 768 } 769}(jQuery);; 770! function(e, t) { 771 "use strict"; 772 e.fn.jsYouTube = function(t) { 773 if (!this.length) return !1; 774 var i = e.extend({ 775 this: this, 776 key: t.api_key, 777 channel: t.channel_id 778 }, t); 779 return this.each(function() { 780 e.ajax({ 781 type: "get", 782 url: "https://www.googleapis.com/youtube/v3/search", 783 dataType: "json", 784 data: { 785 part: "snippet", 786 channelId: i.channel, 787 maxResults: 12, 788 type: "video", 789 key: i.key 790 }, 791 context: this 792 }).done(function(t) { 793 t.items.forEach(function(t) { 794 var e = "https://www.youtube.com/watch?v=" + t.id.videoId, 795 n = t.snippet.thumbnails.high.url, 796 a = t.snippet.title; 797 i.this.append(['<li class="gs18-YouTube__Item">', '<a class="gs18-YouTube__Img" href=' + e + ' target="_blank">', "<img src=" + n + ">", "</a>", '<p class="gs18-YouTube__Title">', "<a href=" + e + ' target="_blank">' + a + "</a>", "</p>", "</li>"].join("")) 798 }) 799 }).fail(function() {}) 800 }), this 801 } 802}(jQuery);
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.