function commaSeparateNumber(t){for(;/(\d+)(\d{3})/.test(t.toString());)t=t.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,");return t}function socialToggle(){var t=$("#social-label");(t=$(this)).hasClass("active")?t.removeClass("active"):t.addClass("active")}function scrollNav(){$("#hack-list__nav .nav-link").click(function(){return $("html, body").stop().animate({scrollTop:$($(this).attr("href")).offset().top},1e3),!1})}var tabCarousel;function tabsLoop(t){var i,e=t,s=1;tabCarousel=setInterval(function(){i=s+1,3==s&&(s=1,i=1),$("#h"+e+".show-current .nav-tabs li:nth-of-type("+s+") .nav-link").hasClass("active")?($("#h"+e+".show-current .nav-tabs li:nth-of-type("+i+") .nav-link").tab("show"),s++,i++):$("#h"+e+".show-current .nav-tabs li:nth-of-type(1) .nav-link").tab("show")},3e3)}function randomValue(){var t,i,e=$(".nbr"),s=0,o=["0","3","0","0","5","0","3","0","1"];function n(){return Math.round(Math.random()*e.length+1)}function r(){$(".nbr:nth-child("+n()+")").html(""+Math.round(9*Math.random())),$(".nbr:nth-child("+n()+")").attr("data-number",s),s++,e.each(function(){parseInt($(this).attr("data-number"))>parseInt($(this).attr("data-change"))&&(t=$(".ltr").index(this),$(this).html(o[t]),$(this).removeClass("nbr"))})}e.each(function(){i=Math.round(1e5*Math.random()),$(this).attr("data-change",i)});setInterval(function(){1,r()},30)}!function(t){t.fn.viewportChecker=function(i){var e={classToAdd:"visible",classToRemove:"invisible",classToAddForFullView:"full-visible",removeClassAfterAnimation:!1,offset:100,repeat:!1,invertBottomOffset:!0,callbackFunction:function(t,i){},scrollHorizontal:!1,scrollBox:window};t.extend(e,i);var s=this,o={height:t(e.scrollBox).height(),width:t(e.scrollBox).width()};return this.checkElements=function(){var i,n;e.scrollHorizontal?(i=Math.max(t("html").scrollLeft(),t("body").scrollLeft(),t(window).scrollLeft()),n=i+o.width):(i=Math.max(t("html").scrollTop(),t("body").scrollTop(),t(window).scrollTop()),n=i+o.height),s.each(function(){var s=t(this),r={},a={};if(s.data("vp-add-class")&&(a.classToAdd=s.data("vp-add-class")),s.data("vp-remove-class")&&(a.classToRemove=s.data("vp-remove-class")),s.data("vp-add-class-full-view")&&(a.classToAddForFullView=s.data("vp-add-class-full-view")),s.data("vp-keep-add-class")&&(a.removeClassAfterAnimation=s.data("vp-remove-after-animation")),s.data("vp-offset")&&(a.offset=s.data("vp-offset")),s.data("vp-repeat")&&(a.repeat=s.data("vp-repeat")),s.data("vp-scrollHorizontal")&&(a.scrollHorizontal=s.data("vp-scrollHorizontal")),s.data("vp-invertBottomOffset")&&(a.scrollHorizontal=s.data("vp-invertBottomOffset")),t.extend(r,e),t.extend(r,a),!s.data("vp-animated")||r.repeat){String(r.offset).indexOf("%")>0&&(r.offset=parseInt(r.offset)/100*o.height);var l=r.scrollHorizontal?s.offset().left:s.offset().top,h=r.scrollHorizontal?l+s.width():l+s.height(),c=Math.round(l)+r.offset,d=r.scrollHorizontal?c+s.width():c+s.height();r.invertBottomOffset&&(d-=2*r.offset),n>c&&d>i?(s.removeClass(r.classToRemove),s.addClass(r.classToAdd),r.callbackFunction(s,"add"),n>=h&&l>=i?s.addClass(r.classToAddForFullView):s.removeClass(r.classToAddForFullView),s.data("vp-animated",!0),r.removeClassAfterAnimation&&s.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){s.removeClass(r.classToAdd)})):s.hasClass(r.classToAdd)&&r.repeat&&(s.removeClass(r.classToAdd+" "+r.classToAddForFullView),r.callbackFunction(s,"remove"),s.data("vp-animated",!1))}})},("ontouchstart"in window||"onmsgesturechange"in window)&&t(document).bind("touchmove MSPointerMove pointermove",this.checkElements),t(e.scrollBox).bind("load scroll",this.checkElements),t(window).resize(function(i){o={height:t(e.scrollBox).height(),width:t(e.scrollBox).width()},s.checkElements()}),this.checkElements(),this}}(jQuery),"scrollRestoration"in history&&(history.scrollRestoration="manual"),$(function(){if(scrollNav(),jQuery(".vc").viewportChecker({classToAdd:"anim",offset:50}),jQuery(".vc500").viewportChecker({classToAdd:"anim",offset:500}),jQuery(".vcr").viewportChecker({classToAdd:"anim",offset:50,repeat:!0}),jQuery(".vcr500").viewportChecker({classToAdd:"anim",offset:50,repeat:!0,callbackFunction:function(t,i){setTimeout(function(){t.addClass("second")},500)}}),jQuery("#randomvalue").viewportChecker({offset:50,callbackFunction:function(t,i){randomValue()}}),jQuery("#table").viewportChecker({offset:50,callbackFunction:function(t,i){$("body").scrollspy("refresh"),$("body").scrollspy({target:"#hack-list"})}}),jQuery("#table2019").viewportChecker({offset:50,callbackFunction:function(t,i){$("body").scrollspy("refresh"),$("body").scrollspy({target:"#hack-list2"})}}),$('[data-toggle="popover"]').popover(),$("#social-label").on("click",socialToggle),$(window).scroll(function(){var t=$("#social-label");t.hasClass("active")&&t.removeClass("active"),$("#sticky-popover").popover("hide")}),$(".switcher").on("click",function(t){t.preventDefault(),$(".screen").toggleClass("glitch")}),$('button[data-toggle="tab"]').on("click",function(t){clearInterval(tabCarousel)}),$("#spectotal").length>0){var t,e,s=$("#hack-list__nav li").length-3,o=0;for(i=0;i=i&&s<100&&($("#scrollbox-progress").css("width",s+"%"),$("#sticky-total").removeClass("swipe-down")),t100&&($("#scrollbox-progress").css("width","100%"),setTimeout(function(){$("#sticky-total").addClass("swipe-down")},500))}),$(window).on("activate.bs.scrollspy",function(t,e){$("#hack-posts .show-current").removeClass("show-current"),$(e.relatedTarget).addClass("show-current");var s=$(e.relatedTarget).attr("id"),o=s.substring(0,3),n=s.replace("h",""),r=n,a=$("#hack-list__nav"),l=$("#point"+n),h=$("#hack-list__nav .hasvalue").length;if(setTimeout(function(){clearInterval(tabCarousel),tabsLoop(n)},100),r>=5&&a.animate({scrollTop:l.offset().top-a.offset().top+a.scrollTop()}),r<5&&a.animate({scrollTop:$("#point1").offset().top-a.offset().top+a.scrollTop()}),o==s){if(n<=h){for(i=1;i>0];return s>=.5&&(o=o.toLowerCase()),c.fillText(o,i,e*f,f),(i+=f)>768*d+32e3*s?0:i})}function startAnimating(){for(fpsInterval=1e3/fps,then=Date.now(),startTime=then;o--;)p=rain();animate()}q.width=w,q.height=h,c.font=f+"px Arial",c.fillRect(0,0,w,h),c.fillStyle="#121212";var topOffset=$(window).scrollTop()||$("body").scrollTop(),windowHeight=$(window).height();function animate(){stop||($rAF=requestAnimationFrame(animate),now=Date.now(),(elapsed=now-then)>fpsInterval&&(then=now-elapsed%fpsInterval,p=rain()))}$rAF=requestAnimationFrame(animate),topOffsetwindowHeight/2&&cancelAnimationFrame($rAF)}),function(t,i){"function"==typeof define&&define.amd?define(i):"object"==typeof exports?module.exports=i():t.ScrollMagic=i()}(this,function(){"use strict";var t=function(){};t.version="2.0.5",window.addEventListener("mousewheel",function(){});var i="data-scrollmagic-pin-spacer";t.Controller=function(s){var n,r,a="REVERSE",l="PAUSED",h=e.defaults,c=this,d=o.extend({},h,s),p=[],u=!1,f=0,_=l,m=!0,g=0,v=!0,b=function(){d.refreshInterval>0&&(r=window.setTimeout(F,d.refreshInterval))},w=function(){return d.vertical?o.get.scrollTop(d.container):o.get.scrollLeft(d.container)},y=function(){return d.vertical?o.get.height(d.container):o.get.width(d.container)},$=this._setScrollPos=function(t){d.vertical?m?window.scrollTo(o.get.scrollLeft(),t):d.container.scrollTop=t:m?window.scrollTo(t,o.get.scrollTop()):d.container.scrollLeft=t},x=function(){if(v&&u){var t=o.type.Array(u)?u:p.slice(0);u=!1;var i=f,e=(f=c.scrollPos())-i;0!==e&&(_=e>0?"FORWARD":a),_===a&&t.reverse(),t.forEach(function(t){t.update(!0)})}},k=function(){n=o.rAF(x)},C=function(t){"resize"==t.type&&(g=y(),_=l),!0!==u&&(u=!0,k())},F=function(){if(!m&&g!=y()){var t;try{t=new Event("resize",{bubbles:!1,cancelable:!1})}catch(i){(t=document.createEvent("Event")).initEvent("resize",!1,!1)}d.container.dispatchEvent(t)}p.forEach(function(t){t.refresh()}),b()};this._options=d;var T=function(t){if(t.length<=1)return t;var i=t.slice(0);return i.sort(function(t,i){return t.scrollOffset()>i.scrollOffset()?1:-1}),i};return this.addScene=function(i){if(o.type.Array(i))i.forEach(function(t){c.addScene(t)});else if(i instanceof t.Scene)if(i.controller()!==c)i.addTo(c);else if(p.indexOf(i)<0)for(var e in p.push(i),p=T(p),i.on("shift.controller_sort",function(){p=T(p)}),d.globalSceneOptions)i[e]&&i[e].call(i,d.globalSceneOptions[e]);return c},this.removeScene=function(t){if(o.type.Array(t))t.forEach(function(t){c.removeScene(t)});else{var i=p.indexOf(t);i>-1&&(t.off("shift.controller_sort"),p.splice(i,1),t.remove())}return c},this.updateScene=function(i,e){return o.type.Array(i)?i.forEach(function(t){c.updateScene(t,e)}):e?i.update(!0):!0!==u&&i instanceof t.Scene&&(-1==(u=u||[]).indexOf(i)&&u.push(i),u=T(u),k()),c},this.update=function(t){return C({type:"resize"}),t&&x(),c},this.scrollTo=function(e,s){if(o.type.Number(e))$.call(d.container,e,s);else if(e instanceof t.Scene)e.controller()===c&&c.scrollTo(e.scrollOffset(),s);else if(o.type.Function(e))$=e;else{var n=o.get.elements(e)[0];if(n){for(;n.parentNode.hasAttribute(i);)n=n.parentNode;var r=d.vertical?"top":"left",a=o.get.offset(d.container),l=o.get.offset(n);m||(a[r]-=c.scrollPos()),c.scrollTo(l[r]-a[r],s)}}return c},this.scrollPos=function(t){return arguments.length?(o.type.Function(t)&&(w=t),c):w.call(c)},this.info=function(t){var i={size:g,vertical:d.vertical,scrollPos:f,scrollDirection:_,container:d.container,isDocument:m};return arguments.length?void 0!==i[t]?i[t]:void 0:i},this.loglevel=function(){return c},this.enabled=function(t){return arguments.length?(v!=t&&(v=!!t,c.updateScene(p,!0)),c):v},this.destroy=function(t){window.clearTimeout(r);for(var i=p.length;i--;)p[i].destroy(t);return d.container.removeEventListener("resize",C),d.container.removeEventListener("scroll",C),o.cAF(n),null},function(){for(var t in d)h.hasOwnProperty(t)||delete d[t];if(d.container=o.get.elements(d.container)[0],!d.container)throw"ScrollMagic.Controller init failed.";(m=d.container===window||d.container===document.body||!document.body.contains(d.container))&&(d.container=window),g=y(),d.container.addEventListener("resize",C),d.container.addEventListener("scroll",C),d.refreshInterval=parseInt(d.refreshInterval)||h.refreshInterval,b()}(),c};var e={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};t.Controller.addOption=function(t,i){e.defaults[t]=i},t.Controller.extend=function(i){var e=this;t.Controller=function(){return e.apply(this,arguments),this.$super=o.extend({},this),i.apply(this,arguments)||this},o.extend(t.Controller,e),t.Controller.prototype=e.prototype,t.Controller.prototype.constructor=t.Controller},t.Scene=function(e){var n,r,a="BEFORE",l="DURING",h="AFTER",c=s.defaults,d=this,p=o.extend({},c,e),u=a,f=0,_={start:0,end:0},m=0,g=!0,v={};this.on=function(t,i){return o.type.Function(i)&&(t=t.trim().split(" ")).forEach(function(t){var e=t.split("."),s=e[0],o=e[1];"*"!=s&&(v[s]||(v[s]=[]),v[s].push({namespace:o||"",callback:i}))}),d},this.off=function(t,i){return t?((t=t.trim().split(" ")).forEach(function(t){var e=t.split("."),s=e[0],o=e[1]||"";("*"===s?Object.keys(v):[s]).forEach(function(t){for(var e=v[t]||[],s=e.length;s--;){var n=e[s];!n||o!==n.namespace&&"*"!==o||i&&i!=n.callback||e.splice(s,1)}e.length||delete v[t]})}),d):d},this.trigger=function(i,e){if(i){var s=i.trim().split("."),o=s[0],n=s[1],r=v[o];r&&r.forEach(function(i){n&&n!==i.namespace||i.callback.call(d,new t.Event(o,i.namespace,d,e))})}return d},d.on("change.internal",function(t){"loglevel"!==t.what&&"tweenChanges"!==t.what&&("triggerElement"===t.what?x():"reverse"===t.what&&d.update())}).on("shift.internal",function(){y(),d.update()}),this.addTo=function(i){return i instanceof t.Controller&&r!=i&&(r&&r.removeScene(d),r=i,F(),$(!0),x(!0),y(),r.info("container").addEventListener("resize",k),i.addScene(d),d.trigger("add",{controller:r}),d.update()),d},this.enabled=function(t){return arguments.length?(g!=t&&(g=!!t,d.update(!0)),d):g},this.remove=function(){if(r){r.info("container").removeEventListener("resize",k);var t=r;r=void 0,t.removeScene(d),d.trigger("remove")}return d},this.destroy=function(t){return d.trigger("destroy",{reset:t}),d.remove(),d.off("*.*"),null},this.update=function(t){if(r)if(t)if(r.enabled()&&g){var i,e=r.info("scrollPos");i=p.duration>0?(e-_.start)/(_.end-_.start):e>=_.start?1:0,d.trigger("update",{startPos:_.start,endPos:_.end,scrollPos:e}),d.progress(i)}else b&&u===l&&z(!0);else r.updateScene(d,!1);return d},this.refresh=function(){return $(),x(),d},this.progress=function(t){if(arguments.length){var i=!1,e=u,s=r?r.info("scrollDirection"):"PAUSED",o=p.reverse||t>=f;if(0===p.duration?(i=f!=t,u=0===(f=1>t&&o?0:1)?a:l):0>t&&u!==a&&o?(f=0,u=a,i=!0):t>=0&&1>t&&o?(f=t,u=l,i=!0):t>=1&&u!==h?(f=1,u=h,i=!0):u!==l||o||z(),i){var n={progress:f,state:u,scrollDirection:s},c=u!=e,_=function(t){d.trigger(t,n)};c&&e!==l&&(_("enter"),_(e===a?"start":"end")),_("progress"),c&&u!==l&&(_(u===a?"start":"end"),_("leave"))}return d}return f};var b,w,y=function(){_={start:m+p.offset},r&&p.triggerElement&&(_.start-=r.info("size")*p.triggerHook),_.end=_.start+p.duration},$=function(t){if(n){var i="duration";T(i,n.call(d))&&!t&&(d.trigger("change",{what:i,newval:p[i]}),d.trigger("shift",{reason:i}))}},x=function(t){var e=0,s=p.triggerElement;if(r&&s){for(var n=r.info(),a=o.get.offset(n.container),l=n.vertical?"top":"left";s.parentNode.hasAttribute(i);)s=s.parentNode;var h=o.get.offset(s);n.isDocument||(a[l]-=r.scrollPos()),e=h[l]-a[l]}var c=e!=m;m=e,c&&!t&&d.trigger("shift",{reason:"triggerElementPosition"})},k=function(){p.triggerHook>0&&d.trigger("shift",{reason:"containerResize"})},C=o.extend(s.validate,{duration:function(t){if(o.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)){var i=parseFloat(t)/100;t=function(){return r?r.info("size")*i:0}}if(o.type.Function(t)){n=t;try{t=parseFloat(n())}catch(i){t=-1}}if(t=parseFloat(t),!o.type.Number(t)||0>t)throw n?(n=void 0,0):0;return t}}),F=function(t){(t=arguments.length?[t]:Object.keys(C)).forEach(function(t){var i;if(C[t])try{i=C[t](p[t])}catch(e){i=c[t]}finally{p[t]=i}})},T=function(t,i){var e=!1,s=p[t];return p[t]!=i&&(p[t]=i,F(t),e=s!=p[t]),e},S=function(t){d[t]||(d[t]=function(i){return arguments.length?("duration"===t&&(n=void 0),T(t,i)&&(d.trigger("change",{what:t,newval:p[t]}),s.shifts.indexOf(t)>-1&&d.trigger("shift",{reason:t})),d):p[t]})};this.controller=function(){return r},this.state=function(){return u},this.scrollOffset=function(){return _.start},this.triggerPosition=function(){var t=p.offset;return r&&(t+=p.triggerElement?m:r.info("size")*d.triggerHook()),t},d.on("shift.internal",function(t){var i="duration"===t.reason;(u===h&&i||u===l&&0===p.duration)&&z(),i&&E()}).on("progress.internal",function(){z()}).on("add.internal",function(){E()}).on("destroy.internal",function(t){d.removePin(t.reset)});var z=function(t){if(b&&r){var i=r.info(),e=w.spacer.firstChild;if(t||u!==l){var s={position:w.inFlow?"relative":"absolute",top:0,left:0},n=o.css(e,"position")!=s.position;w.pushFollowers?p.duration>0&&(u===h&&0===parseFloat(o.css(w.spacer,"padding-top"))?n=!0:u===a&&0===parseFloat(o.css(w.spacer,"padding-bottom"))&&(n=!0)):s[i.vertical?"top":"left"]=p.duration*f,o.css(e,s),n&&E()}else{"fixed"!=o.css(e,"position")&&(o.css(e,{position:"fixed"}),E());var c=o.get.offset(w.spacer,!0),d=p.reverse||0===p.duration?i.scrollPos-_.start:Math.round(f*p.duration*10)/10;c[i.vertical?"top":"left"]+=d,o.css(w.spacer.firstChild,{top:c.top,left:c.left})}}},E=function(){if(b&&r&&w.inFlow){var t=u===l,i=r.info("vertical"),e=w.spacer.firstChild,s=o.isMarginCollapseType(o.css(w.spacer,"display")),n={};w.relSize.width||w.relSize.autoFullWidth?t?o.css(b,{width:o.get.width(w.spacer)}):o.css(b,{width:"100%"}):(n["min-width"]=o.get.width(i?b:e,!0,!0),n.width=t?n["min-width"]:"auto"),w.relSize.height?t?o.css(b,{height:o.get.height(w.spacer)-(w.pushFollowers?p.duration:0)}):o.css(b,{height:"100%"}):(n["min-height"]=o.get.height(i?e:b,!0,!s),n.height=t?n["min-height"]:"auto"),w.pushFollowers&&(n["padding"+(i?"Top":"Left")]=p.duration*f,n["padding"+(i?"Bottom":"Right")]=p.duration*(1-f)),o.css(w.spacer,n)}},M=function(){r&&b&&u===l&&!r.info("isDocument")&&z()},q=function(){r&&b&&u===l&&((w.relSize.width||w.relSize.autoFullWidth)&&o.get.width(window)!=o.get.width(w.spacer.parentNode)||w.relSize.height&&o.get.height(window)!=o.get.height(w.spacer.parentNode))&&E()},A=function(t){r&&b&&u===l&&!r.info("isDocument")&&(t.preventDefault(),r._setScrollPos(r.info("scrollPos")-((t.wheelDelta||t[r.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-t.detail)))};this.setPin=function(t,e){if(e=o.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},e),!(t=o.get.elements(t)[0]))return d;if("fixed"===o.css(t,"position"))return d;if(b){if(b===t)return d;d.removePin()}var s=(b=t).parentNode.style.display,n=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];b.parentNode.style.display="none";var r="absolute"!=o.css(b,"position"),a=o.css(b,n.concat(["display"])),l=o.css(b,["width","height"]);b.parentNode.style.display=s,!r&&e.pushFollowers&&(e.pushFollowers=!1);var h=b.parentNode.insertBefore(document.createElement("div"),b),c=o.extend(a,{position:r?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(r||o.extend(c,o.css(b,["width","height"])),o.css(h,c),h.setAttribute(i,""),o.addClass(h,e.spacerClass),w={spacer:h,relSize:{width:"%"===l.width.slice(-1),height:"%"===l.height.slice(-1),autoFullWidth:"auto"===l.width&&r&&o.isMarginCollapseType(a.display)},pushFollowers:e.pushFollowers,inFlow:r},!b.___origStyle){b.___origStyle={};var p=b.style;n.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]).forEach(function(t){b.___origStyle[t]=p[t]||""})}return w.relSize.width&&o.css(h,{width:l.width}),w.relSize.height&&o.css(h,{height:l.height}),h.appendChild(b),o.css(b,{position:r?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(w.relSize.width||w.relSize.autoFullWidth)&&o.css(b,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",M),window.addEventListener("resize",M),window.addEventListener("resize",q),b.addEventListener("mousewheel",A),b.addEventListener("DOMMouseScroll",A),z(),d},this.removePin=function(t){if(b){if(u===l&&z(!0),t||!r){var e=w.spacer.firstChild;if(e.hasAttribute(i)){var s=w.spacer.style;margins={},["margin","marginLeft","marginRight","marginTop","marginBottom"].forEach(function(t){margins[t]=s[t]||""}),o.css(e,margins)}w.spacer.parentNode.insertBefore(e,w.spacer),w.spacer.parentNode.removeChild(w.spacer),b.parentNode.hasAttribute(i)||(o.css(b,b.___origStyle),delete b.___origStyle)}window.removeEventListener("scroll",M),window.removeEventListener("resize",M),window.removeEventListener("resize",q),b.removeEventListener("mousewheel",A),b.removeEventListener("DOMMouseScroll",A),b=void 0}return d};var P,D=[];return d.on("destroy.internal",function(t){d.removeClassToggle(t.reset)}),this.setClassToggle=function(t,i){var e=o.get.elements(t);return 0!==e.length&&o.type.String(i)?(D.length>0&&d.removeClassToggle(),P=i,D=e,d.on("enter.internal_class leave.internal_class",function(t){var i="enter"===t.type?o.addClass:o.removeClass;D.forEach(function(t){i(t,P)})}),d):d},this.removeClassToggle=function(t){return t&&D.forEach(function(t){o.removeClass(t,P)}),d.off("start.internal_class end.internal_class"),P=void 0,D=[],d},function(){for(var t in p)c.hasOwnProperty(t)||delete p[t];for(var i in c)S(i);F()}(),d};var s={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(t){if(t=parseFloat(t),!o.type.Number(t))throw 0;return t},triggerElement:function(t){if(t=t||void 0){var i=o.get.elements(t)[0];if(!i)throw 0;t=i}return t},triggerHook:function(t){var i={onCenter:.5,onEnter:1,onLeave:0};if(o.type.Number(t))t=Math.max(0,Math.min(parseFloat(t),1));else{if(!(t in i))throw 0;t=i[t]}return t},reverse:function(t){return!!t}},shifts:["duration","offset","triggerHook"]};t.Scene.addOption=function(t,i,e,o){t in s.defaults||(s.defaults[t]=i,s.validate[t]=e,o&&s.shifts.push(t))},t.Scene.extend=function(i){var e=this;t.Scene=function(){return e.apply(this,arguments),this.$super=o.extend({},this),i.apply(this,arguments)||this},o.extend(t.Scene,e),t.Scene.prototype=e.prototype,t.Scene.prototype.constructor=t.Scene},t.Event=function(t,i,e,s){for(var o in s=s||{})this[o]=s[o];return this.type=t,this.target=this.currentTarget=e,this.namespace=i||"",this.timeStamp=this.timestamp=Date.now(),this};var o=t._util=function(t){var i,e={},s=function(t){return parseFloat(t)||0},o=function(i){return i.currentStyle?i.currentStyle:t.getComputedStyle(i)},n=function(i,e,n,r){if((e=e===document?t:e)===t)r=!1;else if(!d.DomElement(e))return 0;i=i.charAt(0).toUpperCase()+i.substr(1).toLowerCase();var a=(n?e["offset"+i]||e["outer"+i]:e["client"+i]||e["inner"+i])||0;if(n&&r){var l=o(e);a+="Height"===i?s(l.marginTop)+s(l.marginBottom):s(l.marginLeft)+s(l.marginRight)}return a},r=function(t){return t.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})};e.extend=function(t){for(t=t||{},i=1;i-1};var a=0,l=["ms","moz","webkit","o"],h=t.requestAnimationFrame,c=t.cancelAnimationFrame;for(i=0;!h&&i=0},d.DomElement=function(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName};var p=e.get={};return p.elements=function(i){var e=[];if(d.String(i))try{i=document.querySelectorAll(i)}catch(t){return e}if("nodelist"===d(i)||d.Array(i))for(var s=0,o=e.length=i.length;o>s;s++){var n=i[s];e[s]=d.DomElement(n)?n:p.elements(n)}else(d.DomElement(i)||i===document||i===t)&&(e=[i]);return e},p.scrollTop=function(i){return i&&"number"==typeof i.scrollTop?i.scrollTop:t.pageYOffset||0},p.scrollLeft=function(i){return i&&"number"==typeof i.scrollLeft?i.scrollLeft:t.pageXOffset||0},p.width=function(t,i,e){return n("width",t,i,e)},p.height=function(t,i,e){return n("height",t,i,e)},p.offset=function(t,i){var e={top:0,left:0};if(t&&t.getBoundingClientRect){var s=t.getBoundingClientRect();e.top=s.top,e.left=s.left,i||(e.top+=p.scrollTop(),e.left+=p.scrollLeft())}return e},e.addClass=function(t,i){i&&(t.classList?t.classList.add(i):t.className+=" "+i)},e.removeClass=function(t,i){i&&(t.classList?t.classList.remove(i):t.className=t.className.replace(RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," "))},e.css=function(t,i){if(d.String(i))return o(t)[r(i)];if(d.Array(i)){var e={},s=o(t);return i.forEach(function(t){e[t]=s[r(t)]}),e}for(var n in i){var a=i[n];a==parseFloat(a)&&(a+="px"),t.style[r(n)]=a}},e}(window||{});return t}),$(function(){$(window).width(),$(window).height();var t,i=$("#pin-box").height(),e=($("#anik-banks").height(),new ScrollMagic.Controller),s=[],o=[],n=[],r=[],a=14;for(t=1;t2&&(r[t]=r[t-1]+o[t-1]),n[t]=new ScrollMagic.Scene({triggerElement:"#hack-posts",triggerHook:.5,offset:r[t],duration:o[t],loglevel:t}).addTo(e).on("enter leave",function(t){t.target.controller().info("scrollDirection");var i=t.target.loglevel(),e=t.target.loglevel()-1,s=$("#h"+i+"_section"),o=$("#h"+e+"_section"),n=($("#point"+i+" > a").data("value"),$("#total_loot")),r=$("#scrollbox-value"),a=n.text();if("enter"==t.type){s.addClass("hacked active"),t.state;var l,h=0;for(x=1;x<=i;x++)h+=$("#point"+x+" > a").data("value"),x==i&&(l=h);setTimeout(function(){var t=a.replace(/[^a-z0-9\s]/gi,"").replace(/[,\s]/g,""),i=parseInt(t,10);$({numberValue:i}).animate({numberValue:l},{duration:300,easing:"linear",step:function(t){n.text(commaSeparateNumber(Math.ceil(t))),r.text(commaSeparateNumber(Math.ceil(t)))}})},50)}else s.removeClass("active"),"BEFORE"==t.state&&o.hasClass("hacked")&&s.removeClass("hacked")}));function l(){for(t=1;t2&&(r[t]=r[t-1]+o[t-1]),n[t].offset(r[t]).duration(o[t]))}$(window).resize(function(){l()}),$(".collapse-box > a").on("click",function(){setTimeout(function(){l()},1e3)})}),function(t){!jQuery&&"function"==typeof define&&define.amd?define(["jquery"],function(i){return t(i,document,window,navigator)}):jQuery||"object"!=typeof exports?t(jQuery,document,window,navigator):t(require("jquery"),document,window,navigator)}(function(t,i,e,s,o){"use strict";var n,r,a=0,l=(r=/msie\s\d+/i,0<(n=s.userAgent).search(r)&&r.exec(n).toString().split(" ")[1]<9&&(t("html").addClass("lt-ie9"),!0));Function.prototype.bind||(Function.prototype.bind=function(t){var i=this,e=[].slice;if("function"!=typeof i)throw new TypeError;var s=e.call(arguments,1),o=function(){if(this instanceof o){var n=function(){};n.prototype=i.prototype;var r=new n,a=i.apply(r,s.concat(e.call(arguments)));return Object(a)===a?a:r}return i.apply(t,s.concat(e.call(arguments)))};return o}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,i){var e;if(null==this)throw new TypeError('"this" is null or not defined');var s=Object(this),o=s.length>>>0;if(0===o)return-1;var n=+i||0;if(Math.abs(n)===1/0&&(n=0),o<=n)return-1;for(e=Math.max(0<=n?n:o-Math.abs(n),0);e!",c[0]),(l={skin:c.data("skin"),type:c.data("type"),min:c.data("min"),max:c.data("max"),from:c.data("from"),to:c.data("to"),step:c.data("step"),min_interval:c.data("minInterval"),max_interval:c.data("maxInterval"),drag_interval:c.data("dragInterval"),values:c.data("values"),from_fixed:c.data("fromFixed"),from_min:c.data("fromMin"),from_max:c.data("fromMax"),from_shadow:c.data("fromShadow"),to_fixed:c.data("toFixed"),to_min:c.data("toMin"),to_max:c.data("toMax"),to_shadow:c.data("toShadow"),prettify_enabled:c.data("prettifyEnabled"),prettify_separator:c.data("prettifySeparator"),force_edges:c.data("forceEdges"),keyboard:c.data("keyboard"),grid:c.data("grid"),grid_margin:c.data("gridMargin"),grid_num:c.data("gridNum"),grid_snap:c.data("gridSnap"),hide_min_max:c.data("hideMinMax"),hide_from_to:c.data("hideFromTo"),prefix:c.data("prefix"),postfix:c.data("postfix"),max_postfix:c.data("maxPostfix"),decorate_both:c.data("decorateBoth"),values_separator:c.data("valuesSeparator"),input_values_separator:c.data("inputValuesSeparator"),disable:c.data("disable"),block:c.data("block"),extra_classes:c.data("extraClasses")}).values=l.values&&l.values.split(","),l)l.hasOwnProperty(h)&&(l[h]!==o&&""!==l[h]||delete l[h]);d!==o&&""!==d&&((d=d.split(l.input_values_separator||n.input_values_separator||";"))[0]&&d[0]==+d[0]&&(d[0]=+d[0]),d[1]&&d[1]==+d[1]&&(d[1]=+d[1]),n&&n.values&&n.values.length?(a.from=d[0]&&n.values.indexOf(d[0]),a.to=d[1]&&n.values.indexOf(d[1])):(a.from=d[0]&&+d[0],a.to=d[1]&&+d[1])),t.extend(a,n),t.extend(a,l),this.options=a,this.update_check={},this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()};h.prototype={init:function(t){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),t?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){ var t='';this.$cache.input.before(t),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('01000'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append(''),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append(''),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.input[0].disabled=!1,this.removeDisableMask(),this.bindEvents()),this.options.disable||(this.options.block?this.appendDisableMask():this.removeDisableMask()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var t=this.options.min,i=this.options.max,e=this.options.from,s=this.options.to;t'),this.$cache.cont.addClass("irs-disabled")},removeDisableMask:function(){this.$cache.cont.remove(".irs-disable-mask"),this.$cache.cont.removeClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),l&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.no_diapason||(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("focus.irs_"+this.plugin_count,this.pointerFocus.bind(this)),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),l&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerFocus:function(t){var i,e;this.target||(i=(e="single"===this.options.type?this.$cache.single:this.$cache.from).offset().left,i+=e.width()/2-1,this.pointerClick("single",{preventDefault:function(){},pageX:i}))},pointerMove:function(t){if(this.dragging){var i=t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX;this.coords.x_pointer=i-this.coords.x_gap,this.calc()}},pointerUp:function(i){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,l&&t("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(t.contains(this.$cache.cont[0],i.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(i,e){e.preventDefault();var s=e.pageX||e.originalEvent.touches&&e.originalEvent.touches[0].pageX;2!==e.button&&("both"===i&&this.setTempMinInterval(),i||(i=this.target||"from"),this.current_plugin=this.plugin_count,this.target=i,this.is_active=!0,this.dragging=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=s-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(i),l&&t("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(t,i){i.preventDefault();var e=i.pageX||i.originalEvent.touches&&i.originalEvent.touches[0].pageX;2!==i.button&&(this.current_plugin=this.plugin_count,this.target=t,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(e-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(t,i){if(!(this.current_plugin!==this.plugin_count||i.altKey||i.ctrlKey||i.shiftKey||i.metaKey)){switch(i.which){case 83:case 65:case 40:case 37:i.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:i.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(t){var i=this.coords.p_pointer,e=(this.options.max-this.options.min)/100;e=this.options.step/e,t?i+=e:i-=e,this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*i),this.is_key=!0,this.calc()},setMinMax:function(){if(this.options){if(this.options.hide_min_max)return this.$cache.min[0].style.display="none",void(this.$cache.max[0].style.display="none");if(this.options.values.length)this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]));else{var t=this._prettify(this.options.min),i=this._prettify(this.options.max);this.result.min_pretty=t,this.result.max_pretty=i,this.$cache.min.html(this.decorate(t,this.options.min)),this.$cache.max.html(this.decorate(i,this.options.max))}this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var t=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=t},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(t){if(this.options&&(this.calc_count++,(10===this.calc_count||t)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){this.calcPointerPercent();var i=this.getHandleX();switch("both"===this.target&&(this.coords.p_gap=0,i=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,i=this.getHandleX(),this.options.drag_interval?this.target="both_one":this.target=this.chooseHandle(i)),this.target){case"base":var e=(this.options.max-this.options.min)/100,s=(this.result.from-this.options.min)/e,o=(this.result.to-this.options.min)/e;this.coords.p_single_real=this.toFixed(s),this.coords.p_from_real=this.toFixed(s),this.coords.p_to_real=this.toFixed(o),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(i),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(i),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(i),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_realthis.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(t){return t/(100-this.coords.p_handle)*100},convertToFakePercent:function(t){return t/100*(100-this.coords.p_handle)},getHandleX:function(){var t=100-this.coords.p_handle,i=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return i<0?i=0:t100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible";else{e=n?(this.options.decorate_both?(t=this.decorate(r[this.result.from]),t+=this.options.values_separator,t+=this.decorate(r[this.result.to])):t=this.decorate(r[this.result.from]+this.options.values_separator+r[this.result.to]),i=this.decorate(r[this.result.from]),this.decorate(r[this.result.to])):(s=this._prettify(this.result.from),o=this._prettify(this.result.to),this.options.decorate_both?(t=this.decorate(s,this.result.from),t+=this.options.values_separator,t+=this.decorate(o,this.result.to)):t=this.decorate(s+this.options.values_separator+o,this.result.to),i=this.decorate(s,this.result.from),this.decorate(o,this.result.to)),this.$cache.single.html(t),this.$cache.from.html(i),this.$cache.to.html(e),this.calcLabels();var a=Math.min(this.labels.p_single_left,this.labels.p_from_left),l=this.labels.p_single_left+this.labels.p_single_fake,h=this.labels.p_to_left+this.labels.p_to_fake,c=Math.max(l,h);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",c=this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",h):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",Math.max(l,h))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),a100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible"}}},drawShadow:function(){var t,i,e,s,o=this.options,n=this.$cache,r="number"==typeof o.from_min&&!isNaN(o.from_min),a="number"==typeof o.from_max&&!isNaN(o.from_max),l="number"==typeof o.to_min&&!isNaN(o.to_min),h="number"==typeof o.to_max&&!isNaN(o.to_max);"single"===o.type?o.from_shadow&&(r||a)?(t=this.convertToPercent(r?o.from_min:o.min),i=this.convertToPercent(a?o.from_max:o.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),i=this.toFixed(i-this.coords.p_handle/100*i),t+=this.coords.p_handle/2,n.shad_single[0].style.display="block",n.shad_single[0].style.left=t+"%",n.shad_single[0].style.width=i+"%"):n.shad_single[0].style.display="none":(o.from_shadow&&(r||a)?(t=this.convertToPercent(r?o.from_min:o.min),i=this.convertToPercent(a?o.from_max:o.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),i=this.toFixed(i-this.coords.p_handle/100*i),t+=this.coords.p_handle/2,n.shad_from[0].style.display="block",n.shad_from[0].style.left=t+"%",n.shad_from[0].style.width=i+"%"):n.shad_from[0].style.display="none",o.to_shadow&&(l||h)?(e=this.convertToPercent(l?o.to_min:o.min),s=this.convertToPercent(h?o.to_max:o.max)-e,e=this.toFixed(e-this.coords.p_handle/100*e),s=this.toFixed(s-this.coords.p_handle/100*s),e+=this.coords.p_handle/2,n.shad_to[0].style.display="block",n.shad_to[0].style.left=e+"%",n.shad_to[0].style.width=s+"%"):n.shad_to[0].style.display="none")},writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart&&(this.options.scope?this.options.onStart.call(this.options.scope,this.result):this.options.onStart(this.result))},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&(this.options.scope?this.options.onChange.call(this.options.scope,this.result):this.options.onChange(this.result))},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&(this.options.scope?this.options.onFinish.call(this.options.scope,this.result):this.options.onFinish(this.result))},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&(this.options.scope?this.options.onUpdate.call(this.options.scope,this.result):this.options.onUpdate(this.result))},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input"),this.has_tab_index?this.$cache.input.prop("tabindex",-1):this.$cache.input.removeProp("tabindex"),this.has_tab_index=!this.has_tab_index},convertToPercent:function(t,i){var e,s=this.options.max-this.options.min,o=s/100;return s?(e=(i?t:t-this.options.min)/o,this.toFixed(e)):(this.no_diapason=!0,0)},convertToValue:function(t){var i,e,s=this.options.min,o=this.options.max,n=s.toString().split(".")[1],r=o.toString().split(".")[1],a=0,l=0;if(0===t)return this.options.min;if(100===t)return this.options.max;n&&(a=i=n.length),r&&(a=e=r.length),i&&e&&(a=e<=i?i:e),s<0&&(s=+(s+(l=Math.abs(s))).toFixed(a),o=+(o+l).toFixed(a));var h,c=(o-s)/100*t+s,d=this.options.step.toString().split(".")[1];return c=d?+c.toFixed(d.length):(c/=this.options.step,+(c*=this.options.step).toFixed(0)),l&&(c-=l),(h=d?+c.toFixed(d.length):this.toFixed(c))this.options.max&&(h=this.options.max),h},calcWithStep:function(t){var i=Math.round(t/this.coords.p_step)*this.coords.p_step;return 100n.max_interval&&(s=o-n.max_interval):s-o>n.max_interval&&(s=o+n.max_interval),this.convertToPercent(s)):t},checkDiapason:function(t,i,e){var s=this.convertToValue(t),o=this.options;return"number"!=typeof i&&(i=o.min),"number"!=typeof e&&(e=o.max),se.max&&(e.from=e.max)):(e.frome.max&&(e.from=e.max),e.toe.max&&(e.to=e.max),this.update_check.from&&(this.update_check.from!==e.from&&e.from>e.to&&(e.from=e.to),this.update_check.to!==e.to&&e.toe.to&&(e.from=e.to),e.toe.from_max&&(e.from=e.from_max),"number"==typeof e.to_min&&e.toe.to_max&&(e.to=e.to_max),s&&(s.min!==e.min&&(s.min=e.min),s.max!==e.max&&(s.max=e.max),(s.froms.max)&&(s.from=e.from),(s.tos.max)&&(s.to=e.to)),("number"!=typeof e.min_interval||isNaN(e.min_interval)||!e.min_interval||e.min_interval<0)&&(e.min_interval=0),("number"!=typeof e.max_interval||isNaN(e.max_interval)||!e.max_interval||e.max_interval<0)&&(e.max_interval=0),e.min_interval&&e.min_interval>e.max-e.min&&(e.min_interval=e.max-e.min),e.max_interval&&e.max_interval>e.max-e.min&&(e.max_interval=e.max-e.min)},decorate:function(t,i){var e="",s=this.options;return s.prefix&&(e+=s.prefix),e+=t,s.max_postfix&&(s.values.length&&t===s.p_values[s.max]?(e+=s.max_postfix,s.postfix&&(e+=" ")):i===s.max&&(e+=s.max_postfix,s.postfix&&(e+=" "))),s.postfix&&(e+=s.postfix),e},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.result.from_pretty=this._prettify(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.result.to_pretty=this._prettify(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min, this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var t,i,e,s,o,n,r=this.options,a=r.max-r.min,l=r.grid_num,h=0,c=4,d="";for(this.calcGridMargin(),r.grid_snap&&(l=a/r.step),50';d+='',n=this.convertToValue(h),d+=''+(n=r.values.length?r.p_values[n]:this._prettify(n))+""}this.coords.big_num=Math.ceil(l+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(d),this.cacheGridLabels()}},cacheGridLabels:function(){var t,i,e=this.coords.big_num;for(i=0;i100+this.coords.grid_gap&&(s[o-1]=100+this.coords.grid_gap,e[o-1]=this.toFixed(s[o-1]-this.coords.big_p[o-1]),this.coords.big_x[o-1]=this.toFixed(this.coords.big_p[o-1]-this.coords.grid_gap))),this.calcGridCollision(2,e,s),this.calcGridCollision(4,e,s),t=0;t0&&e<=.45&&(r=1,l()),e>.45&&e<=2.79&&(r=2,l()),e>2.79&&e<=3.4&&(r=3,l()),e>3.4&&e<=6&&(r=4,l()),e>6&&e<=15.6&&(r=5,l()),e>15.6&&e<=20.6&&(r=6,l()),e>20.6&&e<=95&&(r=7,l()),e>95&&e<=113.5&&(r=8,l()),e>113.5&&e<=160&&(r=9,l()),changeLabel(r),$("#quiz__stat").hasClass("show")&&$("#quiz__stat").removeClass("show")},onFinish:function(t){},onUpdate:function(t){}}),$("#quiz_chose").on("click",function(){var t=$(this),i=(t.data("id"),$("#quiz-value").text());postStat(t.data("id"),i),getStat(t.data("id")),t.addClass("hide"),$("#quiz__title").find(".step.show").addClass("current"),$("#quizresult").addClass("show"),$("#quizresult span").removeClass("current"),$("#quizresult .i"+t.attr("data-id")).addClass("current"),changeValueColor(5),setTimeout(function(){$("#quiz__stat").addClass("show")},1e3)});var answer_instance=$target.data("ionRangeSlider");$("#quiz_answer, #quiz_mobileanswer").on("click",function(){for(answer_instance.update({from:4}),changeLabel(5),$("#quiz .irs-grid .irs-grid-pol:not(.small)").removeClass("ok"),i=0;i<=4;i++)$("#quiz .irs-grid .irs-grid-pol:not(.small):eq("+i+")").addClass("ok");156e8.toString().replace(/[^\d]/g,"").replace(/(\d)(?=(?:\d{3})+$)/g,"$1,"),$("#quiz-value").attr("data-value",15.6),setTimeout(function(){var t=$quiz_value.text().replace(/[^a-z0-9\s]/gi,"").replace(/[,\s]/g,""),i=parseInt(t,10);$({numberValue:i}).animate({numberValue:156e8},{duration:500,easing:"linear",step:function(t){$quiz_value.text(commaSeparateNumber(Math.ceil(t)))}})},50),$("#quiz_chose").addClass("hide"),$("#quizresult span").removeClass("current"),$("#quizresult .i5").addClass("current"),$("#quiz__title").find(".step.show").addClass("current"),changeValueColor(5),setTimeout(function(){$("#quiz__stat").addClass("show")},1e3)});