diff --git a/files/assets/js/fp.js b/files/assets/js/fp.js deleted file mode 100644 index 822769e27..000000000 --- a/files/assets/js/fp.js +++ /dev/null @@ -1,15 +0,0 @@ -function fp(fp) { - const xhr = new XMLHttpRequest(); - xhr.open("POST", '/fp/'+fp); - xhr.setRequestHeader('xhr', 'xhr'); - const form = new FormData() - form.append("formkey", formkey()); - xhr.send(form); -}; - -const fpPromise = import('/assets/js/vendor/fp.js?x=8') -.then(FingerprintJS => FingerprintJS.load()) - -fpPromise -.then(fp => fp.get()) -.then(result => {fp(result.visitorId)}) diff --git a/files/assets/js/vendor/fp.js b/files/assets/js/vendor/fp.js deleted file mode 100644 index 08692d426..000000000 --- a/files/assets/js/vendor/fp.js +++ /dev/null @@ -1 +0,0 @@ -var t=function(){return t=Object.assign||function(n){for(var t,e=1,r=arguments.length;e0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0){var r=n[e].toLowerCase();r!==n[e]?t+=" ".concat(r):t+=n[e];}else t+=n[e].toUpperCase();return t}function y(n,t){var e=0;return function(){return Math.random()*Math.min(t,n*Math.pow(2,e++))}}function w(n){return n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}function b(n,t){return Object.prototype.hasOwnProperty.call(n,t)}var S,k$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function I(n,t){if(0==t.length||t.length>n.length)return -1;for(var e=0;e>>1:n>>>1;t[e]=n;}return t}();for(var t=-1,e=L(n),r=0;r>>8^S[255&(t^e[r])];return (-1^t)>>>0}function x(n){return void 0===n?void 0:"".concat(n)}function j(n,t){if(void 0!==n){if(!Array.isArray(n))throw new TypeError("Expected ".concat(t," to be an array, a ").concat(function(n){return "object"==typeof n?n?Object.prototype.toString.call(n):"null":typeof n}(n)," is given"));return n.map(String)}}function N(n){return "string"==typeof n}function M(n,t){return new Promise((function(e){return setTimeout(e,n,t)}))}function _(n){return !!n&&"function"==typeof n.then}function D(n,t){try{var e=n();_(e)?e.then((function(n){return t(!0,n)}),(function(n){return t(!1,n)})):t(!0,e);}catch(r){t(!1,r);}}function F(n,t,e){return void 0===e&&(e=16),r(this,void 0,void 0,(function(){var r,i,u,a;return o(this,(function(o){switch(o.label){case 0:r=Array(n.length),i=Date.now(),u=0,o.label=1;case 1:return u=i+e?(i=a,[4,M(0)]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return ++u,[3,1];case 4:return [2,r]}}))}))}function W(n){n.then(void 0,(function(){}));}function G(n,t){n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var e=[0,0,0,0];return e[3]+=n[3]+t[3],e[2]+=e[3]>>>16,e[3]&=65535,e[2]+=n[2]+t[2],e[1]+=e[2]>>>16,e[2]&=65535,e[1]+=n[1]+t[1],e[0]+=e[1]>>>16,e[1]&=65535,e[0]+=n[0]+t[0],e[0]&=65535,[e[0]<<16|e[1],e[2]<<16|e[3]]}function Z(n,t){n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var e=[0,0,0,0];return e[3]+=n[3]*t[3],e[2]+=e[3]>>>16,e[3]&=65535,e[2]+=n[2]*t[3],e[1]+=e[2]>>>16,e[2]&=65535,e[2]+=n[3]*t[2],e[1]+=e[2]>>>16,e[2]&=65535,e[1]+=n[1]*t[3],e[0]+=e[1]>>>16,e[1]&=65535,e[1]+=n[2]*t[2],e[0]+=e[1]>>>16,e[1]&=65535,e[1]+=n[3]*t[1],e[0]+=e[1]>>>16,e[1]&=65535,e[0]+=n[0]*t[3]+n[1]*t[2]+n[2]*t[1]+n[3]*t[0],e[0]&=65535,[e[0]<<16|e[1],e[2]<<16|e[3]]}function U(n,t){return 32===(t%=64)?[n[1],n[0]]:t<32?[n[0]<>>32-t,n[1]<>>32-t]:(t-=32,[n[1]<>>32-t,n[0]<>>32-t])}function B(n,t){return 0===(t%=64)?n:t<32?[n[0]<>>32-t,n[1]<>>1]),n=H(n=Z(n,[4283543511,3981806797]),[0,n[0]>>>1]),n=H(n=Z(n,[3301882366,444984403]),[0,n[0]>>>1])}function Y(n){return parseInt(n)}function J(n){return parseFloat(n)}function z(n,t){return "number"==typeof n&&isNaN(n)?t:n}function q(n){return n.reduce((function(n,t){return n+(t?1:0)}),0)}function K(n){return n&&"object"==typeof n&&"message"in n?n:{message:n}}function Q(n){return "function"!=typeof n}function $(n,t,e){var i=Object.keys(n).filter((function(n){return !function(n,t){for(var e=0,r=n.length;e=4}function en(){var n=window,t=navigator;return q(["msWriteProfilerMark"in n,"MSStream"in n,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!tn()}function rn(){var n=window,t=navigator;return q(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in n,"BatteryManager"in n,"webkitMediaStream"in n,"webkitSpeechGrammar"in n])>=5}function on(){var n=window,t=navigator;return q(["ApplePayError"in n,"CSSPrimitiveValue"in n,"Counter"in n,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in n])>=4}function un(){var n=window;return q(["safari"in n,!("DeviceMotionEvent"in n),!("ongestureend"in n),!("standalone"in navigator)])>=3}function an(){var n,t,e=window;return q(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(n=document.documentElement)||void 0===n?void 0:n.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in e,"mozInnerScreenX"in e,"CSSMozDocumentRule"in e,"CanvasCaptureMediaStream"in e])>=4}function cn(){var n=document;return n.fullscreenElement||n.msFullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement||null}function sn(){var n=rn(),t=an();if(!n&&!t)return !1;var e=window;return q(["onorientationchange"in e,"orientation"in e,n&&!("SharedWorker"in e),t&&/android/i.test(navigator.appVersion)])>=2}function ln(n){var t=new Error(n);return t.name=n,t}function fn(n,t,e){var i,u,a;return void 0===e&&(e=50),r(this,void 0,void 0,(function(){var r,c;return o(this,(function(o){switch(o.label){case 0:r=document,o.label=1;case 1:return r.body?[3,3]:[4,M(e)];case 2:return o.sent(),[3,1];case 3:c=r.createElement("iframe"),o.label=4;case 4:return o.trys.push([4,,10,11]),[4,new Promise((function(n,e){var o=!1,i=function(){o=!0,n();};c.onload=i,c.onerror=function(n){o=!0,e(n);};var u=c.style;u.setProperty("display","block","important"),u.position="absolute",u.top="0",u.left="0",u.visibility="hidden",t&&"srcdoc"in c?c.srcdoc=t:c.src="about:blank",r.body.appendChild(c);var a=function(){var n,t;o||("complete"===(null===(t=null===(n=c.contentWindow)||void 0===n?void 0:n.document)||void 0===t?void 0:t.readyState)?i():setTimeout(a,10));};a();}))];case 5:o.sent(),o.label=6;case 6:return (null===(u=null===(i=c.contentWindow)||void 0===i?void 0:i.document)||void 0===u?void 0:u.body)?[3,8]:[4,M(e)];case 7:return o.sent(),[3,6];case 8:return [4,n(c,c.contentWindow)];case 9:return [2,o.sent()];case 10:return null===(a=c.parentNode)||void 0===a||a.removeChild(c),[7];case 11:return [2]}}))}))}function vn(n){for(var t=function(n){for(var t,e,r="Unexpected syntax '".concat(n,"'"),o=/^\s*([a-z-]*)(.*)$/i.exec(n),i=o[1]||void 0,u={},a=/([.:#][\w-]+|\[.+?\])/gi,c=function(n,t){u[n]=u[n]||[],u[n].push(t);};;){var s=a.exec(o[2]);if(!s)break;var l=s[0];switch(l[0]){case".":c("class",l.slice(1));break;case"#":c("id",l.slice(1));break;case"[":var f=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(!f)throw new Error(r);c(f[1],null!==(e=null!==(t=f[4])&&void 0!==t?t:f[5])&&void 0!==e?e:"");break;default:throw new Error(r)}}return [i,u]}(n),e=t[0],r=t[1],o=document.createElement(null!=e?e:"div"),i=0,u=Object.keys(r);i.6*e.length}))).sort(),[2,i]}var a;}))}))},jn=function(){return function(n,t){void 0===t&&(t=4e3);return fn((function(e,r){var o=r.document,u=o.body,a=u.style;a.width="".concat(t,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",rn()?u.style.zoom="".concat(1/r.devicePixelRatio):on()&&(u.style.zoom="reset");var c=o.createElement("div");return c.textContent=i([],Array(t/20<<0),!0).map((function(){return "word"})).join(" "),u.appendChild(c),n(o,u)}),'')}((function(n,t){for(var e={},r={},o=0,i=Object.keys(On);o=3}())return -1;var e=new t(1,5e3,44100),r=e.createOscillator();r.type="triangle",r.frequency.value=1e4;var o=e.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,r.connect(o),o.connect(e.destination),r.start(0);var i=function(n){var t=3,e=500,r=500,o=5e3,i=function(){},u=new Promise((function(u,a){var c=!1,s=0,l=0;n.oncomplete=function(n){return u(n.renderedBuffer)};var f=function(){setTimeout((function(){return a(ln("timeout"))}),Math.min(r,l+o-Date.now()));},v=function(){try{var r=n.startRendering();switch(_(r)&&W(r),n.state){case"running":l=Date.now(),c&&f();break;case"suspended":document.hidden||s++,c&&s>=t?a(ln("suspended")):setTimeout(v,e);}}catch(o){a(o);}};v(),i=function(){c||(c=!0,l>0&&f());};}));return [u,i]}(e),u=i[0],a=i[1],c=u.then((function(n){return function(n){for(var t=0,e=0;e=3||e.push(t.languages);else if("string"==typeof t.languages){var o=t.languages;o&&e.push(o.split(","));}return e},Dn=function(){return window.screen.colorDepth},Fn=function(){return z(J(navigator.deviceMemory),void 0)},Wn=function(){var n=screen,t=function(n){return z(Y(n),null)},e=[t(n.width),t(n.height)];return e.sort().reverse(),e},Gn=function(){return z(Y(navigator.hardwareConcurrency),void 0)},Zn=function(){var n,t=null===(n=window.Intl)||void 0===n?void 0:n.DateTimeFormat;if(t){var e=(new t).resolvedOptions().timeZone;if(e)return e}var r,o=(r=(new Date).getFullYear(),-Math.max(J(new Date(r,0,1).getTimezoneOffset()),J(new Date(r,6,1).getTimezoneOffset())));return "UTC".concat(o>=0?"+":"").concat(Math.abs(o))},Un=function(){try{return !!window.sessionStorage}catch(n){return !0}},Bn=function(){try{return !!window.localStorage}catch(n){return !0}},Hn=function(){return !!window.openDatabase},Xn=function(){return navigator.cpuClass},Yn=function(){var n=navigator.platform;return "MacIntel"===n&&on()&&!un()?function(){if("iPad"===navigator.platform)return !0;var n=screen,t=n.width/n.height;return q(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":n},Jn=function(){var n=navigator.plugins;if(n){for(var t=[],e=0;e>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)},vt=/*#__PURE__*/new Uint32Array(2);function dt(){return crypto?(crypto.getRandomValues(vt),(1048576*vt[0]+(1048575&vt[1]))/4503599627370496):Math.random()}function ht(n,t,e){void 0===e&&(e=dt);for(var r="",o=0;o>>21,((t=9*(t<<7|t>>>25))>>>0)/4294967296};var r,o,i,u;}(n);return function(n){return ht(n,k$1,t)}}var gt=/*#__PURE__*/new Uint8Array(1);function yt(){return crypto.getRandomValues(gt),gt[0]}var wt="3.8.18",bt={default:"endpoint"},Et={default:"tlsEndpoint"},Rt="_vid";var kt="[FingerprintJS Pro]";function Lt(n){void 0===n&&(n="".concat(kt," "));var t={};return function(e){switch(e.e){case 15:t[e.getCallId]=e.body;break;case 18:console.log("".concat(n,"Visitor id request"),t[e.getCallId]);break;case 19:console.log("".concat(n,"Visitor id response"),e.body);break;case 16:case 17:delete t[e.getCallId];}}}var At="__fpjs_pvid";function Tt(){var n=window,t=n[At];return n[At]="string"==typeof t?t:mt(10)}function Ot(n){return function(t){var e=[],r=new Map;var o=window.setInterval((function(){var t=e.shift();if(t){var o=t[0],i=t[1],u=n(i);d(u),r.set(o,u);}}),1);function i(){window.clearInterval(o);}return t.then(i,i),[e,r,t]}}function Vt(n){var t,e,r,o=Math.random();return t=n.container,e=o,r=n,t[0].push([e,r]),function(n,t,e){var r;function o(){window.clearInterval(r);}var i=n[1],u=n[2],a=new Promise((function(n,e){r=window.setInterval((function(){var r=i.get(t);if(r)return i.delete(t),r.then(n,e)}),1);}));return a.then(o,o),null==e||e.then(o,o),u.then(o,o),a}(n.container,o,n.abort)}var xt=/*#__PURE__*/Ot(jt);function jt(n){return function(n,t,e,r){var o,i=document,u="securitypolicyviolation",a=function(t){var e=new URL(n,location.href),r=t.blockedURI;r!==e.href&&r!==e.protocol.slice(0,-1)&&r!==e.origin||(o=t,c());};i.addEventListener(u,a);var c=function(){return i.removeEventListener(u,a)};return null==r||r.then(c,c),Promise.resolve().then(t).then((function(n){return c(),n}),(function(n){return new Promise((function(n){return setTimeout(n)})).then((function(){if(c(),o)return e(o);throw n}))}))}(n.url,(function(){return function(n){var t=n.url,e=n.method,r=void 0===e?"get":e,o=n.body,i=n.headers,u=n.withCredentials,a=void 0!==u&&u,c=n.timeout,s=n.responseFormat,l=n.abort;return new Promise((function(n,e){var u=new XMLHttpRequest;try{u.open(r,function(n){if(!URL.prototype)return n;try{return new URL(n,location.href).toString()}catch(t){if(t instanceof Error&&"TypeError"===t.name)throw Nt("InvalidURLError","Invalid URL");throw t}}(t),!0);}catch(h){if(h instanceof Error&&/violate.+content security policy/i.test(h.message))throw Mt();throw h}if(u.withCredentials=a,u.timeout=void 0===c?0:Math.max(c,1),"binary"===s&&(u.responseType="arraybuffer"),i)for(var f=0,v=Object.keys(i);f=4}function Bt(){var n=window;return T([!("PushManager"in n),!("AudioBuffer"in n),!("RTCPeerConnection"in n),!("geolocation"in navigator),!("ServiceWorker"in n)])>=3}function Ht(){var n=window;return T(["ClipboardItem"in n,"PerformanceEventTiming"in n,"RTCSctpTransport"in n])>=2}var re="stripped";function oe(n){return r(this,void 0,void 0,(function(){var t,e,r,i,u,a,c,s,l;return o(this,(function(o){switch(o.label){case 0:return n?(t=ie(n),e=t.path,r=t.search,i=t.hash,u=N(r)?r.split("&").sort().join("&"):void 0,[4,Promise.all([N(u)?ue(u):void 0,N(i)?ue(i):void 0])]):[2,n];case 1:return a=o.sent(),c=a[0],s=a[1],l=e,N(c)&&(l="".concat(l,"?").concat(encodeURIComponent(c))),N(s)&&(l="".concat(l,"#").concat(encodeURIComponent(s))),[2,l]}}))}))}function ie(n){var t,e=n.split("#"),r=e[0],o=e.slice(1),i=r.split("?"),u=i[0],a=i[1];return 1===o.length&&""===o[0]?t="":o.length>0&&(t=o.join("#")),{path:u,hash:t,search:a}}function ue(n){var t;return r(this,void 0,void 0,(function(){var e;return o(this,(function(r){switch(r.label){case 0:return ""===n?[2,""]:(null==(e=null===(t=window.crypto)||void 0===t?void 0:t.subtle)?void 0:e.digest)?[4,e.digest("SHA-256",L(n))]:[2,re];case 1:return [2,P(r.sent()).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")]}}))}))}var he="Client timeout",me="Network connection error",pe="Network request aborted",ge="Response cannot be parsed",ye="Blocked by CSP",we="The endpoint parameter is not a valid URL";function be(n,t,e,a,c){var s=this;void 0===a&&(a=1/0);var l,f={failedAttempts:[]},d=function(n){var t=function(n){var t=i([],n,!0);return {current:function(){return t[0]},postpone:function(){var n=t.shift();void 0!==n&&t.push(n);},exclude:function(){t.shift();}}}(n),e=y(200,1e4),r=new Set;return [t.current(),function(n,o,i){var u;if(o){var a=function(n){var t=n.getHeader("retry-after");if(t){if(/^\s*\d+(\.\d+)?\s*$/.test(t))return new Date(Date.now()+1e3*parseFloat(t));var e=new Date(t);return isNaN(e)?void 0:e}}(o);a?(t.postpone(),u=a):t.exclude();}else if(i instanceof Error&&("CSPError"===i.name||"InvalidURLError"===i.name))t.exclude(),u=new Date;else {var c=(new Date).getTime()-n.getTime()<50,s=t.current();s&&c&&!r.has(s)&&(r.add(s),u=new Date),t.postpone();}var l=t.current();return void 0===l?void 0:[l,null!=u?u:new Date(n.getTime()+e())]}]}(n),h=d[0],m=d[1],p=(l=[null==c?void 0:c.then((function(n){return f.aborted={resolve:!0,value:n}}),(function(n){return f.aborted={resolve:!1,error:n}})),r(s,void 0,void 0,(function(){var n,r,i;return o(this,(function(s){switch(s.label){case 0:if(void 0===h)return [2];n=h,r=function(r){var i,a,s,l,d,h;return o(this,(function(o){switch(o.label){case 0:i=new Date,a=void 0,s=void 0,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,v((function(){return t(n,r,c)}),c)];case 2:return a=o.sent(),[3,4];case 3:return l=o.sent(),s=l,f.failedAttempts.push({level:0,endpoint:n,error:l}),[3,4];case 4:if(a){if((d=e(a)).finish)return f.result=d.result,[2,"break"];f.failedAttempts.push({level:1,endpoint:n,error:d.error});}return (h=m(i,a,s))?[4,v(u(h[1].getTime()-Date.now()),c)]:[3,6];case 5:return o.sent(),n=h[0],[3,7];case 6:return [2,"break"];case 7:return [2]}}))},i=0,s.label=1;case 1:return it?u-1){var p=v&&-1===ki.indexOf(m)?t.getParameter(m):null;i.push("".concat(S,"(").concat(m,")=").concat(p));}else i.push("".concat(S,"=").concat(m));}if(e)for(var g=0,y=e;g0?u.push("".concat(S,"(").concat(m,")=").concat(t.getParameter(m))):u.push("".concat(S,"=").concat(m));}}for(var k=0,I=Ii;kt},a=function(n,t){return n<=t},c=function(n,t){return n-t},s=function(n){return n()},f=function(n,t){return n>t},v=function(n,t,e,r){return n(t,e,r)},d=function(n){return n()},m=function(n){return n()},p=function(n,t,e){return n(t,e)},g=function(n,t,e){return n(t,e)},y=function(n,t,e){return n(t,e)};return function(n,t,e,r,o){return n(t,e,r,o)}(r,this,void 0,void 0,(function(){var r,w,b;return y(o,this,(function(o){var y=function(t,e){return n(t,e)},E=function(n,e,r){return t(n,e,r)},R=function(n,t,r){return e(n,t,r)},S=function(n,t){return u(n,t)},k=function(n,t){return a(n,t)},I=function(n,t){return c(n,t)},L=function(n){return s(n)},A=function(n,t){return f(n,t)},T=function(n,t,e,r){return v(n,t,e,r)};switch(o.label){case 0:return d(on)||m(an)?[2,function(){return {s:-3,v:null}}]:[4,d(ou)];case 1:return r=o.sent(),w=r.length,[4,p(h,g(l,400,-4),tu.bind(null,(function(n,t){return r.some((function(t){return y(E(ze,t,223244161),R(ze,n,223244161))}))||r.push(n),S(r.length,w)&&k(t,I(r.length,w))})))];case 2:return b=o.sent(),[2,function(){var n=L(b);return y(n,0)||A(r.length,w)?{s:0,v:T(i,[],r,!0)}:{s:n,v:null}}]}}))}))}function ou(){var n=function(n,t,e){return n(t,e)},e=function(n,t,e){return n(t,e)},i=function(n,t){return n(t)},u=function(n,t,e){return n(t,e)},a="8|5|1|6|3|7|4|0|2",c=function(n,t){return n===t},s=function(n,t,e){return n(t,e)},l=function(n,t){return n(t)},f=function(n,t){return n===t},v=function(n,t,e){return n(t,e)};return function(n,t,e,r,o){return n(t,e,r,o)}(r,this,void 0,void 0,(function(){var r,d,h,m,p,g,y,w={TJOjZ:function(t,e,r){return n(t,e,r)},YODxw:function(n,t,r){return e(n,t,r)},KIfEE:function(n,t){return i(n,t)},wvPGX:function(n,t,e){return u(n,t,e)},oAqXP:a,OwFJu:function(n,t){return c(n,t)},VkUsi:function(n,t,e){return u(n,t,e)},UvPcq:function(n,t,e){return s(n,t,e)},eOiJz:function(n,t){return l(n,t)},CBbqe:function(n,t){return f(n,t)},PReoV:function(n,t,e){return u(n,t,e)}};return v(o,this,(function(n){try{for(var e=w.oAqXP.split("|"),o=0;;){switch(e[o++]){case"0":r.push.apply(r,y);continue;case"1":h=w.wvPGX(ze,window[w.KIfEE($i,23)],33590818)(w.KIfEE($i,24));continue;case"2":return [2,r];case"3":p=(w.OwFJu(d,null)||w.OwFJu(d,void 0)?void 0:w.VkUsi(ze,d,1497648566))||[];continue;case"4":y=m.slice(0,5).map((function(n,e){return w.TJOjZ(t,w.YODxw(t,{id:w.KIfEE(pt,w.wvPGX(ze,n,3639779463))(9),type:nu},p[e]),g[e])}));continue;case"5":d=w.UvPcq(ze,window[w.KIfEE($i,21)],33590818)(w.eOiJz($i,22));continue;case"6":m=(w.OwFJu(h,null)||w.OwFJu(h,void 0)?void 0:w.YODxw(ze,h,1497648566))||[];continue;case"7":g=(w.CBbqe(d,null)||w.CBbqe(d,void 0)?void 0:w.PReoV(ze,d,1733327687))||[];continue;case"8":r=[];continue}break}}catch(i){return [2,[]]}return w.eOiJz($i,25)}))}))}function iu(){var n,t=(new Image).style;return function(n,t){for(var e=n.join(""),r=e.split(""),o=Array(e.length),i=0;i=t},pxcsT:function(n,t){return n===t},vRGAF:function(n,t){return n%t},VZxZe:function(n,t){return n|t},toOup:function(n,t){return n*t},RnqHA:function(n,t){return n-t}},t=n.uBOMK.split("|"),e=0;;){switch(t[e++]){case"0":for(var r=n.exXFE(n.WUvKQ(a,i),1);n.qxPcy(r,0);--r)if(n.pxcsT(n.vRGAF(r,i),0)){var o=Math.random();u.push(n.VZxZe(n.toOup(n.RnqHA(c,o),Math.pow(2,31)),0)),c=o;}continue;case"1":var i=4096;continue;case"2":var u=[];continue;case"3":var a=6;continue;case"4":var c=Math.random();continue;case"5":return {s:0,v:u}}break}}function xu(){var n=navigator.language;return n?{s:0,v:n}:{s:-1,v:null}}function ju(){var n=navigator.languages;return n?{s:0,v:n}:{s:-1,v:null}}var Nu=/*#__PURE__*/qe([1232667651,317732187,2078017024,2058033414,346882423],4);function Mu(){var n=function(n,t){return n(t)},t=function(n,t,e){return n(t,e)},e=function(n,t,e){return n(t,e)},i=function(n,t,e){return n(t,e)},a=function(n,t,e){return n(t,e)},c=function(n,t){return n===t},s=function(n,t){return n!==t},l=function(n,t){return n===t},f=function(n,t){return n===t},v=function(n,t,e){return n(t,e)},d=function(n,t,e){return n(t,e)},h=function(n,t,e){return n(t,e)};return function(n,t,e,r,o){return n(t,e,r,o)}(r,this,void 0,void 0,(function(){var r,m,p,g;return h(o,this,(function(o){var h=function(t,e){return n(t,e)},y=function(n,e,r){return t(n,e,r)},w=function(n,t,r){return e(n,t,r)};switch(o.label){case 0:return r=navigator,m=i(ze,r,1417288500),(p=a(ze,r,2706846255))||(c(m,null)||c(m,void 0)?void 0:t(ze,m,3538568711))?p?[4,Promise.race([e(u,250,void 0),new Promise((function(n){y(ze,p,1291883197)((function(t,e){return h(n,e)}));}))])]:n(Nu,0):[2,{s:-1,v:null}];case 1:if(g=o.sent(),s(g,void 0))return [2,{s:0,v:g}];o.label=2;case 2:return (l(m,null)||f(m,void 0)?void 0:i(ze,m,3538568711))?[4,Promise.race([v(u,250,void 0),d(ze,m,3538568711)().then((function(n){return w(ze,n,1813778413)}))])]:n(Nu,1);case 3:if(g=o.sent(),s(g,void 0))return [2,{s:1,v:g}];o.label=4;case 4:return [2,{s:-2,v:null}]}}))}))}var _u=/*#__PURE__*/qe([3158227384,2888664152,4084918174,3589656136,3712538156,4029405675,3656566123,3630103819,3648705019],6);function Du(){var n=function(n){return n()},t=function(n,t,e){return n(t,e)},e=function(n){return n()},i=function(n,t){return n===t},a=function(n,t,e){return n(t,e)};return function(n,t,e,r,o){return n(t,e,r,o)}(r,this,void 0,void 0,(function(){var r,c=function(t){return n(t)},s=function(n,e,r){return t(n,e,r)},l=function(n){return e(n)},f=function(n,t){return i(n,t)},v=function(n,t){return i(n,t)};return a(o,this,(function(n){switch(n.label){case 0:return c(rn)&&c(Ht)?[2,{s:-3,v:null}]:[4,Promise.race([s(u,100,null),l(Fu)])];case 1:return r=n.sent(),f(r,null)?[2,{s:-2,v:null}]:v(r,void 0)?[2,{s:-1,v:null}]:[2,{s:0,v:r}]}}))}))}function Fu(){var n=function(n,t){return n(t)},t=function(n,t,e,r,o){return n(t,e,r,o)},e=function(n,t,e){return n(t,e)};return t(r,this,void 0,void 0,(function(){var r,i=function(t,e){return n(t,e)},u=function(n,e,r,o,i){return t(n,e,r,o,i)},a=function(t,e){return n(t,e)};return e(o,this,(function(n){var t=function(n,t){return i(n,t)};return (r=window[a(_u,0)])?[2,new Promise((function(n){var e=function(n,t){return i(n,t)};u(r,0,1,(function(){return e(n,!0)}),(function(){return t(n,!1)}));}))]:[2,void 0]}))}))}function Wu(){return fn((function(n,t){var e=t.screen,r=function(n){var t=parseInt(n);return "number"==typeof t&&isNaN(t)?-1:t};return {s:0,v:{w:r(e.width),h:r(e.height)}}}))}var Gu=/*#__PURE__*/qe([3924185679,3632893699,2980828376,2699881398,2597186493,2980815866,2699881398,2597186493,3081479162,2868636342,4104912311,2917654778,3120294056,3186092732,3169643453,4210205690,3086875321,2867519889,3068977853,2897456556,2783771306,3033247220,4104908215,3152862458,2900426157,2868628129,2242641335],4);function Zu(){var n=function(n,t){return n(t)},t=function(n,t){return n(t)},e=function(n,t){return n(t)};try{return n(Uu,!!window[t(Gu,0)])}catch(r){return e(Uu,!0)}}function Uu(n){return {s:0,v:n}}function Bu(){var n=function(n){return n()},t=function(n){return n()},e=function(n){return n()},i=function(n,t,e){return n(t,e)},u=function(n,t,e,r,o){return n(t,e,r,o)},a=this;return i(h,i(l,250,{s:-3,v:null}),(function(){return u(r,a,void 0,void 0,(function(){var r=function(t){return n(t)},u=function(n){return t(n)},a=function(n){return e(n)};return i(o,this,(function(n){return r(on)||u(an)?[2,a(Hu)]:[2,{s:-1,v:null}]}))}))}))}function Hu(){var n={eyYKK:"4|0|2|3|1",ChNGC:function(n,t){return n(t)},YwgyF:function(n,t,e){return n(t,e)},EbCxO:function(n,t,e){return n(t,e)},zghzz:function(n,t){return n(t)},TsDgA:function(n,t){return n instanceof t},nzBne:function(n,t){return n(t)},dckcY:function(n,t,e){return n(t,e)},nMbze:function(n,t,e){return n(t,e)},sSRVk:function(n,t){return n(t)},rxqRt:function(n){return n()},VGCte:function(n,t){return n===t},UVBfe:function(n,t,e,r,o){return n(t,e,r,o)}};return n.UVBfe(r,this,void 0,void 0,(function(){var t,e;return n.nMbze(o,this,(function(r){for(var o=n.eyYKK.split("|"),i=0;;){switch(o[i++]){case"0":t=window[n.ChNGC(Gu,1)];continue;case"1":return [2,new Promise((function(n,r){var o=function(n,t){return u.Xpjhu(n,t)};try{var i=u.CUknA(ze,t,2758837156)(e,1);i[u.cpjBh(Gu,2)]=function(){o(n,{s:-5,v:null});},i[u.dkWeO(Gu,3)]=function(o){var i=u.SIlTw(ze,u.SIlTw(ze,o,1181691900),325763347);try{return u.ZhGIZ(ze,u.CUknA(ze,i,138212912)("-",u.cpjBh(Gu,4)),2928708052)(new(window[u.cpjBh(Gu,5)])),void u.cpjBh(n,{s:0,v:""})}catch(a){if(u.qtJKV(a,Error))return void u.QDnDA(n,{s:0,v:u.jneJk(ze,a,3065852031)});u.QDnDA(r,a);}finally{u.jEhwK(ze,i,318865860)(),u.LndNH(ze,t,3885781331)(e);}};}catch(a){if(!u.dEuRL(on))return void u.MPYsJ(n,{s:-5,v:null});if(u.qtJKV(a,Error)&&u.rsyyk(a.name,u.dkWeO(Gu,6)))return void u.cpjBh(n,{s:-4,v:null});u.Xpjhu(r,a);}}))];case"2":if(!t)return [2,{s:-2,v:null}];continue;case"3":e="".concat(n.ChNGC(mt,16));continue;case"4":var u={SIlTw:function(t,e,r){return n.YwgyF(t,e,r)},ZhGIZ:function(t,e,r){return n.EbCxO(t,e,r)},CUknA:function(t,e,r){return n.YwgyF(t,e,r)},cpjBh:function(t,e){return n.zghzz(t,e)},qtJKV:function(t,e){return n.TsDgA(t,e)},QDnDA:function(t,e){return n.nzBne(t,e)},jneJk:function(t,e,r){return n.dckcY(t,e,r)},jEhwK:function(t,e,r){return n.nMbze(t,e,r)},LndNH:function(t,e,r){return n.EbCxO(t,e,r)},Xpjhu:function(t,e){return n.sSRVk(t,e)},dkWeO:function(t,e){return n.zghzz(t,e)},dEuRL:function(t){return n.rxqRt(t)},MPYsJ:function(t,e){return n.zghzz(t,e)},rsyyk:function(t,e){return n.VGCte(t,e)}};continue}break}}))}))}var Xu=/*#__PURE__*/qe([3374490785,3473914354,2687361672,2338446584,2909720041,3983198953,2690882468,2623789291,2927482620,3811433711,3984366579,3978529202,3140852734,2993343738,3157115556,3812590506,4113420202,3160660206,3022243053,4113418922,3106772408,3178988458,2457001213],4);function Yu(){var n=function(n){return n()},t=function(n,t){return n(t)},e=function(n,t){return n(t)},r=function(n,t,e,r,o){return n(t,e,r,o)},o=function(n,t){return n(t)},i=function(n,t,e){return n(t,e)},u="test",a=function(n,t,e){return n(t,e)},c=function(n,t){return n(t)};if(!n(on)||n(Ut))return {s:-1,v:null};var s=window[t(Xu,0)],l=window[e(Xu,1)];try{r(s,null,null,null,null);}catch(f){return o(Xu,2)}try{return i(ze,l,2330630162)(u,"1"),a(ze,l,588657539)(u),c(Xu,3)}catch(v){return e(Xu,4)}}function qu(n,t,e,i,u){var a=function(n,t){for(var e=Array.isArray(n)?n:[n],r=[],o=0,i=e;o0?n.lastIndexOf(".",e-1):-1,!0===t(n.slice(e+1)))return !0}while(e>=0);return !1})(t,(function(r){if(!e||!/^([^.]{1,3}\.)*[^.]+\.?$/.test(r)||r===t)return n(r)}))||n();}function ia(n){return [ta(n),sa(n)]}function ua(n,t){ra(t,n,365),la(t,n);}function aa(n){return "".concat(n,"_t")}function ca(n){return "".concat(n,"_lr")}function sa(n){var t,e;try{return null!==(e=null===(t=null===localStorage||void 0===localStorage?void 0:localStorage.getItem)||void 0===t?void 0:t.call(localStorage,n))&&void 0!==e?e:void 0}catch(r){}}function la(n,t){var e;try{null===(e=null===localStorage||void 0===localStorage?void 0:localStorage.setItem)||void 0===e||e.call(localStorage,n,t);}catch(r){}}function fa(){var n,t,e;return {stage1:(n={},n.s34=li,n.s78=ru,n),stage2:(t={},t.s52=Fi,t.s35=di,t.s6=lo,t.s26=qi,t.s58=Ui,t.s20=uo,t.s36=ao,t.s51=co,t.s21=so,t.s79=fu,t.s69=Hi,t.s23=Du,t.s29=Mu,t.s84=Wu,t.s85=Bu,t.s89=Qi,t),stage3:(e={},e.s22=pu,e.s30=hu,e.s33=ai,e.s44=mi,e.s45=gi,e.s48=gu,e.s49=wi,e.s50=Ei,e.s53=Gi,e.s57=mu,e.s59=$o,e.s60=ni,e.s61=ti,e.s62=ei,e.s63=ri,e.s64=oi,e.s65=ii,e.s66=Bi,e.s68=ui,e.s71=Ji,e.s24=zi,e.s72=Ki,e.s1=fo,e.s2=vo,e.s3=ho,e.s4=mo,e.s5=po,e.s7=go,e.s9=yo,e.s10=wo,e.s11=bo,e.s12=Zu,e.s13=Eo,e.s14=Ro,e.s15=So,e.s16=ko,e.s17=Io,e.s19=Lo,e.s27=Ao,e.s28=To,e.s32=Co,e.s37=Po,e.s41=Oo,e.s39=Vo,e.s42=xo,e.s38=jo,e.s43=No,e.s40=Mo,e.s46=_o,e.s80=Do,e.s81=Fo,e.s82=xu,e.s83=ju,e.s86=Yu,e.s74=ji,e.s75=Ni,e.s76=Mi,e)}}function va(n){var t=ia(aa(n)),e=t[0],r=t[1];return e=da(e),r=da(r),void 0!==e&&void 0!==r?{s:0,v:e||r}:void 0!==e?{s:1,v:e}:void 0!==r?{s:2,v:r}:{s:-1,v:null}}function da(n){return n&&n.length<=1e3?n:void 0}var ha=function(){return {key:"id",sources:fa(),tls:qu,toRequest:function(n,e,i){return r(this,void 0,void 0,(function(){var r,u,a,c,s,l;return o(this,(function(o){switch(o.label){case 0:return r=location.href,u=document.referrer,[4,Promise.all([i&&r?oe(r):r,i&&u?oe(u):u])];case 1:return a=o.sent(),c=a[0],s=a[1],[2,t((l={},l.url=c,l.cr=s||void 0,l.s55=va(e),l),no(n))]}}))}))},onResponse:function(n,t){var e,r,o;!function(n,t){var e=aa(n);t&&ua(t,e);}(t,null===(o=null===(r=null===(e=n.products)||void 0===e?void 0:e.identification)||void 0===r?void 0:r.data)||void 0===o?void 0:o.visitorToken);}}},ma=ha;var pa=[3,7];function ga(n){var t=ya(ca(n))||[],e=[];return t.forEach((function(n){try{var t=JSON.parse(A(Ze(O(n[1]),pa,7)));e.push(t);}catch(pr){}})),e}function ya(n){var t=sa(n);if(!t)return [];try{var e=t?JSON.parse(t):[];return Array.isArray(e)?e:[]}catch(pr){return []}}function wa(n){var t={};return new Set(n).forEach((function(n){var e=function(n){if(!URL.prototype)return n;try{return new URL(n,window.location.origin).toString()}catch(pr){return n}}(n),r=performance.getEntriesByName(e,"resource");t[n]=r;})),t}function ba(n,t,e,r,o){for(var i=[],u=0,a=n;u1&&t") -@limiter.limit('1/second', scope=rpath) -@limiter.limit('1/second', scope=rpath, key_func=get_ID) -@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400) -@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID) -@auth_required -def fp(v, fp): - if session.get("GLOBAL"): - return '' - - v.fp = fp - users = g.db.query(User).filter(User.fp == fp, User.id != v.id).all() - for u in users: - li = [v.id, u.id] - g.db.flush() - existing = g.db.query(Alt).filter(Alt.user1.in_(li), Alt.user2.in_(li)).one_or_none() - if existing: continue - add_alt(user1=v.id, user2=u.id) - - check_for_alts(v, include_current_session=True) - g.db.add(v) - return '' - @app.post("/toggle_pins//") @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400) def toggle_pins(hole, sort): diff --git a/files/templates/home.html b/files/templates/home.html index cde499bcb..22f3d62f6 100644 --- a/files/templates/home.html +++ b/files/templates/home.html @@ -124,8 +124,4 @@ {% endif %} - - {% if FP and request.path == '/' and v and not v.fp %} - - {% endif %} {% endblock %}