1(() => { 2 var t, e = { 3 5267: (t, e, i) => { 4 "use strict"; 5 var n = i(9961), 6 r = i(7002); 7 8 function o(t) { 9 return o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 10 return typeof t 11 } : function(t) { 12 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 13 }, o(t) 14 } 15 16 function s(t, e) { 17 for (var i = 0; i < e.length; i++) { 18 var n = e[i]; 19 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, s = void 0, s = function(t, e) { 20 if ("object" !== o(t) || null === t) return t; 21 var i = t[Symbol.toPrimitive]; 22 if (void 0 !== i) { 23 var n = i.call(t, e || "default"); 24 if ("object" !== o(n)) return n; 25 throw new TypeError("@@toPrimitive must return a primitive value.") 26 } 27 return ("string" === e ? String : Number)(t) 28 }(r, "string"), "symbol" === o(s) ? s : String(s)), n) 29 } 30 var r, s 31 } 32 33 function a(t, e) { 34 return a = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) { 35 return t.__proto__ = e, t 36 }, a(t, e) 37 } 38 39 function l(t) { 40 var e = function() { 41 if ("undefined" == typeof Reflect || !Reflect.construct) return !1; 42 if (Reflect.construct.sham) return !1; 43 if ("function" == typeof Proxy) return !0; 44 try { 45 return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))), !0 46 } catch (t) { 47 return !1 48 } 49 }(); 50 return function() { 51 var i, n = u(t); 52 if (e) { 53 var r = u(this).constructor; 54 i = Reflect.construct(n, arguments, r) 55 } else i = n.apply(this, arguments); 56 return function(t, e) { 57 if (e && ("object" === o(e) || "function" == typeof e)) return e; 58 if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); 59 return function(t) { 60 if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 61 return t 62 }(t) 63 }(this, i) 64 } 65 } 66 67 function u(t) { 68 return u = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) { 69 return t.__proto__ || Object.getPrototypeOf(t) 70 }, u(t) 71 } 72 var c = "LOADER_INIT", 73 h = "HT_RESIZE", 74 f = "OBSERVER_HEIGHT_CHANGED", 75 p = "REGISTER_LOADER", 76 y = "UN_REGISTER_LOADER", 77 d = "AFTER_LOADER_INIT", 78 v = "PAGE_ONE", 79 m = "PAGE_AFTER", 80 b = "WIN_PAGE_LOADED", 81 g = "PAGE_LOADED", 82 w = "PAGE_ENTER", 83 O = "PAGE_LEAVE", 84 S = "PLAY_AUDIO", 85 M = "PAUSE_AUDIO", 86 k = "START_AUDIO", 87 D = new(function(t) { 88 ! function(t, e) { 89 if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); 90 t.prototype = Object.create(e && e.prototype, { 91 constructor: { 92 value: t, 93 writable: !0, 94 configurable: !0 95 } 96 }), Object.defineProperty(t, "prototype", { 97 writable: !1 98 }), e && a(t, e) 99 }(o, t); 100 var e, i, n, r = l(o); 101 102 function o() { 103 return function(t, e) { 104 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 105 }(this, o), r.call(this) 106 } 107 return e = o, i && s(e.prototype, i), n && s(e, n), Object.defineProperty(e, "prototype", { 108 writable: !1 109 }), e 110 }(i.n(r)())), 111 E = "pro", 112 P = ["page"], 113 j = i(2895), 114 T = i.n(j), 115 L = i(7815), 116 x = void 0, 117 A = function() { 118 return !!(navigator.userAgent.match(/Mac/) && navigator.maxTouchPoints && navigator.maxTouchPoints > 2) 119 }, 120 R = function() { 121 var t = navigator.userAgent || navigator.vendor || window.opera; 122 return t.indexOf("FBAN") > -1 || t.indexOf("FBAV") > -1 123 }, 124 _ = function() { 125 return T()() || A() || R() 126 }, 127 C = function() { 128 return ((0, L.Z)(navigator.userAgent).any || A() || R()) && z() 129 }, 130 I = function() { 131 return !(!("IntersectionObserver" in window) || !("IntersectionObserverEntry" in window) || !("intersectionRatio" in window.IntersectionObserverEntry.prototype)) 132 }, 133 z = function() { 134 return window.innerWidth < 768 || window.innerHeight < 450 135 }, 136 q = function() { 137 return window.innerWidth >= 1200 138 }, 139 H = function(t) { 140 return new RegExp(/^#.+/).test(t) 141 }, 142 B = function(t) { 143 if (!I()) return t.classList.remove("is-anim-loading"), !1; 144 if (C() && t.getBoundingClientRect().top > Z.winSize.height) return !1; 145 return !0 146 }, 147 N = function(t) { 148 return t / (arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1728) 149 }, 150 F = function(t) { 151 return Z.getSize().width * t 152 }, 153 W = function(t, e) { 154 var i; 155 return function() { 156 for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++) r[o] = arguments[o]; 157 clearTimeout(i), i = setTimeout((function() { 158 t.apply(x, r) 159 }), e) 160 } 161 }; 162 163 function V(t) { 164 return V = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 165 return typeof t 166 } : function(t) { 167 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 168 }, V(t) 169 } 170 171 function G(t, e) { 172 for (var i = 0; i < e.length; i++) { 173 var n = e[i]; 174 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 175 if ("object" !== V(t) || null === t) return t; 176 var i = t[Symbol.toPrimitive]; 177 if (void 0 !== i) { 178 var n = i.call(t, e || "default"); 179 if ("object" !== V(n)) return n; 180 throw new TypeError("@@toPrimitive must return a primitive value.") 181 } 182 return ("string" === e ? String : Number)(t) 183 }(r, "string"), "symbol" === V(o) ? o : String(o)), n) 184 } 185 var r, o 186 } 187 var U = function() { 188 function t() { 189 ! function(t, e) { 190 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 191 }(this, t), this.offsetResponsive = { 192 xl: 1600, 193 lg: 1320, 194 md: 1024, 195 sm: 768 196 }, this.viewSize = { 197 mobile: { 198 x: 375, 199 y: 635 200 }, 201 tablet: { 202 x: 900, 203 y: 1024 204 } 205 }, this.maxScrollHeight = 0, this.isSmoothScrolling = !0, this.isPageEnter = !1, this.mouse = { 206 x: window.innerWidth / 2, 207 y: window.innerHeight / 2 208 }, this.dub = !1, this.transitionType = P[0], this.pageName = "Loading", this.scrollHistory = [], this.isResing = !1, this.DOM = { 209 main: document.querySelector("[data-scroll-container]") || document.body 210 }, this.isResizeObserver = window.ResizeObserver, this.clearEvents = [], this.timeOutResize = null, this.isTouchDevice = _(), this.handleResize(), this.bindEvent(), this.emitEvent() 211 } 212 var e, i, n; 213 return e = t, i = [{ 214 key: "isScrolled", 215 value: function() { 216 return rt.lenis.scroll > 0 217 } 218 }, { 219 key: "getScrollTop", 220 value: function() { 221 return rt.lenis.scroll 222 } 223 }, { 224 key: "getSize", 225 value: function() { 226 return this.winSize 227 } 228 }, { 229 key: "handleResize", 230 value: function() { 231 this.winSize = { 232 width: window.innerWidth, 233 height: window.innerHeight 234 }
234, this.winSize.aspectRatio = this.winSize.width / this.winSize.height, this.winSize.devicePixelRatio = 1, this.isResing = !0 235 } 236 }, { 237 key: "aspectRatio", 238 value: function() { 239 return this.winSize.aspectRatio 240 } 241 }, { 242 key: "bindEvent", 243 value: function() { 244 var t = this; 245 window.addEventListener("resize", this.handleResize.bind(this)), this.isResizeObserver && new ResizeObserver((function() { 246 D.emit(f), t.isResing = !0, t.timeOutResize && clearTimeout(t.timeOutResize), t.timeOutResize = setTimeout((function() { 247 t.isResing = !1 248 }), 300) 249 })).observe(this.DOM.main) 250 } 251 }, { 252 key: "addClearEvent", 253 value: function(t) { 254 this.clearEvents.push(t) 255 } 256 }, { 257 key: "runClearEvents", 258 value: function() { 259 for (var t = 0; t < this.clearEvents.length; t++) this.clearEvents[t](); 260 this.clearEvents = [] 261 } 262 }, { 263 key: "pageBeforeLeave", 264 value: function(t) { 265 var e = t.path, 266 i = rt.lenis.scroll; 267 0 === this.scrollHistory.length ? this.scrollHistory[0] = { 268 path: e, 269 scrollTop: i 270 } : (1 === this.scrollHistory.length || (this.scrollHistory[0] = this.scrollHistory[1]), this.scrollHistory[1] = { 271 path: e, 272 scrollTop: i 273 }) 274 } 275 }, { 276 key: "emitEvent", 277 value: function() { 278 var t = this; 279 D.on(h, (function() { 280 return t.isResing = !1 281 })), D.on(w, (function() { 282 t.isPageEnter = !0 283 })), D.on(O, (function() { 284 t.isPageEnter = !1, t.runClearEvents() 285 })), D.on("PAGE_BEFORE_LEAVE", this.pageBeforeLeave.bind(this)) 286 } 287 }], i && G(e.prototype, i), n && G(e, n), Object.defineProperty(e, "prototype", { 288 writable: !1 289 }), t 290 }(), 291 Z = new U; 292 293 function Y(t) { 294 return Y = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 295 return typeof t 296 } : function(t) { 297 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 298 }, Y(t) 299 } 300 301 function X(t, e) { 302 var i = Object.keys(t); 303 if (Object.getOwnPropertySymbols) { 304 var n = Object.getOwnPropertySymbols(t); 305 e && (n = n.filter((function(e) { 306 return Object.getOwnPropertyDescriptor(t, e).enumerable 307 }))), i.push.apply(i, n) 308 } 309 return i 310 } 311 312 function K(t) { 313 for (var e = 1; e < arguments.length; e++) { 314 var i = null != arguments[e] ? arguments[e] : {};
315 e % 2 ? X(Object(i), !0).forEach((function(e) { 316 J(t, e, i[e]) 317 })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : X(Object(i)).forEach((function(e) { 318 Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e)) 319 })) 320 } 321 return t 322 } 323 324 function J(t, e, i) { 325 return (e = $(e)) in t ? Object.defineProperty(t, e, { 326 value: i, 327 enumerable: !0, 328 configurable: !0, 329 writable: !0 330 }) : t[e] = i, t 331 } 332 333 function Q(t, e) { 334 for (var i = 0; i < e.length; i++) { 335 var n = e[i]; 336 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, $(n.key), n) 337 } 338 } 339 340 function $(t) { 341 var e = function(t, e) { 342 if ("object" !== Y(t) || null === t) return t; 343 var i = t[Symbol.toPrimitive]; 344 if (void 0 !== i) { 345 var n = i.call(t, e || "default"); 346 if ("object" !== Y(n)) return n; 347 throw new TypeError("@@toPrimitive must return a primitive value.") 348 } 349 return ("string" === e ? String : Number)(t) 350 }(t, "string"); 351 return "symbol" === Y(e) ? e : String(e) 352 } 353 var tt = function() { 354 function t(e) { 355 ! function(t, e) { 356 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 357 }(this, t), this.DOM = { 358 el: e 359 }; 360 var i = this.DOM.el.getAttribute("data-lenis-speed") || this.DOM.el.getAttribute("data-lenis-parallax") || 0; 361 _() && 1 !== parseFloat(i) || (this.handle = this.DOM.el.getAttribute("data-handle") || "all", this.isParallax = this.DOM.el.getAttribute("data-lenis-parallax") || !1, this.props = { 362 parallax: parseFloat(i) || 0, 363 current: 0 364 }, this.propsParent = {}, this.DOM.parent = this.DOM.el.closest(".js-lenis-speed__parent") || this.DOM.el.parentElement, this.getProp = this.getProp.bind(this), this.getProp(), this.bindEvent()) 365 } 366 var e, i, n; 367 return e = t, (i = [{ 368 key: "getProp", 369 value: function() { 370 var t = Z.getSize().height, 371 e = this.DOM.el.getBoundingClientRect(), 372 i = Z.getScrollTop() - this.props.current, 373 n = e.top + i; 374 this.props = K(K({}, this.props), { 375 top: n, 376 height: e.height, 377 center: n + (e.height - t) / 2 378 }); 379 var r = this.DOM.parent.getBoundingClientRect(); 380 this.propsParent = K(K({}, this.propsParent), { 381 height: r.height - t - (e.height - t) 382 }), this.DOM.parent.style = "--pr-height: ".concat(e.height, "px;") 383 } 384 }, { 385 key: "scrolling", 386 value: function(t) { 387 if (!("lg" === this.handle && Z.winSize.width < 1200)) 388 if (this.isParallax) this.DOM.el.style = "--offset-parallax: ".concat(t * this.props.parallax, "px"); 389 else { 390 var e = Z.getSize().height, 391 i = (this.props.top - t) * this.props.parallax; 392 i = Math.min(i, -e + e * this.props.parallax); 393 var n = (t - this.props.center) * this.props.parallax; 394 n = Math.max(n, i), this.props.parallax >= 1 && (n = Math.max(Math.min(n, this.propsParent.height), 0)), this.props.current = n, this.DOM.el.style = "--offset-parallax: ".concat(this.props.current, "px") 395 } 396 } 397 }, { 398 key: "bindEvent", 399 value: function() { 400 D.on(f, this.getProp), D.on(h, this.getProp), Z.addClearEvent(this.clear.bind(this)) 401 } 402 }, { 403 key: "clear", 404 value: function() { 405 D.off(h, this.getProp), D.off(f, this.getProp) 406 } 407 }]) && Q(e.prototype, i), n && Q(e, n), Object.defineProperty(e, "prototype", { 408 writable: !1 409 }), t 410 }(); 411 412 function et(t) { 413 return et = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 414 return typeof t 415 } : function(t) { 416 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 417 }, et(t) 418 } 419 420 function it(t, e) { 421 for (var i = 0; i < e.length; i++) { 422 var n = e[i]; 423 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 424 if ("object" !== et(t) || null === t) return t; 425 var i = t[Symbol.toPrimitive]; 426 if (void 0 !== i) { 427 var n = i.call(t, e || "default"); 428 if ("object" !== et(n)) return n; 429 throw new TypeError("@@toPrimitive must return a primitive value.") 430 } 431 return ("string" === e ? String : Number)(t) 432 }(r, "string"), "symbol" === et(o) ? o : String(o)), n) 433 } 434 var r, o 435 } 436 var nt = function() { 437 function t() { 438 ! function(t, e) { 439 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 440 }(this, t), this.isEnabled = !1, this.parallaxs = [], this.isTouch = _(), this.pageLoaded = this.pageLoaded.bind(this), this.pageLeave = this.pageLeave.bind(this), this.scrolling = this.scrolling.bind(this), this.raf = this.raf.bind(this), this.init(), this.bindEvent() 441 } 442 var e, i, r; 443 return e = t, i = [{ 444 key: "init", 445 value: function() { 446 var t = this.isTouch && window.innerWidth >= 768 && !q(); 447 this.lenis = new n.Z({ 448 duration: t ? 2.5 : 1.65, 449 easing: function(t) { 450 return Math.min(1, 1.001 - Math.pow(2, -10 * t)) 451 }, 452 direction: "vertical", 453 gestureDirection: "vertical", 454 smooth: !this.isTouch, 455 mouseMultiplier: 1, 456 smoothTouch: !this.isTouch, 457 touchMultiplier: 8, 458 infinite: !1 459 }), this.lenis.stop() 460 } 461 }, { 462 key: "scrolling", 463 value: function(t) { 464 var e = t.scroll, 465 i = t.limit; 466 if (!this.isTouch) 467 for (var n = 0; n < this.parallaxs.length; n++) this.parallaxs[n].scrolling(e, i) 468 } 469 }, { 470 key: "disabled", 471 value: function() { 472 this.isEnabled = !1, !this.isTouch && this.lenis.off("scroll", this.scrolling) 473 } 474 }, { 475 key: "enabled", 476 value: function() { 477 this.isEnabled = !0, !this.isTouch && this.lenis.on("scroll", this.scrolling), requestAnimationFrame(this.raf) 478 } 479 }, { 480 key: "raf", 481 value: function(t) { 482 this.lenis.raf(t), this.isEnabled && requestAnimationFrame(this.raf) 483 } 484 }, { 485 key: "pageLoaded", 486 value: function() { 487 var t = this; 488 Z.isTouchDevice || document.querySelectorAll("[data-lenis-speed], [data-lenis-parallax]").forEach((function(e) { 489 t.parallaxs.push(new tt(e)) 490 })) 491 } 492 }, { 493 key: "pageLeave", 494 value: function() { 495 this.lenis.stop() 496 } 497 }, { 498 key: "bindEvent", 499 value: function() { 500 var t = this; 501 D.on(w, (function() { 502 return t.lenis.start() 503 })), D.on(g, this.pageLoaded), D.on(O, this.pageLeave) 504 } 505 }], i && it(e.prototype, i), r && it(e, r), Object.defineProperty(e, "prototype", { 506 writable: !1 507 }), t 508 }(), 509 rt = new nt, 510 ot = i(7043), 511 st = i(1605), 512 at = i(6608); 513 514 function lt(t) { 515 return lt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 516 return typeof t 517 } : function(t) { 518 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 519 }, lt(t) 520 } 521 522 function ut(t, e) { 523 for (var i = 0; i < e.length; i++) { 524 var n = e[i]; 525 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 526 if ("object" !== lt(t) || null === t) return t; 527 var i = t[Symbol.toPrimitive]; 528 if (void 0 !== i) { 529 var n = i.call(t, e || "default"); 530 if ("object" !== lt(n)) return n; 531 throw new TypeError("@@toPrimitive must return a primitive value.") 532 } 533 return ("string" === e ? String : Number)(t) 534 }(r, "string"), "symbol" === lt(o) ? o : String(o)), n) 535 } 536 var r, o 537 } 538 var ct = function() { 539 function t(e) { 540 var i = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; 541 ! function(t, e) { 542 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 543 }(this, t), this.DOM = { 544 el: e 545 }, this.rendered = !1, this.isVisible = !1, this.isLoaded = !1, this.isGsap = i, this.timeOnScreen = null, this.DOM.el.classList.contains("is-intersection") && (this.isGsap = !1), this.addObServer(), this.bindEvent() 546 } 547 var e, i, n; 548 return e = t, i = [{ 549 key: "addObServer", 550 value: function() { 551 var t = this; 552 this.DOM.el.parentElement.classList.add("js-image--lazy__wrapper"), this.DOM.el.parentElement.classList.add("js-lazy__webgl-image__wrapper"), this.DOM.el.classList.add("is-handle"), this.DOM.el.style = {}, !I() || this.isGsap ? (this.id = (Math.random() + (new Date).getTime()).toString(), st.i.create({ 553 trigger: this.DOM.el, 554 markers: !1, 555 id: this.id, 556 start: "top bottom", 557 onEnter: function() { 558 t.render() 559 } 560 })) : (this.obServer = new IntersectionObserver((function(e) { 561 e[0].isIntersecting > 0 && t.render() 562 })), this.obServer.observe(this.DOM.el)) 563 } 564 }, { 565 key: "render", 566 value: function() { 567 var t = this; 568 if (!this.isLoaded) { 569 this.isLoaded = !0; 570 var e = this.DOM.el.cloneNode(); 571 e.addEventListener("load", (function() { 572 t.DOM.el.removeAttribute("data-srcset"), t.DOM.el.removeAttribute("data-srcset-mobile"), e.removeAttribute("data-srcset"), e.removeAttribute("data-srcset-mobile"), setTimeout((function() { 573 t.DOM.el.classList.add("is-loaded") 574 }), 500) 575 })), e.classList.add("is-clone"); 576 var i = this.DOM.el.getAttribute("data-srcset-mobile"); 577 i && (C() || z()) ? e.setAttribute("srcset", i) : e.setAttribute("srcset", this.DOM.el.getAttribute("data-srcset")), this.DOM.el.parentElement.append(e), this.destroy() 578 } 579 } 580 }, { 581 key: "bindEvent", 582 value: function() { 583 Z.addClearEvent(this.destroy.bind(this)) 584 } 585 }, {
586 key: "destroy", 587 value: function() { 588 this.id && st.i.getById(this.id) && st.i.getById(this.id).kill(), this.obServer && this.obServer.unobserve(this.DOM.el), this.obServer && this.obServer.disconnect() 589 } 590 }], i && ut(e.prototype, i), n && ut(e, n), Object.defineProperty(e, "prototype", { 591 writable: !1 592 }), t 593 }(); 594 const ht = ct; 595 596 function ft(t) { 597 return ft = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 598 return typeof t 599 } : function(t) { 600 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 601 }, ft(t) 602 } 603 604 function pt(t, e) { 605 for (var i = 0; i < e.length; i++) { 606 var n = e[i]; 607 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 608 if ("object" !== ft(t) || null === t) return t; 609 var i = t[Symbol.toPrimitive]; 610 if (void 0 !== i) { 611 var n = i.call(t, e || "default"); 612 if ("object" !== ft(n)) return n; 613 throw new TypeError("@@toPrimitive must return a primitive value.") 614 } 615 return ("string" === e ? String : Number)(t) 616 }(r, "string"), "symbol" === ft(o) ? o : String(o)), n) 617 } 618 var r, o 619 } 620 var yt = new(function() { 621 function t() { 622 ! function(t, e) { 623 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 624 }(this, t) 625 } 626 var e, i, n; 627 return e = t, (i = [{ 628 key: "handleLoadImageByEl", 629 value: function(t) { 630 t.querySelectorAll(".js-image--lazy:not(.is-handle)").forEach((function(t) { 631 new ht(t) 632 })), C() && (t.querySelectorAll(".js-lazy__webgl-image:not(.is-handle)").forEach((function(t) { 633 new ht(t) 634 })), t.querySelectorAll(".js-webgl-team--image:not(.is-handle)").forEach((function(t) { 635 new ht(t) 636 }))) 637 } 638 }, { 639 key: "handleAjaxContentLoaded", 640 value: function(t) { 641 var e = t.classWrapContent; 642 document.querySelectorAll("".concat(e, " .js-image--lazy:not(.is-handle)")).forEach((function(t) { 643 new ht(t) 644 })), C() && (document.querySelectorAll("".concat(e, " .js-lazy__webgl-image:not(.is-handle)")).forEach((function(t) { 645 new ht(t) 646 })), document.querySelectorAll("".concat(e, " .js-webgl-team--image:not(.is-handle)")).forEach((function(t) { 647 new ht(t) 648 }))) 649 } 650 }, { 651 key: "init", 652 value: function() { 653 document.querySelectorAll(".js-image--lazy").forEach((function(t) { 654 new ht(t) 655 })), C() && (document.querySelectorAll(".js-lazy__webgl-image").forEach((function(t) { 656 new ht(t) 657 })), document.querySelectorAll(".js-webgl-team--image").forEach((function(t) { 658 new ht(t) 659 }))) 660 } 661 }]) && pt(e.prototype, i), n && pt(e, n), Object.defineProperty(e, "prototype", { 662 writable: !1 663 }), t 664 }()); 665 666 function dt(t) { 667 return dt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 668 return typeof t 669 } : function(t) { 670 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 671 }, dt(t) 672 } 673 674 function vt(t, e) { 675 for (var i = 0; i < e.length; i++) { 676 var n = e[i]; 677 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 678 if ("object" !== dt(t) || null === t) return t; 679 var i = t[Symbol.toPrimitive]; 680 if (void 0 !== i) { 681 var n = i.call(t, e || "default"); 682 if ("object" !== dt(n)) return n; 683 throw new TypeError("@@toPrimitive must return a primitive value.") 684 } 685 return ("string" === e ? String : Number)(t) 686 }(r, "string"), "symbol" === dt(o) ? o : String(o)), n) 687 } 688 var r, o 689 } 690 var mt = function() { 691 function t() { 692 ! function(t, e) { 693 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 694 }(this, t), this.DOM_ = {}, this.filterSvgLoader_ = [], this.caching = {} 695 } 696 var e, i, n; 697 return e = t, i = [{ 698 key: "handleSVGRender", 699 value: function(t) { 700 "Document" === t ? D.emit("SVG_DOCUMENT") : D.emit
700("SVG_ELEMENT") 701 } 702 }, { 703 key: "checkFilterSvgExits", 704 value: function(t) { 705 for (var e = 0; e < this.filterSvgLoader_.length; e++) 706 if (this.filterSvgLoader_[e] && this.filterSvgLoader_[e].src === t) return e; 707 return !1 708 } 709 }, { 710 key: "filterList", 711 value: function(t) { 712 var e = this; 713 this.DOM_.svgs = t.querySelectorAll("img.svg"), this.DOM_.svgs.forEach((function(t) { 714 var i = new RegExp(/.+.svg/), 715 n = t.getAttribute("src"); 716 if (i.test(n)) { 717 var r = e.checkFilterSvgExits(n); 718 if (!1 === r) { 719 var o = { 720 src: n, 721 elements: [] 722 }; 723 o.elements.push(t), e.filterSvgLoader_.push(o) 724 } else e.filterSvgLoader_[r].elements.push(t) 725 } 726 })) 727 } 728 }, { 729 key: "initSvgIn", 730 value: function(t, e, i) { 731 t.innerHTML = e; 732 var n = t.children[0]; 733 i.elements.forEach((function(t) { 734 n.setAttribute("class", t.getAttribute("class")); 735 var e = parseInt(t.getAttribute("width"), 10), 736 i = parseInt(t.getAttribute("height"), 10); 737 if (!n.getAttribute("viewBox_")) { 738 var r = n.offsetWidth || e, 739 o = n.offsetHeight || i; 740 n.setAttribute("viewBox_", "0 0 " + r + " " + o) 741 } 742 i && n.setAttribute("height", i), e && n.setAttribute("width", e), t.parentElement && (t.outerHTML = n.outerHTML) 743 })) 744 } 745 }, { 746 key: "renderSvg", 747 value: function(t, e) { 748 var i = this, 749 n = [], 750 r = document.createElement("div"); 751 this.filterList(t), setTimeout((function() { 752 for (var t = function() { 753 var t = i.filterSvgLoader_[o]; 754 n.push(new Promise((function(e) { 755 i.caching[t.src] ? (i.initSvgIn(r, i.caching[t.src], t), e()) : fetch(t.src).then((function(t) { 756 return t.text() 757 })).then((function(n) { 758 i.caching[t.src] = n, i.initSvgIn(r, n, t), e() 759 })) 760 }))) 761 }, o = 0; o < i.filterSvgLoader_.length; o++) t(); 762 Promise.all(n).then((function() { 763 i.handleSVGRender(e) 764 })) 765 }), 10) 766 } 767 }, { 768 key: "initRenderSVG", 769 value: function() { 770 this.renderSvg(document, "Document") 771 } 772 }, {
773 key: "renderSvgElement", 774 value: function(t) { 775 this.renderSvg(t, "Element") 776 } 777 }], i && vt(e.prototype, i), n && vt(e, n), Object.defineProperty(e, "prototype", { 778 writable: !1 779 }), t 780 }(), 781 bt = new mt; 782 783 function gt(t) { 784 return gt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 785 return typeof t 786 } : function(t) { 787 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 788 }, gt(t) 789 } 790 791 function wt(t, e) { 792 for (var i = 0; i < e.length; i++) { 793 var n = e[i]; 794 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 795 if ("object" !== gt(t) || null === t) return t; 796 var i = t[Symbol.toPrimitive]; 797 if (void 0 !== i) { 798 var n = i.call(t, e || "default"); 799 if ("object" !== gt(n)) return n; 800 throw new TypeError("@@toPrimitive must return a primitive value.") 801 } 802 return ("string" === e ? String : Number)(t) 803 }(r, "string"), "symbol" === gt(o) ? o : String(o)), n) 804 } 805 var r, o 806 } 807 var Ot = function() { 808 function t() { 809 ! function(t, e) { 810 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 811 }(this, t), this.DOM = { 812 main: document.querySelector(".js-grid-debug") 813 }, this.DOM.main && (this.countTouch = 0, this.enabled = localStorage.getItem("isGrid"), this.layout(), window.addEventListener("keydown", this.handleKeyDown.bind(this)), window.addEventListener("touchstart", this.handleTouchStart.bind(this))) 814 } 815 var e, i, n; 816 return e = t, i = [{ 817 key: "handleTouchStart", 818 value: function() { 819 var t = this; 820 this.timeClear && clearTimeout(this.timeClear), this.countTouch++, this.countTouch >= 3 ? (this.countTouch = 0, this.enabled = "false" === this.enabled ? "true" : "false", this.layout(), localStorage.setItem("isGrid", String(this.enabled))) : this.timeClear = setTimeout((function() { 821 t.countTouch = 0 822 }), 200) 823 } 824 }, { 825 key: "handleKeyDown", 826 value: function(t) { 827 var e = t.which || t.keyCode; 828 t.shiftKey && 71 === e && (this.enabled = "false" === this.enabled ? "true" : "false", this.layout(), localStorage.setItem("isGrid", String(this.enabled))) 829 } 830 }, { 831 key: "layout", 832 value: function() { 833 "false" !== this.enabled ? this.DOM.main.style.display = "block" : this.DOM.main.style.display = "none" 834 } 835 }], i && wt(e.prototype, i), n && wt(e, n), Object.defineProperty(e, "prototype", { 836 writable: !1 837 }), t 838 }(); 839 const St = Ot; 840 841 function Mt(t) { 842 return Mt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 843 return typeof t 844 } : function(t) { 845 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 846 }, Mt(t) 847 } 848 849 function kt(t, e) { 850 for (var i = 0; i < e.length; i++) { 851 var n = e[i]; 852 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 853 if ("object" !== Mt(t) || null === t) return t; 854 var i = t[Symbol.toPrimitive]; 855 if (void 0 !== i) { 856 var n = i.call(t, e || "default"); 857 if ("object" !== Mt(n)) return n; 858 throw new TypeError("@@toPrimitive must return a primitive value.") 859 } 860 return ("string" === e ? String : Number)(t) 861 }(r, "string"), "symbol" === Mt(o) ? o : String(o)), n) 862 } 863 var r, o 864 } 865 var Dt = function() { 866 function t() { 867 ! function(t, e) { 868 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 869 }(this, t), this.idSetTimeoutWindowResize = null, this.onShowTimeout = !1, this.callBeforeResize = !1, this.init(), this.timeoutWindowResize = this.timeoutWindowResize.bind(this), this.init = this.init.bind(this), this.getWin(), this.bindingEvents() 870 } 871 var e, i, n; 872 return e = t, i = [{ 873 key: "init", 874 value: function() { 875 this.fix100VhOnPhone(), this.contentFixed = [], this.contentFixed.push(document.querySelector(".header--site")), this.contentFixed.push(document.querySelector("#screen--content")), document.body.style.overflow = "auto", document.body.insertAdjacentHTML("beforeend", '<div id="layout-resize"></div>'), this.layoutReize = document.querySelector("#layout-resize"), this.bodyClass(), this.getWin() 876 } 877 }, { 878 key: "bodyClass", 879 value: function() { 880 var t = this; 881 C() && document.body.classList.add("is-mobile"), _() && document.body.classList.add("is-touch"), document.querySelectorAll('a[href^="#"]:not(.has-tag-handle), a[href^="/#"]:not(.has-tag-handle)').forEach((function(e) { 882 var i = function(t) { 883 return t.replace("/", "") 884 }(e.getAttribute("href")); 885 H(i) && document.querySelector(i) && (e.classList.add("has-tag-handle"), e.addEventListener("click", (function(e) { 886 e.preventDefault(), t._handleLocationHasTag(i) 887 }))) 888 })) 889 } 890 }, { 891 key: "fix100VhOnPhone", 892 value: function() { 893 var t = .01 * window.innerHeight; 894 document.documentElement.style.setProperty("--vh", "".concat(t, "px")) 895 } 896 }, {
897 key: "getWin", 898 value: function() { 899 this.winSize = { 900 width: window.innerWidth, 901 height: window.innerHeight 902 } 903 } 904 }, { 905 key: "calcWin", 906 value: function() { 907 this.calcWinSize = { 908 width: window.innerWidth, 909 height: window.innerHeight 910 } 911 } 912 }, { 913 key: "timeoutWindowResize", 914 value: function() { 915 var t = this; 916 this.onShowTimeout = !1, this.bodyClass(), this.winSize.width !== this.calcWinSize.width && (this.winSize.width = this.calcWinSize.width, D.emit("HT_RESIZE_WIDTH")), this.winSize.height !== this.calcWinSize.height && (this.winSize.height = this.calcWinSize.height, D.emit("HT_RESIZE_HEIGHT")), D.emit(h), this.callBeforeResize = !1, ot.p8.to(this.layoutReize, { 917 duration: .5, 918 opacity: 0, 919 ease: "power3.inOut", 920 onComplete: function() { 921 t.layoutReize.style.zIndex = -1 922 } 923 }), this.fix100VhOnPhone() 924 } 925 }, { 926 key: "_handleLocationHasTag", 927 value: function(t) { 928 var e = document.querySelector(t); 929 e && (Z.isTouchDevice ? ot.p8.to(window, { 930 scrollTo: { 931 y: e 932 }, 933 duration: 1.2, 934 ease: "power3.inOut" 935 }) : rt.lenis.scrollTo(e)) 936 } 937 }, { 938 key: "pageEnter", 939 value: function() { 940 var t = this; 941 setTimeout((function() { 942 var e = window.location.hash; 943 H(e) && t._handleLocationHasTag(e) 944 }), 120) 945 } 946 }, { 947 key: "bindingEvents", 948 value: function() { 949 var t = this; 950 window.addEventListener("load", (function() { 951 window.scrollTo(0, 0) 952 })), window.addEventListener("resize", (function() { 953 t.calcWin(), (!_() || _() && t.winSize.width !== t.calcWinSize.width) && (t.winSize.width = t.calcWinSize.width, t.onShowTimeout || (t.onShowTimeout = !0, ot.p8.set(t.layoutReize, { 954 opacity: 1, 955 zIndex: 9999 956 })), t.callBeforeResize || (t.callBeforeResize = !0, D.emit("BEFORE_HT_RESIZE")), t.idSetTimeoutWindowResize && clearTimeout(t.idSetTimeoutWindowResize), t.idSetTimeoutWindowResize = setTimeout(t.timeoutWindowResize, 350)) 957 })), D.on(g, this.bodyClass.bind(this)), D.on(w, this.pageEnter.bind(this)), D.on(O, (function() { 958 C() && window.scrollTo({ 959 left: 0, 960 top: 0 961 }) 962 })) 963 } 964 }], i && kt(e.prototype, i), n && kt(e, n), Object.defineProperty(e, "prototype", { 965 writable: !1 966 }), t 967 }(); 968 969 function Et(t) { 970 return Et = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 971 return typeof t 972 } : function(t) { 973 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 974 }, Et(t) 975 } 976 977 function Pt(t, e) { 978 for (var i = 0; i < e.length; i++) { 979 var n = e[i]; 980 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 981 if ("object" !== Et(t) || null === t) return t; 982 var i = t[Symbol.toPrimitive]; 983 if (void 0 !== i) { 984 var n = i.call(t, e || "default"); 985 if ("object" !== Et(n)) return n; 986 throw new TypeError("@@toPrimitive must return a primitive value.") 987 } 988 return ("string" === e ? String : Number)(t) 989 }(r, "string"), "symbol" === Et(o) ? o : String(o)), n) 990 } 991 var r, o 992 } 993 var jt = function() { 994 function t(e) { 995 ! function(t, e) { 996 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 997 }(this, t), this.status = e, this.devInfo = { 998 Email: "[email protected]", 999 website: "https://xxxx.com", 1000 Facebook: "https://www.facebook.com/", 1001 Twitter: "https://twitter.com/", 1002 Linkedin: "https://www.linkedin.com/", 1003 Copyright: 2022 1004 }, this.init(), this.bindEvent() 1005 } 1006 var e, i, n; 1007 return e = t, i = [{ 1008 key: "init", 1009 value: function() { 1010 "dev" !== this.status && (console.log(), console.log = function() {}) 1011 } 1012 }, { 1013 key: "showDevInfo", 1014 value: function() { 1015 for (var t in this.devInfo) console.log(t.toString(), this.devInfo[t]) 1016 } 1017 }, { 1018 key: "bindEvent", 1019 value: function() { 1020 var t = this; 1021 document.addEventListener("devInfo", (function() { 1022 return t.showDevInfo() 1023 })) 1024 } 1025 }], i && Pt(e.prototype, i), n && Pt(e, n), Object.defineProperty(e, "prototype", { 1026 writable: !1 1027 }), t 1028 }(); 1029 const Tt = jt; 1030 var Lt = function(t, e, i, n, r) { 1031 return parseFloat(((t - e) * (r - n) / (i - e) + n).toFixed(3)) 1032 }, 1033 xt = function(t, e, i) { 1034 return parseFloat(((1 - i) * t + i * e).toFixed(3)) 1035 }; 1036 1037 function At(t) { 1038 return At = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 1039 return typeof t 1040 } : function(t) { 1041 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 1042 }, At(t) 1043 } 1044 1045 function Rt(t, e) { 1046 for (var i = 0; i < e.length; i++) { 1047 var n = e[i]; 1048 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 1049 if ("object" !== At(t) || null === t) return t; 1050 var i = t[Symbol.toPrimitive]; 1051 if (void 0 !== i) { 1052 var n = i.call(t, e || "default"); 1053 if ("object" !== At(n)) return n; 1054 throw new TypeError("@@toPrimitive must return a primitive value.") 1055 } 1056 return ("string" === e ? String : Number)(t) 1057 }(r, "string"), "symbol" === At(o) ? o : String(o)), n) 1058 } 1059 var r, o 1060 } 1061 var _t = function() { 1062 function t(e) { 1063 var i = e.el, 1064 n = e.elObServer, 1065 r = void 0 === n ? null : n, 1066 o = e.options, 1067 s = e.animIn, 1068 a = void 0 === s ? null : s, 1069 l = e.animUnset, 1070 u = void 0 === l ? null : l, 1071 c = e.offsetPercent, 1072 h = void 0 === c ? null : c; 1073 ! function(t, e) { 1074 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 1075 }(this, t), this.animated = !1, this.animOb = { 1076 el: i, 1077 elObServer: r, 1078 options: o, 1079 animIn: a, 1080 animUnset: u, 1081 offsetPercent: h 1082 }, i.classList.add("is-handler", "is-anim-handler"), i.classList.remove("is-anim-loading"), this.animated = !1, this.isEnter = !1, this.enterOnly = i.getAttribute("data-enteronly") || !1, this.pageEnter = this.pageEnter.bind(this), this.id = (Math.random() + (new Date).getTime()).toString(), this.bindEvent(), Z.addClearEvent(this.removeEvent.bind(this)) 1083 } 1084 var e, i, n; 1085 return e = t, i = [{ 1086 key: "handleScrolling", 1087 value: function() { 1088 var t = this, 1089 e = this.animOb, 1090 i = e.el, 1091 n = e.elObServer, 1092 r = 0; 1093 if (null === this.animOb.offsetPercent) { 1094 var o = i.getBoundingClientRect(), 1095 s = o.height; 1096 o.top >= Z.winSize.height && (r = Lt(s / Z.winSize.height, 0, 1, .3, 0), r = Math.max(Math.min(r, .3), 0)) 1097 } 1098 r = i.getAttribute("data-threshold") || r, st.i.create({ 1099 trigger: n || i, 1100 markers: !1, 1101 id: this.id, 1102 start: "".concat(r, "% bottom"), 1103 onEnter: function() { 1104 t.isEnter && (t.isVisible = !0, t.animIn()) 1105 }, 1106 onLeave: function() { 1107 t.enterOnly && (t.animOb.animUnset && t.animOb.animUnset(), t.removeEvent(), t.isVisible = !1) 1108 } 1109 }) 1110 } 1111 }, { 1112 key: "animIn", 1113 value: function() { 1114 var t = this.animOb, 1115 e = t.animIn, 1116 i = t.el, 1117 n = Z.isScrolled() ? parseFloat(i.getAttribute("data-offset")) || 0 : parseFloat(i.getAttribute("data-screen-offset")) || 0; 1118 e && e(n), this.removeEvent() 1119 } 1120 }, { 1121 key: "isInViewPointer", 1122 value: function() { 1123 return this.isVisible 1124 } 1125 }, { 1126 key: "pageEnter", 1127 value: function() { 1128 this.isEnter = !0, this.handleScrolling() 1129 } 1130 }, { 1131 key: "bindEvent", 1132 value: function() { 1133 D.on(w, this.pageEnter) 1134 } 1135 }, { 1136 key: "removeEvent", 1137 value: function() { 1138 D.off(w, this.pageEnter), this.id && st.i.getById(this.id).kill(), this.id = null 1139 } 1140 }], i && Rt(e.prototype, i), n && Rt(e, n), Object.defineProperty(e, "prototype", { 1141 writable: !1 1142 }), t 1143 }(); 1144 const Ct = _t; 1145 var It = i(8388); 1146 1147 function zt(t) { 1148 return zt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 1149 return typeof t 1150 } : function(t) { 1151 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 1152 }, zt(t) 1153 } 1154 1155 function qt(t, e) { 1156 var i = Object.keys(t); 1157 if (Object.getOwnPropertySymbols) { 1158 var n = Object.getOwnPropertySymbols(t); 1159 e && (n = n.filter((function(e) { 1160 return Object.getOwnPropertyDescriptor(t, e).enumerable 1161 }))), i.push.apply(i, n) 1162 } 1163 return i 1164 } 1165 1166 function Ht(t) { 1167 for (var e = 1; e < arguments.length; e++) { 1168 var i = null != arguments[e] ? arguments[e] : {};
1169 e % 2 ? qt(Object(i), !0).forEach((function(e) { 1170 Bt(t, e, i[e]) 1171 })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : qt(Object(i)).forEach((function(e) { 1172 Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e)) 1173 })) 1174 } 1175 return t 1176 } 1177 1178 function Bt(t, e, i) { 1179 return (e = Ft(e)) in t ? Object.defineProperty(t, e, { 1180 value: i, 1181 enumerable: !0, 1182 configurable: !0, 1183 writable: !0 1184 }) : t[e] = i, t 1185 } 1186 1187 function Nt(t, e) { 1188 for (var i = 0; i < e.length; i++) { 1189 var n = e[i]; 1190 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, Ft(n.key), n) 1191 } 1192 } 1193 1194 function Ft(t) { 1195 var e = function(t, e) { 1196 if ("object" !== zt(t) || null === t) return t; 1197 var i = t[Symbol.toPrimitive]; 1198 if (void 0 !== i) { 1199 var n = i.call(t, e || "default"); 1200 if ("object" !== zt(n)) return n; 1201 throw new TypeError("@@toPrimitive must return a primitive value.") 1202 } 1203 return ("string" === e ? String : Number)(t) 1204 }(t, "string"); 1205 return "symbol" === zt(e) ? e : String(e) 1206 } 1207 var Wt = function() { 1208 function t(e) { 1209 var i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : { 1210 runMobile: !1 1211 }; 1212 ! function(t, e) { 1213 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 1214 }(this, t), this.DOM = { 1215 el: e 1216 }, (B(this.DOM.el) || !i.handleScrolling || i.runMobile) && this.DOM.el && (this.onHover = !1, this.options = Ht({}, i), this.init()) 1217 } 1218 var e, i, n; 1219 return e = t, i = [{ 1220 key: "addAnimType", 1221 value: function() { 1222 var t; 1223 this.DOM.el.classList.add("anim--chars"); 1224 var e = this.options, 1225 i = e.type, 1226 n = e.isHover; 1227 switch (i) { 1228 case "simple": 1229 t = { 1230 from: { 1231 opacity: 0 1232 }, 1233 to: { 1234 opacity: 1, 1235 duration: 1.4, 1236 stagger: .05, 1237 delay: 0, 1238 ease: "power3.out" 1239 }, 1240 out: { 1241 from: { 1242 opacity: 0 1243 }, 1244 duration: .8, 1245 stagger: .01, 1246 ease: "power3.inOut" 1247 } 1248 }, this.DOM.el.classList.add("anim--chars--simple"); 1249 break; 1250 case "2d": 1251 t = { 1252 from: { 1253 y: "105%" 1254 }, 1255 to: { 1256 y: "0%", 1257 duration: 1.4, 1258 stagger: .02, 1259 delay: 0, 1260 ease: "power3.out" 1261 }, 1262 out: { 1263 y: "-105%", 1264 duration: .8, 1265 stagger: .01, 1266 ease: "power3.inOut" 1267 } 1268 }, this.DOM.el.classList.add("anim--chars--2d"); 1269 break; 1270 case "x_2d": 1271 t = { 1272 from: { 1273 x: "-105%" 1274 }, 1275 to: { 1276 x: "0%", 1277 duration: 1.4, 1278 stagger: .015, 1279 delay: 0, 1280 ease: "power3.out" 1281 }, 1282 out: { 1283 x: "105%", 1284 duration: .8, 1285 stagger: .01, 1286 ease: "power3.inOut" 1287 } 1288 }, this.DOM.el.classList.add("anim--chars--2d"); 1289 break; 1290 default: 1291 t = { 1292 from: { 1293 y: "105%", 1294 rotationX: 20 1295 }, 1296 to: { 1297 y: "0%", 1298 rotationX: 0, 1299 duration: 1.4, 1300 stagger: .015, 1301 delay: 0, 1302 ease: "power3.out" 1303 }, 1304 out: { 1305 y: "-105%", 1306 rotationX: 0, 1307 duration: .8, 1308 stagger: .01, 1309 ease: "power3.inOut" 1310 } 1311 }, this.DOM.el.classList.add("anim--chars--3d") 1312 } 1313 this.options.from = Ht(Ht({}, t.from), this.options.from), this.options.to = Ht(Ht({}, t.to), this.options.to), this.options.out = Ht(Ht({}, t.out), this.options.out), this.DOM.el.classList.remove("is-anim"), n || ot.p8.set(this.spliters.chars, this.options.from) 1314 } 1315 }, { 1316 key: "animUnset", 1317 value: function() { 1318 ot.p8.set(this.spliters.chars, this.options.from) 1319 } 1320 }, { 1321 key: "init", 1322 value: function() { 1323 this.spliters = new It.Z(this.DOM.el, { 1324 types: "chars, lines" 1325 }), this.addAnimType(), this.options.handleScrolling && (this.animHelper = new Ct({ 1326 el: this.DOM.el, 1327 options: this.options, 1328 animIn: this.animIn.bind(this) 1329 })) 1330 } 1331 }, { 1332 key: "animIn", 1333 value: function() { 1334 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0, 1335 e = Object.assign({ 1336 delay: 0 1337 }, this.options.to); 1338 e.delay += t, ot.p8.killTweensOf(this.spliters.chars), this.options.type, ot.p8.fromTo(this.spliters.chars, this.options.from, e) 1339 } 1340 }, { 1341 key: "animOutTop", 1342 value: function(t) { 1343 ot.p8.killTweensOf(this.spliters.chars), ot.p8.to(this.spliters.chars, { 1344 y: "-105%", 1345 ease: "power3.out", 1346 duration: .6, 1347 stagger: .015, 1348 delay: t 1349 }) 1350 } 1351 }, { 1352 key: "animOutBottom", 1353 value: function() { 1354 ot.p8.killTweensOf(this.spliters.chars), ot.p8.to(this.spliters.chars, { 1355 y: "105%", 1356 ease: "power3.out", 1357 duration: .6, 1358 stagger: .015 1359 }) 1360 } 1361 }, { 1362 key: "animToIn", 1363 value: function(t) { 1364 var e = Object.assign({ 1365 delay: 0 1366 }, this.options.to); 1367 e.delay += t, ot.p8.killTweensOf(this.spliters.chars), this.options.type, ot.p8.to(this.spliters.chars, e) 1368 } 1369 }, { 1370 key: "animHover", 1371 value: function() { 1372 var t = this; 1373 if (!this.onHover) { 1374 this.onHover = !0; 1375 var e = Object.assign({ 1376 onComplete: function() { 1377 Object.assign({}, t.options.to).duration = .3, ot.p8.fromTo(t.spliters.chars, t.options.from, t.options.to), t.onHover = !1 1378 } 1379 }, this.options.out); 1380 e.duration = .3, ot.p8.killTweensOf(this.spliters.chars), ot.p8.to(this.spliters.chars, e) 1381 } 1382 } 1383 }], i && Nt(e.prototype, i), n && Nt(e, n), Object.defineProperty(e, "prototype", { 1384 writable: !1 1385 }), t 1386 }(); 1387 1388 function Vt(t) { 1389 return Vt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 1390 return typeof t 1391 } : function(t) { 1392 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 1393 }, Vt(t) 1394 } 1395 1396 function Gt(t, e) { 1397 var i = Object.keys(t); 1398 if (Object.getOwnPropertySymbols) { 1399 var n = Object.getOwnPropertySymbols(t); 1400 e && (n = n.filter((function(e) { 1401 return Object.getOwnPropertyDescriptor(t, e).enumerable 1402 }))), i.push.apply(i, n) 1403 } 1404 return i 1405 } 1406 1407 function Ut(t) { 1408 for (var e = 1; e < arguments.length; e++) { 1409 var i = null != arguments[e] ? arguments[e] : {};
1410 e % 2 ? Gt(Object(i), !0).forEach((function(e) { 1411 Zt(t, e, i[e]) 1412 })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : Gt(Object(i)).forEach((function(e) { 1413 Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e)) 1414 })) 1415 } 1416 return t 1417 } 1418 1419 function Zt(t, e, i) { 1420 return (e = Xt(e)) in t ? Object.defineProperty(t, e, { 1421 value: i, 1422 enumerable: !0, 1423 configurable: !0, 1424 writable: !0 1425 }) : t[e] = i, t 1426 } 1427 1428 function Yt(t, e) { 1429 for (var i = 0; i < e.length; i++) { 1430 var n = e[i]; 1431 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, Xt(n.key), n) 1432 } 1433 } 1434 1435 function Xt(t) { 1436 var e = function(t, e) { 1437 if ("object" !== Vt(t) || null === t) return t; 1438 var i = t[Symbol.toPrimitive]; 1439 if (void 0 !== i) { 1440 var n = i.call(t, e || "default"); 1441 if ("object" !== Vt(n)) return n; 1442 throw new TypeError("@@toPrimitive must return a primitive value.") 1443 } 1444 return ("string" === e ? String : Number)(t) 1445 }(t, "string"); 1446 return "symbol" === Vt(e) ? e : String(e) 1447 } 1448 var Kt = function() { 1449 function t(e, i) { 1450 ! function(t, e) { 1451 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 1452 }(this, t), this.DOM = { 1453 el: e 1454 }, this.DOM.el ? B(this.DOM.el) || !i.handleScrolling ? (this.DOM.el.classList.add("anim--lines"), this.options = Ut({}, i), this.animHelper = null, this.addAnimType()) : this.DOM.el.classList.remove("is-anim-loading") : console.log("___not_el_AnimSimpleLine") 1455 } 1456 var e, i, n; 1457 return e = t, i = [{ 1458 key: "addAnimType", 1459 value: function() { 1460 var t, e, i; 1461 (e = (t = this).DOM.el).innerHTML = "<span class='d-block line--mask-element'>".concat(e.innerHTML, "</span>"), t.DOM.elemntMask = e.querySelector(".line--mask-element"), e.classList.add("only--line-mask"), i = { 1462 from: { 1463 y: "105%" 1464 }, 1465 to: { 1466 y: "0%", 1467 ease: "power3.out", 1468 duration: .8, 1469 delay: 0 1470 } 1471 }, this.options.from = Ut(Ut({}, i.from), this.options.from), this.options.to = Ut(Ut({}, i.to), this.options.to), this.options.out = Ut(Ut({}, i.out), this.options.out), this.DOM.el.classList.remove("is-anim-loading"), this.options.isHover ? (this.DOM.elemntMaskClose = this.DOM.elemntMask.cloneNode(!0), this.DOM.elemntMaskClose.classList.add("is-clone"), ot.p8.set(this.DOM.elemntMaskClose, this.options.from), this.DOM.el.append(this.DOM.elemntMaskClose)) : ot.p8.set(this.DOM.elemntMask, this.options.from), this.DOM.el.classList.remove("is-anim-loading"), this.options.handleScrolling && (this.animHelper = new Ct({ 1472 el: this.DOM.el, 1473 animIn: this.animIn.bind(this), 1474 options: this.options 1475 })) 1476 } 1477 }, { 1478 key: "animUnset", 1479 value: function() { 1480 ot.p8.set(this.DOM.elemntMask, this.options.from) 1481 } 1482 }, { 1483 key: "animIn", 1484 value: function() { 1485 var t = this, 1486 e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0, 1487 i = Object.assign({ 1488 delay: 0 1489 }, this.options.to); 1490 i.delay += e, i.pageLoaded = function() { 1491 t.DOM.el.classList.add("is-running") 1492 }, ot.p8.killTweensOf(this.DOM.elemntMask), ot.p8.fromTo(this.DOM.elemntMask, this.options.from, i) 1493 } 1494 }, { 1495 key: "animInBack", 1496 value: function() { 1497 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0, 1498 e = Object.assign({ 1499 delay: 0 1500 }, this.options.to); 1501 e.delay += t, ot.p8.killTweensOf(this.DOM.elemntMask), ot.p8.to(this.DOM.elemntMask, e) 1502 } 1503 }, { 1504 key: "animOut", 1505 value: function() { 1506 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0; 1507 ot.p8.killTweensOf(this.DOM.elemntMask), ot.p8.to(this.DOM.elemntMask, { 1508 y: "-105%", 1509 ease: "power3.out", 1510 duration: .6, 1511 delay: t 1512 }) 1513 } 1514 }, { 1515 key: "animOutBack", 1516 value: function() { 1517 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0; 1518 ot.p8.killTweensOf(this.DOM.elemntMask), ot.p8.to(this.DOM.elemntMask, { 1519 y: "105%", 1520 ease: "power3.out", 1521 duration: .6, 1522 delay: t 1523 }) 1524 } 1525 }, { 1526 key: "animInOpacity", 1527 value: function(t) { 1528 var e = Object.assign({ 1529 delay: 0 1530 }, this.options.to); 1531 e.delay += t, ot.p8.killTweensOf(this.DOM.elemntMask), ot.p8.fromTo(this.DOM.elemntMask, Ut(Ut({}, { 1532 opacity: 1 1533 }), this.options.from), e) 1534 } 1535 }, { 1536 key: "animOUtOpacity", 1537 value: function() { 1538 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0; 1539 ot.p8.killTweensOf(this.DOM.elemntMask), ot.p8.to(this.DOM.elemntMask, { 1540 opacity: "0", 1541 ease: "power3.out", 1542 duration: .6, 1543 delay: t 1544 }) 1545 } 1546 }, { 1547 key: "animHover", 1548 value: function() { 1549 var t = this; 1550 this.onHover || (this.onHover = !0, ot.p8.killTweensOf([this.DOM.elemntMask, this.DOM.elemntMaskClose]), ot.p8.fromTo(this.DOM.elemntMaskClose, { 1551 y: "105%" 1552 }, { 1553 y: "0%", 1554 duration: .6, 1555 delay: .05, 1556 ease: "power3.out" 1557 }), ot.p8.fromTo(this.DOM.elemntMask, { 1558 y: 0 1559 }, { 1560 y: "-105%", 1561 duration: .6, 1562 ease: "power3.out", 1563 onComplete: function() { 1564 t.onHover = !1 1565 } 1566 })) 1567 } 1568 }], i && Yt(e.prototype, i), n && Yt(e, n), Object.defineProperty(e, "prototype", { 1569 writable: !1 1570 }), t 1571 }(); 1572 1573 function Jt(t) { 1574 return Jt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 1575 return typeof t 1576 } : function(t) { 1577 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 1578 }, Jt(t) 1579 } 1580 1581 function Qt(t, e) { 1582 var i = Object.keys(t); 1583 if (Object.getOwnPropertySymbols) { 1584 var n = Object.getOwnPropertySymbols(t); 1585 e && (n = n.filter((function(e) { 1586 return Object.getOwnPropertyDescriptor(t, e).enumerable 1587 }))), i.push.apply(i, n) 1588 } 1589 return i 1590 } 1591 1592 function $t(t) { 1593 for (var e = 1; e < arguments.length; e++) { 1594 var i = null != arguments[e] ? arguments[e] : {};
1595 e % 2 ? Qt(Object(i), !0).forEach((function(e) { 1596 te(t, e, i[e]) 1597 })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : Qt(Object(i)).forEach((function(e) { 1598 Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e)) 1599 })) 1600 } 1601 return t 1602 } 1603 1604 function te(t, e, i) { 1605 return (e = ie(e)) in t ? Object.defineProperty(t, e, { 1606 value: i, 1607 enumerable: !0, 1608 configurable: !0, 1609 writable: !0 1610 }) : t[e] = i, t 1611 } 1612 1613 function ee(t, e) { 1614 for (var i = 0; i < e.length; i++) { 1615 var n = e[i]; 1616 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, ie(n.key), n) 1617 } 1618 } 1619 1620 function ie(t) { 1621 var e = function(t, e) { 1622 if ("object" !== Jt(t) || null === t) return t; 1623 var i = t[Symbol.toPrimitive]; 1624 if (void 0 !== i) { 1625 var n = i.call(t, e || "default"); 1626 if ("object" !== Jt(n)) return n; 1627 throw new TypeError("@@toPrimitive must return a primitive value.") 1628 } 1629 return ("string" === e ? String : Number)(t) 1630 }(t, "string"); 1631 return "symbol" === Jt(e) ? e : String(e) 1632 } 1633 var ne = function() { 1634 function t(e) { 1635 var i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : { 1636 runMobile: !1 1637 }; 1638 if (function(t, e) { 1639 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 1640 }(this, t), this.DOM = { 1641 el: e 1642 }, this.DOM.el) { 1643 var n = this.DOM.el.getAttribute("data-run-page") || null; 1644 (!n || document.body.classList.contains(n)) && (B(this.DOM.el) || !i.handleScrolling || i.runMobile) ? (this.options = $t({}, i), this.addAnimType()) : this.DOM.el.classList.remove("is-anim-loading") 1645 } else console.log("___not_el_AnimScale") 1646 } 1647 var e, i, n; 1648 return e = t, i = [{ 1649 key: "addAnimType", 1650 value: function() { 1651 var t; 1652 this.DOM.el.classList.add("anim--fade"), this.options.type, t = { 1653 from: { 1654 opacity: 0, 1655 scale: 1.4 1656 }, 1657 to: { 1658 opacity: 1, 1659 scale: 1, 1660 ease: "power3.inOut", 1661 duration: 1.8, 1662 delay: this.options.delay || 0, 1663 clearProps: "all" 1664 }, 1665 out: { 1666 opacity: 0, 1667 ease: "power3.inOut", 1668 duration: .6 1669 } 1670 }, this.options.from = $t($t({}, t.from), this.options.from), this.options.to = $t($t({}, t.to), this.options.to), this.options.out = $t($t({}, t.out), this.options.out), this.DOM.el.classList.remove("is-anim-loading"), this.options.handleScrolling && (this.animHelper = new Ct({ 1671 el: this.DOM.el, 1672 elObServer: this.DOM.el, 1673 animIn: this.animIn.bind(this), 1674 animUnset: this.animUnset.bind(this), 1675 options: this.options 1676 })), ot.p8.set(this.DOM.el, this.options.from) 1677 } 1678 }, { 1679 key: "animIn", 1680 value: function() { 1681 var t = this, 1682 e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0, 1683 i = Object.assign({ 1684 delay: 0 1685 }, this.options.to); 1686 i.delay += e, ot.p8.killTweensOf(this.DOM.el), ot.p8.fromTo(this.DOM.el, this.options.from, i), setTimeout((function() { 1687 t.DOM.el.classList.add("is-anim-completed") 1688 }), 1e3 * (i.delay + i.duration)) 1689 } 1690 }, { 1691 key: "animUnset", 1692 value: function() { 1693 var t = $t($t({}, this.options.to), { 1694 stagger: 0, 1695 delay: 0, 1696 duration: 0 1697 }); 1698 ot.p8.killTweensOf(this.DOM.el), ot.p8.set(this.DOM.el, t) 1699 } 1700 }, { 1701 key: "animFrom", 1702 value: function() { 1703 ot.p8.killTweensOf(this.DOM.el), ot.p8.set(this.DOM.el, this.options.from), this.animHelper && this.animHelper.handleScrolling() 1704 } 1705 }, { 1706 key: "animClearProp", 1707 value: function() { 1708 this.DOM.el.style = {} 1709 } 1710 }], i && ee(e.prototype, i), n && ee(e, n), Object.defineProperty(e, "prototype", { 1711 writable: !1 1712 }), t 1713 }(); 1714 1715 function re(t) { 1716 return re = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 1717 return typeof t 1718 } : function(t) { 1719 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 1720 }, re(t) 1721 } 1722 1723 function oe(t, e) { 1724 for (var i = 0; i < e.length; i++) { 1725 var n = e[i]; 1726 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 1727 if ("object" !== re(t) || null === t) return t; 1728 var i = t[Symbol.toPrimitive]; 1729 if (void 0 !== i) { 1730 var n = i.call(t, e || "default"); 1731 if ("object" !== re(n)) return n; 1732 throw new TypeError("@@toPrimitive must return a primitive value.") 1733 } 1734 return ("string" === e ? String : Number)(t) 1735 }(r, "string"), "symbol" === re(o) ? o : String(o)), n) 1736 } 1737 var r, o 1738 } 1739 var se = function() { 1740 function t(e) { 1741 var i = e.el; 1742 ! function(t, e) { 1743 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 1744 }(this, t), this.DOM = { 1745 el: i 1746 }, this.DOM.action = this.DOM.el.children[0], this.motion = { 1747 current: { 1748 x: 0, 1749 y: 0 1750 }, 1751 last: { 1752 x: 0, 1753 y: 0 1754 } 1755 }, this.render = this.render.bind(this), this.deClear = null, this.raf = null, ot.p8.ticker.add(this.render), this.bindEvent() 1756 } 1757 var e, i, n; 1758 return e = t, (i = [{ 1759 key: "render", 1760 value: function(t) { 1761 null === this.raf && (this.raf = t); 1762 var e = 1 - Math.pow(.001, t - this.raf); 1763 this.motion.current.x = xt(this.motion.current.x, this.motion.last.x, e), this.motion.current.y = xt(this.motion.current.y, this.motion.last.y, e), this.DOM.action.style.transform = "translate(".concat(this.motion.current.x, "px, ").concat(this.motion.current.y, "px)"), this.raf = t 1764 } 1765 }, { 1766 key: "onMouseMoving", 1767 value: function(t) { 1768 var e, i, n, r, o = this.DOM.el.getBoundingClientRect(), 1769 s = o.left, 1770 a = o.top, 1771 l = o.width, 1772 u = s + l / 2, 1773 c = a + o.height / 2, 1774 h = t.clientX - u, 1775 f = t.clientY - c, 1776 p = function(t, e) { 1777 var i = e.x, 1778 n = e.y, 1779 r = Math.sqrt(Math.pow(n, 2) + Math.pow(i, 2)); 1780 return { 1781 x: i / r * t, 1782 y: n / r * t 1783 } 1784 }(Math.min((e = 0, i = 0, n = h, r = f, Math.sqrt(Math.pow(e - n, 2) + Math.pow(i - r, 2))), l / 2), { 1785 x: h, 1786 y: f 1787 }), 1788 y = p.x, 1789 d = p.y; 1790 this.motion.last.x = y, this.motion.last.y = d 1791 } 1792 }, { 1793 key: "onMouseEnter", 1794 value: function() {} 1795 }, { 1796 key: "onMouseLeave", 1797 value: function() { 1798 this.motion.last.x = 0, this.motion.last.y = 0 1799 } 1800 }, { 1801 key: "bindEvent", 1802 value: function() { 1803 this.DOM.el.addEventListener("mouseenter", this.onMouseEnter.bind(this)), this.DOM.el.addEventListener("mouseleave", this.onMouseLeave.bind(this)), this.DOM.el.addEventListener("mousemove", this.onMouseMoving.bind(this)) 1804 } 1805 }, { 1806 key: "clear", 1807 value: function() {} 1808 }]) && oe(e.prototype, i), n && oe(e, n), Object.defineProperty(e, "prototype", { 1809 writable: !1 1810 }), t 1811 }(); 1812 1813 function ae(t) { 1814 return ae = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 1815 return typeof t 1816 } : function(t) { 1817 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 1818 }, ae(t) 1819 } 1820 1821 function le(t, e) { 1822 for (var i = 0; i < e.length; i++) { 1823 var n = e[i]; 1824 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 1825 if ("object" !== ae(t) || null === t) return t; 1826 var i = t[Symbol.toPrimitive]; 1827 if (void 0 !== i) { 1828 var n = i.call(t, e || "default"); 1829 if ("object" !== ae(n)) return n; 1830 throw new TypeError("@@toPrimitive must return a primitive value.") 1831 } 1832 return ("string" === e ? String : Number)(t) 1833 }(r, "string"), "symbol" === ae(o) ? o : String(o)), n) 1834 } 1835 var r, o 1836 } 1837 var ue = function() { 1838 function t(e) { 1839 var i = this, 1840 n = e.el, 1841 r = e.onEnter; 1842 ! function(t, e) { 1843 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 1844 }(this, t); 1845 var o = n.parentElement; 1846 this.DOM = { 1847 el: n, 1848 li: o 1849 }, this.id = n.getAttribute("href"), this.onEnter = r, this.isClicked = !1, st.i.create({ 1850 trigger: this.id, 1851 start: "top bottom", 1852 end: "bottom top", 1853 onToggle: function(t) { 1854 t.isActive ? (i.DOM.li.classList.add("is-active"), r(n)) : i.DOM.li.classList.remove("is-active") 1855 } 1856 }), this.bindEvent() 1857 } 1858 var e, i, n; 1859 return e = t, (i = [{ 1860 key: "clearActive",
1861 value: function() { 1862 this.DOM.li.classList.remove("is-active") 1863 } 1864 }, { 1865 key: "addActive", 1866 value: function() { 1867 this.DOM.li.classList.add("is-active"), this.onEnter(this.DOM.el) 1868 } 1869 }, { 1870 key: "onClick", 1871 value: function(t) { 1872 t.preventDefault(), t.stopPropagation(), this.addActive() 1873 } 1874 }, { 1875 key: "bindEvent", 1876 value: function() { 1877 this.onClick = this.onClick.bind(this), this.DOM.el.addEventListener("click", this.onClick) 1878 } 1879 }]) && le(e.prototype, i), n && le(e, n), Object.defineProperty(e, "prototype", { 1880 writable: !1 1881 }), t 1882 }(); 1883 1884 function ce(t) { 1885 return ce = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 1886 return typeof t 1887 } : function(t) { 1888 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 1889 }, ce(t) 1890 } 1891 1892 function he(t, e) { 1893 for (var i = 0; i < e.length; i++) { 1894 var n = e[i]; 1895 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 1896 if ("object" !== ce(t) || null === t) return t; 1897 var i = t[Symbol.toPrimitive]; 1898 if (void 0 !== i) { 1899 var n = i.call(t, e || "default"); 1900 if ("object" !== ce(n)) return n; 1901 throw new TypeError("@@toPrimitive must return a primitive value.") 1902 } 1903 return ("string" === e ? String : Number)(t) 1904 }(r, "string"), "symbol" === ce(o) ? o : String(o)), n) 1905 } 1906 var r, o 1907 } 1908 var fe = function() { 1909 function t() { 1910 var e = this; 1911 ! function(t, e) { 1912 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 1913 }(this, t), this.DOM = { 1914 main: document.querySelector(".js-header") 1915 }, this.DOM.logo = this.DOM.main.querySelector(".js-header_logo"), new se({ 1916 el: this.DOM.logo 1917 })/*,this.elMenuItems = [], this.DOM.main.querySelectorAll("li a[href]").forEach((function(t) { 1918 e.elMenuItems.push(new ue({ 1919 el: t, 1920 onEnter: e.onEnter.bind(e) 1921 })) 1922 }))*/, this.bindEvent() 1923 } 1924 var e, i, n; 1925 return e = t, (i = [{ 1926 key: "onEnter", 1927 value: function(t) { 1928 this.elMenuItems.forEach((function(e) { 1929 e.DOM.el !== t && e.clearActive() 1930 })) 1931 } 1932 }, { 1933 key: "bindEvent", 1934 value: function() {} 1935 }]) && he(e.prototype, i), n && he(e, n), Object.defineProperty(e, "prototype", { 1936 writable: !1 1937 }), t 1938 }(); 1939 1940 function pe(t) { 1941 return pe = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 1942 return typeof t 1943 } : function(t) { 1944 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 1945 }, pe(t) 1946 } 1947 1948 function ye(t, e) { 1949 for (var i = 0; i < e.length; i++) { 1950 var n = e[i]; 1951 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 1952 if ("object" !== pe(t) || null === t) return t; 1953 var i = t[Symbol.toPrimitive]; 1954 if (void 0 !== i) { 1955 var n = i.call(t, e || "default"); 1956 if ("object" !== pe(n)) return n; 1957 throw new TypeError("@@toPrimitive must return a primitive value.") 1958 } 1959 return ("string" === e ? String : Number)(t) 1960 }(r, "string"), "symbol" === pe(o) ? o : String(o)), n) 1961 } 1962 var r, o 1963 } 1964 var de = function() { 1965 function t(e) { 1966 var i = e.el, 1967 n = e.onHover, 1968 r = e.onLeave; 1969 ! function(t, e) { 1970 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 1971 }(this, t), this.DOM = { 1972 el: i 1973 }, this.funs = { 1974 onHover: n, 1975 onLeave: r 1976 }, this.DOM.el.classList.contains("js-simple-masking_el") ? this.DOM.parent = this.DOM.el.closest(".heading-mask") : this.DOM.el.classList.contains("heading-mask") && (this.DOM.parent = this.DOM.el), this.onEnter = this.onEnter.bind(this), this.onLeave = this.onLeave.bind(this), this.DOM.el.addEventListener("mouseenter", this.onEnter), this.DOM.el.addEventListener("mouseleave", this.onLeave) 1977 } 1978 var e, i, n; 1979 return e = t, (i = [{ 1980 key: "onEnter", 1981 value: function() { 1982 this.funs.onHover(), this.DOM.parent && this.DOM.parent.classList.add("is-hover") 1983 } 1984 }, { 1985 key: "onLeave", 1986 value: function() { 1987 this.funs.onLeave(), this.DOM.parent && this.DOM.parent.classList.remove("is-hover") 1988 } 1989 }, { 1990 key: "clear", 1991 value: function() { 1992 this.DOM.el.removeEventListener("mouseenter", this.onEnter), this.DOM.el.removeEventListener("mouseleave", this.onLeave) 1993 } 1994 }]) && ye(e.prototype, i), n && ye(e, n), Object.defineProperty(e, "prototype", { 1995 writable: !1 1996 }), t 1997 }(); 1998 1999 function ve(t) { 2000 return ve = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 2001 return typeof t 2002 } : function(t) { 2003 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 2004 }, ve(t) 2005 } 2006 2007 function me(t, e) { 2008 for (var i = 0; i < e.length; i++) { 2009 var n = e[i]; 2010 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 2011 if ("object" !== ve(t) || null === t) return t; 2012 var i = t[Symbol.toPrimitive]; 2013 if (void 0 !== i) { 2014 var n = i.call(t, e || "default"); 2015 if ("object" !== ve(n)) return n; 2016 throw new TypeError("@@toPrimitive must return a primitive value.") 2017 } 2018 return ("string" === e ? String : Number)(t) 2019 }(r, "string"), "symbol" === ve(o) ? o : String(o)), n) 2020 } 2021 var r, o 2022 } 2023 var be = function() { 2024 function t() { 2025 ! function(t, e) { 2026 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 2027 }(this, t), this.DOM = { 2028 main: document.querySelector(".js-masker") 2029 }, this.DOM.btnClip = document.getElementById("js-btn_clipPath"), this.raf = null; 2030 var e = Z.mouse, 2031 i = e.x, 2032 n = e.y; 2033 this.cursor = { 2034 current: { 2035 x: i, 2036 y: n 2037 }, 2038 last: { 2039 x: i, 2040 y: n 2041 }, 2042 value: 0, 2043 scroll: 0 2044 }, this.timeHolde = null, this.isReady = !1, this.isEnterExpend = !1, this.render = this.render.bind(this), this.onHold = this.onHold.bind(this), this.sizeMask(), Z.isTouchDevice ? this.initTouch() : this.initPc(), this.bindEvent() 2045 } 2046 var e, i, n; 2047 return e = t, i = [{ 2048 key: "initTouch", 2049 value: function() {} 2050 }, { 2051 key: "initPc", 2052 value: function() { 2053 var t = this; 2054 ot.p8.ticker.add(this.render), document.querySelectorAll(".js-cursor-extend").forEach((function(e) { 2055 new de({ 2056 el: e, 2057 onHover: t.onEnterExtend.bind(t), 2058 onLeave: t.onLeave.bind(t) 2059 }) 2060 })), document.querySelectorAll(".js-cursor-contract").forEach((function(e) { 2061 new de({ 2062 el: e, 2063 onHover: t.onEnterContract.bind(t), 2064 onLeave: t.onLeave.bind(t) 2065 }) 2066 })); 2067 var e = document.querySelector(".js-videoPlayer_inner"); 2068 e && new de({ 2069 el: e, 2070 onHover: this.onEnterVideo.bind(this), 2071 onLeave: this.onLeave.bind(this) 2072 }) 2073 } 2074 }, { 2075 key: "sizeMask", 2076 value: function() { 2077 q() ? this.sizePoint = { 2078 default: N(40), 2079 fake: N(450), 2080 video: N(120) 2081 } : this.sizePoint = { 2082 default: N(40), 2083 fake: N(450), 2084 video: N(300) 2085 } 2086 } 2087 }, { 2088 key: "render", 2089 value: function(t) { 2090 null === this.raf && (this.raf = t); 2091 var e = 1 - Math.pow(.001, t - this.raf); 2092 this.cursor.current.x = xt(this.cursor.current.x, this.cursor.last.x, e), this.cursor.current.y = xt(this.cursor.current.y, this.cursor.last.y, e), this.renderStyle(), this.raf = t 2093 } 2094 }, {
2095 key: "renderStyle", 2096 value: function() { 2097 this.DOM.main.style = "--size: ".concat(this.cursor.value, "px; --x: ").concat(this.cursor.current.x, "px; --y: ").concat(this.cursor.current.y + this.cursor.scroll, "px;") 2098 } 2099 }, { 2100 key: "handleMouseMoving", 2101 value: function(t) { 2102 var e = t.clientX, 2103 i = t.clientY; 2104 this.cursor.last.x = e, this.cursor.last.y = i, this.isReady || Z.isTouchDevice || (this.isReady = !0, this.onLeave()) 2105 } 2106 }, { 2107 key: "onEnterVideo", 2108 value: function() { 2109 ot.p8.killTweensOf(this.cursor), ot.p8.to(this.cursor, { 2110 value: F(this.sizePoint.video), 2111 ease: "power3.out", 2112 duration: .6 2113 }) 2114 } 2115 }, { 2116 key: "onEnterExtend", 2117 value: function() { 2118 ot.p8.killTweensOf(this.cursor), ot.p8.to(this.cursor, { 2119 value: F(this.sizePoint.fake), 2120 ease: "power3.out", 2121 duration: .6 2122 }) 2123 } 2124 }, { 2125 key: "onEnterContract", 2126 value: function() { 2127 ot.p8.killTweensOf(this.cursor), ot.p8.to(this.cursor, { 2128 value: 0, 2129 ease: "power3.out", 2130 duration: .3 2131 }) 2132 } 2133 }, { 2134 key: "onLeave", 2135 value: function() { 2136 ot.p8.killTweensOf(this.cursor), ot.p8.to(this.cursor, { 2137 value: F(this.sizePoint.default), 2138 ease: "power3.out", 2139 duration: .6 2140 }) 2141 } 2142 }, { 2143 key: "onScroll", 2144 value: function(t) { 2145 var e = t.scroll; 2146 this.cursor.scroll = e, this.renderStyle() 2147 } 2148 }, { 2149 key: "pageEnter", 2150 value: function() { 2151 var t = Z.mouse, 2152 e = t.x, 2153 i = t.y; 2154 this.cursor = { 2155 current: { 2156 x: e, 2157 y: i 2158 }, 2159 last: { 2160 x: e, 2161 y: i 2162 }, 2163 value: 0, 2164 scroll: 0 2165 } 2166 } 2167 }, { 2168 key: "onHold", 2169 value: function() { 2170 var t = this; 2171 document.body.classList.add("is-red"); 2172 var e = Z.winSize, 2173 i = e.height, 2174 n = e.width; 2175 ot.p8.killTweensOf(this.cursor), ot.p8.to(this.cursor, { 2176 value: 2.5 * Math.max(i, n), 2177 ease: "power3.out", 2178 duration: .8, 2179 onUpdate: function() { 2180 t.DOM.main.style = "--size: ".concat(t.cursor.value, "px; --x: ").concat(t.cursor.current.x, "px;
2180 --y: ").concat(t.cursor.current.y + t.cursor.scroll, "px;") 2181 } 2182 }) 2183 } 2184 }, { 2185 key: "onDown", 2186 value: function(t) { 2187 t.preventDefault(), t.stopPropagation(); 2188 var e = this.DOM.btnClip.getBoundingClientRect(), 2189 i = e.left, 2190 n = e.top, 2191 r = e.width, 2192 o = e.height; 2193 this.cursor.current.y = this.cursor.last.y = n + o / 2, this.cursor.current.x = this.cursor.last.x = i + r / 2, this.timeHolde && clearTimeout(this.timeHolde), this.timeHolde = setTimeout(this.onHold, 500) 2194 } 2195 }, { 2196 key: "onUp", 2197 value: function(t) { 2198 var e = this; 2199 t.preventDefault(), t.stopPropagation(), document.body.classList.remove("is-red"), this.timeHolde && clearTimeout(this.timeHolde), ot.p8.killTweensOf(this.cursor), ot.p8.to(this.cursor, { 2200 value: 0, 2201 ease: "power3.out", 2202 duration: .6, 2203 onUpdate: function() { 2204 e.DOM.main.style = "--size: ".concat(e.cursor.value, "px; --x: ").concat(e.cursor.current.x, "px; --y: ").concat(e.cursor.current.y + e.cursor.scroll, "px;") 2205 } 2206 }) 2207 } 2208 }, { 2209 key: "bindEvent", 2210 value: function() { 2211 this.handleMouseMoving = this.handleMouseMoving.bind(this), this.onScroll = this.onScroll.bind(this), this.onDown = this.onDown.bind(this), this.onUp = this.onUp.bind(this), D.on(w, this.pageEnter.bind(this)), rt.lenis.on("scroll", this.onScroll), document.body.addEventListener("mousemove", this.handleMouseMoving), this.DOM.btnClip.addEventListener("touchstart", this.onDown), this.DOM.btnClip.addEventListener("touchend", this.onUp) 2212 } 2213 }, { 2214 key: "clear", 2215 value: function() { 2216 document.body.removeEventListener("mousemove", this.handleMouseMoving) 2217 } 2218 }], i && me(e.prototype, i), n && me(e, n), Object.defineProperty(e, "prototype", { 2219 writable: !1 2220 }), t 2221 }(); 2222 new be; 2223 2224 function ge(t) { 2225 return ge = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 2226 return typeof t 2227 } : function(t) { 2228 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 2229 }, ge(t) 2230 } 2231 2232 function we(t, e) { 2233 for (var i = 0; i < e.length; i++) { 2234 var n = e[i]; 2235 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 2236 if ("object" !== ge(t) || null === t) return t; 2237 var i = t[Symbol.toPrimitive]; 2238 if (void 0 !== i) { 2239 var n = i.call(t, e || "default"); 2240 if ("object" !== ge(n)) return n; 2241 throw new TypeError("@@toPrimitive must return a primitive value.") 2242 } 2243 return ("string" === e ? String : Number)(t) 2244 }(r, "string"), "symbol" === ge(o) ? o : String(o)), n) 2245 } 2246 var r, o 2247 } 2248 var Oe = function() { 2249 function t(e) { 2250 var i = e.paragraph; 2251 ! function(t, e) { 2252 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 2253 }(this, t), this.DOM = {
2254 paragraph: i 2255 }, this.DOM.parent = this.DOM.paragraph.parentElement, this.DOM.paragraphDeep = this.DOM.paragraph.cloneNode(!0), this.DOM.parent.append(this.DOM.paragraphDeep), this.DOM.paragraphDeep.classList.add("is-bg"), this.DOM.paragraph.classList.add("is-masking"), this.DOM.parent.classList.add("scroll-paragraph-parent"), this.currentPo = 0, this.init(), this.initScroller() 2256 } 2257 var e, i, n; 2258 return e = t, i = [{ 2259 key: "init", 2260 value: function() { 2261 var t = this; 2262 this.elMaskingText = new It.Z(this.DOM.paragraph, { 2263 types: "lines" 2264 }); 2265 var e = new It.Z(this.DOM.paragraphDeep, { 2266 types: "lines" 2267 }); 2268 new ResizeObserver(W((function() { 2269 t.elMaskingText.split(), e.split(), t.onProgress(t.currentPo) 2270 }), 500)).observe(this.DOM.parent) 2271 } 2272 }, { 2273 key: "onProgress", 2274 value: function(t) { 2275 this.currentPo = t; 2276 var e = 1 / this.elMaskingText.lines.length; 2277 this.elMaskingText.lines.forEach((function(i, n) { 2278 var r = Lt(t, n * e, (n + 1) * e, 100, 0); 2279 r = Math.max(0, Math.min(r, 100)), i.style = "--size:".concat(r, "%") 2280 })) 2281 } 2282 }, { 2283 key: "initScroller", 2284 value: function() { 2285 var t = this; 2286 st.i.create({ 2287 trigger: this.DOM.parent, 2288 markers: !1, 2289 start: "top bottom", 2290 end: "top+=50% top+=50%", 2291 onUpdate: function(e) { 2292 t.onProgress(e.progress) 2293 } 2294 }) 2295 } 2296 }], i && we(e.prototype, i), n && we(e, n), Object.defineProperty(e, "prototype", { 2297 writable: !1 2298 }), t 2299 }(); 2300 2301 function Se(t) { 2302 return Se = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 2303 return typeof t 2304 } : function(t) { 2305 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 2306 }, Se(t) 2307 } 2308 2309 function Me(t, e) { 2310 for (var i = 0; i < e.length; i++) { 2311 var n = e[i]; 2312 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 2313 if ("object" !== Se(t) || null === t) return t; 2314 var i = t[Symbol.toPrimitive]; 2315 if (void 0 !== i) { 2316 var n = i.call(t, e || "default"); 2317 if ("object" !== Se(n)) return n; 2318 throw new TypeError("@@toPrimitive must return a primitive value.") 2319 } 2320 return ("string" === e ? String : Number)(t) 2321 }(r, "string"), "symbol" === Se(o) ? o : String(o)), n) 2322 } 2323 var r, o 2324 } 2325 var ke = function() { 2326 function t(e) { 2327 var i = e.heading; 2328 ! function(t, e) { 2329 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 2330 }(this, t), this.DOM = { 2331 main: i 2332 }
2332, this.DOM.heading = this.DOM.main.querySelector(".js-heading-mask_heading"), this.DOM.headingParent = this.DOM.heading.parentElement, this.DOM.headingDeep = this.DOM.heading.cloneNode(!0), this.DOM.headingParent.append(this.DOM.headingDeep), this.DOM.heading.classList.add("is-masking"), this.DOM.headingDeep.classList.add("is-deep"), this.initScroller() 2333 } 2334 var e, i, n; 2335 return e = t, i = [{ 2336 key: "initScroller", 2337 value: function() { 2338 var t = this; 2339 st.i.create({ 2340 trigger: this.DOM.headingParent, 2341 start: "top bottom", 2342 end: "top+=50% top+=50%", 2343 onUpdate: function(e) { 2344 t.DOM.heading.style = "--size:".concat(Lt(e.progress, 0, 1, 100, 0), "%") 2345 } 2346 }) 2347 } 2348 }], i && Me(e.prototype, i), n && Me(e, n), Object.defineProperty(e, "prototype", { 2349 writable: !1 2350 }), t 2351 }(), 2352 De = i(7198); 2353 2354 function Ee(t) { 2355 return Ee = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 2356 return typeof t 2357 } : function(t) { 2358 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 2359 }, Ee(t) 2360 } 2361 2362 function Pe(t, e) { 2363 for (var i = 0; i < e.length; i++) { 2364 var n = e[i]; 2365 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 2366 if ("object" !== Ee(t) || null === t) return t; 2367 var i = t[Symbol.toPrimitive]; 2368 if (void 0 !== i) { 2369 var n = i.call(t, e || "default"); 2370 if ("object" !== Ee(n)) return n; 2371 throw new TypeError("@@toPrimitive must return a primitive value.") 2372 } 2373 return ("string" === e ? String : Number)(t) 2374 }(r, "string"), "symbol" === Ee(o) ? o : String(o)), n) 2375 } 2376 var r, o 2377 } 2378 var je = function() { 2379 function t(e) { 2380 var i = e.main; 2381 ! function(t, e) { 2382 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 2383 }(this, t), this.DOM = { 2384 main: i 2385 }, this.DOM.videoInner = this.DOM.main.querySelector(".js-videoPlayer_inner"), this.DOM.videoInnerRed = document.querySelector(".js-videoPlayer_inner__red"), this.DOM.videoInRed = document.getElementById("videoPlayer_red"), this.DOM.bigPlay = this.DOM.main.querySelector(".js-btnBigPlay"), this.DOM.cursor = document.querySelector(".js-vj-cursor"), Z.isTouchDevice && this.DOM.main.classList.add("is-touch"), Z.isTouchDevice && this.DOM.videoInnerRed.parentElement.classList.add("is-touch"), this.timeSleepControl = null, this.isActive = !1, this.isFullSize = !1, this.isfullScreen = !1, this.props = {}, this.cursor = { 2386 current: { 2387 x: 0, 2388 y: 0 2389 }, 2390 last: { 2391 x: 0, 2392 y: 0 2393 }, 2394 raf: null, 2395 opacity: 0 2396 }, this.loop = this.loop.bind(this), this.init(), this.bindEvent() 2397 } 2398 var e, i, n; 2399 return e = t, i = [{ 2400 key: "init", 2401 value: function() { 2402 var t = this, 2403 e = { 2404 play: "https://colectivo3.com/wp-content/themes/colectivo3/assets/icons/cs-player.svg", 2405 pause: "https://colectivo3.com/wp-content/themes/colectivo3/assets/icons/cs-pause.svg" 2406 }, 2407 i = { 2408 expend: "https://colectivo3.com/wp-content/themes/colectivo3/assets/icons/cs-remove.
2408svg", 2409 close: "https://colectivo3.com/wp-content/themes/colectivo3/assets/icons/cs-remove.svg" 2410 }; 2411 De.Z.hook("setup", (function(n) { 2412 var r = n.contentEl().querySelector(".vjs-play-control"), 2413 o = n.contentEl().querySelector(".vjs-fullscreen-control"); 2414 n.contentEl().appendChild(t.DOM.bigPlay); 2415 var s = document.createElement("span"), 2416 a = document.createElement("span"); 2417 s.classList.add("icon"), a.classList.add("icon"), s.innerHTML = '\n <img src="'.concat(e.pause, '" class="icon-pause" alt="icon-pause" />\n <img src="').concat(e.play, '" class="icon-play" alt="icon-play" />\n '), a.innerHTML = '\n <img src="'.concat(i.expend, '" class="icon-expend" alt="icon-expend" />\n <img src="').concat(i.close, '" class="icon-close" alt="icon-close" />\n '), r.appendChild(s), o.appendChild(a), r.setAttribute("title", ""), o.setAttribute("title", "") 2418 })), this.player = (0, De.Z)("videoPlayer", { 2419 controls: !0, 2420 preload: "auto", 2421 resizeManager: !1, 2422 aspectRatio: "16:9", 2423 fluid: !0 2424 }, (function() { 2425 t.player.on("fullscreenchange", t.onFullScreenChange.bind(t)), setTimeout((function() { 2426 t.player.addClass("is-ready") 2427 }), 100) 2428 })); 2429 var n = this.player.player().getAttribute("data-poster-mobile"), 2430 r = this.player.player().getAttribute("data-src-mobile"); 2431 q() && (n = this.player.player().getAttribute("data-poster"), r = this.player.player().getAttribute("data-src")), this.player.poster(n), this.player.src(r), this.DOM.videoInRed.setAttribute("src", r), this.DOM.videoInRed.setAttribute("poster", n), st.i.create({ 2432 trigger: this.DOM.videoInner, 2433 start: "top bottom", 2434 end: "bottom top", 2435 onToggle: function(e) { 2436 t.isActive = e.isActive, e.isActive ? (t.playing(), t.isFullSize = !0, Z.isTouchDevice || (t.getSize(), ot.p8.killTweensOf(t.cursor), ot.p8.ticker.add(t.loop))) : (t.pauseVideo(), t.isFullSize = !1, Z.isTouchDevice || (ot.p8.ticker.remove(t.loop), t.onLeave())) 2437 }, 2438 onUpdate: function(e) { 2439 if (!Z.isTouchDevice) { 2440 var i = Lt(e.progress, 0, .5, 0, 1); 2441 i = Math.min(i, 1), t.onProgress(i) 2442 } 2443 } 2444 }) 2445 } 2446 }, { 2447 key: "cloneForRedSection", 2448 value: function() { 2449 var t = this, 2450 e = this.player.el().cloneNode(!0), 2451 i = e.querySelectorAll("[id]"); 2452 this.DOM.videoInnerRed.append(e), this.DOM.videoInnerRed.addEventListener("click", (function() { 2453 return t.onVideoClick() 2454 })), this.DOM.videoRed = this.DOM.videoInnerRed.querySelector("video"); 2455 var n = document.querySelectorAll("#videoPlayer"); 2456 n[1] && n[1].setAttribute("id", "videoPlayer_clone"), i.forEac
2456h((function(t) { 2457 var e = t.getAttribute("id"); 2458 t.setAttribute("id", "".concat(e, "_clone")) 2459 })) 2460 } 2461 }, { 2462 key: "getSize", 2463 value: function() { 2464 var t = this.DOM.main.getBoundingClientRect().top; 2465 this.props.top = t + Math.abs(Z.getScrollTop()) 2466 } 2467 }, { 2468 key: "loop", 2469 value: function(t) { 2470 null === this.cursor.raf && (this.cursor.raf = t); 2471 var e = 1 - Math.pow(.001, t - this.cursor.raf); 2472 this.cursor.current.x = xt(this.cursor.current.x, this.cursor.last.x, e), this.cursor.current.y = xt(this.cursor.current.y, this.cursor.last.y, e), this.DOM.cursor.style = "--x:".concat(this.cursor.current.x, "px; --y:").concat(this.cursor.current.y, "px; --opacity: ").concat(this.cursor.opacity), this.cursor.raf = t 2473 } 2474 }, { 2475 key: "onProgress", 2476 value: function(t) { 2477 var e = Lt(t, 0, 1, 20, 0); 2478 Z.isTouchDevice || (this.DOM.videoInner.style = "--size: ".concat(e, "%")) 2479 } 2480 }, { 2481 key: "playing", 2482 value: function() { 2483 this.player.paused() ? (this.player.play(), Z.isTouchDevice && this.DOM.videoInRed.play()) : (this.player.pause(), Z.isTouchDevice && this.DOM.videoInRed.pause()) 2484 } 2485 }, { 2486 key: "pauseVideo", 2487 value: function() { 2488 this.player.paused() || (this.timeSleepControl && clearTimeout(this.timeSleepControl), this.player.pause(), Z.isTouchDevice && this.DOM.videoInRed.pause()) 2489 } 2490 }, { 2491 key: "onFullScreenChange", 2492 value: function() { 2493 Z.isVideoFullScreen = this.player.isFullscreen(), this.isfullScreen = this.player.isFullscreen(), this.player.currentTime(0), Z.isTouchDevice && (this.DOM.videoInRed.currentTime = 0); 2494 try { 2495 this.player.isFullscreen() ? (this.player.play(), Z.isTouchDevice && this.DOM.videoInRed.play(), this.player.muted(!1), D.emit(M)) : (this.isFullSize || (this.player.pause(), Z.isTouchDevice && this.DOM.videoInRed.pause()), this.player.muted(!0), D.emit(S)) 2496 } catch (t) { 2497 console.log(t) 2498 } 2499 } 2500 }, { 2501 key: "handleMouseMoving", 2502 value: function() { 2503 var t = this; 2504 this.player.paused() || (this.timeSleepControl && clearTimeout(this.timeSleepControl), this.player.contentEl().classList.remove("is-sleep"), this.timeSleepControl = setTimeout((function() { 2505 t.sleepControl() 2506 }), 1e3)) 2507 } 2508 }, { 2509 key: "winMouseMoving", 2510 value: function(t) { 2511 this.cursor.last = { 2512 x: t.clientX, 2513 y: t.clientY 2514 }, this.player.isFullscreen() && this.handleMouseMoving() 2515 } 2516 }, { 2517 key: "sleepControl", 2518 value: function() { 2519 this.player.isFullscreen() && this.player.contentEl().classList.add("is-sleep") 2520 } 2521 }, { 2522 key: "onVideoClick", 2523 value: function() { 2524 this.player.isFullscreen() || this.player.requestFullscreen() 2525 } 2526 }, { 2527 key: "onLeave", 2528 value: function() { 2529 var t = this; 2530 ot.p8.killTweensOf(this.cursor), ot.p8.to(this.cursor, { 2531 opacity: 0, 2532 ease: "power3.out", 2533 duration: .3, 2534 onUpdate: function() { 2535 t.DOM.cursor.style = "--x:".concat(t.cursor.current.x, "px; --y:").concat(t.cursor.current.y, "px; --opacity: ").concat(t.cursor.opacity) 2536 } 2537 }) 2538 } 2539 }, { 2540 key: "onEnter", 2541 value: function() { 2542 var t = this; 2543 ot.p8.killTweensOf(this.cursor), ot.p8.to(this.cursor, { 2544 opacity: 1, 2545 ease: "power3.out", 2546 duration: .6, 2547 onUpdate: function() { 2548 t.DOM.cursor.style = "--x:".concat(t.cursor.current.x, "px; --y:").concat(t.cursor.current.y, "px; --opacity: ").concat(t.cursor.opacity) 2549 } 2550 }) 2551 } 2552 }, { 2553 key: "bindEvent", 2554 value: function() { 2555 var t = this;
2556 D.on(h, this.getSize.bind(this)), D.on(f, this.getSize.bind(this)), window.addEventListener("mousemove", this.winMouseMoving.bind(this)), this.DOM.videoInner.addEventListener("mouseleave", this.onLeave.bind(this)), this.DOM.videoInner.addEventListener("mouseenter", this.onEnter.bind(this)), this.DOM.videoInner.addEventListener("mousemove", this.handleMouseMoving.bind(this)), this.DOM.videoInner.addEventListener("click", this.onVideoClick.bind(this)), this.DOM.bigPlay.addEventListener("click", (function() { 2557 return t.playing() 2558 })) 2559 } 2560 }], i && Pe(e.prototype, i), n && Pe(e, n), Object.defineProperty(e, "prototype", { 2561 writable: !1 2562 }), t 2563 }(); 2564 2565 function Te(t) { 2566 return Te = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 2567 return typeof t 2568 } : function(t) { 2569 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 2570 }, Te(t) 2571 } 2572 2573 function Le(t, e) { 2574 for (var i = 0; i < e.length; i++) { 2575 var n = e[i]; 2576 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 2577 if ("object" !== Te(t) || null === t) return t; 2578 var i = t[Symbol.toPrimitive]; 2579 if (void 0 !== i) { 2580 var n = i.call(t, e || "default"); 2581 if ("object" !== Te(n)) return n; 2582 throw new TypeError("@@toPrimitive must return a primitive value.") 2583 } 2584 return ("string" === e ? String : Number)(t) 2585 }(r, "string"), "symbol" === Te(o) ? o : String(o)), n) 2586 } 2587 var r, o 2588 } 2589 2590 function xe(t, e, i) { 2591 return e && Le(t.prototype, e), i && Le(t, i), Object.defineProperty(t, "prototype", { 2592 writable: !1 2593 }), t 2594 } 2595 var Ae = xe((function t(e) { 2596 var i = e.el, 2597 n = e.index, 2598 r = e.onActive; 2599 ! function(t, e) { 2600 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 2601 }(this, t), st.i.create({ 2602 trigger: i, 2603 start: "top top+=50%", 2604 end: "bottom-=50 top+=50%", 2605 onToggle: function(t) { 2606 t.isActive && r(n) 2607 } 2608 }) 2609 })); 2610 2611 function Re(t) { 2612 return Re = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 2613 return typeof t 2614 } : function(t) { 2615 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 2616 }, Re(t) 2617 } 2618 2619 function _e(t, e) { 2620 for (var i = 0; i < e.length; i++) { 2621 var n = e[i]; 2622 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 2623 if ("object" !== Re(t) || null === t) return t; 2624 var i = t[Symbol.toPrimitive]; 2625 if (void 0 !== i) { 2626 var n = i.call(t, e || "default"); 2627 if ("object" !== Re(n)) return n; 2628 throw new TypeError("@@toPrimitive must return a primitive value.") 2629 } 2630 return ("string" === e ? String : Number)(t) 2631 }(r, "string"), "symbol" === Re(o) ? o : String(o)), n) 2632 } 2633 var r, o 2634 } 2635 var Ce = function() { 2636 function t(e) { 2637 var i = this, 2638 n = e.main; 2639 ! function(t, e) { 2640 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 2641 }(this, t), this.DOM = {
2642 main: n 2643 }, this.DOM.thumbList = this.DOM.main.querySelector(".js-testimonials_thumbs_list"), this.DOM.thumbItems = this.DOM.thumbList.querySelectorAll("li"), this.DOM.list = this.DOM.main.querySelector(".js-testimonial_lists"), this.DOM.testimonials = this.DOM.main.querySelectorAll(".js-testimonial"), this.DOM.mainRed = document.querySelector(".js-testimonials__red"), this.DOM.thumbListRed = document.querySelector(".js-testimonials_thumbs_list__red"), this.DOM.listReds = this.DOM.thumbListRed.querySelectorAll(".thumb-item"), this.oldActive = 0, this.DOM.testimonials.forEach((function(t, e) { 2644 new Ae({ 2645 el: t, 2646 index: e, 2647 onActive: i.onActive.bind(i) 2648 }) 2649 })), this.init(), this.bindEvent() 2650 } 2651 var e, i, n; 2652 return e = t, (i = [{ 2653 key: "init", 2654 value: function() { 2655 this.scrollMask && this.scrollMask.kill(), this.scrollMain && this.scrollMain.kill(); 2656 var t = Z.winSize.height, 2657 e = this.DOM.testimonials.length - 1, 2658 i = this.DOM.testimonials[0].querySelector(".testimonial_inner").getBoundingClientRect(), 2659 n = this.DOM.testimonials[e].querySelector(".testimonial_inner").getBoundingClientRect(), 2660 r = (this.DOM.thumbList.getBoundingClientRect(), n.top - i.top + t / 2); 2661 this.scrollMain = st.i.create({ 2662 trigger: this.DOM.thumbList, 2663 start: "top+=50% top+=50%", 2664 end: "".concat(r, "px+=50% bottom"), 2665 pin: !0 2666 }), this.scrollMask = st.i.create({ 2667 trigger: this.DOM.thumbListRed, 2668 start: "top+=50% top+=50%", 2669 end: "".concat(r, "px+=50% bottom"), 2670 pin: !0 2671 }) 2672 } 2673 }, { 2674 key: "onActive", 2675 value: function(t) { 2676 this.DOM.thumbItems[this.oldActive].classList.remove("is-active"), this.DOM.listReds[this.oldActive].classList.remove("is-active"), this.DOM.thumbItems[t].classList.add("is-active"), this.DOM.listReds[t].classList.add("is-active"), this.oldActive = t, this.DOM.main.style = "--index: ".concat(t), this.DOM.mainRed.style = "--index: ".concat(t) 2677 } 2678 }, { 2679 key: "resize", 2680 value: function() { 2681 this.scrollMain.kill(), this.scrollMask.kill(), this.init() 2682 } 2683 }, { 2684 key: "bindEvent", 2685 value: function() { 2686 D.on(h, this.resize.bind(this)), D.on(f, this.resize.bind(this)) 2687 } 2688 }]) && _e(e.prototype, i), n && _e(e, n), Object.defineProperty(e, "prototype", { 2689 writable: !1 2690 }), t 2691 }(); 2692 2693 function Ie(t) { 2694 return Ie = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 2695 return typeof t 2696 } : function(t) { 2697 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 2698 }, Ie(t) 2699 } 2700 2701 function ze(t, e) { 2702 for (var i = 0; i < e.length; i++) { 2703 var n = e[i]; 2704 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 2705 if ("object" !== Ie(t) || null === t) return t; 2706 var i = t[Symbol.toPrimitive]; 2707 if (void 0 !== i) { 2708 var n = i.call(t, e || "default"); 2709 if ("object" !== Ie(n)) return n; 2710 throw new TypeError("@@toPrimitive must return a primitive value.") 2711 } 2712 return ("string" === e ? String : Number)(t) 2713 }(r, "string"), "symbol" === Ie(o) ? o : String(o)), n) 2714 } 2715 var r, o 2716 } 2717 var qe = function() { 2718 function t(e) { 2719 var i = this, 2720 n = e.el, 2721 r = e.inScreen, 2722 o = e.inBackScreen, 2723 s = void 0 === o ? null : o, 2724 a = e.outScreen, 2725 l = e.threshold, 2726 u = void 0 === l ? 0 : l, 2727 c = e.isGsap, 2728 h = void 0 !== c && c, 2729 f = e.isDebug, 2730 p = void 0 !== f && f; 2731 ! function(t, e) { 2732 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 2733 }(this, t), this.DOM = { 2734 el: n 2735 }, this.isVisible = !1, !I() || h ? this.scrollTrigger = st.i.create({ 2736 trigger: n, 2737 markers: p, 2738 onEnter: r, 2739 onEnterBack: s, 2740 onLeave: a 2741 }) : (this.OBServer = new IntersectionObserver((function(t) { 2742 i.isVisible = t[0].isIntersecting, i.isVisible ? r && r() : a && a() 2743 }), { 2744 threshold: u 2745 }), this.OBServer.observe(n)) 2746 } 2747 var e, i, n; 2748 return e = t, (i = [{ 2749 key: "removeOb", 2750 value: function() { 2751 this.OBServer && this.OBServer.unobserve(this.DOM.el), this.OBServer && this.OBServer.disconnect(), this.isVisible = !1, this.scrollTrigger && ot.p8.kill(this.scrollTrigger) 2752 } 2753 }, { 2754 key: "isInViewPointer", 2755 value: function() { 2756 return this.isVisible 2757 } 2758 }]) && ze(e.prototype, i), n && ze(e, n), Object.defineProperty(e, "prototype", { 2759 writable: !1 2760 }), t 2761 }(); 2762 2763 function He(t) { 2764 return He = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 2765 return typeof t 2766 } : function(t) { 2767 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 2768 }, He(t) 2769 } 2770 2771 function Be(t, e) { 2772 for (var i = 0; i < e.length; i++) { 2773 var n = e[i]; 2774 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 2775 if ("object" !== He(t) || null === t) return t; 2776 var i = t[Symbol.toPrimitive]; 2777 if (void 0 !== i) { 2778 var n = i.call(t, e || "default"); 2779 if ("object" !== He(n)) return n; 2780 throw new TypeError("@@toPrimitive must return a primitive value.") 2781 } 2782 return ("string" === e ? String : Number)(t) 2783 }(r, "string"), "symbol" === He(o) ? o : String(o)), n) 2784 } 2785 var r, o 2786 } 2787 var Ne = function() { 2788 function t(e, i) { 2789 ! function(t, e) { 2790 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 2791 }(this, t), this.visibility = this.visibility.bind(this), this.callback = e, this.timerId = null, this.start = 0, this.remaining = i, this.resume(), document.addEventListener("visibilitychange", this.visibility) 2792 } 2793 var e, i, n; 2794 return e = t, i = [{ 2795 key: "pause", 2796 value: function() { 2797 clearTimeout(this.timerId), this.timerId = null, this.remaining -= Date.now() - this.start 2798 } 2799 }, { 2800 key: "resume", 2801 value: function() { 2802 var t = this; 2803 this.timerId || (this.start = Date.now(), this.timerId = setTimeout((function() { 2804 t.callback(), t.clear() 2805 }), this.remaining)) 2806 } 2807 }, { 2808 key: "visibility", 2809 value: function() { 2810 document.hidden ? this.pause() : this.resume() 2811 } 2812 }, { 2813 key: "clear", 2814 value: function() { 2815 this.timerId && clearTimeout(this.timerId), document.removeEventListener("visibilitychange", this.visibility) 2816 } 2817 }], i && Be(e.prototype, i), n && Be(e, n), Object.defineProperty(e, "prototype", { 2818 writable: !1 2819 }), t 2820 }(); 2821 2822 function Fe(t) { 2823 return Fe = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 2824 return typeof t 2825 } : function(t) { 2826 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 2827 }, Fe(t) 2828 } 2829 2830 function We(t, e) { 2831 for (var i = 0; i < e.length; i++) { 2832 var n = e[i]; 2833 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 2834 if ("object" !== Fe(t) || null === t) return t; 2835 var i = t[Symbol.toPrimitive]; 2836 if (void 0 !== i) { 2837 var n = i.call(t, e || "default"); 2838 if ("object" !== Fe(n)) return n; 2839 throw new TypeError("@@toPrimitive must return a primitive value.") 2840 } 2841 return ("string" === e ? String : Number)(t) 2842 }(r, "string"), "symbol" === Fe(o) ? o : String(o)), n) 2843 } 2844 var r, o 2845 } 2846 var Ve = function() { 2847 function t() { 2848 ! function(t, e) { 2849 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 2850 }(this, t), this.DOM = { 2851 main: document.querySelector(".js-page-loading") 2852 }, this.DOM.wrapInner = this.DOM.main.querySelector(".js-page-loading_inner"), this.DOM.text = this.DOM.main.querySelector(".js-loading_text"), this.DOM.wrapText = document.getElementById("js-page-loading_text"), this.DOM.progress = document.getElementById("page-loading_circle"), this.DOM.btnStart = document.getElementById("js-page-loading_start"), this.DOM.logo = document.getElementById("page-loading_logo"), document.body.classList.add("js-ready", "is-loading"), D.emit(c), this.processingLoading = this.processingLoading.bind(this), this.registerLoader = this.registerLoader.bind(this), this.unRegisterLoader = this.unRegisterLoader.bind(this), this.isReady = !1, this.windowLoaded = !1, this.windowIsBlur = !1, this.isSimpleLoader = !1, this.minProgress = 98, this.processing = { 2853 delta: 0, 2854 percentStuck: 0, 2855 runWidth: 0 2856 }, this.registerCount = 0, this.lowNet = 0, this.timeOutTriggerPageEnter = 3
285600, this.strokeDashoffset = 829, this.bindEvent() 2857 } 2858 var e, i, n; 2859 return e = t, i = [{ 2860 key: "simpleLoaded", 2861 value: function() { 2862 D.emit(d), this.DOM.main.classList.add("is-simple"), document.hasFocus() || this.obServerAPI.isVisible ? (this.obServerAPI.removeOb(), this.windowIsBlur = null, document.body.classList.remove("is-loading"), document.body.classList.add("is-loaded"), this.pageLoaded()) : this.windowIsBlur = !0 2863 } 2864 }, { 2865 key: "simple", 2866 value: function() { 2867 this.obServerAPI = new qe({ 2868 el: document.body, 2869 inScreen: null, 2870 outScreen: null 2871 }), this.isSimpleLoader = !0, this.isReady = !0, D.emit(d), document.body.classList.add("is-ready"), this.idAnimationLoop = requestAnimationFrame(this.processingLoading) 2872 } 2873 }, { 2874 key: "processingLoading", 2875 value: function() { 2876 this.isReady && (this.processing.runWidth += this.processing.delta + this.processing.percentStuck, !this.windowLoaded || !this.isReady || this.registerCount > 0 ? (this.processing.delta *= .5 - this.lowNet, this.processing.percentStuck += .05, this.processing.percentStuck *= .8, this.processing.percentStuck >= 2 && (this.processing.percentStuck = 0)) : (this.processing.delta = 5, this.processing.percentStuck = 0)), this.lowNet += 1e-4; 2877 var t = parseInt(this.processing.runWidth); 2878 t = Math.min(t, this.minProgress), this.showOvalPress(t), this.DOM.wrapInner.style = "--po:".concat(Lt(t, 0, 100, this.strokeDashoffset, 0)), this.DOM.text.textContent = t, t >= 100 && 0 === this.registerCount ? (this.runAnimation || (this.runAnimation = !0, this.pageLoaded()), cancelAnimationFrame(this.idAnimationLoop), this.idAnimationLoop = null) : ("complete" !== document.readyState || this.windowLoaded) && (this.idAnimationLoop = requestAnimationFrame(this.processingLoading), this.processing.runWidth > 100 && (this.minProgress = 100)) 2879 } 2880 }, { 2881 key: "showOvalPress", 2882 value: function(t) { 2883 t > 1 && this.DOM.main.classList.add("is-progress") 2884 } 2885 }, { 2886 key: "hideLoading", 2887 value: function() { 2888 D.emit(b), this.windowLoaded = !0 2889 } 2890 }, { 2891 key: "hide", 2892 value: function() { 2893 this.DOM.main.style.visibility = "hidden", this.DOM.main.style.zIndex = -999, this.DOM.main.style.clipPath = null 2894 } 2895 }, { 2896 key: "startIn", 2897 value: function() { 2898 var t = this, 2899 e = { 2900 value: 0, 2901 opacity: 1 2902 }; 2903 ot.p8.fromTo(e, { 2904 value: 2 * this.strokeDashoffset 2905 }, { 2906 value: this.strokeDashoffset, 2907 ease: "power3.inOut", 2908 duration: .6, 2909 onUpdate: function() { 2910 t.DOM.wrapInner.style = "--po:".concat(e.value, "; --opacity:").concat(Lt(e.value, 0, -t.strokeDashoffset, 1, 0)) 2911 } 2912 }), ot.p8.to([this.DOM.wrapText, this.DOM.progress], { 2913 opacity: 0, 2914 ease: "power3.out", 2915 duration: .6, 2916 delay: .6 2917 }), ot.p8.to(this.DOM.logo, { 2918 y: -40, 2919 ease: "power3.out", 2920 duration: .6, 2921 delay: .7 2922 }), ot.p8.fromTo(this.DOM.btnStart, { 2923 pointerEvents: "auto" 2924 }, { 2925 y: -40, 2926 opacity: 1, 2927 ease: "power3.out", 2928 duration: .6, 2929 delay: .8 2930 }) 2931 } 2932 }, { 2933 key: "pageLoaded", 2934 value: function() { 2935 cancelAnimationFrame(this.idAnimationLoop), document.body.classList.add("is-loaded"), document.body.classList.remove("is-loading"), document.body.classList.remove("is-simple"), D.emit(g), D.emit("PAGE_LOADED_ONE"), this.clear(), this.isSimpleLoader ? this.startIn() : (this.hide(), D.emit("PAGE_ENTER_INTRO"), new Ne((function() { 2936 D.emit(w), D.emit(v) 2937 }), this.timeOutTriggerPageEnter)); 2938 2939 var t = this; 2940 new Ne((function() { 2941 D.emit(w), D.emit(v), document.body.classList.add("is-enter") 2942 }), this.timeOutTriggerPageEnter), D.emit(k), ot.p8.to([this.DOM.logo, this.DOM.btnStart], { 2943 opacity: 0, 2944 stagger: .1, 2945 ease: "power3.out", 2946 duration: .3 2947 }), ot.p8.to(this.DOM.main, { 2948 delay: .3, 2949 opacity: 0, 2950 duration: .5, 2951 ease: "power3.inOut", 2952 onComplete: function() { 2953 t.hide() 2954 } 2955 }) 2956 } 2957 }/*, { 2958 key: "onStart", 2959 value: function() { 2960 var t = this; 2961 new Ne((function() { 2962 D.emit(w), D.emit(v), document.body.classList.add("is-enter") 2963 }), this.timeOutTriggerPageEnter), D.emit(k), ot.p8.to([this.DOM.logo, this.DOM.btnStart], { 2964 opacity: 0, 2965 stagger: .1, 2966 ease: "power3.out", 2967 duration: .3 2968 }), ot.p8.to(this.DOM.main, { 2969 delay: .3, 2970 opacity: 0, 2971 duration: .5, 2972 ease: "power3.inOut", 2973 onComplete: function() { 2974 t.hide() 2975 } 2976 }) 2977 } 2978 }*/, { 2979 key: "registerLoader", 2980 value: function() { 2981 this.registerCount++ 2982 } 2983 }, { 2984 key: "unRegisterLoader", 2985 value: function() { 2986 this.registerCount-- 2987 } 2988 }, { 2989 key: "winFocus", 2990 value: function() { 2991 this.windowIsBlur && this.isSimpleLoader && this.simpleLoaded() 2992 } 2993 }, { 2994 key: "disabledTouch", 2995 value: function(t) { 2996 t.preventDefault(), t.stopPropagation() 2997 } 2998 }, { 2999 key: "bindEvent", 3000 value: function() { 3001 this.hideLoading = this.hideLoading.bind(this), this.winFocus = this.winFocus.bind(this), this.pageLoaded = this.pageLoaded.bind(this), this.disabledTouch = this.disabledTouch.bind(this), window.addEventListener("focus", this.winFocus), D.on(p, this.registerLoader), D.on(y, this.unRegisterLoader), window.addEventListener("load", this.hideLoading), this.DOM.btnStart.addEventListener("click", this.pageLoaded), this.DOM.main.addEventListener("touchmove", this.disabledTouch) 3002 } 3003 }, { 3004 key: "clear", 3005 value: function() { 3006 window.removeEventListener("focus", this.winFocus), D.off(p, this.registerLoader), D.off(y, this.unRegisterLoader), window.removeEventListener("load", this.hideLoading) 3007 } 3008 }], i && We(e.prototype, i), n && We(e, n), Object.defineProperty(e, "prototype", { 3009 writable: !1 3010 }), t 3011 }(), 3012 Ge = new Ve; 3013 3014 function Ue(t) { 3015 return Ue = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 3016 return typeof t 3017 } : function(t) { 3018 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 3019 }, Ue(t) 3020 } 3021 3022 function Ze(t, e) { 3023 for (var i = 0; i < e.length; i++) { 3024 var n = e[i]; 3025 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 3026 if ("object" !== Ue(t) || null === t) return t; 3027 var i = t[Symbol.toPrimitive]; 3028 if (void 0 !== i) { 3029 var n = i.call(t, e || "default"); 3030 if ("object" !== Ue(n)) return n; 3031 throw new TypeError("@@toPrimitive must return a primitive value.") 3032 } 3033 return ("string" === e ? String : Number)(t) 3034 }(r, "string"), "symbol" === Ue(o) ? o : String(o)), n) 3035 } 3036 var r, o 3037 } 3038 var Ye = function() { 3039 function t(e) { 3040 var i = e.el, 3041 n = e.onClick; 3042 ! function(t, e) { 3043 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 3044 }(this, t), this.DOM = { 3045 el: i 3046 }, this.DOM.txtOff = this.DOM.el.querySelector(".js-footer_sound_list_item__off"), this.DOM.txtOn = this.DOM.el.querySelector(".js-footer_sound_list_item__on"), this.funs = { 3047 onClick: n 3048 }, this.isStatus = "on", ot.p8.set(this.DOM.txtOff, { 3049 y: "100%" 3050 }), ot.p8.set(this.DOM.txtOn, { 3051 y: "0%" 3052 }), this.bindEvent() 3053 } 3054 var e, i, n; 3055 return e = t, (i = [{ 3056 key: "setOn", 3057 value: function() { 3058 ot.p8.fromTo(this.DOM.txtOff, { 3059 y: "100%" 3060 }, { 3061 y: "0%", 3062 ease: "power3.inOut", 3063 duration: .4, 3064 overwrite: "auto" 3065 }), ot.p8.fromTo(this.DOM.txtOn, { 3066 y: "0%" 3067 }, { 3068 y: "-100%", 3069 ease: "power3.inOut", 3070 duration: .4, 3071 overwrite: "auto" 3072 }) 3073 } 3074 }, { 3075 key: "setOff", 3076 value: function() { 3077 ot.p8.fromTo(this.DOM.txtOff, { 3078 y: "0%" 3079 }, { 3080 y: "-100%", 3081 ease: "power3.inOut", 3082 duration: .4, 3083 overwrite: "auto" 3084 }), ot.p8.fromTo(this.DOM.txtOn, { 3085 y: "100%" 3086 }, { 3087 y: "0%", 3088 ease: "power3.inOut", 3089 duration: .4, 3090 overwrite: "auto" 3091 }) 3092 } 3093 }, { 3094 key: "onClick", 3095 value: function() { 3096 this.funs.onClick && this.funs.onClick() 3097 } 3098 }, { 3099 key: "bindEvent", 3100 value: function() { 3101 this.DOM.el.addEventListener("click", this.onClick.bind(this)) 3102 } 3103 }]) && Ze(e.prototype, i), n && Ze(e, n), Object.defineProperty(e, "prototype", { 3104 writable: !1 3105 }), t 3106 }(); 3107 3108 function Xe(t) { 3109 return Xe = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 3110 return typeof t 3111 } : function(t) { 3112 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 3113 }, Xe(t) 3114 } 3115 3116 function Ke(t, e) { 3117 for (var i = 0; i < e.length; i++) { 3118 var n = e[i]; 3119 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 3120 if ("object" !== Xe(t) || null === t) return t; 3121 var i = t[Symbol.toPrimitive]; 3122 if (void 0 !== i) { 3123 var n = i.call(t, e || "default"); 3124 if ("object" !== Xe(n)) return n; 3125 throw new TypeError("@@toPrimitive must return a primitive value.") 3126 } 3127 return ("string" === e ? String : Number)(t) 3128 }(r, "string"), "symbol" === Xe(o) ? o : String(o)), n) 3129 } 3130 var r, o 3131 } 3132 3133 function Qe(t) {�
3133 3134 return Qe = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 3135 return typeof t 3136 } : function(t) { 3137 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 3138 }, Qe(t) 3139 } 3140 3141 function $e(t, e) { 3142 for (var i = 0; i < e.length; i++) { 3143 var n = e[i]; 3144 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 3145 if ("object" !== Qe(t) || null === t) return t; 3146 var i = t[Symbol.toPrimitive]; 3147 if (void 0 !== i) { 3148 var n = i.call(t, e || "default"); 3149 if ("object" !== Qe(n)) return n; 3150 throw new TypeError("@@toPrimitive must return a primitive value.") 3151 } 3152 return ("string" === e ? String : Number)(t) 3153 }(r, "string"), "symbol" === Qe(o) ? o : String(o)), n) 3154 } 3155 var r, o 3156 } 3157 3158 function ti(t, e, i) { 3159 return e && $e(t.prototype, e), i && $e(t, i), Object.defineProperty(t, "prototype", { 3160 writable: !1 3161 }), t 3162 } 3163 var ei = ti((function t() { 3164 ! function(t, e) { 3165 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 3166 }(this, t), this.DOM = { 3167 main: document.getElementById("js-footer") 3168 }, this.DOM.main.querySelectorAll(".js-social").forEach((function(t) { 3169 new se({ 3170 el: t 3171 }) 3172 })) 3173 })), 3174 ii = i(4599), 3175 ni = i(5682); 3176 3177 function ri(t) { 3178 return ri = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 3179 return typeof t 3180 } : function(t) { 3181 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 3182 }, ri(t) 3183 } 3184 3185 function oi(t, e) { 3186 for (var i = 0; i < e.length; i++) { 3187 var n = e[i]; 3188 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 3189 if ("object" !== ri(t) || null === t) return t; 3190 var i = t[Symbol.toPrimitive]; 3191 if (void 0 !== i) { 3192 var n = i.call(t, e || "default"); 3193 if ("object" !== ri(n)) return n; 3194 throw new TypeError("@@toPrimitive must return a primitive value.") 3195 } 3196 return ("string" === e ? String : Number)(t) 3197 }(r, "string"), "symbol" === ri(o) ? o : String(o)), n) 3198 } 3199 var r, o 3200 } 3201 3202 function si(t, e, i) { 3203 return e && oi(t.prototype, e), i && oi(t, i), Object.defineProperty(t, "prototype", { 3204 writable: !1 3205 }), t 3206 } 3207 var ai = new(si((function t() { 3208 ! function(t, e) { 3209 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 3210 }(this, t); 3211 var e = Z.getSize(), 3212 i = e.width, 3213 n = e.height; 3214 this.uniforms = { 3215 iTime: { 3216 value: 0, 3217 type: "f" 3218 }, 3219 iResolution: { 3220 value: new ii.FM8(i, n) 3221 },
3222 iMouse: { 3223 value: new ii.FM8(0, 0) 3224 } 3225 }, this.elBorderView = null 3226 }))), 3227 li = i(3306), 3228 ui = i(7428); 3229 3230 function ci(t) { 3231 return ci = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 3232 return typeof t 3233 } : function(t) { 3234 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 3235 }, ci(t) 3236 } 3237 3238 function hi(t, e) { 3239 for (var i = 0; i < e.length; i++) { 3240 var n = e[i]; 3241 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 3242 if ("object" !== ci(t) || null === t) return t; 3243 var i = t[Symbol.toPrimitive]; 3244 if (void 0 !== i) { 3245 var n = i.call(t, e || "default"); 3246 if ("object" !== ci(n)) return n; 3247 throw new TypeError("@@toPrimitive must return a primitive value.") 3248 } 3249 return ("string" === e ? String : Number)(t) 3250 }(r, "string"), "symbol" === ci(o) ? o : String(o)), n) 3251 } 3252 var r, o 3253 } 3254 var fi = function() { 3255 function t() { 3256 ! function(t, e) { 3257 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 3258 }(this, t), this.type = "gltf", this.loader = new li.E 3259 } 3260 var e, i, n; 3261 return e = t, i = [{ 3262 key: "resolve", 3263 value: function(t) { 3264 var e = this, 3265 i = new ui._; 3266 return i.setDecoderPath("./assets/draco/"), this.loader.setDRACOLoader(i), new Promise((function(i) { 3267 e.loader.load(t.url, (function(e) { 3268 i(Object.assign(t, { 3269 scene: e 3270 })) 3271 })) 3272 })) 3273 } 3274 }, { 3275 key: "get", 3276 value: function(t) { 3277 return t.scene 3278 } 3279 }], i && hi(e.prototype, i), n && hi(e, n), Object.defineProperty(e, "prototype", { 3280 writable: !1 3281 }), t 3282 }(); 3283 3284 function pi(t) { 3285 return pi = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 3286 return typeof t 3287 } : function(t) { 3288 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 3289 }, pi(t) 3290 } 3291 3292 function yi(t, e) { 3293 for (var i = 0; i < e.length; i++) { 3294 var n = e[i]; 3295 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 3296 if ("object" !== pi(t) || null === t) return t; 3297 var i = t[Symbol.toPrimitive]; 3298 if (void 0 !== i) { 3299 var n = i.call(t, e || "default"); 3300 if ("object" !== pi(n)) return n; 3301 throw new TypeError("@@toPrimitive must return a primitive value.") 3302 } 3303 return ("string" === e ? String : Number)(t) 3304 }(r, "string"), "symbol" === pi(o) ? o : String(o)), n) 3305 } 3306 var r, o 3307 } 3308 var di = function() { 3309 function t() { 3310 ! function(t, e) { 3311 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 3312 }(this, t); 3313 var e = Z.getSize(), 3314 i = e.width, 3315 n = e.height, 3316 r = e.aspectRatio, 3317 o = e.devicePixelRatio; 3318 this.mapControl = null, this.renderer = new ii.CP7({ 3319 antialias: !0, 3320 preserveDrawingBuffer: !0, 3321 alpha: !0 3322 }), this.renderer.setSize(i + 200, n + 200), this.renderer.setPixelRatio(o), this.renderer.domElement.classList.add("three-app"), this.renderer.setScissorTest(!0), this.renderer.outputEncoding = ii.LY2, this.renderer.toneMapping = ii.EoG, this.renderer.toneMappingExposure = .5, this.pmremGenerator = new ii.anP(this.renderer), this.pmremGenerator.compileEquirectangularShader(), this.neutralEnvironment = this.pmremGenerator.fromScene(new ni.C).texture, document.body.appendChild(this.renderer.domElement), this.scene = new ii.xsS, this.mouse = { 3323 x: 0, 3324 y: 0 3325 }, this.uniforms = { 3326 iResolution: { 3327 value: new ii.FM8(i, n) 3328 } 3329 }, this.perspective = 100; 3330 var s = 2 * Math.atan(n / 2 / this.perspective) * 180 / Math.PI; 3331 this.camera = new ii.cPb(s, r, 1, 300), this.camera.position.set(0, 0, this.perspective), this.camera.aspect = r, this.clock = new ii.SUY, this.renderList = [], this.props = { 3332 scrollTop: 0 3333 }, this.scroll = { 3334 last: 0, 3335 current: 0 3336 }, this.clearColor = new ii.Ilk("#000"), this.idAnim = null, this.loaderGLTF = new fi, this.render = this.render.bind(this), this.addObjects(), this.getViewSize(), this.bindEvents() 3337 } 3338 var e, i, n; 3339 return e = t, i = [{ 3340 key: "addObjects", 3341 value: function() {} 3342 }, { 3343 key: "addScene", 3344 value: function(t) { 3345 this.scene.add(t) 3346 } 3347 }, { 3348 key: "removeScene", 3349 value: function(t) { 3350 this.scene.remove(t) 3351 } 3352 }, { 3353 key: "getViewSize", 3354 value: function() { 3355 var t = this.camera.fov * Math.PI / 180, 3356 e = Math.abs(this.camera.position.z * Math.tan(t / 2) * 2); 3357 this.pointView = { 3358 width: e * this.camera.aspect, 3359 height: e 3360 } 3361 } 3362 }, { 3363 key: "initLight", 3364 value: function() { 3365 var t = new ii.Ox3(16777215, .5); 3366 t.position.set(0, 1, 1), t.scale.multiplyScalar(2
33660), this.scene.add(t); 3367 var e = new ii.vmT(16777215, 16777215, .5); 3368 e.color.setHSL(.6, 1, .6), e.groundColor.setHSL(.095, 1, .75), e.position.set(0, 0, 0), e.scale.multiplyScalar(150), this.scene.add(e); 3369 var i = new ii.Mig(16777215, .5); 3370 this.scene.add(i); 3371 var n = new ii.cek(16777215, .2); 3372 this.camera.add(n), this.scene.add(this.camera) 3373 } 3374 }, { 3375 key: "deleteObject", 3376 value: function(t) { 3377 t.traverse((function(e) { 3378 t.isMesh && (e.geometry.dispose(), e.material instanceof Array ? e.material.forEach((function(t) { 3379 return t.dispose() 3380 })) : e.material.dispose(), e.removeFromParent()) 3381 })) 3382 } 3383 }, { 3384 key: "onWindowResize", 3385 value: function() { 3386 var t = Z.getSize(), 3387 e = t.width, 3388 i = t.height, 3389 n = t.aspectRatio; 3390 this.camera.aspect = n, this.renderer.setSize(e, i), this.uniforms.iResolution.value.x = e, this.uniforms.iResolution.value.y = i, this.camera.fov = 2 * Math.atan(i / 2 / this.perspective) * 180 / Math.PI, this.camera.updateProjectionMatrix() 3391 } 3392 }, { 3393 key: "pageLoaded", 3394 value: function() { 3395 this.idAnim && cancelAnimationFrame(this.idAnim), this.resizeRendererToDisplaySize(this.renderer), this.isHasWork && this.render() 3396 } 3397 }, { 3398 key: "pageLeave", 3399 value: function() { 3400 var t = this; 3401 this.isHasWork = !1; 3402 for (var e = this.scene.children.length - 1; e >= 0; e--) { 3403 var i = this.scene.children[e]; 3404 this.scene.remove(i), this.deleteObject(i) 3405 } 3406 setTimeout((function() { 3407 t.idAnim && cancelAnimationFrame(t.idAnim) 3408 }), 150) 3409 } 3410 }, { 3411 key: "resizeRendererToDisplaySize", 3412 value: function(t) { 3413 var e = t.domElement, 3414 i = e.clientWidth, 3415 n = e.clientHeight, 3416 r = e.width !== i || e.height !== n; 3417 return r && t.setSize(i, n, !1), r 3418 } 3419 }, { 3420 key: "loop", 3421 value: function() { 3422 this.renderer.setScissorTest(!1), this.renderer.setClearColor(this.clearColor, 0), this.renderer.clear(!0, !0), this.renderer.setScissorTest(!0); 3423 for (var t = 0; t < this.renderList.length; t++) this.renderList[t]() 3424 } 3425 }, { 3426 key: "render", 3427 value: function() { 3428 this.loop(), this.idAnim = requestAnimationFrame(this.render) 3429 } 3430 }, { 3431 key: "mouseMove", 3432 value: function(t) { 3433 var e = Z.getSize(), 3434 i = e.width, 3435 n = e.height; 3436 this.mouse.x = t.clientX / i * 2 - 1, this.mouse.y = -t.clientY / n * 2 + 1, ai.uniforms.iMouse.value.set(this.mouse.x, this.mouse.y) 3437 } 3438 }, { 3439 key: "bindEvents", 3440 value: function() { 3441 this.mouseMove = this.mouseMove.bind(this), this.pageLeave = this.pageLeave.bind(this), this.pageLoaded = this.pageLoaded.bind(this), this.addObjects = this.addObjects.bind(this), this.loop = this.loop.bind(this), this.onWindowResize = this.onWindowResize.bind(this), D.on(h, this.onWindowResize), window.addEventListener("mousemove", this.mouseMove), Z.isTouchDevice ? window.addEventListener("scroll", this.loop) : rt.lenis.on("scroll", this.loop), D.on(O, this.pageLeave), D.on(m, this.addObjects), D.on(w, this.pageLoaded) 3442 } 3443 }, { 3444 key: "clear", 3445 value: function() { 3446 this.mapControl && this.mapControl.clear() 3447 } 3448 }], i && yi(e.prototype, i), n && yi(e, n), Object.defineProperty(e, "prototype", { 3449 writable: !1 3450 }), t 3451 }(), 3452 vi = new di; 3453 3454 function mi(t) { 3455 return mi = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 3456 return typeof t 3457 } : function(t) { 3458 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 3459 }, mi(t) 3460 } 3461 3462 function bi(t, e) { 3463 for (var i = 0; i < e.length; i++) { 3464 var n = e[i]; 3465 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 3466 if ("object" !== mi(t) || null === t) return t; 3467 var i = t[Symbol.toPrimitive]; 3468 if (void 0 !== i) { 3469 var n = i.call(t, e || "default"); 3470 if ("object" !== mi(n)) return n; 3471 throw new TypeError("@@toPrimitive must return a primitive value.") 3472 } 3473 return ("string" === e ? String : Number)(t) 3474 }(r, "string"), "symbol" === mi(o) ? o : String(o)), n) 3475 } 3476 var r, o 3477 } 3478 var gi = function() { 3479 function t(e) { 3480 var i = this, 3481 n = e.el, 3482 r = e.url, 3483 o = e.wrapper, 3484 s = void 0 === o ? null : o, 3485 a = e.onLoaded, 3486 l = void 0 === a ? null : a, 3487 u = e.onProgress, 3488 c = void 0 === u ? null : u; 3489 ! function(t, e) { 3490 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 3491 }(this, t), this.DOM = { 3492 el: n 3493 }, Ge.registerLoader(), this.sceneInfo = this.makeScene(this.DOM.el), this.current = new ii.Pa4, vi.isH
3493asWork = !0, this.render = this.render.bind(this), vi.renderList.push(this.render), this.isInview = !s, vi.loaderGLTF.resolve({ 3494 url: r 3495 }).then((function(t) { 3496 var e = t.scene; 3497 i.mesh = e.scene, i.sceneInfo.scene.add(i.mesh), i.onModelLoaded(e), l && l(), Ge.unRegisterLoader() 3498 })), s && st.i.create({ 3499 trigger: s, 3500 onToggle: function(t) { 3501 i.isInview = t.isActive 3502 }, 3503 onUpdate: function(t) { 3504 c && c(t) 3505 } 3506 }), this.props = {} 3507 } 3508 var e, i, n; 3509 return e = t, (i = [{ 3510 key: "onModelLoaded", 3511 value: function(t) {} 3512 }, { 3513 key: "makeScene", 3514 value: function(t) { 3515 var e = new ii.xsS, 3516 i = new ii.cPb(45, 2, .1, 5); 3517 return i.position.z = 2, i.position.set(0, 0, 2), i.lookAt(0, 0, 0), this.addLighting(e), { 3518 scene: e, 3519 camera: i, 3520 elem: t 3521 } 3522 } 3523 }, { 3524 key: "addLighting", 3525 value: function(t) {} 3526 }, { 3527 key: "render", 3528 value: function() { 3529 if (this.isInview) { 3530 var t = this.DOM.el.getBoundingClientRect(), 3531 e = t.width, 3532 i = t.height, 3533 n = t.bottom, 3534 r = t.left, 3535 o = vi.renderer.domElement.clientHeight - n; 3536 vi.renderer.setScissor(r, o, e, i), vi.renderer.setViewport(r, o, e, i); 3537 var s = this.sceneInfo, 3538 a = s.scene, 3539 l = s.camera; 3540 l.aspect = e / i, l.updateProjectionMatrix(), vi.renderer.render(a, l) 3541 } 3542 } 3543 }]) && bi(e.prototype, i), n && bi(e, n), Object.defineProperty(e, "prototype", { 3544 writable: !1 3545 }), t 3546 }(); 3547 3548 function wi(t) { 3549 return wi = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 3550 return typeof t 3551 } : function(t) { 3552 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 3553 }, wi(t) 3554 } 3555 3556 function Oi(t, e) { 3557 var i = Object.keys(t); 3558 if (Object.getOwnPropertySymbols) { 3559 var n = Object.getOwnPropertySymbols(t); 3560 e && (n = n.filter((function(e) { 3561 return Object.getOwnPropertyDescriptor(t, e).enumerable 3562 }))), i.push.apply(i, n) 3563 } 3564 return i 3565 } 3566 3567 function Si(t) { 3568 for (var e = 1; e < arguments.length; e++) { 3569 var i = null != arguments[e] ? arguments[e] : {}; 3570 e % 2 ? Oi(Object(i), !0).forEach((function(e) { 3571 Mi(t, e, i[e]) 3572 })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : Oi(Object(i)).forEac
3572h((function(e) { 3573 Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e)) 3574 })) 3575 } 3576 return t 3577 } 3578 3579 function Mi(t, e, i) { 3580 return (e = Di(e)) in t ? Object.defineProperty(t, e, { 3581 value: i, 3582 enumerable: !0, 3583 configurable: !0, 3584 writable: !0 3585 }) : t[e] = i, t 3586 } 3587 3588 function ki(t, e) { 3589 for (var i = 0; i < e.length; i++) { 3590 var n = e[i]; 3591 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, Di(n.key), n) 3592 } 3593 } 3594 3595 function Di(t) { 3596 var e = function(t, e) { 3597 if ("object" !== wi(t) || null === t) return t; 3598 var i = t[Symbol.toPrimitive]; 3599 if (void 0 !== i) { 3600 var n = i.call(t, e || "default"); 3601 if ("object" !== wi(n)) return n; 3602 throw new TypeError("@@toPrimitive must return a primitive value.") 3603 } 3604 return ("string" === e ? String : Number)(t) 3605 }(t, "string"); 3606 return "symbol" === wi(e) ? e : String(e) 3607 } 3608 3609 function Ei(t, e) { 3610 return Ei = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) { 3611 return t.__proto__ = e, t 3612 }, Ei(t, e) 3613 } 3614 3615 function Pi(t) { 3616 var e = function() { 3617 if ("undefined" == typeof Reflect || !Reflect.construct) return !1; 3618 if (Reflect.construct.sham) return !1; 3619 if ("function" == typeof Proxy) return !0; 3620 try { 3621 return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))), !0 3622 } catch (t) { 3623 return !1 3624 } 3625 }(); 3626 return function() { 3627 var i, n = ji(t); 3628 if (e) { 3629 var r = ji(this).constructor; 3630 i = Reflect.construct(n, arguments, r) 3631 } else i = n.apply(this, arguments); 3632 return function(t, e) { 3633 if (e && ("object" === wi(e) || "function" == typeof e)) return e; 3634 if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); 3635 return function(t) { 3636 if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 3637 return t 3638 }(t) 3639 }(this, i) 3640 } 3641 } 3642 3643 function ji(t) { 3644 return ji = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) { 3645 return t.__proto__ || Object.getPrototypeOf(t) 3646 }, ji(t) 3647 } 3648 var Ti = function(t) { 3649 ! function(t, e) { 3650 if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); 3651 t.prototype = Object.create(e && e.prototype, { 3652 constructor: { 3653 value: t, 3654 writable: !0, 3655 configurable: !0 3656 } 3657 }), Object.defineProperty(t, "prototype", { 3658 writable: !1 3659 }), e && Ei(t, e) 3660 }(o, t); 3661 var e, i, n, r = Pi(o); 3662 3663 function o(t) { 3664 var e, i = t.el, 3665 n = t.url, 3666 s = t.position, 3667 a = void 0 === s ? new ii.Pa4 : s, 3668 l = t.scale, 3669 u = void 0 === l ? .02 : l, 3670 c = t.rotation, 3671 h = void 0 === c ? new ii.Pa4 : c, 3672 f = t.scroller, 3673 p = void 0 === f ? new ii.Pa4 : f, 3674 y = t.onLoaded, 3675 d = void 0 === y ? null : y; 3676 return function(t, e) { 3677 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 3678 }(this, o), (e = r.call(this, { 3679 el: i.querySelector(".js-about_ido_inner"), 3680 url: n, 3681 onLoaded: d 3682 })).rotation = Si({}, h), e.position = Si({}, a), e.scroller = Si({}, p), e.scale = u, e 3683 } 3684 return e = o, (i = [{ 3685 key: "onModelLoaded", 3686 value: function(t) { 3687 var e = this; 3688 this.rotation && this.mesh.rotation.copy(this.rotation), this.position && this.mesh.position.copy(this.position), this.mesh.scale.setScalar(this.scale); 3689 var i = document.querySelector(".js-about"); 3690 st.i.create({ 3691 trigger: i, 3692 onToggle: function(t) { 3693 e.isInview = t.isActive 3694 }, 3695 onUpdate: function(t) { 3696 var i = t.progress; 3697 e.mesh.rotation.x = Lt(i, 0, 1, 0, 1.5), e.mesh.rotation.y = Lt(i, 0, 1, 0, 2) 3698 } 3699 }) 3700 } 3701 }, { 3702 key: "addLighting", 3703 value: function(t) { 3704 var e = new ii.Ox3(16777215, 5); 3705 e.position.set(1, .5, -.5), t.add(e), t.environment = vi.neutralEnvironment 3706 } 3707 }]) && ki(e.prototype, i), n && ki(e, n), Object.defineProperty(e, "prototype", { 3708 writable: !1 3709 }), o 3710 }(gi); 3711 3712 function Li(t) { 3713 return Li = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 3714 return typeof t 3715 } : function(t) { 3716 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 3717 }, Li(t) 3718 } 3719 3720 function xi(t, e) { 3721 var i = Object.keys(t); 3722 if (Object.getOwnPropertySymbols) { 3723 var n = Object.getOwnPropertySymbols(t); 3724 e && (n = n.filter((function(e) { 3725 return Object.getOwnPropertyDescriptor(t, e).enumerable 3726 }))), i.push.apply(i, n) 3727 } 3728 return i 3729 } 3730 3731 function Ai(t) { 3732 for (var e = 1; e < arguments.length; e++) { 3733 var i = null != arguments[e] ? arguments[e] : {};
3734 e % 2 ? xi(Object(i), !0).forEach((function(e) { 3735 Ri(t, e, i[e]) 3736 })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : xi(Object(i)).forEach((function(e) { 3737 Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e)) 3738 })) 3739 } 3740 return t 3741 } 3742 3743 function Ri(t, e, i) { 3744 return (e = Ci(e)) in t ? Object.defineProperty(t, e, { 3745 value: i, 3746 enumerable: !0, 3747 configurable: !0, 3748 writable: !0 3749 }) : t[e] = i, t 3750 } 3751 3752 function _i(t, e) { 3753 for (var i = 0; i < e.length; i++) { 3754 var n = e[i]; 3755 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, Ci(n.key), n) 3756 } 3757 } 3758 3759 function Ci(t) { 3760 var e = function(t, e) { 3761 if ("object" !== Li(t) || null === t) return t; 3762 var i = t[Symbol.toPrimitive]; 3763 if (void 0 !== i) { 3764 var n = i.call(t, e || "default"); 3765 if ("object" !== Li(n)) return n; 3766 throw new TypeError("@@toPrimitive must return a primitive value.") 3767 } 3768 return ("string" === e ? String : Number)(t) 3769 }(t, "string"); 3770 return "symbol" === Li(e) ? e : String(e) 3771 } 3772 3773 function Ii(t, e) { 3774 return Ii = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) { 3775 return t.__proto__ = e, t 3776 }, Ii(t, e) 3777 } 3778 3779 function zi(t) { 3780 var e = function() { 3781 if ("undefined" == typeof Reflect || !Reflect.construct) return !1; 3782 if (Reflect.construct.sham) return !1; 3783 if ("function" == typeof Proxy) return !0; 3784 try { 3785 return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))), !0 3786 } catch (t) { 3787 return !1 3788 } 3789 }(); 3790 return function() { 3791 var i, n = qi(t); 3792 if (e) { 3793 var r = qi(this).constructor; 3794 i = Reflect.construct(n, arguments, r) 3795 } else i = n.apply(this, arguments); 3796 return function(t, e) { 3797 if (e && ("object" === Li(e) || "function" == typeof e)) return e; 3798 if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); 3799 return function(t) { 3800 if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 3801 return t 3802 }(t) 3803 }(this, i) 3804 } 3805 } 3806 3807 function qi(t) { 3808 return qi = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) { 3809 return t.__proto__ || Object.getPrototypeOf(t) 3810 }, qi(t) 3811 } 3812 var Hi = function(t) { 3813 ! function(t, e) { 3814 if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); 3815 t.prototype = Object.create(e && e.prototype, { 3816 constructor: { 3817 value: t, 3818 writable: !0, 3819 configurable: !0 3820 } 3821 }), Object.defineProperty(t, "prototype", { 3822 writable: !1 3823 }), e && Ii(t, e) 3824 }(o, t); 3825 var e, i, n, r = zi(o); 3826 3827 function o(t) { 3828 var e, i = t.el, 3829 n = t.url, 3830 s = t.position, 3831 a = void 0 === s ? new ii.Pa4 : s, 3832 l = t.scale, 3833 u = void 0 === l ? .02 : l, 3834 c = t.rotation, 3835 h = void 0 === c ? new ii.Pa4 : c, 3836 f = t.scroller, 3837 p = void 0 === f ? new ii.Pa4 : f, 3838 y = t.onLoaded, 3839 d = void 0 === y ? null : y; 3840 return function(t, e) { 3841 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 3842 }(this, o), (e = r.call(this, { 3843 el: i.querySelector(".js-about_ido_inner"), 3844 url: n, 3845 onLoaded: d 3846 })).rotation = Ai({}, h), e.position = Ai({}, a), e.scroller = Ai({}, p), e.scale = u, e 3847 } 3848 return e = o, (i = [{ 3849 key: "onModelLoaded", 3850 value: function(t) { 3851 var e = this; 3852 this.rotation && this.mesh.rotation.copy(this.rotation), this.position && this.mesh.position.copy(this.position), this.mesh.scale.setScalar(this.scale); 3853 var i = document.querySelector(".js-about"); 3854 st.i.create({ 3855 trigger: i, 3856 onToggle: function(t) { 3857 e.isInview = t.isActive 3858 }, 3859 onUpdate: function(t) { 3860 var i = t.progress; 3861 e.mesh.rotation.z = Lt(i, 0, 1, .5, 1), e.mesh.rotation.x = Lt(i, 0, 1, -.25, 1), e.mesh.rotation.y = Lt(i, 0, 1, -.5, 0) 3862 } 3863 }) 3864 } 3865 }, { 3866 key: "addLighting", 3867 value: function(t) { 3868 var e = new ii.Ox3(16777215, 10); 3869 e.position.set(1, .5, .5), t.add(e), t.environment = vi.neutralEnvironment 3870 } 3871 }]) && _i(e.prototype, i), n && _i(e, n), Object.defineProperty(e, "prototype", { 3872 writable: !1 3873 }), o 3874 }(gi); 3875 3876 function Bi(t) { 3877 return Bi = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 3878 return typeof t 3879 } : function(t) { 3880 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 3881 }, Bi(t) 3882 } 3883 3884 function Ni(t, e) { 3885 for (var i = 0; i < e.length; i++) { 3886 var n = e[i]; 3887 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 3888 if ("object" !== Bi(t) || null === t) return t; 3889 var i = t[Symbol.toPrimitive]; 3890 if (void 0 !== i) { 3891 var n = i.call(t, e || "default"); 3892 if ("object" !== Bi(n)) return n; 3893 throw new TypeError("@@toPrimitive must return a primitive value.") 3894 } 3895 return ("string" === e ? String : Number)(t) 3896 }(r, "string"), "symbol" === Bi(o) ? o : String(o)), n) 3897 } 3898 var r, o 3899 } 3900 var Fi = function() { 3901 function t(e) { 3902 var i = e.main; 3903 ! function(t, e) { 3904 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 3905 }(this, t), this.DOM = { 3906 main: i 3907 }, this.state = { 3908 coffeeRotation: new ii.Pa4(.29, -.68, -.42), 3909 mouseRotation: new ii.Pa4(.84, .15, .84), 3910 coffeeScroller: new ii.Pa4(-.05, .05, .01), 3911 mouseScroller: new ii.Pa4(-.05, -.05, .01) 3912 }; 3913 var n = this.DOM.main.querySelector(".js-about_ido_coffee"); 3914 n && (this.obCoffee = new Ti({ 3915 el: n, 3916 url: "https://colectivo3.com/wp-content/themes/colectivo3/assets/glb/coffee.min.gltf", 3917 scroller: this.state.coffeeScroller, 3918 rotation: new ii.USm(this.state.coffeeRotation.x, this.state.coffeeRotation.y, this.state.coffeeRotation.z, "XYZ") 3919 })); 3920 var r = this.DOM.main.querySelector(".js-about_ido_mouse"); 3921 r && (this.obMouse = new Hi({ 3922 el: r, 3923 url: "https://colectivo3.com/wp-content/themes/colectivo3/assets/glb/mouse.min.gltf", 3924 scroller: this.state.mouseScroller, 3925 rotation: new ii.USm(this.state.mouseRotation.x, this.state.mouseRotation.y, this.state.mouseRotation.z, "XYZ") 3926 })), vi.addObjects(this.render.bind(this)) 3927 } 3928 var e, i, n; 3929 return e = t, (i = [{ 3930 key: "render", 3931 value: function() {} 3932 }]) && Ni(e.prototype, i), n && Ni(e, n), Object.defineProperty(e, "prototype", { 3933 writable: !1 3934 }), t 3935 }(); 3936 3937 function Wi(t) { 3938 return Wi = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 3939 return typeof t 3940 } : function(t) { 3941 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 3942 }, Wi(t) 3943 } 3944 3945 function Vi(t, e) { 3946 for (var i = 0; i < e.length; i++) { 3947 var n = e[i]; 3948 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 3949 if ("object" !== Wi(t) || null === t) return t; 3950 var i = t[Symbol.toPrimitive]; 3951 if (void 0 !== i) { 3952 var n = i.call(t, e || "default"); 3953 if ("object" !== Wi(n)) return n; 3954 throw new TypeError("@@toPrimitive must return a primitive value.") 3955 } 3956 return ("string" === e ? String : Number)(t) 3957 }(r, "string"), "symbol" === Wi(o) ? o : String(o)), n) 3958 } 3959 var r, o 3960 } 3961 3962 function Gi(t, e) { 3963 return Gi = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) { 3964 return t.__proto__ = e, t 3965 }, Gi(t, e) 3966 } 3967 3968 function Ui(t) { 3969 var e = function() { 3970 if ("undefined" == typeof Reflect || !Reflect.construct) return !1; 3971 if (Reflect.construct.sham) return !1; 3972 if ("function" == typeof Proxy) return !0; 3973 try { 3974 return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))), !0 3975 } catch (t) { 3976 return !1 3977 } 3978 }(); 3979 return function() { 3980 var i, n = Zi(t); 3981 if (e) { 3982 var r = Zi(this).constructor; 3983 i = Reflect.construct(n, arguments, r) 3984 } else i = n.apply(this, arguments); 3985 return function(t, e) { 3986 if (e && ("object" === Wi(e) || "function" == typeof e)) return e; 3987 if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); 3988 return function(t) { 3989 if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 3990 return t 3991 }(t) 3992 }(this, i) 3993 } 3994 } 3995 3996 function Zi(t) { 3997 return Zi = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) { 3998 return t.__proto__ || Object.getPrototypeOf(t) 3999 }, Zi(t) 4000 } 4001 var Yi = function(t) { 4002 ! function(t, e) { 4003 if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); 4004 t.prototype = Object.create(e && e.prototype, { 4005 constructor: { 4006 value: t, 4007 writable: !0, 4008 configurable: !0 4009 } 4010 }), Object.defineProperty(t, "prototype", { 4011 writable: !1 4012 }), e && Gi(t, e) 4013 }(o, t); 4014 var e, i, n, r = Ui(o); 4015 4016 function o(t) { 4017 var e, i = t.el, 4018 n = t.url, 4019 s = void 0 === n ? "https://colectivo3.com/wp-content/themes/colectivo3/assets/glb/globe-custom.gltf" : n, 4020 a = t.onLoaded, 4021 l = void 0 === a ? null : a; 4022 return function(t, e) { 4023 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 4024 }(this, o), (e = r.call(this, { 4025 el: i, 4026 url: s, 4027 onLoaded: l 4028 })).init(), e 4029 } 4030 return e = o, (i = [{ 4031 key: "onModelLoaded", 4032 value: function(t) { 4033 // Posición globo original 4034 //z() ? this.mesh.scale.setScalar(1.7) : this.mesh.scale.setScalar(1.9), this.mesh.traverse((function(t) { 4035 // Posición globo nuevo retocada 4036 z() ? this.mesh.scale.setScalar(1.7) : this.mesh.scale.setScalar(0.8), this.mesh.position.y = -1.1, this.mesh.traverse((function(t) { 4037 t.isMesh && (t.mater
4037ial.metalness = 0, t.material.roughness = 1) 4038 })) 4039 } 4040 }, { 4041 key: "init", 4042 value: function() { 4043 var t = this, 4044 e = document.querySelector(".js-client"); 4045 st.i.create({ 4046 trigger: e, 4047 onUpdate: function(e) { 4048 t.mesh && (t.mesh.rotation.y = Lt(e.progress, 0, 1, -2, -.8)) 4049 }, 4050 onToggle: function(e) { 4051 t.isInview = e.isActive 4052 } 4053 }) 4054 } 4055 }, { 4056 key: "addLighting", 4057 value: function(t) { 4058 var e = new ii.Ox3(16777215, 12); 4059 e.position.set(1, .08, -.05), t.add(e); 4060 var i = new ii.ybr(855309, 0, 3); 4061 t.fog = i, t.environment = vi.neutralEnvironment; 4062 var n = new ii.Mig(16777215, 20); 4063 t.add(n) 4064 } 4065 }]) && Vi(e.prototype, i), n && Vi(e, n), Object.defineProperty(e, "prototype", { 4066 writable: !1 4067 }), o 4068 }(gi); 4069 4070 function Xi(t) { 4071 return Xi = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 4072 return typeof t 4073 } : function(t) { 4074 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 4075 }, Xi(t) 4076 } 4077 4078 function Ki(t, e) { 4079 for (var i = 0; i < e.length; i++) { 4080 var n = e[i]; 4081 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 4082 if ("object" !== Xi(t) || null === t) return t; 4083 var i = t[Symbol.toPrimitive]; 4084 if (void 0 !== i) { 4085 var n = i.call(t, e || "default"); 4086 if ("object" !== Xi(n)) return n; 4087 throw new TypeError("@@toPrimitive must return a primitive value.") 4088 } 4089 return ("string" === e ? String : Number)(t) 4090 }(r, "string"), "symbol" === Xi(o) ? o : String(o)), n) 4091 } 4092 var r, o 4093 } 4094 4095 function Ji(t, e, i) { 4096 return e && Ki(t.prototype, e), i && Ki(t, i), Object.defineProperty(t, "prototype", { 4097 writable: !1 4098 }), t 4099 } 4100 var Qi = Ji((function t() { 4101 var e = this; 4102 ! function(t, e) { 4103 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 4104 }(this, t), this.DOM = { 4105 videoPlayer: document.getElementById("hero-bg-video") 4106 }; 4107 var i, n = this.DOM.videoPlayer.getAttribute("data-pc").toString(), 4108 r = this.DOM.videoPlayer.getAttribute("data-mobile").toString(); 4109 this.urlVideoCurrent = null, (i = function() { 4110 q() ? e.urlVideoCurrent = n : e.urlVideoCurrent = r, e.DOM.videoPlayer.setAttribute("src", e.urlVideoCurrent), e.DOM.videoPlayer.setAttribute("preload", "auto") 4111 })(), D.on(h, i), Z.addClearEvent((function() { 4112 D.off(h, i) 4113 })) 4114 })); 4115 4116 function $i(t) { 4117 return $i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 4118 return typeof t 4119 } : function(t) { 4120 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 4121 }, $i(t) 4122 } 4123 4124 function tn(t, e) { 4125 for (var i = 0; i < e.length; i++) { 4126 var n = e[i]; 4127 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, (r = n.key, o = void 0, o = function(t, e) { 4128 if ("object" !== $i(t) || null === t) return t; 4129 var i = t[Symbol.toPrimitive]; 4130 if (void 0 !== i) { 4131 var n = i.call(t, e || "default"); 4132 if ("object" !== $i(n)) return n; 4133 throw new TypeError("@@toPrimitive must return a primitive value.") 4134 } 4135 return ("string" === e ? String : Number)(t) 4136 }(r, "string"), "symbol" === $i(o) ? o : String(o)), n) 4137 } 4138 var r, o 4139 } 4140 ot.p8.registerPlugin(st.i), ot.p8.registerPlugin(at.
4140L), new(function() { 4141 function t() { 4142 ! function(t, e) { 4143 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 4144 }(this, t), this.bindEvent(), new St, window.DEV_INFO = new Tt(E), new Dt, Ge.simple(), C() || rt.enabled() 4145 } 4146 var e, i, n; 4147 return e = t, (i = [{ 4148 key: "initGlobal", 4149 value: function() { 4150 new fe, new ei, this.initModules(), bt.initRenderSVG() 4151 } 4152 }, { 4153 key: "initModules", 4154 value: function() { 4155 document.querySelectorAll(".js-scroll-paragraph-mask").forEach((function(t) { 4156 new Oe({ 4157 paragraph: t 4158 }) 4159 })), document.querySelectorAll(".js-heading-mask").forEach((function(t) { 4160 new ke({ 4161 heading: t 4162 }) 4163 })); 4164 var t = document.querySelector(".js-videoPlayer"); 4165 t && new je({ 4166 main: t 4167 }); 4168 var e, i = document.querySelector(".js-testimonials"); 4169 if (i && new Ce({ 4170 main: i 4171 }), new Qi, (e = document.querySelector(".js-pageContent")) && (e.querySelectorAll(".js-anim--chars:not(.is-handler)").forEach((function(t) { 4172 new Wt(t, { 4173 handleScrolling: !0, 4174 runMobile: !0 4175 }) 4176 })), e.querySelectorAll(".js-anim--scale:not(.is-handler)").forEach((function(t) { 4177 new ne(t, { 4178 handleScrolling: !0 4179 }) 4180 })), e.querySelectorAll(".js-anim--lines--sim:not(.is-handler)").forEach((function(t) { 4181 new Kt(t, { 4182 handleScrolling: !0, 4183 type: "lines--chars" 4184 }) 4185 }))), !_()) { 4186 var n = document.querySelector(".js-about"); 4187 n && new Fi({ 4188 main: n 4189 }); 4190 var r = document.querySelector(".js-client_list_3d"); 4191 r && new Yi({ 4192 el: r 4193 }) 4194 } 4195 } 4196 }, { 4197 key: "pageAfter", 4198 value: function() { 4199 this.initModules(), bt.renderSvgElement(document.querySelector(".js-pageContent")) 4200 } 4201 }, { 4202 key: "winPageLoaded", 4203 value: function() { 4204 yt.init() 4205 } 4206 }, { 4207 key: "onMoving", 4208 value: function(t) { 4209 Z.mouse = { 4210 x: t.clientX, 4211 y: t.clientY 4212 } 4213 } 4214 }, { 4215 key: "bindEvent", 4216 value: function() { 4217 window.addEventListener("mousemove", this.onMoving.bind(this)), D.on(d, this.initGlobal.b
4217ind(this)), D.on(m, this.pageAfter.bind(this)), D.on(b, this.winPageLoaded.bind(this)) 4218 } 4219 }]) && tn(e.prototype, i), n && tn(e, n), Object.defineProperty(e, "prototype", { 4220 writable: !1 4221 }), t 4222 }()) 4223 }, 4224 5893: () => {} 4225 }, 4226 i = {}; 4227 4228 function n(t) { 4229 var r = i[t]; 4230 if (void 0 !== r) return r.exports; 4231 var o = i[t] = { 4232 exports: {} 4233 }; 4234 return e[t].call(o.exports, o, o.exports, n), o.exports 4235 } 4236 n.m = e, t = [], n.O = (e, i, r, o) => { 4237 if (!i) { 4238 var s = 1 / 0; 4239 for (c = 0; c < t.length; c++) { 4240 for (var [i, r, o] = t[c], a = !0, l = 0; l < i.length; l++)(!1 & o || s >= o) && Object.keys(n.O).every((t => n.O[t](i[l]))) ? i.splice(l--, 1) : (a = !1, o < s && (s = o)); 4241 if (a) { 4242 t.splice(c--, 1); 4243 var u = r(); 4244 void 0 !== u && (e = u) 4245 } 4246 } 4247 return e 4248 } 4249 o = o || 0; 4250 for (var c = t.length; c > 0 && t[c - 1][2] > o; c--) t[c] = t[c - 1]; 4251 t[c] = [i, r, o] 4252 }, n.n = t => { 4253 var e = t && t.__esModule ? () => t.default : () => t; 4254 return n.d(e, { 4255 a: e 4256 }), e 4257 }, n.d = (t, e) => { 4258 for (var i in e) n.o(e, i) && !n.o(t, i) && Object.defineProperty(t, i, { 4259 enumerable: !0, 4260 get: e[i] 4261 }) 4262 }, n.g = function() { 4263 if ("object" == typeof globalThis) return globalThis; 4264 try { 4265 return this || new Function("return this")() 4266 } catch (t) { 4267 if ("object" == typeof window) return window 4268 } 4269 }(), n.o = (t, e) => Object.prototype.hasOwnProperty.call(t, e), (() => { 4270 var t = { 4271 143: 0 4272 }; 4273 n.O.j = e => 0 === t[e]; 4274 var e = (e, i) => { 4275 var r, o, [s, a, l] = i, 4276 u = 0; 4277 if (s.some((e => 0 !== t[e]))) { 4278 for (r in a) n.o(a, r) && (n.m[r] = a[r]); 4279 if (l) var c = l(n) 4280 } 4281 for (e && e(i); u < s.length; u++) o = s[u], n.o(t, o) && t[o] && t[o][0](), t[o] = 0; 4282 return n.O(c) 4283 }, 4284 i = self.webpackChunkwebpack_boilerplate = self.webpackChunkwebpack_boilerplate || []; 4285 i.forEach(e.bind(null, 0)), i.push = e.bind(null, i.push.bind(i)) 4286 })(); 4287 var r = n.O(void 0, [736], (() => n(5267))); 4288 r = n.O(r) 4289})();
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.