/home/arranoyd/www/wp-content/plugins/litespeed-cache/assets/js/instant_click.min.js
var instantclick,InstantClick=instantclick=function(t,e,n){function i(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function r(t){for(;t&&"A"!=t.nodeName;)t=t.parentNode;return t}function o(t){do{if(!t.hasAttribute)break;if(t.hasAttribute("data-instant"))return!1;if(t.hasAttribute("data-no-instant"))return!0;if("nofollow"==t.getAttribute("rel"))return!0}while(t=t.parentNode);return!1}function a(t){var n=e.protocol+"//"+e.host;return!(t.target||t.hasAttribute("download")||0!=t.href.indexOf(n+"/")||t.href.indexOf("#")>-1&&i(t.href)==I||o(t))}function l(t){for(var e=Array.prototype.slice.call(arguments,1),n=!1,i=0;i<tt[t].length;i++)if("receive"==t){var r=tt[t][i].apply(window,e);r&&("body"in r&&(e[1]=r.body),"title"in r&&(e[2]=r.title),n=r)}else tt[t][i].apply(window,e);return n}function c(r,o,a,c){if(f(),t.documentElement.replaceChild(o,t.body),t.title=r,a){v("remove"),a!=e.href&&(history.pushState(null,null,a),n.indexOf(" CriOS/")>-1&&(t.title==r?t.title=r+String.fromCharCode(160):t.title=r));var d=a.indexOf("#"),h=d>-1&&t.getElementById(a.substr(d+1)),g=0;if(h)for(;h.offsetParent;)g+=h.offsetTop,h=h.offsetParent;"requestAnimationFrame"in window?requestAnimationFrame(function(){scrollTo(0,g)}):scrollTo(0,g),u(),(I=i(a))in it&&(it[I]=[]),et[I]={},m(function(t){return!t.hasAttribute("data-instant-track")}),l("change",!1)}else scrollTo(0,c),R.abort(),s(),m(function(t){return t.hasAttribute("data-instant-restore")}),p(),l("restore")}function s(){Q=!1,V=!1}function d(t){return t.replace(/<noscript[\s\S]+?<\/noscript>/gi,"")}function f(){for(var t=0;t<nt.length;t++)"object"==typeof nt[t]&&"abort"in nt[t]&&(nt[t].instantclickAbort=!0,nt[t].abort());nt=[]}function u(){for(var t in et[I]){var e=et[I][t];window.clearTimeout(e.realId),e.delayLeft=e.delay-+new Date+e.timestamp}}function p(){for(var t in et[I])if("delayLeft"in et[I][t]){for(var e=[et[I][t].callback,et[I][t].delayLeft],n=0;n<et[I][t].params.length;n++)e.push(et[I][t].params[n]);y(e,et[I][t].isRepeating,et[I][t].delay),delete et[I][t]}}function h(){R.abort(),s()}function v(t){if(I in it)for(var e=0;e<it[I].length;e++)window[t+"EventListener"].apply(window,it[I][e])}function m(e){var n,i,r,o,a,l=t.body.getElementsByTagName("script"),c=[];for(a=0;a<l.length;a++)c.push(l[a]);for(a=0;a<c.length;a++)if((n=c[a])&&e(n)){i=t.createElement("script");for(var s=0;s<n.attributes.length;s++)i.setAttribute(n.attributes[s].name,n.attributes[s].value);i.textContent=n.textContent,r=n.parentNode,o=n.nextSibling,r.removeChild(n),r.insertBefore(i,o)}}function g(){for(var e,n,i=t.querySelectorAll("[data-instant-track]"),r=0;r<i.length;r++)n=(e=i[r]).getAttribute("href")||e.getAttribute("src")||e.textContent,$.push(n)}function y(t,e,n){var i,r=t[0],o=t[1],a=[].slice.call(t,2),l=+new Date,c=++K;i=e?function(e){r(e),delete et[I][c],t[0]=r,t[1]=o,y(t,!0)}:function(t){r(t),delete et[I][c]},t[0]=i,void 0!=n&&(l+=o-n,o=n);var s=window.setTimeout.apply(window,t);return et[I][c]={realId:s,timestamp:l,callback:r,delay:o,params:a,isRepeating:e},-c}function b(t){var e=r(t.target);e&&a(e)&&P(e.href)}function w(t){if(!(B>+new Date-500||+new Date-J<100)){var e=r(t.target);e&&e!=r(t.relatedTarget)&&a(e)&&(e.addEventListener("mouseout",A),V||(M=e.href,q=O(P,_)))}}function k(t){B=+new Date;var e=r(t.target);e&&a(e)&&(H&&(D(H),H=!1),e.addEventListener("touchend",L),e.addEventListener("touchcancel",L),P(e.href))}function x(){t.addEventListener("click",E)}function E(e){if(t.removeEventListener("click",E),H&&(D(H),H=!1),!e.defaultPrevented){var n=r(e.target);n&&a(n)&&(0!=e.button||e.metaKey||e.ctrlKey||(e.preventDefault(),S(n.href)))}}function A(t){if(r(t.target)!=r(t.relatedTarget))return q?(D(q),void(q=!1)):void(Q&&!V&&(R.abort(),s()))}function L(t){Q&&!V&&(H=O(h,500))}function C(){if(2==R.readyState){var n=R.getResponseHeader("Content-Type");n&&/^text\/html/i.test(n)||(X=!0)}if(!(R.readyState<4)){if(0==R.status)return Z=!0,void(V&&(l("exit",j,"network error"),e.href=j));if(X)V&&(l("exit",j,"non-html content-type"),e.href=j);else{var r=t.implementation.createHTMLDocument("");r.documentElement.innerHTML=d(R.responseText),G=r.title,U=r.body;var o=l("receive",j,U,G);o&&("body"in o&&(U=o.body),"title"in o&&(G=o.title));var a=i(j);W[a]={body:U,title:G,scrollPosition:a in W?W[a].scrollPosition:0};var c,s,f=r.querySelectorAll("[data-instant-track]");if(f.length!=$.length)Y=!0;else for(var u=0;u<f.length;u++)s=(c=f[u]).getAttribute("href")||c.getAttribute("src")||c.textContent,-1==$.indexOf(s)&&(Y=!0);V&&(V=!1,S(j))}}}function T(){var t=i(e.href);if(t!=I){if(V&&(s(),R.abort()),!(t in W))return l("exit",e.href,"not in history"),void(t==e.href?e.href=e.href:e.reload());W[I].scrollPosition=pageYOffset,u(),v("remove"),I=t,c(W[t].title,W[t].body,!1,W[t].scrollPosition),v("add")}}function P(t){q&&(D(q),q=!1),t||(t=M),Q&&(t==j||V)||(Q=!0,V=!1,j=t,U=!1,X=!1,Z=!1,Y=!1,l("preload"),R.open("GET",t),R.timeout=9e4,R.send())}function S(t){return J=+new Date,q||!Q?q&&j&&j!=t?(l("exit",t,"click occured while preloading planned"),void(e.href=t)):(P(t),l("wait"),void(V=!0)):V?(l("exit",t,"clicked on a link while waiting for another page to display"),void(e.href=t)):X?(l("exit",j,"non-html content-type"),void(e.href=j)):Z?(l("exit",j,"network error"),void(e.href=j)):Y?(l("exit",j,"different assets"),void(e.href=j)):U?(W[I].scrollPosition=pageYOffset,s(),void c(G,U,j)):(l("wait"),void(V=!0))}function O(){return y(arguments,!1)}function D(t){t=-t;for(var e in et)t in et[e]&&(window.clearTimeout(et[e][t].realId),delete et[e][t])}function N(t,e,n){var i=rt[e][t].indexOf(n);i>-1&&rt[e][t].splice(i,1)}var I,M,q,B,F,H,R,X,Y,z,K=0,W={},j=!1,G=!1,U=!1,J=0,Q=!1,V=!1,Z=!1,$=[],_=65,tt={preload:[],receive:[],wait:[],change:[],restore:[],exit:[]},et={},nt=[],it={},rt={};Element.prototype.matches||(Element.prototype.matches=Element.prototype.webkitMatchesSelector||Element.prototype.msMatchesSelector||function(e){for(var n=t.querySelectorAll(e),i=0;i<n.length;i++)if(n[i]==this)return!0;return!1});var ot=!1;if("pushState"in history&&"file:"!=e.protocol){ot=!0;var at=n.indexOf("Android ");if(at>-1){var lt=parseFloat(n.substr(at+"Android ".length));if(lt<4.4&&(ot=!1,lt>=4))for(var ct=[/ Chrome\//,/ UCBrowser\//,/ Firefox\//,/ Windows Phone /],st=0;st<ct.length;st++)if(ct[st].test(n)){ot=!0;break}}}return{supported:ot,init:function(n){ot?F||(F=!0,"mousedown"==n?z=!0:"number"==typeof n&&(_=n),I=i(e.href),et[I]={},W[I]={body:t.body,title:t.title,scrollPosition:pageYOffset},"loading"==t.readyState?t.addEventListener("DOMContentLoaded",g):g(),(R=new XMLHttpRequest).addEventListener("readystatechange",C),t.addEventListener("touchstart",k,!0),z?t.addEventListener("mousedown",b,!0):t.addEventListener("mouseover",w,!0),t.addEventListener("click",x,!0),addEventListener("popstate",T)):l("change",!0)},on:function(t,e){tt[t].push(e),"change"==t&&e(!J)},setTimeout:O,setInterval:function(){return y(arguments,!0)},clearTimeout:D,xhr:function(t){nt.push(t)},addPageEvent:function(){I in it||(it[I]=[]),it[I].push(arguments),addEventListener.apply(window,arguments)},removePageEvent:function(){if(I in it)t:for(var t=0;t<it[I].length;t++)if(arguments.length==it[I][t].length){for(var e=0;e<it[I][t].length;e++)if(arguments[e]!=it[I][t][e])continue t;it[I].splice(t,1)}},addEvent:function(e,i,r){if(!(i in rt)&&(rt[i]={},t.addEventListener(i,function(t){var e=t.target;for(t.originalStopPropagation=t.stopPropagation,t.stopPropagation=function(){this.isPropagationStopped=!0,this.originalStopPropagation()};e&&1==e.nodeType;){for(var n in rt[i])if(e.matches(n)){for(var r=0;r<rt[i][n].length;r++)rt[i][n][r].call(e,t);if(t.isPropagationStopped)return;break}e=e.parentNode}},!1),"click"==i&&/iP(?:hone|ad|od)/.test(n))){var o=t.createElement("style");o.setAttribute("instantclick-mobile-safari-cursor",""),o.textContent="body { cursor: pointer !important; }",t.head.appendChild(o)}e in rt[i]||(rt[i][e]=[]),N(e,i,r),rt[i][e].push(r)},removeEvent:N}}(document,location,navigator.userAgent);!function(){function t(){(i=document.createElement("div")).id="instantclick";var t={Webkit:!0,Moz:!0},e="";if(!("transform"in i.style))for(var n in t)n+"Transform"in i.style&&(e="-"+n.toLowerCase()+"-");var r=document.createElement("style");r.setAttribute("instantclick-loading-indicator",""),r.textContent="#instantclick {pointer-events:none; z-index:2147483647; position:fixed; top:0; left:0; width:100%; height:3px; border-radius:2px; color:hsl(192,100%,50%); background:currentColor; box-shadow: 0 -1px 8px; opacity: 0;}#instantclick.visible {opacity:1; "+e+"animation:instantclick .6s linear infinite;}@"+e+"keyframes instantclick {0%,5% {"+e+"transform:translateX(-100%);} 45%,55% {"+e+"transform:translateX(0%);} 95%,100% {"+e+"transform:translateX(100%);}}",document.head.appendChild(r)}function e(){i.className="visible"}function n(){instantclick.clearTimeout(r),i.className=""}var i,r;instantclick.on("change",function(e){instantclick.supported&&(e&&t(),document.body.appendChild(i),e||n())}),instantclick.on("restore",function(){document.body.appendChild(i),n()}),instantclick.on("wait",function(){r=instantclick.setTimeout(e,800)}),instantclick.on("exit",n),instantclick.loadingIndicator={show:e,hide:n}}(),instantclick.init(300);